]> git.saurik.com Git - wxWidgets.git/blame - configure
fixed frame border styles (allow creating a friend with a simple or without border...
[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
41
698dcdb6
VZ
42
43
44# Guess values for system-dependent variables and create Makefiles.
45# Generated automatically using autoconf version 2.13
46# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
47#
48# This configure script is free software; the Free Software Foundation
49# gives unlimited permission to copy, distribute and modify it.
50
51# Defaults:
52ac_help=
53ac_default_prefix=/usr/local
54# Any additions from configure.in:
55ac_help="$ac_help
8168de4c 56 --enable-gui use GUI classes"
1e6feb95 57ac_help="$ac_help
8168de4c 58 --enable-universal use wxWindows GUI controls instead of native ones"
698dcdb6
VZ
59ac_help="$ac_help
60 --with-gtk use GTK+"
61ac_help="$ac_help
62 --with-motif use Motif/Lesstif"
63ac_help="$ac_help
64 --with-mac use Mac OS X"
65ac_help="$ac_help
66 --with-wine use WINE"
67ac_help="$ac_help
77e13408 68 --with-msw use MS-Windows"
698dcdb6
VZ
69ac_help="$ac_help
70 --with-pm use OS/2 Presentation Manager"
1e6feb95 71ac_help="$ac_help
b3e8d00a 72 --with-mgl use SciTech MGL"
1725144d
RR
73ac_help="$ac_help
74 --with-microwin use MicroWindows"
698dcdb6 75ac_help="$ac_help
8168de4c 76 --enable-gtk2 use GTK+ 2.0 if available (EXPERIMENTAL)"
698dcdb6 77ac_help="$ac_help
8168de4c 78 --with-libpng use libpng (PNG image format)"
698dcdb6 79ac_help="$ac_help
8168de4c 80 --with-libjpeg use libjpeg (JPEG file format)"
698dcdb6 81ac_help="$ac_help
8168de4c 82 --with-libtiff use libtiff (TIFF file format)"
698dcdb6 83ac_help="$ac_help
8168de4c 84 --with-freetype use freetype (font rasterizer)"
698dcdb6 85ac_help="$ac_help
8168de4c 86 --with-opengl use OpenGL (or Mesa)"
698dcdb6 87ac_help="$ac_help
d0e9b150 88 --with-dmalloc use dmalloc library (http://dmalloc.com/)"
3e44f09d
VZ
89ac_help="$ac_help
90 --with-regex enable support for wxRegEx class"
698dcdb6 91ac_help="$ac_help
8168de4c 92 --with-zlib use zlib for LZW compression"
698dcdb6 93ac_help="$ac_help
8168de4c 94 --with-odbc use the IODBC and wxODBC classes"
698dcdb6 95ac_help="$ac_help
8168de4c 96 --enable-shared create shared library code"
698dcdb6 97ac_help="$ac_help
3a922bb4 98 --enable-soname set the DT_SONAME field in ELF shared libraries"
698dcdb6 99ac_help="$ac_help
8168de4c 100 --enable-optimise create optimised code"
698dcdb6 101ac_help="$ac_help
8168de4c 102 --enable-debug same as debug_flag and debug_info"
683dccda
GD
103ac_help="$ac_help
104 --enable-precomp enable use of precompiled headers (Mac OS X)"
698dcdb6 105ac_help="$ac_help
8168de4c 106 --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)"
698dcdb6 107ac_help="$ac_help
8168de4c 108 --enable-debug_info create code with debugging information"
698dcdb6 109ac_help="$ac_help
8168de4c 110 --enable-debug_gdb create code with extra GDB debugging information"
698dcdb6 111ac_help="$ac_help
8168de4c 112 --enable-debug_cntxt use wxDebugContext"
698dcdb6 113ac_help="$ac_help
8168de4c 114 --enable-mem_tracing create code with memory tracing"
698dcdb6 115ac_help="$ac_help
8168de4c 116 --enable-profile create code with profiling information"
698dcdb6 117ac_help="$ac_help
8168de4c 118 --enable-no_rtti create code without RTTI information"
698dcdb6 119ac_help="$ac_help
b3e8d00a 120 --enable-no_exceptions create code without C++ exceptions handling"
698dcdb6 121ac_help="$ac_help
8168de4c 122 --enable-permissive compile code disregarding strict ANSI"
698dcdb6 123ac_help="$ac_help
8168de4c 124 --enable-no_deps create code without dependency information"
54276ccf 125ac_help="$ac_help
b3e8d00a 126 --enable-compat20 enable wxWindows 2.0 compatibility"
54276ccf 127ac_help="$ac_help
b3e8d00a 128 --enable-compat22 enable wxWindows 2.2 compatibility"
698dcdb6 129ac_help="$ac_help
8168de4c 130 --enable-intl use internationalization system"
698dcdb6 131ac_help="$ac_help
8168de4c 132 --enable-config use wxConfig (and derived) classes"
a1622950
VZ
133ac_help="$ac_help
134 --enable-protocols use wxProtocol and derived classes"
135ac_help="$ac_help
136 --enable-ftp use wxFTP (requires wxProtocol"
137ac_help="$ac_help
138 --enable-http use wxHTTP (requires wxProtocol"
139ac_help="$ac_help
140 --enable-fileproto use wxFileProto class (requires wxProtocol"
698dcdb6 141ac_help="$ac_help
8168de4c 142 --enable-sockets use socket/network classes"
698dcdb6 143ac_help="$ac_help
8168de4c 144 --enable-ipc use interprocess communication (wxSocket etc.)"
698dcdb6 145ac_help="$ac_help
8168de4c 146 --enable-cmdline use wxCmdLineParser class"
1e6feb95 147ac_help="$ac_help
8168de4c 148 --enable-datetime use wxDateTime class"
1e6feb95 149ac_help="$ac_help
8168de4c 150 --enable-timedate use obsolete wxDate/wxTime classes"
1e6feb95 151ac_help="$ac_help
8168de4c 152 --enable-stopwatch use wxStopWatch class"
1e6feb95 153ac_help="$ac_help
8168de4c 154 --enable-dialupman use dialup network classes"
698dcdb6 155ac_help="$ac_help
8168de4c 156 --enable-apple_ieee use the Apple IEEE codec"
698dcdb6 157ac_help="$ac_help
8168de4c 158 --enable-timer use wxTimer class"
698dcdb6 159ac_help="$ac_help
8168de4c 160 --enable-wave use wxWave class"
698dcdb6 161ac_help="$ac_help
8168de4c 162 --enable-fraction use wxFraction class"
698dcdb6 163ac_help="$ac_help
8168de4c 164 --enable-dynlib use wxLibrary class for DLL loading"
0b9ab0bd
RL
165ac_help="$ac_help
166 --enable-dynamicloader use (new) wxDynamicLibrary class"
698dcdb6 167ac_help="$ac_help
8168de4c 168 --enable-longlong use wxLongLong class"
698dcdb6 169ac_help="$ac_help
8168de4c 170 --enable-geometry use geometry class"
698dcdb6 171ac_help="$ac_help
8168de4c 172 --enable-log use logging system"
698dcdb6 173ac_help="$ac_help
8168de4c 174 --enable-streams use wxStream etc classes"
698dcdb6 175ac_help="$ac_help
8168de4c 176 --enable-file use wxFile classes"
698dcdb6 177ac_help="$ac_help
8168de4c 178 --enable-ffile use wxFFile classes"
1e6feb95 179ac_help="$ac_help
a3a584a7
VZ
180 --enable-textbuf use wxTextBuffer class"
181ac_help="$ac_help
182 --enable-textfile use wxTextFile class"
698dcdb6 183ac_help="$ac_help
8168de4c 184 --enable-fontmap use font encodings conversion classes"
1e6feb95 185ac_help="$ac_help
8168de4c 186 --enable-unicode compile wxString with Unicode support"
a72a4bfa
VS
187ac_help="$ac_help
188 --enable-mslu use MS Layer for Unicode on Windows 9x (win32 only)"
698dcdb6 189ac_help="$ac_help
8168de4c 190 --enable-wxprintfv use wxWindows implementation of vprintf()"
698dcdb6 191ac_help="$ac_help
8168de4c 192 --enable-std_iostreams use standard C++ stream classes"
698dcdb6 193ac_help="$ac_help
8168de4c 194 --enable-filesystem use virtual file systems classes"
698dcdb6 195ac_help="$ac_help
8168de4c 196 --enable-fs_inet use virtual HTTP/FTP filesystems"
698dcdb6 197ac_help="$ac_help
8168de4c 198 --enable-fs_zip use virtual ZIP filesystems"
698dcdb6 199ac_help="$ac_help
8168de4c 200 --enable-zipstream use wxZipInputStream"
698dcdb6 201ac_help="$ac_help
8168de4c 202 --enable-catch_segvs catch signals and pass them to wxApp::OnFatalException"
698dcdb6 203ac_help="$ac_help
8168de4c 204 --enable-snglinst use wxSingleInstanceChecker class"
698dcdb6 205ac_help="$ac_help
69d27ff7 206 --enable-mimetype use wxMimeTypesManager"
3e44f09d 207ac_help="$ac_help
b3e8d00a 208 --enable-sysoptions use wxSystemOptions"
4cdb0ab0
VS
209ac_help="$ac_help
210 --enable-url use wxURL class"
211ac_help="$ac_help
212 --enable-protocol use wxProtocol class"
213ac_help="$ac_help
214 --enable-protocol-http HTTP support in wxProtocol"
215ac_help="$ac_help
216 --enable-protocol-ftp FTP support in wxProtocol"
217ac_help="$ac_help
218 --enable-protocol-file FILE support in wxProtocol"
1e6feb95 219ac_help="$ac_help
8168de4c 220 --enable-threads use threads"
698dcdb6 221ac_help="$ac_help
8168de4c 222 --enable-docview use document view architecture"
698dcdb6 223ac_help="$ac_help
3379ed37 224 --enable-help use help subsystem"
29fd3c0c
VS
225ac_help="$ac_help
226 --enable-mshtmlhelp use MS HTML Help (win32)"
3379ed37
VZ
227ac_help="$ac_help
228 --enable-html use wxHTML sub-library"
229ac_help="$ac_help
230 --enable-htmlhelp use wxHTML-based help"
698dcdb6 231ac_help="$ac_help
8168de4c 232 --enable-constraints use layout-constraints system"
698dcdb6 233ac_help="$ac_help
8168de4c 234 --enable-printarch use printing architecture"
698dcdb6 235ac_help="$ac_help
8168de4c 236 --enable-mdi use multiple document interface architecture"
698dcdb6 237ac_help="$ac_help
8168de4c 238 --enable-loggui use standard GUI logger"
1e6feb95 239ac_help="$ac_help
8168de4c 240 --enable-logwin use wxLogWindow"
69d27ff7
MB
241ac_help="$ac_help
242 --enable-logdialog use wxLogDialog"
1e6feb95 243ac_help="$ac_help
8168de4c 244 --enable-postscript use wxPostscriptDC device context (default for gtk+)"
698dcdb6 245ac_help="$ac_help
8168de4c 246 --enable-prologio use Prolog IO library"
698dcdb6 247ac_help="$ac_help
8168de4c 248 --enable-resources use wxWindows resources"
698dcdb6 249ac_help="$ac_help
8168de4c 250 --enable-xresources use X resources for save (default for gtk+)"
698dcdb6 251ac_help="$ac_help
8168de4c 252 --enable-clipboard use wxClipboard classes"
698dcdb6 253ac_help="$ac_help
8168de4c 254 --enable-dnd use Drag'n'Drop classes"
698dcdb6 255ac_help="$ac_help
8168de4c 256 --enable-metafile use win32 metafiles"
698dcdb6 257ac_help="$ac_help
24176f2c 258 --enable-treelayout use wxTreeLayout classes"
698dcdb6 259ac_help="$ac_help
8168de4c 260 --enable-controls use all usual controls"
698dcdb6 261ac_help="$ac_help
8168de4c 262 --enable-accel use accelerators"
698dcdb6 263ac_help="$ac_help
8168de4c 264 --enable-button use wxButton class"
698dcdb6 265ac_help="$ac_help
8168de4c 266 --enable-bmpbutton use wxBitmapButton class"
698dcdb6 267ac_help="$ac_help
8168de4c 268 --enable-calendar use wxCalendarCtrl class"
1e6feb95 269ac_help="$ac_help
8168de4c 270 --enable-caret use wxCaret class"
1e6feb95 271ac_help="$ac_help
8168de4c 272 --enable-checkbox use wxCheckBox class"
698dcdb6 273ac_help="$ac_help
8168de4c 274 --enable-checklst use wxCheckListBox (listbox with checkboxes) class"
698dcdb6 275ac_help="$ac_help
8168de4c 276 --enable-choice use wxChoice class"
698dcdb6 277ac_help="$ac_help
8168de4c 278 --enable-combobox use wxComboBox classes"
698dcdb6 279ac_help="$ac_help
8168de4c 280 --enable-gauge use wxGauge class"
698dcdb6 281ac_help="$ac_help
8168de4c 282 --enable-grid use wxGrid class"
698dcdb6 283ac_help="$ac_help
8168de4c 284 --enable-newgrid use new wxGrid class"
698dcdb6 285ac_help="$ac_help
8168de4c 286 --enable-imaglist use wxImageList class"
698dcdb6 287ac_help="$ac_help
8168de4c 288 --enable-listbox use wxListBox class"
698dcdb6 289ac_help="$ac_help
8168de4c 290 --enable-listctrl use wxListCtrl class"
698dcdb6 291ac_help="$ac_help
8168de4c 292 --enable-notebook use wxNotebook class"
24176f2c
GD
293ac_help="$ac_help
294 --enable-propsheet use wxPropertySheet class"
698dcdb6 295ac_help="$ac_help
8168de4c 296 --enable-radiobox use wxRadioBox class"
698dcdb6 297ac_help="$ac_help
8168de4c 298 --enable-radiobtn use wxRadioButton class"
698dcdb6 299ac_help="$ac_help
8168de4c 300 --enable-sash use wxSashWindow class"
698dcdb6 301ac_help="$ac_help
8168de4c 302 --enable-scrollbar use wxScrollBar class and scrollable windows"
698dcdb6 303ac_help="$ac_help
8168de4c 304 --enable-slider use wxSlider class"
698dcdb6 305ac_help="$ac_help
8168de4c 306 --enable-spinbtn use wxSpinButton class"
698dcdb6 307ac_help="$ac_help
8168de4c 308 --enable-spinctrl use wxSpinCtrl class"
698dcdb6 309ac_help="$ac_help
8168de4c 310 --enable-splitter use wxSplitterWindow class"
698dcdb6 311ac_help="$ac_help
8168de4c 312 --enable-statbmp use wxStaticBitmap class"
698dcdb6 313ac_help="$ac_help
8168de4c 314 --enable-statbox use wxStaticBox class"
698dcdb6 315ac_help="$ac_help
8168de4c 316 --enable-statline use wxStaticLine class"
698dcdb6 317ac_help="$ac_help
8168de4c 318 --enable-stattext use wxStaticText class"
1e6feb95 319ac_help="$ac_help
8168de4c 320 --enable-statusbar use wxStatusBar class"
698dcdb6 321ac_help="$ac_help
8168de4c 322 --enable-tabdialog use wxTabControl class"
698dcdb6 323ac_help="$ac_help
8168de4c 324 --enable-textctrl use wxTextCtrl class"
1e6feb95 325ac_help="$ac_help
8168de4c 326 --enable-togglebtn use wxToggleButton class"
698dcdb6 327ac_help="$ac_help
8168de4c 328 --enable-toolbar use wxToolBar class"
698dcdb6 329ac_help="$ac_help
8168de4c 330 --enable-tbarnative use native wxToolBar class"
698dcdb6 331ac_help="$ac_help
8168de4c 332 --enable-tbarsmpl use wxToolBarSimple class"
698dcdb6 333ac_help="$ac_help
8168de4c 334 --enable-treectrl use wxTreeCtrl class"
9926e4a4
VZ
335ac_help="$ac_help
336 --enable-tipwindow use wxTipWindow class"
9f41d601
RR
337ac_help="$ac_help
338 --enable-popupwin use wxPopUpWindow class"
698dcdb6 339ac_help="$ac_help
b3e8d00a 340 --enable-commondlg use all common dialogs"
698dcdb6 341ac_help="$ac_help
8168de4c 342 --enable-choicedlg use wxChoiceDialog"
1e6feb95 343ac_help="$ac_help
8168de4c 344 --enable-coldlg use wxColourDialog"
1e6feb95 345ac_help="$ac_help
8168de4c 346 --enable-filedlg use wxFileDialog"
8db37e06
VZ
347ac_help="$ac_help
348 --enable-finddlg use wxFindReplaceDialog"
1e6feb95 349ac_help="$ac_help
8168de4c 350 --enable-fontdlg use wxFontDialog"
1e6feb95 351ac_help="$ac_help
8168de4c 352 --enable-dirdlg use wxDirDialog"
698dcdb6 353ac_help="$ac_help
8168de4c 354 --enable-msgdlg use wxMessageDialog"
1e6feb95 355ac_help="$ac_help
8168de4c 356 --enable-numberdlg use wxNumberEntryDialog"
cbca9943
VZ
357ac_help="$ac_help
358 --enable-splash use wxSplashScreen"
1e6feb95 359ac_help="$ac_help
8168de4c 360 --enable-textdlg use wxTextDialog"
698dcdb6 361ac_help="$ac_help
8168de4c 362 --enable-tipdlg use startup tips"
698dcdb6 363ac_help="$ac_help
8168de4c 364 --enable-progressdlg use wxProgressDialog"
b1f5d087
VZ
365ac_help="$ac_help
366 --enable-wizarddlg use wxWizard"
698dcdb6 367ac_help="$ac_help
8168de4c 368 --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes"
1e6feb95 369ac_help="$ac_help
8168de4c 370 --enable-miniframe use wxMiniFrame class"
698dcdb6 371ac_help="$ac_help
8168de4c 372 --enable-tooltips use wxToolTip class"
698dcdb6 373ac_help="$ac_help
8168de4c 374 --enable-splines use spline drawing code"
698dcdb6 375ac_help="$ac_help
8168de4c 376 --enable-validators use wxValidator and derived classes"
698dcdb6 377ac_help="$ac_help
8168de4c 378 --enable-busyinfo use wxBusyInfo"
698dcdb6 379ac_help="$ac_help
b3e8d00a 380 --enable-joystick use wxJoystick (Linux only)"
698dcdb6 381ac_help="$ac_help
8168de4c 382 --enable-metafiles use wxMetaFile (Windows only)"
24fd6d87
VZ
383ac_help="$ac_help
384 --enable-dragimage use wxDragImage"
edae8572
VZ
385ac_help="$ac_help
386 --enable-palette use wxPalette class"
1e6feb95 387ac_help="$ac_help
8168de4c 388 --enable-image use wxImage class"
698dcdb6 389ac_help="$ac_help
8168de4c 390 --enable-gif use gif images (GIF file format)"
698dcdb6 391ac_help="$ac_help
8168de4c 392 --enable-pcx use pcx images (PCX file format)"
4b6b4dfc
RR
393ac_help="$ac_help
394 --enable-iff use iff images (IFF file format)"
698dcdb6 395ac_help="$ac_help
8168de4c 396 --enable-pnm use pnm images (PNM file format)"
698dcdb6 397ac_help="$ac_help
8168de4c 398 --enable-xpm use xpm images (XPM file format)"
658974ae
VS
399ac_help="$ac_help
400 --enable-icocur use Windows ICO and CUR formats"
698dcdb6
VZ
401ac_help="$ac_help
402 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)"
403ac_help="$ac_help
404 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)"
405ac_help="$ac_help
406 --disable-gtktest Do not try to compile and run a test GTK program"
3f345b47
VZ
407ac_help="$ac_help
408 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)"
409ac_help="$ac_help
410 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)"
411ac_help="$ac_help
412 --disable-gtktest Do not try to compile and run a test GTK program"
413ac_help="$ac_help
414 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)"
415ac_help="$ac_help
416 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)"
417ac_help="$ac_help
418 --disable-gtktest Do not try to compile and run a test GTK program"
698dcdb6
VZ
419ac_help="$ac_help
420 --with-x use the X Window System"
10f2d63a
VZ
421
422# Initialize some variables set by options.
423# The variables have the same names as the options, with
424# dashes changed to underlines.
698dcdb6
VZ
425build=NONE
426cache_file=./config.cache
10f2d63a 427exec_prefix=NONE
698dcdb6 428host=NONE
10f2d63a 429no_create=
698dcdb6 430nonopt=NONE
10f2d63a
VZ
431no_recursion=
432prefix=NONE
433program_prefix=NONE
434program_suffix=NONE
435program_transform_name=s,x,x,
436silent=
437site=
438srcdir=
698dcdb6 439target=NONE
10f2d63a
VZ
440verbose=
441x_includes=NONE
442x_libraries=NONE
443bindir='${exec_prefix}/bin'
444sbindir='${exec_prefix}/sbin'
445libexecdir='${exec_prefix}/libexec'
446datadir='${prefix}/share'
447sysconfdir='${prefix}/etc'
448sharedstatedir='${prefix}/com'
449localstatedir='${prefix}/var'
450libdir='${exec_prefix}/lib'
451includedir='${prefix}/include'
452oldincludedir='/usr/include'
453infodir='${prefix}/info'
454mandir='${prefix}/man'
455
698dcdb6
VZ
456# Initialize some other variables.
457subdirs=
458MFLAGS= MAKEFLAGS=
459SHELL=${CONFIG_SHELL-/bin/sh}
460# Maximum number of lines to put in a shell here document.
461ac_max_here_lines=12
10f2d63a
VZ
462
463ac_prev=
464for ac_option
465do
698dcdb6 466
10f2d63a
VZ
467 # If the previous option needs an argument, assign it.
468 if test -n "$ac_prev"; then
469 eval "$ac_prev=\$ac_option"
470 ac_prev=
471 continue
472 fi
473
698dcdb6
VZ
474 case "$ac_option" in
475 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
476 *) ac_optarg= ;;
477 esac
10f2d63a
VZ
478
479 # Accept the important Cygnus configure options, so we can diagnose typos.
480
698dcdb6 481 case "$ac_option" in
10f2d63a
VZ
482
483 -bindir | --bindir | --bindi | --bind | --bin | --bi)
484 ac_prev=bindir ;;
485 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
698dcdb6 486 bindir="$ac_optarg" ;;
10f2d63a
VZ
487
488 -build | --build | --buil | --bui | --bu)
698dcdb6 489 ac_prev=build ;;
10f2d63a 490 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
698dcdb6 491 build="$ac_optarg" ;;
10f2d63a
VZ
492
493 -cache-file | --cache-file | --cache-fil | --cache-fi \
494 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
495 ac_prev=cache_file ;;
496 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
497 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
698dcdb6 498 cache_file="$ac_optarg" ;;
10f2d63a
VZ
499
500 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
501 ac_prev=datadir ;;
502 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
503 | --da=*)
698dcdb6 504 datadir="$ac_optarg" ;;
10f2d63a
VZ
505
506 -disable-* | --disable-*)
698dcdb6 507 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
10f2d63a 508 # Reject names that are not valid shell variable names.
698dcdb6
VZ
509 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
510 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
511 fi
512 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
513 eval "enable_${ac_feature}=no" ;;
10f2d63a
VZ
514
515 -enable-* | --enable-*)
698dcdb6 516 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
10f2d63a 517 # Reject names that are not valid shell variable names.
698dcdb6
VZ
518 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
519 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
520 fi
521 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
522 case "$ac_option" in
523 *=*) ;;
10f2d63a
VZ
524 *) ac_optarg=yes ;;
525 esac
698dcdb6 526 eval "enable_${ac_feature}='$ac_optarg'" ;;
10f2d63a
VZ
527
528 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
529 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
530 | --exec | --exe | --ex)
531 ac_prev=exec_prefix ;;
532 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
533 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
534 | --exec=* | --exe=* | --ex=*)
698dcdb6 535 exec_prefix="$ac_optarg" ;;
10f2d63a
VZ
536
537 -gas | --gas | --ga | --g)
538 # Obsolete; use --with-gas.
539 with_gas=yes ;;
540
698dcdb6
VZ
541 -help | --help | --hel | --he)
542 # Omit some internal or obsolete options to make the list less imposing.
543 # This message is too long to be a string in the A/UX 3.1 sh.
544 cat << EOF
545Usage: configure [options] [host]
546Options: [defaults in brackets after descriptions]
547Configuration:
548 --cache-file=FILE cache test results in FILE
549 --help print this message
550 --no-create do not create output files
551 --quiet, --silent do not print \`checking...' messages
552 --version print the version of autoconf that created configure
553Directory and file names:
554 --prefix=PREFIX install architecture-independent files in PREFIX
555 [$ac_default_prefix]
556 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
557 [same as prefix]
558 --bindir=DIR user executables in DIR [EPREFIX/bin]
559 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
560 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
561 --datadir=DIR read-only architecture-independent data in DIR
562 [PREFIX/share]
563 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
564 --sharedstatedir=DIR modifiable architecture-independent data in DIR
565 [PREFIX/com]
566 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
567 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
568 --includedir=DIR C header files in DIR [PREFIX/include]
569 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
570 --infodir=DIR info documentation in DIR [PREFIX/info]
571 --mandir=DIR man documentation in DIR [PREFIX/man]
572 --srcdir=DIR find the sources in DIR [configure dir or ..]
573 --program-prefix=PREFIX prepend PREFIX to installed program names
574 --program-suffix=SUFFIX append SUFFIX to installed program names
575 --program-transform-name=PROGRAM
576 run sed PROGRAM on installed program names
577EOF
578 cat << EOF
579Host type:
580 --build=BUILD configure for building on BUILD [BUILD=HOST]
581 --host=HOST configure for HOST [guessed]
582 --target=TARGET configure for TARGET [TARGET=HOST]
583Features and packages:
584 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
585 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
586 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
587 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
588 --x-includes=DIR X include files are in DIR
589 --x-libraries=DIR X library files are in DIR
590EOF
591 if test -n "$ac_help"; then
592 echo "--enable and --with options recognized:$ac_help"
593 fi
594 exit 0 ;;
10f2d63a
VZ
595
596 -host | --host | --hos | --ho)
698dcdb6 597 ac_prev=host ;;
10f2d63a 598 -host=* | --host=* | --hos=* | --ho=*)
698dcdb6 599 host="$ac_optarg" ;;
10f2d63a
VZ
600
601 -includedir | --includedir | --includedi | --included | --include \
602 | --includ | --inclu | --incl | --inc)
603 ac_prev=includedir ;;
604 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
605 | --includ=* | --inclu=* | --incl=* | --inc=*)
698dcdb6 606 includedir="$ac_optarg" ;;
10f2d63a
VZ
607
608 -infodir | --infodir | --infodi | --infod | --info | --inf)
609 ac_prev=infodir ;;
610 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
698dcdb6 611 infodir="$ac_optarg" ;;
10f2d63a
VZ
612
613 -libdir | --libdir | --libdi | --libd)
614 ac_prev=libdir ;;
615 -libdir=* | --libdir=* | --libdi=* | --libd=*)
698dcdb6 616 libdir="$ac_optarg" ;;
10f2d63a
VZ
617
618 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
619 | --libexe | --libex | --libe)
620 ac_prev=libexecdir ;;
621 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
622 | --libexe=* | --libex=* | --libe=*)
698dcdb6 623 libexecdir="$ac_optarg" ;;
10f2d63a
VZ
624
625 -localstatedir | --localstatedir | --localstatedi | --localstated \
626 | --localstate | --localstat | --localsta | --localst \
627 | --locals | --local | --loca | --loc | --lo)
628 ac_prev=localstatedir ;;
629 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
630 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
631 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
698dcdb6 632 localstatedir="$ac_optarg" ;;
10f2d63a
VZ
633
634 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
635 ac_prev=mandir ;;
636 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
698dcdb6 637 mandir="$ac_optarg" ;;
10f2d63a
VZ
638
639 -nfp | --nfp | --nf)
640 # Obsolete; use --without-fp.
641 with_fp=no ;;
642
643 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
644 | --no-cr | --no-c)
645 no_create=yes ;;
646
647 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
648 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
649 no_recursion=yes ;;
650
651 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
652 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
653 | --oldin | --oldi | --old | --ol | --o)
654 ac_prev=oldincludedir ;;
655 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
656 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
657 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
698dcdb6 658 oldincludedir="$ac_optarg" ;;
10f2d63a
VZ
659
660 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
661 ac_prev=prefix ;;
662 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
698dcdb6 663 prefix="$ac_optarg" ;;
10f2d63a
VZ
664
665 -program-prefix | --program-prefix | --program-prefi | --program-pref \
666 | --program-pre | --program-pr | --program-p)
667 ac_prev=program_prefix ;;
668 -program-prefix=* | --program-prefix=* | --program-prefi=* \
669 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
698dcdb6 670 program_prefix="$ac_optarg" ;;
10f2d63a
VZ
671
672 -program-suffix | --program-suffix | --program-suffi | --program-suff \
673 | --program-suf | --program-su | --program-s)
674 ac_prev=program_suffix ;;
675 -program-suffix=* | --program-suffix=* | --program-suffi=* \
676 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
698dcdb6 677 program_suffix="$ac_optarg" ;;
10f2d63a
VZ
678
679 -program-transform-name | --program-transform-name \
680 | --program-transform-nam | --program-transform-na \
681 | --program-transform-n | --program-transform- \
682 | --program-transform | --program-transfor \
683 | --program-transfo | --program-transf \
684 | --program-trans | --program-tran \
685 | --progr-tra | --program-tr | --program-t)
686 ac_prev=program_transform_name ;;
687 -program-transform-name=* | --program-transform-name=* \
688 | --program-transform-nam=* | --program-transform-na=* \
689 | --program-transform-n=* | --program-transform-=* \
690 | --program-transform=* | --program-transfor=* \
691 | --program-transfo=* | --program-transf=* \
692 | --program-trans=* | --program-tran=* \
693 | --progr-tra=* | --program-tr=* | --program-t=*)
698dcdb6 694 program_transform_name="$ac_optarg" ;;
10f2d63a
VZ
695
696 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
697 | -silent | --silent | --silen | --sile | --sil)
698 silent=yes ;;
699
700 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
701 ac_prev=sbindir ;;
702 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
703 | --sbi=* | --sb=*)
698dcdb6 704 sbindir="$ac_optarg" ;;
10f2d63a
VZ
705
706 -sharedstatedir | --sharedstatedir | --sharedstatedi \
707 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
708 | --sharedst | --shareds | --shared | --share | --shar \
709 | --sha | --sh)
710 ac_prev=sharedstatedir ;;
711 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
712 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
713 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
714 | --sha=* | --sh=*)
698dcdb6 715 sharedstatedir="$ac_optarg" ;;
10f2d63a
VZ
716
717 -site | --site | --sit)
718 ac_prev=site ;;
719 -site=* | --site=* | --sit=*)
698dcdb6 720 site="$ac_optarg" ;;
10f2d63a
VZ
721
722 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
723 ac_prev=srcdir ;;
724 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
698dcdb6 725 srcdir="$ac_optarg" ;;
10f2d63a
VZ
726
727 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
728 | --syscon | --sysco | --sysc | --sys | --sy)
729 ac_prev=sysconfdir ;;
730 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
731 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
698dcdb6 732 sysconfdir="$ac_optarg" ;;
10f2d63a
VZ
733
734 -target | --target | --targe | --targ | --tar | --ta | --t)
698dcdb6 735 ac_prev=target ;;
10f2d63a 736 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
698dcdb6 737 target="$ac_optarg" ;;
10f2d63a
VZ
738
739 -v | -verbose | --verbose | --verbos | --verbo | --verb)
740 verbose=yes ;;
741
698dcdb6
VZ
742 -version | --version | --versio | --versi | --vers)
743 echo "configure generated by autoconf version 2.13"
744 exit 0 ;;
10f2d63a
VZ
745
746 -with-* | --with-*)
698dcdb6 747 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
10f2d63a 748 # Reject names that are not valid shell variable names.
698dcdb6
VZ
749 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
750 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
751 fi
10f2d63a 752 ac_package=`echo $ac_package| sed 's/-/_/g'`
698dcdb6
VZ
753 case "$ac_option" in
754 *=*) ;;
10f2d63a
VZ
755 *) ac_optarg=yes ;;
756 esac
698dcdb6 757 eval "with_${ac_package}='$ac_optarg'" ;;
10f2d63a
VZ
758
759 -without-* | --without-*)
698dcdb6 760 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
10f2d63a 761 # Reject names that are not valid shell variable names.
698dcdb6
VZ
762 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
763 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
764 fi
765 ac_package=`echo $ac_package| sed 's/-/_/g'`
766 eval "with_${ac_package}=no" ;;
10f2d63a
VZ
767
768 --x)
769 # Obsolete; use --with-x.
770 with_x=yes ;;
771
772 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
773 | --x-incl | --x-inc | --x-in | --x-i)
774 ac_prev=x_includes ;;
775 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
776 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
698dcdb6 777 x_includes="$ac_optarg" ;;
10f2d63a
VZ
778
779 -x-libraries | --x-libraries | --x-librarie | --x-librari \
780 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
781 ac_prev=x_libraries ;;
782 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
783 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
698dcdb6 784 x_libraries="$ac_optarg" ;;
10f2d63a 785
698dcdb6 786 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
10f2d63a
VZ
787 ;;
788
789 *)
698dcdb6
VZ
790 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
791 echo "configure: warning: $ac_option: invalid host type" 1>&2
792 fi
793 if test "x$nonopt" != xNONE; then
794 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
795 fi
796 nonopt="$ac_option"
10f2d63a
VZ
797 ;;
798
799 esac
800done
801
802if test -n "$ac_prev"; then
698dcdb6
VZ
803 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
804fi
805
806trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
807
808# File descriptor usage:
809# 0 standard input
810# 1 file creation
811# 2 errors and warnings
812# 3 some systems may open it to /dev/tty
813# 4 used on the Kubota Titan
814# 6 checking for... messages and results
815# 5 compiler messages saved in config.log
816if test "$silent" = yes; then
817 exec 6>/dev/null
818else
819 exec 6>&1
10f2d63a 820fi
698dcdb6
VZ
821exec 5>./config.log
822
823echo "\
824This file contains any messages produced by compilers while
825running configure, to aid debugging if configure makes a mistake.
826" 1>&5
10f2d63a 827
698dcdb6
VZ
828# Strip out --no-create and --no-recursion so they do not pile up.
829# Also quote any args containing shell metacharacters.
830ac_configure_args=
831for ac_arg
10f2d63a 832do
698dcdb6
VZ
833 case "$ac_arg" in
834 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
835 | --no-cr | --no-c) ;;
836 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
837 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
838 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
839 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
840 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
10f2d63a
VZ
841 esac
842done
843
698dcdb6
VZ
844# NLS nuisances.
845# Only set these to C if already set. These must not be set unconditionally
846# because not all systems understand e.g. LANG=C (notably SCO).
847# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
848# Non-C LC_CTYPE values break the ctype check.
849if test "${LANG+set}" = set; then LANG=C; export LANG; fi
850if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
851if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
852if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
10f2d63a 853
698dcdb6
VZ
854# confdefs.h avoids OS command line length limits that DEFS can exceed.
855rm -rf conftest* confdefs.h
856# AIX cpp loses on an empty file, so make sure it contains at least a newline.
857echo > confdefs.h
10f2d63a 858
698dcdb6
VZ
859# A filename unique to this package, relative to the directory that
860# configure is in, which we can look for to find out if srcdir is correct.
861ac_unique_file=wx-config.in
10f2d63a
VZ
862
863# Find the source files, if location was not specified.
864if test -z "$srcdir"; then
865 ac_srcdir_defaulted=yes
866 # Try the directory containing this script, then its parent.
867 ac_prog=$0
698dcdb6 868 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
10f2d63a
VZ
869 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
870 srcdir=$ac_confdir
871 if test ! -r $srcdir/$ac_unique_file; then
872 srcdir=..
873 fi
874else
875 ac_srcdir_defaulted=no
876fi
877if test ! -r $srcdir/$ac_unique_file; then
878 if test "$ac_srcdir_defaulted" = yes; then
698dcdb6 879 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
10f2d63a 880 else
698dcdb6 881 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
10f2d63a
VZ
882 fi
883fi
698dcdb6 884srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
10f2d63a
VZ
885
886# Prefer explicitly selected file to automatically selected ones.
887if test -z "$CONFIG_SITE"; then
888 if test "x$prefix" != xNONE; then
889 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
890 else
891 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
892 fi
893fi
894for ac_site_file in $CONFIG_SITE; do
895 if test -r "$ac_site_file"; then
698dcdb6 896 echo "loading site script $ac_site_file"
10f2d63a
VZ
897 . "$ac_site_file"
898 fi
899done
900
901if test -r "$cache_file"; then
698dcdb6
VZ
902 echo "loading cache $cache_file"
903 . $cache_file
10f2d63a 904else
698dcdb6
VZ
905 echo "creating cache $cache_file"
906 > $cache_file
10f2d63a
VZ
907fi
908
909ac_ext=c
698dcdb6 910# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10f2d63a 911ac_cpp='$CPP $CPPFLAGS'
698dcdb6
VZ
912ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
913ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
914cross_compiling=$ac_cv_prog_cc_cross
915
916ac_exeext=
917ac_objext=o
918if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
919 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
920 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
921 ac_n= ac_c='
922' ac_t=' '
923 else
924 ac_n=-n ac_c= ac_t=
925 fi
10f2d63a 926else
698dcdb6 927 ac_n= ac_c='\c' ac_t=
10f2d63a 928fi
698dcdb6
VZ
929
930
10f2d63a 931
7c66a493
VZ
932ac_aux_dir=
933for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
934 if test -f $ac_dir/install-sh; then
935 ac_aux_dir=$ac_dir
936 ac_install_sh="$ac_aux_dir/install-sh -c"
937 break
938 elif test -f $ac_dir/install.sh; then
939 ac_aux_dir=$ac_dir
940 ac_install_sh="$ac_aux_dir/install.sh -c"
941 break
942 fi
943done
944if test -z "$ac_aux_dir"; then
698dcdb6 945 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
7c66a493 946fi
698dcdb6
VZ
947ac_config_guess=$ac_aux_dir/config.guess
948ac_config_sub=$ac_aux_dir/config.sub
949ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
703e0a69 950
698dcdb6
VZ
951
952# Do some error checking and defaulting for the host and target type.
953# The inputs are:
954# configure --host=HOST --target=TARGET --build=BUILD NONOPT
955#
956# The rules are:
957# 1. You are not allowed to specify --host, --target, and nonopt at the
958# same time.
959# 2. Host defaults to nonopt.
960# 3. If nonopt is not specified, then host defaults to the current host,
961# as determined by config.guess.
962# 4. Target and build default to nonopt.
963# 5. If nonopt is not specified, then target and build default to host.
7c66a493
VZ
964
965# The aliases save the names the user supplied, while $host etc.
966# will get canonicalized.
698dcdb6
VZ
967case $host---$target---$nonopt in
968NONE---*---* | *---NONE---* | *---*---NONE) ;;
969*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
970esac
971
972
973# Make sure we can run config.sub.
974if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
975else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
976fi
977
978echo $ac_n "checking host system type""... $ac_c" 1>&6
4b6b4dfc 979echo "configure:980: checking host system type" >&5
698dcdb6
VZ
980
981host_alias=$host
982case "$host_alias" in
983NONE)
984 case $nonopt in
985 NONE)
986 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
987 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
988 fi ;;
989 *) host_alias=$nonopt ;;
990 esac ;;
991esac
992
993host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
994host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
995host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
996host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
997echo "$ac_t""$host" 1>&6
998
999echo $ac_n "checking target system type""... $ac_c" 1>&6
4b6b4dfc 1000echo "configure:1001: checking target system type" >&5
698dcdb6
VZ
1001
1002target_alias=$target
1003case "$target_alias" in
1004NONE)
1005 case $nonopt in
1006 NONE) target_alias=$host_alias ;;
1007 *) target_alias=$nonopt ;;
1008 esac ;;
1009esac
1010
1011target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1012target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1013target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1014target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1015echo "$ac_t""$target" 1>&6
1016
1017echo $ac_n "checking build system type""... $ac_c" 1>&6
4b6b4dfc 1018echo "configure:1019: checking build system type" >&5
698dcdb6
VZ
1019
1020build_alias=$build
1021case "$build_alias" in
1022NONE)
1023 case $nonopt in
1024 NONE) build_alias=$host_alias ;;
1025 *) build_alias=$nonopt ;;
1026 esac ;;
1027esac
1028
1029build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1030build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1031build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1032build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1033echo "$ac_t""$build" 1>&6
1034
1035test "$host_alias" != "$target_alias" &&
7c66a493
VZ
1036 test "$program_prefix$program_suffix$program_transform_name" = \
1037 NONENONEs,x,x, &&
1038 program_prefix=${target_alias}-
1039
698dcdb6
VZ
1040
1041
10f2d63a 1042WX_MAJOR_VERSION_NUMBER=2
37d403aa 1043WX_MINOR_VERSION_NUMBER=3
a0d927d1 1044WX_RELEASE_NUMBER=3
10f2d63a 1045
10f2d63a 1046WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER
10f2d63a 1047WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER
6426998c 1048
978f1259
RL
1049WX_MSW_VERSION=$WX_MAJOR_VERSION_NUMBER$WX_MINOR_VERSION_NUMBER$WX_RELEASE_NUMBER
1050
a0d927d1 1051WX_CURRENT=2
6426998c
RL
1052WX_REVISION=0
1053WX_AGE=0
1054
698dcdb6
VZ
1055
1056
10f2d63a
VZ
1057USE_UNIX=1
1058USE_WIN32=0
f9bc1684 1059USE_DOS=0
b12915c1 1060USE_BEOS=0
1216f52d 1061USE_MAC=0
b12915c1 1062
10f2d63a
VZ
1063USE_LINUX=
1064USE_SGI=
1065USE_HPUX=
1066USE_SYSV=
1067USE_SVR4=
1068USE_AIX=
1069USE_SUN=
1070USE_SOLARIS=
1071USE_SUNOS=
1072USE_ALPHA=
1073USE_OSF=
1074USE_BSD=
f11bdd03 1075USE_DARWIN=
10f2d63a 1076USE_FREEBSD=
95c8801c 1077USE_OPENBSD=
f6bcfd97 1078USE_NETBSD=
10f2d63a
VZ
1079USE_VMS=
1080USE_ULTRIX=
10f2d63a
VZ
1081USE_DATA_GENERAL=
1082
ab9b9eab
VZ
1083NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1084
3f345b47
VZ
1085CPP_MT_FLAG=-D_REENTRANT
1086
1725144d 1087ALL_TOOLKITS="GTK MAC MGL MICROWIN MOTIF MSW PM WINE"
10f2d63a
VZ
1088
1089DEFAULT_wxUSE_GTK=0
1e6feb95
VZ
1090DEFAULT_wxUSE_MAC=0
1091DEFAULT_wxUSE_MGL=0
1725144d 1092DEFAULT_wxUSE_MICROWIN=0
10f2d63a
VZ
1093DEFAULT_wxUSE_MOTIF=0
1094DEFAULT_wxUSE_MSW=0
e07802fc 1095DEFAULT_wxUSE_PM=0
1e6feb95 1096DEFAULT_wxUSE_WINE=0
10f2d63a
VZ
1097
1098DEFAULT_DEFAULT_wxUSE_GTK=0
1e6feb95
VZ
1099DEFAULT_DEFAULT_wxUSE_MAC=0
1100DEFAULT_DEFAULT_wxUSE_MGL=0
1725144d 1101DEFAULT_DEFAULT_wxUSE_MICROWIN=0
10f2d63a
VZ
1102DEFAULT_DEFAULT_wxUSE_MOTIF=0
1103DEFAULT_DEFAULT_wxUSE_MSW=0
e07802fc 1104DEFAULT_DEFAULT_wxUSE_PM=0
1e6feb95 1105DEFAULT_DEFAULT_wxUSE_WINE=0
10f2d63a 1106
d6a55c4b 1107PROGRAM_EXT=
3a922bb4 1108SO_SUFFIX=so
d6a55c4b 1109
10f2d63a
VZ
1110case "${host}" in
1111 *-hp-hpux* )
1112 USE_HPUX=1
1113 DEFAULT_DEFAULT_wxUSE_MOTIF=1
ab9b9eab 1114 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
3a922bb4 1115 SO_SUFFIX=sl
698dcdb6 1116 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1117#define __HPUX__ 1
1118EOF
1119
1120 ;;
1121 *-*-linux* )
1122 USE_LINUX=1
698dcdb6 1123 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1124#define __LINUX__ 1
1125EOF
1126
1127 TMP=`uname -m`
1128 if test "x$TMP" = "xalpha"; then
1129 USE_ALPHA=1
698dcdb6 1130 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1131#define __ALPHA__ 1
1132EOF
1133
1134 fi
1135 DEFAULT_DEFAULT_wxUSE_GTK=1
1136 ;;
1137 *-*-irix5* | *-*-irix6* )
1138 USE_SGI=1
1139 USE_SVR4=1
698dcdb6 1140 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1141#define __SGI__ 1
1142EOF
1143
698dcdb6 1144 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1145#define __SVR4__ 1
1146EOF
1147
1148 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1149 ;;
1150 *-*-solaris2* )
1151 USE_SUN=1
1152 USE_SOLARIS=1
1153 USE_SVR4=1
698dcdb6 1154 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1155#define __SUN__ 1
1156EOF
1157
698dcdb6 1158 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1159#define __SOLARIS__ 1
1160EOF
1161
698dcdb6 1162 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1163#define __SVR4__ 1
1164EOF
1165
1166 DEFAULT_DEFAULT_wxUSE_MOTIF=1
ab9b9eab 1167 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
10f2d63a
VZ
1168 ;;
1169 *-*-sunos4* )
1170 USE_SUN=1
1171 USE_SUNOS=1
1172 USE_BSD=1
698dcdb6 1173 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1174#define __SUN__ 1
1175EOF
1176
698dcdb6 1177 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1178#define __SUNOS__ 1
1179EOF
1180
698dcdb6 1181 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1182#define __BSD__ 1
1183EOF
1184
1185 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1186 ;;
f6bcfd97 1187 *-*-freebsd*)
10f2d63a
VZ
1188 USE_BSD=1
1189 USE_FREEBSD=1
3f345b47 1190 CPP_MT_FLAG=-D_THREAD_SAFE
698dcdb6 1191 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1192#define __FREEBSD__ 1
1193EOF
1194
698dcdb6 1195 cat >> confdefs.h <<\EOF
10f2d63a 1196#define __BSD__ 1
95c8801c
VS
1197EOF
1198
1199 DEFAULT_DEFAULT_wxUSE_GTK=1
1200 ;;
1201 *-*-openbsd*)
1202 USE_BSD=1
1203 USE_OPENBSD=1
698dcdb6 1204 cat >> confdefs.h <<\EOF
95c8801c
VS
1205#define __FREEBSD__ 1
1206EOF
1207
698dcdb6 1208 cat >> confdefs.h <<\EOF
95c8801c 1209#define __OPENBSD__ 1
f6bcfd97
BP
1210EOF
1211
1212 DEFAULT_DEFAULT_wxUSE_GTK=1
1213 ;;
1214 *-*-netbsd*)
1215 USE_BSD=1
1216 USE_NETBSD=1
698dcdb6 1217 cat >> confdefs.h <<\EOF
f6bcfd97
BP
1218#define __FREEBSD__ 1
1219EOF
1220
698dcdb6 1221 cat >> confdefs.h <<\EOF
f6bcfd97 1222#define __NETBSD__ 1
10f2d63a
VZ
1223EOF
1224
1225 DEFAULT_DEFAULT_wxUSE_GTK=1
1226 ;;
1227 *-*-osf* )
1228 USE_ALPHA=1
1229 USE_OSF=1
698dcdb6 1230 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1231#define __ALPHA__ 1
1232EOF
1233
698dcdb6 1234 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1235#define __OSF__ 1
1236EOF
1237
1238 DEFAULT_DEFAULT_wxUSE_MOTIF=1
f6bcfd97 1239 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
10f2d63a
VZ
1240 ;;
1241 *-*-dgux5* )
1242 USE_ALPHA=1
1243 USE_SVR4=1
698dcdb6 1244 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1245#define __ALPHA__ 1
1246EOF
1247
698dcdb6 1248 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1249#define __SVR4__ 1
1250EOF
1251
1252 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1253 ;;
1254 *-*-sysv5* )
1255 USE_SYSV=1
1256 USE_SVR4=1
698dcdb6 1257 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1258#define __SYSV__ 1
1259EOF
1260
698dcdb6 1261 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1262#define __SVR4__ 1
1263EOF
1264
1265 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1266 ;;
1267 *-*-aix* )
1268 USE_AIX=1
1269 USE_SYSV=1
1270 USE_SVR4=1
698dcdb6 1271 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1272#define __AIX__ 1
1273EOF
1274
698dcdb6 1275 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1276#define __SYSV__ 1
1277EOF
1278
698dcdb6 1279 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1280#define __SVR4__ 1
1281EOF
1282
1283 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1284 ;;
1285
1c8183e2 1286 *-*-cygwin* | *-*-mingw32* )
10f2d63a
VZ
1287 USE_UNIX=0
1288 USE_WIN32=1
3a922bb4 1289 SO_SUFFIX=dll
698dcdb6 1290 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1291#define __WIN32__ 1
1292EOF
1293
698dcdb6 1294 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1295#define __WIN95__ 1
1296EOF
1297
698dcdb6 1298 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1299#define __WINDOWS__ 1
1300EOF
1301
698dcdb6 1302 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1303#define __GNUWIN32__ 1
1304EOF
1305
698dcdb6 1306 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1307#define STRICT 1
1308EOF
1309
698dcdb6 1310 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1311#define WINVER 0x0400
1312EOF
1313
cf27ef00 1314 PROGRAM_EXT=".exe"
7b7a7637 1315 RESCOMP=windres
10f2d63a
VZ
1316 DEFAULT_DEFAULT_wxUSE_MSW=1
1317 ;;
1318
f9bc1684
VS
1319 *-pc-msdosdjgpp )
1320 USE_UNIX=0
1321 USE_DOS=1
1322 cat >> confdefs.h <<\EOF
1323#define __DOS__ 1
1324EOF
1325
1326 PROGRAM_EXT=".exe"
1327 DEFAULT_DEFAULT_wxUSE_MGL=1
1328 DEFAULT_DEFAULT_wxUSE_SHARED=0
1329 ;;
1330
6fa882bd 1331 *-pc-os2_emx | *-pc-os2-emx )
698dcdb6 1332 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1333#define __EMX__ 1
1334EOF
1335
cf27ef00 1336 PROGRAM_EXT=".exe"
e07802fc 1337 DEFAULT_DEFAULT_wxUSE_PM=1
10f2d63a
VZ
1338 ;;
1339
d08b457b
GD
1340 powerpc-*-darwin* )
1341 USE_BSD=1
f11bdd03 1342 USE_DARWIN=1
3f345b47 1343 CPP_MT_FLAG=
3a922bb4 1344 SO_SUFFIX=dylib
698dcdb6 1345 cat >> confdefs.h <<\EOF
f11bdd03 1346#define __BSD__ 1
b4085ce6
GD
1347EOF
1348
698dcdb6 1349 cat >> confdefs.h <<\EOF
f11bdd03 1350#define __DARWIN__ 1
d08b457b
GD
1351EOF
1352
1353 cat >> confdefs.h <<\EOF
1354#define __POWERPC__ 1
b4085ce6
GD
1355EOF
1356
1357 DEFAULT_DEFAULT_wxUSE_MAC=1
1358 ;;
1359
b12915c1
VZ
1360 *-*-beos* )
1361 USE_BEOS=1
698dcdb6 1362 cat >> confdefs.h <<\EOF
b12915c1
VZ
1363#define __BEOS__ 1
1364EOF
1365
1366 ;;
1367
10f2d63a 1368 *)
698dcdb6 1369 { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; }
10f2d63a
VZ
1370esac
1371
1372if test "$USE_UNIX" = 1 ; then
b12915c1 1373 wxUSE_UNIX=yes
698dcdb6 1374 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1375#define __UNIX__ 1
1376EOF
1377
10f2d63a
VZ
1378fi
1379
2389f33b
VZ
1380if test "$USE_LINUX" = 1; then
1381 echo $ac_n "checking for glibc 2.1 or later""... $ac_c" 1>&6
4b6b4dfc 1382echo "configure:1383: checking for glibc 2.1 or later" >&5
2389f33b
VZ
1383if eval "test \"`echo '$''{'wx_lib_glibc21'+set}'`\" = set"; then
1384 echo $ac_n "(cached) $ac_c" 1>&6
1385else
a72a4bfa
VS
1386
1387 cat > conftest.$ac_ext <<EOF
4b6b4dfc 1388#line 1389 "configure"
2389f33b
VZ
1389#include "confdefs.h"
1390#include <features.h>
1391int main() {
1392
1393 #if !__GLIBC_PREREQ(2, 1)
1394 #error not glibc2.1
1395 #endif
1396
1397; return 0; }
1398EOF
4b6b4dfc 1399if { (eval echo configure:1400: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2389f33b
VZ
1400 rm -rf conftest*
1401
1402 wx_lib_glibc21=yes
1403
1404else
1405 echo "configure: failed program was:" >&5
1406 cat conftest.$ac_ext >&5
1407 rm -rf conftest*
1408
1409 wx_lib_glibc21=no
1410
1411
1412fi
1413rm -f conftest*
1414
1415fi
1416
1417echo "$ac_t""$wx_lib_glibc21" 1>&6
2389f33b
VZ
1418 if test "$wx_lib_glibc21" = "yes"; then
1419 cat >> confdefs.h <<\EOF
1420#define wxHAVE_GLIBC2 1
1421EOF
1422
1423 fi
1424fi
10f2d63a 1425
1e487827 1426
1e487827 1427
6232543b 1428
10f2d63a
VZ
1429 wx_arg_cache_file="configarg.cache"
1430 echo "loading argument cache $wx_arg_cache_file"
1431 rm -f ${wx_arg_cache_file}.tmp
1432 touch ${wx_arg_cache_file}.tmp
1433 touch ${wx_arg_cache_file}
698dcdb6 1434
10f2d63a
VZ
1435
1436DEBUG_CONFIGURE=0
1437if test $DEBUG_CONFIGURE = 1; then
1e6feb95
VZ
1438 DEFAULT_wxUSE_UNIVERSAL=no
1439
10f2d63a
VZ
1440 DEFAULT_wxUSE_THREADS=yes
1441
1442 DEFAULT_wxUSE_SHARED=yes
3a922bb4 1443 DEFAULT_wxUSE_SONAME=no
1e6feb95 1444 DEFAULT_wxUSE_OPTIMISE=no
10f2d63a
VZ
1445 DEFAULT_wxUSE_PROFILE=no
1446 DEFAULT_wxUSE_NO_DEPS=no
f676c7ff
MB
1447 DEFAULT_wxUSE_NO_RTTI=yes
1448 DEFAULT_wxUSE_NO_EXCEPTIONS=yes
10f2d63a
VZ
1449 DEFAULT_wxUSE_PERMISSIVE=no
1450 DEFAULT_wxUSE_DEBUG_FLAG=yes
1451 DEFAULT_wxUSE_DEBUG_INFO=yes
1452 DEFAULT_wxUSE_DEBUG_GDB=yes
1453 DEFAULT_wxUSE_MEM_TRACING=no
1454 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1455 DEFAULT_wxUSE_DMALLOC=no
a7ae7112 1456 DEFAULT_wxUSE_PRECOMP=no
10f2d63a
VZ
1457 DEFAULT_wxUSE_APPLE_IEEE=no
1458
1459 DEFAULT_wxUSE_LOG=yes
1e6feb95
VZ
1460 DEFAULT_wxUSE_LOGWINDOW=no
1461 DEFAULT_wxUSE_LOGGUI=no
69d27ff7 1462 DEFAULT_wxUSE_LOGDIALOG=no
10f2d63a
VZ
1463
1464 DEFAULT_wxUSE_GUI=yes
1e6feb95 1465 DEFAULT_wxUSE_CONTROLS=no
10f2d63a 1466
3e44f09d 1467 DEFAULT_wxUSE_REGEX=no
10f2d63a
VZ
1468 DEFAULT_wxUSE_ZLIB=no
1469 DEFAULT_wxUSE_LIBPNG=no
1470 DEFAULT_wxUSE_LIBJPEG=no
c7a2bf27 1471 DEFAULT_wxUSE_LIBTIFF=no
10f2d63a 1472 DEFAULT_wxUSE_ODBC=no
3fed1840 1473 DEFAULT_wxUSE_FREETYPE=no
bdad4e7e 1474 DEFAULT_wxUSE_OPENGL=no
10f2d63a 1475
eb4efbdc 1476 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
4f3c5f06 1477 DEFAULT_wxUSE_SNGLINST_CHECKER=no
10f2d63a 1478 DEFAULT_wxUSE_STD_IOSTREAM=no
1e6feb95
VZ
1479 DEFAULT_wxUSE_CMDLINE_PARSER=no
1480 DEFAULT_wxUSE_DATETIME=no
1481 DEFAULT_wxUSE_TIMEDATE=no
1482 DEFAULT_wxUSE_TIMER=no
1483 DEFAULT_wxUSE_STOPWATCH=no
10f2d63a 1484 DEFAULT_wxUSE_FILE=no
1e6feb95 1485 DEFAULT_wxUSE_FFILE=no
a3a584a7 1486 DEFAULT_wxUSE_TEXTBUFFER=no
10f2d63a 1487 DEFAULT_wxUSE_TEXTFILE=no
10f2d63a
VZ
1488 DEFAULT_wxUSE_WAVE=no
1489 DEFAULT_wxUSE_INTL=no
1490 DEFAULT_wxUSE_CONFIG=no
1e6feb95 1491 DEFAULT_wxUSE_FONTMAP=no
10f2d63a
VZ
1492 DEFAULT_wxUSE_STREAMS=no
1493 DEFAULT_wxUSE_SOCKETS=no
1494 DEFAULT_wxUSE_DIALUP_MANAGER=no
10f2d63a 1495 DEFAULT_wxUSE_JOYSTICK=no
6bff71f8 1496 DEFAULT_wxUSE_DYNLIB_CLASS=no
0b9ab0bd 1497 DEFAULT_wxUSE_DYNAMIC_LOADER=no
10f2d63a 1498 DEFAULT_wxUSE_LONGLONG=no
e8f65ba6 1499 DEFAULT_wxUSE_GEOMETRY=no
10f2d63a
VZ
1500
1501 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
1502 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
1503 DEFAULT_wxUSE_POSTSCRIPT=no
1504
1505 DEFAULT_wxUSE_X_RESOURCES=no
1506 DEFAULT_wxUSE_CLIPBOARD=no
1507 DEFAULT_wxUSE_TOOLTIPS=no
1508 DEFAULT_wxUSE_DRAG_AND_DROP=no
24fd6d87 1509 DEFAULT_wxUSE_DRAGIMAGE=no
10f2d63a
VZ
1510 DEFAULT_wxUSE_SPLINES=no
1511
1512 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
1513 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
1514 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
1515
1516 DEFAULT_wxUSE_PROLOGIO=no
1517 DEFAULT_wxUSE_RESOURCES=no
1518 DEFAULT_wxUSE_CONSTRAINTS=no
1519 DEFAULT_wxUSE_IPC=no
1520 DEFAULT_wxUSE_HELP=no
29fd3c0c 1521 DEFAULT_wxUSE_MS_HTML_HELP=no
3379ed37 1522 DEFAULT_wxUSE_WXHTML_HELP=no
24176f2c 1523 DEFAULT_wxUSE_TREELAYOUT=no
10f2d63a 1524 DEFAULT_wxUSE_METAFILE=no
1e6feb95 1525 DEFAULT_wxUSE_MIMETYPE=no
4cdb0ab0
VS
1526 DEFAULT_wxUSE_SYSTEM_OPTIONS=no
1527 DEFAULT_wxUSE_PROTOCOL=no
1528 DEFAULT_wxUSE_PROTOCOL_HTTP=no
1529 DEFAULT_wxUSE_PROTOCOL_FTP=no
1530 DEFAULT_wxUSE_PROTOCOL_FILE=no
1531 DEFAULT_wxUSE_URL=no
1532
10f2d63a 1533 DEFAULT_wxUSE_COMMONDLGS=no
1e6feb95
VZ
1534 DEFAULT_wxUSE_CHOICEDLG=no
1535 DEFAULT_wxUSE_COLOURDLG=no
10f2d63a 1536 DEFAULT_wxUSE_DIRDLG=no
1e6feb95 1537 DEFAULT_wxUSE_FILEDLG=no
8db37e06 1538 DEFAULT_wxUSE_FINDREPLDLG=no
1e6feb95
VZ
1539 DEFAULT_wxUSE_FONTDLG=no
1540 DEFAULT_wxUSE_MSGDLG=no
1541 DEFAULT_wxUSE_NUMBERDLG=no
10f2d63a 1542 DEFAULT_wxUSE_TEXTDLG=no
cbca9943 1543 DEFAULT_wxUSE_SPLASH=no
10f2d63a
VZ
1544 DEFAULT_wxUSE_STARTUP_TIPS=no
1545 DEFAULT_wxUSE_PROGRESSDLG=no
b1f5d087
VZ
1546 DEFAULT_wxUSE_WIZARDDLG=no
1547
1e6feb95 1548 DEFAULT_wxUSE_MENUS=no
10f2d63a
VZ
1549 DEFAULT_wxUSE_MINIFRAME=no
1550 DEFAULT_wxUSE_HTML=no
24528b0c 1551 DEFAULT_wxUSE_FILESYSTEM=no
10f2d63a
VZ
1552 DEFAULT_wxUSE_FS_INET=no
1553 DEFAULT_wxUSE_FS_ZIP=no
1554 DEFAULT_wxUSE_BUSYINFO=no
1555 DEFAULT_wxUSE_ZIPSTREAM=no
1e6feb95 1556 DEFAULT_wxUSE_VALIDATORS=no
10f2d63a
VZ
1557
1558 DEFAULT_wxUSE_ACCEL=no
1e6feb95 1559 DEFAULT_wxUSE_BUTTON=no
10f2d63a 1560 DEFAULT_wxUSE_BMPBUTTON=no
1e6feb95
VZ
1561 DEFAULT_wxUSE_CALCTRL=no
1562 DEFAULT_wxUSE_CARET=no
10f2d63a
VZ
1563 DEFAULT_wxUSE_CHECKBOX=no
1564 DEFAULT_wxUSE_CHECKLST=no
1e6feb95 1565 DEFAULT_wxUSE_CHOICE=no
10f2d63a
VZ
1566 DEFAULT_wxUSE_COMBOBOX=no
1567 DEFAULT_wxUSE_GAUGE=no
1568 DEFAULT_wxUSE_GRID=no
1569 DEFAULT_wxUSE_NEW_GRID=no
1570 DEFAULT_wxUSE_IMAGLIST=no
1571 DEFAULT_wxUSE_LISTBOX=no
1572 DEFAULT_wxUSE_LISTCTRL=no
1573 DEFAULT_wxUSE_NOTEBOOK=no
24176f2c 1574 DEFAULT_wxUSE_PROPSHEET=no
10f2d63a
VZ
1575 DEFAULT_wxUSE_RADIOBOX=no
1576 DEFAULT_wxUSE_RADIOBTN=no
1577 DEFAULT_wxUSE_SASH=no
1578 DEFAULT_wxUSE_SCROLLBAR=no
1579 DEFAULT_wxUSE_SLIDER=no
1580 DEFAULT_wxUSE_SPINBTN=no
56cfaa52 1581 DEFAULT_wxUSE_SPINCTRL=no
10f2d63a
VZ
1582 DEFAULT_wxUSE_SPLITTER=no
1583 DEFAULT_wxUSE_STATBMP=no
1584 DEFAULT_wxUSE_STATBOX=no
1585 DEFAULT_wxUSE_STATLINE=no
1e6feb95 1586 DEFAULT_wxUSE_STATTEXT=no
10f2d63a
VZ
1587 DEFAULT_wxUSE_STATUSBAR=yes
1588 DEFAULT_wxUSE_TABDIALOG=no
1e6feb95 1589 DEFAULT_wxUSE_TEXTCTRL=no
1db8dc4a 1590 DEFAULT_wxUSE_TOGGLEBTN=no
10f2d63a 1591 DEFAULT_wxUSE_TOOLBAR=no
360d6699
VZ
1592 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
1593 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
10f2d63a 1594 DEFAULT_wxUSE_TREECTRL=no
9f41d601 1595 DEFAULT_wxUSE_POPUPWIN=no
9926e4a4 1596 DEFAULT_wxUSE_TIPWINDOW=no
10f2d63a
VZ
1597
1598 DEFAULT_wxUSE_UNICODE=no
a72a4bfa 1599 DEFAULT_wxUSE_UNICODE_MSLU=no
10f2d63a
VZ
1600 DEFAULT_wxUSE_WCSRTOMBS=no
1601
edae8572 1602 DEFAULT_wxUSE_PALETTE=no
0046ff7c 1603 DEFAULT_wxUSE_IMAGE=no
10f2d63a
VZ
1604 DEFAULT_wxUSE_GIF=no
1605 DEFAULT_wxUSE_PCX=no
1606 DEFAULT_wxUSE_PNM=no
4b6b4dfc 1607 DEFAULT_wxUSE_IFF=no
0046ff7c 1608 DEFAULT_wxUSE_XPM=no
658974ae 1609 DEFAULT_wxUSE_ICO_CUR=no
10f2d63a 1610else
1e6feb95
VZ
1611 DEFAULT_wxUSE_UNIVERSAL=no
1612
10f2d63a
VZ
1613 DEFAULT_wxUSE_THREADS=yes
1614
1615 DEFAULT_wxUSE_SHARED=yes
3a922bb4 1616 DEFAULT_wxUSE_SONAME=no
10f2d63a
VZ
1617 DEFAULT_wxUSE_OPTIMISE=yes
1618 DEFAULT_wxUSE_PROFILE=no
1619 DEFAULT_wxUSE_NO_DEPS=no
f676c7ff
MB
1620 DEFAULT_wxUSE_NO_RTTI=yes
1621 DEFAULT_wxUSE_NO_EXCEPTIONS=yes
10f2d63a
VZ
1622 DEFAULT_wxUSE_PERMISSIVE=no
1623 DEFAULT_wxUSE_DEBUG_FLAG=no
1624 DEFAULT_wxUSE_DEBUG_INFO=no
1625 DEFAULT_wxUSE_DEBUG_GDB=no
1626 DEFAULT_wxUSE_MEM_TRACING=no
1627 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1628 DEFAULT_wxUSE_DMALLOC=no
a7ae7112 1629 DEFAULT_wxUSE_PRECOMP=no
10f2d63a
VZ
1630 DEFAULT_wxUSE_APPLE_IEEE=yes
1631
1632 DEFAULT_wxUSE_LOG=yes
d73be714
VZ
1633 DEFAULT_wxUSE_LOGWINDOW=yes
1634 DEFAULT_wxUSE_LOGGUI=yes
69d27ff7 1635 DEFAULT_wxUSE_LOGDIALOG=yes
10f2d63a
VZ
1636
1637 DEFAULT_wxUSE_GUI=yes
1638
831b3152 1639 DEFAULT_wxUSE_REGEX=yes
10f2d63a
VZ
1640 DEFAULT_wxUSE_ZLIB=yes
1641 DEFAULT_wxUSE_LIBPNG=yes
1642 DEFAULT_wxUSE_LIBJPEG=yes
b47c832e 1643 DEFAULT_wxUSE_LIBTIFF=yes
16b52fa1 1644 DEFAULT_wxUSE_ODBC=no
3fed1840 1645 DEFAULT_wxUSE_FREETYPE=no
bdad4e7e 1646 DEFAULT_wxUSE_OPENGL=no
10f2d63a 1647
eb4efbdc 1648 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
4f3c5f06 1649 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
10f2d63a 1650 DEFAULT_wxUSE_STD_IOSTREAM=no
1e6feb95
VZ
1651 DEFAULT_wxUSE_CMDLINE_PARSER=yes
1652 DEFAULT_wxUSE_DATETIME=yes
1653 DEFAULT_wxUSE_TIMEDATE=no
1654 DEFAULT_wxUSE_TIMER=yes
1655 DEFAULT_wxUSE_STOPWATCH=yes
10f2d63a 1656 DEFAULT_wxUSE_FILE=yes
1e6feb95 1657 DEFAULT_wxUSE_FFILE=yes
a3a584a7 1658 DEFAULT_wxUSE_TEXTBUFFER=yes
10f2d63a 1659 DEFAULT_wxUSE_TEXTFILE=yes
10f2d63a
VZ
1660 DEFAULT_wxUSE_WAVE=no
1661 DEFAULT_wxUSE_INTL=yes
1662 DEFAULT_wxUSE_CONFIG=yes
1e6feb95 1663 DEFAULT_wxUSE_FONTMAP=yes
10f2d63a
VZ
1664 DEFAULT_wxUSE_STREAMS=yes
1665 DEFAULT_wxUSE_SOCKETS=yes
1666 DEFAULT_wxUSE_DIALUP_MANAGER=yes
10f2d63a 1667 DEFAULT_wxUSE_JOYSTICK=yes
6bff71f8 1668 DEFAULT_wxUSE_DYNLIB_CLASS=yes
466367be 1669 DEFAULT_wxUSE_DYNAMIC_LOADER=no
b685cd9b 1670 DEFAULT_wxUSE_LONGLONG=yes
e8f65ba6 1671 DEFAULT_wxUSE_GEOMETRY=yes
10f2d63a
VZ
1672
1673 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
1674 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
1675 DEFAULT_wxUSE_POSTSCRIPT=yes
1676
1677 DEFAULT_wxUSE_X_RESOURCES=no
1678 DEFAULT_wxUSE_CLIPBOARD=yes
1679 DEFAULT_wxUSE_TOOLTIPS=yes
1680 DEFAULT_wxUSE_DRAG_AND_DROP=yes
24fd6d87 1681 DEFAULT_wxUSE_DRAGIMAGE=yes
10f2d63a
VZ
1682 DEFAULT_wxUSE_SPLINES=yes
1683
1684 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
1685 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
1686 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
1687
1688 DEFAULT_wxUSE_PROLOGIO=yes
1689 DEFAULT_wxUSE_RESOURCES=yes
1690 DEFAULT_wxUSE_CONSTRAINTS=yes
1691 DEFAULT_wxUSE_IPC=yes
1692 DEFAULT_wxUSE_HELP=yes
29fd3c0c 1693 DEFAULT_wxUSE_MS_HTML_HELP=yes
3379ed37 1694 DEFAULT_wxUSE_WXHTML_HELP=yes
24176f2c 1695 DEFAULT_wxUSE_TREELAYOUT=yes
10f2d63a 1696 DEFAULT_wxUSE_METAFILE=yes
1e6feb95 1697 DEFAULT_wxUSE_MIMETYPE=yes
3e44f09d 1698 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
4cdb0ab0
VS
1699 DEFAULT_wxUSE_PROTOCOL=yes
1700 DEFAULT_wxUSE_PROTOCOL_HTTP=yes
1701 DEFAULT_wxUSE_PROTOCOL_FTP=yes
1702 DEFAULT_wxUSE_PROTOCOL_FILE=yes
1703 DEFAULT_wxUSE_URL=yes
10f2d63a
VZ
1704
1705 DEFAULT_wxUSE_COMMONDLGS=yes
1e6feb95
VZ
1706 DEFAULT_wxUSE_CHOICEDLG=yes
1707 DEFAULT_wxUSE_COLOURDLG=yes
10f2d63a 1708 DEFAULT_wxUSE_DIRDLG=yes
1e6feb95 1709 DEFAULT_wxUSE_FILEDLG=yes
8db37e06 1710 DEFAULT_wxUSE_FINDREPLDLG=yes
1e6feb95
VZ
1711 DEFAULT_wxUSE_FONTDLG=yes
1712 DEFAULT_wxUSE_MSGDLG=yes
1713 DEFAULT_wxUSE_NUMBERDLG=yes
10f2d63a 1714 DEFAULT_wxUSE_TEXTDLG=yes
cbca9943 1715 DEFAULT_wxUSE_SPLASH=yes
10f2d63a
VZ
1716 DEFAULT_wxUSE_STARTUP_TIPS=yes
1717 DEFAULT_wxUSE_PROGRESSDLG=yes
f33f19dd
VZ
1718 DEFAULT_wxUSE_WIZARDDLG=yes
1719
1e6feb95 1720 DEFAULT_wxUSE_MENUS=yes
10f2d63a
VZ
1721 DEFAULT_wxUSE_MINIFRAME=yes
1722 DEFAULT_wxUSE_HTML=yes
24528b0c 1723 DEFAULT_wxUSE_FILESYSTEM=yes
10f2d63a
VZ
1724 DEFAULT_wxUSE_FS_INET=yes
1725 DEFAULT_wxUSE_FS_ZIP=yes
1726 DEFAULT_wxUSE_BUSYINFO=yes
1727 DEFAULT_wxUSE_ZIPSTREAM=yes
1728 DEFAULT_wxUSE_VALIDATORS=yes
1729
1730 DEFAULT_wxUSE_ACCEL=yes
1e6feb95 1731 DEFAULT_wxUSE_BUTTON=yes
10f2d63a 1732 DEFAULT_wxUSE_BMPBUTTON=yes
1e6feb95
VZ
1733 DEFAULT_wxUSE_CALCTRL=yes
1734 DEFAULT_wxUSE_CARET=yes
10f2d63a
VZ
1735 DEFAULT_wxUSE_CHECKBOX=yes
1736 DEFAULT_wxUSE_CHECKLST=yes
1737 DEFAULT_wxUSE_CHOICE=yes
1738 DEFAULT_wxUSE_COMBOBOX=yes
1739 DEFAULT_wxUSE_GAUGE=yes
1740 DEFAULT_wxUSE_GRID=yes
cc977e5f 1741 DEFAULT_wxUSE_NEW_GRID=yes
10f2d63a
VZ
1742 DEFAULT_wxUSE_IMAGLIST=yes
1743 DEFAULT_wxUSE_LISTBOX=yes
1744 DEFAULT_wxUSE_LISTCTRL=yes
1745 DEFAULT_wxUSE_NOTEBOOK=yes
24176f2c 1746 DEFAULT_wxUSE_PROPSHEET=yes
10f2d63a
VZ
1747 DEFAULT_wxUSE_RADIOBOX=yes
1748 DEFAULT_wxUSE_RADIOBTN=yes
1749 DEFAULT_wxUSE_SASH=yes
1750 DEFAULT_wxUSE_SCROLLBAR=yes
1751 DEFAULT_wxUSE_SLIDER=yes
1752 DEFAULT_wxUSE_SPINBTN=yes
56cfaa52 1753 DEFAULT_wxUSE_SPINCTRL=yes
10f2d63a
VZ
1754 DEFAULT_wxUSE_SPLITTER=yes
1755 DEFAULT_wxUSE_STATBMP=yes
1756 DEFAULT_wxUSE_STATBOX=yes
1757 DEFAULT_wxUSE_STATLINE=yes
1e6feb95 1758 DEFAULT_wxUSE_STATTEXT=yes
10f2d63a
VZ
1759 DEFAULT_wxUSE_STATUSBAR=yes
1760 DEFAULT_wxUSE_TABDIALOG=no
1e6feb95 1761 DEFAULT_wxUSE_TEXTCTRL=yes
1db8dc4a 1762 DEFAULT_wxUSE_TOGGLEBTN=yes
10f2d63a 1763 DEFAULT_wxUSE_TOOLBAR=yes
360d6699
VZ
1764 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
1765 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
10f2d63a 1766 DEFAULT_wxUSE_TREECTRL=yes
9f41d601 1767 DEFAULT_wxUSE_POPUPWIN=yes
9926e4a4 1768 DEFAULT_wxUSE_TIPWINDOW=yes
10f2d63a
VZ
1769
1770 DEFAULT_wxUSE_UNICODE=no
a72a4bfa 1771 DEFAULT_wxUSE_UNICODE_MSLU=yes
10f2d63a
VZ
1772 DEFAULT_wxUSE_WCSRTOMBS=no
1773
edae8572 1774 DEFAULT_wxUSE_PALETTE=yes
0046ff7c 1775 DEFAULT_wxUSE_IMAGE=yes
10f2d63a
VZ
1776 DEFAULT_wxUSE_GIF=yes
1777 DEFAULT_wxUSE_PCX=yes
4b6b4dfc 1778 DEFAULT_wxUSE_IFF=yes
10f2d63a 1779 DEFAULT_wxUSE_PNM=yes
0046ff7c 1780 DEFAULT_wxUSE_XPM=yes
658974ae 1781 DEFAULT_wxUSE_ICO_CUR=yes
10f2d63a
VZ
1782fi
1783
698dcdb6
VZ
1784
1785
10f2d63a
VZ
1786for toolkit in `echo $ALL_TOOLKITS`; do
1787 LINE=`grep "wxUSE_$toolkit" ${wx_arg_cache_file}`
1788 if test "x$LINE" != x ; then
1789 has_toolkit_in_cache=1
1790 eval "DEFAULT_$LINE"
1791 eval "CACHE_$toolkit=1"
1792 fi
1793done
1794
698dcdb6
VZ
1795
1796
1797 echo $ac_n "checking for --enable-gui""... $ac_c" 1>&6
4b6b4dfc 1798echo "configure:1799: checking for --enable-gui" >&5
10f2d63a
VZ
1799 no_cache=0
1800 # Check whether --enable-gui or --disable-gui was given.
1801if test "${enable_gui+set}" = set; then
1802 enableval="$enable_gui"
698dcdb6 1803
10f2d63a
VZ
1804 if test "$enableval" = yes; then
1805 ac_cv_use_gui='wxUSE_GUI=yes'
1806 else
1807 ac_cv_use_gui='wxUSE_GUI=no'
1808 fi
698dcdb6 1809
10f2d63a 1810else
698dcdb6 1811
10f2d63a
VZ
1812 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
1813 if test "x$LINE" != x ; then
1814 eval "DEFAULT_$LINE"
1815 else
1816 no_cache=1
1817 fi
1818
1819 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
698dcdb6
VZ
1820
1821fi
10f2d63a
VZ
1822
1823
1824 eval "$ac_cv_use_gui"
1825 if test "$no_cache" != 1; then
1826 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
1827 fi
1828
1829 if test "$wxUSE_GUI" = yes; then
698dcdb6 1830 echo "$ac_t""yes" 1>&6
10f2d63a 1831 else
698dcdb6 1832 echo "$ac_t""no" 1>&6
10f2d63a 1833 fi
698dcdb6 1834
10f2d63a 1835
b12915c1 1836if test "$wxUSE_GUI" = "yes"; then
10f2d63a 1837
1e6feb95
VZ
1838
1839 echo $ac_n "checking for --enable-universal""... $ac_c" 1>&6
4b6b4dfc 1840echo "configure:1841: checking for --enable-universal" >&5
1e6feb95
VZ
1841 no_cache=0
1842 # Check whether --enable-universal or --disable-universal was given.
1843if test "${enable_universal+set}" = set; then
1844 enableval="$enable_universal"
1845
1846 if test "$enableval" = yes; then
1847 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
1848 else
1849 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
1850 fi
1851
1852else
1853
1854 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
1855 if test "x$LINE" != x ; then
1856 eval "DEFAULT_$LINE"
1857 else
1858 no_cache=1
1859 fi
1860
1861 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
1862
1863fi
1864
1865
1866 eval "$ac_cv_use_universal"
1867 if test "$no_cache" != 1; then
1868 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
1869 fi
1870
1871 if test "$wxUSE_UNIVERSAL" = yes; then
1872 echo "$ac_t""yes" 1>&6
1873 else
1874 echo "$ac_t""no" 1>&6
1875 fi
1876
10f2d63a
VZ
1877# Check whether --with-gtk or --without-gtk was given.
1878if test "${with_gtk+set}" = set; then
1879 withval="$with_gtk"
1880 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
698dcdb6 1881fi
10f2d63a
VZ
1882
1883# Check whether --with-motif or --without-motif was given.
1884if test "${with_motif+set}" = set; then
1885 withval="$with_motif"
1886 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
698dcdb6 1887fi
10f2d63a 1888
b4085ce6
GD
1889# Check whether --with-mac or --without-mac was given.
1890if test "${with_mac+set}" = set; then
1891 withval="$with_mac"
1892 wxUSE_MAC="$withval" TOOLKIT_GIVEN=1
698dcdb6 1893fi
b4085ce6 1894
10f2d63a
VZ
1895# Check whether --with-wine or --without-wine was given.
1896if test "${with_wine+set}" = set; then
1897 withval="$with_wine"
1898 wxUSE_WINE="$withval" CACHE_WINE=1 TOOLKIT_GIVEN=1
698dcdb6 1899fi
10f2d63a 1900
77e13408
RL
1901# Check whether --with-msw or --without-msw was given.
1902if test "${with_msw+set}" = set; then
1903 withval="$with_msw"
1904 wxUSE_MSW="$withval" CACHE_MSW TOOLKIT_GIVEN=1
698dcdb6 1905fi
10f2d63a 1906
e07802fc
VZ
1907# Check whether --with-pm or --without-pm was given.
1908if test "${with_pm+set}" = set; then
1909 withval="$with_pm"
1910 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
698dcdb6
VZ
1911fi
1912
1e6feb95
VZ
1913# Check whether --with-mgl or --without-mgl was given.
1914if test "${with_mgl+set}" = set; then
1915 withval="$with_mgl"
1916 wxUSE_MGL="$withval" CACHE_MGL=1 TOOLKIT_GIVEN=1
1917fi
1918
1725144d
RR
1919# Check whether --with-microwin or --without-microwin was given.
1920if test "${with_microwin+set}" = set; then
1921 withval="$with_microwin"
1922 wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
1923fi
1924
10f2d63a 1925
8168de4c
VZ
1926# Check whether --enable-gtk2 or --disable-gtk2 was given.
1927if test "${enable_gtk2+set}" = set; then
1928 enableval="$enable_gtk2"
1929 wxUSE_GTK2=1
10f2d63a 1930else
8168de4c 1931 wxUSE_GTK2=0
698dcdb6
VZ
1932fi
1933
703e0a69 1934
1e487827 1935
698dcdb6 1936 echo $ac_n "checking for --with-libpng""... $ac_c" 1>&6
4b6b4dfc 1937echo "configure:1938: checking for --with-libpng" >&5
698dcdb6
VZ
1938 no_cache=0
1939 # Check whether --with-libpng or --without-libpng was given.
b12915c1
VZ
1940if test "${with_libpng+set}" = set; then
1941 withval="$with_libpng"
698dcdb6 1942
10f2d63a 1943 if test "$withval" = yes; then
b12915c1 1944 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
422107f9 1945 elif test "$withval" = no; then
b12915c1 1946 ac_cv_use_libpng='wxUSE_LIBPNG=no'
422107f9
VZ
1947 elif test "$withval" = sys; then
1948 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
4f14bcd8
GD
1949 elif test "$withval" = builtin; then
1950 ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
422107f9 1951 else
4f14bcd8 1952 { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 1953 fi
698dcdb6 1954
10f2d63a 1955else
698dcdb6 1956
b12915c1 1957 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
10f2d63a
VZ
1958 if test "x$LINE" != x ; then
1959 eval "DEFAULT_$LINE"
1960 else
1961 no_cache=1
1962 fi
1963
b12915c1 1964 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
698dcdb6
VZ
1965
1966fi
10f2d63a
VZ
1967
1968
b12915c1 1969 eval "$ac_cv_use_libpng"
10f2d63a 1970 if test "$no_cache" != 1; then
b12915c1 1971 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
1972 fi
1973
b12915c1 1974 if test "$wxUSE_LIBPNG" = yes; then
698dcdb6 1975 echo "$ac_t""yes" 1>&6
422107f9 1976 elif test "$wxUSE_LIBPNG" = no; then
698dcdb6 1977 echo "$ac_t""no" 1>&6
422107f9 1978 elif test "$wxUSE_LIBPNG" = sys; then
698dcdb6 1979 echo "$ac_t""system version" 1>&6
4f14bcd8
GD
1980 elif test "$wxUSE_LIBPNG" = builtin; then
1981 echo "$ac_t""builtin version" 1>&6
422107f9 1982 else
4f14bcd8 1983 { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 1984 fi
698dcdb6 1985
10f2d63a 1986
698dcdb6 1987 echo $ac_n "checking for --with-libjpeg""... $ac_c" 1>&6
4b6b4dfc 1988echo "configure:1989: checking for --with-libjpeg" >&5
10f2d63a 1989 no_cache=0
698dcdb6 1990 # Check whether --with-libjpeg or --without-libjpeg was given.
b12915c1
VZ
1991if test "${with_libjpeg+set}" = set; then
1992 withval="$with_libjpeg"
698dcdb6 1993
10f2d63a 1994 if test "$withval" = yes; then
b12915c1 1995 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
422107f9 1996 elif test "$withval" = no; then
b12915c1 1997 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
422107f9
VZ
1998 elif test "$withval" = sys; then
1999 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
4f14bcd8
GD
2000 elif test "$withval" = builtin; then
2001 ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
422107f9 2002 else
4f14bcd8 2003 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 2004 fi
698dcdb6 2005
10f2d63a 2006else
698dcdb6 2007
b12915c1 2008 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
10f2d63a
VZ
2009 if test "x$LINE" != x ; then
2010 eval "DEFAULT_$LINE"
2011 else
2012 no_cache=1
2013 fi
2014
b12915c1 2015 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
698dcdb6
VZ
2016
2017fi
10f2d63a
VZ
2018
2019
b12915c1 2020 eval "$ac_cv_use_libjpeg"
10f2d63a 2021 if test "$no_cache" != 1; then
b12915c1 2022 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2023 fi
2024
b12915c1 2025 if test "$wxUSE_LIBJPEG" = yes; then
698dcdb6 2026 echo "$ac_t""yes" 1>&6
422107f9 2027 elif test "$wxUSE_LIBJPEG" = no; then
698dcdb6 2028 echo "$ac_t""no" 1>&6
422107f9 2029 elif test "$wxUSE_LIBJPEG" = sys; then
698dcdb6 2030 echo "$ac_t""system version" 1>&6
4f14bcd8
GD
2031 elif test "$wxUSE_LIBJPEG" = builtin; then
2032 echo "$ac_t""builtin version" 1>&6
422107f9 2033 else
4f14bcd8 2034 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 2035 fi
698dcdb6 2036
10f2d63a 2037
698dcdb6 2038 echo $ac_n "checking for --with-libtiff""... $ac_c" 1>&6
4b6b4dfc 2039echo "configure:2040: checking for --with-libtiff" >&5
10f2d63a 2040 no_cache=0
698dcdb6 2041 # Check whether --with-libtiff or --without-libtiff was given.
b12915c1
VZ
2042if test "${with_libtiff+set}" = set; then
2043 withval="$with_libtiff"
698dcdb6 2044
10f2d63a 2045 if test "$withval" = yes; then
b12915c1 2046 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
0dcf9893 2047 elif test "$withval" = no; then
b12915c1 2048 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
0dcf9893
VZ
2049 elif test "$withval" = sys; then
2050 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
4f14bcd8
GD
2051 elif test "$withval" = builtin; then
2052 ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
0dcf9893 2053 else
4f14bcd8 2054 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 2055 fi
698dcdb6 2056
10f2d63a 2057else
698dcdb6 2058
b12915c1 2059 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
10f2d63a
VZ
2060 if test "x$LINE" != x ; then
2061 eval "DEFAULT_$LINE"
2062 else
2063 no_cache=1
2064 fi
2065
b12915c1 2066 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
698dcdb6
VZ
2067
2068fi
10f2d63a
VZ
2069
2070
b12915c1 2071 eval "$ac_cv_use_libtiff"
10f2d63a 2072 if test "$no_cache" != 1; then
b12915c1 2073 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2074 fi
2075
b12915c1 2076 if test "$wxUSE_LIBTIFF" = yes; then
698dcdb6 2077 echo "$ac_t""yes" 1>&6
0dcf9893 2078 elif test "$wxUSE_LIBTIFF" = no; then
698dcdb6 2079 echo "$ac_t""no" 1>&6
0dcf9893 2080 elif test "$wxUSE_LIBTIFF" = sys; then
698dcdb6 2081 echo "$ac_t""system version" 1>&6
4f14bcd8
GD
2082 elif test "$wxUSE_LIBTIFF" = builtin; then
2083 echo "$ac_t""builtin version" 1>&6
0dcf9893 2084 else
4f14bcd8 2085 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 2086 fi
698dcdb6 2087
10f2d63a 2088
698dcdb6 2089 echo $ac_n "checking for --with-freetype""... $ac_c" 1>&6
4b6b4dfc 2090echo "configure:2091: checking for --with-freetype" >&5
3fed1840 2091 no_cache=0
698dcdb6 2092 # Check whether --with-freetype or --without-freetype was given.
3fed1840
RR
2093if test "${with_freetype+set}" = set; then
2094 withval="$with_freetype"
698dcdb6 2095
3fed1840
RR
2096 if test "$withval" = yes; then
2097 ac_cv_use_freetype='wxUSE_FREETYPE=yes'
2098 elif test "$withval" = no; then
2099 ac_cv_use_freetype='wxUSE_FREETYPE=no'
2100 elif test "$withval" = sys; then
2101 ac_cv_use_freetype='wxUSE_FREETYPE=sys'
4f14bcd8
GD
2102 elif test "$withval" = builtin; then
2103 ac_cv_use_freetype='wxUSE_FREETYPE=builtin'
3fed1840 2104 else
4f14bcd8 2105 { echo "configure: error: Invalid value for --with-freetype: should be yes, no, sys, or builtin" 1>&2; exit 1; }
3fed1840 2106 fi
698dcdb6 2107
3fed1840 2108else
698dcdb6 2109
3fed1840
RR
2110 LINE=`grep "wxUSE_FREETYPE" ${wx_arg_cache_file}`
2111 if test "x$LINE" != x ; then
2112 eval "DEFAULT_$LINE"
2113 else
2114 no_cache=1
2115 fi
2116
2117 ac_cv_use_freetype='wxUSE_FREETYPE='$DEFAULT_wxUSE_FREETYPE
698dcdb6
VZ
2118
2119fi
3fed1840
RR
2120
2121
2122 eval "$ac_cv_use_freetype"
2123 if test "$no_cache" != 1; then
2124 echo $ac_cv_use_freetype >> ${wx_arg_cache_file}.tmp
2125 fi
2126
2127 if test "$wxUSE_FREETYPE" = yes; then
698dcdb6 2128 echo "$ac_t""yes" 1>&6
3fed1840 2129 elif test "$wxUSE_FREETYPE" = no; then
698dcdb6 2130 echo "$ac_t""no" 1>&6
3fed1840 2131 elif test "$wxUSE_FREETYPE" = sys; then
698dcdb6 2132 echo "$ac_t""system version" 1>&6
4f14bcd8
GD
2133 elif test "$wxUSE_FREETYPE" = builtin; then
2134 echo "$ac_t""builtin version" 1>&6
3fed1840 2135 else
4f14bcd8 2136 { echo "configure: error: Invalid value for --with-freetype: should be yes, no, sys, or builtin" 1>&2; exit 1; }
3fed1840 2137 fi
698dcdb6 2138
3fed1840 2139
698dcdb6 2140 echo $ac_n "checking for --with-opengl""... $ac_c" 1>&6
4b6b4dfc 2141echo "configure:2142: checking for --with-opengl" >&5
10f2d63a 2142 no_cache=0
698dcdb6 2143 # Check whether --with-opengl or --without-opengl was given.
b12915c1
VZ
2144if test "${with_opengl+set}" = set; then
2145 withval="$with_opengl"
698dcdb6 2146
10f2d63a 2147 if test "$withval" = yes; then
b12915c1 2148 ac_cv_use_opengl='wxUSE_OPENGL=yes'
10f2d63a 2149 else
b12915c1 2150 ac_cv_use_opengl='wxUSE_OPENGL=no'
10f2d63a 2151 fi
698dcdb6 2152
10f2d63a 2153else
698dcdb6 2154
b12915c1 2155 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
10f2d63a
VZ
2156 if test "x$LINE" != x ; then
2157 eval "DEFAULT_$LINE"
2158 else
2159 no_cache=1
2160 fi
2161
b12915c1 2162 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
698dcdb6
VZ
2163
2164fi
10f2d63a
VZ
2165
2166
b12915c1 2167 eval "$ac_cv_use_opengl"
10f2d63a 2168 if test "$no_cache" != 1; then
b12915c1 2169 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2170 fi
2171
b12915c1 2172 if test "$wxUSE_OPENGL" = yes; then
698dcdb6 2173 echo "$ac_t""yes" 1>&6
10f2d63a 2174 else
698dcdb6 2175 echo "$ac_t""no" 1>&6
10f2d63a 2176 fi
698dcdb6 2177
10f2d63a 2178
b12915c1
VZ
2179fi
2180
1e487827 2181
698dcdb6 2182 echo $ac_n "checking for --with-dmalloc""... $ac_c" 1>&6
4b6b4dfc 2183echo "configure:2184: checking for --with-dmalloc" >&5
698dcdb6
VZ
2184 no_cache=0
2185 # Check whether --with-dmalloc or --without-dmalloc was given.
b12915c1
VZ
2186if test "${with_dmalloc+set}" = set; then
2187 withval="$with_dmalloc"
698dcdb6 2188
c7a2bf27 2189 if test "$withval" = yes; then
b12915c1 2190 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
c7a2bf27 2191 else
b12915c1 2192 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
c7a2bf27 2193 fi
698dcdb6 2194
c7a2bf27 2195else
698dcdb6 2196
b12915c1 2197 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
c7a2bf27
RR
2198 if test "x$LINE" != x ; then
2199 eval "DEFAULT_$LINE"
2200 else
2201 no_cache=1
2202 fi
2203
b12915c1 2204 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
698dcdb6
VZ
2205
2206fi
c7a2bf27
RR
2207
2208
b12915c1 2209 eval "$ac_cv_use_dmalloc"
c7a2bf27 2210 if test "$no_cache" != 1; then
b12915c1 2211 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
c7a2bf27
RR
2212 fi
2213
b12915c1 2214 if test "$wxUSE_DMALLOC" = yes; then
698dcdb6 2215 echo "$ac_t""yes" 1>&6
c7a2bf27 2216 else
698dcdb6 2217 echo "$ac_t""no" 1>&6
c7a2bf27 2218 fi
698dcdb6 2219
c7a2bf27 2220
3e44f09d 2221 echo $ac_n "checking for --with-regex""... $ac_c" 1>&6
4b6b4dfc 2222echo "configure:2223: checking for --with-regex" >&5
3e44f09d
VZ
2223 no_cache=0
2224 # Check whether --with-regex or --without-regex was given.
2225if test "${with_regex+set}" = set; then
2226 withval="$with_regex"
2227
2228 if test "$withval" = yes; then
2229 ac_cv_use_regex='wxUSE_REGEX=yes'
2230 elif test "$withval" = no; then
2231 ac_cv_use_regex='wxUSE_REGEX=no'
2232 elif test "$withval" = sys; then
2233 ac_cv_use_regex='wxUSE_REGEX=sys'
4f14bcd8
GD
2234 elif test "$withval" = builtin; then
2235 ac_cv_use_regex='wxUSE_REGEX=builtin'
3e44f09d 2236 else
4f14bcd8 2237 { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; }
3e44f09d
VZ
2238 fi
2239
2240else
2241
2242 LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
2243 if test "x$LINE" != x ; then
2244 eval "DEFAULT_$LINE"
2245 else
2246 no_cache=1
2247 fi
2248
2249 ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
2250
2251fi
2252
2253
2254 eval "$ac_cv_use_regex"
2255 if test "$no_cache" != 1; then
2256 echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
2257 fi
2258
2259 if test "$wxUSE_REGEX" = yes; then
2260 echo "$ac_t""yes" 1>&6
2261 elif test "$wxUSE_REGEX" = no; then
2262 echo "$ac_t""no" 1>&6
2263 elif test "$wxUSE_REGEX" = sys; then
2264 echo "$ac_t""system version" 1>&6
4f14bcd8
GD
2265 elif test "$wxUSE_REGEX" = builtin; then
2266 echo "$ac_t""builtin version" 1>&6
3e44f09d 2267 else
4f14bcd8 2268 { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; }
3e44f09d
VZ
2269 fi
2270
2271
698dcdb6 2272 echo $ac_n "checking for --with-zlib""... $ac_c" 1>&6
4b6b4dfc 2273echo "configure:2274: checking for --with-zlib" >&5
10f2d63a 2274 no_cache=0
698dcdb6 2275 # Check whether --with-zlib or --without-zlib was given.
b12915c1
VZ
2276if test "${with_zlib+set}" = set; then
2277 withval="$with_zlib"
698dcdb6 2278
10f2d63a 2279 if test "$withval" = yes; then
b12915c1 2280 ac_cv_use_zlib='wxUSE_ZLIB=yes'
422107f9 2281 elif test "$withval" = no; then
b12915c1 2282 ac_cv_use_zlib='wxUSE_ZLIB=no'
422107f9
VZ
2283 elif test "$withval" = sys; then
2284 ac_cv_use_zlib='wxUSE_ZLIB=sys'
4f14bcd8
GD
2285 elif test "$withval" = builtin; then
2286 ac_cv_use_zlib='wxUSE_ZLIB=builtin'
422107f9 2287 else
4f14bcd8 2288 { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 2289 fi
698dcdb6 2290
10f2d63a 2291else
698dcdb6 2292
b12915c1 2293 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
10f2d63a
VZ
2294 if test "x$LINE" != x ; then
2295 eval "DEFAULT_$LINE"
2296 else
2297 no_cache=1
2298 fi
2299
b12915c1 2300 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
698dcdb6
VZ
2301
2302fi
10f2d63a
VZ
2303
2304
b12915c1 2305 eval "$ac_cv_use_zlib"
10f2d63a 2306 if test "$no_cache" != 1; then
b12915c1 2307 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2308 fi
2309
b12915c1 2310 if test "$wxUSE_ZLIB" = yes; then
698dcdb6 2311 echo "$ac_t""yes" 1>&6
422107f9 2312 elif test "$wxUSE_ZLIB" = no; then
698dcdb6 2313 echo "$ac_t""no" 1>&6
422107f9 2314 elif test "$wxUSE_ZLIB" = sys; then
698dcdb6 2315 echo "$ac_t""system version" 1>&6
4f14bcd8
GD
2316 elif test "$wxUSE_ZLIB" = builtin; then
2317 echo "$ac_t""builtin version" 1>&6
422107f9 2318 else
4f14bcd8 2319 { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 2320 fi
698dcdb6 2321
10f2d63a 2322
698dcdb6 2323 echo $ac_n "checking for --with-odbc""... $ac_c" 1>&6
4b6b4dfc 2324echo "configure:2325: checking for --with-odbc" >&5
10f2d63a 2325 no_cache=0
698dcdb6 2326 # Check whether --with-odbc or --without-odbc was given.
10f2d63a
VZ
2327if test "${with_odbc+set}" = set; then
2328 withval="$with_odbc"
698dcdb6 2329
10f2d63a
VZ
2330 if test "$withval" = yes; then
2331 ac_cv_use_odbc='wxUSE_ODBC=yes'
2332 else
2333 ac_cv_use_odbc='wxUSE_ODBC=no'
2334 fi
698dcdb6 2335
10f2d63a 2336else
698dcdb6 2337
10f2d63a
VZ
2338 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
2339 if test "x$LINE" != x ; then
2340 eval "DEFAULT_$LINE"
2341 else
2342 no_cache=1
2343 fi
2344
2345 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
698dcdb6
VZ
2346
2347fi
10f2d63a
VZ
2348
2349
2350 eval "$ac_cv_use_odbc"
2351 if test "$no_cache" != 1; then
2352 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
2353 fi
2354
2355 if test "$wxUSE_ODBC" = yes; then
698dcdb6 2356 echo "$ac_t""yes" 1>&6
10f2d63a 2357 else
698dcdb6 2358 echo "$ac_t""no" 1>&6
10f2d63a 2359 fi
698dcdb6
VZ
2360
2361
10f2d63a 2362
698dcdb6 2363
698dcdb6 2364 echo $ac_n "checking for --enable-shared""... $ac_c" 1>&6
4b6b4dfc 2365echo "configure:2366: checking for --enable-shared" >&5
10f2d63a
VZ
2366 no_cache=0
2367 # Check whether --enable-shared or --disable-shared was given.
2368if test "${enable_shared+set}" = set; then
2369 enableval="$enable_shared"
698dcdb6 2370
10f2d63a
VZ
2371 if test "$enableval" = yes; then
2372 ac_cv_use_shared='wxUSE_SHARED=yes'
2373 else
2374 ac_cv_use_shared='wxUSE_SHARED=no'
2375 fi
698dcdb6 2376
10f2d63a 2377else
698dcdb6 2378
10f2d63a
VZ
2379 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
2380 if test "x$LINE" != x ; then
2381 eval "DEFAULT_$LINE"
2382 else
2383 no_cache=1
2384 fi
2385
2386 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
698dcdb6
VZ
2387
2388fi
10f2d63a
VZ
2389
2390
2391 eval "$ac_cv_use_shared"
2392 if test "$no_cache" != 1; then
2393 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
2394 fi
2395
2396 if test "$wxUSE_SHARED" = yes; then
698dcdb6 2397 echo "$ac_t""yes" 1>&6
10f2d63a 2398 else
698dcdb6 2399 echo "$ac_t""no" 1>&6
10f2d63a 2400 fi
698dcdb6 2401
10f2d63a 2402
3a922bb4 2403 echo $ac_n "checking for --enable-soname""... $ac_c" 1>&6
4b6b4dfc 2404echo "configure:2405: checking for --enable-soname" >&5
00cf1208 2405 no_cache=0
3a922bb4
RL
2406 # Check whether --enable-soname or --disable-soname was given.
2407if test "${enable_soname+set}" = set; then
2408 enableval="$enable_soname"
698dcdb6 2409
00cf1208 2410 if test "$enableval" = yes; then
3a922bb4 2411 ac_cv_use_soname='wxUSE_SONAME=yes'
00cf1208 2412 else
3a922bb4 2413 ac_cv_use_soname='wxUSE_SONAME=no'
00cf1208 2414 fi
698dcdb6 2415
00cf1208 2416else
698dcdb6 2417
3a922bb4 2418 LINE=`grep "wxUSE_SONAME" ${wx_arg_cache_file}`
00cf1208
RR
2419 if test "x$LINE" != x ; then
2420 eval "DEFAULT_$LINE"
2421 else
2422 no_cache=1
2423 fi
2424
3a922bb4 2425 ac_cv_use_soname='wxUSE_SONAME='$DEFAULT_wxUSE_SONAME
698dcdb6
VZ
2426
2427fi
00cf1208
RR
2428
2429
3a922bb4 2430 eval "$ac_cv_use_soname"
00cf1208 2431 if test "$no_cache" != 1; then
3a922bb4 2432 echo $ac_cv_use_soname >> ${wx_arg_cache_file}.tmp
00cf1208
RR
2433 fi
2434
3a922bb4 2435 if test "$wxUSE_SONAME" = yes; then
698dcdb6 2436 echo "$ac_t""yes" 1>&6
00cf1208 2437 else
698dcdb6 2438 echo "$ac_t""no" 1>&6
00cf1208 2439 fi
698dcdb6 2440
00cf1208 2441
698dcdb6 2442 echo $ac_n "checking for --enable-optimise""... $ac_c" 1>&6
4b6b4dfc 2443echo "configure:2444: checking for --enable-optimise" >&5
10f2d63a
VZ
2444 no_cache=0
2445 # Check whether --enable-optimise or --disable-optimise was given.
2446if test "${enable_optimise+set}" = set; then
2447 enableval="$enable_optimise"
698dcdb6 2448
10f2d63a
VZ
2449 if test "$enableval" = yes; then
2450 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
2451 else
2452 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
2453 fi
698dcdb6 2454
10f2d63a 2455else
698dcdb6 2456
10f2d63a
VZ
2457 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
2458 if test "x$LINE" != x ; then
2459 eval "DEFAULT_$LINE"
2460 else
2461 no_cache=1
2462 fi
2463
2464 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
698dcdb6
VZ
2465
2466fi
10f2d63a
VZ
2467
2468
2469 eval "$ac_cv_use_optimise"
2470 if test "$no_cache" != 1; then
2471 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
2472 fi
2473
2474 if test "$wxUSE_OPTIMISE" = yes; then
698dcdb6 2475 echo "$ac_t""yes" 1>&6
10f2d63a 2476 else
698dcdb6 2477 echo "$ac_t""no" 1>&6
10f2d63a 2478 fi
698dcdb6 2479
10f2d63a 2480
698dcdb6 2481 echo $ac_n "checking for --enable-debug""... $ac_c" 1>&6
4b6b4dfc 2482echo "configure:2483: checking for --enable-debug" >&5
10f2d63a
VZ
2483 no_cache=0
2484 # Check whether --enable-debug or --disable-debug was given.
2485if test "${enable_debug+set}" = set; then
2486 enableval="$enable_debug"
698dcdb6 2487
10f2d63a
VZ
2488 if test "$enableval" = yes; then
2489 ac_cv_use_debug='wxUSE_DEBUG=yes'
2490 else
2491 ac_cv_use_debug='wxUSE_DEBUG=no'
2492 fi
698dcdb6 2493
10f2d63a 2494else
698dcdb6 2495
10f2d63a
VZ
2496 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
2497 if test "x$LINE" != x ; then
2498 eval "DEFAULT_$LINE"
2499 else
2500 no_cache=1
2501 fi
2502
2503 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
698dcdb6
VZ
2504
2505fi
10f2d63a
VZ
2506
2507
2508 eval "$ac_cv_use_debug"
2509 if test "$no_cache" != 1; then
2510 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
2511 fi
2512
2513 if test "$wxUSE_DEBUG" = yes; then
698dcdb6 2514 echo "$ac_t""yes" 1>&6
10f2d63a 2515 else
698dcdb6 2516 echo "$ac_t""no" 1>&6
10f2d63a 2517 fi
698dcdb6 2518
10f2d63a 2519
683dccda
GD
2520
2521 echo $ac_n "checking for --enable-precomp""... $ac_c" 1>&6
4b6b4dfc 2522echo "configure:2523: checking for --enable-precomp" >&5
683dccda
GD
2523 no_cache=0
2524 # Check whether --enable-precomp or --disable-precomp was given.
2525if test "${enable_precomp+set}" = set; then
2526 enableval="$enable_precomp"
2527
2528 if test "$enableval" = yes; then
2529 ac_cv_use_precomp='wxUSE_PRECOMP=yes'
2530 else
2531 ac_cv_use_precomp='wxUSE_PRECOMP=no'
2532 fi
2533
2534else
2535
2536 LINE=`grep "wxUSE_PRECOMP" ${wx_arg_cache_file}`
2537 if test "x$LINE" != x ; then
2538 eval "DEFAULT_$LINE"
2539 else
2540 no_cache=1
2541 fi
2542
2543 ac_cv_use_precomp='wxUSE_PRECOMP='$DEFAULT_wxUSE_PRECOMP
2544
2545fi
2546
2547
2548 eval "$ac_cv_use_precomp"
2549 if test "$no_cache" != 1; then
2550 echo $ac_cv_use_precomp >> ${wx_arg_cache_file}.tmp
2551 fi
2552
2553 if test "$wxUSE_PRECOMP" = yes; then
2554 echo "$ac_t""yes" 1>&6
2555 else
2556 echo "$ac_t""no" 1>&6
2557 fi
2558
2559
10f2d63a
VZ
2560if test "$wxUSE_DEBUG" = "yes"; then
2561 DEFAULT_wxUSE_DEBUG_FLAG=yes
2562 DEFAULT_wxUSE_DEBUG_INFO=yes
2563elif test "$wxUSE_DEBUG" = "no"; then
2564 DEFAULT_wxUSE_DEBUG_FLAG=no
2565 DEFAULT_wxUSE_DEBUG_INFO=no
2566fi
2567
698dcdb6
VZ
2568
2569 echo $ac_n "checking for --enable-debug_flag""... $ac_c" 1>&6
4b6b4dfc 2570echo "configure:2571: checking for --enable-debug_flag" >&5
10f2d63a
VZ
2571 no_cache=0
2572 # Check whether --enable-debug_flag or --disable-debug_flag was given.
2573if test "${enable_debug_flag+set}" = set; then
2574 enableval="$enable_debug_flag"
698dcdb6 2575
10f2d63a
VZ
2576 if test "$enableval" = yes; then
2577 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
2578 else
2579 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
2580 fi
698dcdb6 2581
10f2d63a 2582else
698dcdb6 2583
10f2d63a
VZ
2584 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
2585 if test "x$LINE" != x ; then
2586 eval "DEFAULT_$LINE"
2587 else
2588 no_cache=1
2589 fi
2590
2591 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
698dcdb6
VZ
2592
2593fi
10f2d63a
VZ
2594
2595
2596 eval "$ac_cv_use_debug_flag"
2597 if test "$no_cache" != 1; then
2598 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
2599 fi
2600
2601 if test "$wxUSE_DEBUG_FLAG" = yes; then
698dcdb6 2602 echo "$ac_t""yes" 1>&6
10f2d63a 2603 else
698dcdb6 2604 echo "$ac_t""no" 1>&6
10f2d63a 2605 fi
698dcdb6 2606
10f2d63a 2607
698dcdb6 2608 echo $ac_n "checking for --enable-debug_info""... $ac_c" 1>&6
4b6b4dfc 2609echo "configure:2610: checking for --enable-debug_info" >&5
10f2d63a
VZ
2610 no_cache=0
2611 # Check whether --enable-debug_info or --disable-debug_info was given.
2612if test "${enable_debug_info+set}" = set; then
2613 enableval="$enable_debug_info"
698dcdb6 2614
10f2d63a
VZ
2615 if test "$enableval" = yes; then
2616 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
2617 else
2618 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
2619 fi
698dcdb6 2620
10f2d63a 2621else
698dcdb6 2622
10f2d63a
VZ
2623 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
2624 if test "x$LINE" != x ; then
2625 eval "DEFAULT_$LINE"
2626 else
2627 no_cache=1
2628 fi
2629
2630 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
698dcdb6
VZ
2631
2632fi
10f2d63a
VZ
2633
2634
2635 eval "$ac_cv_use_debug_info"
2636 if test "$no_cache" != 1; then
2637 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
2638 fi
2639
2640 if test "$wxUSE_DEBUG_INFO" = yes; then
698dcdb6 2641 echo "$ac_t""yes" 1>&6
10f2d63a 2642 else
698dcdb6 2643 echo "$ac_t""no" 1>&6
10f2d63a 2644 fi
698dcdb6 2645
10f2d63a 2646
698dcdb6 2647 echo $ac_n "checking for --enable-debug_gdb""... $ac_c" 1>&6
4b6b4dfc 2648echo "configure:2649: checking for --enable-debug_gdb" >&5
10f2d63a
VZ
2649 no_cache=0
2650 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
2651if test "${enable_debug_gdb+set}" = set; then
2652 enableval="$enable_debug_gdb"
698dcdb6 2653
10f2d63a
VZ
2654 if test "$enableval" = yes; then
2655 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
2656 else
2657 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
2658 fi
698dcdb6 2659
10f2d63a 2660else
698dcdb6 2661
10f2d63a
VZ
2662 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
2663 if test "x$LINE" != x ; then
2664 eval "DEFAULT_$LINE"
2665 else
2666 no_cache=1
2667 fi
2668
2669 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
698dcdb6
VZ
2670
2671fi
10f2d63a
VZ
2672
2673
2674 eval "$ac_cv_use_debug_gdb"
2675 if test "$no_cache" != 1; then
2676 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
2677 fi
2678
2679 if test "$wxUSE_DEBUG_GDB" = yes; then
698dcdb6 2680 echo "$ac_t""yes" 1>&6
10f2d63a 2681 else
698dcdb6 2682 echo "$ac_t""no" 1>&6
10f2d63a 2683 fi
698dcdb6 2684
10f2d63a 2685
698dcdb6 2686 echo $ac_n "checking for --enable-debug_cntxt""... $ac_c" 1>&6
4b6b4dfc 2687echo "configure:2688: checking for --enable-debug_cntxt" >&5
10f2d63a
VZ
2688 no_cache=0
2689 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
2690if test "${enable_debug_cntxt+set}" = set; then
2691 enableval="$enable_debug_cntxt"
698dcdb6 2692
10f2d63a
VZ
2693 if test "$enableval" = yes; then
2694 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
2695 else
2696 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
2697 fi
698dcdb6 2698
10f2d63a 2699else
698dcdb6 2700
10f2d63a
VZ
2701 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
2702 if test "x$LINE" != x ; then
2703 eval "DEFAULT_$LINE"
2704 else
2705 no_cache=1
2706 fi
2707
2708 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
698dcdb6
VZ
2709
2710fi
10f2d63a
VZ
2711
2712
2713 eval "$ac_cv_use_debug_cntxt"
2714 if test "$no_cache" != 1; then
2715 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
2716 fi
2717
2718 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
698dcdb6 2719 echo "$ac_t""yes" 1>&6
10f2d63a 2720 else
698dcdb6 2721 echo "$ac_t""no" 1>&6
10f2d63a 2722 fi
698dcdb6 2723
10f2d63a 2724
698dcdb6 2725 echo $ac_n "checking for --enable-mem_tracing""... $ac_c" 1>&6
4b6b4dfc 2726echo "configure:2727: checking for --enable-mem_tracing" >&5
10f2d63a
VZ
2727 no_cache=0
2728 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
2729if test "${enable_mem_tracing+set}" = set; then
2730 enableval="$enable_mem_tracing"
698dcdb6 2731
10f2d63a
VZ
2732 if test "$enableval" = yes; then
2733 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
2734 else
2735 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
2736 fi
698dcdb6 2737
10f2d63a 2738else
698dcdb6 2739
10f2d63a
VZ
2740 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
2741 if test "x$LINE" != x ; then
2742 eval "DEFAULT_$LINE"
2743 else
2744 no_cache=1
2745 fi
2746
2747 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
698dcdb6
VZ
2748
2749fi
10f2d63a
VZ
2750
2751
2752 eval "$ac_cv_use_mem_tracing"
2753 if test "$no_cache" != 1; then
2754 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
2755 fi
2756
2757 if test "$wxUSE_MEM_TRACING" = yes; then
698dcdb6 2758 echo "$ac_t""yes" 1>&6
10f2d63a 2759 else
698dcdb6 2760 echo "$ac_t""no" 1>&6
10f2d63a 2761 fi
698dcdb6 2762
10f2d63a 2763
698dcdb6 2764 echo $ac_n "checking for --enable-profile""... $ac_c" 1>&6
4b6b4dfc 2765echo "configure:2766: checking for --enable-profile" >&5
10f2d63a
VZ
2766 no_cache=0
2767 # Check whether --enable-profile or --disable-profile was given.
2768if test "${enable_profile+set}" = set; then
2769 enableval="$enable_profile"
698dcdb6 2770
10f2d63a
VZ
2771 if test "$enableval" = yes; then
2772 ac_cv_use_profile='wxUSE_PROFILE=yes'
2773 else
2774 ac_cv_use_profile='wxUSE_PROFILE=no'
2775 fi
698dcdb6 2776
10f2d63a 2777else
698dcdb6 2778
10f2d63a
VZ
2779 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
2780 if test "x$LINE" != x ; then
2781 eval "DEFAULT_$LINE"
2782 else
2783 no_cache=1
2784 fi
2785
2786 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
698dcdb6
VZ
2787
2788fi
10f2d63a
VZ
2789
2790
2791 eval "$ac_cv_use_profile"
2792 if test "$no_cache" != 1; then
2793 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
2794 fi
2795
2796 if test "$wxUSE_PROFILE" = yes; then
698dcdb6 2797 echo "$ac_t""yes" 1>&6
10f2d63a 2798 else
698dcdb6 2799 echo "$ac_t""no" 1>&6
10f2d63a 2800 fi
698dcdb6 2801
10f2d63a 2802
698dcdb6 2803 echo $ac_n "checking for --enable-no_rtti""... $ac_c" 1>&6
4b6b4dfc 2804echo "configure:2805: checking for --enable-no_rtti" >&5
10f2d63a
VZ
2805 no_cache=0
2806 # Check whether --enable-no_rtti or --disable-no_rtti was given.
2807if test "${enable_no_rtti+set}" = set; then
2808 enableval="$enable_no_rtti"
698dcdb6 2809
10f2d63a
VZ
2810 if test "$enableval" = yes; then
2811 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
2812 else
2813 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
2814 fi
698dcdb6 2815
10f2d63a 2816else
698dcdb6 2817
10f2d63a
VZ
2818 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
2819 if test "x$LINE" != x ; then
2820 eval "DEFAULT_$LINE"
2821 else
2822 no_cache=1
2823 fi
2824
2825 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
698dcdb6
VZ
2826
2827fi
10f2d63a
VZ
2828
2829
2830 eval "$ac_cv_use_no_rtti"
2831 if test "$no_cache" != 1; then
2832 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
2833 fi
2834
2835 if test "$wxUSE_NO_RTTI" = yes; then
698dcdb6 2836 echo "$ac_t""yes" 1>&6
10f2d63a 2837 else
698dcdb6 2838 echo "$ac_t""no" 1>&6
10f2d63a 2839 fi
698dcdb6 2840
10f2d63a 2841
698dcdb6 2842 echo $ac_n "checking for --enable-no_exceptions""... $ac_c" 1>&6
4b6b4dfc 2843echo "configure:2844: checking for --enable-no_exceptions" >&5
10f2d63a
VZ
2844 no_cache=0
2845 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
2846if test "${enable_no_exceptions+set}" = set; then
2847 enableval="$enable_no_exceptions"
698dcdb6 2848
10f2d63a
VZ
2849 if test "$enableval" = yes; then
2850 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
2851 else
2852 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
2853 fi
698dcdb6 2854
10f2d63a 2855else
698dcdb6 2856
10f2d63a
VZ
2857 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
2858 if test "x$LINE" != x ; then
2859 eval "DEFAULT_$LINE"
2860 else
2861 no_cache=1
2862 fi
2863
2864 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
698dcdb6
VZ
2865
2866fi
10f2d63a
VZ
2867
2868
2869 eval "$ac_cv_use_no_exceptions"
2870 if test "$no_cache" != 1; then
2871 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
2872 fi
2873
2874 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
698dcdb6 2875 echo "$ac_t""yes" 1>&6
10f2d63a 2876 else
698dcdb6 2877 echo "$ac_t""no" 1>&6
10f2d63a 2878 fi
698dcdb6 2879
10f2d63a 2880
698dcdb6 2881 echo $ac_n "checking for --enable-permissive""... $ac_c" 1>&6
4b6b4dfc 2882echo "configure:2883: checking for --enable-permissive" >&5
10f2d63a
VZ
2883 no_cache=0
2884 # Check whether --enable-permissive or --disable-permissive was given.
2885if test "${enable_permissive+set}" = set; then
2886 enableval="$enable_permissive"
698dcdb6 2887
10f2d63a
VZ
2888 if test "$enableval" = yes; then
2889 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
2890 else
2891 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
2892 fi
698dcdb6 2893
10f2d63a 2894else
698dcdb6 2895
10f2d63a
VZ
2896 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
2897 if test "x$LINE" != x ; then
2898 eval "DEFAULT_$LINE"
2899 else
2900 no_cache=1
2901 fi
2902
2903 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
698dcdb6
VZ
2904
2905fi
10f2d63a
VZ
2906
2907
2908 eval "$ac_cv_use_permissive"
2909 if test "$no_cache" != 1; then
2910 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
2911 fi
2912
2913 if test "$wxUSE_PERMISSIVE" = yes; then
698dcdb6 2914 echo "$ac_t""yes" 1>&6
10f2d63a 2915 else
698dcdb6 2916 echo "$ac_t""no" 1>&6
10f2d63a 2917 fi
698dcdb6 2918
10f2d63a 2919
698dcdb6 2920 echo $ac_n "checking for --enable-no_deps""... $ac_c" 1>&6
4b6b4dfc 2921echo "configure:2922: checking for --enable-no_deps" >&5
10f2d63a
VZ
2922 no_cache=0
2923 # Check whether --enable-no_deps or --disable-no_deps was given.
2924if test "${enable_no_deps+set}" = set; then
2925 enableval="$enable_no_deps"
698dcdb6 2926
10f2d63a
VZ
2927 if test "$enableval" = yes; then
2928 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
2929 else
2930 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
2931 fi
698dcdb6 2932
10f2d63a 2933else
698dcdb6 2934
10f2d63a
VZ
2935 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
2936 if test "x$LINE" != x ; then
2937 eval "DEFAULT_$LINE"
2938 else
2939 no_cache=1
2940 fi
2941
2942 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
698dcdb6
VZ
2943
2944fi
10f2d63a
VZ
2945
2946
2947 eval "$ac_cv_use_no_deps"
2948 if test "$no_cache" != 1; then
2949 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
2950 fi
2951
2952 if test "$wxUSE_NO_DEPS" = yes; then
698dcdb6 2953 echo "$ac_t""yes" 1>&6
10f2d63a 2954 else
698dcdb6 2955 echo "$ac_t""no" 1>&6
10f2d63a 2956 fi
698dcdb6
VZ
2957
2958
10f2d63a 2959
54276ccf 2960 echo $ac_n "checking for --enable-compat20""... $ac_c" 1>&6
4b6b4dfc 2961echo "configure:2962: checking for --enable-compat20" >&5
54276ccf
VZ
2962 no_cache=0
2963 # Check whether --enable-compat20 or --disable-compat20 was given.
2964if test "${enable_compat20+set}" = set; then
2965 enableval="$enable_compat20"
2966
2967 if test "$enableval" = yes; then
2968 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=yes'
2969 else
2970 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=no'
2971 fi
2972
2973else
2974
2975 LINE=`grep "WXWIN_COMPATIBILITY_2" ${wx_arg_cache_file}`
2976 if test "x$LINE" != x ; then
2977 eval "DEFAULT_$LINE"
2978 else
2979 no_cache=1
2980 fi
2981
2982 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2='$DEFAULT_WXWIN_COMPATIBILITY_2
2983
2984fi
2985
2986
2987 eval "$ac_cv_use_compat20"
2988 if test "$no_cache" != 1; then
2989 echo $ac_cv_use_compat20 >> ${wx_arg_cache_file}.tmp
2990 fi
2991
2992 if test "$WXWIN_COMPATIBILITY_2" = yes; then
2993 echo "$ac_t""yes" 1>&6
2994 else
2995 echo "$ac_t""no" 1>&6
2996 fi
2997
2998
2999 echo $ac_n "checking for --enable-compat22""... $ac_c" 1>&6
4b6b4dfc 3000echo "configure:3001: checking for --enable-compat22" >&5
54276ccf
VZ
3001 no_cache=0
3002 # Check whether --enable-compat22 or --disable-compat22 was given.
3003if test "${enable_compat22+set}" = set; then
3004 enableval="$enable_compat22"
3005
3006 if test "$enableval" = yes; then
3007 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes'
3008 else
3009 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no'
3010 fi
3011
3012else
3013
3014 LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}`
3015 if test "x$LINE" != x ; then
3016 eval "DEFAULT_$LINE"
3017 else
3018 no_cache=1
3019 fi
3020
3021 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2
3022
3023fi
3024
3025
3026 eval "$ac_cv_use_compat22"
3027 if test "$no_cache" != 1; then
3028 echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp
3029 fi
3030
3031 if test "$WXWIN_COMPATIBILITY_2_2" = yes; then
3032 echo "$ac_t""yes" 1>&6
3033 else
3034 echo "$ac_t""no" 1>&6
3035 fi
3036
3037
3038
698dcdb6
VZ
3039
3040 echo $ac_n "checking for --enable-intl""... $ac_c" 1>&6
4b6b4dfc 3041echo "configure:3042: checking for --enable-intl" >&5
10f2d63a
VZ
3042 no_cache=0
3043 # Check whether --enable-intl or --disable-intl was given.
3044if test "${enable_intl+set}" = set; then
3045 enableval="$enable_intl"
698dcdb6 3046
10f2d63a
VZ
3047 if test "$enableval" = yes; then
3048 ac_cv_use_intl='wxUSE_INTL=yes'
3049 else
3050 ac_cv_use_intl='wxUSE_INTL=no'
3051 fi
698dcdb6 3052
10f2d63a 3053else
698dcdb6 3054
10f2d63a
VZ
3055 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
3056 if test "x$LINE" != x ; then
3057 eval "DEFAULT_$LINE"
3058 else
3059 no_cache=1
3060 fi
3061
3062 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
698dcdb6
VZ
3063
3064fi
10f2d63a
VZ
3065
3066
3067 eval "$ac_cv_use_intl"
3068 if test "$no_cache" != 1; then
3069 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
3070 fi
3071
3072 if test "$wxUSE_INTL" = yes; then
698dcdb6 3073 echo "$ac_t""yes" 1>&6
10f2d63a 3074 else
698dcdb6 3075 echo "$ac_t""no" 1>&6
10f2d63a 3076 fi
698dcdb6 3077
10f2d63a 3078
698dcdb6 3079 echo $ac_n "checking for --enable-config""... $ac_c" 1>&6
4b6b4dfc 3080echo "configure:3081: checking for --enable-config" >&5
10f2d63a
VZ
3081 no_cache=0
3082 # Check whether --enable-config or --disable-config was given.
3083if test "${enable_config+set}" = set; then
3084 enableval="$enable_config"
698dcdb6 3085
10f2d63a
VZ
3086 if test "$enableval" = yes; then
3087 ac_cv_use_config='wxUSE_CONFIG=yes'
3088 else
3089 ac_cv_use_config='wxUSE_CONFIG=no'
3090 fi
698dcdb6 3091
10f2d63a 3092else
698dcdb6 3093
10f2d63a
VZ
3094 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
3095 if test "x$LINE" != x ; then
3096 eval "DEFAULT_$LINE"
3097 else
3098 no_cache=1
3099 fi
3100
3101 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
698dcdb6
VZ
3102
3103fi
10f2d63a
VZ
3104
3105
3106 eval "$ac_cv_use_config"
3107 if test "$no_cache" != 1; then
3108 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
3109 fi
3110
3111 if test "$wxUSE_CONFIG" = yes; then
698dcdb6 3112 echo "$ac_t""yes" 1>&6
10f2d63a 3113 else
698dcdb6 3114 echo "$ac_t""no" 1>&6
10f2d63a 3115 fi
698dcdb6
VZ
3116
3117
b12915c1 3118
a1622950 3119 echo $ac_n "checking for --enable-protocols""... $ac_c" 1>&6
4b6b4dfc 3120echo "configure:3121: checking for --enable-protocols" >&5
a1622950
VZ
3121 no_cache=0
3122 # Check whether --enable-protocols or --disable-protocols was given.
3123if test "${enable_protocols+set}" = set; then
3124 enableval="$enable_protocols"
3125
3126 if test "$enableval" = yes; then
3127 ac_cv_use_protocols='wxUSE_PROTOCOL=yes'
3128 else
3129 ac_cv_use_protocols='wxUSE_PROTOCOL=no'
3130 fi
3131
3132else
3133
3134 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
3135 if test "x$LINE" != x ; then
3136 eval "DEFAULT_$LINE"
3137 else
3138 no_cache=1
3139 fi
3140
3141 ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
3142
3143fi
3144
3145
3146 eval "$ac_cv_use_protocols"
3147 if test "$no_cache" != 1; then
3148 echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp
3149 fi
3150
3151 if test "$wxUSE_PROTOCOL" = yes; then
3152 echo "$ac_t""yes" 1>&6
3153 else
3154 echo "$ac_t""no" 1>&6
3155 fi
3156
3157
3158 echo $ac_n "checking for --enable-ftp""... $ac_c" 1>&6
4b6b4dfc 3159echo "configure:3160: checking for --enable-ftp" >&5
a1622950
VZ
3160 no_cache=0
3161 # Check whether --enable-ftp or --disable-ftp was given.
3162if test "${enable_ftp+set}" = set; then
3163 enableval="$enable_ftp"
3164
3165 if test "$enableval" = yes; then
3166 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
3167 else
3168 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
3169 fi
3170
3171else
3172
3173 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
3174 if test "x$LINE" != x ; then
3175 eval "DEFAULT_$LINE"
3176 else
3177 no_cache=1
3178 fi
3179
3180 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
3181
3182fi
3183
3184
3185 eval "$ac_cv_use_ftp"
3186 if test "$no_cache" != 1; then
3187 echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp
3188 fi
3189
3190 if test "$wxUSE_PROTOCOL_FTP" = yes; then
3191 echo "$ac_t""yes" 1>&6
3192 else
3193 echo "$ac_t""no" 1>&6
3194 fi
3195
3196
3197 echo $ac_n "checking for --enable-http""... $ac_c" 1>&6
4b6b4dfc 3198echo "configure:3199: checking for --enable-http" >&5
a1622950
VZ
3199 no_cache=0
3200 # Check whether --enable-http or --disable-http was given.
3201if test "${enable_http+set}" = set; then
3202 enableval="$enable_http"
3203
3204 if test "$enableval" = yes; then
3205 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
3206 else
3207 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
3208 fi
3209
3210else
3211
3212 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
3213 if test "x$LINE" != x ; then
3214 eval "DEFAULT_$LINE"
3215 else
3216 no_cache=1
3217 fi
3218
3219 ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
3220
3221fi
3222
3223
3224 eval "$ac_cv_use_http"
3225 if test "$no_cache" != 1; then
3226 echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp
3227 fi
3228
3229 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
3230 echo "$ac_t""yes" 1>&6
3231 else
3232 echo "$ac_t""no" 1>&6
3233 fi
3234
3235
3236 echo $ac_n "checking for --enable-fileproto""... $ac_c" 1>&6
4b6b4dfc 3237echo "configure:3238: checking for --enable-fileproto" >&5
a1622950
VZ
3238 no_cache=0
3239 # Check whether --enable-fileproto or --disable-fileproto was given.
3240if test "${enable_fileproto+set}" = set; then
3241 enableval="$enable_fileproto"
3242
3243 if test "$enableval" = yes; then
3244 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
3245 else
3246 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
3247 fi
3248
3249else
3250
3251 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
3252 if test "x$LINE" != x ; then
3253 eval "DEFAULT_$LINE"
3254 else
3255 no_cache=1
3256 fi
3257
3258 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
3259
3260fi
3261
3262
3263 eval "$ac_cv_use_fileproto"
3264 if test "$no_cache" != 1; then
3265 echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp
3266 fi
3267
3268 if test "$wxUSE_PROTOCOL_FILE" = yes; then
3269 echo "$ac_t""yes" 1>&6
3270 else
3271 echo "$ac_t""no" 1>&6
3272 fi
3273
3274
698dcdb6 3275 echo $ac_n "checking for --enable-sockets""... $ac_c" 1>&6
4b6b4dfc 3276echo "configure:3277: checking for --enable-sockets" >&5
10f2d63a
VZ
3277 no_cache=0
3278 # Check whether --enable-sockets or --disable-sockets was given.
3279if test "${enable_sockets+set}" = set; then
3280 enableval="$enable_sockets"
698dcdb6 3281
10f2d63a
VZ
3282 if test "$enableval" = yes; then
3283 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
3284 else
3285 ac_cv_use_sockets='wxUSE_SOCKETS=no'
3286 fi
698dcdb6 3287
10f2d63a 3288else
698dcdb6 3289
10f2d63a
VZ
3290 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
3291 if test "x$LINE" != x ; then
3292 eval "DEFAULT_$LINE"
3293 else
3294 no_cache=1
3295 fi
3296
3297 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
698dcdb6
VZ
3298
3299fi
10f2d63a
VZ
3300
3301
3302 eval "$ac_cv_use_sockets"
3303 if test "$no_cache" != 1; then
3304 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
3305 fi
3306
3307 if test "$wxUSE_SOCKETS" = yes; then
698dcdb6 3308 echo "$ac_t""yes" 1>&6
10f2d63a 3309 else
698dcdb6 3310 echo "$ac_t""no" 1>&6
10f2d63a 3311 fi
698dcdb6 3312
b12915c1 3313
698dcdb6
VZ
3314
3315 echo $ac_n "checking for --enable-ipc""... $ac_c" 1>&6
4b6b4dfc 3316echo "configure:3317: checking for --enable-ipc" >&5
10f2d63a 3317 no_cache=0
eb4efbdc
VZ
3318 # Check whether --enable-ipc or --disable-ipc was given.
3319if test "${enable_ipc+set}" = set; then
3320 enableval="$enable_ipc"
698dcdb6 3321
10f2d63a 3322 if test "$enableval" = yes; then
eb4efbdc 3323 ac_cv_use_ipc='wxUSE_IPC=yes'
10f2d63a 3324 else
eb4efbdc 3325 ac_cv_use_ipc='wxUSE_IPC=no'
10f2d63a 3326 fi
698dcdb6 3327
10f2d63a 3328else
698dcdb6 3329
eb4efbdc 3330 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
10f2d63a
VZ
3331 if test "x$LINE" != x ; then
3332 eval "DEFAULT_$LINE"
3333 else
3334 no_cache=1
3335 fi
3336
eb4efbdc 3337 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
698dcdb6
VZ
3338
3339fi
10f2d63a
VZ
3340
3341
eb4efbdc 3342 eval "$ac_cv_use_ipc"
10f2d63a 3343 if test "$no_cache" != 1; then
eb4efbdc 3344 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
3345 fi
3346
eb4efbdc 3347 if test "$wxUSE_IPC" = yes; then
698dcdb6 3348 echo "$ac_t""yes" 1>&6
10f2d63a 3349 else
698dcdb6 3350 echo "$ac_t""no" 1>&6
10f2d63a 3351 fi
698dcdb6
VZ
3352
3353
eb4efbdc 3354
1e6feb95 3355 echo $ac_n "checking for --enable-cmdline""... $ac_c" 1>&6
4b6b4dfc 3356echo "configure:3357: checking for --enable-cmdline" >&5
1e6feb95
VZ
3357 no_cache=0
3358 # Check whether --enable-cmdline or --disable-cmdline was given.
3359if test "${enable_cmdline+set}" = set; then
3360 enableval="$enable_cmdline"
3361
3362 if test "$enableval" = yes; then
3363 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
3364 else
3365 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
3366 fi
3367
3368else
3369
3370 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
3371 if test "x$LINE" != x ; then
3372 eval "DEFAULT_$LINE"
3373 else
3374 no_cache=1
3375 fi
3376
3377 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
3378
3379fi
3380
3381
3382 eval "$ac_cv_use_cmdline"
3383 if test "$no_cache" != 1; then
3384 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
3385 fi
3386
3387 if test "$wxUSE_CMDLINE_PARSER" = yes; then
3388 echo "$ac_t""yes" 1>&6
3389 else
3390 echo "$ac_t""no" 1>&6
3391 fi
3392
3393
3394 echo $ac_n "checking for --enable-datetime""... $ac_c" 1>&6
4b6b4dfc 3395echo "configure:3396: checking for --enable-datetime" >&5
1e6feb95
VZ
3396 no_cache=0
3397 # Check whether --enable-datetime or --disable-datetime was given.
3398if test "${enable_datetime+set}" = set; then
3399 enableval="$enable_datetime"
3400
3401 if test "$enableval" = yes; then
3402 ac_cv_use_datetime='wxUSE_DATETIME=yes'
3403 else
3404 ac_cv_use_datetime='wxUSE_DATETIME=no'
3405 fi
3406
3407else
3408
3409 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
3410 if test "x$LINE" != x ; then
3411 eval "DEFAULT_$LINE"
3412 else
3413 no_cache=1
3414 fi
3415
3416 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
3417
3418fi
3419
3420
3421 eval "$ac_cv_use_datetime"
3422 if test "$no_cache" != 1; then
3423 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
3424 fi
3425
3426 if test "$wxUSE_DATETIME" = yes; then
3427 echo "$ac_t""yes" 1>&6
3428 else
3429 echo "$ac_t""no" 1>&6
3430 fi
3431
3432
3433 echo $ac_n "checking for --enable-timedate""... $ac_c" 1>&6
4b6b4dfc 3434echo "configure:3435: checking for --enable-timedate" >&5
1e6feb95
VZ
3435 no_cache=0
3436 # Check whether --enable-timedate or --disable-timedate was given.
3437if test "${enable_timedate+set}" = set; then
3438 enableval="$enable_timedate"
3439
3440 if test "$enableval" = yes; then
3441 ac_cv_use_timedate='wxUSE_TIMEDATE=yes'
3442 else
3443 ac_cv_use_timedate='wxUSE_TIMEDATE=no'
3444 fi
3445
3446else
3447
3448 LINE=`grep "wxUSE_TIMEDATE" ${wx_arg_cache_file}`
3449 if test "x$LINE" != x ; then
3450 eval "DEFAULT_$LINE"
3451 else
3452 no_cache=1
3453 fi
3454
3455 ac_cv_use_timedate='wxUSE_TIMEDATE='$DEFAULT_wxUSE_TIMEDATE
3456
3457fi
3458
3459
3460 eval "$ac_cv_use_timedate"
3461 if test "$no_cache" != 1; then
3462 echo $ac_cv_use_timedate >> ${wx_arg_cache_file}.tmp
3463 fi
3464
3465 if test "$wxUSE_TIMEDATE" = yes; then
3466 echo "$ac_t""yes" 1>&6
3467 else
3468 echo "$ac_t""no" 1>&6
3469 fi
3470
3471
3472 echo $ac_n "checking for --enable-stopwatch""... $ac_c" 1>&6
4b6b4dfc 3473echo "configure:3474: checking for --enable-stopwatch" >&5
1e6feb95
VZ
3474 no_cache=0
3475 # Check whether --enable-stopwatch or --disable-stopwatch was given.
3476if test "${enable_stopwatch+set}" = set; then
3477 enableval="$enable_stopwatch"
3478
3479 if test "$enableval" = yes; then
3480 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
3481 else
3482 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
3483 fi
3484
3485else
3486
3487 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
3488 if test "x$LINE" != x ; then
3489 eval "DEFAULT_$LINE"
3490 else
3491 no_cache=1
3492 fi
3493
3494 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
3495
3496fi
3497
3498
3499 eval "$ac_cv_use_stopwatch"
3500 if test "$no_cache" != 1; then
3501 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
3502 fi
3503
3504 if test "$wxUSE_STOPWATCH" = yes; then
3505 echo "$ac_t""yes" 1>&6
3506 else
3507 echo "$ac_t""no" 1>&6
3508 fi
3509
3510
698dcdb6 3511 echo $ac_n "checking for --enable-dialupman""... $ac_c" 1>&6
4b6b4dfc 3512echo "configure:3513: checking for --enable-dialupman" >&5
10f2d63a 3513 no_cache=0
eb4efbdc
VZ
3514 # Check whether --enable-dialupman or --disable-dialupman was given.
3515if test "${enable_dialupman+set}" = set; then
3516 enableval="$enable_dialupman"
698dcdb6 3517
10f2d63a 3518 if test "$enableval" = yes; then
eb4efbdc 3519 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
10f2d63a 3520 else
eb4efbdc 3521 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
10f2d63a 3522 fi
698dcdb6 3523
10f2d63a 3524else
698dcdb6 3525
eb4efbdc 3526 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
10f2d63a
VZ
3527 if test "x$LINE" != x ; then
3528 eval "DEFAULT_$LINE"
3529 else
3530 no_cache=1
3531 fi
3532
eb4efbdc 3533 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
698dcdb6
VZ
3534
3535fi
10f2d63a
VZ
3536
3537
eb4efbdc 3538 eval "$ac_cv_use_dialupman"
10f2d63a 3539 if test "$no_cache" != 1; then
eb4efbdc 3540 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
3541 fi
3542
eb4efbdc 3543 if test "$wxUSE_DIALUP_MANAGER" = yes; then
698dcdb6 3544 echo "$ac_t""yes" 1>&6
10f2d63a 3545 else
698dcdb6 3546 echo "$ac_t""no" 1>&6
10f2d63a 3547 fi
698dcdb6 3548
10f2d63a 3549
698dcdb6 3550 echo $ac_n "checking for --enable-apple_ieee""... $ac_c" 1>&6
4b6b4dfc 3551echo "configure:3552: checking for --enable-apple_ieee" >&5
10f2d63a
VZ
3552 no_cache=0
3553 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
3554if test "${enable_apple_ieee+set}" = set; then
3555 enableval="$enable_apple_ieee"
698dcdb6 3556
10f2d63a
VZ
3557 if test "$enableval" = yes; then
3558 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
3559 else
3560 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
3561 fi
698dcdb6 3562
10f2d63a 3563else
698dcdb6 3564
10f2d63a
VZ
3565 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
3566 if test "x$LINE" != x ; then
3567 eval "DEFAULT_$LINE"
3568 else
3569 no_cache=1
3570 fi
3571
3572 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
698dcdb6
VZ
3573
3574fi
10f2d63a
VZ
3575
3576
3577 eval "$ac_cv_use_apple_ieee"
3578 if test "$no_cache" != 1; then
3579 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
3580 fi
3581
3582 if test "$wxUSE_APPLE_IEEE" = yes; then
698dcdb6 3583 echo "$ac_t""yes" 1>&6
10f2d63a 3584 else
698dcdb6 3585 echo "$ac_t""no" 1>&6
10f2d63a 3586 fi
698dcdb6 3587
10f2d63a 3588
1e6feb95 3589 echo $ac_n "checking for --enable-timer""... $ac_c" 1>&6
4b6b4dfc 3590echo "configure:3591: checking for --enable-timer" >&5
10f2d63a 3591 no_cache=0
1e6feb95
VZ
3592 # Check whether --enable-timer or --disable-timer was given.
3593if test "${enable_timer+set}" = set; then
3594 enableval="$enable_timer"
698dcdb6 3595
10f2d63a 3596 if test "$enableval" = yes; then
1e6feb95 3597 ac_cv_use_timer='wxUSE_TIMER=yes'
10f2d63a 3598 else
1e6feb95 3599 ac_cv_use_timer='wxUSE_TIMER=no'
10f2d63a 3600 fi
698dcdb6 3601
10f2d63a 3602else
698dcdb6 3603
1e6feb95 3604 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
10f2d63a
VZ
3605 if test "x$LINE" != x ; then
3606 eval "DEFAULT_$LINE"
3607 else
3608 no_cache=1
3609 fi
3610
1e6feb95 3611 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
698dcdb6
VZ
3612
3613fi
10f2d63a
VZ
3614
3615
1e6feb95 3616 eval "$ac_cv_use_timer"
10f2d63a 3617 if test "$no_cache" != 1; then
1e6feb95 3618 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
3619 fi
3620
1e6feb95 3621 if test "$wxUSE_TIMER" = yes; then
698dcdb6 3622 echo "$ac_t""yes" 1>&6
10f2d63a 3623 else
698dcdb6 3624 echo "$ac_t""no" 1>&6
10f2d63a 3625 fi
698dcdb6 3626
10f2d63a 3627
698dcdb6 3628 echo $ac_n "checking for --enable-wave""... $ac_c" 1>&6
4b6b4dfc 3629echo "configure:3630: checking for --enable-wave" >&5
10f2d63a
VZ
3630 no_cache=0
3631 # Check whether --enable-wave or --disable-wave was given.
3632if test "${enable_wave+set}" = set; then
3633 enableval="$enable_wave"
698dcdb6 3634
10f2d63a
VZ
3635 if test "$enableval" = yes; then
3636 ac_cv_use_wave='wxUSE_WAVE=yes'
3637 else
3638 ac_cv_use_wave='wxUSE_WAVE=no'
3639 fi
698dcdb6 3640
10f2d63a 3641else
698dcdb6 3642
10f2d63a
VZ
3643 LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}`
3644 if test "x$LINE" != x ; then
3645 eval "DEFAULT_$LINE"
3646 else
3647 no_cache=1
3648 fi
3649
3650 ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE
698dcdb6
VZ
3651
3652fi
10f2d63a
VZ
3653
3654
3655 eval "$ac_cv_use_wave"
3656 if test "$no_cache" != 1; then
3657 echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp
3658 fi
3659
3660 if test "$wxUSE_WAVE" = yes; then
698dcdb6 3661 echo "$ac_t""yes" 1>&6
10f2d63a 3662 else
698dcdb6 3663 echo "$ac_t""no" 1>&6
10f2d63a 3664 fi
698dcdb6 3665
10f2d63a 3666
698dcdb6 3667 echo $ac_n "checking for --enable-fraction""... $ac_c" 1>&6
4b6b4dfc 3668echo "configure:3669: checking for --enable-fraction" >&5
10f2d63a
VZ
3669 no_cache=0
3670 # Check whether --enable-fraction or --disable-fraction was given.
3671if test "${enable_fraction+set}" = set; then
3672 enableval="$enable_fraction"
698dcdb6 3673
10f2d63a
VZ
3674 if test "$enableval" = yes; then
3675 ac_cv_use_fraction='wxUSE_FRACTION=yes'
3676 else
3677 ac_cv_use_fraction='wxUSE_FRACTION=no'
3678 fi
698dcdb6 3679
10f2d63a 3680else
698dcdb6 3681
10f2d63a
VZ
3682 LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}`
3683 if test "x$LINE" != x ; then
3684 eval "DEFAULT_$LINE"
3685 else
3686 no_cache=1
3687 fi
3688
3689 ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION
698dcdb6
VZ
3690
3691fi
10f2d63a
VZ
3692
3693
3694 eval "$ac_cv_use_fraction"
3695 if test "$no_cache" != 1; then
3696 echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp
3697 fi
3698
3699 if test "$wxUSE_FRACTION" = yes; then
698dcdb6 3700 echo "$ac_t""yes" 1>&6
10f2d63a 3701 else
698dcdb6 3702 echo "$ac_t""no" 1>&6
10f2d63a 3703 fi
698dcdb6 3704
10f2d63a 3705
698dcdb6 3706 echo $ac_n "checking for --enable-dynlib""... $ac_c" 1>&6
4b6b4dfc 3707echo "configure:3708: checking for --enable-dynlib" >&5
10f2d63a
VZ
3708 no_cache=0
3709 # Check whether --enable-dynlib or --disable-dynlib was given.
3710if test "${enable_dynlib+set}" = set; then
3711 enableval="$enable_dynlib"
698dcdb6 3712
10f2d63a
VZ
3713 if test "$enableval" = yes; then
3714 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
3715 else
3716 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
3717 fi
698dcdb6 3718
10f2d63a 3719else
698dcdb6 3720
10f2d63a
VZ
3721 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
3722 if test "x$LINE" != x ; then
3723 eval "DEFAULT_$LINE"
3724 else
3725 no_cache=1
3726 fi
3727
3728 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
698dcdb6
VZ
3729
3730fi
10f2d63a
VZ
3731
3732
3733 eval "$ac_cv_use_dynlib"
3734 if test "$no_cache" != 1; then
3735 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
3736 fi
3737
3738 if test "$wxUSE_DYNLIB_CLASS" = yes; then
698dcdb6 3739 echo "$ac_t""yes" 1>&6
10f2d63a 3740 else
698dcdb6 3741 echo "$ac_t""no" 1>&6
10f2d63a 3742 fi
698dcdb6 3743
10f2d63a 3744
0b9ab0bd 3745 echo $ac_n "checking for --enable-dynamicloader""... $ac_c" 1>&6
4b6b4dfc 3746echo "configure:3747: checking for --enable-dynamicloader" >&5
0b9ab0bd
RL
3747 no_cache=0
3748 # Check whether --enable-dynamicloader or --disable-dynamicloader was given.
3749if test "${enable_dynamicloader+set}" = set; then
3750 enableval="$enable_dynamicloader"
3751
3752 if test "$enableval" = yes; then
3753 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
3754 else
3755 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
3756 fi
3757
3758else
3759
3760 LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}`
3761 if test "x$LINE" != x ; then
3762 eval "DEFAULT_$LINE"
3763 else
3764 no_cache=1
3765 fi
3766
3767 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER
3768
3769fi
3770
3771
3772 eval "$ac_cv_use_dynamicloader"
3773 if test "$no_cache" != 1; then
3774 echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
3775 fi
3776
3777 if test "$wxUSE_DYNAMIC_LOADER" = yes; then
3778 echo "$ac_t""yes" 1>&6
3779 else
3780 echo "$ac_t""no" 1>&6
3781 fi
3782
3783
698dcdb6 3784 echo $ac_n "checking for --enable-longlong""... $ac_c" 1>&6
4b6b4dfc 3785echo "configure:3786: checking for --enable-longlong" >&5
10f2d63a
VZ
3786 no_cache=0
3787 # Check whether --enable-longlong or --disable-longlong was given.
3788if test "${enable_longlong+set}" = set; then
3789 enableval="$enable_longlong"
698dcdb6 3790
10f2d63a
VZ
3791 if test "$enableval" = yes; then
3792 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
3793 else
3794 ac_cv_use_longlong='wxUSE_LONGLONG=no'
3795 fi
698dcdb6 3796
10f2d63a 3797else
698dcdb6 3798
10f2d63a
VZ
3799 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
3800 if test "x$LINE" != x ; then
3801 eval "DEFAULT_$LINE"
3802 else
3803 no_cache=1
3804 fi
3805
3806 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
698dcdb6
VZ
3807
3808fi
10f2d63a
VZ
3809
3810
3811 eval "$ac_cv_use_longlong"
3812 if test "$no_cache" != 1; then
3813 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
3814 fi
3815
3816 if test "$wxUSE_LONGLONG" = yes; then
698dcdb6 3817 echo "$ac_t""yes" 1>&6
10f2d63a 3818 else
698dcdb6 3819 echo "$ac_t""no" 1>&6
10f2d63a 3820 fi
698dcdb6 3821
10f2d63a 3822
698dcdb6 3823 echo $ac_n "checking for --enable-geometry""... $ac_c" 1>&6
4b6b4dfc 3824echo "configure:3825: checking for --enable-geometry" >&5
e8f65ba6
RR
3825 no_cache=0
3826 # Check whether --enable-geometry or --disable-geometry was given.
3827if test "${enable_geometry+set}" = set; then
3828 enableval="$enable_geometry"
698dcdb6 3829
e8f65ba6
RR
3830 if test "$enableval" = yes; then
3831 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
3832 else
3833 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
3834 fi
698dcdb6 3835
e8f65ba6 3836else
698dcdb6 3837
e8f65ba6
RR
3838 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
3839 if test "x$LINE" != x ; then
3840 eval "DEFAULT_$LINE"
3841 else
3842 no_cache=1
3843 fi
3844
3845 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
698dcdb6
VZ
3846
3847fi
e8f65ba6
RR
3848
3849
3850 eval "$ac_cv_use_geometry"
3851 if test "$no_cache" != 1; then
3852 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
3853 fi
3854
3855 if test "$wxUSE_GEOMETRY" = yes; then
698dcdb6 3856 echo "$ac_t""yes" 1>&6
e8f65ba6 3857 else
698dcdb6 3858 echo "$ac_t""no" 1>&6
e8f65ba6 3859 fi
698dcdb6 3860
e8f65ba6 3861
698dcdb6 3862 echo $ac_n "checking for --enable-log""... $ac_c" 1>&6
4b6b4dfc 3863echo "configure:3864: checking for --enable-log" >&5
10f2d63a
VZ
3864 no_cache=0
3865 # Check whether --enable-log or --disable-log was given.
3866if test "${enable_log+set}" = set; then
3867 enableval="$enable_log"
698dcdb6 3868
10f2d63a
VZ
3869 if test "$enableval" = yes; then
3870 ac_cv_use_log='wxUSE_LOG=yes'
3871 else
3872 ac_cv_use_log='wxUSE_LOG=no'
3873 fi
698dcdb6 3874
10f2d63a 3875else
698dcdb6 3876
10f2d63a
VZ
3877 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
3878 if test "x$LINE" != x ; then
3879 eval "DEFAULT_$LINE"
3880 else
3881 no_cache=1
3882 fi
3883
3884 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
698dcdb6
VZ
3885
3886fi
10f2d63a
VZ
3887
3888
3889 eval "$ac_cv_use_log"
3890 if test "$no_cache" != 1; then
3891 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
3892 fi
3893
3894 if test "$wxUSE_LOG" = yes; then
698dcdb6 3895 echo "$ac_t""yes" 1>&6
10f2d63a 3896 else
698dcdb6 3897 echo "$ac_t""no" 1>&6
10f2d63a 3898 fi
698dcdb6 3899
10f2d63a 3900
698dcdb6 3901 echo $ac_n "checking for --enable-streams""... $ac_c" 1>&6
4b6b4dfc 3902echo "configure:3903: checking for --enable-streams" >&5
10f2d63a
VZ
3903 no_cache=0
3904 # Check whether --enable-streams or --disable-streams was given.
3905if test "${enable_streams+set}" = set; then
3906 enableval="$enable_streams"
698dcdb6 3907
10f2d63a
VZ
3908 if test "$enableval" = yes; then
3909 ac_cv_use_streams='wxUSE_STREAMS=yes'
3910 else
3911 ac_cv_use_streams='wxUSE_STREAMS=no'
3912 fi
698dcdb6 3913
10f2d63a 3914else
698dcdb6 3915
10f2d63a
VZ
3916 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
3917 if test "x$LINE" != x ; then
3918 eval "DEFAULT_$LINE"
3919 else
3920 no_cache=1
3921 fi
3922
3923 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
698dcdb6
VZ
3924
3925fi
10f2d63a
VZ
3926
3927
3928 eval "$ac_cv_use_streams"
3929 if test "$no_cache" != 1; then
3930 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
3931 fi
3932
3933 if test "$wxUSE_STREAMS" = yes; then
698dcdb6 3934 echo "$ac_t""yes" 1>&6
10f2d63a 3935 else
698dcdb6 3936 echo "$ac_t""no" 1>&6
10f2d63a 3937 fi
698dcdb6 3938
10f2d63a 3939
698dcdb6 3940 echo $ac_n "checking for --enable-file""... $ac_c" 1>&6
4b6b4dfc 3941echo "configure:3942: checking for --enable-file" >&5
10f2d63a
VZ
3942 no_cache=0
3943 # Check whether --enable-file or --disable-file was given.
3944if test "${enable_file+set}" = set; then
3945 enableval="$enable_file"
698dcdb6 3946
10f2d63a
VZ
3947 if test "$enableval" = yes; then
3948 ac_cv_use_file='wxUSE_FILE=yes'
3949 else
3950 ac_cv_use_file='wxUSE_FILE=no'
3951 fi
698dcdb6 3952
10f2d63a 3953else
698dcdb6 3954
10f2d63a
VZ
3955 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
3956 if test "x$LINE" != x ; then
3957 eval "DEFAULT_$LINE"
3958 else
3959 no_cache=1
3960 fi
3961
3962 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
698dcdb6
VZ
3963
3964fi
10f2d63a
VZ
3965
3966
3967 eval "$ac_cv_use_file"
3968 if test "$no_cache" != 1; then
3969 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
3970 fi
3971
3972 if test "$wxUSE_FILE" = yes; then
698dcdb6 3973 echo "$ac_t""yes" 1>&6
10f2d63a 3974 else
698dcdb6 3975 echo "$ac_t""no" 1>&6
10f2d63a 3976 fi
698dcdb6 3977
10f2d63a 3978
1e6feb95 3979 echo $ac_n "checking for --enable-ffile""... $ac_c" 1>&6
4b6b4dfc 3980echo "configure:3981: checking for --enable-ffile" >&5
10f2d63a 3981 no_cache=0
1e6feb95
VZ
3982 # Check whether --enable-ffile or --disable-ffile was given.
3983if test "${enable_ffile+set}" = set; then
3984 enableval="$enable_ffile"
698dcdb6 3985
10f2d63a 3986 if test "$enableval" = yes; then
1e6feb95 3987 ac_cv_use_ffile='wxUSE_FFILE=yes'
10f2d63a 3988 else
1e6feb95 3989 ac_cv_use_ffile='wxUSE_FFILE=no'
10f2d63a 3990 fi
698dcdb6 3991
10f2d63a 3992else
698dcdb6 3993
1e6feb95 3994 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
10f2d63a
VZ
3995 if test "x$LINE" != x ; then
3996 eval "DEFAULT_$LINE"
3997 else
3998 no_cache=1
3999 fi
4000
1e6feb95 4001 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
698dcdb6
VZ
4002
4003fi
10f2d63a
VZ
4004
4005
1e6feb95 4006 eval "$ac_cv_use_ffile"
10f2d63a 4007 if test "$no_cache" != 1; then
1e6feb95 4008 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4009 fi
4010
1e6feb95 4011 if test "$wxUSE_FFILE" = yes; then
698dcdb6 4012 echo "$ac_t""yes" 1>&6
10f2d63a 4013 else
698dcdb6 4014 echo "$ac_t""no" 1>&6
10f2d63a 4015 fi
698dcdb6 4016
10f2d63a 4017
a3a584a7 4018 echo $ac_n "checking for --enable-textbuf""... $ac_c" 1>&6
4b6b4dfc 4019echo "configure:4020: checking for --enable-textbuf" >&5
a3a584a7
VZ
4020 no_cache=0
4021 # Check whether --enable-textbuf or --disable-textbuf was given.
4022if test "${enable_textbuf+set}" = set; then
4023 enableval="$enable_textbuf"
4024
4025 if test "$enableval" = yes; then
4026 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
4027 else
4028 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
4029 fi
4030
4031else
4032
4033 LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}`
4034 if test "x$LINE" != x ; then
4035 eval "DEFAULT_$LINE"
4036 else
4037 no_cache=1
4038 fi
4039
4040 ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
4041
4042fi
4043
4044
4045 eval "$ac_cv_use_textbuf"
4046 if test "$no_cache" != 1; then
4047 echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
4048 fi
4049
4050 if test "$wxUSE_TEXTBUFFER" = yes; then
4051 echo "$ac_t""yes" 1>&6
4052 else
4053 echo "$ac_t""no" 1>&6
4054 fi
4055
4056
1e6feb95 4057 echo $ac_n "checking for --enable-textfile""... $ac_c" 1>&6
4b6b4dfc 4058echo "configure:4059: checking for --enable-textfile" >&5
10f2d63a 4059 no_cache=0
1e6feb95
VZ
4060 # Check whether --enable-textfile or --disable-textfile was given.
4061if test "${enable_textfile+set}" = set; then
4062 enableval="$enable_textfile"
698dcdb6 4063
10f2d63a 4064 if test "$enableval" = yes; then
1e6feb95 4065 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
10f2d63a 4066 else
1e6feb95 4067 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
10f2d63a 4068 fi
698dcdb6 4069
10f2d63a 4070else
698dcdb6 4071
1e6feb95 4072 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
10f2d63a
VZ
4073 if test "x$LINE" != x ; then
4074 eval "DEFAULT_$LINE"
4075 else
4076 no_cache=1
4077 fi
4078
1e6feb95 4079 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
698dcdb6
VZ
4080
4081fi
10f2d63a
VZ
4082
4083
1e6feb95 4084 eval "$ac_cv_use_textfile"
10f2d63a 4085 if test "$no_cache" != 1; then
1e6feb95 4086 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4087 fi
4088
1e6feb95 4089 if test "$wxUSE_TEXTFILE" = yes; then
698dcdb6 4090 echo "$ac_t""yes" 1>&6
10f2d63a 4091 else
698dcdb6 4092 echo "$ac_t""no" 1>&6
10f2d63a 4093 fi
698dcdb6 4094
10f2d63a 4095
1e6feb95 4096 echo $ac_n "checking for --enable-fontmap""... $ac_c" 1>&6
4b6b4dfc 4097echo "configure:4098: checking for --enable-fontmap" >&5
10f2d63a 4098 no_cache=0
1e6feb95
VZ
4099 # Check whether --enable-fontmap or --disable-fontmap was given.
4100if test "${enable_fontmap+set}" = set; then
4101 enableval="$enable_fontmap"
698dcdb6 4102
10f2d63a 4103 if test "$enableval" = yes; then
1e6feb95 4104 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
10f2d63a 4105 else
1e6feb95 4106 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
10f2d63a 4107 fi
698dcdb6 4108
10f2d63a 4109else
698dcdb6 4110
1e6feb95 4111 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
10f2d63a
VZ
4112 if test "x$LINE" != x ; then
4113 eval "DEFAULT_$LINE"
4114 else
4115 no_cache=1
4116 fi
4117
1e6feb95 4118 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
698dcdb6
VZ
4119
4120fi
10f2d63a
VZ
4121
4122
1e6feb95 4123 eval "$ac_cv_use_fontmap"
10f2d63a 4124 if test "$no_cache" != 1; then
1e6feb95 4125 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4126 fi
4127
1e6feb95 4128 if test "$wxUSE_FONTMAP" = yes; then
698dcdb6 4129 echo "$ac_t""yes" 1>&6
10f2d63a 4130 else
698dcdb6 4131 echo "$ac_t""no" 1>&6
10f2d63a 4132 fi
698dcdb6 4133
10f2d63a 4134
1e6feb95 4135 echo $ac_n "checking for --enable-unicode""... $ac_c" 1>&6
4b6b4dfc 4136echo "configure:4137: checking for --enable-unicode" >&5
10f2d63a 4137 no_cache=0
1e6feb95
VZ
4138 # Check whether --enable-unicode or --disable-unicode was given.
4139if test "${enable_unicode+set}" = set; then
4140 enableval="$enable_unicode"
4141
4142 if test "$enableval" = yes; then
4143 ac_cv_use_unicode='wxUSE_UNICODE=yes'
4144 else
4145 ac_cv_use_unicode='wxUSE_UNICODE=no'
4146 fi
4147
4148else
4149
4150 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
4151 if test "x$LINE" != x ; then
4152 eval "DEFAULT_$LINE"
4153 else
4154 no_cache=1
4155 fi
4156
4157 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
4158
4159fi
4160
4161
4162 eval "$ac_cv_use_unicode"
4163 if test "$no_cache" != 1; then
4164 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
4165 fi
4166
4167 if test "$wxUSE_UNICODE" = yes; then
4168 echo "$ac_t""yes" 1>&6
4169 else
4170 echo "$ac_t""no" 1>&6
4171 fi
4172
4173
a72a4bfa 4174 echo $ac_n "checking for --enable-mslu""... $ac_c" 1>&6
4b6b4dfc 4175echo "configure:4176: checking for --enable-mslu" >&5
a72a4bfa
VS
4176 no_cache=0
4177 # Check whether --enable-mslu or --disable-mslu was given.
4178if test "${enable_mslu+set}" = set; then
4179 enableval="$enable_mslu"
4180
4181 if test "$enableval" = yes; then
4182 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
4183 else
4184 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
4185 fi
4186
4187else
4188
4189 LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}`
4190 if test "x$LINE" != x ; then
4191 eval "DEFAULT_$LINE"
4192 else
4193 no_cache=1
4194 fi
4195
4196 ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU
4197
4198fi
4199
4200
4201 eval "$ac_cv_use_mslu"
4202 if test "$no_cache" != 1; then
4203 echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp
4204 fi
4205
4206 if test "$wxUSE_UNICODE_MSLU" = yes; then
4207 echo "$ac_t""yes" 1>&6
4208 else
4209 echo "$ac_t""no" 1>&6
4210 fi
4211
4212
1e6feb95 4213 echo $ac_n "checking for --enable-wxprintfv""... $ac_c" 1>&6
4b6b4dfc 4214echo "configure:4215: checking for --enable-wxprintfv" >&5
1e6feb95
VZ
4215 no_cache=0
4216 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
4217if test "${enable_wxprintfv+set}" = set; then
4218 enableval="$enable_wxprintfv"
4219
4220 if test "$enableval" = yes; then
10f2d63a
VZ
4221 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
4222 else
4223 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
4224 fi
698dcdb6 4225
10f2d63a 4226else
698dcdb6 4227
10f2d63a
VZ
4228 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
4229 if test "x$LINE" != x ; then
4230 eval "DEFAULT_$LINE"
4231 else
4232 no_cache=1
4233 fi
4234
4235 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
698dcdb6
VZ
4236
4237fi
10f2d63a
VZ
4238
4239
4240 eval "$ac_cv_use_wxprintfv"
4241 if test "$no_cache" != 1; then
4242 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
4243 fi
4244
4245 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
698dcdb6 4246 echo "$ac_t""yes" 1>&6
10f2d63a 4247 else
698dcdb6 4248 echo "$ac_t""no" 1>&6
10f2d63a 4249 fi
698dcdb6 4250
10f2d63a 4251
698dcdb6 4252 echo $ac_n "checking for --enable-std_iostreams""... $ac_c" 1>&6
4b6b4dfc 4253echo "configure:4254: checking for --enable-std_iostreams" >&5
10f2d63a
VZ
4254 no_cache=0
4255 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
4256if test "${enable_std_iostreams+set}" = set; then
4257 enableval="$enable_std_iostreams"
698dcdb6 4258
10f2d63a
VZ
4259 if test "$enableval" = yes; then
4260 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
4261 else
4262 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
4263 fi
698dcdb6 4264
10f2d63a 4265else
698dcdb6 4266
10f2d63a
VZ
4267 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
4268 if test "x$LINE" != x ; then
4269 eval "DEFAULT_$LINE"
4270 else
4271 no_cache=1
4272 fi
4273
4274 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
698dcdb6
VZ
4275
4276fi
10f2d63a
VZ
4277
4278
4279 eval "$ac_cv_use_std_iostreams"
4280 if test "$no_cache" != 1; then
4281 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
4282 fi
4283
4284 if test "$wxUSE_STD_IOSTREAM" = yes; then
698dcdb6 4285 echo "$ac_t""yes" 1>&6
10f2d63a 4286 else
698dcdb6 4287 echo "$ac_t""no" 1>&6
10f2d63a 4288 fi
698dcdb6 4289
10f2d63a 4290
698dcdb6 4291 echo $ac_n "checking for --enable-filesystem""... $ac_c" 1>&6
4b6b4dfc 4292echo "configure:4293: checking for --enable-filesystem" >&5
24528b0c
VS
4293 no_cache=0
4294 # Check whether --enable-filesystem or --disable-filesystem was given.
4295if test "${enable_filesystem+set}" = set; then
4296 enableval="$enable_filesystem"
698dcdb6 4297
24528b0c
VS
4298 if test "$enableval" = yes; then
4299 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
4300 else
4301 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
4302 fi
698dcdb6 4303
24528b0c 4304else
698dcdb6 4305
24528b0c
VS
4306 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
4307 if test "x$LINE" != x ; then
4308 eval "DEFAULT_$LINE"
4309 else
4310 no_cache=1
4311 fi
4312
4313 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
698dcdb6
VZ
4314
4315fi
24528b0c
VS
4316
4317
4318 eval "$ac_cv_use_filesystem"
4319 if test "$no_cache" != 1; then
4320 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
4321 fi
4322
4323 if test "$wxUSE_FILESYSTEM" = yes; then
698dcdb6 4324 echo "$ac_t""yes" 1>&6
24528b0c 4325 else
698dcdb6 4326 echo "$ac_t""no" 1>&6
24528b0c 4327 fi
698dcdb6 4328
24528b0c 4329
698dcdb6 4330 echo $ac_n "checking for --enable-fs_inet""... $ac_c" 1>&6
4b6b4dfc 4331echo "configure:4332: checking for --enable-fs_inet" >&5
10f2d63a
VZ
4332 no_cache=0
4333 # Check whether --enable-fs_inet or --disable-fs_inet was given.
4334if test "${enable_fs_inet+set}" = set; then
4335 enableval="$enable_fs_inet"
698dcdb6 4336
10f2d63a
VZ
4337 if test "$enableval" = yes; then
4338 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
4339 else
4340 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
4341 fi
698dcdb6 4342
10f2d63a 4343else
698dcdb6 4344
10f2d63a
VZ
4345 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
4346 if test "x$LINE" != x ; then
4347 eval "DEFAULT_$LINE"
4348 else
4349 no_cache=1
4350 fi
4351
4352 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
698dcdb6
VZ
4353
4354fi
10f2d63a
VZ
4355
4356
4357 eval "$ac_cv_use_fs_inet"
4358 if test "$no_cache" != 1; then
4359 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
4360 fi
4361
4362 if test "$wxUSE_FS_INET" = yes; then
698dcdb6 4363 echo "$ac_t""yes" 1>&6
10f2d63a 4364 else
698dcdb6 4365 echo "$ac_t""no" 1>&6
10f2d63a 4366 fi
698dcdb6 4367
10f2d63a 4368
698dcdb6 4369 echo $ac_n "checking for --enable-fs_zip""... $ac_c" 1>&6
4b6b4dfc 4370echo "configure:4371: checking for --enable-fs_zip" >&5
10f2d63a
VZ
4371 no_cache=0
4372 # Check whether --enable-fs_zip or --disable-fs_zip was given.
4373if test "${enable_fs_zip+set}" = set; then
4374 enableval="$enable_fs_zip"
698dcdb6 4375
10f2d63a
VZ
4376 if test "$enableval" = yes; then
4377 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
4378 else
4379 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
4380 fi
698dcdb6 4381
10f2d63a 4382else
698dcdb6 4383
10f2d63a
VZ
4384 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
4385 if test "x$LINE" != x ; then
4386 eval "DEFAULT_$LINE"
4387 else
4388 no_cache=1
4389 fi
4390
4391 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
698dcdb6
VZ
4392
4393fi
10f2d63a
VZ
4394
4395
4396 eval "$ac_cv_use_fs_zip"
4397 if test "$no_cache" != 1; then
4398 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
4399 fi
4400
4401 if test "$wxUSE_FS_ZIP" = yes; then
698dcdb6 4402 echo "$ac_t""yes" 1>&6
10f2d63a 4403 else
698dcdb6 4404 echo "$ac_t""no" 1>&6
10f2d63a 4405 fi
698dcdb6 4406
10f2d63a 4407
698dcdb6 4408 echo $ac_n "checking for --enable-zipstream""... $ac_c" 1>&6
4b6b4dfc 4409echo "configure:4410: checking for --enable-zipstream" >&5
10f2d63a
VZ
4410 no_cache=0
4411 # Check whether --enable-zipstream or --disable-zipstream was given.
4412if test "${enable_zipstream+set}" = set; then
4413 enableval="$enable_zipstream"
698dcdb6 4414
10f2d63a
VZ
4415 if test "$enableval" = yes; then
4416 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
4417 else
4418 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
4419 fi
698dcdb6 4420
10f2d63a 4421else
698dcdb6 4422
10f2d63a
VZ
4423 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
4424 if test "x$LINE" != x ; then
4425 eval "DEFAULT_$LINE"
4426 else
4427 no_cache=1
4428 fi
4429
4430 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
698dcdb6
VZ
4431
4432fi
10f2d63a
VZ
4433
4434
4435 eval "$ac_cv_use_zipstream"
4436 if test "$no_cache" != 1; then
4437 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
4438 fi
4439
4440 if test "$wxUSE_ZIPSTREAM" = yes; then
698dcdb6 4441 echo "$ac_t""yes" 1>&6
10f2d63a 4442 else
698dcdb6 4443 echo "$ac_t""no" 1>&6
10f2d63a 4444 fi
698dcdb6 4445
10f2d63a 4446
698dcdb6
VZ
4447
4448 echo $ac_n "checking for --enable-catch_segvs""... $ac_c" 1>&6
4b6b4dfc 4449echo "configure:4450: checking for --enable-catch_segvs" >&5
eb4efbdc
VZ
4450 no_cache=0
4451 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
4452if test "${enable_catch_segvs+set}" = set; then
4453 enableval="$enable_catch_segvs"
698dcdb6 4454
eb4efbdc
VZ
4455 if test "$enableval" = yes; then
4456 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
4457 else
4458 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
4459 fi
698dcdb6 4460
eb4efbdc 4461else
698dcdb6 4462
eb4efbdc
VZ
4463 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
4464 if test "x$LINE" != x ; then
4465 eval "DEFAULT_$LINE"
4466 else
4467 no_cache=1
4468 fi
4469
4470 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
698dcdb6
VZ
4471
4472fi
eb4efbdc
VZ
4473
4474
4475 eval "$ac_cv_use_catch_segvs"
4476 if test "$no_cache" != 1; then
4477 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
4478 fi
4479
4480 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
698dcdb6 4481 echo "$ac_t""yes" 1>&6
eb4efbdc 4482 else
698dcdb6 4483 echo "$ac_t""no" 1>&6
eb4efbdc 4484 fi
698dcdb6 4485
eb4efbdc 4486
698dcdb6 4487 echo $ac_n "checking for --enable-snglinst""... $ac_c" 1>&6
4b6b4dfc 4488echo "configure:4489: checking for --enable-snglinst" >&5
4f3c5f06
VZ
4489 no_cache=0
4490 # Check whether --enable-snglinst or --disable-snglinst was given.
4491if test "${enable_snglinst+set}" = set; then
4492 enableval="$enable_snglinst"
698dcdb6 4493
4f3c5f06
VZ
4494 if test "$enableval" = yes; then
4495 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
4496 else
4497 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
4498 fi
698dcdb6 4499
4f3c5f06 4500else
698dcdb6 4501
4f3c5f06
VZ
4502 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
4503 if test "x$LINE" != x ; then
4504 eval "DEFAULT_$LINE"
4505 else
4506 no_cache=1
4507 fi
4508
4509 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
698dcdb6
VZ
4510
4511fi
4f3c5f06
VZ
4512
4513
4514 eval "$ac_cv_use_snglinst"
4515 if test "$no_cache" != 1; then
4516 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
4517 fi
4518
4519 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
698dcdb6 4520 echo "$ac_t""yes" 1>&6
4f3c5f06 4521 else
698dcdb6 4522 echo "$ac_t""no" 1>&6
4f3c5f06 4523 fi
698dcdb6
VZ
4524
4525
eb4efbdc 4526
1e6feb95 4527 echo $ac_n "checking for --enable-mimetype""... $ac_c" 1>&6
4b6b4dfc 4528echo "configure:4529: checking for --enable-mimetype" >&5
1e6feb95
VZ
4529 no_cache=0
4530 # Check whether --enable-mimetype or --disable-mimetype was given.
4531if test "${enable_mimetype+set}" = set; then
4532 enableval="$enable_mimetype"
4533
4534 if test "$enableval" = yes; then
4535 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
4536 else
4537 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
4538 fi
4539
4540else
4541
4542 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
4543 if test "x$LINE" != x ; then
4544 eval "DEFAULT_$LINE"
4545 else
4546 no_cache=1
4547 fi
4548
4549 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
4550
4551fi
4552
4553
4554 eval "$ac_cv_use_mimetype"
4555 if test "$no_cache" != 1; then
4556 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
4557 fi
4558
4559 if test "$wxUSE_MIMETYPE" = yes; then
4560 echo "$ac_t""yes" 1>&6
4561 else
4562 echo "$ac_t""no" 1>&6
4563 fi
4564
4565
3e44f09d 4566 echo $ac_n "checking for --enable-system_options""... $ac_c" 1>&6
4b6b4dfc 4567echo "configure:4568: checking for --enable-system_options" >&5
3e44f09d
VZ
4568 no_cache=0
4569 # Check whether --enable-system_options or --disable-system_options was given.
4570if test "${enable_system_options+set}" = set; then
4571 enableval="$enable_system_options"
4572
4573 if test "$enableval" = yes; then
4574 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
4575 else
4576 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
4577 fi
4578
4579else
4580
4581 LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
4582 if test "x$LINE" != x ; then
4583 eval "DEFAULT_$LINE"
4584 else
4585 no_cache=1
4586 fi
4587
4588 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
4589
4590fi
4591
4592
4593 eval "$ac_cv_use_system_options"
4594 if test "$no_cache" != 1; then
4595 echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
4596 fi
4597
4598 if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
4599 echo "$ac_t""yes" 1>&6
4600 else
4601 echo "$ac_t""no" 1>&6
4602 fi
4603
4604
1e6feb95 4605
4cdb0ab0 4606 echo $ac_n "checking for --enable-url""... $ac_c" 1>&6
4b6b4dfc 4607echo "configure:4608: checking for --enable-url" >&5
4cdb0ab0
VS
4608 no_cache=0
4609 # Check whether --enable-url or --disable-url was given.
4610if test "${enable_url+set}" = set; then
4611 enableval="$enable_url"
4612
4613 if test "$enableval" = yes; then
4614 ac_cv_use_url='wxUSE_URL=yes'
4615 else
4616 ac_cv_use_url='wxUSE_URL=no'
4617 fi
4618
4619else
4620
4621 LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}`
4622 if test "x$LINE" != x ; then
4623 eval "DEFAULT_$LINE"
4624 else
4625 no_cache=1
4626 fi
4627
4628 ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL
4629
4630fi
4631
4632
4633 eval "$ac_cv_use_url"
4634 if test "$no_cache" != 1; then
4635 echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp
4636 fi
4637
4638 if test "$wxUSE_URL" = yes; then
4639 echo "$ac_t""yes" 1>&6
4640 else
4641 echo "$ac_t""no" 1>&6
4642 fi
4643
4644
4645 echo $ac_n "checking for --enable-protocol""... $ac_c" 1>&6
4b6b4dfc 4646echo "configure:4647: checking for --enable-protocol" >&5
4cdb0ab0
VS
4647 no_cache=0
4648 # Check whether --enable-protocol or --disable-protocol was given.
4649if test "${enable_protocol+set}" = set; then
4650 enableval="$enable_protocol"
4651
4652 if test "$enableval" = yes; then
4653 ac_cv_use_protocol='wxUSE_PROTOCOL=yes'
4654 else
4655 ac_cv_use_protocol='wxUSE_PROTOCOL=no'
4656 fi
4657
4658else
4659
4660 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
4661 if test "x$LINE" != x ; then
4662 eval "DEFAULT_$LINE"
4663 else
4664 no_cache=1
4665 fi
4666
4667 ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
4668
4669fi
4670
4671
4672 eval "$ac_cv_use_protocol"
4673 if test "$no_cache" != 1; then
4674 echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp
4675 fi
4676
4677 if test "$wxUSE_PROTOCOL" = yes; then
4678 echo "$ac_t""yes" 1>&6
4679 else
4680 echo "$ac_t""no" 1>&6
4681 fi
4682
4683
4684 echo $ac_n "checking for --enable-protocol_http""... $ac_c" 1>&6
4b6b4dfc 4685echo "configure:4686: checking for --enable-protocol_http" >&5
4cdb0ab0
VS
4686 no_cache=0
4687 # Check whether --enable-protocol_http or --disable-protocol_http was given.
4688if test "${enable_protocol_http+set}" = set; then
4689 enableval="$enable_protocol_http"
4690
4691 if test "$enableval" = yes; then
4692 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
4693 else
4694 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
4695 fi
4696
4697else
4698
4699 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
4700 if test "x$LINE" != x ; then
4701 eval "DEFAULT_$LINE"
4702 else
4703 no_cache=1
4704 fi
4705
4706 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
4707
4708fi
4709
4710
4711 eval "$ac_cv_use_protocol_http"
4712 if test "$no_cache" != 1; then
4713 echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp
4714 fi
4715
4716 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
4717 echo "$ac_t""yes" 1>&6
4718 else
4719 echo "$ac_t""no" 1>&6
4720 fi
4721
4722
4723 echo $ac_n "checking for --enable-protocol_ftp""... $ac_c" 1>&6
4b6b4dfc 4724echo "configure:4725: checking for --enable-protocol_ftp" >&5
4cdb0ab0
VS
4725 no_cache=0
4726 # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given.
4727if test "${enable_protocol_ftp+set}" = set; then
4728 enableval="$enable_protocol_ftp"
4729
4730 if test "$enableval" = yes; then
4731 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
4732 else
4733 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
4734 fi
4735
4736else
4737
4738 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
4739 if test "x$LINE" != x ; then
4740 eval "DEFAULT_$LINE"
4741 else
4742 no_cache=1
4743 fi
4744
4745 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
4746
4747fi
4748
4749
4750 eval "$ac_cv_use_protocol_ftp"
4751 if test "$no_cache" != 1; then
4752 echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp
4753 fi
4754
4755 if test "$wxUSE_PROTOCOL_FTP" = yes; then
4756 echo "$ac_t""yes" 1>&6
4757 else
4758 echo "$ac_t""no" 1>&6
4759 fi
4760
4761
4762 echo $ac_n "checking for --enable-protocol_file""... $ac_c" 1>&6
4b6b4dfc 4763echo "configure:4764: checking for --enable-protocol_file" >&5
4cdb0ab0
VS
4764 no_cache=0
4765 # Check whether --enable-protocol_file or --disable-protocol_file was given.
4766if test "${enable_protocol_file+set}" = set; then
4767 enableval="$enable_protocol_file"
4768
4769 if test "$enableval" = yes; then
4770 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
4771 else
4772 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
4773 fi
4774
4775else
4776
4777 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
4778 if test "x$LINE" != x ; then
4779 eval "DEFAULT_$LINE"
4780 else
4781 no_cache=1
4782 fi
4783
4784 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
4785
4786fi
4787
4788
4789 eval "$ac_cv_use_protocol_file"
4790 if test "$no_cache" != 1; then
4791 echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp
4792 fi
4793
4794 if test "$wxUSE_PROTOCOL_FILE" = yes; then
4795 echo "$ac_t""yes" 1>&6
4796 else
4797 echo "$ac_t""no" 1>&6
4798 fi
4799
4800
4801
4802
698dcdb6
VZ
4803
4804 echo $ac_n "checking for --enable-threads""... $ac_c" 1>&6
4b6b4dfc 4805echo "configure:4806: checking for --enable-threads" >&5
10f2d63a
VZ
4806 no_cache=0
4807 # Check whether --enable-threads or --disable-threads was given.
4808if test "${enable_threads+set}" = set; then
4809 enableval="$enable_threads"
698dcdb6 4810
10f2d63a
VZ
4811 if test "$enableval" = yes; then
4812 ac_cv_use_threads='wxUSE_THREADS=yes'
4813 else
4814 ac_cv_use_threads='wxUSE_THREADS=no'
4815 fi
698dcdb6 4816
10f2d63a 4817else
698dcdb6 4818
10f2d63a
VZ
4819 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
4820 if test "x$LINE" != x ; then
4821 eval "DEFAULT_$LINE"
4822 else
4823 no_cache=1
4824 fi
4825
4826 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
698dcdb6
VZ
4827
4828fi
10f2d63a
VZ
4829
4830
4831 eval "$ac_cv_use_threads"
4832 if test "$no_cache" != 1; then
4833 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
4834 fi
4835
4836 if test "$wxUSE_THREADS" = yes; then
698dcdb6 4837 echo "$ac_t""yes" 1>&6
10f2d63a 4838 else
698dcdb6 4839 echo "$ac_t""no" 1>&6
10f2d63a 4840 fi
698dcdb6 4841
10f2d63a 4842
b12915c1
VZ
4843if test "$wxUSE_GUI" = "yes"; then
4844
698dcdb6
VZ
4845
4846
4847 echo $ac_n "checking for --enable-docview""... $ac_c" 1>&6
4b6b4dfc 4848echo "configure:4849: checking for --enable-docview" >&5
10f2d63a
VZ
4849 no_cache=0
4850 # Check whether --enable-docview or --disable-docview was given.
4851if test "${enable_docview+set}" = set; then
4852 enableval="$enable_docview"
698dcdb6 4853
10f2d63a
VZ
4854 if test "$enableval" = yes; then
4855 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
4856 else
4857 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
4858 fi
698dcdb6 4859
10f2d63a 4860else
698dcdb6 4861
10f2d63a
VZ
4862 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
4863 if test "x$LINE" != x ; then
4864 eval "DEFAULT_$LINE"
4865 else
4866 no_cache=1
4867 fi
4868
4869 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
698dcdb6
VZ
4870
4871fi
10f2d63a
VZ
4872
4873
4874 eval "$ac_cv_use_docview"
4875 if test "$no_cache" != 1; then
4876 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
4877 fi
4878
4879 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
698dcdb6 4880 echo "$ac_t""yes" 1>&6
10f2d63a 4881 else
698dcdb6 4882 echo "$ac_t""no" 1>&6
10f2d63a 4883 fi
698dcdb6 4884
10f2d63a 4885
698dcdb6 4886 echo $ac_n "checking for --enable-help""... $ac_c" 1>&6
4b6b4dfc 4887echo "configure:4888: checking for --enable-help" >&5
10f2d63a
VZ
4888 no_cache=0
4889 # Check whether --enable-help or --disable-help was given.
4890if test "${enable_help+set}" = set; then
4891 enableval="$enable_help"
698dcdb6 4892
10f2d63a
VZ
4893 if test "$enableval" = yes; then
4894 ac_cv_use_help='wxUSE_HELP=yes'
4895 else
4896 ac_cv_use_help='wxUSE_HELP=no'
4897 fi
698dcdb6 4898
10f2d63a 4899else
698dcdb6 4900
10f2d63a
VZ
4901 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
4902 if test "x$LINE" != x ; then
4903 eval "DEFAULT_$LINE"
4904 else
4905 no_cache=1
4906 fi
4907
4908 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
698dcdb6
VZ
4909
4910fi
10f2d63a
VZ
4911
4912
4913 eval "$ac_cv_use_help"
4914 if test "$no_cache" != 1; then
4915 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
4916 fi
4917
4918 if test "$wxUSE_HELP" = yes; then
698dcdb6 4919 echo "$ac_t""yes" 1>&6
10f2d63a 4920 else
698dcdb6 4921 echo "$ac_t""no" 1>&6
10f2d63a 4922 fi
698dcdb6 4923
10f2d63a 4924
29fd3c0c 4925 echo $ac_n "checking for --enable-mshtmlhelp""... $ac_c" 1>&6
4b6b4dfc 4926echo "configure:4927: checking for --enable-mshtmlhelp" >&5
29fd3c0c
VS
4927 no_cache=0
4928 # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
4929if test "${enable_mshtmlhelp+set}" = set; then
4930 enableval="$enable_mshtmlhelp"
4931
4932 if test "$enableval" = yes; then
4933 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
4934 else
4935 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
4936 fi
4937
4938else
4939
4940 LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
4941 if test "x$LINE" != x ; then
4942 eval "DEFAULT_$LINE"
4943 else
4944 no_cache=1
4945 fi
4946
4947 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
4948
4949fi
4950
4951
4952 eval "$ac_cv_use_mshtmlhelp"
4953 if test "$no_cache" != 1; then
4954 echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
4955 fi
4956
4957 if test "$wxUSE_MS_HTML_HELP" = yes; then
4958 echo "$ac_t""yes" 1>&6
4959 else
4960 echo "$ac_t""no" 1>&6
4961 fi
4962
4963
3379ed37 4964 echo $ac_n "checking for --enable-html""... $ac_c" 1>&6
4b6b4dfc 4965echo "configure:4966: checking for --enable-html" >&5
3379ed37
VZ
4966 no_cache=0
4967 # Check whether --enable-html or --disable-html was given.
4968if test "${enable_html+set}" = set; then
4969 enableval="$enable_html"
4970
4971 if test "$enableval" = yes; then
4972 ac_cv_use_html='wxUSE_HTML=yes'
4973 else
4974 ac_cv_use_html='wxUSE_HTML=no'
4975 fi
4976
4977else
4978
4979 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
4980 if test "x$LINE" != x ; then
4981 eval "DEFAULT_$LINE"
4982 else
4983 no_cache=1
4984 fi
4985
4986 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
4987
4988fi
4989
4990
4991 eval "$ac_cv_use_html"
4992 if test "$no_cache" != 1; then
4993 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
4994 fi
4995
4996 if test "$wxUSE_HTML" = yes; then
4997 echo "$ac_t""yes" 1>&6
4998 else
4999 echo "$ac_t""no" 1>&6
5000 fi
5001
5002
5003 echo $ac_n "checking for --enable-htmlhelp""... $ac_c" 1>&6
4b6b4dfc 5004echo "configure:5005: checking for --enable-htmlhelp" >&5
3379ed37
VZ
5005 no_cache=0
5006 # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
5007if test "${enable_htmlhelp+set}" = set; then
5008 enableval="$enable_htmlhelp"
5009
5010 if test "$enableval" = yes; then
5011 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
5012 else
5013 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
5014 fi
5015
5016else
5017
5018 LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
5019 if test "x$LINE" != x ; then
5020 eval "DEFAULT_$LINE"
5021 else
5022 no_cache=1
5023 fi
5024
5025 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
5026
5027fi
5028
5029
5030 eval "$ac_cv_use_htmlhelp"
5031 if test "$no_cache" != 1; then
5032 echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
5033 fi
5034
5035 if test "$wxUSE_WXHTML_HELP" = yes; then
5036 echo "$ac_t""yes" 1>&6
5037 else
5038 echo "$ac_t""no" 1>&6
5039 fi
5040
5041
698dcdb6 5042 echo $ac_n "checking for --enable-constraints""... $ac_c" 1>&6
4b6b4dfc 5043echo "configure:5044: checking for --enable-constraints" >&5
10f2d63a
VZ
5044 no_cache=0
5045 # Check whether --enable-constraints or --disable-constraints was given.
5046if test "${enable_constraints+set}" = set; then
5047 enableval="$enable_constraints"
698dcdb6 5048
10f2d63a
VZ
5049 if test "$enableval" = yes; then
5050 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
5051 else
5052 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
5053 fi
698dcdb6 5054
10f2d63a 5055else
698dcdb6 5056
10f2d63a
VZ
5057 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
5058 if test "x$LINE" != x ; then
5059 eval "DEFAULT_$LINE"
5060 else
5061 no_cache=1
5062 fi
5063
5064 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
698dcdb6
VZ
5065
5066fi
10f2d63a
VZ
5067
5068
5069 eval "$ac_cv_use_constraints"
5070 if test "$no_cache" != 1; then
5071 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
5072 fi
5073
5074 if test "$wxUSE_CONSTRAINTS" = yes; then
698dcdb6 5075 echo "$ac_t""yes" 1>&6
10f2d63a 5076 else
698dcdb6 5077 echo "$ac_t""no" 1>&6
10f2d63a 5078 fi
698dcdb6 5079
10f2d63a 5080
698dcdb6 5081 echo $ac_n "checking for --enable-printarch""... $ac_c" 1>&6
4b6b4dfc 5082echo "configure:5083: checking for --enable-printarch" >&5
10f2d63a
VZ
5083 no_cache=0
5084 # Check whether --enable-printarch or --disable-printarch was given.
5085if test "${enable_printarch+set}" = set; then
5086 enableval="$enable_printarch"
698dcdb6 5087
10f2d63a
VZ
5088 if test "$enableval" = yes; then
5089 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
5090 else
5091 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
5092 fi
698dcdb6 5093
10f2d63a 5094else
698dcdb6 5095
10f2d63a
VZ
5096 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
5097 if test "x$LINE" != x ; then
5098 eval "DEFAULT_$LINE"
5099 else
5100 no_cache=1
5101 fi
5102
5103 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
698dcdb6
VZ
5104
5105fi
10f2d63a
VZ
5106
5107
5108 eval "$ac_cv_use_printarch"
5109 if test "$no_cache" != 1; then
5110 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
5111 fi
5112
5113 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
698dcdb6 5114 echo "$ac_t""yes" 1>&6
10f2d63a 5115 else
698dcdb6 5116 echo "$ac_t""no" 1>&6
10f2d63a 5117 fi
698dcdb6 5118
10f2d63a 5119
698dcdb6 5120 echo $ac_n "checking for --enable-mdi""... $ac_c" 1>&6
4b6b4dfc 5121echo "configure:5122: checking for --enable-mdi" >&5
10f2d63a
VZ
5122 no_cache=0
5123 # Check whether --enable-mdi or --disable-mdi was given.
5124if test "${enable_mdi+set}" = set; then
5125 enableval="$enable_mdi"
698dcdb6 5126
10f2d63a
VZ
5127 if test "$enableval" = yes; then
5128 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes'
5129 else
5130 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no'
5131 fi
698dcdb6 5132
10f2d63a 5133else
698dcdb6 5134
10f2d63a
VZ
5135 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
5136 if test "x$LINE" != x ; then
5137 eval "DEFAULT_$LINE"
5138 else
5139 no_cache=1
5140 fi
5141
5142 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
698dcdb6
VZ
5143
5144fi
10f2d63a
VZ
5145
5146
5147 eval "$ac_cv_use_mdi"
5148 if test "$no_cache" != 1; then
5149 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
5150 fi
5151
5152 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
698dcdb6 5153 echo "$ac_t""yes" 1>&6
10f2d63a 5154 else
698dcdb6 5155 echo "$ac_t""no" 1>&6
10f2d63a 5156 fi
698dcdb6
VZ
5157
5158
1e6feb95 5159 echo $ac_n "checking for --enable-loggui""... $ac_c" 1>&6
4b6b4dfc 5160echo "configure:5161: checking for --enable-loggui" >&5
1e6feb95
VZ
5161 no_cache=0
5162 # Check whether --enable-loggui or --disable-loggui was given.
5163if test "${enable_loggui+set}" = set; then
5164 enableval="$enable_loggui"
5165
5166 if test "$enableval" = yes; then
5167 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
5168 else
5169 ac_cv_use_loggui='wxUSE_LOGGUI=no'
5170 fi
5171
5172else
5173
5174 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
5175 if test "x$LINE" != x ; then
5176 eval "DEFAULT_$LINE"
5177 else
5178 no_cache=1
5179 fi
5180
5181 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
5182
5183fi
5184
5185
5186 eval "$ac_cv_use_loggui"
5187 if test "$no_cache" != 1; then
5188 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
5189 fi
5190
5191 if test "$wxUSE_LOGGUI" = yes; then
5192 echo "$ac_t""yes" 1>&6
5193 else
5194 echo "$ac_t""no" 1>&6
5195 fi
5196
5197
5198 echo $ac_n "checking for --enable-logwin""... $ac_c" 1>&6
4b6b4dfc 5199echo "configure:5200: checking for --enable-logwin" >&5
1e6feb95
VZ
5200 no_cache=0
5201 # Check whether --enable-logwin or --disable-logwin was given.
5202if test "${enable_logwin+set}" = set; then
5203 enableval="$enable_logwin"
5204
5205 if test "$enableval" = yes; then
5206 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
5207 else
5208 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
5209 fi
5210
5211else
5212
5213 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
5214 if test "x$LINE" != x ; then
5215 eval "DEFAULT_$LINE"
5216 else
5217 no_cache=1
5218 fi
5219
5220 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
5221
5222fi
5223
5224
5225 eval "$ac_cv_use_logwin"
5226 if test "$no_cache" != 1; then
5227 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
5228 fi
5229
5230 if test "$wxUSE_LOGWINDOW" = yes; then
5231 echo "$ac_t""yes" 1>&6
5232 else
5233 echo "$ac_t""no" 1>&6
5234 fi
5235
5236
69d27ff7 5237 echo $ac_n "checking for --enable-logdialog""... $ac_c" 1>&6
4b6b4dfc 5238echo "configure:5239: checking for --enable-logdialog" >&5
69d27ff7
MB
5239 no_cache=0
5240 # Check whether --enable-logdialog or --disable-logdialog was given.
5241if test "${enable_logdialog+set}" = set; then
5242 enableval="$enable_logdialog"
5243
5244 if test "$enableval" = yes; then
5245 ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
5246 else
5247 ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
5248 fi
5249
5250else
5251
5252 LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}`
5253 if test "x$LINE" != x ; then
5254 eval "DEFAULT_$LINE"
5255 else
5256 no_cache=1
5257 fi
5258
5259 ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
5260
5261fi
5262
5263
5264 eval "$ac_cv_use_logdialog"
5265 if test "$no_cache" != 1; then
5266 echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
5267 fi
5268
5269 if test "$wxUSE_LOGDIALOG" = yes; then
5270 echo "$ac_t""yes" 1>&6
5271 else
5272 echo "$ac_t""no" 1>&6
5273 fi
5274
5275
10f2d63a 5276
698dcdb6 5277 echo $ac_n "checking for --enable-postscript""... $ac_c" 1>&6
4b6b4dfc 5278echo "configure:5279: checking for --enable-postscript" >&5
10f2d63a
VZ
5279 no_cache=0
5280 # Check whether --enable-postscript or --disable-postscript was given.
5281if test "${enable_postscript+set}" = set; then
5282 enableval="$enable_postscript"
698dcdb6 5283
10f2d63a
VZ
5284 if test "$enableval" = yes; then
5285 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
5286 else
5287 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
5288 fi
698dcdb6 5289
10f2d63a 5290else
698dcdb6 5291
10f2d63a
VZ
5292 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
5293 if test "x$LINE" != x ; then
5294 eval "DEFAULT_$LINE"
5295 else
5296 no_cache=1
5297 fi
5298
5299 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
698dcdb6
VZ
5300
5301fi
10f2d63a
VZ
5302
5303
5304 eval "$ac_cv_use_postscript"
5305 if test "$no_cache" != 1; then
5306 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
5307 fi
5308
5309 if test "$wxUSE_POSTSCRIPT" = yes; then
698dcdb6 5310 echo "$ac_t""yes" 1>&6
10f2d63a 5311 else
698dcdb6 5312 echo "$ac_t""no" 1>&6
10f2d63a 5313 fi
698dcdb6
VZ
5314
5315
5316
10f2d63a 5317
1e6feb95 5318
698dcdb6 5319 echo $ac_n "checking for --enable-prologio""... $ac_c" 1>&6
4b6b4dfc 5320echo "configure:5321: checking for --enable-prologio" >&5
10f2d63a
VZ
5321 no_cache=0
5322 # Check whether --enable-prologio or --disable-prologio was given.
5323if test "${enable_prologio+set}" = set; then
5324 enableval="$enable_prologio"
698dcdb6 5325
10f2d63a
VZ
5326 if test "$enableval" = yes; then
5327 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
5328 else
5329 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
5330 fi
698dcdb6 5331
10f2d63a 5332else
698dcdb6 5333
10f2d63a
VZ
5334 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
5335 if test "x$LINE" != x ; then
5336 eval "DEFAULT_$LINE"
5337 else
5338 no_cache=1
5339 fi
5340
5341 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
698dcdb6
VZ
5342
5343fi
10f2d63a
VZ
5344
5345
5346 eval "$ac_cv_use_prologio"
5347 if test "$no_cache" != 1; then
5348 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
5349 fi
5350
5351 if test "$wxUSE_PROLOGIO" = yes; then
698dcdb6 5352 echo "$ac_t""yes" 1>&6
10f2d63a 5353 else
698dcdb6 5354 echo "$ac_t""no" 1>&6
10f2d63a 5355 fi
698dcdb6 5356
10f2d63a 5357
698dcdb6 5358 echo $ac_n "checking for --enable-resources""... $ac_c" 1>&6
4b6b4dfc 5359echo "configure:5360: checking for --enable-resources" >&5
10f2d63a
VZ
5360 no_cache=0
5361 # Check whether --enable-resources or --disable-resources was given.
5362if test "${enable_resources+set}" = set; then
5363 enableval="$enable_resources"
698dcdb6 5364
10f2d63a
VZ
5365 if test "$enableval" = yes; then
5366 ac_cv_use_resources='wxUSE_RESOURCES=yes'
5367 else
5368 ac_cv_use_resources='wxUSE_RESOURCES=no'
5369 fi
698dcdb6 5370
10f2d63a 5371else
698dcdb6 5372
10f2d63a
VZ
5373 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
5374 if test "x$LINE" != x ; then
5375 eval "DEFAULT_$LINE"
5376 else
5377 no_cache=1
5378 fi
5379
5380 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
698dcdb6
VZ
5381
5382fi
10f2d63a
VZ
5383
5384
5385 eval "$ac_cv_use_resources"
5386 if test "$no_cache" != 1; then
5387 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
5388 fi
5389
5390 if test "$wxUSE_RESOURCES" = yes; then
698dcdb6 5391 echo "$ac_t""yes" 1>&6
10f2d63a 5392 else
698dcdb6 5393 echo "$ac_t""no" 1>&6
10f2d63a 5394 fi
698dcdb6 5395
10f2d63a 5396
698dcdb6
VZ
5397
5398 echo $ac_n "checking for --enable-xresources""... $ac_c" 1>&6
4b6b4dfc 5399echo "configure:5400: checking for --enable-xresources" >&5
10f2d63a
VZ
5400 no_cache=0
5401 # Check whether --enable-xresources or --disable-xresources was given.
5402if test "${enable_xresources+set}" = set; then
5403 enableval="$enable_xresources"
698dcdb6 5404
10f2d63a
VZ
5405 if test "$enableval" = yes; then
5406 ac_cv_use_xresources='wxUSE_X_RESOURCES=yes'
5407 else
5408 ac_cv_use_xresources='wxUSE_X_RESOURCES=no'
5409 fi
698dcdb6 5410
10f2d63a 5411else
698dcdb6 5412
10f2d63a
VZ
5413 LINE=`grep "wxUSE_X_RESOURCES" ${wx_arg_cache_file}`
5414 if test "x$LINE" != x ; then
5415 eval "DEFAULT_$LINE"
5416 else
5417 no_cache=1
5418 fi
5419
5420 ac_cv_use_xresources='wxUSE_X_RESOURCES='$DEFAULT_wxUSE_X_RESOURCES
698dcdb6
VZ
5421
5422fi
10f2d63a
VZ
5423
5424
5425 eval "$ac_cv_use_xresources"
5426 if test "$no_cache" != 1; then
5427 echo $ac_cv_use_xresources >> ${wx_arg_cache_file}.tmp
5428 fi
5429
5430 if test "$wxUSE_X_RESOURCES" = yes; then
698dcdb6 5431 echo "$ac_t""yes" 1>&6
10f2d63a 5432 else
698dcdb6 5433 echo "$ac_t""no" 1>&6
10f2d63a 5434 fi
698dcdb6
VZ
5435
5436
10f2d63a 5437
698dcdb6
VZ
5438
5439 echo $ac_n "checking for --enable-clipboard""... $ac_c" 1>&6
4b6b4dfc 5440echo "configure:5441: checking for --enable-clipboard" >&5
10f2d63a
VZ
5441 no_cache=0
5442 # Check whether --enable-clipboard or --disable-clipboard was given.
5443if test "${enable_clipboard+set}" = set; then
5444 enableval="$enable_clipboard"
698dcdb6 5445
10f2d63a
VZ
5446 if test "$enableval" = yes; then
5447 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
5448 else
5449 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
5450 fi
698dcdb6 5451
10f2d63a 5452else
698dcdb6 5453
10f2d63a
VZ
5454 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
5455 if test "x$LINE" != x ; then
5456 eval "DEFAULT_$LINE"
5457 else
5458 no_cache=1
5459 fi
5460
5461 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
698dcdb6
VZ
5462
5463fi
10f2d63a
VZ
5464
5465
5466 eval "$ac_cv_use_clipboard"
5467 if test "$no_cache" != 1; then
5468 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
5469 fi
5470
5471 if test "$wxUSE_CLIPBOARD" = yes; then
698dcdb6 5472 echo "$ac_t""yes" 1>&6
10f2d63a 5473 else
698dcdb6 5474 echo "$ac_t""no" 1>&6
10f2d63a 5475 fi
698dcdb6 5476
10f2d63a 5477
698dcdb6 5478 echo $ac_n "checking for --enable-dnd""... $ac_c" 1>&6
4b6b4dfc 5479echo "configure:5480: checking for --enable-dnd" >&5
10f2d63a
VZ
5480 no_cache=0
5481 # Check whether --enable-dnd or --disable-dnd was given.
5482if test "${enable_dnd+set}" = set; then
5483 enableval="$enable_dnd"
698dcdb6 5484
10f2d63a
VZ
5485 if test "$enableval" = yes; then
5486 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
5487 else
5488 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
5489 fi
698dcdb6 5490
10f2d63a 5491else
698dcdb6 5492
10f2d63a
VZ
5493 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
5494 if test "x$LINE" != x ; then
5495 eval "DEFAULT_$LINE"
5496 else
5497 no_cache=1
5498 fi
5499
5500 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
698dcdb6
VZ
5501
5502fi
10f2d63a
VZ
5503
5504
5505 eval "$ac_cv_use_dnd"
5506 if test "$no_cache" != 1; then
5507 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
5508 fi
5509
5510 if test "$wxUSE_DRAG_AND_DROP" = yes; then
698dcdb6 5511 echo "$ac_t""yes" 1>&6
10f2d63a 5512 else
698dcdb6 5513 echo "$ac_t""no" 1>&6
10f2d63a 5514 fi
698dcdb6 5515
10f2d63a 5516
698dcdb6 5517 echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6
4b6b4dfc 5518echo "configure:5519: checking for --enable-metafile" >&5
b64f0a5f
RL
5519 no_cache=0
5520 # Check whether --enable-metafile or --disable-metafile was given.
5521if test "${enable_metafile+set}" = set; then
5522 enableval="$enable_metafile"
698dcdb6 5523
b64f0a5f
RL
5524 if test "$enableval" = yes; then
5525 ac_cv_use_metafile='wxUSE_METAFILE=yes'
5526 else
5527 ac_cv_use_metafile='wxUSE_METAFILE=no'
5528 fi
698dcdb6 5529
b64f0a5f 5530else
698dcdb6 5531
b64f0a5f
RL
5532 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
5533 if test "x$LINE" != x ; then
5534 eval "DEFAULT_$LINE"
5535 else
5536 no_cache=1
5537 fi
5538
5539 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
698dcdb6
VZ
5540
5541fi
b64f0a5f
RL
5542
5543
5544 eval "$ac_cv_use_metafile"
5545 if test "$no_cache" != 1; then
5546 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
5547 fi
5548
5549 if test "$wxUSE_METAFILE" = yes; then
698dcdb6 5550 echo "$ac_t""yes" 1>&6
b64f0a5f 5551 else
698dcdb6 5552 echo "$ac_t""no" 1>&6
b64f0a5f 5553 fi
698dcdb6
VZ
5554
5555
10f2d63a 5556
24176f2c 5557 echo $ac_n "checking for --enable-treelayout""... $ac_c" 1>&6
4b6b4dfc 5558echo "configure:5559: checking for --enable-treelayout" >&5
10f2d63a 5559 no_cache=0
24176f2c
GD
5560 # Check whether --enable-treelayout or --disable-treelayout was given.
5561if test "${enable_treelayout+set}" = set; then
5562 enableval="$enable_treelayout"
698dcdb6 5563
10f2d63a 5564 if test "$enableval" = yes; then
24176f2c 5565 ac_cv_use_treelayout='wxUSE_TREELAYOUT=yes'
10f2d63a 5566 else
24176f2c 5567 ac_cv_use_treelayout='wxUSE_TREELAYOUT=no'
10f2d63a 5568 fi
698dcdb6 5569
10f2d63a 5570else
698dcdb6 5571
24176f2c 5572 LINE=`grep "wxUSE_TREELAYOUT" ${wx_arg_cache_file}`
10f2d63a
VZ
5573 if test "x$LINE" != x ; then
5574 eval "DEFAULT_$LINE"
5575 else
5576 no_cache=1
5577 fi
5578
24176f2c 5579 ac_cv_use_treelayout='wxUSE_TREELAYOUT='$DEFAULT_wxUSE_TREELAYOUT
698dcdb6
VZ
5580
5581fi
10f2d63a
VZ
5582
5583
24176f2c 5584 eval "$ac_cv_use_treelayout"
10f2d63a 5585 if test "$no_cache" != 1; then
24176f2c 5586 echo $ac_cv_use_treelayout >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
5587 fi
5588
24176f2c 5589 if test "$wxUSE_TREELAYOUT" = yes; then
698dcdb6 5590 echo "$ac_t""yes" 1>&6
10f2d63a 5591 else
698dcdb6 5592 echo "$ac_t""no" 1>&6
10f2d63a 5593 fi
698dcdb6 5594
10f2d63a 5595
698dcdb6
VZ
5596
5597
5598 echo $ac_n "checking for --enable-controls""... $ac_c" 1>&6
4b6b4dfc 5599echo "configure:5600: checking for --enable-controls" >&5
10f2d63a
VZ
5600 no_cache=0
5601 # Check whether --enable-controls or --disable-controls was given.
5602if test "${enable_controls+set}" = set; then
5603 enableval="$enable_controls"
698dcdb6 5604
10f2d63a
VZ
5605 if test "$enableval" = yes; then
5606 ac_cv_use_controls='wxUSE_CONTROLS=yes'
5607 else
5608 ac_cv_use_controls='wxUSE_CONTROLS=no'
5609 fi
698dcdb6 5610
10f2d63a 5611else
698dcdb6 5612
10f2d63a
VZ
5613 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
5614 if test "x$LINE" != x ; then
5615 eval "DEFAULT_$LINE"
5616 else
5617 no_cache=1
5618 fi
5619
5620 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
698dcdb6
VZ
5621
5622fi
10f2d63a
VZ
5623
5624
5625 eval "$ac_cv_use_controls"
5626 if test "$no_cache" != 1; then
5627 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
5628 fi
5629
5630 if test "$wxUSE_CONTROLS" = yes; then
698dcdb6 5631 echo "$ac_t""yes" 1>&6
10f2d63a 5632 else
698dcdb6 5633 echo "$ac_t""no" 1>&6
10f2d63a 5634 fi
698dcdb6 5635
10f2d63a
VZ
5636
5637if test "$wxUSE_CONTROLS" = "yes"; then
5638 DEFAULT_wxUSE_ACCEL=yes
1e6feb95
VZ
5639 DEFAULT_wxUSE_BMPBUTTON=yes
5640 DEFAULT_wxUSE_BUTTON=yes
5641 DEFAULT_wxUSE_CALCTRL=no
10f2d63a
VZ
5642 DEFAULT_wxUSE_CARET=yes
5643 DEFAULT_wxUSE_COMBOBOX=yes
10f2d63a
VZ
5644 DEFAULT_wxUSE_CHECKBOX=yes
5645 DEFAULT_wxUSE_CHECKLISTBOX=yes
5646 DEFAULT_wxUSE_CHOICE=yes
5647 DEFAULT_wxUSE_GAUGE=yes
5648 DEFAULT_wxUSE_GRID=yes
cc977e5f 5649 DEFAULT_wxUSE_NEW_GRID=yes
10f2d63a
VZ
5650 DEFAULT_wxUSE_IMAGLIST=yes
5651 DEFAULT_wxUSE_LISTBOX=yes
5652 DEFAULT_wxUSE_LISTCTRL=yes
5653 DEFAULT_wxUSE_NOTEBOOK=yes
24176f2c 5654 DEFAULT_wxUSE_PROPSHEET=yes
10f2d63a
VZ
5655 DEFAULT_wxUSE_RADIOBOX=yes
5656 DEFAULT_wxUSE_RADIOBTN=yes
5657 DEFAULT_wxUSE_SASH=yes
5658 DEFAULT_wxUSE_SCROLLBAR=yes
5659 DEFAULT_wxUSE_SLIDER=yes
5660 DEFAULT_wxUSE_SPINBTN=yes
56cfaa52 5661 DEFAULT_wxUSE_SPINCTRL=yes
10f2d63a
VZ
5662 DEFAULT_wxUSE_SPLITTER=yes
5663 DEFAULT_wxUSE_STATBMP=yes
5664 DEFAULT_wxUSE_STATBOX=yes
5665 DEFAULT_wxUSE_STATLINE=yes
5666 DEFAULT_wxUSE_STATUSBAR=yes
5667 DEFAULT_wxUSE_TAB_DIALOG=yes
1db8dc4a 5668 DEFAULT_wxUSE_TOGGLEBTN=yes
10f2d63a 5669 DEFAULT_wxUSE_TOOLBAR=yes
360d6699
VZ
5670 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
5671 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
10f2d63a
VZ
5672 DEFAULT_wxUSE_TOOLTIPS=yes
5673 DEFAULT_wxUSE_TREECTRL=yes
9f41d601 5674 DEFAULT_wxUSE_POPUPWIN=yes
9926e4a4 5675 DEFAULT_wxUSE_TIPWINDOW=yes
10f2d63a
VZ
5676elif test "$wxUSE_CONTROLS" = "no"; then
5677 DEFAULT_wxUSE_ACCEL=no
1e6feb95
VZ
5678 DEFAULT_wxUSE_BMPBUTTON=no
5679 DEFAULT_wxUSE_BUTTON=no
5680 DEFAULT_wxUSE_CALCTRL=no
10f2d63a
VZ
5681 DEFAULT_wxUSE_CARET=no
5682 DEFAULT_wxUSE_COMBOBOX=no
10f2d63a
VZ
5683 DEFAULT_wxUSE_CHECKBOX=no
5684 DEFAULT_wxUSE_CHECKLISTBOX=no
5685 DEFAULT_wxUSE_CHOICE=no
5686 DEFAULT_wxUSE_GAUGE=no
5687 DEFAULT_wxUSE_GRID=no
5688 DEFAULT_wxUSE_NEW_GRID=no
5689 DEFAULT_wxUSE_IMAGLIST=no
5690 DEFAULT_wxUSE_LISTBOX=no
5691 DEFAULT_wxUSE_LISTCTRL=no
5692 DEFAULT_wxUSE_NOTEBOOK=no
24176f2c 5693 DEFAULT_wxUSE_PROPSHEET=no
10f2d63a
VZ
5694 DEFAULT_wxUSE_RADIOBOX=no
5695 DEFAULT_wxUSE_RADIOBTN=no
5696 DEFAULT_wxUSE_SASH=no
5697 DEFAULT_wxUSE_SCROLLBAR=no
5698 DEFAULT_wxUSE_SLIDER=no
5699 DEFAULT_wxUSE_SPINBTN=no
56cfaa52 5700 DEFAULT_wxUSE_SPINCTRL=no
10f2d63a
VZ
5701 DEFAULT_wxUSE_SPLITTER=no
5702 DEFAULT_wxUSE_STATBMP=no
5703 DEFAULT_wxUSE_STATBOX=no
5704 DEFAULT_wxUSE_STATLINE=no
5705 DEFAULT_wxUSE_STATUSBAR=no
5706 DEFAULT_wxUSE_TAB_DIALOG=no
1db8dc4a 5707 DEFAULT_wxUSE_TOGGLEBTN=no
10f2d63a 5708 DEFAULT_wxUSE_TOOLBAR=no
360d6699
VZ
5709 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
5710 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
10f2d63a
VZ
5711 DEFAULT_wxUSE_TOOLTIPS=no
5712 DEFAULT_wxUSE_TREECTRL=no
9f41d601 5713 DEFAULT_wxUSE_POPUPWIN=no
9926e4a4 5714 DEFAULT_wxUSE_TIPWINDOW=no
10f2d63a
VZ
5715fi
5716
698dcdb6
VZ
5717
5718 echo $ac_n "checking for --enable-accel""... $ac_c" 1>&6
4b6b4dfc 5719echo "configure:5720: checking for --enable-accel" >&5
10f2d63a
VZ
5720 no_cache=0
5721 # Check whether --enable-accel or --disable-accel was given.
5722if test "${enable_accel+set}" = set; then
5723 enableval="$enable_accel"
698dcdb6 5724
10f2d63a
VZ
5725 if test "$enableval" = yes; then
5726 ac_cv_use_accel='wxUSE_ACCEL=yes'
5727 else
5728 ac_cv_use_accel='wxUSE_ACCEL=no'
5729 fi
698dcdb6 5730
10f2d63a 5731else
698dcdb6 5732
10f2d63a
VZ
5733 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
5734 if test "x$LINE" != x ; then
5735 eval "DEFAULT_$LINE"
5736 else
5737 no_cache=1
5738 fi
5739
5740 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
698dcdb6
VZ
5741
5742fi
10f2d63a
VZ
5743
5744
5745 eval "$ac_cv_use_accel"
5746 if test "$no_cache" != 1; then
5747 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
5748 fi
5749
5750 if test "$wxUSE_ACCEL" = yes; then
698dcdb6 5751 echo "$ac_t""yes" 1>&6
10f2d63a 5752 else
698dcdb6 5753 echo "$ac_t""no" 1>&6
10f2d63a 5754 fi
698dcdb6 5755
10f2d63a 5756
1e6feb95 5757 echo $ac_n "checking for --enable-button""... $ac_c" 1>&6
4b6b4dfc 5758echo "configure:5759: checking for --enable-button" >&5
10f2d63a 5759 no_cache=0
1e6feb95
VZ
5760 # Check whether --enable-button or --disable-button was given.
5761if test "${enable_button+set}" = set; then
5762 enableval="$enable_button"
698dcdb6 5763
10f2d63a 5764 if test "$enableval" = yes; then
1e6feb95 5765 ac_cv_use_button='wxUSE_BUTTON=yes'
10f2d63a 5766 else
1e6feb95 5767 ac_cv_use_button='wxUSE_BUTTON=no'
10f2d63a 5768 fi
698dcdb6 5769
10f2d63a 5770else
698dcdb6 5771
1e6feb95 5772 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
10f2d63a
VZ
5773 if test "x$LINE" != x ; then
5774 eval "DEFAULT_$LINE"
5775 else
5776 no_cache=1
5777 fi
5778
1e6feb95 5779 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
698dcdb6
VZ
5780
5781fi
10f2d63a
VZ
5782
5783
1e6feb95 5784 eval "$ac_cv_use_button"
10f2d63a 5785 if test "$no_cache" != 1; then
1e6feb95 5786 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
5787 fi
5788
1e6feb95 5789 if test "$wxUSE_BUTTON" = yes; then
698dcdb6 5790 echo "$ac_t""yes" 1>&6
10f2d63a 5791 else
698dcdb6 5792 echo "$ac_t""no" 1>&6
10f2d63a 5793 fi
698dcdb6 5794
10f2d63a 5795
698dcdb6 5796 echo $ac_n "checking for --enable-bmpbutton""... $ac_c" 1>&6
4b6b4dfc 5797echo "configure:5798: checking for --enable-bmpbutton" >&5
10f2d63a
VZ
5798 no_cache=0
5799 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
5800if test "${enable_bmpbutton+set}" = set; then
5801 enableval="$enable_bmpbutton"
698dcdb6 5802
10f2d63a
VZ
5803 if test "$enableval" = yes; then
5804 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
5805 else
5806 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
5807 fi
698dcdb6 5808
10f2d63a 5809else
698dcdb6 5810
10f2d63a
VZ
5811 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
5812 if test "x$LINE" != x ; then
5813 eval "DEFAULT_$LINE"
5814 else
5815 no_cache=1
5816 fi
5817
5818 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
698dcdb6
VZ
5819
5820fi
10f2d63a
VZ
5821
5822
5823 eval "$ac_cv_use_bmpbutton"
5824 if test "$no_cache" != 1; then
5825 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
5826 fi
5827
5828 if test "$wxUSE_BMPBUTTON" = yes; then
698dcdb6 5829 echo "$ac_t""yes" 1>&6
10f2d63a 5830 else
698dcdb6 5831 echo "$ac_t""no" 1>&6
10f2d63a 5832 fi
698dcdb6 5833
10f2d63a 5834
1e6feb95 5835 echo $ac_n "checking for --enable-calendar""... $ac_c" 1>&6
4b6b4dfc 5836echo "configure:5837: checking for --enable-calendar" >&5
1e6feb95
VZ
5837 no_cache=0
5838 # Check whether --enable-calendar or --disable-calendar was given.
5839if test "${enable_calendar+set}" = set; then
5840 enableval="$enable_calendar"
5841
5842 if test "$enableval" = yes; then
5843 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
5844 else
5845 ac_cv_use_calendar='wxUSE_CALCTRL=no'
5846 fi
5847
5848else
5849
5850 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
5851 if test "x$LINE" != x ; then
5852 eval "DEFAULT_$LINE"
5853 else
5854 no_cache=1
5855 fi
5856
5857 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
5858
5859fi
5860
5861
5862 eval "$ac_cv_use_calendar"
5863 if test "$no_cache" != 1; then
5864 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
5865 fi
5866
5867 if test "$wxUSE_CALCTRL" = yes; then
5868 echo "$ac_t""yes" 1>&6
5869 else
5870 echo "$ac_t""no" 1>&6
5871 fi
5872
5873
5874 echo $ac_n "checking for --enable-caret""... $ac_c" 1>&6
4b6b4dfc 5875echo "configure:5876: checking for --enable-caret" >&5
1e6feb95
VZ
5876 no_cache=0
5877 # Check whether --enable-caret or --disable-caret was given.
5878if test "${enable_caret+set}" = set; then
5879 enableval="$enable_caret"
5880
5881 if test "$enableval" = yes; then
5882 ac_cv_use_caret='wxUSE_CARET=yes'
5883 else
5884 ac_cv_use_caret='wxUSE_CARET=no'
5885 fi
5886
5887else
5888
5889 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
5890 if test "x$LINE" != x ; then
5891 eval "DEFAULT_$LINE"
5892 else
5893 no_cache=1
5894 fi
5895
5896 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
5897
5898fi
5899
5900
5901 eval "$ac_cv_use_caret"
5902 if test "$no_cache" != 1; then
5903 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
5904 fi
5905
5906 if test "$wxUSE_CARET" = yes; then
5907 echo "$ac_t""yes" 1>&6
5908 else
5909 echo "$ac_t""no" 1>&6
5910 fi
5911
5912
698dcdb6 5913 echo $ac_n "checking for --enable-checkbox""... $ac_c" 1>&6
4b6b4dfc 5914echo "configure:5915: checking for --enable-checkbox" >&5
10f2d63a
VZ
5915 no_cache=0
5916 # Check whether --enable-checkbox or --disable-checkbox was given.
5917if test "${enable_checkbox+set}" = set; then
5918 enableval="$enable_checkbox"
698dcdb6 5919
10f2d63a
VZ
5920 if test "$enableval" = yes; then
5921 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
5922 else
5923 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
5924 fi
698dcdb6 5925
10f2d63a 5926else
698dcdb6 5927
10f2d63a
VZ
5928 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
5929 if test "x$LINE" != x ; then
5930 eval "DEFAULT_$LINE"
5931 else
5932 no_cache=1
5933 fi
5934
5935 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
698dcdb6
VZ
5936
5937fi
10f2d63a
VZ
5938
5939
5940 eval "$ac_cv_use_checkbox"
5941 if test "$no_cache" != 1; then
5942 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
5943 fi
5944
5945 if test "$wxUSE_CHECKBOX" = yes; then
698dcdb6 5946 echo "$ac_t""yes" 1>&6
10f2d63a 5947 else
698dcdb6 5948 echo "$ac_t""no" 1>&6
10f2d63a 5949 fi
698dcdb6 5950
10f2d63a 5951
698dcdb6 5952 echo $ac_n "checking for --enable-checklst""... $ac_c" 1>&6
4b6b4dfc 5953echo "configure:5954: checking for --enable-checklst" >&5
10f2d63a
VZ
5954 no_cache=0
5955 # Check whether --enable-checklst or --disable-checklst was given.
5956if test "${enable_checklst+set}" = set; then
5957 enableval="$enable_checklst"
698dcdb6 5958
10f2d63a
VZ
5959 if test "$enableval" = yes; then
5960 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
5961 else
5962 ac_cv_use_checklst='wxUSE_CHECKLST=no'
5963 fi
698dcdb6 5964
10f2d63a 5965else
698dcdb6 5966
10f2d63a
VZ
5967 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
5968 if test "x$LINE" != x ; then
5969 eval "DEFAULT_$LINE"
5970 else
5971 no_cache=1
5972 fi
5973
5974 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
698dcdb6
VZ
5975
5976fi
10f2d63a
VZ
5977
5978
5979 eval "$ac_cv_use_checklst"
5980 if test "$no_cache" != 1; then
5981 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
5982 fi
5983
5984 if test "$wxUSE_CHECKLST" = yes; then
698dcdb6 5985 echo "$ac_t""yes" 1>&6
10f2d63a 5986 else
698dcdb6 5987 echo "$ac_t""no" 1>&6
10f2d63a 5988 fi
698dcdb6 5989
10f2d63a 5990
698dcdb6 5991 echo $ac_n "checking for --enable-choice""... $ac_c" 1>&6
4b6b4dfc 5992echo "configure:5993: checking for --enable-choice" >&5
10f2d63a
VZ
5993 no_cache=0
5994 # Check whether --enable-choice or --disable-choice was given.
5995if test "${enable_choice+set}" = set; then
5996 enableval="$enable_choice"
698dcdb6 5997
10f2d63a
VZ
5998 if test "$enableval" = yes; then
5999 ac_cv_use_choice='wxUSE_CHOICE=yes'
6000 else
6001 ac_cv_use_choice='wxUSE_CHOICE=no'
6002 fi
698dcdb6 6003
10f2d63a 6004else
698dcdb6 6005
10f2d63a
VZ
6006 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
6007 if test "x$LINE" != x ; then
6008 eval "DEFAULT_$LINE"
6009 else
6010 no_cache=1
6011 fi
6012
6013 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
698dcdb6
VZ
6014
6015fi
10f2d63a
VZ
6016
6017
6018 eval "$ac_cv_use_choice"
6019 if test "$no_cache" != 1; then
6020 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
6021 fi
6022
6023 if test "$wxUSE_CHOICE" = yes; then
698dcdb6 6024 echo "$ac_t""yes" 1>&6
10f2d63a 6025 else
698dcdb6 6026 echo "$ac_t""no" 1>&6
10f2d63a 6027 fi
698dcdb6 6028
10f2d63a 6029
698dcdb6 6030 echo $ac_n "checking for --enable-combobox""... $ac_c" 1>&6
4b6b4dfc 6031echo "configure:6032: checking for --enable-combobox" >&5
10f2d63a
VZ
6032 no_cache=0
6033 # Check whether --enable-combobox or --disable-combobox was given.
6034if test "${enable_combobox+set}" = set; then
6035 enableval="$enable_combobox"
698dcdb6 6036
10f2d63a
VZ
6037 if test "$enableval" = yes; then
6038 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
6039 else
6040 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
6041 fi
698dcdb6 6042
10f2d63a 6043else
698dcdb6 6044
10f2d63a
VZ
6045 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
6046 if test "x$LINE" != x ; then
6047 eval "DEFAULT_$LINE"
6048 else
6049 no_cache=1
6050 fi
6051
6052 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
698dcdb6
VZ
6053
6054fi
10f2d63a
VZ
6055
6056
6057 eval "$ac_cv_use_combobox"
6058 if test "$no_cache" != 1; then
6059 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
6060 fi
6061
6062 if test "$wxUSE_COMBOBOX" = yes; then
698dcdb6 6063 echo "$ac_t""yes" 1>&6
10f2d63a 6064 else
698dcdb6 6065 echo "$ac_t""no" 1>&6
10f2d63a 6066 fi
698dcdb6 6067
10f2d63a 6068
698dcdb6 6069 echo $ac_n "checking for --enable-gauge""... $ac_c" 1>&6
4b6b4dfc 6070echo "configure:6071: checking for --enable-gauge" >&5
10f2d63a
VZ
6071 no_cache=0
6072 # Check whether --enable-gauge or --disable-gauge was given.
6073if test "${enable_gauge+set}" = set; then
6074 enableval="$enable_gauge"
698dcdb6 6075
10f2d63a
VZ
6076 if test "$enableval" = yes; then
6077 ac_cv_use_gauge='wxUSE_GAUGE=yes'
6078 else
6079 ac_cv_use_gauge='wxUSE_GAUGE=no'
6080 fi
698dcdb6 6081
10f2d63a 6082else
698dcdb6 6083
10f2d63a
VZ
6084 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
6085 if test "x$LINE" != x ; then
6086 eval "DEFAULT_$LINE"
6087 else
6088 no_cache=1
6089 fi
6090
6091 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
698dcdb6
VZ
6092
6093fi
10f2d63a
VZ
6094
6095
6096 eval "$ac_cv_use_gauge"
6097 if test "$no_cache" != 1; then
6098 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
6099 fi
6100
6101 if test "$wxUSE_GAUGE" = yes; then
698dcdb6 6102 echo "$ac_t""yes" 1>&6
10f2d63a 6103 else
698dcdb6 6104 echo "$ac_t""no" 1>&6
10f2d63a 6105 fi
698dcdb6 6106
10f2d63a 6107
698dcdb6 6108 echo $ac_n "checking for --enable-grid""... $ac_c" 1>&6
4b6b4dfc 6109echo "configure:6110: checking for --enable-grid" >&5
10f2d63a
VZ
6110 no_cache=0
6111 # Check whether --enable-grid or --disable-grid was given.
6112if test "${enable_grid+set}" = set; then
6113 enableval="$enable_grid"
698dcdb6 6114
10f2d63a
VZ
6115 if test "$enableval" = yes; then
6116 ac_cv_use_grid='wxUSE_GRID=yes'
6117 else
6118 ac_cv_use_grid='wxUSE_GRID=no'
6119 fi
698dcdb6 6120
10f2d63a 6121else
698dcdb6 6122
10f2d63a
VZ
6123 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
6124 if test "x$LINE" != x ; then
6125 eval "DEFAULT_$LINE"
6126 else
6127 no_cache=1
6128 fi
6129
6130 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
698dcdb6
VZ
6131
6132fi
10f2d63a
VZ
6133
6134
6135 eval "$ac_cv_use_grid"
6136 if test "$no_cache" != 1; then
6137 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
6138 fi
6139
6140 if test "$wxUSE_GRID" = yes; then
698dcdb6 6141 echo "$ac_t""yes" 1>&6
10f2d63a 6142 else
698dcdb6 6143 echo "$ac_t""no" 1>&6
10f2d63a 6144 fi
698dcdb6 6145
10f2d63a 6146
698dcdb6 6147 echo $ac_n "checking for --enable-newgrid""... $ac_c" 1>&6
4b6b4dfc 6148echo "configure:6149: checking for --enable-newgrid" >&5
10f2d63a
VZ
6149 no_cache=0
6150 # Check whether --enable-newgrid or --disable-newgrid was given.
6151if test "${enable_newgrid+set}" = set; then
6152 enableval="$enable_newgrid"
698dcdb6 6153
10f2d63a
VZ
6154 if test "$enableval" = yes; then
6155 ac_cv_use_newgrid='wxUSE_NEW_GRID=yes'
6156 else
6157 ac_cv_use_newgrid='wxUSE_NEW_GRID=no'
6158 fi
698dcdb6 6159
10f2d63a 6160else
698dcdb6 6161
10f2d63a
VZ
6162 LINE=`grep "wxUSE_NEW_GRID" ${wx_arg_cache_file}`
6163 if test "x$LINE" != x ; then
6164 eval "DEFAULT_$LINE"
6165 else
6166 no_cache=1
6167 fi
6168
6169 ac_cv_use_newgrid='wxUSE_NEW_GRID='$DEFAULT_wxUSE_NEW_GRID
698dcdb6
VZ
6170
6171fi
10f2d63a
VZ
6172
6173
6174 eval "$ac_cv_use_newgrid"
6175 if test "$no_cache" != 1; then
6176 echo $ac_cv_use_newgrid >> ${wx_arg_cache_file}.tmp
6177 fi
6178
6179 if test "$wxUSE_NEW_GRID" = yes; then
698dcdb6 6180 echo "$ac_t""yes" 1>&6
10f2d63a 6181 else
698dcdb6 6182 echo "$ac_t""no" 1>&6
10f2d63a 6183 fi
698dcdb6 6184
10f2d63a 6185
698dcdb6 6186 echo $ac_n "checking for --enable-imaglist""... $ac_c" 1>&6
4b6b4dfc 6187echo "configure:6188: checking for --enable-imaglist" >&5
10f2d63a
VZ
6188 no_cache=0
6189 # Check whether --enable-imaglist or --disable-imaglist was given.
6190if test "${enable_imaglist+set}" = set; then
6191 enableval="$enable_imaglist"
698dcdb6 6192
10f2d63a
VZ
6193 if test "$enableval" = yes; then
6194 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
6195 else
6196 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
6197 fi
698dcdb6 6198
10f2d63a 6199else
698dcdb6 6200
10f2d63a
VZ
6201 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
6202 if test "x$LINE" != x ; then
6203 eval "DEFAULT_$LINE"
6204 else
6205 no_cache=1
6206 fi
6207
6208 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
698dcdb6
VZ
6209
6210fi
10f2d63a
VZ
6211
6212
6213 eval "$ac_cv_use_imaglist"
6214 if test "$no_cache" != 1; then
6215 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
6216 fi
6217
6218 if test "$wxUSE_IMAGLIST" = yes; then
698dcdb6 6219 echo "$ac_t""yes" 1>&6
10f2d63a 6220 else
698dcdb6 6221 echo "$ac_t""no" 1>&6
10f2d63a 6222 fi
698dcdb6 6223
10f2d63a 6224
698dcdb6 6225 echo $ac_n "checking for --enable-listbox""... $ac_c" 1>&6
4b6b4dfc 6226echo "configure:6227: checking for --enable-listbox" >&5
10f2d63a
VZ
6227 no_cache=0
6228 # Check whether --enable-listbox or --disable-listbox was given.
6229if test "${enable_listbox+set}" = set; then
6230 enableval="$enable_listbox"
698dcdb6 6231
10f2d63a
VZ
6232 if test "$enableval" = yes; then
6233 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
6234 else
6235 ac_cv_use_listbox='wxUSE_LISTBOX=no'
6236 fi
698dcdb6 6237
10f2d63a 6238else
698dcdb6 6239
10f2d63a
VZ
6240 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
6241 if test "x$LINE" != x ; then
6242 eval "DEFAULT_$LINE"
6243 else
6244 no_cache=1
6245 fi
6246
6247 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
698dcdb6
VZ
6248
6249fi
10f2d63a
VZ
6250
6251
6252 eval "$ac_cv_use_listbox"
6253 if test "$no_cache" != 1; then
6254 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
6255 fi
6256
6257 if test "$wxUSE_LISTBOX" = yes; then
698dcdb6 6258 echo "$ac_t""yes" 1>&6
10f2d63a 6259 else
698dcdb6 6260 echo "$ac_t""no" 1>&6
10f2d63a 6261 fi
698dcdb6 6262
10f2d63a 6263
698dcdb6 6264 echo $ac_n "checking for --enable-listctrl""... $ac_c" 1>&6
4b6b4dfc 6265echo "configure:6266: checking for --enable-listctrl" >&5
10f2d63a
VZ
6266 no_cache=0
6267 # Check whether --enable-listctrl or --disable-listctrl was given.
6268if test "${enable_listctrl+set}" = set; then
6269 enableval="$enable_listctrl"
698dcdb6 6270
10f2d63a
VZ
6271 if test "$enableval" = yes; then
6272 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
6273 else
6274 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
6275 fi
698dcdb6 6276
10f2d63a 6277else
698dcdb6 6278
10f2d63a
VZ
6279 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
6280 if test "x$LINE" != x ; then
6281 eval "DEFAULT_$LINE"
6282 else
6283 no_cache=1
6284 fi
6285
6286 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
698dcdb6
VZ
6287
6288fi
10f2d63a
VZ
6289
6290
6291 eval "$ac_cv_use_listctrl"
6292 if test "$no_cache" != 1; then
6293 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
6294 fi
6295
6296 if test "$wxUSE_LISTCTRL" = yes; then
698dcdb6 6297 echo "$ac_t""yes" 1>&6
10f2d63a 6298 else
698dcdb6 6299 echo "$ac_t""no" 1>&6
10f2d63a 6300 fi
698dcdb6 6301
10f2d63a 6302
698dcdb6 6303 echo $ac_n "checking for --enable-notebook""... $ac_c" 1>&6
4b6b4dfc 6304echo "configure:6305: checking for --enable-notebook" >&5
10f2d63a
VZ
6305 no_cache=0
6306 # Check whether --enable-notebook or --disable-notebook was given.
6307if test "${enable_notebook+set}" = set; then
6308 enableval="$enable_notebook"
698dcdb6 6309
10f2d63a
VZ
6310 if test "$enableval" = yes; then
6311 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
6312 else
6313 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
6314 fi
698dcdb6 6315
10f2d63a 6316else
698dcdb6 6317
10f2d63a
VZ
6318 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
6319 if test "x$LINE" != x ; then
6320 eval "DEFAULT_$LINE"
6321 else
6322 no_cache=1
6323 fi
6324
6325 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
698dcdb6
VZ
6326
6327fi
10f2d63a
VZ
6328
6329
6330 eval "$ac_cv_use_notebook"
6331 if test "$no_cache" != 1; then
6332 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
6333 fi
6334
6335 if test "$wxUSE_NOTEBOOK" = yes; then
698dcdb6 6336 echo "$ac_t""yes" 1>&6
10f2d63a 6337 else
698dcdb6 6338 echo "$ac_t""no" 1>&6
10f2d63a 6339 fi
698dcdb6 6340
10f2d63a 6341
24176f2c 6342 echo $ac_n "checking for --enable-propsheet""... $ac_c" 1>&6
4b6b4dfc 6343echo "configure:6344: checking for --enable-propsheet" >&5
24176f2c
GD
6344 no_cache=0
6345 # Check whether --enable-propsheet or --disable-propsheet was given.
6346if test "${enable_propsheet+set}" = set; then
6347 enableval="$enable_propsheet"
6348
6349 if test "$enableval" = yes; then
6350 ac_cv_use_propsheet='wxUSE_PROPSHEET=yes'
6351 else
6352 ac_cv_use_propsheet='wxUSE_PROPSHEET=no'
6353 fi
6354
6355else
6356
6357 LINE=`grep "wxUSE_PROPSHEET" ${wx_arg_cache_file}`
6358 if test "x$LINE" != x ; then
6359 eval "DEFAULT_$LINE"
6360 else
6361 no_cache=1
6362 fi
6363
6364 ac_cv_use_propsheet='wxUSE_PROPSHEET='$DEFAULT_wxUSE_PROPSHEET
6365
6366fi
6367
6368
6369 eval "$ac_cv_use_propsheet"
6370 if test "$no_cache" != 1; then
6371 echo $ac_cv_use_propsheet >> ${wx_arg_cache_file}.tmp
6372 fi
6373
6374 if test "$wxUSE_PROPSHEET" = yes; then
6375 echo "$ac_t""yes" 1>&6
6376 else
6377 echo "$ac_t""no" 1>&6
6378 fi
6379
6380
698dcdb6 6381 echo $ac_n "checking for --enable-radiobox""... $ac_c" 1>&6
4b6b4dfc 6382echo "configure:6383: checking for --enable-radiobox" >&5
10f2d63a
VZ
6383 no_cache=0
6384 # Check whether --enable-radiobox or --disable-radiobox was given.
6385if test "${enable_radiobox+set}" = set; then
6386 enableval="$enable_radiobox"
698dcdb6 6387
10f2d63a
VZ
6388 if test "$enableval" = yes; then
6389 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
6390 else
6391 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
6392 fi
698dcdb6 6393
10f2d63a 6394else
698dcdb6 6395
10f2d63a
VZ
6396 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
6397 if test "x$LINE" != x ; then
6398 eval "DEFAULT_$LINE"
6399 else
6400 no_cache=1
6401 fi
6402
6403 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
698dcdb6
VZ
6404
6405fi
10f2d63a
VZ
6406
6407
6408 eval "$ac_cv_use_radiobox"
6409 if test "$no_cache" != 1; then
6410 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
6411 fi
6412
6413 if test "$wxUSE_RADIOBOX" = yes; then
698dcdb6 6414 echo "$ac_t""yes" 1>&6
10f2d63a 6415 else
698dcdb6 6416 echo "$ac_t""no" 1>&6
10f2d63a 6417 fi
698dcdb6 6418
10f2d63a 6419
698dcdb6 6420 echo $ac_n "checking for --enable-radiobtn""... $ac_c" 1>&6
4b6b4dfc 6421echo "configure:6422: checking for --enable-radiobtn" >&5
10f2d63a
VZ
6422 no_cache=0
6423 # Check whether --enable-radiobtn or --disable-radiobtn was given.
6424if test "${enable_radiobtn+set}" = set; then
6425 enableval="$enable_radiobtn"
698dcdb6 6426
10f2d63a
VZ
6427 if test "$enableval" = yes; then
6428 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
6429 else
6430 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
6431 fi
698dcdb6 6432
10f2d63a 6433else
698dcdb6 6434
10f2d63a
VZ
6435 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
6436 if test "x$LINE" != x ; then
6437 eval "DEFAULT_$LINE"
6438 else
6439 no_cache=1
6440 fi
6441
6442 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
698dcdb6
VZ
6443
6444fi
10f2d63a
VZ
6445
6446
6447 eval "$ac_cv_use_radiobtn"
6448 if test "$no_cache" != 1; then
6449 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
6450 fi
6451
6452 if test "$wxUSE_RADIOBTN" = yes; then
698dcdb6 6453 echo "$ac_t""yes" 1>&6
10f2d63a 6454 else
698dcdb6 6455 echo "$ac_t""no" 1>&6
10f2d63a 6456 fi
698dcdb6 6457
10f2d63a 6458
698dcdb6 6459 echo $ac_n "checking for --enable-sash""... $ac_c" 1>&6
4b6b4dfc 6460echo "configure:6461: checking for --enable-sash" >&5
10f2d63a
VZ
6461 no_cache=0
6462 # Check whether --enable-sash or --disable-sash was given.
6463if test "${enable_sash+set}" = set; then
6464 enableval="$enable_sash"
698dcdb6 6465
10f2d63a
VZ
6466 if test "$enableval" = yes; then
6467 ac_cv_use_sash='wxUSE_SASH=yes'
6468 else
6469 ac_cv_use_sash='wxUSE_SASH=no'
6470 fi
698dcdb6 6471
10f2d63a 6472else
698dcdb6 6473
10f2d63a
VZ
6474 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
6475 if test "x$LINE" != x ; then
6476 eval "DEFAULT_$LINE"
6477 else
6478 no_cache=1
6479 fi
6480
6481 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
698dcdb6
VZ
6482
6483fi
10f2d63a
VZ
6484
6485
6486 eval "$ac_cv_use_sash"
6487 if test "$no_cache" != 1; then
6488 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
6489 fi
6490
6491 if test "$wxUSE_SASH" = yes; then
698dcdb6 6492 echo "$ac_t""yes" 1>&6
10f2d63a 6493 else
698dcdb6 6494 echo "$ac_t""no" 1>&6
10f2d63a 6495 fi
698dcdb6 6496
10f2d63a 6497
698dcdb6 6498 echo $ac_n "checking for --enable-scrollbar""... $ac_c" 1>&6
4b6b4dfc 6499echo "configure:6500: checking for --enable-scrollbar" >&5
10f2d63a
VZ
6500 no_cache=0
6501 # Check whether --enable-scrollbar or --disable-scrollbar was given.
6502if test "${enable_scrollbar+set}" = set; then
6503 enableval="$enable_scrollbar"
698dcdb6 6504
10f2d63a
VZ
6505 if test "$enableval" = yes; then
6506 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
6507 else
6508 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
6509 fi
698dcdb6 6510
10f2d63a 6511else
698dcdb6 6512
10f2d63a
VZ
6513 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
6514 if test "x$LINE" != x ; then
6515 eval "DEFAULT_$LINE"
6516 else
6517 no_cache=1
6518 fi
6519
6520 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
698dcdb6
VZ
6521
6522fi
10f2d63a
VZ
6523
6524
6525 eval "$ac_cv_use_scrollbar"
6526 if test "$no_cache" != 1; then
6527 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
6528 fi
6529
6530 if test "$wxUSE_SCROLLBAR" = yes; then
698dcdb6 6531 echo "$ac_t""yes" 1>&6
10f2d63a 6532 else
698dcdb6 6533 echo "$ac_t""no" 1>&6
10f2d63a 6534 fi
698dcdb6 6535
10f2d63a 6536
698dcdb6 6537 echo $ac_n "checking for --enable-slider""... $ac_c" 1>&6
4b6b4dfc 6538echo "configure:6539: checking for --enable-slider" >&5
10f2d63a
VZ
6539 no_cache=0
6540 # Check whether --enable-slider or --disable-slider was given.
6541if test "${enable_slider+set}" = set; then
6542 enableval="$enable_slider"
698dcdb6 6543
10f2d63a
VZ
6544 if test "$enableval" = yes; then
6545 ac_cv_use_slider='wxUSE_SLIDER=yes'
6546 else
6547 ac_cv_use_slider='wxUSE_SLIDER=no'
6548 fi
698dcdb6 6549
10f2d63a 6550else
698dcdb6 6551
10f2d63a
VZ
6552 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
6553 if test "x$LINE" != x ; then
6554 eval "DEFAULT_$LINE"
6555 else
6556 no_cache=1
6557 fi
6558
6559 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
698dcdb6
VZ
6560
6561fi
10f2d63a
VZ
6562
6563
6564 eval "$ac_cv_use_slider"
6565 if test "$no_cache" != 1; then
6566 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
6567 fi
6568
6569 if test "$wxUSE_SLIDER" = yes; then
698dcdb6 6570 echo "$ac_t""yes" 1>&6
10f2d63a 6571 else
698dcdb6 6572 echo "$ac_t""no" 1>&6
10f2d63a 6573 fi
698dcdb6 6574
10f2d63a 6575
698dcdb6 6576 echo $ac_n "checking for --enable-spinbtn""... $ac_c" 1>&6
4b6b4dfc 6577echo "configure:6578: checking for --enable-spinbtn" >&5
10f2d63a
VZ
6578 no_cache=0
6579 # Check whether --enable-spinbtn or --disable-spinbtn was given.
6580if test "${enable_spinbtn+set}" = set; then
6581 enableval="$enable_spinbtn"
698dcdb6 6582
10f2d63a
VZ
6583 if test "$enableval" = yes; then
6584 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
6585 else
6586 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
6587 fi
698dcdb6 6588
10f2d63a 6589else
698dcdb6 6590
10f2d63a
VZ
6591 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
6592 if test "x$LINE" != x ; then
6593 eval "DEFAULT_$LINE"
6594 else
6595 no_cache=1
6596 fi
6597
6598 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
698dcdb6
VZ
6599
6600fi
10f2d63a
VZ
6601
6602
6603 eval "$ac_cv_use_spinbtn"
6604 if test "$no_cache" != 1; then
6605 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
6606 fi
6607
6608 if test "$wxUSE_SPINBTN" = yes; then
698dcdb6 6609 echo "$ac_t""yes" 1>&6
10f2d63a 6610 else
698dcdb6 6611 echo "$ac_t""no" 1>&6
10f2d63a 6612 fi
698dcdb6 6613
10f2d63a 6614
698dcdb6 6615 echo $ac_n "checking for --enable-spinctrl""... $ac_c" 1>&6
4b6b4dfc 6616echo "configure:6617: checking for --enable-spinctrl" >&5
56cfaa52
RR
6617 no_cache=0
6618 # Check whether --enable-spinctrl or --disable-spinctrl was given.
6619if test "${enable_spinctrl+set}" = set; then
6620 enableval="$enable_spinctrl"
698dcdb6 6621
56cfaa52
RR
6622 if test "$enableval" = yes; then
6623 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
6624 else
6625 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
6626 fi
698dcdb6 6627
56cfaa52 6628else
698dcdb6 6629
56cfaa52
RR
6630 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
6631 if test "x$LINE" != x ; then
6632 eval "DEFAULT_$LINE"
6633 else
6634 no_cache=1
6635 fi
6636
6637 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
698dcdb6
VZ
6638
6639fi
56cfaa52
RR
6640
6641
6642 eval "$ac_cv_use_spinctrl"
6643 if test "$no_cache" != 1; then
6644 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
6645 fi
6646
6647 if test "$wxUSE_SPINCTRL" = yes; then
698dcdb6 6648 echo "$ac_t""yes" 1>&6
56cfaa52 6649 else
698dcdb6 6650 echo "$ac_t""no" 1>&6
56cfaa52 6651 fi
698dcdb6 6652
56cfaa52 6653
698dcdb6 6654 echo $ac_n "checking for --enable-splitter""... $ac_c" 1>&6
4b6b4dfc 6655echo "configure:6656: checking for --enable-splitter" >&5
10f2d63a
VZ
6656 no_cache=0
6657 # Check whether --enable-splitter or --disable-splitter was given.
6658if test "${enable_splitter+set}" = set; then
6659 enableval="$enable_splitter"
698dcdb6 6660
10f2d63a
VZ
6661 if test "$enableval" = yes; then
6662 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
6663 else
6664 ac_cv_use_splitter='wxUSE_SPLITTER=no'
6665 fi
698dcdb6 6666
10f2d63a 6667else
698dcdb6 6668
10f2d63a
VZ
6669 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
6670 if test "x$LINE" != x ; then
6671 eval "DEFAULT_$LINE"
6672 else
6673 no_cache=1
6674 fi
6675
6676 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
698dcdb6
VZ
6677
6678fi
10f2d63a
VZ
6679
6680
6681 eval "$ac_cv_use_splitter"
6682 if test "$no_cache" != 1; then
6683 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
6684 fi
6685
6686 if test "$wxUSE_SPLITTER" = yes; then
698dcdb6 6687 echo "$ac_t""yes" 1>&6
10f2d63a 6688 else
698dcdb6 6689 echo "$ac_t""no" 1>&6
10f2d63a 6690 fi
698dcdb6 6691
10f2d63a 6692
698dcdb6 6693 echo $ac_n "checking for --enable-statbmp""... $ac_c" 1>&6
4b6b4dfc 6694echo "configure:6695: checking for --enable-statbmp" >&5
10f2d63a
VZ
6695 no_cache=0
6696 # Check whether --enable-statbmp or --disable-statbmp was given.
6697if test "${enable_statbmp+set}" = set; then
6698 enableval="$enable_statbmp"
698dcdb6 6699
10f2d63a
VZ
6700 if test "$enableval" = yes; then
6701 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
6702 else
6703 ac_cv_use_statbmp='wxUSE_STATBMP=no'
6704 fi
698dcdb6 6705
10f2d63a 6706else
698dcdb6 6707
10f2d63a
VZ
6708 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
6709 if test "x$LINE" != x ; then
6710 eval "DEFAULT_$LINE"
6711 else
6712 no_cache=1
6713 fi
6714
6715 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
698dcdb6
VZ
6716
6717fi
10f2d63a
VZ
6718
6719
6720 eval "$ac_cv_use_statbmp"
6721 if test "$no_cache" != 1; then
6722 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
6723 fi
6724
6725 if test "$wxUSE_STATBMP" = yes; then
698dcdb6 6726 echo "$ac_t""yes" 1>&6
10f2d63a 6727 else
698dcdb6 6728 echo "$ac_t""no" 1>&6
10f2d63a 6729 fi
698dcdb6 6730
10f2d63a 6731
698dcdb6 6732 echo $ac_n "checking for --enable-statbox""... $ac_c" 1>&6
4b6b4dfc 6733echo "configure:6734: checking for --enable-statbox" >&5
10f2d63a
VZ
6734 no_cache=0
6735 # Check whether --enable-statbox or --disable-statbox was given.
6736if test "${enable_statbox+set}" = set; then
6737 enableval="$enable_statbox"
698dcdb6 6738
10f2d63a
VZ
6739 if test "$enableval" = yes; then
6740 ac_cv_use_statbox='wxUSE_STATBOX=yes'
6741 else
6742 ac_cv_use_statbox='wxUSE_STATBOX=no'
6743 fi
698dcdb6 6744
10f2d63a 6745else
698dcdb6 6746
10f2d63a
VZ
6747 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
6748 if test "x$LINE" != x ; then
6749 eval "DEFAULT_$LINE"
6750 else
6751 no_cache=1
6752 fi
6753
6754 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
698dcdb6
VZ
6755
6756fi
10f2d63a
VZ
6757
6758
6759 eval "$ac_cv_use_statbox"
6760 if test "$no_cache" != 1; then
6761 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
6762 fi
6763
6764 if test "$wxUSE_STATBOX" = yes; then
698dcdb6 6765 echo "$ac_t""yes" 1>&6
10f2d63a 6766 else
698dcdb6 6767 echo "$ac_t""no" 1>&6
10f2d63a 6768 fi
698dcdb6 6769
10f2d63a 6770
698dcdb6 6771 echo $ac_n "checking for --enable-statline""... $ac_c" 1>&6
4b6b4dfc 6772echo "configure:6773: checking for --enable-statline" >&5
10f2d63a
VZ
6773 no_cache=0
6774 # Check whether --enable-statline or --disable-statline was given.
6775if test "${enable_statline+set}" = set; then
6776 enableval="$enable_statline"
698dcdb6 6777
10f2d63a
VZ
6778 if test "$enableval" = yes; then
6779 ac_cv_use_statline='wxUSE_STATLINE=yes'
6780 else
6781 ac_cv_use_statline='wxUSE_STATLINE=no'
6782 fi
698dcdb6 6783
10f2d63a 6784else
698dcdb6 6785
10f2d63a
VZ
6786 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
6787 if test "x$LINE" != x ; then
6788 eval "DEFAULT_$LINE"
6789 else
6790 no_cache=1
6791 fi
6792
6793 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
698dcdb6
VZ
6794
6795fi
10f2d63a
VZ
6796
6797
6798 eval "$ac_cv_use_statline"
6799 if test "$no_cache" != 1; then
6800 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
6801 fi
6802
6803 if test "$wxUSE_STATLINE" = yes; then
698dcdb6 6804 echo "$ac_t""yes" 1>&6
10f2d63a 6805 else
698dcdb6 6806 echo "$ac_t""no" 1>&6
10f2d63a 6807 fi
698dcdb6 6808
10f2d63a 6809
1e6feb95 6810 echo $ac_n "checking for --enable-stattext""... $ac_c" 1>&6
4b6b4dfc 6811echo "configure:6812: checking for --enable-stattext" >&5
1e6feb95
VZ
6812 no_cache=0
6813 # Check whether --enable-stattext or --disable-stattext was given.
6814if test "${enable_stattext+set}" = set; then
6815 enableval="$enable_stattext"
6816
6817 if test "$enableval" = yes; then
6818 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
6819 else
6820 ac_cv_use_stattext='wxUSE_STATTEXT=no'
6821 fi
6822
6823else
6824
6825 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
6826 if test "x$LINE" != x ; then
6827 eval "DEFAULT_$LINE"
6828 else
6829 no_cache=1
6830 fi
6831
6832 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
6833
6834fi
6835
6836
6837 eval "$ac_cv_use_stattext"
6838 if test "$no_cache" != 1; then
6839 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
6840 fi
6841
6842 if test "$wxUSE_STATTEXT" = yes; then
6843 echo "$ac_t""yes" 1>&6
6844 else
6845 echo "$ac_t""no" 1>&6
6846 fi
6847
6848
698dcdb6 6849 echo $ac_n "checking for --enable-statusbar""... $ac_c" 1>&6
4b6b4dfc 6850echo "configure:6851: checking for --enable-statusbar" >&5
10f2d63a
VZ
6851 no_cache=0
6852 # Check whether --enable-statusbar or --disable-statusbar was given.
6853if test "${enable_statusbar+set}" = set; then
6854 enableval="$enable_statusbar"
698dcdb6 6855
10f2d63a
VZ
6856 if test "$enableval" = yes; then
6857 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
6858 else
6859 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
6860 fi
698dcdb6 6861
10f2d63a 6862else
698dcdb6 6863
10f2d63a
VZ
6864 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
6865 if test "x$LINE" != x ; then
6866 eval "DEFAULT_$LINE"
6867 else
6868 no_cache=1
6869 fi
6870
6871 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
698dcdb6
VZ
6872
6873fi
10f2d63a
VZ
6874
6875
6876 eval "$ac_cv_use_statusbar"
6877 if test "$no_cache" != 1; then
6878 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
6879 fi
6880
6881 if test "$wxUSE_STATUSBAR" = yes; then
698dcdb6 6882 echo "$ac_t""yes" 1>&6
10f2d63a 6883 else
698dcdb6 6884 echo "$ac_t""no" 1>&6
10f2d63a 6885 fi
698dcdb6 6886
10f2d63a 6887
698dcdb6 6888 echo $ac_n "checking for --enable-tabdialog""... $ac_c" 1>&6
4b6b4dfc 6889echo "configure:6890: checking for --enable-tabdialog" >&5
10f2d63a
VZ
6890 no_cache=0
6891 # Check whether --enable-tabdialog or --disable-tabdialog was given.
6892if test "${enable_tabdialog+set}" = set; then
6893 enableval="$enable_tabdialog"
698dcdb6 6894
10f2d63a
VZ
6895 if test "$enableval" = yes; then
6896 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
6897 else
6898 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
6899 fi
698dcdb6 6900
10f2d63a 6901else
698dcdb6 6902
10f2d63a
VZ
6903 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
6904 if test "x$LINE" != x ; then
6905 eval "DEFAULT_$LINE"
6906 else
6907 no_cache=1
6908 fi
6909
6910 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
698dcdb6
VZ
6911
6912fi
10f2d63a
VZ
6913
6914
6915 eval "$ac_cv_use_tabdialog"
6916 if test "$no_cache" != 1; then
6917 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
6918 fi
6919
6920 if test "$wxUSE_TABDIALOG" = yes; then
698dcdb6 6921 echo "$ac_t""yes" 1>&6
10f2d63a 6922 else
698dcdb6 6923 echo "$ac_t""no" 1>&6
10f2d63a 6924 fi
698dcdb6 6925
10f2d63a 6926
1e6feb95 6927 echo $ac_n "checking for --enable-textctrl""... $ac_c" 1>&6
4b6b4dfc 6928echo "configure:6929: checking for --enable-textctrl" >&5
1e6feb95
VZ
6929 no_cache=0
6930 # Check whether --enable-textctrl or --disable-textctrl was given.
6931if test "${enable_textctrl+set}" = set; then
6932 enableval="$enable_textctrl"
6933
6934 if test "$enableval" = yes; then
6935 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
6936 else
6937 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
6938 fi
6939
6940else
6941
6942 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
6943 if test "x$LINE" != x ; then
6944 eval "DEFAULT_$LINE"
6945 else
6946 no_cache=1
6947 fi
6948
6949 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
6950
6951fi
6952
6953
6954 eval "$ac_cv_use_textctrl"
6955 if test "$no_cache" != 1; then
6956 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
6957 fi
6958
6959 if test "$wxUSE_TEXTCTRL" = yes; then
6960 echo "$ac_t""yes" 1>&6
6961 else
6962 echo "$ac_t""no" 1>&6
6963 fi
6964
6965
698dcdb6 6966 echo $ac_n "checking for --enable-togglebtn""... $ac_c" 1>&6
4b6b4dfc 6967echo "configure:6968: checking for --enable-togglebtn" >&5
1db8dc4a
VZ
6968 no_cache=0
6969 # Check whether --enable-togglebtn or --disable-togglebtn was given.
6970if test "${enable_togglebtn+set}" = set; then
6971 enableval="$enable_togglebtn"
698dcdb6 6972
1db8dc4a
VZ
6973 if test "$enableval" = yes; then
6974 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
6975 else
6976 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
6977 fi
698dcdb6 6978
1db8dc4a 6979else
698dcdb6 6980
1db8dc4a
VZ
6981 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
6982 if test "x$LINE" != x ; then
6983 eval "DEFAULT_$LINE"
6984 else
6985 no_cache=1
6986 fi
6987
6988 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
698dcdb6
VZ
6989
6990fi
1db8dc4a
VZ
6991
6992
6993 eval "$ac_cv_use_togglebtn"
6994 if test "$no_cache" != 1; then
6995 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
6996 fi
6997
6998 if test "$wxUSE_TOGGLEBTN" = yes; then
698dcdb6 6999 echo "$ac_t""yes" 1>&6
1db8dc4a 7000 else
698dcdb6 7001 echo "$ac_t""no" 1>&6
1db8dc4a 7002 fi
698dcdb6 7003
1db8dc4a 7004
698dcdb6 7005 echo $ac_n "checking for --enable-toolbar""... $ac_c" 1>&6
4b6b4dfc 7006echo "configure:7007: checking for --enable-toolbar" >&5
10f2d63a
VZ
7007 no_cache=0
7008 # Check whether --enable-toolbar or --disable-toolbar was given.
7009if test "${enable_toolbar+set}" = set; then
7010 enableval="$enable_toolbar"
698dcdb6 7011
10f2d63a
VZ
7012 if test "$enableval" = yes; then
7013 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
7014 else
7015 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
7016 fi
698dcdb6 7017
10f2d63a 7018else
698dcdb6 7019
10f2d63a
VZ
7020 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
7021 if test "x$LINE" != x ; then
7022 eval "DEFAULT_$LINE"
7023 else
7024 no_cache=1
7025 fi
7026
7027 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
698dcdb6
VZ
7028
7029fi
10f2d63a
VZ
7030
7031
7032 eval "$ac_cv_use_toolbar"
7033 if test "$no_cache" != 1; then
7034 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
7035 fi
7036
7037 if test "$wxUSE_TOOLBAR" = yes; then
698dcdb6 7038 echo "$ac_t""yes" 1>&6
10f2d63a 7039 else
698dcdb6 7040 echo "$ac_t""no" 1>&6
10f2d63a 7041 fi
698dcdb6 7042
10f2d63a 7043
698dcdb6 7044 echo $ac_n "checking for --enable-tbarnative""... $ac_c" 1>&6
4b6b4dfc 7045echo "configure:7046: checking for --enable-tbarnative" >&5
360d6699
VZ
7046 no_cache=0
7047 # Check whether --enable-tbarnative or --disable-tbarnative was given.
7048if test "${enable_tbarnative+set}" = set; then
7049 enableval="$enable_tbarnative"
698dcdb6 7050
360d6699
VZ
7051 if test "$enableval" = yes; then
7052 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
7053 else
7054 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
7055 fi
698dcdb6 7056
360d6699 7057else
698dcdb6 7058
360d6699
VZ
7059 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
7060 if test "x$LINE" != x ; then
7061 eval "DEFAULT_$LINE"
7062 else
7063 no_cache=1
7064 fi
7065
7066 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
698dcdb6
VZ
7067
7068fi
360d6699
VZ
7069
7070
7071 eval "$ac_cv_use_tbarnative"
7072 if test "$no_cache" != 1; then
7073 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
7074 fi
7075
7076 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
698dcdb6 7077 echo "$ac_t""yes" 1>&6
360d6699 7078 else
698dcdb6 7079 echo "$ac_t""no" 1>&6
360d6699 7080 fi
698dcdb6 7081
360d6699 7082
698dcdb6 7083 echo $ac_n "checking for --enable-tbarsmpl""... $ac_c" 1>&6
4b6b4dfc 7084echo "configure:7085: checking for --enable-tbarsmpl" >&5
360d6699
VZ
7085 no_cache=0
7086 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
7087if test "${enable_tbarsmpl+set}" = set; then
7088 enableval="$enable_tbarsmpl"
698dcdb6 7089
360d6699
VZ
7090 if test "$enableval" = yes; then
7091 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
7092 else
7093 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
7094 fi
698dcdb6 7095
360d6699 7096else
698dcdb6 7097
360d6699
VZ
7098 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
7099 if test "x$LINE" != x ; then
7100 eval "DEFAULT_$LINE"
7101 else
7102 no_cache=1
7103 fi
7104
7105 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
698dcdb6
VZ
7106
7107fi
360d6699
VZ
7108
7109
7110 eval "$ac_cv_use_tbarsmpl"
7111 if test "$no_cache" != 1; then
7112 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
7113 fi
7114
7115 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
698dcdb6 7116 echo "$ac_t""yes" 1>&6
360d6699 7117 else
698dcdb6 7118 echo "$ac_t""no" 1>&6
360d6699 7119 fi
698dcdb6 7120
360d6699 7121
698dcdb6 7122 echo $ac_n "checking for --enable-treectrl""... $ac_c" 1>&6
4b6b4dfc 7123echo "configure:7124: checking for --enable-treectrl" >&5
10f2d63a
VZ
7124 no_cache=0
7125 # Check whether --enable-treectrl or --disable-treectrl was given.
7126if test "${enable_treectrl+set}" = set; then
7127 enableval="$enable_treectrl"
698dcdb6 7128
10f2d63a
VZ
7129 if test "$enableval" = yes; then
7130 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
7131 else
7132 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
7133 fi
698dcdb6 7134
10f2d63a 7135else
698dcdb6 7136
10f2d63a
VZ
7137 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
7138 if test "x$LINE" != x ; then
7139 eval "DEFAULT_$LINE"
7140 else
7141 no_cache=1
7142 fi
7143
7144 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
698dcdb6
VZ
7145
7146fi
10f2d63a
VZ
7147
7148
1e6feb95
VZ
7149 eval "$ac_cv_use_treectrl"
7150 if test "$no_cache" != 1; then
7151 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
7152 fi
7153
7154 if test "$wxUSE_TREECTRL" = yes; then
7155 echo "$ac_t""yes" 1>&6
7156 else
7157 echo "$ac_t""no" 1>&6
7158 fi
7159
7160
9926e4a4 7161 echo $ac_n "checking for --enable-tipwindow""... $ac_c" 1>&6
4b6b4dfc 7162echo "configure:7163: checking for --enable-tipwindow" >&5
9926e4a4
VZ
7163 no_cache=0
7164 # Check whether --enable-tipwindow or --disable-tipwindow was given.
7165if test "${enable_tipwindow+set}" = set; then
7166 enableval="$enable_tipwindow"
7167
7168 if test "$enableval" = yes; then
7169 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
7170 else
7171 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
7172 fi
7173
7174else
7175
7176 LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
7177 if test "x$LINE" != x ; then
7178 eval "DEFAULT_$LINE"
7179 else
7180 no_cache=1
7181 fi
7182
7183 ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
7184
7185fi
7186
7187
7188 eval "$ac_cv_use_tipwindow"
7189 if test "$no_cache" != 1; then
7190 echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
7191 fi
7192
7193 if test "$wxUSE_TIPWINDOW" = yes; then
7194 echo "$ac_t""yes" 1>&6
7195 else
7196 echo "$ac_t""no" 1>&6
7197 fi
7198
7199
9f41d601 7200 echo $ac_n "checking for --enable-popupwin""... $ac_c" 1>&6
4b6b4dfc 7201echo "configure:7202: checking for --enable-popupwin" >&5
9f41d601
RR
7202 no_cache=0
7203 # Check whether --enable-popupwin or --disable-popupwin was given.
7204if test "${enable_popupwin+set}" = set; then
7205 enableval="$enable_popupwin"
7206
7207 if test "$enableval" = yes; then
7208 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
7209 else
7210 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
7211 fi
7212
7213else
7214
7215 LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
7216 if test "x$LINE" != x ; then
7217 eval "DEFAULT_$LINE"
7218 else
7219 no_cache=1
7220 fi
7221
7222 ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
7223
7224fi
7225
7226
7227 eval "$ac_cv_use_popupwin"
7228 if test "$no_cache" != 1; then
7229 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
7230 fi
7231
7232 if test "$wxUSE_POPUPWIN" = yes; then
7233 echo "$ac_t""yes" 1>&6
7234 else
7235 echo "$ac_t""no" 1>&6
7236 fi
7237
7238
1e6feb95
VZ
7239
7240
7241 echo $ac_n "checking for --enable-commondlg""... $ac_c" 1>&6
4b6b4dfc 7242echo "configure:7243: checking for --enable-commondlg" >&5
1e6feb95
VZ
7243 no_cache=0
7244 # Check whether --enable-commondlg or --disable-commondlg was given.
7245if test "${enable_commondlg+set}" = set; then
7246 enableval="$enable_commondlg"
7247
7248 if test "$enableval" = yes; then
7249 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
7250 else
7251 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
7252 fi
7253
7254else
7255
7256 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
7257 if test "x$LINE" != x ; then
7258 eval "DEFAULT_$LINE"
7259 else
7260 no_cache=1
7261 fi
7262
7263 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
7264
7265fi
7266
7267
7268 eval "$ac_cv_use_commondlg"
7269 if test "$no_cache" != 1; then
7270 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
7271 fi
7272
7273 if test "$wxUSE_COMMONDLGS" = yes; then
7274 echo "$ac_t""yes" 1>&6
7275 else
7276 echo "$ac_t""no" 1>&6
7277 fi
7278
7279
7280 echo $ac_n "checking for --enable-choicedlg""... $ac_c" 1>&6
4b6b4dfc 7281echo "configure:7282: checking for --enable-choicedlg" >&5
1e6feb95
VZ
7282 no_cache=0
7283 # Check whether --enable-choicedlg or --disable-choicedlg was given.
7284if test "${enable_choicedlg+set}" = set; then
7285 enableval="$enable_choicedlg"
7286
7287 if test "$enableval" = yes; then
7288 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
7289 else
7290 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
7291 fi
7292
7293else
7294
7295 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
7296 if test "x$LINE" != x ; then
7297 eval "DEFAULT_$LINE"
7298 else
7299 no_cache=1
7300 fi
7301
7302 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
7303
7304fi
7305
7306
7307 eval "$ac_cv_use_choicedlg"
7308 if test "$no_cache" != 1; then
7309 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
7310 fi
7311
7312 if test "$wxUSE_CHOICEDLG" = yes; then
7313 echo "$ac_t""yes" 1>&6
7314 else
7315 echo "$ac_t""no" 1>&6
7316 fi
7317
7318
7319 echo $ac_n "checking for --enable-coldlg""... $ac_c" 1>&6
4b6b4dfc 7320echo "configure:7321: checking for --enable-coldlg" >&5
1e6feb95
VZ
7321 no_cache=0
7322 # Check whether --enable-coldlg or --disable-coldlg was given.
7323if test "${enable_coldlg+set}" = set; then
7324 enableval="$enable_coldlg"
7325
7326 if test "$enableval" = yes; then
7327 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
7328 else
7329 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
7330 fi
7331
7332else
7333
7334 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
7335 if test "x$LINE" != x ; then
7336 eval "DEFAULT_$LINE"
7337 else
7338 no_cache=1
7339 fi
7340
7341 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
7342
7343fi
7344
7345
7346 eval "$ac_cv_use_coldlg"
7347 if test "$no_cache" != 1; then
7348 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
7349 fi
7350
7351 if test "$wxUSE_COLOURDLG" = yes; then
7352 echo "$ac_t""yes" 1>&6
7353 else
7354 echo "$ac_t""no" 1>&6
7355 fi
7356
7357
7358 echo $ac_n "checking for --enable-filedlg""... $ac_c" 1>&6
4b6b4dfc 7359echo "configure:7360: checking for --enable-filedlg" >&5
1e6feb95
VZ
7360 no_cache=0
7361 # Check whether --enable-filedlg or --disable-filedlg was given.
7362if test "${enable_filedlg+set}" = set; then
7363 enableval="$enable_filedlg"
7364
7365 if test "$enableval" = yes; then
7366 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
7367 else
7368 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
7369 fi
7370
7371else
7372
7373 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
7374 if test "x$LINE" != x ; then
7375 eval "DEFAULT_$LINE"
7376 else
7377 no_cache=1
7378 fi
7379
7380 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
7381
7382fi
7383
7384
7385 eval "$ac_cv_use_filedlg"
7386 if test "$no_cache" != 1; then
7387 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
7388 fi
7389
7390 if test "$wxUSE_FILEDLG" = yes; then
7391 echo "$ac_t""yes" 1>&6
7392 else
7393 echo "$ac_t""no" 1>&6
7394 fi
7395
7396
69d27ff7 7397 echo $ac_n "checking for --enable-finddlg""... $ac_c" 1>&6
4b6b4dfc 7398echo "configure:7399: checking for --enable-finddlg" >&5
8db37e06 7399 no_cache=0
69d27ff7
MB
7400 # Check whether --enable-finddlg or --disable-finddlg was given.
7401if test "${enable_finddlg+set}" = set; then
7402 enableval="$enable_finddlg"
8db37e06
VZ
7403
7404 if test "$enableval" = yes; then
69d27ff7 7405 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
8db37e06 7406 else
69d27ff7 7407 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
8db37e06
VZ
7408 fi
7409
7410else
7411
7412 LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
7413 if test "x$LINE" != x ; then
7414 eval "DEFAULT_$LINE"
7415 else
7416 no_cache=1
7417 fi
7418
69d27ff7 7419 ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
8db37e06
VZ
7420
7421fi
7422
7423
69d27ff7 7424 eval "$ac_cv_use_finddlg"
8db37e06 7425 if test "$no_cache" != 1; then
69d27ff7 7426 echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
8db37e06
VZ
7427 fi
7428
7429 if test "$wxUSE_FINDREPLDLG" = yes; then
7430 echo "$ac_t""yes" 1>&6
7431 else
7432 echo "$ac_t""no" 1>&6
7433 fi
7434
7435
1e6feb95 7436 echo $ac_n "checking for --enable-fontdlg""... $ac_c" 1>&6
4b6b4dfc 7437echo "configure:7438: checking for --enable-fontdlg" >&5
1e6feb95
VZ
7438 no_cache=0
7439 # Check whether --enable-fontdlg or --disable-fontdlg was given.
7440if test "${enable_fontdlg+set}" = set; then
7441 enableval="$enable_fontdlg"
7442
7443 if test "$enableval" = yes; then
7444 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
7445 else
7446 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
7447 fi
7448
7449else
7450
7451 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
7452 if test "x$LINE" != x ; then
7453 eval "DEFAULT_$LINE"
7454 else
7455 no_cache=1
7456 fi
7457
7458 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
7459
7460fi
7461
7462
7463 eval "$ac_cv_use_fontdlg"
7464 if test "$no_cache" != 1; then
7465 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
7466 fi
7467
7468 if test "$wxUSE_FONTDLG" = yes; then
7469 echo "$ac_t""yes" 1>&6
7470 else
7471 echo "$ac_t""no" 1>&6
7472 fi
7473
7474
7475 echo $ac_n "checking for --enable-dirdlg""... $ac_c" 1>&6
4b6b4dfc 7476echo "configure:7477: checking for --enable-dirdlg" >&5
1e6feb95
VZ
7477 no_cache=0
7478 # Check whether --enable-dirdlg or --disable-dirdlg was given.
7479if test "${enable_dirdlg+set}" = set; then
7480 enableval="$enable_dirdlg"
7481
7482 if test "$enableval" = yes; then
7483 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
7484 else
7485 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
7486 fi
7487
7488else
7489
7490 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
7491 if test "x$LINE" != x ; then
7492 eval "DEFAULT_$LINE"
7493 else
7494 no_cache=1
7495 fi
7496
7497 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
7498
7499fi
7500
7501
7502 eval "$ac_cv_use_dirdlg"
10f2d63a 7503 if test "$no_cache" != 1; then
1e6feb95 7504 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
7505 fi
7506
1e6feb95 7507 if test "$wxUSE_DIRDLG" = yes; then
698dcdb6 7508 echo "$ac_t""yes" 1>&6
10f2d63a 7509 else
698dcdb6 7510 echo "$ac_t""no" 1>&6
10f2d63a 7511 fi
698dcdb6
VZ
7512
7513
1e6feb95 7514 echo $ac_n "checking for --enable-msgdlg""... $ac_c" 1>&6
4b6b4dfc 7515echo "configure:7516: checking for --enable-msgdlg" >&5
10f2d63a 7516 no_cache=0
1e6feb95
VZ
7517 # Check whether --enable-msgdlg or --disable-msgdlg was given.
7518if test "${enable_msgdlg+set}" = set; then
7519 enableval="$enable_msgdlg"
698dcdb6 7520
10f2d63a 7521 if test "$enableval" = yes; then
1e6feb95 7522 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
10f2d63a 7523 else
1e6feb95 7524 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
10f2d63a 7525 fi
698dcdb6 7526
10f2d63a 7527else
698dcdb6 7528
1e6feb95 7529 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
10f2d63a
VZ
7530 if test "x$LINE" != x ; then
7531 eval "DEFAULT_$LINE"
7532 else
7533 no_cache=1
7534 fi
7535
1e6feb95 7536 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
698dcdb6
VZ
7537
7538fi
10f2d63a
VZ
7539
7540
1e6feb95 7541 eval "$ac_cv_use_msgdlg"
10f2d63a 7542 if test "$no_cache" != 1; then
1e6feb95 7543 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
7544 fi
7545
1e6feb95 7546 if test "$wxUSE_MSGDLG" = yes; then
698dcdb6 7547 echo "$ac_t""yes" 1>&6
10f2d63a 7548 else
698dcdb6 7549 echo "$ac_t""no" 1>&6
10f2d63a 7550 fi
698dcdb6 7551
10f2d63a 7552
1e6feb95 7553 echo $ac_n "checking for --enable-numberdlg""... $ac_c" 1>&6
4b6b4dfc 7554echo "configure:7555: checking for --enable-numberdlg" >&5
10f2d63a 7555 no_cache=0
1e6feb95
VZ
7556 # Check whether --enable-numberdlg or --disable-numberdlg was given.
7557if test "${enable_numberdlg+set}" = set; then
7558 enableval="$enable_numberdlg"
698dcdb6 7559
10f2d63a 7560 if test "$enableval" = yes; then
1e6feb95 7561 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
10f2d63a 7562 else
1e6feb95 7563 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
10f2d63a 7564 fi
698dcdb6 7565
10f2d63a 7566else
698dcdb6 7567
1e6feb95 7568 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
10f2d63a
VZ
7569 if test "x$LINE" != x ; then
7570 eval "DEFAULT_$LINE"
7571 else
7572 no_cache=1
7573 fi
7574
1e6feb95 7575 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
698dcdb6
VZ
7576
7577fi
10f2d63a
VZ
7578
7579
1e6feb95 7580 eval "$ac_cv_use_numberdlg"
10f2d63a 7581 if test "$no_cache" != 1; then
1e6feb95 7582 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
7583 fi
7584
1e6feb95 7585 if test "$wxUSE_NUMBERDLG" = yes; then
698dcdb6 7586 echo "$ac_t""yes" 1>&6
10f2d63a 7587 else
698dcdb6 7588 echo "$ac_t""no" 1>&6
10f2d63a 7589 fi
698dcdb6 7590
10f2d63a 7591
cbca9943 7592 echo $ac_n "checking for --enable-splash""... $ac_c" 1>&6
4b6b4dfc 7593echo "configure:7594: checking for --enable-splash" >&5
cbca9943
VZ
7594 no_cache=0
7595 # Check whether --enable-splash or --disable-splash was given.
7596if test "${enable_splash+set}" = set; then
7597 enableval="$enable_splash"
7598
7599 if test "$enableval" = yes; then
7600 ac_cv_use_splash='wxUSE_SPLASH=yes'
7601 else
7602 ac_cv_use_splash='wxUSE_SPLASH=no'
7603 fi
7604
7605else
7606
7607 LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
7608 if test "x$LINE" != x ; then
7609 eval "DEFAULT_$LINE"
7610 else
7611 no_cache=1
7612 fi
7613
7614 ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
7615
7616fi
7617
7618
7619 eval "$ac_cv_use_splash"
7620 if test "$no_cache" != 1; then
7621 echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
7622 fi
7623
7624 if test "$wxUSE_SPLASH" = yes; then
7625 echo "$ac_t""yes" 1>&6
7626 else
7627 echo "$ac_t""no" 1>&6
7628 fi
7629
7630
698dcdb6 7631 echo $ac_n "checking for --enable-textdlg""... $ac_c" 1>&6
4b6b4dfc 7632echo "configure:7633: checking for --enable-textdlg" >&5
10f2d63a
VZ
7633 no_cache=0
7634 # Check whether --enable-textdlg or --disable-textdlg was given.
7635if test "${enable_textdlg+set}" = set; then
7636 enableval="$enable_textdlg"
698dcdb6 7637
10f2d63a
VZ
7638 if test "$enableval" = yes; then
7639 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
7640 else
7641 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
7642 fi
698dcdb6 7643
10f2d63a 7644else
698dcdb6 7645
10f2d63a
VZ
7646 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
7647 if test "x$LINE" != x ; then
7648 eval "DEFAULT_$LINE"
7649 else
7650 no_cache=1
7651 fi
7652
7653 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
698dcdb6
VZ
7654
7655fi
10f2d63a
VZ
7656
7657
7658 eval "$ac_cv_use_textdlg"
7659 if test "$no_cache" != 1; then
7660 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
7661 fi
7662
7663 if test "$wxUSE_TEXTDLG" = yes; then
698dcdb6 7664 echo "$ac_t""yes" 1>&6
10f2d63a 7665 else
698dcdb6 7666 echo "$ac_t""no" 1>&6
10f2d63a 7667 fi
698dcdb6 7668
10f2d63a 7669
698dcdb6 7670 echo $ac_n "checking for --enable-tipdlg""... $ac_c" 1>&6
4b6b4dfc 7671echo "configure:7672: checking for --enable-tipdlg" >&5
10f2d63a
VZ
7672 no_cache=0
7673 # Check whether --enable-tipdlg or --disable-tipdlg was given.
7674if test "${enable_tipdlg+set}" = set; then
7675 enableval="$enable_tipdlg"
698dcdb6 7676
10f2d63a
VZ
7677 if test "$enableval" = yes; then
7678 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
7679 else
7680 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
7681 fi
698dcdb6 7682
10f2d63a 7683else
698dcdb6 7684
10f2d63a
VZ
7685 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
7686 if test "x$LINE" != x ; then
7687 eval "DEFAULT_$LINE"
7688 else
7689 no_cache=1
7690 fi
7691
7692 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
698dcdb6
VZ
7693
7694fi
10f2d63a
VZ
7695
7696
7697 eval "$ac_cv_use_tipdlg"
7698 if test "$no_cache" != 1; then
7699 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
7700 fi
7701
7702 if test "$wxUSE_STARTUP_TIPS" = yes; then
698dcdb6 7703 echo "$ac_t""yes" 1>&6
10f2d63a 7704 else
698dcdb6 7705 echo "$ac_t""no" 1>&6
10f2d63a 7706 fi
698dcdb6 7707
10f2d63a 7708
698dcdb6 7709 echo $ac_n "checking for --enable-progressdlg""... $ac_c" 1>&6
4b6b4dfc 7710echo "configure:7711: checking for --enable-progressdlg" >&5
10f2d63a
VZ
7711 no_cache=0
7712 # Check whether --enable-progressdlg or --disable-progressdlg was given.
7713if test "${enable_progressdlg+set}" = set; then
7714 enableval="$enable_progressdlg"
698dcdb6 7715
10f2d63a
VZ
7716 if test "$enableval" = yes; then
7717 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
7718 else
7719 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
7720 fi
698dcdb6 7721
10f2d63a 7722else
698dcdb6 7723
10f2d63a
VZ
7724 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
7725 if test "x$LINE" != x ; then
7726 eval "DEFAULT_$LINE"
7727 else
7728 no_cache=1
7729 fi
7730
7731 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
698dcdb6
VZ
7732
7733fi
10f2d63a
VZ
7734
7735
7736 eval "$ac_cv_use_progressdlg"
7737 if test "$no_cache" != 1; then
7738 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
7739 fi
7740
7741 if test "$wxUSE_PROGRESSDLG" = yes; then
698dcdb6 7742 echo "$ac_t""yes" 1>&6
10f2d63a 7743 else
698dcdb6 7744 echo "$ac_t""no" 1>&6
10f2d63a 7745 fi
698dcdb6 7746
10f2d63a 7747
b1f5d087 7748 echo $ac_n "checking for --enable-wizarddlg""... $ac_c" 1>&6
4b6b4dfc 7749echo "configure:7750: checking for --enable-wizarddlg" >&5
b1f5d087
VZ
7750 no_cache=0
7751 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
7752if test "${enable_wizarddlg+set}" = set; then
7753 enableval="$enable_wizarddlg"
7754
7755 if test "$enableval" = yes; then
7756 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
7757 else
7758 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
7759 fi
7760
7761else
7762
7763 LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
7764 if test "x$LINE" != x ; then
7765 eval "DEFAULT_$LINE"
7766 else
7767 no_cache=1
7768 fi
7769
7770 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
7771
7772fi
7773
7774
7775 eval "$ac_cv_use_wizarddlg"
7776 if test "$no_cache" != 1; then
7777 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
7778 fi
7779
7780 if test "$wxUSE_WIZARDDLG" = yes; then
7781 echo "$ac_t""yes" 1>&6
7782 else
7783 echo "$ac_t""no" 1>&6
7784 fi
7785
7786
7787
7788
1e6feb95 7789 echo $ac_n "checking for --enable-menus""... $ac_c" 1>&6
4b6b4dfc 7790echo "configure:7791: checking for --enable-menus" >&5
1e6feb95
VZ
7791 no_cache=0
7792 # Check whether --enable-menus or --disable-menus was given.
7793if test "${enable_menus+set}" = set; then
7794 enableval="$enable_menus"
7795
7796 if test "$enableval" = yes; then
7797 ac_cv_use_menus='wxUSE_MENUS=yes'
7798 else
7799 ac_cv_use_menus='wxUSE_MENUS=no'
7800 fi
7801
7802else
7803
7804 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
7805 if test "x$LINE" != x ; then
7806 eval "DEFAULT_$LINE"
7807 else
7808 no_cache=1
7809 fi
7810
7811 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
7812
7813fi
7814
7815
7816 eval "$ac_cv_use_menus"
7817 if test "$no_cache" != 1; then
7818 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
7819 fi
7820
7821 if test "$wxUSE_MENUS" = yes; then
7822 echo "$ac_t""yes" 1>&6
7823 else
7824 echo "$ac_t""no" 1>&6
7825 fi
7826
7827
698dcdb6 7828 echo $ac_n "checking for --enable-miniframe""... $ac_c" 1>&6
4b6b4dfc 7829echo "configure:7830: checking for --enable-miniframe" >&5
10f2d63a
VZ
7830 no_cache=0
7831 # Check whether --enable-miniframe or --disable-miniframe was given.
7832if test "${enable_miniframe+set}" = set; then
7833 enableval="$enable_miniframe"
698dcdb6 7834
10f2d63a
VZ
7835 if test "$enableval" = yes; then
7836 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
7837 else
7838 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
7839 fi
698dcdb6 7840
10f2d63a 7841else
698dcdb6 7842
10f2d63a
VZ
7843 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
7844 if test "x$LINE" != x ; then
7845 eval "DEFAULT_$LINE"
7846 else
7847 no_cache=1
7848 fi
7849
7850 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
698dcdb6
VZ
7851
7852fi
10f2d63a
VZ
7853
7854
7855 eval "$ac_cv_use_miniframe"
7856 if test "$no_cache" != 1; then
7857 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
7858 fi
7859
7860 if test "$wxUSE_MINIFRAME" = yes; then
698dcdb6 7861 echo "$ac_t""yes" 1>&6
10f2d63a 7862 else
698dcdb6 7863 echo "$ac_t""no" 1>&6
10f2d63a 7864 fi
698dcdb6 7865
10f2d63a 7866
698dcdb6 7867 echo $ac_n "checking for --enable-tooltips""... $ac_c" 1>&6
4b6b4dfc 7868echo "configure:7869: checking for --enable-tooltips" >&5
10f2d63a
VZ
7869 no_cache=0
7870 # Check whether --enable-tooltips or --disable-tooltips was given.
7871if test "${enable_tooltips+set}" = set; then
7872 enableval="$enable_tooltips"
698dcdb6 7873
10f2d63a
VZ
7874 if test "$enableval" = yes; then
7875 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
7876 else
7877 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
7878 fi
698dcdb6 7879
10f2d63a 7880else
698dcdb6 7881
10f2d63a
VZ
7882 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
7883 if test "x$LINE" != x ; then
7884 eval "DEFAULT_$LINE"
7885 else
7886 no_cache=1
7887 fi
7888
7889 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
698dcdb6
VZ
7890
7891fi
10f2d63a
VZ
7892
7893
7894 eval "$ac_cv_use_tooltips"
7895 if test "$no_cache" != 1; then
7896 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
7897 fi
7898
7899 if test "$wxUSE_TOOLTIPS" = yes; then
698dcdb6 7900 echo "$ac_t""yes" 1>&6
10f2d63a 7901 else
698dcdb6 7902 echo "$ac_t""no" 1>&6
10f2d63a 7903 fi
698dcdb6 7904
10f2d63a 7905
698dcdb6 7906 echo $ac_n "checking for --enable-splines""... $ac_c" 1>&6
4b6b4dfc 7907echo "configure:7908: checking for --enable-splines" >&5
10f2d63a
VZ
7908 no_cache=0
7909 # Check whether --enable-splines or --disable-splines was given.
7910if test "${enable_splines+set}" = set; then
7911 enableval="$enable_splines"
698dcdb6 7912
10f2d63a
VZ
7913 if test "$enableval" = yes; then
7914 ac_cv_use_splines='wxUSE_SPLINES=yes'
7915 else
7916 ac_cv_use_splines='wxUSE_SPLINES=no'
7917 fi
698dcdb6 7918
10f2d63a 7919else
698dcdb6 7920
10f2d63a
VZ
7921 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
7922 if test "x$LINE" != x ; then
7923 eval "DEFAULT_$LINE"
7924 else
7925 no_cache=1
7926 fi
7927
7928 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
698dcdb6
VZ
7929
7930fi
10f2d63a
VZ
7931
7932
7933 eval "$ac_cv_use_splines"
7934 if test "$no_cache" != 1; then
7935 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
7936 fi
7937
7938 if test "$wxUSE_SPLINES" = yes; then
698dcdb6 7939 echo "$ac_t""yes" 1>&6
10f2d63a 7940 else
698dcdb6 7941 echo "$ac_t""no" 1>&6
10f2d63a 7942 fi
698dcdb6 7943
10f2d63a 7944
698dcdb6 7945 echo $ac_n "checking for --enable-validators""... $ac_c" 1>&6
4b6b4dfc 7946echo "configure:7947: checking for --enable-validators" >&5
10f2d63a
VZ
7947 no_cache=0
7948 # Check whether --enable-validators or --disable-validators was given.
7949if test "${enable_validators+set}" = set; then
7950 enableval="$enable_validators"
698dcdb6 7951
10f2d63a
VZ
7952 if test "$enableval" = yes; then
7953 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
7954 else
7955 ac_cv_use_validators='wxUSE_VALIDATORS=no'
7956 fi
698dcdb6 7957
10f2d63a 7958else
698dcdb6 7959
10f2d63a
VZ
7960 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
7961 if test "x$LINE" != x ; then
7962 eval "DEFAULT_$LINE"
7963 else
7964 no_cache=1
7965 fi
7966
7967 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
698dcdb6
VZ
7968
7969fi
10f2d63a
VZ
7970
7971
7972 eval "$ac_cv_use_validators"
7973 if test "$no_cache" != 1; then
7974 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
7975 fi
7976
7977 if test "$wxUSE_VALIDATORS" = yes; then
698dcdb6 7978 echo "$ac_t""yes" 1>&6
10f2d63a 7979 else
698dcdb6 7980 echo "$ac_t""no" 1>&6
10f2d63a 7981 fi
698dcdb6 7982
10f2d63a 7983
698dcdb6 7984 echo $ac_n "checking for --enable-busyinfo""... $ac_c" 1>&6
4b6b4dfc 7985echo "configure:7986: checking for --enable-busyinfo" >&5
10f2d63a
VZ
7986 no_cache=0
7987 # Check whether --enable-busyinfo or --disable-busyinfo was given.
7988if test "${enable_busyinfo+set}" = set; then
7989 enableval="$enable_busyinfo"
698dcdb6 7990
10f2d63a
VZ
7991 if test "$enableval" = yes; then
7992 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
7993 else
7994 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
7995 fi
698dcdb6 7996
10f2d63a 7997else
698dcdb6 7998
10f2d63a
VZ
7999 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
8000 if test "x$LINE" != x ; then
8001 eval "DEFAULT_$LINE"
8002 else
8003 no_cache=1
8004 fi
8005
8006 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
698dcdb6
VZ
8007
8008fi
10f2d63a
VZ
8009
8010
8011 eval "$ac_cv_use_busyinfo"
8012 if test "$no_cache" != 1; then
8013 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
8014 fi
8015
8016 if test "$wxUSE_BUSYINFO" = yes; then
698dcdb6 8017 echo "$ac_t""yes" 1>&6
10f2d63a 8018 else
698dcdb6 8019 echo "$ac_t""no" 1>&6
10f2d63a 8020 fi
698dcdb6 8021
10f2d63a 8022
698dcdb6 8023 echo $ac_n "checking for --enable-joystick""... $ac_c" 1>&6
4b6b4dfc 8024echo "configure:8025: checking for --enable-joystick" >&5
f6bcfd97
BP
8025 no_cache=0
8026 # Check whether --enable-joystick or --disable-joystick was given.
8027if test "${enable_joystick+set}" = set; then
8028 enableval="$enable_joystick"
698dcdb6 8029
f6bcfd97
BP
8030 if test "$enableval" = yes; then
8031 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
8032 else
8033 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
8034 fi
698dcdb6 8035
f6bcfd97 8036else
698dcdb6 8037
f6bcfd97
BP
8038 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
8039 if test "x$LINE" != x ; then
8040 eval "DEFAULT_$LINE"
8041 else
8042 no_cache=1
8043 fi
8044
8045 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
698dcdb6
VZ
8046
8047fi
f6bcfd97
BP
8048
8049
8050 eval "$ac_cv_use_joystick"
8051 if test "$no_cache" != 1; then
8052 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
8053 fi
8054
8055 if test "$wxUSE_JOYSTICK" = yes; then
698dcdb6 8056 echo "$ac_t""yes" 1>&6
f6bcfd97 8057 else
698dcdb6 8058 echo "$ac_t""no" 1>&6
f6bcfd97 8059 fi
698dcdb6
VZ
8060
8061
1e6feb95 8062 echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6
4b6b4dfc 8063echo "configure:8064: checking for --enable-metafile" >&5
1e6feb95
VZ
8064 no_cache=0
8065 # Check whether --enable-metafile or --disable-metafile was given.
8066if test "${enable_metafile+set}" = set; then
8067 enableval="$enable_metafile"
8068
8069 if test "$enableval" = yes; then
8070 ac_cv_use_metafile='wxUSE_METAFILE=yes'
8071 else
8072 ac_cv_use_metafile='wxUSE_METAFILE=no'
8073 fi
8074
8075else
8076
8077 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
8078 if test "x$LINE" != x ; then
8079 eval "DEFAULT_$LINE"
8080 else
8081 no_cache=1
8082 fi
8083
8084 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
8085
8086fi
8087
8088
8089 eval "$ac_cv_use_metafile"
8090 if test "$no_cache" != 1; then
8091 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
8092 fi
8093
8094 if test "$wxUSE_METAFILE" = yes; then
8095 echo "$ac_t""yes" 1>&6
8096 else
8097 echo "$ac_t""no" 1>&6
8098 fi
8099
8100
24fd6d87 8101 echo $ac_n "checking for --enable-dragimage""... $ac_c" 1>&6
4b6b4dfc 8102echo "configure:8103: checking for --enable-dragimage" >&5
24fd6d87
VZ
8103 no_cache=0
8104 # Check whether --enable-dragimage or --disable-dragimage was given.
8105if test "${enable_dragimage+set}" = set; then
8106 enableval="$enable_dragimage"
8107
8108 if test "$enableval" = yes; then
8109 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
8110 else
8111 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
8112 fi
8113
8114else
8115
8116 LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
8117 if test "x$LINE" != x ; then
8118 eval "DEFAULT_$LINE"
8119 else
8120 no_cache=1
8121 fi
8122
8123 ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
8124
8125fi
8126
8127
8128 eval "$ac_cv_use_dragimage"
8129 if test "$no_cache" != 1; then
8130 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
8131 fi
8132
8133 if test "$wxUSE_DRAGIMAGE" = yes; then
8134 echo "$ac_t""yes" 1>&6
8135 else
8136 echo "$ac_t""no" 1>&6
8137 fi
8138
8139
10f2d63a 8140
698dcdb6 8141
edae8572 8142 echo $ac_n "checking for --enable-palette""... $ac_c" 1>&6
4b6b4dfc 8143echo "configure:8144: checking for --enable-palette" >&5
edae8572
VZ
8144 no_cache=0
8145 # Check whether --enable-palette or --disable-palette was given.
8146if test "${enable_palette+set}" = set; then
8147 enableval="$enable_palette"
8148
8149 if test "$enableval" = yes; then
8150 ac_cv_use_palette='wxUSE_PALETTE=yes'
8151 else
8152 ac_cv_use_palette='wxUSE_PALETTE=no'
8153 fi
8154
8155else
8156
8157 LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
8158 if test "x$LINE" != x ; then
8159 eval "DEFAULT_$LINE"
8160 else
8161 no_cache=1
8162 fi
8163
8164 ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
8165
8166fi
8167
8168
8169 eval "$ac_cv_use_palette"
8170 if test "$no_cache" != 1; then
8171 echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
8172 fi
8173
8174 if test "$wxUSE_PALETTE" = yes; then
8175 echo "$ac_t""yes" 1>&6
8176 else
8177 echo "$ac_t""no" 1>&6
8178 fi
8179
8180
698dcdb6 8181 echo $ac_n "checking for --enable-image""... $ac_c" 1>&6
4b6b4dfc 8182echo "configure:8183: checking for --enable-image" >&5
0046ff7c
VS
8183 no_cache=0
8184 # Check whether --enable-image or --disable-image was given.
8185if test "${enable_image+set}" = set; then
8186 enableval="$enable_image"
698dcdb6 8187
0046ff7c
VS
8188 if test "$enableval" = yes; then
8189 ac_cv_use_image='wxUSE_IMAGE=yes'
8190 else
8191 ac_cv_use_image='wxUSE_IMAGE=no'
8192 fi
698dcdb6 8193
0046ff7c 8194else
698dcdb6 8195
0046ff7c
VS
8196 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
8197 if test "x$LINE" != x ; then
8198 eval "DEFAULT_$LINE"
8199 else
8200 no_cache=1
8201 fi
8202
8203 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
698dcdb6
VZ
8204
8205fi
0046ff7c
VS
8206
8207
8208 eval "$ac_cv_use_image"
8209 if test "$no_cache" != 1; then
8210 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
8211 fi
8212
8213 if test "$wxUSE_IMAGE" = yes; then
698dcdb6 8214 echo "$ac_t""yes" 1>&6
0046ff7c 8215 else
698dcdb6 8216 echo "$ac_t""no" 1>&6
0046ff7c 8217 fi
698dcdb6 8218
0046ff7c 8219
698dcdb6 8220 echo $ac_n "checking for --enable-gif""... $ac_c" 1>&6
4b6b4dfc 8221echo "configure:8222: checking for --enable-gif" >&5
10f2d63a
VZ
8222 no_cache=0
8223 # Check whether --enable-gif or --disable-gif was given.
8224if test "${enable_gif+set}" = set; then
8225 enableval="$enable_gif"
698dcdb6 8226
10f2d63a
VZ
8227 if test "$enableval" = yes; then
8228 ac_cv_use_gif='wxUSE_GIF=yes'
8229 else
8230 ac_cv_use_gif='wxUSE_GIF=no'
8231 fi
698dcdb6 8232
10f2d63a 8233else
698dcdb6 8234
10f2d63a
VZ
8235 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
8236 if test "x$LINE" != x ; then
8237 eval "DEFAULT_$LINE"
8238 else
8239 no_cache=1
8240 fi
8241
8242 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
698dcdb6
VZ
8243
8244fi
10f2d63a
VZ
8245
8246
8247 eval "$ac_cv_use_gif"
8248 if test "$no_cache" != 1; then
8249 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
8250 fi
8251
8252 if test "$wxUSE_GIF" = yes; then
698dcdb6 8253 echo "$ac_t""yes" 1>&6
10f2d63a 8254 else
698dcdb6 8255 echo "$ac_t""no" 1>&6
10f2d63a 8256 fi
698dcdb6 8257
10f2d63a 8258
698dcdb6 8259 echo $ac_n "checking for --enable-pcx""... $ac_c" 1>&6
4b6b4dfc 8260echo "configure:8261: checking for --enable-pcx" >&5
10f2d63a
VZ
8261 no_cache=0
8262 # Check whether --enable-pcx or --disable-pcx was given.
8263if test "${enable_pcx+set}" = set; then
8264 enableval="$enable_pcx"
698dcdb6 8265
10f2d63a
VZ
8266 if test "$enableval" = yes; then
8267 ac_cv_use_pcx='wxUSE_PCX=yes'
8268 else
8269 ac_cv_use_pcx='wxUSE_PCX=no'
8270 fi
698dcdb6 8271
10f2d63a 8272else
698dcdb6 8273
10f2d63a
VZ
8274 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
8275 if test "x$LINE" != x ; then
8276 eval "DEFAULT_$LINE"
8277 else
8278 no_cache=1
8279 fi
8280
8281 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
698dcdb6
VZ
8282
8283fi
10f2d63a
VZ
8284
8285
8286 eval "$ac_cv_use_pcx"
8287 if test "$no_cache" != 1; then
8288 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
8289 fi
8290
8291 if test "$wxUSE_PCX" = yes; then
698dcdb6 8292 echo "$ac_t""yes" 1>&6
10f2d63a 8293 else
698dcdb6 8294 echo "$ac_t""no" 1>&6
10f2d63a 8295 fi
698dcdb6 8296
10f2d63a 8297
4b6b4dfc
RR
8298 echo $ac_n "checking for --enable-iff""... $ac_c" 1>&6
8299echo "configure:8300: checking for --enable-iff" >&5
8300 no_cache=0
8301 # Check whether --enable-iff or --disable-iff was given.
8302if test "${enable_iff+set}" = set; then
8303 enableval="$enable_iff"
8304
8305 if test "$enableval" = yes; then
8306 ac_cv_use_iff='wxUSE_IFF=yes'
8307 else
8308 ac_cv_use_iff='wxUSE_IFF=no'
8309 fi
8310
8311else
8312
8313 LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}`
8314 if test "x$LINE" != x ; then
8315 eval "DEFAULT_$LINE"
8316 else
8317 no_cache=1
8318 fi
8319
8320 ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF
8321
8322fi
8323
8324
8325 eval "$ac_cv_use_iff"
8326 if test "$no_cache" != 1; then
8327 echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp
8328 fi
8329
8330 if test "$wxUSE_IFF" = yes; then
8331 echo "$ac_t""yes" 1>&6
8332 else
8333 echo "$ac_t""no" 1>&6
8334 fi
8335
8336
698dcdb6 8337 echo $ac_n "checking for --enable-pnm""... $ac_c" 1>&6
4b6b4dfc 8338echo "configure:8339: checking for --enable-pnm" >&5
10f2d63a
VZ
8339 no_cache=0
8340 # Check whether --enable-pnm or --disable-pnm was given.
8341if test "${enable_pnm+set}" = set; then
8342 enableval="$enable_pnm"
698dcdb6 8343
10f2d63a
VZ
8344 if test "$enableval" = yes; then
8345 ac_cv_use_pnm='wxUSE_PNM=yes'
8346 else
8347 ac_cv_use_pnm='wxUSE_PNM=no'
8348 fi
698dcdb6 8349
10f2d63a 8350else
698dcdb6 8351
10f2d63a
VZ
8352 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
8353 if test "x$LINE" != x ; then
8354 eval "DEFAULT_$LINE"
8355 else
8356 no_cache=1
8357 fi
8358
8359 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
698dcdb6
VZ
8360
8361fi
10f2d63a
VZ
8362
8363
8364 eval "$ac_cv_use_pnm"
8365 if test "$no_cache" != 1; then
8366 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
8367 fi
8368
8369 if test "$wxUSE_PNM" = yes; then
698dcdb6 8370 echo "$ac_t""yes" 1>&6
10f2d63a 8371 else
698dcdb6 8372 echo "$ac_t""no" 1>&6
10f2d63a 8373 fi
698dcdb6 8374
10f2d63a 8375
69d27ff7 8376 echo $ac_n "checking for --enable-xpm""... $ac_c" 1>&6
4b6b4dfc 8377echo "configure:8378: checking for --enable-xpm" >&5
0046ff7c 8378 no_cache=0
69d27ff7
MB
8379 # Check whether --enable-xpm or --disable-xpm was given.
8380if test "${enable_xpm+set}" = set; then
8381 enableval="$enable_xpm"
698dcdb6 8382
0046ff7c 8383 if test "$enableval" = yes; then
69d27ff7 8384 ac_cv_use_xpm='wxUSE_XPM=yes'
0046ff7c 8385 else
69d27ff7 8386 ac_cv_use_xpm='wxUSE_XPM=no'
0046ff7c 8387 fi
698dcdb6 8388
0046ff7c 8389else
698dcdb6 8390
0046ff7c
VS
8391 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
8392 if test "x$LINE" != x ; then
8393 eval "DEFAULT_$LINE"
8394 else
8395 no_cache=1
8396 fi
8397
69d27ff7 8398 ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
698dcdb6
VZ
8399
8400fi
0046ff7c
VS
8401
8402
69d27ff7 8403 eval "$ac_cv_use_xpm"
0046ff7c 8404 if test "$no_cache" != 1; then
69d27ff7 8405 echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
0046ff7c
VS
8406 fi
8407
8408 if test "$wxUSE_XPM" = yes; then
698dcdb6 8409 echo "$ac_t""yes" 1>&6
0046ff7c 8410 else
698dcdb6 8411 echo "$ac_t""no" 1>&6
0046ff7c 8412 fi
698dcdb6 8413
0046ff7c 8414
c7206e64 8415 echo $ac_n "checking for --enable-ico_cur""... $ac_c" 1>&6
4b6b4dfc 8416echo "configure:8417: checking for --enable-ico_cur" >&5
658974ae 8417 no_cache=0
c7206e64
VS
8418 # Check whether --enable-ico_cur or --disable-ico_cur was given.
8419if test "${enable_ico_cur+set}" = set; then
8420 enableval="$enable_ico_cur"
658974ae
VS
8421
8422 if test "$enableval" = yes; then
c7206e64 8423 ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
658974ae 8424 else
c7206e64 8425 ac_cv_use_ico_cur='wxUSE_ICO_CUR=no'
658974ae
VS
8426 fi
8427
8428else
8429
8430 LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}`
8431 if test "x$LINE" != x ; then
8432 eval "DEFAULT_$LINE"
8433 else
8434 no_cache=1
8435 fi
8436
c7206e64 8437 ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR
658974ae
VS
8438
8439fi
8440
8441
c7206e64 8442 eval "$ac_cv_use_ico_cur"
658974ae 8443 if test "$no_cache" != 1; then
c7206e64 8444 echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp
658974ae
VS
8445 fi
8446
8447 if test "$wxUSE_ICO_CUR" = yes; then
8448 echo "$ac_t""yes" 1>&6
8449 else
8450 echo "$ac_t""no" 1>&6
8451 fi
8452
8453
b12915c1
VZ
8454fi
8455
698dcdb6 8456
10f2d63a
VZ
8457 echo "saving argument cache $wx_arg_cache_file"
8458 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
698dcdb6 8459
10f2d63a 8460
698dcdb6
VZ
8461
8462echo $ac_n "checking for toolkit""... $ac_c" 1>&6
4b6b4dfc 8463echo "configure:8464: checking for toolkit" >&5
10f2d63a
VZ
8464
8465if test "$wxUSE_GUI" = "yes"; then
8466
3a922bb4
RL
8467 if test "$USE_BEOS" = 1; then
8468 { echo "configure: error: BeOS GUI is not supported yet, use --disable-gui" 1>&2; exit 1; }
8469 fi
b12915c1 8470
3a922bb4
RL
8471 if test "$TOOLKIT_GIVEN" = 1; then
8472 for toolkit in `echo $ALL_TOOLKITS`; do
8473 var=wxUSE_$toolkit
8474 eval "value=\$${var}"
8475 eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
8476 done
10f2d63a 8477 else
3a922bb4
RL
8478 for toolkit in `echo $ALL_TOOLKITS`; do
8479 if test "$has_toolkit_in_cache" != 1; then
8480 var=DEFAULT_DEFAULT_wxUSE_$toolkit
8481 else
8482 var=DEFAULT_wxUSE_$toolkit
8483 fi
8484 eval "wxUSE_$toolkit=\$${var}"
8485 done
10f2d63a 8486 fi
10f2d63a 8487
3a922bb4 8488 NUM_TOOLKITS=`expr ${wxUSE_GTK:-0} + ${wxUSE_MOTIF:-0} + ${wxUSE_MAC:-0} \
1725144d 8489 + ${wxUSE_WINE:-0} + ${wxUSE_MSW:-0} + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0}`
10f2d63a 8490
3a922bb4 8491 case "${host}" in
6fa882bd 8492 *-pc-os2_emx | *-pc-os2-emx )
3a922bb4
RL
8493 # PATH_IFS is autodetected by OS/2's configure (usually ';')
8494 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
8495 LEX_STEM="lexyy"
8496 ;;
8497 *)
8498 PATH_IFS=':'
8499 LEX_STEM="lex.yy"
8500 ;;
8501 esac
10f2d63a 8502
3a922bb4
RL
8503 case "$NUM_TOOLKITS" in
8504 1)
8505 ;;
8506 0)
8507 { echo "configure: error: Please specify a toolkit - cannot determine the default for ${host}" 1>&2; exit 1; }
8508 ;;
8509 *)
8510 { echo "configure: error: Please specify at most one toolkit (may be some are cached?)" 1>&2; exit 1; }
8511 esac
10f2d63a 8512
3a922bb4
RL
8513 for toolkit in `echo $ALL_TOOLKITS`; do
8514 var=wxUSE_$toolkit
8515 eval "value=\$${var}"
8516 if test "x$value" != x; then
8517 cache_var=CACHE_$toolkit
8518 eval "cache=\$${cache_var}"
8519 if test "$cache" = 1; then
8520 echo "$var=$value" >> ${wx_arg_cache_file}
8521 fi
8522 if test "$value" = 1; then
8523 toolkit_echo=`echo $toolkit | tr [A-Z] [a-z]`
8524 echo "$ac_t""$toolkit_echo" 1>&6
8525 fi
8526 fi
8527 done
10f2d63a 8528else
cf27ef00 8529 PATH_IFS=':'
3a922bb4 8530 echo "$ac_t""base ($host_alias hosted) only" 1>&6
10f2d63a
VZ
8531fi
8532
698dcdb6
VZ
8533
8534cat > confcache <<\EOF
10f2d63a
VZ
8535# This file is a shell script that caches the results of configure
8536# tests run on this system so they can be shared between configure
698dcdb6
VZ
8537# scripts and configure runs. It is not useful on other systems.
8538# If it contains results you don't want to keep, you may remove or edit it.
10f2d63a 8539#
698dcdb6
VZ
8540# By default, configure uses ./config.cache as the cache file,
8541# creating it if it does not exist already. You can give configure
8542# the --cache-file=FILE option to use a different cache file; that is
8543# what configure does when it calls configure scripts in
8544# subdirectories, so they share the cache.
8545# Giving --cache-file=/dev/null disables caching, for debugging configure.
8546# config.status only pays attention to the cache file if you give it the
8547# --recheck option to rerun configure.
10f2d63a 8548#
698dcdb6 8549EOF
10f2d63a
VZ
8550# The following way of writing the cache mishandles newlines in values,
8551# but we know of no workaround that is simple, portable, and efficient.
8552# So, don't put newlines in cache variables' values.
8553# Ultrix sh set writes to stderr and can't be redirected directly,
8554# and sets the high bit in the cache file unless we assign to the vars.
698dcdb6
VZ
8555(set) 2>&1 |
8556 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8557 *ac_space=\ *)
8558 # `set' does not quote correctly, so add quotes (double-quote substitution
8559 # turns \\\\ into \\, and sed turns \\ into \).
8560 sed -n \
8561 -e "s/'/'\\\\''/g" \
8562 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
8563 ;;
8564 *)
8565 # `set' quotes correctly as required by POSIX, so do not add quotes.
8566 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8567 ;;
8568 esac >> confcache
8569if cmp -s $cache_file confcache; then
8570 :
8571else
10f2d63a 8572 if test -w $cache_file; then
698dcdb6
VZ
8573 echo "updating cache $cache_file"
8574 cat confcache > $cache_file
10f2d63a
VZ
8575 else
8576 echo "not updating unwritable cache $cache_file"
8577 fi
8578fi
8579rm -f confcache
8580
698dcdb6 8581
e59890c3 8582if test "$build" != "$host" ; then
f9bc1684 8583 if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 ; then
3a922bb4
RL
8584 CC=$host_alias-gcc
8585 CXX=$host_alias-c++
8586 AR=$host_alias-ar
8587 RANLIB=$host_alias-ranlib
8588 DLLTOOL=$host_alias-dlltool
8589 RESCOMP=$host_alias-windres
8590 LD=$host_alias-ld
8591 NM=$host_alias-nm
8592 STRIP=$host_alias-strip
8593 else
8594 { echo "configure: error: $build_alias -> $host_alias cross compilation not supported yet." 1>&2; exit 1; }
8595 fi
10f2d63a
VZ
8596fi
8597
698dcdb6 8598# Extract the first word of "gcc", so it can be a program name with args.
1e487827 8599set dummy gcc; ac_word=$2
698dcdb6 8600echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4b6b4dfc 8601echo "configure:8602: checking for $ac_word" >&5
698dcdb6
VZ
8602if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
8603 echo $ac_n "(cached) $ac_c" 1>&6
6232543b
VS
8604else
8605 if test -n "$CC"; then
8606 ac_cv_prog_CC="$CC" # Let the user override the test.
10f2d63a 8607else
698dcdb6
VZ
8608 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8609 ac_dummy="$PATH"
8610 for ac_dir in $ac_dummy; do
8611 test -z "$ac_dir" && ac_dir=.
8612 if test -f $ac_dir/$ac_word; then
8613 ac_cv_prog_CC="gcc"
8614 break
8615 fi
8616 done
8617 IFS="$ac_save_ifs"
10f2d63a 8618fi
6232543b 8619fi
698dcdb6 8620CC="$ac_cv_prog_CC"
6232543b 8621if test -n "$CC"; then
698dcdb6 8622 echo "$ac_t""$CC" 1>&6
1e487827 8623else
698dcdb6 8624 echo "$ac_t""no" 1>&6
1e487827 8625fi
6232543b 8626
1e487827
VS
8627if test -z "$CC"; then
8628 # Extract the first word of "cc", so it can be a program name with args.
8629set dummy cc; ac_word=$2
698dcdb6 8630echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4b6b4dfc 8631echo "configure:8632: checking for $ac_word" >&5
698dcdb6
VZ
8632if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
8633 echo $ac_n "(cached) $ac_c" 1>&6
1e487827
VS
8634else
8635 if test -n "$CC"; then
8636 ac_cv_prog_CC="$CC" # Let the user override the test.
8637else
698dcdb6 8638 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1e487827 8639 ac_prog_rejected=no
698dcdb6
VZ
8640 ac_dummy="$PATH"
8641 for ac_dir in $ac_dummy; do
8642 test -z "$ac_dir" && ac_dir=.
8643 if test -f $ac_dir/$ac_word; then
8644 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
8645 ac_prog_rejected=yes
8646 continue
8647 fi
8648 ac_cv_prog_CC="cc"
8649 break
8650 fi
8651 done
8652 IFS="$ac_save_ifs"
1e487827
VS
8653if test $ac_prog_rejected = yes; then
8654 # We found a bogon in the path, so make sure we never use it.
8655 set dummy $ac_cv_prog_CC
8656 shift
698dcdb6 8657 if test $# -gt 0; then
1e487827
VS
8658 # We chose a different compiler from the bogus one.
8659 # However, it has the same basename, so the bogon will be chosen
8660 # first if we set CC to just the basename; use the full file name.
8661 shift
698dcdb6 8662 set dummy "$ac_dir/$ac_word" "$@"
1e487827
VS
8663 shift
8664 ac_cv_prog_CC="$@"
703e0a69 8665 fi
1e487827
VS
8666fi
8667fi
8668fi
698dcdb6 8669CC="$ac_cv_prog_CC"
1e487827 8670if test -n "$CC"; then
698dcdb6 8671 echo "$ac_t""$CC" 1>&6
703e0a69 8672else
698dcdb6 8673 echo "$ac_t""no" 1>&6
703e0a69 8674fi
1e487827 8675
698dcdb6
VZ
8676 if test -z "$CC"; then
8677 case "`uname -s`" in
8678 *win32* | *WIN32*)
8679 # Extract the first word of "cl", so it can be a program name with args.
8680set dummy cl; ac_word=$2
8681echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4b6b4dfc 8682echo "configure:8683: checking for $ac_word" >&5
698dcdb6
VZ
8683if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
8684 echo $ac_n "(cached) $ac_c" 1>&6
1e487827
VS
8685else
8686 if test -n "$CC"; then
8687 ac_cv_prog_CC="$CC" # Let the user override the test.
703e0a69 8688else
698dcdb6
VZ
8689 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8690 ac_dummy="$PATH"
8691 for ac_dir in $ac_dummy; do
8692 test -z "$ac_dir" && ac_dir=.
8693 if test -f $ac_dir/$ac_word; then
8694 ac_cv_prog_CC="cl"
8695 break
8696 fi
8697 done
8698 IFS="$ac_save_ifs"
703e0a69 8699fi
1e487827 8700fi
698dcdb6 8701CC="$ac_cv_prog_CC"
1e487827 8702if test -n "$CC"; then
698dcdb6 8703 echo "$ac_t""$CC" 1>&6
1e487827 8704else
698dcdb6 8705 echo "$ac_t""no" 1>&6
1e487827 8706fi
698dcdb6
VZ
8707 ;;
8708 esac
8709 fi
8710 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1e487827
VS
8711fi
8712
698dcdb6 8713echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
4b6b4dfc 8714echo "configure:8715: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1e487827 8715
698dcdb6
VZ
8716ac_ext=c
8717# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8718ac_cpp='$CPP $CPPFLAGS'
8719ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8720ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8721cross_compiling=$ac_cv_prog_cc_cross
6232543b 8722
698dcdb6 8723cat > conftest.$ac_ext << EOF
1e487827 8724
4b6b4dfc 8725#line 8726 "configure"
1e487827
VS
8726#include "confdefs.h"
8727
698dcdb6
VZ
8728main(){return(0);}
8729EOF
4b6b4dfc 8730if { (eval echo configure:8731: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
8731 ac_cv_prog_cc_works=yes
8732 # If we can't run a trivial program, we are probably using a cross compiler.
8733 if (./conftest; exit) 2>/dev/null; then
8734 ac_cv_prog_cc_cross=no
8735 else
8736 ac_cv_prog_cc_cross=yes
8737 fi
8738else
8739 echo "configure: failed program was:" >&5
8740 cat conftest.$ac_ext >&5
8741 ac_cv_prog_cc_works=no
8742fi
8743rm -fr conftest*
8744ac_ext=c
8745# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8746ac_cpp='$CPP $CPPFLAGS'
8747ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8748ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8749cross_compiling=$ac_cv_prog_cc_cross
8750
8751echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
8752if test $ac_cv_prog_cc_works = no; then
8753 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
8754fi
8755echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
4b6b4dfc 8756echo "configure:8757: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
698dcdb6
VZ
8757echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
8758cross_compiling=$ac_cv_prog_cc_cross
8759
8760echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
4b6b4dfc 8761echo "configure:8762: checking whether we are using GNU C" >&5
698dcdb6
VZ
8762if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
8763 echo $ac_n "(cached) $ac_c" 1>&6
8764else
8765 cat > conftest.c <<EOF
8766#ifdef __GNUC__
8767 yes;
1e487827 8768#endif
698dcdb6 8769EOF
4b6b4dfc 8770if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:8771: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
698dcdb6
VZ
8771 ac_cv_prog_gcc=yes
8772else
8773 ac_cv_prog_gcc=no
8774fi
8775fi
1e487827 8776
698dcdb6 8777echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1e487827 8778
698dcdb6
VZ
8779if test $ac_cv_prog_gcc = yes; then
8780 GCC=yes
8781else
8782 GCC=
8783fi
1e487827 8784
698dcdb6
VZ
8785ac_test_CFLAGS="${CFLAGS+set}"
8786ac_save_CFLAGS="$CFLAGS"
8787CFLAGS=
8788echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
4b6b4dfc 8789echo "configure:8790: checking whether ${CC-cc} accepts -g" >&5
698dcdb6
VZ
8790if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
8791 echo $ac_n "(cached) $ac_c" 1>&6
8792else
8793 echo 'void f(){}' > conftest.c
8794if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
10f2d63a
VZ
8795 ac_cv_prog_cc_g=yes
8796else
698dcdb6 8797 ac_cv_prog_cc_g=no
10f2d63a 8798fi
698dcdb6
VZ
8799rm -f conftest*
8800
10f2d63a 8801fi
698dcdb6
VZ
8802
8803echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
10f2d63a 8804if test "$ac_test_CFLAGS" = set; then
698dcdb6 8805 CFLAGS="$ac_save_CFLAGS"
10f2d63a
VZ
8806elif test $ac_cv_prog_cc_g = yes; then
8807 if test "$GCC" = yes; then
8808 CFLAGS="-g -O2"
8809 else
8810 CFLAGS="-g"
8811 fi
8812else
8813 if test "$GCC" = yes; then
8814 CFLAGS="-O2"
8815 else
8816 CFLAGS=
8817 fi
8818fi
8819
8820
8821CFLAGS=`echo "$CFLAGS" | sed 's/-g//g'`
8822
698dcdb6 8823echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
4b6b4dfc 8824echo "configure:8825: checking how to run the C preprocessor" >&5
10f2d63a
VZ
8825# On Suns, sometimes $CPP names a directory.
8826if test -n "$CPP" && test -d "$CPP"; then
8827 CPP=
8828fi
8829if test -z "$CPP"; then
698dcdb6
VZ
8830if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
8831 echo $ac_n "(cached) $ac_c" 1>&6
8832else
8833 # This must be in double quotes, not single quotes, because CPP may get
8834 # substituted into the Makefile and "${CC-cc}" will confuse make.
8835 CPP="${CC-cc} -E"
10f2d63a 8836 # On the NeXT, cc -E runs the code through the compiler's parser,
698dcdb6
VZ
8837 # not just through cpp.
8838 cat > conftest.$ac_ext <<EOF
4b6b4dfc 8839#line 8840 "configure"
10f2d63a
VZ
8840#include "confdefs.h"
8841#include <assert.h>
698dcdb6
VZ
8842Syntax Error
8843EOF
8844ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4b6b4dfc 8845{ (eval echo configure:8846: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
8846ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8847if test -z "$ac_err"; then
10f2d63a
VZ
8848 :
8849else
698dcdb6
VZ
8850 echo "$ac_err" >&5
8851 echo "configure: failed program was:" >&5
10f2d63a 8852 cat conftest.$ac_ext >&5
698dcdb6
VZ
8853 rm -rf conftest*
8854 CPP="${CC-cc} -E -traditional-cpp"
8855 cat > conftest.$ac_ext <<EOF
4b6b4dfc 8856#line 8857 "configure"
10f2d63a 8857#include "confdefs.h"
698dcdb6
VZ
8858#include <assert.h>
8859Syntax Error
8860EOF
8861ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4b6b4dfc 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
8865 :
10f2d63a 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} -nologo -E"
8872 cat > conftest.$ac_ext <<EOF
4b6b4dfc 8873#line 8874 "configure"
10f2d63a
VZ
8874#include "confdefs.h"
8875#include <assert.h>
698dcdb6
VZ
8876Syntax Error
8877EOF
8878ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4b6b4dfc 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
10f2d63a
VZ
8882 :
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=/lib/cpp
10f2d63a 8889fi
698dcdb6 8890rm -f conftest*
10f2d63a 8891fi
698dcdb6 8892rm -f conftest*
703e0a69 8893fi
698dcdb6
VZ
8894rm -f conftest*
8895 ac_cv_prog_CPP="$CPP"
8896fi
8897 CPP="$ac_cv_prog_CPP"
10f2d63a 8898else
698dcdb6 8899 ac_cv_prog_CPP="$CPP"
10f2d63a 8900fi
698dcdb6 8901echo "$ac_t""$CPP" 1>&6
10f2d63a 8902
698dcdb6
VZ
8903if test $ac_cv_prog_gcc = yes; then
8904 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
4b6b4dfc 8905echo "configure:8906: checking whether ${CC-cc} needs -traditional" >&5
698dcdb6
VZ
8906if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
8907 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
8908else
8909 ac_pattern="Autoconf.*'x'"
698dcdb6 8910 cat > conftest.$ac_ext <<EOF
4b6b4dfc 8911#line 8912 "configure"
10f2d63a
VZ
8912#include "confdefs.h"
8913#include <sgtty.h>
8914Autoconf TIOCGETP
698dcdb6 8915EOF
10f2d63a
VZ
8916if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8917 egrep "$ac_pattern" >/dev/null 2>&1; then
698dcdb6 8918 rm -rf conftest*
10f2d63a
VZ
8919 ac_cv_prog_gcc_traditional=yes
8920else
698dcdb6 8921 rm -rf conftest*
10f2d63a
VZ
8922 ac_cv_prog_gcc_traditional=no
8923fi
8924rm -f conftest*
8925
698dcdb6 8926
10f2d63a 8927 if test $ac_cv_prog_gcc_traditional = no; then
698dcdb6 8928 cat > conftest.$ac_ext <<EOF
4b6b4dfc 8929#line 8930 "configure"
10f2d63a
VZ
8930#include "confdefs.h"
8931#include <termio.h>
8932Autoconf TCGETA
698dcdb6 8933EOF
10f2d63a
VZ
8934if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8935 egrep "$ac_pattern" >/dev/null 2>&1; then
698dcdb6 8936 rm -rf conftest*
10f2d63a
VZ
8937 ac_cv_prog_gcc_traditional=yes
8938fi
8939rm -f conftest*
8940
8941 fi
8942fi
698dcdb6
VZ
8943
8944echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
10f2d63a
VZ
8945 if test $ac_cv_prog_gcc_traditional = yes; then
8946 CC="$CC -traditional"
8947 fi
8948fi
8949
703e0a69 8950
698dcdb6
VZ
8951
8952ac_ext=C
8953# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1e487827 8954ac_cpp='$CXXCPP $CPPFLAGS'
698dcdb6
VZ
8955ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8956ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8957cross_compiling=$ac_cv_prog_cxx_cross
8958
8959
8960for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
8961do
8962# Extract the first word of "$ac_prog", so it can be a program name with args.
8963set dummy $ac_prog; ac_word=$2
8964echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4b6b4dfc 8965echo "configure:8966: checking for $ac_word" >&5
698dcdb6
VZ
8966if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
8967 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
8968else
8969 if test -n "$CXX"; then
8970 ac_cv_prog_CXX="$CXX" # Let the user override the test.
8971else
698dcdb6
VZ
8972 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8973 ac_dummy="$PATH"
8974 for ac_dir in $ac_dummy; do
8975 test -z "$ac_dir" && ac_dir=.
8976 if test -f $ac_dir/$ac_word; then
8977 ac_cv_prog_CXX="$ac_prog"
8978 break
8979 fi
8980 done
8981 IFS="$ac_save_ifs"
10f2d63a
VZ
8982fi
8983fi
698dcdb6 8984CXX="$ac_cv_prog_CXX"
10f2d63a 8985if test -n "$CXX"; then
698dcdb6 8986 echo "$ac_t""$CXX" 1>&6
10f2d63a 8987else
698dcdb6 8988 echo "$ac_t""no" 1>&6
10f2d63a
VZ
8989fi
8990
698dcdb6 8991test -n "$CXX" && break
10f2d63a 8992done
698dcdb6 8993test -n "$CXX" || CXX="gcc"
10f2d63a
VZ
8994
8995
698dcdb6 8996echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
4b6b4dfc 8997echo "configure:8998: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
10f2d63a 8998
698dcdb6
VZ
8999ac_ext=C
9000# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9001ac_cpp='$CXXCPP $CPPFLAGS'
9002ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9003ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9004cross_compiling=$ac_cv_prog_cxx_cross
703e0a69 9005
698dcdb6
VZ
9006cat > conftest.$ac_ext << EOF
9007
4b6b4dfc 9008#line 9009 "configure"
10f2d63a
VZ
9009#include "confdefs.h"
9010
698dcdb6
VZ
9011int main(){return(0);}
9012EOF
4b6b4dfc 9013if { (eval echo configure:9014: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
9014 ac_cv_prog_cxx_works=yes
9015 # If we can't run a trivial program, we are probably using a cross compiler.
9016 if (./conftest; exit) 2>/dev/null; then
9017 ac_cv_prog_cxx_cross=no
9018 else
9019 ac_cv_prog_cxx_cross=yes
9020 fi
9021else
9022 echo "configure: failed program was:" >&5
9023 cat conftest.$ac_ext >&5
9024 ac_cv_prog_cxx_works=no
9025fi
9026rm -fr conftest*
9027ac_ext=C
9028# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9029ac_cpp='$CXXCPP $CPPFLAGS'
9030ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9031ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9032cross_compiling=$ac_cv_prog_cxx_cross
9033
9034echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
9035if test $ac_cv_prog_cxx_works = no; then
9036 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
9037fi
9038echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
4b6b4dfc 9039echo "configure:9040: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
698dcdb6
VZ
9040echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
9041cross_compiling=$ac_cv_prog_cxx_cross
9042
9043echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
4b6b4dfc 9044echo "configure:9045: checking whether we are using GNU C++" >&5
698dcdb6
VZ
9045if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
9046 echo $ac_n "(cached) $ac_c" 1>&6
9047else
9048 cat > conftest.C <<EOF
9049#ifdef __GNUC__
9050 yes;
10f2d63a 9051#endif
698dcdb6 9052EOF
4b6b4dfc 9053if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:9054: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
698dcdb6
VZ
9054 ac_cv_prog_gxx=yes
9055else
9056 ac_cv_prog_gxx=no
9057fi
9058fi
10f2d63a 9059
698dcdb6 9060echo "$ac_t""$ac_cv_prog_gxx" 1>&6
10f2d63a 9061
698dcdb6
VZ
9062if test $ac_cv_prog_gxx = yes; then
9063 GXX=yes
9064else
9065 GXX=
9066fi
10f2d63a 9067
698dcdb6
VZ
9068ac_test_CXXFLAGS="${CXXFLAGS+set}"
9069ac_save_CXXFLAGS="$CXXFLAGS"
9070CXXFLAGS=
9071echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
4b6b4dfc 9072echo "configure:9073: checking whether ${CXX-g++} accepts -g" >&5
698dcdb6
VZ
9073if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
9074 echo $ac_n "(cached) $ac_c" 1>&6
9075else
9076 echo 'void f(){}' > conftest.cc
9077if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
10f2d63a
VZ
9078 ac_cv_prog_cxx_g=yes
9079else
698dcdb6 9080 ac_cv_prog_cxx_g=no
10f2d63a 9081fi
698dcdb6
VZ
9082rm -f conftest*
9083
10f2d63a 9084fi
698dcdb6
VZ
9085
9086echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
10f2d63a 9087if test "$ac_test_CXXFLAGS" = set; then
698dcdb6 9088 CXXFLAGS="$ac_save_CXXFLAGS"
10f2d63a
VZ
9089elif test $ac_cv_prog_cxx_g = yes; then
9090 if test "$GXX" = yes; then
9091 CXXFLAGS="-g -O2"
9092 else
9093 CXXFLAGS="-g"
9094 fi
9095else
9096 if test "$GXX" = yes; then
9097 CXXFLAGS="-O2"
9098 else
9099 CXXFLAGS=
9100 fi
9101fi
9102
9103
10f2d63a
VZ
9104CXXFLAGS=`echo "$CXXFLAGS" | sed 's/-g//g'`
9105
9106ac_ext=c
698dcdb6 9107# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10f2d63a 9108ac_cpp='$CPP $CPPFLAGS'
698dcdb6
VZ
9109ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9110ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9111cross_compiling=$ac_cv_prog_cc_cross
9112
9113
9114# Extract the first word of "ranlib", so it can be a program name with args.
9115set dummy ranlib; ac_word=$2
9116echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4b6b4dfc 9117echo "configure:9118: checking for $ac_word" >&5
698dcdb6
VZ
9118if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
9119 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
9120else
9121 if test -n "$RANLIB"; then
9122 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9123else
698dcdb6
VZ
9124 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9125 ac_dummy="$PATH"
9126 for ac_dir in $ac_dummy; do
9127 test -z "$ac_dir" && ac_dir=.
9128 if test -f $ac_dir/$ac_word; then
9129 ac_cv_prog_RANLIB="ranlib"
9130 break
9131 fi
9132 done
9133 IFS="$ac_save_ifs"
9134 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
10f2d63a
VZ
9135fi
9136fi
698dcdb6 9137RANLIB="$ac_cv_prog_RANLIB"
10f2d63a 9138if test -n "$RANLIB"; then
698dcdb6 9139 echo "$ac_t""$RANLIB" 1>&6
10f2d63a 9140else
698dcdb6 9141 echo "$ac_t""no" 1>&6
10f2d63a
VZ
9142fi
9143
9144
9145# Extract the first word of "ar", so it can be a program name with args.
9146set dummy ar; ac_word=$2
698dcdb6 9147echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4b6b4dfc 9148echo "configure:9149: checking for $ac_word" >&5
698dcdb6
VZ
9149if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
9150 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
9151else
9152 if test -n "$AR"; then
9153 ac_cv_prog_AR="$AR" # Let the user override the test.
9154else
698dcdb6
VZ
9155 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9156 ac_dummy="$PATH"
9157 for ac_dir in $ac_dummy; do
9158 test -z "$ac_dir" && ac_dir=.
9159 if test -f $ac_dir/$ac_word; then
9160 ac_cv_prog_AR="ar"
9161 break
9162 fi
9163 done
9164 IFS="$ac_save_ifs"
10f2d63a
VZ
9165 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
9166fi
9167fi
698dcdb6 9168AR="$ac_cv_prog_AR"
10f2d63a 9169if test -n "$AR"; then
698dcdb6 9170 echo "$ac_t""$AR" 1>&6
10f2d63a 9171else
698dcdb6 9172 echo "$ac_t""no" 1>&6
10f2d63a
VZ
9173fi
9174
698dcdb6 9175
6054113a 9176# Find a good install program. We prefer a C program (faster),
10f2d63a
VZ
9177# so one script is as good as another. But avoid the broken or
9178# incompatible versions:
9179# SysV /etc/install, /usr/sbin/install
9180# SunOS /usr/etc/install
9181# IRIX /sbin/install
9182# AIX /bin/install
9183# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
9184# AFS /usr/afsws/bin/install, which mishandles nonexistent args
9185# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
9186# ./install, which can be erroneously created by make from ./install.sh.
698dcdb6 9187echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
4b6b4dfc 9188echo "configure:9189: checking for a BSD compatible install" >&5
10f2d63a 9189if test -z "$INSTALL"; then
698dcdb6
VZ
9190if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
9191 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 9192else
698dcdb6 9193 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
10f2d63a
VZ
9194 for ac_dir in $PATH; do
9195 # Account for people who put trailing slashes in PATH elements.
698dcdb6
VZ
9196 case "$ac_dir/" in
9197 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
10f2d63a
VZ
9198 *)
9199 # OSF1 and SCO ODT 3.0 have their own names for install.
9200 # Don't use installbsd from OSF since it installs stuff as root
9201 # by default.
9202 for ac_prog in ginstall scoinst install; do
698dcdb6 9203 if test -f $ac_dir/$ac_prog; then
10f2d63a 9204 if test $ac_prog = install &&
698dcdb6 9205 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
10f2d63a
VZ
9206 # AIX install. It has an incompatible calling convention.
9207 :
9208 else
9209 ac_cv_path_install="$ac_dir/$ac_prog -c"
9210 break 2
9211 fi
9212 fi
9213 done
9214 ;;
9215 esac
9216 done
698dcdb6 9217 IFS="$ac_save_IFS"
10f2d63a
VZ
9218
9219fi
9220 if test "${ac_cv_path_install+set}" = set; then
698dcdb6 9221 INSTALL="$ac_cv_path_install"
10f2d63a
VZ
9222 else
9223 # As a last resort, use the slow shell script. We don't cache a
9224 # path for INSTALL within a source directory, because that will
9225 # break other packages using the cache if that directory is
9226 # removed, or if the path is relative.
698dcdb6 9227 INSTALL="$ac_install_sh"
10f2d63a
VZ
9228 fi
9229fi
698dcdb6 9230echo "$ac_t""$INSTALL" 1>&6
10f2d63a
VZ
9231
9232# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
9233# It thinks the first close brace ends the variable substitution.
9234test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
9235
698dcdb6 9236test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
10f2d63a
VZ
9237
9238test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
9239
6054113a
GD
9240case "${host}" in
9241
b5853384 9242 powerpc-*-darwin* )
eb99ae0b
GD
9243 INSTALL_PROGRAM="cp -fp"
9244 INSTALL_DATA="cp -fp"
6054113a
GD
9245 ;;
9246 *)
9247 ;;
d6853540 9248esac
698dcdb6 9249
10f2d63a
VZ
9250# Extract the first word of "strip", so it can be a program name with args.
9251set dummy strip; ac_word=$2
698dcdb6 9252echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4b6b4dfc 9253echo "configure:9254: checking for $ac_word" >&5
698dcdb6
VZ
9254if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
9255 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
9256else
9257 if test -n "$STRIP"; then
9258 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9259else
698dcdb6
VZ
9260 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9261 ac_dummy="$PATH"
9262 for ac_dir in $ac_dummy; do
9263 test -z "$ac_dir" && ac_dir=.
9264 if test -f $ac_dir/$ac_word; then
9265 ac_cv_prog_STRIP="strip"
9266 break
9267 fi
9268 done
9269 IFS="$ac_save_ifs"
10f2d63a
VZ
9270 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
9271fi
9272fi
698dcdb6 9273STRIP="$ac_cv_prog_STRIP"
10f2d63a 9274if test -n "$STRIP"; then
698dcdb6 9275 echo "$ac_t""$STRIP" 1>&6
10f2d63a 9276else
698dcdb6 9277 echo "$ac_t""no" 1>&6
10f2d63a
VZ
9278fi
9279
698dcdb6
VZ
9280
9281echo $ac_n "checking make for VPATH support""... $ac_c" 1>&6
4b6b4dfc 9282echo "configure:9283: checking make for VPATH support" >&5
10f2d63a
VZ
9283cat - << EOF > confMake
9284check : file
9285 cp \$? \$@
9286 cp \$? final_file
9287EOF
9288
9289if test ! -d sub ; then
9290 mkdir sub
9291fi
9292echo dummy > sub/file
f6bcfd97 9293${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
10f2d63a
VZ
9294RESULT=$?
9295rm -f sub/file check final_file confMake
9296rmdir sub
9297if test "$RESULT" = 0; then
698dcdb6 9298 echo "$ac_t""yes" 1>&6
10f2d63a 9299else
698dcdb6
VZ
9300 echo "$ac_t""no" 1>&6
9301 { echo "configure: error:
1e487827
VS
9302You need a make-utility that is able to use the variable
9303VPATH correctly.
9304If your version of make does not support VPATH correctly,
9305please install GNU-make (possibly as gmake), and start
9306configure with the following command:
9307export MAKE=gmake; ./configure for sh-type shells
9308setenv MAKE gmake; ./configure for csh-type shells
9309Also please do remember to use gmake in this case every time
9310you are trying to compile.
698dcdb6 9311" 1>&2; exit 1; }
10f2d63a
VZ
9312fi
9313
9314for ac_prog in 'bison -y' byacc
9315do
698dcdb6 9316# Extract the first word of "$ac_prog", so it can be a program name with args.
10f2d63a 9317set dummy $ac_prog; ac_word=$2
698dcdb6 9318echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4b6b4dfc 9319echo "configure:9320: checking for $ac_word" >&5
698dcdb6
VZ
9320if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
9321 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
9322else
9323 if test -n "$YACC"; then
9324 ac_cv_prog_YACC="$YACC" # Let the user override the test.
9325else
698dcdb6
VZ
9326 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9327 ac_dummy="$PATH"
9328 for ac_dir in $ac_dummy; do
9329 test -z "$ac_dir" && ac_dir=.
9330 if test -f $ac_dir/$ac_word; then
9331 ac_cv_prog_YACC="$ac_prog"
9332 break
9333 fi
9334 done
9335 IFS="$ac_save_ifs"
10f2d63a
VZ
9336fi
9337fi
698dcdb6 9338YACC="$ac_cv_prog_YACC"
10f2d63a 9339if test -n "$YACC"; then
698dcdb6 9340 echo "$ac_t""$YACC" 1>&6
10f2d63a 9341else
698dcdb6 9342 echo "$ac_t""no" 1>&6
10f2d63a
VZ
9343fi
9344
698dcdb6 9345test -n "$YACC" && break
10f2d63a
VZ
9346done
9347test -n "$YACC" || YACC="yacc"
9348
698dcdb6
VZ
9349
9350# Extract the first word of "flex", so it can be a program name with args.
9351set dummy flex; ac_word=$2
9352echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4b6b4dfc 9353echo "configure:9354: checking for $ac_word" >&5
698dcdb6
VZ
9354if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
9355 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
9356else
9357 if test -n "$LEX"; then
9358 ac_cv_prog_LEX="$LEX" # Let the user override the test.
9359else
698dcdb6
VZ
9360 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9361 ac_dummy="$PATH"
9362 for ac_dir in $ac_dummy; do
9363 test -z "$ac_dir" && ac_dir=.
9364 if test -f $ac_dir/$ac_word; then
9365 ac_cv_prog_LEX="flex"
9366 break
9367 fi
9368 done
9369 IFS="$ac_save_ifs"
9370 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
10f2d63a
VZ
9371fi
9372fi
698dcdb6 9373LEX="$ac_cv_prog_LEX"
10f2d63a 9374if test -n "$LEX"; then
698dcdb6 9375 echo "$ac_t""$LEX" 1>&6
10f2d63a 9376else
698dcdb6 9377 echo "$ac_t""no" 1>&6
10f2d63a
VZ
9378fi
9379
9380if test -z "$LEXLIB"
9381then
698dcdb6
VZ
9382 case "$LEX" in
9383 flex*) ac_lib=fl ;;
9384 *) ac_lib=l ;;
9385 esac
9386 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
4b6b4dfc 9387echo "configure:9388: checking for yywrap in -l$ac_lib" >&5
698dcdb6
VZ
9388ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
9389if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9390 echo $ac_n "(cached) $ac_c" 1>&6
9391else
9392 ac_save_LIBS="$LIBS"
9393LIBS="-l$ac_lib $LIBS"
9394cat > conftest.$ac_ext <<EOF
4b6b4dfc 9395#line 9396 "configure"
10f2d63a
VZ
9396#include "confdefs.h"
9397/* Override any gcc2 internal prototype to avoid an error. */
9398/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
9399 builtin and then its argument prototype would still apply. */
9400char yywrap();
10f2d63a 9401
698dcdb6
VZ
9402int main() {
9403yywrap()
9404; return 0; }
9405EOF
4b6b4dfc 9406if { (eval echo configure:9407: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
9407 rm -rf conftest*
9408 eval "ac_cv_lib_$ac_lib_var=yes"
10f2d63a 9409else
698dcdb6
VZ
9410 echo "configure: failed program was:" >&5
9411 cat conftest.$ac_ext >&5
9412 rm -rf conftest*
9413 eval "ac_cv_lib_$ac_lib_var=no"
10f2d63a 9414fi
698dcdb6
VZ
9415rm -f conftest*
9416LIBS="$ac_save_LIBS"
9417
10f2d63a 9418fi
698dcdb6
VZ
9419if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9420 echo "$ac_t""yes" 1>&6
9421 LEXLIB="-l$ac_lib"
9422else
9423 echo "$ac_t""no" 1>&6
10f2d63a
VZ
9424fi
9425
9426fi
9427
9428
698dcdb6 9429echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
4b6b4dfc 9430echo "configure:9431: checking whether ln -s works" >&5
698dcdb6
VZ
9431if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
9432 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 9433else
698dcdb6
VZ
9434 rm -f conftestdata
9435if ln -s X conftestdata 2>/dev/null
9436then
9437 rm -f conftestdata
9438 ac_cv_prog_LN_S="ln -s"
10f2d63a 9439else
698dcdb6 9440 ac_cv_prog_LN_S=ln
10f2d63a
VZ
9441fi
9442fi
698dcdb6
VZ
9443LN_S="$ac_cv_prog_LN_S"
9444if test "$ac_cv_prog_LN_S" = "ln -s"; then
9445 echo "$ac_t""yes" 1>&6
10f2d63a 9446else
698dcdb6 9447 echo "$ac_t""no" 1>&6
10f2d63a
VZ
9448fi
9449
9450
9451
9452SEARCH_INCLUDE="\
9453 /usr/local/include \
9454 \
9455 /usr/Motif-1.2/include \
9456 /usr/Motif-2.1/include \
9457 \
9458 /usr/include/Motif1.2 \
9459 /opt/xpm/include/X11 \
9460 /opt/GBxpm/include/ \
9461 /opt/GBxpm/X11/include/ \
9462 \
9463 /usr/Motif1.2/include \
9464 /usr/dt/include \
afc31813
VZ
9465 /usr/openwin/include \
9466 \
10f2d63a
VZ
9467 /usr/include/Xm \
9468 \
9469 /usr/X11R6/include \
afc31813 9470 /usr/X11R6.4/include \
10f2d63a
VZ
9471 /usr/X11R5/include \
9472 /usr/X11R4/include \
9473 \
10f2d63a
VZ
9474 /usr/include/X11R6 \
9475 /usr/include/X11R5 \
9476 /usr/include/X11R4 \
9477 \
9478 /usr/local/X11R6/include \
9479 /usr/local/X11R5/include \
9480 /usr/local/X11R4/include \
9481 \
9482 /usr/local/include/X11R6 \
9483 /usr/local/include/X11R5 \
9484 /usr/local/include/X11R4 \
9485 \
9486 /usr/X11/include \
9487 /usr/include/X11 \
9488 /usr/local/X11/include \
9489 /usr/local/include/X11 \
9490 \
9491 /usr/X386/include \
9492 /usr/x386/include \
9493 /usr/XFree86/include/X11 \
9494 \
cf27ef00 9495 X:/XFree86/include \
ec14dd32
VZ
9496 X:/XFree86/include/X11 \
9497 \
10f2d63a
VZ
9498 /usr/include/gtk \
9499 /usr/local/include/gtk \
9500 /usr/include/glib \
9501 /usr/local/include/glib \
9502 \
9503 /usr/include/qt \
9504 /usr/local/include/qt \
9505 \
9506 /usr/include/windows \
9507 /usr/include/wine \
9508 /usr/local/include/wine \
9509 \
9510 /usr/unsupported/include \
9511 /usr/athena/include \
9512 /usr/local/x11r5/include \
9513 /usr/lpp/Xamples/include \
9514 \
10f2d63a 9515 /usr/openwin/share/include \
928b5c08
VZ
9516 \
9517 /usr/include"
10f2d63a
VZ
9518
9519SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` "
9520
698dcdb6
VZ
9521
9522cat > confcache <<\EOF
10f2d63a
VZ
9523# This file is a shell script that caches the results of configure
9524# tests run on this system so they can be shared between configure
698dcdb6
VZ
9525# scripts and configure runs. It is not useful on other systems.
9526# If it contains results you don't want to keep, you may remove or edit it.
10f2d63a 9527#
698dcdb6
VZ
9528# By default, configure uses ./config.cache as the cache file,
9529# creating it if it does not exist already. You can give configure
9530# the --cache-file=FILE option to use a different cache file; that is
9531# what configure does when it calls configure scripts in
9532# subdirectories, so they share the cache.
9533# Giving --cache-file=/dev/null disables caching, for debugging configure.
9534# config.status only pays attention to the cache file if you give it the
9535# --recheck option to rerun configure.
10f2d63a 9536#
698dcdb6 9537EOF
10f2d63a
VZ
9538# The following way of writing the cache mishandles newlines in values,
9539# but we know of no workaround that is simple, portable, and efficient.
9540# So, don't put newlines in cache variables' values.
9541# Ultrix sh set writes to stderr and can't be redirected directly,
9542# and sets the high bit in the cache file unless we assign to the vars.
698dcdb6
VZ
9543(set) 2>&1 |
9544 case `(ac_space=' '; set | grep ac_space) 2>&1` in
9545 *ac_space=\ *)
9546 # `set' does not quote correctly, so add quotes (double-quote substitution
9547 # turns \\\\ into \\, and sed turns \\ into \).
9548 sed -n \
9549 -e "s/'/'\\\\''/g" \
9550 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
9551 ;;
9552 *)
9553 # `set' quotes correctly as required by POSIX, so do not add quotes.
9554 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
9555 ;;
9556 esac >> confcache
9557if cmp -s $cache_file confcache; then
9558 :
9559else
10f2d63a 9560 if test -w $cache_file; then
698dcdb6
VZ
9561 echo "updating cache $cache_file"
9562 cat confcache > $cache_file
10f2d63a
VZ
9563 else
9564 echo "not updating unwritable cache $cache_file"
9565 fi
9566fi
9567rm -f confcache
9568
698dcdb6
VZ
9569
9570
4f14bcd8 9571
18dbb1f6
VZ
9572REGEX_INCLUDE=
9573if test "$wxUSE_REGEX" != "no"; then
4f14bcd8
GD
9574 cat >> confdefs.h <<\EOF
9575#define wxUSE_REGEX 1
9576EOF
9577
9578
9579 if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
9580 ac_safe=`echo "regex.h" | sed 'y%./+-%__p_%'`
18dbb1f6 9581echo $ac_n "checking for regex.h""... $ac_c" 1>&6
4b6b4dfc 9582echo "configure:9583: checking for regex.h" >&5
18dbb1f6
VZ
9583if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9584 echo $ac_n "(cached) $ac_c" 1>&6
9585else
9586 cat > conftest.$ac_ext <<EOF
4b6b4dfc 9587#line 9588 "configure"
18dbb1f6
VZ
9588#include "confdefs.h"
9589#include <regex.h>
9590EOF
9591ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4b6b4dfc 9592{ (eval echo configure:9593: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
18dbb1f6
VZ
9593ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9594if test -z "$ac_err"; then
9595 rm -rf conftest*
9596 eval "ac_cv_header_$ac_safe=yes"
9597else
9598 echo "$ac_err" >&5
9599 echo "configure: failed program was:" >&5
9600 cat conftest.$ac_ext >&5
9601 rm -rf conftest*
9602 eval "ac_cv_header_$ac_safe=no"
9603fi
9604rm -f conftest*
9605fi
9606if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9607 echo "$ac_t""yes" 1>&6
9608 for ac_func in regcomp
9609do
9610echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4b6b4dfc 9611echo "configure:9612: checking for $ac_func" >&5
18dbb1f6
VZ
9612if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9613 echo $ac_n "(cached) $ac_c" 1>&6
9614else
9615 cat > conftest.$ac_ext <<EOF
4b6b4dfc 9616#line 9617 "configure"
18dbb1f6
VZ
9617#include "confdefs.h"
9618/* System header to define __stub macros and hopefully few prototypes,
9619 which can conflict with char $ac_func(); below. */
9620#include <assert.h>
9621/* Override any gcc2 internal prototype to avoid an error. */
9622/* We use char because int might match the return type of a gcc2
9623 builtin and then its argument prototype would still apply. */
9624char $ac_func();
9625
9626int main() {
9627
9628/* The GNU C library defines this for functions which it implements
9629 to always fail with ENOSYS. Some functions are actually named
9630 something starting with __ and the normal name is an alias. */
9631#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9632choke me
9633#else
9634$ac_func();
9635#endif
9636
9637; return 0; }
9638EOF
4b6b4dfc 9639if { (eval echo configure:9640: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18dbb1f6
VZ
9640 rm -rf conftest*
9641 eval "ac_cv_func_$ac_func=yes"
9642else
9643 echo "configure: failed program was:" >&5
9644 cat conftest.$ac_ext >&5
9645 rm -rf conftest*
9646 eval "ac_cv_func_$ac_func=no"
9647fi
9648rm -f conftest*
9649fi
9650
9651if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9652 echo "$ac_t""yes" 1>&6
9653 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9654 cat >> confdefs.h <<EOF
9655#define $ac_tr_func 1
9656EOF
9657
9658else
9659 echo "$ac_t""no" 1>&6
9660fi
9661done
9662
9663else
9664 echo "$ac_t""no" 1>&6
9665fi
9666
9667
4f14bcd8
GD
9668 if test "x$ac_cv_func_regcomp" != "xyes"; then
9669 if test "$wxUSE_REGEX" = "sys" ; then
9670 { echo "configure: error: system regex library not found! Use --with-regex to use built-in version" 1>&2; exit 1; }
9671 else
a3df447d 9672 echo "configure: warning: system regex library not found, will use built-in instead" 1>&2
4f14bcd8
GD
9673 wxUSE_REGEX=builtin
9674 fi
9675 else
9676 wxUSE_REGEX=sys
18dbb1f6 9677 fi
18dbb1f6
VZ
9678 fi
9679
4f14bcd8
GD
9680 if test "$wxUSE_REGEX" = "builtin" ; then
9681 REGEX_INCLUDE="-I\${top_srcdir}/src/regex"
9682 fi
18dbb1f6
VZ
9683fi
9684
9685
4f14bcd8
GD
9686ZLIB_INCLUDE=
9687ZLIB_LINK=
9688if test "$wxUSE_ZLIB" != "no" ; then
9689 cat >> confdefs.h <<\EOF
9690#define wxUSE_ZLIB 1
9691EOF
dad6c0ea 9692
10f2d63a 9693
4f14bcd8
GD
9694 if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
9695 ac_safe=`echo "zlib.h" | sed 'y%./+-%__p_%'`
9696echo $ac_n "checking for zlib.h""... $ac_c" 1>&6
4b6b4dfc 9697echo "configure:9698: checking for zlib.h" >&5
3a922bb4
RL
9698if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9699 echo $ac_n "(cached) $ac_c" 1>&6
9700else
9701 cat > conftest.$ac_ext <<EOF
4b6b4dfc 9702#line 9703 "configure"
3a922bb4 9703#include "confdefs.h"
4f14bcd8 9704#include <zlib.h>
3a922bb4
RL
9705EOF
9706ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4b6b4dfc 9707{ (eval echo configure:9708: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3a922bb4
RL
9708ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9709if test -z "$ac_err"; then
9710 rm -rf conftest*
9711 eval "ac_cv_header_$ac_safe=yes"
9712else
9713 echo "$ac_err" >&5
9714 echo "configure: failed program was:" >&5
9715 cat conftest.$ac_ext >&5
9716 rm -rf conftest*
9717 eval "ac_cv_header_$ac_safe=no"
9718fi
9719rm -f conftest*
9720fi
9721if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9722 echo "$ac_t""yes" 1>&6
4f14bcd8 9723 echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
4b6b4dfc 9724echo "configure:9725: checking for deflate in -lz" >&5
4f14bcd8
GD
9725ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
9726if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9727 echo $ac_n "(cached) $ac_c" 1>&6
9728else
9729 ac_save_LIBS="$LIBS"
9730LIBS="-lz $LIBS"
9731cat > conftest.$ac_ext <<EOF
4b6b4dfc 9732#line 9733 "configure"
4f14bcd8
GD
9733#include "confdefs.h"
9734/* Override any gcc2 internal prototype to avoid an error. */
9735/* We use char because int might match the return type of a gcc2
9736 builtin and then its argument prototype would still apply. */
9737char deflate();
9738
9739int main() {
9740deflate()
9741; return 0; }
3a922bb4 9742EOF
4b6b4dfc 9743if { (eval echo configure:9744: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4f14bcd8
GD
9744 rm -rf conftest*
9745 eval "ac_cv_lib_$ac_lib_var=yes"
9746else
9747 echo "configure: failed program was:" >&5
9748 cat conftest.$ac_ext >&5
9749 rm -rf conftest*
9750 eval "ac_cv_lib_$ac_lib_var=no"
9751fi
9752rm -f conftest*
9753LIBS="$ac_save_LIBS"
9754
9755fi
9756if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9757 echo "$ac_t""yes" 1>&6
3d63bc3a 9758 ZLIB_LINK=" -lz"
3a922bb4
RL
9759else
9760 echo "$ac_t""no" 1>&6
9761fi
10f2d63a 9762
4f14bcd8
GD
9763else
9764 echo "$ac_t""no" 1>&6
9765fi
9766
9767
9768 if test "x$ZLIB_LINK" = "x" ; then
9769 if test "$wxUSE_ZLIB" = "sys" ; then
9770 { echo "configure: error: system zlib compression library not found! Use --with-zlib=builtin to use built-in version" 1>&2; exit 1; }
9771 else
a3df447d 9772 echo "configure: warning: system zlib compression library not found, will use built-in instead" 1>&2
4f14bcd8
GD
9773 wxUSE_ZLIB=builtin
9774 fi
9775 else
9776 wxUSE_ZLIB=sys
9777 fi
9778 fi
9779
9780 if test "$wxUSE_ZLIB" = "builtin" ; then
9781 ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib"
9782 fi
9783fi
9784
9785
9786PNG_INCLUDE=
9787PNG_LINK=
9788if test "$wxUSE_LIBPNG" != "no" ; then
9789 cat >> confdefs.h <<\EOF
9790#define wxUSE_LIBPNG 1
9791EOF
9792
9793
9794 if test "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
a3df447d 9795 echo "configure: warning: system png library doesn't work without system zlib, will use built-in instead" 1>&2
4f14bcd8
GD
9796 wxUSE_LIBPNG=builtin
9797 fi
9798
9799 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
9800 ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
9801echo $ac_n "checking for png.h""... $ac_c" 1>&6
4b6b4dfc 9802echo "configure:9803: checking for png.h" >&5
d4158b5d
VS
9803if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9804 echo $ac_n "(cached) $ac_c" 1>&6
9805else
9806 cat > conftest.$ac_ext <<EOF
4b6b4dfc 9807#line 9808 "configure"
d4158b5d 9808#include "confdefs.h"
4f14bcd8 9809#include <png.h>
d4158b5d
VS
9810EOF
9811ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4b6b4dfc 9812{ (eval echo configure:9813: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d4158b5d
VS
9813ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9814if test -z "$ac_err"; then
9815 rm -rf conftest*
9816 eval "ac_cv_header_$ac_safe=yes"
9817else
9818 echo "$ac_err" >&5
9819 echo "configure: failed program was:" >&5
9820 cat conftest.$ac_ext >&5
9821 rm -rf conftest*
9822 eval "ac_cv_header_$ac_safe=no"
9823fi
9824rm -f conftest*
9825fi
9826if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9827 echo "$ac_t""yes" 1>&6
4f14bcd8 9828 echo $ac_n "checking for png_check_sig in -lpng""... $ac_c" 1>&6
4b6b4dfc 9829echo "configure:9830: checking for png_check_sig in -lpng" >&5
4f14bcd8
GD
9830ac_lib_var=`echo png'_'png_check_sig | sed 'y%./+-%__p_%'`
9831if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3a922bb4
RL
9832 echo $ac_n "(cached) $ac_c" 1>&6
9833else
4f14bcd8
GD
9834 ac_save_LIBS="$LIBS"
9835LIBS="-lpng -lz -lm $LIBS"
9836cat > conftest.$ac_ext <<EOF
4b6b4dfc 9837#line 9838 "configure"
3a922bb4 9838#include "confdefs.h"
4f14bcd8
GD
9839/* Override any gcc2 internal prototype to avoid an error. */
9840/* We use char because int might match the return type of a gcc2
9841 builtin and then its argument prototype would still apply. */
9842char png_check_sig();
f6bcfd97 9843
4f14bcd8
GD
9844int main() {
9845png_check_sig()
3a922bb4
RL
9846; return 0; }
9847EOF
4b6b4dfc 9848if { (eval echo configure:9849: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3a922bb4 9849 rm -rf conftest*
4f14bcd8 9850 eval "ac_cv_lib_$ac_lib_var=yes"
3a922bb4
RL
9851else
9852 echo "configure: failed program was:" >&5
9853 cat conftest.$ac_ext >&5
9854 rm -rf conftest*
4f14bcd8 9855 eval "ac_cv_lib_$ac_lib_var=no"
3a922bb4
RL
9856fi
9857rm -f conftest*
4f14bcd8 9858LIBS="$ac_save_LIBS"
10f2d63a 9859
4f14bcd8
GD
9860fi
9861if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9862 echo "$ac_t""yes" 1>&6
3d63bc3a 9863 PNG_LINK=" -lpng"
4f14bcd8
GD
9864else
9865 echo "$ac_t""no" 1>&6
9866fi
32832908 9867
4f14bcd8
GD
9868
9869else
9870 echo "$ac_t""no" 1>&6
9871fi
3a922bb4 9872
7b7a7637 9873
4f14bcd8
GD
9874 if test "x$PNG_LINK" = "x" ; then
9875 if test "$wxUSE_LIBPNG" = "sys" ; then
9876 { echo "configure: error: system png library not found! Use --with-libpng=builtin to use built-in version" 1>&2; exit 1; }
9877 else
a3df447d 9878 echo "configure: warning: system png library not found, will use built-in instead" 1>&2
4f14bcd8
GD
9879 wxUSE_LIBPNG=builtin
9880 fi
9881 else
9882 wxUSE_LIBPNG=yes
9883 fi
3a922bb4
RL
9884 fi
9885
4f14bcd8
GD
9886 if test "$wxUSE_LIBPNG" = "builtin" ; then
9887 PNG_INCLUDE="-I\${top_srcdir}/src/png"
3a922bb4
RL
9888 fi
9889
4f14bcd8 9890 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
3a922bb4
RL
9891fi
9892
32832908 9893
4f14bcd8
GD
9894JPEG_INCLUDE=
9895JPEG_LINK=
9896if test "$wxUSE_LIBJPEG" != "no" ; then
9897 cat >> confdefs.h <<\EOF
9898#define wxUSE_LIBJPEG 1
9899EOF
10f2d63a 9900
8168de4c 9901
4f14bcd8
GD
9902 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
9903 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
4b6b4dfc 9904echo "configure:9905: checking for jpeglib.h" >&5
4f14bcd8 9905 if eval "test \"`echo '$''{'ac_cv_header_jpeglib_h'+set}'`\" = set"; then
8168de4c
VZ
9906 echo $ac_n "(cached) $ac_c" 1>&6
9907else
4f14bcd8 9908 cat > conftest.$ac_ext <<EOF
4b6b4dfc 9909#line 9910 "configure"
4f14bcd8 9910#include "confdefs.h"
8168de4c 9911
4f14bcd8
GD
9912 #undef HAVE_STDLIB_H
9913 #include <stdio.h>
9914 #include <jpeglib.h>
9915
9916int main() {
9917
9918
9919; return 0; }
9920EOF
4b6b4dfc 9921if { (eval echo configure:9922: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4f14bcd8
GD
9922 rm -rf conftest*
9923 ac_cv_header_jpeglib_h=yes
6f72b082 9924else
4f14bcd8
GD
9925 echo "configure: failed program was:" >&5
9926 cat conftest.$ac_ext >&5
9927 rm -rf conftest*
9928 ac_cv_header_jpeglib_h=no
9929
9930fi
9931rm -f conftest*
9932
698dcdb6 9933fi
6f72b082 9934
4f14bcd8
GD
9935 echo "$ac_t""$ac_cv_header_jpeglib_h" 1>&6
9936
9937 if test "$ac_cv_header_jpeglib_h" = "yes"; then
9938 echo $ac_n "checking for jpeg_read_header in -ljpeg""... $ac_c" 1>&6
4b6b4dfc 9939echo "configure:9940: checking for jpeg_read_header in -ljpeg" >&5
4f14bcd8
GD
9940ac_lib_var=`echo jpeg'_'jpeg_read_header | sed 'y%./+-%__p_%'`
9941if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9942 echo $ac_n "(cached) $ac_c" 1>&6
6f72b082 9943else
4f14bcd8
GD
9944 ac_save_LIBS="$LIBS"
9945LIBS="-ljpeg $LIBS"
9946cat > conftest.$ac_ext <<EOF
4b6b4dfc 9947#line 9948 "configure"
4f14bcd8
GD
9948#include "confdefs.h"
9949/* Override any gcc2 internal prototype to avoid an error. */
9950/* We use char because int might match the return type of a gcc2
9951 builtin and then its argument prototype would still apply. */
9952char jpeg_read_header();
698dcdb6 9953
4f14bcd8
GD
9954int main() {
9955jpeg_read_header()
9956; return 0; }
9957EOF
4b6b4dfc 9958if { (eval echo configure:9959: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4f14bcd8
GD
9959 rm -rf conftest*
9960 eval "ac_cv_lib_$ac_lib_var=yes"
6f72b082 9961else
4f14bcd8
GD
9962 echo "configure: failed program was:" >&5
9963 cat conftest.$ac_ext >&5
9964 rm -rf conftest*
9965 eval "ac_cv_lib_$ac_lib_var=no"
698dcdb6 9966fi
4f14bcd8
GD
9967rm -f conftest*
9968LIBS="$ac_save_LIBS"
698dcdb6 9969
4f14bcd8
GD
9970fi
9971if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9972 echo "$ac_t""yes" 1>&6
3d63bc3a 9973 JPEG_LINK=" -ljpeg"
4f14bcd8
GD
9974else
9975 echo "$ac_t""no" 1>&6
9976fi
9977
9978 fi
9979
9980 if test "x$JPEG_LINK" = "x" ; then
9981 if test "$wxUSE_LIBJPEG" = "sys" ; then
9982 { echo "configure: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" 1>&2; exit 1; }
9983 else
a3df447d 9984 echo "configure: warning: system jpeg library not found, will use built-in instead" 1>&2
4f14bcd8
GD
9985 wxUSE_LIBJPEG=builtin
9986 fi
9987 else
9988 wxUSE_LIBJPEG=sys
9989 fi
9990 fi
9991
9992 if test "$wxUSE_LIBJPEG" = "builtin" ; then
9993 JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg"
9994 fi
9995fi
9996
9997
9998TIFF_INCLUDE=
9999TIFF_LINK=
10000if test "$wxUSE_LIBTIFF" != "no" ; then
10001 cat >> confdefs.h <<\EOF
10002#define wxUSE_LIBTIFF 1
10003EOF
10004
10005
10006 if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
10007 ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
10008echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
4b6b4dfc 10009echo "configure:10010: checking for tiffio.h" >&5
4f14bcd8
GD
10010if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10011 echo $ac_n "(cached) $ac_c" 1>&6
10012else
10013 cat > conftest.$ac_ext <<EOF
4b6b4dfc 10014#line 10015 "configure"
4f14bcd8
GD
10015#include "confdefs.h"
10016#include <tiffio.h>
10017EOF
10018ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4b6b4dfc 10019{ (eval echo configure:10020: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4f14bcd8
GD
10020ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10021if test -z "$ac_err"; then
10022 rm -rf conftest*
10023 eval "ac_cv_header_$ac_safe=yes"
10024else
10025 echo "$ac_err" >&5
10026 echo "configure: failed program was:" >&5
10027 cat conftest.$ac_ext >&5
10028 rm -rf conftest*
10029 eval "ac_cv_header_$ac_safe=no"
10030fi
10031rm -f conftest*
10032fi
10033if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10034 echo "$ac_t""yes" 1>&6
10035 echo $ac_n "checking for TIFFError in -ltiff""... $ac_c" 1>&6
4b6b4dfc 10036echo "configure:10037: checking for TIFFError in -ltiff" >&5
4f14bcd8
GD
10037ac_lib_var=`echo tiff'_'TIFFError | sed 'y%./+-%__p_%'`
10038if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10039 echo $ac_n "(cached) $ac_c" 1>&6
10040else
10041 ac_save_LIBS="$LIBS"
10042LIBS="-ltiff -lm $LIBS"
10043cat > conftest.$ac_ext <<EOF
4b6b4dfc 10044#line 10045 "configure"
4f14bcd8
GD
10045#include "confdefs.h"
10046/* Override any gcc2 internal prototype to avoid an error. */
10047/* We use char because int might match the return type of a gcc2
10048 builtin and then its argument prototype would still apply. */
10049char TIFFError();
10050
10051int main() {
10052TIFFError()
10053; return 0; }
10054EOF
4b6b4dfc 10055if { (eval echo configure:10056: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4f14bcd8
GD
10056 rm -rf conftest*
10057 eval "ac_cv_lib_$ac_lib_var=yes"
10058else
10059 echo "configure: failed program was:" >&5
10060 cat conftest.$ac_ext >&5
10061 rm -rf conftest*
10062 eval "ac_cv_lib_$ac_lib_var=no"
10063fi
10064rm -f conftest*
10065LIBS="$ac_save_LIBS"
10066
10067fi
10068if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10069 echo "$ac_t""yes" 1>&6
3d63bc3a 10070 TIFF_LINK=" -ltiff"
4f14bcd8
GD
10071else
10072 echo "$ac_t""no" 1>&6
10073fi
10074
10075
10076else
10077 echo "$ac_t""no" 1>&6
10078fi
10079
10080
10081 if test "x$TIFF_LINK" = "x" ; then
10082 if test "$wxUSE_LIBTIFF" = "sys" ; then
10083 { echo "configure: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" 1>&2; exit 1; }
10084 else
a3df447d 10085 echo "configure: warning: system tiff library not found, will use built-in instead" 1>&2
4f14bcd8
GD
10086 wxUSE_LIBTIFF=builtin
10087 fi
10088 else
10089 wxUSE_LIBTIFF=sys
10090 fi
10091 fi
10092
10093 if test "$wxUSE_LIBTIFF" = "builtin" ; then
10094 TIFF_INCLUDE="-I\${top_srcdir}/src/tiff"
10095 fi
10096fi
10097
10098
10099FREETYPE_INCLUDE=
10100FREETYPE_LINK=
10101if test "$wxUSE_FREETYPE" != "no" ; then
10102 cat >> confdefs.h <<\EOF
10103#define wxUSE_FREETYPE 1
10104EOF
10105
10106
10107 if test "$wxUSE_FREETYPE" = "sys" -o "$wxUSE_FREETYPE" = "yes" ; then
10108 ac_safe=`echo "freetype.h" | sed 'y%./+-%__p_%'`
10109echo $ac_n "checking for freetype.h""... $ac_c" 1>&6
4b6b4dfc 10110echo "configure:10111: checking for freetype.h" >&5
4f14bcd8
GD
10111if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10112 echo $ac_n "(cached) $ac_c" 1>&6
10113else
10114 cat > conftest.$ac_ext <<EOF
4b6b4dfc 10115#line 10116 "configure"
4f14bcd8
GD
10116#include "confdefs.h"
10117#include <freetype.h>
10118EOF
10119ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4b6b4dfc 10120{ (eval echo configure:10121: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4f14bcd8
GD
10121ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10122if test -z "$ac_err"; then
10123 rm -rf conftest*
10124 eval "ac_cv_header_$ac_safe=yes"
10125else
10126 echo "$ac_err" >&5
10127 echo "configure: failed program was:" >&5
10128 cat conftest.$ac_ext >&5
10129 rm -rf conftest*
10130 eval "ac_cv_header_$ac_safe=no"
10131fi
10132rm -f conftest*
10133fi
10134if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10135 echo "$ac_t""yes" 1>&6
10136 echo $ac_n "checking for FT_Render_Glyph in -lfreetype""... $ac_c" 1>&6
4b6b4dfc 10137echo "configure:10138: checking for FT_Render_Glyph in -lfreetype" >&5
4f14bcd8
GD
10138ac_lib_var=`echo freetype'_'FT_Render_Glyph | sed 'y%./+-%__p_%'`
10139if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10140 echo $ac_n "(cached) $ac_c" 1>&6
10141else
10142 ac_save_LIBS="$LIBS"
10143LIBS="-lfreetype -lm $LIBS"
10144cat > conftest.$ac_ext <<EOF
4b6b4dfc 10145#line 10146 "configure"
4f14bcd8
GD
10146#include "confdefs.h"
10147/* Override any gcc2 internal prototype to avoid an error. */
10148/* We use char because int might match the return type of a gcc2
10149 builtin and then its argument prototype would still apply. */
10150char FT_Render_Glyph();
10151
10152int main() {
10153FT_Render_Glyph()
10154; return 0; }
10155EOF
4b6b4dfc 10156if { (eval echo configure:10157: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4f14bcd8
GD
10157 rm -rf conftest*
10158 eval "ac_cv_lib_$ac_lib_var=yes"
10159else
10160 echo "configure: failed program was:" >&5
10161 cat conftest.$ac_ext >&5
10162 rm -rf conftest*
10163 eval "ac_cv_lib_$ac_lib_var=no"
10164fi
10165rm -f conftest*
10166LIBS="$ac_save_LIBS"
10167
10168fi
10169if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10170 echo "$ac_t""yes" 1>&6
3d63bc3a 10171 FREETYPE_LINK=" -lfreetype"
4f14bcd8
GD
10172else
10173 echo "$ac_t""no" 1>&6
10174fi
10175
10176
10177else
10178 echo "$ac_t""no" 1>&6
10179fi
10180
10181
10182 if test "x$FREETYPE_LINK" = "x" ; then
10183 if test "$wxUSE_FREETYPE" = "sys" ; then
10184 { echo "configure: error: system freetype library not found! Use --with-freetype=builtin to use built-in version" 1>&2; exit 1; }
10185 else
a3df447d 10186 echo "configure: warning: system freetype library not found, will use built-in instead" 1>&2
4f14bcd8
GD
10187 wxUSE_FREETYPE=builtin
10188 fi
10189 else
10190 wxUSE_FREETYPE=sys
10191 fi
10192 fi
10193
10194 if test "$wxUSE_FREETYPE" = "builtin" ; then
10195 FREETYPE_INCLUDE="-I\${top_srcdir}/src/freetype"
10196 fi
10197fi
10198
10199
10200AFMINSTALL=
10201
10202TOOLKIT=
10203TOOLKIT_INCLUDE=
10204WIDGET_SET=
10205
10206if test "$USE_WIN32" = 1 ; then
10207 for ac_hdr in w32api.h
10208do
10209ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10210echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4b6b4dfc 10211echo "configure:10212: checking for $ac_hdr" >&5
4f14bcd8
GD
10212if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10213 echo $ac_n "(cached) $ac_c" 1>&6
10214else
10215 cat > conftest.$ac_ext <<EOF
4b6b4dfc 10216#line 10217 "configure"
4f14bcd8
GD
10217#include "confdefs.h"
10218#include <$ac_hdr>
10219EOF
10220ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4b6b4dfc 10221{ (eval echo configure:10222: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4f14bcd8
GD
10222ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10223if test -z "$ac_err"; then
10224 rm -rf conftest*
10225 eval "ac_cv_header_$ac_safe=yes"
10226else
10227 echo "$ac_err" >&5
10228 echo "configure: failed program was:" >&5
10229 cat conftest.$ac_ext >&5
10230 rm -rf conftest*
10231 eval "ac_cv_header_$ac_safe=no"
10232fi
10233rm -f conftest*
10234fi
10235if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10236 echo "$ac_t""yes" 1>&6
10237 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10238 cat >> confdefs.h <<EOF
10239#define $ac_tr_hdr 1
10240EOF
10241
10242else
10243 echo "$ac_t""no" 1>&6
10244fi
10245done
10246
10247 ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'`
10248echo $ac_n "checking for windows.h""... $ac_c" 1>&6
4b6b4dfc 10249echo "configure:10250: checking for windows.h" >&5
4f14bcd8
GD
10250if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10251 echo $ac_n "(cached) $ac_c" 1>&6
10252else
10253 cat > conftest.$ac_ext <<EOF
4b6b4dfc 10254#line 10255 "configure"
4f14bcd8
GD
10255#include "confdefs.h"
10256#include <windows.h>
10257EOF
10258ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4b6b4dfc 10259{ (eval echo configure:10260: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4f14bcd8
GD
10260ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10261if test -z "$ac_err"; then
10262 rm -rf conftest*
10263 eval "ac_cv_header_$ac_safe=yes"
10264else
10265 echo "$ac_err" >&5
10266 echo "configure: failed program was:" >&5
10267 cat conftest.$ac_ext >&5
10268 rm -rf conftest*
10269 eval "ac_cv_header_$ac_safe=no"
10270fi
10271rm -f conftest*
10272fi
10273if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10274 echo "$ac_t""yes" 1>&6
10275 :
10276else
10277 echo "$ac_t""no" 1>&6
10278
10279 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
10280
10281fi
10282
10283
10284 echo $ac_n "checking if w32api has good enough MSIE support""... $ac_c" 1>&6
4b6b4dfc 10285echo "configure:10286: checking if w32api has good enough MSIE support" >&5
ea7682f0 10286if eval "test \"`echo '$''{'wx_cv_w32api_win32_ie'+set}'`\" = set"; then
4f14bcd8
GD
10287 echo $ac_n "(cached) $ac_c" 1>&6
10288else
10289
10290 cat > conftest.$ac_ext <<EOF
4b6b4dfc 10291#line 10292 "configure"
4f14bcd8
GD
10292#include "confdefs.h"
10293#include <w32api.h>
10294int main() {
10295
10296 #define wxCHECK_W32API_VERSION( major, minor ) \
10297 ( defined( __W32API_MAJOR_VERSION ) && defined( __W32API_MINOR_VERSION ) \
10298 && ( ( __W32API_MAJOR_VERSION > (major) ) \
10299 || ( __W32API_MAJOR_VERSION == (major) && __W32API_MINOR_VERSION >= (minor))))
10300
10301 #if !wxCHECK_W32API_VERSION(1,1)
10302 #error You need w32api 1.1 or newer
10303 #endif
10304
10305; return 0; }
10306EOF
4b6b4dfc 10307if { (eval echo configure:10308: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4f14bcd8
GD
10308 rm -rf conftest*
10309
ea7682f0 10310 wx_cv_w32api_win32_ie=yes
4f14bcd8
GD
10311
10312else
10313 echo "configure: failed program was:" >&5
10314 cat conftest.$ac_ext >&5
10315 rm -rf conftest*
10316
ea7682f0 10317 wx_cv_w32api_win32_ie=no
4f14bcd8
GD
10318
10319fi
10320rm -f conftest*
10321
10322fi
10323
ea7682f0
VS
10324echo "$ac_t""$wx_cv_w32api_win32_ie" 1>&6
10325 if test "$wx_cv_w32api_win32_ie" = "yes" ; then
10326 CPPFLAGS="$CPPFLAGS -D_WIN32_IE=0x400"
10327 fi
4f14bcd8
GD
10328
10329 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -ladvapi32 -lwsock32"
10330
77e13408
RL
10331 case "${host}" in
10332 *-*-cygwin* )
10333 LIBS="$LIBS -lkernel32 -luser32 -lgdi32 -lcomdlg32"
10334 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__"
10335 esac
4f14bcd8
GD
10336
10337 if test "$wxUSE_ODBC" = "yes" ; then
a72a4bfa 10338 LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
4f14bcd8
GD
10339 fi
10340
4f14bcd8
GD
10341 RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
10342 RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
10343fi
10344
10345if test "$wxUSE_GUI" = "yes"; then
10346 USE_GUI=1
10347
10348 GUI_TK_LIBRARY=
10349
10350 WXGTK12=
10351 WXGTK127=
10352 WXGTK20=
10353
77e13408 10354 if test "$wxUSE_MSW" = 1 ; then
4f14bcd8
GD
10355 TOOLKIT=MSW
10356 GUIDIST=MSW_DIST
77e13408
RL
10357
10358 case "${host}" in
10359 *-*-mingw32* )
3d63bc3a 10360 LDFLAGS="$LDFLAGS -Wl,--subsystem,windows -mwindows"
77e13408 10361 esac
4f14bcd8
GD
10362 fi
10363
10364 if test "$wxUSE_GTK" = 1; then
10365 echo $ac_n "checking for GTK+ version""... $ac_c" 1>&6
4b6b4dfc 10366echo "configure:10367: checking for GTK+ version" >&5
4f14bcd8
GD
10367
10368 gtk_version_cached=1
10369 if eval "test \"`echo '$''{'wx_cv_lib_gtk'+set}'`\" = set"; then
10370 echo $ac_n "(cached) $ac_c" 1>&6
10371else
10372
10373 gtk_version_cached=0
d48ad9bd 10374 echo "$ac_t""" 1>&6
4f14bcd8 10375
3f345b47
VZ
10376 GTK_MODULES=
10377 if test "$wxUSE_THREADS" = "yes"; then
10378 GTK_MODULES=gthread
10379 fi
10380
4f14bcd8
GD
10381 wx_cv_lib_gtk=
10382 if test "x$wxUSE_GTK2" = "xyes"; then
10383 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
10384if test "${with_gtk_prefix+set}" = set; then
10385 withval="$with_gtk_prefix"
10386 gtk_config_prefix="$withval"
10387else
10388 gtk_config_prefix=""
10389fi
10390
10391# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
10392if test "${with_gtk_exec_prefix+set}" = set; then
10393 withval="$with_gtk_exec_prefix"
10394 gtk_config_exec_prefix="$withval"
10395else
10396 gtk_config_exec_prefix=""
10397fi
10398
10399# Check whether --enable-gtktest or --disable-gtktest was given.
10400if test "${enable_gtktest+set}" = set; then
10401 enableval="$enable_gtktest"
10402 :
10403else
10404 enable_gtktest=yes
10405fi
10406
10407
3f345b47 10408 for module in . $GTK_MODULES
4f14bcd8 10409 do
6f72b082 10410 case "$module" in
8168de4c 10411 gthread)
6f72b082
OK
10412 gtk_config_args="$gtk_config_args gthread"
10413 ;;
10414 esac
10415 done
10416
10417 if test x$gtk_config_exec_prefix != x ; then
10418 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
10419 if test x${GTK_CONFIG_2_0+set} != xset ; then
10420 GTK_CONFIG_2_0=$gtk_config_exec_prefix/bin/gtk-config-2.0
10421 fi
10422 fi
10423 if test x$gtk_config_prefix != x ; then
10424 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
10425 if test x${GTK_CONFIG_2_0+set} != xset ; then
10426 GTK_CONFIG_2_0=$gtk_config_prefix/bin/gtk-config-2.0
10427 fi
10428 fi
10429
10430 # Extract the first word of "gtk-config-2.0", so it can be a program name with args.
10431set dummy gtk-config-2.0; ac_word=$2
698dcdb6 10432echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4b6b4dfc 10433echo "configure:10434: checking for $ac_word" >&5
698dcdb6
VZ
10434if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG_2_0'+set}'`\" = set"; then
10435 echo $ac_n "(cached) $ac_c" 1>&6
6f72b082 10436else
698dcdb6
VZ
10437 case "$GTK_CONFIG_2_0" in
10438 /*)
6f72b082
OK
10439 ac_cv_path_GTK_CONFIG_2_0="$GTK_CONFIG_2_0" # Let the user override the test with a path.
10440 ;;
698dcdb6
VZ
10441 ?:/*)
10442 ac_cv_path_GTK_CONFIG_2_0="$GTK_CONFIG_2_0" # Let the user override the test with a dos path.
10443 ;;
6f72b082 10444 *)
698dcdb6
VZ
10445 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
10446 ac_dummy="$PATH"
10447 for ac_dir in $ac_dummy; do
10448 test -z "$ac_dir" && ac_dir=.
10449 if test -f $ac_dir/$ac_word; then
10450 ac_cv_path_GTK_CONFIG_2_0="$ac_dir/$ac_word"
10451 break
10452 fi
10453 done
10454 IFS="$ac_save_ifs"
6f72b082
OK
10455 test -z "$ac_cv_path_GTK_CONFIG_2_0" && ac_cv_path_GTK_CONFIG_2_0="no"
10456 ;;
10457esac
10458fi
698dcdb6 10459GTK_CONFIG_2_0="$ac_cv_path_GTK_CONFIG_2_0"
6f72b082 10460if test -n "$GTK_CONFIG_2_0"; then
698dcdb6 10461 echo "$ac_t""$GTK_CONFIG_2_0" 1>&6
6f72b082 10462else
698dcdb6 10463 echo "$ac_t""no" 1>&6
6f72b082
OK
10464fi
10465
10466 min_gtk_version=1.3.1
698dcdb6 10467 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
4b6b4dfc 10468echo "configure:10469: checking for GTK - version >= $min_gtk_version" >&5
6f72b082
OK
10469 no_gtk=""
10470 if test "$GTK_CONFIG_2_0" = "no" ; then
10471 no_gtk=yes
10472 else
10473 GTK_CFLAGS=`$GTK_CONFIG_2_0 $gtk_config_args --cflags`
10474 GTK_LIBS=`$GTK_CONFIG_2_0 $gtk_config_args --libs`
10475 gtk_config_major_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \
10476 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
10477 gtk_config_minor_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \
10478 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
10479 gtk_config_micro_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \
10480 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
10481 if test "x$enable_gtktest" = "xyes" ; then
10482 ac_save_CFLAGS="$CFLAGS"
10483 ac_save_LIBS="$LIBS"
10484 CFLAGS="$CFLAGS $GTK_CFLAGS"
10485 LIBS="$GTK_LIBS $LIBS"
10486 rm -f conf.gtktest
10487 if test "$cross_compiling" = yes; then
10488 echo $ac_n "cross compiling; assumed OK... $ac_c"
10489else
698dcdb6 10490 cat > conftest.$ac_ext <<EOF
4b6b4dfc 10491#line 10492 "configure"
6f72b082
OK
10492#include "confdefs.h"
10493
10494#include <gtk/gtk.h>
10495#include <stdio.h>
10496#include <stdlib.h>
10497
8168de4c 10498int
6f72b082
OK
10499main ()
10500{
10501 int major, minor, micro;
10502 char *tmp_version;
10503
10504 system ("touch conf.gtktest");
10505
10506 /* HP/UX 9 (%@#!) writes to sscanf strings */
10507 tmp_version = g_strdup("$min_gtk_version");
10508 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
10509 printf("%s, bad version string\n", "$min_gtk_version");
10510 exit(1);
10511 }
10512
10513 if ((gtk_major_version != $gtk_config_major_version) ||
10514 (gtk_minor_version != $gtk_config_minor_version) ||
10515 (gtk_micro_version != $gtk_config_micro_version))
10516 {
8168de4c 10517 printf("\n*** 'gtk-config-2.0 --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
6f72b082
OK
10518 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
10519 gtk_major_version, gtk_minor_version, gtk_micro_version);
10520 printf ("*** was found! If gtk-config-2.0 was correct, then it is best\n");
10521 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
10522 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
10523 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
10524 printf("*** required on your system.\n");
10525 printf("*** If gtk-config-2.0 was wrong, set the environment variable GTK_CONFIG_2_0\n");
10526 printf("*** to point to the correct copy of gtk-config-2.0, and remove the file config.cache\n");
10527 printf("*** before re-running configure\n");
8168de4c 10528 }
6f72b082
OK
10529#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
10530 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
8168de4c 10531 (gtk_minor_version != GTK_MINOR_VERSION) ||
6f72b082
OK
10532 (gtk_micro_version != GTK_MICRO_VERSION))
10533 {
10534 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
8168de4c 10535 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
6f72b082 10536 printf("*** library (version %d.%d.%d)\n",
8168de4c 10537 gtk_major_version, gtk_minor_version, gtk_micro_version);
6f72b082
OK
10538 }
10539#endif /* defined (GTK_MAJOR_VERSION) ... */
10540 else
10541 {
10542 if ((gtk_major_version > major) ||
10543 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
10544 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
10545 {
10546 return 0;
10547 }
10548 else
10549 {
10550 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
10551 gtk_major_version, gtk_minor_version, gtk_micro_version);
10552 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
8168de4c 10553 major, minor, micro);
6f72b082
OK
10554 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
10555 printf("***\n");
10556 printf("*** If you have already installed a sufficiently new version, this error\n");
10557 printf("*** probably means that the wrong copy of the gtk-config-2.0 shell script is\n");
10558 printf("*** being found. The easiest way to fix this is to remove the old version\n");
10559 printf("*** of GTK+, but you can also set the GTK_CONFIG_2_0 environment to point to the\n");
10560 printf("*** correct copy of gtk-config-2.0. (In this case, you will have to\n");
10561 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
10562 printf("*** so that the correct libraries are found at run-time))\n");
10563 }
10564 }
10565 return 1;
10566}
10567
698dcdb6 10568EOF
4b6b4dfc 10569if { (eval echo configure:10570: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6 10570then
6f72b082
OK
10571 :
10572else
698dcdb6
VZ
10573 echo "configure: failed program was:" >&5
10574 cat conftest.$ac_ext >&5
10575 rm -fr conftest*
10576 no_gtk=yes
6f72b082 10577fi
698dcdb6 10578rm -fr conftest*
6f72b082 10579fi
698dcdb6 10580
6f72b082
OK
10581 CFLAGS="$ac_save_CFLAGS"
10582 LIBS="$ac_save_LIBS"
10583 fi
10584 fi
10585 if test "x$no_gtk" = x ; then
698dcdb6 10586 echo "$ac_t""yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" 1>&6
8168de4c 10587 wx_cv_lib_gtk=2.0
6f72b082 10588 else
698dcdb6 10589 echo "$ac_t""no" 1>&6
6f72b082
OK
10590 if test "$GTK_CONFIG_2_0" = "no" ; then
10591 echo "*** The gtk-config-2.0 script installed by GTK could not be found"
10592 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
10593 echo "*** your path, or set the GTK_CONFIG_2_0 environment variable to the"
10594 echo "*** full path to gtk-config-2.0."
10595 else
10596 if test -f conf.gtktest ; then
10597 :
10598 else
10599 echo "*** Could not run GTK test program, checking why..."
10600 CFLAGS="$CFLAGS $GTK_CFLAGS"
10601 LIBS="$LIBS $GTK_LIBS"
698dcdb6 10602 cat > conftest.$ac_ext <<EOF
4b6b4dfc 10603#line 10604 "configure"
6f72b082
OK
10604#include "confdefs.h"
10605
10606#include <gtk/gtk.h>
10607#include <stdio.h>
10608
698dcdb6
VZ
10609int main() {
10610 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
10611; return 0; }
10612EOF
4b6b4dfc 10613if { (eval echo configure:10614: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 10614 rm -rf conftest*
6f72b082
OK
10615 echo "*** The test program compiled, but did not run. This usually means"
10616 echo "*** that the run-time linker is not finding GTK or finding the wrong"
10617 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
10618 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
10619 echo "*** to the installed location Also, make sure you have run ldconfig if that"
10620 echo "*** is required on your system"
8168de4c 10621 echo "***"
6f72b082
OK
10622 echo "*** If you have an old version installed, it is best to remove it, although"
10623 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
10624 echo "***"
10625 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
10626 echo "*** came with the system with the command"
10627 echo "***"
698dcdb6 10628 echo "*** rpm --erase --nodeps gtk gtk-devel"
6f72b082 10629else
698dcdb6
VZ
10630 echo "configure: failed program was:" >&5
10631 cat conftest.$ac_ext >&5
10632 rm -rf conftest*
10633 echo "*** The test program failed to compile or link. See the file config.log for the"
6f72b082
OK
10634 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
10635 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
698dcdb6 10636 echo "*** may want to edit the gtk-config-2.0 script: $GTK_CONFIG_2_0"
6f72b082 10637fi
698dcdb6 10638rm -f conftest*
6f72b082
OK
10639 CFLAGS="$ac_save_CFLAGS"
10640 LIBS="$ac_save_LIBS"
10641 fi
10642 fi
10643 GTK_CFLAGS=""
10644 GTK_LIBS=""
3f345b47 10645 :
8168de4c
VZ
10646 fi
10647
10648
10649 rm -f conf.gtktest
10650
10651 fi
10652
10653 if test -z "$wx_cv_lib_gtk"; then
3f345b47
VZ
10654 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
10655if test "${with_gtk_prefix+set}" = set; then
10656 withval="$with_gtk_prefix"
10657 gtk_config_prefix="$withval"
10658else
10659 gtk_config_prefix=""
10660fi
10661
10662# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
10663if test "${with_gtk_exec_prefix+set}" = set; then
10664 withval="$with_gtk_exec_prefix"
10665 gtk_config_exec_prefix="$withval"
10666else
10667 gtk_config_exec_prefix=""
10668fi
10669
10670# Check whether --enable-gtktest or --disable-gtktest was given.
10671if test "${enable_gtktest+set}" = set; then
10672 enableval="$enable_gtktest"
10673 :
10674else
10675 enable_gtktest=yes
10676fi
10677
10678
10679 for module in . $GTK_MODULES
10680 do
10681 case "$module" in
10682 gthread)
10683 gtk_config_args="$gtk_config_args gthread"
10684 ;;
10685 esac
10686 done
10687
10f2d63a
VZ
10688 if test x$gtk_config_exec_prefix != x ; then
10689 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
10690 if test x${GTK_CONFIG+set} != xset ; then
10691 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
10692 fi
10693 fi
10694 if test x$gtk_config_prefix != x ; then
10695 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
10696 if test x${GTK_CONFIG+set} != xset ; then
10697 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
10698 fi
10699 fi
10700
10701 # Extract the first word of "gtk-config", so it can be a program name with args.
10702set dummy gtk-config; ac_word=$2
698dcdb6 10703echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4b6b4dfc 10704echo "configure:10705: checking for $ac_word" >&5
698dcdb6
VZ
10705if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
10706 echo $ac_n "(cached) $ac_c" 1>&6
f6bcfd97 10707else
698dcdb6
VZ
10708 case "$GTK_CONFIG" in
10709 /*)
f6bcfd97
BP
10710 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
10711 ;;
698dcdb6
VZ
10712 ?:/*)
10713 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
10714 ;;
f6bcfd97 10715 *)
698dcdb6
VZ
10716 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
10717 ac_dummy="$PATH"
10718 for ac_dir in $ac_dummy; do
10719 test -z "$ac_dir" && ac_dir=.
10720 if test -f $ac_dir/$ac_word; then
10721 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
10722 break
10723 fi
10724 done
10725 IFS="$ac_save_ifs"
f6bcfd97
BP
10726 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
10727 ;;
10728esac
10729fi
698dcdb6 10730GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
f6bcfd97 10731if test -n "$GTK_CONFIG"; then
698dcdb6 10732 echo "$ac_t""$GTK_CONFIG" 1>&6
f6bcfd97 10733else
698dcdb6 10734 echo "$ac_t""no" 1>&6
f6bcfd97
BP
10735fi
10736
10737 min_gtk_version=1.2.7
698dcdb6 10738 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
4b6b4dfc 10739echo "configure:10740: checking for GTK - version >= $min_gtk_version" >&5
f6bcfd97 10740 no_gtk=""
3f345b47
VZ
10741 if test "$GTK_CONFIG" = "no" ; then
10742 no_gtk=yes
10743 else
10744 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
10745 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
10746 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
10747 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
10748 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
10749 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
10750 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
10751 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
10752 if test "x$enable_gtktest" = "xyes" ; then
10753 ac_save_CFLAGS="$CFLAGS"
10754 ac_save_LIBS="$LIBS"
10755 CFLAGS="$CFLAGS $GTK_CFLAGS"
10756 LIBS="$GTK_LIBS $LIBS"
10757 rm -f conf.gtktest
10758 if test "$cross_compiling" = yes; then
f6bcfd97
BP
10759 echo $ac_n "cross compiling; assumed OK... $ac_c"
10760else
698dcdb6 10761 cat > conftest.$ac_ext <<EOF
4b6b4dfc 10762#line 10763 "configure"
f6bcfd97
BP
10763#include "confdefs.h"
10764
10765#include <gtk/gtk.h>
f6bcfd97
BP
10766#include <stdio.h>
10767#include <stdlib.h>
10768
3f345b47 10769int
f6bcfd97
BP
10770main ()
10771{
10772 int major, minor, micro;
3f345b47 10773 char *tmp_version;
f6bcfd97 10774
3f345b47 10775 system ("touch conf.gtktest");
f6bcfd97 10776
3f345b47
VZ
10777 /* HP/UX 9 (%@#!) writes to sscanf strings */
10778 tmp_version = g_strdup("$min_gtk_version");
10779 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
10780 printf("%s, bad version string\n", "$min_gtk_version");
f6bcfd97
BP
10781 exit(1);
10782 }
10783
3f345b47
VZ
10784 if ((gtk_major_version != $gtk_config_major_version) ||
10785 (gtk_minor_version != $gtk_config_minor_version) ||
10786 (gtk_micro_version != $gtk_config_micro_version))
10787 {
10788 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
10789 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
10790 gtk_major_version, gtk_minor_version, gtk_micro_version);
10791 printf ("*** was found! If gtk-config was correct, then it is best\n");
10792 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
10793 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
10794 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
10795 printf("*** required on your system.\n");
10796 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
10797 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
10798 printf("*** before re-running configure\n");
10799 }
10800#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
10801 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
10802 (gtk_minor_version != GTK_MINOR_VERSION) ||
10803 (gtk_micro_version != GTK_MICRO_VERSION))
10804 {
10805 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
10806 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
10807 printf("*** library (version %d.%d.%d)\n",
10808 gtk_major_version, gtk_minor_version, gtk_micro_version);
10809 }
10810#endif /* defined (GTK_MAJOR_VERSION) ... */
10811 else
10812 {
10813 if ((gtk_major_version > major) ||
10814 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
10815 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
10816 {
10817 return 0;
10818 }
10819 else
10820 {
10821 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
10822 gtk_major_version, gtk_minor_version, gtk_micro_version);
10823 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
10824 major, minor, micro);
10825 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
10826 printf("***\n");
10827 printf("*** If you have already installed a sufficiently new version, this error\n");
10828 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
10829 printf("*** being found. The easiest way to fix this is to remove the old version\n");
10830 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
10831 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
10832 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
10833 printf("*** so that the correct libraries are found at run-time))\n");
10834 }
10835 }
10836 return 1;
f6bcfd97
BP
10837}
10838
698dcdb6 10839EOF
4b6b4dfc 10840if { (eval echo configure:10841: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6 10841then
f6bcfd97
BP
10842 :
10843else
698dcdb6
VZ
10844 echo "configure: failed program was:" >&5
10845 cat conftest.$ac_ext >&5
10846 rm -fr conftest*
10847 no_gtk=yes
f6bcfd97 10848fi
698dcdb6 10849rm -fr conftest*
f6bcfd97 10850fi
698dcdb6 10851
3f345b47
VZ
10852 CFLAGS="$ac_save_CFLAGS"
10853 LIBS="$ac_save_LIBS"
10854 fi
f6bcfd97
BP
10855 fi
10856 if test "x$no_gtk" = x ; then
698dcdb6 10857 echo "$ac_t""yes" 1>&6
3f345b47 10858 wx_cv_lib_gtk=1.2.7
f6bcfd97 10859 else
698dcdb6 10860 echo "$ac_t""no" 1>&6
3f345b47
VZ
10861 if test "$GTK_CONFIG" = "no" ; then
10862 echo "*** The gtk-config script installed by GTK could not be found"
10863 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
10864 echo "*** your path, or set the GTK_CONFIG environment variable to the"
10865 echo "*** full path to gtk-config."
10866 else
10867 if test -f conf.gtktest ; then
10868 :
10869 else
10870 echo "*** Could not run GTK test program, checking why..."
10871 CFLAGS="$CFLAGS $GTK_CFLAGS"
10872 LIBS="$LIBS $GTK_LIBS"
10873 cat > conftest.$ac_ext <<EOF
4b6b4dfc 10874#line 10875 "configure"
3f345b47
VZ
10875#include "confdefs.h"
10876
10877#include <gtk/gtk.h>
10878#include <stdio.h>
10879
10880int main() {
10881 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
10882; return 0; }
10883EOF
4b6b4dfc 10884if { (eval echo configure:10885: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3f345b47
VZ
10885 rm -rf conftest*
10886 echo "*** The test program compiled, but did not run. This usually means"
10887 echo "*** that the run-time linker is not finding GTK or finding the wrong"
10888 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
10889 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
10890 echo "*** to the installed location Also, make sure you have run ldconfig if that"
10891 echo "*** is required on your system"
10892 echo "***"
10893 echo "*** If you have an old version installed, it is best to remove it, although"
10894 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
10895 echo "***"
10896 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
10897 echo "*** came with the system with the command"
10898 echo "***"
10899 echo "*** rpm --erase --nodeps gtk gtk-devel"
10900else
10901 echo "configure: failed program was:" >&5
10902 cat conftest.$ac_ext >&5
10903 rm -rf conftest*
10904 echo "*** The test program failed to compile or link. See the file config.log for the"
10905 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
10906 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
10907 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
10908fi
10909rm -f conftest*
10910 CFLAGS="$ac_save_CFLAGS"
10911 LIBS="$ac_save_LIBS"
10912 fi
10913 fi
f6bcfd97
BP
10914 GTK_CFLAGS=""
10915 GTK_LIBS=""
10916 :
10917 fi
698dcdb6
VZ
10918
10919
3f345b47 10920 rm -f conf.gtktest
f6bcfd97 10921
8168de4c
VZ
10922 fi
10923
10924 if test -z "$wx_cv_lib_gtk"; then
3f345b47
VZ
10925 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
10926if test "${with_gtk_prefix+set}" = set; then
10927 withval="$with_gtk_prefix"
10928 gtk_config_prefix="$withval"
10929else
10930 gtk_config_prefix=""
10931fi
10932
10933# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
10934if test "${with_gtk_exec_prefix+set}" = set; then
10935 withval="$with_gtk_exec_prefix"
10936 gtk_config_exec_prefix="$withval"
10937else
10938 gtk_config_exec_prefix=""
10939fi
10940
10941# Check whether --enable-gtktest or --disable-gtktest was given.
10942if test "${enable_gtktest+set}" = set; then
10943 enableval="$enable_gtktest"
10944 :
10945else
10946 enable_gtktest=yes
10947fi
10948
10949
10950 for module in . $GTK_MODULES
10951 do
10952 case "$module" in
10953 gthread)
10954 gtk_config_args="$gtk_config_args gthread"
10955 ;;
10956 esac
10957 done
10958
f6bcfd97
BP
10959 if test x$gtk_config_exec_prefix != x ; then
10960 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
10961 if test x${GTK_CONFIG+set} != xset ; then
10962 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
10963 fi
10964 fi
10965 if test x$gtk_config_prefix != x ; then
10966 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
10967 if test x${GTK_CONFIG+set} != xset ; then
10968 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
10969 fi
10970 fi
10971
10972 # Extract the first word of "gtk-config", so it can be a program name with args.
10973set dummy gtk-config; ac_word=$2
698dcdb6 10974echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4b6b4dfc 10975echo "configure:10976: checking for $ac_word" >&5
698dcdb6
VZ
10976if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
10977 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 10978else
698dcdb6
VZ
10979 case "$GTK_CONFIG" in
10980 /*)
10f2d63a
VZ
10981 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
10982 ;;
698dcdb6
VZ
10983 ?:/*)
10984 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
10985 ;;
10f2d63a 10986 *)
698dcdb6
VZ
10987 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
10988 ac_dummy="$PATH"
10989 for ac_dir in $ac_dummy; do
10990 test -z "$ac_dir" && ac_dir=.
10991 if test -f $ac_dir/$ac_word; then
10992 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
10993 break
10994 fi
10995 done
10996 IFS="$ac_save_ifs"
10f2d63a
VZ
10997 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
10998 ;;
10999esac
11000fi
698dcdb6 11001GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
10f2d63a 11002if test -n "$GTK_CONFIG"; then
698dcdb6 11003 echo "$ac_t""$GTK_CONFIG" 1>&6
10f2d63a 11004else
698dcdb6 11005 echo "$ac_t""no" 1>&6
10f2d63a
VZ
11006fi
11007
04165bec 11008 min_gtk_version=1.2.3
698dcdb6 11009 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
4b6b4dfc 11010echo "configure:11011: checking for GTK - version >= $min_gtk_version" >&5
10f2d63a 11011 no_gtk=""
3f345b47
VZ
11012 if test "$GTK_CONFIG" = "no" ; then
11013 no_gtk=yes
11014 else
11015 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
11016 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
11017 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
11018 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
11019 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
11020 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
11021 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
11022 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
11023 if test "x$enable_gtktest" = "xyes" ; then
11024 ac_save_CFLAGS="$CFLAGS"
11025 ac_save_LIBS="$LIBS"
11026 CFLAGS="$CFLAGS $GTK_CFLAGS"
11027 LIBS="$GTK_LIBS $LIBS"
11028 rm -f conf.gtktest
11029 if test "$cross_compiling" = yes; then
10f2d63a
VZ
11030 echo $ac_n "cross compiling; assumed OK... $ac_c"
11031else
698dcdb6 11032 cat > conftest.$ac_ext <<EOF
4b6b4dfc 11033#line 11034 "configure"
10f2d63a
VZ
11034#include "confdefs.h"
11035
11036#include <gtk/gtk.h>
11037#include <stdio.h>
32832908 11038#include <stdlib.h>
10f2d63a 11039
3f345b47 11040int
10f2d63a
VZ
11041main ()
11042{
11043 int major, minor, micro;
3f345b47 11044 char *tmp_version;
10f2d63a 11045
3f345b47 11046 system ("touch conf.gtktest");
10f2d63a 11047
3f345b47
VZ
11048 /* HP/UX 9 (%@#!) writes to sscanf strings */
11049 tmp_version = g_strdup("$min_gtk_version");
11050 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
11051 printf("%s, bad version string\n", "$min_gtk_version");
f49f2b0c
RR
11052 exit(1);
11053 }
11054
3f345b47
VZ
11055 if ((gtk_major_version != $gtk_config_major_version) ||
11056 (gtk_minor_version != $gtk_config_minor_version) ||
11057 (gtk_micro_version != $gtk_config_micro_version))
11058 {
11059 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
11060 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
11061 gtk_major_version, gtk_minor_version, gtk_micro_version);
11062 printf ("*** was found! If gtk-config was correct, then it is best\n");
11063 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
11064 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
11065 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
11066 printf("*** required on your system.\n");
11067 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
11068 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
11069 printf("*** before re-running configure\n");
11070 }
11071#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
11072 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
11073 (gtk_minor_version != GTK_MINOR_VERSION) ||
11074 (gtk_micro_version != GTK_MICRO_VERSION))
11075 {
11076 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
11077 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
11078 printf("*** library (version %d.%d.%d)\n",
11079 gtk_major_version, gtk_minor_version, gtk_micro_version);
11080 }
11081#endif /* defined (GTK_MAJOR_VERSION) ... */
11082 else
11083 {
11084 if ((gtk_major_version > major) ||
11085 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
11086 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
11087 {
11088 return 0;
11089 }
11090 else
11091 {
11092 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
11093 gtk_major_version, gtk_minor_version, gtk_micro_version);
11094 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
11095 major, minor, micro);
11096 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
11097 printf("***\n");
11098 printf("*** If you have already installed a sufficiently new version, this error\n");
11099 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
11100 printf("*** being found. The easiest way to fix this is to remove the old version\n");
11101 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
11102 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
11103 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
11104 printf("*** so that the correct libraries are found at run-time))\n");
11105 }
11106 }
11107 return 1;
10f2d63a
VZ
11108}
11109
698dcdb6 11110EOF
4b6b4dfc 11111if { (eval echo configure:11112: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6 11112then
10f2d63a
VZ
11113 :
11114else
698dcdb6
VZ
11115 echo "configure: failed program was:" >&5
11116 cat conftest.$ac_ext >&5
11117 rm -fr conftest*
11118 no_gtk=yes
10f2d63a 11119fi
698dcdb6 11120rm -fr conftest*
10f2d63a 11121fi
698dcdb6 11122
3f345b47
VZ
11123 CFLAGS="$ac_save_CFLAGS"
11124 LIBS="$ac_save_LIBS"
11125 fi
10f2d63a
VZ
11126 fi
11127 if test "x$no_gtk" = x ; then
698dcdb6 11128 echo "$ac_t""yes" 1>&6
3f345b47 11129 wx_cv_lib_gtk=1.2.3
10f2d63a 11130 else
698dcdb6 11131 echo "$ac_t""no" 1>&6
3f345b47
VZ
11132 if test "$GTK_CONFIG" = "no" ; then
11133 echo "*** The gtk-config script installed by GTK could not be found"
11134 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
11135 echo "*** your path, or set the GTK_CONFIG environment variable to the"
11136 echo "*** full path to gtk-config."
11137 else
11138 if test -f conf.gtktest ; then
11139 :
11140 else
11141 echo "*** Could not run GTK test program, checking why..."
11142 CFLAGS="$CFLAGS $GTK_CFLAGS"
11143 LIBS="$LIBS $GTK_LIBS"
11144 cat > conftest.$ac_ext <<EOF
4b6b4dfc 11145#line 11146 "configure"
3f345b47
VZ
11146#include "confdefs.h"
11147
11148#include <gtk/gtk.h>
11149#include <stdio.h>
11150
11151int main() {
11152 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
11153; return 0; }
11154EOF
4b6b4dfc 11155if { (eval echo configure:11156: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3f345b47
VZ
11156 rm -rf conftest*
11157 echo "*** The test program compiled, but did not run. This usually means"
11158 echo "*** that the run-time linker is not finding GTK or finding the wrong"
11159 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
11160 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
11161 echo "*** to the installed location Also, make sure you have run ldconfig if that"
11162 echo "*** is required on your system"
11163 echo "***"
11164 echo "*** If you have an old version installed, it is best to remove it, although"
11165 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
11166 echo "***"
11167 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
11168 echo "*** came with the system with the command"
11169 echo "***"
11170 echo "*** rpm --erase --nodeps gtk gtk-devel"
11171else
11172 echo "configure: failed program was:" >&5
11173 cat conftest.$ac_ext >&5
11174 rm -rf conftest*
11175 echo "*** The test program failed to compile or link. See the file config.log for the"
11176 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
11177 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
11178 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
11179fi
11180rm -f conftest*
11181 CFLAGS="$ac_save_CFLAGS"
11182 LIBS="$ac_save_LIBS"
11183 fi
11184 fi
10f2d63a
VZ
11185 GTK_CFLAGS=""
11186 GTK_LIBS=""
7e99ad86 11187 :
10f2d63a 11188 fi
698dcdb6
VZ
11189
11190
3f345b47 11191 rm -f conf.gtktest
10f2d63a 11192
8168de4c
VZ
11193 fi
11194
11195 if test -z "$wx_cv_lib_gtk"; then
11196 wx_cv_lib_gtk=none
138be253
VZ
11197 else
11198 wx_cv_cflags_gtk=$GTK_CFLAGS
11199 wx_cv_libs_gtk=$GTK_LIBS
8168de4c
VZ
11200 fi
11201
1e6feb95 11202
8168de4c 11203fi
703e0a69 11204
698dcdb6 11205
8168de4c
VZ
11206 if test "$gtk_version_cached" = 1; then
11207 echo "$ac_t""$wx_cv_lib_gtk" 1>&6
1e6feb95 11208 fi
698dcdb6 11209
8168de4c
VZ
11210 case "$wx_cv_lib_gtk" in
11211 2.0) WXGTK20=1
11212 ;;
11213 1.2.7) WXGTK127=1
d1a8d972 11214 WXGTK12=1
8168de4c
VZ
11215 ;;
11216 1.2.3) WXGTK12=1
11217 ;;
11218 *) { echo "configure: error:
11219Please check that gtk-config is in path, the directory
11220where GTK+ libraries are installed (returned by
11221'gtk-config --libs' command) is in LD_LIBRARY_PATH or
11222equivalent variable and GTK+ is version 1.2.3 or above.
11223 " 1>&2; exit 1; }
11224 ;;
11225 esac
2224580a 11226
138be253 11227 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
11dfaa5f 11228 GUI_TK_LIBRARY="$wx_cv_libs_gtk"
698dcdb6 11229
1e6feb95
VZ
11230 AFMINSTALL=afminstall
11231 TOOLKIT=GTK
11232 GUIDIST=GTK_DIST
7ec2881a 11233
1e6feb95 11234 echo $ac_n "checking for gdk_im_open in -lgdk""... $ac_c" 1>&6
4b6b4dfc 11235echo "configure:11236: checking for gdk_im_open in -lgdk" >&5
698dcdb6
VZ
11236ac_lib_var=`echo gdk'_'gdk_im_open | sed 'y%./+-%__p_%'`
11237if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11238 echo $ac_n "(cached) $ac_c" 1>&6
7ec2881a 11239else
698dcdb6 11240 ac_save_LIBS="$LIBS"
7ec2881a 11241LIBS="-lgdk $LIBS"
698dcdb6 11242cat > conftest.$ac_ext <<EOF
4b6b4dfc 11243#line 11244 "configure"
7ec2881a
RR
11244#include "confdefs.h"
11245/* Override any gcc2 internal prototype to avoid an error. */
11246/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
11247 builtin and then its argument prototype would still apply. */
11248char gdk_im_open();
11249
11250int main() {
11251gdk_im_open()
11252; return 0; }
11253EOF
4b6b4dfc 11254if { (eval echo configure:11255: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
11255 rm -rf conftest*
11256 eval "ac_cv_lib_$ac_lib_var=yes"
11257else
11258 echo "configure: failed program was:" >&5
11259 cat conftest.$ac_ext >&5
11260 rm -rf conftest*
11261 eval "ac_cv_lib_$ac_lib_var=no"
11262fi
11263rm -f conftest*
11264LIBS="$ac_save_LIBS"
11265
11266fi
11267if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11268 echo "$ac_t""yes" 1>&6
11269 cat >> confdefs.h <<\EOF
7ec2881a
RR
11270#define HAVE_XIM 1
11271EOF
11272
698dcdb6
VZ
11273else
11274 echo "$ac_t""no" 1>&6
7ec2881a
RR
11275fi
11276
1e6feb95 11277 fi
10f2d63a 11278
1e6feb95 11279 if test "$wxUSE_MGL" = 1; then
1e6feb95 11280 echo $ac_n "checking for SciTech MGL library""... $ac_c" 1>&6
4b6b4dfc 11281echo "configure:11282: checking for SciTech MGL library" >&5
1e6feb95
VZ
11282 if test "x$MGL_ROOT" = x ; then
11283 echo "$ac_t""not found" 1>&6
11284 { echo "configure: error: Cannot find MGL library. Make sure MGL_ROOT is set." 1>&2; exit 1; }
11285 else
11286 echo "$ac_t""$MGL_ROOT" 1>&6
11287 fi
11288
f9bc1684
VS
11289 case "${host}" in
11290 *-*-linux* )
11291 mgl_os=linux/gcc/glibc
11292 ;;
11293 *-pc-msdosdjgpp )
11294 mgl_os=dos32/dj2
11295 ;;
11296 *)
11297 { echo "configure: error: This system type ${host} is not yet supported by wxMGL." 1>&2; exit 1; }
11298 esac
11299
3a922bb4 11300 mgl_lib_type=""
1e6feb95
VZ
11301
11302 if test "$wxUSE_DEBUG_FLAG" = yes ; then
223e7fbf
VS
11303 if test -f $MGL_ROOT/lib/debug/$mgl_os/libmgl.a -o \
11304 -f $MGL_ROOT/lib/debug/$mgl_os/libmgl.so; then
3a922bb4 11305 mgl_lib_type=debug
1e6feb95
VZ
11306 fi
11307 fi
3a922bb4 11308 if test "x$mgl_lib_type" = x ; then
223e7fbf
VS
11309 if test -f $MGL_ROOT/lib/release/$mgl_os/libmgl.a -o \
11310 -f $MGL_ROOT/lib/release/$mgl_os/libmgl.so; then
3a922bb4 11311 mgl_lib_type=release
1e6feb95
VZ
11312 else
11313 { echo "configure: error: Cannot find MGL libraries, make sure they are compiled." 1>&2; exit 1; }
11314 fi
11315 fi
11316
11317 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
3a922bb4 11318 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
1e6feb95
VZ
11319
11320 AFMINSTALL=afminstall
11321 TOOLKIT=MGL
11322 GUIDIST=MGL_DIST
11323 fi
11324
1725144d
RR
11325 if test "$wxUSE_MICROWIN" = 1; then
11326 echo $ac_n "checking for MicroWindows""... $ac_c" 1>&6
4b6b4dfc 11327echo "configure:11328: checking for MicroWindows" >&5
1725144d
RR
11328 if test "x$MICROWINDOWS" = x ; then
11329 echo "$ac_t""not found" 1>&6
11330 { echo "configure: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." 1>&2; exit 1; }
11331 else
11332 echo "$ac_t""$MICROWINDOWS" 1>&6
11333 fi
11334
11335 if test -f $MICROWINDOWS/lib/libmwin.a; then
11336 echo "$ac_t""MicroWindows' libraries found." 1>&6
11337 else
11338 { echo "configure: error: Cannot find MicroWindows libraries, make sure they are compiled." 1>&2; exit 1; }
11339 fi
11340
11341 TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
11342 GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
11343
11344 AFMINSTALL=afminstall
11345 TOOLKIT=MICROWIN
11346 GUIDIST=MICROWIN_DIST
11347
11348 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__ -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
11349 fi
11350
1e6feb95 11351 if test "$wxUSE_WINE" = 1; then
3a922bb4
RL
11352 ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'`
11353echo $ac_n "checking for windows.h""... $ac_c" 1>&6
4b6b4dfc 11354echo "configure:11355: checking for windows.h" >&5
3a922bb4
RL
11355if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11356 echo $ac_n "(cached) $ac_c" 1>&6
11357else
11358 cat > conftest.$ac_ext <<EOF
4b6b4dfc 11359#line 11360 "configure"
3a922bb4
RL
11360#include "confdefs.h"
11361#include <windows.h>
11362EOF
11363ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4b6b4dfc 11364{ (eval echo configure:11365: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3a922bb4
RL
11365ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11366if test -z "$ac_err"; then
11367 rm -rf conftest*
11368 eval "ac_cv_header_$ac_safe=yes"
11369else
11370 echo "$ac_err" >&5
11371 echo "configure: failed program was:" >&5
11372 cat conftest.$ac_ext >&5
11373 rm -rf conftest*
11374 eval "ac_cv_header_$ac_safe=no"
11375fi
11376rm -f conftest*
11377fi
11378if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11379 echo "$ac_t""yes" 1>&6
11380 :
11381else
11382 echo "$ac_t""no" 1>&6
10f2d63a 11383
1e6feb95 11384 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
3a922bb4
RL
11385
11386fi
11387
10f2d63a 11388
3d63bc3a 11389 xpm_link=
1e6feb95 11390 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
4b6b4dfc 11391echo "configure:11392: checking for Xpm library" >&5
1e6feb95 11392
10f2d63a
VZ
11393ac_find_libraries=
11394for ac_dir in $SEARCH_LIB;
11395 do
f11bdd03 11396 for ac_extension in a so sl dylib; do
10f2d63a
VZ
11397 if test -f "$ac_dir/libXpm.$ac_extension"; then
11398 ac_find_libraries=$ac_dir
11399 break 2
11400 fi
11401 done
11402 done
11403
1e6feb95
VZ
11404 if test "$ac_find_libraries" != "" ; then
11405 GUI_TK_LIBRARY="-L$ac_find_libraries"
3d63bc3a 11406 xpm_link=" -lXpm"
1e6feb95 11407 cat >> confdefs.h <<\EOF
10f2d63a
VZ
11408#define wxHAVE_LIB_XPM 1
11409EOF
11410
1e6feb95
VZ
11411 echo "$ac_t""found at $ac_find_libraries" 1>&6
11412 else
11413 echo "$ac_t""no" 1>&6
11414 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
11415 fi
10f2d63a 11416
3d63bc3a 11417 mesa_link=
1e6feb95 11418 echo $ac_n "checking for Mesa library""... $ac_c" 1>&6
4b6b4dfc 11419echo "configure:11420: checking for Mesa library" >&5
1e6feb95 11420
10f2d63a
VZ
11421ac_find_libraries=
11422for ac_dir in $SEARCH_LIB;
11423 do
f11bdd03 11424 for ac_extension in a so sl dylib; do
10f2d63a
VZ
11425 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
11426 ac_find_libraries=$ac_dir
11427 break 2
11428 fi
11429 done
11430 done
11431
1e6feb95
VZ
11432 if test "$ac_find_libraries" != "" ; then
11433 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -L$ac_find_libraries"
3d63bc3a 11434 mesa_link=" -lMesaGL"
1e6feb95
VZ
11435 echo "$ac_t""found at $ac_find_libraries" 1>&6
11436 else
11437 { echo "configure: error: no" 1>&2; exit 1; }
11438 fi
10f2d63a 11439
3d63bc3a 11440 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lwine$mesa_link$xpm_link -lXxf86dga -lXxf86vm -lSM -lICE -lXext -lXmu -lX11 -lncurses"
1e6feb95
VZ
11441 TOOLKIT=MSW
11442 GUIDIST=MSW_DIST
3a922bb4 11443 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXWINE__"
1e6feb95 11444 fi
698dcdb6 11445
d714471b
VZ
11446 if test "$wxUSE_MOTIF" = 1; then
11447 # If we find X, set shell vars x_includes and x_libraries to the
698dcdb6
VZ
11448# paths, otherwise set no_x=yes.
11449# Uses ac_ vars as temps to allow command line to override cache and checks.
11450# --without-x overrides everything else, but does not touch the cache.
11451echo $ac_n "checking for X""... $ac_c" 1>&6
4b6b4dfc 11452echo "configure:11453: checking for X" >&5
ab9b9eab
VZ
11453
11454# Check whether --with-x or --without-x was given.
11455if test "${with_x+set}" = set; then
11456 withval="$with_x"
698dcdb6
VZ
11457 :
11458fi
ba337fe7 11459
ab9b9eab
VZ
11460# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
11461if test "x$with_x" = xno; then
11462 # The user explicitly disabled X.
11463 have_x=disabled
11464else
11465 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
11466 # Both variables are already set.
11467 have_x=yes
11468 else
698dcdb6
VZ
11469if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
11470 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab
VZ
11471else
11472 # One or both of the vars are not set, and there is no cached value.
698dcdb6
VZ
11473ac_x_includes=NO ac_x_libraries=NO
11474rm -fr conftestdir
11475if mkdir conftestdir; then
11476 cd conftestdir
ab9b9eab 11477 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
698dcdb6 11478 cat > Imakefile <<'EOF'
ab9b9eab
VZ
11479acfindx:
11480 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
11481EOF
11482 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
11483 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
11484 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
11485 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
10f2d63a 11486 for ac_extension in a so sl; do
ab9b9eab 11487 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
698dcdb6 11488 test -f $ac_im_libdir/libX11.$ac_extension; then
ab9b9eab 11489 ac_im_usrlibdir=$ac_im_libdir; break
10f2d63a
VZ
11490 fi
11491 done
ab9b9eab
VZ
11492 # Screen out bogus values from the imake configuration. They are
11493 # bogus both because they are the default anyway, and because
11494 # using them would break gcc on systems where it needs fixed includes.
698dcdb6 11495 case "$ac_im_incroot" in
ab9b9eab 11496 /usr/include) ;;
698dcdb6 11497 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
ab9b9eab 11498 esac
698dcdb6 11499 case "$ac_im_usrlibdir" in
ab9b9eab 11500 /usr/lib | /lib) ;;
698dcdb6 11501 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
ab9b9eab 11502 esac
ba337fe7 11503 fi
ab9b9eab 11504 cd ..
698dcdb6 11505 rm -fr conftestdir
ab9b9eab 11506fi
10f2d63a 11507
698dcdb6
VZ
11508if test "$ac_x_includes" = NO; then
11509 # Guess where to find include files, by looking for this one X11 .h file.
11510 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
11511
ab9b9eab 11512 # First, try using that file with no special directory specified.
698dcdb6 11513cat > conftest.$ac_ext <<EOF
4b6b4dfc 11514#line 11515 "configure"
ab9b9eab 11515#include "confdefs.h"
698dcdb6
VZ
11516#include <$x_direct_test_include>
11517EOF
11518ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4b6b4dfc 11519{ (eval echo configure:11520: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
11520ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11521if test -z "$ac_err"; then
11522 rm -rf conftest*
ab9b9eab
VZ
11523 # We can compile using X headers with no special include directory.
11524ac_x_includes=
11525else
698dcdb6
VZ
11526 echo "$ac_err" >&5
11527 echo "configure: failed program was:" >&5
ab9b9eab 11528 cat conftest.$ac_ext >&5
698dcdb6
VZ
11529 rm -rf conftest*
11530 # Look for the header file in a standard set of common directories.
11531# Check X11 before X11Rn because it is often a symlink to the current release.
11532 for ac_dir in \
11533 /usr/X11/include \
11534 /usr/X11R6/include \
11535 /usr/X11R5/include \
11536 /usr/X11R4/include \
11537 \
11538 /usr/include/X11 \
11539 /usr/include/X11R6 \
11540 /usr/include/X11R5 \
11541 /usr/include/X11R4 \
11542 \
11543 /usr/local/X11/include \
11544 /usr/local/X11R6/include \
11545 /usr/local/X11R5/include \
11546 /usr/local/X11R4/include \
11547 \
11548 /usr/local/include/X11 \
11549 /usr/local/include/X11R6 \
11550 /usr/local/include/X11R5 \
11551 /usr/local/include/X11R4 \
11552 \
11553 /usr/X386/include \
11554 /usr/x386/include \
11555 /usr/XFree86/include/X11 \
11556 \
11557 /usr/include \
11558 /usr/local/include \
11559 /usr/unsupported/include \
11560 /usr/athena/include \
11561 /usr/local/x11r5/include \
11562 /usr/lpp/Xamples/include \
11563 \
11564 /usr/openwin/include \
11565 /usr/openwin/share/include \
11566 ; \
11567 do
11568 if test -r "$ac_dir/$x_direct_test_include"; then
11569 ac_x_includes=$ac_dir
11570 break
11571 fi
11572 done
ab9b9eab 11573fi
698dcdb6
VZ
11574rm -f conftest*
11575fi # $ac_x_includes = NO
10f2d63a 11576
698dcdb6 11577if test "$ac_x_libraries" = NO; then
ab9b9eab 11578 # Check for the libraries.
698dcdb6
VZ
11579
11580 test -z "$x_direct_test_library" && x_direct_test_library=Xt
11581 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
11582
ab9b9eab
VZ
11583 # See if we find them without any special options.
11584 # Don't add to $LIBS permanently.
698dcdb6
VZ
11585 ac_save_LIBS="$LIBS"
11586 LIBS="-l$x_direct_test_library $LIBS"
11587cat > conftest.$ac_ext <<EOF
4b6b4dfc 11588#line 11589 "configure"
ab9b9eab 11589#include "confdefs.h"
698dcdb6
VZ
11590
11591int main() {
11592${x_direct_test_function}()
11593; return 0; }
11594EOF
4b6b4dfc 11595if { (eval echo configure:11596: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
11596 rm -rf conftest*
11597 LIBS="$ac_save_LIBS"
ab9b9eab
VZ
11598# We can link X programs with no special library path.
11599ac_x_libraries=
11600else
698dcdb6
VZ
11601 echo "configure: failed program was:" >&5
11602 cat conftest.$ac_ext >&5
11603 rm -rf conftest*
11604 LIBS="$ac_save_LIBS"
11605# First see if replacing the include by lib works.
11606# Check X11 before X11Rn because it is often a symlink to the current release.
11607for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
11608 /usr/X11/lib \
11609 /usr/X11R6/lib \
11610 /usr/X11R5/lib \
11611 /usr/X11R4/lib \
11612 \
11613 /usr/lib/X11 \
11614 /usr/lib/X11R6 \
11615 /usr/lib/X11R5 \
11616 /usr/lib/X11R4 \
11617 \
11618 /usr/local/X11/lib \
11619 /usr/local/X11R6/lib \
11620 /usr/local/X11R5/lib \
11621 /usr/local/X11R4/lib \
11622 \
11623 /usr/local/lib/X11 \
11624 /usr/local/lib/X11R6 \
11625 /usr/local/lib/X11R5 \
11626 /usr/local/lib/X11R4 \
11627 \
11628 /usr/X386/lib \
11629 /usr/x386/lib \
11630 /usr/XFree86/lib/X11 \
11631 \
11632 /usr/lib \
11633 /usr/local/lib \
11634 /usr/unsupported/lib \
11635 /usr/athena/lib \
11636 /usr/local/x11r5/lib \
11637 /usr/lpp/Xamples/lib \
11638 /lib/usr/lib/X11 \
11639 \
11640 /usr/openwin/lib \
11641 /usr/openwin/share/lib \
11642 ; \
ab9b9eab
VZ
11643do
11644 for ac_extension in a so sl; do
698dcdb6 11645 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
ab9b9eab
VZ
11646 ac_x_libraries=$ac_dir
11647 break 2
10f2d63a 11648 fi
10f2d63a 11649 done
ab9b9eab
VZ
11650done
11651fi
698dcdb6
VZ
11652rm -f conftest*
11653fi # $ac_x_libraries = NO
10f2d63a 11654
698dcdb6 11655if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
ab9b9eab
VZ
11656 # Didn't find X anywhere. Cache the known absence of X.
11657 ac_cv_have_x="have_x=no"
11658else
11659 # Record where we found X for the cache.
11660 ac_cv_have_x="have_x=yes \
11661 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
11662fi
11663fi
10f2d63a 11664 fi
ab9b9eab
VZ
11665 eval "$ac_cv_have_x"
11666fi # $with_x != no
10f2d63a 11667
ab9b9eab 11668if test "$have_x" != yes; then
698dcdb6 11669 echo "$ac_t""$have_x" 1>&6
ab9b9eab
VZ
11670 no_x=yes
11671else
11672 # If each of the values was on the command line, it overrides each guess.
11673 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
11674 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
11675 # Update the cache value to reflect the command line values.
11676 ac_cv_have_x="have_x=yes \
11677 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
698dcdb6 11678 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
ab9b9eab 11679fi
10f2d63a 11680
ab9b9eab
VZ
11681if test "$no_x" = yes; then
11682 # Not all programs may use this symbol, but it does not hurt to define it.
698dcdb6 11683 cat >> confdefs.h <<\EOF
ab9b9eab
VZ
11684#define X_DISPLAY_MISSING 1
11685EOF
10f2d63a 11686
ab9b9eab
VZ
11687 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
11688else
11689 if test -n "$x_includes"; then
11690 X_CFLAGS="$X_CFLAGS -I$x_includes"
10f2d63a
VZ
11691 fi
11692
ab9b9eab
VZ
11693 # It would also be nice to do this for all -L options, not just this one.
11694 if test -n "$x_libraries"; then
11695 X_LIBS="$X_LIBS -L$x_libraries"
11696 # For Solaris; some versions of Sun CC require a space after -R and
11697 # others require no space. Words are not sufficient . . . .
698dcdb6 11698 case "`(uname -sr) 2>/dev/null`" in
ab9b9eab 11699 "SunOS 5"*)
698dcdb6 11700 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
4b6b4dfc 11701echo "configure:11702: checking whether -R must be followed by a space" >&5
698dcdb6
VZ
11702 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
11703 cat > conftest.$ac_ext <<EOF
4b6b4dfc 11704#line 11705 "configure"
ab9b9eab 11705#include "confdefs.h"
10f2d63a 11706
698dcdb6 11707int main() {
788deba1 11708
698dcdb6
VZ
11709; return 0; }
11710EOF
4b6b4dfc 11711if { (eval echo configure:11712: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 11712 rm -rf conftest*
ab9b9eab
VZ
11713 ac_R_nospace=yes
11714else
698dcdb6
VZ
11715 echo "configure: failed program was:" >&5
11716 cat conftest.$ac_ext >&5
11717 rm -rf conftest*
11718 ac_R_nospace=no
ab9b9eab 11719fi
698dcdb6 11720rm -f conftest*
ab9b9eab 11721 if test $ac_R_nospace = yes; then
698dcdb6 11722 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
11723 X_LIBS="$X_LIBS -R$x_libraries"
11724 else
11725 LIBS="$ac_xsave_LIBS -R $x_libraries"
698dcdb6 11726 cat > conftest.$ac_ext <<EOF
4b6b4dfc 11727#line 11728 "configure"
ab9b9eab 11728#include "confdefs.h"
788deba1 11729
698dcdb6 11730int main() {
ab9b9eab 11731
698dcdb6
VZ
11732; return 0; }
11733EOF
4b6b4dfc 11734if { (eval echo configure:11735: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 11735 rm -rf conftest*
ab9b9eab
VZ
11736 ac_R_space=yes
11737else
698dcdb6
VZ
11738 echo "configure: failed program was:" >&5
11739 cat conftest.$ac_ext >&5
11740 rm -rf conftest*
11741 ac_R_space=no
ab9b9eab 11742fi
698dcdb6 11743rm -f conftest*
ab9b9eab 11744 if test $ac_R_space = yes; then
698dcdb6 11745 echo "$ac_t""yes" 1>&6
ab9b9eab
VZ
11746 X_LIBS="$X_LIBS -R $x_libraries"
11747 else
698dcdb6 11748 echo "$ac_t""neither works" 1>&6
ab9b9eab
VZ
11749 fi
11750 fi
698dcdb6 11751 LIBS="$ac_xsave_LIBS"
ab9b9eab
VZ
11752 esac
11753 fi
11754
11755 # Check for system-dependent libraries X programs must link with.
11756 # Do this before checking for the system-independent R6 libraries
11757 # (-lICE), since we may need -lsocket or whatever for X linking.
11758
11759 if test "$ISC" = yes; then
11760 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
11761 else
698dcdb6
VZ
11762 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
11763 # libraries were built with DECnet support. And karl@cs.umb.edu says
ab9b9eab 11764 # the Alpha needs dnet_stub (dnet does not exist).
698dcdb6 11765 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
4b6b4dfc 11766echo "configure:11767: checking for dnet_ntoa in -ldnet" >&5
698dcdb6
VZ
11767ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
11768if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11769 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 11770else
698dcdb6 11771 ac_save_LIBS="$LIBS"
ab9b9eab 11772LIBS="-ldnet $LIBS"
698dcdb6 11773cat > conftest.$ac_ext <<EOF
4b6b4dfc 11774#line 11775 "configure"
ab9b9eab
VZ
11775#include "confdefs.h"
11776/* Override any gcc2 internal prototype to avoid an error. */
11777/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
11778 builtin and then its argument prototype would still apply. */
11779char dnet_ntoa();
11780
11781int main() {
11782dnet_ntoa()
11783; return 0; }
11784EOF
4b6b4dfc 11785if { (eval echo configure:11786: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
11786 rm -rf conftest*
11787 eval "ac_cv_lib_$ac_lib_var=yes"
11788else
11789 echo "configure: failed program was:" >&5
11790 cat conftest.$ac_ext >&5
11791 rm -rf conftest*
11792 eval "ac_cv_lib_$ac_lib_var=no"
11793fi
11794rm -f conftest*
11795LIBS="$ac_save_LIBS"
11796
11797fi
11798if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11799 echo "$ac_t""yes" 1>&6
ab9b9eab 11800 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
698dcdb6
VZ
11801else
11802 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
11803fi
11804
11805 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
698dcdb6 11806 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
4b6b4dfc 11807echo "configure:11808: checking for dnet_ntoa in -ldnet_stub" >&5
698dcdb6
VZ
11808ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
11809if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11810 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 11811else
698dcdb6 11812 ac_save_LIBS="$LIBS"
ab9b9eab 11813LIBS="-ldnet_stub $LIBS"
698dcdb6 11814cat > conftest.$ac_ext <<EOF
4b6b4dfc 11815#line 11816 "configure"
ab9b9eab
VZ
11816#include "confdefs.h"
11817/* Override any gcc2 internal prototype to avoid an error. */
11818/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
11819 builtin and then its argument prototype would still apply. */
11820char dnet_ntoa();
11821
11822int main() {
11823dnet_ntoa()
11824; return 0; }
11825EOF
4b6b4dfc 11826if { (eval echo configure:11827: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
11827 rm -rf conftest*
11828 eval "ac_cv_lib_$ac_lib_var=yes"
11829else
11830 echo "configure: failed program was:" >&5
11831 cat conftest.$ac_ext >&5
11832 rm -rf conftest*
11833 eval "ac_cv_lib_$ac_lib_var=no"
11834fi
11835rm -f conftest*
11836LIBS="$ac_save_LIBS"
11837
11838fi
11839if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11840 echo "$ac_t""yes" 1>&6
ab9b9eab 11841 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
698dcdb6
VZ
11842else
11843 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
11844fi
11845
11846 fi
11847
11848 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
11849 # to get the SysV transport functions.
698dcdb6 11850 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
ab9b9eab
VZ
11851 # needs -lnsl.
11852 # The nsl library prevents programs from opening the X display
698dcdb6
VZ
11853 # on Irix 5.2, according to dickey@clark.net.
11854 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
4b6b4dfc 11855echo "configure:11856: checking for gethostbyname" >&5
698dcdb6
VZ
11856if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
11857 echo $ac_n "(cached) $ac_c" 1>&6
11858else
11859 cat > conftest.$ac_ext <<EOF
4b6b4dfc 11860#line 11861 "configure"
ab9b9eab
VZ
11861#include "confdefs.h"
11862/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 11863 which can conflict with char gethostbyname(); below. */
ab9b9eab
VZ
11864#include <assert.h>
11865/* Override any gcc2 internal prototype to avoid an error. */
11866/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
11867 builtin and then its argument prototype would still apply. */
11868char gethostbyname();
11869
11870int main() {
ab9b9eab
VZ
11871
11872/* The GNU C library defines this for functions which it implements
11873 to always fail with ENOSYS. Some functions are actually named
11874 something starting with __ and the normal name is an alias. */
11875#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
11876choke me
11877#else
698dcdb6 11878gethostbyname();
ab9b9eab
VZ
11879#endif
11880
698dcdb6
VZ
11881; return 0; }
11882EOF
4b6b4dfc 11883if { (eval echo configure:11884: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
11884 rm -rf conftest*
11885 eval "ac_cv_func_gethostbyname=yes"
11886else
11887 echo "configure: failed program was:" >&5
11888 cat conftest.$ac_ext >&5
11889 rm -rf conftest*
11890 eval "ac_cv_func_gethostbyname=no"
11891fi
11892rm -f conftest*
11893fi
11894
11895if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
11896 echo "$ac_t""yes" 1>&6
11897 :
11898else
11899 echo "$ac_t""no" 1>&6
11900fi
ab9b9eab
VZ
11901
11902 if test $ac_cv_func_gethostbyname = no; then
698dcdb6 11903 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
4b6b4dfc 11904echo "configure:11905: checking for gethostbyname in -lnsl" >&5
698dcdb6
VZ
11905ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
11906if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11907 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 11908else
698dcdb6 11909 ac_save_LIBS="$LIBS"
ab9b9eab 11910LIBS="-lnsl $LIBS"
698dcdb6 11911cat > conftest.$ac_ext <<EOF
4b6b4dfc 11912#line 11913 "configure"
ab9b9eab
VZ
11913#include "confdefs.h"
11914/* Override any gcc2 internal prototype to avoid an error. */
11915/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
11916 builtin and then its argument prototype would still apply. */
11917char gethostbyname();
6232543b 11918
698dcdb6
VZ
11919int main() {
11920gethostbyname()
11921; return 0; }
11922EOF
4b6b4dfc 11923if { (eval echo configure:11924: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
11924 rm -rf conftest*
11925 eval "ac_cv_lib_$ac_lib_var=yes"
703e0a69 11926else
698dcdb6
VZ
11927 echo "configure: failed program was:" >&5
11928 cat conftest.$ac_ext >&5
11929 rm -rf conftest*
11930 eval "ac_cv_lib_$ac_lib_var=no"
11931fi
11932rm -f conftest*
11933LIBS="$ac_save_LIBS"
1e487827 11934
698dcdb6
VZ
11935fi
11936if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11937 echo "$ac_t""yes" 1>&6
11938 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
11939else
11940 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
11941fi
11942
11943 fi
11944
11945 # lieder@skyler.mavd.honeywell.com says without -lsocket,
11946 # socket/setsockopt and other routines are undefined under SCO ODT
11947 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
698dcdb6
VZ
11948 # on later versions), says simon@lia.di.epfl.ch: it contains
11949 # gethostby* variants that don't use the nameserver (or something).
11950 # -lsocket must be given before -lnsl if both are needed.
11951 # We assume that if connect needs -lnsl, so does gethostbyname.
11952 echo $ac_n "checking for connect""... $ac_c" 1>&6
4b6b4dfc 11953echo "configure:11954: checking for connect" >&5
698dcdb6
VZ
11954if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
11955 echo $ac_n "(cached) $ac_c" 1>&6
11956else
11957 cat > conftest.$ac_ext <<EOF
4b6b4dfc 11958#line 11959 "configure"
ab9b9eab
VZ
11959#include "confdefs.h"
11960/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 11961 which can conflict with char connect(); below. */
ab9b9eab
VZ
11962#include <assert.h>
11963/* Override any gcc2 internal prototype to avoid an error. */
11964/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
11965 builtin and then its argument prototype would still apply. */
11966char connect();
11967
11968int main() {
ab9b9eab
VZ
11969
11970/* The GNU C library defines this for functions which it implements
11971 to always fail with ENOSYS. Some functions are actually named
11972 something starting with __ and the normal name is an alias. */
11973#if defined (__stub_connect) || defined (__stub___connect)
11974choke me
11975#else
698dcdb6 11976connect();
ab9b9eab
VZ
11977#endif
11978
698dcdb6
VZ
11979; return 0; }
11980EOF
4b6b4dfc 11981if { (eval echo configure:11982: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
11982 rm -rf conftest*
11983 eval "ac_cv_func_connect=yes"
11984else
11985 echo "configure: failed program was:" >&5
11986 cat conftest.$ac_ext >&5
11987 rm -rf conftest*
11988 eval "ac_cv_func_connect=no"
11989fi
11990rm -f conftest*
11991fi
11992
11993if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
11994 echo "$ac_t""yes" 1>&6
11995 :
11996else
11997 echo "$ac_t""no" 1>&6
11998fi
ab9b9eab
VZ
11999
12000 if test $ac_cv_func_connect = no; then
698dcdb6 12001 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
4b6b4dfc 12002echo "configure:12003: checking for connect in -lsocket" >&5
698dcdb6
VZ
12003ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
12004if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12005 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 12006else
698dcdb6 12007 ac_save_LIBS="$LIBS"
ab9b9eab 12008LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
698dcdb6 12009cat > conftest.$ac_ext <<EOF
4b6b4dfc 12010#line 12011 "configure"
ab9b9eab
VZ
12011#include "confdefs.h"
12012/* Override any gcc2 internal prototype to avoid an error. */
12013/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
12014 builtin and then its argument prototype would still apply. */
12015char connect();
12016
12017int main() {
12018connect()
12019; return 0; }
12020EOF
4b6b4dfc 12021if { (eval echo configure:12022: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
12022 rm -rf conftest*
12023 eval "ac_cv_lib_$ac_lib_var=yes"
12024else
12025 echo "configure: failed program was:" >&5
12026 cat conftest.$ac_ext >&5
12027 rm -rf conftest*
12028 eval "ac_cv_lib_$ac_lib_var=no"
12029fi
12030rm -f conftest*
12031LIBS="$ac_save_LIBS"
12032
12033fi
12034if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12035 echo "$ac_t""yes" 1>&6
ab9b9eab 12036 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
698dcdb6
VZ
12037else
12038 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
12039fi
12040
12041 fi
12042
698dcdb6
VZ
12043 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
12044 echo $ac_n "checking for remove""... $ac_c" 1>&6
4b6b4dfc 12045echo "configure:12046: checking for remove" >&5
698dcdb6
VZ
12046if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
12047 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 12048else
698dcdb6 12049 cat > conftest.$ac_ext <<EOF
4b6b4dfc 12050#line 12051 "configure"
ab9b9eab
VZ
12051#include "confdefs.h"
12052/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 12053 which can conflict with char remove(); below. */
ab9b9eab
VZ
12054#include <assert.h>
12055/* Override any gcc2 internal prototype to avoid an error. */
12056/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
12057 builtin and then its argument prototype would still apply. */
12058char remove();
12059
12060int main() {
ab9b9eab
VZ
12061
12062/* The GNU C library defines this for functions which it implements
12063 to always fail with ENOSYS. Some functions are actually named
12064 something starting with __ and the normal name is an alias. */
12065#if defined (__stub_remove) || defined (__stub___remove)
12066choke me
12067#else
698dcdb6 12068remove();
ab9b9eab
VZ
12069#endif
12070
698dcdb6
VZ
12071; return 0; }
12072EOF
4b6b4dfc 12073if { (eval echo configure:12074: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
12074 rm -rf conftest*
12075 eval "ac_cv_func_remove=yes"
12076else
12077 echo "configure: failed program was:" >&5
12078 cat conftest.$ac_ext >&5
12079 rm -rf conftest*
12080 eval "ac_cv_func_remove=no"
12081fi
12082rm -f conftest*
12083fi
12084
12085if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
12086 echo "$ac_t""yes" 1>&6
12087 :
12088else
12089 echo "$ac_t""no" 1>&6
12090fi
ab9b9eab
VZ
12091
12092 if test $ac_cv_func_remove = no; then
698dcdb6 12093 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
4b6b4dfc 12094echo "configure:12095: checking for remove in -lposix" >&5
698dcdb6
VZ
12095ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
12096if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12097 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 12098else
698dcdb6 12099 ac_save_LIBS="$LIBS"
ab9b9eab 12100LIBS="-lposix $LIBS"
698dcdb6 12101cat > conftest.$ac_ext <<EOF
4b6b4dfc 12102#line 12103 "configure"
ab9b9eab
VZ
12103#include "confdefs.h"
12104/* Override any gcc2 internal prototype to avoid an error. */
12105/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
12106 builtin and then its argument prototype would still apply. */
12107char remove();
12108
12109int main() {
12110remove()
12111; return 0; }
12112EOF
4b6b4dfc 12113if { (eval echo configure:12114: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
12114 rm -rf conftest*
12115 eval "ac_cv_lib_$ac_lib_var=yes"
12116else
12117 echo "configure: failed program was:" >&5
12118 cat conftest.$ac_ext >&5
12119 rm -rf conftest*
12120 eval "ac_cv_lib_$ac_lib_var=no"
12121fi
12122rm -f conftest*
12123LIBS="$ac_save_LIBS"
12124
12125fi
12126if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12127 echo "$ac_t""yes" 1>&6
ab9b9eab 12128 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
698dcdb6
VZ
12129else
12130 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
12131fi
12132
12133 fi
12134
12135 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
698dcdb6 12136 echo $ac_n "checking for shmat""... $ac_c" 1>&6
4b6b4dfc 12137echo "configure:12138: checking for shmat" >&5
698dcdb6
VZ
12138if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
12139 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 12140else
698dcdb6 12141 cat > conftest.$ac_ext <<EOF
4b6b4dfc 12142#line 12143 "configure"
ab9b9eab
VZ
12143#include "confdefs.h"
12144/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 12145 which can conflict with char shmat(); below. */
ab9b9eab
VZ
12146#include <assert.h>
12147/* Override any gcc2 internal prototype to avoid an error. */
12148/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
12149 builtin and then its argument prototype would still apply. */
12150char shmat();
12151
12152int main() {
ab9b9eab
VZ
12153
12154/* The GNU C library defines this for functions which it implements
12155 to always fail with ENOSYS. Some functions are actually named
12156 something starting with __ and the normal name is an alias. */
12157#if defined (__stub_shmat) || defined (__stub___shmat)
12158choke me
12159#else
698dcdb6 12160shmat();
ab9b9eab
VZ
12161#endif
12162
698dcdb6
VZ
12163; return 0; }
12164EOF
4b6b4dfc 12165if { (eval echo configure:12166: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
12166 rm -rf conftest*
12167 eval "ac_cv_func_shmat=yes"
12168else
12169 echo "configure: failed program was:" >&5
12170 cat conftest.$ac_ext >&5
12171 rm -rf conftest*
12172 eval "ac_cv_func_shmat=no"
12173fi
12174rm -f conftest*
12175fi
12176
12177if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
12178 echo "$ac_t""yes" 1>&6
12179 :
12180else
12181 echo "$ac_t""no" 1>&6
12182fi
ab9b9eab
VZ
12183
12184 if test $ac_cv_func_shmat = no; then
698dcdb6 12185 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
4b6b4dfc 12186echo "configure:12187: checking for shmat in -lipc" >&5
698dcdb6
VZ
12187ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
12188if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12189 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 12190else
698dcdb6 12191 ac_save_LIBS="$LIBS"
ab9b9eab 12192LIBS="-lipc $LIBS"
698dcdb6 12193cat > conftest.$ac_ext <<EOF
4b6b4dfc 12194#line 12195 "configure"
ab9b9eab
VZ
12195#include "confdefs.h"
12196/* Override any gcc2 internal prototype to avoid an error. */
12197/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
12198 builtin and then its argument prototype would still apply. */
12199char shmat();
12200
12201int main() {
12202shmat()
12203; return 0; }
12204EOF
4b6b4dfc 12205if { (eval echo configure:12206: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
12206 rm -rf conftest*
12207 eval "ac_cv_lib_$ac_lib_var=yes"
12208else
12209 echo "configure: failed program was:" >&5
12210 cat conftest.$ac_ext >&5
12211 rm -rf conftest*
12212 eval "ac_cv_lib_$ac_lib_var=no"
12213fi
12214rm -f conftest*
12215LIBS="$ac_save_LIBS"
12216
12217fi
12218if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12219 echo "$ac_t""yes" 1>&6
ab9b9eab 12220 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
698dcdb6
VZ
12221else
12222 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
12223fi
12224
12225 fi
12226 fi
12227
12228 # Check for libraries that X11R6 Xt/Xaw programs need.
698dcdb6 12229 ac_save_LDFLAGS="$LDFLAGS"
ab9b9eab
VZ
12230 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
12231 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
12232 # check for ICE first), but we must link in the order -lSM -lICE or
12233 # we get undefined symbols. So assume we have SM if we have ICE.
12234 # These have to be linked with before -lX11, unlike the other
12235 # libraries we check for below, so use a different variable.
698dcdb6
VZ
12236 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
12237 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
4b6b4dfc 12238echo "configure:12239: checking for IceConnectionNumber in -lICE" >&5
698dcdb6
VZ
12239ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
12240if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12241 echo $ac_n "(cached) $ac_c" 1>&6
12242else
12243 ac_save_LIBS="$LIBS"
ab9b9eab 12244LIBS="-lICE $X_EXTRA_LIBS $LIBS"
698dcdb6 12245cat > conftest.$ac_ext <<EOF
4b6b4dfc 12246#line 12247 "configure"
ab9b9eab
VZ
12247#include "confdefs.h"
12248/* Override any gcc2 internal prototype to avoid an error. */
12249/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
12250 builtin and then its argument prototype would still apply. */
12251char IceConnectionNumber();
12252
12253int main() {
12254IceConnectionNumber()
12255; return 0; }
12256EOF
4b6b4dfc 12257if { (eval echo configure:12258: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
12258 rm -rf conftest*
12259 eval "ac_cv_lib_$ac_lib_var=yes"
12260else
12261 echo "configure: failed program was:" >&5
12262 cat conftest.$ac_ext >&5
12263 rm -rf conftest*
12264 eval "ac_cv_lib_$ac_lib_var=no"
12265fi
12266rm -f conftest*
12267LIBS="$ac_save_LIBS"
12268
12269fi
12270if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12271 echo "$ac_t""yes" 1>&6
ab9b9eab 12272 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
698dcdb6
VZ
12273else
12274 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
12275fi
12276
698dcdb6 12277 LDFLAGS="$ac_save_LDFLAGS"
ab9b9eab
VZ
12278
12279fi
12280
12281
1e6feb95
VZ
12282 if test "$no_x" = "yes"; then
12283 { echo "configure: error: X11 not found" 1>&2; exit 1; }
12284 fi
ab9b9eab 12285
1e6feb95
VZ
12286 GUI_TK_LIBRARY="$X_LIBS"
12287 TOOLKIT_INCLUDE="$X_CFLAGS"
1e6feb95 12288 AFMINSTALL=afminstall
1e6feb95 12289 COMPILED_X_PROGRAM=0
cd6d6d5b 12290
1e6feb95 12291 echo $ac_n "checking for Motif/Lesstif headers""... $ac_c" 1>&6
4b6b4dfc 12292echo "configure:12293: checking for Motif/Lesstif headers" >&5
1e6feb95 12293
ab9b9eab
VZ
12294ac_find_includes=
12295for ac_dir in $SEARCH_INCLUDE;
12296 do
12297 if test -f "$ac_dir/Xm/Xm.h"; then
12298 ac_find_includes=$ac_dir
12299 break
12300 fi
12301 done
12302
1e6feb95
VZ
12303 if test "$ac_find_includes" != "" ; then
12304 echo "$ac_t""found $ac_find_includes" 1>&6
12305 else
12306 cat > conftest.$ac_ext <<EOF
4b6b4dfc 12307#line 12308 "configure"
cd6d6d5b
VZ
12308#include "confdefs.h"
12309
1e6feb95
VZ
12310 #include <Xm/Xm.h>
12311
698dcdb6 12312int main() {
cd6d6d5b 12313
1e6feb95 12314 int version;
1e6feb95
VZ
12315 version = xmUseVersion;
12316
698dcdb6
VZ
12317; return 0; }
12318EOF
4b6b4dfc 12319if { (eval echo configure:12320: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
12320 rm -rf conftest*
12321
1e6feb95
VZ
12322 echo "$ac_t""found in default search path" 1>&6
12323 COMPILED_X_PROGRAM=1
12324
cd6d6d5b 12325else
698dcdb6
VZ
12326 echo "configure: failed program was:" >&5
12327 cat conftest.$ac_ext >&5
12328 rm -rf conftest*
12329
1e6feb95
VZ
12330 echo "$ac_t""no" 1>&6
12331 { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; }
12332
698dcdb6 12333
cd6d6d5b 12334fi
698dcdb6 12335rm -f conftest*
1e6feb95 12336 fi
ab9b9eab 12337
1e6feb95
VZ
12338 if test "$COMPILED_X_PROGRAM" = 0; then
12339 echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6
4b6b4dfc 12340echo "configure:12341: checking for Motif/Lesstif library" >&5
1e6feb95 12341
ab9b9eab
VZ
12342ac_find_libraries=
12343for ac_dir in $SEARCH_LIB;
12344 do
f11bdd03 12345 for ac_extension in a so sl dylib; do
ab9b9eab
VZ
12346 if test -f "$ac_dir/libXm.$ac_extension"; then
12347 ac_find_libraries=$ac_dir
12348 break 2
12349 fi
12350 done
12351 done
12352
1e6feb95
VZ
12353 if test "$ac_find_libraries" != "" ; then
12354
ab9b9eab
VZ
12355 ac_path_to_include=$ac_find_includes
12356 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
12357 result=$?
12358 if test $result = 0; then
12359 ac_path_to_include=""
12360 else
62d0491b 12361 ac_path_to_include=" -I$ac_find_includes"
ab9b9eab
VZ
12362 fi
12363
1e6feb95 12364
ab9b9eab
VZ
12365 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
12366 result=$?
12367 if test $result = 0; then
12368 ac_path_to_link=""
12369 else
62d0491b 12370 ac_path_to_link=" -L$ac_find_libraries"
ab9b9eab
VZ
12371 fi
12372
698dcdb6 12373
62d0491b
RL
12374 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
12375 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
1e6feb95
VZ
12376 echo "$ac_t""found at $ac_find_libraries" 1>&6
12377 else
12378 cat > conftest.$ac_ext <<EOF
4b6b4dfc 12379#line 12380 "configure"
cd6d6d5b 12380#include "confdefs.h"
ab9b9eab 12381
1e6feb95
VZ
12382 #include <Xm/Xm.h>
12383
698dcdb6 12384int main() {
ab9b9eab 12385
1e6feb95 12386 int version;
1e6feb95
VZ
12387 version = xmUseVersion;
12388
698dcdb6
VZ
12389; return 0; }
12390EOF
4b6b4dfc 12391if { (eval echo configure:12392: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
12392 rm -rf conftest*
12393
1e6feb95
VZ
12394 echo "$ac_t""found in default search path" 1>&6
12395 COMPILED_X_PROGRAM=1
12396
cd6d6d5b 12397else
698dcdb6
VZ
12398 echo "configure: failed program was:" >&5
12399 cat conftest.$ac_ext >&5
12400 rm -rf conftest*
12401
1e6feb95
VZ
12402 echo "$ac_t""no" 1>&6
12403 { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; }
12404
698dcdb6 12405
cd6d6d5b 12406fi
698dcdb6 12407rm -f conftest*
1e6feb95 12408 fi
cd6d6d5b 12409 fi
ab9b9eab 12410
3d63bc3a 12411 xpm_link=
1e6feb95 12412 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
4b6b4dfc 12413echo "configure:12414: checking for Xpm library" >&5
1e6feb95 12414
ab9b9eab
VZ
12415ac_find_libraries=
12416for ac_dir in $SEARCH_LIB;
12417 do
f11bdd03 12418 for ac_extension in a so sl dylib; do
ab9b9eab
VZ
12419 if test -f "$ac_dir/libXpm.$ac_extension"; then
12420 ac_find_libraries=$ac_dir
12421 break 2
12422 fi
12423 done
12424 done
12425
1e6feb95
VZ
12426 if test "$ac_find_libraries" != "" ; then
12427
ab9b9eab
VZ
12428 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
12429 result=$?
12430 if test $result = 0; then
12431 ac_path_to_link=""
12432 else
62d0491b 12433 ac_path_to_link=" -L$ac_find_libraries"
ab9b9eab
VZ
12434 fi
12435
62d0491b 12436 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
3d63bc3a 12437 xpm_link=" -lXpm"
1e6feb95 12438 cat >> confdefs.h <<\EOF
ab9b9eab
VZ
12439#define wxHAVE_LIB_XPM 1
12440EOF
12441
1e6feb95
VZ
12442 echo "$ac_t""found at $ac_find_libraries" 1>&6
12443 else
12444 cat > conftest.$ac_ext <<EOF
4b6b4dfc 12445#line 12446 "configure"
cd6d6d5b
VZ
12446#include "confdefs.h"
12447
1e6feb95
VZ
12448 #include <X11/xpm.h>
12449
698dcdb6 12450int main() {
cd6d6d5b 12451
1e6feb95 12452 int version;
1e6feb95
VZ
12453 version = XpmLibraryVersion();
12454
698dcdb6
VZ
12455; return 0; }
12456EOF
4b6b4dfc 12457if { (eval echo configure:12458: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
12458 rm -rf conftest*
12459
3d63bc3a 12460 xpm_link=" -lXpm"
3a922bb4 12461 cat >> confdefs.h <<\EOF
3ace2e6d
SN
12462#define wxHAVE_LIB_XPM 1
12463EOF
12464
1e6feb95
VZ
12465 echo "$ac_t""found in default search path" 1>&6
12466 COMPILED_X_PROGRAM=0
12467
cd6d6d5b 12468else
698dcdb6
VZ
12469 echo "configure: failed program was:" >&5
12470 cat conftest.$ac_ext >&5
12471 rm -rf conftest*
12472
1e6feb95
VZ
12473 echo "$ac_t""no" 1>&6
12474 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
12475
698dcdb6 12476
cd6d6d5b 12477fi
698dcdb6 12478rm -f conftest*
1e6feb95
VZ
12479 fi
12480
3d63bc3a 12481 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm$xpm_link -lXmu -lXext -lXt -lX11"
334f0d2c 12482 TOOLKIT_VPATH="\${top_srcdir}/src/motif${PATH_IFS}\${top_srcdir}/src/motif/xmcombo"
1e6feb95
VZ
12483 TOOLKIT=MOTIF
12484 GUIDIST=MOTIF_DIST
ab9b9eab
VZ
12485 fi
12486
683dccda
GD
12487 if test "$wxUSE_MAC" = 1; then
12488 if test "$wxUSE_PRECOMP" = "yes"; then
3d63bc3a 12489 CPPFLAGS="$CPPFLAGS -cpp-precomp"
683dccda 12490 fi
3d63bc3a
RL
12491 CPPFLAGS="$CPPFLAGS -I/Developer/Headers/FlatCarbon -I\${top_srcdir}/src/mac/morefile"
12492 CFLAGS="$CFLAGS -fpascal-strings"
12493 CXXFLAGS="$CXXFLAGS -fpascal-strings"
d08b457b 12494
13c0541d 12495 TOOLKIT_VPATH="\${top_srcdir}/src/mac${PATH_IFS}\${top_srcdir}/src/mac/morefile"
1e6feb95 12496 TOOLKIT=MAC
683dccda 12497 GUIDIST=MACX_DIST
1e6feb95 12498 fi
10f2d63a 12499
1e6feb95
VZ
12500 if test "$wxUSE_PM" = 1; then
12501 TOOLKIT=PM
12502 GUIDIST=GTK_DIST
12503 fi
b4085ce6 12504
3a922bb4 12505 if test "$TOOLKIT" = "PM" ; then
1e6feb95 12506 TOOLKIT_DIR="os2"
3a922bb4
RL
12507 else
12508 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
1e6feb95 12509 fi
e07802fc 12510
3a922bb4 12511 PORT_FILES="\${top_srcdir}/src/\$(TOOLKITDIR)/files.lst"
1e6feb95 12512
3a922bb4
RL
12513 if test "$wxUSE_UNIVERSAL" = "yes"; then
12514 ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}"
12515 PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst"
12516 TOOLKIT_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes${PATH_IFS}\${top_srcdir}/src/${TOOLKIT_DIR}"
12517 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
12518 WIDGET_SET=univ
f6bcfd97 12519 else
3a922bb4 12520 ALL_OBJECTS="\$(GUIOBJS)"
1e6feb95
VZ
12521 fi
12522
ba0e650c 12523 ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)"
1e6feb95 12524
f9bc1684 12525 if test "$TOOLKIT" != "MSW" -a "$USE_DOS" != 1; then
1e6feb95
VZ
12526 ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)"
12527 fi
12528
12529 if test "$wxUSE_HTML" = "yes"; then
12530 ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)"
12531 fi
3fcdd07b 12532
3a922bb4
RL
12533 if test "$TOOLKIT" != "MSW" -a "$wxUSE_ODBC" = "yes" ; then
12534 ALL_OBJECTS="${ALL_OBJECTS} \$(IODBCOBJS)"
831b3152 12535 fi
4f14bcd8 12536 if test "$wxUSE_LIBJPEG" = "builtin" ; then
2224580a 12537 ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)"
d9d8273d 12538 fi
4f14bcd8 12539 if test "$wxUSE_LIBTIFF" = "builtin" ; then
d9d8273d
RR
12540 ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)"
12541 fi
4f14bcd8 12542 if test "$wxUSE_LIBPNG" = "builtin" ; then
d9d8273d
RR
12543 ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)"
12544 fi
4f14bcd8 12545 if test "$wxUSE_FREETYPE" = "builtin" ; then
3fed1840
RR
12546 ALL_OBJECTS="${ALL_OBJECTS} \$(FREETYPEOBJS)"
12547 fi
2224580a 12548
2224580a
VZ
12549 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
12550 DISTDIR="wx\$(TOOLKIT)"
10f2d63a 12551else
dad6c0ea
VZ
12552 USE_GUI=0
12553
3a922bb4 12554 TOOLKIT_DIR="base"
f6bcfd97 12555
3a922bb4
RL
12556 if test "$USE_WIN32" = 1 ; then
12557 ALL_OBJECTS="\${BASE_OBJS} \${BASE_MSW_OBJS}"
12558 TOOLKIT_VPATH="\${top_srcdir}/src/msw"
0b2effe9 12559
3a922bb4 12560 TOOLKIT="MSW"
f6bcfd97 12561 else
3a922bb4
RL
12562 ALL_OBJECTS="\${BASE_OBJS} \${BASE_UNIX_OBJS}"
12563 TOOLKIT_VPATH="\${top_srcdir}/src/unix"
f6bcfd97
BP
12564 fi
12565
831b3152 12566 PORT_FILES="\${top_srcdir}/src/files.lst"
2224580a
VZ
12567
12568 GUIDIST="BASE_DIST"
12569 DISTDIR="wxBase"
10f2d63a
VZ
12570fi
12571
4f14bcd8 12572if test "$wxUSE_REGEX" = "builtin" ; then
3a922bb4
RL
12573 ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)"
12574fi
4f14bcd8 12575if test "$wxUSE_ZLIB" = "builtin" ; then
3a922bb4
RL
12576 ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
12577fi
10f2d63a 12578
3a922bb4 12579if test "$wxUSE_OPENGL" = "yes"; then
62d0491b
RL
12580 if test "$wxUSE_MAC" = 1; then
12581 OPENGL_LIBS="-framework OpenGL -framework AGL"
12582 else
570cb8cb 12583
62d0491b 12584 ac_safe=`echo "GL/gl.h" | sed 'y%./+-%__p_%'`
3a922bb4 12585echo $ac_n "checking for GL/gl.h""... $ac_c" 1>&6
4b6b4dfc 12586echo "configure:12587: checking for GL/gl.h" >&5
3a922bb4
RL
12587if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12588 echo $ac_n "(cached) $ac_c" 1>&6
12589else
12590 cat > conftest.$ac_ext <<EOF
4b6b4dfc 12591#line 12592 "configure"
3a922bb4
RL
12592#include "confdefs.h"
12593#include <GL/gl.h>
12594EOF
12595ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4b6b4dfc 12596{ (eval echo configure:12597: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3a922bb4
RL
12597ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12598if test -z "$ac_err"; then
12599 rm -rf conftest*
12600 eval "ac_cv_header_$ac_safe=yes"
12601else
12602 echo "$ac_err" >&5
12603 echo "configure: failed program was:" >&5
12604 cat conftest.$ac_ext >&5
12605 rm -rf conftest*
12606 eval "ac_cv_header_$ac_safe=no"
12607fi
12608rm -f conftest*
12609fi
12610if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12611 echo "$ac_t""yes" 1>&6
12612
1352efdf 12613 echo $ac_n "checking for -lGL""... $ac_c" 1>&6
4b6b4dfc 12614echo "configure:12615: checking for -lGL" >&5
57964555 12615
62d0491b
RL
12616ac_find_libraries=
12617for ac_dir in $SEARCH_LIB;
12618 do
12619 for ac_extension in a so sl dylib; do
12620 if test -f "$ac_dir/libGL.$ac_extension"; then
12621 ac_find_libraries=$ac_dir
12622 break 2
12623 fi
12624 done
12625 done
3a922bb4 12626
62d0491b
RL
12627 if test "$ac_find_libraries" != "" ; then
12628
12629 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
12630 result=$?
12631 if test $result = 0; then
12632 ac_path_to_link=""
12633 else
12634 ac_path_to_link=" -L$ac_find_libraries"
12635 fi
3a922bb4 12636
4b6b4dfc
RR
12637 if test "$ac_path_to_link" = " -L/usr/lib" ; then
12638 LDFLAGS_GL="$LDFLAGS"
12639 else
12640 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
12641 fi
62d0491b 12642 OPENGL_LIBS="-lGL -lGLU"
1352efdf 12643 echo "$ac_t""yes" 1>&6
62d0491b 12644 else
1352efdf
RL
12645 echo "$ac_t""no" 1>&6
12646 echo $ac_n "checking for -lMesaGL""... $ac_c" 1>&6
4b6b4dfc 12647echo "configure:12648: checking for -lMesaGL" >&5
62d0491b
RL
12648
12649ac_find_libraries=
12650for ac_dir in $SEARCH_LIB;
12651 do
12652 for ac_extension in a so sl dylib; do
12653 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
12654 ac_find_libraries=$ac_dir
12655 break 2
12656 fi
12657 done
12658 done
3a922bb4 12659
62d0491b 12660 if test "$ac_find_libraries" != "" ; then
57964555 12661
62d0491b
RL
12662 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
12663 result=$?
12664 if test $result = 0; then
12665 ac_path_to_link=""
12666 else
12667 ac_path_to_link=" -L$ac_find_libraries"
12668 fi
3a922bb4 12669
62d0491b
RL
12670 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
12671 OPENGL_LIBS="-lMesaGL -lMesaGLU"
1352efdf
RL
12672 echo "$ac_t""yes" 1>&6
12673 else
12674 echo "$ac_t""no" 1>&6
62d0491b
RL
12675 fi
12676 fi
12677
3a922bb4
RL
12678else
12679 echo "$ac_t""no" 1>&6
3a922bb4
RL
12680fi
12681
6f754473 12682
62d0491b
RL
12683
12684# AC_CHECK_HEADER(GL/gl.h,
12685# [
12686# AC_CHECK_LIB(GL, glFlush,
12687# [
12688# OPENGL_LIBS="-lGL -lGLU"
12689# ],
12690# [
12691# AC_CHECK_LIB(MesaGL, glFlush,
12692# [
12693# OPENGL_LIBS="-lMesaGL -lMesaGLU"
12694# ],
12695# [],
12696# [-lm])
12697# ],
12698# [-lm])
12699# ])
12700
12701 if test "x$OPENGL_LIBS" = "x"; then
12702 { echo "configure: error: OpenGL libraries not available" 1>&2; exit 1; }
12703 fi
6f754473 12704 fi
6f754473 12705
62d0491b
RL
12706 if test "$wxUSE_OPENGL" = "yes"; then
12707 cat >> confdefs.h <<\EOF
6f754473
VZ
12708#define wxUSE_OPENGL 1
12709EOF
12710
62d0491b 12711 cat >> confdefs.h <<\EOF
6f754473
VZ
12712#define wxUSE_GLCANVAS 1
12713EOF
12714
62d0491b
RL
12715 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl"
12716 fi
3a922bb4
RL
12717fi
12718
12719if test -z "$TOOLKIT_VPATH" ; then
12720 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}"
12721fi
12722
12723if test -n "$TOOLKIT" ; then
12724 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
12725fi
12726
f676c7ff
MB
12727lib_unicode_suffix=
12728if test "$wxUSE_UNICODE" = "yes"; then
12729 lib_unicode_suffix=u
12730fi
12731
3a922bb4
RL
12732lib_debug_suffix=
12733if test "$wxUSE_DEBUG_FLAG" = "yes"; then
12734 lib_debug_suffix=d
3a922bb4
RL
12735fi
12736
f676c7ff
MB
12737TOOLCHAIN_NAME="${TOOLKIT_DIR}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}-${WX_RELEASE}"
12738TOOLCHAIN_NAME_GL="${TOOLKIT_DIR}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_gl-${WX_RELEASE}"
3a922bb4
RL
12739
12740if test "$cross_compiling" = "yes"; then
12741 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}-${host_alias}"
12742 TOOLCHAIN_NAME_GL="${TOOLCHAIN_NAME_GL}-${host_alias}"
12743fi
12744
12745WX_LIBRARY="wx_${TOOLCHAIN_NAME}"
12746WX_LIBRARY_GL="wx_${TOOLCHAIN_NAME_GL}"
12747
3a922bb4
RL
12748WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
12749WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
12750
12751WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}"
12752WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
12753WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}"
12754WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
12755
d08b457b 12756WX_RESOURCES_MACOSX="lib${WX_LIBRARY}.rsrc"
e23081de 12757WX_RESOURCES_MACOSX_COMPILED="lib${WX_LIBRARY}.r"
3a922bb4 12758
978f1259
RL
12759case "${host}" in
12760 *-*-cygwin* | *-*-mingw32* )
12761
2da4f892 12762
978f1259
RL
12763
12764 if test "$cross_compiling" != "yes"; then
12765 WX_LIBRARY="wxmsw${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}"
12766 WX_LIBRARY_GL="wxmsw_gl${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}"
12767 WX_LIBRARY_NAME_SHARED="${WX_LIBRARY}.${SO_SUFFIX}"
12768 WX_LIBRARY_NAME_SHARED_GL="${WX_LIBRARY_GL}.${SO_SUFFIX}"
2da4f892
RL
12769 else
12770 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}"
12771 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
978f1259
RL
12772 fi
12773
12774esac
12775
12776WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a"
12777WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY_GL}.a"
12778
12779WXCONFIG_LIBS="-l${WX_LIBRARY}"
885d4bf5 12780WXCONFIG_LIBS_STATIC="lib${WX_LIBRARY}.a"
978f1259
RL
12781
12782if test "$wxUSE_OPENGL" = "yes"; then
885d4bf5
VS
12783 WXCONFIG_LIBS_GL="-l${WX_LIBRARY_GL} ${OPENGL_LIBS}"
12784 WXCONFIG_LIBS_STATIC_GL="lib${WX_LIBRARY_GL}.a ${OPENGL_LIBS}"
978f1259
RL
12785fi
12786
12787
3a922bb4
RL
12788
12789if test "$wxUSE_SHARED" = "yes"; then
55e80573
VZ
12790
12791 if test "$wxUSE_OPENGL" = "yes"; then
12792 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
3a922bb4 12793 WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1} \$(build_libdir)/${WX_LIBRARY_LINK1_GL}"
55e80573
VZ
12794 else
12795 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
3a922bb4 12796 WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1}"
55e80573
VZ
12797 fi
12798
dd4f7467 12799 if test "$GCC" = "yes"; then
55e80573 12800 PIC_FLAG="-fPIC"
dd4f7467 12801 fi
55e80573
VZ
12802
12803 SHARED_LD="${CXX} -shared -o"
698dcdb6 12804
10f2d63a
VZ
12805 case "${host}" in
12806 *-hp-hpux* )
d569ea8d
GD
12807 if test "$GCC" == "yes"; then
12808 SHARED_LD="${SHARED_LD} ${PIC_FLAG}"
12809 else
3d63bc3a 12810 LDFLAGS="$LDFLAGS -L/usr/lib"
f6bcfd97 12811
10f2d63a
VZ
12812 SHARED_LD="${CXX} -b -o"
12813 PIC_FLAG="+Z"
12814 fi
55e80573 12815
7b7a7637
RL
12816 if test "$wxUSE_OPENGL" = "yes"; then
12817 WX_ALL_INSTALLED="preinstall_gl"
12818 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}"
12819 else
12820 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}"
12821 fi
10f2d63a 12822 ;;
b12915c1 12823
55e80573
VZ
12824 *-*-linux* )
12825 if test "$GCC" != "yes"; then
12826 echo $ac_n "checking for Intel compiler""... $ac_c" 1>&6
4b6b4dfc 12827echo "configure:12828: checking for Intel compiler" >&5
55e80573
VZ
12828if eval "test \"`echo '$''{'wx_cv_prog_icc'+set}'`\" = set"; then
12829 echo $ac_n "(cached) $ac_c" 1>&6
12830else
12831
12832 cat > conftest.$ac_ext <<EOF
4b6b4dfc 12833#line 12834 "configure"
55e80573
VZ
12834#include "confdefs.h"
12835
12836int main() {
12837
12838 #ifndef __INTEL_COMPILER
dd4f7467 12839 #error Not icc
55e80573
VZ
12840 #endif
12841
12842; return 0; }
12843EOF
4b6b4dfc 12844if { (eval echo configure:12845: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
55e80573
VZ
12845 rm -rf conftest*
12846 wx_cv_prog_icc=yes
12847else
12848 echo "configure: failed program was:" >&5
12849 cat conftest.$ac_ext >&5
12850 rm -rf conftest*
12851 wx_cv_prog_icc=no
12852
12853fi
12854rm -f conftest*
12855
12856fi
12857
12858echo "$ac_t""$wx_cv_prog_icc" 1>&6
55e80573
VZ
12859 if test "$wx_cv_prog_icc" = "yes"; then
12860 PIC_FLAG="-KPIC"
12861 fi
12862 fi
12863
3a922bb4
RL
12864 if test "$wxUSE_SONAME" = "yes" ; then
12865 SONAME_FLAGS="-Wl,-soname,${WX_LIBRARY_LINK1}"
12866 SONAME_FLAGS_GL="-Wl,-soname,${WX_LIBRARY_LINK1_GL}"
f6bcfd97 12867 WX_TARGET_LIBRARY_SONAME="-Wl,-soname,\$(TARGETLIB_LINK1)"
00cf1208 12868 fi
10f2d63a 12869 ;;
55e80573 12870
10f2d63a
VZ
12871 *-*-solaris2* )
12872 if test "$GCC" = yes ; then
f6bcfd97 12873 CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
10f2d63a
VZ
12874 else
12875 SHARED_LD="${CXX} -G -o"
12876 PIC_FLAG="-KPIC"
7b7a7637 12877 SONAME_FLAGS="-h ${WX_LIBRARY_NAME_SHARED}"
471944dc 12878 SONAME_FLAGS_GL="-h ${WX_LIBRARY_NAME_SHARED_GL}"
10f2d63a 12879 fi
10f2d63a 12880 ;;
55e80573 12881
b4085ce6 12882 *-*-darwin* )
156b2523
GD
12883 CFLAGS="$CFLAGS -fno-common -DDYLIB_INIT"
12884 CXXFLAGS="$CXXFLAGS -fno-common -DDYLIB_INIT"
12885 SHARED_LD="$CXX -dynamiclib -init _wxWindowsDylibInit -o"
ea5999b9 12886 PIC_FLAG="-dynamic -fPIC"
10f2d63a 12887 ;;
55e80573 12888
10f2d63a
VZ
12889 *-*-aix* )
12890 SHARED_LD="/usr/lpp/xlC/bin/makeC++SharedLib -p 0 -o"
10f2d63a 12891 ;;
55e80573 12892
7b7a7637 12893 *-*-cygwin* | *-*-mingw32* )
77e13408 12894
2da4f892 12895 WX_LIBRARY_IMPORTLIB="${WX_LIBRARY_NAME_SHARED}.a"
77e13408 12896
77e13408 12897 SHARED_LD="${CXX} -shared -Wl,--out-implib,lib/${WX_LIBRARY_IMPORTLIB} -o"
00c81359 12898 TOOLCHAIN_DLL_DEFS="${TOOLCHAIN_DLL_DEFS} -DWXUSINGDLL=1"
25d0687a
RL
12899
12900 PIC_FLAG="-UWXUSINGDLL -DWXMAKINGDLL=1 -D_DLL=1 -D_WINDLL=1"
7b7a7637
RL
12901
12902 if test "$wxUSE_OPENGL" = "yes"; then
f6bcfd97 12903 WX_ALL_INSTALLED="preinstall_gl"
978f1259 12904 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}"
f6bcfd97 12905 else
978f1259 12906 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}"
f6bcfd97 12907 fi
10f2d63a 12908 ;;
55e80573 12909
6fa882bd 12910 *-pc-os2_emx | *-pc-os2-emx )
7b7a7637 12911 wxUSE_SHARED=no
10f2d63a 12912 ;;
55e80573 12913
b12915c1 12914 *-*-beos* )
e2b8b066 12915 SHARED_LD="${LD} -shared -o"
b12915c1 12916 ;;
55e80573
VZ
12917
12918 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
12919 *-*-sunos4* | \
12920 *-*-irix5* | *-*-irix6* | \
12921 *-*-osf* | \
12922 *-*-dgux5* | \
12923 *-*-sysv5* )
12924 ;;
12925
10f2d63a 12926 *)
7b7a7637 12927 { echo "configure: error: unknown system type $host." 1>&2; exit 1; }
10f2d63a
VZ
12928 esac
12929
12930 if test "x$WX_TARGET_LIBRARY" = "x"; then
12931 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
bdad4e7e 12932 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}"
10f2d63a 12933 fi
55e80573 12934
3711412e 12935 WX_TARGET_LIBRARY_TYPE="so"
885d4bf5 12936 INSTALL_LIBRARY='$(INSTALL_PROGRAM)'
3a922bb4 12937fi
f6bcfd97 12938
3a922bb4 12939if test "$wxUSE_SHARED" = "no"; then
f6bcfd97 12940
3a922bb4 12941 if test "$wxUSE_GUI" = "no" -o "$USE_WIN32" = 1 ; then
f6bcfd97
BP
12942 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
12943 fi
12944
6fa882bd
RR
12945 if test "$wxUSE_MAC" = 1; then
12946 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
12947 fi
12948
3a922bb4
RL
12949 if test "$wxUSE_OPENGL" = "yes"; then
12950 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_gl"
12951 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC} \$(build_libdir)/${WX_LIBRARY_NAME_STATIC_GL}"
12952 else
12953 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC}"
12954 fi
698dcdb6 12955
3a922bb4
RL
12956 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
12957 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
12958
12959 WX_TARGET_LIBRARY_TYPE="a"
885d4bf5 12960 INSTALL_LIBRARY='$(INSTALL_DATA)'
10f2d63a 12961fi
10f2d63a 12962
d08b457b
GD
12963if test "$wxUSE_MAC" = 1; then
12964 WX_ALL="${WX_ALL} \$(build_libdir)/lib${WX_LIBRARY}.r"
e23081de 12965 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_res"
d08b457b
GD
12966 # Extract the first word of "Rez", so it can be a program name with args.
12967set dummy Rez; ac_word=$2
12968echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4b6b4dfc 12969echo "configure:12970: checking for $ac_word" >&5
d08b457b
GD
12970if eval "test \"`echo '$''{'ac_cv_prog_RESCOMP'+set}'`\" = set"; then
12971 echo $ac_n "(cached) $ac_c" 1>&6
12972else
12973 if test -n "$RESCOMP"; then
12974 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
12975else
12976 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
12977 ac_dummy="$PATH"
12978 for ac_dir in $ac_dummy; do
12979 test -z "$ac_dir" && ac_dir=.
12980 if test -f $ac_dir/$ac_word; then
12981 ac_cv_prog_RESCOMP="Rez"
12982 break
12983 fi
12984 done
12985 IFS="$ac_save_ifs"
12986 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
12987fi
12988fi
12989RESCOMP="$ac_cv_prog_RESCOMP"
12990if test -n "$RESCOMP"; then
12991 echo "$ac_t""$RESCOMP" 1>&6
12992else
12993 echo "$ac_t""no" 1>&6
12994fi
12995
9f8148b1
GD
12996 # Extract the first word of "DeRez", so it can be a program name with args.
12997set dummy DeRez; ac_word=$2
d08b457b 12998echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4b6b4dfc 12999echo "configure:13000: checking for $ac_word" >&5
d08b457b
GD
13000if eval "test \"`echo '$''{'ac_cv_prog_DEREZ'+set}'`\" = set"; then
13001 echo $ac_n "(cached) $ac_c" 1>&6
13002else
13003 if test -n "$DEREZ"; then
13004 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
13005else
13006 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
13007 ac_dummy="$PATH"
13008 for ac_dir in $ac_dummy; do
13009 test -z "$ac_dir" && ac_dir=.
13010 if test -f $ac_dir/$ac_word; then
9f8148b1 13011 ac_cv_prog_DEREZ="DeRez"
d08b457b
GD
13012 break
13013 fi
13014 done
13015 IFS="$ac_save_ifs"
9f8148b1 13016 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
d08b457b
GD
13017fi
13018fi
13019DEREZ="$ac_cv_prog_DEREZ"
13020if test -n "$DEREZ"; then
13021 echo "$ac_t""$DEREZ" 1>&6
13022else
13023 echo "$ac_t""no" 1>&6
13024fi
13025
13026 LIBWXMACRES="\$(top_builddir)/lib/lib${WX_LIBRARY}.r"
13027 LIBWXMACRESCOMP="\$(RESCOMP) Carbon.r -t APPL ${LIBWXMACRES} -o \$(BIN_PROGRAM)"
e23081de 13028 LIBWXMACRESWXCONFIG="${RESCOMP} Carbon.r -t APPL \${prefix}/lib/${WX_RESOURCES_MACOSX_COMPILED} -o"
d08b457b
GD
13029fi
13030
3a922bb4 13031
13c0541d
GD
13032if test "$wxUSE_MAC" != 1; then
13033 for ac_hdr in strings.h
9cfadba2 13034do
698dcdb6
VZ
13035ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13036echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4b6b4dfc 13037echo "configure:13038: checking for $ac_hdr" >&5
698dcdb6
VZ
13038if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13039 echo $ac_n "(cached) $ac_c" 1>&6
13040else
13041 cat > conftest.$ac_ext <<EOF
4b6b4dfc 13042#line 13043 "configure"
9cfadba2 13043#include "confdefs.h"
698dcdb6
VZ
13044#include <$ac_hdr>
13045EOF
13046ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4b6b4dfc 13047{ (eval echo configure:13048: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
13048ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13049if test -z "$ac_err"; then
13050 rm -rf conftest*
13051 eval "ac_cv_header_$ac_safe=yes"
6232543b 13052else
698dcdb6
VZ
13053 echo "$ac_err" >&5
13054 echo "configure: failed program was:" >&5
9cfadba2 13055 cat conftest.$ac_ext >&5
698dcdb6
VZ
13056 rm -rf conftest*
13057 eval "ac_cv_header_$ac_safe=no"
9cfadba2 13058fi
698dcdb6 13059rm -f conftest*
9cfadba2 13060fi
698dcdb6
VZ
13061if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13062 echo "$ac_t""yes" 1>&6
13063 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13064 cat >> confdefs.h <<EOF
13065#define $ac_tr_hdr 1
9cfadba2 13066EOF
698dcdb6
VZ
13067
13068else
13069 echo "$ac_t""no" 1>&6
9cfadba2
VZ
13070fi
13071done
10f2d63a 13072
13c0541d
GD
13073fi
13074
3a922bb4 13075for ac_hdr in stdlib.h
10f2d63a 13076do
698dcdb6
VZ
13077ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13078echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4b6b4dfc 13079echo "configure:13080: checking for $ac_hdr" >&5
698dcdb6
VZ
13080if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13081 echo $ac_n "(cached) $ac_c" 1>&6
13082else
13083 cat > conftest.$ac_ext <<EOF
4b6b4dfc 13084#line 13085 "configure"
10f2d63a 13085#include "confdefs.h"
698dcdb6
VZ
13086#include <$ac_hdr>
13087EOF
13088ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4b6b4dfc 13089{ (eval echo configure:13090: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
13090ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13091if test -z "$ac_err"; then
13092 rm -rf conftest*
13093 eval "ac_cv_header_$ac_safe=yes"
6232543b 13094else
698dcdb6
VZ
13095 echo "$ac_err" >&5
13096 echo "configure: failed program was:" >&5
10f2d63a 13097 cat conftest.$ac_ext >&5
698dcdb6
VZ
13098 rm -rf conftest*
13099 eval "ac_cv_header_$ac_safe=no"
10f2d63a 13100fi
698dcdb6 13101rm -f conftest*
10f2d63a 13102fi
698dcdb6
VZ
13103if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13104 echo "$ac_t""yes" 1>&6
13105 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13106 cat >> confdefs.h <<EOF
13107#define $ac_tr_hdr 1
10f2d63a 13108EOF
698dcdb6
VZ
13109
13110else
13111 echo "$ac_t""no" 1>&6
10f2d63a
VZ
13112fi
13113done
13114
9f8148b1 13115for ac_hdr in malloc.h
10f2d63a 13116do
698dcdb6
VZ
13117ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13118echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4b6b4dfc 13119echo "configure:13120: checking for $ac_hdr" >&5
698dcdb6
VZ
13120if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13121 echo $ac_n "(cached) $ac_c" 1>&6
13122else
13123 cat > conftest.$ac_ext <<EOF
4b6b4dfc 13124#line 13125 "configure"
10f2d63a 13125#include "confdefs.h"
698dcdb6
VZ
13126#include <$ac_hdr>
13127EOF
13128ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4b6b4dfc 13129{ (eval echo configure:13130: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
13130ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13131if test -z "$ac_err"; then
13132 rm -rf conftest*
13133 eval "ac_cv_header_$ac_safe=yes"
6f72b082 13134else
698dcdb6
VZ
13135 echo "$ac_err" >&5
13136 echo "configure: failed program was:" >&5
6f72b082 13137 cat conftest.$ac_ext >&5
698dcdb6
VZ
13138 rm -rf conftest*
13139 eval "ac_cv_header_$ac_safe=no"
6f72b082 13140fi
698dcdb6 13141rm -f conftest*
6f72b082 13142fi
698dcdb6
VZ
13143if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13144 echo "$ac_t""yes" 1>&6
13145 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13146 cat >> confdefs.h <<EOF
13147#define $ac_tr_hdr 1
6f72b082 13148EOF
698dcdb6
VZ
13149
13150else
13151 echo "$ac_t""no" 1>&6
6f72b082
OK
13152fi
13153done
13154
9f8148b1 13155for ac_hdr in unistd.h
6f72b082 13156do
698dcdb6
VZ
13157ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13158echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4b6b4dfc 13159echo "configure:13160: checking for $ac_hdr" >&5
698dcdb6
VZ
13160if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13161 echo $ac_n "(cached) $ac_c" 1>&6
13162else
13163 cat > conftest.$ac_ext <<EOF
4b6b4dfc 13164#line 13165 "configure"
6f72b082 13165#include "confdefs.h"
698dcdb6
VZ
13166#include <$ac_hdr>
13167EOF
13168ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4b6b4dfc 13169{ (eval echo configure:13170: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
13170ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13171if test -z "$ac_err"; then
13172 rm -rf conftest*
13173 eval "ac_cv_header_$ac_safe=yes"
6f72b082 13174else
698dcdb6
VZ
13175 echo "$ac_err" >&5
13176 echo "configure: failed program was:" >&5
6f72b082 13177 cat conftest.$ac_ext >&5
698dcdb6
VZ
13178 rm -rf conftest*
13179 eval "ac_cv_header_$ac_safe=no"
6f72b082 13180fi
698dcdb6 13181rm -f conftest*
6f72b082 13182fi
698dcdb6
VZ
13183if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13184 echo "$ac_t""yes" 1>&6
13185 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13186 cat >> confdefs.h <<EOF
13187#define $ac_tr_hdr 1
6f72b082 13188EOF
698dcdb6
VZ
13189
13190else
13191 echo "$ac_t""no" 1>&6
6f72b082
OK
13192fi
13193done
13194
9f8148b1 13195for ac_hdr in wchar.h
6f72b082 13196do
698dcdb6
VZ
13197ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13198echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4b6b4dfc 13199echo "configure:13200: checking for $ac_hdr" >&5
698dcdb6
VZ
13200if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13201 echo $ac_n "(cached) $ac_c" 1>&6
13202else
13203 cat > conftest.$ac_ext <<EOF
4b6b4dfc 13204#line 13205 "configure"
6f72b082 13205#include "confdefs.h"
698dcdb6
VZ
13206#include <$ac_hdr>
13207EOF
13208ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4b6b4dfc 13209{ (eval echo configure:13210: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
13210ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13211if test -z "$ac_err"; then
13212 rm -rf conftest*
13213 eval "ac_cv_header_$ac_safe=yes"
10f2d63a 13214else
698dcdb6
VZ
13215 echo "$ac_err" >&5
13216 echo "configure: failed program was:" >&5
10f2d63a 13217 cat conftest.$ac_ext >&5
698dcdb6
VZ
13218 rm -rf conftest*
13219 eval "ac_cv_header_$ac_safe=no"
10f2d63a 13220fi
698dcdb6 13221rm -f conftest*
10f2d63a 13222fi
698dcdb6
VZ
13223if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13224 echo "$ac_t""yes" 1>&6
13225 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13226 cat >> confdefs.h <<EOF
13227#define $ac_tr_hdr 1
10f2d63a 13228EOF
698dcdb6
VZ
13229
13230else
13231 echo "$ac_t""no" 1>&6
10f2d63a
VZ
13232fi
13233done
13234
9f8148b1 13235for ac_hdr in wcstr.h
0fb0dd83 13236do
698dcdb6
VZ
13237ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13238echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4b6b4dfc 13239echo "configure:13240: checking for $ac_hdr" >&5
698dcdb6
VZ
13240if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13241 echo $ac_n "(cached) $ac_c" 1>&6
13242else
13243 cat > conftest.$ac_ext <<EOF
4b6b4dfc 13244#line 13245 "configure"
0fb0dd83 13245#include "confdefs.h"
698dcdb6
VZ
13246#include <$ac_hdr>
13247EOF
13248ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4b6b4dfc 13249{ (eval echo configure:13250: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
13250ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13251if test -z "$ac_err"; then
13252 rm -rf conftest*
13253 eval "ac_cv_header_$ac_safe=yes"
0fb0dd83 13254else
698dcdb6
VZ
13255 echo "$ac_err" >&5
13256 echo "configure: failed program was:" >&5
0fb0dd83 13257 cat conftest.$ac_ext >&5
698dcdb6
VZ
13258 rm -rf conftest*
13259 eval "ac_cv_header_$ac_safe=no"
0fb0dd83 13260fi
698dcdb6 13261rm -f conftest*
0fb0dd83 13262fi
698dcdb6
VZ
13263if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13264 echo "$ac_t""yes" 1>&6
13265 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13266 cat >> confdefs.h <<EOF
13267#define $ac_tr_hdr 1
0fb0dd83 13268EOF
698dcdb6
VZ
13269
13270else
13271 echo "$ac_t""no" 1>&6
0fb0dd83
RR
13272fi
13273done
13274
9f8148b1 13275for ac_hdr in wctype.h
1f8ae82f 13276do
698dcdb6
VZ
13277ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13278echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4b6b4dfc 13279echo "configure:13280: checking for $ac_hdr" >&5
698dcdb6
VZ
13280if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13281 echo $ac_n "(cached) $ac_c" 1>&6
13282else
13283 cat > conftest.$ac_ext <<EOF
4b6b4dfc 13284#line 13285 "configure"
1f8ae82f 13285#include "confdefs.h"
698dcdb6
VZ
13286#include <$ac_hdr>
13287EOF
13288ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4b6b4dfc 13289{ (eval echo configure:13290: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
13290ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13291if test -z "$ac_err"; then
13292 rm -rf conftest*
13293 eval "ac_cv_header_$ac_safe=yes"
1f8ae82f 13294else
698dcdb6
VZ
13295 echo "$ac_err" >&5
13296 echo "configure: failed program was:" >&5
1f8ae82f 13297 cat conftest.$ac_ext >&5
698dcdb6
VZ
13298 rm -rf conftest*
13299 eval "ac_cv_header_$ac_safe=no"
1f8ae82f 13300fi
698dcdb6 13301rm -f conftest*
1f8ae82f 13302fi
698dcdb6
VZ
13303if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13304 echo "$ac_t""yes" 1>&6
13305 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13306 cat >> confdefs.h <<EOF
13307#define $ac_tr_hdr 1
1f8ae82f 13308EOF
698dcdb6
VZ
13309
13310else
13311 echo "$ac_t""no" 1>&6
1f8ae82f
GD
13312fi
13313done
13314
9f8148b1 13315for ac_hdr in fnmatch.h
10f2d63a 13316do
698dcdb6
VZ
13317ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13318echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4b6b4dfc 13319echo "configure:13320: checking for $ac_hdr" >&5
698dcdb6
VZ
13320if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13321 echo $ac_n "(cached) $ac_c" 1>&6
13322else
13323 cat > conftest.$ac_ext <<EOF
4b6b4dfc 13324#line 13325 "configure"
10f2d63a 13325#include "confdefs.h"
698dcdb6
VZ
13326#include <$ac_hdr>
13327EOF
13328ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4b6b4dfc 13329{ (eval echo configure:13330: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
13330ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13331if test -z "$ac_err"; then
13332 rm -rf conftest*
13333 eval "ac_cv_header_$ac_safe=yes"
10f2d63a 13334else
698dcdb6
VZ
13335 echo "$ac_err" >&5
13336 echo "configure: failed program was:" >&5
10f2d63a 13337 cat conftest.$ac_ext >&5
698dcdb6
VZ
13338 rm -rf conftest*
13339 eval "ac_cv_header_$ac_safe=no"
10f2d63a 13340fi
698dcdb6 13341rm -f conftest*
10f2d63a 13342fi
698dcdb6
VZ
13343if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13344 echo "$ac_t""yes" 1>&6
13345 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13346 cat >> confdefs.h <<EOF
13347#define $ac_tr_hdr 1
10f2d63a 13348EOF
698dcdb6
VZ
13349
13350else
13351 echo "$ac_t""no" 1>&6
10f2d63a
VZ
13352fi
13353done
13354
9f8148b1 13355for ac_hdr in iconv.h
0fbb762e
MB
13356do
13357ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13358echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4b6b4dfc 13359echo "configure:13360: checking for $ac_hdr" >&5
0fbb762e
MB
13360if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13361 echo $ac_n "(cached) $ac_c" 1>&6
13362else
13363 cat > conftest.$ac_ext <<EOF
4b6b4dfc 13364#line 13365 "configure"
0fbb762e
MB
13365#include "confdefs.h"
13366#include <$ac_hdr>
13367EOF
13368ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4b6b4dfc 13369{ (eval echo configure:13370: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
0fbb762e
MB
13370ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13371if test -z "$ac_err"; then
13372 rm -rf conftest*
13373 eval "ac_cv_header_$ac_safe=yes"
13374else
13375 echo "$ac_err" >&5
13376 echo "configure: failed program was:" >&5
13377 cat conftest.$ac_ext >&5
13378 rm -rf conftest*
13379 eval "ac_cv_header_$ac_safe=no"
13380fi
13381rm -f conftest*
13382fi
13383if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13384 echo "$ac_t""yes" 1>&6
13385 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13386 cat >> confdefs.h <<EOF
13387#define $ac_tr_hdr 1
13388EOF
13389
13390else
13391 echo "$ac_t""no" 1>&6
13392fi
13393done
13394
9f8148b1
GD
13395for ac_hdr in langinfo.h
13396do
13397ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13398echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4b6b4dfc 13399echo "configure:13400: checking for $ac_hdr" >&5
9f8148b1
GD
13400if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13401 echo $ac_n "(cached) $ac_c" 1>&6
13402else
13403 cat > conftest.$ac_ext <<EOF
4b6b4dfc 13404#line 13405 "configure"
9f8148b1
GD
13405#include "confdefs.h"
13406#include <$ac_hdr>
13407EOF
13408ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4b6b4dfc 13409{ (eval echo configure:13410: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9f8148b1
GD
13410ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13411if test -z "$ac_err"; then
13412 rm -rf conftest*
13413 eval "ac_cv_header_$ac_safe=yes"
13414else
13415 echo "$ac_err" >&5
13416 echo "configure: failed program was:" >&5
13417 cat conftest.$ac_ext >&5
13418 rm -rf conftest*
13419 eval "ac_cv_header_$ac_safe=no"
13420fi
13421rm -f conftest*
13422fi
13423if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13424 echo "$ac_t""yes" 1>&6
13425 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13426 cat >> confdefs.h <<EOF
13427#define $ac_tr_hdr 1
13428EOF
13429
13430else
13431 echo "$ac_t""no" 1>&6
13432fi
13433done
13434
10f2d63a 13435
3a922bb4
RL
13436if test "$wxUSE_GUI" = "yes"; then
13437 if test "$wxUSE_UNIX" = "yes"; then
13438 for ac_hdr in X11/XKBlib.h
29fd3c0c
VS
13439do
13440ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13441echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4b6b4dfc 13442echo "configure:13443: checking for $ac_hdr" >&5
29fd3c0c
VS
13443if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13444 echo $ac_n "(cached) $ac_c" 1>&6
13445else
13446 cat > conftest.$ac_ext <<EOF
4b6b4dfc 13447#line 13448 "configure"
29fd3c0c
VS
13448#include "confdefs.h"
13449#include <$ac_hdr>
13450EOF
13451ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4b6b4dfc 13452{ (eval echo configure:13453: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
29fd3c0c
VS
13453ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13454if test -z "$ac_err"; then
13455 rm -rf conftest*
13456 eval "ac_cv_header_$ac_safe=yes"
13457else
13458 echo "$ac_err" >&5
13459 echo "configure: failed program was:" >&5
13460 cat conftest.$ac_ext >&5
13461 rm -rf conftest*
13462 eval "ac_cv_header_$ac_safe=no"
13463fi
13464rm -f conftest*
13465fi
13466if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13467 echo "$ac_t""yes" 1>&6
13468 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13469 cat >> confdefs.h <<EOF
13470#define $ac_tr_hdr 1
13471EOF
13472
13473else
13474 echo "$ac_t""no" 1>&6
13475fi
13476done
13477
3a922bb4 13478 fi
29fd3c0c
VS
13479fi
13480
698dcdb6
VZ
13481
13482echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
4b6b4dfc 13483echo "configure:13484: checking for ANSI C header files" >&5
698dcdb6
VZ
13484if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
13485 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 13486else
698dcdb6 13487 cat > conftest.$ac_ext <<EOF
4b6b4dfc 13488#line 13489 "configure"
10f2d63a
VZ
13489#include "confdefs.h"
13490#include <stdlib.h>
13491#include <stdarg.h>
13492#include <string.h>
13493#include <float.h>
698dcdb6
VZ
13494EOF
13495ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4b6b4dfc 13496{ (eval echo configure:13497: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
13497ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13498if test -z "$ac_err"; then
13499 rm -rf conftest*
10f2d63a
VZ
13500 ac_cv_header_stdc=yes
13501else
698dcdb6
VZ
13502 echo "$ac_err" >&5
13503 echo "configure: failed program was:" >&5
10f2d63a 13504 cat conftest.$ac_ext >&5
698dcdb6 13505 rm -rf conftest*
10f2d63a
VZ
13506 ac_cv_header_stdc=no
13507fi
698dcdb6 13508rm -f conftest*
10f2d63a
VZ
13509
13510if test $ac_cv_header_stdc = yes; then
13511 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
698dcdb6 13512cat > conftest.$ac_ext <<EOF
4b6b4dfc 13513#line 13514 "configure"
10f2d63a
VZ
13514#include "confdefs.h"
13515#include <string.h>
698dcdb6 13516EOF
10f2d63a
VZ
13517if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13518 egrep "memchr" >/dev/null 2>&1; then
13519 :
13520else
698dcdb6 13521 rm -rf conftest*
10f2d63a
VZ
13522 ac_cv_header_stdc=no
13523fi
13524rm -f conftest*
13525
13526fi
13527
13528if test $ac_cv_header_stdc = yes; then
13529 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
698dcdb6 13530cat > conftest.$ac_ext <<EOF
4b6b4dfc 13531#line 13532 "configure"
10f2d63a
VZ
13532#include "confdefs.h"
13533#include <stdlib.h>
698dcdb6 13534EOF
10f2d63a
VZ
13535if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13536 egrep "free" >/dev/null 2>&1; then
13537 :
13538else
698dcdb6 13539 rm -rf conftest*
10f2d63a
VZ
13540 ac_cv_header_stdc=no
13541fi
13542rm -f conftest*
13543
13544fi
13545
13546if test $ac_cv_header_stdc = yes; then
13547 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
698dcdb6 13548if test "$cross_compiling" = yes; then
10f2d63a
VZ
13549 :
13550else
698dcdb6 13551 cat > conftest.$ac_ext <<EOF
4b6b4dfc 13552#line 13553 "configure"
10f2d63a
VZ
13553#include "confdefs.h"
13554#include <ctype.h>
698dcdb6
VZ
13555#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13556#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1e487827 13557#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
698dcdb6
VZ
13558int main () { int i; for (i = 0; i < 256; i++)
13559if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
13560exit (0); }
13561
13562EOF
4b6b4dfc 13563if { (eval echo configure:13564: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6 13564then
10f2d63a
VZ
13565 :
13566else
698dcdb6
VZ
13567 echo "configure: failed program was:" >&5
13568 cat conftest.$ac_ext >&5
13569 rm -fr conftest*
13570 ac_cv_header_stdc=no
10f2d63a 13571fi
698dcdb6 13572rm -fr conftest*
10f2d63a 13573fi
698dcdb6 13574
10f2d63a
VZ
13575fi
13576fi
1e487827 13577
698dcdb6
VZ
13578echo "$ac_t""$ac_cv_header_stdc" 1>&6
13579if test $ac_cv_header_stdc = yes; then
13580 cat >> confdefs.h <<\EOF
10f2d63a
VZ
13581#define STDC_HEADERS 1
13582EOF
13583
13584fi
13585
698dcdb6 13586echo $ac_n "checking for mode_t""... $ac_c" 1>&6
4b6b4dfc 13587echo "configure:13588: checking for mode_t" >&5
698dcdb6
VZ
13588if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
13589 echo $ac_n "(cached) $ac_c" 1>&6
1e487827 13590else
698dcdb6 13591 cat > conftest.$ac_ext <<EOF
4b6b4dfc 13592#line 13593 "configure"
1e487827 13593#include "confdefs.h"
698dcdb6
VZ
13594#include <sys/types.h>
13595#if STDC_HEADERS
13596#include <stdlib.h>
13597#include <stddef.h>
13598#endif
13599EOF
13600if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13601 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
13602 rm -rf conftest*
10f2d63a
VZ
13603 ac_cv_type_mode_t=yes
13604else
698dcdb6
VZ
13605 rm -rf conftest*
13606 ac_cv_type_mode_t=no
703e0a69 13607fi
698dcdb6 13608rm -f conftest*
1e487827 13609
698dcdb6
VZ
13610fi
13611echo "$ac_t""$ac_cv_type_mode_t" 1>&6
13612if test $ac_cv_type_mode_t = no; then
13613 cat >> confdefs.h <<\EOF
10f2d63a
VZ
13614#define mode_t int
13615EOF
13616
13617fi
13618
698dcdb6 13619echo $ac_n "checking for off_t""... $ac_c" 1>&6
4b6b4dfc 13620echo "configure:13621: checking for off_t" >&5
698dcdb6
VZ
13621if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
13622 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 13623else
698dcdb6 13624 cat > conftest.$ac_ext <<EOF
4b6b4dfc 13625#line 13626 "configure"
10f2d63a 13626#include "confdefs.h"
698dcdb6
VZ
13627#include <sys/types.h>
13628#if STDC_HEADERS
13629#include <stdlib.h>
13630#include <stddef.h>
13631#endif
13632EOF
13633if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13634 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
13635 rm -rf conftest*
10f2d63a
VZ
13636 ac_cv_type_off_t=yes
13637else
698dcdb6
VZ
13638 rm -rf conftest*
13639 ac_cv_type_off_t=no
703e0a69 13640fi
698dcdb6 13641rm -f conftest*
1e487827 13642
698dcdb6
VZ
13643fi
13644echo "$ac_t""$ac_cv_type_off_t" 1>&6
13645if test $ac_cv_type_off_t = no; then
13646 cat >> confdefs.h <<\EOF
10f2d63a
VZ
13647#define off_t long
13648EOF
13649
13650fi
13651
698dcdb6 13652echo $ac_n "checking for pid_t""... $ac_c" 1>&6
4b6b4dfc 13653echo "configure:13654: checking for pid_t" >&5
698dcdb6
VZ
13654if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
13655 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 13656else
698dcdb6 13657 cat > conftest.$ac_ext <<EOF
4b6b4dfc 13658#line 13659 "configure"
10f2d63a 13659#include "confdefs.h"
698dcdb6
VZ
13660#include <sys/types.h>
13661#if STDC_HEADERS
13662#include <stdlib.h>
13663#include <stddef.h>
13664#endif
13665EOF
13666if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13667 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
13668 rm -rf conftest*
10f2d63a
VZ
13669 ac_cv_type_pid_t=yes
13670else
698dcdb6
VZ
13671 rm -rf conftest*
13672 ac_cv_type_pid_t=no
703e0a69 13673fi
698dcdb6 13674rm -f conftest*
1e487827 13675
698dcdb6
VZ
13676fi
13677echo "$ac_t""$ac_cv_type_pid_t" 1>&6
13678if test $ac_cv_type_pid_t = no; then
13679 cat >> confdefs.h <<\EOF
10f2d63a
VZ
13680#define pid_t int
13681EOF
13682
13683fi
13684
698dcdb6 13685echo $ac_n "checking for size_t""... $ac_c" 1>&6
4b6b4dfc 13686echo "configure:13687: checking for size_t" >&5
698dcdb6
VZ
13687if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
13688 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 13689else
698dcdb6 13690 cat > conftest.$ac_ext <<EOF
4b6b4dfc 13691#line 13692 "configure"
10f2d63a 13692#include "confdefs.h"
698dcdb6
VZ
13693#include <sys/types.h>
13694#if STDC_HEADERS
13695#include <stdlib.h>
13696#include <stddef.h>
13697#endif
13698EOF
13699if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13700 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
13701 rm -rf conftest*
10f2d63a
VZ
13702 ac_cv_type_size_t=yes
13703else
698dcdb6
VZ
13704 rm -rf conftest*
13705 ac_cv_type_size_t=no
703e0a69 13706fi
698dcdb6 13707rm -f conftest*
1e487827 13708
698dcdb6
VZ
13709fi
13710echo "$ac_t""$ac_cv_type_size_t" 1>&6
13711if test $ac_cv_type_size_t = no; then
13712 cat >> confdefs.h <<\EOF
10f2d63a
VZ
13713#define size_t unsigned
13714EOF
13715
13716fi
13717
698dcdb6 13718echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
4b6b4dfc 13719echo "configure:13720: checking for uid_t in sys/types.h" >&5
698dcdb6
VZ
13720if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
13721 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 13722else
698dcdb6 13723 cat > conftest.$ac_ext <<EOF
4b6b4dfc 13724#line 13725 "configure"
10f2d63a
VZ
13725#include "confdefs.h"
13726#include <sys/types.h>
698dcdb6 13727EOF
10f2d63a
VZ
13728if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13729 egrep "uid_t" >/dev/null 2>&1; then
698dcdb6 13730 rm -rf conftest*
10f2d63a
VZ
13731 ac_cv_type_uid_t=yes
13732else
698dcdb6 13733 rm -rf conftest*
10f2d63a
VZ
13734 ac_cv_type_uid_t=no
13735fi
13736rm -f conftest*
13737
13738fi
1e487827 13739
698dcdb6
VZ
13740echo "$ac_t""$ac_cv_type_uid_t" 1>&6
13741if test $ac_cv_type_uid_t = no; then
13742 cat >> confdefs.h <<\EOF
10f2d63a
VZ
13743#define uid_t int
13744EOF
13745
698dcdb6 13746 cat >> confdefs.h <<\EOF
10f2d63a
VZ
13747#define gid_t int
13748EOF
13749
13750fi
13751
1e487827 13752
698dcdb6 13753echo $ac_n "checking for wchar_t""... $ac_c" 1>&6
4b6b4dfc 13754echo "configure:13755: checking for wchar_t" >&5
698dcdb6
VZ
13755if eval "test \"`echo '$''{'wx_cv_type_wchar_t'+set}'`\" = set"; then
13756 echo $ac_n "(cached) $ac_c" 1>&6
13757else
13758
13759 cat > conftest.$ac_ext <<EOF
4b6b4dfc 13760#line 13761 "configure"
0046ff7c 13761#include "confdefs.h"
4b42290e
GD
13762
13763 #ifdef HAVE_WCHAR_H
0fbb762e
MB
13764 # ifdef __CYGWIN__
13765 # include <stddef.h>
13766 # endif
4b42290e
GD
13767 # include <wchar.h>
13768 #endif
13769 #ifdef HAVE_STDLIB_H
13770 # include <stdlib.h>
13771 #endif
13772
698dcdb6 13773int main() {
0046ff7c 13774
d836ee96
VZ
13775 wchar_t wc, *ws;
13776 wc = L'a';
13777 ws = L"Hello, world!";
698dcdb6
VZ
13778
13779; return 0; }
13780EOF
4b6b4dfc 13781if { (eval echo configure:13782: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 13782 rm -rf conftest*
1f8ae82f 13783 wx_cv_type_wchar_t=yes
0046ff7c 13784else
698dcdb6
VZ
13785 echo "configure: failed program was:" >&5
13786 cat conftest.$ac_ext >&5
13787 rm -rf conftest*
13788 wx_cv_type_wchar_t=no
d836ee96 13789
6232543b 13790fi
698dcdb6 13791rm -f conftest*
703e0a69 13792
1e487827 13793fi
698dcdb6
VZ
13794
13795echo "$ac_t""$wx_cv_type_wchar_t" 1>&6
d836ee96
VZ
13796
13797if test "$wx_cv_type_wchar_t" = "yes"; then
698dcdb6 13798 cat >> confdefs.h <<\EOF
0046ff7c
VS
13799#define wxUSE_WCHAR_T 1
13800EOF
13801
13802fi
13803
19af3b06
VZ
13804
13805ac_ext=C
13806# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13807ac_cpp='$CXXCPP $CPPFLAGS'
13808ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13809ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13810cross_compiling=$ac_cv_prog_cxx_cross
13811
d836ee96 13812echo $ac_n "checking if size_t is unsigned int""... $ac_c" 1>&6
4b6b4dfc 13813echo "configure:13814: checking if size_t is unsigned int" >&5
d836ee96
VZ
13814if eval "test \"`echo '$''{'wx_cv_size_t_is_uint'+set}'`\" = set"; then
13815 echo $ac_n "(cached) $ac_c" 1>&6
13816else
dd2c8b7c 13817 cat > conftest.$ac_ext <<EOF
4b6b4dfc 13818#line 13819 "configure"
d836ee96
VZ
13819#include "confdefs.h"
13820#include <stddef.h>
13821int main() {
13822
dd2c8b7c
VZ
13823 return 0; }
13824
d836ee96 13825 struct Foo { void foo(size_t); void foo(unsigned int); };
dd2c8b7c
VZ
13826
13827 int bar() {
d836ee96
VZ
13828
13829; return 0; }
13830EOF
4b6b4dfc 13831if { (eval echo configure:13832: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d836ee96
VZ
13832 rm -rf conftest*
13833 wx_cv_size_t_is_uint=no
13834else
13835 echo "configure: failed program was:" >&5
13836 cat conftest.$ac_ext >&5
13837 rm -rf conftest*
13838 wx_cv_size_t_is_uint=yes
13839
13840fi
13841rm -f conftest*
13842
13843fi
13844
13845echo "$ac_t""$wx_cv_size_t_is_uint" 1>&6
13846
13847if test "$wx_cv_size_t_is_uint" = "yes"; then
13848 cat >> confdefs.h <<\EOF
13849#define wxSIZE_T_IS_UINT 1
13850EOF
13851
13852else
13853 echo $ac_n "checking if size_t is unsigned long""... $ac_c" 1>&6
4b6b4dfc 13854echo "configure:13855: checking if size_t is unsigned long" >&5
d836ee96
VZ
13855if eval "test \"`echo '$''{'wx_cv_size_t_is_ulong'+set}'`\" = set"; then
13856 echo $ac_n "(cached) $ac_c" 1>&6
13857else
13858 cat > conftest.$ac_ext <<EOF
4b6b4dfc 13859#line 13860 "configure"
d836ee96
VZ
13860#include "confdefs.h"
13861#include <stddef.h>
13862int main() {
13863
dd2c8b7c
VZ
13864 return 0; }
13865
d836ee96 13866 struct Foo { void foo(size_t); void foo(unsigned long); };
dd2c8b7c
VZ
13867
13868 int bar() {
d836ee96
VZ
13869
13870; return 0; }
13871EOF
4b6b4dfc 13872if { (eval echo configure:13873: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d836ee96
VZ
13873 rm -rf conftest*
13874 wx_cv_size_t_is_ulong=no
13875else
13876 echo "configure: failed program was:" >&5
13877 cat conftest.$ac_ext >&5
13878 rm -rf conftest*
13879 wx_cv_size_t_is_ulong=yes
13880
13881fi
13882rm -f conftest*
13883
13884fi
13885
13886echo "$ac_t""$wx_cv_size_t_is_ulong" 1>&6
13887
13888 if test "$wx_cv_size_t_is_ulong" = "yes"; then
13889 cat >> confdefs.h <<\EOF
13890#define wxSIZE_T_IS_ULONG 1
13891EOF
13892
13893 fi
13894fi
13895
19af3b06
VZ
13896ac_ext=c
13897# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13898ac_cpp='$CPP $CPPFLAGS'
13899ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13900ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13901cross_compiling=$ac_cv_prog_cc_cross
13902
13903
1e487827 13904
698dcdb6 13905echo $ac_n "checking for pw_gecos in struct passwd""... $ac_c" 1>&6
4b6b4dfc 13906echo "configure:13907: checking for pw_gecos in struct passwd" >&5
698dcdb6
VZ
13907if eval "test \"`echo '$''{'wx_cv_struct_pw_gecos'+set}'`\" = set"; then
13908 echo $ac_n "(cached) $ac_c" 1>&6
13909else
13910
13911 cat > conftest.$ac_ext <<EOF
4b6b4dfc 13912#line 13913 "configure"
b12915c1
VZ
13913#include "confdefs.h"
13914#include <pwd.h>
698dcdb6 13915int main() {
b12915c1
VZ
13916
13917 char *p;
13918 struct passwd *pw;
13919 p = pw->pw_gecos;
698dcdb6
VZ
13920
13921; return 0; }
13922EOF
4b6b4dfc 13923if { (eval echo configure:13924: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
13924 rm -rf conftest*
13925
b12915c1 13926 wx_cv_struct_pw_gecos=yes
698dcdb6 13927
b12915c1 13928else
698dcdb6
VZ
13929 echo "configure: failed program was:" >&5
13930 cat conftest.$ac_ext >&5
13931 rm -rf conftest*
13932
b12915c1 13933 wx_cv_struct_pw_gecos=no
698dcdb6
VZ
13934
13935
6232543b 13936fi
698dcdb6
VZ
13937rm -f conftest*
13938
703e0a69 13939
1e487827 13940fi
698dcdb6
VZ
13941
13942echo "$ac_t""$wx_cv_struct_pw_gecos" 1>&6
b12915c1 13943
bd3277fe 13944if test "$wx_cv_struct_pw_gecos" = "yes"; then
698dcdb6 13945 cat >> confdefs.h <<\EOF
bd3277fe
VZ
13946#define HAVE_PW_GECOS 1
13947EOF
13948
13949fi
13950
698dcdb6
VZ
13951
13952echo $ac_n "checking for working const""... $ac_c" 1>&6
4b6b4dfc 13953echo "configure:13954: checking for working const" >&5
698dcdb6
VZ
13954if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
13955 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 13956else
698dcdb6 13957 cat > conftest.$ac_ext <<EOF
4b6b4dfc 13958#line 13959 "configure"
10f2d63a 13959#include "confdefs.h"
698dcdb6
VZ
13960
13961int main() {
13962
13963/* Ultrix mips cc rejects this. */
4cdb0ab0 13964typedef int charset[2]; const charset x;
698dcdb6
VZ
13965/* SunOS 4.1.1 cc rejects this. */
13966char const *const *ccp;
13967char **p;
13968/* NEC SVR4.0.2 mips cc rejects this. */
13969struct point {int x, y;};
13970static struct point const zero = {0,0};
13971/* AIX XL C 1.02.0.0 rejects this.
13972 It does not let you subtract one const X* pointer from another in an arm
13973 of an if-expression whose if-part is not a constant expression */
13974const char *g = "string";
13975ccp = &g + (g ? g-g : 0);
13976/* HPUX 7.0 cc rejects these. */
13977++ccp;
13978p = (char**) ccp;
13979ccp = (char const *const *) p;
13980{ /* SCO 3.2v4 cc rejects this. */
13981 char *t;
13982 char const *s = 0 ? (char *) 0 : (char const *) 0;
13983
13984 *t++ = 0;
10f2d63a 13985}
698dcdb6
VZ
13986{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
13987 int x[] = {25, 17};
13988 const int *foo = &x[0];
13989 ++foo;
703e0a69 13990}
698dcdb6
VZ
13991{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13992 typedef const int *iptr;
13993 iptr p = 0;
13994 ++p;
6232543b 13995}
698dcdb6
VZ
13996{ /* AIX XL C 1.02.0.0 rejects this saying
13997 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13998 struct s { int j; const int *ap[3]; };
13999 struct s *b; b->j = 5;
1e487827 14000}
698dcdb6
VZ
14001{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14002 const int foo = 10;
14003}
4f14bcd8
GD
14004
14005; return 0; }
698dcdb6 14006EOF
4b6b4dfc 14007if { (eval echo configure:14008: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4f14bcd8
GD
14008 rm -rf conftest*
14009 ac_cv_c_const=yes
698dcdb6
VZ
14010else
14011 echo "configure: failed program was:" >&5
14012 cat conftest.$ac_ext >&5
4f14bcd8
GD
14013 rm -rf conftest*
14014 ac_cv_c_const=no
703e0a69 14015fi
4f14bcd8 14016rm -f conftest*
698dcdb6
VZ
14017fi
14018
4f14bcd8
GD
14019echo "$ac_t""$ac_cv_c_const" 1>&6
14020if test $ac_cv_c_const = no; then
14021 cat >> confdefs.h <<\EOF
14022#define const
698dcdb6
VZ
14023EOF
14024
4f14bcd8 14025fi
698dcdb6 14026
4f14bcd8 14027echo $ac_n "checking for inline""... $ac_c" 1>&6
4b6b4dfc 14028echo "configure:14029: checking for inline" >&5
4f14bcd8 14029if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
698dcdb6 14030 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 14031else
4f14bcd8
GD
14032 ac_cv_c_inline=no
14033for ac_kw in inline __inline__ __inline; do
698dcdb6 14034 cat > conftest.$ac_ext <<EOF
4b6b4dfc 14035#line 14036 "configure"
10f2d63a 14036#include "confdefs.h"
4f14bcd8
GD
14037
14038int main() {
4cdb0ab0 14039} $ac_kw foo() {
4f14bcd8 14040; return 0; }
698dcdb6 14041EOF
4b6b4dfc 14042if { (eval echo configure:14043: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4f14bcd8
GD
14043 rm -rf conftest*
14044 ac_cv_c_inline=$ac_kw; break
10f2d63a 14045else
698dcdb6
VZ
14046 echo "configure: failed program was:" >&5
14047 cat conftest.$ac_ext >&5
10f2d63a 14048fi
4f14bcd8
GD
14049rm -f conftest*
14050done
698dcdb6 14051
10f2d63a 14052fi
4f14bcd8
GD
14053
14054echo "$ac_t""$ac_cv_c_inline" 1>&6
14055case "$ac_cv_c_inline" in
14056 inline | yes) ;;
14057 no) cat >> confdefs.h <<\EOF
14058#define inline
14059EOF
14060 ;;
14061 *) cat >> confdefs.h <<EOF
14062#define inline $ac_cv_c_inline
698dcdb6 14063EOF
4f14bcd8
GD
14064 ;;
14065esac
698dcdb6
VZ
14066
14067
4f14bcd8 14068echo $ac_n "checking size of char""... $ac_c" 1>&6
4b6b4dfc 14069echo "configure:14070: checking size of char" >&5
4f14bcd8 14070if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
698dcdb6
VZ
14071 echo $ac_n "(cached) $ac_c" 1>&6
14072else
14073 if test "$cross_compiling" = yes; then
4f14bcd8 14074 ac_cv_sizeof_char=1
698dcdb6
VZ
14075else
14076 cat > conftest.$ac_ext <<EOF
4b6b4dfc 14077#line 14078 "configure"
698dcdb6
VZ
14078#include "confdefs.h"
14079#include <stdio.h>
14080main()
14081{
14082 FILE *f=fopen("conftestval", "w");
14083 if (!f) exit(1);
4f14bcd8 14084 fprintf(f, "%d\n", sizeof(char));
698dcdb6
VZ
14085 exit(0);
14086}
14087EOF
4b6b4dfc 14088if { (eval echo configure:14089: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6 14089then
4f14bcd8 14090 ac_cv_sizeof_char=`cat conftestval`
6232543b 14091else
698dcdb6
VZ
14092 echo "configure: failed program was:" >&5
14093 cat conftest.$ac_ext >&5
14094 rm -fr conftest*
4f14bcd8 14095 ac_cv_sizeof_char=0
6232543b 14096fi
698dcdb6
VZ
14097rm -fr conftest*
14098fi
14099
703e0a69 14100fi
4f14bcd8 14101echo "$ac_t""$ac_cv_sizeof_char" 1>&6
698dcdb6 14102cat >> confdefs.h <<EOF
4f14bcd8 14103#define SIZEOF_CHAR $ac_cv_sizeof_char
10f2d63a
VZ
14104EOF
14105
1e487827 14106
4f14bcd8 14107echo $ac_n "checking size of short""... $ac_c" 1>&6
4b6b4dfc 14108echo "configure:14109: checking size of short" >&5
4f14bcd8 14109if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
698dcdb6
VZ
14110 echo $ac_n "(cached) $ac_c" 1>&6
14111else
4f14bcd8
GD
14112 if test "$cross_compiling" = yes; then
14113 ac_cv_sizeof_short=2
b93d0d08 14114else
698dcdb6 14115 cat > conftest.$ac_ext <<EOF
4b6b4dfc 14116#line 14117 "configure"
b93d0d08 14117#include "confdefs.h"
4f14bcd8
GD
14118#include <stdio.h>
14119main()
14120{
14121 FILE *f=fopen("conftestval", "w");
14122 if (!f) exit(1);
14123 fprintf(f, "%d\n", sizeof(short));
14124 exit(0);
14125}
698dcdb6 14126EOF
4b6b4dfc 14127if { (eval echo configure:14128: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6 14128then
4f14bcd8 14129 ac_cv_sizeof_short=`cat conftestval`
b93d0d08 14130else
698dcdb6
VZ
14131 echo "configure: failed program was:" >&5
14132 cat conftest.$ac_ext >&5
14133 rm -fr conftest*
4f14bcd8 14134 ac_cv_sizeof_short=0
b93d0d08 14135fi
698dcdb6 14136rm -fr conftest*
b93d0d08
VS
14137fi
14138
b93d0d08 14139fi
4f14bcd8 14140echo "$ac_t""$ac_cv_sizeof_short" 1>&6
698dcdb6 14141cat >> confdefs.h <<EOF
4f14bcd8 14142#define SIZEOF_SHORT $ac_cv_sizeof_short
b93d0d08
VS
14143EOF
14144
698dcdb6 14145
4f14bcd8 14146echo $ac_n "checking size of int *""... $ac_c" 1>&6
4b6b4dfc 14147echo "configure:14148: checking size of int *" >&5
4f14bcd8 14148if eval "test \"`echo '$''{'ac_cv_sizeof_int_p'+set}'`\" = set"; then
698dcdb6 14149 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 14150else
4f14bcd8
GD
14151 if test "$cross_compiling" = yes; then
14152 ac_cv_sizeof_int_p=4
3a922bb4 14153else
3a922bb4 14154 cat > conftest.$ac_ext <<EOF
4b6b4dfc 14155#line 14156 "configure"
3a922bb4 14156#include "confdefs.h"
4f14bcd8
GD
14157#include <stdio.h>
14158main()
14159{
14160 FILE *f=fopen("conftestval", "w");
14161 if (!f) exit(1);
14162 fprintf(f, "%d\n", sizeof(int *));
14163 exit(0);
14164}
14165EOF
4b6b4dfc 14166if { (eval echo configure:14167: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4f14bcd8
GD
14167then
14168 ac_cv_sizeof_int_p=`cat conftestval`
14169else
14170 echo "configure: failed program was:" >&5
14171 cat conftest.$ac_ext >&5
14172 rm -fr conftest*
14173 ac_cv_sizeof_int_p=0
3a922bb4 14174fi
4f14bcd8 14175rm -fr conftest*
3a922bb4 14176fi
698dcdb6 14177
4f14bcd8
GD
14178fi
14179echo "$ac_t""$ac_cv_sizeof_int_p" 1>&6
14180cat >> confdefs.h <<EOF
14181#define SIZEOF_INT_P $ac_cv_sizeof_int_p
10f2d63a
VZ
14182EOF
14183
703e0a69 14184
4f14bcd8 14185echo $ac_n "checking size of int""... $ac_c" 1>&6
4b6b4dfc 14186echo "configure:14187: checking size of int" >&5
4f14bcd8 14187if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
698dcdb6 14188 echo $ac_n "(cached) $ac_c" 1>&6
4f14bcd8
GD
14189else
14190 if test "$cross_compiling" = yes; then
14191 ac_cv_sizeof_int=4
698dcdb6
VZ
14192else
14193 cat > conftest.$ac_ext <<EOF
4b6b4dfc 14194#line 14195 "configure"
10f2d63a 14195#include "confdefs.h"
4f14bcd8
GD
14196#include <stdio.h>
14197main()
14198{
14199 FILE *f=fopen("conftestval", "w");
14200 if (!f) exit(1);
14201 fprintf(f, "%d\n", sizeof(int));
14202 exit(0);
14203}
698dcdb6 14204EOF
4b6b4dfc 14205if { (eval echo configure:14206: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4f14bcd8
GD
14206then
14207 ac_cv_sizeof_int=`cat conftestval`
10f2d63a 14208else
698dcdb6 14209 echo "configure: failed program was:" >&5
10f2d63a 14210 cat conftest.$ac_ext >&5
4f14bcd8
GD
14211 rm -fr conftest*
14212 ac_cv_sizeof_int=0
10f2d63a 14213fi
4f14bcd8 14214rm -fr conftest*
10f2d63a 14215fi
10f2d63a 14216
4f14bcd8
GD
14217fi
14218echo "$ac_t""$ac_cv_sizeof_int" 1>&6
14219cat >> confdefs.h <<EOF
14220#define SIZEOF_INT $ac_cv_sizeof_int
10f2d63a
VZ
14221EOF
14222
698dcdb6 14223
4f14bcd8 14224echo $ac_n "checking size of long""... $ac_c" 1>&6
4b6b4dfc 14225echo "configure:14226: checking size of long" >&5
4f14bcd8 14226if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
698dcdb6
VZ
14227 echo $ac_n "(cached) $ac_c" 1>&6
14228else
4f14bcd8
GD
14229 if test "$cross_compiling" = yes; then
14230 ac_cv_sizeof_long=4
14231else
14232 cat > conftest.$ac_ext <<EOF
4b6b4dfc 14233#line 14234 "configure"
10f2d63a 14234#include "confdefs.h"
4f14bcd8
GD
14235#include <stdio.h>
14236main()
14237{
14238 FILE *f=fopen("conftestval", "w");
14239 if (!f) exit(1);
14240 fprintf(f, "%d\n", sizeof(long));
14241 exit(0);
14242}
698dcdb6 14243EOF
4b6b4dfc 14244if { (eval echo configure:14245: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4f14bcd8
GD
14245then
14246 ac_cv_sizeof_long=`cat conftestval`
10f2d63a 14247else
698dcdb6
VZ
14248 echo "configure: failed program was:" >&5
14249 cat conftest.$ac_ext >&5
4f14bcd8
GD
14250 rm -fr conftest*
14251 ac_cv_sizeof_long=0
10f2d63a 14252fi
4f14bcd8 14253rm -fr conftest*
10f2d63a 14254fi
698dcdb6 14255
4f14bcd8
GD
14256fi
14257echo "$ac_t""$ac_cv_sizeof_long" 1>&6
14258cat >> confdefs.h <<EOF
14259#define SIZEOF_LONG $ac_cv_sizeof_long
10f2d63a
VZ
14260EOF
14261
698dcdb6 14262
4f14bcd8 14263echo $ac_n "checking size of long long""... $ac_c" 1>&6
4b6b4dfc 14264echo "configure:14265: checking size of long long" >&5
4f14bcd8 14265if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
698dcdb6 14266 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 14267else
4f14bcd8
GD
14268 if test "$cross_compiling" = yes; then
14269 ac_cv_sizeof_long_long=0
14270else
14271 cat > conftest.$ac_ext <<EOF
4b6b4dfc 14272#line 14273 "configure"
10f2d63a 14273#include "confdefs.h"
4f14bcd8
GD
14274#include <stdio.h>
14275main()
14276{
14277 FILE *f=fopen("conftestval", "w");
14278 if (!f) exit(1);
14279 fprintf(f, "%d\n", sizeof(long long));
14280 exit(0);
14281}
698dcdb6 14282EOF
4b6b4dfc 14283if { (eval echo configure:14284: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4f14bcd8
GD
14284then
14285 ac_cv_sizeof_long_long=`cat conftestval`
698dcdb6
VZ
14286else
14287 echo "configure: failed program was:" >&5
14288 cat conftest.$ac_ext >&5
4f14bcd8
GD
14289 rm -fr conftest*
14290 ac_cv_sizeof_long_long=0
14291fi
14292rm -fr conftest*
698dcdb6 14293fi
698dcdb6
VZ
14294
14295fi
4f14bcd8
GD
14296echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
14297cat >> confdefs.h <<EOF
14298#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10f2d63a
VZ
14299EOF
14300
10f2d63a 14301
4f14bcd8
GD
14302
14303echo $ac_n "checking size of wchar_t""... $ac_c" 1>&6
4b6b4dfc 14304echo "configure:14305: checking size of wchar_t" >&5
4f14bcd8 14305if eval "test \"`echo '$''{'wx_cv_sizeof_wchar_t'+set}'`\" = set"; then
698dcdb6 14306 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 14307else
4f14bcd8
GD
14308
14309 if test "$cross_compiling" = yes; then
14310 wx_cv_sizeof_wchar_t=4
14311
14312else
14313 cat > conftest.$ac_ext <<EOF
4b6b4dfc 14314#line 14315 "configure"
10f2d63a 14315#include "confdefs.h"
698dcdb6 14316
4f14bcd8 14317 #ifdef HAVE_WCHAR_H
0fbb762e
MB
14318 # ifdef __CYGWIN__
14319 # include <stddef.h>
14320 # endif
4f14bcd8
GD
14321 # include <wchar.h>
14322 #endif
14323 #ifdef HAVE_STDLIB_H
14324 # include <stdlib.h>
14325 #endif
14326 #include <stdio.h>
14327 int main()
14328 {
14329 FILE *f=fopen("conftestval", "w");
14330 if (!f) exit(1);
14331 fprintf(f, "%i", sizeof(wchar_t));
14332 exit(0);
14333 }
14334
698dcdb6 14335EOF
4b6b4dfc 14336if { (eval echo configure:14337: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4f14bcd8
GD
14337then
14338 wx_cv_sizeof_wchar_t=`cat conftestval`
698dcdb6
VZ
14339else
14340 echo "configure: failed program was:" >&5
14341 cat conftest.$ac_ext >&5
4f14bcd8
GD
14342 rm -fr conftest*
14343 wx_cv_sizeof_wchar_t=0
698dcdb6 14344fi
4f14bcd8
GD
14345rm -fr conftest*
14346fi
14347
698dcdb6
VZ
14348
14349fi
4f14bcd8
GD
14350
14351echo "$ac_t""$wx_cv_sizeof_wchar_t" 1>&6
14352
14353cat >> confdefs.h <<EOF
14354#define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t
10f2d63a
VZ
14355EOF
14356
18dbb1f6 14357
4f14bcd8 14358echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
4b6b4dfc 14359echo "configure:14360: checking whether byte ordering is bigendian" >&5
4f14bcd8 14360if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
18dbb1f6
VZ
14361 echo $ac_n "(cached) $ac_c" 1>&6
14362else
4f14bcd8
GD
14363 ac_cv_c_bigendian=unknown
14364# See if sys/param.h defines the BYTE_ORDER macro.
18dbb1f6 14365cat > conftest.$ac_ext <<EOF
4b6b4dfc 14366#line 14367 "configure"
18dbb1f6 14367#include "confdefs.h"
4f14bcd8
GD
14368#include <sys/types.h>
14369#include <sys/param.h>
14370int main() {
18dbb1f6 14371
4f14bcd8
GD
14372#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
14373 bogus endian macros
14374#endif
14375; return 0; }
14376EOF
4b6b4dfc 14377if { (eval echo configure:14378: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4f14bcd8
GD
14378 rm -rf conftest*
14379 # It does; now see whether it defined to BIG_ENDIAN or not.
14380cat > conftest.$ac_ext <<EOF
4b6b4dfc 14381#line 14382 "configure"
4f14bcd8
GD
14382#include "confdefs.h"
14383#include <sys/types.h>
14384#include <sys/param.h>
18dbb1f6 14385int main() {
4f14bcd8
GD
14386
14387#if BYTE_ORDER != BIG_ENDIAN
14388 not big endian
14389#endif
18dbb1f6
VZ
14390; return 0; }
14391EOF
4b6b4dfc 14392if { (eval echo configure:14393: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18dbb1f6 14393 rm -rf conftest*
4f14bcd8 14394 ac_cv_c_bigendian=yes
18dbb1f6
VZ
14395else
14396 echo "configure: failed program was:" >&5
14397 cat conftest.$ac_ext >&5
14398 rm -rf conftest*
4f14bcd8 14399 ac_cv_c_bigendian=no
18dbb1f6
VZ
14400fi
14401rm -f conftest*
698dcdb6 14402else
4f14bcd8
GD
14403 echo "configure: failed program was:" >&5
14404 cat conftest.$ac_ext >&5
1e487827 14405fi
4f14bcd8
GD
14406rm -f conftest*
14407if test $ac_cv_c_bigendian = unknown; then
14408if test "$cross_compiling" = yes; then
14409 ac_cv_c_bigendian=unknown
b3e8d00a
VZ
14410else
14411 cat > conftest.$ac_ext <<EOF
4b6b4dfc 14412#line 14413 "configure"
b3e8d00a 14413#include "confdefs.h"
4f14bcd8
GD
14414main () {
14415 /* Are we little or big endian? From Harbison&Steele. */
14416 union
14417 {
14418 long l;
14419 char c[sizeof (long)];
14420 } u;
14421 u.l = 1;
14422 exit (u.c[sizeof (long) - 1] == 1);
14423}
b3e8d00a 14424EOF
4b6b4dfc 14425if { (eval echo configure:14426: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4f14bcd8
GD
14426then
14427 ac_cv_c_bigendian=no
b3e8d00a
VZ
14428else
14429 echo "configure: failed program was:" >&5
14430 cat conftest.$ac_ext >&5
4f14bcd8
GD
14431 rm -fr conftest*
14432 ac_cv_c_bigendian=yes
b3e8d00a 14433fi
4f14bcd8 14434rm -fr conftest*
b3e8d00a
VZ
14435fi
14436
4f14bcd8
GD
14437fi
14438fi
14439
14440echo "$ac_t""$ac_cv_c_bigendian" 1>&6
14441if test $ac_cv_c_bigendian = unknown; then
14442 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
14443fi
14444if test $ac_cv_c_bigendian = yes; then
14445 cat >> confdefs.h <<\EOF
14446#define WORDS_BIGENDIAN 1
b3e8d00a 14447EOF
4f14bcd8 14448
b3e8d00a 14449fi
b3e8d00a
VZ
14450
14451
4f14bcd8 14452echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
4b6b4dfc 14453echo "configure:14454: checking how to run the C++ preprocessor" >&5
4f14bcd8
GD
14454if test -z "$CXXCPP"; then
14455if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
698dcdb6
VZ
14456 echo $ac_n "(cached) $ac_c" 1>&6
14457else
4f14bcd8
GD
14458 ac_ext=C
14459# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14460ac_cpp='$CXXCPP $CPPFLAGS'
14461ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14462ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14463cross_compiling=$ac_cv_prog_cxx_cross
14464 CXXCPP="${CXX-g++} -E"
698dcdb6 14465 cat > conftest.$ac_ext <<EOF
4b6b4dfc 14466#line 14467 "configure"
10f2d63a 14467#include "confdefs.h"
4f14bcd8 14468#include <stdlib.h>
698dcdb6 14469EOF
4f14bcd8 14470ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4b6b4dfc 14471{ (eval echo configure:14472: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4f14bcd8
GD
14472ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14473if test -z "$ac_err"; then
14474 :
698dcdb6 14475else
4f14bcd8 14476 echo "$ac_err" >&5
698dcdb6
VZ
14477 echo "configure: failed program was:" >&5
14478 cat conftest.$ac_ext >&5
14479 rm -rf conftest*
4f14bcd8 14480 CXXCPP=/lib/cpp
698dcdb6
VZ
14481fi
14482rm -f conftest*
4f14bcd8
GD
14483 ac_cv_prog_CXXCPP="$CXXCPP"
14484ac_ext=C
14485# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14486ac_cpp='$CXXCPP $CPPFLAGS'
14487ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14488ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14489cross_compiling=$ac_cv_prog_cxx_cross
14490fi
698dcdb6 14491fi
4f14bcd8
GD
14492CXXCPP="$ac_cv_prog_CXXCPP"
14493echo "$ac_t""$CXXCPP" 1>&6
698dcdb6 14494
4f14bcd8
GD
14495
14496 if test "$cross_compiling" = "yes"; then
14497 cat >> confdefs.h <<\EOF
14498#define wxUSE_IOSTREAMH 1
698dcdb6
VZ
14499EOF
14500
4f14bcd8
GD
14501 else
14502
14503 ac_ext=C
14504# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14505ac_cpp='$CXXCPP $CPPFLAGS'
14506ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14507ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14508cross_compiling=$ac_cv_prog_cxx_cross
698dcdb6 14509
4f14bcd8
GD
14510
14511 for ac_hdr in iostream
14512do
14513ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
14514echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4b6b4dfc 14515echo "configure:14516: checking for $ac_hdr" >&5
4f14bcd8 14516if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
698dcdb6
VZ
14517 echo $ac_n "(cached) $ac_c" 1>&6
14518else
14519 cat > conftest.$ac_ext <<EOF
4b6b4dfc 14520#line 14521 "configure"
10f2d63a 14521#include "confdefs.h"
4f14bcd8 14522#include <$ac_hdr>
698dcdb6 14523EOF
4f14bcd8 14524ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4b6b4dfc 14525{ (eval echo configure:14526: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4f14bcd8
GD
14526ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14527if test -z "$ac_err"; then
698dcdb6 14528 rm -rf conftest*
4f14bcd8 14529 eval "ac_cv_header_$ac_safe=yes"
698dcdb6 14530else
4f14bcd8 14531 echo "$ac_err" >&5
698dcdb6
VZ
14532 echo "configure: failed program was:" >&5
14533 cat conftest.$ac_ext >&5
14534 rm -rf conftest*
4f14bcd8 14535 eval "ac_cv_header_$ac_safe=no"
698dcdb6
VZ
14536fi
14537rm -f conftest*
14538fi
4f14bcd8 14539if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
698dcdb6 14540 echo "$ac_t""yes" 1>&6
4f14bcd8
GD
14541 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
14542 cat >> confdefs.h <<EOF
14543#define $ac_tr_hdr 1
10f2d63a 14544EOF
4f14bcd8 14545
698dcdb6
VZ
14546else
14547 echo "$ac_t""no" 1>&6
10f2d63a 14548fi
4f14bcd8 14549done
10f2d63a 14550
10f2d63a 14551
4f14bcd8
GD
14552 if test "$ac_cv_header_iostream" = "yes" ; then
14553 :
14554 else
14555 cat >> confdefs.h <<\EOF
14556#define wxUSE_IOSTREAMH 1
14557EOF
14558
14559 fi
1e487827 14560
4f14bcd8
GD
14561 ac_ext=c
14562# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14563ac_cpp='$CPP $CPPFLAGS'
14564ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14565ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14566cross_compiling=$ac_cv_prog_cc_cross
698dcdb6 14567
4f14bcd8 14568 fi
698dcdb6
VZ
14569
14570
14571
4f14bcd8 14572 echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6
4b6b4dfc 14573echo "configure:14574: checking if C++ compiler supports bool" >&5
4f14bcd8 14574if eval "test \"`echo '$''{'wx_cv_cpp_bool'+set}'`\" = set"; then
698dcdb6
VZ
14575 echo $ac_n "(cached) $ac_c" 1>&6
14576else
14577
4f14bcd8
GD
14578
14579 ac_ext=C
14580# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14581ac_cpp='$CXXCPP $CPPFLAGS'
14582ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14583ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14584cross_compiling=$ac_cv_prog_cxx_cross
f6bcfd97 14585
10f2d63a 14586
4f14bcd8 14587 cat > conftest.$ac_ext <<EOF
4b6b4dfc 14588#line 14589 "configure"
4f14bcd8 14589#include "confdefs.h"
10f2d63a 14590
4f14bcd8
GD
14591
14592int main() {
f6bcfd97 14593
4f14bcd8 14594 bool b = true;
f6bcfd97 14595
4f14bcd8
GD
14596 return 0;
14597
698dcdb6
VZ
14598; return 0; }
14599EOF
4b6b4dfc 14600if { (eval echo configure:14601: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
14601 rm -rf conftest*
14602
4f14bcd8
GD
14603 wx_cv_cpp_bool=yes
14604
10f2d63a 14605else
698dcdb6
VZ
14606 echo "configure: failed program was:" >&5
14607 cat conftest.$ac_ext >&5
14608 rm -rf conftest*
14609
4f14bcd8
GD
14610 wx_cv_cpp_bool=no
14611
14612
14613fi
14614rm -f conftest*
c521c494 14615
4f14bcd8
GD
14616 ac_ext=c
14617# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14618ac_cpp='$CPP $CPPFLAGS'
14619ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14620ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14621cross_compiling=$ac_cv_prog_cc_cross
c521c494 14622
4f14bcd8
GD
14623
14624fi
c521c494 14625
4f14bcd8 14626echo "$ac_t""$wx_cv_cpp_bool" 1>&6
c521c494 14627
4f14bcd8
GD
14628 if test "$wx_cv_cpp_bool" = "yes"; then
14629 cat >> confdefs.h <<\EOF
14630#define HAVE_BOOL 1
14631EOF
c521c494 14632
4f14bcd8
GD
14633 fi
14634
14635
14636
14637echo $ac_n "checking for wcslen in -lc""... $ac_c" 1>&6
4b6b4dfc 14638echo "configure:14639: checking for wcslen in -lc" >&5
4f14bcd8
GD
14639ac_lib_var=`echo c'_'wcslen | sed 'y%./+-%__p_%'`
14640if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14641 echo $ac_n "(cached) $ac_c" 1>&6
14642else
14643 ac_save_LIBS="$LIBS"
14644LIBS="-lc $LIBS"
14645cat > conftest.$ac_ext <<EOF
4b6b4dfc 14646#line 14647 "configure"
4f14bcd8
GD
14647#include "confdefs.h"
14648/* Override any gcc2 internal prototype to avoid an error. */
14649/* We use char because int might match the return type of a gcc2
14650 builtin and then its argument prototype would still apply. */
14651char wcslen();
14652
14653int main() {
14654wcslen()
698dcdb6
VZ
14655; return 0; }
14656EOF
4b6b4dfc 14657if { (eval echo configure:14658: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 14658 rm -rf conftest*
4f14bcd8 14659 eval "ac_cv_lib_$ac_lib_var=yes"
c521c494 14660else
698dcdb6
VZ
14661 echo "configure: failed program was:" >&5
14662 cat conftest.$ac_ext >&5
14663 rm -rf conftest*
4f14bcd8 14664 eval "ac_cv_lib_$ac_lib_var=no"
6232543b 14665fi
698dcdb6 14666rm -f conftest*
4f14bcd8 14667LIBS="$ac_save_LIBS"
703e0a69 14668
1e487827 14669fi
4f14bcd8
GD
14670if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14671 echo "$ac_t""yes" 1>&6
14672
14673 cat >> confdefs.h <<\EOF
14674#define HAVE_WCSLEN 1
9d8deca0
VZ
14675EOF
14676
3d63bc3a 14677 WCHAR_LINK=
4f14bcd8 14678
9d8deca0 14679else
4f14bcd8 14680 echo "$ac_t""no" 1>&6
9d8deca0 14681
4f14bcd8 14682 echo $ac_n "checking for wcslen in -lw""... $ac_c" 1>&6
4b6b4dfc 14683echo "configure:14684: checking for wcslen in -lw" >&5
4f14bcd8
GD
14684ac_lib_var=`echo w'_'wcslen | sed 'y%./+-%__p_%'`
14685if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
698dcdb6 14686 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 14687else
4f14bcd8
GD
14688 ac_save_LIBS="$LIBS"
14689LIBS="-lw $LIBS"
14690cat > conftest.$ac_ext <<EOF
4b6b4dfc 14691#line 14692 "configure"
10f2d63a 14692#include "confdefs.h"
4f14bcd8
GD
14693/* Override any gcc2 internal prototype to avoid an error. */
14694/* We use char because int might match the return type of a gcc2
14695 builtin and then its argument prototype would still apply. */
14696char wcslen();
10f2d63a 14697
698dcdb6 14698int main() {
4f14bcd8 14699wcslen()
698dcdb6
VZ
14700; return 0; }
14701EOF
4b6b4dfc 14702if { (eval echo configure:14703: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 14703 rm -rf conftest*
4f14bcd8 14704 eval "ac_cv_lib_$ac_lib_var=yes"
10f2d63a 14705else
698dcdb6
VZ
14706 echo "configure: failed program was:" >&5
14707 cat conftest.$ac_ext >&5
14708 rm -rf conftest*
4f14bcd8 14709 eval "ac_cv_lib_$ac_lib_var=no"
6232543b 14710fi
698dcdb6 14711rm -f conftest*
4f14bcd8 14712LIBS="$ac_save_LIBS"
703e0a69 14713
1e487827 14714fi
4f14bcd8
GD
14715if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14716 echo "$ac_t""yes" 1>&6
14717
14718 cat >> confdefs.h <<\EOF
14719#define HAVE_WCSLEN 1
9d8deca0
VZ
14720EOF
14721
3d63bc3a 14722 WCHAR_LINK=" -lw"
4f14bcd8
GD
14723
14724else
14725 echo "$ac_t""no" 1>&6
698dcdb6 14726
4f14bcd8 14727 echo $ac_n "checking for wcslen in -lmsvcrt""... $ac_c" 1>&6
4b6b4dfc 14728echo "configure:14729: checking for wcslen in -lmsvcrt" >&5
4f14bcd8
GD
14729ac_lib_var=`echo msvcrt'_'wcslen | sed 'y%./+-%__p_%'`
14730if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
698dcdb6
VZ
14731 echo $ac_n "(cached) $ac_c" 1>&6
14732else
4f14bcd8
GD
14733 ac_save_LIBS="$LIBS"
14734LIBS="-lmsvcrt $LIBS"
14735cat > conftest.$ac_ext <<EOF
4b6b4dfc 14736#line 14737 "configure"
95c8801c 14737#include "confdefs.h"
4f14bcd8
GD
14738/* Override any gcc2 internal prototype to avoid an error. */
14739/* We use char because int might match the return type of a gcc2
14740 builtin and then its argument prototype would still apply. */
14741char wcslen();
95c8801c 14742
4f14bcd8
GD
14743int main() {
14744wcslen()
698dcdb6
VZ
14745; return 0; }
14746EOF
4b6b4dfc 14747if { (eval echo configure:14748: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 14748 rm -rf conftest*
4f14bcd8 14749 eval "ac_cv_lib_$ac_lib_var=yes"
95c8801c 14750else
698dcdb6
VZ
14751 echo "configure: failed program was:" >&5
14752 cat conftest.$ac_ext >&5
14753 rm -rf conftest*
4f14bcd8 14754 eval "ac_cv_lib_$ac_lib_var=no"
95c8801c 14755fi
698dcdb6 14756rm -f conftest*
4f14bcd8 14757LIBS="$ac_save_LIBS"
95c8801c
VS
14758
14759fi
4f14bcd8
GD
14760if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14761 echo "$ac_t""yes" 1>&6
14762
14763 cat >> confdefs.h <<\EOF
14764#define HAVE_WCSLEN 1
14765EOF
698dcdb6 14766
3d63bc3a 14767 WCHAR_LINK=
4f14bcd8
GD
14768
14769else
14770 echo "$ac_t""no" 1>&6
14771fi
10f2d63a 14772
4f14bcd8
GD
14773
14774fi
95c8801c 14775
4f14bcd8 14776
95c8801c 14777fi
10f2d63a 14778
1e487827 14779
4f14bcd8 14780for ac_func in wcsrtombs
eb4efbdc 14781do
698dcdb6 14782echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4b6b4dfc 14783echo "configure:14784: checking for $ac_func" >&5
698dcdb6
VZ
14784if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14785 echo $ac_n "(cached) $ac_c" 1>&6
14786else
14787 cat > conftest.$ac_ext <<EOF
4b6b4dfc 14788#line 14789 "configure"
eb4efbdc
VZ
14789#include "confdefs.h"
14790/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 14791 which can conflict with char $ac_func(); below. */
eb4efbdc
VZ
14792#include <assert.h>
14793/* Override any gcc2 internal prototype to avoid an error. */
14794/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
14795 builtin and then its argument prototype would still apply. */
14796char $ac_func();
14797
14798int main() {
eb4efbdc
VZ
14799
14800/* The GNU C library defines this for functions which it implements
14801 to always fail with ENOSYS. Some functions are actually named
14802 something starting with __ and the normal name is an alias. */
14803#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14804choke me
14805#else
698dcdb6 14806$ac_func();
eb4efbdc
VZ
14807#endif
14808
698dcdb6 14809; return 0; }
eb4efbdc 14810EOF
4b6b4dfc 14811if { (eval echo configure:14812: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
14812 rm -rf conftest*
14813 eval "ac_cv_func_$ac_func=yes"
14814else
14815 echo "configure: failed program was:" >&5
14816 cat conftest.$ac_ext >&5
14817 rm -rf conftest*
14818 eval "ac_cv_func_$ac_func=no"
14819fi
14820rm -f conftest*
14821fi
eb4efbdc 14822
698dcdb6
VZ
14823if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14824 echo "$ac_t""yes" 1>&6
14825 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14826 cat >> confdefs.h <<EOF
14827#define $ac_tr_func 1
14828EOF
14829
14830else
14831 echo "$ac_t""no" 1>&6
eb4efbdc
VZ
14832fi
14833done
14834
698dcdb6 14835
4f14bcd8 14836echo $ac_n "checking for vprintf""... $ac_c" 1>&6
4b6b4dfc 14837echo "configure:14838: checking for vprintf" >&5
4f14bcd8 14838if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
698dcdb6
VZ
14839 echo $ac_n "(cached) $ac_c" 1>&6
14840else
4f14bcd8 14841 cat > conftest.$ac_ext <<EOF
4b6b4dfc 14842#line 14843 "configure"
f6bcfd97 14843#include "confdefs.h"
4f14bcd8
GD
14844/* System header to define __stub macros and hopefully few prototypes,
14845 which can conflict with char vprintf(); below. */
14846#include <assert.h>
14847/* Override any gcc2 internal prototype to avoid an error. */
14848/* We use char because int might match the return type of a gcc2
14849 builtin and then its argument prototype would still apply. */
14850char vprintf();
14851
698dcdb6 14852int main() {
f6bcfd97 14853
4f14bcd8
GD
14854/* The GNU C library defines this for functions which it implements
14855 to always fail with ENOSYS. Some functions are actually named
14856 something starting with __ and the normal name is an alias. */
14857#if defined (__stub_vprintf) || defined (__stub___vprintf)
14858choke me
14859#else
14860vprintf();
14861#endif
f6bcfd97 14862
698dcdb6
VZ
14863; return 0; }
14864EOF
4b6b4dfc 14865if { (eval echo configure:14866: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 14866 rm -rf conftest*
4f14bcd8 14867 eval "ac_cv_func_vprintf=yes"
f6bcfd97 14868else
698dcdb6
VZ
14869 echo "configure: failed program was:" >&5
14870 cat conftest.$ac_ext >&5
14871 rm -rf conftest*
4f14bcd8 14872 eval "ac_cv_func_vprintf=no"
6232543b 14873fi
698dcdb6 14874rm -f conftest*
1e487827 14875fi
698dcdb6 14876
4f14bcd8
GD
14877if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
14878 echo "$ac_t""yes" 1>&6
14879 cat >> confdefs.h <<\EOF
14880#define HAVE_VPRINTF 1
f6bcfd97
BP
14881EOF
14882
4f14bcd8
GD
14883else
14884 echo "$ac_t""no" 1>&6
eb4efbdc
VZ
14885fi
14886
4f14bcd8
GD
14887if test "$ac_cv_func_vprintf" != yes; then
14888echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
4b6b4dfc 14889echo "configure:14890: checking for _doprnt" >&5
4f14bcd8 14890if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
698dcdb6
VZ
14891 echo $ac_n "(cached) $ac_c" 1>&6
14892else
14893 cat > conftest.$ac_ext <<EOF
4b6b4dfc 14894#line 14895 "configure"
10f2d63a
VZ
14895#include "confdefs.h"
14896/* System header to define __stub macros and hopefully few prototypes,
4f14bcd8 14897 which can conflict with char _doprnt(); below. */
10f2d63a
VZ
14898#include <assert.h>
14899/* Override any gcc2 internal prototype to avoid an error. */
14900/* We use char because int might match the return type of a gcc2
698dcdb6 14901 builtin and then its argument prototype would still apply. */
4f14bcd8 14902char _doprnt();
698dcdb6
VZ
14903
14904int main() {
10f2d63a
VZ
14905
14906/* The GNU C library defines this for functions which it implements
14907 to always fail with ENOSYS. Some functions are actually named
14908 something starting with __ and the normal name is an alias. */
4f14bcd8 14909#if defined (__stub__doprnt) || defined (__stub____doprnt)
10f2d63a
VZ
14910choke me
14911#else
4f14bcd8 14912_doprnt();
10f2d63a
VZ
14913#endif
14914
698dcdb6 14915; return 0; }
10f2d63a 14916EOF
4b6b4dfc 14917if { (eval echo configure:14918: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 14918 rm -rf conftest*
4f14bcd8 14919 eval "ac_cv_func__doprnt=yes"
698dcdb6
VZ
14920else
14921 echo "configure: failed program was:" >&5
14922 cat conftest.$ac_ext >&5
14923 rm -rf conftest*
4f14bcd8 14924 eval "ac_cv_func__doprnt=no"
698dcdb6
VZ
14925fi
14926rm -f conftest*
14927fi
270a909e 14928
4f14bcd8 14929if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
698dcdb6 14930 echo "$ac_t""yes" 1>&6
4f14bcd8
GD
14931 cat >> confdefs.h <<\EOF
14932#define HAVE_DOPRNT 1
698dcdb6 14933EOF
4f14bcd8 14934
698dcdb6
VZ
14935else
14936 echo "$ac_t""no" 1>&6
270a909e 14937fi
270a909e 14938
4f14bcd8 14939fi
1e487827 14940
52e8b690 14941
52e8b690 14942
52e8b690 14943
52e8b690 14944
52e8b690 14945
4f14bcd8 14946echo $ac_n "checking for vsnprintf""... $ac_c" 1>&6
4b6b4dfc 14947echo "configure:14948: checking for vsnprintf" >&5
4f14bcd8 14948if eval "test \"`echo '$''{'wx_cv_func_vsnprintf'+set}'`\" = set"; then
698dcdb6 14949 echo $ac_n "(cached) $ac_c" 1>&6
c63c7106 14950else
4f14bcd8 14951
af15babd 14952 cat > conftest.$ac_ext <<EOF
4b6b4dfc 14953#line 14954 "configure"
c63c7106 14954#include "confdefs.h"
698dcdb6 14955
4f14bcd8
GD
14956 #include <stdio.h>
14957 #include <stdarg.h>
14958
af15babd
VZ
14959int main() {
14960
4f14bcd8
GD
14961 int wx_test_vsnprintf(const char *, ...);
14962
14963 wx_test_vsnprintf("%s");
14964 return 0;
14965 }
14966
14967 int wx_test_vsnprintf(const char *fmt, ...)
14968 {
14969 char *s;
14970
14971 va_list argp;
14972 va_start(argp, fmt);
14973 vsnprintf(s, 42, fmt, argp);
14974 va_end(argp);
14975
af15babd
VZ
14976; return 0; }
14977EOF
4b6b4dfc 14978if { (eval echo configure:14979: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
af15babd
VZ
14979 rm -rf conftest*
14980
4f14bcd8
GD
14981 wx_cv_func_vsnprintf=yes
14982
af15babd
VZ
14983else
14984 echo "configure: failed program was:" >&5
14985 cat conftest.$ac_ext >&5
14986 rm -rf conftest*
14987
4f14bcd8 14988 cat > conftest.$ac_ext <<EOF
4b6b4dfc 14989#line 14990 "configure"
af15babd 14990#include "confdefs.h"
af15babd 14991
4f14bcd8
GD
14992 #include <stdio.h>
14993 #include <stdarg.h>
14994
af15babd
VZ
14995int main() {
14996
4f14bcd8
GD
14997 int wx_test_vsnprintf(const char *, ...);
14998
14999 wx_test_vsnprintf("%s");
15000 return 0;
15001 }
15002
15003 int wx_test_vsnprintf(const char *fmt, ...)
15004 {
15005 char *s;
af15babd 15006
4f14bcd8
GD
15007 va_list argp;
15008 va_start(argp, fmt);
15009 _vsnprintf(s, 42, fmt, argp);
15010 va_end(argp);
15011
af15babd
VZ
15012; return 0; }
15013EOF
4b6b4dfc 15014if { (eval echo configure:15015: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
af15babd 15015 rm -rf conftest*
4f14bcd8
GD
15016
15017 wx_cv_func_vsnprintf=yes
15018
af15babd
VZ
15019else
15020 echo "configure: failed program was:" >&5
15021 cat conftest.$ac_ext >&5
15022 rm -rf conftest*
4f14bcd8
GD
15023
15024 wx_cv_func_vsnprintf=no
15025
af15babd
VZ
15026fi
15027rm -f conftest*
4f14bcd8 15028
af15babd 15029fi
4f14bcd8 15030rm -f conftest*
af15babd 15031
af15babd 15032fi
af15babd 15033
4f14bcd8 15034echo "$ac_t""$wx_cv_func_vsnprintf" 1>&6
af15babd 15035
4f14bcd8
GD
15036if test "$wx_cv_func_vsnprintf" = yes; then
15037 cat >> confdefs.h <<\EOF
15038#define HAVE_VSNPRINTF 1
15039EOF
15040
15041else
f9bc1684 15042 echo "configure: warning: unsafe function vsprintf will be used instead of vsnprintf" 1>&2
af15babd
VZ
15043fi
15044
4f14bcd8 15045echo $ac_n "checking for vsscanf""... $ac_c" 1>&6
4b6b4dfc 15046echo "configure:15047: checking for vsscanf" >&5
4f14bcd8 15047if eval "test \"`echo '$''{'wx_cv_func_vsscanf'+set}'`\" = set"; then
af15babd
VZ
15048 echo $ac_n "(cached) $ac_c" 1>&6
15049else
4f14bcd8 15050
af15babd 15051 cat > conftest.$ac_ext <<EOF
4b6b4dfc 15052#line 15053 "configure"
af15babd 15053#include "confdefs.h"
af15babd 15054
4f14bcd8
GD
15055 #include <stdio.h>
15056 #include <stdarg.h>
15057
af15babd
VZ
15058int main() {
15059
4f14bcd8
GD
15060 int wx_test_vsscanf(const char *, ...);
15061
15062 wx_test_vsscanf("%d");
15063 return 0;
15064 }
af15babd 15065
4f14bcd8
GD
15066 int wx_test_vsscanf(const char *fmt, ...)
15067 {
15068 va_list argp;
15069 va_start(argp, fmt);
15070 vsscanf("42", fmt, argp);
15071 va_end(argp);
15072
af15babd
VZ
15073; return 0; }
15074EOF
4b6b4dfc 15075if { (eval echo configure:15076: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
af15babd 15076 rm -rf conftest*
4f14bcd8
GD
15077
15078 wx_cv_func_vsscanf=yes
15079
af15babd
VZ
15080else
15081 echo "configure: failed program was:" >&5
15082 cat conftest.$ac_ext >&5
15083 rm -rf conftest*
4f14bcd8
GD
15084
15085 wx_cv_func_vsscanf=no
15086
af15babd
VZ
15087fi
15088rm -f conftest*
4f14bcd8 15089
af15babd
VZ
15090fi
15091
4f14bcd8
GD
15092echo "$ac_t""$wx_cv_func_vsscanf" 1>&6
15093
15094if test "$wx_cv_func_vsscanf" = yes; then
15095 cat >> confdefs.h <<\EOF
15096#define HAVE_VSSCANF 1
af15babd 15097EOF
4f14bcd8 15098
af15babd 15099fi
af15babd 15100
4f14bcd8 15101if test "$TOOLKIT" != "MSW"; then
af15babd 15102
4f14bcd8
GD
15103
15104
15105ac_ext=C
15106# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15107ac_cpp='$CXXCPP $CPPFLAGS'
15108ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15109ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15110cross_compiling=$ac_cv_prog_cxx_cross
15111
15112echo $ac_n "checking if iconv() takes char**""... $ac_c" 1>&6
4b6b4dfc 15113echo "configure:15114: checking if iconv() takes char**" >&5
4f14bcd8 15114if eval "test \"`echo '$''{'wx_cv_iconv_takes_char'+set}'`\" = set"; then
af15babd
VZ
15115 echo $ac_n "(cached) $ac_c" 1>&6
15116else
4f14bcd8
GD
15117
15118 cat > conftest.$ac_ext <<EOF
4b6b4dfc 15119#line 15120 "configure"
af15babd 15120#include "confdefs.h"
4f14bcd8 15121#include <iconv.h>
af15babd
VZ
15122int main() {
15123
4f14bcd8
GD
15124 char **inbuf, **outbuf;
15125 iconv_t cd;
15126 size_t insz, outsz;
15127 iconv(cd, inbuf, &insz, outbuf, &outsz);
15128
af15babd
VZ
15129; return 0; }
15130EOF
4b6b4dfc 15131if { (eval echo configure:15132: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
af15babd 15132 rm -rf conftest*
4f14bcd8 15133 wx_cv_iconv_takes_char=yes
af15babd
VZ
15134else
15135 echo "configure: failed program was:" >&5
15136 cat conftest.$ac_ext >&5
15137 rm -rf conftest*
4f14bcd8 15138 wx_cv_iconv_takes_char=no
af15babd
VZ
15139fi
15140rm -f conftest*
af15babd 15141
af15babd 15142fi
af15babd 15143
4f14bcd8
GD
15144echo "$ac_t""$wx_cv_iconv_takes_char" 1>&6
15145ac_ext=c
15146# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15147ac_cpp='$CPP $CPPFLAGS'
15148ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15149ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15150cross_compiling=$ac_cv_prog_cc_cross
af15babd 15151
4f14bcd8
GD
15152if test "$wx_cv_iconv_takes_char" = yes ; then
15153 cat >> confdefs.h <<\EOF
15154#define WX_ICONV_TAKES_CHAR 1
af15babd
VZ
15155EOF
15156
af15babd
VZ
15157fi
15158
af15babd 15159
4f14bcd8
GD
15160if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
15161 for ac_func in sigaction
af15babd
VZ
15162do
15163echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4b6b4dfc 15164echo "configure:15165: checking for $ac_func" >&5
af15babd
VZ
15165if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15166 echo $ac_n "(cached) $ac_c" 1>&6
15167else
15168 cat > conftest.$ac_ext <<EOF
4b6b4dfc 15169#line 15170 "configure"
af15babd
VZ
15170#include "confdefs.h"
15171/* System header to define __stub macros and hopefully few prototypes,
15172 which can conflict with char $ac_func(); below. */
15173#include <assert.h>
15174/* Override any gcc2 internal prototype to avoid an error. */
15175/* We use char because int might match the return type of a gcc2
15176 builtin and then its argument prototype would still apply. */
15177char $ac_func();
15178
15179int main() {
15180
15181/* The GNU C library defines this for functions which it implements
15182 to always fail with ENOSYS. Some functions are actually named
15183 something starting with __ and the normal name is an alias. */
15184#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15185choke me
15186#else
15187$ac_func();
15188#endif
15189
15190; return 0; }
15191EOF
4b6b4dfc 15192if { (eval echo configure:15193: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
af15babd
VZ
15193 rm -rf conftest*
15194 eval "ac_cv_func_$ac_func=yes"
15195else
15196 echo "configure: failed program was:" >&5
15197 cat conftest.$ac_ext >&5
15198 rm -rf conftest*
15199 eval "ac_cv_func_$ac_func=no"
15200fi
15201rm -f conftest*
15202fi
15203
15204if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15205 echo "$ac_t""yes" 1>&6
15206 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15207 cat >> confdefs.h <<EOF
15208#define $ac_tr_func 1
15209EOF
4f14bcd8 15210
af15babd
VZ
15211else
15212 echo "$ac_t""no" 1>&6
4f14bcd8
GD
15213fi
15214done
15215
15216
15217 if test "$ac_cv_func_sigaction" = "no"; then
15218 echo "configure: warning: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" 1>&2
15219 wxUSE_ON_FATAL_EXCEPTION=no
15220 fi
15221
15222 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
15223
15224 ac_ext=C
15225# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15226ac_cpp='$CXXCPP $CPPFLAGS'
15227ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15228ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15229cross_compiling=$ac_cv_prog_cxx_cross
15230
15231
15232 echo $ac_n "checking for sa_handler type""... $ac_c" 1>&6
4b6b4dfc 15233echo "configure:15234: checking for sa_handler type" >&5
4f14bcd8 15234if eval "test \"`echo '$''{'wx_cv_type_sa_handler'+set}'`\" = set"; then
af15babd
VZ
15235 echo $ac_n "(cached) $ac_c" 1>&6
15236else
4f14bcd8
GD
15237
15238 cat > conftest.$ac_ext <<EOF
4b6b4dfc 15239#line 15240 "configure"
af15babd 15240#include "confdefs.h"
4f14bcd8 15241#include <signal.h>
af15babd 15242int main() {
4f14bcd8
GD
15243
15244 extern void testSigHandler(int);
15245
15246 struct sigaction sa;
15247 sa.sa_handler = testSigHandler;
15248
af15babd
VZ
15249; return 0; }
15250EOF
4b6b4dfc 15251if { (eval echo configure:15252: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
af15babd 15252 rm -rf conftest*
4f14bcd8
GD
15253
15254 wx_cv_type_sa_handler=int
15255
af15babd
VZ
15256else
15257 echo "configure: failed program was:" >&5
15258 cat conftest.$ac_ext >&5
15259 rm -rf conftest*
4f14bcd8
GD
15260
15261 wx_cv_type_sa_handler=void
15262
af15babd
VZ
15263fi
15264rm -f conftest*
4f14bcd8
GD
15265
15266fi
15267
15268echo "$ac_t""$wx_cv_type_sa_handler" 1>&6
15269
15270 ac_ext=c
15271# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15272ac_cpp='$CPP $CPPFLAGS'
15273ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15274ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15275cross_compiling=$ac_cv_prog_cc_cross
af15babd 15276
4f14bcd8
GD
15277
15278 cat >> confdefs.h <<EOF
15279#define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
af15babd
VZ
15280EOF
15281
4f14bcd8
GD
15282 fi
15283fi
af15babd 15284
4f14bcd8 15285for ac_func in vfork
af15babd
VZ
15286do
15287echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4b6b4dfc 15288echo "configure:15289: checking for $ac_func" >&5
af15babd
VZ
15289if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15290 echo $ac_n "(cached) $ac_c" 1>&6
15291else
15292 cat > conftest.$ac_ext <<EOF
4b6b4dfc 15293#line 15294 "configure"
af15babd
VZ
15294#include "confdefs.h"
15295/* System header to define __stub macros and hopefully few prototypes,
15296 which can conflict with char $ac_func(); below. */
15297#include <assert.h>
15298/* Override any gcc2 internal prototype to avoid an error. */
15299/* We use char because int might match the return type of a gcc2
15300 builtin and then its argument prototype would still apply. */
15301char $ac_func();
15302
15303int main() {
15304
15305/* The GNU C library defines this for functions which it implements
15306 to always fail with ENOSYS. Some functions are actually named
15307 something starting with __ and the normal name is an alias. */
15308#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15309choke me
15310#else
15311$ac_func();
15312#endif
15313
15314; return 0; }
15315EOF
4b6b4dfc 15316if { (eval echo configure:15317: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
af15babd
VZ
15317 rm -rf conftest*
15318 eval "ac_cv_func_$ac_func=yes"
15319else
15320 echo "configure: failed program was:" >&5
15321 cat conftest.$ac_ext >&5
15322 rm -rf conftest*
15323 eval "ac_cv_func_$ac_func=no"
15324fi
15325rm -f conftest*
15326fi
15327
15328if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15329 echo "$ac_t""yes" 1>&6
15330 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15331 cat >> confdefs.h <<EOF
15332#define $ac_tr_func 1
15333EOF
4f14bcd8 15334
af15babd
VZ
15335else
15336 echo "$ac_t""no" 1>&6
af15babd
VZ
15337fi
15338done
15339
af15babd 15340
ade35f11
VZ
15341for ac_func in mkstemp mktemp
15342do
15343echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4b6b4dfc 15344echo "configure:15345: checking for $ac_func" >&5
ade35f11
VZ
15345if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15346 echo $ac_n "(cached) $ac_c" 1>&6
15347else
15348 cat > conftest.$ac_ext <<EOF
4b6b4dfc 15349#line 15350 "configure"
ade35f11
VZ
15350#include "confdefs.h"
15351/* System header to define __stub macros and hopefully few prototypes,
15352 which can conflict with char $ac_func(); below. */
15353#include <assert.h>
15354/* Override any gcc2 internal prototype to avoid an error. */
15355/* We use char because int might match the return type of a gcc2
15356 builtin and then its argument prototype would still apply. */
15357char $ac_func();
15358
15359int main() {
15360
15361/* The GNU C library defines this for functions which it implements
15362 to always fail with ENOSYS. Some functions are actually named
15363 something starting with __ and the normal name is an alias. */
15364#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15365choke me
15366#else
15367$ac_func();
15368#endif
15369
15370; return 0; }
15371EOF
4b6b4dfc 15372if { (eval echo configure:15373: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ade35f11
VZ
15373 rm -rf conftest*
15374 eval "ac_cv_func_$ac_func=yes"
15375else
15376 echo "configure: failed program was:" >&5
15377 cat conftest.$ac_ext >&5
15378 rm -rf conftest*
15379 eval "ac_cv_func_$ac_func=no"
15380fi
15381rm -f conftest*
15382fi
15383
15384if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15385 echo "$ac_t""yes" 1>&6
15386 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15387 cat >> confdefs.h <<EOF
15388#define $ac_tr_func 1
15389EOF
15390 break
15391else
15392 echo "$ac_t""no" 1>&6
15393fi
15394done
15395
15396
4f14bcd8 15397echo $ac_n "checking for statfs""... $ac_c" 1>&6
4b6b4dfc 15398echo "configure:15399: checking for statfs" >&5
4f14bcd8
GD
15399if eval "test \"`echo '$''{'wx_cv_func_statfs'+set}'`\" = set"; then
15400 echo $ac_n "(cached) $ac_c" 1>&6
15401else
15402 cat > conftest.$ac_ext <<EOF
4b6b4dfc 15403#line 15404 "configure"
4f14bcd8
GD
15404#include "confdefs.h"
15405
15406 #if defined(__BSD__)
15407 #include <sys/param.h>
15408 #include <sys/mount.h>
15409 #else
15410 #include <sys/vfs.h>
15411 #endif
15412
15413int main() {
15414
15415 long l;
15416 struct statfs fs;
15417 statfs("/", &fs);
15418 l = fs.f_bsize;
15419 l += fs.f_blocks;
15420 l += fs.f_bavail;
15421
15422; return 0; }
15423EOF
4b6b4dfc 15424if { (eval echo configure:15425: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4f14bcd8
GD
15425 rm -rf conftest*
15426
15427 wx_cv_func_statfs=yes
15428
15429else
15430 echo "configure: failed program was:" >&5
15431 cat conftest.$ac_ext >&5
15432 rm -rf conftest*
15433
15434 wx_cv_func_statfs=no
af15babd
VZ
15435
15436
15437fi
4f14bcd8 15438rm -f conftest*
af15babd
VZ
15439
15440fi
15441
4f14bcd8
GD
15442echo "$ac_t""$wx_cv_func_statfs" 1>&6
15443
15444if test "$wx_cv_func_statfs" = "yes"; then
15445 cat >> confdefs.h <<\EOF
15446#define HAVE_STATFS 1
15447EOF
15448
15449else
15450 echo $ac_n "checking for statvfs""... $ac_c" 1>&6
4b6b4dfc 15451echo "configure:15452: checking for statvfs" >&5
4f14bcd8 15452if eval "test \"`echo '$''{'wx_cv_func_statvfs'+set}'`\" = set"; then
af15babd
VZ
15453 echo $ac_n "(cached) $ac_c" 1>&6
15454else
15455 cat > conftest.$ac_ext <<EOF
4b6b4dfc 15456#line 15457 "configure"
af15babd 15457#include "confdefs.h"
af15babd 15458
4f14bcd8
GD
15459 #include <sys/statvfs.h>
15460
af15babd
VZ
15461int main() {
15462
4f14bcd8
GD
15463 long l;
15464 struct statvfs fs;
15465 statvfs("/", &fs);
15466 l = fs.f_bsize;
15467 l += fs.f_blocks;
15468 l += fs.f_bavail;
15469
af15babd
VZ
15470; return 0; }
15471EOF
4b6b4dfc 15472if { (eval echo configure:15473: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
af15babd 15473 rm -rf conftest*
4f14bcd8
GD
15474
15475 wx_cv_func_statvfs=yes
15476
af15babd
VZ
15477else
15478 echo "configure: failed program was:" >&5
15479 cat conftest.$ac_ext >&5
15480 rm -rf conftest*
4f14bcd8
GD
15481
15482 wx_cv_func_statvfs=no
15483
15484
af15babd
VZ
15485fi
15486rm -f conftest*
4f14bcd8 15487
af15babd
VZ
15488fi
15489
4f14bcd8 15490echo "$ac_t""$wx_cv_func_statvfs" 1>&6
af15babd 15491
4f14bcd8
GD
15492 if test "$wx_cv_func_statvfs" = "yes"; then
15493 cat >> confdefs.h <<\EOF
15494#define HAVE_STATVFS 1
15495EOF
af15babd 15496
4f14bcd8
GD
15497 else
15498 echo "configure: warning: wxGetDiskSpace() function won't work without statfs()" 1>&2
15499 fi
15500fi
af15babd 15501
4f14bcd8
GD
15502if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
15503 for ac_func in fcntl flock
af15babd
VZ
15504do
15505echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4b6b4dfc 15506echo "configure:15507: checking for $ac_func" >&5
af15babd
VZ
15507if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15508 echo $ac_n "(cached) $ac_c" 1>&6
15509else
15510 cat > conftest.$ac_ext <<EOF
4b6b4dfc 15511#line 15512 "configure"
af15babd
VZ
15512#include "confdefs.h"
15513/* System header to define __stub macros and hopefully few prototypes,
15514 which can conflict with char $ac_func(); below. */
15515#include <assert.h>
15516/* Override any gcc2 internal prototype to avoid an error. */
af15babd
VZ
15517/* We use char because int might match the return type of a gcc2
15518 builtin and then its argument prototype would still apply. */
15519char $ac_func();
15520
15521int main() {
15522
15523/* The GNU C library defines this for functions which it implements
15524 to always fail with ENOSYS. Some functions are actually named
15525 something starting with __ and the normal name is an alias. */
15526#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15527choke me
15528#else
15529$ac_func();
15530#endif
15531
15532; return 0; }
15533EOF
4b6b4dfc 15534if { (eval echo configure:15535: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
af15babd
VZ
15535 rm -rf conftest*
15536 eval "ac_cv_func_$ac_func=yes"
15537else
15538 echo "configure: failed program was:" >&5
15539 cat conftest.$ac_ext >&5
15540 rm -rf conftest*
15541 eval "ac_cv_func_$ac_func=no"
15542fi
15543rm -f conftest*
15544fi
15545
15546if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15547 echo "$ac_t""yes" 1>&6
15548 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15549 cat >> confdefs.h <<EOF
15550#define $ac_tr_func 1
15551EOF
4f14bcd8 15552 break
af15babd
VZ
15553else
15554 echo "$ac_t""no" 1>&6
15555fi
15556done
15557
15558
4f14bcd8
GD
15559 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
15560 echo "configure: warning: wxSingleInstanceChecker not available" 1>&2
15561 wxUSE_SNGLINST_CHECKER=no
15562 fi
15563fi
af15babd 15564
4f14bcd8 15565for ac_func in timegm
af15babd
VZ
15566do
15567echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4b6b4dfc 15568echo "configure:15569: checking for $ac_func" >&5
af15babd
VZ
15569if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15570 echo $ac_n "(cached) $ac_c" 1>&6
15571else
15572 cat > conftest.$ac_ext <<EOF
4b6b4dfc 15573#line 15574 "configure"
af15babd
VZ
15574#include "confdefs.h"
15575/* System header to define __stub macros and hopefully few prototypes,
15576 which can conflict with char $ac_func(); below. */
15577#include <assert.h>
15578/* Override any gcc2 internal prototype to avoid an error. */
15579/* We use char because int might match the return type of a gcc2
15580 builtin and then its argument prototype would still apply. */
15581char $ac_func();
15582
698dcdb6 15583int main() {
698dcdb6 15584
af15babd
VZ
15585/* The GNU C library defines this for functions which it implements
15586 to always fail with ENOSYS. Some functions are actually named
15587 something starting with __ and the normal name is an alias. */
15588#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15589choke me
15590#else
15591$ac_func();
15592#endif
15593
698dcdb6
VZ
15594; return 0; }
15595EOF
4b6b4dfc 15596if { (eval echo configure:15597: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 15597 rm -rf conftest*
af15babd 15598 eval "ac_cv_func_$ac_func=yes"
698dcdb6
VZ
15599else
15600 echo "configure: failed program was:" >&5
15601 cat conftest.$ac_ext >&5
15602 rm -rf conftest*
af15babd 15603 eval "ac_cv_func_$ac_func=no"
1e487827 15604fi
9952adac 15605rm -f conftest*
af15babd 15606fi
703e0a69 15607
af15babd
VZ
15608if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15609 echo "$ac_t""yes" 1>&6
15610 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4f14bcd8
GD
15611 cat >> confdefs.h <<EOF
15612#define $ac_tr_func 1
15613EOF
15614
15615else
15616 echo "$ac_t""no" 1>&6
af15babd
VZ
15617fi
15618done
15619
15620
4f14bcd8 15621for ac_func in putenv setenv
10f2d63a 15622do
698dcdb6 15623echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4b6b4dfc 15624echo "configure:15625: checking for $ac_func" >&5
698dcdb6
VZ
15625if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15626 echo $ac_n "(cached) $ac_c" 1>&6
15627else
15628 cat > conftest.$ac_ext <<EOF
4b6b4dfc 15629#line 15630 "configure"
af15babd
VZ
15630#include "confdefs.h"
15631/* System header to define __stub macros and hopefully few prototypes,
15632 which can conflict with char $ac_func(); below. */
15633#include <assert.h>
15634/* Override any gcc2 internal prototype to avoid an error. */
15635/* We use char because int might match the return type of a gcc2
15636 builtin and then its argument prototype would still apply. */
15637char $ac_func();
15638
15639int main() {
15640
15641/* The GNU C library defines this for functions which it implements
15642 to always fail with ENOSYS. Some functions are actually named
15643 something starting with __ and the normal name is an alias. */
15644#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15645choke me
15646#else
15647$ac_func();
15648#endif
15649
15650; return 0; }
15651EOF
4b6b4dfc 15652if { (eval echo configure:15653: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
af15babd
VZ
15653 rm -rf conftest*
15654 eval "ac_cv_func_$ac_func=yes"
15655else
15656 echo "configure: failed program was:" >&5
15657 cat conftest.$ac_ext >&5
15658 rm -rf conftest*
15659 eval "ac_cv_func_$ac_func=no"
15660fi
15661rm -f conftest*
15662fi
15663
15664if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15665 echo "$ac_t""yes" 1>&6
15666 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15667 cat >> confdefs.h <<EOF
15668#define $ac_tr_func 1
15669EOF
4f14bcd8 15670 break
af15babd
VZ
15671else
15672 echo "$ac_t""no" 1>&6
15673fi
af15babd
VZ
15674done
15675
15676
4f14bcd8
GD
15677HAVE_SOME_SLEEP_FUNC=0
15678if test "$USE_BEOS" = 1; then
15679 cat >> confdefs.h <<\EOF
15680#define HAVE_SLEEP 1
af15babd
VZ
15681EOF
15682
4f14bcd8 15683 HAVE_SOME_SLEEP_FUNC=1
10f2d63a
VZ
15684fi
15685
4f14bcd8
GD
15686if test "$USE_DARWIN" = 1; then
15687 cat >> confdefs.h <<\EOF
15688#define HAVE_USLEEP 1
af15babd 15689EOF
10f2d63a 15690
4f14bcd8 15691 HAVE_SOME_SLEEP_FUNC=1
10f2d63a
VZ
15692fi
15693
4f14bcd8
GD
15694if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
15695 POSIX4_LINK=
15696 for ac_func in nanosleep
15697do
15698echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4b6b4dfc 15699echo "configure:15700: checking for $ac_func" >&5
4f14bcd8 15700if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
698dcdb6 15701 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 15702else
4f14bcd8 15703 cat > conftest.$ac_ext <<EOF
4b6b4dfc 15704#line 15705 "configure"
10f2d63a 15705#include "confdefs.h"
4f14bcd8
GD
15706/* System header to define __stub macros and hopefully few prototypes,
15707 which can conflict with char $ac_func(); below. */
15708#include <assert.h>
10f2d63a
VZ
15709/* Override any gcc2 internal prototype to avoid an error. */
15710/* We use char because int might match the return type of a gcc2
698dcdb6 15711 builtin and then its argument prototype would still apply. */
4f14bcd8 15712char $ac_func();
698dcdb6
VZ
15713
15714int main() {
4f14bcd8
GD
15715
15716/* The GNU C library defines this for functions which it implements
15717 to always fail with ENOSYS. Some functions are actually named
15718 something starting with __ and the normal name is an alias. */
15719#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15720choke me
15721#else
15722$ac_func();
15723#endif
15724
698dcdb6
VZ
15725; return 0; }
15726EOF
4b6b4dfc 15727if { (eval echo configure:15728: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 15728 rm -rf conftest*
4f14bcd8 15729 eval "ac_cv_func_$ac_func=yes"
698dcdb6
VZ
15730else
15731 echo "configure: failed program was:" >&5
15732 cat conftest.$ac_ext >&5
15733 rm -rf conftest*
4f14bcd8 15734 eval "ac_cv_func_$ac_func=no"
698dcdb6
VZ
15735fi
15736rm -f conftest*
698dcdb6 15737fi
4f14bcd8
GD
15738
15739if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
698dcdb6 15740 echo "$ac_t""yes" 1>&6
4f14bcd8
GD
15741 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15742 cat >> confdefs.h <<EOF
15743#define $ac_tr_func 1
15744EOF
15745 cat >> confdefs.h <<\EOF
15746#define HAVE_NANOSLEEP 1
15747EOF
15748
10f2d63a 15749else
698dcdb6 15750 echo "$ac_t""no" 1>&6
4f14bcd8 15751echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
4b6b4dfc 15752echo "configure:15753: checking for nanosleep in -lposix4" >&5
4f14bcd8 15753ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
698dcdb6
VZ
15754if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15755 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 15756else
698dcdb6 15757 ac_save_LIBS="$LIBS"
4f14bcd8 15758LIBS="-lposix4 $LIBS"
698dcdb6 15759cat > conftest.$ac_ext <<EOF
4b6b4dfc 15760#line 15761 "configure"
10f2d63a
VZ
15761#include "confdefs.h"
15762/* Override any gcc2 internal prototype to avoid an error. */
15763/* We use char because int might match the return type of a gcc2
698dcdb6 15764 builtin and then its argument prototype would still apply. */
4f14bcd8 15765char nanosleep();
698dcdb6
VZ
15766
15767int main() {
4f14bcd8 15768nanosleep()
698dcdb6
VZ
15769; return 0; }
15770EOF
4b6b4dfc 15771if { (eval echo configure:15772: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
15772 rm -rf conftest*
15773 eval "ac_cv_lib_$ac_lib_var=yes"
15774else
15775 echo "configure: failed program was:" >&5
15776 cat conftest.$ac_ext >&5
15777 rm -rf conftest*
15778 eval "ac_cv_lib_$ac_lib_var=no"
15779fi
15780rm -f conftest*
15781LIBS="$ac_save_LIBS"
10f2d63a 15782
698dcdb6
VZ
15783fi
15784if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15785 echo "$ac_t""yes" 1>&6
15786
4f14bcd8
GD
15787 cat >> confdefs.h <<\EOF
15788#define HAVE_NANOSLEEP 1
15789EOF
15790
3d63bc3a 15791 POSIX4_LINK=" -lposix4"
4f14bcd8 15792
10f2d63a 15793else
698dcdb6 15794 echo "$ac_t""no" 1>&6
10f2d63a 15795
4f14bcd8
GD
15796 for ac_func in usleep
15797do
15798echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4b6b4dfc 15799echo "configure:15800: checking for $ac_func" >&5
4f14bcd8 15800if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
698dcdb6 15801 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 15802else
698dcdb6 15803 cat > conftest.$ac_ext <<EOF
4b6b4dfc 15804#line 15805 "configure"
10f2d63a 15805#include "confdefs.h"
4f14bcd8
GD
15806/* System header to define __stub macros and hopefully few prototypes,
15807 which can conflict with char $ac_func(); below. */
15808#include <assert.h>
15809/* Override any gcc2 internal prototype to avoid an error. */
15810/* We use char because int might match the return type of a gcc2
15811 builtin and then its argument prototype would still apply. */
15812char $ac_func();
15813
15814int main() {
15815
15816/* The GNU C library defines this for functions which it implements
15817 to always fail with ENOSYS. Some functions are actually named
15818 something starting with __ and the normal name is an alias. */
15819#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15820choke me
15821#else
15822$ac_func();
15823#endif
15824
15825; return 0; }
698dcdb6 15826EOF
4b6b4dfc 15827if { (eval echo configure:15828: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 15828 rm -rf conftest*
4f14bcd8 15829 eval "ac_cv_func_$ac_func=yes"
1e487827 15830else
698dcdb6 15831 echo "configure: failed program was:" >&5
10f2d63a 15832 cat conftest.$ac_ext >&5
698dcdb6 15833 rm -rf conftest*
4f14bcd8 15834 eval "ac_cv_func_$ac_func=no"
10f2d63a 15835fi
698dcdb6 15836rm -f conftest*
10f2d63a 15837fi
4f14bcd8
GD
15838
15839if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
698dcdb6 15840 echo "$ac_t""yes" 1>&6
4f14bcd8
GD
15841 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15842 cat >> confdefs.h <<EOF
15843#define $ac_tr_func 1
15844EOF
15845 cat >> confdefs.h <<\EOF
15846#define HAVE_USLEEP 1
15847EOF
15848
698dcdb6
VZ
15849else
15850 echo "$ac_t""no" 1>&6
4f14bcd8
GD
15851echo "configure: warning: wxSleep() function will not work" 1>&2
15852
10f2d63a 15853fi
4f14bcd8 15854done
10f2d63a 15855
4f14bcd8 15856
698dcdb6 15857
6232543b 15858fi
10f2d63a 15859
698dcdb6 15860
4f14bcd8 15861
1e487827 15862fi
4f14bcd8 15863done
703e0a69 15864
10f2d63a
VZ
15865fi
15866
4f14bcd8 15867for ac_func in uname gethostname
70846f0a 15868do
698dcdb6 15869echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4b6b4dfc 15870echo "configure:15871: checking for $ac_func" >&5
698dcdb6
VZ
15871if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15872 echo $ac_n "(cached) $ac_c" 1>&6
15873else
15874 cat > conftest.$ac_ext <<EOF
4b6b4dfc 15875#line 15876 "configure"
70846f0a
VZ
15876#include "confdefs.h"
15877/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 15878 which can conflict with char $ac_func(); below. */
70846f0a
VZ
15879#include <assert.h>
15880/* Override any gcc2 internal prototype to avoid an error. */
15881/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
15882 builtin and then its argument prototype would still apply. */
15883char $ac_func();
15884
15885int main() {
70846f0a
VZ
15886
15887/* The GNU C library defines this for functions which it implements
15888 to always fail with ENOSYS. Some functions are actually named
15889 something starting with __ and the normal name is an alias. */
15890#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15891choke me
15892#else
698dcdb6 15893$ac_func();
70846f0a
VZ
15894#endif
15895
698dcdb6 15896; return 0; }
70846f0a 15897EOF
4b6b4dfc 15898if { (eval echo configure:15899: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
15899 rm -rf conftest*
15900 eval "ac_cv_func_$ac_func=yes"
15901else
15902 echo "configure: failed program was:" >&5
15903 cat conftest.$ac_ext >&5
15904 rm -rf conftest*
15905 eval "ac_cv_func_$ac_func=no"
15906fi
15907rm -f conftest*
15908fi
70846f0a 15909
698dcdb6
VZ
15910if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15911 echo "$ac_t""yes" 1>&6
15912 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15913 cat >> confdefs.h <<EOF
15914#define $ac_tr_func 1
15915EOF
4f14bcd8 15916 break
698dcdb6
VZ
15917else
15918 echo "$ac_t""no" 1>&6
70846f0a
VZ
15919fi
15920done
15921
698dcdb6 15922
4f14bcd8
GD
15923
15924ac_ext=C
15925# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15926ac_cpp='$CXXCPP $CPPFLAGS'
15927ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15928ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15929cross_compiling=$ac_cv_prog_cxx_cross
15930
15931
15932for ac_func in strtok_r
10f2d63a 15933do
4f14bcd8 15934echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4b6b4dfc 15935echo "configure:15936: checking for $ac_func" >&5
4f14bcd8 15936if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
698dcdb6
VZ
15937 echo $ac_n "(cached) $ac_c" 1>&6
15938else
15939 cat > conftest.$ac_ext <<EOF
4b6b4dfc 15940#line 15941 "configure"
10f2d63a 15941#include "confdefs.h"
4f14bcd8
GD
15942/* System header to define __stub macros and hopefully few prototypes,
15943 which can conflict with char $ac_func(); below. */
15944#include <assert.h>
15945/* Override any gcc2 internal prototype to avoid an error. */
15946#ifdef __cplusplus
15947extern "C"
15948#endif
15949/* We use char because int might match the return type of a gcc2
15950 builtin and then its argument prototype would still apply. */
15951char $ac_func();
15952
15953int main() {
15954
15955/* The GNU C library defines this for functions which it implements
15956 to always fail with ENOSYS. Some functions are actually named
15957 something starting with __ and the normal name is an alias. */
15958#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15959choke me
15960#else
15961$ac_func();
15962#endif
15963
15964; return 0; }
698dcdb6 15965EOF
4b6b4dfc 15966if { (eval echo configure:15967: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 15967 rm -rf conftest*
4f14bcd8 15968 eval "ac_cv_func_$ac_func=yes"
1e487827 15969else
698dcdb6 15970 echo "configure: failed program was:" >&5
10f2d63a 15971 cat conftest.$ac_ext >&5
698dcdb6 15972 rm -rf conftest*
4f14bcd8 15973 eval "ac_cv_func_$ac_func=no"
10f2d63a 15974fi
698dcdb6 15975rm -f conftest*
10f2d63a 15976fi
4f14bcd8
GD
15977
15978if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
698dcdb6 15979 echo "$ac_t""yes" 1>&6
4f14bcd8 15980 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
698dcdb6 15981 cat >> confdefs.h <<EOF
4f14bcd8 15982#define $ac_tr_func 1
10f2d63a 15983EOF
698dcdb6
VZ
15984
15985else
15986 echo "$ac_t""no" 1>&6
10f2d63a
VZ
15987fi
15988done
15989
698dcdb6 15990
4f14bcd8
GD
15991ac_ext=c
15992# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15993ac_cpp='$CPP $CPPFLAGS'
15994ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15995ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15996cross_compiling=$ac_cv_prog_cc_cross
15997
15998
15999INET_LINK=
16000for ac_func in inet_addr
16001do
16002echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4b6b4dfc 16003echo "configure:16004: checking for $ac_func" >&5
4f14bcd8 16004if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
698dcdb6 16005 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 16006else
4f14bcd8 16007 cat > conftest.$ac_ext <<EOF
4b6b4dfc 16008#line 16009 "configure"
10f2d63a 16009#include "confdefs.h"
4f14bcd8
GD
16010/* System header to define __stub macros and hopefully few prototypes,
16011 which can conflict with char $ac_func(); below. */
16012#include <assert.h>
10f2d63a
VZ
16013/* Override any gcc2 internal prototype to avoid an error. */
16014/* We use char because int might match the return type of a gcc2
698dcdb6 16015 builtin and then its argument prototype would still apply. */
4f14bcd8 16016char $ac_func();
698dcdb6
VZ
16017
16018int main() {
4f14bcd8
GD
16019
16020/* The GNU C library defines this for functions which it implements
16021 to always fail with ENOSYS. Some functions are actually named
16022 something starting with __ and the normal name is an alias. */
16023#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16024choke me
16025#else
16026$ac_func();
16027#endif
16028
698dcdb6
VZ
16029; return 0; }
16030EOF
4b6b4dfc 16031if { (eval echo configure:16032: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 16032 rm -rf conftest*
4f14bcd8 16033 eval "ac_cv_func_$ac_func=yes"
698dcdb6
VZ
16034else
16035 echo "configure: failed program was:" >&5
16036 cat conftest.$ac_ext >&5
16037 rm -rf conftest*
4f14bcd8 16038 eval "ac_cv_func_$ac_func=no"
698dcdb6
VZ
16039fi
16040rm -f conftest*
698dcdb6 16041fi
4f14bcd8
GD
16042
16043if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
698dcdb6 16044 echo "$ac_t""yes" 1>&6
4f14bcd8
GD
16045 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16046 cat >> confdefs.h <<EOF
16047#define $ac_tr_func 1
16048EOF
16049 cat >> confdefs.h <<\EOF
16050#define HAVE_INET_ADDR 1
10f2d63a
VZ
16051EOF
16052
16053else
698dcdb6 16054 echo "$ac_t""no" 1>&6
4f14bcd8 16055echo $ac_n "checking for inet_addr in -lnsl""... $ac_c" 1>&6
4b6b4dfc 16056echo "configure:16057: checking for inet_addr in -lnsl" >&5
4f14bcd8 16057ac_lib_var=`echo nsl'_'inet_addr | sed 'y%./+-%__p_%'`
698dcdb6
VZ
16058if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16059 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 16060else
698dcdb6 16061 ac_save_LIBS="$LIBS"
4f14bcd8 16062LIBS="-lnsl $LIBS"
698dcdb6 16063cat > conftest.$ac_ext <<EOF
4b6b4dfc 16064#line 16065 "configure"
10f2d63a
VZ
16065#include "confdefs.h"
16066/* Override any gcc2 internal prototype to avoid an error. */
16067/* We use char because int might match the return type of a gcc2
698dcdb6 16068 builtin and then its argument prototype would still apply. */
4f14bcd8 16069char inet_addr();
698dcdb6
VZ
16070
16071int main() {
4f14bcd8 16072inet_addr()
698dcdb6
VZ
16073; return 0; }
16074EOF
4b6b4dfc 16075if { (eval echo configure:16076: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
16076 rm -rf conftest*
16077 eval "ac_cv_lib_$ac_lib_var=yes"
16078else
16079 echo "configure: failed program was:" >&5
16080 cat conftest.$ac_ext >&5
16081 rm -rf conftest*
16082 eval "ac_cv_lib_$ac_lib_var=no"
16083fi
16084rm -f conftest*
16085LIBS="$ac_save_LIBS"
16086
16087fi
16088if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16089 echo "$ac_t""yes" 1>&6
4f14bcd8 16090 INET_LINK="nsl"
10f2d63a 16091else
698dcdb6 16092 echo "$ac_t""no" 1>&6
4f14bcd8 16093echo $ac_n "checking for inet_addr in -lresolv""... $ac_c" 1>&6
4b6b4dfc 16094echo "configure:16095: checking for inet_addr in -lresolv" >&5
4f14bcd8 16095ac_lib_var=`echo resolv'_'inet_addr | sed 'y%./+-%__p_%'`
698dcdb6
VZ
16096if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16097 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 16098else
698dcdb6 16099 ac_save_LIBS="$LIBS"
4f14bcd8 16100LIBS="-lresolv $LIBS"
698dcdb6 16101cat > conftest.$ac_ext <<EOF
4b6b4dfc 16102#line 16103 "configure"
10f2d63a
VZ
16103#include "confdefs.h"
16104/* Override any gcc2 internal prototype to avoid an error. */
16105/* We use char because int might match the return type of a gcc2
698dcdb6 16106 builtin and then its argument prototype would still apply. */
4f14bcd8 16107char inet_addr();
698dcdb6
VZ
16108
16109int main() {
4f14bcd8 16110inet_addr()
698dcdb6
VZ
16111; return 0; }
16112EOF
4b6b4dfc 16113if { (eval echo configure:16114: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
16114 rm -rf conftest*
16115 eval "ac_cv_lib_$ac_lib_var=yes"
16116else
16117 echo "configure: failed program was:" >&5
16118 cat conftest.$ac_ext >&5
16119 rm -rf conftest*
16120 eval "ac_cv_lib_$ac_lib_var=no"
16121fi
16122rm -f conftest*
16123LIBS="$ac_save_LIBS"
16124
16125fi
16126if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16127 echo "$ac_t""yes" 1>&6
4f14bcd8
GD
16128 INET_LINK="resolv"
16129
698dcdb6 16130else
4f14bcd8
GD
16131 echo "$ac_t""no" 1>&6
16132fi
698dcdb6 16133
4f14bcd8 16134
698dcdb6 16135fi
4f14bcd8
GD
16136
16137
698dcdb6
VZ
16138
16139fi
4f14bcd8
GD
16140done
16141
16142
16143for ac_func in inet_aton
16144do
16145echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4b6b4dfc 16146echo "configure:16147: checking for $ac_func" >&5
4f14bcd8 16147if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
698dcdb6
VZ
16148 echo $ac_n "(cached) $ac_c" 1>&6
16149else
4f14bcd8 16150 cat > conftest.$ac_ext <<EOF
4b6b4dfc 16151#line 16152 "configure"
f6bcfd97 16152#include "confdefs.h"
4f14bcd8
GD
16153/* System header to define __stub macros and hopefully few prototypes,
16154 which can conflict with char $ac_func(); below. */
16155#include <assert.h>
f6bcfd97
BP
16156/* Override any gcc2 internal prototype to avoid an error. */
16157/* We use char because int might match the return type of a gcc2
698dcdb6 16158 builtin and then its argument prototype would still apply. */
4f14bcd8 16159char $ac_func();
698dcdb6
VZ
16160
16161int main() {
4f14bcd8
GD
16162
16163/* The GNU C library defines this for functions which it implements
16164 to always fail with ENOSYS. Some functions are actually named
16165 something starting with __ and the normal name is an alias. */
16166#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16167choke me
16168#else
16169$ac_func();
16170#endif
16171
698dcdb6
VZ
16172; return 0; }
16173EOF
4b6b4dfc 16174if { (eval echo configure:16175: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 16175 rm -rf conftest*
4f14bcd8 16176 eval "ac_cv_func_$ac_func=yes"
698dcdb6
VZ
16177else
16178 echo "configure: failed program was:" >&5
16179 cat conftest.$ac_ext >&5
16180 rm -rf conftest*
4f14bcd8 16181 eval "ac_cv_func_$ac_func=no"
698dcdb6
VZ
16182fi
16183rm -f conftest*
698dcdb6 16184fi
4f14bcd8
GD
16185
16186if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
698dcdb6 16187 echo "$ac_t""yes" 1>&6
4f14bcd8
GD
16188 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16189 cat >> confdefs.h <<EOF
16190#define $ac_tr_func 1
16191EOF
16192 cat >> confdefs.h <<\EOF
16193#define HAVE_INET_ATON 1
16194EOF
16195
10f2d63a 16196else
698dcdb6 16197 echo "$ac_t""no" 1>&6
4f14bcd8 16198 echo $ac_n "checking for inet_aton in -l$INET_LINK""... $ac_c" 1>&6
4b6b4dfc 16199echo "configure:16200: checking for inet_aton in -l$INET_LINK" >&5
4f14bcd8 16200ac_lib_var=`echo $INET_LINK'_'inet_aton | sed 'y%./+-%__p_%'`
698dcdb6
VZ
16201if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16202 echo $ac_n "(cached) $ac_c" 1>&6
1e487827 16203else
698dcdb6 16204 ac_save_LIBS="$LIBS"
4f14bcd8 16205LIBS="-l$INET_LINK $LIBS"
698dcdb6 16206cat > conftest.$ac_ext <<EOF
4b6b4dfc 16207#line 16208 "configure"
10f2d63a 16208#include "confdefs.h"
6232543b 16209/* Override any gcc2 internal prototype to avoid an error. */
6232543b 16210/* We use char because int might match the return type of a gcc2
698dcdb6 16211 builtin and then its argument prototype would still apply. */
4f14bcd8 16212char inet_aton();
698dcdb6
VZ
16213
16214int main() {
4f14bcd8 16215inet_aton()
698dcdb6
VZ
16216; return 0; }
16217EOF
4b6b4dfc 16218if { (eval echo configure:16219: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
16219 rm -rf conftest*
16220 eval "ac_cv_lib_$ac_lib_var=yes"
16221else
16222 echo "configure: failed program was:" >&5
16223 cat conftest.$ac_ext >&5
16224 rm -rf conftest*
16225 eval "ac_cv_lib_$ac_lib_var=no"
16226fi
16227rm -f conftest*
16228LIBS="$ac_save_LIBS"
10f2d63a 16229
698dcdb6
VZ
16230fi
16231if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16232 echo "$ac_t""yes" 1>&6
4f14bcd8
GD
16233 cat >> confdefs.h <<\EOF
16234#define HAVE_INET_ATON 1
16235EOF
16236
698dcdb6
VZ
16237else
16238 echo "$ac_t""no" 1>&6
10f2d63a
VZ
16239fi
16240
4f14bcd8 16241
10f2d63a 16242fi
4f14bcd8 16243done
10f2d63a 16244
4f14bcd8
GD
16245
16246if test "x$INET_LINK" != "x"; then
16247 cat >> confdefs.h <<\EOF
16248#define HAVE_INET_ADDR 1
16249EOF
16250
3d63bc3a 16251 INET_LINK=" -l$INET_LINK"
6232543b 16252fi
10f2d63a 16253
1e487827 16254fi
703e0a69 16255
698dcdb6 16256
4f14bcd8
GD
16257cat > confcache <<\EOF
16258# This file is a shell script that caches the results of configure
16259# tests run on this system so they can be shared between configure
16260# scripts and configure runs. It is not useful on other systems.
16261# If it contains results you don't want to keep, you may remove or edit it.
16262#
16263# By default, configure uses ./config.cache as the cache file,
16264# creating it if it does not exist already. You can give configure
16265# the --cache-file=FILE option to use a different cache file; that is
16266# what configure does when it calls configure scripts in
16267# subdirectories, so they share the cache.
16268# Giving --cache-file=/dev/null disables caching, for debugging configure.
16269# config.status only pays attention to the cache file if you give it the
16270# --recheck option to rerun configure.
16271#
f6bcfd97 16272EOF
4f14bcd8
GD
16273# The following way of writing the cache mishandles newlines in values,
16274# but we know of no workaround that is simple, portable, and efficient.
16275# So, don't put newlines in cache variables' values.
16276# Ultrix sh set writes to stderr and can't be redirected directly,
16277# and sets the high bit in the cache file unless we assign to the vars.
16278(set) 2>&1 |
16279 case `(ac_space=' '; set | grep ac_space) 2>&1` in
16280 *ac_space=\ *)
16281 # `set' does not quote correctly, so add quotes (double-quote substitution
16282 # turns \\\\ into \\, and sed turns \\ into \).
16283 sed -n \
16284 -e "s/'/'\\\\''/g" \
16285 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
16286 ;;
16287 *)
16288 # `set' quotes correctly as required by POSIX, so do not add quotes.
16289 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
16290 ;;
16291 esac >> confcache
16292if cmp -s $cache_file confcache; then
16293 :
16294else
16295 if test -w $cache_file; then
16296 echo "updating cache $cache_file"
16297 cat confcache > $cache_file
f6bcfd97 16298 else
4f14bcd8 16299 echo "not updating unwritable cache $cache_file"
f6bcfd97 16300 fi
4f14bcd8
GD
16301fi
16302rm -f confcache
f6bcfd97 16303
4f14bcd8
GD
16304
16305
16306if test "$TOOLKIT" != "MSW"; then
16307
7274f1c7
RL
16308
16309 THREADS_LINK=
16310 THREADS_OBJ=
16311 CODE_GEN_FLAGS=
16312 CODE_GEN_FLAGS_CXX=
16313
16314 if test "$wxUSE_THREADS" = "yes" ; then
16315 if test "$wxUSE_WINE" = 1 ; then
156b2523 16316 echo "configure: warning: Threads are not supported under WINE... disabled" 1>&2
7274f1c7
RL
16317 wxUSE_THREADS="no"
16318 elif test "$USE_BEOS" = 1; then
156b2523 16319 echo "configure: warning: BeOS threads are not yet supported... disabled" 1>&2
7274f1c7
RL
16320 wxUSE_THREADS="no"
16321 fi
4f14bcd8 16322 fi
4f14bcd8 16323
7274f1c7
RL
16324 if test "$wxUSE_THREADS" = "yes" ; then
16325
16326 if test "$USE_AIX" = 1; then
16327 THREADS_LIB=pthreads
16328 else
16329 THREADS_LIB=pthread
16330 fi
4f14bcd8 16331
7274f1c7 16332 echo $ac_n "checking for pthread_create in -l$THREADS_LIB""... $ac_c" 1>&6
4b6b4dfc 16333echo "configure:16334: checking for pthread_create in -l$THREADS_LIB" >&5
4f14bcd8 16334ac_lib_var=`echo $THREADS_LIB'_'pthread_create | sed 'y%./+-%__p_%'`
698dcdb6
VZ
16335if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16336 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 16337else
698dcdb6 16338 ac_save_LIBS="$LIBS"
4f14bcd8 16339LIBS="-l$THREADS_LIB $LIBS"
698dcdb6 16340cat > conftest.$ac_ext <<EOF
4b6b4dfc 16341#line 16342 "configure"
10f2d63a
VZ
16342#include "confdefs.h"
16343/* Override any gcc2 internal prototype to avoid an error. */
16344/* We use char because int might match the return type of a gcc2
698dcdb6 16345 builtin and then its argument prototype would still apply. */
4f14bcd8 16346char pthread_create();
698dcdb6
VZ
16347
16348int main() {
4f14bcd8 16349pthread_create()
698dcdb6
VZ
16350; return 0; }
16351EOF
4b6b4dfc 16352if { (eval echo configure:16353: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
16353 rm -rf conftest*
16354 eval "ac_cv_lib_$ac_lib_var=yes"
16355else
16356 echo "configure: failed program was:" >&5
16357 cat conftest.$ac_ext >&5
16358 rm -rf conftest*
16359 eval "ac_cv_lib_$ac_lib_var=no"
16360fi
16361rm -f conftest*
16362LIBS="$ac_save_LIBS"
16363
16364fi
16365if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16366 echo "$ac_t""yes" 1>&6
4f14bcd8 16367
7274f1c7
RL
16368 THREADS_OBJ="threadpsx.lo"
16369 THREADS_LINK=$THREADS_LIB
16370
10f2d63a 16371else
698dcdb6 16372 echo "$ac_t""no" 1>&6
10f2d63a 16373
7274f1c7 16374 echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6
4b6b4dfc 16375echo "configure:16376: checking for pthread_create in -lc_r" >&5
4f14bcd8
GD
16376ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'`
16377if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
698dcdb6
VZ
16378 echo $ac_n "(cached) $ac_c" 1>&6
16379else
4f14bcd8
GD
16380 ac_save_LIBS="$LIBS"
16381LIBS="-lc_r $LIBS"
16382cat > conftest.$ac_ext <<EOF
4b6b4dfc 16383#line 16384 "configure"
10f2d63a 16384#include "confdefs.h"
4f14bcd8
GD
16385/* Override any gcc2 internal prototype to avoid an error. */
16386/* We use char because int might match the return type of a gcc2
16387 builtin and then its argument prototype would still apply. */
16388char pthread_create();
10f2d63a 16389
4f14bcd8
GD
16390int main() {
16391pthread_create()
698dcdb6
VZ
16392; return 0; }
16393EOF
4b6b4dfc 16394if { (eval echo configure:16395: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 16395 rm -rf conftest*
4f14bcd8 16396 eval "ac_cv_lib_$ac_lib_var=yes"
10f2d63a 16397else
698dcdb6
VZ
16398 echo "configure: failed program was:" >&5
16399 cat conftest.$ac_ext >&5
16400 rm -rf conftest*
4f14bcd8 16401 eval "ac_cv_lib_$ac_lib_var=no"
6232543b 16402fi
698dcdb6 16403rm -f conftest*
4f14bcd8 16404LIBS="$ac_save_LIBS"
d9b9876f 16405
4f14bcd8
GD
16406fi
16407if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16408 echo "$ac_t""yes" 1>&6
16409
7274f1c7
RL
16410 THREADS_OBJ="threadpsx.lo"
16411 THREADS_LINK="c_r"
16412
4f14bcd8
GD
16413else
16414 echo "$ac_t""no" 1>&6
ab252f7b 16415
7274f1c7 16416 ac_safe=`echo "sys/prctl.h" | sed 'y%./+-%__p_%'`
4f14bcd8 16417echo $ac_n "checking for sys/prctl.h""... $ac_c" 1>&6
4b6b4dfc 16418echo "configure:16419: checking for sys/prctl.h" >&5
4f14bcd8 16419if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
698dcdb6 16420 echo $ac_n "(cached) $ac_c" 1>&6
d9b9876f 16421else
4f14bcd8 16422 cat > conftest.$ac_ext <<EOF
4b6b4dfc 16423#line 16424 "configure"
d9b9876f 16424#include "confdefs.h"
4f14bcd8 16425#include <sys/prctl.h>
698dcdb6 16426EOF
4f14bcd8 16427ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4b6b4dfc 16428{ (eval echo configure:16429: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4f14bcd8
GD
16429ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16430if test -z "$ac_err"; then
698dcdb6 16431 rm -rf conftest*
4f14bcd8 16432 eval "ac_cv_header_$ac_safe=yes"
d9b9876f 16433else
4f14bcd8 16434 echo "$ac_err" >&5
698dcdb6
VZ
16435 echo "configure: failed program was:" >&5
16436 cat conftest.$ac_ext >&5
16437 rm -rf conftest*
4f14bcd8 16438 eval "ac_cv_header_$ac_safe=no"
6232543b 16439fi
698dcdb6 16440rm -f conftest*
4f14bcd8
GD
16441fi
16442if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16443 echo "$ac_t""yes" 1>&6
698dcdb6 16444
7274f1c7
RL
16445 THREADS_OBJ="threadsgi.lo"
16446
4f14bcd8
GD
16447else
16448 echo "$ac_t""no" 1>&6
1e487827 16449fi
698dcdb6 16450
7274f1c7 16451
4f14bcd8 16452fi
d9b9876f 16453
7274f1c7 16454
4f14bcd8 16455fi
d9b9876f 16456
4f14bcd8 16457
7274f1c7
RL
16458 if test -z "$THREADS_OBJ" ; then
16459 wxUSE_THREADS=no
156b2523 16460 echo "configure: warning: No thread support on this system... disabled" 1>&2
7274f1c7 16461 fi
4f14bcd8 16462 fi
4f14bcd8 16463
7274f1c7
RL
16464 if test "$wxUSE_THREADS" = "yes" ; then
16465 for ac_func in thr_setconcurrency
4f14bcd8
GD
16466do
16467echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4b6b4dfc 16468echo "configure:16469: checking for $ac_func" >&5
4f14bcd8 16469if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
698dcdb6
VZ
16470 echo $ac_n "(cached) $ac_c" 1>&6
16471else
4f14bcd8 16472 cat > conftest.$ac_ext <<EOF
4b6b4dfc 16473#line 16474 "configure"
d9b9876f 16474#include "confdefs.h"
4f14bcd8
GD
16475/* System header to define __stub macros and hopefully few prototypes,
16476 which can conflict with char $ac_func(); below. */
16477#include <assert.h>
16478/* Override any gcc2 internal prototype to avoid an error. */
16479/* We use char because int might match the return type of a gcc2
16480 builtin and then its argument prototype would still apply. */
16481char $ac_func();
16482
698dcdb6 16483int main() {
d9b9876f 16484
4f14bcd8
GD
16485/* The GNU C library defines this for functions which it implements
16486 to always fail with ENOSYS. Some functions are actually named
16487 something starting with __ and the normal name is an alias. */
16488#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16489choke me
16490#else
16491$ac_func();
16492#endif
16493
698dcdb6
VZ
16494; return 0; }
16495EOF
4b6b4dfc 16496if { (eval echo configure:16497: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 16497 rm -rf conftest*
4f14bcd8 16498 eval "ac_cv_func_$ac_func=yes"
d9b9876f 16499else
698dcdb6
VZ
16500 echo "configure: failed program was:" >&5
16501 cat conftest.$ac_ext >&5
16502 rm -rf conftest*
4f14bcd8 16503 eval "ac_cv_func_$ac_func=no"
6232543b 16504fi
698dcdb6 16505rm -f conftest*
1e487827 16506fi
698dcdb6 16507
4f14bcd8
GD
16508if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16509 echo "$ac_t""yes" 1>&6
16510 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16511 cat >> confdefs.h <<EOF
16512#define $ac_tr_func 1
d9b9876f 16513EOF
4f14bcd8
GD
16514
16515else
16516 echo "$ac_t""no" 1>&6
10f2d63a 16517fi
4f14bcd8 16518done
10f2d63a 16519
10f2d63a 16520
7274f1c7
RL
16521
16522 for ac_hdr in sched.h
4f14bcd8
GD
16523do
16524ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16525echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4b6b4dfc 16526echo "configure:16527: checking for $ac_hdr" >&5
4f14bcd8
GD
16527if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
16528 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 16529else
4f14bcd8 16530 cat > conftest.$ac_ext <<EOF
4b6b4dfc 16531#line 16532 "configure"
4f14bcd8
GD
16532#include "confdefs.h"
16533#include <$ac_hdr>
13111b2a 16534EOF
4f14bcd8 16535ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4b6b4dfc 16536{ (eval echo configure:16537: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4f14bcd8
GD
16537ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16538if test -z "$ac_err"; then
16539 rm -rf conftest*
16540 eval "ac_cv_header_$ac_safe=yes"
16541else
16542 echo "$ac_err" >&5
16543 echo "configure: failed program was:" >&5
16544 cat conftest.$ac_ext >&5
16545 rm -rf conftest*
16546 eval "ac_cv_header_$ac_safe=no"
13111b2a 16547fi
4f14bcd8 16548rm -f conftest*
10f2d63a 16549fi
4f14bcd8
GD
16550if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16551 echo "$ac_t""yes" 1>&6
16552 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
698dcdb6 16553 cat >> confdefs.h <<EOF
4f14bcd8 16554#define $ac_tr_hdr 1
f6bcfd97 16555EOF
4f14bcd8
GD
16556
16557else
16558 echo "$ac_t""no" 1>&6
f6bcfd97 16559fi
4f14bcd8 16560done
f6bcfd97 16561
10f2d63a 16562
7274f1c7 16563 echo $ac_n "checking for sched_yield in -l$THREADS_LINK""... $ac_c" 1>&6
4b6b4dfc 16564echo "configure:16565: checking for sched_yield in -l$THREADS_LINK" >&5
4f14bcd8
GD
16565ac_lib_var=`echo $THREADS_LINK'_'sched_yield | sed 'y%./+-%__p_%'`
16566if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16567 echo $ac_n "(cached) $ac_c" 1>&6
16568else
16569 ac_save_LIBS="$LIBS"
16570LIBS="-l$THREADS_LINK $LIBS"
16571cat > conftest.$ac_ext <<EOF
4b6b4dfc 16572#line 16573 "configure"
4f14bcd8
GD
16573#include "confdefs.h"
16574/* Override any gcc2 internal prototype to avoid an error. */
16575/* We use char because int might match the return type of a gcc2
16576 builtin and then its argument prototype would still apply. */
16577char sched_yield();
10f2d63a 16578
4f14bcd8
GD
16579int main() {
16580sched_yield()
16581; return 0; }
10f2d63a 16582EOF
4b6b4dfc 16583if { (eval echo configure:16584: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4f14bcd8
GD
16584 rm -rf conftest*
16585 eval "ac_cv_lib_$ac_lib_var=yes"
10f2d63a 16586else
4f14bcd8
GD
16587 echo "configure: failed program was:" >&5
16588 cat conftest.$ac_ext >&5
16589 rm -rf conftest*
16590 eval "ac_cv_lib_$ac_lib_var=no"
10f2d63a 16591fi
4f14bcd8
GD
16592rm -f conftest*
16593LIBS="$ac_save_LIBS"
10f2d63a 16594
4f14bcd8
GD
16595fi
16596if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16597 echo "$ac_t""yes" 1>&6
16598 cat >> confdefs.h <<\EOF
16599#define HAVE_SCHED_YIELD 1
10f2d63a
VZ
16600EOF
16601
4f14bcd8
GD
16602else
16603 echo "$ac_t""no" 1>&6
16604echo $ac_n "checking for sched_yield in -lposix4""... $ac_c" 1>&6
4b6b4dfc 16605echo "configure:16606: checking for sched_yield in -lposix4" >&5
4f14bcd8
GD
16606ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'`
16607if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16608 echo $ac_n "(cached) $ac_c" 1>&6
16609else
16610 ac_save_LIBS="$LIBS"
16611LIBS="-lposix4 $LIBS"
16612cat > conftest.$ac_ext <<EOF
4b6b4dfc 16613#line 16614 "configure"
4f14bcd8
GD
16614#include "confdefs.h"
16615/* Override any gcc2 internal prototype to avoid an error. */
16616/* We use char because int might match the return type of a gcc2
16617 builtin and then its argument prototype would still apply. */
16618char sched_yield();
47c13eb7 16619
4f14bcd8
GD
16620int main() {
16621sched_yield()
16622; return 0; }
10f2d63a 16623EOF
4b6b4dfc 16624if { (eval echo configure:16625: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4f14bcd8
GD
16625 rm -rf conftest*
16626 eval "ac_cv_lib_$ac_lib_var=yes"
10f2d63a 16627else
4f14bcd8
GD
16628 echo "configure: failed program was:" >&5
16629 cat conftest.$ac_ext >&5
16630 rm -rf conftest*
16631 eval "ac_cv_lib_$ac_lib_var=no"
10f2d63a 16632fi
4f14bcd8
GD
16633rm -f conftest*
16634LIBS="$ac_save_LIBS"
10f2d63a 16635
54276ccf 16636fi
4f14bcd8
GD
16637if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16638 echo "$ac_t""yes" 1>&6
16639 cat >> confdefs.h <<\EOF
16640#define HAVE_SCHED_YIELD 1
54276ccf 16641EOF
3d63bc3a 16642 POSIX4_LINK=" -lposix4"
4f14bcd8
GD
16643else
16644 echo "$ac_t""no" 1>&6
16645echo "configure: warning: wxThread::Yield will not work properly" 1>&2
7274f1c7 16646
54276ccf
VZ
16647fi
16648
7274f1c7 16649
4f14bcd8 16650fi
698dcdb6 16651
10f2d63a 16652
7274f1c7
RL
16653 HAVE_PRIOR_FUNCS=0
16654 echo $ac_n "checking for pthread_attr_getschedpolicy in -l$THREADS_LINK""... $ac_c" 1>&6
4b6b4dfc 16655echo "configure:16656: checking for pthread_attr_getschedpolicy in -l$THREADS_LINK" >&5
4f14bcd8
GD
16656ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_getschedpolicy | sed 'y%./+-%__p_%'`
16657if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
698dcdb6
VZ
16658 echo $ac_n "(cached) $ac_c" 1>&6
16659else
4f14bcd8
GD
16660 ac_save_LIBS="$LIBS"
16661LIBS="-l$THREADS_LINK $LIBS"
16662cat > conftest.$ac_ext <<EOF
4b6b4dfc 16663#line 16664 "configure"
422107f9 16664#include "confdefs.h"
4f14bcd8
GD
16665/* Override any gcc2 internal prototype to avoid an error. */
16666/* We use char because int might match the return type of a gcc2
16667 builtin and then its argument prototype would still apply. */
16668char pthread_attr_getschedpolicy();
16669
16670int main() {
16671pthread_attr_getschedpolicy()
16672; return 0; }
698dcdb6 16673EOF
4b6b4dfc 16674if { (eval echo configure:16675: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 16675 rm -rf conftest*
4f14bcd8 16676 eval "ac_cv_lib_$ac_lib_var=yes"
422107f9 16677else
698dcdb6 16678 echo "configure: failed program was:" >&5
422107f9 16679 cat conftest.$ac_ext >&5
698dcdb6 16680 rm -rf conftest*
4f14bcd8 16681 eval "ac_cv_lib_$ac_lib_var=no"
422107f9 16682fi
698dcdb6 16683rm -f conftest*
4f14bcd8
GD
16684LIBS="$ac_save_LIBS"
16685
422107f9 16686fi
4f14bcd8 16687if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
698dcdb6 16688 echo "$ac_t""yes" 1>&6
4f14bcd8 16689 echo $ac_n "checking for pthread_attr_setschedparam in -l$THREADS_LINK""... $ac_c" 1>&6
4b6b4dfc 16690echo "configure:16691: checking for pthread_attr_setschedparam in -l$THREADS_LINK" >&5
4f14bcd8 16691ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_setschedparam | sed 'y%./+-%__p_%'`
698dcdb6
VZ
16692if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16693 echo $ac_n "(cached) $ac_c" 1>&6
422107f9 16694else
698dcdb6 16695 ac_save_LIBS="$LIBS"
4f14bcd8 16696LIBS="-l$THREADS_LINK $LIBS"
698dcdb6 16697cat > conftest.$ac_ext <<EOF
4b6b4dfc 16698#line 16699 "configure"
422107f9
VZ
16699#include "confdefs.h"
16700/* Override any gcc2 internal prototype to avoid an error. */
16701/* We use char because int might match the return type of a gcc2
698dcdb6 16702 builtin and then its argument prototype would still apply. */
4f14bcd8 16703char pthread_attr_setschedparam();
698dcdb6
VZ
16704
16705int main() {
4f14bcd8 16706pthread_attr_setschedparam()
698dcdb6
VZ
16707; return 0; }
16708EOF
4b6b4dfc 16709if { (eval echo configure:16710: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
16710 rm -rf conftest*
16711 eval "ac_cv_lib_$ac_lib_var=yes"
16712else
16713 echo "configure: failed program was:" >&5
16714 cat conftest.$ac_ext >&5
16715 rm -rf conftest*
16716 eval "ac_cv_lib_$ac_lib_var=no"
16717fi
16718rm -f conftest*
16719LIBS="$ac_save_LIBS"
16720
16721fi
16722if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16723 echo "$ac_t""yes" 1>&6
4f14bcd8 16724 echo $ac_n "checking for sched_get_priority_max in -l$THREADS_LINK""... $ac_c" 1>&6
4b6b4dfc 16725echo "configure:16726: checking for sched_get_priority_max in -l$THREADS_LINK" >&5
4f14bcd8
GD
16726ac_lib_var=`echo $THREADS_LINK'_'sched_get_priority_max | sed 'y%./+-%__p_%'`
16727if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
698dcdb6
VZ
16728 echo $ac_n "(cached) $ac_c" 1>&6
16729else
4f14bcd8
GD
16730 ac_save_LIBS="$LIBS"
16731LIBS="-l$THREADS_LINK $LIBS"
16732cat > conftest.$ac_ext <<EOF
4b6b4dfc 16733#line 16734 "configure"
422107f9 16734#include "confdefs.h"
4f14bcd8
GD
16735/* Override any gcc2 internal prototype to avoid an error. */
16736/* We use char because int might match the return type of a gcc2
16737 builtin and then its argument prototype would still apply. */
16738char sched_get_priority_max();
16739
16740int main() {
16741sched_get_priority_max()
16742; return 0; }
698dcdb6 16743EOF
4b6b4dfc 16744if { (eval echo configure:16745: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 16745 rm -rf conftest*
4f14bcd8 16746 eval "ac_cv_lib_$ac_lib_var=yes"
422107f9 16747else
698dcdb6 16748 echo "configure: failed program was:" >&5
422107f9 16749 cat conftest.$ac_ext >&5
698dcdb6 16750 rm -rf conftest*
4f14bcd8 16751 eval "ac_cv_lib_$ac_lib_var=no"
422107f9 16752fi
698dcdb6 16753rm -f conftest*
4f14bcd8
GD
16754LIBS="$ac_save_LIBS"
16755
422107f9 16756fi
4f14bcd8 16757if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
698dcdb6 16758 echo "$ac_t""yes" 1>&6
4f14bcd8
GD
16759 HAVE_PRIOR_FUNCS=1
16760else
16761 echo "$ac_t""no" 1>&6
16762echo $ac_n "checking for sched_get_priority_max in -lposix4""... $ac_c" 1>&6
4b6b4dfc 16763echo "configure:16764: checking for sched_get_priority_max in -lposix4" >&5
4f14bcd8 16764ac_lib_var=`echo posix4'_'sched_get_priority_max | sed 'y%./+-%__p_%'`
698dcdb6
VZ
16765if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16766 echo $ac_n "(cached) $ac_c" 1>&6
422107f9 16767else
698dcdb6 16768 ac_save_LIBS="$LIBS"
4f14bcd8 16769LIBS="-lposix4 $LIBS"
698dcdb6 16770cat > conftest.$ac_ext <<EOF
4b6b4dfc 16771#line 16772 "configure"
422107f9
VZ
16772#include "confdefs.h"
16773/* Override any gcc2 internal prototype to avoid an error. */
16774/* We use char because int might match the return type of a gcc2
698dcdb6 16775 builtin and then its argument prototype would still apply. */
4f14bcd8 16776char sched_get_priority_max();
698dcdb6
VZ
16777
16778int main() {
4f14bcd8 16779sched_get_priority_max()
698dcdb6
VZ
16780; return 0; }
16781EOF
4b6b4dfc 16782if { (eval echo configure:16783: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
16783 rm -rf conftest*
16784 eval "ac_cv_lib_$ac_lib_var=yes"
16785else
16786 echo "configure: failed program was:" >&5
16787 cat conftest.$ac_ext >&5
16788 rm -rf conftest*
16789 eval "ac_cv_lib_$ac_lib_var=no"
16790fi
16791rm -f conftest*
16792LIBS="$ac_save_LIBS"
16793
16794fi
16795if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16796 echo "$ac_t""yes" 1>&6
4f14bcd8 16797
7274f1c7
RL
16798 HAVE_PRIOR_FUNCS=1
16799 POSIX4_LINK=" -lposix4"
16800
698dcdb6
VZ
16801else
16802 echo "$ac_t""no" 1>&6
422107f9
VZ
16803fi
16804
7274f1c7 16805
422107f9
VZ
16806fi
16807
7274f1c7 16808
4f14bcd8
GD
16809else
16810 echo "$ac_t""no" 1>&6
10f2d63a
VZ
16811fi
16812
7274f1c7 16813
698dcdb6 16814else
4f14bcd8
GD
16815 echo "$ac_t""no" 1>&6
16816fi
463abc64 16817
463abc64 16818
7274f1c7
RL
16819 if test "$HAVE_PRIOR_FUNCS" = 1; then
16820 cat >> confdefs.h <<\EOF
4f14bcd8 16821#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
698dcdb6 16822EOF
463abc64 16823
7274f1c7
RL
16824 else
16825 echo "configure: warning: Setting thread priority will not work" 1>&2
16826 fi
463abc64 16827
7274f1c7 16828 echo $ac_n "checking for pthread_cancel in -l$THREADS_LINK""... $ac_c" 1>&6
4b6b4dfc 16829echo "configure:16830: checking for pthread_cancel in -l$THREADS_LINK" >&5
4f14bcd8 16830ac_lib_var=`echo $THREADS_LINK'_'pthread_cancel | 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="-l$THREADS_LINK $LIBS"
698dcdb6 16836cat > conftest.$ac_ext <<EOF
4b6b4dfc 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 pthread_cancel();
698dcdb6
VZ
16843
16844int main() {
4f14bcd8 16845pthread_cancel()
698dcdb6
VZ
16846; return 0; }
16847EOF
4b6b4dfc 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
GD
16863 cat >> confdefs.h <<\EOF
16864#define HAVE_PTHREAD_CANCEL 1
16865EOF
16866
698dcdb6
VZ
16867else
16868 echo "$ac_t""no" 1>&6
4f14bcd8 16869echo "configure: warning: wxThread::Kill() will not work properly" 1>&2
422107f9
VZ
16870fi
16871
422107f9 16872
7274f1c7 16873 echo $ac_n "checking for pthread_cleanup_push/pop""... $ac_c" 1>&6
4b6b4dfc 16874echo "configure:16875: checking for pthread_cleanup_push/pop" >&5
4f14bcd8
GD
16875if eval "test \"`echo '$''{'wx_cv_func_pthread_cleanup_push'+set}'`\" = set"; then
16876 echo $ac_n "(cached) $ac_c" 1>&6
16877else
16878
7274f1c7 16879 cat > conftest.$ac_ext <<EOF
4b6b4dfc 16880#line 16881 "configure"
4f14bcd8
GD
16881#include "confdefs.h"
16882#include <pthread.h>
16883int main() {
16884
7274f1c7
RL
16885 pthread_cleanup_push(NULL, NULL);
16886 pthread_cleanup_pop(0);
16887
4f14bcd8
GD
16888; return 0; }
16889EOF
4b6b4dfc 16890if { (eval echo configure:16891: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4f14bcd8
GD
16891 rm -rf conftest*
16892
7274f1c7
RL
16893 wx_cv_func_pthread_cleanup_push=yes
16894
4f14bcd8
GD
16895else
16896 echo "configure: failed program was:" >&5
16897 cat conftest.$ac_ext >&5
16898 rm -rf conftest*
16899
7274f1c7
RL
16900 wx_cv_func_pthread_cleanup_push=no
16901
4f14bcd8
GD
16902fi
16903rm -f conftest*
7274f1c7 16904
10f2d63a
VZ
16905fi
16906
4f14bcd8
GD
16907echo "$ac_t""$wx_cv_func_pthread_cleanup_push" 1>&6
16908
7274f1c7
RL
16909 if test "$wx_cv_func_pthread_cleanup_push" = "yes"; then
16910 cat >> confdefs.h <<\EOF
4f14bcd8 16911#define HAVE_THREAD_CLEANUP_FUNCTIONS 1
c7a2bf27
RR
16912EOF
16913
7274f1c7 16914 fi
4f14bcd8 16915
7274f1c7
RL
16916
16917 if test "x$wx_lib_glibc21" = "xyes"; then
16918 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
16919 fi
4f14bcd8 16920
7274f1c7 16921 echo $ac_n "checking for pthread_mutexattr_t""... $ac_c" 1>&6
4b6b4dfc 16922echo "configure:16923: checking for pthread_mutexattr_t" >&5
4f14bcd8 16923if eval "test \"`echo '$''{'wx_cv_type_pthread_mutexattr_t'+set}'`\" = set"; then
698dcdb6
VZ
16924 echo $ac_n "(cached) $ac_c" 1>&6
16925else
4f14bcd8 16926
7274f1c7 16927 cat > conftest.$ac_ext <<EOF
4b6b4dfc 16928#line 16929 "configure"
0dcf9893 16929#include "confdefs.h"
4f14bcd8
GD
16930#include <pthread.h>
16931int main() {
16932
7274f1c7
RL
16933 pthread_mutexattr_t attr;
16934 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
16935
4f14bcd8 16936; return 0; }
698dcdb6 16937EOF
4b6b4dfc 16938if { (eval echo configure:16939: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 16939 rm -rf conftest*
4f14bcd8 16940
7274f1c7
RL
16941 wx_cv_type_pthread_mutexattr_t=yes
16942
3fed1840 16943else
698dcdb6 16944 echo "configure: failed program was:" >&5
3fed1840 16945 cat conftest.$ac_ext >&5
698dcdb6 16946 rm -rf conftest*
4f14bcd8 16947
7274f1c7
RL
16948 wx_cv_type_pthread_mutexattr_t=no
16949
4f14bcd8 16950
3fed1840 16951fi
698dcdb6 16952rm -f conftest*
7274f1c7 16953
3fed1840 16954fi
4f14bcd8
GD
16955
16956echo "$ac_t""$wx_cv_type_pthread_mutexattr_t" 1>&6
16957
7274f1c7
RL
16958 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
16959 cat >> confdefs.h <<\EOF
4f14bcd8
GD
16960#define HAVE_PTHREAD_MUTEXATTR_T 1
16961EOF
16962
7274f1c7
RL
16963 else
16964 echo $ac_n "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER""... $ac_c" 1>&6
4b6b4dfc 16965echo "configure:16966: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
4f14bcd8 16966if eval "test \"`echo '$''{'wx_cv_type_pthread_rec_mutex_init'+set}'`\" = set"; then
698dcdb6 16967 echo $ac_n "(cached) $ac_c" 1>&6
3fed1840 16968else
4f14bcd8 16969
7274f1c7 16970 cat > conftest.$ac_ext <<EOF
4b6b4dfc 16971#line 16972 "configure"
3fed1840 16972#include "confdefs.h"
4f14bcd8 16973#include <pthread.h>
698dcdb6 16974int main() {
4f14bcd8 16975
7274f1c7
RL
16976 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
16977
698dcdb6
VZ
16978; return 0; }
16979EOF
4b6b4dfc 16980if { (eval echo configure:16981: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 16981 rm -rf conftest*
4f14bcd8 16982
7274f1c7
RL
16983 wx_cv_type_pthread_rec_mutex_init=yes
16984
698dcdb6
VZ
16985else
16986 echo "configure: failed program was:" >&5
16987 cat conftest.$ac_ext >&5
16988 rm -rf conftest*
4f14bcd8 16989
7274f1c7
RL
16990 wx_cv_type_pthread_rec_mutex_init=no
16991
4f14bcd8 16992
698dcdb6
VZ
16993fi
16994rm -f conftest*
7274f1c7 16995
3fed1840
RR
16996fi
16997
4f14bcd8 16998echo "$ac_t""$wx_cv_type_pthread_rec_mutex_init" 1>&6
7274f1c7
RL
16999 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
17000 cat >> confdefs.h <<\EOF
4f14bcd8
GD
17001#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
17002EOF
3fed1840 17003
7274f1c7
RL
17004 else
17005 echo "configure: warning: wxMutex won't be recursive on this platform" 1>&2
17006 fi
17007 fi
4f14bcd8 17008
7274f1c7 17009 THREADS_LINK=" -l$THREADS_LINK"
4f14bcd8 17010
7274f1c7
RL
17011 if test "$USE_SOLARIS" = "yes" -a "$GCC" != "yes"; then
17012 CPPFLAGS="$CFLAGS -mt"
17013 CXXFLAGS="$CXXFLAGS -mt"
17014 LDFLAGS="$LDFLAGS -mt"
17015 fi
17016 fi
3fed1840 17017
4f14bcd8
GD
17018fi
17019
17020if test "$wxUSE_THREADS" = "yes"; then
3a922bb4 17021 cat >> confdefs.h <<\EOF
4f14bcd8 17022#define wxUSE_THREADS 1
7b6058cd
GD
17023EOF
17024
4f14bcd8 17025
3f345b47 17026 TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS $CPP_MT_FLAG"
4f14bcd8
GD
17027
17028 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
698dcdb6 17029else
4f14bcd8
GD
17030 if test "$ac_cv_func_strtok_r" = "yes"; then
17031 echo $ac_n "checking if -D_REENTRANT is needed""... $ac_c" 1>&6
4b6b4dfc 17032echo "configure:17033: checking if -D_REENTRANT is needed" >&5
4f14bcd8
GD
17033 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
17034 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT"
17035 echo "$ac_t""yes" 1>&6
17036 else
17037 echo "$ac_t""no" 1>&6
17038 fi
17039 fi
17040fi
17041
17042if test "$WXGTK20" = 1 ; then
17043 cat >> confdefs.h <<EOF
17044#define __WXGTK20__ $WXGTK20
698dcdb6 17045EOF
4f14bcd8
GD
17046
17047 WXGTK12=1
10f2d63a 17048fi
4f14bcd8
GD
17049
17050if test "$WXGTK12" = 1 ; then
17051 cat >> confdefs.h <<EOF
17052#define __WXGTK12__ $WXGTK12
17053EOF
17054
10f2d63a 17055fi
698dcdb6 17056
4f14bcd8
GD
17057if test "$WXGTK127" = 1 ; then
17058 cat >> confdefs.h <<EOF
17059#define __WXGTK127__ $WXGTK127
698dcdb6 17060EOF
4f14bcd8 17061
698dcdb6 17062fi
10f2d63a 17063
4f14bcd8
GD
17064WXDEBUG=
17065
17066if test "$wxUSE_DEBUG_INFO" = "yes" ; then
17067 WXDEBUG="-g"
17068 wxUSE_OPTIMISE=no
698dcdb6 17069fi
4f14bcd8
GD
17070
17071if test "$wxUSE_DEBUG_GDB" = "yes" ; then
17072 wxUSE_DEBUG_INFO=yes
17073 WXDEBUG="-ggdb"
10f2d63a
VZ
17074fi
17075
4f14bcd8
GD
17076if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
17077 cat >> confdefs.h <<\EOF
17078#define WXDEBUG 1
17079EOF
17080
17081 WXDEBUG_DEFINE="-D__WXDEBUG__"
10f2d63a 17082else
4f14bcd8
GD
17083 if test "$wxUSE_GTK" = 1 ; then
17084 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
17085 fi
17086fi
17087
17088if test "$wxUSE_MEM_TRACING" = "yes" ; then
17089 cat >> confdefs.h <<\EOF
17090#define wxUSE_MEMORY_TRACING 1
17091EOF
17092
17093 cat >> confdefs.h <<\EOF
17094#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
17095EOF
17096
17097 cat >> confdefs.h <<\EOF
17098#define wxUSE_DEBUG_NEW_ALWAYS 1
17099EOF
17100
17101 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
17102fi
17103
17104if test "$wxUSE_DMALLOC" = "yes" ; then
3d63bc3a 17105 DMALLOC_LIBS="-ldmalloc"
4f14bcd8
GD
17106fi
17107
17108PROFILE=
17109if test "$wxUSE_PROFILE" = "yes" ; then
3d63bc3a 17110 PROFILE=" -pg"
10f2d63a
VZ
17111fi
17112
88e30f2b 17113if test "$GCC" = "yes" ; then
4f14bcd8
GD
17114 if test "$wxUSE_NO_RTTI" = "yes" ; then
17115 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti"
3a922bb4 17116 fi
4f14bcd8
GD
17117 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
17118 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions"
17119 fi
17120 if test "$wxUSE_PERMISSIVE" = "yes" ; then
17121 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
17122 fi
4f14bcd8
GD
17123 if test "$USE_WIN32" = 1 ; then
17124 # I'm not even really sure what this was ever added to solve,
17125 # but someone added it for mingw native builds, so I guess
17126 # they had a reason, right??
17127 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fno-pcc-struct-return"
17128 fi
17129fi
17130
17131
17132CXXFLAGS=`echo "${CXXFLAGS}" | sed "s/\-O.//g" `
17133CFLAGS=`echo "${CFLAGS}" | sed "s/\-O.//g" `
17134if test "$wxUSE_OPTIMISE" = "no" ; then
17135 OPTIMISE=
17136else
17137 if test "$GCC" = yes ; then
17138 OPTIMISE="-O2"
17139 case "${host}" in
17140 i586-*-*|i686-*-* )
17141 OPTIMISE="${OPTIMISE} "
17142 ;;
17143 esac
17144 else
17145 OPTIMISE="-O"
17146 fi
17147fi
17148
17149if test "$WXWIN_COMPATIBILITY_2" = "yes"; then
17150 cat >> confdefs.h <<\EOF
17151#define WXWIN_COMPATIBILITY_2 1
17152EOF
17153
17154
17155 WXWIN_COMPATIBILITY_2_2="yes"
17156fi
17157
17158if test "$WXWIN_COMPATIBILITY_2_2" = "yes"; then
17159 cat >> confdefs.h <<\EOF
17160#define WXWIN_COMPATIBILITY_2_2 1
17161EOF
17162
10f2d63a
VZ
17163fi
17164
698dcdb6 17165
10f2d63a 17166if test "$wxUSE_GUI" = "yes"; then
698dcdb6 17167 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17168#define wxUSE_GUI 1
17169EOF
17170
698dcdb6 17171
10f2d63a 17172 else
698dcdb6 17173 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17174#define wxUSE_NOGUI 1
17175EOF
17176
17177fi
17178
698dcdb6 17179
10f2d63a 17180if test "$wxUSE_UNIX" = "yes"; then
698dcdb6 17181 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17182#define wxUSE_UNIX 1
17183EOF
17184
17185fi
17186
698dcdb6 17187
10f2d63a 17188if test "$wxUSE_APPLE_IEEE" = "yes"; then
698dcdb6 17189 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17190#define wxUSE_APPLE_IEEE 1
17191EOF
17192
17193fi
17194
1e6feb95
VZ
17195if test "$wxUSE_TIMER" = "yes"; then
17196 cat >> confdefs.h <<\EOF
17197#define wxUSE_TIMER 1
17198EOF
17199
17200fi
17201
10f2d63a 17202if test "$wxUSE_WAVE" = "yes"; then
698dcdb6 17203 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17204#define wxUSE_WAVE 1
17205EOF
17206
17207fi
17208
1e6feb95
VZ
17209if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
17210 cat >> confdefs.h <<\EOF
17211#define wxUSE_CMDLINE_PARSER 1
17212EOF
17213
17214fi
17215
17216if test "$wxUSE_STOPWATCH" = "yes"; then
17217 cat >> confdefs.h <<\EOF
17218#define wxUSE_STOPWATCH 1
17219EOF
17220
17221fi
17222
17223if test "$wxUSE_DATETIME" = "yes"; then
17224 cat >> confdefs.h <<\EOF
17225#define wxUSE_DATETIME 1
17226EOF
17227
17228fi
17229
17230if test "$wxUSE_TIMEDATE" = "yes"; then
17231 cat >> confdefs.h <<\EOF
17232#define wxUSE_TIMEDATE 1
17233EOF
17234
17235fi
17236
10f2d63a 17237if test "$wxUSE_FILE" = "yes"; then
698dcdb6 17238 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17239#define wxUSE_FILE 1
17240EOF
17241
17242fi
17243
1e6feb95
VZ
17244if test "$wxUSE_FFILE" = "yes"; then
17245 cat >> confdefs.h <<\EOF
17246#define wxUSE_FFILE 1
17247EOF
17248
17249fi
17250
24528b0c 17251if test "$wxUSE_FILESYSTEM" = "yes"; then
698dcdb6 17252 cat >> confdefs.h <<\EOF
24528b0c
VS
17253#define wxUSE_FILESYSTEM 1
17254EOF
17255
17256fi
17257
10f2d63a 17258if test "$wxUSE_FS_INET" = "yes"; then
698dcdb6 17259 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17260#define wxUSE_FS_INET 1
17261EOF
17262
17263fi
17264
17265if test "$wxUSE_FS_ZIP" = "yes"; then
698dcdb6 17266 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17267#define wxUSE_FS_ZIP 1
17268EOF
17269
17270fi
17271
17272if test "$wxUSE_ZIPSTREAM" = "yes"; then
698dcdb6 17273 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17274#define wxUSE_ZIPSTREAM 1
17275EOF
17276
17277fi
17278
eb4efbdc 17279if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
698dcdb6 17280 cat >> confdefs.h <<\EOF
eb4efbdc
VZ
17281#define wxUSE_ON_FATAL_EXCEPTION 1
17282EOF
17283
17284fi
17285
4f3c5f06 17286if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
698dcdb6 17287 cat >> confdefs.h <<\EOF
4f3c5f06
VZ
17288#define wxUSE_SNGLINST_CHECKER 1
17289EOF
17290
17291fi
17292
10f2d63a 17293if test "$wxUSE_BUSYINFO" = "yes"; then
698dcdb6 17294 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17295#define wxUSE_BUSYINFO 1
17296EOF
17297
17298fi
17299
17300if test "$wxUSE_STD_IOSTREAM" = "yes"; then
698dcdb6 17301 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17302#define wxUSE_STD_IOSTREAM 1
17303EOF
17304
17305fi
17306
a3a584a7
VZ
17307if test "$wxUSE_TEXTBUFFER" = "yes"; then
17308 cat >> confdefs.h <<\EOF
17309#define wxUSE_TEXTBUFFER 1
17310EOF
17311
17312fi
17313
10f2d63a 17314if test "$wxUSE_TEXTFILE" = "yes"; then
a3a584a7 17315 if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
156b2523 17316 echo "configure: warning: wxTextFile requires wxFile and wxTextBuffer... disabled" 1>&2
10f2d63a 17317 else
698dcdb6 17318 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17319#define wxUSE_TEXTFILE 1
17320EOF
17321
17322 fi
17323fi
17324
17325if test "$wxUSE_CONFIG" = "yes" ; then
17326 if test "$wxUSE_TEXTFILE" != "yes"; then
156b2523 17327 echo "configure: warning: wxConfig requires wxTextFile... disabled" 1>&2
10f2d63a 17328 else
698dcdb6 17329 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17330#define wxUSE_CONFIG 1
17331EOF
17332
17333 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
17334 fi
17335fi
17336
17337if test "$wxUSE_INTL" = "yes" ; then
17338 if test "$wxUSE_FILE" != "yes"; then
156b2523 17339 echo "configure: warning: I18n code requires wxFile... disabled" 1>&2
10f2d63a 17340 else
698dcdb6 17341 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17342#define wxUSE_INTL 1
17343EOF
17344
17345 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
f6bcfd97 17346 GUIDIST="$GUIDIST INTL_DIST"
10f2d63a
VZ
17347 fi
17348fi
17349
17350if test "$wxUSE_LOG" = "yes"; then
698dcdb6 17351 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17352#define wxUSE_LOG 1
17353EOF
17354
d73be714
VZ
17355
17356 if test "$wxUSE_LOGGUI" = "yes"; then
17357 cat >> confdefs.h <<\EOF
17358#define wxUSE_LOGGUI 1
17359EOF
17360
17361 fi
17362
17363 if test "$wxUSE_LOGWINDOW" = "yes"; then
17364 cat >> confdefs.h <<\EOF
17365#define wxUSE_LOGWINDOW 1
69d27ff7
MB
17366EOF
17367
17368 fi
17369
17370 if test "$wxUSE_LOGDIALOG" = "yes"; then
17371 cat >> confdefs.h <<\EOF
17372#define wxUSE_LOG_DIALOG 1
d73be714
VZ
17373EOF
17374
17375 fi
10f2d63a
VZ
17376fi
17377
17378if test "$wxUSE_LONGLONG" = "yes"; then
698dcdb6 17379 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17380#define wxUSE_LONGLONG 1
17381EOF
17382
17383fi
17384
e8f65ba6 17385if test "$wxUSE_GEOMETRY" = "yes"; then
698dcdb6 17386 cat >> confdefs.h <<\EOF
e8f65ba6
RR
17387#define wxUSE_GEOMETRY 1
17388EOF
17389
17390fi
17391
10f2d63a 17392if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
698dcdb6 17393 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17394#define wxUSE_DIALUP_MANAGER 1
17395EOF
17396
70f7a477 17397 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
10f2d63a
VZ
17398fi
17399
17400if test "$wxUSE_STREAMS" = "yes" ; then
698dcdb6 17401 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17402#define wxUSE_STREAMS 1
17403EOF
17404
17405fi
17406
1e487827 17407
1e6feb95 17408if test "$wxUSE_DATETIME" = "yes"; then
698dcdb6 17409 for ac_func in strptime
83307f33 17410do
698dcdb6 17411echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4b6b4dfc 17412echo "configure:17413: checking for $ac_func" >&5
698dcdb6
VZ
17413if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17414 echo $ac_n "(cached) $ac_c" 1>&6
17415else
17416 cat > conftest.$ac_ext <<EOF
4b6b4dfc 17417#line 17418 "configure"
83307f33
VZ
17418#include "confdefs.h"
17419/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 17420 which can conflict with char $ac_func(); below. */
83307f33
VZ
17421#include <assert.h>
17422/* Override any gcc2 internal prototype to avoid an error. */
17423/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
17424 builtin and then its argument prototype would still apply. */
17425char $ac_func();
17426
17427int main() {
83307f33
VZ
17428
17429/* The GNU C library defines this for functions which it implements
17430 to always fail with ENOSYS. Some functions are actually named
17431 something starting with __ and the normal name is an alias. */
17432#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17433choke me
17434#else
698dcdb6 17435$ac_func();
83307f33
VZ
17436#endif
17437
698dcdb6 17438; return 0; }
83307f33 17439EOF
4b6b4dfc 17440if { (eval echo configure:17441: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
17441 rm -rf conftest*
17442 eval "ac_cv_func_$ac_func=yes"
17443else
17444 echo "configure: failed program was:" >&5
17445 cat conftest.$ac_ext >&5
17446 rm -rf conftest*
17447 eval "ac_cv_func_$ac_func=no"
17448fi
17449rm -f conftest*
17450fi
83307f33 17451
698dcdb6
VZ
17452if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17453 echo "$ac_t""yes" 1>&6
17454 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17455 cat >> confdefs.h <<EOF
17456#define $ac_tr_func 1
17457EOF
17458
17459else
17460 echo "$ac_t""no" 1>&6
83307f33
VZ
17461fi
17462done
17463
1e487827 17464
698dcdb6 17465 echo $ac_n "checking for timezone variable in <time.h>""... $ac_c" 1>&6
4b6b4dfc 17466echo "configure:17467: checking for timezone variable in <time.h>" >&5
698dcdb6
VZ
17467if eval "test \"`echo '$''{'wx_cv_var_timezone'+set}'`\" = set"; then
17468 echo $ac_n "(cached) $ac_c" 1>&6
17469else
17470
17471 cat > conftest.$ac_ext <<EOF
4b6b4dfc 17472#line 17473 "configure"
360d6699
VZ
17473#include "confdefs.h"
17474
b4085ce6 17475 #include <time.h>
698dcdb6
VZ
17476
17477int main() {
360d6699
VZ
17478
17479 int tz;
4f11a343 17480 tz = timezone;
698dcdb6
VZ
17481
17482; return 0; }
17483EOF
4b6b4dfc 17484if { (eval echo configure:17485: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
17485 rm -rf conftest*
17486
4f11a343 17487 wx_cv_var_timezone=timezone
698dcdb6 17488
360d6699 17489else
698dcdb6
VZ
17490 echo "configure: failed program was:" >&5
17491 cat conftest.$ac_ext >&5
17492 rm -rf conftest*
17493
17494 cat > conftest.$ac_ext <<EOF
4b6b4dfc 17495#line 17496 "configure"
360d6699
VZ
17496#include "confdefs.h"
17497
b4085ce6 17498 #include <time.h>
698dcdb6
VZ
17499
17500int main() {
360d6699
VZ
17501
17502 int tz;
17503 tz = _timezone;
698dcdb6
VZ
17504
17505; return 0; }
17506EOF
4b6b4dfc 17507if { (eval echo configure:17508: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
17508 rm -rf conftest*
17509
360d6699 17510 wx_cv_var_timezone=_timezone
698dcdb6 17511
5357c8e8 17512else
698dcdb6
VZ
17513 echo "configure: failed program was:" >&5
17514 cat conftest.$ac_ext >&5
17515 rm -rf conftest*
17516
17517 cat > conftest.$ac_ext <<EOF
4b6b4dfc 17518#line 17519 "configure"
5357c8e8
VZ
17519#include "confdefs.h"
17520
b4085ce6 17521 #include <time.h>
698dcdb6
VZ
17522
17523int main() {
5357c8e8
VZ
17524
17525 int tz;
4f11a343 17526 tz = __timezone;
698dcdb6
VZ
17527
17528; return 0; }
17529EOF
4b6b4dfc 17530if { (eval echo configure:17531: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
17531 rm -rf conftest*
17532
4f11a343 17533 wx_cv_var_timezone=__timezone
698dcdb6 17534
360d6699 17535else
698dcdb6
VZ
17536 echo "configure: failed program was:" >&5
17537 cat conftest.$ac_ext >&5
17538 rm -rf conftest*
f9bc1684
VS
17539
17540 if test "$USE_DOS" = 0 ; then
17541 { echo "configure: error: no timezone variable" 1>&2; exit 1; }
17542 fi
17543
698dcdb6 17544
360d6699 17545fi
698dcdb6
VZ
17546rm -f conftest*
17547
17548
360d6699 17549fi
698dcdb6
VZ
17550rm -f conftest*
17551
17552
6232543b 17553fi
698dcdb6
VZ
17554rm -f conftest*
17555
17556
1e487827 17557fi
703e0a69 17558
698dcdb6
VZ
17559echo "$ac_t""$wx_cv_var_timezone" 1>&6
17560
f9bc1684 17561 if test "x$wx_cv_var_timezone" != x ; then
698dcdb6 17562 cat >> confdefs.h <<EOF
360d6699
VZ
17563#define WX_TIMEZONE $wx_cv_var_timezone
17564EOF
17565
f9bc1684 17566 fi
698dcdb6
VZ
17567
17568 for ac_func in localtime
afc31813 17569do
698dcdb6 17570echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4b6b4dfc 17571echo "configure:17572: checking for $ac_func" >&5
698dcdb6
VZ
17572if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17573 echo $ac_n "(cached) $ac_c" 1>&6
17574else
17575 cat > conftest.$ac_ext <<EOF
4b6b4dfc 17576#line 17577 "configure"
10f2d63a 17577#include "confdefs.h"
afc31813 17578/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 17579 which can conflict with char $ac_func(); below. */
afc31813
VZ
17580#include <assert.h>
17581/* Override any gcc2 internal prototype to avoid an error. */
17582/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
17583 builtin and then its argument prototype would still apply. */
17584char $ac_func();
17585
17586int main() {
afc31813
VZ
17587
17588/* The GNU C library defines this for functions which it implements
17589 to always fail with ENOSYS. Some functions are actually named
17590 something starting with __ and the normal name is an alias. */
17591#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17592choke me
17593#else
698dcdb6 17594$ac_func();
afc31813
VZ
17595#endif
17596
698dcdb6 17597; return 0; }
10f2d63a 17598EOF
4b6b4dfc 17599if { (eval echo configure:17600: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
17600 rm -rf conftest*
17601 eval "ac_cv_func_$ac_func=yes"
17602else
17603 echo "configure: failed program was:" >&5
17604 cat conftest.$ac_ext >&5
17605 rm -rf conftest*
17606 eval "ac_cv_func_$ac_func=no"
17607fi
17608rm -f conftest*
17609fi
afc31813 17610
698dcdb6
VZ
17611if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17612 echo "$ac_t""yes" 1>&6
17613 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17614 cat >> confdefs.h <<EOF
17615#define $ac_tr_func 1
17616EOF
17617
17618else
17619 echo "$ac_t""no" 1>&6
afc31813
VZ
17620fi
17621done
17622
1e487827 17623
698dcdb6
VZ
17624 if test "$ac_cv_func_localtime" = "yes"; then
17625 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
4b6b4dfc 17626echo "configure:17627: checking for tm_gmtoff in struct tm" >&5
698dcdb6
VZ
17627if eval "test \"`echo '$''{'wx_cv_struct_tm_has_gmtoff'+set}'`\" = set"; then
17628 echo $ac_n "(cached) $ac_c" 1>&6
17629else
17630
17631 cat > conftest.$ac_ext <<EOF
4b6b4dfc 17632#line 17633 "configure"
0470b1e6
VZ
17633#include "confdefs.h"
17634
b4085ce6 17635 #include <time.h>
698dcdb6
VZ
17636
17637int main() {
0470b1e6
VZ
17638
17639 struct tm tm;
17640 tm.tm_gmtoff++;
698dcdb6
VZ
17641
17642; return 0; }
17643EOF
4b6b4dfc 17644if { (eval echo configure:17645: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
17645 rm -rf conftest*
17646
f03a98d8 17647 wx_cv_struct_tm_has_gmtoff=yes
698dcdb6 17648
0470b1e6 17649else
698dcdb6
VZ
17650 echo "configure: failed program was:" >&5
17651 cat conftest.$ac_ext >&5
17652 rm -rf conftest*
17653 wx_cv_struct_tm_has_gmtoff=no
17654
0470b1e6 17655fi
698dcdb6
VZ
17656rm -f conftest*
17657
1e487827 17658fi
698dcdb6
VZ
17659
17660echo "$ac_t""$wx_cv_struct_tm_has_gmtoff" 1>&6
6232543b
VS
17661 fi
17662
17663 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
698dcdb6 17664 cat >> confdefs.h <<\EOF
6232543b
VS
17665#define WX_GMTOFF_IN_TM 1
17666EOF
0470b1e6 17667
3fcdd07b
VZ
17668 fi
17669
698dcdb6 17670 for ac_func in gettimeofday ftime
3fcdd07b 17671do
698dcdb6 17672echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4b6b4dfc 17673echo "configure:17674: checking for $ac_func" >&5
698dcdb6
VZ
17674if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17675 echo $ac_n "(cached) $ac_c" 1>&6
17676else
17677 cat > conftest.$ac_ext <<EOF
4b6b4dfc 17678#line 17679 "configure"
3fcdd07b
VZ
17679#include "confdefs.h"
17680/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 17681 which can conflict with char $ac_func(); below. */
3fcdd07b
VZ
17682#include <assert.h>
17683/* Override any gcc2 internal prototype to avoid an error. */
17684/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
17685 builtin and then its argument prototype would still apply. */
17686char $ac_func();
17687
17688int main() {
3fcdd07b
VZ
17689
17690/* The GNU C library defines this for functions which it implements
17691 to always fail with ENOSYS. Some functions are actually named
17692 something starting with __ and the normal name is an alias. */
17693#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17694choke me
17695#else
698dcdb6 17696$ac_func();
3fcdd07b
VZ
17697#endif
17698
698dcdb6
VZ
17699; return 0; }
17700EOF
4b6b4dfc 17701if { (eval echo configure:17702: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
17702 rm -rf conftest*
17703 eval "ac_cv_func_$ac_func=yes"
17704else
17705 echo "configure: failed program was:" >&5
17706 cat conftest.$ac_ext >&5
17707 rm -rf conftest*
17708 eval "ac_cv_func_$ac_func=no"
17709fi
17710rm -f conftest*
17711fi
17712
17713if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17714 echo "$ac_t""yes" 1>&6
17715 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17716 cat >> confdefs.h <<EOF
17717#define $ac_tr_func 1
3fcdd07b
VZ
17718EOF
17719 break
698dcdb6
VZ
17720else
17721 echo "$ac_t""no" 1>&6
3fcdd07b
VZ
17722fi
17723done
17724
afc31813 17725
698dcdb6
VZ
17726 if test "$ac_cv_func_gettimeofday" = "yes"; then
17727 echo $ac_n "checking whether gettimeofday takes two arguments""... $ac_c" 1>&6
4b6b4dfc 17728echo "configure:17729: checking whether gettimeofday takes two arguments" >&5
698dcdb6
VZ
17729if eval "test \"`echo '$''{'wx_cv_func_gettimeofday_has_2_args'+set}'`\" = set"; then
17730 echo $ac_n "(cached) $ac_c" 1>&6
17731else
17732
17733
17734 ac_ext=C
17735# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1e487827 17736ac_cpp='$CXXCPP $CPPFLAGS'
698dcdb6
VZ
17737ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17738ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17739cross_compiling=$ac_cv_prog_cxx_cross
703e0a69 17740
698dcdb6
VZ
17741
17742 cat > conftest.$ac_ext <<EOF
4b6b4dfc 17743#line 17744 "configure"
10f2d63a 17744#include "confdefs.h"
afc31813
VZ
17745
17746 #include <sys/time.h>
17747 #include <unistd.h>
698dcdb6
VZ
17748
17749int main() {
afc31813
VZ
17750
17751 struct timeval tv;
776862b4 17752 gettimeofday(&tv, NULL);
698dcdb6
VZ
17753
17754; return 0; }
17755EOF
4b6b4dfc 17756if { (eval echo configure:17757: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 17757 rm -rf conftest*
afc31813 17758 wx_cv_func_gettimeofday_has_2_args=yes
10f2d63a 17759else
698dcdb6
VZ
17760 echo "configure: failed program was:" >&5
17761 cat conftest.$ac_ext >&5
17762 rm -rf conftest*
17763 cat > conftest.$ac_ext <<EOF
4b6b4dfc 17764#line 17765 "configure"
10f2d63a 17765#include "confdefs.h"
afc31813
VZ
17766
17767 #include <sys/time.h>
17768 #include <unistd.h>
698dcdb6
VZ
17769
17770int main() {
afc31813
VZ
17771
17772 struct timeval tv;
17773 gettimeofday(&tv);
698dcdb6
VZ
17774
17775; return 0; }
17776EOF
4b6b4dfc 17777if { (eval echo configure:17778: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 17778 rm -rf conftest*
afc31813 17779 wx_cv_func_gettimeofday_has_2_args=no
10f2d63a 17780else
698dcdb6
VZ
17781 echo "configure: failed program was:" >&5
17782 cat conftest.$ac_ext >&5
17783 rm -rf conftest*
776862b4
VZ
17784
17785 echo "configure: warning: failed to determine number of gettimeofday() arguments" 1>&2
17786 wx_cv_func_gettimeofday_has_2_args=unknown
17787
698dcdb6 17788
10f2d63a 17789fi
698dcdb6
VZ
17790rm -f conftest*
17791
10f2d63a 17792fi
698dcdb6 17793rm -f conftest*
afc31813 17794 ac_ext=c
698dcdb6 17795# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10f2d63a 17796ac_cpp='$CPP $CPPFLAGS'
698dcdb6
VZ
17797ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17798ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17799cross_compiling=$ac_cv_prog_cc_cross
10f2d63a 17800
698dcdb6 17801
afc31813 17802fi
698dcdb6
VZ
17803
17804echo "$ac_t""$wx_cv_func_gettimeofday_has_2_args" 1>&6
c63c7106 17805
afc31813 17806 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
698dcdb6 17807 cat >> confdefs.h <<\EOF
afc31813
VZ
17808#define WX_GETTIMEOFDAY_NO_TZ 1
17809EOF
17810
17811 fi
17812 fi
17813
698dcdb6 17814 cat >> confdefs.h <<\EOF
afc31813
VZ
17815#define wxUSE_TIMEDATE 1
17816EOF
17817
17818 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
17819fi
17820
698dcdb6 17821
b089607b
VZ
17822if test "$TOOLKIT" != "MSW"; then
17823
3a922bb4
RL
17824 if test "$wxUSE_SOCKETS" = "yes"; then
17825 echo $ac_n "checking for socket""... $ac_c" 1>&6
4b6b4dfc 17826echo "configure:17827: checking for socket" >&5
698dcdb6
VZ
17827if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
17828 echo $ac_n "(cached) $ac_c" 1>&6
c63c7106 17829else
698dcdb6 17830 cat > conftest.$ac_ext <<EOF
4b6b4dfc 17831#line 17832 "configure"
c63c7106
VZ
17832#include "confdefs.h"
17833/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 17834 which can conflict with char socket(); below. */
c63c7106
VZ
17835#include <assert.h>
17836/* Override any gcc2 internal prototype to avoid an error. */
17837/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
17838 builtin and then its argument prototype would still apply. */
17839char socket();
17840
17841int main() {
c63c7106
VZ
17842
17843/* The GNU C library defines this for functions which it implements
17844 to always fail with ENOSYS. Some functions are actually named
17845 something starting with __ and the normal name is an alias. */
17846#if defined (__stub_socket) || defined (__stub___socket)
17847choke me
17848#else
698dcdb6 17849socket();
c63c7106
VZ
17850#endif
17851
698dcdb6
VZ
17852; return 0; }
17853EOF
4b6b4dfc 17854if { (eval echo configure:17855: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
17855 rm -rf conftest*
17856 eval "ac_cv_func_socket=yes"
17857else
17858 echo "configure: failed program was:" >&5
17859 cat conftest.$ac_ext >&5
17860 rm -rf conftest*
17861 eval "ac_cv_func_socket=no"
17862fi
17863rm -f conftest*
17864fi
17865
17866if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
17867 echo "$ac_t""yes" 1>&6
c63c7106
VZ
17868 :
17869else
698dcdb6
VZ
17870 echo "$ac_t""no" 1>&6
17871echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
4b6b4dfc 17872echo "configure:17873: checking for socket in -lsocket" >&5
698dcdb6
VZ
17873ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
17874if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17875 echo $ac_n "(cached) $ac_c" 1>&6
c63c7106 17876else
698dcdb6 17877 ac_save_LIBS="$LIBS"
c63c7106 17878LIBS="-lsocket $LIBS"
698dcdb6 17879cat > conftest.$ac_ext <<EOF
4b6b4dfc 17880#line 17881 "configure"
c63c7106
VZ
17881#include "confdefs.h"
17882/* Override any gcc2 internal prototype to avoid an error. */
17883/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
17884 builtin and then its argument prototype would still apply. */
17885char socket();
17886
17887int main() {
17888socket()
17889; return 0; }
17890EOF
4b6b4dfc 17891if { (eval echo configure:17892: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
17892 rm -rf conftest*
17893 eval "ac_cv_lib_$ac_lib_var=yes"
17894else
17895 echo "configure: failed program was:" >&5
17896 cat conftest.$ac_ext >&5
17897 rm -rf conftest*
17898 eval "ac_cv_lib_$ac_lib_var=no"
17899fi
17900rm -f conftest*
17901LIBS="$ac_save_LIBS"
17902
17903fi
17904if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17905 echo "$ac_t""yes" 1>&6
c63c7106 17906 INET_LINK="$INET_LINK -lsocket"
c63c7106 17907else
698dcdb6 17908 echo "$ac_t""no" 1>&6
afc31813 17909
3a922bb4
RL
17910 echo "configure: warning: socket library not found - sockets will be disabled" 1>&2
17911 wxUSE_SOCKETS=no
17912
698dcdb6 17913
6232543b 17914fi
b089607b 17915
3a922bb4 17916
1e487827 17917fi
afc31813 17918
3a922bb4 17919 fi
51a9faba 17920
3a922bb4
RL
17921
17922 if test "$wxUSE_SOCKETS" = "yes" ; then
17923 echo $ac_n "checking what is the type of the third argument of getsockname""... $ac_c" 1>&6
4b6b4dfc 17924echo "configure:17925: checking what is the type of the third argument of getsockname" >&5
698dcdb6
VZ
17925if eval "test \"`echo '$''{'wx_cv_type_getsockname3'+set}'`\" = set"; then
17926 echo $ac_n "(cached) $ac_c" 1>&6
17927else
17928
3a922bb4
RL
17929
17930 ac_ext=C
698dcdb6 17931# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1e487827 17932ac_cpp='$CXXCPP $CPPFLAGS'
698dcdb6
VZ
17933ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17934ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17935cross_compiling=$ac_cv_prog_cxx_cross
703e0a69 17936
698dcdb6 17937
3a922bb4 17938 cat > conftest.$ac_ext <<EOF
4b6b4dfc 17939#line 17940 "configure"
afc31813 17940#include "confdefs.h"
51a9faba 17941
3a922bb4
RL
17942 #include <sys/types.h>
17943 #include <sys/socket.h>
17944
698dcdb6 17945int main() {
51a9faba 17946
3a922bb4
RL
17947 socklen_t len;
17948 getsockname(0, 0, &len);
17949
698dcdb6
VZ
17950; return 0; }
17951EOF
4b6b4dfc 17952if { (eval echo configure:17953: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 17953 rm -rf conftest*
51a9faba 17954 wx_cv_type_getsockname3=socklen_t
afc31813 17955else
698dcdb6
VZ
17956 echo "configure: failed program was:" >&5
17957 cat conftest.$ac_ext >&5
17958 rm -rf conftest*
17959 cat > conftest.$ac_ext <<EOF
4b6b4dfc 17960#line 17961 "configure"
afc31813 17961#include "confdefs.h"
51a9faba 17962
3a922bb4
RL
17963 #include <sys/types.h>
17964 #include <sys/socket.h>
17965
698dcdb6 17966int main() {
51a9faba 17967
3a922bb4
RL
17968 size_t len;
17969 getsockname(0, 0, &len);
17970
698dcdb6
VZ
17971; return 0; }
17972EOF
4b6b4dfc 17973if { (eval echo configure:17974: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 17974 rm -rf conftest*
51a9faba 17975 wx_cv_type_getsockname3=size_t
afc31813 17976else
698dcdb6
VZ
17977 echo "configure: failed program was:" >&5
17978 cat conftest.$ac_ext >&5
17979 rm -rf conftest*
17980 cat > conftest.$ac_ext <<EOF
4b6b4dfc 17981#line 17982 "configure"
afc31813 17982#include "confdefs.h"
51a9faba 17983
3a922bb4
RL
17984 #include <sys/types.h>
17985 #include <sys/socket.h>
17986
698dcdb6 17987int main() {
51a9faba 17988
3a922bb4
RL
17989 int len;
17990 getsockname(0, 0, &len);
17991
698dcdb6
VZ
17992; return 0; }
17993EOF
4b6b4dfc 17994if { (eval echo configure:17995: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 17995 rm -rf conftest*
51a9faba 17996 wx_cv_type_getsockname3=int
afc31813 17997else
698dcdb6
VZ
17998 echo "configure: failed program was:" >&5
17999 cat conftest.$ac_ext >&5
18000 rm -rf conftest*
18001 wx_cv_type_getsockname3=unknown
3a922bb4 18002
afc31813 18003fi
698dcdb6 18004rm -f conftest*
3a922bb4 18005
afc31813 18006fi
698dcdb6 18007rm -f conftest*
3a922bb4 18008
afc31813 18009fi
698dcdb6 18010rm -f conftest*
51a9faba 18011
3a922bb4 18012 ac_ext=c
698dcdb6 18013# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
afc31813 18014ac_cpp='$CPP $CPPFLAGS'
698dcdb6
VZ
18015ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18016ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18017cross_compiling=$ac_cv_prog_cc_cross
afc31813 18018
3a922bb4 18019
51a9faba 18020fi
698dcdb6
VZ
18021
18022echo "$ac_t""$wx_cv_type_getsockname3" 1>&6
51a9faba 18023
3a922bb4
RL
18024 if test "$wx_cv_type_getsockname3" = "unknown"; then
18025 wxUSE_SOCKETS=no
18026 echo "configure: warning: Couldn't find socklen_t synonym for this system" 1>&2
18027 else
18028 cat >> confdefs.h <<EOF
51a9faba
VZ
18029#define SOCKLEN_T $wx_cv_type_getsockname3
18030EOF
18031
3a922bb4 18032 fi
51a9faba
VZ
18033 fi
18034fi
afc31813 18035
51a9faba 18036if test "$wxUSE_SOCKETS" = "yes" ; then
698dcdb6 18037 cat >> confdefs.h <<\EOF
afc31813
VZ
18038#define wxUSE_SOCKETS 1
18039EOF
18040
70f7a477 18041 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
afc31813
VZ
18042fi
18043
698dcdb6 18044
dc3d889d
VZ
18045if test "$wxUSE_GUI" = "yes"; then
18046
156b2523
GD
18047 if test "$TOOLKIT" = "MAC"; then
18048 echo "configure: warning: Joystick not yet supported under Mac OS X... disabled" 1>&2
18049 wxUSE_JOYSTICK=no
18050 fi
18051 if test "$TOOLKIT" = "MOTIF"; then
18052 echo "configure: warning: Joystick not yet supported under Motif... disabled" 1>&2
18053 wxUSE_JOYSTICK=no
18054 fi
18055
3a922bb4
RL
18056 if test "$TOOLKIT" != "MSW"; then
18057 if test "$wxUSE_JOYSTICK" = "yes"; then
18058 for ac_hdr in linux/joystick.h
10f2d63a 18059do
698dcdb6
VZ
18060ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
18061echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4b6b4dfc 18062echo "configure:18063: checking for $ac_hdr" >&5
698dcdb6
VZ
18063if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
18064 echo $ac_n "(cached) $ac_c" 1>&6
18065else
18066 cat > conftest.$ac_ext <<EOF
4b6b4dfc 18067#line 18068 "configure"
10f2d63a 18068#include "confdefs.h"
698dcdb6
VZ
18069#include <$ac_hdr>
18070EOF
18071ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4b6b4dfc 18072{ (eval echo configure:18073: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
18073ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
18074if test -z "$ac_err"; then
18075 rm -rf conftest*
18076 eval "ac_cv_header_$ac_safe=yes"
10f2d63a 18077else
698dcdb6
VZ
18078 echo "$ac_err" >&5
18079 echo "configure: failed program was:" >&5
10f2d63a 18080 cat conftest.$ac_ext >&5
698dcdb6
VZ
18081 rm -rf conftest*
18082 eval "ac_cv_header_$ac_safe=no"
10f2d63a 18083fi
698dcdb6 18084rm -f conftest*
10f2d63a 18085fi
698dcdb6
VZ
18086if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
18087 echo "$ac_t""yes" 1>&6
18088 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
18089 cat >> confdefs.h <<EOF
18090#define $ac_tr_hdr 1
10f2d63a 18091EOF
698dcdb6
VZ
18092
18093else
18094 echo "$ac_t""no" 1>&6
10f2d63a
VZ
18095fi
18096done
18097
3a922bb4
RL
18098 if test "$ac_cv_header_linux_joystick_h" != "yes"; then
18099 wxUSE_JOYSTICK=no
156b2523 18100 echo "configure: warning: Joystick not supported by this system... disabled" 1>&2
3a922bb4
RL
18101 fi
18102 fi
18103 fi
b089607b 18104
3a922bb4
RL
18105 if test "$wxUSE_JOYSTICK" = "yes"; then
18106 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18107#define wxUSE_JOYSTICK 1
18108EOF
18109
3a922bb4
RL
18110 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
18111 fi
dc3d889d
VZ
18112fi
18113
698dcdb6 18114
b089607b
VZ
18115if test "$TOOLKIT" != "MSW"; then
18116
3a922bb4
RL
18117 HAVE_DL_FUNCS=0
18118 HAVE_SHL_FUNCS=0
0b9ab0bd 18119 if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
3a922bb4
RL
18120 if test "$USE_DARWIN" = 1; then
18121 HAVE_DL_FUNCS=1
18122 else
18123 for ac_func in dlopen
10f2d63a 18124do
698dcdb6 18125echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4b6b4dfc 18126echo "configure:18127: checking for $ac_func" >&5
698dcdb6
VZ
18127if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18128 echo $ac_n "(cached) $ac_c" 1>&6
18129else
18130 cat > conftest.$ac_ext <<EOF
4b6b4dfc 18131#line 18132 "configure"
10f2d63a
VZ
18132#include "confdefs.h"
18133/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 18134 which can conflict with char $ac_func(); below. */
10f2d63a
VZ
18135#include <assert.h>
18136/* Override any gcc2 internal prototype to avoid an error. */
18137/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
18138 builtin and then its argument prototype would still apply. */
18139char $ac_func();
18140
18141int main() {
10f2d63a
VZ
18142
18143/* The GNU C library defines this for functions which it implements
18144 to always fail with ENOSYS. Some functions are actually named
18145 something starting with __ and the normal name is an alias. */
18146#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18147choke me
18148#else
698dcdb6 18149$ac_func();
10f2d63a
VZ
18150#endif
18151
698dcdb6
VZ
18152; return 0; }
18153EOF
4b6b4dfc 18154if { (eval echo configure:18155: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
18155 rm -rf conftest*
18156 eval "ac_cv_func_$ac_func=yes"
18157else
18158 echo "configure: failed program was:" >&5
18159 cat conftest.$ac_ext >&5
18160 rm -rf conftest*
18161 eval "ac_cv_func_$ac_func=no"
18162fi
18163rm -f conftest*
18164fi
18165
18166if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18167 echo "$ac_t""yes" 1>&6
18168 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18169 cat >> confdefs.h <<EOF
18170#define $ac_tr_func 1
18171EOF
18172
3a922bb4 18173 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18174#define HAVE_DLOPEN 1
18175EOF
18176
3a922bb4
RL
18177 HAVE_DL_FUNCS=1
18178
10f2d63a 18179else
698dcdb6
VZ
18180 echo "$ac_t""no" 1>&6
18181echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
4b6b4dfc 18182echo "configure:18183: checking for dlopen in -ldl" >&5
698dcdb6
VZ
18183ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
18184if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18185 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 18186else
698dcdb6 18187 ac_save_LIBS="$LIBS"
10f2d63a 18188LIBS="-ldl $LIBS"
698dcdb6 18189cat > conftest.$ac_ext <<EOF
4b6b4dfc 18190#line 18191 "configure"
10f2d63a
VZ
18191#include "confdefs.h"
18192/* Override any gcc2 internal prototype to avoid an error. */
18193/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
18194 builtin and then its argument prototype would still apply. */
18195char dlopen();
18196
18197int main() {
18198dlopen()
18199; return 0; }
18200EOF
4b6b4dfc 18201if { (eval echo configure:18202: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
18202 rm -rf conftest*
18203 eval "ac_cv_lib_$ac_lib_var=yes"
18204else
18205 echo "configure: failed program was:" >&5
18206 cat conftest.$ac_ext >&5
18207 rm -rf conftest*
18208 eval "ac_cv_lib_$ac_lib_var=no"
18209fi
18210rm -f conftest*
18211LIBS="$ac_save_LIBS"
18212
18213fi
18214if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18215 echo "$ac_t""yes" 1>&6
18216
3a922bb4 18217 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18218#define HAVE_DLOPEN 1
18219EOF
18220
3a922bb4 18221 HAVE_DL_FUNCS=1
3d63bc3a 18222 DL_LINK=" -ldl$DL_LINK"
3a922bb4 18223
10f2d63a 18224else
698dcdb6 18225 echo "$ac_t""no" 1>&6
10f2d63a 18226
3a922bb4 18227 for ac_func in shl_load
10f2d63a 18228do
698dcdb6 18229echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4b6b4dfc 18230echo "configure:18231: checking for $ac_func" >&5
698dcdb6
VZ
18231if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18232 echo $ac_n "(cached) $ac_c" 1>&6
18233else
18234 cat > conftest.$ac_ext <<EOF
4b6b4dfc 18235#line 18236 "configure"
10f2d63a
VZ
18236#include "confdefs.h"
18237/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 18238 which can conflict with char $ac_func(); below. */
10f2d63a
VZ
18239#include <assert.h>
18240/* Override any gcc2 internal prototype to avoid an error. */
18241/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
18242 builtin and then its argument prototype would still apply. */
18243char $ac_func();
18244
18245int main() {
10f2d63a
VZ
18246
18247/* The GNU C library defines this for functions which it implements
18248 to always fail with ENOSYS. Some functions are actually named
18249 something starting with __ and the normal name is an alias. */
18250#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18251choke me
18252#else
698dcdb6 18253$ac_func();
10f2d63a
VZ
18254#endif
18255
698dcdb6
VZ
18256; return 0; }
18257EOF
4b6b4dfc 18258if { (eval echo configure:18259: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
18259 rm -rf conftest*
18260 eval "ac_cv_func_$ac_func=yes"
18261else
18262 echo "configure: failed program was:" >&5
18263 cat conftest.$ac_ext >&5
18264 rm -rf conftest*
18265 eval "ac_cv_func_$ac_func=no"
18266fi
18267rm -f conftest*
18268fi
18269
18270if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18271 echo "$ac_t""yes" 1>&6
18272 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18273 cat >> confdefs.h <<EOF
18274#define $ac_tr_func 1
18275EOF
18276
3a922bb4 18277 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18278#define HAVE_SHL_LOAD 1
18279EOF
18280
3a922bb4
RL
18281 HAVE_SHL_FUNCS=1
18282
10f2d63a 18283else
698dcdb6
VZ
18284 echo "$ac_t""no" 1>&6
18285echo $ac_n "checking for dld in -lshl_load""... $ac_c" 1>&6
4b6b4dfc 18286echo "configure:18287: checking for dld in -lshl_load" >&5
698dcdb6
VZ
18287ac_lib_var=`echo shl_load'_'dld | sed 'y%./+-%__p_%'`
18288if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18289 echo $ac_n "(cached) $ac_c" 1>&6
f6bcfd97 18290else
698dcdb6 18291 ac_save_LIBS="$LIBS"
f6bcfd97 18292LIBS="-lshl_load $LIBS"
698dcdb6 18293cat > conftest.$ac_ext <<EOF
4b6b4dfc 18294#line 18295 "configure"
f6bcfd97
BP
18295#include "confdefs.h"
18296/* Override any gcc2 internal prototype to avoid an error. */
18297/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
18298 builtin and then its argument prototype would still apply. */
18299char dld();
18300
18301int main() {
18302dld()
18303; return 0; }
18304EOF
4b6b4dfc 18305if { (eval echo configure:18306: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
18306 rm -rf conftest*
18307 eval "ac_cv_lib_$ac_lib_var=yes"
18308else
18309 echo "configure: failed program was:" >&5
18310 cat conftest.$ac_ext >&5
18311 rm -rf conftest*
18312 eval "ac_cv_lib_$ac_lib_var=no"
18313fi
18314rm -f conftest*
18315LIBS="$ac_save_LIBS"
f6bcfd97 18316
698dcdb6
VZ
18317fi
18318if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18319 echo "$ac_t""yes" 1>&6
18320
3a922bb4 18321 HAVE_SHL_FUNCS=1
3d63bc3a 18322 DL_LINK=" -ldld$DL_LINK"
3a922bb4 18323
698dcdb6
VZ
18324else
18325 echo "$ac_t""no" 1>&6
f6bcfd97
BP
18326fi
18327
3a922bb4 18328
10f2d63a
VZ
18329fi
18330done
18331
3a922bb4 18332
10f2d63a
VZ
18333fi
18334
3a922bb4 18335
10f2d63a
VZ
18336fi
18337done
18338
1e487827 18339
3a922bb4
RL
18340 if test "$HAVE_DL_FUNCS" = 1; then
18341 for ac_func in dlerror
f6bcfd97 18342do
698dcdb6 18343echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4b6b4dfc 18344echo "configure:18345: checking for $ac_func" >&5
698dcdb6
VZ
18345if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18346 echo $ac_n "(cached) $ac_c" 1>&6
18347else
18348 cat > conftest.$ac_ext <<EOF
4b6b4dfc 18349#line 18350 "configure"
f6bcfd97
BP
18350#include "confdefs.h"
18351/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 18352 which can conflict with char $ac_func(); below. */
f6bcfd97
BP
18353#include <assert.h>
18354/* Override any gcc2 internal prototype to avoid an error. */
18355/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
18356 builtin and then its argument prototype would still apply. */
18357char $ac_func();
18358
18359int main() {
f6bcfd97
BP
18360
18361/* The GNU C library defines this for functions which it implements
18362 to always fail with ENOSYS. Some functions are actually named
18363 something starting with __ and the normal name is an alias. */
18364#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18365choke me
18366#else
698dcdb6 18367$ac_func();
f6bcfd97
BP
18368#endif
18369
698dcdb6
VZ
18370; return 0; }
18371EOF
4b6b4dfc 18372if { (eval echo configure:18373: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
18373 rm -rf conftest*
18374 eval "ac_cv_func_$ac_func=yes"
18375else
18376 echo "configure: failed program was:" >&5
18377 cat conftest.$ac_ext >&5
18378 rm -rf conftest*
18379 eval "ac_cv_func_$ac_func=no"
18380fi
18381rm -f conftest*
18382fi
18383
18384if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18385 echo "$ac_t""yes" 1>&6
18386 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18387 cat >> confdefs.h <<EOF
18388#define $ac_tr_func 1
18389EOF
18390 cat >> confdefs.h <<\EOF
f6bcfd97
BP
18391#define HAVE_DLERROR 1
18392EOF
18393
18394else
698dcdb6
VZ
18395 echo "$ac_t""no" 1>&6
18396echo $ac_n "checking for dlerror in -ldl""... $ac_c" 1>&6
4b6b4dfc 18397echo "configure:18398: checking for dlerror in -ldl" >&5
698dcdb6
VZ
18398ac_lib_var=`echo dl'_'dlerror | sed 'y%./+-%__p_%'`
18399if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18400 echo $ac_n "(cached) $ac_c" 1>&6
f6bcfd97 18401else
698dcdb6 18402 ac_save_LIBS="$LIBS"
f6bcfd97 18403LIBS="-ldl $LIBS"
698dcdb6 18404cat > conftest.$ac_ext <<EOF
4b6b4dfc 18405#line 18406 "configure"
f6bcfd97
BP
18406#include "confdefs.h"
18407/* Override any gcc2 internal prototype to avoid an error. */
18408/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
18409 builtin and then its argument prototype would still apply. */
18410char dlerror();
18411
18412int main() {
18413dlerror()
18414; return 0; }
18415EOF
4b6b4dfc 18416if { (eval echo configure:18417: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
18417 rm -rf conftest*
18418 eval "ac_cv_lib_$ac_lib_var=yes"
18419else
18420 echo "configure: failed program was:" >&5
18421 cat conftest.$ac_ext >&5
18422 rm -rf conftest*
18423 eval "ac_cv_lib_$ac_lib_var=no"
18424fi
18425rm -f conftest*
18426LIBS="$ac_save_LIBS"
18427
18428fi
18429if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18430 echo "$ac_t""yes" 1>&6
18431 cat >> confdefs.h <<\EOF
f6bcfd97
BP
18432#define HAVE_DLERROR 1
18433EOF
18434
698dcdb6
VZ
18435else
18436 echo "$ac_t""no" 1>&6
f6bcfd97
BP
18437fi
18438
18439fi
18440done
18441
3a922bb4
RL
18442 fi
18443 fi
f6bcfd97 18444
3a922bb4
RL
18445 if test "$HAVE_DL_FUNCS" = 0; then
18446 if test "$HAVE_SHL_FUNCS" = 0; then
18447 if test "$USE_UNIX" = 1; then
18448 echo "configure: warning: Missing dynamic loading support, several features will be disabled" 1>&2
0b9ab0bd 18449 wxUSE_DYNAMIC_LOADER=no
3a922bb4
RL
18450 wxUSE_DYNLIB_CLASS=no
18451 else
18452 echo "configure: warning: Assuming wxLibrary class works on this platform" 1>&2
18453 fi
18454 fi
10f2d63a
VZ
18455 fi
18456 fi
18457fi
18458
0b9ab0bd
RL
18459if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
18460 cat >> confdefs.h <<\EOF
18461#define wxUSE_DYNAMIC_LOADER 1
18462EOF
18463
18464elif test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
698dcdb6 18465 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18466#define wxUSE_DYNLIB_CLASS 1
18467EOF
18468
18469fi
18470
698dcdb6 18471
1e6feb95
VZ
18472if test "$wxUSE_FONTMAP" = "yes" ; then
18473 cat >> confdefs.h <<\EOF
18474#define wxUSE_FONTMAP 1
18475EOF
18476
18477fi
18478
10f2d63a 18479if test "$wxUSE_UNICODE" = "yes" ; then
698dcdb6 18480 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18481#define wxUSE_UNICODE 1
18482EOF
18483
a72a4bfa
VS
18484
18485 if test "$wxUSE_MSW" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
18486 echo $ac_n "checking for main in -lunicows""... $ac_c" 1>&6
4b6b4dfc 18487echo "configure:18488: checking for main in -lunicows" >&5
a72a4bfa
VS
18488ac_lib_var=`echo unicows'_'main | sed 'y%./+-%__p_%'`
18489if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18490 echo $ac_n "(cached) $ac_c" 1>&6
18491else
18492 ac_save_LIBS="$LIBS"
18493LIBS="-lunicows $LIBS"
18494cat > conftest.$ac_ext <<EOF
4b6b4dfc 18495#line 18496 "configure"
a72a4bfa
VS
18496#include "confdefs.h"
18497
18498int main() {
18499main()
18500; return 0; }
18501EOF
4b6b4dfc 18502if { (eval echo configure:18503: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a72a4bfa
VS
18503 rm -rf conftest*
18504 eval "ac_cv_lib_$ac_lib_var=yes"
18505else
18506 echo "configure: failed program was:" >&5
18507 cat conftest.$ac_ext >&5
18508 rm -rf conftest*
18509 eval "ac_cv_lib_$ac_lib_var=no"
18510fi
18511rm -f conftest*
18512LIBS="$ac_save_LIBS"
18513
18514fi
18515if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18516 echo "$ac_t""yes" 1>&6
18517
18518 cat >> confdefs.h <<\EOF
18519#define wxUSE_UNICODE_MSLU 1
18520EOF
18521
18522
18523else
18524 echo "$ac_t""no" 1>&6
18525
18526 echo "configure: warning: Compiler doesn't support MSLU (libunicows.a), disabled.
18527 Applications will only run on Windows NT/2000/XP!" 1>&2
18528 wxUSE_UNICODE_MSLU=no
18529
18530fi
18531
18532 fi
10f2d63a
VZ
18533fi
18534
10f2d63a 18535if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
698dcdb6 18536 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18537#define wxUSE_EXPERIMENTAL_PRINTF 1
18538EOF
18539
18540fi
18541
698dcdb6 18542
698dcdb6 18543
10f2d63a
VZ
18544IODBC_C_SRC=""
18545if test "$wxUSE_ODBC" = "yes" ; then
698dcdb6 18546 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18547#define wxUSE_ODBC 1
18548EOF
18549
18550 WXODBCFLAG="-D_IODBC_"
18551 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
10f2d63a
VZ
18552fi
18553
698dcdb6 18554
10f2d63a 18555if test "$wxUSE_POSTSCRIPT" = "yes" ; then
698dcdb6 18556 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18557#define wxUSE_POSTSCRIPT 1
18558EOF
18559
18560fi
18561
698dcdb6 18562cat >> confdefs.h <<\EOF
10f2d63a
VZ
18563#define wxUSE_AFM_FOR_POSTSCRIPT 1
18564EOF
18565
698dcdb6
VZ
18566
18567cat >> confdefs.h <<\EOF
10f2d63a
VZ
18568#define wxUSE_NORMALIZED_PS_FONTS 1
18569EOF
18570
698dcdb6
VZ
18571
18572
10f2d63a 18573if test "$wxUSE_CONSTRAINTS" = "yes"; then
698dcdb6 18574 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18575#define wxUSE_CONSTRAINTS 1
18576EOF
18577
18578 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
18579fi
18580
18581if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
fc26f4ab 18582 if test "$wxUSE_UNIVERSAL" = "yes"; then
156b2523 18583 echo "configure: warning: MDI not yet supported for wxUNIVERSAL... disabled" 1>&2
fc26f4ab
RL
18584 wxUSE_MDI_ARCHITECTURE=no
18585 fi
18586
18587 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
18588 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18589#define wxUSE_MDI_ARCHITECTURE 1
18590EOF
18591
fc26f4ab
RL
18592 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
18593 fi
10f2d63a
VZ
18594fi
18595
18596if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
698dcdb6 18597 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18598#define wxUSE_DOC_VIEW_ARCHITECTURE 1
18599EOF
18600
18601 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
18602 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
18603 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
18604 fi
18605fi
18606
18607if test "$wxUSE_HELP" = "yes"; then
698dcdb6 18608 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18609#define wxUSE_HELP 1
18610EOF
18611
18612 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
3379ed37 18613
77e13408 18614 if test "$wxUSE_MSW" = 1; then
031d8228 18615 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
29fd3c0c
VS
18616 ac_safe=`echo "htmlhelp.h" | sed 'y%./+-%__p_%'`
18617echo $ac_n "checking for htmlhelp.h""... $ac_c" 1>&6
4b6b4dfc 18618echo "configure:18619: checking for htmlhelp.h" >&5
29fd3c0c
VS
18619if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
18620 echo $ac_n "(cached) $ac_c" 1>&6
18621else
18622 cat > conftest.$ac_ext <<EOF
4b6b4dfc 18623#line 18624 "configure"
29fd3c0c
VS
18624#include "confdefs.h"
18625#include <htmlhelp.h>
18626EOF
18627ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4b6b4dfc 18628{ (eval echo configure:18629: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
29fd3c0c
VS
18629ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
18630if test -z "$ac_err"; then
18631 rm -rf conftest*
18632 eval "ac_cv_header_$ac_safe=yes"
18633else
18634 echo "$ac_err" >&5
18635 echo "configure: failed program was:" >&5
18636 cat conftest.$ac_ext >&5
18637 rm -rf conftest*
18638 eval "ac_cv_header_$ac_safe=no"
18639fi
18640rm -f conftest*
18641fi
18642if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
18643 echo "$ac_t""yes" 1>&6
18644
18645 cat >> confdefs.h <<\EOF
18646#define wxUSE_MS_HTML_HELP 1
18647EOF
18648
18649
18650else
18651 echo "$ac_t""no" 1>&6
18652
fc26f4ab 18653 echo "configure: warning: MS HTML Help cannot be used without htmlhelp.h... disabled" 1>&2
29fd3c0c
VS
18654 wxUSE_MS_HTML_HELP=no
18655
18656fi
18657
3e44f09d 18658 fi
3379ed37 18659 fi
031d8228
VS
18660
18661 if test "$wxUSE_WXHTML_HELP" = "yes"; then
18662 if test "$wxUSE_HTML" = "yes"; then
18663 cat >> confdefs.h <<\EOF
18664#define wxUSE_WXHTML_HELP 1
18665EOF
18666
18667 else
18668 echo "configure: warning: Cannot use wxHTML-based help without wxHTML so it won't be compiled" 1>&2
18669 wxUSE_WXHTML_HELP=no
18670 fi
18671 fi
10f2d63a
VZ
18672fi
18673
18674if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
18675 if test "$wxUSE_CONSTRAINTS" != "yes"; then
698dcdb6 18676 echo "configure: warning: Printing support cannot be used without constraints so it won't be compiled without it" 1>&2
10f2d63a 18677 else
698dcdb6 18678 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18679#define wxUSE_PRINTING_ARCHITECTURE 1
18680EOF
18681
18682 fi
18683 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
18684fi
18685
18686if test "$wxUSE_PROLOGIO" = "yes" ; then
698dcdb6 18687 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18688#define wxUSE_PROLOGIO 1
18689EOF
18690
18691fi
18692
18693if test "$wxUSE_RESOURCES" = "yes" ; then
3379ed37 18694 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18695#define wxUSE_RESOURCES 1
18696EOF
18697
3379ed37 18698 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS resource"
10f2d63a
VZ
18699fi
18700
18701if test "$wxUSE_X_RESOURCES" = "yes"; then
698dcdb6 18702 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18703#define wxUSE_X_RESOURCES 1
18704EOF
18705
18706fi
18707
698dcdb6 18708
77e13408
RL
18709if test "$wxUSE_MSW" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
18710 -o "$wxUSE_CLIPBOARD" = "yes" \
18711 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
2b9bdf71 18712 for ac_hdr in ole2.h
10f2d63a 18713do
698dcdb6
VZ
18714ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
18715echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4b6b4dfc 18716echo "configure:18717: checking for $ac_hdr" >&5
698dcdb6
VZ
18717if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
18718 echo $ac_n "(cached) $ac_c" 1>&6
18719else
18720 cat > conftest.$ac_ext <<EOF
4b6b4dfc 18721#line 18722 "configure"
10f2d63a 18722#include "confdefs.h"
698dcdb6
VZ
18723#include <$ac_hdr>
18724EOF
18725ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4b6b4dfc 18726{ (eval echo configure:18727: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
18727ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
18728if test -z "$ac_err"; then
18729 rm -rf conftest*
18730 eval "ac_cv_header_$ac_safe=yes"
1e487827 18731else
698dcdb6
VZ
18732 echo "$ac_err" >&5
18733 echo "configure: failed program was:" >&5
10f2d63a 18734 cat conftest.$ac_ext >&5
698dcdb6
VZ
18735 rm -rf conftest*
18736 eval "ac_cv_header_$ac_safe=no"
10f2d63a 18737fi
698dcdb6 18738rm -f conftest*
10f2d63a 18739fi
698dcdb6
VZ
18740if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
18741 echo "$ac_t""yes" 1>&6
18742 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
18743 cat >> confdefs.h <<EOF
18744#define $ac_tr_hdr 1
10f2d63a 18745EOF
698dcdb6
VZ
18746
18747else
18748 echo "$ac_t""no" 1>&6
10f2d63a
VZ
18749fi
18750done
18751
698dcdb6 18752
2b9bdf71
VZ
18753 if test "$ac_cv_header_ole2_h" = "yes" ; then
18754 if test "$GCC" = yes ; then
18755 ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)"
2b9bdf71 18756 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
3d63bc3a 18757 LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
2b9bdf71 18758 cat >> confdefs.h <<\EOF
4f11a343
VS
18759#define wxUSE_OLE 1
18760EOF
18761
b64f0a5f 18762
2b9bdf71
VZ
18763 fi
18764
18765 cat >> confdefs.h <<\EOF
18766#define wxUSE_DATAOBJ 1
18767EOF
18768
18769 else
18770 echo "configure: warning: Some features disabled because OLE headers not found" 1>&2
18771
18772 wxUSE_CLIPBOARD=no
18773 wxUSE_DRAG_AND_DROP=no
18774 wxUSE_DATAOBJ=no
18775 fi
18776
77e13408 18777 if test "$wxUSE_METAFILE" = "yes"; then
2b9bdf71 18778 cat >> confdefs.h <<\EOF
b64f0a5f
RL
18779#define wxUSE_METAFILE 1
18780EOF
18781
2b9bdf71
VZ
18782
18783 cat >> confdefs.h <<\EOF
b64f0a5f
RL
18784#define wxUSE_ENH_METAFILE 1
18785EOF
18786
2b9bdf71
VZ
18787 fi
18788fi
18789
18790if test "$wxUSE_IPC" = "yes"; then
18791 if test "$wxUSE_SOCKETS" != "yes"; then
156b2523 18792 echo "configure: warning: wxWindows IPC classes require sockets... disabled" 1>&2
2b9bdf71
VZ
18793 fi
18794
18795 cat >> confdefs.h <<\EOF
18796#define wxUSE_IPC 1
18797EOF
18798
18799fi
18800
18801if test "$wxUSE_CLIPBOARD" = "yes"; then
18802 cat >> confdefs.h <<\EOF
18803#define wxUSE_CLIPBOARD 1
18804EOF
18805
673f4220 18806
e33ef661 18807 cat >> confdefs.h <<\EOF
673f4220
VZ
18808#define wxUSE_DATAOBJ 1
18809EOF
18810
2b9bdf71
VZ
18811fi
18812
18813if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
18814 if test "$wxUSE_GTK" = 1; then
18815 if test "$WXGTK12" != 1; then
156b2523 18816 echo "configure: warning: Drag and drop is only supported under GTK+ 1.2... disabled" 1>&2
10f2d63a
VZ
18817 wxUSE_DRAG_AND_DROP=no
18818 fi
18819 fi
18820
2b9bdf71 18821 if test "$wxUSE_MOTIF" = 1; then
156b2523 18822 echo "configure: warning: Drag and drop not yet supported under Motif... disabled" 1>&2
2b9bdf71
VZ
18823 wxUSE_DRAG_AND_DROP=no
18824 fi
18825
10f2d63a 18826 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
698dcdb6 18827 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18828#define wxUSE_DRAG_AND_DROP 1
18829EOF
18830
18831 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
18832 fi
18833
18834fi
18835
18836if test "$wxUSE_SPLINES" = "yes" ; then
698dcdb6 18837 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18838#define wxUSE_SPLINES 1
18839EOF
18840
18841fi
18842
698dcdb6 18843
1e6feb95
VZ
18844USES_CONTROLS=0
18845if test "$wxUSE_CONTROLS" = "yes"; then
18846 USES_CONTROLS=1
18847fi
18848
10f2d63a 18849if test "$wxUSE_ACCEL" = "yes"; then
698dcdb6 18850 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18851#define wxUSE_ACCEL 1
18852EOF
18853
1e6feb95
VZ
18854 USES_CONTROLS=1
18855fi
18856
18857if test "$wxUSE_BUTTON" = "yes"; then
18858 cat >> confdefs.h <<\EOF
18859#define wxUSE_BUTTON 1
18860EOF
18861
18862 USES_CONTROLS=1
18863fi
18864
18865if test "$wxUSE_BMPBUTTON" = "yes"; then
18866 cat >> confdefs.h <<\EOF
18867#define wxUSE_BMPBUTTON 1
18868EOF
18869
18870 USES_CONTROLS=1
18871fi
18872
18873if test "$wxUSE_CALCTRL" = "yes"; then
18874 cat >> confdefs.h <<\EOF
18875#define wxUSE_CALENDARCTRL 1
18876EOF
18877
18878 USES_CONTROLS=1
18879 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
10f2d63a
VZ
18880fi
18881
18882if test "$wxUSE_CARET" = "yes"; then
698dcdb6 18883 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18884#define wxUSE_CARET 1
18885EOF
18886
1e6feb95 18887 USES_CONTROLS=1
10f2d63a
VZ
18888 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
18889fi
18890
18891if test "$wxUSE_COMBOBOX" = "yes"; then
698dcdb6 18892 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18893#define wxUSE_COMBOBOX 1
18894EOF
18895
1e6feb95 18896 USES_CONTROLS=1
10f2d63a
VZ
18897fi
18898
18899if test "$wxUSE_CHOICE" = "yes"; then
698dcdb6 18900 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18901#define wxUSE_CHOICE 1
18902EOF
18903
1e6feb95 18904 USES_CONTROLS=1
10f2d63a
VZ
18905fi
18906
18907if test "$wxUSE_CHECKBOX" = "yes"; then
698dcdb6 18908 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18909#define wxUSE_CHECKBOX 1
18910EOF
18911
1e6feb95 18912 USES_CONTROLS=1
10f2d63a
VZ
18913fi
18914
18915if test "$wxUSE_CHECKLST" = "yes"; then
698dcdb6 18916 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18917#define wxUSE_CHECKLISTBOX 1
18918EOF
18919
1e6feb95 18920 USES_CONTROLS=1
10f2d63a
VZ
18921 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
18922fi
18923
18924if test "$wxUSE_GAUGE" = "yes"; then
698dcdb6 18925 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18926#define wxUSE_GAUGE 1
18927EOF
18928
1e6feb95 18929 USES_CONTROLS=1
10f2d63a
VZ
18930fi
18931
d6a55c4b
VZ
18932if test "$wxUSE_NEW_GRID" = "yes"; then
18933 wxUSE_GRID="yes"
698dcdb6 18934 cat >> confdefs.h <<\EOF
d6a55c4b 18935#define wxUSE_NEW_GRID 1
10f2d63a
VZ
18936EOF
18937
1e6feb95 18938 USES_CONTROLS=1
d6a55c4b 18939 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS newgrid"
10f2d63a
VZ
18940fi
18941
d6a55c4b 18942if test "$wxUSE_GRID" = "yes"; then
698dcdb6 18943 cat >> confdefs.h <<\EOF
d6a55c4b 18944#define wxUSE_GRID 1
10f2d63a
VZ
18945EOF
18946
1e6feb95 18947 USES_CONTROLS=1
d6a55c4b 18948 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
10f2d63a
VZ
18949fi
18950
18951if test "$wxUSE_IMAGLIST" = "yes"; then
698dcdb6 18952 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18953#define wxUSE_IMAGLIST 1
18954EOF
18955
18956fi
18957
18958if test "$wxUSE_LISTBOX" = "yes"; then
698dcdb6 18959 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18960#define wxUSE_LISTBOX 1
18961EOF
18962
1e6feb95 18963 USES_CONTROLS=1
10f2d63a
VZ
18964fi
18965
18966if test "$wxUSE_LISTCTRL" = "yes"; then
18967 if test "$wxUSE_IMAGLIST" = "yes"; then
698dcdb6 18968 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18969#define wxUSE_LISTCTRL 1
18970EOF
18971
1e6feb95 18972 USES_CONTROLS=1
10f2d63a
VZ
18973 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
18974 else
698dcdb6 18975 echo "configure: warning: wxListCtrl requires wxImageList and won't be compiled without it" 1>&2
10f2d63a
VZ
18976 fi
18977fi
18978
18979if test "$wxUSE_NOTEBOOK" = "yes"; then
698dcdb6 18980 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18981#define wxUSE_NOTEBOOK 1
18982EOF
18983
1e6feb95 18984 USES_CONTROLS=1
10f2d63a
VZ
18985 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
18986fi
18987
24176f2c
GD
18988if test "$wxUSE_PROPSHEET" = "yes"; then
18989 cat >> confdefs.h <<\EOF
18990#define wxUSE_PROPSHEET 1
18991EOF
18992
18993 USES_CONTROLS=1
18994 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS proplist"
18995fi
18996
10f2d63a 18997if test "$wxUSE_RADIOBOX" = "yes"; then
698dcdb6 18998 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18999#define wxUSE_RADIOBOX 1
19000EOF
19001
1e6feb95 19002 USES_CONTROLS=1
10f2d63a
VZ
19003fi
19004
19005if test "$wxUSE_RADIOBTN" = "yes"; then
698dcdb6 19006 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19007#define wxUSE_RADIOBTN 1
19008EOF
19009
1e6feb95 19010 USES_CONTROLS=1
10f2d63a
VZ
19011fi
19012
19013if test "$wxUSE_SASH" = "yes"; then
698dcdb6 19014 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19015#define wxUSE_SASH 1
19016EOF
19017
19018 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
19019fi
19020
19021if test "$wxUSE_SCROLLBAR" = "yes"; then
698dcdb6 19022 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19023#define wxUSE_SCROLLBAR 1
19024EOF
19025
1e6feb95 19026 USES_CONTROLS=1
741a9306 19027 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
10f2d63a
VZ
19028fi
19029
19030if test "$wxUSE_SLIDER" = "yes"; then
698dcdb6 19031 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19032#define wxUSE_SLIDER 1
19033EOF
19034
1e6feb95 19035 USES_CONTROLS=1
10f2d63a
VZ
19036fi
19037
19038if test "$wxUSE_SPINBTN" = "yes"; then
698dcdb6 19039 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19040#define wxUSE_SPINBTN 1
19041EOF
19042
1e6feb95 19043 USES_CONTROLS=1
10f2d63a
VZ
19044fi
19045
56cfaa52 19046if test "$wxUSE_SPINCTRL" = "yes"; then
698dcdb6 19047 cat >> confdefs.h <<\EOF
56cfaa52
RR
19048#define wxUSE_SPINCTRL 1
19049EOF
19050
1e6feb95 19051 USES_CONTROLS=1
56cfaa52
RR
19052fi
19053
10f2d63a 19054if test "$wxUSE_SPLITTER" = "yes"; then
698dcdb6 19055 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19056#define wxUSE_SPLITTER 1
19057EOF
19058
19059 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
19060fi
19061
19062if test "$wxUSE_STATBMP" = "yes"; then
698dcdb6 19063 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19064#define wxUSE_STATBMP 1
19065EOF
19066
1e6feb95 19067 USES_CONTROLS=1
10f2d63a
VZ
19068fi
19069
19070if test "$wxUSE_STATBOX" = "yes"; then
698dcdb6 19071 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19072#define wxUSE_STATBOX 1
19073EOF
19074
1e6feb95
VZ
19075 USES_CONTROLS=1
19076fi
19077
19078if test "$wxUSE_STATTEXT" = "yes"; then
19079 cat >> confdefs.h <<\EOF
19080#define wxUSE_STATTEXT 1
19081EOF
19082
19083 USES_CONTROLS=1
10f2d63a
VZ
19084fi
19085
19086if test "$wxUSE_STATLINE" = "yes"; then
19087 if test "$wxUSE_WINE" = 1 ; then
698dcdb6 19088 echo "configure: warning: wxStaticLine is not supported under WINE" 1>&2
10f2d63a 19089 else
698dcdb6 19090 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19091#define wxUSE_STATLINE 1
19092EOF
19093
1e6feb95 19094 USES_CONTROLS=1
10f2d63a
VZ
19095 fi
19096fi
19097
19098if test "$wxUSE_STATUSBAR" = "yes"; then
698dcdb6 19099 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19100#define wxUSE_STATUSBAR 1
19101EOF
19102
1e6feb95 19103 USES_CONTROLS=1
698dcdb6 19104
2286341c 19105 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
10f2d63a
VZ
19106fi
19107
19108if test "$wxUSE_TABDIALOG" = "yes"; then
698dcdb6 19109 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19110#define wxUSE_TAB_DIALOG 1
19111EOF
19112
19113 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
19114fi
19115
1e6feb95
VZ
19116if test "$wxUSE_TEXTCTRL" = "yes"; then
19117 cat >> confdefs.h <<\EOF
19118#define wxUSE_TEXTCTRL 1
19119EOF
19120
19121 USES_CONTROLS=1
19122 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
19123fi
19124
1db8dc4a 19125if test "$wxUSE_TOGGLEBTN" = "yes"; then
156b2523
GD
19126 if test "$wxUSE_MAC" = 1; then
19127 echo "configure: warning: Toggle button not yet supported under Mac OS X... disabled" 1>&2
19128 wxUSE_TOGGLEBTN=no
19129 fi
19130 if test "$wxUSE_UNIVERSAL" = "yes"; then
19131 echo "configure: warning: Toggle button not yet supported under wxUNIVERSAL... disabled" 1>&2
a45d7ab7
GD
19132 wxUSE_TOGGLEBTN=no
19133 fi
19134
19135 if test "$wxUSE_TOGGLEBTN" = "yes"; then
19136 cat >> confdefs.h <<\EOF
1db8dc4a
VZ
19137#define wxUSE_TOGGLEBTN 1
19138EOF
19139
1e6feb95 19140 USES_CONTROLS=1
a45d7ab7 19141 fi
1db8dc4a
VZ
19142fi
19143
360d6699 19144if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
698dcdb6 19145 cat >> confdefs.h <<\EOF
360d6699
VZ
19146#define wxUSE_TOOLBAR_SIMPLE 1
19147EOF
19148
19149 wxUSE_TOOLBAR="yes"
1e6feb95 19150 USES_CONTROLS=1
360d6699
VZ
19151fi
19152
10f2d63a 19153if test "$wxUSE_TOOLBAR" = "yes"; then
698dcdb6 19154 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19155#define wxUSE_TOOLBAR 1
19156EOF
19157
1e6feb95 19158 USES_CONTROLS=1
698dcdb6 19159
360d6699
VZ
19160 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
19161 wxUSE_TOOLBAR_NATIVE="yes"
19162 fi
19163
1e6feb95
VZ
19164 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
19165 cat >> confdefs.h <<\EOF
360d6699
VZ
19166#define wxUSE_TOOLBAR_NATIVE 1
19167EOF
19168
1e6feb95
VZ
19169 USES_CONTROLS=1
19170 fi
19171
19172 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
360d6699
VZ
19173fi
19174
10f2d63a
VZ
19175if test "$wxUSE_TOOLTIPS" = "yes"; then
19176 if test "$wxUSE_MOTIF" = 1; then
156b2523 19177 echo "configure: warning: wxTooltip not supported yet under Motif... disabled" 1>&2
10f2d63a
VZ
19178 else
19179 if test "$wxUSE_WINE" = 1; then
156b2523 19180 echo "configure: warning: wxTooltip not supported under WINE... disabled" 1>&2
10f2d63a 19181 else
69d27ff7 19182 if test "$wxUSE_UNIVERSAL" = "yes"; then
156b2523 19183 echo "configure: warning: wxTooltip not supported yet in wxUNIVERSAL... disabled" 1>&2
69d27ff7
MB
19184 else
19185 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19186#define wxUSE_TOOLTIPS 1
19187EOF
19188
69d27ff7 19189 fi
10f2d63a
VZ
19190 fi
19191 fi
19192fi
19193
19194if test "$wxUSE_TREECTRL" = "yes"; then
19195 if test "$wxUSE_IMAGLIST" = "yes"; then
698dcdb6 19196 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19197#define wxUSE_TREECTRL 1
19198EOF
19199
1e6feb95 19200 USES_CONTROLS=1
10f2d63a
VZ
19201 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
19202 else
698dcdb6 19203 echo "configure: warning: wxTreeCtrl requires wxImageList and won't be compiled without it" 1>&2
10f2d63a
VZ
19204 fi
19205fi
19206
9f41d601 19207if test "$wxUSE_POPUPWIN" = "yes"; then
6abe4b65 19208 if test "$wxUSE_MAC" = 1; then
156b2523 19209 echo "configure: warning: Popup window not yet supported under Mac OS X... disabled" 1>&2
6abe4b65 19210 else
485cf710
VZ
19211 if test "$wxUSE_MOTIF" = 1; then
19212 echo "configure: warning: wxPopupWindow not yet supported under Motif... disabled" 1>&2
19213 else
19214 cat >> confdefs.h <<\EOF
9f41d601
RR
19215#define wxUSE_POPUPWIN 1
19216EOF
19217
9926e4a4 19218
485cf710
VZ
19219 USES_CONTROLS=1
19220 fi
6abe4b65 19221 fi
9f41d601
RR
19222fi
19223
dd964dcc
VZ
19224if test "$wxUSE_TIPWINDOW" = "yes"; then
19225 cat >> confdefs.h <<\EOF
19226#define wxUSE_TIPWINDOW 1
19227EOF
19228
19229fi
19230
1e6feb95
VZ
19231if test "$USES_CONTROLS" = 1; then
19232 cat >> confdefs.h <<\EOF
19233#define wxUSE_CONTROLS 1
10f2d63a
VZ
19234EOF
19235
10f2d63a
VZ
19236fi
19237
1e6feb95 19238
24176f2c
GD
19239if test "$wxUSE_TREELAYOUT" = "yes"; then
19240 cat >> confdefs.h <<\EOF
19241#define wxUSE_TREELAYOUT 1
19242EOF
19243
19244 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treelay"
19245fi
1e6feb95 19246
24fd6d87
VZ
19247if test "$wxUSE_DRAGIMAGE" = "yes"; then
19248 cat >> confdefs.h <<\EOF
19249#define wxUSE_DRAGIMAGE 1
19250EOF
19251
19252 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
19253fi
19254
1e6feb95 19255if test "$wxUSE_MENUS" = "yes"; then
698dcdb6 19256 cat >> confdefs.h <<\EOF
1e6feb95 19257#define wxUSE_MENUS 1
10f2d63a
VZ
19258EOF
19259
1e6feb95 19260 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
10f2d63a
VZ
19261fi
19262
1e6feb95
VZ
19263if test "$wxUSE_METAFILE" = "yes"; then
19264 cat >> confdefs.h <<\EOF
19265#define wxUSE_METAFILE 1
10f2d63a
VZ
19266EOF
19267
10f2d63a
VZ
19268fi
19269
1e6feb95
VZ
19270if test "$wxUSE_MIMETYPE" = "yes"; then
19271 cat >> confdefs.h <<\EOF
19272#define wxUSE_MIMETYPE 1
10f2d63a
VZ
19273EOF
19274
10f2d63a
VZ
19275fi
19276
3e44f09d
VZ
19277if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
19278 cat >> confdefs.h <<\EOF
19279#define wxUSE_SYSTEM_OPTIONS 1
19280EOF
19281
19282fi
19283
4cdb0ab0 19284if test "$wxUSE_PROTOCOL" = "yes"; then
3954f9ca
VS
19285 if test "$wxUSE_SOCKETS" != "yes"; then
19286 echo "configure: warning: Protocol classes require sockets... disabled" 1>&2
19287 wxUSE_PROTOCOL=no
19288 fi
19289
19290 if test "$wxUSE_PROTOCOL" = "yes"; then
19291 cat >> confdefs.h <<\EOF
4cdb0ab0
VS
19292#define wxUSE_PROTOCOL 1
19293EOF
19294
19295
3954f9ca
VS
19296 if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
19297 cat >> confdefs.h <<\EOF
4cdb0ab0
VS
19298#define wxUSE_PROTOCOL_HTTP 1
19299EOF
19300
3954f9ca
VS
19301 fi
19302 if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
19303 cat >> confdefs.h <<\EOF
4cdb0ab0
VS
19304#define wxUSE_PROTOCOL_FTP 1
19305EOF
19306
3954f9ca
VS
19307 fi
19308 if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
19309 cat >> confdefs.h <<\EOF
19310#define wxUSE_PROTOCOL_FILE 1
19311EOF
19312
19313 fi
4cdb0ab0 19314 fi
3954f9ca
VS
19315fi
19316
19317if test "$wxUSE_URL" = "yes"; then
19318 if test "$wxUSE_PROTOCOL" != "yes"; then
19319 echo "configure: warning: wxURL class requires wxProtocol... disabled" 1>&2
19320 wxUSE_URL=no
19321 fi
19322 if test "$wxUSE_URL" = "yes"; then
4cdb0ab0 19323 cat >> confdefs.h <<\EOF
3954f9ca 19324#define wxUSE_URL 1
4cdb0ab0
VS
19325EOF
19326
19327 fi
19328fi
19329
10f2d63a 19330if test "$wxUSE_MINIFRAME" = "yes"; then
698dcdb6 19331 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19332#define wxUSE_MINIFRAME 1
19333EOF
19334
19335 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
19336fi
19337
19338if test "$wxUSE_HTML" = "yes"; then
698dcdb6 19339 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19340#define wxUSE_HTML 1
19341EOF
19342
19343 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html"
10f2d63a
VZ
19344fi
19345
19346if test "$wxUSE_VALIDATORS" = "yes"; then
698dcdb6 19347 cat >> confdefs.h <<\EOF
1e487827
VS
19348#define wxUSE_VALIDATORS 1
19349EOF
703e0a69 19350
698dcdb6
VZ
19351 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
19352fi
19353
edae8572
VZ
19354if test "$wxUSE_PALETTE" = "yes" ; then
19355 cat >> confdefs.h <<\EOF
19356#define wxUSE_PALETTE 1
19357EOF
19358
19359fi
19360
698dcdb6
VZ
19361if test "$wxUSE_IMAGE" = "yes" ; then
19362 cat >> confdefs.h <<\EOF
19363#define wxUSE_IMAGE 1
19364EOF
19365
19366fi
19367
19368if test "$wxUSE_GIF" = "yes" ; then
19369 cat >> confdefs.h <<\EOF
19370#define wxUSE_GIF 1
19371EOF
19372
19373fi
19374
19375if test "$wxUSE_PCX" = "yes" ; then
19376 cat >> confdefs.h <<\EOF
19377#define wxUSE_PCX 1
19378EOF
19379
19380fi
19381
4b6b4dfc
RR
19382if test "$wxUSE_IFF" = "yes" ; then
19383 cat >> confdefs.h <<\EOF
19384#define wxUSE_IFF 1
19385EOF
19386
19387fi
19388
698dcdb6
VZ
19389if test "$wxUSE_PNM" = "yes" ; then
19390 cat >> confdefs.h <<\EOF
19391#define wxUSE_PNM 1
19392EOF
19393
19394fi
19395
19396if test "$wxUSE_XPM" = "yes" ; then
19397 cat >> confdefs.h <<\EOF
19398#define wxUSE_XPM 1
19399EOF
19400
19401fi
19402
658974ae
VS
19403if test "$wxUSE_ICO_CUR" = "yes" ; then
19404 cat >> confdefs.h <<\EOF
19405#define wxUSE_ICO_CUR 1
19406EOF
19407
19408fi
19409
a72a4bfa
VS
19410if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
19411 LIBS=" -lunicows $LIBS"
19412fi
19413
698dcdb6 19414
1e6feb95
VZ
19415if test "$wxUSE_CHOICEDLG" = "yes"; then
19416 cat >> confdefs.h <<\EOF
19417#define wxUSE_CHOICEDLG 1
19418EOF
19419
19420fi
19421
19422if test "$wxUSE_COLOURDLG" = "yes"; then
19423 cat >> confdefs.h <<\EOF
19424#define wxUSE_COLOURDLG 1
19425EOF
19426
19427fi
19428
19429if test "$wxUSE_FILEDLG" = "yes"; then
19430 cat >> confdefs.h <<\EOF
19431#define wxUSE_FILEDLG 1
19432EOF
19433
19434fi
19435
8db37e06
VZ
19436if test "$wxUSE_FINDREPLDLG" = "yes"; then
19437 cat >> confdefs.h <<\EOF
19438#define wxUSE_FINDREPLDLG 1
19439EOF
19440
19441fi
19442
1e6feb95
VZ
19443if test "$wxUSE_FONTDLG" = "yes"; then
19444 cat >> confdefs.h <<\EOF
19445#define wxUSE_FONTDLG 1
19446EOF
19447
19448fi
19449
19450if test "$wxUSE_DIRDLG" = "yes"; then
19451 if test "$wxUSE_CONSTRAINTS" != "yes"; then
19452 echo "configure: warning: wxDirDialog requires constraints so it won't be compiled without them" 1>&2
19453 else
19454 if test "$wxUSE_TREECTRL" != "yes"; then
19455 echo "configure: warning: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" 1>&2
19456 else
19457 cat >> confdefs.h <<\EOF
19458#define wxUSE_DIRDLG 1
19459EOF
19460
19461 fi
19462 fi
19463fi
19464
19465if test "$wxUSE_MSGDLG" = "yes"; then
19466 cat >> confdefs.h <<\EOF
19467#define wxUSE_MSGDLG 1
19468EOF
19469
19470fi
19471
19472if test "$wxUSE_NUMBERDLG" = "yes"; then
19473 cat >> confdefs.h <<\EOF
19474#define wxUSE_NUMBERDLG 1
19475EOF
19476
19477fi
19478
19479if test "$wxUSE_PROGRESSDLG" = "yes"; then
19480 if test "$wxUSE_CONSTRAINTS" != "yes"; then
19481 echo "configure: warning: wxProgressDialog requires constraints so it won't be compiled without them" 1>&2
19482 else
19483 cat >> confdefs.h <<\EOF
19484#define wxUSE_PROGRESSDLG 1
19485EOF
19486
19487 fi
19488fi
19489
cbca9943
VZ
19490if test "$wxUSE_SPLASH" = "yes"; then
19491 cat >> confdefs.h <<\EOF
19492#define wxUSE_SPLASH 1
19493EOF
19494
19495fi
19496
1e6feb95
VZ
19497if test "$wxUSE_STARTUP_TIPS" = "yes"; then
19498 if test "$wxUSE_CONSTRAINTS" != "yes"; then
19499 echo "configure: warning: Startup tips requires constraints and won't be compiled without them" 1>&2
19500 else
19501 cat >> confdefs.h <<\EOF
19502#define wxUSE_STARTUP_TIPS 1
19503EOF
19504
19505 fi
19506fi
19507
19508if test "$wxUSE_TEXTDLG" = "yes"; then
19509 cat >> confdefs.h <<\EOF
19510#define wxUSE_TEXTDLG 1
19511EOF
19512
19513fi
19514
b1f5d087
VZ
19515if test "$wxUSE_WIZARDDLG" = "yes"; then
19516 cat >> confdefs.h <<\EOF
19517#define wxUSE_WIZARDDLG 1
19518EOF
19519
19520 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
19521fi
19522
1e6feb95 19523
698dcdb6
VZ
19524if test "$cross_compiling" = "yes"; then
19525 OSINFO="\"$host\""
19526else
19527 OSINFO=`uname -s -r -m`
19528 OSINFO="\"$OSINFO\""
19529fi
19530
19531cat >> confdefs.h <<EOF
19532#define WXWIN_OS_DESCRIPTION $OSINFO
19533EOF
19534
19535
19536
06dda230
VZ
19537if test "x$prefix" != "xNONE"; then
19538 wxPREFIX=$prefix
19539else
19540 wxPREFIX=$ac_default_prefix
19541fi
19542
7e67ed0d 19543cat >> confdefs.h <<EOF
06dda230 19544#define wxINSTALL_PREFIX "$wxPREFIX"
7e67ed0d
VZ
19545EOF
19546
19547
19548
698dcdb6 19549
3a922bb4 19550
f11bdd03 19551if test "$wxUSE_MAC" = 1 ; then
3d63bc3a 19552 LDFLAGS="$LDFLAGS -framework Carbon -framework System"
698dcdb6 19553fi
3a922bb4 19554
3d63bc3a
RL
19555
19556LIBS="$ZLIB_LINK$POSIX4_LINK$INET_LINK$WCHAR_LINK$THREADS_LINK$DL_LINK -lm$LIBS"
19557
698dcdb6 19558if test "$wxUSE_GUI" = "yes"; then
3d63bc3a
RL
19559
19560 LIBS=" $GUI_TK_LIBRARY$PNG_LINK$JPEG_LINK$TIFF_LINK$FREETYPE_LINK$LIBS"
3a922bb4
RL
19561
19562
19563 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS controls dialogs \
19564 drawing dynamic erase event exec font image \
19565 minimal richedit rotate widgets"
19566
3a922bb4
RL
19567 CPPFLAGS="$CPPFLAGS \$(EXTRADEFS) \$(APPEXTRADEFS)"
19568else
19569 SAMPLES_SUBDIRS="console"
698dcdb6
VZ
19570fi
19571
698dcdb6 19572
d714471b 19573INCLUDES="-I\${top_builddir}/lib/wx/include/${TOOLCHAIN_NAME} -I\${top_srcdir}/include \
3e44f09d
VZ
19574$REGEX_INCLUDE $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE \
19575$FREETYPE_INCLUDE $TOOLKIT_INCLUDE"
698dcdb6 19576
63e7762e 19577if test "$wxUSE_GTK" = 1; then
3d63bc3a 19578 WXCONFIG_INCLUDE=
698dcdb6
VZ
19579else
19580 WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
19581fi
19582
19583if test "$GXX" = yes ; then
19584 CXXWARNINGS="-Wall"
88e30f2b
RL
19585
19586 if test "$wxUSE_NO_DEPS" = "no" ; then
19587 CFLAGS="-MMD $CFLAGS"
19588 CXXFLAGS="-MMD $CXXFLAGS"
19589 fi
19590fi
19591
1725144d 19592EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE $INCLUDES"
698dcdb6
VZ
19593
19594CFLAGS=`echo $CFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'`
19595CXXFLAGS=`echo $CXXFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \+/ /g'`
19596
3d63bc3a 19597LDFLAGS="$LDFLAGS$PROFILE"
698dcdb6 19598
698dcdb6
VZ
19599SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
19600
19601
19602
19603
19604
19605
19606
19607
19608
19609
19610
19611
19612
19613
19614
19615
19616
19617
19618
19619
19620
19621
19622
19623
19624
19625
19626
19627
19628
19629
19630
19631
19632
19633
19634
19635
19636
19637
19638
19639
19640
19641
19642
19643
19644
19645
19646
19647
19648
19649
19650
19651
19652
19653
19654
19655
19656
19657
19658
19659
19660
19661
19662
19663
19664
19665
19666
32832908 19667
2f51a9ec
GD
19668
19669
19670
19671
f6bcfd97 19672
dad6c0ea 19673
caa2c79b 19674
3711412e 19675
1e6feb95
VZ
19676
19677
885d4bf5
VS
19678
19679
19680
19681
62d0491b 19682
10f2d63a
VZ
19683
19684
698dcdb6 19685echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
4b6b4dfc 19686echo "configure:19687: checking whether ${MAKE-make} sets \${MAKE}" >&5
698dcdb6
VZ
19687set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
19688if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
19689 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 19690else
698dcdb6 19691 cat > conftestmake <<\EOF
10f2d63a
VZ
19692all:
19693 @echo 'ac_maketemp="${MAKE}"'
19694EOF
19695# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
698dcdb6 19696eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
10f2d63a
VZ
19697if test -n "$ac_maketemp"; then
19698 eval ac_cv_prog_make_${ac_make}_set=yes
19699else
19700 eval ac_cv_prog_make_${ac_make}_set=no
19701fi
698dcdb6 19702rm -f conftestmake
10f2d63a
VZ
19703fi
19704if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
698dcdb6 19705 echo "$ac_t""yes" 1>&6
10f2d63a
VZ
19706 SET_MAKE=
19707else
698dcdb6 19708 echo "$ac_t""no" 1>&6
10f2d63a
VZ
19709 SET_MAKE="MAKE=${MAKE-make}"
19710fi
19711
698dcdb6 19712
3a922bb4
RL
19713if test -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h; then
19714 mv -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h setup.h
00cf1208 19715fi
665bbe97 19716
698dcdb6 19717
10f2d63a 19718
2224580a 19719if test "$wxUSE_GUI" = "yes"; then
ec90f5e5 19720 wx_cv_path_samplesubdirs=$SAMPLES_SUBDIRS
e8482f24
GL
19721 wx_cv_path_ifs=$PATH_IFS
19722 wx_cv_program_ext=$PROGRAM_EXT
19723 wx_cv_target_library=$WX_TARGET_LIBRARY
7b6058cd 19724 wx_cv_target_library_gl=$WX_TARGET_LIBRARY_GL
3711412e 19725 wx_cv_target_libtype=$WX_TARGET_LIBRARY_TYPE
93a20a27 19726 export wx_cv_path_samplesubdirs wx_cv_path_ifs wx_cv_program_ext \
7b6058cd 19727 wx_cv_target_library wx_cv_target_library_gl wx_cv_target_libtype
698dcdb6 19728 subdirs="demos samples utils contrib"
2224580a
VZ
19729
19730fi
10f2d63a 19731
698dcdb6
VZ
19732trap '' 1 2 15
19733cat > confcache <<\EOF
10f2d63a
VZ
19734# This file is a shell script that caches the results of configure
19735# tests run on this system so they can be shared between configure
698dcdb6
VZ
19736# scripts and configure runs. It is not useful on other systems.
19737# If it contains results you don't want to keep, you may remove or edit it.
10f2d63a 19738#
698dcdb6
VZ
19739# By default, configure uses ./config.cache as the cache file,
19740# creating it if it does not exist already. You can give configure
19741# the --cache-file=FILE option to use a different cache file; that is
19742# what configure does when it calls configure scripts in
19743# subdirectories, so they share the cache.
19744# Giving --cache-file=/dev/null disables caching, for debugging configure.
19745# config.status only pays attention to the cache file if you give it the
19746# --recheck option to rerun configure.
10f2d63a 19747#
698dcdb6 19748EOF
10f2d63a
VZ
19749# The following way of writing the cache mishandles newlines in values,
19750# but we know of no workaround that is simple, portable, and efficient.
19751# So, don't put newlines in cache variables' values.
19752# Ultrix sh set writes to stderr and can't be redirected directly,
19753# and sets the high bit in the cache file unless we assign to the vars.
698dcdb6
VZ
19754(set) 2>&1 |
19755 case `(ac_space=' '; set | grep ac_space) 2>&1` in
19756 *ac_space=\ *)
19757 # `set' does not quote correctly, so add quotes (double-quote substitution
19758 # turns \\\\ into \\, and sed turns \\ into \).
19759 sed -n \
19760 -e "s/'/'\\\\''/g" \
19761 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
19762 ;;
19763 *)
19764 # `set' quotes correctly as required by POSIX, so do not add quotes.
19765 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
19766 ;;
19767 esac >> confcache
19768if cmp -s $cache_file confcache; then
19769 :
19770else
10f2d63a 19771 if test -w $cache_file; then
698dcdb6
VZ
19772 echo "updating cache $cache_file"
19773 cat confcache > $cache_file
10f2d63a
VZ
19774 else
19775 echo "not updating unwritable cache $cache_file"
19776 fi
19777fi
19778rm -f confcache
19779
698dcdb6
VZ
19780trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
19781
10f2d63a
VZ
19782test "x$prefix" = xNONE && prefix=$ac_default_prefix
19783# Let make expand exec_prefix.
19784test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19785
698dcdb6
VZ
19786# Any assignment to VPATH causes Sun make to only execute
19787# the first set of double-colon rules, so remove it if not needed.
19788# If there is a colon in the path, we need to keep it.
10f2d63a 19789if test "x$srcdir" = x.; then
698dcdb6 19790 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
10f2d63a
VZ
19791fi
19792
698dcdb6
VZ
19793trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
19794
10f2d63a
VZ
19795DEFS=-DHAVE_CONFIG_H
19796
698dcdb6 19797# Without the "./", some shells look in PATH for config.status.
10f2d63a 19798: ${CONFIG_STATUS=./config.status}
698dcdb6
VZ
19799
19800echo creating $CONFIG_STATUS
19801rm -f $CONFIG_STATUS
19802cat > $CONFIG_STATUS <<EOF
19803#! /bin/sh
10f2d63a
VZ
19804# Generated automatically by configure.
19805# Run this file to recreate the current configuration.
698dcdb6
VZ
19806# This directory was configured as follows,
19807# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19808#
19809# $0 $ac_configure_args
19810#
10f2d63a 19811# Compiler output produced by configure, useful for debugging
698dcdb6 19812# configure, is in ./config.log if it exists.
1e487827 19813
698dcdb6
VZ
19814ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
19815for ac_option
10f2d63a 19816do
698dcdb6 19817 case "\$ac_option" in
10f2d63a 19818 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
698dcdb6
VZ
19819 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
19820 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
19821 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
19822 echo "$CONFIG_STATUS generated by autoconf version 2.13"
19823 exit 0 ;;
19824 -help | --help | --hel | --he | --h)
19825 echo "\$ac_cs_usage"; exit 0 ;;
19826 *) echo "\$ac_cs_usage"; exit 1 ;;
10f2d63a
VZ
19827 esac
19828done
19829
698dcdb6
VZ
19830ac_given_srcdir=$srcdir
19831ac_given_INSTALL="$INSTALL"
703e0a69 19832
698dcdb6
VZ
19833trap 'rm -fr `echo "
19834 wx-config
19835 src/make.env
19836 src/makeprog.env
19837 src/makelib.env
19838 Makefile
19839 setup.h:setup.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1e487827 19840EOF
698dcdb6 19841cat >> $CONFIG_STATUS <<EOF
1e487827 19842
698dcdb6
VZ
19843# Protect against being on the right side of a sed subst in config.status.
19844sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
19845 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
19846$ac_vpsub
19847$extrasub
19848s%@SHELL@%$SHELL%g
19849s%@CFLAGS@%$CFLAGS%g
19850s%@CPPFLAGS@%$CPPFLAGS%g
19851s%@CXXFLAGS@%$CXXFLAGS%g
19852s%@FFLAGS@%$FFLAGS%g
19853s%@DEFS@%$DEFS%g
19854s%@LDFLAGS@%$LDFLAGS%g
19855s%@LIBS@%$LIBS%g
19856s%@exec_prefix@%$exec_prefix%g
19857s%@prefix@%$prefix%g
19858s%@program_transform_name@%$program_transform_name%g
19859s%@bindir@%$bindir%g
19860s%@sbindir@%$sbindir%g
19861s%@libexecdir@%$libexecdir%g
19862s%@datadir@%$datadir%g
19863s%@sysconfdir@%$sysconfdir%g
19864s%@sharedstatedir@%$sharedstatedir%g
19865s%@localstatedir@%$localstatedir%g
19866s%@libdir@%$libdir%g
19867s%@includedir@%$includedir%g
19868s%@oldincludedir@%$oldincludedir%g
19869s%@infodir@%$infodir%g
19870s%@mandir@%$mandir%g
19871s%@host@%$host%g
19872s%@host_alias@%$host_alias%g
19873s%@host_cpu@%$host_cpu%g
19874s%@host_vendor@%$host_vendor%g
19875s%@host_os@%$host_os%g
19876s%@target@%$target%g
19877s%@target_alias@%$target_alias%g
19878s%@target_cpu@%$target_cpu%g
19879s%@target_vendor@%$target_vendor%g
19880s%@target_os@%$target_os%g
19881s%@build@%$build%g
19882s%@build_alias@%$build_alias%g
19883s%@build_cpu@%$build_cpu%g
19884s%@build_vendor@%$build_vendor%g
19885s%@build_os@%$build_os%g
19886s%@CC@%$CC%g
19887s%@CPP@%$CPP%g
19888s%@CXX@%$CXX%g
698dcdb6
VZ
19889s%@RANLIB@%$RANLIB%g
19890s%@AR@%$AR%g
19891s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
d6853540 19892s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
6054113a 19893s%@INSTALL_DATA@%$INSTALL_DATA%g
698dcdb6
VZ
19894s%@STRIP@%$STRIP%g
19895s%@YACC@%$YACC%g
19896s%@LEX@%$LEX%g
19897s%@LEXLIB@%$LEXLIB%g
19898s%@LN_S@%$LN_S%g
19899s%@GTK_CONFIG_2_0@%$GTK_CONFIG_2_0%g
698dcdb6
VZ
19900s%@GTK_CFLAGS@%$GTK_CFLAGS%g
19901s%@GTK_LIBS@%$GTK_LIBS%g
8168de4c 19902s%@GTK_CONFIG@%$GTK_CONFIG%g
698dcdb6
VZ
19903s%@X_CFLAGS@%$X_CFLAGS%g
19904s%@X_PRE_LIBS@%$X_PRE_LIBS%g
19905s%@X_LIBS@%$X_LIBS%g
19906s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
3a922bb4 19907s%@RESCOMP@%$RESCOMP%g
698dcdb6 19908s%@DEREZ@%$DEREZ%g
3a922bb4 19909s%@CXXCPP@%$CXXCPP%g
698dcdb6
VZ
19910s%@LEX_STEM@%$LEX_STEM%g
19911s%@PATH_IFS@%$PATH_IFS%g
19912s%@WX_MAJOR_VERSION_NUMBER@%$WX_MAJOR_VERSION_NUMBER%g
19913s%@WX_MINOR_VERSION_NUMBER@%$WX_MINOR_VERSION_NUMBER%g
19914s%@WX_RELEASE_NUMBER@%$WX_RELEASE_NUMBER%g
698dcdb6
VZ
19915s%@WX_LIBRARY_NAME_STATIC@%$WX_LIBRARY_NAME_STATIC%g
19916s%@WX_LIBRARY_NAME_SHARED@%$WX_LIBRARY_NAME_SHARED%g
77e13408 19917s%@WX_LIBRARY_IMPORTLIB@%$WX_LIBRARY_IMPORTLIB%g
698dcdb6
VZ
19918s%@WX_TARGET_LIBRARY@%$WX_TARGET_LIBRARY%g
19919s%@WX_LIBRARY_LINK1@%$WX_LIBRARY_LINK1%g
19920s%@WX_LIBRARY_LINK2@%$WX_LIBRARY_LINK2%g
698dcdb6 19921s%@PROGRAM_EXT@%$PROGRAM_EXT%g
698dcdb6
VZ
19922s%@WX_LIBRARY_NAME_STATIC_GL@%$WX_LIBRARY_NAME_STATIC_GL%g
19923s%@WX_LIBRARY_NAME_SHARED_GL@%$WX_LIBRARY_NAME_SHARED_GL%g
698dcdb6
VZ
19924s%@WX_TARGET_LIBRARY_GL@%$WX_TARGET_LIBRARY_GL%g
19925s%@WX_LIBRARY_LINK1_GL@%$WX_LIBRARY_LINK1_GL%g
19926s%@WX_LIBRARY_LINK2_GL@%$WX_LIBRARY_LINK2_GL%g
698dcdb6
VZ
19927s%@WX_ALL@%$WX_ALL%g
19928s%@WX_ALL_INSTALLED@%$WX_ALL_INSTALLED%g
19929s%@SHARED_LD@%$SHARED_LD%g
19930s%@PIC_FLAG@%$PIC_FLAG%g
698dcdb6
VZ
19931s%@CODE_GEN_FLAGS@%$CODE_GEN_FLAGS%g
19932s%@CODE_GEN_FLAGS_CXX@%$CODE_GEN_FLAGS_CXX%g
3a922bb4
RL
19933s%@SONAME_FLAGS@%$SONAME_FLAGS%g
19934s%@SONAME_FLAGS_GL@%$SONAME_FLAGS_GL%g
698dcdb6
VZ
19935s%@WX_TARGET_LIBRARY_SONAME@%$WX_TARGET_LIBRARY_SONAME%g
19936s%@WX_TARGET_LIBRARY_TYPE@%$WX_TARGET_LIBRARY_TYPE%g
19937s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g
19938s%@USE_GUI@%$USE_GUI%g
19939s%@AFMINSTALL@%$AFMINSTALL%g
19940s%@TOOLKIT@%$TOOLKIT%g
698dcdb6 19941s%@TOOLKIT_DIR@%$TOOLKIT_DIR%g
1e6feb95 19942s%@TOOLKIT_VPATH@%$TOOLKIT_VPATH%g
3a922bb4
RL
19943s%@TOOLCHAIN_NAME@%$TOOLCHAIN_NAME%g
19944s%@TOOLCHAIN_DEFS@%$TOOLCHAIN_DEFS%g
00c81359 19945s%@TOOLCHAIN_DLL_DEFS@%$TOOLCHAIN_DLL_DEFS%g
3a922bb4
RL
19946s%@cross_compiling@%$cross_compiling%g
19947s%@WXCONFIG_LIBS@%$WXCONFIG_LIBS%g
19948s%@WXCONFIG_LIBS_GL@%$WXCONFIG_LIBS_GL%g
885d4bf5
VS
19949s%@WXCONFIG_LIBS_STATIC@%$WXCONFIG_LIBS_STATIC%g
19950s%@WXCONFIG_LIBS_STATIC_GL@%$WXCONFIG_LIBS_STATIC_GL%g
698dcdb6
VZ
19951s%@WXCONFIG_INCLUDE@%$WXCONFIG_INCLUDE%g
19952s%@ALL_OBJECTS@%$ALL_OBJECTS%g
698dcdb6
VZ
19953s%@GUIDIST@%$GUIDIST%g
19954s%@PORT_FILES@%$PORT_FILES%g
19955s%@DISTDIR@%$DISTDIR%g
698dcdb6 19956s%@SAMPLES_SUBDIRS@%$SAMPLES_SUBDIRS%g
62d0491b 19957s%@LDFLAGS_GL@%$LDFLAGS_GL%g
698dcdb6 19958s%@OPENGL_LIBS@%$OPENGL_LIBS%g
3d63bc3a 19959s%@DMALLOC_LIBS@%$DMALLOC_LIBS%g
698dcdb6 19960s%@EXTRADEFS@%$EXTRADEFS%g
698dcdb6 19961s%@RESFLAGS@%$RESFLAGS%g
3a922bb4 19962s%@RESPROGRAMOBJ@%$RESPROGRAMOBJ%g
d08b457b 19963s%@WX_RESOURCES_MACOSX@%$WX_RESOURCES_MACOSX%g
e23081de 19964s%@WX_RESOURCES_MACOSX_COMPILED@%$WX_RESOURCES_MACOSX_COMPILED%g
698dcdb6
VZ
19965s%@LIBWXMACRES@%$LIBWXMACRES%g
19966s%@LIBWXMACRESCOMP@%$LIBWXMACRESCOMP%g
2baaf735 19967s%@LIBWXMACRESWXCONFIG@%$LIBWXMACRESWXCONFIG%g
698dcdb6
VZ
19968s%@DLLTOOL@%$DLLTOOL%g
19969s%@AS@%$AS%g
19970s%@NM@%$NM%g
19971s%@LD@%$LD%g
19972s%@MAKEINFO@%$MAKEINFO%g
885d4bf5 19973s%@INSTALL_LIBRARY@%$INSTALL_LIBRARY%g
698dcdb6
VZ
19974s%@SET_MAKE@%$SET_MAKE%g
19975s%@subdirs@%$subdirs%g
1e487827 19976
1e487827 19977CEOF
1e487827
VS
19978EOF
19979
698dcdb6
VZ
19980cat >> $CONFIG_STATUS <<\EOF
19981
19982# Split the substitutions into bite-sized pieces for seds with
19983# small command number limits, like on Digital OSF/1 and HP-UX.
19984ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
19985ac_file=1 # Number of current file.
19986ac_beg=1 # First line for current file.
19987ac_end=$ac_max_sed_cmds # Line after last line for current file.
19988ac_more_lines=:
19989ac_sed_cmds=""
19990while $ac_more_lines; do
19991 if test $ac_beg -gt 1; then
19992 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
19993 else
19994 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
19995 fi
19996 if test ! -s conftest.s$ac_file; then
19997 ac_more_lines=false
19998 rm -f conftest.s$ac_file
19999 else
20000 if test -z "$ac_sed_cmds"; then
20001 ac_sed_cmds="sed -f conftest.s$ac_file"
10f2d63a 20002 else
698dcdb6 20003 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
10f2d63a 20004 fi
698dcdb6
VZ
20005 ac_file=`expr $ac_file + 1`
20006 ac_beg=$ac_end
20007 ac_end=`expr $ac_end + $ac_max_sed_cmds`
10f2d63a 20008 fi
698dcdb6
VZ
20009done
20010if test -z "$ac_sed_cmds"; then
20011 ac_sed_cmds=cat
20012fi
20013EOF
10f2d63a 20014
698dcdb6
VZ
20015cat >> $CONFIG_STATUS <<EOF
20016
20017CONFIG_FILES=\${CONFIG_FILES-"wx-config
20018 src/make.env
20019 src/makeprog.env
20020 src/makelib.env
20021 Makefile
20022 "}
10f2d63a 20023EOF
698dcdb6
VZ
20024cat >> $CONFIG_STATUS <<\EOF
20025for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
10f2d63a 20026 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
698dcdb6
VZ
20027 case "$ac_file" in
20028 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
20029 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
20030 *) ac_file_in="${ac_file}.in" ;;
10f2d63a
VZ
20031 esac
20032
698dcdb6 20033 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
1e487827 20034
698dcdb6
VZ
20035 # Remove last slash and all that follows it. Not all systems have dirname.
20036 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
20037 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
20038 # The file is in a subdirectory.
20039 test ! -d "$ac_dir" && mkdir "$ac_dir"
20040 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
10f2d63a 20041 # A "../" for each directory in $ac_dir_suffix.
698dcdb6 20042 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
10f2d63a
VZ
20043 else
20044 ac_dir_suffix= ac_dots=
20045 fi
20046
698dcdb6
VZ
20047 case "$ac_given_srcdir" in
20048 .) srcdir=.
20049 if test -z "$ac_dots"; then top_srcdir=.
20050 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
20051 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
10f2d63a 20052 *) # Relative path.
698dcdb6
VZ
20053 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
20054 top_srcdir="$ac_dots$ac_given_srcdir" ;;
10f2d63a
VZ
20055 esac
20056
698dcdb6
VZ
20057 case "$ac_given_INSTALL" in
20058 [/$]*) INSTALL="$ac_given_INSTALL" ;;
20059 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
10f2d63a
VZ
20060 esac
20061
698dcdb6
VZ
20062 echo creating "$ac_file"
20063 rm -f "$ac_file"
20064 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
20065 case "$ac_file" in
20066 *Makefile*) ac_comsub="1i\\
20067# $configure_input" ;;
20068 *) ac_comsub= ;;
20069 esac
10f2d63a 20070
698dcdb6
VZ
20071 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
20072 sed -e "$ac_comsub
20073s%@configure_input@%$configure_input%g
20074s%@srcdir@%$srcdir%g
20075s%@top_srcdir@%$top_srcdir%g
20076s%@INSTALL@%$INSTALL%g
20077" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
20078fi; done
20079rm -f conftest.s*
10f2d63a
VZ
20080
20081# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
20082# NAME is the cpp macro being defined and VALUE is the value it is being given.
20083#
20084# ac_d sets the value in "#define NAME VALUE" lines.
698dcdb6
VZ
20085ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
20086ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
20087ac_dC='\3'
20088ac_dD='%g'
20089# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
20090ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
20091ac_uB='\([ ]\)%\1#\2define\3'
10f2d63a 20092ac_uC=' '
698dcdb6
VZ
20093ac_uD='\4%g'
20094# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
20095ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
20096ac_eB='$%\1#\2define\3'
20097ac_eC=' '
20098ac_eD='%g'
10f2d63a 20099
698dcdb6
VZ
20100if test "${CONFIG_HEADERS+set}" != set; then
20101EOF
20102cat >> $CONFIG_STATUS <<EOF
20103 CONFIG_HEADERS="setup.h:setup.h.in"
20104EOF
20105cat >> $CONFIG_STATUS <<\EOF
20106fi
20107for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
10f2d63a 20108 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
698dcdb6
VZ
20109 case "$ac_file" in
20110 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
20111 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
20112 *) ac_file_in="${ac_file}.in" ;;
10f2d63a
VZ
20113 esac
20114
698dcdb6
VZ
20115 echo creating $ac_file
20116
20117 rm -f conftest.frag conftest.in conftest.out
20118 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
20119 cat $ac_file_inputs > conftest.in
20120
20121EOF
20122
20123# Transform confdefs.h into a sed script conftest.vals that substitutes
20124# the proper values into config.h.in to produce config.h. And first:
20125# Protect against being on the right side of a sed subst in config.status.
20126# Protect against being in an unquoted here document in config.status.
20127rm -f conftest.vals
20128cat > conftest.hdr <<\EOF
20129s/[\\&%]/\\&/g
20130s%[\\$`]%\\&%g
20131s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
20132s%ac_d%ac_u%gp
20133s%ac_u%ac_e%gp
20134EOF
20135sed -n -f conftest.hdr confdefs.h > conftest.vals
20136rm -f conftest.hdr
10f2d63a
VZ
20137
20138# This sed command replaces #undef with comments. This is necessary, for
20139# example, in the case of _POSIX_SOURCE, which is predefined and required
20140# on some systems where configure will not decide to define it.
698dcdb6
VZ
20141cat >> conftest.vals <<\EOF
20142s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
10f2d63a
VZ
20143EOF
20144
698dcdb6
VZ
20145# Break up conftest.vals because some shells have a limit on
20146# the size of here documents, and old seds have small limits too.
10f2d63a
VZ
20147
20148rm -f conftest.tail
698dcdb6 20149while :
10f2d63a 20150do
698dcdb6
VZ
20151 ac_lines=`grep -c . conftest.vals`
20152 # grep -c gives empty output for an empty file on some AIX systems.
20153 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
20154 # Write a limited-size here document to conftest.frag.
20155 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
20156 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
10f2d63a 20157 echo 'CEOF
698dcdb6
VZ
20158 sed -f conftest.frag conftest.in > conftest.out
20159 rm -f conftest.in
20160 mv conftest.out conftest.in
20161' >> $CONFIG_STATUS
20162 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
20163 rm -f conftest.vals
20164 mv conftest.tail conftest.vals
10f2d63a 20165done
698dcdb6
VZ
20166rm -f conftest.vals
20167
20168cat >> $CONFIG_STATUS <<\EOF
20169 rm -f conftest.frag conftest.h
20170 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
20171 cat conftest.in >> conftest.h
20172 rm -f conftest.in
20173 if cmp -s $ac_file conftest.h 2>/dev/null; then
20174 echo "$ac_file is unchanged"
20175 rm -f conftest.h
10f2d63a 20176 else
698dcdb6
VZ
20177 # Remove last slash and all that follows it. Not all systems have dirname.
20178 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
10f2d63a 20179 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
698dcdb6
VZ
20180 # The file is in a subdirectory.
20181 test ! -d "$ac_dir" && mkdir "$ac_dir"
10f2d63a 20182 fi
698dcdb6
VZ
20183 rm -f $ac_file
20184 mv conftest.h $ac_file
10f2d63a 20185 fi
698dcdb6
VZ
20186fi; done
20187
10f2d63a 20188EOF
698dcdb6 20189cat >> $CONFIG_STATUS <<EOF
10f2d63a 20190
3a922bb4 20191 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}"
698dcdb6
VZ
20192 LN_S="${LN_S}"
20193
20194
20195EOF
20196cat >> $CONFIG_STATUS <<\EOF
10f2d63a 20197
652d930d 20198 if test ! -h wx-config; then
991a5759 20199 chmod +x wx-config
3a922bb4
RL
20200 mv wx-config wx${TOOLCHAIN_NAME}-config
20201 ${LN_S} wx${TOOLCHAIN_NAME}-config wx-config
991a5759 20202 fi
665bbe97 20203
00cf1208
RR
20204 if test ! -d lib; then
20205 mkdir lib
20206 fi
20207 if test ! -d lib/wx; then
20208 mkdir lib/wx
20209 fi
20210 if test ! -d lib/wx/include; then
20211 mkdir lib/wx/include
20212 fi
3a922bb4
RL
20213 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}; then
20214 mkdir lib/wx/include/${TOOLCHAIN_NAME}
00cf1208 20215 fi
3a922bb4
RL
20216 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}/wx; then
20217 mkdir lib/wx/include/${TOOLCHAIN_NAME}/wx
00cf1208
RR
20218 fi
20219 if test -f setup.h; then
3a922bb4 20220 mv -f setup.h lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h
00cf1208 20221 fi
698dcdb6
VZ
20222
20223exit 0
10f2d63a
VZ
20224EOF
20225chmod +x $CONFIG_STATUS
698dcdb6
VZ
20226rm -fr confdefs* $ac_clean_files
20227test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
10f2d63a 20228
2224580a
VZ
20229if test "$no_recursion" != yes; then
20230
20231 # Remove --cache-file and --srcdir arguments so they do not pile up.
20232 ac_sub_configure_args=
20233 ac_prev=
20234 for ac_arg in $ac_configure_args; do
20235 if test -n "$ac_prev"; then
20236 ac_prev=
20237 continue
20238 fi
698dcdb6 20239 case "$ac_arg" in
2224580a
VZ
20240 -cache-file | --cache-file | --cache-fil | --cache-fi \
20241 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
20242 ac_prev=cache_file ;;
20243 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
698dcdb6 20244 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
2224580a
VZ
20245 ;;
20246 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
20247 ac_prev=srcdir ;;
20248 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
20249 ;;
20250 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
20251 esac
20252 done
20253
698dcdb6 20254 for ac_config_dir in demos samples utils contrib; do
2224580a
VZ
20255
20256 # Do not complain, so a configure script can configure whichever
20257 # parts of a large source tree are present.
698dcdb6
VZ
20258 if test ! -d $srcdir/$ac_config_dir; then
20259 continue
20260 fi
20261
20262 echo configuring in $ac_config_dir
2224580a 20263
698dcdb6 20264 case "$srcdir" in
2224580a
VZ
20265 .) ;;
20266 *)
698dcdb6
VZ
20267 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
20268 else
20269 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
20270 fi
20271 ;;
2224580a
VZ
20272 esac
20273
20274 ac_popdir=`pwd`
698dcdb6 20275 cd $ac_config_dir
2224580a 20276
698dcdb6
VZ
20277 # A "../" for each directory in /$ac_config_dir.
20278 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
2224580a 20279
698dcdb6 20280 case "$srcdir" in
2224580a
VZ
20281 .) # No --srcdir option. We are building in place.
20282 ac_sub_srcdir=$srcdir ;;
698dcdb6
VZ
20283 /*) # Absolute path.
20284 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
2224580a 20285 *) # Relative path.
698dcdb6 20286 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
2224580a
VZ
20287 esac
20288
20289 # Check for guested configure; otherwise get Cygnus style configure.
698dcdb6
VZ
20290 if test -f $ac_sub_srcdir/configure; then
20291 ac_sub_configure=$ac_sub_srcdir/configure
2224580a
VZ
20292 elif test -f $ac_sub_srcdir/configure.in; then
20293 ac_sub_configure=$ac_configure
20294 else
698dcdb6 20295 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
2224580a
VZ
20296 ac_sub_configure=
20297 fi
20298
20299 # The recursion is here.
20300 if test -n "$ac_sub_configure"; then
698dcdb6 20301
2224580a 20302 # Make the cache file name correct relative to the subdirectory.
698dcdb6
VZ
20303 case "$cache_file" in
20304 /*) ac_sub_cache_file=$cache_file ;;
2224580a 20305 *) # Relative path.
698dcdb6 20306 ac_sub_cache_file="$ac_dots$cache_file" ;;
2224580a 20307 esac
698dcdb6
VZ
20308 case "$ac_given_INSTALL" in
20309 [/$]*) INSTALL="$ac_given_INSTALL" ;;
20310 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
20311 esac
2224580a 20312
698dcdb6 20313 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
2224580a 20314 # The eval makes quoting arguments work.
698dcdb6
VZ
20315 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
20316 then :
20317 else
20318 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
20319 fi
2224580a
VZ
20320 fi
20321
20322 cd $ac_popdir
20323 done
20324fi
20325
698dcdb6 20326