]> git.saurik.com Git - wxWidgets.git/blame - configure
made sure the alignment for the non-carbon fake list def resource is always 68k
[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)"
698dcdb6 393ac_help="$ac_help
8168de4c 394 --enable-pnm use pnm images (PNM file format)"
698dcdb6 395ac_help="$ac_help
8168de4c 396 --enable-xpm use xpm images (XPM file format)"
698dcdb6
VZ
397ac_help="$ac_help
398 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)"
399ac_help="$ac_help
400 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)"
401ac_help="$ac_help
402 --disable-gtktest Do not try to compile and run a test GTK program"
3f345b47
VZ
403ac_help="$ac_help
404 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)"
405ac_help="$ac_help
406 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)"
407ac_help="$ac_help
408 --disable-gtktest Do not try to compile and run a test GTK program"
409ac_help="$ac_help
410 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)"
411ac_help="$ac_help
412 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)"
413ac_help="$ac_help
414 --disable-gtktest Do not try to compile and run a test GTK program"
698dcdb6
VZ
415ac_help="$ac_help
416 --with-x use the X Window System"
10f2d63a
VZ
417
418# Initialize some variables set by options.
419# The variables have the same names as the options, with
420# dashes changed to underlines.
698dcdb6
VZ
421build=NONE
422cache_file=./config.cache
10f2d63a 423exec_prefix=NONE
698dcdb6 424host=NONE
10f2d63a 425no_create=
698dcdb6 426nonopt=NONE
10f2d63a
VZ
427no_recursion=
428prefix=NONE
429program_prefix=NONE
430program_suffix=NONE
431program_transform_name=s,x,x,
432silent=
433site=
434srcdir=
698dcdb6 435target=NONE
10f2d63a
VZ
436verbose=
437x_includes=NONE
438x_libraries=NONE
439bindir='${exec_prefix}/bin'
440sbindir='${exec_prefix}/sbin'
441libexecdir='${exec_prefix}/libexec'
442datadir='${prefix}/share'
443sysconfdir='${prefix}/etc'
444sharedstatedir='${prefix}/com'
445localstatedir='${prefix}/var'
446libdir='${exec_prefix}/lib'
447includedir='${prefix}/include'
448oldincludedir='/usr/include'
449infodir='${prefix}/info'
450mandir='${prefix}/man'
451
698dcdb6
VZ
452# Initialize some other variables.
453subdirs=
454MFLAGS= MAKEFLAGS=
455SHELL=${CONFIG_SHELL-/bin/sh}
456# Maximum number of lines to put in a shell here document.
457ac_max_here_lines=12
10f2d63a
VZ
458
459ac_prev=
460for ac_option
461do
698dcdb6 462
10f2d63a
VZ
463 # If the previous option needs an argument, assign it.
464 if test -n "$ac_prev"; then
465 eval "$ac_prev=\$ac_option"
466 ac_prev=
467 continue
468 fi
469
698dcdb6
VZ
470 case "$ac_option" in
471 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
472 *) ac_optarg= ;;
473 esac
10f2d63a
VZ
474
475 # Accept the important Cygnus configure options, so we can diagnose typos.
476
698dcdb6 477 case "$ac_option" in
10f2d63a
VZ
478
479 -bindir | --bindir | --bindi | --bind | --bin | --bi)
480 ac_prev=bindir ;;
481 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
698dcdb6 482 bindir="$ac_optarg" ;;
10f2d63a
VZ
483
484 -build | --build | --buil | --bui | --bu)
698dcdb6 485 ac_prev=build ;;
10f2d63a 486 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
698dcdb6 487 build="$ac_optarg" ;;
10f2d63a
VZ
488
489 -cache-file | --cache-file | --cache-fil | --cache-fi \
490 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
491 ac_prev=cache_file ;;
492 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
493 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
698dcdb6 494 cache_file="$ac_optarg" ;;
10f2d63a
VZ
495
496 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
497 ac_prev=datadir ;;
498 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
499 | --da=*)
698dcdb6 500 datadir="$ac_optarg" ;;
10f2d63a
VZ
501
502 -disable-* | --disable-*)
698dcdb6 503 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
10f2d63a 504 # Reject names that are not valid shell variable names.
698dcdb6
VZ
505 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
506 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
507 fi
508 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
509 eval "enable_${ac_feature}=no" ;;
10f2d63a
VZ
510
511 -enable-* | --enable-*)
698dcdb6 512 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
10f2d63a 513 # Reject names that are not valid shell variable names.
698dcdb6
VZ
514 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
515 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
516 fi
517 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
518 case "$ac_option" in
519 *=*) ;;
10f2d63a
VZ
520 *) ac_optarg=yes ;;
521 esac
698dcdb6 522 eval "enable_${ac_feature}='$ac_optarg'" ;;
10f2d63a
VZ
523
524 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
525 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
526 | --exec | --exe | --ex)
527 ac_prev=exec_prefix ;;
528 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
529 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
530 | --exec=* | --exe=* | --ex=*)
698dcdb6 531 exec_prefix="$ac_optarg" ;;
10f2d63a
VZ
532
533 -gas | --gas | --ga | --g)
534 # Obsolete; use --with-gas.
535 with_gas=yes ;;
536
698dcdb6
VZ
537 -help | --help | --hel | --he)
538 # Omit some internal or obsolete options to make the list less imposing.
539 # This message is too long to be a string in the A/UX 3.1 sh.
540 cat << EOF
541Usage: configure [options] [host]
542Options: [defaults in brackets after descriptions]
543Configuration:
544 --cache-file=FILE cache test results in FILE
545 --help print this message
546 --no-create do not create output files
547 --quiet, --silent do not print \`checking...' messages
548 --version print the version of autoconf that created configure
549Directory and file names:
550 --prefix=PREFIX install architecture-independent files in PREFIX
551 [$ac_default_prefix]
552 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
553 [same as prefix]
554 --bindir=DIR user executables in DIR [EPREFIX/bin]
555 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
556 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
557 --datadir=DIR read-only architecture-independent data in DIR
558 [PREFIX/share]
559 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
560 --sharedstatedir=DIR modifiable architecture-independent data in DIR
561 [PREFIX/com]
562 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
563 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
564 --includedir=DIR C header files in DIR [PREFIX/include]
565 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
566 --infodir=DIR info documentation in DIR [PREFIX/info]
567 --mandir=DIR man documentation in DIR [PREFIX/man]
568 --srcdir=DIR find the sources in DIR [configure dir or ..]
569 --program-prefix=PREFIX prepend PREFIX to installed program names
570 --program-suffix=SUFFIX append SUFFIX to installed program names
571 --program-transform-name=PROGRAM
572 run sed PROGRAM on installed program names
573EOF
574 cat << EOF
575Host type:
576 --build=BUILD configure for building on BUILD [BUILD=HOST]
577 --host=HOST configure for HOST [guessed]
578 --target=TARGET configure for TARGET [TARGET=HOST]
579Features and packages:
580 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
581 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
582 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
583 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
584 --x-includes=DIR X include files are in DIR
585 --x-libraries=DIR X library files are in DIR
586EOF
587 if test -n "$ac_help"; then
588 echo "--enable and --with options recognized:$ac_help"
589 fi
590 exit 0 ;;
10f2d63a
VZ
591
592 -host | --host | --hos | --ho)
698dcdb6 593 ac_prev=host ;;
10f2d63a 594 -host=* | --host=* | --hos=* | --ho=*)
698dcdb6 595 host="$ac_optarg" ;;
10f2d63a
VZ
596
597 -includedir | --includedir | --includedi | --included | --include \
598 | --includ | --inclu | --incl | --inc)
599 ac_prev=includedir ;;
600 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
601 | --includ=* | --inclu=* | --incl=* | --inc=*)
698dcdb6 602 includedir="$ac_optarg" ;;
10f2d63a
VZ
603
604 -infodir | --infodir | --infodi | --infod | --info | --inf)
605 ac_prev=infodir ;;
606 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
698dcdb6 607 infodir="$ac_optarg" ;;
10f2d63a
VZ
608
609 -libdir | --libdir | --libdi | --libd)
610 ac_prev=libdir ;;
611 -libdir=* | --libdir=* | --libdi=* | --libd=*)
698dcdb6 612 libdir="$ac_optarg" ;;
10f2d63a
VZ
613
614 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
615 | --libexe | --libex | --libe)
616 ac_prev=libexecdir ;;
617 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
618 | --libexe=* | --libex=* | --libe=*)
698dcdb6 619 libexecdir="$ac_optarg" ;;
10f2d63a
VZ
620
621 -localstatedir | --localstatedir | --localstatedi | --localstated \
622 | --localstate | --localstat | --localsta | --localst \
623 | --locals | --local | --loca | --loc | --lo)
624 ac_prev=localstatedir ;;
625 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
626 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
627 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
698dcdb6 628 localstatedir="$ac_optarg" ;;
10f2d63a
VZ
629
630 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
631 ac_prev=mandir ;;
632 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
698dcdb6 633 mandir="$ac_optarg" ;;
10f2d63a
VZ
634
635 -nfp | --nfp | --nf)
636 # Obsolete; use --without-fp.
637 with_fp=no ;;
638
639 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
640 | --no-cr | --no-c)
641 no_create=yes ;;
642
643 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
644 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
645 no_recursion=yes ;;
646
647 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
648 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
649 | --oldin | --oldi | --old | --ol | --o)
650 ac_prev=oldincludedir ;;
651 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
652 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
653 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
698dcdb6 654 oldincludedir="$ac_optarg" ;;
10f2d63a
VZ
655
656 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
657 ac_prev=prefix ;;
658 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
698dcdb6 659 prefix="$ac_optarg" ;;
10f2d63a
VZ
660
661 -program-prefix | --program-prefix | --program-prefi | --program-pref \
662 | --program-pre | --program-pr | --program-p)
663 ac_prev=program_prefix ;;
664 -program-prefix=* | --program-prefix=* | --program-prefi=* \
665 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
698dcdb6 666 program_prefix="$ac_optarg" ;;
10f2d63a
VZ
667
668 -program-suffix | --program-suffix | --program-suffi | --program-suff \
669 | --program-suf | --program-su | --program-s)
670 ac_prev=program_suffix ;;
671 -program-suffix=* | --program-suffix=* | --program-suffi=* \
672 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
698dcdb6 673 program_suffix="$ac_optarg" ;;
10f2d63a
VZ
674
675 -program-transform-name | --program-transform-name \
676 | --program-transform-nam | --program-transform-na \
677 | --program-transform-n | --program-transform- \
678 | --program-transform | --program-transfor \
679 | --program-transfo | --program-transf \
680 | --program-trans | --program-tran \
681 | --progr-tra | --program-tr | --program-t)
682 ac_prev=program_transform_name ;;
683 -program-transform-name=* | --program-transform-name=* \
684 | --program-transform-nam=* | --program-transform-na=* \
685 | --program-transform-n=* | --program-transform-=* \
686 | --program-transform=* | --program-transfor=* \
687 | --program-transfo=* | --program-transf=* \
688 | --program-trans=* | --program-tran=* \
689 | --progr-tra=* | --program-tr=* | --program-t=*)
698dcdb6 690 program_transform_name="$ac_optarg" ;;
10f2d63a
VZ
691
692 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
693 | -silent | --silent | --silen | --sile | --sil)
694 silent=yes ;;
695
696 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
697 ac_prev=sbindir ;;
698 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
699 | --sbi=* | --sb=*)
698dcdb6 700 sbindir="$ac_optarg" ;;
10f2d63a
VZ
701
702 -sharedstatedir | --sharedstatedir | --sharedstatedi \
703 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
704 | --sharedst | --shareds | --shared | --share | --shar \
705 | --sha | --sh)
706 ac_prev=sharedstatedir ;;
707 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
708 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
709 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
710 | --sha=* | --sh=*)
698dcdb6 711 sharedstatedir="$ac_optarg" ;;
10f2d63a
VZ
712
713 -site | --site | --sit)
714 ac_prev=site ;;
715 -site=* | --site=* | --sit=*)
698dcdb6 716 site="$ac_optarg" ;;
10f2d63a
VZ
717
718 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
719 ac_prev=srcdir ;;
720 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
698dcdb6 721 srcdir="$ac_optarg" ;;
10f2d63a
VZ
722
723 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
724 | --syscon | --sysco | --sysc | --sys | --sy)
725 ac_prev=sysconfdir ;;
726 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
727 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
698dcdb6 728 sysconfdir="$ac_optarg" ;;
10f2d63a
VZ
729
730 -target | --target | --targe | --targ | --tar | --ta | --t)
698dcdb6 731 ac_prev=target ;;
10f2d63a 732 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
698dcdb6 733 target="$ac_optarg" ;;
10f2d63a
VZ
734
735 -v | -verbose | --verbose | --verbos | --verbo | --verb)
736 verbose=yes ;;
737
698dcdb6
VZ
738 -version | --version | --versio | --versi | --vers)
739 echo "configure generated by autoconf version 2.13"
740 exit 0 ;;
10f2d63a
VZ
741
742 -with-* | --with-*)
698dcdb6 743 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
10f2d63a 744 # Reject names that are not valid shell variable names.
698dcdb6
VZ
745 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
746 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
747 fi
10f2d63a 748 ac_package=`echo $ac_package| sed 's/-/_/g'`
698dcdb6
VZ
749 case "$ac_option" in
750 *=*) ;;
10f2d63a
VZ
751 *) ac_optarg=yes ;;
752 esac
698dcdb6 753 eval "with_${ac_package}='$ac_optarg'" ;;
10f2d63a
VZ
754
755 -without-* | --without-*)
698dcdb6 756 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
10f2d63a 757 # Reject names that are not valid shell variable names.
698dcdb6
VZ
758 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
759 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
760 fi
761 ac_package=`echo $ac_package| sed 's/-/_/g'`
762 eval "with_${ac_package}=no" ;;
10f2d63a
VZ
763
764 --x)
765 # Obsolete; use --with-x.
766 with_x=yes ;;
767
768 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
769 | --x-incl | --x-inc | --x-in | --x-i)
770 ac_prev=x_includes ;;
771 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
772 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
698dcdb6 773 x_includes="$ac_optarg" ;;
10f2d63a
VZ
774
775 -x-libraries | --x-libraries | --x-librarie | --x-librari \
776 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
777 ac_prev=x_libraries ;;
778 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
779 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
698dcdb6 780 x_libraries="$ac_optarg" ;;
10f2d63a 781
698dcdb6 782 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
10f2d63a
VZ
783 ;;
784
785 *)
698dcdb6
VZ
786 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
787 echo "configure: warning: $ac_option: invalid host type" 1>&2
788 fi
789 if test "x$nonopt" != xNONE; then
790 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
791 fi
792 nonopt="$ac_option"
10f2d63a
VZ
793 ;;
794
795 esac
796done
797
798if test -n "$ac_prev"; then
698dcdb6
VZ
799 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
800fi
801
802trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
803
804# File descriptor usage:
805# 0 standard input
806# 1 file creation
807# 2 errors and warnings
808# 3 some systems may open it to /dev/tty
809# 4 used on the Kubota Titan
810# 6 checking for... messages and results
811# 5 compiler messages saved in config.log
812if test "$silent" = yes; then
813 exec 6>/dev/null
814else
815 exec 6>&1
10f2d63a 816fi
698dcdb6
VZ
817exec 5>./config.log
818
819echo "\
820This file contains any messages produced by compilers while
821running configure, to aid debugging if configure makes a mistake.
822" 1>&5
10f2d63a 823
698dcdb6
VZ
824# Strip out --no-create and --no-recursion so they do not pile up.
825# Also quote any args containing shell metacharacters.
826ac_configure_args=
827for ac_arg
10f2d63a 828do
698dcdb6
VZ
829 case "$ac_arg" in
830 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
831 | --no-cr | --no-c) ;;
832 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
833 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
834 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
835 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
836 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
10f2d63a
VZ
837 esac
838done
839
698dcdb6
VZ
840# NLS nuisances.
841# Only set these to C if already set. These must not be set unconditionally
842# because not all systems understand e.g. LANG=C (notably SCO).
843# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
844# Non-C LC_CTYPE values break the ctype check.
845if test "${LANG+set}" = set; then LANG=C; export LANG; fi
846if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
847if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
848if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
10f2d63a 849
698dcdb6
VZ
850# confdefs.h avoids OS command line length limits that DEFS can exceed.
851rm -rf conftest* confdefs.h
852# AIX cpp loses on an empty file, so make sure it contains at least a newline.
853echo > confdefs.h
10f2d63a 854
698dcdb6
VZ
855# A filename unique to this package, relative to the directory that
856# configure is in, which we can look for to find out if srcdir is correct.
857ac_unique_file=wx-config.in
10f2d63a
VZ
858
859# Find the source files, if location was not specified.
860if test -z "$srcdir"; then
861 ac_srcdir_defaulted=yes
862 # Try the directory containing this script, then its parent.
863 ac_prog=$0
698dcdb6 864 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
10f2d63a
VZ
865 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
866 srcdir=$ac_confdir
867 if test ! -r $srcdir/$ac_unique_file; then
868 srcdir=..
869 fi
870else
871 ac_srcdir_defaulted=no
872fi
873if test ! -r $srcdir/$ac_unique_file; then
874 if test "$ac_srcdir_defaulted" = yes; then
698dcdb6 875 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
10f2d63a 876 else
698dcdb6 877 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
10f2d63a
VZ
878 fi
879fi
698dcdb6 880srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
10f2d63a
VZ
881
882# Prefer explicitly selected file to automatically selected ones.
883if test -z "$CONFIG_SITE"; then
884 if test "x$prefix" != xNONE; then
885 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
886 else
887 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
888 fi
889fi
890for ac_site_file in $CONFIG_SITE; do
891 if test -r "$ac_site_file"; then
698dcdb6 892 echo "loading site script $ac_site_file"
10f2d63a
VZ
893 . "$ac_site_file"
894 fi
895done
896
897if test -r "$cache_file"; then
698dcdb6
VZ
898 echo "loading cache $cache_file"
899 . $cache_file
10f2d63a 900else
698dcdb6
VZ
901 echo "creating cache $cache_file"
902 > $cache_file
10f2d63a
VZ
903fi
904
905ac_ext=c
698dcdb6 906# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10f2d63a 907ac_cpp='$CPP $CPPFLAGS'
698dcdb6
VZ
908ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
909ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
910cross_compiling=$ac_cv_prog_cc_cross
911
912ac_exeext=
913ac_objext=o
914if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
915 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
916 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
917 ac_n= ac_c='
918' ac_t=' '
919 else
920 ac_n=-n ac_c= ac_t=
921 fi
10f2d63a 922else
698dcdb6 923 ac_n= ac_c='\c' ac_t=
10f2d63a 924fi
698dcdb6
VZ
925
926
10f2d63a 927
7c66a493
VZ
928ac_aux_dir=
929for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
930 if test -f $ac_dir/install-sh; then
931 ac_aux_dir=$ac_dir
932 ac_install_sh="$ac_aux_dir/install-sh -c"
933 break
934 elif 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 fi
939done
940if test -z "$ac_aux_dir"; then
698dcdb6 941 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
7c66a493 942fi
698dcdb6
VZ
943ac_config_guess=$ac_aux_dir/config.guess
944ac_config_sub=$ac_aux_dir/config.sub
945ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
703e0a69 946
698dcdb6
VZ
947
948# Do some error checking and defaulting for the host and target type.
949# The inputs are:
950# configure --host=HOST --target=TARGET --build=BUILD NONOPT
951#
952# The rules are:
953# 1. You are not allowed to specify --host, --target, and nonopt at the
954# same time.
955# 2. Host defaults to nonopt.
956# 3. If nonopt is not specified, then host defaults to the current host,
957# as determined by config.guess.
958# 4. Target and build default to nonopt.
959# 5. If nonopt is not specified, then target and build default to host.
7c66a493
VZ
960
961# The aliases save the names the user supplied, while $host etc.
962# will get canonicalized.
698dcdb6
VZ
963case $host---$target---$nonopt in
964NONE---*---* | *---NONE---* | *---*---NONE) ;;
965*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
966esac
967
968
969# Make sure we can run config.sub.
970if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
971else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
972fi
973
974echo $ac_n "checking host system type""... $ac_c" 1>&6
4cdb0ab0 975echo "configure:976: checking host system type" >&5
698dcdb6
VZ
976
977host_alias=$host
978case "$host_alias" in
979NONE)
980 case $nonopt in
981 NONE)
982 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
983 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
984 fi ;;
985 *) host_alias=$nonopt ;;
986 esac ;;
987esac
988
989host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
990host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
991host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
992host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
993echo "$ac_t""$host" 1>&6
994
995echo $ac_n "checking target system type""... $ac_c" 1>&6
4cdb0ab0 996echo "configure:997: checking target system type" >&5
698dcdb6
VZ
997
998target_alias=$target
999case "$target_alias" in
1000NONE)
1001 case $nonopt in
1002 NONE) target_alias=$host_alias ;;
1003 *) target_alias=$nonopt ;;
1004 esac ;;
1005esac
1006
1007target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1008target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1009target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1010target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1011echo "$ac_t""$target" 1>&6
1012
1013echo $ac_n "checking build system type""... $ac_c" 1>&6
4cdb0ab0 1014echo "configure:1015: checking build system type" >&5
698dcdb6
VZ
1015
1016build_alias=$build
1017case "$build_alias" in
1018NONE)
1019 case $nonopt in
1020 NONE) build_alias=$host_alias ;;
1021 *) build_alias=$nonopt ;;
1022 esac ;;
1023esac
1024
1025build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1026build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1027build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1028build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1029echo "$ac_t""$build" 1>&6
1030
1031test "$host_alias" != "$target_alias" &&
7c66a493
VZ
1032 test "$program_prefix$program_suffix$program_transform_name" = \
1033 NONENONEs,x,x, &&
1034 program_prefix=${target_alias}-
1035
698dcdb6
VZ
1036
1037
10f2d63a 1038WX_MAJOR_VERSION_NUMBER=2
37d403aa 1039WX_MINOR_VERSION_NUMBER=3
a0d927d1 1040WX_RELEASE_NUMBER=3
10f2d63a 1041
10f2d63a 1042WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER
10f2d63a 1043WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER
6426998c 1044
978f1259
RL
1045WX_MSW_VERSION=$WX_MAJOR_VERSION_NUMBER$WX_MINOR_VERSION_NUMBER$WX_RELEASE_NUMBER
1046
a0d927d1 1047WX_CURRENT=2
6426998c
RL
1048WX_REVISION=0
1049WX_AGE=0
1050
698dcdb6
VZ
1051
1052
10f2d63a
VZ
1053USE_UNIX=1
1054USE_WIN32=0
f9bc1684 1055USE_DOS=0
b12915c1 1056USE_BEOS=0
1216f52d 1057USE_MAC=0
b12915c1 1058
10f2d63a
VZ
1059USE_LINUX=
1060USE_SGI=
1061USE_HPUX=
1062USE_SYSV=
1063USE_SVR4=
1064USE_AIX=
1065USE_SUN=
1066USE_SOLARIS=
1067USE_SUNOS=
1068USE_ALPHA=
1069USE_OSF=
1070USE_BSD=
f11bdd03 1071USE_DARWIN=
10f2d63a 1072USE_FREEBSD=
95c8801c 1073USE_OPENBSD=
f6bcfd97 1074USE_NETBSD=
10f2d63a
VZ
1075USE_VMS=
1076USE_ULTRIX=
10f2d63a
VZ
1077USE_DATA_GENERAL=
1078
ab9b9eab
VZ
1079NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1080
3f345b47
VZ
1081CPP_MT_FLAG=-D_REENTRANT
1082
1725144d 1083ALL_TOOLKITS="GTK MAC MGL MICROWIN MOTIF MSW PM WINE"
10f2d63a
VZ
1084
1085DEFAULT_wxUSE_GTK=0
1e6feb95
VZ
1086DEFAULT_wxUSE_MAC=0
1087DEFAULT_wxUSE_MGL=0
1725144d 1088DEFAULT_wxUSE_MICROWIN=0
10f2d63a
VZ
1089DEFAULT_wxUSE_MOTIF=0
1090DEFAULT_wxUSE_MSW=0
e07802fc 1091DEFAULT_wxUSE_PM=0
1e6feb95 1092DEFAULT_wxUSE_WINE=0
10f2d63a
VZ
1093
1094DEFAULT_DEFAULT_wxUSE_GTK=0
1e6feb95
VZ
1095DEFAULT_DEFAULT_wxUSE_MAC=0
1096DEFAULT_DEFAULT_wxUSE_MGL=0
1725144d 1097DEFAULT_DEFAULT_wxUSE_MICROWIN=0
10f2d63a
VZ
1098DEFAULT_DEFAULT_wxUSE_MOTIF=0
1099DEFAULT_DEFAULT_wxUSE_MSW=0
e07802fc 1100DEFAULT_DEFAULT_wxUSE_PM=0
1e6feb95 1101DEFAULT_DEFAULT_wxUSE_WINE=0
10f2d63a 1102
d6a55c4b 1103PROGRAM_EXT=
3a922bb4 1104SO_SUFFIX=so
d6a55c4b 1105
10f2d63a
VZ
1106case "${host}" in
1107 *-hp-hpux* )
1108 USE_HPUX=1
1109 DEFAULT_DEFAULT_wxUSE_MOTIF=1
ab9b9eab 1110 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
3a922bb4 1111 SO_SUFFIX=sl
698dcdb6 1112 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1113#define __HPUX__ 1
1114EOF
1115
1116 ;;
1117 *-*-linux* )
1118 USE_LINUX=1
698dcdb6 1119 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1120#define __LINUX__ 1
1121EOF
1122
1123 TMP=`uname -m`
1124 if test "x$TMP" = "xalpha"; then
1125 USE_ALPHA=1
698dcdb6 1126 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1127#define __ALPHA__ 1
1128EOF
1129
1130 fi
1131 DEFAULT_DEFAULT_wxUSE_GTK=1
1132 ;;
1133 *-*-irix5* | *-*-irix6* )
1134 USE_SGI=1
1135 USE_SVR4=1
698dcdb6 1136 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1137#define __SGI__ 1
1138EOF
1139
698dcdb6 1140 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1141#define __SVR4__ 1
1142EOF
1143
1144 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1145 ;;
1146 *-*-solaris2* )
1147 USE_SUN=1
1148 USE_SOLARIS=1
1149 USE_SVR4=1
698dcdb6 1150 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1151#define __SUN__ 1
1152EOF
1153
698dcdb6 1154 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1155#define __SOLARIS__ 1
1156EOF
1157
698dcdb6 1158 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1159#define __SVR4__ 1
1160EOF
1161
1162 DEFAULT_DEFAULT_wxUSE_MOTIF=1
ab9b9eab 1163 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
10f2d63a
VZ
1164 ;;
1165 *-*-sunos4* )
1166 USE_SUN=1
1167 USE_SUNOS=1
1168 USE_BSD=1
698dcdb6 1169 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1170#define __SUN__ 1
1171EOF
1172
698dcdb6 1173 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1174#define __SUNOS__ 1
1175EOF
1176
698dcdb6 1177 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1178#define __BSD__ 1
1179EOF
1180
1181 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1182 ;;
f6bcfd97 1183 *-*-freebsd*)
10f2d63a
VZ
1184 USE_BSD=1
1185 USE_FREEBSD=1
3f345b47 1186 CPP_MT_FLAG=-D_THREAD_SAFE
698dcdb6 1187 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1188#define __FREEBSD__ 1
1189EOF
1190
698dcdb6 1191 cat >> confdefs.h <<\EOF
10f2d63a 1192#define __BSD__ 1
95c8801c
VS
1193EOF
1194
1195 DEFAULT_DEFAULT_wxUSE_GTK=1
1196 ;;
1197 *-*-openbsd*)
1198 USE_BSD=1
1199 USE_OPENBSD=1
698dcdb6 1200 cat >> confdefs.h <<\EOF
95c8801c
VS
1201#define __FREEBSD__ 1
1202EOF
1203
698dcdb6 1204 cat >> confdefs.h <<\EOF
95c8801c 1205#define __OPENBSD__ 1
f6bcfd97
BP
1206EOF
1207
1208 DEFAULT_DEFAULT_wxUSE_GTK=1
1209 ;;
1210 *-*-netbsd*)
1211 USE_BSD=1
1212 USE_NETBSD=1
698dcdb6 1213 cat >> confdefs.h <<\EOF
f6bcfd97
BP
1214#define __FREEBSD__ 1
1215EOF
1216
698dcdb6 1217 cat >> confdefs.h <<\EOF
f6bcfd97 1218#define __NETBSD__ 1
10f2d63a
VZ
1219EOF
1220
1221 DEFAULT_DEFAULT_wxUSE_GTK=1
1222 ;;
1223 *-*-osf* )
1224 USE_ALPHA=1
1225 USE_OSF=1
698dcdb6 1226 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1227#define __ALPHA__ 1
1228EOF
1229
698dcdb6 1230 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1231#define __OSF__ 1
1232EOF
1233
1234 DEFAULT_DEFAULT_wxUSE_MOTIF=1
f6bcfd97 1235 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
10f2d63a
VZ
1236 ;;
1237 *-*-dgux5* )
1238 USE_ALPHA=1
1239 USE_SVR4=1
698dcdb6 1240 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1241#define __ALPHA__ 1
1242EOF
1243
698dcdb6 1244 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1245#define __SVR4__ 1
1246EOF
1247
1248 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1249 ;;
1250 *-*-sysv5* )
1251 USE_SYSV=1
1252 USE_SVR4=1
698dcdb6 1253 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1254#define __SYSV__ 1
1255EOF
1256
698dcdb6 1257 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1258#define __SVR4__ 1
1259EOF
1260
1261 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1262 ;;
1263 *-*-aix* )
1264 USE_AIX=1
1265 USE_SYSV=1
1266 USE_SVR4=1
698dcdb6 1267 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1268#define __AIX__ 1
1269EOF
1270
698dcdb6 1271 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1272#define __SYSV__ 1
1273EOF
1274
698dcdb6 1275 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1276#define __SVR4__ 1
1277EOF
1278
1279 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1280 ;;
1281
1c8183e2 1282 *-*-cygwin* | *-*-mingw32* )
10f2d63a
VZ
1283 USE_UNIX=0
1284 USE_WIN32=1
3a922bb4 1285 SO_SUFFIX=dll
698dcdb6 1286 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1287#define __WIN32__ 1
1288EOF
1289
698dcdb6 1290 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1291#define __WIN95__ 1
1292EOF
1293
698dcdb6 1294 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1295#define __WINDOWS__ 1
1296EOF
1297
698dcdb6 1298 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1299#define __GNUWIN32__ 1
1300EOF
1301
698dcdb6 1302 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1303#define STRICT 1
1304EOF
1305
698dcdb6 1306 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1307#define WINVER 0x0400
1308EOF
1309
cf27ef00 1310 PROGRAM_EXT=".exe"
7b7a7637 1311 RESCOMP=windres
10f2d63a
VZ
1312 DEFAULT_DEFAULT_wxUSE_MSW=1
1313 ;;
1314
f9bc1684
VS
1315 *-pc-msdosdjgpp )
1316 USE_UNIX=0
1317 USE_DOS=1
1318 cat >> confdefs.h <<\EOF
1319#define __DOS__ 1
1320EOF
1321
1322 PROGRAM_EXT=".exe"
1323 DEFAULT_DEFAULT_wxUSE_MGL=1
1324 DEFAULT_DEFAULT_wxUSE_SHARED=0
1325 ;;
1326
6fa882bd 1327 *-pc-os2_emx | *-pc-os2-emx )
698dcdb6 1328 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1329#define __EMX__ 1
1330EOF
1331
cf27ef00 1332 PROGRAM_EXT=".exe"
e07802fc 1333 DEFAULT_DEFAULT_wxUSE_PM=1
10f2d63a
VZ
1334 ;;
1335
d08b457b
GD
1336 powerpc-*-darwin* )
1337 USE_BSD=1
f11bdd03 1338 USE_DARWIN=1
3f345b47 1339 CPP_MT_FLAG=
3a922bb4 1340 SO_SUFFIX=dylib
698dcdb6 1341 cat >> confdefs.h <<\EOF
f11bdd03 1342#define __BSD__ 1
b4085ce6
GD
1343EOF
1344
698dcdb6 1345 cat >> confdefs.h <<\EOF
f11bdd03 1346#define __DARWIN__ 1
d08b457b
GD
1347EOF
1348
1349 cat >> confdefs.h <<\EOF
1350#define __POWERPC__ 1
b4085ce6
GD
1351EOF
1352
1353 DEFAULT_DEFAULT_wxUSE_MAC=1
1354 ;;
1355
b12915c1
VZ
1356 *-*-beos* )
1357 USE_BEOS=1
698dcdb6 1358 cat >> confdefs.h <<\EOF
b12915c1
VZ
1359#define __BEOS__ 1
1360EOF
1361
1362 ;;
1363
10f2d63a 1364 *)
698dcdb6 1365 { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; }
10f2d63a
VZ
1366esac
1367
1368if test "$USE_UNIX" = 1 ; then
b12915c1 1369 wxUSE_UNIX=yes
698dcdb6 1370 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1371#define __UNIX__ 1
1372EOF
1373
10f2d63a
VZ
1374fi
1375
2389f33b
VZ
1376if test "$USE_LINUX" = 1; then
1377 echo $ac_n "checking for glibc 2.1 or later""... $ac_c" 1>&6
4cdb0ab0 1378echo "configure:1379: checking for glibc 2.1 or later" >&5
2389f33b
VZ
1379if eval "test \"`echo '$''{'wx_lib_glibc21'+set}'`\" = set"; then
1380 echo $ac_n "(cached) $ac_c" 1>&6
1381else
a72a4bfa
VS
1382
1383 cat > conftest.$ac_ext <<EOF
4cdb0ab0 1384#line 1385 "configure"
2389f33b
VZ
1385#include "confdefs.h"
1386#include <features.h>
1387int main() {
1388
1389 #if !__GLIBC_PREREQ(2, 1)
1390 #error not glibc2.1
1391 #endif
1392
1393; return 0; }
1394EOF
4cdb0ab0 1395if { (eval echo configure:1396: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2389f33b
VZ
1396 rm -rf conftest*
1397
1398 wx_lib_glibc21=yes
1399
1400else
1401 echo "configure: failed program was:" >&5
1402 cat conftest.$ac_ext >&5
1403 rm -rf conftest*
1404
1405 wx_lib_glibc21=no
1406
1407
1408fi
1409rm -f conftest*
1410
1411fi
1412
1413echo "$ac_t""$wx_lib_glibc21" 1>&6
2389f33b
VZ
1414 if test "$wx_lib_glibc21" = "yes"; then
1415 cat >> confdefs.h <<\EOF
1416#define wxHAVE_GLIBC2 1
1417EOF
1418
1419 fi
1420fi
10f2d63a 1421
1e487827 1422
1e487827 1423
6232543b 1424
10f2d63a
VZ
1425 wx_arg_cache_file="configarg.cache"
1426 echo "loading argument cache $wx_arg_cache_file"
1427 rm -f ${wx_arg_cache_file}.tmp
1428 touch ${wx_arg_cache_file}.tmp
1429 touch ${wx_arg_cache_file}
698dcdb6 1430
10f2d63a
VZ
1431
1432DEBUG_CONFIGURE=0
1433if test $DEBUG_CONFIGURE = 1; then
1e6feb95
VZ
1434 DEFAULT_wxUSE_UNIVERSAL=no
1435
10f2d63a
VZ
1436 DEFAULT_wxUSE_THREADS=yes
1437
1438 DEFAULT_wxUSE_SHARED=yes
3a922bb4 1439 DEFAULT_wxUSE_SONAME=no
1e6feb95 1440 DEFAULT_wxUSE_OPTIMISE=no
10f2d63a
VZ
1441 DEFAULT_wxUSE_PROFILE=no
1442 DEFAULT_wxUSE_NO_DEPS=no
f676c7ff
MB
1443 DEFAULT_wxUSE_NO_RTTI=yes
1444 DEFAULT_wxUSE_NO_EXCEPTIONS=yes
10f2d63a
VZ
1445 DEFAULT_wxUSE_PERMISSIVE=no
1446 DEFAULT_wxUSE_DEBUG_FLAG=yes
1447 DEFAULT_wxUSE_DEBUG_INFO=yes
1448 DEFAULT_wxUSE_DEBUG_GDB=yes
1449 DEFAULT_wxUSE_MEM_TRACING=no
1450 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1451 DEFAULT_wxUSE_DMALLOC=no
683dccda 1452 DEFAULT_wxUSE_PRECOMP=yes
10f2d63a
VZ
1453 DEFAULT_wxUSE_APPLE_IEEE=no
1454
1455 DEFAULT_wxUSE_LOG=yes
1e6feb95
VZ
1456 DEFAULT_wxUSE_LOGWINDOW=no
1457 DEFAULT_wxUSE_LOGGUI=no
69d27ff7 1458 DEFAULT_wxUSE_LOGDIALOG=no
10f2d63a
VZ
1459
1460 DEFAULT_wxUSE_GUI=yes
1e6feb95 1461 DEFAULT_wxUSE_CONTROLS=no
10f2d63a 1462
3e44f09d 1463 DEFAULT_wxUSE_REGEX=no
10f2d63a
VZ
1464 DEFAULT_wxUSE_ZLIB=no
1465 DEFAULT_wxUSE_LIBPNG=no
1466 DEFAULT_wxUSE_LIBJPEG=no
c7a2bf27 1467 DEFAULT_wxUSE_LIBTIFF=no
10f2d63a 1468 DEFAULT_wxUSE_ODBC=no
3fed1840 1469 DEFAULT_wxUSE_FREETYPE=no
bdad4e7e 1470 DEFAULT_wxUSE_OPENGL=no
10f2d63a 1471
eb4efbdc 1472 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
4f3c5f06 1473 DEFAULT_wxUSE_SNGLINST_CHECKER=no
10f2d63a 1474 DEFAULT_wxUSE_STD_IOSTREAM=no
1e6feb95
VZ
1475 DEFAULT_wxUSE_CMDLINE_PARSER=no
1476 DEFAULT_wxUSE_DATETIME=no
1477 DEFAULT_wxUSE_TIMEDATE=no
1478 DEFAULT_wxUSE_TIMER=no
1479 DEFAULT_wxUSE_STOPWATCH=no
10f2d63a 1480 DEFAULT_wxUSE_FILE=no
1e6feb95 1481 DEFAULT_wxUSE_FFILE=no
a3a584a7 1482 DEFAULT_wxUSE_TEXTBUFFER=no
10f2d63a 1483 DEFAULT_wxUSE_TEXTFILE=no
10f2d63a
VZ
1484 DEFAULT_wxUSE_WAVE=no
1485 DEFAULT_wxUSE_INTL=no
1486 DEFAULT_wxUSE_CONFIG=no
1e6feb95 1487 DEFAULT_wxUSE_FONTMAP=no
10f2d63a
VZ
1488 DEFAULT_wxUSE_STREAMS=no
1489 DEFAULT_wxUSE_SOCKETS=no
1490 DEFAULT_wxUSE_DIALUP_MANAGER=no
10f2d63a 1491 DEFAULT_wxUSE_JOYSTICK=no
6bff71f8 1492 DEFAULT_wxUSE_DYNLIB_CLASS=no
0b9ab0bd 1493 DEFAULT_wxUSE_DYNAMIC_LOADER=no
10f2d63a 1494 DEFAULT_wxUSE_LONGLONG=no
e8f65ba6 1495 DEFAULT_wxUSE_GEOMETRY=no
10f2d63a
VZ
1496
1497 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
1498 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
1499 DEFAULT_wxUSE_POSTSCRIPT=no
1500
1501 DEFAULT_wxUSE_X_RESOURCES=no
1502 DEFAULT_wxUSE_CLIPBOARD=no
1503 DEFAULT_wxUSE_TOOLTIPS=no
1504 DEFAULT_wxUSE_DRAG_AND_DROP=no
24fd6d87 1505 DEFAULT_wxUSE_DRAGIMAGE=no
10f2d63a
VZ
1506 DEFAULT_wxUSE_SPLINES=no
1507
1508 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
1509 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
1510 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
1511
1512 DEFAULT_wxUSE_PROLOGIO=no
1513 DEFAULT_wxUSE_RESOURCES=no
1514 DEFAULT_wxUSE_CONSTRAINTS=no
1515 DEFAULT_wxUSE_IPC=no
1516 DEFAULT_wxUSE_HELP=no
29fd3c0c 1517 DEFAULT_wxUSE_MS_HTML_HELP=no
3379ed37 1518 DEFAULT_wxUSE_WXHTML_HELP=no
24176f2c 1519 DEFAULT_wxUSE_TREELAYOUT=no
10f2d63a 1520 DEFAULT_wxUSE_METAFILE=no
1e6feb95 1521 DEFAULT_wxUSE_MIMETYPE=no
4cdb0ab0
VS
1522 DEFAULT_wxUSE_SYSTEM_OPTIONS=no
1523 DEFAULT_wxUSE_PROTOCOL=no
1524 DEFAULT_wxUSE_PROTOCOL_HTTP=no
1525 DEFAULT_wxUSE_PROTOCOL_FTP=no
1526 DEFAULT_wxUSE_PROTOCOL_FILE=no
1527 DEFAULT_wxUSE_URL=no
1528
10f2d63a 1529 DEFAULT_wxUSE_COMMONDLGS=no
1e6feb95
VZ
1530 DEFAULT_wxUSE_CHOICEDLG=no
1531 DEFAULT_wxUSE_COLOURDLG=no
10f2d63a 1532 DEFAULT_wxUSE_DIRDLG=no
1e6feb95 1533 DEFAULT_wxUSE_FILEDLG=no
8db37e06 1534 DEFAULT_wxUSE_FINDREPLDLG=no
1e6feb95
VZ
1535 DEFAULT_wxUSE_FONTDLG=no
1536 DEFAULT_wxUSE_MSGDLG=no
1537 DEFAULT_wxUSE_NUMBERDLG=no
10f2d63a 1538 DEFAULT_wxUSE_TEXTDLG=no
cbca9943 1539 DEFAULT_wxUSE_SPLASH=no
10f2d63a
VZ
1540 DEFAULT_wxUSE_STARTUP_TIPS=no
1541 DEFAULT_wxUSE_PROGRESSDLG=no
b1f5d087
VZ
1542 DEFAULT_wxUSE_WIZARDDLG=no
1543
1e6feb95 1544 DEFAULT_wxUSE_MENUS=no
10f2d63a
VZ
1545 DEFAULT_wxUSE_MINIFRAME=no
1546 DEFAULT_wxUSE_HTML=no
24528b0c 1547 DEFAULT_wxUSE_FILESYSTEM=no
10f2d63a
VZ
1548 DEFAULT_wxUSE_FS_INET=no
1549 DEFAULT_wxUSE_FS_ZIP=no
1550 DEFAULT_wxUSE_BUSYINFO=no
1551 DEFAULT_wxUSE_ZIPSTREAM=no
1e6feb95 1552 DEFAULT_wxUSE_VALIDATORS=no
10f2d63a
VZ
1553
1554 DEFAULT_wxUSE_ACCEL=no
1e6feb95 1555 DEFAULT_wxUSE_BUTTON=no
10f2d63a 1556 DEFAULT_wxUSE_BMPBUTTON=no
1e6feb95
VZ
1557 DEFAULT_wxUSE_CALCTRL=no
1558 DEFAULT_wxUSE_CARET=no
10f2d63a
VZ
1559 DEFAULT_wxUSE_CHECKBOX=no
1560 DEFAULT_wxUSE_CHECKLST=no
1e6feb95 1561 DEFAULT_wxUSE_CHOICE=no
10f2d63a
VZ
1562 DEFAULT_wxUSE_COMBOBOX=no
1563 DEFAULT_wxUSE_GAUGE=no
1564 DEFAULT_wxUSE_GRID=no
1565 DEFAULT_wxUSE_NEW_GRID=no
1566 DEFAULT_wxUSE_IMAGLIST=no
1567 DEFAULT_wxUSE_LISTBOX=no
1568 DEFAULT_wxUSE_LISTCTRL=no
1569 DEFAULT_wxUSE_NOTEBOOK=no
24176f2c 1570 DEFAULT_wxUSE_PROPSHEET=no
10f2d63a
VZ
1571 DEFAULT_wxUSE_RADIOBOX=no
1572 DEFAULT_wxUSE_RADIOBTN=no
1573 DEFAULT_wxUSE_SASH=no
1574 DEFAULT_wxUSE_SCROLLBAR=no
1575 DEFAULT_wxUSE_SLIDER=no
1576 DEFAULT_wxUSE_SPINBTN=no
56cfaa52 1577 DEFAULT_wxUSE_SPINCTRL=no
10f2d63a
VZ
1578 DEFAULT_wxUSE_SPLITTER=no
1579 DEFAULT_wxUSE_STATBMP=no
1580 DEFAULT_wxUSE_STATBOX=no
1581 DEFAULT_wxUSE_STATLINE=no
1e6feb95 1582 DEFAULT_wxUSE_STATTEXT=no
10f2d63a
VZ
1583 DEFAULT_wxUSE_STATUSBAR=yes
1584 DEFAULT_wxUSE_TABDIALOG=no
1e6feb95 1585 DEFAULT_wxUSE_TEXTCTRL=no
1db8dc4a 1586 DEFAULT_wxUSE_TOGGLEBTN=no
10f2d63a 1587 DEFAULT_wxUSE_TOOLBAR=no
360d6699
VZ
1588 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
1589 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
10f2d63a 1590 DEFAULT_wxUSE_TREECTRL=no
9f41d601 1591 DEFAULT_wxUSE_POPUPWIN=no
9926e4a4 1592 DEFAULT_wxUSE_TIPWINDOW=no
10f2d63a
VZ
1593
1594 DEFAULT_wxUSE_UNICODE=no
a72a4bfa 1595 DEFAULT_wxUSE_UNICODE_MSLU=no
10f2d63a
VZ
1596 DEFAULT_wxUSE_WCSRTOMBS=no
1597
edae8572 1598 DEFAULT_wxUSE_PALETTE=no
0046ff7c 1599 DEFAULT_wxUSE_IMAGE=no
10f2d63a
VZ
1600 DEFAULT_wxUSE_GIF=no
1601 DEFAULT_wxUSE_PCX=no
1602 DEFAULT_wxUSE_PNM=no
0046ff7c 1603 DEFAULT_wxUSE_XPM=no
10f2d63a 1604else
1e6feb95
VZ
1605 DEFAULT_wxUSE_UNIVERSAL=no
1606
10f2d63a
VZ
1607 DEFAULT_wxUSE_THREADS=yes
1608
1609 DEFAULT_wxUSE_SHARED=yes
3a922bb4 1610 DEFAULT_wxUSE_SONAME=no
10f2d63a
VZ
1611 DEFAULT_wxUSE_OPTIMISE=yes
1612 DEFAULT_wxUSE_PROFILE=no
1613 DEFAULT_wxUSE_NO_DEPS=no
f676c7ff
MB
1614 DEFAULT_wxUSE_NO_RTTI=yes
1615 DEFAULT_wxUSE_NO_EXCEPTIONS=yes
10f2d63a
VZ
1616 DEFAULT_wxUSE_PERMISSIVE=no
1617 DEFAULT_wxUSE_DEBUG_FLAG=no
1618 DEFAULT_wxUSE_DEBUG_INFO=no
1619 DEFAULT_wxUSE_DEBUG_GDB=no
1620 DEFAULT_wxUSE_MEM_TRACING=no
1621 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1622 DEFAULT_wxUSE_DMALLOC=no
683dccda 1623 DEFAULT_wxUSE_PRECOMP=yes
10f2d63a
VZ
1624 DEFAULT_wxUSE_APPLE_IEEE=yes
1625
1626 DEFAULT_wxUSE_LOG=yes
d73be714
VZ
1627 DEFAULT_wxUSE_LOGWINDOW=yes
1628 DEFAULT_wxUSE_LOGGUI=yes
69d27ff7 1629 DEFAULT_wxUSE_LOGDIALOG=yes
10f2d63a
VZ
1630
1631 DEFAULT_wxUSE_GUI=yes
1632
831b3152 1633 DEFAULT_wxUSE_REGEX=yes
10f2d63a
VZ
1634 DEFAULT_wxUSE_ZLIB=yes
1635 DEFAULT_wxUSE_LIBPNG=yes
1636 DEFAULT_wxUSE_LIBJPEG=yes
b47c832e 1637 DEFAULT_wxUSE_LIBTIFF=yes
16b52fa1 1638 DEFAULT_wxUSE_ODBC=no
3fed1840 1639 DEFAULT_wxUSE_FREETYPE=no
bdad4e7e 1640 DEFAULT_wxUSE_OPENGL=no
10f2d63a 1641
eb4efbdc 1642 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
4f3c5f06 1643 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
10f2d63a 1644 DEFAULT_wxUSE_STD_IOSTREAM=no
1e6feb95
VZ
1645 DEFAULT_wxUSE_CMDLINE_PARSER=yes
1646 DEFAULT_wxUSE_DATETIME=yes
1647 DEFAULT_wxUSE_TIMEDATE=no
1648 DEFAULT_wxUSE_TIMER=yes
1649 DEFAULT_wxUSE_STOPWATCH=yes
10f2d63a 1650 DEFAULT_wxUSE_FILE=yes
1e6feb95 1651 DEFAULT_wxUSE_FFILE=yes
a3a584a7 1652 DEFAULT_wxUSE_TEXTBUFFER=yes
10f2d63a 1653 DEFAULT_wxUSE_TEXTFILE=yes
10f2d63a
VZ
1654 DEFAULT_wxUSE_WAVE=no
1655 DEFAULT_wxUSE_INTL=yes
1656 DEFAULT_wxUSE_CONFIG=yes
1e6feb95 1657 DEFAULT_wxUSE_FONTMAP=yes
10f2d63a
VZ
1658 DEFAULT_wxUSE_STREAMS=yes
1659 DEFAULT_wxUSE_SOCKETS=yes
1660 DEFAULT_wxUSE_DIALUP_MANAGER=yes
10f2d63a 1661 DEFAULT_wxUSE_JOYSTICK=yes
6bff71f8 1662 DEFAULT_wxUSE_DYNLIB_CLASS=yes
466367be 1663 DEFAULT_wxUSE_DYNAMIC_LOADER=no
b685cd9b 1664 DEFAULT_wxUSE_LONGLONG=yes
e8f65ba6 1665 DEFAULT_wxUSE_GEOMETRY=yes
10f2d63a
VZ
1666
1667 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
1668 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
1669 DEFAULT_wxUSE_POSTSCRIPT=yes
1670
1671 DEFAULT_wxUSE_X_RESOURCES=no
1672 DEFAULT_wxUSE_CLIPBOARD=yes
1673 DEFAULT_wxUSE_TOOLTIPS=yes
1674 DEFAULT_wxUSE_DRAG_AND_DROP=yes
24fd6d87 1675 DEFAULT_wxUSE_DRAGIMAGE=yes
10f2d63a
VZ
1676 DEFAULT_wxUSE_SPLINES=yes
1677
1678 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
1679 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
1680 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
1681
1682 DEFAULT_wxUSE_PROLOGIO=yes
1683 DEFAULT_wxUSE_RESOURCES=yes
1684 DEFAULT_wxUSE_CONSTRAINTS=yes
1685 DEFAULT_wxUSE_IPC=yes
1686 DEFAULT_wxUSE_HELP=yes
29fd3c0c 1687 DEFAULT_wxUSE_MS_HTML_HELP=yes
3379ed37 1688 DEFAULT_wxUSE_WXHTML_HELP=yes
24176f2c 1689 DEFAULT_wxUSE_TREELAYOUT=yes
10f2d63a 1690 DEFAULT_wxUSE_METAFILE=yes
1e6feb95 1691 DEFAULT_wxUSE_MIMETYPE=yes
3e44f09d 1692 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
4cdb0ab0
VS
1693 DEFAULT_wxUSE_PROTOCOL=yes
1694 DEFAULT_wxUSE_PROTOCOL_HTTP=yes
1695 DEFAULT_wxUSE_PROTOCOL_FTP=yes
1696 DEFAULT_wxUSE_PROTOCOL_FILE=yes
1697 DEFAULT_wxUSE_URL=yes
10f2d63a
VZ
1698
1699 DEFAULT_wxUSE_COMMONDLGS=yes
1e6feb95
VZ
1700 DEFAULT_wxUSE_CHOICEDLG=yes
1701 DEFAULT_wxUSE_COLOURDLG=yes
10f2d63a 1702 DEFAULT_wxUSE_DIRDLG=yes
1e6feb95 1703 DEFAULT_wxUSE_FILEDLG=yes
8db37e06 1704 DEFAULT_wxUSE_FINDREPLDLG=yes
1e6feb95
VZ
1705 DEFAULT_wxUSE_FONTDLG=yes
1706 DEFAULT_wxUSE_MSGDLG=yes
1707 DEFAULT_wxUSE_NUMBERDLG=yes
10f2d63a 1708 DEFAULT_wxUSE_TEXTDLG=yes
cbca9943 1709 DEFAULT_wxUSE_SPLASH=yes
10f2d63a
VZ
1710 DEFAULT_wxUSE_STARTUP_TIPS=yes
1711 DEFAULT_wxUSE_PROGRESSDLG=yes
f33f19dd
VZ
1712 DEFAULT_wxUSE_WIZARDDLG=yes
1713
1e6feb95 1714 DEFAULT_wxUSE_MENUS=yes
10f2d63a
VZ
1715 DEFAULT_wxUSE_MINIFRAME=yes
1716 DEFAULT_wxUSE_HTML=yes
24528b0c 1717 DEFAULT_wxUSE_FILESYSTEM=yes
10f2d63a
VZ
1718 DEFAULT_wxUSE_FS_INET=yes
1719 DEFAULT_wxUSE_FS_ZIP=yes
1720 DEFAULT_wxUSE_BUSYINFO=yes
1721 DEFAULT_wxUSE_ZIPSTREAM=yes
1722 DEFAULT_wxUSE_VALIDATORS=yes
1723
1724 DEFAULT_wxUSE_ACCEL=yes
1e6feb95 1725 DEFAULT_wxUSE_BUTTON=yes
10f2d63a 1726 DEFAULT_wxUSE_BMPBUTTON=yes
1e6feb95
VZ
1727 DEFAULT_wxUSE_CALCTRL=yes
1728 DEFAULT_wxUSE_CARET=yes
10f2d63a
VZ
1729 DEFAULT_wxUSE_CHECKBOX=yes
1730 DEFAULT_wxUSE_CHECKLST=yes
1731 DEFAULT_wxUSE_CHOICE=yes
1732 DEFAULT_wxUSE_COMBOBOX=yes
1733 DEFAULT_wxUSE_GAUGE=yes
1734 DEFAULT_wxUSE_GRID=yes
cc977e5f 1735 DEFAULT_wxUSE_NEW_GRID=yes
10f2d63a
VZ
1736 DEFAULT_wxUSE_IMAGLIST=yes
1737 DEFAULT_wxUSE_LISTBOX=yes
1738 DEFAULT_wxUSE_LISTCTRL=yes
1739 DEFAULT_wxUSE_NOTEBOOK=yes
24176f2c 1740 DEFAULT_wxUSE_PROPSHEET=yes
10f2d63a
VZ
1741 DEFAULT_wxUSE_RADIOBOX=yes
1742 DEFAULT_wxUSE_RADIOBTN=yes
1743 DEFAULT_wxUSE_SASH=yes
1744 DEFAULT_wxUSE_SCROLLBAR=yes
1745 DEFAULT_wxUSE_SLIDER=yes
1746 DEFAULT_wxUSE_SPINBTN=yes
56cfaa52 1747 DEFAULT_wxUSE_SPINCTRL=yes
10f2d63a
VZ
1748 DEFAULT_wxUSE_SPLITTER=yes
1749 DEFAULT_wxUSE_STATBMP=yes
1750 DEFAULT_wxUSE_STATBOX=yes
1751 DEFAULT_wxUSE_STATLINE=yes
1e6feb95 1752 DEFAULT_wxUSE_STATTEXT=yes
10f2d63a
VZ
1753 DEFAULT_wxUSE_STATUSBAR=yes
1754 DEFAULT_wxUSE_TABDIALOG=no
1e6feb95 1755 DEFAULT_wxUSE_TEXTCTRL=yes
1db8dc4a 1756 DEFAULT_wxUSE_TOGGLEBTN=yes
10f2d63a 1757 DEFAULT_wxUSE_TOOLBAR=yes
360d6699
VZ
1758 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
1759 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
10f2d63a 1760 DEFAULT_wxUSE_TREECTRL=yes
9f41d601 1761 DEFAULT_wxUSE_POPUPWIN=yes
9926e4a4 1762 DEFAULT_wxUSE_TIPWINDOW=yes
10f2d63a
VZ
1763
1764 DEFAULT_wxUSE_UNICODE=no
a72a4bfa 1765 DEFAULT_wxUSE_UNICODE_MSLU=yes
10f2d63a
VZ
1766 DEFAULT_wxUSE_WCSRTOMBS=no
1767
edae8572 1768 DEFAULT_wxUSE_PALETTE=yes
0046ff7c 1769 DEFAULT_wxUSE_IMAGE=yes
10f2d63a
VZ
1770 DEFAULT_wxUSE_GIF=yes
1771 DEFAULT_wxUSE_PCX=yes
1772 DEFAULT_wxUSE_PNM=yes
0046ff7c 1773 DEFAULT_wxUSE_XPM=yes
10f2d63a
VZ
1774fi
1775
698dcdb6
VZ
1776
1777
10f2d63a
VZ
1778for toolkit in `echo $ALL_TOOLKITS`; do
1779 LINE=`grep "wxUSE_$toolkit" ${wx_arg_cache_file}`
1780 if test "x$LINE" != x ; then
1781 has_toolkit_in_cache=1
1782 eval "DEFAULT_$LINE"
1783 eval "CACHE_$toolkit=1"
1784 fi
1785done
1786
698dcdb6
VZ
1787
1788
1789 echo $ac_n "checking for --enable-gui""... $ac_c" 1>&6
4cdb0ab0 1790echo "configure:1791: checking for --enable-gui" >&5
10f2d63a
VZ
1791 no_cache=0
1792 # Check whether --enable-gui or --disable-gui was given.
1793if test "${enable_gui+set}" = set; then
1794 enableval="$enable_gui"
698dcdb6 1795
10f2d63a
VZ
1796 if test "$enableval" = yes; then
1797 ac_cv_use_gui='wxUSE_GUI=yes'
1798 else
1799 ac_cv_use_gui='wxUSE_GUI=no'
1800 fi
698dcdb6 1801
10f2d63a 1802else
698dcdb6 1803
10f2d63a
VZ
1804 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
1805 if test "x$LINE" != x ; then
1806 eval "DEFAULT_$LINE"
1807 else
1808 no_cache=1
1809 fi
1810
1811 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
698dcdb6
VZ
1812
1813fi
10f2d63a
VZ
1814
1815
1816 eval "$ac_cv_use_gui"
1817 if test "$no_cache" != 1; then
1818 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
1819 fi
1820
1821 if test "$wxUSE_GUI" = yes; then
698dcdb6 1822 echo "$ac_t""yes" 1>&6
10f2d63a 1823 else
698dcdb6 1824 echo "$ac_t""no" 1>&6
10f2d63a 1825 fi
698dcdb6 1826
10f2d63a 1827
b12915c1 1828if test "$wxUSE_GUI" = "yes"; then
10f2d63a 1829
1e6feb95
VZ
1830
1831 echo $ac_n "checking for --enable-universal""... $ac_c" 1>&6
4cdb0ab0 1832echo "configure:1833: checking for --enable-universal" >&5
1e6feb95
VZ
1833 no_cache=0
1834 # Check whether --enable-universal or --disable-universal was given.
1835if test "${enable_universal+set}" = set; then
1836 enableval="$enable_universal"
1837
1838 if test "$enableval" = yes; then
1839 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
1840 else
1841 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
1842 fi
1843
1844else
1845
1846 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
1847 if test "x$LINE" != x ; then
1848 eval "DEFAULT_$LINE"
1849 else
1850 no_cache=1
1851 fi
1852
1853 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
1854
1855fi
1856
1857
1858 eval "$ac_cv_use_universal"
1859 if test "$no_cache" != 1; then
1860 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
1861 fi
1862
1863 if test "$wxUSE_UNIVERSAL" = yes; then
1864 echo "$ac_t""yes" 1>&6
1865 else
1866 echo "$ac_t""no" 1>&6
1867 fi
1868
10f2d63a
VZ
1869# Check whether --with-gtk or --without-gtk was given.
1870if test "${with_gtk+set}" = set; then
1871 withval="$with_gtk"
1872 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
698dcdb6 1873fi
10f2d63a
VZ
1874
1875# Check whether --with-motif or --without-motif was given.
1876if test "${with_motif+set}" = set; then
1877 withval="$with_motif"
1878 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
698dcdb6 1879fi
10f2d63a 1880
b4085ce6
GD
1881# Check whether --with-mac or --without-mac was given.
1882if test "${with_mac+set}" = set; then
1883 withval="$with_mac"
1884 wxUSE_MAC="$withval" TOOLKIT_GIVEN=1
698dcdb6 1885fi
b4085ce6 1886
10f2d63a
VZ
1887# Check whether --with-wine or --without-wine was given.
1888if test "${with_wine+set}" = set; then
1889 withval="$with_wine"
1890 wxUSE_WINE="$withval" CACHE_WINE=1 TOOLKIT_GIVEN=1
698dcdb6 1891fi
10f2d63a 1892
77e13408
RL
1893# Check whether --with-msw or --without-msw was given.
1894if test "${with_msw+set}" = set; then
1895 withval="$with_msw"
1896 wxUSE_MSW="$withval" CACHE_MSW TOOLKIT_GIVEN=1
698dcdb6 1897fi
10f2d63a 1898
e07802fc
VZ
1899# Check whether --with-pm or --without-pm was given.
1900if test "${with_pm+set}" = set; then
1901 withval="$with_pm"
1902 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
698dcdb6
VZ
1903fi
1904
1e6feb95
VZ
1905# Check whether --with-mgl or --without-mgl was given.
1906if test "${with_mgl+set}" = set; then
1907 withval="$with_mgl"
1908 wxUSE_MGL="$withval" CACHE_MGL=1 TOOLKIT_GIVEN=1
1909fi
1910
1725144d
RR
1911# Check whether --with-microwin or --without-microwin was given.
1912if test "${with_microwin+set}" = set; then
1913 withval="$with_microwin"
1914 wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
1915fi
1916
10f2d63a 1917
8168de4c
VZ
1918# Check whether --enable-gtk2 or --disable-gtk2 was given.
1919if test "${enable_gtk2+set}" = set; then
1920 enableval="$enable_gtk2"
1921 wxUSE_GTK2=1
10f2d63a 1922else
8168de4c 1923 wxUSE_GTK2=0
698dcdb6
VZ
1924fi
1925
703e0a69 1926
1e487827 1927
698dcdb6 1928 echo $ac_n "checking for --with-libpng""... $ac_c" 1>&6
4cdb0ab0 1929echo "configure:1930: checking for --with-libpng" >&5
698dcdb6
VZ
1930 no_cache=0
1931 # Check whether --with-libpng or --without-libpng was given.
b12915c1
VZ
1932if test "${with_libpng+set}" = set; then
1933 withval="$with_libpng"
698dcdb6 1934
10f2d63a 1935 if test "$withval" = yes; then
b12915c1 1936 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
422107f9 1937 elif test "$withval" = no; then
b12915c1 1938 ac_cv_use_libpng='wxUSE_LIBPNG=no'
422107f9
VZ
1939 elif test "$withval" = sys; then
1940 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
4f14bcd8
GD
1941 elif test "$withval" = builtin; then
1942 ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
422107f9 1943 else
4f14bcd8 1944 { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 1945 fi
698dcdb6 1946
10f2d63a 1947else
698dcdb6 1948
b12915c1 1949 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
10f2d63a
VZ
1950 if test "x$LINE" != x ; then
1951 eval "DEFAULT_$LINE"
1952 else
1953 no_cache=1
1954 fi
1955
b12915c1 1956 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
698dcdb6
VZ
1957
1958fi
10f2d63a
VZ
1959
1960
b12915c1 1961 eval "$ac_cv_use_libpng"
10f2d63a 1962 if test "$no_cache" != 1; then
b12915c1 1963 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
1964 fi
1965
b12915c1 1966 if test "$wxUSE_LIBPNG" = yes; then
698dcdb6 1967 echo "$ac_t""yes" 1>&6
422107f9 1968 elif test "$wxUSE_LIBPNG" = no; then
698dcdb6 1969 echo "$ac_t""no" 1>&6
422107f9 1970 elif test "$wxUSE_LIBPNG" = sys; then
698dcdb6 1971 echo "$ac_t""system version" 1>&6
4f14bcd8
GD
1972 elif test "$wxUSE_LIBPNG" = builtin; then
1973 echo "$ac_t""builtin version" 1>&6
422107f9 1974 else
4f14bcd8 1975 { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 1976 fi
698dcdb6 1977
10f2d63a 1978
698dcdb6 1979 echo $ac_n "checking for --with-libjpeg""... $ac_c" 1>&6
4cdb0ab0 1980echo "configure:1981: checking for --with-libjpeg" >&5
10f2d63a 1981 no_cache=0
698dcdb6 1982 # Check whether --with-libjpeg or --without-libjpeg was given.
b12915c1
VZ
1983if test "${with_libjpeg+set}" = set; then
1984 withval="$with_libjpeg"
698dcdb6 1985
10f2d63a 1986 if test "$withval" = yes; then
b12915c1 1987 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
422107f9 1988 elif test "$withval" = no; then
b12915c1 1989 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
422107f9
VZ
1990 elif test "$withval" = sys; then
1991 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
4f14bcd8
GD
1992 elif test "$withval" = builtin; then
1993 ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
422107f9 1994 else
4f14bcd8 1995 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 1996 fi
698dcdb6 1997
10f2d63a 1998else
698dcdb6 1999
b12915c1 2000 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
10f2d63a
VZ
2001 if test "x$LINE" != x ; then
2002 eval "DEFAULT_$LINE"
2003 else
2004 no_cache=1
2005 fi
2006
b12915c1 2007 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
698dcdb6
VZ
2008
2009fi
10f2d63a
VZ
2010
2011
b12915c1 2012 eval "$ac_cv_use_libjpeg"
10f2d63a 2013 if test "$no_cache" != 1; then
b12915c1 2014 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2015 fi
2016
b12915c1 2017 if test "$wxUSE_LIBJPEG" = yes; then
698dcdb6 2018 echo "$ac_t""yes" 1>&6
422107f9 2019 elif test "$wxUSE_LIBJPEG" = no; then
698dcdb6 2020 echo "$ac_t""no" 1>&6
422107f9 2021 elif test "$wxUSE_LIBJPEG" = sys; then
698dcdb6 2022 echo "$ac_t""system version" 1>&6
4f14bcd8
GD
2023 elif test "$wxUSE_LIBJPEG" = builtin; then
2024 echo "$ac_t""builtin version" 1>&6
422107f9 2025 else
4f14bcd8 2026 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 2027 fi
698dcdb6 2028
10f2d63a 2029
698dcdb6 2030 echo $ac_n "checking for --with-libtiff""... $ac_c" 1>&6
4cdb0ab0 2031echo "configure:2032: checking for --with-libtiff" >&5
10f2d63a 2032 no_cache=0
698dcdb6 2033 # Check whether --with-libtiff or --without-libtiff was given.
b12915c1
VZ
2034if test "${with_libtiff+set}" = set; then
2035 withval="$with_libtiff"
698dcdb6 2036
10f2d63a 2037 if test "$withval" = yes; then
b12915c1 2038 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
0dcf9893 2039 elif test "$withval" = no; then
b12915c1 2040 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
0dcf9893
VZ
2041 elif test "$withval" = sys; then
2042 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
4f14bcd8
GD
2043 elif test "$withval" = builtin; then
2044 ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
0dcf9893 2045 else
4f14bcd8 2046 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 2047 fi
698dcdb6 2048
10f2d63a 2049else
698dcdb6 2050
b12915c1 2051 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
10f2d63a
VZ
2052 if test "x$LINE" != x ; then
2053 eval "DEFAULT_$LINE"
2054 else
2055 no_cache=1
2056 fi
2057
b12915c1 2058 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
698dcdb6
VZ
2059
2060fi
10f2d63a
VZ
2061
2062
b12915c1 2063 eval "$ac_cv_use_libtiff"
10f2d63a 2064 if test "$no_cache" != 1; then
b12915c1 2065 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2066 fi
2067
b12915c1 2068 if test "$wxUSE_LIBTIFF" = yes; then
698dcdb6 2069 echo "$ac_t""yes" 1>&6
0dcf9893 2070 elif test "$wxUSE_LIBTIFF" = no; then
698dcdb6 2071 echo "$ac_t""no" 1>&6
0dcf9893 2072 elif test "$wxUSE_LIBTIFF" = sys; then
698dcdb6 2073 echo "$ac_t""system version" 1>&6
4f14bcd8
GD
2074 elif test "$wxUSE_LIBTIFF" = builtin; then
2075 echo "$ac_t""builtin version" 1>&6
0dcf9893 2076 else
4f14bcd8 2077 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 2078 fi
698dcdb6 2079
10f2d63a 2080
698dcdb6 2081 echo $ac_n "checking for --with-freetype""... $ac_c" 1>&6
4cdb0ab0 2082echo "configure:2083: checking for --with-freetype" >&5
3fed1840 2083 no_cache=0
698dcdb6 2084 # Check whether --with-freetype or --without-freetype was given.
3fed1840
RR
2085if test "${with_freetype+set}" = set; then
2086 withval="$with_freetype"
698dcdb6 2087
3fed1840
RR
2088 if test "$withval" = yes; then
2089 ac_cv_use_freetype='wxUSE_FREETYPE=yes'
2090 elif test "$withval" = no; then
2091 ac_cv_use_freetype='wxUSE_FREETYPE=no'
2092 elif test "$withval" = sys; then
2093 ac_cv_use_freetype='wxUSE_FREETYPE=sys'
4f14bcd8
GD
2094 elif test "$withval" = builtin; then
2095 ac_cv_use_freetype='wxUSE_FREETYPE=builtin'
3fed1840 2096 else
4f14bcd8 2097 { echo "configure: error: Invalid value for --with-freetype: should be yes, no, sys, or builtin" 1>&2; exit 1; }
3fed1840 2098 fi
698dcdb6 2099
3fed1840 2100else
698dcdb6 2101
3fed1840
RR
2102 LINE=`grep "wxUSE_FREETYPE" ${wx_arg_cache_file}`
2103 if test "x$LINE" != x ; then
2104 eval "DEFAULT_$LINE"
2105 else
2106 no_cache=1
2107 fi
2108
2109 ac_cv_use_freetype='wxUSE_FREETYPE='$DEFAULT_wxUSE_FREETYPE
698dcdb6
VZ
2110
2111fi
3fed1840
RR
2112
2113
2114 eval "$ac_cv_use_freetype"
2115 if test "$no_cache" != 1; then
2116 echo $ac_cv_use_freetype >> ${wx_arg_cache_file}.tmp
2117 fi
2118
2119 if test "$wxUSE_FREETYPE" = yes; then
698dcdb6 2120 echo "$ac_t""yes" 1>&6
3fed1840 2121 elif test "$wxUSE_FREETYPE" = no; then
698dcdb6 2122 echo "$ac_t""no" 1>&6
3fed1840 2123 elif test "$wxUSE_FREETYPE" = sys; then
698dcdb6 2124 echo "$ac_t""system version" 1>&6
4f14bcd8
GD
2125 elif test "$wxUSE_FREETYPE" = builtin; then
2126 echo "$ac_t""builtin version" 1>&6
3fed1840 2127 else
4f14bcd8 2128 { echo "configure: error: Invalid value for --with-freetype: should be yes, no, sys, or builtin" 1>&2; exit 1; }
3fed1840 2129 fi
698dcdb6 2130
3fed1840 2131
698dcdb6 2132 echo $ac_n "checking for --with-opengl""... $ac_c" 1>&6
4cdb0ab0 2133echo "configure:2134: checking for --with-opengl" >&5
10f2d63a 2134 no_cache=0
698dcdb6 2135 # Check whether --with-opengl or --without-opengl was given.
b12915c1
VZ
2136if test "${with_opengl+set}" = set; then
2137 withval="$with_opengl"
698dcdb6 2138
10f2d63a 2139 if test "$withval" = yes; then
b12915c1 2140 ac_cv_use_opengl='wxUSE_OPENGL=yes'
10f2d63a 2141 else
b12915c1 2142 ac_cv_use_opengl='wxUSE_OPENGL=no'
10f2d63a 2143 fi
698dcdb6 2144
10f2d63a 2145else
698dcdb6 2146
b12915c1 2147 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
10f2d63a
VZ
2148 if test "x$LINE" != x ; then
2149 eval "DEFAULT_$LINE"
2150 else
2151 no_cache=1
2152 fi
2153
b12915c1 2154 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
698dcdb6
VZ
2155
2156fi
10f2d63a
VZ
2157
2158
b12915c1 2159 eval "$ac_cv_use_opengl"
10f2d63a 2160 if test "$no_cache" != 1; then
b12915c1 2161 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2162 fi
2163
b12915c1 2164 if test "$wxUSE_OPENGL" = yes; then
698dcdb6 2165 echo "$ac_t""yes" 1>&6
10f2d63a 2166 else
698dcdb6 2167 echo "$ac_t""no" 1>&6
10f2d63a 2168 fi
698dcdb6 2169
10f2d63a 2170
b12915c1
VZ
2171fi
2172
1e487827 2173
698dcdb6 2174 echo $ac_n "checking for --with-dmalloc""... $ac_c" 1>&6
4cdb0ab0 2175echo "configure:2176: checking for --with-dmalloc" >&5
698dcdb6
VZ
2176 no_cache=0
2177 # Check whether --with-dmalloc or --without-dmalloc was given.
b12915c1
VZ
2178if test "${with_dmalloc+set}" = set; then
2179 withval="$with_dmalloc"
698dcdb6 2180
c7a2bf27 2181 if test "$withval" = yes; then
b12915c1 2182 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
c7a2bf27 2183 else
b12915c1 2184 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
c7a2bf27 2185 fi
698dcdb6 2186
c7a2bf27 2187else
698dcdb6 2188
b12915c1 2189 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
c7a2bf27
RR
2190 if test "x$LINE" != x ; then
2191 eval "DEFAULT_$LINE"
2192 else
2193 no_cache=1
2194 fi
2195
b12915c1 2196 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
698dcdb6
VZ
2197
2198fi
c7a2bf27
RR
2199
2200
b12915c1 2201 eval "$ac_cv_use_dmalloc"
c7a2bf27 2202 if test "$no_cache" != 1; then
b12915c1 2203 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
c7a2bf27
RR
2204 fi
2205
b12915c1 2206 if test "$wxUSE_DMALLOC" = yes; then
698dcdb6 2207 echo "$ac_t""yes" 1>&6
c7a2bf27 2208 else
698dcdb6 2209 echo "$ac_t""no" 1>&6
c7a2bf27 2210 fi
698dcdb6 2211
c7a2bf27 2212
3e44f09d 2213 echo $ac_n "checking for --with-regex""... $ac_c" 1>&6
4cdb0ab0 2214echo "configure:2215: checking for --with-regex" >&5
3e44f09d
VZ
2215 no_cache=0
2216 # Check whether --with-regex or --without-regex was given.
2217if test "${with_regex+set}" = set; then
2218 withval="$with_regex"
2219
2220 if test "$withval" = yes; then
2221 ac_cv_use_regex='wxUSE_REGEX=yes'
2222 elif test "$withval" = no; then
2223 ac_cv_use_regex='wxUSE_REGEX=no'
2224 elif test "$withval" = sys; then
2225 ac_cv_use_regex='wxUSE_REGEX=sys'
4f14bcd8
GD
2226 elif test "$withval" = builtin; then
2227 ac_cv_use_regex='wxUSE_REGEX=builtin'
3e44f09d 2228 else
4f14bcd8 2229 { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; }
3e44f09d
VZ
2230 fi
2231
2232else
2233
2234 LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
2235 if test "x$LINE" != x ; then
2236 eval "DEFAULT_$LINE"
2237 else
2238 no_cache=1
2239 fi
2240
2241 ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
2242
2243fi
2244
2245
2246 eval "$ac_cv_use_regex"
2247 if test "$no_cache" != 1; then
2248 echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
2249 fi
2250
2251 if test "$wxUSE_REGEX" = yes; then
2252 echo "$ac_t""yes" 1>&6
2253 elif test "$wxUSE_REGEX" = no; then
2254 echo "$ac_t""no" 1>&6
2255 elif test "$wxUSE_REGEX" = sys; then
2256 echo "$ac_t""system version" 1>&6
4f14bcd8
GD
2257 elif test "$wxUSE_REGEX" = builtin; then
2258 echo "$ac_t""builtin version" 1>&6
3e44f09d 2259 else
4f14bcd8 2260 { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; }
3e44f09d
VZ
2261 fi
2262
2263
698dcdb6 2264 echo $ac_n "checking for --with-zlib""... $ac_c" 1>&6
4cdb0ab0 2265echo "configure:2266: checking for --with-zlib" >&5
10f2d63a 2266 no_cache=0
698dcdb6 2267 # Check whether --with-zlib or --without-zlib was given.
b12915c1
VZ
2268if test "${with_zlib+set}" = set; then
2269 withval="$with_zlib"
698dcdb6 2270
10f2d63a 2271 if test "$withval" = yes; then
b12915c1 2272 ac_cv_use_zlib='wxUSE_ZLIB=yes'
422107f9 2273 elif test "$withval" = no; then
b12915c1 2274 ac_cv_use_zlib='wxUSE_ZLIB=no'
422107f9
VZ
2275 elif test "$withval" = sys; then
2276 ac_cv_use_zlib='wxUSE_ZLIB=sys'
4f14bcd8
GD
2277 elif test "$withval" = builtin; then
2278 ac_cv_use_zlib='wxUSE_ZLIB=builtin'
422107f9 2279 else
4f14bcd8 2280 { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 2281 fi
698dcdb6 2282
10f2d63a 2283else
698dcdb6 2284
b12915c1 2285 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
10f2d63a
VZ
2286 if test "x$LINE" != x ; then
2287 eval "DEFAULT_$LINE"
2288 else
2289 no_cache=1
2290 fi
2291
b12915c1 2292 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
698dcdb6
VZ
2293
2294fi
10f2d63a
VZ
2295
2296
b12915c1 2297 eval "$ac_cv_use_zlib"
10f2d63a 2298 if test "$no_cache" != 1; then
b12915c1 2299 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2300 fi
2301
b12915c1 2302 if test "$wxUSE_ZLIB" = yes; then
698dcdb6 2303 echo "$ac_t""yes" 1>&6
422107f9 2304 elif test "$wxUSE_ZLIB" = no; then
698dcdb6 2305 echo "$ac_t""no" 1>&6
422107f9 2306 elif test "$wxUSE_ZLIB" = sys; then
698dcdb6 2307 echo "$ac_t""system version" 1>&6
4f14bcd8
GD
2308 elif test "$wxUSE_ZLIB" = builtin; then
2309 echo "$ac_t""builtin version" 1>&6
422107f9 2310 else
4f14bcd8 2311 { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 2312 fi
698dcdb6 2313
10f2d63a 2314
698dcdb6 2315 echo $ac_n "checking for --with-odbc""... $ac_c" 1>&6
4cdb0ab0 2316echo "configure:2317: checking for --with-odbc" >&5
10f2d63a 2317 no_cache=0
698dcdb6 2318 # Check whether --with-odbc or --without-odbc was given.
10f2d63a
VZ
2319if test "${with_odbc+set}" = set; then
2320 withval="$with_odbc"
698dcdb6 2321
10f2d63a
VZ
2322 if test "$withval" = yes; then
2323 ac_cv_use_odbc='wxUSE_ODBC=yes'
2324 else
2325 ac_cv_use_odbc='wxUSE_ODBC=no'
2326 fi
698dcdb6 2327
10f2d63a 2328else
698dcdb6 2329
10f2d63a
VZ
2330 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
2331 if test "x$LINE" != x ; then
2332 eval "DEFAULT_$LINE"
2333 else
2334 no_cache=1
2335 fi
2336
2337 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
698dcdb6
VZ
2338
2339fi
10f2d63a
VZ
2340
2341
2342 eval "$ac_cv_use_odbc"
2343 if test "$no_cache" != 1; then
2344 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
2345 fi
2346
2347 if test "$wxUSE_ODBC" = yes; then
698dcdb6 2348 echo "$ac_t""yes" 1>&6
10f2d63a 2349 else
698dcdb6 2350 echo "$ac_t""no" 1>&6
10f2d63a 2351 fi
698dcdb6
VZ
2352
2353
10f2d63a 2354
698dcdb6 2355
698dcdb6 2356 echo $ac_n "checking for --enable-shared""... $ac_c" 1>&6
4cdb0ab0 2357echo "configure:2358: checking for --enable-shared" >&5
10f2d63a
VZ
2358 no_cache=0
2359 # Check whether --enable-shared or --disable-shared was given.
2360if test "${enable_shared+set}" = set; then
2361 enableval="$enable_shared"
698dcdb6 2362
10f2d63a
VZ
2363 if test "$enableval" = yes; then
2364 ac_cv_use_shared='wxUSE_SHARED=yes'
2365 else
2366 ac_cv_use_shared='wxUSE_SHARED=no'
2367 fi
698dcdb6 2368
10f2d63a 2369else
698dcdb6 2370
10f2d63a
VZ
2371 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
2372 if test "x$LINE" != x ; then
2373 eval "DEFAULT_$LINE"
2374 else
2375 no_cache=1
2376 fi
2377
2378 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
698dcdb6
VZ
2379
2380fi
10f2d63a
VZ
2381
2382
2383 eval "$ac_cv_use_shared"
2384 if test "$no_cache" != 1; then
2385 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
2386 fi
2387
2388 if test "$wxUSE_SHARED" = yes; then
698dcdb6 2389 echo "$ac_t""yes" 1>&6
10f2d63a 2390 else
698dcdb6 2391 echo "$ac_t""no" 1>&6
10f2d63a 2392 fi
698dcdb6 2393
10f2d63a 2394
3a922bb4 2395 echo $ac_n "checking for --enable-soname""... $ac_c" 1>&6
4cdb0ab0 2396echo "configure:2397: checking for --enable-soname" >&5
00cf1208 2397 no_cache=0
3a922bb4
RL
2398 # Check whether --enable-soname or --disable-soname was given.
2399if test "${enable_soname+set}" = set; then
2400 enableval="$enable_soname"
698dcdb6 2401
00cf1208 2402 if test "$enableval" = yes; then
3a922bb4 2403 ac_cv_use_soname='wxUSE_SONAME=yes'
00cf1208 2404 else
3a922bb4 2405 ac_cv_use_soname='wxUSE_SONAME=no'
00cf1208 2406 fi
698dcdb6 2407
00cf1208 2408else
698dcdb6 2409
3a922bb4 2410 LINE=`grep "wxUSE_SONAME" ${wx_arg_cache_file}`
00cf1208
RR
2411 if test "x$LINE" != x ; then
2412 eval "DEFAULT_$LINE"
2413 else
2414 no_cache=1
2415 fi
2416
3a922bb4 2417 ac_cv_use_soname='wxUSE_SONAME='$DEFAULT_wxUSE_SONAME
698dcdb6
VZ
2418
2419fi
00cf1208
RR
2420
2421
3a922bb4 2422 eval "$ac_cv_use_soname"
00cf1208 2423 if test "$no_cache" != 1; then
3a922bb4 2424 echo $ac_cv_use_soname >> ${wx_arg_cache_file}.tmp
00cf1208
RR
2425 fi
2426
3a922bb4 2427 if test "$wxUSE_SONAME" = yes; then
698dcdb6 2428 echo "$ac_t""yes" 1>&6
00cf1208 2429 else
698dcdb6 2430 echo "$ac_t""no" 1>&6
00cf1208 2431 fi
698dcdb6 2432
00cf1208 2433
698dcdb6 2434 echo $ac_n "checking for --enable-optimise""... $ac_c" 1>&6
4cdb0ab0 2435echo "configure:2436: checking for --enable-optimise" >&5
10f2d63a
VZ
2436 no_cache=0
2437 # Check whether --enable-optimise or --disable-optimise was given.
2438if test "${enable_optimise+set}" = set; then
2439 enableval="$enable_optimise"
698dcdb6 2440
10f2d63a
VZ
2441 if test "$enableval" = yes; then
2442 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
2443 else
2444 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
2445 fi
698dcdb6 2446
10f2d63a 2447else
698dcdb6 2448
10f2d63a
VZ
2449 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
2450 if test "x$LINE" != x ; then
2451 eval "DEFAULT_$LINE"
2452 else
2453 no_cache=1
2454 fi
2455
2456 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
698dcdb6
VZ
2457
2458fi
10f2d63a
VZ
2459
2460
2461 eval "$ac_cv_use_optimise"
2462 if test "$no_cache" != 1; then
2463 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
2464 fi
2465
2466 if test "$wxUSE_OPTIMISE" = yes; then
698dcdb6 2467 echo "$ac_t""yes" 1>&6
10f2d63a 2468 else
698dcdb6 2469 echo "$ac_t""no" 1>&6
10f2d63a 2470 fi
698dcdb6 2471
10f2d63a 2472
698dcdb6 2473 echo $ac_n "checking for --enable-debug""... $ac_c" 1>&6
4cdb0ab0 2474echo "configure:2475: checking for --enable-debug" >&5
10f2d63a
VZ
2475 no_cache=0
2476 # Check whether --enable-debug or --disable-debug was given.
2477if test "${enable_debug+set}" = set; then
2478 enableval="$enable_debug"
698dcdb6 2479
10f2d63a
VZ
2480 if test "$enableval" = yes; then
2481 ac_cv_use_debug='wxUSE_DEBUG=yes'
2482 else
2483 ac_cv_use_debug='wxUSE_DEBUG=no'
2484 fi
698dcdb6 2485
10f2d63a 2486else
698dcdb6 2487
10f2d63a
VZ
2488 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
2489 if test "x$LINE" != x ; then
2490 eval "DEFAULT_$LINE"
2491 else
2492 no_cache=1
2493 fi
2494
2495 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
698dcdb6
VZ
2496
2497fi
10f2d63a
VZ
2498
2499
2500 eval "$ac_cv_use_debug"
2501 if test "$no_cache" != 1; then
2502 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
2503 fi
2504
2505 if test "$wxUSE_DEBUG" = yes; then
698dcdb6 2506 echo "$ac_t""yes" 1>&6
10f2d63a 2507 else
698dcdb6 2508 echo "$ac_t""no" 1>&6
10f2d63a 2509 fi
698dcdb6 2510
10f2d63a 2511
683dccda
GD
2512
2513 echo $ac_n "checking for --enable-precomp""... $ac_c" 1>&6
4cdb0ab0 2514echo "configure:2515: checking for --enable-precomp" >&5
683dccda
GD
2515 no_cache=0
2516 # Check whether --enable-precomp or --disable-precomp was given.
2517if test "${enable_precomp+set}" = set; then
2518 enableval="$enable_precomp"
2519
2520 if test "$enableval" = yes; then
2521 ac_cv_use_precomp='wxUSE_PRECOMP=yes'
2522 else
2523 ac_cv_use_precomp='wxUSE_PRECOMP=no'
2524 fi
2525
2526else
2527
2528 LINE=`grep "wxUSE_PRECOMP" ${wx_arg_cache_file}`
2529 if test "x$LINE" != x ; then
2530 eval "DEFAULT_$LINE"
2531 else
2532 no_cache=1
2533 fi
2534
2535 ac_cv_use_precomp='wxUSE_PRECOMP='$DEFAULT_wxUSE_PRECOMP
2536
2537fi
2538
2539
2540 eval "$ac_cv_use_precomp"
2541 if test "$no_cache" != 1; then
2542 echo $ac_cv_use_precomp >> ${wx_arg_cache_file}.tmp
2543 fi
2544
2545 if test "$wxUSE_PRECOMP" = yes; then
2546 echo "$ac_t""yes" 1>&6
2547 else
2548 echo "$ac_t""no" 1>&6
2549 fi
2550
2551
10f2d63a
VZ
2552if test "$wxUSE_DEBUG" = "yes"; then
2553 DEFAULT_wxUSE_DEBUG_FLAG=yes
2554 DEFAULT_wxUSE_DEBUG_INFO=yes
2555elif test "$wxUSE_DEBUG" = "no"; then
2556 DEFAULT_wxUSE_DEBUG_FLAG=no
2557 DEFAULT_wxUSE_DEBUG_INFO=no
2558fi
2559
698dcdb6
VZ
2560
2561 echo $ac_n "checking for --enable-debug_flag""... $ac_c" 1>&6
4cdb0ab0 2562echo "configure:2563: checking for --enable-debug_flag" >&5
10f2d63a
VZ
2563 no_cache=0
2564 # Check whether --enable-debug_flag or --disable-debug_flag was given.
2565if test "${enable_debug_flag+set}" = set; then
2566 enableval="$enable_debug_flag"
698dcdb6 2567
10f2d63a
VZ
2568 if test "$enableval" = yes; then
2569 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
2570 else
2571 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
2572 fi
698dcdb6 2573
10f2d63a 2574else
698dcdb6 2575
10f2d63a
VZ
2576 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
2577 if test "x$LINE" != x ; then
2578 eval "DEFAULT_$LINE"
2579 else
2580 no_cache=1
2581 fi
2582
2583 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
698dcdb6
VZ
2584
2585fi
10f2d63a
VZ
2586
2587
2588 eval "$ac_cv_use_debug_flag"
2589 if test "$no_cache" != 1; then
2590 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
2591 fi
2592
2593 if test "$wxUSE_DEBUG_FLAG" = yes; then
698dcdb6 2594 echo "$ac_t""yes" 1>&6
10f2d63a 2595 else
698dcdb6 2596 echo "$ac_t""no" 1>&6
10f2d63a 2597 fi
698dcdb6 2598
10f2d63a 2599
698dcdb6 2600 echo $ac_n "checking for --enable-debug_info""... $ac_c" 1>&6
4cdb0ab0 2601echo "configure:2602: checking for --enable-debug_info" >&5
10f2d63a
VZ
2602 no_cache=0
2603 # Check whether --enable-debug_info or --disable-debug_info was given.
2604if test "${enable_debug_info+set}" = set; then
2605 enableval="$enable_debug_info"
698dcdb6 2606
10f2d63a
VZ
2607 if test "$enableval" = yes; then
2608 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
2609 else
2610 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
2611 fi
698dcdb6 2612
10f2d63a 2613else
698dcdb6 2614
10f2d63a
VZ
2615 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
2616 if test "x$LINE" != x ; then
2617 eval "DEFAULT_$LINE"
2618 else
2619 no_cache=1
2620 fi
2621
2622 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
698dcdb6
VZ
2623
2624fi
10f2d63a
VZ
2625
2626
2627 eval "$ac_cv_use_debug_info"
2628 if test "$no_cache" != 1; then
2629 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
2630 fi
2631
2632 if test "$wxUSE_DEBUG_INFO" = yes; then
698dcdb6 2633 echo "$ac_t""yes" 1>&6
10f2d63a 2634 else
698dcdb6 2635 echo "$ac_t""no" 1>&6
10f2d63a 2636 fi
698dcdb6 2637
10f2d63a 2638
698dcdb6 2639 echo $ac_n "checking for --enable-debug_gdb""... $ac_c" 1>&6
4cdb0ab0 2640echo "configure:2641: checking for --enable-debug_gdb" >&5
10f2d63a
VZ
2641 no_cache=0
2642 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
2643if test "${enable_debug_gdb+set}" = set; then
2644 enableval="$enable_debug_gdb"
698dcdb6 2645
10f2d63a
VZ
2646 if test "$enableval" = yes; then
2647 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
2648 else
2649 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
2650 fi
698dcdb6 2651
10f2d63a 2652else
698dcdb6 2653
10f2d63a
VZ
2654 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
2655 if test "x$LINE" != x ; then
2656 eval "DEFAULT_$LINE"
2657 else
2658 no_cache=1
2659 fi
2660
2661 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
698dcdb6
VZ
2662
2663fi
10f2d63a
VZ
2664
2665
2666 eval "$ac_cv_use_debug_gdb"
2667 if test "$no_cache" != 1; then
2668 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
2669 fi
2670
2671 if test "$wxUSE_DEBUG_GDB" = yes; then
698dcdb6 2672 echo "$ac_t""yes" 1>&6
10f2d63a 2673 else
698dcdb6 2674 echo "$ac_t""no" 1>&6
10f2d63a 2675 fi
698dcdb6 2676
10f2d63a 2677
698dcdb6 2678 echo $ac_n "checking for --enable-debug_cntxt""... $ac_c" 1>&6
4cdb0ab0 2679echo "configure:2680: checking for --enable-debug_cntxt" >&5
10f2d63a
VZ
2680 no_cache=0
2681 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
2682if test "${enable_debug_cntxt+set}" = set; then
2683 enableval="$enable_debug_cntxt"
698dcdb6 2684
10f2d63a
VZ
2685 if test "$enableval" = yes; then
2686 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
2687 else
2688 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
2689 fi
698dcdb6 2690
10f2d63a 2691else
698dcdb6 2692
10f2d63a
VZ
2693 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
2694 if test "x$LINE" != x ; then
2695 eval "DEFAULT_$LINE"
2696 else
2697 no_cache=1
2698 fi
2699
2700 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
698dcdb6
VZ
2701
2702fi
10f2d63a
VZ
2703
2704
2705 eval "$ac_cv_use_debug_cntxt"
2706 if test "$no_cache" != 1; then
2707 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
2708 fi
2709
2710 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
698dcdb6 2711 echo "$ac_t""yes" 1>&6
10f2d63a 2712 else
698dcdb6 2713 echo "$ac_t""no" 1>&6
10f2d63a 2714 fi
698dcdb6 2715
10f2d63a 2716
698dcdb6 2717 echo $ac_n "checking for --enable-mem_tracing""... $ac_c" 1>&6
4cdb0ab0 2718echo "configure:2719: checking for --enable-mem_tracing" >&5
10f2d63a
VZ
2719 no_cache=0
2720 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
2721if test "${enable_mem_tracing+set}" = set; then
2722 enableval="$enable_mem_tracing"
698dcdb6 2723
10f2d63a
VZ
2724 if test "$enableval" = yes; then
2725 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
2726 else
2727 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
2728 fi
698dcdb6 2729
10f2d63a 2730else
698dcdb6 2731
10f2d63a
VZ
2732 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
2733 if test "x$LINE" != x ; then
2734 eval "DEFAULT_$LINE"
2735 else
2736 no_cache=1
2737 fi
2738
2739 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
698dcdb6
VZ
2740
2741fi
10f2d63a
VZ
2742
2743
2744 eval "$ac_cv_use_mem_tracing"
2745 if test "$no_cache" != 1; then
2746 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
2747 fi
2748
2749 if test "$wxUSE_MEM_TRACING" = yes; then
698dcdb6 2750 echo "$ac_t""yes" 1>&6
10f2d63a 2751 else
698dcdb6 2752 echo "$ac_t""no" 1>&6
10f2d63a 2753 fi
698dcdb6 2754
10f2d63a 2755
698dcdb6 2756 echo $ac_n "checking for --enable-profile""... $ac_c" 1>&6
4cdb0ab0 2757echo "configure:2758: checking for --enable-profile" >&5
10f2d63a
VZ
2758 no_cache=0
2759 # Check whether --enable-profile or --disable-profile was given.
2760if test "${enable_profile+set}" = set; then
2761 enableval="$enable_profile"
698dcdb6 2762
10f2d63a
VZ
2763 if test "$enableval" = yes; then
2764 ac_cv_use_profile='wxUSE_PROFILE=yes'
2765 else
2766 ac_cv_use_profile='wxUSE_PROFILE=no'
2767 fi
698dcdb6 2768
10f2d63a 2769else
698dcdb6 2770
10f2d63a
VZ
2771 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
2772 if test "x$LINE" != x ; then
2773 eval "DEFAULT_$LINE"
2774 else
2775 no_cache=1
2776 fi
2777
2778 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
698dcdb6
VZ
2779
2780fi
10f2d63a
VZ
2781
2782
2783 eval "$ac_cv_use_profile"
2784 if test "$no_cache" != 1; then
2785 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
2786 fi
2787
2788 if test "$wxUSE_PROFILE" = yes; then
698dcdb6 2789 echo "$ac_t""yes" 1>&6
10f2d63a 2790 else
698dcdb6 2791 echo "$ac_t""no" 1>&6
10f2d63a 2792 fi
698dcdb6 2793
10f2d63a 2794
698dcdb6 2795 echo $ac_n "checking for --enable-no_rtti""... $ac_c" 1>&6
4cdb0ab0 2796echo "configure:2797: checking for --enable-no_rtti" >&5
10f2d63a
VZ
2797 no_cache=0
2798 # Check whether --enable-no_rtti or --disable-no_rtti was given.
2799if test "${enable_no_rtti+set}" = set; then
2800 enableval="$enable_no_rtti"
698dcdb6 2801
10f2d63a
VZ
2802 if test "$enableval" = yes; then
2803 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
2804 else
2805 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
2806 fi
698dcdb6 2807
10f2d63a 2808else
698dcdb6 2809
10f2d63a
VZ
2810 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
2811 if test "x$LINE" != x ; then
2812 eval "DEFAULT_$LINE"
2813 else
2814 no_cache=1
2815 fi
2816
2817 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
698dcdb6
VZ
2818
2819fi
10f2d63a
VZ
2820
2821
2822 eval "$ac_cv_use_no_rtti"
2823 if test "$no_cache" != 1; then
2824 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
2825 fi
2826
2827 if test "$wxUSE_NO_RTTI" = yes; then
698dcdb6 2828 echo "$ac_t""yes" 1>&6
10f2d63a 2829 else
698dcdb6 2830 echo "$ac_t""no" 1>&6
10f2d63a 2831 fi
698dcdb6 2832
10f2d63a 2833
698dcdb6 2834 echo $ac_n "checking for --enable-no_exceptions""... $ac_c" 1>&6
4cdb0ab0 2835echo "configure:2836: checking for --enable-no_exceptions" >&5
10f2d63a
VZ
2836 no_cache=0
2837 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
2838if test "${enable_no_exceptions+set}" = set; then
2839 enableval="$enable_no_exceptions"
698dcdb6 2840
10f2d63a
VZ
2841 if test "$enableval" = yes; then
2842 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
2843 else
2844 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
2845 fi
698dcdb6 2846
10f2d63a 2847else
698dcdb6 2848
10f2d63a
VZ
2849 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
2850 if test "x$LINE" != x ; then
2851 eval "DEFAULT_$LINE"
2852 else
2853 no_cache=1
2854 fi
2855
2856 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
698dcdb6
VZ
2857
2858fi
10f2d63a
VZ
2859
2860
2861 eval "$ac_cv_use_no_exceptions"
2862 if test "$no_cache" != 1; then
2863 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
2864 fi
2865
2866 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
698dcdb6 2867 echo "$ac_t""yes" 1>&6
10f2d63a 2868 else
698dcdb6 2869 echo "$ac_t""no" 1>&6
10f2d63a 2870 fi
698dcdb6 2871
10f2d63a 2872
698dcdb6 2873 echo $ac_n "checking for --enable-permissive""... $ac_c" 1>&6
4cdb0ab0 2874echo "configure:2875: checking for --enable-permissive" >&5
10f2d63a
VZ
2875 no_cache=0
2876 # Check whether --enable-permissive or --disable-permissive was given.
2877if test "${enable_permissive+set}" = set; then
2878 enableval="$enable_permissive"
698dcdb6 2879
10f2d63a
VZ
2880 if test "$enableval" = yes; then
2881 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
2882 else
2883 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
2884 fi
698dcdb6 2885
10f2d63a 2886else
698dcdb6 2887
10f2d63a
VZ
2888 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
2889 if test "x$LINE" != x ; then
2890 eval "DEFAULT_$LINE"
2891 else
2892 no_cache=1
2893 fi
2894
2895 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
698dcdb6
VZ
2896
2897fi
10f2d63a
VZ
2898
2899
2900 eval "$ac_cv_use_permissive"
2901 if test "$no_cache" != 1; then
2902 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
2903 fi
2904
2905 if test "$wxUSE_PERMISSIVE" = yes; then
698dcdb6 2906 echo "$ac_t""yes" 1>&6
10f2d63a 2907 else
698dcdb6 2908 echo "$ac_t""no" 1>&6
10f2d63a 2909 fi
698dcdb6 2910
10f2d63a 2911
698dcdb6 2912 echo $ac_n "checking for --enable-no_deps""... $ac_c" 1>&6
4cdb0ab0 2913echo "configure:2914: checking for --enable-no_deps" >&5
10f2d63a
VZ
2914 no_cache=0
2915 # Check whether --enable-no_deps or --disable-no_deps was given.
2916if test "${enable_no_deps+set}" = set; then
2917 enableval="$enable_no_deps"
698dcdb6 2918
10f2d63a
VZ
2919 if test "$enableval" = yes; then
2920 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
2921 else
2922 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
2923 fi
698dcdb6 2924
10f2d63a 2925else
698dcdb6 2926
10f2d63a
VZ
2927 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
2928 if test "x$LINE" != x ; then
2929 eval "DEFAULT_$LINE"
2930 else
2931 no_cache=1
2932 fi
2933
2934 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
698dcdb6
VZ
2935
2936fi
10f2d63a
VZ
2937
2938
2939 eval "$ac_cv_use_no_deps"
2940 if test "$no_cache" != 1; then
2941 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
2942 fi
2943
2944 if test "$wxUSE_NO_DEPS" = yes; then
698dcdb6 2945 echo "$ac_t""yes" 1>&6
10f2d63a 2946 else
698dcdb6 2947 echo "$ac_t""no" 1>&6
10f2d63a 2948 fi
698dcdb6
VZ
2949
2950
10f2d63a 2951
54276ccf 2952 echo $ac_n "checking for --enable-compat20""... $ac_c" 1>&6
4cdb0ab0 2953echo "configure:2954: checking for --enable-compat20" >&5
54276ccf
VZ
2954 no_cache=0
2955 # Check whether --enable-compat20 or --disable-compat20 was given.
2956if test "${enable_compat20+set}" = set; then
2957 enableval="$enable_compat20"
2958
2959 if test "$enableval" = yes; then
2960 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=yes'
2961 else
2962 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=no'
2963 fi
2964
2965else
2966
2967 LINE=`grep "WXWIN_COMPATIBILITY_2" ${wx_arg_cache_file}`
2968 if test "x$LINE" != x ; then
2969 eval "DEFAULT_$LINE"
2970 else
2971 no_cache=1
2972 fi
2973
2974 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2='$DEFAULT_WXWIN_COMPATIBILITY_2
2975
2976fi
2977
2978
2979 eval "$ac_cv_use_compat20"
2980 if test "$no_cache" != 1; then
2981 echo $ac_cv_use_compat20 >> ${wx_arg_cache_file}.tmp
2982 fi
2983
2984 if test "$WXWIN_COMPATIBILITY_2" = yes; then
2985 echo "$ac_t""yes" 1>&6
2986 else
2987 echo "$ac_t""no" 1>&6
2988 fi
2989
2990
2991 echo $ac_n "checking for --enable-compat22""... $ac_c" 1>&6
4cdb0ab0 2992echo "configure:2993: checking for --enable-compat22" >&5
54276ccf
VZ
2993 no_cache=0
2994 # Check whether --enable-compat22 or --disable-compat22 was given.
2995if test "${enable_compat22+set}" = set; then
2996 enableval="$enable_compat22"
2997
2998 if test "$enableval" = yes; then
2999 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes'
3000 else
3001 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no'
3002 fi
3003
3004else
3005
3006 LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}`
3007 if test "x$LINE" != x ; then
3008 eval "DEFAULT_$LINE"
3009 else
3010 no_cache=1
3011 fi
3012
3013 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2
3014
3015fi
3016
3017
3018 eval "$ac_cv_use_compat22"
3019 if test "$no_cache" != 1; then
3020 echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp
3021 fi
3022
3023 if test "$WXWIN_COMPATIBILITY_2_2" = yes; then
3024 echo "$ac_t""yes" 1>&6
3025 else
3026 echo "$ac_t""no" 1>&6
3027 fi
3028
3029
3030
698dcdb6
VZ
3031
3032 echo $ac_n "checking for --enable-intl""... $ac_c" 1>&6
4cdb0ab0 3033echo "configure:3034: checking for --enable-intl" >&5
10f2d63a
VZ
3034 no_cache=0
3035 # Check whether --enable-intl or --disable-intl was given.
3036if test "${enable_intl+set}" = set; then
3037 enableval="$enable_intl"
698dcdb6 3038
10f2d63a
VZ
3039 if test "$enableval" = yes; then
3040 ac_cv_use_intl='wxUSE_INTL=yes'
3041 else
3042 ac_cv_use_intl='wxUSE_INTL=no'
3043 fi
698dcdb6 3044
10f2d63a 3045else
698dcdb6 3046
10f2d63a
VZ
3047 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
3048 if test "x$LINE" != x ; then
3049 eval "DEFAULT_$LINE"
3050 else
3051 no_cache=1
3052 fi
3053
3054 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
698dcdb6
VZ
3055
3056fi
10f2d63a
VZ
3057
3058
3059 eval "$ac_cv_use_intl"
3060 if test "$no_cache" != 1; then
3061 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
3062 fi
3063
3064 if test "$wxUSE_INTL" = yes; then
698dcdb6 3065 echo "$ac_t""yes" 1>&6
10f2d63a 3066 else
698dcdb6 3067 echo "$ac_t""no" 1>&6
10f2d63a 3068 fi
698dcdb6 3069
10f2d63a 3070
698dcdb6 3071 echo $ac_n "checking for --enable-config""... $ac_c" 1>&6
4cdb0ab0 3072echo "configure:3073: checking for --enable-config" >&5
10f2d63a
VZ
3073 no_cache=0
3074 # Check whether --enable-config or --disable-config was given.
3075if test "${enable_config+set}" = set; then
3076 enableval="$enable_config"
698dcdb6 3077
10f2d63a
VZ
3078 if test "$enableval" = yes; then
3079 ac_cv_use_config='wxUSE_CONFIG=yes'
3080 else
3081 ac_cv_use_config='wxUSE_CONFIG=no'
3082 fi
698dcdb6 3083
10f2d63a 3084else
698dcdb6 3085
10f2d63a
VZ
3086 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
3087 if test "x$LINE" != x ; then
3088 eval "DEFAULT_$LINE"
3089 else
3090 no_cache=1
3091 fi
3092
3093 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
698dcdb6
VZ
3094
3095fi
10f2d63a
VZ
3096
3097
3098 eval "$ac_cv_use_config"
3099 if test "$no_cache" != 1; then
3100 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
3101 fi
3102
3103 if test "$wxUSE_CONFIG" = yes; then
698dcdb6 3104 echo "$ac_t""yes" 1>&6
10f2d63a 3105 else
698dcdb6 3106 echo "$ac_t""no" 1>&6
10f2d63a 3107 fi
698dcdb6
VZ
3108
3109
b12915c1 3110
a1622950 3111 echo $ac_n "checking for --enable-protocols""... $ac_c" 1>&6
4cdb0ab0 3112echo "configure:3113: checking for --enable-protocols" >&5
a1622950
VZ
3113 no_cache=0
3114 # Check whether --enable-protocols or --disable-protocols was given.
3115if test "${enable_protocols+set}" = set; then
3116 enableval="$enable_protocols"
3117
3118 if test "$enableval" = yes; then
3119 ac_cv_use_protocols='wxUSE_PROTOCOL=yes'
3120 else
3121 ac_cv_use_protocols='wxUSE_PROTOCOL=no'
3122 fi
3123
3124else
3125
3126 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
3127 if test "x$LINE" != x ; then
3128 eval "DEFAULT_$LINE"
3129 else
3130 no_cache=1
3131 fi
3132
3133 ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
3134
3135fi
3136
3137
3138 eval "$ac_cv_use_protocols"
3139 if test "$no_cache" != 1; then
3140 echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp
3141 fi
3142
3143 if test "$wxUSE_PROTOCOL" = yes; then
3144 echo "$ac_t""yes" 1>&6
3145 else
3146 echo "$ac_t""no" 1>&6
3147 fi
3148
3149
3150 echo $ac_n "checking for --enable-ftp""... $ac_c" 1>&6
4cdb0ab0 3151echo "configure:3152: checking for --enable-ftp" >&5
a1622950
VZ
3152 no_cache=0
3153 # Check whether --enable-ftp or --disable-ftp was given.
3154if test "${enable_ftp+set}" = set; then
3155 enableval="$enable_ftp"
3156
3157 if test "$enableval" = yes; then
3158 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
3159 else
3160 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
3161 fi
3162
3163else
3164
3165 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
3166 if test "x$LINE" != x ; then
3167 eval "DEFAULT_$LINE"
3168 else
3169 no_cache=1
3170 fi
3171
3172 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
3173
3174fi
3175
3176
3177 eval "$ac_cv_use_ftp"
3178 if test "$no_cache" != 1; then
3179 echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp
3180 fi
3181
3182 if test "$wxUSE_PROTOCOL_FTP" = yes; then
3183 echo "$ac_t""yes" 1>&6
3184 else
3185 echo "$ac_t""no" 1>&6
3186 fi
3187
3188
3189 echo $ac_n "checking for --enable-http""... $ac_c" 1>&6
4cdb0ab0 3190echo "configure:3191: checking for --enable-http" >&5
a1622950
VZ
3191 no_cache=0
3192 # Check whether --enable-http or --disable-http was given.
3193if test "${enable_http+set}" = set; then
3194 enableval="$enable_http"
3195
3196 if test "$enableval" = yes; then
3197 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
3198 else
3199 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
3200 fi
3201
3202else
3203
3204 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
3205 if test "x$LINE" != x ; then
3206 eval "DEFAULT_$LINE"
3207 else
3208 no_cache=1
3209 fi
3210
3211 ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
3212
3213fi
3214
3215
3216 eval "$ac_cv_use_http"
3217 if test "$no_cache" != 1; then
3218 echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp
3219 fi
3220
3221 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
3222 echo "$ac_t""yes" 1>&6
3223 else
3224 echo "$ac_t""no" 1>&6
3225 fi
3226
3227
3228 echo $ac_n "checking for --enable-fileproto""... $ac_c" 1>&6
4cdb0ab0 3229echo "configure:3230: checking for --enable-fileproto" >&5
a1622950
VZ
3230 no_cache=0
3231 # Check whether --enable-fileproto or --disable-fileproto was given.
3232if test "${enable_fileproto+set}" = set; then
3233 enableval="$enable_fileproto"
3234
3235 if test "$enableval" = yes; then
3236 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
3237 else
3238 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
3239 fi
3240
3241else
3242
3243 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
3244 if test "x$LINE" != x ; then
3245 eval "DEFAULT_$LINE"
3246 else
3247 no_cache=1
3248 fi
3249
3250 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
3251
3252fi
3253
3254
3255 eval "$ac_cv_use_fileproto"
3256 if test "$no_cache" != 1; then
3257 echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp
3258 fi
3259
3260 if test "$wxUSE_PROTOCOL_FILE" = yes; then
3261 echo "$ac_t""yes" 1>&6
3262 else
3263 echo "$ac_t""no" 1>&6
3264 fi
3265
3266
698dcdb6 3267 echo $ac_n "checking for --enable-sockets""... $ac_c" 1>&6
4cdb0ab0 3268echo "configure:3269: checking for --enable-sockets" >&5
10f2d63a
VZ
3269 no_cache=0
3270 # Check whether --enable-sockets or --disable-sockets was given.
3271if test "${enable_sockets+set}" = set; then
3272 enableval="$enable_sockets"
698dcdb6 3273
10f2d63a
VZ
3274 if test "$enableval" = yes; then
3275 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
3276 else
3277 ac_cv_use_sockets='wxUSE_SOCKETS=no'
3278 fi
698dcdb6 3279
10f2d63a 3280else
698dcdb6 3281
10f2d63a
VZ
3282 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
3283 if test "x$LINE" != x ; then
3284 eval "DEFAULT_$LINE"
3285 else
3286 no_cache=1
3287 fi
3288
3289 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
698dcdb6
VZ
3290
3291fi
10f2d63a
VZ
3292
3293
3294 eval "$ac_cv_use_sockets"
3295 if test "$no_cache" != 1; then
3296 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
3297 fi
3298
3299 if test "$wxUSE_SOCKETS" = yes; then
698dcdb6 3300 echo "$ac_t""yes" 1>&6
10f2d63a 3301 else
698dcdb6 3302 echo "$ac_t""no" 1>&6
10f2d63a 3303 fi
698dcdb6 3304
b12915c1 3305
698dcdb6
VZ
3306
3307 echo $ac_n "checking for --enable-ipc""... $ac_c" 1>&6
4cdb0ab0 3308echo "configure:3309: checking for --enable-ipc" >&5
10f2d63a 3309 no_cache=0
eb4efbdc
VZ
3310 # Check whether --enable-ipc or --disable-ipc was given.
3311if test "${enable_ipc+set}" = set; then
3312 enableval="$enable_ipc"
698dcdb6 3313
10f2d63a 3314 if test "$enableval" = yes; then
eb4efbdc 3315 ac_cv_use_ipc='wxUSE_IPC=yes'
10f2d63a 3316 else
eb4efbdc 3317 ac_cv_use_ipc='wxUSE_IPC=no'
10f2d63a 3318 fi
698dcdb6 3319
10f2d63a 3320else
698dcdb6 3321
eb4efbdc 3322 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
10f2d63a
VZ
3323 if test "x$LINE" != x ; then
3324 eval "DEFAULT_$LINE"
3325 else
3326 no_cache=1
3327 fi
3328
eb4efbdc 3329 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
698dcdb6
VZ
3330
3331fi
10f2d63a
VZ
3332
3333
eb4efbdc 3334 eval "$ac_cv_use_ipc"
10f2d63a 3335 if test "$no_cache" != 1; then
eb4efbdc 3336 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
3337 fi
3338
eb4efbdc 3339 if test "$wxUSE_IPC" = yes; then
698dcdb6 3340 echo "$ac_t""yes" 1>&6
10f2d63a 3341 else
698dcdb6 3342 echo "$ac_t""no" 1>&6
10f2d63a 3343 fi
698dcdb6
VZ
3344
3345
eb4efbdc 3346
1e6feb95 3347 echo $ac_n "checking for --enable-cmdline""... $ac_c" 1>&6
4cdb0ab0 3348echo "configure:3349: checking for --enable-cmdline" >&5
1e6feb95
VZ
3349 no_cache=0
3350 # Check whether --enable-cmdline or --disable-cmdline was given.
3351if test "${enable_cmdline+set}" = set; then
3352 enableval="$enable_cmdline"
3353
3354 if test "$enableval" = yes; then
3355 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
3356 else
3357 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
3358 fi
3359
3360else
3361
3362 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
3363 if test "x$LINE" != x ; then
3364 eval "DEFAULT_$LINE"
3365 else
3366 no_cache=1
3367 fi
3368
3369 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
3370
3371fi
3372
3373
3374 eval "$ac_cv_use_cmdline"
3375 if test "$no_cache" != 1; then
3376 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
3377 fi
3378
3379 if test "$wxUSE_CMDLINE_PARSER" = yes; then
3380 echo "$ac_t""yes" 1>&6
3381 else
3382 echo "$ac_t""no" 1>&6
3383 fi
3384
3385
3386 echo $ac_n "checking for --enable-datetime""... $ac_c" 1>&6
4cdb0ab0 3387echo "configure:3388: checking for --enable-datetime" >&5
1e6feb95
VZ
3388 no_cache=0
3389 # Check whether --enable-datetime or --disable-datetime was given.
3390if test "${enable_datetime+set}" = set; then
3391 enableval="$enable_datetime"
3392
3393 if test "$enableval" = yes; then
3394 ac_cv_use_datetime='wxUSE_DATETIME=yes'
3395 else
3396 ac_cv_use_datetime='wxUSE_DATETIME=no'
3397 fi
3398
3399else
3400
3401 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
3402 if test "x$LINE" != x ; then
3403 eval "DEFAULT_$LINE"
3404 else
3405 no_cache=1
3406 fi
3407
3408 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
3409
3410fi
3411
3412
3413 eval "$ac_cv_use_datetime"
3414 if test "$no_cache" != 1; then
3415 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
3416 fi
3417
3418 if test "$wxUSE_DATETIME" = yes; then
3419 echo "$ac_t""yes" 1>&6
3420 else
3421 echo "$ac_t""no" 1>&6
3422 fi
3423
3424
3425 echo $ac_n "checking for --enable-timedate""... $ac_c" 1>&6
4cdb0ab0 3426echo "configure:3427: checking for --enable-timedate" >&5
1e6feb95
VZ
3427 no_cache=0
3428 # Check whether --enable-timedate or --disable-timedate was given.
3429if test "${enable_timedate+set}" = set; then
3430 enableval="$enable_timedate"
3431
3432 if test "$enableval" = yes; then
3433 ac_cv_use_timedate='wxUSE_TIMEDATE=yes'
3434 else
3435 ac_cv_use_timedate='wxUSE_TIMEDATE=no'
3436 fi
3437
3438else
3439
3440 LINE=`grep "wxUSE_TIMEDATE" ${wx_arg_cache_file}`
3441 if test "x$LINE" != x ; then
3442 eval "DEFAULT_$LINE"
3443 else
3444 no_cache=1
3445 fi
3446
3447 ac_cv_use_timedate='wxUSE_TIMEDATE='$DEFAULT_wxUSE_TIMEDATE
3448
3449fi
3450
3451
3452 eval "$ac_cv_use_timedate"
3453 if test "$no_cache" != 1; then
3454 echo $ac_cv_use_timedate >> ${wx_arg_cache_file}.tmp
3455 fi
3456
3457 if test "$wxUSE_TIMEDATE" = yes; then
3458 echo "$ac_t""yes" 1>&6
3459 else
3460 echo "$ac_t""no" 1>&6
3461 fi
3462
3463
3464 echo $ac_n "checking for --enable-stopwatch""... $ac_c" 1>&6
4cdb0ab0 3465echo "configure:3466: checking for --enable-stopwatch" >&5
1e6feb95
VZ
3466 no_cache=0
3467 # Check whether --enable-stopwatch or --disable-stopwatch was given.
3468if test "${enable_stopwatch+set}" = set; then
3469 enableval="$enable_stopwatch"
3470
3471 if test "$enableval" = yes; then
3472 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
3473 else
3474 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
3475 fi
3476
3477else
3478
3479 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
3480 if test "x$LINE" != x ; then
3481 eval "DEFAULT_$LINE"
3482 else
3483 no_cache=1
3484 fi
3485
3486 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
3487
3488fi
3489
3490
3491 eval "$ac_cv_use_stopwatch"
3492 if test "$no_cache" != 1; then
3493 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
3494 fi
3495
3496 if test "$wxUSE_STOPWATCH" = yes; then
3497 echo "$ac_t""yes" 1>&6
3498 else
3499 echo "$ac_t""no" 1>&6
3500 fi
3501
3502
698dcdb6 3503 echo $ac_n "checking for --enable-dialupman""... $ac_c" 1>&6
4cdb0ab0 3504echo "configure:3505: checking for --enable-dialupman" >&5
10f2d63a 3505 no_cache=0
eb4efbdc
VZ
3506 # Check whether --enable-dialupman or --disable-dialupman was given.
3507if test "${enable_dialupman+set}" = set; then
3508 enableval="$enable_dialupman"
698dcdb6 3509
10f2d63a 3510 if test "$enableval" = yes; then
eb4efbdc 3511 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
10f2d63a 3512 else
eb4efbdc 3513 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
10f2d63a 3514 fi
698dcdb6 3515
10f2d63a 3516else
698dcdb6 3517
eb4efbdc 3518 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
10f2d63a
VZ
3519 if test "x$LINE" != x ; then
3520 eval "DEFAULT_$LINE"
3521 else
3522 no_cache=1
3523 fi
3524
eb4efbdc 3525 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
698dcdb6
VZ
3526
3527fi
10f2d63a
VZ
3528
3529
eb4efbdc 3530 eval "$ac_cv_use_dialupman"
10f2d63a 3531 if test "$no_cache" != 1; then
eb4efbdc 3532 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
3533 fi
3534
eb4efbdc 3535 if test "$wxUSE_DIALUP_MANAGER" = yes; then
698dcdb6 3536 echo "$ac_t""yes" 1>&6
10f2d63a 3537 else
698dcdb6 3538 echo "$ac_t""no" 1>&6
10f2d63a 3539 fi
698dcdb6 3540
10f2d63a 3541
698dcdb6 3542 echo $ac_n "checking for --enable-apple_ieee""... $ac_c" 1>&6
4cdb0ab0 3543echo "configure:3544: checking for --enable-apple_ieee" >&5
10f2d63a
VZ
3544 no_cache=0
3545 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
3546if test "${enable_apple_ieee+set}" = set; then
3547 enableval="$enable_apple_ieee"
698dcdb6 3548
10f2d63a
VZ
3549 if test "$enableval" = yes; then
3550 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
3551 else
3552 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
3553 fi
698dcdb6 3554
10f2d63a 3555else
698dcdb6 3556
10f2d63a
VZ
3557 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
3558 if test "x$LINE" != x ; then
3559 eval "DEFAULT_$LINE"
3560 else
3561 no_cache=1
3562 fi
3563
3564 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
698dcdb6
VZ
3565
3566fi
10f2d63a
VZ
3567
3568
3569 eval "$ac_cv_use_apple_ieee"
3570 if test "$no_cache" != 1; then
3571 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
3572 fi
3573
3574 if test "$wxUSE_APPLE_IEEE" = yes; then
698dcdb6 3575 echo "$ac_t""yes" 1>&6
10f2d63a 3576 else
698dcdb6 3577 echo "$ac_t""no" 1>&6
10f2d63a 3578 fi
698dcdb6 3579
10f2d63a 3580
1e6feb95 3581 echo $ac_n "checking for --enable-timer""... $ac_c" 1>&6
4cdb0ab0 3582echo "configure:3583: checking for --enable-timer" >&5
10f2d63a 3583 no_cache=0
1e6feb95
VZ
3584 # Check whether --enable-timer or --disable-timer was given.
3585if test "${enable_timer+set}" = set; then
3586 enableval="$enable_timer"
698dcdb6 3587
10f2d63a 3588 if test "$enableval" = yes; then
1e6feb95 3589 ac_cv_use_timer='wxUSE_TIMER=yes'
10f2d63a 3590 else
1e6feb95 3591 ac_cv_use_timer='wxUSE_TIMER=no'
10f2d63a 3592 fi
698dcdb6 3593
10f2d63a 3594else
698dcdb6 3595
1e6feb95 3596 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
10f2d63a
VZ
3597 if test "x$LINE" != x ; then
3598 eval "DEFAULT_$LINE"
3599 else
3600 no_cache=1
3601 fi
3602
1e6feb95 3603 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
698dcdb6
VZ
3604
3605fi
10f2d63a
VZ
3606
3607
1e6feb95 3608 eval "$ac_cv_use_timer"
10f2d63a 3609 if test "$no_cache" != 1; then
1e6feb95 3610 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
3611 fi
3612
1e6feb95 3613 if test "$wxUSE_TIMER" = yes; then
698dcdb6 3614 echo "$ac_t""yes" 1>&6
10f2d63a 3615 else
698dcdb6 3616 echo "$ac_t""no" 1>&6
10f2d63a 3617 fi
698dcdb6 3618
10f2d63a 3619
698dcdb6 3620 echo $ac_n "checking for --enable-wave""... $ac_c" 1>&6
4cdb0ab0 3621echo "configure:3622: checking for --enable-wave" >&5
10f2d63a
VZ
3622 no_cache=0
3623 # Check whether --enable-wave or --disable-wave was given.
3624if test "${enable_wave+set}" = set; then
3625 enableval="$enable_wave"
698dcdb6 3626
10f2d63a
VZ
3627 if test "$enableval" = yes; then
3628 ac_cv_use_wave='wxUSE_WAVE=yes'
3629 else
3630 ac_cv_use_wave='wxUSE_WAVE=no'
3631 fi
698dcdb6 3632
10f2d63a 3633else
698dcdb6 3634
10f2d63a
VZ
3635 LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}`
3636 if test "x$LINE" != x ; then
3637 eval "DEFAULT_$LINE"
3638 else
3639 no_cache=1
3640 fi
3641
3642 ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE
698dcdb6
VZ
3643
3644fi
10f2d63a
VZ
3645
3646
3647 eval "$ac_cv_use_wave"
3648 if test "$no_cache" != 1; then
3649 echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp
3650 fi
3651
3652 if test "$wxUSE_WAVE" = yes; then
698dcdb6 3653 echo "$ac_t""yes" 1>&6
10f2d63a 3654 else
698dcdb6 3655 echo "$ac_t""no" 1>&6
10f2d63a 3656 fi
698dcdb6 3657
10f2d63a 3658
698dcdb6 3659 echo $ac_n "checking for --enable-fraction""... $ac_c" 1>&6
4cdb0ab0 3660echo "configure:3661: checking for --enable-fraction" >&5
10f2d63a
VZ
3661 no_cache=0
3662 # Check whether --enable-fraction or --disable-fraction was given.
3663if test "${enable_fraction+set}" = set; then
3664 enableval="$enable_fraction"
698dcdb6 3665
10f2d63a
VZ
3666 if test "$enableval" = yes; then
3667 ac_cv_use_fraction='wxUSE_FRACTION=yes'
3668 else
3669 ac_cv_use_fraction='wxUSE_FRACTION=no'
3670 fi
698dcdb6 3671
10f2d63a 3672else
698dcdb6 3673
10f2d63a
VZ
3674 LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}`
3675 if test "x$LINE" != x ; then
3676 eval "DEFAULT_$LINE"
3677 else
3678 no_cache=1
3679 fi
3680
3681 ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION
698dcdb6
VZ
3682
3683fi
10f2d63a
VZ
3684
3685
3686 eval "$ac_cv_use_fraction"
3687 if test "$no_cache" != 1; then
3688 echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp
3689 fi
3690
3691 if test "$wxUSE_FRACTION" = yes; then
698dcdb6 3692 echo "$ac_t""yes" 1>&6
10f2d63a 3693 else
698dcdb6 3694 echo "$ac_t""no" 1>&6
10f2d63a 3695 fi
698dcdb6 3696
10f2d63a 3697
698dcdb6 3698 echo $ac_n "checking for --enable-dynlib""... $ac_c" 1>&6
4cdb0ab0 3699echo "configure:3700: checking for --enable-dynlib" >&5
10f2d63a
VZ
3700 no_cache=0
3701 # Check whether --enable-dynlib or --disable-dynlib was given.
3702if test "${enable_dynlib+set}" = set; then
3703 enableval="$enable_dynlib"
698dcdb6 3704
10f2d63a
VZ
3705 if test "$enableval" = yes; then
3706 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
3707 else
3708 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
3709 fi
698dcdb6 3710
10f2d63a 3711else
698dcdb6 3712
10f2d63a
VZ
3713 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
3714 if test "x$LINE" != x ; then
3715 eval "DEFAULT_$LINE"
3716 else
3717 no_cache=1
3718 fi
3719
3720 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
698dcdb6
VZ
3721
3722fi
10f2d63a
VZ
3723
3724
3725 eval "$ac_cv_use_dynlib"
3726 if test "$no_cache" != 1; then
3727 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
3728 fi
3729
3730 if test "$wxUSE_DYNLIB_CLASS" = yes; then
698dcdb6 3731 echo "$ac_t""yes" 1>&6
10f2d63a 3732 else
698dcdb6 3733 echo "$ac_t""no" 1>&6
10f2d63a 3734 fi
698dcdb6 3735
10f2d63a 3736
0b9ab0bd 3737 echo $ac_n "checking for --enable-dynamicloader""... $ac_c" 1>&6
4cdb0ab0 3738echo "configure:3739: checking for --enable-dynamicloader" >&5
0b9ab0bd
RL
3739 no_cache=0
3740 # Check whether --enable-dynamicloader or --disable-dynamicloader was given.
3741if test "${enable_dynamicloader+set}" = set; then
3742 enableval="$enable_dynamicloader"
3743
3744 if test "$enableval" = yes; then
3745 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
3746 else
3747 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
3748 fi
3749
3750else
3751
3752 LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}`
3753 if test "x$LINE" != x ; then
3754 eval "DEFAULT_$LINE"
3755 else
3756 no_cache=1
3757 fi
3758
3759 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER
3760
3761fi
3762
3763
3764 eval "$ac_cv_use_dynamicloader"
3765 if test "$no_cache" != 1; then
3766 echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
3767 fi
3768
3769 if test "$wxUSE_DYNAMIC_LOADER" = yes; then
3770 echo "$ac_t""yes" 1>&6
3771 else
3772 echo "$ac_t""no" 1>&6
3773 fi
3774
3775
698dcdb6 3776 echo $ac_n "checking for --enable-longlong""... $ac_c" 1>&6
4cdb0ab0 3777echo "configure:3778: checking for --enable-longlong" >&5
10f2d63a
VZ
3778 no_cache=0
3779 # Check whether --enable-longlong or --disable-longlong was given.
3780if test "${enable_longlong+set}" = set; then
3781 enableval="$enable_longlong"
698dcdb6 3782
10f2d63a
VZ
3783 if test "$enableval" = yes; then
3784 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
3785 else
3786 ac_cv_use_longlong='wxUSE_LONGLONG=no'
3787 fi
698dcdb6 3788
10f2d63a 3789else
698dcdb6 3790
10f2d63a
VZ
3791 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
3792 if test "x$LINE" != x ; then
3793 eval "DEFAULT_$LINE"
3794 else
3795 no_cache=1
3796 fi
3797
3798 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
698dcdb6
VZ
3799
3800fi
10f2d63a
VZ
3801
3802
3803 eval "$ac_cv_use_longlong"
3804 if test "$no_cache" != 1; then
3805 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
3806 fi
3807
3808 if test "$wxUSE_LONGLONG" = yes; then
698dcdb6 3809 echo "$ac_t""yes" 1>&6
10f2d63a 3810 else
698dcdb6 3811 echo "$ac_t""no" 1>&6
10f2d63a 3812 fi
698dcdb6 3813
10f2d63a 3814
698dcdb6 3815 echo $ac_n "checking for --enable-geometry""... $ac_c" 1>&6
4cdb0ab0 3816echo "configure:3817: checking for --enable-geometry" >&5
e8f65ba6
RR
3817 no_cache=0
3818 # Check whether --enable-geometry or --disable-geometry was given.
3819if test "${enable_geometry+set}" = set; then
3820 enableval="$enable_geometry"
698dcdb6 3821
e8f65ba6
RR
3822 if test "$enableval" = yes; then
3823 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
3824 else
3825 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
3826 fi
698dcdb6 3827
e8f65ba6 3828else
698dcdb6 3829
e8f65ba6
RR
3830 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
3831 if test "x$LINE" != x ; then
3832 eval "DEFAULT_$LINE"
3833 else
3834 no_cache=1
3835 fi
3836
3837 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
698dcdb6
VZ
3838
3839fi
e8f65ba6
RR
3840
3841
3842 eval "$ac_cv_use_geometry"
3843 if test "$no_cache" != 1; then
3844 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
3845 fi
3846
3847 if test "$wxUSE_GEOMETRY" = yes; then
698dcdb6 3848 echo "$ac_t""yes" 1>&6
e8f65ba6 3849 else
698dcdb6 3850 echo "$ac_t""no" 1>&6
e8f65ba6 3851 fi
698dcdb6 3852
e8f65ba6 3853
698dcdb6 3854 echo $ac_n "checking for --enable-log""... $ac_c" 1>&6
4cdb0ab0 3855echo "configure:3856: checking for --enable-log" >&5
10f2d63a
VZ
3856 no_cache=0
3857 # Check whether --enable-log or --disable-log was given.
3858if test "${enable_log+set}" = set; then
3859 enableval="$enable_log"
698dcdb6 3860
10f2d63a
VZ
3861 if test "$enableval" = yes; then
3862 ac_cv_use_log='wxUSE_LOG=yes'
3863 else
3864 ac_cv_use_log='wxUSE_LOG=no'
3865 fi
698dcdb6 3866
10f2d63a 3867else
698dcdb6 3868
10f2d63a
VZ
3869 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
3870 if test "x$LINE" != x ; then
3871 eval "DEFAULT_$LINE"
3872 else
3873 no_cache=1
3874 fi
3875
3876 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
698dcdb6
VZ
3877
3878fi
10f2d63a
VZ
3879
3880
3881 eval "$ac_cv_use_log"
3882 if test "$no_cache" != 1; then
3883 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
3884 fi
3885
3886 if test "$wxUSE_LOG" = yes; then
698dcdb6 3887 echo "$ac_t""yes" 1>&6
10f2d63a 3888 else
698dcdb6 3889 echo "$ac_t""no" 1>&6
10f2d63a 3890 fi
698dcdb6 3891
10f2d63a 3892
698dcdb6 3893 echo $ac_n "checking for --enable-streams""... $ac_c" 1>&6
4cdb0ab0 3894echo "configure:3895: checking for --enable-streams" >&5
10f2d63a
VZ
3895 no_cache=0
3896 # Check whether --enable-streams or --disable-streams was given.
3897if test "${enable_streams+set}" = set; then
3898 enableval="$enable_streams"
698dcdb6 3899
10f2d63a
VZ
3900 if test "$enableval" = yes; then
3901 ac_cv_use_streams='wxUSE_STREAMS=yes'
3902 else
3903 ac_cv_use_streams='wxUSE_STREAMS=no'
3904 fi
698dcdb6 3905
10f2d63a 3906else
698dcdb6 3907
10f2d63a
VZ
3908 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
3909 if test "x$LINE" != x ; then
3910 eval "DEFAULT_$LINE"
3911 else
3912 no_cache=1
3913 fi
3914
3915 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
698dcdb6
VZ
3916
3917fi
10f2d63a
VZ
3918
3919
3920 eval "$ac_cv_use_streams"
3921 if test "$no_cache" != 1; then
3922 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
3923 fi
3924
3925 if test "$wxUSE_STREAMS" = yes; then
698dcdb6 3926 echo "$ac_t""yes" 1>&6
10f2d63a 3927 else
698dcdb6 3928 echo "$ac_t""no" 1>&6
10f2d63a 3929 fi
698dcdb6 3930
10f2d63a 3931
698dcdb6 3932 echo $ac_n "checking for --enable-file""... $ac_c" 1>&6
4cdb0ab0 3933echo "configure:3934: checking for --enable-file" >&5
10f2d63a
VZ
3934 no_cache=0
3935 # Check whether --enable-file or --disable-file was given.
3936if test "${enable_file+set}" = set; then
3937 enableval="$enable_file"
698dcdb6 3938
10f2d63a
VZ
3939 if test "$enableval" = yes; then
3940 ac_cv_use_file='wxUSE_FILE=yes'
3941 else
3942 ac_cv_use_file='wxUSE_FILE=no'
3943 fi
698dcdb6 3944
10f2d63a 3945else
698dcdb6 3946
10f2d63a
VZ
3947 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
3948 if test "x$LINE" != x ; then
3949 eval "DEFAULT_$LINE"
3950 else
3951 no_cache=1
3952 fi
3953
3954 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
698dcdb6
VZ
3955
3956fi
10f2d63a
VZ
3957
3958
3959 eval "$ac_cv_use_file"
3960 if test "$no_cache" != 1; then
3961 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
3962 fi
3963
3964 if test "$wxUSE_FILE" = yes; then
698dcdb6 3965 echo "$ac_t""yes" 1>&6
10f2d63a 3966 else
698dcdb6 3967 echo "$ac_t""no" 1>&6
10f2d63a 3968 fi
698dcdb6 3969
10f2d63a 3970
1e6feb95 3971 echo $ac_n "checking for --enable-ffile""... $ac_c" 1>&6
4cdb0ab0 3972echo "configure:3973: checking for --enable-ffile" >&5
10f2d63a 3973 no_cache=0
1e6feb95
VZ
3974 # Check whether --enable-ffile or --disable-ffile was given.
3975if test "${enable_ffile+set}" = set; then
3976 enableval="$enable_ffile"
698dcdb6 3977
10f2d63a 3978 if test "$enableval" = yes; then
1e6feb95 3979 ac_cv_use_ffile='wxUSE_FFILE=yes'
10f2d63a 3980 else
1e6feb95 3981 ac_cv_use_ffile='wxUSE_FFILE=no'
10f2d63a 3982 fi
698dcdb6 3983
10f2d63a 3984else
698dcdb6 3985
1e6feb95 3986 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
10f2d63a
VZ
3987 if test "x$LINE" != x ; then
3988 eval "DEFAULT_$LINE"
3989 else
3990 no_cache=1
3991 fi
3992
1e6feb95 3993 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
698dcdb6
VZ
3994
3995fi
10f2d63a
VZ
3996
3997
1e6feb95 3998 eval "$ac_cv_use_ffile"
10f2d63a 3999 if test "$no_cache" != 1; then
1e6feb95 4000 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4001 fi
4002
1e6feb95 4003 if test "$wxUSE_FFILE" = yes; then
698dcdb6 4004 echo "$ac_t""yes" 1>&6
10f2d63a 4005 else
698dcdb6 4006 echo "$ac_t""no" 1>&6
10f2d63a 4007 fi
698dcdb6 4008
10f2d63a 4009
a3a584a7 4010 echo $ac_n "checking for --enable-textbuf""... $ac_c" 1>&6
4cdb0ab0 4011echo "configure:4012: checking for --enable-textbuf" >&5
a3a584a7
VZ
4012 no_cache=0
4013 # Check whether --enable-textbuf or --disable-textbuf was given.
4014if test "${enable_textbuf+set}" = set; then
4015 enableval="$enable_textbuf"
4016
4017 if test "$enableval" = yes; then
4018 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
4019 else
4020 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
4021 fi
4022
4023else
4024
4025 LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}`
4026 if test "x$LINE" != x ; then
4027 eval "DEFAULT_$LINE"
4028 else
4029 no_cache=1
4030 fi
4031
4032 ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
4033
4034fi
4035
4036
4037 eval "$ac_cv_use_textbuf"
4038 if test "$no_cache" != 1; then
4039 echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
4040 fi
4041
4042 if test "$wxUSE_TEXTBUFFER" = yes; then
4043 echo "$ac_t""yes" 1>&6
4044 else
4045 echo "$ac_t""no" 1>&6
4046 fi
4047
4048
1e6feb95 4049 echo $ac_n "checking for --enable-textfile""... $ac_c" 1>&6
4cdb0ab0 4050echo "configure:4051: checking for --enable-textfile" >&5
10f2d63a 4051 no_cache=0
1e6feb95
VZ
4052 # Check whether --enable-textfile or --disable-textfile was given.
4053if test "${enable_textfile+set}" = set; then
4054 enableval="$enable_textfile"
698dcdb6 4055
10f2d63a 4056 if test "$enableval" = yes; then
1e6feb95 4057 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
10f2d63a 4058 else
1e6feb95 4059 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
10f2d63a 4060 fi
698dcdb6 4061
10f2d63a 4062else
698dcdb6 4063
1e6feb95 4064 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
10f2d63a
VZ
4065 if test "x$LINE" != x ; then
4066 eval "DEFAULT_$LINE"
4067 else
4068 no_cache=1
4069 fi
4070
1e6feb95 4071 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
698dcdb6
VZ
4072
4073fi
10f2d63a
VZ
4074
4075
1e6feb95 4076 eval "$ac_cv_use_textfile"
10f2d63a 4077 if test "$no_cache" != 1; then
1e6feb95 4078 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4079 fi
4080
1e6feb95 4081 if test "$wxUSE_TEXTFILE" = yes; then
698dcdb6 4082 echo "$ac_t""yes" 1>&6
10f2d63a 4083 else
698dcdb6 4084 echo "$ac_t""no" 1>&6
10f2d63a 4085 fi
698dcdb6 4086
10f2d63a 4087
1e6feb95 4088 echo $ac_n "checking for --enable-fontmap""... $ac_c" 1>&6
4cdb0ab0 4089echo "configure:4090: checking for --enable-fontmap" >&5
10f2d63a 4090 no_cache=0
1e6feb95
VZ
4091 # Check whether --enable-fontmap or --disable-fontmap was given.
4092if test "${enable_fontmap+set}" = set; then
4093 enableval="$enable_fontmap"
698dcdb6 4094
10f2d63a 4095 if test "$enableval" = yes; then
1e6feb95 4096 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
10f2d63a 4097 else
1e6feb95 4098 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
10f2d63a 4099 fi
698dcdb6 4100
10f2d63a 4101else
698dcdb6 4102
1e6feb95 4103 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
10f2d63a
VZ
4104 if test "x$LINE" != x ; then
4105 eval "DEFAULT_$LINE"
4106 else
4107 no_cache=1
4108 fi
4109
1e6feb95 4110 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
698dcdb6
VZ
4111
4112fi
10f2d63a
VZ
4113
4114
1e6feb95 4115 eval "$ac_cv_use_fontmap"
10f2d63a 4116 if test "$no_cache" != 1; then
1e6feb95 4117 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4118 fi
4119
1e6feb95 4120 if test "$wxUSE_FONTMAP" = yes; then
698dcdb6 4121 echo "$ac_t""yes" 1>&6
10f2d63a 4122 else
698dcdb6 4123 echo "$ac_t""no" 1>&6
10f2d63a 4124 fi
698dcdb6 4125
10f2d63a 4126
1e6feb95 4127 echo $ac_n "checking for --enable-unicode""... $ac_c" 1>&6
4cdb0ab0 4128echo "configure:4129: checking for --enable-unicode" >&5
10f2d63a 4129 no_cache=0
1e6feb95
VZ
4130 # Check whether --enable-unicode or --disable-unicode was given.
4131if test "${enable_unicode+set}" = set; then
4132 enableval="$enable_unicode"
4133
4134 if test "$enableval" = yes; then
4135 ac_cv_use_unicode='wxUSE_UNICODE=yes'
4136 else
4137 ac_cv_use_unicode='wxUSE_UNICODE=no'
4138 fi
4139
4140else
4141
4142 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
4143 if test "x$LINE" != x ; then
4144 eval "DEFAULT_$LINE"
4145 else
4146 no_cache=1
4147 fi
4148
4149 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
4150
4151fi
4152
4153
4154 eval "$ac_cv_use_unicode"
4155 if test "$no_cache" != 1; then
4156 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
4157 fi
4158
4159 if test "$wxUSE_UNICODE" = yes; then
4160 echo "$ac_t""yes" 1>&6
4161 else
4162 echo "$ac_t""no" 1>&6
4163 fi
4164
4165
a72a4bfa 4166 echo $ac_n "checking for --enable-mslu""... $ac_c" 1>&6
4cdb0ab0 4167echo "configure:4168: checking for --enable-mslu" >&5
a72a4bfa
VS
4168 no_cache=0
4169 # Check whether --enable-mslu or --disable-mslu was given.
4170if test "${enable_mslu+set}" = set; then
4171 enableval="$enable_mslu"
4172
4173 if test "$enableval" = yes; then
4174 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
4175 else
4176 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
4177 fi
4178
4179else
4180
4181 LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}`
4182 if test "x$LINE" != x ; then
4183 eval "DEFAULT_$LINE"
4184 else
4185 no_cache=1
4186 fi
4187
4188 ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU
4189
4190fi
4191
4192
4193 eval "$ac_cv_use_mslu"
4194 if test "$no_cache" != 1; then
4195 echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp
4196 fi
4197
4198 if test "$wxUSE_UNICODE_MSLU" = yes; then
4199 echo "$ac_t""yes" 1>&6
4200 else
4201 echo "$ac_t""no" 1>&6
4202 fi
4203
4204
1e6feb95 4205 echo $ac_n "checking for --enable-wxprintfv""... $ac_c" 1>&6
4cdb0ab0 4206echo "configure:4207: checking for --enable-wxprintfv" >&5
1e6feb95
VZ
4207 no_cache=0
4208 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
4209if test "${enable_wxprintfv+set}" = set; then
4210 enableval="$enable_wxprintfv"
4211
4212 if test "$enableval" = yes; then
10f2d63a
VZ
4213 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
4214 else
4215 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
4216 fi
698dcdb6 4217
10f2d63a 4218else
698dcdb6 4219
10f2d63a
VZ
4220 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
4221 if test "x$LINE" != x ; then
4222 eval "DEFAULT_$LINE"
4223 else
4224 no_cache=1
4225 fi
4226
4227 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
698dcdb6
VZ
4228
4229fi
10f2d63a
VZ
4230
4231
4232 eval "$ac_cv_use_wxprintfv"
4233 if test "$no_cache" != 1; then
4234 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
4235 fi
4236
4237 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
698dcdb6 4238 echo "$ac_t""yes" 1>&6
10f2d63a 4239 else
698dcdb6 4240 echo "$ac_t""no" 1>&6
10f2d63a 4241 fi
698dcdb6 4242
10f2d63a 4243
698dcdb6 4244 echo $ac_n "checking for --enable-std_iostreams""... $ac_c" 1>&6
4cdb0ab0 4245echo "configure:4246: checking for --enable-std_iostreams" >&5
10f2d63a
VZ
4246 no_cache=0
4247 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
4248if test "${enable_std_iostreams+set}" = set; then
4249 enableval="$enable_std_iostreams"
698dcdb6 4250
10f2d63a
VZ
4251 if test "$enableval" = yes; then
4252 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
4253 else
4254 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
4255 fi
698dcdb6 4256
10f2d63a 4257else
698dcdb6 4258
10f2d63a
VZ
4259 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
4260 if test "x$LINE" != x ; then
4261 eval "DEFAULT_$LINE"
4262 else
4263 no_cache=1
4264 fi
4265
4266 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
698dcdb6
VZ
4267
4268fi
10f2d63a
VZ
4269
4270
4271 eval "$ac_cv_use_std_iostreams"
4272 if test "$no_cache" != 1; then
4273 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
4274 fi
4275
4276 if test "$wxUSE_STD_IOSTREAM" = yes; then
698dcdb6 4277 echo "$ac_t""yes" 1>&6
10f2d63a 4278 else
698dcdb6 4279 echo "$ac_t""no" 1>&6
10f2d63a 4280 fi
698dcdb6 4281
10f2d63a 4282
698dcdb6 4283 echo $ac_n "checking for --enable-filesystem""... $ac_c" 1>&6
4cdb0ab0 4284echo "configure:4285: checking for --enable-filesystem" >&5
24528b0c
VS
4285 no_cache=0
4286 # Check whether --enable-filesystem or --disable-filesystem was given.
4287if test "${enable_filesystem+set}" = set; then
4288 enableval="$enable_filesystem"
698dcdb6 4289
24528b0c
VS
4290 if test "$enableval" = yes; then
4291 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
4292 else
4293 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
4294 fi
698dcdb6 4295
24528b0c 4296else
698dcdb6 4297
24528b0c
VS
4298 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
4299 if test "x$LINE" != x ; then
4300 eval "DEFAULT_$LINE"
4301 else
4302 no_cache=1
4303 fi
4304
4305 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
698dcdb6
VZ
4306
4307fi
24528b0c
VS
4308
4309
4310 eval "$ac_cv_use_filesystem"
4311 if test "$no_cache" != 1; then
4312 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
4313 fi
4314
4315 if test "$wxUSE_FILESYSTEM" = yes; then
698dcdb6 4316 echo "$ac_t""yes" 1>&6
24528b0c 4317 else
698dcdb6 4318 echo "$ac_t""no" 1>&6
24528b0c 4319 fi
698dcdb6 4320
24528b0c 4321
698dcdb6 4322 echo $ac_n "checking for --enable-fs_inet""... $ac_c" 1>&6
4cdb0ab0 4323echo "configure:4324: checking for --enable-fs_inet" >&5
10f2d63a
VZ
4324 no_cache=0
4325 # Check whether --enable-fs_inet or --disable-fs_inet was given.
4326if test "${enable_fs_inet+set}" = set; then
4327 enableval="$enable_fs_inet"
698dcdb6 4328
10f2d63a
VZ
4329 if test "$enableval" = yes; then
4330 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
4331 else
4332 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
4333 fi
698dcdb6 4334
10f2d63a 4335else
698dcdb6 4336
10f2d63a
VZ
4337 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
4338 if test "x$LINE" != x ; then
4339 eval "DEFAULT_$LINE"
4340 else
4341 no_cache=1
4342 fi
4343
4344 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
698dcdb6
VZ
4345
4346fi
10f2d63a
VZ
4347
4348
4349 eval "$ac_cv_use_fs_inet"
4350 if test "$no_cache" != 1; then
4351 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
4352 fi
4353
4354 if test "$wxUSE_FS_INET" = yes; then
698dcdb6 4355 echo "$ac_t""yes" 1>&6
10f2d63a 4356 else
698dcdb6 4357 echo "$ac_t""no" 1>&6
10f2d63a 4358 fi
698dcdb6 4359
10f2d63a 4360
698dcdb6 4361 echo $ac_n "checking for --enable-fs_zip""... $ac_c" 1>&6
4cdb0ab0 4362echo "configure:4363: checking for --enable-fs_zip" >&5
10f2d63a
VZ
4363 no_cache=0
4364 # Check whether --enable-fs_zip or --disable-fs_zip was given.
4365if test "${enable_fs_zip+set}" = set; then
4366 enableval="$enable_fs_zip"
698dcdb6 4367
10f2d63a
VZ
4368 if test "$enableval" = yes; then
4369 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
4370 else
4371 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
4372 fi
698dcdb6 4373
10f2d63a 4374else
698dcdb6 4375
10f2d63a
VZ
4376 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
4377 if test "x$LINE" != x ; then
4378 eval "DEFAULT_$LINE"
4379 else
4380 no_cache=1
4381 fi
4382
4383 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
698dcdb6
VZ
4384
4385fi
10f2d63a
VZ
4386
4387
4388 eval "$ac_cv_use_fs_zip"
4389 if test "$no_cache" != 1; then
4390 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
4391 fi
4392
4393 if test "$wxUSE_FS_ZIP" = yes; then
698dcdb6 4394 echo "$ac_t""yes" 1>&6
10f2d63a 4395 else
698dcdb6 4396 echo "$ac_t""no" 1>&6
10f2d63a 4397 fi
698dcdb6 4398
10f2d63a 4399
698dcdb6 4400 echo $ac_n "checking for --enable-zipstream""... $ac_c" 1>&6
4cdb0ab0 4401echo "configure:4402: checking for --enable-zipstream" >&5
10f2d63a
VZ
4402 no_cache=0
4403 # Check whether --enable-zipstream or --disable-zipstream was given.
4404if test "${enable_zipstream+set}" = set; then
4405 enableval="$enable_zipstream"
698dcdb6 4406
10f2d63a
VZ
4407 if test "$enableval" = yes; then
4408 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
4409 else
4410 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
4411 fi
698dcdb6 4412
10f2d63a 4413else
698dcdb6 4414
10f2d63a
VZ
4415 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
4416 if test "x$LINE" != x ; then
4417 eval "DEFAULT_$LINE"
4418 else
4419 no_cache=1
4420 fi
4421
4422 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
698dcdb6
VZ
4423
4424fi
10f2d63a
VZ
4425
4426
4427 eval "$ac_cv_use_zipstream"
4428 if test "$no_cache" != 1; then
4429 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
4430 fi
4431
4432 if test "$wxUSE_ZIPSTREAM" = yes; then
698dcdb6 4433 echo "$ac_t""yes" 1>&6
10f2d63a 4434 else
698dcdb6 4435 echo "$ac_t""no" 1>&6
10f2d63a 4436 fi
698dcdb6 4437
10f2d63a 4438
698dcdb6
VZ
4439
4440 echo $ac_n "checking for --enable-catch_segvs""... $ac_c" 1>&6
4cdb0ab0 4441echo "configure:4442: checking for --enable-catch_segvs" >&5
eb4efbdc
VZ
4442 no_cache=0
4443 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
4444if test "${enable_catch_segvs+set}" = set; then
4445 enableval="$enable_catch_segvs"
698dcdb6 4446
eb4efbdc
VZ
4447 if test "$enableval" = yes; then
4448 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
4449 else
4450 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
4451 fi
698dcdb6 4452
eb4efbdc 4453else
698dcdb6 4454
eb4efbdc
VZ
4455 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
4456 if test "x$LINE" != x ; then
4457 eval "DEFAULT_$LINE"
4458 else
4459 no_cache=1
4460 fi
4461
4462 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
698dcdb6
VZ
4463
4464fi
eb4efbdc
VZ
4465
4466
4467 eval "$ac_cv_use_catch_segvs"
4468 if test "$no_cache" != 1; then
4469 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
4470 fi
4471
4472 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
698dcdb6 4473 echo "$ac_t""yes" 1>&6
eb4efbdc 4474 else
698dcdb6 4475 echo "$ac_t""no" 1>&6
eb4efbdc 4476 fi
698dcdb6 4477
eb4efbdc 4478
698dcdb6 4479 echo $ac_n "checking for --enable-snglinst""... $ac_c" 1>&6
4cdb0ab0 4480echo "configure:4481: checking for --enable-snglinst" >&5
4f3c5f06
VZ
4481 no_cache=0
4482 # Check whether --enable-snglinst or --disable-snglinst was given.
4483if test "${enable_snglinst+set}" = set; then
4484 enableval="$enable_snglinst"
698dcdb6 4485
4f3c5f06
VZ
4486 if test "$enableval" = yes; then
4487 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
4488 else
4489 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
4490 fi
698dcdb6 4491
4f3c5f06 4492else
698dcdb6 4493
4f3c5f06
VZ
4494 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
4495 if test "x$LINE" != x ; then
4496 eval "DEFAULT_$LINE"
4497 else
4498 no_cache=1
4499 fi
4500
4501 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
698dcdb6
VZ
4502
4503fi
4f3c5f06
VZ
4504
4505
4506 eval "$ac_cv_use_snglinst"
4507 if test "$no_cache" != 1; then
4508 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
4509 fi
4510
4511 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
698dcdb6 4512 echo "$ac_t""yes" 1>&6
4f3c5f06 4513 else
698dcdb6 4514 echo "$ac_t""no" 1>&6
4f3c5f06 4515 fi
698dcdb6
VZ
4516
4517
eb4efbdc 4518
1e6feb95 4519 echo $ac_n "checking for --enable-mimetype""... $ac_c" 1>&6
4cdb0ab0 4520echo "configure:4521: checking for --enable-mimetype" >&5
1e6feb95
VZ
4521 no_cache=0
4522 # Check whether --enable-mimetype or --disable-mimetype was given.
4523if test "${enable_mimetype+set}" = set; then
4524 enableval="$enable_mimetype"
4525
4526 if test "$enableval" = yes; then
4527 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
4528 else
4529 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
4530 fi
4531
4532else
4533
4534 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
4535 if test "x$LINE" != x ; then
4536 eval "DEFAULT_$LINE"
4537 else
4538 no_cache=1
4539 fi
4540
4541 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
4542
4543fi
4544
4545
4546 eval "$ac_cv_use_mimetype"
4547 if test "$no_cache" != 1; then
4548 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
4549 fi
4550
4551 if test "$wxUSE_MIMETYPE" = yes; then
4552 echo "$ac_t""yes" 1>&6
4553 else
4554 echo "$ac_t""no" 1>&6
4555 fi
4556
4557
3e44f09d 4558 echo $ac_n "checking for --enable-system_options""... $ac_c" 1>&6
4cdb0ab0 4559echo "configure:4560: checking for --enable-system_options" >&5
3e44f09d
VZ
4560 no_cache=0
4561 # Check whether --enable-system_options or --disable-system_options was given.
4562if test "${enable_system_options+set}" = set; then
4563 enableval="$enable_system_options"
4564
4565 if test "$enableval" = yes; then
4566 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
4567 else
4568 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
4569 fi
4570
4571else
4572
4573 LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
4574 if test "x$LINE" != x ; then
4575 eval "DEFAULT_$LINE"
4576 else
4577 no_cache=1
4578 fi
4579
4580 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
4581
4582fi
4583
4584
4585 eval "$ac_cv_use_system_options"
4586 if test "$no_cache" != 1; then
4587 echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
4588 fi
4589
4590 if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
4591 echo "$ac_t""yes" 1>&6
4592 else
4593 echo "$ac_t""no" 1>&6
4594 fi
4595
4596
1e6feb95 4597
4cdb0ab0
VS
4598 echo $ac_n "checking for --enable-url""... $ac_c" 1>&6
4599echo "configure:4600: checking for --enable-url" >&5
4600 no_cache=0
4601 # Check whether --enable-url or --disable-url was given.
4602if test "${enable_url+set}" = set; then
4603 enableval="$enable_url"
4604
4605 if test "$enableval" = yes; then
4606 ac_cv_use_url='wxUSE_URL=yes'
4607 else
4608 ac_cv_use_url='wxUSE_URL=no'
4609 fi
4610
4611else
4612
4613 LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}`
4614 if test "x$LINE" != x ; then
4615 eval "DEFAULT_$LINE"
4616 else
4617 no_cache=1
4618 fi
4619
4620 ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL
4621
4622fi
4623
4624
4625 eval "$ac_cv_use_url"
4626 if test "$no_cache" != 1; then
4627 echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp
4628 fi
4629
4630 if test "$wxUSE_URL" = yes; then
4631 echo "$ac_t""yes" 1>&6
4632 else
4633 echo "$ac_t""no" 1>&6
4634 fi
4635
4636
4637 echo $ac_n "checking for --enable-protocol""... $ac_c" 1>&6
4638echo "configure:4639: checking for --enable-protocol" >&5
4639 no_cache=0
4640 # Check whether --enable-protocol or --disable-protocol was given.
4641if test "${enable_protocol+set}" = set; then
4642 enableval="$enable_protocol"
4643
4644 if test "$enableval" = yes; then
4645 ac_cv_use_protocol='wxUSE_PROTOCOL=yes'
4646 else
4647 ac_cv_use_protocol='wxUSE_PROTOCOL=no'
4648 fi
4649
4650else
4651
4652 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
4653 if test "x$LINE" != x ; then
4654 eval "DEFAULT_$LINE"
4655 else
4656 no_cache=1
4657 fi
4658
4659 ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
4660
4661fi
4662
4663
4664 eval "$ac_cv_use_protocol"
4665 if test "$no_cache" != 1; then
4666 echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp
4667 fi
4668
4669 if test "$wxUSE_PROTOCOL" = yes; then
4670 echo "$ac_t""yes" 1>&6
4671 else
4672 echo "$ac_t""no" 1>&6
4673 fi
4674
4675
4676 echo $ac_n "checking for --enable-protocol_http""... $ac_c" 1>&6
4677echo "configure:4678: checking for --enable-protocol_http" >&5
4678 no_cache=0
4679 # Check whether --enable-protocol_http or --disable-protocol_http was given.
4680if test "${enable_protocol_http+set}" = set; then
4681 enableval="$enable_protocol_http"
4682
4683 if test "$enableval" = yes; then
4684 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
4685 else
4686 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
4687 fi
4688
4689else
4690
4691 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
4692 if test "x$LINE" != x ; then
4693 eval "DEFAULT_$LINE"
4694 else
4695 no_cache=1
4696 fi
4697
4698 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
4699
4700fi
4701
4702
4703 eval "$ac_cv_use_protocol_http"
4704 if test "$no_cache" != 1; then
4705 echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp
4706 fi
4707
4708 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
4709 echo "$ac_t""yes" 1>&6
4710 else
4711 echo "$ac_t""no" 1>&6
4712 fi
4713
4714
4715 echo $ac_n "checking for --enable-protocol_ftp""... $ac_c" 1>&6
4716echo "configure:4717: checking for --enable-protocol_ftp" >&5
4717 no_cache=0
4718 # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given.
4719if test "${enable_protocol_ftp+set}" = set; then
4720 enableval="$enable_protocol_ftp"
4721
4722 if test "$enableval" = yes; then
4723 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
4724 else
4725 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
4726 fi
4727
4728else
4729
4730 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
4731 if test "x$LINE" != x ; then
4732 eval "DEFAULT_$LINE"
4733 else
4734 no_cache=1
4735 fi
4736
4737 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
4738
4739fi
4740
4741
4742 eval "$ac_cv_use_protocol_ftp"
4743 if test "$no_cache" != 1; then
4744 echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp
4745 fi
4746
4747 if test "$wxUSE_PROTOCOL_FTP" = yes; then
4748 echo "$ac_t""yes" 1>&6
4749 else
4750 echo "$ac_t""no" 1>&6
4751 fi
4752
4753
4754 echo $ac_n "checking for --enable-protocol_file""... $ac_c" 1>&6
4755echo "configure:4756: checking for --enable-protocol_file" >&5
4756 no_cache=0
4757 # Check whether --enable-protocol_file or --disable-protocol_file was given.
4758if test "${enable_protocol_file+set}" = set; then
4759 enableval="$enable_protocol_file"
4760
4761 if test "$enableval" = yes; then
4762 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
4763 else
4764 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
4765 fi
4766
4767else
4768
4769 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
4770 if test "x$LINE" != x ; then
4771 eval "DEFAULT_$LINE"
4772 else
4773 no_cache=1
4774 fi
4775
4776 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
4777
4778fi
4779
4780
4781 eval "$ac_cv_use_protocol_file"
4782 if test "$no_cache" != 1; then
4783 echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp
4784 fi
4785
4786 if test "$wxUSE_PROTOCOL_FILE" = yes; then
4787 echo "$ac_t""yes" 1>&6
4788 else
4789 echo "$ac_t""no" 1>&6
4790 fi
4791
4792
4793
4794
698dcdb6
VZ
4795
4796 echo $ac_n "checking for --enable-threads""... $ac_c" 1>&6
4cdb0ab0 4797echo "configure:4798: checking for --enable-threads" >&5
10f2d63a
VZ
4798 no_cache=0
4799 # Check whether --enable-threads or --disable-threads was given.
4800if test "${enable_threads+set}" = set; then
4801 enableval="$enable_threads"
698dcdb6 4802
10f2d63a
VZ
4803 if test "$enableval" = yes; then
4804 ac_cv_use_threads='wxUSE_THREADS=yes'
4805 else
4806 ac_cv_use_threads='wxUSE_THREADS=no'
4807 fi
698dcdb6 4808
10f2d63a 4809else
698dcdb6 4810
10f2d63a
VZ
4811 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
4812 if test "x$LINE" != x ; then
4813 eval "DEFAULT_$LINE"
4814 else
4815 no_cache=1
4816 fi
4817
4818 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
698dcdb6
VZ
4819
4820fi
10f2d63a
VZ
4821
4822
4823 eval "$ac_cv_use_threads"
4824 if test "$no_cache" != 1; then
4825 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
4826 fi
4827
4828 if test "$wxUSE_THREADS" = yes; then
698dcdb6 4829 echo "$ac_t""yes" 1>&6
10f2d63a 4830 else
698dcdb6 4831 echo "$ac_t""no" 1>&6
10f2d63a 4832 fi
698dcdb6 4833
10f2d63a 4834
b12915c1
VZ
4835if test "$wxUSE_GUI" = "yes"; then
4836
698dcdb6
VZ
4837
4838
4839 echo $ac_n "checking for --enable-docview""... $ac_c" 1>&6
4cdb0ab0 4840echo "configure:4841: checking for --enable-docview" >&5
10f2d63a
VZ
4841 no_cache=0
4842 # Check whether --enable-docview or --disable-docview was given.
4843if test "${enable_docview+set}" = set; then
4844 enableval="$enable_docview"
698dcdb6 4845
10f2d63a
VZ
4846 if test "$enableval" = yes; then
4847 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
4848 else
4849 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
4850 fi
698dcdb6 4851
10f2d63a 4852else
698dcdb6 4853
10f2d63a
VZ
4854 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
4855 if test "x$LINE" != x ; then
4856 eval "DEFAULT_$LINE"
4857 else
4858 no_cache=1
4859 fi
4860
4861 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
698dcdb6
VZ
4862
4863fi
10f2d63a
VZ
4864
4865
4866 eval "$ac_cv_use_docview"
4867 if test "$no_cache" != 1; then
4868 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
4869 fi
4870
4871 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
698dcdb6 4872 echo "$ac_t""yes" 1>&6
10f2d63a 4873 else
698dcdb6 4874 echo "$ac_t""no" 1>&6
10f2d63a 4875 fi
698dcdb6 4876
10f2d63a 4877
698dcdb6 4878 echo $ac_n "checking for --enable-help""... $ac_c" 1>&6
4cdb0ab0 4879echo "configure:4880: checking for --enable-help" >&5
10f2d63a
VZ
4880 no_cache=0
4881 # Check whether --enable-help or --disable-help was given.
4882if test "${enable_help+set}" = set; then
4883 enableval="$enable_help"
698dcdb6 4884
10f2d63a
VZ
4885 if test "$enableval" = yes; then
4886 ac_cv_use_help='wxUSE_HELP=yes'
4887 else
4888 ac_cv_use_help='wxUSE_HELP=no'
4889 fi
698dcdb6 4890
10f2d63a 4891else
698dcdb6 4892
10f2d63a
VZ
4893 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
4894 if test "x$LINE" != x ; then
4895 eval "DEFAULT_$LINE"
4896 else
4897 no_cache=1
4898 fi
4899
4900 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
698dcdb6
VZ
4901
4902fi
10f2d63a
VZ
4903
4904
4905 eval "$ac_cv_use_help"
4906 if test "$no_cache" != 1; then
4907 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
4908 fi
4909
4910 if test "$wxUSE_HELP" = yes; then
698dcdb6 4911 echo "$ac_t""yes" 1>&6
10f2d63a 4912 else
698dcdb6 4913 echo "$ac_t""no" 1>&6
10f2d63a 4914 fi
698dcdb6 4915
10f2d63a 4916
29fd3c0c 4917 echo $ac_n "checking for --enable-mshtmlhelp""... $ac_c" 1>&6
4cdb0ab0 4918echo "configure:4919: checking for --enable-mshtmlhelp" >&5
29fd3c0c
VS
4919 no_cache=0
4920 # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
4921if test "${enable_mshtmlhelp+set}" = set; then
4922 enableval="$enable_mshtmlhelp"
4923
4924 if test "$enableval" = yes; then
4925 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
4926 else
4927 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
4928 fi
4929
4930else
4931
4932 LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
4933 if test "x$LINE" != x ; then
4934 eval "DEFAULT_$LINE"
4935 else
4936 no_cache=1
4937 fi
4938
4939 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
4940
4941fi
4942
4943
4944 eval "$ac_cv_use_mshtmlhelp"
4945 if test "$no_cache" != 1; then
4946 echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
4947 fi
4948
4949 if test "$wxUSE_MS_HTML_HELP" = yes; then
4950 echo "$ac_t""yes" 1>&6
4951 else
4952 echo "$ac_t""no" 1>&6
4953 fi
4954
4955
3379ed37 4956 echo $ac_n "checking for --enable-html""... $ac_c" 1>&6
4cdb0ab0 4957echo "configure:4958: checking for --enable-html" >&5
3379ed37
VZ
4958 no_cache=0
4959 # Check whether --enable-html or --disable-html was given.
4960if test "${enable_html+set}" = set; then
4961 enableval="$enable_html"
4962
4963 if test "$enableval" = yes; then
4964 ac_cv_use_html='wxUSE_HTML=yes'
4965 else
4966 ac_cv_use_html='wxUSE_HTML=no'
4967 fi
4968
4969else
4970
4971 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
4972 if test "x$LINE" != x ; then
4973 eval "DEFAULT_$LINE"
4974 else
4975 no_cache=1
4976 fi
4977
4978 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
4979
4980fi
4981
4982
4983 eval "$ac_cv_use_html"
4984 if test "$no_cache" != 1; then
4985 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
4986 fi
4987
4988 if test "$wxUSE_HTML" = yes; then
4989 echo "$ac_t""yes" 1>&6
4990 else
4991 echo "$ac_t""no" 1>&6
4992 fi
4993
4994
4995 echo $ac_n "checking for --enable-htmlhelp""... $ac_c" 1>&6
4cdb0ab0 4996echo "configure:4997: checking for --enable-htmlhelp" >&5
3379ed37
VZ
4997 no_cache=0
4998 # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
4999if test "${enable_htmlhelp+set}" = set; then
5000 enableval="$enable_htmlhelp"
5001
5002 if test "$enableval" = yes; then
5003 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
5004 else
5005 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
5006 fi
5007
5008else
5009
5010 LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
5011 if test "x$LINE" != x ; then
5012 eval "DEFAULT_$LINE"
5013 else
5014 no_cache=1
5015 fi
5016
5017 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
5018
5019fi
5020
5021
5022 eval "$ac_cv_use_htmlhelp"
5023 if test "$no_cache" != 1; then
5024 echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
5025 fi
5026
5027 if test "$wxUSE_WXHTML_HELP" = yes; then
5028 echo "$ac_t""yes" 1>&6
5029 else
5030 echo "$ac_t""no" 1>&6
5031 fi
5032
5033
698dcdb6 5034 echo $ac_n "checking for --enable-constraints""... $ac_c" 1>&6
4cdb0ab0 5035echo "configure:5036: checking for --enable-constraints" >&5
10f2d63a
VZ
5036 no_cache=0
5037 # Check whether --enable-constraints or --disable-constraints was given.
5038if test "${enable_constraints+set}" = set; then
5039 enableval="$enable_constraints"
698dcdb6 5040
10f2d63a
VZ
5041 if test "$enableval" = yes; then
5042 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
5043 else
5044 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
5045 fi
698dcdb6 5046
10f2d63a 5047else
698dcdb6 5048
10f2d63a
VZ
5049 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
5050 if test "x$LINE" != x ; then
5051 eval "DEFAULT_$LINE"
5052 else
5053 no_cache=1
5054 fi
5055
5056 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
698dcdb6
VZ
5057
5058fi
10f2d63a
VZ
5059
5060
5061 eval "$ac_cv_use_constraints"
5062 if test "$no_cache" != 1; then
5063 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
5064 fi
5065
5066 if test "$wxUSE_CONSTRAINTS" = yes; then
698dcdb6 5067 echo "$ac_t""yes" 1>&6
10f2d63a 5068 else
698dcdb6 5069 echo "$ac_t""no" 1>&6
10f2d63a 5070 fi
698dcdb6 5071
10f2d63a 5072
698dcdb6 5073 echo $ac_n "checking for --enable-printarch""... $ac_c" 1>&6
4cdb0ab0 5074echo "configure:5075: checking for --enable-printarch" >&5
10f2d63a
VZ
5075 no_cache=0
5076 # Check whether --enable-printarch or --disable-printarch was given.
5077if test "${enable_printarch+set}" = set; then
5078 enableval="$enable_printarch"
698dcdb6 5079
10f2d63a
VZ
5080 if test "$enableval" = yes; then
5081 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
5082 else
5083 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
5084 fi
698dcdb6 5085
10f2d63a 5086else
698dcdb6 5087
10f2d63a
VZ
5088 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
5089 if test "x$LINE" != x ; then
5090 eval "DEFAULT_$LINE"
5091 else
5092 no_cache=1
5093 fi
5094
5095 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
698dcdb6
VZ
5096
5097fi
10f2d63a
VZ
5098
5099
5100 eval "$ac_cv_use_printarch"
5101 if test "$no_cache" != 1; then
5102 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
5103 fi
5104
5105 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
698dcdb6 5106 echo "$ac_t""yes" 1>&6
10f2d63a 5107 else
698dcdb6 5108 echo "$ac_t""no" 1>&6
10f2d63a 5109 fi
698dcdb6 5110
10f2d63a 5111
698dcdb6 5112 echo $ac_n "checking for --enable-mdi""... $ac_c" 1>&6
4cdb0ab0 5113echo "configure:5114: checking for --enable-mdi" >&5
10f2d63a
VZ
5114 no_cache=0
5115 # Check whether --enable-mdi or --disable-mdi was given.
5116if test "${enable_mdi+set}" = set; then
5117 enableval="$enable_mdi"
698dcdb6 5118
10f2d63a
VZ
5119 if test "$enableval" = yes; then
5120 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes'
5121 else
5122 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no'
5123 fi
698dcdb6 5124
10f2d63a 5125else
698dcdb6 5126
10f2d63a
VZ
5127 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
5128 if test "x$LINE" != x ; then
5129 eval "DEFAULT_$LINE"
5130 else
5131 no_cache=1
5132 fi
5133
5134 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
698dcdb6
VZ
5135
5136fi
10f2d63a
VZ
5137
5138
5139 eval "$ac_cv_use_mdi"
5140 if test "$no_cache" != 1; then
5141 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
5142 fi
5143
5144 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
698dcdb6 5145 echo "$ac_t""yes" 1>&6
10f2d63a 5146 else
698dcdb6 5147 echo "$ac_t""no" 1>&6
10f2d63a 5148 fi
698dcdb6
VZ
5149
5150
1e6feb95 5151 echo $ac_n "checking for --enable-loggui""... $ac_c" 1>&6
4cdb0ab0 5152echo "configure:5153: checking for --enable-loggui" >&5
1e6feb95
VZ
5153 no_cache=0
5154 # Check whether --enable-loggui or --disable-loggui was given.
5155if test "${enable_loggui+set}" = set; then
5156 enableval="$enable_loggui"
5157
5158 if test "$enableval" = yes; then
5159 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
5160 else
5161 ac_cv_use_loggui='wxUSE_LOGGUI=no'
5162 fi
5163
5164else
5165
5166 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
5167 if test "x$LINE" != x ; then
5168 eval "DEFAULT_$LINE"
5169 else
5170 no_cache=1
5171 fi
5172
5173 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
5174
5175fi
5176
5177
5178 eval "$ac_cv_use_loggui"
5179 if test "$no_cache" != 1; then
5180 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
5181 fi
5182
5183 if test "$wxUSE_LOGGUI" = yes; then
5184 echo "$ac_t""yes" 1>&6
5185 else
5186 echo "$ac_t""no" 1>&6
5187 fi
5188
5189
5190 echo $ac_n "checking for --enable-logwin""... $ac_c" 1>&6
4cdb0ab0 5191echo "configure:5192: checking for --enable-logwin" >&5
1e6feb95
VZ
5192 no_cache=0
5193 # Check whether --enable-logwin or --disable-logwin was given.
5194if test "${enable_logwin+set}" = set; then
5195 enableval="$enable_logwin"
5196
5197 if test "$enableval" = yes; then
5198 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
5199 else
5200 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
5201 fi
5202
5203else
5204
5205 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
5206 if test "x$LINE" != x ; then
5207 eval "DEFAULT_$LINE"
5208 else
5209 no_cache=1
5210 fi
5211
5212 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
5213
5214fi
5215
5216
5217 eval "$ac_cv_use_logwin"
5218 if test "$no_cache" != 1; then
5219 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
5220 fi
5221
5222 if test "$wxUSE_LOGWINDOW" = yes; then
5223 echo "$ac_t""yes" 1>&6
5224 else
5225 echo "$ac_t""no" 1>&6
5226 fi
5227
5228
69d27ff7 5229 echo $ac_n "checking for --enable-logdialog""... $ac_c" 1>&6
4cdb0ab0 5230echo "configure:5231: checking for --enable-logdialog" >&5
69d27ff7
MB
5231 no_cache=0
5232 # Check whether --enable-logdialog or --disable-logdialog was given.
5233if test "${enable_logdialog+set}" = set; then
5234 enableval="$enable_logdialog"
5235
5236 if test "$enableval" = yes; then
5237 ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
5238 else
5239 ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
5240 fi
5241
5242else
5243
5244 LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}`
5245 if test "x$LINE" != x ; then
5246 eval "DEFAULT_$LINE"
5247 else
5248 no_cache=1
5249 fi
5250
5251 ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
5252
5253fi
5254
5255
5256 eval "$ac_cv_use_logdialog"
5257 if test "$no_cache" != 1; then
5258 echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
5259 fi
5260
5261 if test "$wxUSE_LOGDIALOG" = yes; then
5262 echo "$ac_t""yes" 1>&6
5263 else
5264 echo "$ac_t""no" 1>&6
5265 fi
5266
5267
10f2d63a 5268
698dcdb6 5269 echo $ac_n "checking for --enable-postscript""... $ac_c" 1>&6
4cdb0ab0 5270echo "configure:5271: checking for --enable-postscript" >&5
10f2d63a
VZ
5271 no_cache=0
5272 # Check whether --enable-postscript or --disable-postscript was given.
5273if test "${enable_postscript+set}" = set; then
5274 enableval="$enable_postscript"
698dcdb6 5275
10f2d63a
VZ
5276 if test "$enableval" = yes; then
5277 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
5278 else
5279 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
5280 fi
698dcdb6 5281
10f2d63a 5282else
698dcdb6 5283
10f2d63a
VZ
5284 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
5285 if test "x$LINE" != x ; then
5286 eval "DEFAULT_$LINE"
5287 else
5288 no_cache=1
5289 fi
5290
5291 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
698dcdb6
VZ
5292
5293fi
10f2d63a
VZ
5294
5295
5296 eval "$ac_cv_use_postscript"
5297 if test "$no_cache" != 1; then
5298 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
5299 fi
5300
5301 if test "$wxUSE_POSTSCRIPT" = yes; then
698dcdb6 5302 echo "$ac_t""yes" 1>&6
10f2d63a 5303 else
698dcdb6 5304 echo "$ac_t""no" 1>&6
10f2d63a 5305 fi
698dcdb6
VZ
5306
5307
5308
10f2d63a 5309
1e6feb95 5310
698dcdb6 5311 echo $ac_n "checking for --enable-prologio""... $ac_c" 1>&6
4cdb0ab0 5312echo "configure:5313: checking for --enable-prologio" >&5
10f2d63a
VZ
5313 no_cache=0
5314 # Check whether --enable-prologio or --disable-prologio was given.
5315if test "${enable_prologio+set}" = set; then
5316 enableval="$enable_prologio"
698dcdb6 5317
10f2d63a
VZ
5318 if test "$enableval" = yes; then
5319 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
5320 else
5321 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
5322 fi
698dcdb6 5323
10f2d63a 5324else
698dcdb6 5325
10f2d63a
VZ
5326 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
5327 if test "x$LINE" != x ; then
5328 eval "DEFAULT_$LINE"
5329 else
5330 no_cache=1
5331 fi
5332
5333 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
698dcdb6
VZ
5334
5335fi
10f2d63a
VZ
5336
5337
5338 eval "$ac_cv_use_prologio"
5339 if test "$no_cache" != 1; then
5340 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
5341 fi
5342
5343 if test "$wxUSE_PROLOGIO" = yes; then
698dcdb6 5344 echo "$ac_t""yes" 1>&6
10f2d63a 5345 else
698dcdb6 5346 echo "$ac_t""no" 1>&6
10f2d63a 5347 fi
698dcdb6 5348
10f2d63a 5349
698dcdb6 5350 echo $ac_n "checking for --enable-resources""... $ac_c" 1>&6
4cdb0ab0 5351echo "configure:5352: checking for --enable-resources" >&5
10f2d63a
VZ
5352 no_cache=0
5353 # Check whether --enable-resources or --disable-resources was given.
5354if test "${enable_resources+set}" = set; then
5355 enableval="$enable_resources"
698dcdb6 5356
10f2d63a
VZ
5357 if test "$enableval" = yes; then
5358 ac_cv_use_resources='wxUSE_RESOURCES=yes'
5359 else
5360 ac_cv_use_resources='wxUSE_RESOURCES=no'
5361 fi
698dcdb6 5362
10f2d63a 5363else
698dcdb6 5364
10f2d63a
VZ
5365 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
5366 if test "x$LINE" != x ; then
5367 eval "DEFAULT_$LINE"
5368 else
5369 no_cache=1
5370 fi
5371
5372 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
698dcdb6
VZ
5373
5374fi
10f2d63a
VZ
5375
5376
5377 eval "$ac_cv_use_resources"
5378 if test "$no_cache" != 1; then
5379 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
5380 fi
5381
5382 if test "$wxUSE_RESOURCES" = yes; then
698dcdb6 5383 echo "$ac_t""yes" 1>&6
10f2d63a 5384 else
698dcdb6 5385 echo "$ac_t""no" 1>&6
10f2d63a 5386 fi
698dcdb6 5387
10f2d63a 5388
698dcdb6
VZ
5389
5390 echo $ac_n "checking for --enable-xresources""... $ac_c" 1>&6
4cdb0ab0 5391echo "configure:5392: checking for --enable-xresources" >&5
10f2d63a
VZ
5392 no_cache=0
5393 # Check whether --enable-xresources or --disable-xresources was given.
5394if test "${enable_xresources+set}" = set; then
5395 enableval="$enable_xresources"
698dcdb6 5396
10f2d63a
VZ
5397 if test "$enableval" = yes; then
5398 ac_cv_use_xresources='wxUSE_X_RESOURCES=yes'
5399 else
5400 ac_cv_use_xresources='wxUSE_X_RESOURCES=no'
5401 fi
698dcdb6 5402
10f2d63a 5403else
698dcdb6 5404
10f2d63a
VZ
5405 LINE=`grep "wxUSE_X_RESOURCES" ${wx_arg_cache_file}`
5406 if test "x$LINE" != x ; then
5407 eval "DEFAULT_$LINE"
5408 else
5409 no_cache=1
5410 fi
5411
5412 ac_cv_use_xresources='wxUSE_X_RESOURCES='$DEFAULT_wxUSE_X_RESOURCES
698dcdb6
VZ
5413
5414fi
10f2d63a
VZ
5415
5416
5417 eval "$ac_cv_use_xresources"
5418 if test "$no_cache" != 1; then
5419 echo $ac_cv_use_xresources >> ${wx_arg_cache_file}.tmp
5420 fi
5421
5422 if test "$wxUSE_X_RESOURCES" = yes; then
698dcdb6 5423 echo "$ac_t""yes" 1>&6
10f2d63a 5424 else
698dcdb6 5425 echo "$ac_t""no" 1>&6
10f2d63a 5426 fi
698dcdb6
VZ
5427
5428
10f2d63a 5429
698dcdb6
VZ
5430
5431 echo $ac_n "checking for --enable-clipboard""... $ac_c" 1>&6
4cdb0ab0 5432echo "configure:5433: checking for --enable-clipboard" >&5
10f2d63a
VZ
5433 no_cache=0
5434 # Check whether --enable-clipboard or --disable-clipboard was given.
5435if test "${enable_clipboard+set}" = set; then
5436 enableval="$enable_clipboard"
698dcdb6 5437
10f2d63a
VZ
5438 if test "$enableval" = yes; then
5439 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
5440 else
5441 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
5442 fi
698dcdb6 5443
10f2d63a 5444else
698dcdb6 5445
10f2d63a
VZ
5446 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
5447 if test "x$LINE" != x ; then
5448 eval "DEFAULT_$LINE"
5449 else
5450 no_cache=1
5451 fi
5452
5453 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
698dcdb6
VZ
5454
5455fi
10f2d63a
VZ
5456
5457
5458 eval "$ac_cv_use_clipboard"
5459 if test "$no_cache" != 1; then
5460 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
5461 fi
5462
5463 if test "$wxUSE_CLIPBOARD" = yes; then
698dcdb6 5464 echo "$ac_t""yes" 1>&6
10f2d63a 5465 else
698dcdb6 5466 echo "$ac_t""no" 1>&6
10f2d63a 5467 fi
698dcdb6 5468
10f2d63a 5469
698dcdb6 5470 echo $ac_n "checking for --enable-dnd""... $ac_c" 1>&6
4cdb0ab0 5471echo "configure:5472: checking for --enable-dnd" >&5
10f2d63a
VZ
5472 no_cache=0
5473 # Check whether --enable-dnd or --disable-dnd was given.
5474if test "${enable_dnd+set}" = set; then
5475 enableval="$enable_dnd"
698dcdb6 5476
10f2d63a
VZ
5477 if test "$enableval" = yes; then
5478 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
5479 else
5480 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
5481 fi
698dcdb6 5482
10f2d63a 5483else
698dcdb6 5484
10f2d63a
VZ
5485 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
5486 if test "x$LINE" != x ; then
5487 eval "DEFAULT_$LINE"
5488 else
5489 no_cache=1
5490 fi
5491
5492 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
698dcdb6
VZ
5493
5494fi
10f2d63a
VZ
5495
5496
5497 eval "$ac_cv_use_dnd"
5498 if test "$no_cache" != 1; then
5499 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
5500 fi
5501
5502 if test "$wxUSE_DRAG_AND_DROP" = yes; then
698dcdb6 5503 echo "$ac_t""yes" 1>&6
10f2d63a 5504 else
698dcdb6 5505 echo "$ac_t""no" 1>&6
10f2d63a 5506 fi
698dcdb6 5507
10f2d63a 5508
698dcdb6 5509 echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6
4cdb0ab0 5510echo "configure:5511: checking for --enable-metafile" >&5
b64f0a5f
RL
5511 no_cache=0
5512 # Check whether --enable-metafile or --disable-metafile was given.
5513if test "${enable_metafile+set}" = set; then
5514 enableval="$enable_metafile"
698dcdb6 5515
b64f0a5f
RL
5516 if test "$enableval" = yes; then
5517 ac_cv_use_metafile='wxUSE_METAFILE=yes'
5518 else
5519 ac_cv_use_metafile='wxUSE_METAFILE=no'
5520 fi
698dcdb6 5521
b64f0a5f 5522else
698dcdb6 5523
b64f0a5f
RL
5524 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
5525 if test "x$LINE" != x ; then
5526 eval "DEFAULT_$LINE"
5527 else
5528 no_cache=1
5529 fi
5530
5531 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
698dcdb6
VZ
5532
5533fi
b64f0a5f
RL
5534
5535
5536 eval "$ac_cv_use_metafile"
5537 if test "$no_cache" != 1; then
5538 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
5539 fi
5540
5541 if test "$wxUSE_METAFILE" = yes; then
698dcdb6 5542 echo "$ac_t""yes" 1>&6
b64f0a5f 5543 else
698dcdb6 5544 echo "$ac_t""no" 1>&6
b64f0a5f 5545 fi
698dcdb6
VZ
5546
5547
10f2d63a 5548
24176f2c 5549 echo $ac_n "checking for --enable-treelayout""... $ac_c" 1>&6
4cdb0ab0 5550echo "configure:5551: checking for --enable-treelayout" >&5
10f2d63a 5551 no_cache=0
24176f2c
GD
5552 # Check whether --enable-treelayout or --disable-treelayout was given.
5553if test "${enable_treelayout+set}" = set; then
5554 enableval="$enable_treelayout"
698dcdb6 5555
10f2d63a 5556 if test "$enableval" = yes; then
24176f2c 5557 ac_cv_use_treelayout='wxUSE_TREELAYOUT=yes'
10f2d63a 5558 else
24176f2c 5559 ac_cv_use_treelayout='wxUSE_TREELAYOUT=no'
10f2d63a 5560 fi
698dcdb6 5561
10f2d63a 5562else
698dcdb6 5563
24176f2c 5564 LINE=`grep "wxUSE_TREELAYOUT" ${wx_arg_cache_file}`
10f2d63a
VZ
5565 if test "x$LINE" != x ; then
5566 eval "DEFAULT_$LINE"
5567 else
5568 no_cache=1
5569 fi
5570
24176f2c 5571 ac_cv_use_treelayout='wxUSE_TREELAYOUT='$DEFAULT_wxUSE_TREELAYOUT
698dcdb6
VZ
5572
5573fi
10f2d63a
VZ
5574
5575
24176f2c 5576 eval "$ac_cv_use_treelayout"
10f2d63a 5577 if test "$no_cache" != 1; then
24176f2c 5578 echo $ac_cv_use_treelayout >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
5579 fi
5580
24176f2c 5581 if test "$wxUSE_TREELAYOUT" = yes; then
698dcdb6 5582 echo "$ac_t""yes" 1>&6
10f2d63a 5583 else
698dcdb6 5584 echo "$ac_t""no" 1>&6
10f2d63a 5585 fi
698dcdb6 5586
10f2d63a 5587
698dcdb6
VZ
5588
5589
5590 echo $ac_n "checking for --enable-controls""... $ac_c" 1>&6
4cdb0ab0 5591echo "configure:5592: checking for --enable-controls" >&5
10f2d63a
VZ
5592 no_cache=0
5593 # Check whether --enable-controls or --disable-controls was given.
5594if test "${enable_controls+set}" = set; then
5595 enableval="$enable_controls"
698dcdb6 5596
10f2d63a
VZ
5597 if test "$enableval" = yes; then
5598 ac_cv_use_controls='wxUSE_CONTROLS=yes'
5599 else
5600 ac_cv_use_controls='wxUSE_CONTROLS=no'
5601 fi
698dcdb6 5602
10f2d63a 5603else
698dcdb6 5604
10f2d63a
VZ
5605 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
5606 if test "x$LINE" != x ; then
5607 eval "DEFAULT_$LINE"
5608 else
5609 no_cache=1
5610 fi
5611
5612 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
698dcdb6
VZ
5613
5614fi
10f2d63a
VZ
5615
5616
5617 eval "$ac_cv_use_controls"
5618 if test "$no_cache" != 1; then
5619 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
5620 fi
5621
5622 if test "$wxUSE_CONTROLS" = yes; then
698dcdb6 5623 echo "$ac_t""yes" 1>&6
10f2d63a 5624 else
698dcdb6 5625 echo "$ac_t""no" 1>&6
10f2d63a 5626 fi
698dcdb6 5627
10f2d63a
VZ
5628
5629if test "$wxUSE_CONTROLS" = "yes"; then
5630 DEFAULT_wxUSE_ACCEL=yes
1e6feb95
VZ
5631 DEFAULT_wxUSE_BMPBUTTON=yes
5632 DEFAULT_wxUSE_BUTTON=yes
5633 DEFAULT_wxUSE_CALCTRL=no
10f2d63a
VZ
5634 DEFAULT_wxUSE_CARET=yes
5635 DEFAULT_wxUSE_COMBOBOX=yes
10f2d63a
VZ
5636 DEFAULT_wxUSE_CHECKBOX=yes
5637 DEFAULT_wxUSE_CHECKLISTBOX=yes
5638 DEFAULT_wxUSE_CHOICE=yes
5639 DEFAULT_wxUSE_GAUGE=yes
5640 DEFAULT_wxUSE_GRID=yes
cc977e5f 5641 DEFAULT_wxUSE_NEW_GRID=yes
10f2d63a
VZ
5642 DEFAULT_wxUSE_IMAGLIST=yes
5643 DEFAULT_wxUSE_LISTBOX=yes
5644 DEFAULT_wxUSE_LISTCTRL=yes
5645 DEFAULT_wxUSE_NOTEBOOK=yes
24176f2c 5646 DEFAULT_wxUSE_PROPSHEET=yes
10f2d63a
VZ
5647 DEFAULT_wxUSE_RADIOBOX=yes
5648 DEFAULT_wxUSE_RADIOBTN=yes
5649 DEFAULT_wxUSE_SASH=yes
5650 DEFAULT_wxUSE_SCROLLBAR=yes
5651 DEFAULT_wxUSE_SLIDER=yes
5652 DEFAULT_wxUSE_SPINBTN=yes
56cfaa52 5653 DEFAULT_wxUSE_SPINCTRL=yes
10f2d63a
VZ
5654 DEFAULT_wxUSE_SPLITTER=yes
5655 DEFAULT_wxUSE_STATBMP=yes
5656 DEFAULT_wxUSE_STATBOX=yes
5657 DEFAULT_wxUSE_STATLINE=yes
5658 DEFAULT_wxUSE_STATUSBAR=yes
5659 DEFAULT_wxUSE_TAB_DIALOG=yes
1db8dc4a 5660 DEFAULT_wxUSE_TOGGLEBTN=yes
10f2d63a 5661 DEFAULT_wxUSE_TOOLBAR=yes
360d6699
VZ
5662 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
5663 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
10f2d63a
VZ
5664 DEFAULT_wxUSE_TOOLTIPS=yes
5665 DEFAULT_wxUSE_TREECTRL=yes
9f41d601 5666 DEFAULT_wxUSE_POPUPWIN=yes
9926e4a4 5667 DEFAULT_wxUSE_TIPWINDOW=yes
10f2d63a
VZ
5668elif test "$wxUSE_CONTROLS" = "no"; then
5669 DEFAULT_wxUSE_ACCEL=no
1e6feb95
VZ
5670 DEFAULT_wxUSE_BMPBUTTON=no
5671 DEFAULT_wxUSE_BUTTON=no
5672 DEFAULT_wxUSE_CALCTRL=no
10f2d63a
VZ
5673 DEFAULT_wxUSE_CARET=no
5674 DEFAULT_wxUSE_COMBOBOX=no
10f2d63a
VZ
5675 DEFAULT_wxUSE_CHECKBOX=no
5676 DEFAULT_wxUSE_CHECKLISTBOX=no
5677 DEFAULT_wxUSE_CHOICE=no
5678 DEFAULT_wxUSE_GAUGE=no
5679 DEFAULT_wxUSE_GRID=no
5680 DEFAULT_wxUSE_NEW_GRID=no
5681 DEFAULT_wxUSE_IMAGLIST=no
5682 DEFAULT_wxUSE_LISTBOX=no
5683 DEFAULT_wxUSE_LISTCTRL=no
5684 DEFAULT_wxUSE_NOTEBOOK=no
24176f2c 5685 DEFAULT_wxUSE_PROPSHEET=no
10f2d63a
VZ
5686 DEFAULT_wxUSE_RADIOBOX=no
5687 DEFAULT_wxUSE_RADIOBTN=no
5688 DEFAULT_wxUSE_SASH=no
5689 DEFAULT_wxUSE_SCROLLBAR=no
5690 DEFAULT_wxUSE_SLIDER=no
5691 DEFAULT_wxUSE_SPINBTN=no
56cfaa52 5692 DEFAULT_wxUSE_SPINCTRL=no
10f2d63a
VZ
5693 DEFAULT_wxUSE_SPLITTER=no
5694 DEFAULT_wxUSE_STATBMP=no
5695 DEFAULT_wxUSE_STATBOX=no
5696 DEFAULT_wxUSE_STATLINE=no
5697 DEFAULT_wxUSE_STATUSBAR=no
5698 DEFAULT_wxUSE_TAB_DIALOG=no
1db8dc4a 5699 DEFAULT_wxUSE_TOGGLEBTN=no
10f2d63a 5700 DEFAULT_wxUSE_TOOLBAR=no
360d6699
VZ
5701 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
5702 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
10f2d63a
VZ
5703 DEFAULT_wxUSE_TOOLTIPS=no
5704 DEFAULT_wxUSE_TREECTRL=no
9f41d601 5705 DEFAULT_wxUSE_POPUPWIN=no
9926e4a4 5706 DEFAULT_wxUSE_TIPWINDOW=no
10f2d63a
VZ
5707fi
5708
698dcdb6
VZ
5709
5710 echo $ac_n "checking for --enable-accel""... $ac_c" 1>&6
4cdb0ab0 5711echo "configure:5712: checking for --enable-accel" >&5
10f2d63a
VZ
5712 no_cache=0
5713 # Check whether --enable-accel or --disable-accel was given.
5714if test "${enable_accel+set}" = set; then
5715 enableval="$enable_accel"
698dcdb6 5716
10f2d63a
VZ
5717 if test "$enableval" = yes; then
5718 ac_cv_use_accel='wxUSE_ACCEL=yes'
5719 else
5720 ac_cv_use_accel='wxUSE_ACCEL=no'
5721 fi
698dcdb6 5722
10f2d63a 5723else
698dcdb6 5724
10f2d63a
VZ
5725 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
5726 if test "x$LINE" != x ; then
5727 eval "DEFAULT_$LINE"
5728 else
5729 no_cache=1
5730 fi
5731
5732 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
698dcdb6
VZ
5733
5734fi
10f2d63a
VZ
5735
5736
5737 eval "$ac_cv_use_accel"
5738 if test "$no_cache" != 1; then
5739 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
5740 fi
5741
5742 if test "$wxUSE_ACCEL" = yes; then
698dcdb6 5743 echo "$ac_t""yes" 1>&6
10f2d63a 5744 else
698dcdb6 5745 echo "$ac_t""no" 1>&6
10f2d63a 5746 fi
698dcdb6 5747
10f2d63a 5748
1e6feb95 5749 echo $ac_n "checking for --enable-button""... $ac_c" 1>&6
4cdb0ab0 5750echo "configure:5751: checking for --enable-button" >&5
10f2d63a 5751 no_cache=0
1e6feb95
VZ
5752 # Check whether --enable-button or --disable-button was given.
5753if test "${enable_button+set}" = set; then
5754 enableval="$enable_button"
698dcdb6 5755
10f2d63a 5756 if test "$enableval" = yes; then
1e6feb95 5757 ac_cv_use_button='wxUSE_BUTTON=yes'
10f2d63a 5758 else
1e6feb95 5759 ac_cv_use_button='wxUSE_BUTTON=no'
10f2d63a 5760 fi
698dcdb6 5761
10f2d63a 5762else
698dcdb6 5763
1e6feb95 5764 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
10f2d63a
VZ
5765 if test "x$LINE" != x ; then
5766 eval "DEFAULT_$LINE"
5767 else
5768 no_cache=1
5769 fi
5770
1e6feb95 5771 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
698dcdb6
VZ
5772
5773fi
10f2d63a
VZ
5774
5775
1e6feb95 5776 eval "$ac_cv_use_button"
10f2d63a 5777 if test "$no_cache" != 1; then
1e6feb95 5778 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
5779 fi
5780
1e6feb95 5781 if test "$wxUSE_BUTTON" = yes; then
698dcdb6 5782 echo "$ac_t""yes" 1>&6
10f2d63a 5783 else
698dcdb6 5784 echo "$ac_t""no" 1>&6
10f2d63a 5785 fi
698dcdb6 5786
10f2d63a 5787
698dcdb6 5788 echo $ac_n "checking for --enable-bmpbutton""... $ac_c" 1>&6
4cdb0ab0 5789echo "configure:5790: checking for --enable-bmpbutton" >&5
10f2d63a
VZ
5790 no_cache=0
5791 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
5792if test "${enable_bmpbutton+set}" = set; then
5793 enableval="$enable_bmpbutton"
698dcdb6 5794
10f2d63a
VZ
5795 if test "$enableval" = yes; then
5796 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
5797 else
5798 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
5799 fi
698dcdb6 5800
10f2d63a 5801else
698dcdb6 5802
10f2d63a
VZ
5803 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
5804 if test "x$LINE" != x ; then
5805 eval "DEFAULT_$LINE"
5806 else
5807 no_cache=1
5808 fi
5809
5810 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
698dcdb6
VZ
5811
5812fi
10f2d63a
VZ
5813
5814
5815 eval "$ac_cv_use_bmpbutton"
5816 if test "$no_cache" != 1; then
5817 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
5818 fi
5819
5820 if test "$wxUSE_BMPBUTTON" = yes; then
698dcdb6 5821 echo "$ac_t""yes" 1>&6
10f2d63a 5822 else
698dcdb6 5823 echo "$ac_t""no" 1>&6
10f2d63a 5824 fi
698dcdb6 5825
10f2d63a 5826
1e6feb95 5827 echo $ac_n "checking for --enable-calendar""... $ac_c" 1>&6
4cdb0ab0 5828echo "configure:5829: checking for --enable-calendar" >&5
1e6feb95
VZ
5829 no_cache=0
5830 # Check whether --enable-calendar or --disable-calendar was given.
5831if test "${enable_calendar+set}" = set; then
5832 enableval="$enable_calendar"
5833
5834 if test "$enableval" = yes; then
5835 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
5836 else
5837 ac_cv_use_calendar='wxUSE_CALCTRL=no'
5838 fi
5839
5840else
5841
5842 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
5843 if test "x$LINE" != x ; then
5844 eval "DEFAULT_$LINE"
5845 else
5846 no_cache=1
5847 fi
5848
5849 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
5850
5851fi
5852
5853
5854 eval "$ac_cv_use_calendar"
5855 if test "$no_cache" != 1; then
5856 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
5857 fi
5858
5859 if test "$wxUSE_CALCTRL" = yes; then
5860 echo "$ac_t""yes" 1>&6
5861 else
5862 echo "$ac_t""no" 1>&6
5863 fi
5864
5865
5866 echo $ac_n "checking for --enable-caret""... $ac_c" 1>&6
4cdb0ab0 5867echo "configure:5868: checking for --enable-caret" >&5
1e6feb95
VZ
5868 no_cache=0
5869 # Check whether --enable-caret or --disable-caret was given.
5870if test "${enable_caret+set}" = set; then
5871 enableval="$enable_caret"
5872
5873 if test "$enableval" = yes; then
5874 ac_cv_use_caret='wxUSE_CARET=yes'
5875 else
5876 ac_cv_use_caret='wxUSE_CARET=no'
5877 fi
5878
5879else
5880
5881 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
5882 if test "x$LINE" != x ; then
5883 eval "DEFAULT_$LINE"
5884 else
5885 no_cache=1
5886 fi
5887
5888 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
5889
5890fi
5891
5892
5893 eval "$ac_cv_use_caret"
5894 if test "$no_cache" != 1; then
5895 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
5896 fi
5897
5898 if test "$wxUSE_CARET" = yes; then
5899 echo "$ac_t""yes" 1>&6
5900 else
5901 echo "$ac_t""no" 1>&6
5902 fi
5903
5904
698dcdb6 5905 echo $ac_n "checking for --enable-checkbox""... $ac_c" 1>&6
4cdb0ab0 5906echo "configure:5907: checking for --enable-checkbox" >&5
10f2d63a
VZ
5907 no_cache=0
5908 # Check whether --enable-checkbox or --disable-checkbox was given.
5909if test "${enable_checkbox+set}" = set; then
5910 enableval="$enable_checkbox"
698dcdb6 5911
10f2d63a
VZ
5912 if test "$enableval" = yes; then
5913 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
5914 else
5915 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
5916 fi
698dcdb6 5917
10f2d63a 5918else
698dcdb6 5919
10f2d63a
VZ
5920 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
5921 if test "x$LINE" != x ; then
5922 eval "DEFAULT_$LINE"
5923 else
5924 no_cache=1
5925 fi
5926
5927 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
698dcdb6
VZ
5928
5929fi
10f2d63a
VZ
5930
5931
5932 eval "$ac_cv_use_checkbox"
5933 if test "$no_cache" != 1; then
5934 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
5935 fi
5936
5937 if test "$wxUSE_CHECKBOX" = yes; then
698dcdb6 5938 echo "$ac_t""yes" 1>&6
10f2d63a 5939 else
698dcdb6 5940 echo "$ac_t""no" 1>&6
10f2d63a 5941 fi
698dcdb6 5942
10f2d63a 5943
698dcdb6 5944 echo $ac_n "checking for --enable-checklst""... $ac_c" 1>&6
4cdb0ab0 5945echo "configure:5946: checking for --enable-checklst" >&5
10f2d63a
VZ
5946 no_cache=0
5947 # Check whether --enable-checklst or --disable-checklst was given.
5948if test "${enable_checklst+set}" = set; then
5949 enableval="$enable_checklst"
698dcdb6 5950
10f2d63a
VZ
5951 if test "$enableval" = yes; then
5952 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
5953 else
5954 ac_cv_use_checklst='wxUSE_CHECKLST=no'
5955 fi
698dcdb6 5956
10f2d63a 5957else
698dcdb6 5958
10f2d63a
VZ
5959 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
5960 if test "x$LINE" != x ; then
5961 eval "DEFAULT_$LINE"
5962 else
5963 no_cache=1
5964 fi
5965
5966 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
698dcdb6
VZ
5967
5968fi
10f2d63a
VZ
5969
5970
5971 eval "$ac_cv_use_checklst"
5972 if test "$no_cache" != 1; then
5973 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
5974 fi
5975
5976 if test "$wxUSE_CHECKLST" = yes; then
698dcdb6 5977 echo "$ac_t""yes" 1>&6
10f2d63a 5978 else
698dcdb6 5979 echo "$ac_t""no" 1>&6
10f2d63a 5980 fi
698dcdb6 5981
10f2d63a 5982
698dcdb6 5983 echo $ac_n "checking for --enable-choice""... $ac_c" 1>&6
4cdb0ab0 5984echo "configure:5985: checking for --enable-choice" >&5
10f2d63a
VZ
5985 no_cache=0
5986 # Check whether --enable-choice or --disable-choice was given.
5987if test "${enable_choice+set}" = set; then
5988 enableval="$enable_choice"
698dcdb6 5989
10f2d63a
VZ
5990 if test "$enableval" = yes; then
5991 ac_cv_use_choice='wxUSE_CHOICE=yes'
5992 else
5993 ac_cv_use_choice='wxUSE_CHOICE=no'
5994 fi
698dcdb6 5995
10f2d63a 5996else
698dcdb6 5997
10f2d63a
VZ
5998 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
5999 if test "x$LINE" != x ; then
6000 eval "DEFAULT_$LINE"
6001 else
6002 no_cache=1
6003 fi
6004
6005 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
698dcdb6
VZ
6006
6007fi
10f2d63a
VZ
6008
6009
6010 eval "$ac_cv_use_choice"
6011 if test "$no_cache" != 1; then
6012 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
6013 fi
6014
6015 if test "$wxUSE_CHOICE" = yes; then
698dcdb6 6016 echo "$ac_t""yes" 1>&6
10f2d63a 6017 else
698dcdb6 6018 echo "$ac_t""no" 1>&6
10f2d63a 6019 fi
698dcdb6 6020
10f2d63a 6021
698dcdb6 6022 echo $ac_n "checking for --enable-combobox""... $ac_c" 1>&6
4cdb0ab0 6023echo "configure:6024: checking for --enable-combobox" >&5
10f2d63a
VZ
6024 no_cache=0
6025 # Check whether --enable-combobox or --disable-combobox was given.
6026if test "${enable_combobox+set}" = set; then
6027 enableval="$enable_combobox"
698dcdb6 6028
10f2d63a
VZ
6029 if test "$enableval" = yes; then
6030 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
6031 else
6032 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
6033 fi
698dcdb6 6034
10f2d63a 6035else
698dcdb6 6036
10f2d63a
VZ
6037 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
6038 if test "x$LINE" != x ; then
6039 eval "DEFAULT_$LINE"
6040 else
6041 no_cache=1
6042 fi
6043
6044 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
698dcdb6
VZ
6045
6046fi
10f2d63a
VZ
6047
6048
6049 eval "$ac_cv_use_combobox"
6050 if test "$no_cache" != 1; then
6051 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
6052 fi
6053
6054 if test "$wxUSE_COMBOBOX" = yes; then
698dcdb6 6055 echo "$ac_t""yes" 1>&6
10f2d63a 6056 else
698dcdb6 6057 echo "$ac_t""no" 1>&6
10f2d63a 6058 fi
698dcdb6 6059
10f2d63a 6060
698dcdb6 6061 echo $ac_n "checking for --enable-gauge""... $ac_c" 1>&6
4cdb0ab0 6062echo "configure:6063: checking for --enable-gauge" >&5
10f2d63a
VZ
6063 no_cache=0
6064 # Check whether --enable-gauge or --disable-gauge was given.
6065if test "${enable_gauge+set}" = set; then
6066 enableval="$enable_gauge"
698dcdb6 6067
10f2d63a
VZ
6068 if test "$enableval" = yes; then
6069 ac_cv_use_gauge='wxUSE_GAUGE=yes'
6070 else
6071 ac_cv_use_gauge='wxUSE_GAUGE=no'
6072 fi
698dcdb6 6073
10f2d63a 6074else
698dcdb6 6075
10f2d63a
VZ
6076 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
6077 if test "x$LINE" != x ; then
6078 eval "DEFAULT_$LINE"
6079 else
6080 no_cache=1
6081 fi
6082
6083 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
698dcdb6
VZ
6084
6085fi
10f2d63a
VZ
6086
6087
6088 eval "$ac_cv_use_gauge"
6089 if test "$no_cache" != 1; then
6090 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
6091 fi
6092
6093 if test "$wxUSE_GAUGE" = yes; then
698dcdb6 6094 echo "$ac_t""yes" 1>&6
10f2d63a 6095 else
698dcdb6 6096 echo "$ac_t""no" 1>&6
10f2d63a 6097 fi
698dcdb6 6098
10f2d63a 6099
698dcdb6 6100 echo $ac_n "checking for --enable-grid""... $ac_c" 1>&6
4cdb0ab0 6101echo "configure:6102: checking for --enable-grid" >&5
10f2d63a
VZ
6102 no_cache=0
6103 # Check whether --enable-grid or --disable-grid was given.
6104if test "${enable_grid+set}" = set; then
6105 enableval="$enable_grid"
698dcdb6 6106
10f2d63a
VZ
6107 if test "$enableval" = yes; then
6108 ac_cv_use_grid='wxUSE_GRID=yes'
6109 else
6110 ac_cv_use_grid='wxUSE_GRID=no'
6111 fi
698dcdb6 6112
10f2d63a 6113else
698dcdb6 6114
10f2d63a
VZ
6115 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
6116 if test "x$LINE" != x ; then
6117 eval "DEFAULT_$LINE"
6118 else
6119 no_cache=1
6120 fi
6121
6122 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
698dcdb6
VZ
6123
6124fi
10f2d63a
VZ
6125
6126
6127 eval "$ac_cv_use_grid"
6128 if test "$no_cache" != 1; then
6129 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
6130 fi
6131
6132 if test "$wxUSE_GRID" = yes; then
698dcdb6 6133 echo "$ac_t""yes" 1>&6
10f2d63a 6134 else
698dcdb6 6135 echo "$ac_t""no" 1>&6
10f2d63a 6136 fi
698dcdb6 6137
10f2d63a 6138
698dcdb6 6139 echo $ac_n "checking for --enable-newgrid""... $ac_c" 1>&6
4cdb0ab0 6140echo "configure:6141: checking for --enable-newgrid" >&5
10f2d63a
VZ
6141 no_cache=0
6142 # Check whether --enable-newgrid or --disable-newgrid was given.
6143if test "${enable_newgrid+set}" = set; then
6144 enableval="$enable_newgrid"
698dcdb6 6145
10f2d63a
VZ
6146 if test "$enableval" = yes; then
6147 ac_cv_use_newgrid='wxUSE_NEW_GRID=yes'
6148 else
6149 ac_cv_use_newgrid='wxUSE_NEW_GRID=no'
6150 fi
698dcdb6 6151
10f2d63a 6152else
698dcdb6 6153
10f2d63a
VZ
6154 LINE=`grep "wxUSE_NEW_GRID" ${wx_arg_cache_file}`
6155 if test "x$LINE" != x ; then
6156 eval "DEFAULT_$LINE"
6157 else
6158 no_cache=1
6159 fi
6160
6161 ac_cv_use_newgrid='wxUSE_NEW_GRID='$DEFAULT_wxUSE_NEW_GRID
698dcdb6
VZ
6162
6163fi
10f2d63a
VZ
6164
6165
6166 eval "$ac_cv_use_newgrid"
6167 if test "$no_cache" != 1; then
6168 echo $ac_cv_use_newgrid >> ${wx_arg_cache_file}.tmp
6169 fi
6170
6171 if test "$wxUSE_NEW_GRID" = yes; then
698dcdb6 6172 echo "$ac_t""yes" 1>&6
10f2d63a 6173 else
698dcdb6 6174 echo "$ac_t""no" 1>&6
10f2d63a 6175 fi
698dcdb6 6176
10f2d63a 6177
698dcdb6 6178 echo $ac_n "checking for --enable-imaglist""... $ac_c" 1>&6
4cdb0ab0 6179echo "configure:6180: checking for --enable-imaglist" >&5
10f2d63a
VZ
6180 no_cache=0
6181 # Check whether --enable-imaglist or --disable-imaglist was given.
6182if test "${enable_imaglist+set}" = set; then
6183 enableval="$enable_imaglist"
698dcdb6 6184
10f2d63a
VZ
6185 if test "$enableval" = yes; then
6186 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
6187 else
6188 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
6189 fi
698dcdb6 6190
10f2d63a 6191else
698dcdb6 6192
10f2d63a
VZ
6193 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
6194 if test "x$LINE" != x ; then
6195 eval "DEFAULT_$LINE"
6196 else
6197 no_cache=1
6198 fi
6199
6200 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
698dcdb6
VZ
6201
6202fi
10f2d63a
VZ
6203
6204
6205 eval "$ac_cv_use_imaglist"
6206 if test "$no_cache" != 1; then
6207 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
6208 fi
6209
6210 if test "$wxUSE_IMAGLIST" = yes; then
698dcdb6 6211 echo "$ac_t""yes" 1>&6
10f2d63a 6212 else
698dcdb6 6213 echo "$ac_t""no" 1>&6
10f2d63a 6214 fi
698dcdb6 6215
10f2d63a 6216
698dcdb6 6217 echo $ac_n "checking for --enable-listbox""... $ac_c" 1>&6
4cdb0ab0 6218echo "configure:6219: checking for --enable-listbox" >&5
10f2d63a
VZ
6219 no_cache=0
6220 # Check whether --enable-listbox or --disable-listbox was given.
6221if test "${enable_listbox+set}" = set; then
6222 enableval="$enable_listbox"
698dcdb6 6223
10f2d63a
VZ
6224 if test "$enableval" = yes; then
6225 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
6226 else
6227 ac_cv_use_listbox='wxUSE_LISTBOX=no'
6228 fi
698dcdb6 6229
10f2d63a 6230else
698dcdb6 6231
10f2d63a
VZ
6232 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
6233 if test "x$LINE" != x ; then
6234 eval "DEFAULT_$LINE"
6235 else
6236 no_cache=1
6237 fi
6238
6239 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
698dcdb6
VZ
6240
6241fi
10f2d63a
VZ
6242
6243
6244 eval "$ac_cv_use_listbox"
6245 if test "$no_cache" != 1; then
6246 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
6247 fi
6248
6249 if test "$wxUSE_LISTBOX" = yes; then
698dcdb6 6250 echo "$ac_t""yes" 1>&6
10f2d63a 6251 else
698dcdb6 6252 echo "$ac_t""no" 1>&6
10f2d63a 6253 fi
698dcdb6 6254
10f2d63a 6255
698dcdb6 6256 echo $ac_n "checking for --enable-listctrl""... $ac_c" 1>&6
4cdb0ab0 6257echo "configure:6258: checking for --enable-listctrl" >&5
10f2d63a
VZ
6258 no_cache=0
6259 # Check whether --enable-listctrl or --disable-listctrl was given.
6260if test "${enable_listctrl+set}" = set; then
6261 enableval="$enable_listctrl"
698dcdb6 6262
10f2d63a
VZ
6263 if test "$enableval" = yes; then
6264 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
6265 else
6266 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
6267 fi
698dcdb6 6268
10f2d63a 6269else
698dcdb6 6270
10f2d63a
VZ
6271 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
6272 if test "x$LINE" != x ; then
6273 eval "DEFAULT_$LINE"
6274 else
6275 no_cache=1
6276 fi
6277
6278 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
698dcdb6
VZ
6279
6280fi
10f2d63a
VZ
6281
6282
6283 eval "$ac_cv_use_listctrl"
6284 if test "$no_cache" != 1; then
6285 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
6286 fi
6287
6288 if test "$wxUSE_LISTCTRL" = yes; then
698dcdb6 6289 echo "$ac_t""yes" 1>&6
10f2d63a 6290 else
698dcdb6 6291 echo "$ac_t""no" 1>&6
10f2d63a 6292 fi
698dcdb6 6293
10f2d63a 6294
698dcdb6 6295 echo $ac_n "checking for --enable-notebook""... $ac_c" 1>&6
4cdb0ab0 6296echo "configure:6297: checking for --enable-notebook" >&5
10f2d63a
VZ
6297 no_cache=0
6298 # Check whether --enable-notebook or --disable-notebook was given.
6299if test "${enable_notebook+set}" = set; then
6300 enableval="$enable_notebook"
698dcdb6 6301
10f2d63a
VZ
6302 if test "$enableval" = yes; then
6303 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
6304 else
6305 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
6306 fi
698dcdb6 6307
10f2d63a 6308else
698dcdb6 6309
10f2d63a
VZ
6310 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
6311 if test "x$LINE" != x ; then
6312 eval "DEFAULT_$LINE"
6313 else
6314 no_cache=1
6315 fi
6316
6317 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
698dcdb6
VZ
6318
6319fi
10f2d63a
VZ
6320
6321
6322 eval "$ac_cv_use_notebook"
6323 if test "$no_cache" != 1; then
6324 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
6325 fi
6326
6327 if test "$wxUSE_NOTEBOOK" = yes; then
698dcdb6 6328 echo "$ac_t""yes" 1>&6
10f2d63a 6329 else
698dcdb6 6330 echo "$ac_t""no" 1>&6
10f2d63a 6331 fi
698dcdb6 6332
10f2d63a 6333
24176f2c 6334 echo $ac_n "checking for --enable-propsheet""... $ac_c" 1>&6
4cdb0ab0 6335echo "configure:6336: checking for --enable-propsheet" >&5
24176f2c
GD
6336 no_cache=0
6337 # Check whether --enable-propsheet or --disable-propsheet was given.
6338if test "${enable_propsheet+set}" = set; then
6339 enableval="$enable_propsheet"
6340
6341 if test "$enableval" = yes; then
6342 ac_cv_use_propsheet='wxUSE_PROPSHEET=yes'
6343 else
6344 ac_cv_use_propsheet='wxUSE_PROPSHEET=no'
6345 fi
6346
6347else
6348
6349 LINE=`grep "wxUSE_PROPSHEET" ${wx_arg_cache_file}`
6350 if test "x$LINE" != x ; then
6351 eval "DEFAULT_$LINE"
6352 else
6353 no_cache=1
6354 fi
6355
6356 ac_cv_use_propsheet='wxUSE_PROPSHEET='$DEFAULT_wxUSE_PROPSHEET
6357
6358fi
6359
6360
6361 eval "$ac_cv_use_propsheet"
6362 if test "$no_cache" != 1; then
6363 echo $ac_cv_use_propsheet >> ${wx_arg_cache_file}.tmp
6364 fi
6365
6366 if test "$wxUSE_PROPSHEET" = yes; then
6367 echo "$ac_t""yes" 1>&6
6368 else
6369 echo "$ac_t""no" 1>&6
6370 fi
6371
6372
698dcdb6 6373 echo $ac_n "checking for --enable-radiobox""... $ac_c" 1>&6
4cdb0ab0 6374echo "configure:6375: checking for --enable-radiobox" >&5
10f2d63a
VZ
6375 no_cache=0
6376 # Check whether --enable-radiobox or --disable-radiobox was given.
6377if test "${enable_radiobox+set}" = set; then
6378 enableval="$enable_radiobox"
698dcdb6 6379
10f2d63a
VZ
6380 if test "$enableval" = yes; then
6381 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
6382 else
6383 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
6384 fi
698dcdb6 6385
10f2d63a 6386else
698dcdb6 6387
10f2d63a
VZ
6388 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
6389 if test "x$LINE" != x ; then
6390 eval "DEFAULT_$LINE"
6391 else
6392 no_cache=1
6393 fi
6394
6395 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
698dcdb6
VZ
6396
6397fi
10f2d63a
VZ
6398
6399
6400 eval "$ac_cv_use_radiobox"
6401 if test "$no_cache" != 1; then
6402 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
6403 fi
6404
6405 if test "$wxUSE_RADIOBOX" = yes; then
698dcdb6 6406 echo "$ac_t""yes" 1>&6
10f2d63a 6407 else
698dcdb6 6408 echo "$ac_t""no" 1>&6
10f2d63a 6409 fi
698dcdb6 6410
10f2d63a 6411
698dcdb6 6412 echo $ac_n "checking for --enable-radiobtn""... $ac_c" 1>&6
4cdb0ab0 6413echo "configure:6414: checking for --enable-radiobtn" >&5
10f2d63a
VZ
6414 no_cache=0
6415 # Check whether --enable-radiobtn or --disable-radiobtn was given.
6416if test "${enable_radiobtn+set}" = set; then
6417 enableval="$enable_radiobtn"
698dcdb6 6418
10f2d63a
VZ
6419 if test "$enableval" = yes; then
6420 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
6421 else
6422 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
6423 fi
698dcdb6 6424
10f2d63a 6425else
698dcdb6 6426
10f2d63a
VZ
6427 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
6428 if test "x$LINE" != x ; then
6429 eval "DEFAULT_$LINE"
6430 else
6431 no_cache=1
6432 fi
6433
6434 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
698dcdb6
VZ
6435
6436fi
10f2d63a
VZ
6437
6438
6439 eval "$ac_cv_use_radiobtn"
6440 if test "$no_cache" != 1; then
6441 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
6442 fi
6443
6444 if test "$wxUSE_RADIOBTN" = yes; then
698dcdb6 6445 echo "$ac_t""yes" 1>&6
10f2d63a 6446 else
698dcdb6 6447 echo "$ac_t""no" 1>&6
10f2d63a 6448 fi
698dcdb6 6449
10f2d63a 6450
698dcdb6 6451 echo $ac_n "checking for --enable-sash""... $ac_c" 1>&6
4cdb0ab0 6452echo "configure:6453: checking for --enable-sash" >&5
10f2d63a
VZ
6453 no_cache=0
6454 # Check whether --enable-sash or --disable-sash was given.
6455if test "${enable_sash+set}" = set; then
6456 enableval="$enable_sash"
698dcdb6 6457
10f2d63a
VZ
6458 if test "$enableval" = yes; then
6459 ac_cv_use_sash='wxUSE_SASH=yes'
6460 else
6461 ac_cv_use_sash='wxUSE_SASH=no'
6462 fi
698dcdb6 6463
10f2d63a 6464else
698dcdb6 6465
10f2d63a
VZ
6466 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
6467 if test "x$LINE" != x ; then
6468 eval "DEFAULT_$LINE"
6469 else
6470 no_cache=1
6471 fi
6472
6473 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
698dcdb6
VZ
6474
6475fi
10f2d63a
VZ
6476
6477
6478 eval "$ac_cv_use_sash"
6479 if test "$no_cache" != 1; then
6480 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
6481 fi
6482
6483 if test "$wxUSE_SASH" = yes; then
698dcdb6 6484 echo "$ac_t""yes" 1>&6
10f2d63a 6485 else
698dcdb6 6486 echo "$ac_t""no" 1>&6
10f2d63a 6487 fi
698dcdb6 6488
10f2d63a 6489
698dcdb6 6490 echo $ac_n "checking for --enable-scrollbar""... $ac_c" 1>&6
4cdb0ab0 6491echo "configure:6492: checking for --enable-scrollbar" >&5
10f2d63a
VZ
6492 no_cache=0
6493 # Check whether --enable-scrollbar or --disable-scrollbar was given.
6494if test "${enable_scrollbar+set}" = set; then
6495 enableval="$enable_scrollbar"
698dcdb6 6496
10f2d63a
VZ
6497 if test "$enableval" = yes; then
6498 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
6499 else
6500 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
6501 fi
698dcdb6 6502
10f2d63a 6503else
698dcdb6 6504
10f2d63a
VZ
6505 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
6506 if test "x$LINE" != x ; then
6507 eval "DEFAULT_$LINE"
6508 else
6509 no_cache=1
6510 fi
6511
6512 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
698dcdb6
VZ
6513
6514fi
10f2d63a
VZ
6515
6516
6517 eval "$ac_cv_use_scrollbar"
6518 if test "$no_cache" != 1; then
6519 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
6520 fi
6521
6522 if test "$wxUSE_SCROLLBAR" = yes; then
698dcdb6 6523 echo "$ac_t""yes" 1>&6
10f2d63a 6524 else
698dcdb6 6525 echo "$ac_t""no" 1>&6
10f2d63a 6526 fi
698dcdb6 6527
10f2d63a 6528
698dcdb6 6529 echo $ac_n "checking for --enable-slider""... $ac_c" 1>&6
4cdb0ab0 6530echo "configure:6531: checking for --enable-slider" >&5
10f2d63a
VZ
6531 no_cache=0
6532 # Check whether --enable-slider or --disable-slider was given.
6533if test "${enable_slider+set}" = set; then
6534 enableval="$enable_slider"
698dcdb6 6535
10f2d63a
VZ
6536 if test "$enableval" = yes; then
6537 ac_cv_use_slider='wxUSE_SLIDER=yes'
6538 else
6539 ac_cv_use_slider='wxUSE_SLIDER=no'
6540 fi
698dcdb6 6541
10f2d63a 6542else
698dcdb6 6543
10f2d63a
VZ
6544 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
6545 if test "x$LINE" != x ; then
6546 eval "DEFAULT_$LINE"
6547 else
6548 no_cache=1
6549 fi
6550
6551 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
698dcdb6
VZ
6552
6553fi
10f2d63a
VZ
6554
6555
6556 eval "$ac_cv_use_slider"
6557 if test "$no_cache" != 1; then
6558 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
6559 fi
6560
6561 if test "$wxUSE_SLIDER" = yes; then
698dcdb6 6562 echo "$ac_t""yes" 1>&6
10f2d63a 6563 else
698dcdb6 6564 echo "$ac_t""no" 1>&6
10f2d63a 6565 fi
698dcdb6 6566
10f2d63a 6567
698dcdb6 6568 echo $ac_n "checking for --enable-spinbtn""... $ac_c" 1>&6
4cdb0ab0 6569echo "configure:6570: checking for --enable-spinbtn" >&5
10f2d63a
VZ
6570 no_cache=0
6571 # Check whether --enable-spinbtn or --disable-spinbtn was given.
6572if test "${enable_spinbtn+set}" = set; then
6573 enableval="$enable_spinbtn"
698dcdb6 6574
10f2d63a
VZ
6575 if test "$enableval" = yes; then
6576 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
6577 else
6578 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
6579 fi
698dcdb6 6580
10f2d63a 6581else
698dcdb6 6582
10f2d63a
VZ
6583 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
6584 if test "x$LINE" != x ; then
6585 eval "DEFAULT_$LINE"
6586 else
6587 no_cache=1
6588 fi
6589
6590 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
698dcdb6
VZ
6591
6592fi
10f2d63a
VZ
6593
6594
6595 eval "$ac_cv_use_spinbtn"
6596 if test "$no_cache" != 1; then
6597 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
6598 fi
6599
6600 if test "$wxUSE_SPINBTN" = yes; then
698dcdb6 6601 echo "$ac_t""yes" 1>&6
10f2d63a 6602 else
698dcdb6 6603 echo "$ac_t""no" 1>&6
10f2d63a 6604 fi
698dcdb6 6605
10f2d63a 6606
698dcdb6 6607 echo $ac_n "checking for --enable-spinctrl""... $ac_c" 1>&6
4cdb0ab0 6608echo "configure:6609: checking for --enable-spinctrl" >&5
56cfaa52
RR
6609 no_cache=0
6610 # Check whether --enable-spinctrl or --disable-spinctrl was given.
6611if test "${enable_spinctrl+set}" = set; then
6612 enableval="$enable_spinctrl"
698dcdb6 6613
56cfaa52
RR
6614 if test "$enableval" = yes; then
6615 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
6616 else
6617 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
6618 fi
698dcdb6 6619
56cfaa52 6620else
698dcdb6 6621
56cfaa52
RR
6622 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
6623 if test "x$LINE" != x ; then
6624 eval "DEFAULT_$LINE"
6625 else
6626 no_cache=1
6627 fi
6628
6629 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
698dcdb6
VZ
6630
6631fi
56cfaa52
RR
6632
6633
6634 eval "$ac_cv_use_spinctrl"
6635 if test "$no_cache" != 1; then
6636 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
6637 fi
6638
6639 if test "$wxUSE_SPINCTRL" = yes; then
698dcdb6 6640 echo "$ac_t""yes" 1>&6
56cfaa52 6641 else
698dcdb6 6642 echo "$ac_t""no" 1>&6
56cfaa52 6643 fi
698dcdb6 6644
56cfaa52 6645
698dcdb6 6646 echo $ac_n "checking for --enable-splitter""... $ac_c" 1>&6
4cdb0ab0 6647echo "configure:6648: checking for --enable-splitter" >&5
10f2d63a
VZ
6648 no_cache=0
6649 # Check whether --enable-splitter or --disable-splitter was given.
6650if test "${enable_splitter+set}" = set; then
6651 enableval="$enable_splitter"
698dcdb6 6652
10f2d63a
VZ
6653 if test "$enableval" = yes; then
6654 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
6655 else
6656 ac_cv_use_splitter='wxUSE_SPLITTER=no'
6657 fi
698dcdb6 6658
10f2d63a 6659else
698dcdb6 6660
10f2d63a
VZ
6661 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
6662 if test "x$LINE" != x ; then
6663 eval "DEFAULT_$LINE"
6664 else
6665 no_cache=1
6666 fi
6667
6668 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
698dcdb6
VZ
6669
6670fi
10f2d63a
VZ
6671
6672
6673 eval "$ac_cv_use_splitter"
6674 if test "$no_cache" != 1; then
6675 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
6676 fi
6677
6678 if test "$wxUSE_SPLITTER" = yes; then
698dcdb6 6679 echo "$ac_t""yes" 1>&6
10f2d63a 6680 else
698dcdb6 6681 echo "$ac_t""no" 1>&6
10f2d63a 6682 fi
698dcdb6 6683
10f2d63a 6684
698dcdb6 6685 echo $ac_n "checking for --enable-statbmp""... $ac_c" 1>&6
4cdb0ab0 6686echo "configure:6687: checking for --enable-statbmp" >&5
10f2d63a
VZ
6687 no_cache=0
6688 # Check whether --enable-statbmp or --disable-statbmp was given.
6689if test "${enable_statbmp+set}" = set; then
6690 enableval="$enable_statbmp"
698dcdb6 6691
10f2d63a
VZ
6692 if test "$enableval" = yes; then
6693 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
6694 else
6695 ac_cv_use_statbmp='wxUSE_STATBMP=no'
6696 fi
698dcdb6 6697
10f2d63a 6698else
698dcdb6 6699
10f2d63a
VZ
6700 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
6701 if test "x$LINE" != x ; then
6702 eval "DEFAULT_$LINE"
6703 else
6704 no_cache=1
6705 fi
6706
6707 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
698dcdb6
VZ
6708
6709fi
10f2d63a
VZ
6710
6711
6712 eval "$ac_cv_use_statbmp"
6713 if test "$no_cache" != 1; then
6714 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
6715 fi
6716
6717 if test "$wxUSE_STATBMP" = yes; then
698dcdb6 6718 echo "$ac_t""yes" 1>&6
10f2d63a 6719 else
698dcdb6 6720 echo "$ac_t""no" 1>&6
10f2d63a 6721 fi
698dcdb6 6722
10f2d63a 6723
698dcdb6 6724 echo $ac_n "checking for --enable-statbox""... $ac_c" 1>&6
4cdb0ab0 6725echo "configure:6726: checking for --enable-statbox" >&5
10f2d63a
VZ
6726 no_cache=0
6727 # Check whether --enable-statbox or --disable-statbox was given.
6728if test "${enable_statbox+set}" = set; then
6729 enableval="$enable_statbox"
698dcdb6 6730
10f2d63a
VZ
6731 if test "$enableval" = yes; then
6732 ac_cv_use_statbox='wxUSE_STATBOX=yes'
6733 else
6734 ac_cv_use_statbox='wxUSE_STATBOX=no'
6735 fi
698dcdb6 6736
10f2d63a 6737else
698dcdb6 6738
10f2d63a
VZ
6739 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
6740 if test "x$LINE" != x ; then
6741 eval "DEFAULT_$LINE"
6742 else
6743 no_cache=1
6744 fi
6745
6746 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
698dcdb6
VZ
6747
6748fi
10f2d63a
VZ
6749
6750
6751 eval "$ac_cv_use_statbox"
6752 if test "$no_cache" != 1; then
6753 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
6754 fi
6755
6756 if test "$wxUSE_STATBOX" = yes; then
698dcdb6 6757 echo "$ac_t""yes" 1>&6
10f2d63a 6758 else
698dcdb6 6759 echo "$ac_t""no" 1>&6
10f2d63a 6760 fi
698dcdb6 6761
10f2d63a 6762
698dcdb6 6763 echo $ac_n "checking for --enable-statline""... $ac_c" 1>&6
4cdb0ab0 6764echo "configure:6765: checking for --enable-statline" >&5
10f2d63a
VZ
6765 no_cache=0
6766 # Check whether --enable-statline or --disable-statline was given.
6767if test "${enable_statline+set}" = set; then
6768 enableval="$enable_statline"
698dcdb6 6769
10f2d63a
VZ
6770 if test "$enableval" = yes; then
6771 ac_cv_use_statline='wxUSE_STATLINE=yes'
6772 else
6773 ac_cv_use_statline='wxUSE_STATLINE=no'
6774 fi
698dcdb6 6775
10f2d63a 6776else
698dcdb6 6777
10f2d63a
VZ
6778 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
6779 if test "x$LINE" != x ; then
6780 eval "DEFAULT_$LINE"
6781 else
6782 no_cache=1
6783 fi
6784
6785 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
698dcdb6
VZ
6786
6787fi
10f2d63a
VZ
6788
6789
6790 eval "$ac_cv_use_statline"
6791 if test "$no_cache" != 1; then
6792 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
6793 fi
6794
6795 if test "$wxUSE_STATLINE" = yes; then
698dcdb6 6796 echo "$ac_t""yes" 1>&6
10f2d63a 6797 else
698dcdb6 6798 echo "$ac_t""no" 1>&6
10f2d63a 6799 fi
698dcdb6 6800
10f2d63a 6801
1e6feb95 6802 echo $ac_n "checking for --enable-stattext""... $ac_c" 1>&6
4cdb0ab0 6803echo "configure:6804: checking for --enable-stattext" >&5
1e6feb95
VZ
6804 no_cache=0
6805 # Check whether --enable-stattext or --disable-stattext was given.
6806if test "${enable_stattext+set}" = set; then
6807 enableval="$enable_stattext"
6808
6809 if test "$enableval" = yes; then
6810 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
6811 else
6812 ac_cv_use_stattext='wxUSE_STATTEXT=no'
6813 fi
6814
6815else
6816
6817 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
6818 if test "x$LINE" != x ; then
6819 eval "DEFAULT_$LINE"
6820 else
6821 no_cache=1
6822 fi
6823
6824 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
6825
6826fi
6827
6828
6829 eval "$ac_cv_use_stattext"
6830 if test "$no_cache" != 1; then
6831 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
6832 fi
6833
6834 if test "$wxUSE_STATTEXT" = yes; then
6835 echo "$ac_t""yes" 1>&6
6836 else
6837 echo "$ac_t""no" 1>&6
6838 fi
6839
6840
698dcdb6 6841 echo $ac_n "checking for --enable-statusbar""... $ac_c" 1>&6
4cdb0ab0 6842echo "configure:6843: checking for --enable-statusbar" >&5
10f2d63a
VZ
6843 no_cache=0
6844 # Check whether --enable-statusbar or --disable-statusbar was given.
6845if test "${enable_statusbar+set}" = set; then
6846 enableval="$enable_statusbar"
698dcdb6 6847
10f2d63a
VZ
6848 if test "$enableval" = yes; then
6849 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
6850 else
6851 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
6852 fi
698dcdb6 6853
10f2d63a 6854else
698dcdb6 6855
10f2d63a
VZ
6856 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
6857 if test "x$LINE" != x ; then
6858 eval "DEFAULT_$LINE"
6859 else
6860 no_cache=1
6861 fi
6862
6863 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
698dcdb6
VZ
6864
6865fi
10f2d63a
VZ
6866
6867
6868 eval "$ac_cv_use_statusbar"
6869 if test "$no_cache" != 1; then
6870 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
6871 fi
6872
6873 if test "$wxUSE_STATUSBAR" = yes; then
698dcdb6 6874 echo "$ac_t""yes" 1>&6
10f2d63a 6875 else
698dcdb6 6876 echo "$ac_t""no" 1>&6
10f2d63a 6877 fi
698dcdb6 6878
10f2d63a 6879
698dcdb6 6880 echo $ac_n "checking for --enable-tabdialog""... $ac_c" 1>&6
4cdb0ab0 6881echo "configure:6882: checking for --enable-tabdialog" >&5
10f2d63a
VZ
6882 no_cache=0
6883 # Check whether --enable-tabdialog or --disable-tabdialog was given.
6884if test "${enable_tabdialog+set}" = set; then
6885 enableval="$enable_tabdialog"
698dcdb6 6886
10f2d63a
VZ
6887 if test "$enableval" = yes; then
6888 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
6889 else
6890 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
6891 fi
698dcdb6 6892
10f2d63a 6893else
698dcdb6 6894
10f2d63a
VZ
6895 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
6896 if test "x$LINE" != x ; then
6897 eval "DEFAULT_$LINE"
6898 else
6899 no_cache=1
6900 fi
6901
6902 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
698dcdb6
VZ
6903
6904fi
10f2d63a
VZ
6905
6906
6907 eval "$ac_cv_use_tabdialog"
6908 if test "$no_cache" != 1; then
6909 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
6910 fi
6911
6912 if test "$wxUSE_TABDIALOG" = yes; then
698dcdb6 6913 echo "$ac_t""yes" 1>&6
10f2d63a 6914 else
698dcdb6 6915 echo "$ac_t""no" 1>&6
10f2d63a 6916 fi
698dcdb6 6917
10f2d63a 6918
1e6feb95 6919 echo $ac_n "checking for --enable-textctrl""... $ac_c" 1>&6
4cdb0ab0 6920echo "configure:6921: checking for --enable-textctrl" >&5
1e6feb95
VZ
6921 no_cache=0
6922 # Check whether --enable-textctrl or --disable-textctrl was given.
6923if test "${enable_textctrl+set}" = set; then
6924 enableval="$enable_textctrl"
6925
6926 if test "$enableval" = yes; then
6927 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
6928 else
6929 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
6930 fi
6931
6932else
6933
6934 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
6935 if test "x$LINE" != x ; then
6936 eval "DEFAULT_$LINE"
6937 else
6938 no_cache=1
6939 fi
6940
6941 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
6942
6943fi
6944
6945
6946 eval "$ac_cv_use_textctrl"
6947 if test "$no_cache" != 1; then
6948 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
6949 fi
6950
6951 if test "$wxUSE_TEXTCTRL" = yes; then
6952 echo "$ac_t""yes" 1>&6
6953 else
6954 echo "$ac_t""no" 1>&6
6955 fi
6956
6957
698dcdb6 6958 echo $ac_n "checking for --enable-togglebtn""... $ac_c" 1>&6
4cdb0ab0 6959echo "configure:6960: checking for --enable-togglebtn" >&5
1db8dc4a
VZ
6960 no_cache=0
6961 # Check whether --enable-togglebtn or --disable-togglebtn was given.
6962if test "${enable_togglebtn+set}" = set; then
6963 enableval="$enable_togglebtn"
698dcdb6 6964
1db8dc4a
VZ
6965 if test "$enableval" = yes; then
6966 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
6967 else
6968 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
6969 fi
698dcdb6 6970
1db8dc4a 6971else
698dcdb6 6972
1db8dc4a
VZ
6973 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
6974 if test "x$LINE" != x ; then
6975 eval "DEFAULT_$LINE"
6976 else
6977 no_cache=1
6978 fi
6979
6980 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
698dcdb6
VZ
6981
6982fi
1db8dc4a
VZ
6983
6984
6985 eval "$ac_cv_use_togglebtn"
6986 if test "$no_cache" != 1; then
6987 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
6988 fi
6989
6990 if test "$wxUSE_TOGGLEBTN" = yes; then
698dcdb6 6991 echo "$ac_t""yes" 1>&6
1db8dc4a 6992 else
698dcdb6 6993 echo "$ac_t""no" 1>&6
1db8dc4a 6994 fi
698dcdb6 6995
1db8dc4a 6996
698dcdb6 6997 echo $ac_n "checking for --enable-toolbar""... $ac_c" 1>&6
4cdb0ab0 6998echo "configure:6999: checking for --enable-toolbar" >&5
10f2d63a
VZ
6999 no_cache=0
7000 # Check whether --enable-toolbar or --disable-toolbar was given.
7001if test "${enable_toolbar+set}" = set; then
7002 enableval="$enable_toolbar"
698dcdb6 7003
10f2d63a
VZ
7004 if test "$enableval" = yes; then
7005 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
7006 else
7007 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
7008 fi
698dcdb6 7009
10f2d63a 7010else
698dcdb6 7011
10f2d63a
VZ
7012 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
7013 if test "x$LINE" != x ; then
7014 eval "DEFAULT_$LINE"
7015 else
7016 no_cache=1
7017 fi
7018
7019 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
698dcdb6
VZ
7020
7021fi
10f2d63a
VZ
7022
7023
7024 eval "$ac_cv_use_toolbar"
7025 if test "$no_cache" != 1; then
7026 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
7027 fi
7028
7029 if test "$wxUSE_TOOLBAR" = yes; then
698dcdb6 7030 echo "$ac_t""yes" 1>&6
10f2d63a 7031 else
698dcdb6 7032 echo "$ac_t""no" 1>&6
10f2d63a 7033 fi
698dcdb6 7034
10f2d63a 7035
698dcdb6 7036 echo $ac_n "checking for --enable-tbarnative""... $ac_c" 1>&6
4cdb0ab0 7037echo "configure:7038: checking for --enable-tbarnative" >&5
360d6699
VZ
7038 no_cache=0
7039 # Check whether --enable-tbarnative or --disable-tbarnative was given.
7040if test "${enable_tbarnative+set}" = set; then
7041 enableval="$enable_tbarnative"
698dcdb6 7042
360d6699
VZ
7043 if test "$enableval" = yes; then
7044 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
7045 else
7046 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
7047 fi
698dcdb6 7048
360d6699 7049else
698dcdb6 7050
360d6699
VZ
7051 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
7052 if test "x$LINE" != x ; then
7053 eval "DEFAULT_$LINE"
7054 else
7055 no_cache=1
7056 fi
7057
7058 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
698dcdb6
VZ
7059
7060fi
360d6699
VZ
7061
7062
7063 eval "$ac_cv_use_tbarnative"
7064 if test "$no_cache" != 1; then
7065 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
7066 fi
7067
7068 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
698dcdb6 7069 echo "$ac_t""yes" 1>&6
360d6699 7070 else
698dcdb6 7071 echo "$ac_t""no" 1>&6
360d6699 7072 fi
698dcdb6 7073
360d6699 7074
698dcdb6 7075 echo $ac_n "checking for --enable-tbarsmpl""... $ac_c" 1>&6
4cdb0ab0 7076echo "configure:7077: checking for --enable-tbarsmpl" >&5
360d6699
VZ
7077 no_cache=0
7078 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
7079if test "${enable_tbarsmpl+set}" = set; then
7080 enableval="$enable_tbarsmpl"
698dcdb6 7081
360d6699
VZ
7082 if test "$enableval" = yes; then
7083 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
7084 else
7085 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
7086 fi
698dcdb6 7087
360d6699 7088else
698dcdb6 7089
360d6699
VZ
7090 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
7091 if test "x$LINE" != x ; then
7092 eval "DEFAULT_$LINE"
7093 else
7094 no_cache=1
7095 fi
7096
7097 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
698dcdb6
VZ
7098
7099fi
360d6699
VZ
7100
7101
7102 eval "$ac_cv_use_tbarsmpl"
7103 if test "$no_cache" != 1; then
7104 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
7105 fi
7106
7107 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
698dcdb6 7108 echo "$ac_t""yes" 1>&6
360d6699 7109 else
698dcdb6 7110 echo "$ac_t""no" 1>&6
360d6699 7111 fi
698dcdb6 7112
360d6699 7113
698dcdb6 7114 echo $ac_n "checking for --enable-treectrl""... $ac_c" 1>&6
4cdb0ab0 7115echo "configure:7116: checking for --enable-treectrl" >&5
10f2d63a
VZ
7116 no_cache=0
7117 # Check whether --enable-treectrl or --disable-treectrl was given.
7118if test "${enable_treectrl+set}" = set; then
7119 enableval="$enable_treectrl"
698dcdb6 7120
10f2d63a
VZ
7121 if test "$enableval" = yes; then
7122 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
7123 else
7124 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
7125 fi
698dcdb6 7126
10f2d63a 7127else
698dcdb6 7128
10f2d63a
VZ
7129 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
7130 if test "x$LINE" != x ; then
7131 eval "DEFAULT_$LINE"
7132 else
7133 no_cache=1
7134 fi
7135
7136 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
698dcdb6
VZ
7137
7138fi
10f2d63a
VZ
7139
7140
1e6feb95
VZ
7141 eval "$ac_cv_use_treectrl"
7142 if test "$no_cache" != 1; then
7143 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
7144 fi
7145
7146 if test "$wxUSE_TREECTRL" = yes; then
7147 echo "$ac_t""yes" 1>&6
7148 else
7149 echo "$ac_t""no" 1>&6
7150 fi
7151
7152
9926e4a4 7153 echo $ac_n "checking for --enable-tipwindow""... $ac_c" 1>&6
4cdb0ab0 7154echo "configure:7155: checking for --enable-tipwindow" >&5
9926e4a4
VZ
7155 no_cache=0
7156 # Check whether --enable-tipwindow or --disable-tipwindow was given.
7157if test "${enable_tipwindow+set}" = set; then
7158 enableval="$enable_tipwindow"
7159
7160 if test "$enableval" = yes; then
7161 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
7162 else
7163 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
7164 fi
7165
7166else
7167
7168 LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
7169 if test "x$LINE" != x ; then
7170 eval "DEFAULT_$LINE"
7171 else
7172 no_cache=1
7173 fi
7174
7175 ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
7176
7177fi
7178
7179
7180 eval "$ac_cv_use_tipwindow"
7181 if test "$no_cache" != 1; then
7182 echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
7183 fi
7184
7185 if test "$wxUSE_TIPWINDOW" = yes; then
7186 echo "$ac_t""yes" 1>&6
7187 else
7188 echo "$ac_t""no" 1>&6
7189 fi
7190
7191
9f41d601 7192 echo $ac_n "checking for --enable-popupwin""... $ac_c" 1>&6
4cdb0ab0 7193echo "configure:7194: checking for --enable-popupwin" >&5
9f41d601
RR
7194 no_cache=0
7195 # Check whether --enable-popupwin or --disable-popupwin was given.
7196if test "${enable_popupwin+set}" = set; then
7197 enableval="$enable_popupwin"
7198
7199 if test "$enableval" = yes; then
7200 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
7201 else
7202 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
7203 fi
7204
7205else
7206
7207 LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
7208 if test "x$LINE" != x ; then
7209 eval "DEFAULT_$LINE"
7210 else
7211 no_cache=1
7212 fi
7213
7214 ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
7215
7216fi
7217
7218
7219 eval "$ac_cv_use_popupwin"
7220 if test "$no_cache" != 1; then
7221 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
7222 fi
7223
7224 if test "$wxUSE_POPUPWIN" = yes; then
7225 echo "$ac_t""yes" 1>&6
7226 else
7227 echo "$ac_t""no" 1>&6
7228 fi
7229
7230
1e6feb95
VZ
7231
7232
7233 echo $ac_n "checking for --enable-commondlg""... $ac_c" 1>&6
4cdb0ab0 7234echo "configure:7235: checking for --enable-commondlg" >&5
1e6feb95
VZ
7235 no_cache=0
7236 # Check whether --enable-commondlg or --disable-commondlg was given.
7237if test "${enable_commondlg+set}" = set; then
7238 enableval="$enable_commondlg"
7239
7240 if test "$enableval" = yes; then
7241 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
7242 else
7243 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
7244 fi
7245
7246else
7247
7248 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
7249 if test "x$LINE" != x ; then
7250 eval "DEFAULT_$LINE"
7251 else
7252 no_cache=1
7253 fi
7254
7255 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
7256
7257fi
7258
7259
7260 eval "$ac_cv_use_commondlg"
7261 if test "$no_cache" != 1; then
7262 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
7263 fi
7264
7265 if test "$wxUSE_COMMONDLGS" = yes; then
7266 echo "$ac_t""yes" 1>&6
7267 else
7268 echo "$ac_t""no" 1>&6
7269 fi
7270
7271
7272 echo $ac_n "checking for --enable-choicedlg""... $ac_c" 1>&6
4cdb0ab0 7273echo "configure:7274: checking for --enable-choicedlg" >&5
1e6feb95
VZ
7274 no_cache=0
7275 # Check whether --enable-choicedlg or --disable-choicedlg was given.
7276if test "${enable_choicedlg+set}" = set; then
7277 enableval="$enable_choicedlg"
7278
7279 if test "$enableval" = yes; then
7280 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
7281 else
7282 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
7283 fi
7284
7285else
7286
7287 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
7288 if test "x$LINE" != x ; then
7289 eval "DEFAULT_$LINE"
7290 else
7291 no_cache=1
7292 fi
7293
7294 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
7295
7296fi
7297
7298
7299 eval "$ac_cv_use_choicedlg"
7300 if test "$no_cache" != 1; then
7301 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
7302 fi
7303
7304 if test "$wxUSE_CHOICEDLG" = yes; then
7305 echo "$ac_t""yes" 1>&6
7306 else
7307 echo "$ac_t""no" 1>&6
7308 fi
7309
7310
7311 echo $ac_n "checking for --enable-coldlg""... $ac_c" 1>&6
4cdb0ab0 7312echo "configure:7313: checking for --enable-coldlg" >&5
1e6feb95
VZ
7313 no_cache=0
7314 # Check whether --enable-coldlg or --disable-coldlg was given.
7315if test "${enable_coldlg+set}" = set; then
7316 enableval="$enable_coldlg"
7317
7318 if test "$enableval" = yes; then
7319 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
7320 else
7321 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
7322 fi
7323
7324else
7325
7326 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
7327 if test "x$LINE" != x ; then
7328 eval "DEFAULT_$LINE"
7329 else
7330 no_cache=1
7331 fi
7332
7333 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
7334
7335fi
7336
7337
7338 eval "$ac_cv_use_coldlg"
7339 if test "$no_cache" != 1; then
7340 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
7341 fi
7342
7343 if test "$wxUSE_COLOURDLG" = yes; then
7344 echo "$ac_t""yes" 1>&6
7345 else
7346 echo "$ac_t""no" 1>&6
7347 fi
7348
7349
7350 echo $ac_n "checking for --enable-filedlg""... $ac_c" 1>&6
4cdb0ab0 7351echo "configure:7352: checking for --enable-filedlg" >&5
1e6feb95
VZ
7352 no_cache=0
7353 # Check whether --enable-filedlg or --disable-filedlg was given.
7354if test "${enable_filedlg+set}" = set; then
7355 enableval="$enable_filedlg"
7356
7357 if test "$enableval" = yes; then
7358 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
7359 else
7360 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
7361 fi
7362
7363else
7364
7365 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
7366 if test "x$LINE" != x ; then
7367 eval "DEFAULT_$LINE"
7368 else
7369 no_cache=1
7370 fi
7371
7372 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
7373
7374fi
7375
7376
7377 eval "$ac_cv_use_filedlg"
7378 if test "$no_cache" != 1; then
7379 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
7380 fi
7381
7382 if test "$wxUSE_FILEDLG" = yes; then
7383 echo "$ac_t""yes" 1>&6
7384 else
7385 echo "$ac_t""no" 1>&6
7386 fi
7387
7388
69d27ff7 7389 echo $ac_n "checking for --enable-finddlg""... $ac_c" 1>&6
4cdb0ab0 7390echo "configure:7391: checking for --enable-finddlg" >&5
8db37e06 7391 no_cache=0
69d27ff7
MB
7392 # Check whether --enable-finddlg or --disable-finddlg was given.
7393if test "${enable_finddlg+set}" = set; then
7394 enableval="$enable_finddlg"
8db37e06
VZ
7395
7396 if test "$enableval" = yes; then
69d27ff7 7397 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
8db37e06 7398 else
69d27ff7 7399 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
8db37e06
VZ
7400 fi
7401
7402else
7403
7404 LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
7405 if test "x$LINE" != x ; then
7406 eval "DEFAULT_$LINE"
7407 else
7408 no_cache=1
7409 fi
7410
69d27ff7 7411 ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
8db37e06
VZ
7412
7413fi
7414
7415
69d27ff7 7416 eval "$ac_cv_use_finddlg"
8db37e06 7417 if test "$no_cache" != 1; then
69d27ff7 7418 echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
8db37e06
VZ
7419 fi
7420
7421 if test "$wxUSE_FINDREPLDLG" = yes; then
7422 echo "$ac_t""yes" 1>&6
7423 else
7424 echo "$ac_t""no" 1>&6
7425 fi
7426
7427
1e6feb95 7428 echo $ac_n "checking for --enable-fontdlg""... $ac_c" 1>&6
4cdb0ab0 7429echo "configure:7430: checking for --enable-fontdlg" >&5
1e6feb95
VZ
7430 no_cache=0
7431 # Check whether --enable-fontdlg or --disable-fontdlg was given.
7432if test "${enable_fontdlg+set}" = set; then
7433 enableval="$enable_fontdlg"
7434
7435 if test "$enableval" = yes; then
7436 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
7437 else
7438 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
7439 fi
7440
7441else
7442
7443 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
7444 if test "x$LINE" != x ; then
7445 eval "DEFAULT_$LINE"
7446 else
7447 no_cache=1
7448 fi
7449
7450 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
7451
7452fi
7453
7454
7455 eval "$ac_cv_use_fontdlg"
7456 if test "$no_cache" != 1; then
7457 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
7458 fi
7459
7460 if test "$wxUSE_FONTDLG" = yes; then
7461 echo "$ac_t""yes" 1>&6
7462 else
7463 echo "$ac_t""no" 1>&6
7464 fi
7465
7466
7467 echo $ac_n "checking for --enable-dirdlg""... $ac_c" 1>&6
4cdb0ab0 7468echo "configure:7469: checking for --enable-dirdlg" >&5
1e6feb95
VZ
7469 no_cache=0
7470 # Check whether --enable-dirdlg or --disable-dirdlg was given.
7471if test "${enable_dirdlg+set}" = set; then
7472 enableval="$enable_dirdlg"
7473
7474 if test "$enableval" = yes; then
7475 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
7476 else
7477 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
7478 fi
7479
7480else
7481
7482 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
7483 if test "x$LINE" != x ; then
7484 eval "DEFAULT_$LINE"
7485 else
7486 no_cache=1
7487 fi
7488
7489 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
7490
7491fi
7492
7493
7494 eval "$ac_cv_use_dirdlg"
10f2d63a 7495 if test "$no_cache" != 1; then
1e6feb95 7496 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
7497 fi
7498
1e6feb95 7499 if test "$wxUSE_DIRDLG" = yes; then
698dcdb6 7500 echo "$ac_t""yes" 1>&6
10f2d63a 7501 else
698dcdb6 7502 echo "$ac_t""no" 1>&6
10f2d63a 7503 fi
698dcdb6
VZ
7504
7505
1e6feb95 7506 echo $ac_n "checking for --enable-msgdlg""... $ac_c" 1>&6
4cdb0ab0 7507echo "configure:7508: checking for --enable-msgdlg" >&5
10f2d63a 7508 no_cache=0
1e6feb95
VZ
7509 # Check whether --enable-msgdlg or --disable-msgdlg was given.
7510if test "${enable_msgdlg+set}" = set; then
7511 enableval="$enable_msgdlg"
698dcdb6 7512
10f2d63a 7513 if test "$enableval" = yes; then
1e6feb95 7514 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
10f2d63a 7515 else
1e6feb95 7516 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
10f2d63a 7517 fi
698dcdb6 7518
10f2d63a 7519else
698dcdb6 7520
1e6feb95 7521 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
10f2d63a
VZ
7522 if test "x$LINE" != x ; then
7523 eval "DEFAULT_$LINE"
7524 else
7525 no_cache=1
7526 fi
7527
1e6feb95 7528 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
698dcdb6
VZ
7529
7530fi
10f2d63a
VZ
7531
7532
1e6feb95 7533 eval "$ac_cv_use_msgdlg"
10f2d63a 7534 if test "$no_cache" != 1; then
1e6feb95 7535 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
7536 fi
7537
1e6feb95 7538 if test "$wxUSE_MSGDLG" = yes; then
698dcdb6 7539 echo "$ac_t""yes" 1>&6
10f2d63a 7540 else
698dcdb6 7541 echo "$ac_t""no" 1>&6
10f2d63a 7542 fi
698dcdb6 7543
10f2d63a 7544
1e6feb95 7545 echo $ac_n "checking for --enable-numberdlg""... $ac_c" 1>&6
4cdb0ab0 7546echo "configure:7547: checking for --enable-numberdlg" >&5
10f2d63a 7547 no_cache=0
1e6feb95
VZ
7548 # Check whether --enable-numberdlg or --disable-numberdlg was given.
7549if test "${enable_numberdlg+set}" = set; then
7550 enableval="$enable_numberdlg"
698dcdb6 7551
10f2d63a 7552 if test "$enableval" = yes; then
1e6feb95 7553 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
10f2d63a 7554 else
1e6feb95 7555 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
10f2d63a 7556 fi
698dcdb6 7557
10f2d63a 7558else
698dcdb6 7559
1e6feb95 7560 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
10f2d63a
VZ
7561 if test "x$LINE" != x ; then
7562 eval "DEFAULT_$LINE"
7563 else
7564 no_cache=1
7565 fi
7566
1e6feb95 7567 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
698dcdb6
VZ
7568
7569fi
10f2d63a
VZ
7570
7571
1e6feb95 7572 eval "$ac_cv_use_numberdlg"
10f2d63a 7573 if test "$no_cache" != 1; then
1e6feb95 7574 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
7575 fi
7576
1e6feb95 7577 if test "$wxUSE_NUMBERDLG" = yes; then
698dcdb6 7578 echo "$ac_t""yes" 1>&6
10f2d63a 7579 else
698dcdb6 7580 echo "$ac_t""no" 1>&6
10f2d63a 7581 fi
698dcdb6 7582
10f2d63a 7583
cbca9943 7584 echo $ac_n "checking for --enable-splash""... $ac_c" 1>&6
4cdb0ab0 7585echo "configure:7586: checking for --enable-splash" >&5
cbca9943
VZ
7586 no_cache=0
7587 # Check whether --enable-splash or --disable-splash was given.
7588if test "${enable_splash+set}" = set; then
7589 enableval="$enable_splash"
7590
7591 if test "$enableval" = yes; then
7592 ac_cv_use_splash='wxUSE_SPLASH=yes'
7593 else
7594 ac_cv_use_splash='wxUSE_SPLASH=no'
7595 fi
7596
7597else
7598
7599 LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
7600 if test "x$LINE" != x ; then
7601 eval "DEFAULT_$LINE"
7602 else
7603 no_cache=1
7604 fi
7605
7606 ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
7607
7608fi
7609
7610
7611 eval "$ac_cv_use_splash"
7612 if test "$no_cache" != 1; then
7613 echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
7614 fi
7615
7616 if test "$wxUSE_SPLASH" = yes; then
7617 echo "$ac_t""yes" 1>&6
7618 else
7619 echo "$ac_t""no" 1>&6
7620 fi
7621
7622
698dcdb6 7623 echo $ac_n "checking for --enable-textdlg""... $ac_c" 1>&6
4cdb0ab0 7624echo "configure:7625: checking for --enable-textdlg" >&5
10f2d63a
VZ
7625 no_cache=0
7626 # Check whether --enable-textdlg or --disable-textdlg was given.
7627if test "${enable_textdlg+set}" = set; then
7628 enableval="$enable_textdlg"
698dcdb6 7629
10f2d63a
VZ
7630 if test "$enableval" = yes; then
7631 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
7632 else
7633 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
7634 fi
698dcdb6 7635
10f2d63a 7636else
698dcdb6 7637
10f2d63a
VZ
7638 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
7639 if test "x$LINE" != x ; then
7640 eval "DEFAULT_$LINE"
7641 else
7642 no_cache=1
7643 fi
7644
7645 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
698dcdb6
VZ
7646
7647fi
10f2d63a
VZ
7648
7649
7650 eval "$ac_cv_use_textdlg"
7651 if test "$no_cache" != 1; then
7652 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
7653 fi
7654
7655 if test "$wxUSE_TEXTDLG" = yes; then
698dcdb6 7656 echo "$ac_t""yes" 1>&6
10f2d63a 7657 else
698dcdb6 7658 echo "$ac_t""no" 1>&6
10f2d63a 7659 fi
698dcdb6 7660
10f2d63a 7661
698dcdb6 7662 echo $ac_n "checking for --enable-tipdlg""... $ac_c" 1>&6
4cdb0ab0 7663echo "configure:7664: checking for --enable-tipdlg" >&5
10f2d63a
VZ
7664 no_cache=0
7665 # Check whether --enable-tipdlg or --disable-tipdlg was given.
7666if test "${enable_tipdlg+set}" = set; then
7667 enableval="$enable_tipdlg"
698dcdb6 7668
10f2d63a
VZ
7669 if test "$enableval" = yes; then
7670 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
7671 else
7672 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
7673 fi
698dcdb6 7674
10f2d63a 7675else
698dcdb6 7676
10f2d63a
VZ
7677 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
7678 if test "x$LINE" != x ; then
7679 eval "DEFAULT_$LINE"
7680 else
7681 no_cache=1
7682 fi
7683
7684 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
698dcdb6
VZ
7685
7686fi
10f2d63a
VZ
7687
7688
7689 eval "$ac_cv_use_tipdlg"
7690 if test "$no_cache" != 1; then
7691 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
7692 fi
7693
7694 if test "$wxUSE_STARTUP_TIPS" = yes; then
698dcdb6 7695 echo "$ac_t""yes" 1>&6
10f2d63a 7696 else
698dcdb6 7697 echo "$ac_t""no" 1>&6
10f2d63a 7698 fi
698dcdb6 7699
10f2d63a 7700
698dcdb6 7701 echo $ac_n "checking for --enable-progressdlg""... $ac_c" 1>&6
4cdb0ab0 7702echo "configure:7703: checking for --enable-progressdlg" >&5
10f2d63a
VZ
7703 no_cache=0
7704 # Check whether --enable-progressdlg or --disable-progressdlg was given.
7705if test "${enable_progressdlg+set}" = set; then
7706 enableval="$enable_progressdlg"
698dcdb6 7707
10f2d63a
VZ
7708 if test "$enableval" = yes; then
7709 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
7710 else
7711 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
7712 fi
698dcdb6 7713
10f2d63a 7714else
698dcdb6 7715
10f2d63a
VZ
7716 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
7717 if test "x$LINE" != x ; then
7718 eval "DEFAULT_$LINE"
7719 else
7720 no_cache=1
7721 fi
7722
7723 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
698dcdb6
VZ
7724
7725fi
10f2d63a
VZ
7726
7727
7728 eval "$ac_cv_use_progressdlg"
7729 if test "$no_cache" != 1; then
7730 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
7731 fi
7732
7733 if test "$wxUSE_PROGRESSDLG" = yes; then
698dcdb6 7734 echo "$ac_t""yes" 1>&6
10f2d63a 7735 else
698dcdb6 7736 echo "$ac_t""no" 1>&6
10f2d63a 7737 fi
698dcdb6 7738
10f2d63a 7739
b1f5d087 7740 echo $ac_n "checking for --enable-wizarddlg""... $ac_c" 1>&6
4cdb0ab0 7741echo "configure:7742: checking for --enable-wizarddlg" >&5
b1f5d087
VZ
7742 no_cache=0
7743 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
7744if test "${enable_wizarddlg+set}" = set; then
7745 enableval="$enable_wizarddlg"
7746
7747 if test "$enableval" = yes; then
7748 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
7749 else
7750 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
7751 fi
7752
7753else
7754
7755 LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
7756 if test "x$LINE" != x ; then
7757 eval "DEFAULT_$LINE"
7758 else
7759 no_cache=1
7760 fi
7761
7762 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
7763
7764fi
7765
7766
7767 eval "$ac_cv_use_wizarddlg"
7768 if test "$no_cache" != 1; then
7769 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
7770 fi
7771
7772 if test "$wxUSE_WIZARDDLG" = yes; then
7773 echo "$ac_t""yes" 1>&6
7774 else
7775 echo "$ac_t""no" 1>&6
7776 fi
7777
7778
7779
7780
1e6feb95 7781 echo $ac_n "checking for --enable-menus""... $ac_c" 1>&6
4cdb0ab0 7782echo "configure:7783: checking for --enable-menus" >&5
1e6feb95
VZ
7783 no_cache=0
7784 # Check whether --enable-menus or --disable-menus was given.
7785if test "${enable_menus+set}" = set; then
7786 enableval="$enable_menus"
7787
7788 if test "$enableval" = yes; then
7789 ac_cv_use_menus='wxUSE_MENUS=yes'
7790 else
7791 ac_cv_use_menus='wxUSE_MENUS=no'
7792 fi
7793
7794else
7795
7796 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
7797 if test "x$LINE" != x ; then
7798 eval "DEFAULT_$LINE"
7799 else
7800 no_cache=1
7801 fi
7802
7803 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
7804
7805fi
7806
7807
7808 eval "$ac_cv_use_menus"
7809 if test "$no_cache" != 1; then
7810 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
7811 fi
7812
7813 if test "$wxUSE_MENUS" = yes; then
7814 echo "$ac_t""yes" 1>&6
7815 else
7816 echo "$ac_t""no" 1>&6
7817 fi
7818
7819
698dcdb6 7820 echo $ac_n "checking for --enable-miniframe""... $ac_c" 1>&6
4cdb0ab0 7821echo "configure:7822: checking for --enable-miniframe" >&5
10f2d63a
VZ
7822 no_cache=0
7823 # Check whether --enable-miniframe or --disable-miniframe was given.
7824if test "${enable_miniframe+set}" = set; then
7825 enableval="$enable_miniframe"
698dcdb6 7826
10f2d63a
VZ
7827 if test "$enableval" = yes; then
7828 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
7829 else
7830 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
7831 fi
698dcdb6 7832
10f2d63a 7833else
698dcdb6 7834
10f2d63a
VZ
7835 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
7836 if test "x$LINE" != x ; then
7837 eval "DEFAULT_$LINE"
7838 else
7839 no_cache=1
7840 fi
7841
7842 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
698dcdb6
VZ
7843
7844fi
10f2d63a
VZ
7845
7846
7847 eval "$ac_cv_use_miniframe"
7848 if test "$no_cache" != 1; then
7849 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
7850 fi
7851
7852 if test "$wxUSE_MINIFRAME" = yes; then
698dcdb6 7853 echo "$ac_t""yes" 1>&6
10f2d63a 7854 else
698dcdb6 7855 echo "$ac_t""no" 1>&6
10f2d63a 7856 fi
698dcdb6 7857
10f2d63a 7858
698dcdb6 7859 echo $ac_n "checking for --enable-tooltips""... $ac_c" 1>&6
4cdb0ab0 7860echo "configure:7861: checking for --enable-tooltips" >&5
10f2d63a
VZ
7861 no_cache=0
7862 # Check whether --enable-tooltips or --disable-tooltips was given.
7863if test "${enable_tooltips+set}" = set; then
7864 enableval="$enable_tooltips"
698dcdb6 7865
10f2d63a
VZ
7866 if test "$enableval" = yes; then
7867 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
7868 else
7869 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
7870 fi
698dcdb6 7871
10f2d63a 7872else
698dcdb6 7873
10f2d63a
VZ
7874 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
7875 if test "x$LINE" != x ; then
7876 eval "DEFAULT_$LINE"
7877 else
7878 no_cache=1
7879 fi
7880
7881 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
698dcdb6
VZ
7882
7883fi
10f2d63a
VZ
7884
7885
7886 eval "$ac_cv_use_tooltips"
7887 if test "$no_cache" != 1; then
7888 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
7889 fi
7890
7891 if test "$wxUSE_TOOLTIPS" = yes; then
698dcdb6 7892 echo "$ac_t""yes" 1>&6
10f2d63a 7893 else
698dcdb6 7894 echo "$ac_t""no" 1>&6
10f2d63a 7895 fi
698dcdb6 7896
10f2d63a 7897
698dcdb6 7898 echo $ac_n "checking for --enable-splines""... $ac_c" 1>&6
4cdb0ab0 7899echo "configure:7900: checking for --enable-splines" >&5
10f2d63a
VZ
7900 no_cache=0
7901 # Check whether --enable-splines or --disable-splines was given.
7902if test "${enable_splines+set}" = set; then
7903 enableval="$enable_splines"
698dcdb6 7904
10f2d63a
VZ
7905 if test "$enableval" = yes; then
7906 ac_cv_use_splines='wxUSE_SPLINES=yes'
7907 else
7908 ac_cv_use_splines='wxUSE_SPLINES=no'
7909 fi
698dcdb6 7910
10f2d63a 7911else
698dcdb6 7912
10f2d63a
VZ
7913 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
7914 if test "x$LINE" != x ; then
7915 eval "DEFAULT_$LINE"
7916 else
7917 no_cache=1
7918 fi
7919
7920 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
698dcdb6
VZ
7921
7922fi
10f2d63a
VZ
7923
7924
7925 eval "$ac_cv_use_splines"
7926 if test "$no_cache" != 1; then
7927 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
7928 fi
7929
7930 if test "$wxUSE_SPLINES" = yes; then
698dcdb6 7931 echo "$ac_t""yes" 1>&6
10f2d63a 7932 else
698dcdb6 7933 echo "$ac_t""no" 1>&6
10f2d63a 7934 fi
698dcdb6 7935
10f2d63a 7936
698dcdb6 7937 echo $ac_n "checking for --enable-validators""... $ac_c" 1>&6
4cdb0ab0 7938echo "configure:7939: checking for --enable-validators" >&5
10f2d63a
VZ
7939 no_cache=0
7940 # Check whether --enable-validators or --disable-validators was given.
7941if test "${enable_validators+set}" = set; then
7942 enableval="$enable_validators"
698dcdb6 7943
10f2d63a
VZ
7944 if test "$enableval" = yes; then
7945 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
7946 else
7947 ac_cv_use_validators='wxUSE_VALIDATORS=no'
7948 fi
698dcdb6 7949
10f2d63a 7950else
698dcdb6 7951
10f2d63a
VZ
7952 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
7953 if test "x$LINE" != x ; then
7954 eval "DEFAULT_$LINE"
7955 else
7956 no_cache=1
7957 fi
7958
7959 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
698dcdb6
VZ
7960
7961fi
10f2d63a
VZ
7962
7963
7964 eval "$ac_cv_use_validators"
7965 if test "$no_cache" != 1; then
7966 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
7967 fi
7968
7969 if test "$wxUSE_VALIDATORS" = yes; then
698dcdb6 7970 echo "$ac_t""yes" 1>&6
10f2d63a 7971 else
698dcdb6 7972 echo "$ac_t""no" 1>&6
10f2d63a 7973 fi
698dcdb6 7974
10f2d63a 7975
698dcdb6 7976 echo $ac_n "checking for --enable-busyinfo""... $ac_c" 1>&6
4cdb0ab0 7977echo "configure:7978: checking for --enable-busyinfo" >&5
10f2d63a
VZ
7978 no_cache=0
7979 # Check whether --enable-busyinfo or --disable-busyinfo was given.
7980if test "${enable_busyinfo+set}" = set; then
7981 enableval="$enable_busyinfo"
698dcdb6 7982
10f2d63a
VZ
7983 if test "$enableval" = yes; then
7984 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
7985 else
7986 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
7987 fi
698dcdb6 7988
10f2d63a 7989else
698dcdb6 7990
10f2d63a
VZ
7991 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
7992 if test "x$LINE" != x ; then
7993 eval "DEFAULT_$LINE"
7994 else
7995 no_cache=1
7996 fi
7997
7998 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
698dcdb6
VZ
7999
8000fi
10f2d63a
VZ
8001
8002
8003 eval "$ac_cv_use_busyinfo"
8004 if test "$no_cache" != 1; then
8005 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
8006 fi
8007
8008 if test "$wxUSE_BUSYINFO" = yes; then
698dcdb6 8009 echo "$ac_t""yes" 1>&6
10f2d63a 8010 else
698dcdb6 8011 echo "$ac_t""no" 1>&6
10f2d63a 8012 fi
698dcdb6 8013
10f2d63a 8014
698dcdb6 8015 echo $ac_n "checking for --enable-joystick""... $ac_c" 1>&6
4cdb0ab0 8016echo "configure:8017: checking for --enable-joystick" >&5
f6bcfd97
BP
8017 no_cache=0
8018 # Check whether --enable-joystick or --disable-joystick was given.
8019if test "${enable_joystick+set}" = set; then
8020 enableval="$enable_joystick"
698dcdb6 8021
f6bcfd97
BP
8022 if test "$enableval" = yes; then
8023 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
8024 else
8025 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
8026 fi
698dcdb6 8027
f6bcfd97 8028else
698dcdb6 8029
f6bcfd97
BP
8030 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
8031 if test "x$LINE" != x ; then
8032 eval "DEFAULT_$LINE"
8033 else
8034 no_cache=1
8035 fi
8036
8037 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
698dcdb6
VZ
8038
8039fi
f6bcfd97
BP
8040
8041
8042 eval "$ac_cv_use_joystick"
8043 if test "$no_cache" != 1; then
8044 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
8045 fi
8046
8047 if test "$wxUSE_JOYSTICK" = yes; then
698dcdb6 8048 echo "$ac_t""yes" 1>&6
f6bcfd97 8049 else
698dcdb6 8050 echo "$ac_t""no" 1>&6
f6bcfd97 8051 fi
698dcdb6
VZ
8052
8053
1e6feb95 8054 echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6
4cdb0ab0 8055echo "configure:8056: checking for --enable-metafile" >&5
1e6feb95
VZ
8056 no_cache=0
8057 # Check whether --enable-metafile or --disable-metafile was given.
8058if test "${enable_metafile+set}" = set; then
8059 enableval="$enable_metafile"
8060
8061 if test "$enableval" = yes; then
8062 ac_cv_use_metafile='wxUSE_METAFILE=yes'
8063 else
8064 ac_cv_use_metafile='wxUSE_METAFILE=no'
8065 fi
8066
8067else
8068
8069 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
8070 if test "x$LINE" != x ; then
8071 eval "DEFAULT_$LINE"
8072 else
8073 no_cache=1
8074 fi
8075
8076 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
8077
8078fi
8079
8080
8081 eval "$ac_cv_use_metafile"
8082 if test "$no_cache" != 1; then
8083 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
8084 fi
8085
8086 if test "$wxUSE_METAFILE" = yes; then
8087 echo "$ac_t""yes" 1>&6
8088 else
8089 echo "$ac_t""no" 1>&6
8090 fi
8091
8092
24fd6d87 8093 echo $ac_n "checking for --enable-dragimage""... $ac_c" 1>&6
4cdb0ab0 8094echo "configure:8095: checking for --enable-dragimage" >&5
24fd6d87
VZ
8095 no_cache=0
8096 # Check whether --enable-dragimage or --disable-dragimage was given.
8097if test "${enable_dragimage+set}" = set; then
8098 enableval="$enable_dragimage"
8099
8100 if test "$enableval" = yes; then
8101 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
8102 else
8103 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
8104 fi
8105
8106else
8107
8108 LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
8109 if test "x$LINE" != x ; then
8110 eval "DEFAULT_$LINE"
8111 else
8112 no_cache=1
8113 fi
8114
8115 ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
8116
8117fi
8118
8119
8120 eval "$ac_cv_use_dragimage"
8121 if test "$no_cache" != 1; then
8122 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
8123 fi
8124
8125 if test "$wxUSE_DRAGIMAGE" = yes; then
8126 echo "$ac_t""yes" 1>&6
8127 else
8128 echo "$ac_t""no" 1>&6
8129 fi
8130
8131
10f2d63a 8132
698dcdb6 8133
edae8572 8134 echo $ac_n "checking for --enable-palette""... $ac_c" 1>&6
4cdb0ab0 8135echo "configure:8136: checking for --enable-palette" >&5
edae8572
VZ
8136 no_cache=0
8137 # Check whether --enable-palette or --disable-palette was given.
8138if test "${enable_palette+set}" = set; then
8139 enableval="$enable_palette"
8140
8141 if test "$enableval" = yes; then
8142 ac_cv_use_palette='wxUSE_PALETTE=yes'
8143 else
8144 ac_cv_use_palette='wxUSE_PALETTE=no'
8145 fi
8146
8147else
8148
8149 LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
8150 if test "x$LINE" != x ; then
8151 eval "DEFAULT_$LINE"
8152 else
8153 no_cache=1
8154 fi
8155
8156 ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
8157
8158fi
8159
8160
8161 eval "$ac_cv_use_palette"
8162 if test "$no_cache" != 1; then
8163 echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
8164 fi
8165
8166 if test "$wxUSE_PALETTE" = yes; then
8167 echo "$ac_t""yes" 1>&6
8168 else
8169 echo "$ac_t""no" 1>&6
8170 fi
8171
8172
698dcdb6 8173 echo $ac_n "checking for --enable-image""... $ac_c" 1>&6
4cdb0ab0 8174echo "configure:8175: checking for --enable-image" >&5
0046ff7c
VS
8175 no_cache=0
8176 # Check whether --enable-image or --disable-image was given.
8177if test "${enable_image+set}" = set; then
8178 enableval="$enable_image"
698dcdb6 8179
0046ff7c
VS
8180 if test "$enableval" = yes; then
8181 ac_cv_use_image='wxUSE_IMAGE=yes'
8182 else
8183 ac_cv_use_image='wxUSE_IMAGE=no'
8184 fi
698dcdb6 8185
0046ff7c 8186else
698dcdb6 8187
0046ff7c
VS
8188 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
8189 if test "x$LINE" != x ; then
8190 eval "DEFAULT_$LINE"
8191 else
8192 no_cache=1
8193 fi
8194
8195 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
698dcdb6
VZ
8196
8197fi
0046ff7c
VS
8198
8199
8200 eval "$ac_cv_use_image"
8201 if test "$no_cache" != 1; then
8202 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
8203 fi
8204
8205 if test "$wxUSE_IMAGE" = yes; then
698dcdb6 8206 echo "$ac_t""yes" 1>&6
0046ff7c 8207 else
698dcdb6 8208 echo "$ac_t""no" 1>&6
0046ff7c 8209 fi
698dcdb6 8210
0046ff7c 8211
698dcdb6 8212 echo $ac_n "checking for --enable-gif""... $ac_c" 1>&6
4cdb0ab0 8213echo "configure:8214: checking for --enable-gif" >&5
10f2d63a
VZ
8214 no_cache=0
8215 # Check whether --enable-gif or --disable-gif was given.
8216if test "${enable_gif+set}" = set; then
8217 enableval="$enable_gif"
698dcdb6 8218
10f2d63a
VZ
8219 if test "$enableval" = yes; then
8220 ac_cv_use_gif='wxUSE_GIF=yes'
8221 else
8222 ac_cv_use_gif='wxUSE_GIF=no'
8223 fi
698dcdb6 8224
10f2d63a 8225else
698dcdb6 8226
10f2d63a
VZ
8227 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
8228 if test "x$LINE" != x ; then
8229 eval "DEFAULT_$LINE"
8230 else
8231 no_cache=1
8232 fi
8233
8234 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
698dcdb6
VZ
8235
8236fi
10f2d63a
VZ
8237
8238
8239 eval "$ac_cv_use_gif"
8240 if test "$no_cache" != 1; then
8241 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
8242 fi
8243
8244 if test "$wxUSE_GIF" = yes; then
698dcdb6 8245 echo "$ac_t""yes" 1>&6
10f2d63a 8246 else
698dcdb6 8247 echo "$ac_t""no" 1>&6
10f2d63a 8248 fi
698dcdb6 8249
10f2d63a 8250
698dcdb6 8251 echo $ac_n "checking for --enable-pcx""... $ac_c" 1>&6
4cdb0ab0 8252echo "configure:8253: checking for --enable-pcx" >&5
10f2d63a
VZ
8253 no_cache=0
8254 # Check whether --enable-pcx or --disable-pcx was given.
8255if test "${enable_pcx+set}" = set; then
8256 enableval="$enable_pcx"
698dcdb6 8257
10f2d63a
VZ
8258 if test "$enableval" = yes; then
8259 ac_cv_use_pcx='wxUSE_PCX=yes'
8260 else
8261 ac_cv_use_pcx='wxUSE_PCX=no'
8262 fi
698dcdb6 8263
10f2d63a 8264else
698dcdb6 8265
10f2d63a
VZ
8266 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
8267 if test "x$LINE" != x ; then
8268 eval "DEFAULT_$LINE"
8269 else
8270 no_cache=1
8271 fi
8272
8273 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
698dcdb6
VZ
8274
8275fi
10f2d63a
VZ
8276
8277
8278 eval "$ac_cv_use_pcx"
8279 if test "$no_cache" != 1; then
8280 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
8281 fi
8282
8283 if test "$wxUSE_PCX" = yes; then
698dcdb6 8284 echo "$ac_t""yes" 1>&6
10f2d63a 8285 else
698dcdb6 8286 echo "$ac_t""no" 1>&6
10f2d63a 8287 fi
698dcdb6 8288
10f2d63a 8289
698dcdb6 8290 echo $ac_n "checking for --enable-pnm""... $ac_c" 1>&6
4cdb0ab0 8291echo "configure:8292: checking for --enable-pnm" >&5
10f2d63a
VZ
8292 no_cache=0
8293 # Check whether --enable-pnm or --disable-pnm was given.
8294if test "${enable_pnm+set}" = set; then
8295 enableval="$enable_pnm"
698dcdb6 8296
10f2d63a
VZ
8297 if test "$enableval" = yes; then
8298 ac_cv_use_pnm='wxUSE_PNM=yes'
8299 else
8300 ac_cv_use_pnm='wxUSE_PNM=no'
8301 fi
698dcdb6 8302
10f2d63a 8303else
698dcdb6 8304
10f2d63a
VZ
8305 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
8306 if test "x$LINE" != x ; then
8307 eval "DEFAULT_$LINE"
8308 else
8309 no_cache=1
8310 fi
8311
8312 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
698dcdb6
VZ
8313
8314fi
10f2d63a
VZ
8315
8316
8317 eval "$ac_cv_use_pnm"
8318 if test "$no_cache" != 1; then
8319 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
8320 fi
8321
8322 if test "$wxUSE_PNM" = yes; then
698dcdb6 8323 echo "$ac_t""yes" 1>&6
10f2d63a 8324 else
698dcdb6 8325 echo "$ac_t""no" 1>&6
10f2d63a 8326 fi
698dcdb6 8327
10f2d63a 8328
69d27ff7 8329 echo $ac_n "checking for --enable-xpm""... $ac_c" 1>&6
4cdb0ab0 8330echo "configure:8331: checking for --enable-xpm" >&5
0046ff7c 8331 no_cache=0
69d27ff7
MB
8332 # Check whether --enable-xpm or --disable-xpm was given.
8333if test "${enable_xpm+set}" = set; then
8334 enableval="$enable_xpm"
698dcdb6 8335
0046ff7c 8336 if test "$enableval" = yes; then
69d27ff7 8337 ac_cv_use_xpm='wxUSE_XPM=yes'
0046ff7c 8338 else
69d27ff7 8339 ac_cv_use_xpm='wxUSE_XPM=no'
0046ff7c 8340 fi
698dcdb6 8341
0046ff7c 8342else
698dcdb6 8343
0046ff7c
VS
8344 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
8345 if test "x$LINE" != x ; then
8346 eval "DEFAULT_$LINE"
8347 else
8348 no_cache=1
8349 fi
8350
69d27ff7 8351 ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
698dcdb6
VZ
8352
8353fi
0046ff7c
VS
8354
8355
69d27ff7 8356 eval "$ac_cv_use_xpm"
0046ff7c 8357 if test "$no_cache" != 1; then
69d27ff7 8358 echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
0046ff7c
VS
8359 fi
8360
8361 if test "$wxUSE_XPM" = yes; then
698dcdb6 8362 echo "$ac_t""yes" 1>&6
0046ff7c 8363 else
698dcdb6 8364 echo "$ac_t""no" 1>&6
0046ff7c 8365 fi
698dcdb6 8366
0046ff7c 8367
b12915c1
VZ
8368fi
8369
698dcdb6 8370
10f2d63a
VZ
8371 echo "saving argument cache $wx_arg_cache_file"
8372 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
698dcdb6 8373
10f2d63a 8374
698dcdb6
VZ
8375
8376echo $ac_n "checking for toolkit""... $ac_c" 1>&6
4cdb0ab0 8377echo "configure:8378: checking for toolkit" >&5
10f2d63a
VZ
8378
8379if test "$wxUSE_GUI" = "yes"; then
8380
3a922bb4
RL
8381 if test "$USE_BEOS" = 1; then
8382 { echo "configure: error: BeOS GUI is not supported yet, use --disable-gui" 1>&2; exit 1; }
8383 fi
b12915c1 8384
3a922bb4
RL
8385 if test "$TOOLKIT_GIVEN" = 1; then
8386 for toolkit in `echo $ALL_TOOLKITS`; do
8387 var=wxUSE_$toolkit
8388 eval "value=\$${var}"
8389 eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
8390 done
10f2d63a 8391 else
3a922bb4
RL
8392 for toolkit in `echo $ALL_TOOLKITS`; do
8393 if test "$has_toolkit_in_cache" != 1; then
8394 var=DEFAULT_DEFAULT_wxUSE_$toolkit
8395 else
8396 var=DEFAULT_wxUSE_$toolkit
8397 fi
8398 eval "wxUSE_$toolkit=\$${var}"
8399 done
10f2d63a 8400 fi
10f2d63a 8401
3a922bb4 8402 NUM_TOOLKITS=`expr ${wxUSE_GTK:-0} + ${wxUSE_MOTIF:-0} + ${wxUSE_MAC:-0} \
1725144d 8403 + ${wxUSE_WINE:-0} + ${wxUSE_MSW:-0} + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0}`
10f2d63a 8404
3a922bb4 8405 case "${host}" in
6fa882bd 8406 *-pc-os2_emx | *-pc-os2-emx )
3a922bb4
RL
8407 # PATH_IFS is autodetected by OS/2's configure (usually ';')
8408 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
8409 LEX_STEM="lexyy"
8410 ;;
8411 *)
8412 PATH_IFS=':'
8413 LEX_STEM="lex.yy"
8414 ;;
8415 esac
10f2d63a 8416
3a922bb4
RL
8417 case "$NUM_TOOLKITS" in
8418 1)
8419 ;;
8420 0)
8421 { echo "configure: error: Please specify a toolkit - cannot determine the default for ${host}" 1>&2; exit 1; }
8422 ;;
8423 *)
8424 { echo "configure: error: Please specify at most one toolkit (may be some are cached?)" 1>&2; exit 1; }
8425 esac
10f2d63a 8426
3a922bb4
RL
8427 for toolkit in `echo $ALL_TOOLKITS`; do
8428 var=wxUSE_$toolkit
8429 eval "value=\$${var}"
8430 if test "x$value" != x; then
8431 cache_var=CACHE_$toolkit
8432 eval "cache=\$${cache_var}"
8433 if test "$cache" = 1; then
8434 echo "$var=$value" >> ${wx_arg_cache_file}
8435 fi
8436 if test "$value" = 1; then
8437 toolkit_echo=`echo $toolkit | tr [A-Z] [a-z]`
8438 echo "$ac_t""$toolkit_echo" 1>&6
8439 fi
8440 fi
8441 done
10f2d63a 8442else
cf27ef00 8443 PATH_IFS=':'
3a922bb4 8444 echo "$ac_t""base ($host_alias hosted) only" 1>&6
10f2d63a
VZ
8445fi
8446
698dcdb6
VZ
8447
8448cat > confcache <<\EOF
10f2d63a
VZ
8449# This file is a shell script that caches the results of configure
8450# tests run on this system so they can be shared between configure
698dcdb6
VZ
8451# scripts and configure runs. It is not useful on other systems.
8452# If it contains results you don't want to keep, you may remove or edit it.
10f2d63a 8453#
698dcdb6
VZ
8454# By default, configure uses ./config.cache as the cache file,
8455# creating it if it does not exist already. You can give configure
8456# the --cache-file=FILE option to use a different cache file; that is
8457# what configure does when it calls configure scripts in
8458# subdirectories, so they share the cache.
8459# Giving --cache-file=/dev/null disables caching, for debugging configure.
8460# config.status only pays attention to the cache file if you give it the
8461# --recheck option to rerun configure.
10f2d63a 8462#
698dcdb6 8463EOF
10f2d63a
VZ
8464# The following way of writing the cache mishandles newlines in values,
8465# but we know of no workaround that is simple, portable, and efficient.
8466# So, don't put newlines in cache variables' values.
8467# Ultrix sh set writes to stderr and can't be redirected directly,
8468# and sets the high bit in the cache file unless we assign to the vars.
698dcdb6
VZ
8469(set) 2>&1 |
8470 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8471 *ac_space=\ *)
8472 # `set' does not quote correctly, so add quotes (double-quote substitution
8473 # turns \\\\ into \\, and sed turns \\ into \).
8474 sed -n \
8475 -e "s/'/'\\\\''/g" \
8476 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
8477 ;;
8478 *)
8479 # `set' quotes correctly as required by POSIX, so do not add quotes.
8480 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8481 ;;
8482 esac >> confcache
8483if cmp -s $cache_file confcache; then
8484 :
8485else
10f2d63a 8486 if test -w $cache_file; then
698dcdb6
VZ
8487 echo "updating cache $cache_file"
8488 cat confcache > $cache_file
10f2d63a
VZ
8489 else
8490 echo "not updating unwritable cache $cache_file"
8491 fi
8492fi
8493rm -f confcache
8494
698dcdb6 8495
e59890c3 8496if test "$build" != "$host" ; then
f9bc1684 8497 if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 ; then
3a922bb4
RL
8498 CC=$host_alias-gcc
8499 CXX=$host_alias-c++
8500 AR=$host_alias-ar
8501 RANLIB=$host_alias-ranlib
8502 DLLTOOL=$host_alias-dlltool
8503 RESCOMP=$host_alias-windres
8504 LD=$host_alias-ld
8505 NM=$host_alias-nm
8506 STRIP=$host_alias-strip
8507 else
8508 { echo "configure: error: $build_alias -> $host_alias cross compilation not supported yet." 1>&2; exit 1; }
8509 fi
10f2d63a
VZ
8510fi
8511
698dcdb6 8512# Extract the first word of "gcc", so it can be a program name with args.
1e487827 8513set dummy gcc; ac_word=$2
698dcdb6 8514echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4cdb0ab0 8515echo "configure:8516: checking for $ac_word" >&5
698dcdb6
VZ
8516if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
8517 echo $ac_n "(cached) $ac_c" 1>&6
6232543b
VS
8518else
8519 if test -n "$CC"; then
8520 ac_cv_prog_CC="$CC" # Let the user override the test.
10f2d63a 8521else
698dcdb6
VZ
8522 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8523 ac_dummy="$PATH"
8524 for ac_dir in $ac_dummy; do
8525 test -z "$ac_dir" && ac_dir=.
8526 if test -f $ac_dir/$ac_word; then
8527 ac_cv_prog_CC="gcc"
8528 break
8529 fi
8530 done
8531 IFS="$ac_save_ifs"
10f2d63a 8532fi
6232543b 8533fi
698dcdb6 8534CC="$ac_cv_prog_CC"
6232543b 8535if test -n "$CC"; then
698dcdb6 8536 echo "$ac_t""$CC" 1>&6
1e487827 8537else
698dcdb6 8538 echo "$ac_t""no" 1>&6
1e487827 8539fi
6232543b 8540
1e487827
VS
8541if test -z "$CC"; then
8542 # Extract the first word of "cc", so it can be a program name with args.
8543set dummy cc; ac_word=$2
698dcdb6 8544echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4cdb0ab0 8545echo "configure:8546: checking for $ac_word" >&5
698dcdb6
VZ
8546if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
8547 echo $ac_n "(cached) $ac_c" 1>&6
1e487827
VS
8548else
8549 if test -n "$CC"; then
8550 ac_cv_prog_CC="$CC" # Let the user override the test.
8551else
698dcdb6 8552 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1e487827 8553 ac_prog_rejected=no
698dcdb6
VZ
8554 ac_dummy="$PATH"
8555 for ac_dir in $ac_dummy; do
8556 test -z "$ac_dir" && ac_dir=.
8557 if test -f $ac_dir/$ac_word; then
8558 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
8559 ac_prog_rejected=yes
8560 continue
8561 fi
8562 ac_cv_prog_CC="cc"
8563 break
8564 fi
8565 done
8566 IFS="$ac_save_ifs"
1e487827
VS
8567if test $ac_prog_rejected = yes; then
8568 # We found a bogon in the path, so make sure we never use it.
8569 set dummy $ac_cv_prog_CC
8570 shift
698dcdb6 8571 if test $# -gt 0; then
1e487827
VS
8572 # We chose a different compiler from the bogus one.
8573 # However, it has the same basename, so the bogon will be chosen
8574 # first if we set CC to just the basename; use the full file name.
8575 shift
698dcdb6 8576 set dummy "$ac_dir/$ac_word" "$@"
1e487827
VS
8577 shift
8578 ac_cv_prog_CC="$@"
703e0a69 8579 fi
1e487827
VS
8580fi
8581fi
8582fi
698dcdb6 8583CC="$ac_cv_prog_CC"
1e487827 8584if test -n "$CC"; then
698dcdb6 8585 echo "$ac_t""$CC" 1>&6
703e0a69 8586else
698dcdb6 8587 echo "$ac_t""no" 1>&6
703e0a69 8588fi
1e487827 8589
698dcdb6
VZ
8590 if test -z "$CC"; then
8591 case "`uname -s`" in
8592 *win32* | *WIN32*)
8593 # Extract the first word of "cl", so it can be a program name with args.
8594set dummy cl; ac_word=$2
8595echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4cdb0ab0 8596echo "configure:8597: checking for $ac_word" >&5
698dcdb6
VZ
8597if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
8598 echo $ac_n "(cached) $ac_c" 1>&6
1e487827
VS
8599else
8600 if test -n "$CC"; then
8601 ac_cv_prog_CC="$CC" # Let the user override the test.
703e0a69 8602else
698dcdb6
VZ
8603 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8604 ac_dummy="$PATH"
8605 for ac_dir in $ac_dummy; do
8606 test -z "$ac_dir" && ac_dir=.
8607 if test -f $ac_dir/$ac_word; then
8608 ac_cv_prog_CC="cl"
8609 break
8610 fi
8611 done
8612 IFS="$ac_save_ifs"
703e0a69 8613fi
1e487827 8614fi
698dcdb6 8615CC="$ac_cv_prog_CC"
1e487827 8616if test -n "$CC"; then
698dcdb6 8617 echo "$ac_t""$CC" 1>&6
1e487827 8618else
698dcdb6 8619 echo "$ac_t""no" 1>&6
1e487827 8620fi
698dcdb6
VZ
8621 ;;
8622 esac
8623 fi
8624 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1e487827
VS
8625fi
8626
698dcdb6 8627echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
4cdb0ab0 8628echo "configure:8629: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1e487827 8629
698dcdb6
VZ
8630ac_ext=c
8631# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8632ac_cpp='$CPP $CPPFLAGS'
8633ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8634ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8635cross_compiling=$ac_cv_prog_cc_cross
6232543b 8636
698dcdb6 8637cat > conftest.$ac_ext << EOF
1e487827 8638
4cdb0ab0 8639#line 8640 "configure"
1e487827
VS
8640#include "confdefs.h"
8641
698dcdb6
VZ
8642main(){return(0);}
8643EOF
4cdb0ab0 8644if { (eval echo configure:8645: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
8645 ac_cv_prog_cc_works=yes
8646 # If we can't run a trivial program, we are probably using a cross compiler.
8647 if (./conftest; exit) 2>/dev/null; then
8648 ac_cv_prog_cc_cross=no
8649 else
8650 ac_cv_prog_cc_cross=yes
8651 fi
8652else
8653 echo "configure: failed program was:" >&5
8654 cat conftest.$ac_ext >&5
8655 ac_cv_prog_cc_works=no
8656fi
8657rm -fr conftest*
8658ac_ext=c
8659# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8660ac_cpp='$CPP $CPPFLAGS'
8661ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8662ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8663cross_compiling=$ac_cv_prog_cc_cross
8664
8665echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
8666if test $ac_cv_prog_cc_works = no; then
8667 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
8668fi
8669echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
4cdb0ab0 8670echo "configure:8671: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
698dcdb6
VZ
8671echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
8672cross_compiling=$ac_cv_prog_cc_cross
8673
8674echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
4cdb0ab0 8675echo "configure:8676: checking whether we are using GNU C" >&5
698dcdb6
VZ
8676if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
8677 echo $ac_n "(cached) $ac_c" 1>&6
8678else
8679 cat > conftest.c <<EOF
8680#ifdef __GNUC__
8681 yes;
1e487827 8682#endif
698dcdb6 8683EOF
4cdb0ab0 8684if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:8685: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
698dcdb6
VZ
8685 ac_cv_prog_gcc=yes
8686else
8687 ac_cv_prog_gcc=no
8688fi
8689fi
1e487827 8690
698dcdb6 8691echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1e487827 8692
698dcdb6
VZ
8693if test $ac_cv_prog_gcc = yes; then
8694 GCC=yes
8695else
8696 GCC=
8697fi
1e487827 8698
698dcdb6
VZ
8699ac_test_CFLAGS="${CFLAGS+set}"
8700ac_save_CFLAGS="$CFLAGS"
8701CFLAGS=
8702echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
4cdb0ab0 8703echo "configure:8704: checking whether ${CC-cc} accepts -g" >&5
698dcdb6
VZ
8704if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
8705 echo $ac_n "(cached) $ac_c" 1>&6
8706else
8707 echo 'void f(){}' > conftest.c
8708if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
10f2d63a
VZ
8709 ac_cv_prog_cc_g=yes
8710else
698dcdb6 8711 ac_cv_prog_cc_g=no
10f2d63a 8712fi
698dcdb6
VZ
8713rm -f conftest*
8714
10f2d63a 8715fi
698dcdb6
VZ
8716
8717echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
10f2d63a 8718if test "$ac_test_CFLAGS" = set; then
698dcdb6 8719 CFLAGS="$ac_save_CFLAGS"
10f2d63a
VZ
8720elif test $ac_cv_prog_cc_g = yes; then
8721 if test "$GCC" = yes; then
8722 CFLAGS="-g -O2"
8723 else
8724 CFLAGS="-g"
8725 fi
8726else
8727 if test "$GCC" = yes; then
8728 CFLAGS="-O2"
8729 else
8730 CFLAGS=
8731 fi
8732fi
8733
8734
8735CFLAGS=`echo "$CFLAGS" | sed 's/-g//g'`
8736
698dcdb6 8737echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
4cdb0ab0 8738echo "configure:8739: checking how to run the C preprocessor" >&5
10f2d63a
VZ
8739# On Suns, sometimes $CPP names a directory.
8740if test -n "$CPP" && test -d "$CPP"; then
8741 CPP=
8742fi
8743if test -z "$CPP"; then
698dcdb6
VZ
8744if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
8745 echo $ac_n "(cached) $ac_c" 1>&6
8746else
8747 # This must be in double quotes, not single quotes, because CPP may get
8748 # substituted into the Makefile and "${CC-cc}" will confuse make.
8749 CPP="${CC-cc} -E"
10f2d63a 8750 # On the NeXT, cc -E runs the code through the compiler's parser,
698dcdb6
VZ
8751 # not just through cpp.
8752 cat > conftest.$ac_ext <<EOF
4cdb0ab0 8753#line 8754 "configure"
10f2d63a
VZ
8754#include "confdefs.h"
8755#include <assert.h>
698dcdb6
VZ
8756Syntax Error
8757EOF
8758ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4cdb0ab0 8759{ (eval echo configure:8760: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
8760ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8761if test -z "$ac_err"; then
10f2d63a
VZ
8762 :
8763else
698dcdb6
VZ
8764 echo "$ac_err" >&5
8765 echo "configure: failed program was:" >&5
10f2d63a 8766 cat conftest.$ac_ext >&5
698dcdb6
VZ
8767 rm -rf conftest*
8768 CPP="${CC-cc} -E -traditional-cpp"
8769 cat > conftest.$ac_ext <<EOF
4cdb0ab0 8770#line 8771 "configure"
10f2d63a 8771#include "confdefs.h"
698dcdb6
VZ
8772#include <assert.h>
8773Syntax Error
8774EOF
8775ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4cdb0ab0 8776{ (eval echo configure:8777: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
8777ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8778if test -z "$ac_err"; then
8779 :
10f2d63a 8780else
698dcdb6
VZ
8781 echo "$ac_err" >&5
8782 echo "configure: failed program was:" >&5
10f2d63a 8783 cat conftest.$ac_ext >&5
698dcdb6
VZ
8784 rm -rf conftest*
8785 CPP="${CC-cc} -nologo -E"
8786 cat > conftest.$ac_ext <<EOF
4cdb0ab0 8787#line 8788 "configure"
10f2d63a
VZ
8788#include "confdefs.h"
8789#include <assert.h>
698dcdb6
VZ
8790Syntax Error
8791EOF
8792ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4cdb0ab0 8793{ (eval echo configure:8794: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
8794ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8795if test -z "$ac_err"; then
10f2d63a
VZ
8796 :
8797else
698dcdb6
VZ
8798 echo "$ac_err" >&5
8799 echo "configure: failed program was:" >&5
10f2d63a 8800 cat conftest.$ac_ext >&5
698dcdb6
VZ
8801 rm -rf conftest*
8802 CPP=/lib/cpp
10f2d63a 8803fi
698dcdb6 8804rm -f conftest*
10f2d63a 8805fi
698dcdb6 8806rm -f conftest*
703e0a69 8807fi
698dcdb6
VZ
8808rm -f conftest*
8809 ac_cv_prog_CPP="$CPP"
8810fi
8811 CPP="$ac_cv_prog_CPP"
10f2d63a 8812else
698dcdb6 8813 ac_cv_prog_CPP="$CPP"
10f2d63a 8814fi
698dcdb6 8815echo "$ac_t""$CPP" 1>&6
10f2d63a 8816
698dcdb6
VZ
8817if test $ac_cv_prog_gcc = yes; then
8818 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
4cdb0ab0 8819echo "configure:8820: checking whether ${CC-cc} needs -traditional" >&5
698dcdb6
VZ
8820if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
8821 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
8822else
8823 ac_pattern="Autoconf.*'x'"
698dcdb6 8824 cat > conftest.$ac_ext <<EOF
4cdb0ab0 8825#line 8826 "configure"
10f2d63a
VZ
8826#include "confdefs.h"
8827#include <sgtty.h>
8828Autoconf TIOCGETP
698dcdb6 8829EOF
10f2d63a
VZ
8830if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8831 egrep "$ac_pattern" >/dev/null 2>&1; then
698dcdb6 8832 rm -rf conftest*
10f2d63a
VZ
8833 ac_cv_prog_gcc_traditional=yes
8834else
698dcdb6 8835 rm -rf conftest*
10f2d63a
VZ
8836 ac_cv_prog_gcc_traditional=no
8837fi
8838rm -f conftest*
8839
698dcdb6 8840
10f2d63a 8841 if test $ac_cv_prog_gcc_traditional = no; then
698dcdb6 8842 cat > conftest.$ac_ext <<EOF
4cdb0ab0 8843#line 8844 "configure"
10f2d63a
VZ
8844#include "confdefs.h"
8845#include <termio.h>
8846Autoconf TCGETA
698dcdb6 8847EOF
10f2d63a
VZ
8848if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8849 egrep "$ac_pattern" >/dev/null 2>&1; then
698dcdb6 8850 rm -rf conftest*
10f2d63a
VZ
8851 ac_cv_prog_gcc_traditional=yes
8852fi
8853rm -f conftest*
8854
8855 fi
8856fi
698dcdb6
VZ
8857
8858echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
10f2d63a
VZ
8859 if test $ac_cv_prog_gcc_traditional = yes; then
8860 CC="$CC -traditional"
8861 fi
8862fi
8863
703e0a69 8864
698dcdb6
VZ
8865
8866ac_ext=C
8867# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1e487827 8868ac_cpp='$CXXCPP $CPPFLAGS'
698dcdb6
VZ
8869ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8870ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8871cross_compiling=$ac_cv_prog_cxx_cross
8872
8873
8874for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
8875do
8876# Extract the first word of "$ac_prog", so it can be a program name with args.
8877set dummy $ac_prog; ac_word=$2
8878echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4cdb0ab0 8879echo "configure:8880: checking for $ac_word" >&5
698dcdb6
VZ
8880if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
8881 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
8882else
8883 if test -n "$CXX"; then
8884 ac_cv_prog_CXX="$CXX" # Let the user override the test.
8885else
698dcdb6
VZ
8886 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8887 ac_dummy="$PATH"
8888 for ac_dir in $ac_dummy; do
8889 test -z "$ac_dir" && ac_dir=.
8890 if test -f $ac_dir/$ac_word; then
8891 ac_cv_prog_CXX="$ac_prog"
8892 break
8893 fi
8894 done
8895 IFS="$ac_save_ifs"
10f2d63a
VZ
8896fi
8897fi
698dcdb6 8898CXX="$ac_cv_prog_CXX"
10f2d63a 8899if test -n "$CXX"; then
698dcdb6 8900 echo "$ac_t""$CXX" 1>&6
10f2d63a 8901else
698dcdb6 8902 echo "$ac_t""no" 1>&6
10f2d63a
VZ
8903fi
8904
698dcdb6 8905test -n "$CXX" && break
10f2d63a 8906done
698dcdb6 8907test -n "$CXX" || CXX="gcc"
10f2d63a
VZ
8908
8909
698dcdb6 8910echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
4cdb0ab0 8911echo "configure:8912: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
10f2d63a 8912
698dcdb6
VZ
8913ac_ext=C
8914# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8915ac_cpp='$CXXCPP $CPPFLAGS'
8916ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8917ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8918cross_compiling=$ac_cv_prog_cxx_cross
703e0a69 8919
698dcdb6
VZ
8920cat > conftest.$ac_ext << EOF
8921
4cdb0ab0 8922#line 8923 "configure"
10f2d63a
VZ
8923#include "confdefs.h"
8924
698dcdb6
VZ
8925int main(){return(0);}
8926EOF
4cdb0ab0 8927if { (eval echo configure:8928: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
8928 ac_cv_prog_cxx_works=yes
8929 # If we can't run a trivial program, we are probably using a cross compiler.
8930 if (./conftest; exit) 2>/dev/null; then
8931 ac_cv_prog_cxx_cross=no
8932 else
8933 ac_cv_prog_cxx_cross=yes
8934 fi
8935else
8936 echo "configure: failed program was:" >&5
8937 cat conftest.$ac_ext >&5
8938 ac_cv_prog_cxx_works=no
8939fi
8940rm -fr conftest*
8941ac_ext=C
8942# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8943ac_cpp='$CXXCPP $CPPFLAGS'
8944ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8945ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8946cross_compiling=$ac_cv_prog_cxx_cross
8947
8948echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
8949if test $ac_cv_prog_cxx_works = no; then
8950 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
8951fi
8952echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
4cdb0ab0 8953echo "configure:8954: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
698dcdb6
VZ
8954echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
8955cross_compiling=$ac_cv_prog_cxx_cross
8956
8957echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
4cdb0ab0 8958echo "configure:8959: checking whether we are using GNU C++" >&5
698dcdb6
VZ
8959if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
8960 echo $ac_n "(cached) $ac_c" 1>&6
8961else
8962 cat > conftest.C <<EOF
8963#ifdef __GNUC__
8964 yes;
10f2d63a 8965#endif
698dcdb6 8966EOF
4cdb0ab0 8967if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:8968: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
698dcdb6
VZ
8968 ac_cv_prog_gxx=yes
8969else
8970 ac_cv_prog_gxx=no
8971fi
8972fi
10f2d63a 8973
698dcdb6 8974echo "$ac_t""$ac_cv_prog_gxx" 1>&6
10f2d63a 8975
698dcdb6
VZ
8976if test $ac_cv_prog_gxx = yes; then
8977 GXX=yes
8978else
8979 GXX=
8980fi
10f2d63a 8981
698dcdb6
VZ
8982ac_test_CXXFLAGS="${CXXFLAGS+set}"
8983ac_save_CXXFLAGS="$CXXFLAGS"
8984CXXFLAGS=
8985echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
4cdb0ab0 8986echo "configure:8987: checking whether ${CXX-g++} accepts -g" >&5
698dcdb6
VZ
8987if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
8988 echo $ac_n "(cached) $ac_c" 1>&6
8989else
8990 echo 'void f(){}' > conftest.cc
8991if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
10f2d63a
VZ
8992 ac_cv_prog_cxx_g=yes
8993else
698dcdb6 8994 ac_cv_prog_cxx_g=no
10f2d63a 8995fi
698dcdb6
VZ
8996rm -f conftest*
8997
10f2d63a 8998fi
698dcdb6
VZ
8999
9000echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
10f2d63a 9001if test "$ac_test_CXXFLAGS" = set; then
698dcdb6 9002 CXXFLAGS="$ac_save_CXXFLAGS"
10f2d63a
VZ
9003elif test $ac_cv_prog_cxx_g = yes; then
9004 if test "$GXX" = yes; then
9005 CXXFLAGS="-g -O2"
9006 else
9007 CXXFLAGS="-g"
9008 fi
9009else
9010 if test "$GXX" = yes; then
9011 CXXFLAGS="-O2"
9012 else
9013 CXXFLAGS=
9014 fi
9015fi
9016
9017
10f2d63a
VZ
9018CXXFLAGS=`echo "$CXXFLAGS" | sed 's/-g//g'`
9019
9020ac_ext=c
698dcdb6 9021# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10f2d63a 9022ac_cpp='$CPP $CPPFLAGS'
698dcdb6
VZ
9023ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9024ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9025cross_compiling=$ac_cv_prog_cc_cross
9026
9027
9028# Extract the first word of "ranlib", so it can be a program name with args.
9029set dummy ranlib; ac_word=$2
9030echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4cdb0ab0 9031echo "configure:9032: checking for $ac_word" >&5
698dcdb6
VZ
9032if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
9033 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
9034else
9035 if test -n "$RANLIB"; then
9036 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9037else
698dcdb6
VZ
9038 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9039 ac_dummy="$PATH"
9040 for ac_dir in $ac_dummy; do
9041 test -z "$ac_dir" && ac_dir=.
9042 if test -f $ac_dir/$ac_word; then
9043 ac_cv_prog_RANLIB="ranlib"
9044 break
9045 fi
9046 done
9047 IFS="$ac_save_ifs"
9048 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
10f2d63a
VZ
9049fi
9050fi
698dcdb6 9051RANLIB="$ac_cv_prog_RANLIB"
10f2d63a 9052if test -n "$RANLIB"; then
698dcdb6 9053 echo "$ac_t""$RANLIB" 1>&6
10f2d63a 9054else
698dcdb6 9055 echo "$ac_t""no" 1>&6
10f2d63a
VZ
9056fi
9057
9058
9059# Extract the first word of "ar", so it can be a program name with args.
9060set dummy ar; ac_word=$2
698dcdb6 9061echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4cdb0ab0 9062echo "configure:9063: checking for $ac_word" >&5
698dcdb6
VZ
9063if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
9064 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
9065else
9066 if test -n "$AR"; then
9067 ac_cv_prog_AR="$AR" # Let the user override the test.
9068else
698dcdb6
VZ
9069 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9070 ac_dummy="$PATH"
9071 for ac_dir in $ac_dummy; do
9072 test -z "$ac_dir" && ac_dir=.
9073 if test -f $ac_dir/$ac_word; then
9074 ac_cv_prog_AR="ar"
9075 break
9076 fi
9077 done
9078 IFS="$ac_save_ifs"
10f2d63a
VZ
9079 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
9080fi
9081fi
698dcdb6 9082AR="$ac_cv_prog_AR"
10f2d63a 9083if test -n "$AR"; then
698dcdb6 9084 echo "$ac_t""$AR" 1>&6
10f2d63a 9085else
698dcdb6 9086 echo "$ac_t""no" 1>&6
10f2d63a
VZ
9087fi
9088
698dcdb6 9089
6054113a 9090# Find a good install program. We prefer a C program (faster),
10f2d63a
VZ
9091# so one script is as good as another. But avoid the broken or
9092# incompatible versions:
9093# SysV /etc/install, /usr/sbin/install
9094# SunOS /usr/etc/install
9095# IRIX /sbin/install
9096# AIX /bin/install
9097# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
9098# AFS /usr/afsws/bin/install, which mishandles nonexistent args
9099# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
9100# ./install, which can be erroneously created by make from ./install.sh.
698dcdb6 9101echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
4cdb0ab0 9102echo "configure:9103: checking for a BSD compatible install" >&5
10f2d63a 9103if test -z "$INSTALL"; then
698dcdb6
VZ
9104if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
9105 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 9106else
698dcdb6 9107 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
10f2d63a
VZ
9108 for ac_dir in $PATH; do
9109 # Account for people who put trailing slashes in PATH elements.
698dcdb6
VZ
9110 case "$ac_dir/" in
9111 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
10f2d63a
VZ
9112 *)
9113 # OSF1 and SCO ODT 3.0 have their own names for install.
9114 # Don't use installbsd from OSF since it installs stuff as root
9115 # by default.
9116 for ac_prog in ginstall scoinst install; do
698dcdb6 9117 if test -f $ac_dir/$ac_prog; then
10f2d63a 9118 if test $ac_prog = install &&
698dcdb6 9119 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
10f2d63a
VZ
9120 # AIX install. It has an incompatible calling convention.
9121 :
9122 else
9123 ac_cv_path_install="$ac_dir/$ac_prog -c"
9124 break 2
9125 fi
9126 fi
9127 done
9128 ;;
9129 esac
9130 done
698dcdb6 9131 IFS="$ac_save_IFS"
10f2d63a
VZ
9132
9133fi
9134 if test "${ac_cv_path_install+set}" = set; then
698dcdb6 9135 INSTALL="$ac_cv_path_install"
10f2d63a
VZ
9136 else
9137 # As a last resort, use the slow shell script. We don't cache a
9138 # path for INSTALL within a source directory, because that will
9139 # break other packages using the cache if that directory is
9140 # removed, or if the path is relative.
698dcdb6 9141 INSTALL="$ac_install_sh"
10f2d63a
VZ
9142 fi
9143fi
698dcdb6 9144echo "$ac_t""$INSTALL" 1>&6
10f2d63a
VZ
9145
9146# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
9147# It thinks the first close brace ends the variable substitution.
9148test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
9149
698dcdb6 9150test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
10f2d63a
VZ
9151
9152test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
9153
6054113a
GD
9154case "${host}" in
9155
b5853384 9156 powerpc-*-darwin* )
eb99ae0b
GD
9157 INSTALL_PROGRAM="cp -fp"
9158 INSTALL_DATA="cp -fp"
6054113a
GD
9159 ;;
9160 *)
9161 ;;
d6853540 9162esac
698dcdb6 9163
10f2d63a
VZ
9164# Extract the first word of "strip", so it can be a program name with args.
9165set dummy strip; ac_word=$2
698dcdb6 9166echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4cdb0ab0 9167echo "configure:9168: checking for $ac_word" >&5
698dcdb6
VZ
9168if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
9169 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
9170else
9171 if test -n "$STRIP"; then
9172 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9173else
698dcdb6
VZ
9174 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9175 ac_dummy="$PATH"
9176 for ac_dir in $ac_dummy; do
9177 test -z "$ac_dir" && ac_dir=.
9178 if test -f $ac_dir/$ac_word; then
9179 ac_cv_prog_STRIP="strip"
9180 break
9181 fi
9182 done
9183 IFS="$ac_save_ifs"
10f2d63a
VZ
9184 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
9185fi
9186fi
698dcdb6 9187STRIP="$ac_cv_prog_STRIP"
10f2d63a 9188if test -n "$STRIP"; then
698dcdb6 9189 echo "$ac_t""$STRIP" 1>&6
10f2d63a 9190else
698dcdb6 9191 echo "$ac_t""no" 1>&6
10f2d63a
VZ
9192fi
9193
698dcdb6
VZ
9194
9195echo $ac_n "checking make for VPATH support""... $ac_c" 1>&6
4cdb0ab0 9196echo "configure:9197: checking make for VPATH support" >&5
10f2d63a
VZ
9197cat - << EOF > confMake
9198check : file
9199 cp \$? \$@
9200 cp \$? final_file
9201EOF
9202
9203if test ! -d sub ; then
9204 mkdir sub
9205fi
9206echo dummy > sub/file
f6bcfd97 9207${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
10f2d63a
VZ
9208RESULT=$?
9209rm -f sub/file check final_file confMake
9210rmdir sub
9211if test "$RESULT" = 0; then
698dcdb6 9212 echo "$ac_t""yes" 1>&6
10f2d63a 9213else
698dcdb6
VZ
9214 echo "$ac_t""no" 1>&6
9215 { echo "configure: error:
1e487827
VS
9216You need a make-utility that is able to use the variable
9217VPATH correctly.
9218If your version of make does not support VPATH correctly,
9219please install GNU-make (possibly as gmake), and start
9220configure with the following command:
9221export MAKE=gmake; ./configure for sh-type shells
9222setenv MAKE gmake; ./configure for csh-type shells
9223Also please do remember to use gmake in this case every time
9224you are trying to compile.
698dcdb6 9225" 1>&2; exit 1; }
10f2d63a
VZ
9226fi
9227
9228for ac_prog in 'bison -y' byacc
9229do
698dcdb6 9230# Extract the first word of "$ac_prog", so it can be a program name with args.
10f2d63a 9231set dummy $ac_prog; ac_word=$2
698dcdb6 9232echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4cdb0ab0 9233echo "configure:9234: checking for $ac_word" >&5
698dcdb6
VZ
9234if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
9235 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
9236else
9237 if test -n "$YACC"; then
9238 ac_cv_prog_YACC="$YACC" # Let the user override the test.
9239else
698dcdb6
VZ
9240 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9241 ac_dummy="$PATH"
9242 for ac_dir in $ac_dummy; do
9243 test -z "$ac_dir" && ac_dir=.
9244 if test -f $ac_dir/$ac_word; then
9245 ac_cv_prog_YACC="$ac_prog"
9246 break
9247 fi
9248 done
9249 IFS="$ac_save_ifs"
10f2d63a
VZ
9250fi
9251fi
698dcdb6 9252YACC="$ac_cv_prog_YACC"
10f2d63a 9253if test -n "$YACC"; then
698dcdb6 9254 echo "$ac_t""$YACC" 1>&6
10f2d63a 9255else
698dcdb6 9256 echo "$ac_t""no" 1>&6
10f2d63a
VZ
9257fi
9258
698dcdb6 9259test -n "$YACC" && break
10f2d63a
VZ
9260done
9261test -n "$YACC" || YACC="yacc"
9262
698dcdb6
VZ
9263
9264# Extract the first word of "flex", so it can be a program name with args.
9265set dummy flex; ac_word=$2
9266echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4cdb0ab0 9267echo "configure:9268: checking for $ac_word" >&5
698dcdb6
VZ
9268if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
9269 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
9270else
9271 if test -n "$LEX"; then
9272 ac_cv_prog_LEX="$LEX" # Let the user override the test.
9273else
698dcdb6
VZ
9274 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9275 ac_dummy="$PATH"
9276 for ac_dir in $ac_dummy; do
9277 test -z "$ac_dir" && ac_dir=.
9278 if test -f $ac_dir/$ac_word; then
9279 ac_cv_prog_LEX="flex"
9280 break
9281 fi
9282 done
9283 IFS="$ac_save_ifs"
9284 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
10f2d63a
VZ
9285fi
9286fi
698dcdb6 9287LEX="$ac_cv_prog_LEX"
10f2d63a 9288if test -n "$LEX"; then
698dcdb6 9289 echo "$ac_t""$LEX" 1>&6
10f2d63a 9290else
698dcdb6 9291 echo "$ac_t""no" 1>&6
10f2d63a
VZ
9292fi
9293
9294if test -z "$LEXLIB"
9295then
698dcdb6
VZ
9296 case "$LEX" in
9297 flex*) ac_lib=fl ;;
9298 *) ac_lib=l ;;
9299 esac
9300 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
4cdb0ab0 9301echo "configure:9302: checking for yywrap in -l$ac_lib" >&5
698dcdb6
VZ
9302ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
9303if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9304 echo $ac_n "(cached) $ac_c" 1>&6
9305else
9306 ac_save_LIBS="$LIBS"
9307LIBS="-l$ac_lib $LIBS"
9308cat > conftest.$ac_ext <<EOF
4cdb0ab0 9309#line 9310 "configure"
10f2d63a
VZ
9310#include "confdefs.h"
9311/* Override any gcc2 internal prototype to avoid an error. */
9312/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
9313 builtin and then its argument prototype would still apply. */
9314char yywrap();
10f2d63a 9315
698dcdb6
VZ
9316int main() {
9317yywrap()
9318; return 0; }
9319EOF
4cdb0ab0 9320if { (eval echo configure:9321: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
9321 rm -rf conftest*
9322 eval "ac_cv_lib_$ac_lib_var=yes"
10f2d63a 9323else
698dcdb6
VZ
9324 echo "configure: failed program was:" >&5
9325 cat conftest.$ac_ext >&5
9326 rm -rf conftest*
9327 eval "ac_cv_lib_$ac_lib_var=no"
10f2d63a 9328fi
698dcdb6
VZ
9329rm -f conftest*
9330LIBS="$ac_save_LIBS"
9331
10f2d63a 9332fi
698dcdb6
VZ
9333if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9334 echo "$ac_t""yes" 1>&6
9335 LEXLIB="-l$ac_lib"
9336else
9337 echo "$ac_t""no" 1>&6
10f2d63a
VZ
9338fi
9339
9340fi
9341
9342
698dcdb6 9343echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
4cdb0ab0 9344echo "configure:9345: checking whether ln -s works" >&5
698dcdb6
VZ
9345if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
9346 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 9347else
698dcdb6
VZ
9348 rm -f conftestdata
9349if ln -s X conftestdata 2>/dev/null
9350then
9351 rm -f conftestdata
9352 ac_cv_prog_LN_S="ln -s"
10f2d63a 9353else
698dcdb6 9354 ac_cv_prog_LN_S=ln
10f2d63a
VZ
9355fi
9356fi
698dcdb6
VZ
9357LN_S="$ac_cv_prog_LN_S"
9358if test "$ac_cv_prog_LN_S" = "ln -s"; then
9359 echo "$ac_t""yes" 1>&6
10f2d63a 9360else
698dcdb6 9361 echo "$ac_t""no" 1>&6
10f2d63a
VZ
9362fi
9363
9364
9365
9366SEARCH_INCLUDE="\
9367 /usr/local/include \
9368 \
9369 /usr/Motif-1.2/include \
9370 /usr/Motif-2.1/include \
9371 \
9372 /usr/include/Motif1.2 \
9373 /opt/xpm/include/X11 \
9374 /opt/GBxpm/include/ \
9375 /opt/GBxpm/X11/include/ \
9376 \
9377 /usr/Motif1.2/include \
9378 /usr/dt/include \
afc31813
VZ
9379 /usr/openwin/include \
9380 \
10f2d63a
VZ
9381 /usr/include/Xm \
9382 \
9383 /usr/X11R6/include \
afc31813 9384 /usr/X11R6.4/include \
10f2d63a
VZ
9385 /usr/X11R5/include \
9386 /usr/X11R4/include \
9387 \
10f2d63a
VZ
9388 /usr/include/X11R6 \
9389 /usr/include/X11R5 \
9390 /usr/include/X11R4 \
9391 \
9392 /usr/local/X11R6/include \
9393 /usr/local/X11R5/include \
9394 /usr/local/X11R4/include \
9395 \
9396 /usr/local/include/X11R6 \
9397 /usr/local/include/X11R5 \
9398 /usr/local/include/X11R4 \
9399 \
9400 /usr/X11/include \
9401 /usr/include/X11 \
9402 /usr/local/X11/include \
9403 /usr/local/include/X11 \
9404 \
9405 /usr/X386/include \
9406 /usr/x386/include \
9407 /usr/XFree86/include/X11 \
9408 \
cf27ef00 9409 X:/XFree86/include \
ec14dd32
VZ
9410 X:/XFree86/include/X11 \
9411 \
10f2d63a
VZ
9412 /usr/include/gtk \
9413 /usr/local/include/gtk \
9414 /usr/include/glib \
9415 /usr/local/include/glib \
9416 \
9417 /usr/include/qt \
9418 /usr/local/include/qt \
9419 \
9420 /usr/include/windows \
9421 /usr/include/wine \
9422 /usr/local/include/wine \
9423 \
9424 /usr/unsupported/include \
9425 /usr/athena/include \
9426 /usr/local/x11r5/include \
9427 /usr/lpp/Xamples/include \
9428 \
10f2d63a 9429 /usr/openwin/share/include \
928b5c08
VZ
9430 \
9431 /usr/include"
10f2d63a
VZ
9432
9433SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` "
9434
698dcdb6
VZ
9435
9436cat > confcache <<\EOF
10f2d63a
VZ
9437# This file is a shell script that caches the results of configure
9438# tests run on this system so they can be shared between configure
698dcdb6
VZ
9439# scripts and configure runs. It is not useful on other systems.
9440# If it contains results you don't want to keep, you may remove or edit it.
10f2d63a 9441#
698dcdb6
VZ
9442# By default, configure uses ./config.cache as the cache file,
9443# creating it if it does not exist already. You can give configure
9444# the --cache-file=FILE option to use a different cache file; that is
9445# what configure does when it calls configure scripts in
9446# subdirectories, so they share the cache.
9447# Giving --cache-file=/dev/null disables caching, for debugging configure.
9448# config.status only pays attention to the cache file if you give it the
9449# --recheck option to rerun configure.
10f2d63a 9450#
698dcdb6 9451EOF
10f2d63a
VZ
9452# The following way of writing the cache mishandles newlines in values,
9453# but we know of no workaround that is simple, portable, and efficient.
9454# So, don't put newlines in cache variables' values.
9455# Ultrix sh set writes to stderr and can't be redirected directly,
9456# and sets the high bit in the cache file unless we assign to the vars.
698dcdb6
VZ
9457(set) 2>&1 |
9458 case `(ac_space=' '; set | grep ac_space) 2>&1` in
9459 *ac_space=\ *)
9460 # `set' does not quote correctly, so add quotes (double-quote substitution
9461 # turns \\\\ into \\, and sed turns \\ into \).
9462 sed -n \
9463 -e "s/'/'\\\\''/g" \
9464 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
9465 ;;
9466 *)
9467 # `set' quotes correctly as required by POSIX, so do not add quotes.
9468 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
9469 ;;
9470 esac >> confcache
9471if cmp -s $cache_file confcache; then
9472 :
9473else
10f2d63a 9474 if test -w $cache_file; then
698dcdb6
VZ
9475 echo "updating cache $cache_file"
9476 cat confcache > $cache_file
10f2d63a
VZ
9477 else
9478 echo "not updating unwritable cache $cache_file"
9479 fi
9480fi
9481rm -f confcache
9482
698dcdb6
VZ
9483
9484
4f14bcd8 9485
18dbb1f6
VZ
9486REGEX_INCLUDE=
9487if test "$wxUSE_REGEX" != "no"; then
4f14bcd8
GD
9488 cat >> confdefs.h <<\EOF
9489#define wxUSE_REGEX 1
9490EOF
9491
9492
9493 if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
9494 ac_safe=`echo "regex.h" | sed 'y%./+-%__p_%'`
18dbb1f6 9495echo $ac_n "checking for regex.h""... $ac_c" 1>&6
4cdb0ab0 9496echo "configure:9497: checking for regex.h" >&5
18dbb1f6
VZ
9497if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9498 echo $ac_n "(cached) $ac_c" 1>&6
9499else
9500 cat > conftest.$ac_ext <<EOF
4cdb0ab0 9501#line 9502 "configure"
18dbb1f6
VZ
9502#include "confdefs.h"
9503#include <regex.h>
9504EOF
9505ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4cdb0ab0 9506{ (eval echo configure:9507: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
18dbb1f6
VZ
9507ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9508if test -z "$ac_err"; then
9509 rm -rf conftest*
9510 eval "ac_cv_header_$ac_safe=yes"
9511else
9512 echo "$ac_err" >&5
9513 echo "configure: failed program was:" >&5
9514 cat conftest.$ac_ext >&5
9515 rm -rf conftest*
9516 eval "ac_cv_header_$ac_safe=no"
9517fi
9518rm -f conftest*
9519fi
9520if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9521 echo "$ac_t""yes" 1>&6
9522 for ac_func in regcomp
9523do
9524echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4cdb0ab0 9525echo "configure:9526: checking for $ac_func" >&5
18dbb1f6
VZ
9526if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9527 echo $ac_n "(cached) $ac_c" 1>&6
9528else
9529 cat > conftest.$ac_ext <<EOF
4cdb0ab0 9530#line 9531 "configure"
18dbb1f6
VZ
9531#include "confdefs.h"
9532/* System header to define __stub macros and hopefully few prototypes,
9533 which can conflict with char $ac_func(); below. */
9534#include <assert.h>
9535/* Override any gcc2 internal prototype to avoid an error. */
9536/* We use char because int might match the return type of a gcc2
9537 builtin and then its argument prototype would still apply. */
9538char $ac_func();
9539
9540int main() {
9541
9542/* The GNU C library defines this for functions which it implements
9543 to always fail with ENOSYS. Some functions are actually named
9544 something starting with __ and the normal name is an alias. */
9545#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9546choke me
9547#else
9548$ac_func();
9549#endif
9550
9551; return 0; }
9552EOF
4cdb0ab0 9553if { (eval echo configure:9554: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18dbb1f6
VZ
9554 rm -rf conftest*
9555 eval "ac_cv_func_$ac_func=yes"
9556else
9557 echo "configure: failed program was:" >&5
9558 cat conftest.$ac_ext >&5
9559 rm -rf conftest*
9560 eval "ac_cv_func_$ac_func=no"
9561fi
9562rm -f conftest*
9563fi
9564
9565if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9566 echo "$ac_t""yes" 1>&6
9567 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9568 cat >> confdefs.h <<EOF
9569#define $ac_tr_func 1
9570EOF
9571
9572else
9573 echo "$ac_t""no" 1>&6
9574fi
9575done
9576
9577else
9578 echo "$ac_t""no" 1>&6
9579fi
9580
9581
4f14bcd8
GD
9582 if test "x$ac_cv_func_regcomp" != "xyes"; then
9583 if test "$wxUSE_REGEX" = "sys" ; then
9584 { echo "configure: error: system regex library not found! Use --with-regex to use built-in version" 1>&2; exit 1; }
9585 else
a3df447d 9586 echo "configure: warning: system regex library not found, will use built-in instead" 1>&2
4f14bcd8
GD
9587 wxUSE_REGEX=builtin
9588 fi
9589 else
9590 wxUSE_REGEX=sys
18dbb1f6 9591 fi
18dbb1f6
VZ
9592 fi
9593
4f14bcd8
GD
9594 if test "$wxUSE_REGEX" = "builtin" ; then
9595 REGEX_INCLUDE="-I\${top_srcdir}/src/regex"
9596 fi
18dbb1f6
VZ
9597fi
9598
9599
4f14bcd8
GD
9600ZLIB_INCLUDE=
9601ZLIB_LINK=
9602if test "$wxUSE_ZLIB" != "no" ; then
9603 cat >> confdefs.h <<\EOF
9604#define wxUSE_ZLIB 1
9605EOF
dad6c0ea 9606
10f2d63a 9607
4f14bcd8
GD
9608 if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
9609 ac_safe=`echo "zlib.h" | sed 'y%./+-%__p_%'`
9610echo $ac_n "checking for zlib.h""... $ac_c" 1>&6
4cdb0ab0 9611echo "configure:9612: checking for zlib.h" >&5
3a922bb4
RL
9612if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9613 echo $ac_n "(cached) $ac_c" 1>&6
9614else
9615 cat > conftest.$ac_ext <<EOF
4cdb0ab0 9616#line 9617 "configure"
3a922bb4 9617#include "confdefs.h"
4f14bcd8 9618#include <zlib.h>
3a922bb4
RL
9619EOF
9620ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4cdb0ab0 9621{ (eval echo configure:9622: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3a922bb4
RL
9622ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9623if test -z "$ac_err"; then
9624 rm -rf conftest*
9625 eval "ac_cv_header_$ac_safe=yes"
9626else
9627 echo "$ac_err" >&5
9628 echo "configure: failed program was:" >&5
9629 cat conftest.$ac_ext >&5
9630 rm -rf conftest*
9631 eval "ac_cv_header_$ac_safe=no"
9632fi
9633rm -f conftest*
9634fi
9635if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9636 echo "$ac_t""yes" 1>&6
4f14bcd8 9637 echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
4cdb0ab0 9638echo "configure:9639: checking for deflate in -lz" >&5
4f14bcd8
GD
9639ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
9640if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9641 echo $ac_n "(cached) $ac_c" 1>&6
9642else
9643 ac_save_LIBS="$LIBS"
9644LIBS="-lz $LIBS"
9645cat > conftest.$ac_ext <<EOF
4cdb0ab0 9646#line 9647 "configure"
4f14bcd8
GD
9647#include "confdefs.h"
9648/* Override any gcc2 internal prototype to avoid an error. */
9649/* We use char because int might match the return type of a gcc2
9650 builtin and then its argument prototype would still apply. */
9651char deflate();
9652
9653int main() {
9654deflate()
9655; return 0; }
3a922bb4 9656EOF
4cdb0ab0 9657if { (eval echo configure:9658: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4f14bcd8
GD
9658 rm -rf conftest*
9659 eval "ac_cv_lib_$ac_lib_var=yes"
9660else
9661 echo "configure: failed program was:" >&5
9662 cat conftest.$ac_ext >&5
9663 rm -rf conftest*
9664 eval "ac_cv_lib_$ac_lib_var=no"
9665fi
9666rm -f conftest*
9667LIBS="$ac_save_LIBS"
9668
9669fi
9670if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9671 echo "$ac_t""yes" 1>&6
3d63bc3a 9672 ZLIB_LINK=" -lz"
3a922bb4
RL
9673else
9674 echo "$ac_t""no" 1>&6
9675fi
10f2d63a 9676
4f14bcd8
GD
9677else
9678 echo "$ac_t""no" 1>&6
9679fi
9680
9681
9682 if test "x$ZLIB_LINK" = "x" ; then
9683 if test "$wxUSE_ZLIB" = "sys" ; then
9684 { echo "configure: error: system zlib compression library not found! Use --with-zlib=builtin to use built-in version" 1>&2; exit 1; }
9685 else
a3df447d 9686 echo "configure: warning: system zlib compression library not found, will use built-in instead" 1>&2
4f14bcd8
GD
9687 wxUSE_ZLIB=builtin
9688 fi
9689 else
9690 wxUSE_ZLIB=sys
9691 fi
9692 fi
9693
9694 if test "$wxUSE_ZLIB" = "builtin" ; then
9695 ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib"
9696 fi
9697fi
9698
9699
9700PNG_INCLUDE=
9701PNG_LINK=
9702if test "$wxUSE_LIBPNG" != "no" ; then
9703 cat >> confdefs.h <<\EOF
9704#define wxUSE_LIBPNG 1
9705EOF
9706
9707
9708 if test "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
a3df447d 9709 echo "configure: warning: system png library doesn't work without system zlib, will use built-in instead" 1>&2
4f14bcd8
GD
9710 wxUSE_LIBPNG=builtin
9711 fi
9712
9713 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
9714 ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
9715echo $ac_n "checking for png.h""... $ac_c" 1>&6
4cdb0ab0 9716echo "configure:9717: checking for png.h" >&5
d4158b5d
VS
9717if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9718 echo $ac_n "(cached) $ac_c" 1>&6
9719else
9720 cat > conftest.$ac_ext <<EOF
4cdb0ab0 9721#line 9722 "configure"
d4158b5d 9722#include "confdefs.h"
4f14bcd8 9723#include <png.h>
d4158b5d
VS
9724EOF
9725ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4cdb0ab0 9726{ (eval echo configure:9727: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d4158b5d
VS
9727ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9728if test -z "$ac_err"; then
9729 rm -rf conftest*
9730 eval "ac_cv_header_$ac_safe=yes"
9731else
9732 echo "$ac_err" >&5
9733 echo "configure: failed program was:" >&5
9734 cat conftest.$ac_ext >&5
9735 rm -rf conftest*
9736 eval "ac_cv_header_$ac_safe=no"
9737fi
9738rm -f conftest*
9739fi
9740if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9741 echo "$ac_t""yes" 1>&6
4f14bcd8 9742 echo $ac_n "checking for png_check_sig in -lpng""... $ac_c" 1>&6
4cdb0ab0 9743echo "configure:9744: checking for png_check_sig in -lpng" >&5
4f14bcd8
GD
9744ac_lib_var=`echo png'_'png_check_sig | sed 'y%./+-%__p_%'`
9745if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3a922bb4
RL
9746 echo $ac_n "(cached) $ac_c" 1>&6
9747else
4f14bcd8
GD
9748 ac_save_LIBS="$LIBS"
9749LIBS="-lpng -lz -lm $LIBS"
9750cat > conftest.$ac_ext <<EOF
4cdb0ab0 9751#line 9752 "configure"
3a922bb4 9752#include "confdefs.h"
4f14bcd8
GD
9753/* Override any gcc2 internal prototype to avoid an error. */
9754/* We use char because int might match the return type of a gcc2
9755 builtin and then its argument prototype would still apply. */
9756char png_check_sig();
f6bcfd97 9757
4f14bcd8
GD
9758int main() {
9759png_check_sig()
3a922bb4
RL
9760; return 0; }
9761EOF
4cdb0ab0 9762if { (eval echo configure:9763: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3a922bb4 9763 rm -rf conftest*
4f14bcd8 9764 eval "ac_cv_lib_$ac_lib_var=yes"
3a922bb4
RL
9765else
9766 echo "configure: failed program was:" >&5
9767 cat conftest.$ac_ext >&5
9768 rm -rf conftest*
4f14bcd8 9769 eval "ac_cv_lib_$ac_lib_var=no"
3a922bb4
RL
9770fi
9771rm -f conftest*
4f14bcd8 9772LIBS="$ac_save_LIBS"
10f2d63a 9773
4f14bcd8
GD
9774fi
9775if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9776 echo "$ac_t""yes" 1>&6
3d63bc3a 9777 PNG_LINK=" -lpng"
4f14bcd8
GD
9778else
9779 echo "$ac_t""no" 1>&6
9780fi
32832908 9781
4f14bcd8
GD
9782
9783else
9784 echo "$ac_t""no" 1>&6
9785fi
3a922bb4 9786
7b7a7637 9787
4f14bcd8
GD
9788 if test "x$PNG_LINK" = "x" ; then
9789 if test "$wxUSE_LIBPNG" = "sys" ; then
9790 { echo "configure: error: system png library not found! Use --with-libpng=builtin to use built-in version" 1>&2; exit 1; }
9791 else
a3df447d 9792 echo "configure: warning: system png library not found, will use built-in instead" 1>&2
4f14bcd8
GD
9793 wxUSE_LIBPNG=builtin
9794 fi
9795 else
9796 wxUSE_LIBPNG=yes
9797 fi
3a922bb4
RL
9798 fi
9799
4f14bcd8
GD
9800 if test "$wxUSE_LIBPNG" = "builtin" ; then
9801 PNG_INCLUDE="-I\${top_srcdir}/src/png"
3a922bb4
RL
9802 fi
9803
4f14bcd8 9804 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
3a922bb4
RL
9805fi
9806
32832908 9807
4f14bcd8
GD
9808JPEG_INCLUDE=
9809JPEG_LINK=
9810if test "$wxUSE_LIBJPEG" != "no" ; then
9811 cat >> confdefs.h <<\EOF
9812#define wxUSE_LIBJPEG 1
9813EOF
10f2d63a 9814
8168de4c 9815
4f14bcd8
GD
9816 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
9817 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
4cdb0ab0 9818echo "configure:9819: checking for jpeglib.h" >&5
4f14bcd8 9819 if eval "test \"`echo '$''{'ac_cv_header_jpeglib_h'+set}'`\" = set"; then
8168de4c
VZ
9820 echo $ac_n "(cached) $ac_c" 1>&6
9821else
4f14bcd8 9822 cat > conftest.$ac_ext <<EOF
4cdb0ab0 9823#line 9824 "configure"
4f14bcd8 9824#include "confdefs.h"
8168de4c 9825
4f14bcd8
GD
9826 #undef HAVE_STDLIB_H
9827 #include <stdio.h>
9828 #include <jpeglib.h>
9829
9830int main() {
9831
9832
9833; return 0; }
9834EOF
4cdb0ab0 9835if { (eval echo configure:9836: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4f14bcd8
GD
9836 rm -rf conftest*
9837 ac_cv_header_jpeglib_h=yes
6f72b082 9838else
4f14bcd8
GD
9839 echo "configure: failed program was:" >&5
9840 cat conftest.$ac_ext >&5
9841 rm -rf conftest*
9842 ac_cv_header_jpeglib_h=no
9843
9844fi
9845rm -f conftest*
9846
698dcdb6 9847fi
6f72b082 9848
4f14bcd8
GD
9849 echo "$ac_t""$ac_cv_header_jpeglib_h" 1>&6
9850
9851 if test "$ac_cv_header_jpeglib_h" = "yes"; then
9852 echo $ac_n "checking for jpeg_read_header in -ljpeg""... $ac_c" 1>&6
4cdb0ab0 9853echo "configure:9854: checking for jpeg_read_header in -ljpeg" >&5
4f14bcd8
GD
9854ac_lib_var=`echo jpeg'_'jpeg_read_header | sed 'y%./+-%__p_%'`
9855if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9856 echo $ac_n "(cached) $ac_c" 1>&6
6f72b082 9857else
4f14bcd8
GD
9858 ac_save_LIBS="$LIBS"
9859LIBS="-ljpeg $LIBS"
9860cat > conftest.$ac_ext <<EOF
4cdb0ab0 9861#line 9862 "configure"
4f14bcd8
GD
9862#include "confdefs.h"
9863/* Override any gcc2 internal prototype to avoid an error. */
9864/* We use char because int might match the return type of a gcc2
9865 builtin and then its argument prototype would still apply. */
9866char jpeg_read_header();
698dcdb6 9867
4f14bcd8
GD
9868int main() {
9869jpeg_read_header()
9870; return 0; }
9871EOF
4cdb0ab0 9872if { (eval echo configure:9873: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4f14bcd8
GD
9873 rm -rf conftest*
9874 eval "ac_cv_lib_$ac_lib_var=yes"
6f72b082 9875else
4f14bcd8
GD
9876 echo "configure: failed program was:" >&5
9877 cat conftest.$ac_ext >&5
9878 rm -rf conftest*
9879 eval "ac_cv_lib_$ac_lib_var=no"
698dcdb6 9880fi
4f14bcd8
GD
9881rm -f conftest*
9882LIBS="$ac_save_LIBS"
698dcdb6 9883
4f14bcd8
GD
9884fi
9885if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9886 echo "$ac_t""yes" 1>&6
3d63bc3a 9887 JPEG_LINK=" -ljpeg"
4f14bcd8
GD
9888else
9889 echo "$ac_t""no" 1>&6
9890fi
9891
9892 fi
9893
9894 if test "x$JPEG_LINK" = "x" ; then
9895 if test "$wxUSE_LIBJPEG" = "sys" ; then
9896 { echo "configure: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" 1>&2; exit 1; }
9897 else
a3df447d 9898 echo "configure: warning: system jpeg library not found, will use built-in instead" 1>&2
4f14bcd8
GD
9899 wxUSE_LIBJPEG=builtin
9900 fi
9901 else
9902 wxUSE_LIBJPEG=sys
9903 fi
9904 fi
9905
9906 if test "$wxUSE_LIBJPEG" = "builtin" ; then
9907 JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg"
9908 fi
9909fi
9910
9911
9912TIFF_INCLUDE=
9913TIFF_LINK=
9914if test "$wxUSE_LIBTIFF" != "no" ; then
9915 cat >> confdefs.h <<\EOF
9916#define wxUSE_LIBTIFF 1
9917EOF
9918
9919
9920 if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
9921 ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
9922echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
4cdb0ab0 9923echo "configure:9924: checking for tiffio.h" >&5
4f14bcd8
GD
9924if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9925 echo $ac_n "(cached) $ac_c" 1>&6
9926else
9927 cat > conftest.$ac_ext <<EOF
4cdb0ab0 9928#line 9929 "configure"
4f14bcd8
GD
9929#include "confdefs.h"
9930#include <tiffio.h>
9931EOF
9932ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4cdb0ab0 9933{ (eval echo configure:9934: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4f14bcd8
GD
9934ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9935if test -z "$ac_err"; then
9936 rm -rf conftest*
9937 eval "ac_cv_header_$ac_safe=yes"
9938else
9939 echo "$ac_err" >&5
9940 echo "configure: failed program was:" >&5
9941 cat conftest.$ac_ext >&5
9942 rm -rf conftest*
9943 eval "ac_cv_header_$ac_safe=no"
9944fi
9945rm -f conftest*
9946fi
9947if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9948 echo "$ac_t""yes" 1>&6
9949 echo $ac_n "checking for TIFFError in -ltiff""... $ac_c" 1>&6
4cdb0ab0 9950echo "configure:9951: checking for TIFFError in -ltiff" >&5
4f14bcd8
GD
9951ac_lib_var=`echo tiff'_'TIFFError | sed 'y%./+-%__p_%'`
9952if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9953 echo $ac_n "(cached) $ac_c" 1>&6
9954else
9955 ac_save_LIBS="$LIBS"
9956LIBS="-ltiff -lm $LIBS"
9957cat > conftest.$ac_ext <<EOF
4cdb0ab0 9958#line 9959 "configure"
4f14bcd8
GD
9959#include "confdefs.h"
9960/* Override any gcc2 internal prototype to avoid an error. */
9961/* We use char because int might match the return type of a gcc2
9962 builtin and then its argument prototype would still apply. */
9963char TIFFError();
9964
9965int main() {
9966TIFFError()
9967; return 0; }
9968EOF
4cdb0ab0 9969if { (eval echo configure:9970: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4f14bcd8
GD
9970 rm -rf conftest*
9971 eval "ac_cv_lib_$ac_lib_var=yes"
9972else
9973 echo "configure: failed program was:" >&5
9974 cat conftest.$ac_ext >&5
9975 rm -rf conftest*
9976 eval "ac_cv_lib_$ac_lib_var=no"
9977fi
9978rm -f conftest*
9979LIBS="$ac_save_LIBS"
9980
9981fi
9982if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9983 echo "$ac_t""yes" 1>&6
3d63bc3a 9984 TIFF_LINK=" -ltiff"
4f14bcd8
GD
9985else
9986 echo "$ac_t""no" 1>&6
9987fi
9988
9989
9990else
9991 echo "$ac_t""no" 1>&6
9992fi
9993
9994
9995 if test "x$TIFF_LINK" = "x" ; then
9996 if test "$wxUSE_LIBTIFF" = "sys" ; then
9997 { echo "configure: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" 1>&2; exit 1; }
9998 else
a3df447d 9999 echo "configure: warning: system tiff library not found, will use built-in instead" 1>&2
4f14bcd8
GD
10000 wxUSE_LIBTIFF=builtin
10001 fi
10002 else
10003 wxUSE_LIBTIFF=sys
10004 fi
10005 fi
10006
10007 if test "$wxUSE_LIBTIFF" = "builtin" ; then
10008 TIFF_INCLUDE="-I\${top_srcdir}/src/tiff"
10009 fi
10010fi
10011
10012
10013FREETYPE_INCLUDE=
10014FREETYPE_LINK=
10015if test "$wxUSE_FREETYPE" != "no" ; then
10016 cat >> confdefs.h <<\EOF
10017#define wxUSE_FREETYPE 1
10018EOF
10019
10020
10021 if test "$wxUSE_FREETYPE" = "sys" -o "$wxUSE_FREETYPE" = "yes" ; then
10022 ac_safe=`echo "freetype.h" | sed 'y%./+-%__p_%'`
10023echo $ac_n "checking for freetype.h""... $ac_c" 1>&6
4cdb0ab0 10024echo "configure:10025: checking for freetype.h" >&5
4f14bcd8
GD
10025if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10026 echo $ac_n "(cached) $ac_c" 1>&6
10027else
10028 cat > conftest.$ac_ext <<EOF
4cdb0ab0 10029#line 10030 "configure"
4f14bcd8
GD
10030#include "confdefs.h"
10031#include <freetype.h>
10032EOF
10033ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4cdb0ab0 10034{ (eval echo configure:10035: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4f14bcd8
GD
10035ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10036if test -z "$ac_err"; then
10037 rm -rf conftest*
10038 eval "ac_cv_header_$ac_safe=yes"
10039else
10040 echo "$ac_err" >&5
10041 echo "configure: failed program was:" >&5
10042 cat conftest.$ac_ext >&5
10043 rm -rf conftest*
10044 eval "ac_cv_header_$ac_safe=no"
10045fi
10046rm -f conftest*
10047fi
10048if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10049 echo "$ac_t""yes" 1>&6
10050 echo $ac_n "checking for FT_Render_Glyph in -lfreetype""... $ac_c" 1>&6
4cdb0ab0 10051echo "configure:10052: checking for FT_Render_Glyph in -lfreetype" >&5
4f14bcd8
GD
10052ac_lib_var=`echo freetype'_'FT_Render_Glyph | sed 'y%./+-%__p_%'`
10053if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10054 echo $ac_n "(cached) $ac_c" 1>&6
10055else
10056 ac_save_LIBS="$LIBS"
10057LIBS="-lfreetype -lm $LIBS"
10058cat > conftest.$ac_ext <<EOF
4cdb0ab0 10059#line 10060 "configure"
4f14bcd8
GD
10060#include "confdefs.h"
10061/* Override any gcc2 internal prototype to avoid an error. */
10062/* We use char because int might match the return type of a gcc2
10063 builtin and then its argument prototype would still apply. */
10064char FT_Render_Glyph();
10065
10066int main() {
10067FT_Render_Glyph()
10068; return 0; }
10069EOF
4cdb0ab0 10070if { (eval echo configure:10071: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4f14bcd8
GD
10071 rm -rf conftest*
10072 eval "ac_cv_lib_$ac_lib_var=yes"
10073else
10074 echo "configure: failed program was:" >&5
10075 cat conftest.$ac_ext >&5
10076 rm -rf conftest*
10077 eval "ac_cv_lib_$ac_lib_var=no"
10078fi
10079rm -f conftest*
10080LIBS="$ac_save_LIBS"
10081
10082fi
10083if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10084 echo "$ac_t""yes" 1>&6
3d63bc3a 10085 FREETYPE_LINK=" -lfreetype"
4f14bcd8
GD
10086else
10087 echo "$ac_t""no" 1>&6
10088fi
10089
10090
10091else
10092 echo "$ac_t""no" 1>&6
10093fi
10094
10095
10096 if test "x$FREETYPE_LINK" = "x" ; then
10097 if test "$wxUSE_FREETYPE" = "sys" ; then
10098 { echo "configure: error: system freetype library not found! Use --with-freetype=builtin to use built-in version" 1>&2; exit 1; }
10099 else
a3df447d 10100 echo "configure: warning: system freetype library not found, will use built-in instead" 1>&2
4f14bcd8
GD
10101 wxUSE_FREETYPE=builtin
10102 fi
10103 else
10104 wxUSE_FREETYPE=sys
10105 fi
10106 fi
10107
10108 if test "$wxUSE_FREETYPE" = "builtin" ; then
10109 FREETYPE_INCLUDE="-I\${top_srcdir}/src/freetype"
10110 fi
10111fi
10112
10113
10114AFMINSTALL=
10115
10116TOOLKIT=
10117TOOLKIT_INCLUDE=
10118WIDGET_SET=
10119
10120if test "$USE_WIN32" = 1 ; then
10121 for ac_hdr in w32api.h
10122do
10123ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10124echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4cdb0ab0 10125echo "configure:10126: checking for $ac_hdr" >&5
4f14bcd8
GD
10126if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10127 echo $ac_n "(cached) $ac_c" 1>&6
10128else
10129 cat > conftest.$ac_ext <<EOF
4cdb0ab0 10130#line 10131 "configure"
4f14bcd8
GD
10131#include "confdefs.h"
10132#include <$ac_hdr>
10133EOF
10134ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4cdb0ab0 10135{ (eval echo configure:10136: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4f14bcd8
GD
10136ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10137if test -z "$ac_err"; then
10138 rm -rf conftest*
10139 eval "ac_cv_header_$ac_safe=yes"
10140else
10141 echo "$ac_err" >&5
10142 echo "configure: failed program was:" >&5
10143 cat conftest.$ac_ext >&5
10144 rm -rf conftest*
10145 eval "ac_cv_header_$ac_safe=no"
10146fi
10147rm -f conftest*
10148fi
10149if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10150 echo "$ac_t""yes" 1>&6
10151 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10152 cat >> confdefs.h <<EOF
10153#define $ac_tr_hdr 1
10154EOF
10155
10156else
10157 echo "$ac_t""no" 1>&6
10158fi
10159done
10160
10161 ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'`
10162echo $ac_n "checking for windows.h""... $ac_c" 1>&6
4cdb0ab0 10163echo "configure:10164: checking for windows.h" >&5
4f14bcd8
GD
10164if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10165 echo $ac_n "(cached) $ac_c" 1>&6
10166else
10167 cat > conftest.$ac_ext <<EOF
4cdb0ab0 10168#line 10169 "configure"
4f14bcd8
GD
10169#include "confdefs.h"
10170#include <windows.h>
10171EOF
10172ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4cdb0ab0 10173{ (eval echo configure:10174: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4f14bcd8
GD
10174ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10175if test -z "$ac_err"; then
10176 rm -rf conftest*
10177 eval "ac_cv_header_$ac_safe=yes"
10178else
10179 echo "$ac_err" >&5
10180 echo "configure: failed program was:" >&5
10181 cat conftest.$ac_ext >&5
10182 rm -rf conftest*
10183 eval "ac_cv_header_$ac_safe=no"
10184fi
10185rm -f conftest*
10186fi
10187if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10188 echo "$ac_t""yes" 1>&6
10189 :
10190else
10191 echo "$ac_t""no" 1>&6
10192
10193 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
10194
10195fi
10196
10197
10198 echo $ac_n "checking if w32api has good enough MSIE support""... $ac_c" 1>&6
4cdb0ab0 10199echo "configure:10200: checking if w32api has good enough MSIE support" >&5
ea7682f0 10200if eval "test \"`echo '$''{'wx_cv_w32api_win32_ie'+set}'`\" = set"; then
4f14bcd8
GD
10201 echo $ac_n "(cached) $ac_c" 1>&6
10202else
10203
10204 cat > conftest.$ac_ext <<EOF
4cdb0ab0 10205#line 10206 "configure"
4f14bcd8
GD
10206#include "confdefs.h"
10207#include <w32api.h>
10208int main() {
10209
10210 #define wxCHECK_W32API_VERSION( major, minor ) \
10211 ( defined( __W32API_MAJOR_VERSION ) && defined( __W32API_MINOR_VERSION ) \
10212 && ( ( __W32API_MAJOR_VERSION > (major) ) \
10213 || ( __W32API_MAJOR_VERSION == (major) && __W32API_MINOR_VERSION >= (minor))))
10214
10215 #if !wxCHECK_W32API_VERSION(1,1)
10216 #error You need w32api 1.1 or newer
10217 #endif
10218
10219; return 0; }
10220EOF
4cdb0ab0 10221if { (eval echo configure:10222: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4f14bcd8
GD
10222 rm -rf conftest*
10223
ea7682f0 10224 wx_cv_w32api_win32_ie=yes
4f14bcd8
GD
10225
10226else
10227 echo "configure: failed program was:" >&5
10228 cat conftest.$ac_ext >&5
10229 rm -rf conftest*
10230
ea7682f0 10231 wx_cv_w32api_win32_ie=no
4f14bcd8
GD
10232
10233fi
10234rm -f conftest*
10235
10236fi
10237
ea7682f0
VS
10238echo "$ac_t""$wx_cv_w32api_win32_ie" 1>&6
10239 if test "$wx_cv_w32api_win32_ie" = "yes" ; then
10240 CPPFLAGS="$CPPFLAGS -D_WIN32_IE=0x400"
10241 fi
4f14bcd8
GD
10242
10243 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -ladvapi32 -lwsock32"
10244
77e13408
RL
10245 case "${host}" in
10246 *-*-cygwin* )
10247 LIBS="$LIBS -lkernel32 -luser32 -lgdi32 -lcomdlg32"
10248 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__"
10249 esac
4f14bcd8
GD
10250
10251 if test "$wxUSE_ODBC" = "yes" ; then
a72a4bfa 10252 LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
4f14bcd8
GD
10253 fi
10254
4f14bcd8
GD
10255 RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
10256 RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
10257fi
10258
10259if test "$wxUSE_GUI" = "yes"; then
10260 USE_GUI=1
10261
10262 GUI_TK_LIBRARY=
10263
10264 WXGTK12=
10265 WXGTK127=
10266 WXGTK20=
10267
77e13408 10268 if test "$wxUSE_MSW" = 1 ; then
4f14bcd8
GD
10269 TOOLKIT=MSW
10270 GUIDIST=MSW_DIST
77e13408
RL
10271
10272 case "${host}" in
10273 *-*-mingw32* )
3d63bc3a 10274 LDFLAGS="$LDFLAGS -Wl,--subsystem,windows -mwindows"
77e13408 10275 esac
4f14bcd8
GD
10276 fi
10277
10278 if test "$wxUSE_GTK" = 1; then
10279 echo $ac_n "checking for GTK+ version""... $ac_c" 1>&6
4cdb0ab0 10280echo "configure:10281: checking for GTK+ version" >&5
4f14bcd8
GD
10281
10282 gtk_version_cached=1
10283 if eval "test \"`echo '$''{'wx_cv_lib_gtk'+set}'`\" = set"; then
10284 echo $ac_n "(cached) $ac_c" 1>&6
10285else
10286
10287 gtk_version_cached=0
d48ad9bd 10288 echo "$ac_t""" 1>&6
4f14bcd8 10289
3f345b47
VZ
10290 GTK_MODULES=
10291 if test "$wxUSE_THREADS" = "yes"; then
10292 GTK_MODULES=gthread
10293 fi
10294
4f14bcd8
GD
10295 wx_cv_lib_gtk=
10296 if test "x$wxUSE_GTK2" = "xyes"; then
10297 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
10298if test "${with_gtk_prefix+set}" = set; then
10299 withval="$with_gtk_prefix"
10300 gtk_config_prefix="$withval"
10301else
10302 gtk_config_prefix=""
10303fi
10304
10305# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
10306if test "${with_gtk_exec_prefix+set}" = set; then
10307 withval="$with_gtk_exec_prefix"
10308 gtk_config_exec_prefix="$withval"
10309else
10310 gtk_config_exec_prefix=""
10311fi
10312
10313# Check whether --enable-gtktest or --disable-gtktest was given.
10314if test "${enable_gtktest+set}" = set; then
10315 enableval="$enable_gtktest"
10316 :
10317else
10318 enable_gtktest=yes
10319fi
10320
10321
3f345b47 10322 for module in . $GTK_MODULES
4f14bcd8 10323 do
6f72b082 10324 case "$module" in
8168de4c 10325 gthread)
6f72b082
OK
10326 gtk_config_args="$gtk_config_args gthread"
10327 ;;
10328 esac
10329 done
10330
10331 if test x$gtk_config_exec_prefix != x ; then
10332 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
10333 if test x${GTK_CONFIG_2_0+set} != xset ; then
10334 GTK_CONFIG_2_0=$gtk_config_exec_prefix/bin/gtk-config-2.0
10335 fi
10336 fi
10337 if test x$gtk_config_prefix != x ; then
10338 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
10339 if test x${GTK_CONFIG_2_0+set} != xset ; then
10340 GTK_CONFIG_2_0=$gtk_config_prefix/bin/gtk-config-2.0
10341 fi
10342 fi
10343
10344 # Extract the first word of "gtk-config-2.0", so it can be a program name with args.
10345set dummy gtk-config-2.0; ac_word=$2
698dcdb6 10346echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4cdb0ab0 10347echo "configure:10348: checking for $ac_word" >&5
698dcdb6
VZ
10348if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG_2_0'+set}'`\" = set"; then
10349 echo $ac_n "(cached) $ac_c" 1>&6
6f72b082 10350else
698dcdb6
VZ
10351 case "$GTK_CONFIG_2_0" in
10352 /*)
6f72b082
OK
10353 ac_cv_path_GTK_CONFIG_2_0="$GTK_CONFIG_2_0" # Let the user override the test with a path.
10354 ;;
698dcdb6
VZ
10355 ?:/*)
10356 ac_cv_path_GTK_CONFIG_2_0="$GTK_CONFIG_2_0" # Let the user override the test with a dos path.
10357 ;;
6f72b082 10358 *)
698dcdb6
VZ
10359 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
10360 ac_dummy="$PATH"
10361 for ac_dir in $ac_dummy; do
10362 test -z "$ac_dir" && ac_dir=.
10363 if test -f $ac_dir/$ac_word; then
10364 ac_cv_path_GTK_CONFIG_2_0="$ac_dir/$ac_word"
10365 break
10366 fi
10367 done
10368 IFS="$ac_save_ifs"
6f72b082
OK
10369 test -z "$ac_cv_path_GTK_CONFIG_2_0" && ac_cv_path_GTK_CONFIG_2_0="no"
10370 ;;
10371esac
10372fi
698dcdb6 10373GTK_CONFIG_2_0="$ac_cv_path_GTK_CONFIG_2_0"
6f72b082 10374if test -n "$GTK_CONFIG_2_0"; then
698dcdb6 10375 echo "$ac_t""$GTK_CONFIG_2_0" 1>&6
6f72b082 10376else
698dcdb6 10377 echo "$ac_t""no" 1>&6
6f72b082
OK
10378fi
10379
10380 min_gtk_version=1.3.1
698dcdb6 10381 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
4cdb0ab0 10382echo "configure:10383: checking for GTK - version >= $min_gtk_version" >&5
6f72b082
OK
10383 no_gtk=""
10384 if test "$GTK_CONFIG_2_0" = "no" ; then
10385 no_gtk=yes
10386 else
10387 GTK_CFLAGS=`$GTK_CONFIG_2_0 $gtk_config_args --cflags`
10388 GTK_LIBS=`$GTK_CONFIG_2_0 $gtk_config_args --libs`
10389 gtk_config_major_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \
10390 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
10391 gtk_config_minor_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \
10392 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
10393 gtk_config_micro_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \
10394 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
10395 if test "x$enable_gtktest" = "xyes" ; then
10396 ac_save_CFLAGS="$CFLAGS"
10397 ac_save_LIBS="$LIBS"
10398 CFLAGS="$CFLAGS $GTK_CFLAGS"
10399 LIBS="$GTK_LIBS $LIBS"
10400 rm -f conf.gtktest
10401 if test "$cross_compiling" = yes; then
10402 echo $ac_n "cross compiling; assumed OK... $ac_c"
10403else
698dcdb6 10404 cat > conftest.$ac_ext <<EOF
4cdb0ab0 10405#line 10406 "configure"
6f72b082
OK
10406#include "confdefs.h"
10407
10408#include <gtk/gtk.h>
10409#include <stdio.h>
10410#include <stdlib.h>
10411
8168de4c 10412int
6f72b082
OK
10413main ()
10414{
10415 int major, minor, micro;
10416 char *tmp_version;
10417
10418 system ("touch conf.gtktest");
10419
10420 /* HP/UX 9 (%@#!) writes to sscanf strings */
10421 tmp_version = g_strdup("$min_gtk_version");
10422 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
10423 printf("%s, bad version string\n", "$min_gtk_version");
10424 exit(1);
10425 }
10426
10427 if ((gtk_major_version != $gtk_config_major_version) ||
10428 (gtk_minor_version != $gtk_config_minor_version) ||
10429 (gtk_micro_version != $gtk_config_micro_version))
10430 {
8168de4c 10431 printf("\n*** 'gtk-config-2.0 --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
6f72b082
OK
10432 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
10433 gtk_major_version, gtk_minor_version, gtk_micro_version);
10434 printf ("*** was found! If gtk-config-2.0 was correct, then it is best\n");
10435 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
10436 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
10437 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
10438 printf("*** required on your system.\n");
10439 printf("*** If gtk-config-2.0 was wrong, set the environment variable GTK_CONFIG_2_0\n");
10440 printf("*** to point to the correct copy of gtk-config-2.0, and remove the file config.cache\n");
10441 printf("*** before re-running configure\n");
8168de4c 10442 }
6f72b082
OK
10443#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
10444 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
8168de4c 10445 (gtk_minor_version != GTK_MINOR_VERSION) ||
6f72b082
OK
10446 (gtk_micro_version != GTK_MICRO_VERSION))
10447 {
10448 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
8168de4c 10449 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
6f72b082 10450 printf("*** library (version %d.%d.%d)\n",
8168de4c 10451 gtk_major_version, gtk_minor_version, gtk_micro_version);
6f72b082
OK
10452 }
10453#endif /* defined (GTK_MAJOR_VERSION) ... */
10454 else
10455 {
10456 if ((gtk_major_version > major) ||
10457 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
10458 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
10459 {
10460 return 0;
10461 }
10462 else
10463 {
10464 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
10465 gtk_major_version, gtk_minor_version, gtk_micro_version);
10466 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
8168de4c 10467 major, minor, micro);
6f72b082
OK
10468 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
10469 printf("***\n");
10470 printf("*** If you have already installed a sufficiently new version, this error\n");
10471 printf("*** probably means that the wrong copy of the gtk-config-2.0 shell script is\n");
10472 printf("*** being found. The easiest way to fix this is to remove the old version\n");
10473 printf("*** of GTK+, but you can also set the GTK_CONFIG_2_0 environment to point to the\n");
10474 printf("*** correct copy of gtk-config-2.0. (In this case, you will have to\n");
10475 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
10476 printf("*** so that the correct libraries are found at run-time))\n");
10477 }
10478 }
10479 return 1;
10480}
10481
698dcdb6 10482EOF
4cdb0ab0 10483if { (eval echo configure:10484: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6 10484then
6f72b082
OK
10485 :
10486else
698dcdb6
VZ
10487 echo "configure: failed program was:" >&5
10488 cat conftest.$ac_ext >&5
10489 rm -fr conftest*
10490 no_gtk=yes
6f72b082 10491fi
698dcdb6 10492rm -fr conftest*
6f72b082 10493fi
698dcdb6 10494
6f72b082
OK
10495 CFLAGS="$ac_save_CFLAGS"
10496 LIBS="$ac_save_LIBS"
10497 fi
10498 fi
10499 if test "x$no_gtk" = x ; then
698dcdb6 10500 echo "$ac_t""yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" 1>&6
8168de4c 10501 wx_cv_lib_gtk=2.0
6f72b082 10502 else
698dcdb6 10503 echo "$ac_t""no" 1>&6
6f72b082
OK
10504 if test "$GTK_CONFIG_2_0" = "no" ; then
10505 echo "*** The gtk-config-2.0 script installed by GTK could not be found"
10506 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
10507 echo "*** your path, or set the GTK_CONFIG_2_0 environment variable to the"
10508 echo "*** full path to gtk-config-2.0."
10509 else
10510 if test -f conf.gtktest ; then
10511 :
10512 else
10513 echo "*** Could not run GTK test program, checking why..."
10514 CFLAGS="$CFLAGS $GTK_CFLAGS"
10515 LIBS="$LIBS $GTK_LIBS"
698dcdb6 10516 cat > conftest.$ac_ext <<EOF
4cdb0ab0 10517#line 10518 "configure"
6f72b082
OK
10518#include "confdefs.h"
10519
10520#include <gtk/gtk.h>
10521#include <stdio.h>
10522
698dcdb6
VZ
10523int main() {
10524 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
10525; return 0; }
10526EOF
4cdb0ab0 10527if { (eval echo configure:10528: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 10528 rm -rf conftest*
6f72b082
OK
10529 echo "*** The test program compiled, but did not run. This usually means"
10530 echo "*** that the run-time linker is not finding GTK or finding the wrong"
10531 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
10532 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
10533 echo "*** to the installed location Also, make sure you have run ldconfig if that"
10534 echo "*** is required on your system"
8168de4c 10535 echo "***"
6f72b082
OK
10536 echo "*** If you have an old version installed, it is best to remove it, although"
10537 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
10538 echo "***"
10539 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
10540 echo "*** came with the system with the command"
10541 echo "***"
698dcdb6 10542 echo "*** rpm --erase --nodeps gtk gtk-devel"
6f72b082 10543else
698dcdb6
VZ
10544 echo "configure: failed program was:" >&5
10545 cat conftest.$ac_ext >&5
10546 rm -rf conftest*
10547 echo "*** The test program failed to compile or link. See the file config.log for the"
6f72b082
OK
10548 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
10549 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
698dcdb6 10550 echo "*** may want to edit the gtk-config-2.0 script: $GTK_CONFIG_2_0"
6f72b082 10551fi
698dcdb6 10552rm -f conftest*
6f72b082
OK
10553 CFLAGS="$ac_save_CFLAGS"
10554 LIBS="$ac_save_LIBS"
10555 fi
10556 fi
10557 GTK_CFLAGS=""
10558 GTK_LIBS=""
3f345b47 10559 :
8168de4c
VZ
10560 fi
10561
10562
10563 rm -f conf.gtktest
10564
10565 fi
10566
10567 if test -z "$wx_cv_lib_gtk"; then
3f345b47
VZ
10568 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
10569if test "${with_gtk_prefix+set}" = set; then
10570 withval="$with_gtk_prefix"
10571 gtk_config_prefix="$withval"
10572else
10573 gtk_config_prefix=""
10574fi
10575
10576# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
10577if test "${with_gtk_exec_prefix+set}" = set; then
10578 withval="$with_gtk_exec_prefix"
10579 gtk_config_exec_prefix="$withval"
10580else
10581 gtk_config_exec_prefix=""
10582fi
10583
10584# Check whether --enable-gtktest or --disable-gtktest was given.
10585if test "${enable_gtktest+set}" = set; then
10586 enableval="$enable_gtktest"
10587 :
10588else
10589 enable_gtktest=yes
10590fi
10591
10592
10593 for module in . $GTK_MODULES
10594 do
10595 case "$module" in
10596 gthread)
10597 gtk_config_args="$gtk_config_args gthread"
10598 ;;
10599 esac
10600 done
10601
10f2d63a
VZ
10602 if test x$gtk_config_exec_prefix != x ; then
10603 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
10604 if test x${GTK_CONFIG+set} != xset ; then
10605 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
10606 fi
10607 fi
10608 if test x$gtk_config_prefix != x ; then
10609 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
10610 if test x${GTK_CONFIG+set} != xset ; then
10611 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
10612 fi
10613 fi
10614
10615 # Extract the first word of "gtk-config", so it can be a program name with args.
10616set dummy gtk-config; ac_word=$2
698dcdb6 10617echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4cdb0ab0 10618echo "configure:10619: checking for $ac_word" >&5
698dcdb6
VZ
10619if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
10620 echo $ac_n "(cached) $ac_c" 1>&6
f6bcfd97 10621else
698dcdb6
VZ
10622 case "$GTK_CONFIG" in
10623 /*)
f6bcfd97
BP
10624 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
10625 ;;
698dcdb6
VZ
10626 ?:/*)
10627 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
10628 ;;
f6bcfd97 10629 *)
698dcdb6
VZ
10630 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
10631 ac_dummy="$PATH"
10632 for ac_dir in $ac_dummy; do
10633 test -z "$ac_dir" && ac_dir=.
10634 if test -f $ac_dir/$ac_word; then
10635 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
10636 break
10637 fi
10638 done
10639 IFS="$ac_save_ifs"
f6bcfd97
BP
10640 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
10641 ;;
10642esac
10643fi
698dcdb6 10644GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
f6bcfd97 10645if test -n "$GTK_CONFIG"; then
698dcdb6 10646 echo "$ac_t""$GTK_CONFIG" 1>&6
f6bcfd97 10647else
698dcdb6 10648 echo "$ac_t""no" 1>&6
f6bcfd97
BP
10649fi
10650
10651 min_gtk_version=1.2.7
698dcdb6 10652 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
4cdb0ab0 10653echo "configure:10654: checking for GTK - version >= $min_gtk_version" >&5
f6bcfd97 10654 no_gtk=""
3f345b47
VZ
10655 if test "$GTK_CONFIG" = "no" ; then
10656 no_gtk=yes
10657 else
10658 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
10659 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
10660 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
10661 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
10662 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
10663 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
10664 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
10665 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
10666 if test "x$enable_gtktest" = "xyes" ; then
10667 ac_save_CFLAGS="$CFLAGS"
10668 ac_save_LIBS="$LIBS"
10669 CFLAGS="$CFLAGS $GTK_CFLAGS"
10670 LIBS="$GTK_LIBS $LIBS"
10671 rm -f conf.gtktest
10672 if test "$cross_compiling" = yes; then
f6bcfd97
BP
10673 echo $ac_n "cross compiling; assumed OK... $ac_c"
10674else
698dcdb6 10675 cat > conftest.$ac_ext <<EOF
4cdb0ab0 10676#line 10677 "configure"
f6bcfd97
BP
10677#include "confdefs.h"
10678
10679#include <gtk/gtk.h>
f6bcfd97
BP
10680#include <stdio.h>
10681#include <stdlib.h>
10682
3f345b47 10683int
f6bcfd97
BP
10684main ()
10685{
10686 int major, minor, micro;
3f345b47 10687 char *tmp_version;
f6bcfd97 10688
3f345b47 10689 system ("touch conf.gtktest");
f6bcfd97 10690
3f345b47
VZ
10691 /* HP/UX 9 (%@#!) writes to sscanf strings */
10692 tmp_version = g_strdup("$min_gtk_version");
10693 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
10694 printf("%s, bad version string\n", "$min_gtk_version");
f6bcfd97
BP
10695 exit(1);
10696 }
10697
3f345b47
VZ
10698 if ((gtk_major_version != $gtk_config_major_version) ||
10699 (gtk_minor_version != $gtk_config_minor_version) ||
10700 (gtk_micro_version != $gtk_config_micro_version))
10701 {
10702 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
10703 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
10704 gtk_major_version, gtk_minor_version, gtk_micro_version);
10705 printf ("*** was found! If gtk-config was correct, then it is best\n");
10706 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
10707 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
10708 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
10709 printf("*** required on your system.\n");
10710 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
10711 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
10712 printf("*** before re-running configure\n");
10713 }
10714#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
10715 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
10716 (gtk_minor_version != GTK_MINOR_VERSION) ||
10717 (gtk_micro_version != GTK_MICRO_VERSION))
10718 {
10719 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
10720 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
10721 printf("*** library (version %d.%d.%d)\n",
10722 gtk_major_version, gtk_minor_version, gtk_micro_version);
10723 }
10724#endif /* defined (GTK_MAJOR_VERSION) ... */
10725 else
10726 {
10727 if ((gtk_major_version > major) ||
10728 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
10729 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
10730 {
10731 return 0;
10732 }
10733 else
10734 {
10735 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
10736 gtk_major_version, gtk_minor_version, gtk_micro_version);
10737 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
10738 major, minor, micro);
10739 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
10740 printf("***\n");
10741 printf("*** If you have already installed a sufficiently new version, this error\n");
10742 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
10743 printf("*** being found. The easiest way to fix this is to remove the old version\n");
10744 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
10745 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
10746 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
10747 printf("*** so that the correct libraries are found at run-time))\n");
10748 }
10749 }
10750 return 1;
f6bcfd97
BP
10751}
10752
698dcdb6 10753EOF
4cdb0ab0 10754if { (eval echo configure:10755: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6 10755then
f6bcfd97
BP
10756 :
10757else
698dcdb6
VZ
10758 echo "configure: failed program was:" >&5
10759 cat conftest.$ac_ext >&5
10760 rm -fr conftest*
10761 no_gtk=yes
f6bcfd97 10762fi
698dcdb6 10763rm -fr conftest*
f6bcfd97 10764fi
698dcdb6 10765
3f345b47
VZ
10766 CFLAGS="$ac_save_CFLAGS"
10767 LIBS="$ac_save_LIBS"
10768 fi
f6bcfd97
BP
10769 fi
10770 if test "x$no_gtk" = x ; then
698dcdb6 10771 echo "$ac_t""yes" 1>&6
3f345b47 10772 wx_cv_lib_gtk=1.2.7
f6bcfd97 10773 else
698dcdb6 10774 echo "$ac_t""no" 1>&6
3f345b47
VZ
10775 if test "$GTK_CONFIG" = "no" ; then
10776 echo "*** The gtk-config script installed by GTK could not be found"
10777 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
10778 echo "*** your path, or set the GTK_CONFIG environment variable to the"
10779 echo "*** full path to gtk-config."
10780 else
10781 if test -f conf.gtktest ; then
10782 :
10783 else
10784 echo "*** Could not run GTK test program, checking why..."
10785 CFLAGS="$CFLAGS $GTK_CFLAGS"
10786 LIBS="$LIBS $GTK_LIBS"
10787 cat > conftest.$ac_ext <<EOF
4cdb0ab0 10788#line 10789 "configure"
3f345b47
VZ
10789#include "confdefs.h"
10790
10791#include <gtk/gtk.h>
10792#include <stdio.h>
10793
10794int main() {
10795 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
10796; return 0; }
10797EOF
4cdb0ab0 10798if { (eval echo configure:10799: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3f345b47
VZ
10799 rm -rf conftest*
10800 echo "*** The test program compiled, but did not run. This usually means"
10801 echo "*** that the run-time linker is not finding GTK or finding the wrong"
10802 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
10803 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
10804 echo "*** to the installed location Also, make sure you have run ldconfig if that"
10805 echo "*** is required on your system"
10806 echo "***"
10807 echo "*** If you have an old version installed, it is best to remove it, although"
10808 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
10809 echo "***"
10810 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
10811 echo "*** came with the system with the command"
10812 echo "***"
10813 echo "*** rpm --erase --nodeps gtk gtk-devel"
10814else
10815 echo "configure: failed program was:" >&5
10816 cat conftest.$ac_ext >&5
10817 rm -rf conftest*
10818 echo "*** The test program failed to compile or link. See the file config.log for the"
10819 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
10820 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
10821 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
10822fi
10823rm -f conftest*
10824 CFLAGS="$ac_save_CFLAGS"
10825 LIBS="$ac_save_LIBS"
10826 fi
10827 fi
f6bcfd97
BP
10828 GTK_CFLAGS=""
10829 GTK_LIBS=""
10830 :
10831 fi
698dcdb6
VZ
10832
10833
3f345b47 10834 rm -f conf.gtktest
f6bcfd97 10835
8168de4c
VZ
10836 fi
10837
10838 if test -z "$wx_cv_lib_gtk"; then
3f345b47
VZ
10839 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
10840if test "${with_gtk_prefix+set}" = set; then
10841 withval="$with_gtk_prefix"
10842 gtk_config_prefix="$withval"
10843else
10844 gtk_config_prefix=""
10845fi
10846
10847# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
10848if test "${with_gtk_exec_prefix+set}" = set; then
10849 withval="$with_gtk_exec_prefix"
10850 gtk_config_exec_prefix="$withval"
10851else
10852 gtk_config_exec_prefix=""
10853fi
10854
10855# Check whether --enable-gtktest or --disable-gtktest was given.
10856if test "${enable_gtktest+set}" = set; then
10857 enableval="$enable_gtktest"
10858 :
10859else
10860 enable_gtktest=yes
10861fi
10862
10863
10864 for module in . $GTK_MODULES
10865 do
10866 case "$module" in
10867 gthread)
10868 gtk_config_args="$gtk_config_args gthread"
10869 ;;
10870 esac
10871 done
10872
f6bcfd97
BP
10873 if test x$gtk_config_exec_prefix != x ; then
10874 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
10875 if test x${GTK_CONFIG+set} != xset ; then
10876 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
10877 fi
10878 fi
10879 if test x$gtk_config_prefix != x ; then
10880 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
10881 if test x${GTK_CONFIG+set} != xset ; then
10882 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
10883 fi
10884 fi
10885
10886 # Extract the first word of "gtk-config", so it can be a program name with args.
10887set dummy gtk-config; ac_word=$2
698dcdb6 10888echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4cdb0ab0 10889echo "configure:10890: checking for $ac_word" >&5
698dcdb6
VZ
10890if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
10891 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 10892else
698dcdb6
VZ
10893 case "$GTK_CONFIG" in
10894 /*)
10f2d63a
VZ
10895 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
10896 ;;
698dcdb6
VZ
10897 ?:/*)
10898 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
10899 ;;
10f2d63a 10900 *)
698dcdb6
VZ
10901 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
10902 ac_dummy="$PATH"
10903 for ac_dir in $ac_dummy; do
10904 test -z "$ac_dir" && ac_dir=.
10905 if test -f $ac_dir/$ac_word; then
10906 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
10907 break
10908 fi
10909 done
10910 IFS="$ac_save_ifs"
10f2d63a
VZ
10911 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
10912 ;;
10913esac
10914fi
698dcdb6 10915GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
10f2d63a 10916if test -n "$GTK_CONFIG"; then
698dcdb6 10917 echo "$ac_t""$GTK_CONFIG" 1>&6
10f2d63a 10918else
698dcdb6 10919 echo "$ac_t""no" 1>&6
10f2d63a
VZ
10920fi
10921
04165bec 10922 min_gtk_version=1.2.3
698dcdb6 10923 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
4cdb0ab0 10924echo "configure:10925: checking for GTK - version >= $min_gtk_version" >&5
10f2d63a 10925 no_gtk=""
3f345b47
VZ
10926 if test "$GTK_CONFIG" = "no" ; then
10927 no_gtk=yes
10928 else
10929 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
10930 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
10931 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
10932 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
10933 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
10934 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
10935 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
10936 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
10937 if test "x$enable_gtktest" = "xyes" ; then
10938 ac_save_CFLAGS="$CFLAGS"
10939 ac_save_LIBS="$LIBS"
10940 CFLAGS="$CFLAGS $GTK_CFLAGS"
10941 LIBS="$GTK_LIBS $LIBS"
10942 rm -f conf.gtktest
10943 if test "$cross_compiling" = yes; then
10f2d63a
VZ
10944 echo $ac_n "cross compiling; assumed OK... $ac_c"
10945else
698dcdb6 10946 cat > conftest.$ac_ext <<EOF
4cdb0ab0 10947#line 10948 "configure"
10f2d63a
VZ
10948#include "confdefs.h"
10949
10950#include <gtk/gtk.h>
10951#include <stdio.h>
32832908 10952#include <stdlib.h>
10f2d63a 10953
3f345b47 10954int
10f2d63a
VZ
10955main ()
10956{
10957 int major, minor, micro;
3f345b47 10958 char *tmp_version;
10f2d63a 10959
3f345b47 10960 system ("touch conf.gtktest");
10f2d63a 10961
3f345b47
VZ
10962 /* HP/UX 9 (%@#!) writes to sscanf strings */
10963 tmp_version = g_strdup("$min_gtk_version");
10964 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
10965 printf("%s, bad version string\n", "$min_gtk_version");
f49f2b0c
RR
10966 exit(1);
10967 }
10968
3f345b47
VZ
10969 if ((gtk_major_version != $gtk_config_major_version) ||
10970 (gtk_minor_version != $gtk_config_minor_version) ||
10971 (gtk_micro_version != $gtk_config_micro_version))
10972 {
10973 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
10974 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
10975 gtk_major_version, gtk_minor_version, gtk_micro_version);
10976 printf ("*** was found! If gtk-config was correct, then it is best\n");
10977 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
10978 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
10979 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
10980 printf("*** required on your system.\n");
10981 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
10982 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
10983 printf("*** before re-running configure\n");
10984 }
10985#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
10986 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
10987 (gtk_minor_version != GTK_MINOR_VERSION) ||
10988 (gtk_micro_version != GTK_MICRO_VERSION))
10989 {
10990 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
10991 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
10992 printf("*** library (version %d.%d.%d)\n",
10993 gtk_major_version, gtk_minor_version, gtk_micro_version);
10994 }
10995#endif /* defined (GTK_MAJOR_VERSION) ... */
10996 else
10997 {
10998 if ((gtk_major_version > major) ||
10999 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
11000 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
11001 {
11002 return 0;
11003 }
11004 else
11005 {
11006 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
11007 gtk_major_version, gtk_minor_version, gtk_micro_version);
11008 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
11009 major, minor, micro);
11010 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
11011 printf("***\n");
11012 printf("*** If you have already installed a sufficiently new version, this error\n");
11013 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
11014 printf("*** being found. The easiest way to fix this is to remove the old version\n");
11015 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
11016 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
11017 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
11018 printf("*** so that the correct libraries are found at run-time))\n");
11019 }
11020 }
11021 return 1;
10f2d63a
VZ
11022}
11023
698dcdb6 11024EOF
4cdb0ab0 11025if { (eval echo configure:11026: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6 11026then
10f2d63a
VZ
11027 :
11028else
698dcdb6
VZ
11029 echo "configure: failed program was:" >&5
11030 cat conftest.$ac_ext >&5
11031 rm -fr conftest*
11032 no_gtk=yes
10f2d63a 11033fi
698dcdb6 11034rm -fr conftest*
10f2d63a 11035fi
698dcdb6 11036
3f345b47
VZ
11037 CFLAGS="$ac_save_CFLAGS"
11038 LIBS="$ac_save_LIBS"
11039 fi
10f2d63a
VZ
11040 fi
11041 if test "x$no_gtk" = x ; then
698dcdb6 11042 echo "$ac_t""yes" 1>&6
3f345b47 11043 wx_cv_lib_gtk=1.2.3
10f2d63a 11044 else
698dcdb6 11045 echo "$ac_t""no" 1>&6
3f345b47
VZ
11046 if test "$GTK_CONFIG" = "no" ; then
11047 echo "*** The gtk-config script installed by GTK could not be found"
11048 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
11049 echo "*** your path, or set the GTK_CONFIG environment variable to the"
11050 echo "*** full path to gtk-config."
11051 else
11052 if test -f conf.gtktest ; then
11053 :
11054 else
11055 echo "*** Could not run GTK test program, checking why..."
11056 CFLAGS="$CFLAGS $GTK_CFLAGS"
11057 LIBS="$LIBS $GTK_LIBS"
11058 cat > conftest.$ac_ext <<EOF
4cdb0ab0 11059#line 11060 "configure"
3f345b47
VZ
11060#include "confdefs.h"
11061
11062#include <gtk/gtk.h>
11063#include <stdio.h>
11064
11065int main() {
11066 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
11067; return 0; }
11068EOF
4cdb0ab0 11069if { (eval echo configure:11070: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3f345b47
VZ
11070 rm -rf conftest*
11071 echo "*** The test program compiled, but did not run. This usually means"
11072 echo "*** that the run-time linker is not finding GTK or finding the wrong"
11073 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
11074 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
11075 echo "*** to the installed location Also, make sure you have run ldconfig if that"
11076 echo "*** is required on your system"
11077 echo "***"
11078 echo "*** If you have an old version installed, it is best to remove it, although"
11079 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
11080 echo "***"
11081 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
11082 echo "*** came with the system with the command"
11083 echo "***"
11084 echo "*** rpm --erase --nodeps gtk gtk-devel"
11085else
11086 echo "configure: failed program was:" >&5
11087 cat conftest.$ac_ext >&5
11088 rm -rf conftest*
11089 echo "*** The test program failed to compile or link. See the file config.log for the"
11090 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
11091 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
11092 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
11093fi
11094rm -f conftest*
11095 CFLAGS="$ac_save_CFLAGS"
11096 LIBS="$ac_save_LIBS"
11097 fi
11098 fi
10f2d63a
VZ
11099 GTK_CFLAGS=""
11100 GTK_LIBS=""
7e99ad86 11101 :
10f2d63a 11102 fi
698dcdb6
VZ
11103
11104
3f345b47 11105 rm -f conf.gtktest
10f2d63a 11106
8168de4c
VZ
11107 fi
11108
11109 if test -z "$wx_cv_lib_gtk"; then
11110 wx_cv_lib_gtk=none
138be253
VZ
11111 else
11112 wx_cv_cflags_gtk=$GTK_CFLAGS
11113 wx_cv_libs_gtk=$GTK_LIBS
8168de4c
VZ
11114 fi
11115
1e6feb95 11116
8168de4c 11117fi
703e0a69 11118
698dcdb6 11119
8168de4c
VZ
11120 if test "$gtk_version_cached" = 1; then
11121 echo "$ac_t""$wx_cv_lib_gtk" 1>&6
1e6feb95 11122 fi
698dcdb6 11123
8168de4c
VZ
11124 case "$wx_cv_lib_gtk" in
11125 2.0) WXGTK20=1
11126 ;;
11127 1.2.7) WXGTK127=1
d1a8d972 11128 WXGTK12=1
8168de4c
VZ
11129 ;;
11130 1.2.3) WXGTK12=1
11131 ;;
11132 *) { echo "configure: error:
11133Please check that gtk-config is in path, the directory
11134where GTK+ libraries are installed (returned by
11135'gtk-config --libs' command) is in LD_LIBRARY_PATH or
11136equivalent variable and GTK+ is version 1.2.3 or above.
11137 " 1>&2; exit 1; }
11138 ;;
11139 esac
2224580a 11140
138be253 11141 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
11dfaa5f 11142 GUI_TK_LIBRARY="$wx_cv_libs_gtk"
698dcdb6 11143
1e6feb95
VZ
11144 AFMINSTALL=afminstall
11145 TOOLKIT=GTK
11146 GUIDIST=GTK_DIST
7ec2881a 11147
1e6feb95 11148 echo $ac_n "checking for gdk_im_open in -lgdk""... $ac_c" 1>&6
4cdb0ab0 11149echo "configure:11150: checking for gdk_im_open in -lgdk" >&5
698dcdb6
VZ
11150ac_lib_var=`echo gdk'_'gdk_im_open | sed 'y%./+-%__p_%'`
11151if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11152 echo $ac_n "(cached) $ac_c" 1>&6
7ec2881a 11153else
698dcdb6 11154 ac_save_LIBS="$LIBS"
7ec2881a 11155LIBS="-lgdk $LIBS"
698dcdb6 11156cat > conftest.$ac_ext <<EOF
4cdb0ab0 11157#line 11158 "configure"
7ec2881a
RR
11158#include "confdefs.h"
11159/* Override any gcc2 internal prototype to avoid an error. */
11160/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
11161 builtin and then its argument prototype would still apply. */
11162char gdk_im_open();
11163
11164int main() {
11165gdk_im_open()
11166; return 0; }
11167EOF
4cdb0ab0 11168if { (eval echo configure:11169: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
11169 rm -rf conftest*
11170 eval "ac_cv_lib_$ac_lib_var=yes"
11171else
11172 echo "configure: failed program was:" >&5
11173 cat conftest.$ac_ext >&5
11174 rm -rf conftest*
11175 eval "ac_cv_lib_$ac_lib_var=no"
11176fi
11177rm -f conftest*
11178LIBS="$ac_save_LIBS"
11179
11180fi
11181if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11182 echo "$ac_t""yes" 1>&6
11183 cat >> confdefs.h <<\EOF
7ec2881a
RR
11184#define HAVE_XIM 1
11185EOF
11186
698dcdb6
VZ
11187else
11188 echo "$ac_t""no" 1>&6
7ec2881a
RR
11189fi
11190
1e6feb95 11191 fi
10f2d63a 11192
1e6feb95 11193 if test "$wxUSE_MGL" = 1; then
1e6feb95 11194 echo $ac_n "checking for SciTech MGL library""... $ac_c" 1>&6
4cdb0ab0 11195echo "configure:11196: checking for SciTech MGL library" >&5
1e6feb95
VZ
11196 if test "x$MGL_ROOT" = x ; then
11197 echo "$ac_t""not found" 1>&6
11198 { echo "configure: error: Cannot find MGL library. Make sure MGL_ROOT is set." 1>&2; exit 1; }
11199 else
11200 echo "$ac_t""$MGL_ROOT" 1>&6
11201 fi
11202
f9bc1684
VS
11203 case "${host}" in
11204 *-*-linux* )
11205 mgl_os=linux/gcc/glibc
11206 ;;
11207 *-pc-msdosdjgpp )
11208 mgl_os=dos32/dj2
11209 ;;
11210 *)
11211 { echo "configure: error: This system type ${host} is not yet supported by wxMGL." 1>&2; exit 1; }
11212 esac
11213
3a922bb4 11214 mgl_lib_type=""
1e6feb95
VZ
11215
11216 if test "$wxUSE_DEBUG_FLAG" = yes ; then
223e7fbf
VS
11217 if test -f $MGL_ROOT/lib/debug/$mgl_os/libmgl.a -o \
11218 -f $MGL_ROOT/lib/debug/$mgl_os/libmgl.so; then
3a922bb4 11219 mgl_lib_type=debug
1e6feb95
VZ
11220 fi
11221 fi
3a922bb4 11222 if test "x$mgl_lib_type" = x ; then
223e7fbf
VS
11223 if test -f $MGL_ROOT/lib/release/$mgl_os/libmgl.a -o \
11224 -f $MGL_ROOT/lib/release/$mgl_os/libmgl.so; then
3a922bb4 11225 mgl_lib_type=release
1e6feb95
VZ
11226 else
11227 { echo "configure: error: Cannot find MGL libraries, make sure they are compiled." 1>&2; exit 1; }
11228 fi
11229 fi
11230
11231 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
3a922bb4 11232 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
1e6feb95
VZ
11233
11234 AFMINSTALL=afminstall
11235 TOOLKIT=MGL
11236 GUIDIST=MGL_DIST
11237 fi
11238
1725144d
RR
11239 if test "$wxUSE_MICROWIN" = 1; then
11240 echo $ac_n "checking for MicroWindows""... $ac_c" 1>&6
4cdb0ab0 11241echo "configure:11242: checking for MicroWindows" >&5
1725144d
RR
11242 if test "x$MICROWINDOWS" = x ; then
11243 echo "$ac_t""not found" 1>&6
11244 { echo "configure: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." 1>&2; exit 1; }
11245 else
11246 echo "$ac_t""$MICROWINDOWS" 1>&6
11247 fi
11248
11249 if test -f $MICROWINDOWS/lib/libmwin.a; then
11250 echo "$ac_t""MicroWindows' libraries found." 1>&6
11251 else
11252 { echo "configure: error: Cannot find MicroWindows libraries, make sure they are compiled." 1>&2; exit 1; }
11253 fi
11254
11255 TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
11256 GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
11257
11258 AFMINSTALL=afminstall
11259 TOOLKIT=MICROWIN
11260 GUIDIST=MICROWIN_DIST
11261
11262 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__ -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
11263 fi
11264
1e6feb95 11265 if test "$wxUSE_WINE" = 1; then
3a922bb4
RL
11266 ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'`
11267echo $ac_n "checking for windows.h""... $ac_c" 1>&6
4cdb0ab0 11268echo "configure:11269: checking for windows.h" >&5
3a922bb4
RL
11269if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11270 echo $ac_n "(cached) $ac_c" 1>&6
11271else
11272 cat > conftest.$ac_ext <<EOF
4cdb0ab0 11273#line 11274 "configure"
3a922bb4
RL
11274#include "confdefs.h"
11275#include <windows.h>
11276EOF
11277ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4cdb0ab0 11278{ (eval echo configure:11279: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3a922bb4
RL
11279ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11280if test -z "$ac_err"; then
11281 rm -rf conftest*
11282 eval "ac_cv_header_$ac_safe=yes"
11283else
11284 echo "$ac_err" >&5
11285 echo "configure: failed program was:" >&5
11286 cat conftest.$ac_ext >&5
11287 rm -rf conftest*
11288 eval "ac_cv_header_$ac_safe=no"
11289fi
11290rm -f conftest*
11291fi
11292if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11293 echo "$ac_t""yes" 1>&6
11294 :
11295else
11296 echo "$ac_t""no" 1>&6
10f2d63a 11297
1e6feb95 11298 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
3a922bb4
RL
11299
11300fi
11301
10f2d63a 11302
3d63bc3a 11303 xpm_link=
1e6feb95 11304 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
4cdb0ab0 11305echo "configure:11306: checking for Xpm library" >&5
1e6feb95 11306
10f2d63a
VZ
11307ac_find_libraries=
11308for ac_dir in $SEARCH_LIB;
11309 do
f11bdd03 11310 for ac_extension in a so sl dylib; do
10f2d63a
VZ
11311 if test -f "$ac_dir/libXpm.$ac_extension"; then
11312 ac_find_libraries=$ac_dir
11313 break 2
11314 fi
11315 done
11316 done
11317
1e6feb95
VZ
11318 if test "$ac_find_libraries" != "" ; then
11319 GUI_TK_LIBRARY="-L$ac_find_libraries"
3d63bc3a 11320 xpm_link=" -lXpm"
1e6feb95 11321 cat >> confdefs.h <<\EOF
10f2d63a
VZ
11322#define wxHAVE_LIB_XPM 1
11323EOF
11324
1e6feb95
VZ
11325 echo "$ac_t""found at $ac_find_libraries" 1>&6
11326 else
11327 echo "$ac_t""no" 1>&6
11328 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
11329 fi
10f2d63a 11330
3d63bc3a 11331 mesa_link=
1e6feb95 11332 echo $ac_n "checking for Mesa library""... $ac_c" 1>&6
4cdb0ab0 11333echo "configure:11334: checking for Mesa library" >&5
1e6feb95 11334
10f2d63a
VZ
11335ac_find_libraries=
11336for ac_dir in $SEARCH_LIB;
11337 do
f11bdd03 11338 for ac_extension in a so sl dylib; do
10f2d63a
VZ
11339 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
11340 ac_find_libraries=$ac_dir
11341 break 2
11342 fi
11343 done
11344 done
11345
1e6feb95
VZ
11346 if test "$ac_find_libraries" != "" ; then
11347 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -L$ac_find_libraries"
3d63bc3a 11348 mesa_link=" -lMesaGL"
1e6feb95
VZ
11349 echo "$ac_t""found at $ac_find_libraries" 1>&6
11350 else
11351 { echo "configure: error: no" 1>&2; exit 1; }
11352 fi
10f2d63a 11353
3d63bc3a 11354 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lwine$mesa_link$xpm_link -lXxf86dga -lXxf86vm -lSM -lICE -lXext -lXmu -lX11 -lncurses"
1e6feb95
VZ
11355 TOOLKIT=MSW
11356 GUIDIST=MSW_DIST
3a922bb4 11357 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXWINE__"
1e6feb95 11358 fi
698dcdb6 11359
d714471b
VZ
11360 if test "$wxUSE_MOTIF" = 1; then
11361 # If we find X, set shell vars x_includes and x_libraries to the
698dcdb6
VZ
11362# paths, otherwise set no_x=yes.
11363# Uses ac_ vars as temps to allow command line to override cache and checks.
11364# --without-x overrides everything else, but does not touch the cache.
11365echo $ac_n "checking for X""... $ac_c" 1>&6
4cdb0ab0 11366echo "configure:11367: checking for X" >&5
ab9b9eab
VZ
11367
11368# Check whether --with-x or --without-x was given.
11369if test "${with_x+set}" = set; then
11370 withval="$with_x"
698dcdb6
VZ
11371 :
11372fi
ba337fe7 11373
ab9b9eab
VZ
11374# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
11375if test "x$with_x" = xno; then
11376 # The user explicitly disabled X.
11377 have_x=disabled
11378else
11379 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
11380 # Both variables are already set.
11381 have_x=yes
11382 else
698dcdb6
VZ
11383if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
11384 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab
VZ
11385else
11386 # One or both of the vars are not set, and there is no cached value.
698dcdb6
VZ
11387ac_x_includes=NO ac_x_libraries=NO
11388rm -fr conftestdir
11389if mkdir conftestdir; then
11390 cd conftestdir
ab9b9eab 11391 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
698dcdb6 11392 cat > Imakefile <<'EOF'
ab9b9eab
VZ
11393acfindx:
11394 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
11395EOF
11396 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
11397 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
11398 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
11399 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
10f2d63a 11400 for ac_extension in a so sl; do
ab9b9eab 11401 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
698dcdb6 11402 test -f $ac_im_libdir/libX11.$ac_extension; then
ab9b9eab 11403 ac_im_usrlibdir=$ac_im_libdir; break
10f2d63a
VZ
11404 fi
11405 done
ab9b9eab
VZ
11406 # Screen out bogus values from the imake configuration. They are
11407 # bogus both because they are the default anyway, and because
11408 # using them would break gcc on systems where it needs fixed includes.
698dcdb6 11409 case "$ac_im_incroot" in
ab9b9eab 11410 /usr/include) ;;
698dcdb6 11411 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
ab9b9eab 11412 esac
698dcdb6 11413 case "$ac_im_usrlibdir" in
ab9b9eab 11414 /usr/lib | /lib) ;;
698dcdb6 11415 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
ab9b9eab 11416 esac
ba337fe7 11417 fi
ab9b9eab 11418 cd ..
698dcdb6 11419 rm -fr conftestdir
ab9b9eab 11420fi
10f2d63a 11421
698dcdb6
VZ
11422if test "$ac_x_includes" = NO; then
11423 # Guess where to find include files, by looking for this one X11 .h file.
11424 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
11425
ab9b9eab 11426 # First, try using that file with no special directory specified.
698dcdb6 11427cat > conftest.$ac_ext <<EOF
4cdb0ab0 11428#line 11429 "configure"
ab9b9eab 11429#include "confdefs.h"
698dcdb6
VZ
11430#include <$x_direct_test_include>
11431EOF
11432ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4cdb0ab0 11433{ (eval echo configure:11434: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
11434ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11435if test -z "$ac_err"; then
11436 rm -rf conftest*
ab9b9eab
VZ
11437 # We can compile using X headers with no special include directory.
11438ac_x_includes=
11439else
698dcdb6
VZ
11440 echo "$ac_err" >&5
11441 echo "configure: failed program was:" >&5
ab9b9eab 11442 cat conftest.$ac_ext >&5
698dcdb6
VZ
11443 rm -rf conftest*
11444 # Look for the header file in a standard set of common directories.
11445# Check X11 before X11Rn because it is often a symlink to the current release.
11446 for ac_dir in \
11447 /usr/X11/include \
11448 /usr/X11R6/include \
11449 /usr/X11R5/include \
11450 /usr/X11R4/include \
11451 \
11452 /usr/include/X11 \
11453 /usr/include/X11R6 \
11454 /usr/include/X11R5 \
11455 /usr/include/X11R4 \
11456 \
11457 /usr/local/X11/include \
11458 /usr/local/X11R6/include \
11459 /usr/local/X11R5/include \
11460 /usr/local/X11R4/include \
11461 \
11462 /usr/local/include/X11 \
11463 /usr/local/include/X11R6 \
11464 /usr/local/include/X11R5 \
11465 /usr/local/include/X11R4 \
11466 \
11467 /usr/X386/include \
11468 /usr/x386/include \
11469 /usr/XFree86/include/X11 \
11470 \
11471 /usr/include \
11472 /usr/local/include \
11473 /usr/unsupported/include \
11474 /usr/athena/include \
11475 /usr/local/x11r5/include \
11476 /usr/lpp/Xamples/include \
11477 \
11478 /usr/openwin/include \
11479 /usr/openwin/share/include \
11480 ; \
11481 do
11482 if test -r "$ac_dir/$x_direct_test_include"; then
11483 ac_x_includes=$ac_dir
11484 break
11485 fi
11486 done
ab9b9eab 11487fi
698dcdb6
VZ
11488rm -f conftest*
11489fi # $ac_x_includes = NO
10f2d63a 11490
698dcdb6 11491if test "$ac_x_libraries" = NO; then
ab9b9eab 11492 # Check for the libraries.
698dcdb6
VZ
11493
11494 test -z "$x_direct_test_library" && x_direct_test_library=Xt
11495 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
11496
ab9b9eab
VZ
11497 # See if we find them without any special options.
11498 # Don't add to $LIBS permanently.
698dcdb6
VZ
11499 ac_save_LIBS="$LIBS"
11500 LIBS="-l$x_direct_test_library $LIBS"
11501cat > conftest.$ac_ext <<EOF
4cdb0ab0 11502#line 11503 "configure"
ab9b9eab 11503#include "confdefs.h"
698dcdb6
VZ
11504
11505int main() {
11506${x_direct_test_function}()
11507; return 0; }
11508EOF
4cdb0ab0 11509if { (eval echo configure:11510: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
11510 rm -rf conftest*
11511 LIBS="$ac_save_LIBS"
ab9b9eab
VZ
11512# We can link X programs with no special library path.
11513ac_x_libraries=
11514else
698dcdb6
VZ
11515 echo "configure: failed program was:" >&5
11516 cat conftest.$ac_ext >&5
11517 rm -rf conftest*
11518 LIBS="$ac_save_LIBS"
11519# First see if replacing the include by lib works.
11520# Check X11 before X11Rn because it is often a symlink to the current release.
11521for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
11522 /usr/X11/lib \
11523 /usr/X11R6/lib \
11524 /usr/X11R5/lib \
11525 /usr/X11R4/lib \
11526 \
11527 /usr/lib/X11 \
11528 /usr/lib/X11R6 \
11529 /usr/lib/X11R5 \
11530 /usr/lib/X11R4 \
11531 \
11532 /usr/local/X11/lib \
11533 /usr/local/X11R6/lib \
11534 /usr/local/X11R5/lib \
11535 /usr/local/X11R4/lib \
11536 \
11537 /usr/local/lib/X11 \
11538 /usr/local/lib/X11R6 \
11539 /usr/local/lib/X11R5 \
11540 /usr/local/lib/X11R4 \
11541 \
11542 /usr/X386/lib \
11543 /usr/x386/lib \
11544 /usr/XFree86/lib/X11 \
11545 \
11546 /usr/lib \
11547 /usr/local/lib \
11548 /usr/unsupported/lib \
11549 /usr/athena/lib \
11550 /usr/local/x11r5/lib \
11551 /usr/lpp/Xamples/lib \
11552 /lib/usr/lib/X11 \
11553 \
11554 /usr/openwin/lib \
11555 /usr/openwin/share/lib \
11556 ; \
ab9b9eab
VZ
11557do
11558 for ac_extension in a so sl; do
698dcdb6 11559 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
ab9b9eab
VZ
11560 ac_x_libraries=$ac_dir
11561 break 2
10f2d63a 11562 fi
10f2d63a 11563 done
ab9b9eab
VZ
11564done
11565fi
698dcdb6
VZ
11566rm -f conftest*
11567fi # $ac_x_libraries = NO
10f2d63a 11568
698dcdb6 11569if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
ab9b9eab
VZ
11570 # Didn't find X anywhere. Cache the known absence of X.
11571 ac_cv_have_x="have_x=no"
11572else
11573 # Record where we found X for the cache.
11574 ac_cv_have_x="have_x=yes \
11575 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
11576fi
11577fi
10f2d63a 11578 fi
ab9b9eab
VZ
11579 eval "$ac_cv_have_x"
11580fi # $with_x != no
10f2d63a 11581
ab9b9eab 11582if test "$have_x" != yes; then
698dcdb6 11583 echo "$ac_t""$have_x" 1>&6
ab9b9eab
VZ
11584 no_x=yes
11585else
11586 # If each of the values was on the command line, it overrides each guess.
11587 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
11588 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
11589 # Update the cache value to reflect the command line values.
11590 ac_cv_have_x="have_x=yes \
11591 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
698dcdb6 11592 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
ab9b9eab 11593fi
10f2d63a 11594
ab9b9eab
VZ
11595if test "$no_x" = yes; then
11596 # Not all programs may use this symbol, but it does not hurt to define it.
698dcdb6 11597 cat >> confdefs.h <<\EOF
ab9b9eab
VZ
11598#define X_DISPLAY_MISSING 1
11599EOF
10f2d63a 11600
ab9b9eab
VZ
11601 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
11602else
11603 if test -n "$x_includes"; then
11604 X_CFLAGS="$X_CFLAGS -I$x_includes"
10f2d63a
VZ
11605 fi
11606
ab9b9eab
VZ
11607 # It would also be nice to do this for all -L options, not just this one.
11608 if test -n "$x_libraries"; then
11609 X_LIBS="$X_LIBS -L$x_libraries"
11610 # For Solaris; some versions of Sun CC require a space after -R and
11611 # others require no space. Words are not sufficient . . . .
698dcdb6 11612 case "`(uname -sr) 2>/dev/null`" in
ab9b9eab 11613 "SunOS 5"*)
698dcdb6 11614 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
4cdb0ab0 11615echo "configure:11616: checking whether -R must be followed by a space" >&5
698dcdb6
VZ
11616 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
11617 cat > conftest.$ac_ext <<EOF
4cdb0ab0 11618#line 11619 "configure"
ab9b9eab 11619#include "confdefs.h"
10f2d63a 11620
698dcdb6 11621int main() {
788deba1 11622
698dcdb6
VZ
11623; return 0; }
11624EOF
4cdb0ab0 11625if { (eval echo configure:11626: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 11626 rm -rf conftest*
ab9b9eab
VZ
11627 ac_R_nospace=yes
11628else
698dcdb6
VZ
11629 echo "configure: failed program was:" >&5
11630 cat conftest.$ac_ext >&5
11631 rm -rf conftest*
11632 ac_R_nospace=no
ab9b9eab 11633fi
698dcdb6 11634rm -f conftest*
ab9b9eab 11635 if test $ac_R_nospace = yes; then
698dcdb6 11636 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
11637 X_LIBS="$X_LIBS -R$x_libraries"
11638 else
11639 LIBS="$ac_xsave_LIBS -R $x_libraries"
698dcdb6 11640 cat > conftest.$ac_ext <<EOF
4cdb0ab0 11641#line 11642 "configure"
ab9b9eab 11642#include "confdefs.h"
788deba1 11643
698dcdb6 11644int main() {
ab9b9eab 11645
698dcdb6
VZ
11646; return 0; }
11647EOF
4cdb0ab0 11648if { (eval echo configure:11649: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 11649 rm -rf conftest*
ab9b9eab
VZ
11650 ac_R_space=yes
11651else
698dcdb6
VZ
11652 echo "configure: failed program was:" >&5
11653 cat conftest.$ac_ext >&5
11654 rm -rf conftest*
11655 ac_R_space=no
ab9b9eab 11656fi
698dcdb6 11657rm -f conftest*
ab9b9eab 11658 if test $ac_R_space = yes; then
698dcdb6 11659 echo "$ac_t""yes" 1>&6
ab9b9eab
VZ
11660 X_LIBS="$X_LIBS -R $x_libraries"
11661 else
698dcdb6 11662 echo "$ac_t""neither works" 1>&6
ab9b9eab
VZ
11663 fi
11664 fi
698dcdb6 11665 LIBS="$ac_xsave_LIBS"
ab9b9eab
VZ
11666 esac
11667 fi
11668
11669 # Check for system-dependent libraries X programs must link with.
11670 # Do this before checking for the system-independent R6 libraries
11671 # (-lICE), since we may need -lsocket or whatever for X linking.
11672
11673 if test "$ISC" = yes; then
11674 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
11675 else
698dcdb6
VZ
11676 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
11677 # libraries were built with DECnet support. And karl@cs.umb.edu says
ab9b9eab 11678 # the Alpha needs dnet_stub (dnet does not exist).
698dcdb6 11679 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
4cdb0ab0 11680echo "configure:11681: checking for dnet_ntoa in -ldnet" >&5
698dcdb6
VZ
11681ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
11682if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11683 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 11684else
698dcdb6 11685 ac_save_LIBS="$LIBS"
ab9b9eab 11686LIBS="-ldnet $LIBS"
698dcdb6 11687cat > conftest.$ac_ext <<EOF
4cdb0ab0 11688#line 11689 "configure"
ab9b9eab
VZ
11689#include "confdefs.h"
11690/* Override any gcc2 internal prototype to avoid an error. */
11691/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
11692 builtin and then its argument prototype would still apply. */
11693char dnet_ntoa();
11694
11695int main() {
11696dnet_ntoa()
11697; return 0; }
11698EOF
4cdb0ab0 11699if { (eval echo configure:11700: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
11700 rm -rf conftest*
11701 eval "ac_cv_lib_$ac_lib_var=yes"
11702else
11703 echo "configure: failed program was:" >&5
11704 cat conftest.$ac_ext >&5
11705 rm -rf conftest*
11706 eval "ac_cv_lib_$ac_lib_var=no"
11707fi
11708rm -f conftest*
11709LIBS="$ac_save_LIBS"
11710
11711fi
11712if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11713 echo "$ac_t""yes" 1>&6
ab9b9eab 11714 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
698dcdb6
VZ
11715else
11716 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
11717fi
11718
11719 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
698dcdb6 11720 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
4cdb0ab0 11721echo "configure:11722: checking for dnet_ntoa in -ldnet_stub" >&5
698dcdb6
VZ
11722ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
11723if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11724 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 11725else
698dcdb6 11726 ac_save_LIBS="$LIBS"
ab9b9eab 11727LIBS="-ldnet_stub $LIBS"
698dcdb6 11728cat > conftest.$ac_ext <<EOF
4cdb0ab0 11729#line 11730 "configure"
ab9b9eab
VZ
11730#include "confdefs.h"
11731/* Override any gcc2 internal prototype to avoid an error. */
11732/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
11733 builtin and then its argument prototype would still apply. */
11734char dnet_ntoa();
11735
11736int main() {
11737dnet_ntoa()
11738; return 0; }
11739EOF
4cdb0ab0 11740if { (eval echo configure:11741: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
11741 rm -rf conftest*
11742 eval "ac_cv_lib_$ac_lib_var=yes"
11743else
11744 echo "configure: failed program was:" >&5
11745 cat conftest.$ac_ext >&5
11746 rm -rf conftest*
11747 eval "ac_cv_lib_$ac_lib_var=no"
11748fi
11749rm -f conftest*
11750LIBS="$ac_save_LIBS"
11751
11752fi
11753if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11754 echo "$ac_t""yes" 1>&6
ab9b9eab 11755 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
698dcdb6
VZ
11756else
11757 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
11758fi
11759
11760 fi
11761
11762 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
11763 # to get the SysV transport functions.
698dcdb6 11764 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
ab9b9eab
VZ
11765 # needs -lnsl.
11766 # The nsl library prevents programs from opening the X display
698dcdb6
VZ
11767 # on Irix 5.2, according to dickey@clark.net.
11768 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
4cdb0ab0 11769echo "configure:11770: checking for gethostbyname" >&5
698dcdb6
VZ
11770if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
11771 echo $ac_n "(cached) $ac_c" 1>&6
11772else
11773 cat > conftest.$ac_ext <<EOF
4cdb0ab0 11774#line 11775 "configure"
ab9b9eab
VZ
11775#include "confdefs.h"
11776/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 11777 which can conflict with char gethostbyname(); below. */
ab9b9eab
VZ
11778#include <assert.h>
11779/* Override any gcc2 internal prototype to avoid an error. */
11780/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
11781 builtin and then its argument prototype would still apply. */
11782char gethostbyname();
11783
11784int main() {
ab9b9eab
VZ
11785
11786/* The GNU C library defines this for functions which it implements
11787 to always fail with ENOSYS. Some functions are actually named
11788 something starting with __ and the normal name is an alias. */
11789#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
11790choke me
11791#else
698dcdb6 11792gethostbyname();
ab9b9eab
VZ
11793#endif
11794
698dcdb6
VZ
11795; return 0; }
11796EOF
4cdb0ab0 11797if { (eval echo configure:11798: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
11798 rm -rf conftest*
11799 eval "ac_cv_func_gethostbyname=yes"
11800else
11801 echo "configure: failed program was:" >&5
11802 cat conftest.$ac_ext >&5
11803 rm -rf conftest*
11804 eval "ac_cv_func_gethostbyname=no"
11805fi
11806rm -f conftest*
11807fi
11808
11809if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
11810 echo "$ac_t""yes" 1>&6
11811 :
11812else
11813 echo "$ac_t""no" 1>&6
11814fi
ab9b9eab
VZ
11815
11816 if test $ac_cv_func_gethostbyname = no; then
698dcdb6 11817 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
4cdb0ab0 11818echo "configure:11819: checking for gethostbyname in -lnsl" >&5
698dcdb6
VZ
11819ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
11820if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11821 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 11822else
698dcdb6 11823 ac_save_LIBS="$LIBS"
ab9b9eab 11824LIBS="-lnsl $LIBS"
698dcdb6 11825cat > conftest.$ac_ext <<EOF
4cdb0ab0 11826#line 11827 "configure"
ab9b9eab
VZ
11827#include "confdefs.h"
11828/* Override any gcc2 internal prototype to avoid an error. */
11829/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
11830 builtin and then its argument prototype would still apply. */
11831char gethostbyname();
6232543b 11832
698dcdb6
VZ
11833int main() {
11834gethostbyname()
11835; return 0; }
11836EOF
4cdb0ab0 11837if { (eval echo configure:11838: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
11838 rm -rf conftest*
11839 eval "ac_cv_lib_$ac_lib_var=yes"
703e0a69 11840else
698dcdb6
VZ
11841 echo "configure: failed program was:" >&5
11842 cat conftest.$ac_ext >&5
11843 rm -rf conftest*
11844 eval "ac_cv_lib_$ac_lib_var=no"
11845fi
11846rm -f conftest*
11847LIBS="$ac_save_LIBS"
1e487827 11848
698dcdb6
VZ
11849fi
11850if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11851 echo "$ac_t""yes" 1>&6
11852 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
11853else
11854 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
11855fi
11856
11857 fi
11858
11859 # lieder@skyler.mavd.honeywell.com says without -lsocket,
11860 # socket/setsockopt and other routines are undefined under SCO ODT
11861 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
698dcdb6
VZ
11862 # on later versions), says simon@lia.di.epfl.ch: it contains
11863 # gethostby* variants that don't use the nameserver (or something).
11864 # -lsocket must be given before -lnsl if both are needed.
11865 # We assume that if connect needs -lnsl, so does gethostbyname.
11866 echo $ac_n "checking for connect""... $ac_c" 1>&6
4cdb0ab0 11867echo "configure:11868: checking for connect" >&5
698dcdb6
VZ
11868if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
11869 echo $ac_n "(cached) $ac_c" 1>&6
11870else
11871 cat > conftest.$ac_ext <<EOF
4cdb0ab0 11872#line 11873 "configure"
ab9b9eab
VZ
11873#include "confdefs.h"
11874/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 11875 which can conflict with char connect(); below. */
ab9b9eab
VZ
11876#include <assert.h>
11877/* Override any gcc2 internal prototype to avoid an error. */
11878/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
11879 builtin and then its argument prototype would still apply. */
11880char connect();
11881
11882int main() {
ab9b9eab
VZ
11883
11884/* The GNU C library defines this for functions which it implements
11885 to always fail with ENOSYS. Some functions are actually named
11886 something starting with __ and the normal name is an alias. */
11887#if defined (__stub_connect) || defined (__stub___connect)
11888choke me
11889#else
698dcdb6 11890connect();
ab9b9eab
VZ
11891#endif
11892
698dcdb6
VZ
11893; return 0; }
11894EOF
4cdb0ab0 11895if { (eval echo configure:11896: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
11896 rm -rf conftest*
11897 eval "ac_cv_func_connect=yes"
11898else
11899 echo "configure: failed program was:" >&5
11900 cat conftest.$ac_ext >&5
11901 rm -rf conftest*
11902 eval "ac_cv_func_connect=no"
11903fi
11904rm -f conftest*
11905fi
11906
11907if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
11908 echo "$ac_t""yes" 1>&6
11909 :
11910else
11911 echo "$ac_t""no" 1>&6
11912fi
ab9b9eab
VZ
11913
11914 if test $ac_cv_func_connect = no; then
698dcdb6 11915 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
4cdb0ab0 11916echo "configure:11917: checking for connect in -lsocket" >&5
698dcdb6
VZ
11917ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
11918if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11919 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 11920else
698dcdb6 11921 ac_save_LIBS="$LIBS"
ab9b9eab 11922LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
698dcdb6 11923cat > conftest.$ac_ext <<EOF
4cdb0ab0 11924#line 11925 "configure"
ab9b9eab
VZ
11925#include "confdefs.h"
11926/* Override any gcc2 internal prototype to avoid an error. */
11927/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
11928 builtin and then its argument prototype would still apply. */
11929char connect();
11930
11931int main() {
11932connect()
11933; return 0; }
11934EOF
4cdb0ab0 11935if { (eval echo configure:11936: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
11936 rm -rf conftest*
11937 eval "ac_cv_lib_$ac_lib_var=yes"
11938else
11939 echo "configure: failed program was:" >&5
11940 cat conftest.$ac_ext >&5
11941 rm -rf conftest*
11942 eval "ac_cv_lib_$ac_lib_var=no"
11943fi
11944rm -f conftest*
11945LIBS="$ac_save_LIBS"
11946
11947fi
11948if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11949 echo "$ac_t""yes" 1>&6
ab9b9eab 11950 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
698dcdb6
VZ
11951else
11952 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
11953fi
11954
11955 fi
11956
698dcdb6
VZ
11957 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
11958 echo $ac_n "checking for remove""... $ac_c" 1>&6
4cdb0ab0 11959echo "configure:11960: checking for remove" >&5
698dcdb6
VZ
11960if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
11961 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 11962else
698dcdb6 11963 cat > conftest.$ac_ext <<EOF
4cdb0ab0 11964#line 11965 "configure"
ab9b9eab
VZ
11965#include "confdefs.h"
11966/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 11967 which can conflict with char remove(); below. */
ab9b9eab
VZ
11968#include <assert.h>
11969/* Override any gcc2 internal prototype to avoid an error. */
11970/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
11971 builtin and then its argument prototype would still apply. */
11972char remove();
11973
11974int main() {
ab9b9eab
VZ
11975
11976/* The GNU C library defines this for functions which it implements
11977 to always fail with ENOSYS. Some functions are actually named
11978 something starting with __ and the normal name is an alias. */
11979#if defined (__stub_remove) || defined (__stub___remove)
11980choke me
11981#else
698dcdb6 11982remove();
ab9b9eab
VZ
11983#endif
11984
698dcdb6
VZ
11985; return 0; }
11986EOF
4cdb0ab0 11987if { (eval echo configure:11988: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
11988 rm -rf conftest*
11989 eval "ac_cv_func_remove=yes"
11990else
11991 echo "configure: failed program was:" >&5
11992 cat conftest.$ac_ext >&5
11993 rm -rf conftest*
11994 eval "ac_cv_func_remove=no"
11995fi
11996rm -f conftest*
11997fi
11998
11999if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
12000 echo "$ac_t""yes" 1>&6
12001 :
12002else
12003 echo "$ac_t""no" 1>&6
12004fi
ab9b9eab
VZ
12005
12006 if test $ac_cv_func_remove = no; then
698dcdb6 12007 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
4cdb0ab0 12008echo "configure:12009: checking for remove in -lposix" >&5
698dcdb6
VZ
12009ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
12010if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12011 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 12012else
698dcdb6 12013 ac_save_LIBS="$LIBS"
ab9b9eab 12014LIBS="-lposix $LIBS"
698dcdb6 12015cat > conftest.$ac_ext <<EOF
4cdb0ab0 12016#line 12017 "configure"
ab9b9eab
VZ
12017#include "confdefs.h"
12018/* Override any gcc2 internal prototype to avoid an error. */
12019/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
12020 builtin and then its argument prototype would still apply. */
12021char remove();
12022
12023int main() {
12024remove()
12025; return 0; }
12026EOF
4cdb0ab0 12027if { (eval echo configure:12028: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
12028 rm -rf conftest*
12029 eval "ac_cv_lib_$ac_lib_var=yes"
12030else
12031 echo "configure: failed program was:" >&5
12032 cat conftest.$ac_ext >&5
12033 rm -rf conftest*
12034 eval "ac_cv_lib_$ac_lib_var=no"
12035fi
12036rm -f conftest*
12037LIBS="$ac_save_LIBS"
12038
12039fi
12040if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12041 echo "$ac_t""yes" 1>&6
ab9b9eab 12042 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
698dcdb6
VZ
12043else
12044 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
12045fi
12046
12047 fi
12048
12049 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
698dcdb6 12050 echo $ac_n "checking for shmat""... $ac_c" 1>&6
4cdb0ab0 12051echo "configure:12052: checking for shmat" >&5
698dcdb6
VZ
12052if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
12053 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 12054else
698dcdb6 12055 cat > conftest.$ac_ext <<EOF
4cdb0ab0 12056#line 12057 "configure"
ab9b9eab
VZ
12057#include "confdefs.h"
12058/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 12059 which can conflict with char shmat(); below. */
ab9b9eab
VZ
12060#include <assert.h>
12061/* Override any gcc2 internal prototype to avoid an error. */
12062/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
12063 builtin and then its argument prototype would still apply. */
12064char shmat();
12065
12066int main() {
ab9b9eab
VZ
12067
12068/* The GNU C library defines this for functions which it implements
12069 to always fail with ENOSYS. Some functions are actually named
12070 something starting with __ and the normal name is an alias. */
12071#if defined (__stub_shmat) || defined (__stub___shmat)
12072choke me
12073#else
698dcdb6 12074shmat();
ab9b9eab
VZ
12075#endif
12076
698dcdb6
VZ
12077; return 0; }
12078EOF
4cdb0ab0 12079if { (eval echo configure:12080: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
12080 rm -rf conftest*
12081 eval "ac_cv_func_shmat=yes"
12082else
12083 echo "configure: failed program was:" >&5
12084 cat conftest.$ac_ext >&5
12085 rm -rf conftest*
12086 eval "ac_cv_func_shmat=no"
12087fi
12088rm -f conftest*
12089fi
12090
12091if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
12092 echo "$ac_t""yes" 1>&6
12093 :
12094else
12095 echo "$ac_t""no" 1>&6
12096fi
ab9b9eab
VZ
12097
12098 if test $ac_cv_func_shmat = no; then
698dcdb6 12099 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
4cdb0ab0 12100echo "configure:12101: checking for shmat in -lipc" >&5
698dcdb6
VZ
12101ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
12102if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12103 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 12104else
698dcdb6 12105 ac_save_LIBS="$LIBS"
ab9b9eab 12106LIBS="-lipc $LIBS"
698dcdb6 12107cat > conftest.$ac_ext <<EOF
4cdb0ab0 12108#line 12109 "configure"
ab9b9eab
VZ
12109#include "confdefs.h"
12110/* Override any gcc2 internal prototype to avoid an error. */
12111/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
12112 builtin and then its argument prototype would still apply. */
12113char shmat();
12114
12115int main() {
12116shmat()
12117; return 0; }
12118EOF
4cdb0ab0 12119if { (eval echo configure:12120: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
12120 rm -rf conftest*
12121 eval "ac_cv_lib_$ac_lib_var=yes"
12122else
12123 echo "configure: failed program was:" >&5
12124 cat conftest.$ac_ext >&5
12125 rm -rf conftest*
12126 eval "ac_cv_lib_$ac_lib_var=no"
12127fi
12128rm -f conftest*
12129LIBS="$ac_save_LIBS"
12130
12131fi
12132if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12133 echo "$ac_t""yes" 1>&6
ab9b9eab 12134 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
698dcdb6
VZ
12135else
12136 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
12137fi
12138
12139 fi
12140 fi
12141
12142 # Check for libraries that X11R6 Xt/Xaw programs need.
698dcdb6 12143 ac_save_LDFLAGS="$LDFLAGS"
ab9b9eab
VZ
12144 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
12145 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
12146 # check for ICE first), but we must link in the order -lSM -lICE or
12147 # we get undefined symbols. So assume we have SM if we have ICE.
12148 # These have to be linked with before -lX11, unlike the other
12149 # libraries we check for below, so use a different variable.
698dcdb6
VZ
12150 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
12151 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
4cdb0ab0 12152echo "configure:12153: checking for IceConnectionNumber in -lICE" >&5
698dcdb6
VZ
12153ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
12154if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12155 echo $ac_n "(cached) $ac_c" 1>&6
12156else
12157 ac_save_LIBS="$LIBS"
ab9b9eab 12158LIBS="-lICE $X_EXTRA_LIBS $LIBS"
698dcdb6 12159cat > conftest.$ac_ext <<EOF
4cdb0ab0 12160#line 12161 "configure"
ab9b9eab
VZ
12161#include "confdefs.h"
12162/* Override any gcc2 internal prototype to avoid an error. */
12163/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
12164 builtin and then its argument prototype would still apply. */
12165char IceConnectionNumber();
12166
12167int main() {
12168IceConnectionNumber()
12169; return 0; }
12170EOF
4cdb0ab0 12171if { (eval echo configure:12172: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
12172 rm -rf conftest*
12173 eval "ac_cv_lib_$ac_lib_var=yes"
12174else
12175 echo "configure: failed program was:" >&5
12176 cat conftest.$ac_ext >&5
12177 rm -rf conftest*
12178 eval "ac_cv_lib_$ac_lib_var=no"
12179fi
12180rm -f conftest*
12181LIBS="$ac_save_LIBS"
12182
12183fi
12184if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12185 echo "$ac_t""yes" 1>&6
ab9b9eab 12186 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
698dcdb6
VZ
12187else
12188 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
12189fi
12190
698dcdb6 12191 LDFLAGS="$ac_save_LDFLAGS"
ab9b9eab
VZ
12192
12193fi
12194
12195
1e6feb95
VZ
12196 if test "$no_x" = "yes"; then
12197 { echo "configure: error: X11 not found" 1>&2; exit 1; }
12198 fi
ab9b9eab 12199
1e6feb95
VZ
12200 GUI_TK_LIBRARY="$X_LIBS"
12201 TOOLKIT_INCLUDE="$X_CFLAGS"
1e6feb95 12202 AFMINSTALL=afminstall
1e6feb95 12203 COMPILED_X_PROGRAM=0
cd6d6d5b 12204
1e6feb95 12205 echo $ac_n "checking for Motif/Lesstif headers""... $ac_c" 1>&6
4cdb0ab0 12206echo "configure:12207: checking for Motif/Lesstif headers" >&5
1e6feb95 12207
ab9b9eab
VZ
12208ac_find_includes=
12209for ac_dir in $SEARCH_INCLUDE;
12210 do
12211 if test -f "$ac_dir/Xm/Xm.h"; then
12212 ac_find_includes=$ac_dir
12213 break
12214 fi
12215 done
12216
1e6feb95
VZ
12217 if test "$ac_find_includes" != "" ; then
12218 echo "$ac_t""found $ac_find_includes" 1>&6
12219 else
12220 cat > conftest.$ac_ext <<EOF
4cdb0ab0 12221#line 12222 "configure"
cd6d6d5b
VZ
12222#include "confdefs.h"
12223
1e6feb95
VZ
12224 #include <Xm/Xm.h>
12225
698dcdb6 12226int main() {
cd6d6d5b 12227
1e6feb95 12228 int version;
1e6feb95
VZ
12229 version = xmUseVersion;
12230
698dcdb6
VZ
12231; return 0; }
12232EOF
4cdb0ab0 12233if { (eval echo configure:12234: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
12234 rm -rf conftest*
12235
1e6feb95
VZ
12236 echo "$ac_t""found in default search path" 1>&6
12237 COMPILED_X_PROGRAM=1
12238
cd6d6d5b 12239else
698dcdb6
VZ
12240 echo "configure: failed program was:" >&5
12241 cat conftest.$ac_ext >&5
12242 rm -rf conftest*
12243
1e6feb95
VZ
12244 echo "$ac_t""no" 1>&6
12245 { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; }
12246
698dcdb6 12247
cd6d6d5b 12248fi
698dcdb6 12249rm -f conftest*
1e6feb95 12250 fi
ab9b9eab 12251
1e6feb95
VZ
12252 if test "$COMPILED_X_PROGRAM" = 0; then
12253 echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6
4cdb0ab0 12254echo "configure:12255: checking for Motif/Lesstif library" >&5
1e6feb95 12255
ab9b9eab
VZ
12256ac_find_libraries=
12257for ac_dir in $SEARCH_LIB;
12258 do
f11bdd03 12259 for ac_extension in a so sl dylib; do
ab9b9eab
VZ
12260 if test -f "$ac_dir/libXm.$ac_extension"; then
12261 ac_find_libraries=$ac_dir
12262 break 2
12263 fi
12264 done
12265 done
12266
1e6feb95
VZ
12267 if test "$ac_find_libraries" != "" ; then
12268
ab9b9eab
VZ
12269 ac_path_to_include=$ac_find_includes
12270 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
12271 result=$?
12272 if test $result = 0; then
12273 ac_path_to_include=""
12274 else
62d0491b 12275 ac_path_to_include=" -I$ac_find_includes"
ab9b9eab
VZ
12276 fi
12277
1e6feb95 12278
ab9b9eab
VZ
12279 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
12280 result=$?
12281 if test $result = 0; then
12282 ac_path_to_link=""
12283 else
62d0491b 12284 ac_path_to_link=" -L$ac_find_libraries"
ab9b9eab
VZ
12285 fi
12286
698dcdb6 12287
62d0491b
RL
12288 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
12289 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
1e6feb95
VZ
12290 echo "$ac_t""found at $ac_find_libraries" 1>&6
12291 else
12292 cat > conftest.$ac_ext <<EOF
4cdb0ab0 12293#line 12294 "configure"
cd6d6d5b 12294#include "confdefs.h"
ab9b9eab 12295
1e6feb95
VZ
12296 #include <Xm/Xm.h>
12297
698dcdb6 12298int main() {
ab9b9eab 12299
1e6feb95 12300 int version;
1e6feb95
VZ
12301 version = xmUseVersion;
12302
698dcdb6
VZ
12303; return 0; }
12304EOF
4cdb0ab0 12305if { (eval echo configure:12306: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
12306 rm -rf conftest*
12307
1e6feb95
VZ
12308 echo "$ac_t""found in default search path" 1>&6
12309 COMPILED_X_PROGRAM=1
12310
cd6d6d5b 12311else
698dcdb6
VZ
12312 echo "configure: failed program was:" >&5
12313 cat conftest.$ac_ext >&5
12314 rm -rf conftest*
12315
1e6feb95
VZ
12316 echo "$ac_t""no" 1>&6
12317 { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; }
12318
698dcdb6 12319
cd6d6d5b 12320fi
698dcdb6 12321rm -f conftest*
1e6feb95 12322 fi
cd6d6d5b 12323 fi
ab9b9eab 12324
3d63bc3a 12325 xpm_link=
1e6feb95 12326 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
4cdb0ab0 12327echo "configure:12328: checking for Xpm library" >&5
1e6feb95 12328
ab9b9eab
VZ
12329ac_find_libraries=
12330for ac_dir in $SEARCH_LIB;
12331 do
f11bdd03 12332 for ac_extension in a so sl dylib; do
ab9b9eab
VZ
12333 if test -f "$ac_dir/libXpm.$ac_extension"; then
12334 ac_find_libraries=$ac_dir
12335 break 2
12336 fi
12337 done
12338 done
12339
1e6feb95
VZ
12340 if test "$ac_find_libraries" != "" ; then
12341
ab9b9eab
VZ
12342 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
12343 result=$?
12344 if test $result = 0; then
12345 ac_path_to_link=""
12346 else
62d0491b 12347 ac_path_to_link=" -L$ac_find_libraries"
ab9b9eab
VZ
12348 fi
12349
62d0491b 12350 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
3d63bc3a 12351 xpm_link=" -lXpm"
1e6feb95 12352 cat >> confdefs.h <<\EOF
ab9b9eab
VZ
12353#define wxHAVE_LIB_XPM 1
12354EOF
12355
1e6feb95
VZ
12356 echo "$ac_t""found at $ac_find_libraries" 1>&6
12357 else
12358 cat > conftest.$ac_ext <<EOF
4cdb0ab0 12359#line 12360 "configure"
cd6d6d5b
VZ
12360#include "confdefs.h"
12361
1e6feb95
VZ
12362 #include <X11/xpm.h>
12363
698dcdb6 12364int main() {
cd6d6d5b 12365
1e6feb95 12366 int version;
1e6feb95
VZ
12367 version = XpmLibraryVersion();
12368
698dcdb6
VZ
12369; return 0; }
12370EOF
4cdb0ab0 12371if { (eval echo configure:12372: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
12372 rm -rf conftest*
12373
3d63bc3a 12374 xpm_link=" -lXpm"
3a922bb4 12375 cat >> confdefs.h <<\EOF
3ace2e6d
SN
12376#define wxHAVE_LIB_XPM 1
12377EOF
12378
1e6feb95
VZ
12379 echo "$ac_t""found in default search path" 1>&6
12380 COMPILED_X_PROGRAM=0
12381
cd6d6d5b 12382else
698dcdb6
VZ
12383 echo "configure: failed program was:" >&5
12384 cat conftest.$ac_ext >&5
12385 rm -rf conftest*
12386
1e6feb95
VZ
12387 echo "$ac_t""no" 1>&6
12388 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
12389
698dcdb6 12390
cd6d6d5b 12391fi
698dcdb6 12392rm -f conftest*
1e6feb95
VZ
12393 fi
12394
3d63bc3a 12395 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm$xpm_link -lXmu -lXext -lXt -lX11"
334f0d2c 12396 TOOLKIT_VPATH="\${top_srcdir}/src/motif${PATH_IFS}\${top_srcdir}/src/motif/xmcombo"
1e6feb95
VZ
12397 TOOLKIT=MOTIF
12398 GUIDIST=MOTIF_DIST
ab9b9eab
VZ
12399 fi
12400
683dccda
GD
12401 if test "$wxUSE_MAC" = 1; then
12402 if test "$wxUSE_PRECOMP" = "yes"; then
3d63bc3a 12403 CPPFLAGS="$CPPFLAGS -cpp-precomp"
683dccda 12404 fi
3d63bc3a
RL
12405 CPPFLAGS="$CPPFLAGS -I/Developer/Headers/FlatCarbon -I\${top_srcdir}/src/mac/morefile"
12406 CFLAGS="$CFLAGS -fpascal-strings"
12407 CXXFLAGS="$CXXFLAGS -fpascal-strings"
12408 TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -DTARGET_CARBON"
d08b457b 12409
13c0541d 12410 TOOLKIT_VPATH="\${top_srcdir}/src/mac${PATH_IFS}\${top_srcdir}/src/mac/morefile"
1e6feb95 12411 TOOLKIT=MAC
683dccda 12412 GUIDIST=MACX_DIST
1e6feb95 12413 fi
10f2d63a 12414
1e6feb95
VZ
12415 if test "$wxUSE_PM" = 1; then
12416 TOOLKIT=PM
12417 GUIDIST=GTK_DIST
12418 fi
b4085ce6 12419
3a922bb4 12420 if test "$TOOLKIT" = "PM" ; then
1e6feb95 12421 TOOLKIT_DIR="os2"
3a922bb4
RL
12422 else
12423 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
1e6feb95 12424 fi
e07802fc 12425
3a922bb4 12426 PORT_FILES="\${top_srcdir}/src/\$(TOOLKITDIR)/files.lst"
1e6feb95 12427
3a922bb4
RL
12428 if test "$wxUSE_UNIVERSAL" = "yes"; then
12429 ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}"
12430 PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst"
12431 TOOLKIT_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes${PATH_IFS}\${top_srcdir}/src/${TOOLKIT_DIR}"
12432 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
12433 WIDGET_SET=univ
f6bcfd97 12434 else
3a922bb4 12435 ALL_OBJECTS="\$(GUIOBJS)"
1e6feb95
VZ
12436 fi
12437
ba0e650c 12438 ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)"
1e6feb95 12439
f9bc1684 12440 if test "$TOOLKIT" != "MSW" -a "$USE_DOS" != 1; then
1e6feb95
VZ
12441 ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)"
12442 fi
12443
12444 if test "$wxUSE_HTML" = "yes"; then
12445 ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)"
12446 fi
3fcdd07b 12447
3a922bb4
RL
12448 if test "$TOOLKIT" != "MSW" -a "$wxUSE_ODBC" = "yes" ; then
12449 ALL_OBJECTS="${ALL_OBJECTS} \$(IODBCOBJS)"
831b3152 12450 fi
4f14bcd8 12451 if test "$wxUSE_LIBJPEG" = "builtin" ; then
2224580a 12452 ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)"
d9d8273d 12453 fi
4f14bcd8 12454 if test "$wxUSE_LIBTIFF" = "builtin" ; then
d9d8273d
RR
12455 ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)"
12456 fi
4f14bcd8 12457 if test "$wxUSE_LIBPNG" = "builtin" ; then
d9d8273d
RR
12458 ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)"
12459 fi
4f14bcd8 12460 if test "$wxUSE_FREETYPE" = "builtin" ; then
3fed1840
RR
12461 ALL_OBJECTS="${ALL_OBJECTS} \$(FREETYPEOBJS)"
12462 fi
2224580a 12463
2224580a
VZ
12464 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
12465 DISTDIR="wx\$(TOOLKIT)"
10f2d63a 12466else
dad6c0ea
VZ
12467 USE_GUI=0
12468
3a922bb4 12469 TOOLKIT_DIR="base"
f6bcfd97 12470
3a922bb4
RL
12471 if test "$USE_WIN32" = 1 ; then
12472 ALL_OBJECTS="\${BASE_OBJS} \${BASE_MSW_OBJS}"
12473 TOOLKIT_VPATH="\${top_srcdir}/src/msw"
0b2effe9 12474
3a922bb4 12475 TOOLKIT="MSW"
f6bcfd97 12476 else
3a922bb4
RL
12477 ALL_OBJECTS="\${BASE_OBJS} \${BASE_UNIX_OBJS}"
12478 TOOLKIT_VPATH="\${top_srcdir}/src/unix"
f6bcfd97
BP
12479 fi
12480
831b3152 12481 PORT_FILES="\${top_srcdir}/src/files.lst"
2224580a
VZ
12482
12483 GUIDIST="BASE_DIST"
12484 DISTDIR="wxBase"
10f2d63a
VZ
12485fi
12486
4f14bcd8 12487if test "$wxUSE_REGEX" = "builtin" ; then
3a922bb4
RL
12488 ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)"
12489fi
4f14bcd8 12490if test "$wxUSE_ZLIB" = "builtin" ; then
3a922bb4
RL
12491 ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
12492fi
10f2d63a 12493
3a922bb4 12494if test "$wxUSE_OPENGL" = "yes"; then
62d0491b
RL
12495 if test "$wxUSE_MAC" = 1; then
12496 OPENGL_LIBS="-framework OpenGL -framework AGL"
12497 else
570cb8cb 12498
62d0491b 12499 ac_safe=`echo "GL/gl.h" | sed 'y%./+-%__p_%'`
3a922bb4 12500echo $ac_n "checking for GL/gl.h""... $ac_c" 1>&6
4cdb0ab0 12501echo "configure:12502: checking for GL/gl.h" >&5
3a922bb4
RL
12502if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12503 echo $ac_n "(cached) $ac_c" 1>&6
12504else
12505 cat > conftest.$ac_ext <<EOF
4cdb0ab0 12506#line 12507 "configure"
3a922bb4
RL
12507#include "confdefs.h"
12508#include <GL/gl.h>
12509EOF
12510ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4cdb0ab0 12511{ (eval echo configure:12512: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3a922bb4
RL
12512ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12513if test -z "$ac_err"; then
12514 rm -rf conftest*
12515 eval "ac_cv_header_$ac_safe=yes"
12516else
12517 echo "$ac_err" >&5
12518 echo "configure: failed program was:" >&5
12519 cat conftest.$ac_ext >&5
12520 rm -rf conftest*
12521 eval "ac_cv_header_$ac_safe=no"
12522fi
12523rm -f conftest*
12524fi
12525if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12526 echo "$ac_t""yes" 1>&6
12527
1352efdf 12528 echo $ac_n "checking for -lGL""... $ac_c" 1>&6
4cdb0ab0 12529echo "configure:12530: checking for -lGL" >&5
57964555 12530
62d0491b
RL
12531ac_find_libraries=
12532for ac_dir in $SEARCH_LIB;
12533 do
12534 for ac_extension in a so sl dylib; do
12535 if test -f "$ac_dir/libGL.$ac_extension"; then
12536 ac_find_libraries=$ac_dir
12537 break 2
12538 fi
12539 done
12540 done
3a922bb4 12541
62d0491b
RL
12542 if test "$ac_find_libraries" != "" ; then
12543
12544 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
12545 result=$?
12546 if test $result = 0; then
12547 ac_path_to_link=""
12548 else
12549 ac_path_to_link=" -L$ac_find_libraries"
12550 fi
3a922bb4 12551
62d0491b
RL
12552 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
12553 OPENGL_LIBS="-lGL -lGLU"
1352efdf 12554 echo "$ac_t""yes" 1>&6
62d0491b 12555 else
1352efdf
RL
12556 echo "$ac_t""no" 1>&6
12557 echo $ac_n "checking for -lMesaGL""... $ac_c" 1>&6
4cdb0ab0 12558echo "configure:12559: checking for -lMesaGL" >&5
62d0491b
RL
12559
12560ac_find_libraries=
12561for ac_dir in $SEARCH_LIB;
12562 do
12563 for ac_extension in a so sl dylib; do
12564 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
12565 ac_find_libraries=$ac_dir
12566 break 2
12567 fi
12568 done
12569 done
3a922bb4 12570
62d0491b 12571 if test "$ac_find_libraries" != "" ; then
57964555 12572
62d0491b
RL
12573 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
12574 result=$?
12575 if test $result = 0; then
12576 ac_path_to_link=""
12577 else
12578 ac_path_to_link=" -L$ac_find_libraries"
12579 fi
3a922bb4 12580
62d0491b
RL
12581 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
12582 OPENGL_LIBS="-lMesaGL -lMesaGLU"
1352efdf
RL
12583 echo "$ac_t""yes" 1>&6
12584 else
12585 echo "$ac_t""no" 1>&6
62d0491b
RL
12586 fi
12587 fi
12588
3a922bb4
RL
12589else
12590 echo "$ac_t""no" 1>&6
3a922bb4
RL
12591fi
12592
6f754473 12593
62d0491b
RL
12594
12595# AC_CHECK_HEADER(GL/gl.h,
12596# [
12597# AC_CHECK_LIB(GL, glFlush,
12598# [
12599# OPENGL_LIBS="-lGL -lGLU"
12600# ],
12601# [
12602# AC_CHECK_LIB(MesaGL, glFlush,
12603# [
12604# OPENGL_LIBS="-lMesaGL -lMesaGLU"
12605# ],
12606# [],
12607# [-lm])
12608# ],
12609# [-lm])
12610# ])
12611
12612 if test "x$OPENGL_LIBS" = "x"; then
12613 { echo "configure: error: OpenGL libraries not available" 1>&2; exit 1; }
12614 fi
6f754473 12615 fi
6f754473 12616
62d0491b
RL
12617 if test "$wxUSE_OPENGL" = "yes"; then
12618 cat >> confdefs.h <<\EOF
6f754473
VZ
12619#define wxUSE_OPENGL 1
12620EOF
12621
62d0491b 12622 cat >> confdefs.h <<\EOF
6f754473
VZ
12623#define wxUSE_GLCANVAS 1
12624EOF
12625
62d0491b
RL
12626 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl"
12627 fi
3a922bb4
RL
12628fi
12629
12630if test -z "$TOOLKIT_VPATH" ; then
12631 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}"
12632fi
12633
12634if test -n "$TOOLKIT" ; then
12635 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
12636fi
12637
f676c7ff
MB
12638lib_unicode_suffix=
12639if test "$wxUSE_UNICODE" = "yes"; then
12640 lib_unicode_suffix=u
12641fi
12642
3a922bb4
RL
12643lib_debug_suffix=
12644if test "$wxUSE_DEBUG_FLAG" = "yes"; then
12645 lib_debug_suffix=d
3a922bb4
RL
12646fi
12647
f676c7ff
MB
12648TOOLCHAIN_NAME="${TOOLKIT_DIR}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}-${WX_RELEASE}"
12649TOOLCHAIN_NAME_GL="${TOOLKIT_DIR}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_gl-${WX_RELEASE}"
3a922bb4
RL
12650
12651if test "$cross_compiling" = "yes"; then
12652 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}-${host_alias}"
12653 TOOLCHAIN_NAME_GL="${TOOLCHAIN_NAME_GL}-${host_alias}"
12654fi
12655
12656WX_LIBRARY="wx_${TOOLCHAIN_NAME}"
12657WX_LIBRARY_GL="wx_${TOOLCHAIN_NAME_GL}"
12658
3a922bb4
RL
12659WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
12660WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
12661
12662WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}"
12663WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
12664WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}"
12665WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
12666
d08b457b 12667WX_RESOURCES_MACOSX="lib${WX_LIBRARY}.rsrc"
e23081de 12668WX_RESOURCES_MACOSX_COMPILED="lib${WX_LIBRARY}.r"
3a922bb4 12669
978f1259
RL
12670case "${host}" in
12671 *-*-cygwin* | *-*-mingw32* )
12672
2da4f892 12673
978f1259
RL
12674
12675 if test "$cross_compiling" != "yes"; then
12676 WX_LIBRARY="wxmsw${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}"
12677 WX_LIBRARY_GL="wxmsw_gl${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}"
12678 WX_LIBRARY_NAME_SHARED="${WX_LIBRARY}.${SO_SUFFIX}"
12679 WX_LIBRARY_NAME_SHARED_GL="${WX_LIBRARY_GL}.${SO_SUFFIX}"
2da4f892
RL
12680 else
12681 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}"
12682 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
978f1259
RL
12683 fi
12684
12685esac
12686
12687WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a"
12688WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY_GL}.a"
12689
12690WXCONFIG_LIBS="-l${WX_LIBRARY}"
885d4bf5 12691WXCONFIG_LIBS_STATIC="lib${WX_LIBRARY}.a"
978f1259
RL
12692
12693if test "$wxUSE_OPENGL" = "yes"; then
885d4bf5
VS
12694 WXCONFIG_LIBS_GL="-l${WX_LIBRARY_GL} ${OPENGL_LIBS}"
12695 WXCONFIG_LIBS_STATIC_GL="lib${WX_LIBRARY_GL}.a ${OPENGL_LIBS}"
978f1259
RL
12696fi
12697
12698
3a922bb4
RL
12699
12700if test "$wxUSE_SHARED" = "yes"; then
55e80573
VZ
12701
12702 if test "$wxUSE_OPENGL" = "yes"; then
12703 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
3a922bb4 12704 WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1} \$(build_libdir)/${WX_LIBRARY_LINK1_GL}"
55e80573
VZ
12705 else
12706 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
3a922bb4 12707 WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1}"
55e80573
VZ
12708 fi
12709
dd4f7467 12710 if test "$GCC" = "yes"; then
55e80573 12711 PIC_FLAG="-fPIC"
dd4f7467 12712 fi
55e80573
VZ
12713
12714 SHARED_LD="${CXX} -shared -o"
698dcdb6 12715
10f2d63a
VZ
12716 case "${host}" in
12717 *-hp-hpux* )
55e80573 12718 if test "$GCC" != "yes"; then
3d63bc3a 12719 LDFLAGS="$LDFLAGS -L/usr/lib"
f6bcfd97 12720
10f2d63a
VZ
12721 SHARED_LD="${CXX} -b -o"
12722 PIC_FLAG="+Z"
12723 fi
55e80573 12724
7b7a7637
RL
12725 if test "$wxUSE_OPENGL" = "yes"; then
12726 WX_ALL_INSTALLED="preinstall_gl"
12727 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}"
12728 else
12729 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}"
12730 fi
10f2d63a 12731 ;;
b12915c1 12732
55e80573
VZ
12733 *-*-linux* )
12734 if test "$GCC" != "yes"; then
12735 echo $ac_n "checking for Intel compiler""... $ac_c" 1>&6
4cdb0ab0 12736echo "configure:12737: checking for Intel compiler" >&5
55e80573
VZ
12737if eval "test \"`echo '$''{'wx_cv_prog_icc'+set}'`\" = set"; then
12738 echo $ac_n "(cached) $ac_c" 1>&6
12739else
12740
12741 cat > conftest.$ac_ext <<EOF
4cdb0ab0 12742#line 12743 "configure"
55e80573
VZ
12743#include "confdefs.h"
12744
12745int main() {
12746
12747 #ifndef __INTEL_COMPILER
dd4f7467 12748 #error Not icc
55e80573
VZ
12749 #endif
12750
12751; return 0; }
12752EOF
4cdb0ab0 12753if { (eval echo configure:12754: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
55e80573
VZ
12754 rm -rf conftest*
12755 wx_cv_prog_icc=yes
12756else
12757 echo "configure: failed program was:" >&5
12758 cat conftest.$ac_ext >&5
12759 rm -rf conftest*
12760 wx_cv_prog_icc=no
12761
12762fi
12763rm -f conftest*
12764
12765fi
12766
12767echo "$ac_t""$wx_cv_prog_icc" 1>&6
55e80573
VZ
12768 if test "$wx_cv_prog_icc" = "yes"; then
12769 PIC_FLAG="-KPIC"
12770 fi
12771 fi
12772
3a922bb4
RL
12773 if test "$wxUSE_SONAME" = "yes" ; then
12774 SONAME_FLAGS="-Wl,-soname,${WX_LIBRARY_LINK1}"
12775 SONAME_FLAGS_GL="-Wl,-soname,${WX_LIBRARY_LINK1_GL}"
f6bcfd97 12776 WX_TARGET_LIBRARY_SONAME="-Wl,-soname,\$(TARGETLIB_LINK1)"
00cf1208 12777 fi
10f2d63a 12778 ;;
55e80573 12779
10f2d63a
VZ
12780 *-*-solaris2* )
12781 if test "$GCC" = yes ; then
f6bcfd97 12782 CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
10f2d63a
VZ
12783 else
12784 SHARED_LD="${CXX} -G -o"
12785 PIC_FLAG="-KPIC"
7b7a7637
RL
12786 SONAME_FLAGS="-h ${WX_LIBRARY_NAME_SHARED}"
12787 SONAME_FLAGS_GL="-h ${WX_LIBRARY_NAME_SHARED}"
10f2d63a 12788 fi
10f2d63a 12789 ;;
55e80573 12790
b4085ce6 12791 *-*-darwin* )
156b2523
GD
12792 CFLAGS="$CFLAGS -fno-common -DDYLIB_INIT"
12793 CXXFLAGS="$CXXFLAGS -fno-common -DDYLIB_INIT"
12794 SHARED_LD="$CXX -dynamiclib -init _wxWindowsDylibInit -o"
ea5999b9 12795 PIC_FLAG="-dynamic -fPIC"
10f2d63a 12796 ;;
55e80573 12797
10f2d63a
VZ
12798 *-*-aix* )
12799 SHARED_LD="/usr/lpp/xlC/bin/makeC++SharedLib -p 0 -o"
10f2d63a 12800 ;;
55e80573 12801
7b7a7637 12802 *-*-cygwin* | *-*-mingw32* )
77e13408 12803
2da4f892 12804 WX_LIBRARY_IMPORTLIB="${WX_LIBRARY_NAME_SHARED}.a"
77e13408 12805
77e13408 12806 SHARED_LD="${CXX} -shared -Wl,--out-implib,lib/${WX_LIBRARY_IMPORTLIB} -o"
00c81359 12807 TOOLCHAIN_DLL_DEFS="${TOOLCHAIN_DLL_DEFS} -DWXUSINGDLL=1"
25d0687a
RL
12808
12809 PIC_FLAG="-UWXUSINGDLL -DWXMAKINGDLL=1 -D_DLL=1 -D_WINDLL=1"
7b7a7637
RL
12810
12811 if test "$wxUSE_OPENGL" = "yes"; then
f6bcfd97 12812 WX_ALL_INSTALLED="preinstall_gl"
978f1259 12813 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}"
f6bcfd97 12814 else
978f1259 12815 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}"
f6bcfd97 12816 fi
10f2d63a 12817 ;;
55e80573 12818
6fa882bd 12819 *-pc-os2_emx | *-pc-os2-emx )
7b7a7637 12820 wxUSE_SHARED=no
10f2d63a 12821 ;;
55e80573 12822
b12915c1 12823 *-*-beos* )
e2b8b066 12824 SHARED_LD="${LD} -shared -o"
b12915c1 12825 ;;
55e80573
VZ
12826
12827 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
12828 *-*-sunos4* | \
12829 *-*-irix5* | *-*-irix6* | \
12830 *-*-osf* | \
12831 *-*-dgux5* | \
12832 *-*-sysv5* )
12833 ;;
12834
10f2d63a 12835 *)
7b7a7637 12836 { echo "configure: error: unknown system type $host." 1>&2; exit 1; }
10f2d63a
VZ
12837 esac
12838
12839 if test "x$WX_TARGET_LIBRARY" = "x"; then
12840 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
bdad4e7e 12841 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}"
10f2d63a 12842 fi
55e80573 12843
3711412e 12844 WX_TARGET_LIBRARY_TYPE="so"
885d4bf5 12845 INSTALL_LIBRARY='$(INSTALL_PROGRAM)'
3a922bb4 12846fi
f6bcfd97 12847
3a922bb4 12848if test "$wxUSE_SHARED" = "no"; then
f6bcfd97 12849
3a922bb4 12850 if test "$wxUSE_GUI" = "no" -o "$USE_WIN32" = 1 ; then
f6bcfd97
BP
12851 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
12852 fi
12853
6fa882bd
RR
12854 if test "$wxUSE_MAC" = 1; then
12855 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
12856 fi
12857
3a922bb4
RL
12858 if test "$wxUSE_OPENGL" = "yes"; then
12859 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_gl"
12860 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC} \$(build_libdir)/${WX_LIBRARY_NAME_STATIC_GL}"
12861 else
12862 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC}"
12863 fi
698dcdb6 12864
3a922bb4
RL
12865 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
12866 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
12867
12868 WX_TARGET_LIBRARY_TYPE="a"
885d4bf5 12869 INSTALL_LIBRARY='$(INSTALL_DATA)'
10f2d63a 12870fi
10f2d63a 12871
d08b457b
GD
12872if test "$wxUSE_MAC" = 1; then
12873 WX_ALL="${WX_ALL} \$(build_libdir)/lib${WX_LIBRARY}.r"
e23081de 12874 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_res"
d08b457b
GD
12875 # Extract the first word of "Rez", so it can be a program name with args.
12876set dummy Rez; ac_word=$2
12877echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4cdb0ab0 12878echo "configure:12879: checking for $ac_word" >&5
d08b457b
GD
12879if eval "test \"`echo '$''{'ac_cv_prog_RESCOMP'+set}'`\" = set"; then
12880 echo $ac_n "(cached) $ac_c" 1>&6
12881else
12882 if test -n "$RESCOMP"; then
12883 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
12884else
12885 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
12886 ac_dummy="$PATH"
12887 for ac_dir in $ac_dummy; do
12888 test -z "$ac_dir" && ac_dir=.
12889 if test -f $ac_dir/$ac_word; then
12890 ac_cv_prog_RESCOMP="Rez"
12891 break
12892 fi
12893 done
12894 IFS="$ac_save_ifs"
12895 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
12896fi
12897fi
12898RESCOMP="$ac_cv_prog_RESCOMP"
12899if test -n "$RESCOMP"; then
12900 echo "$ac_t""$RESCOMP" 1>&6
12901else
12902 echo "$ac_t""no" 1>&6
12903fi
12904
9f8148b1
GD
12905 # Extract the first word of "DeRez", so it can be a program name with args.
12906set dummy DeRez; ac_word=$2
d08b457b 12907echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4cdb0ab0 12908echo "configure:12909: checking for $ac_word" >&5
d08b457b
GD
12909if eval "test \"`echo '$''{'ac_cv_prog_DEREZ'+set}'`\" = set"; then
12910 echo $ac_n "(cached) $ac_c" 1>&6
12911else
12912 if test -n "$DEREZ"; then
12913 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
12914else
12915 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
12916 ac_dummy="$PATH"
12917 for ac_dir in $ac_dummy; do
12918 test -z "$ac_dir" && ac_dir=.
12919 if test -f $ac_dir/$ac_word; then
9f8148b1 12920 ac_cv_prog_DEREZ="DeRez"
d08b457b
GD
12921 break
12922 fi
12923 done
12924 IFS="$ac_save_ifs"
9f8148b1 12925 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
d08b457b
GD
12926fi
12927fi
12928DEREZ="$ac_cv_prog_DEREZ"
12929if test -n "$DEREZ"; then
12930 echo "$ac_t""$DEREZ" 1>&6
12931else
12932 echo "$ac_t""no" 1>&6
12933fi
12934
12935 LIBWXMACRES="\$(top_builddir)/lib/lib${WX_LIBRARY}.r"
12936 LIBWXMACRESCOMP="\$(RESCOMP) Carbon.r -t APPL ${LIBWXMACRES} -o \$(BIN_PROGRAM)"
e23081de 12937 LIBWXMACRESWXCONFIG="${RESCOMP} Carbon.r -t APPL \${prefix}/lib/${WX_RESOURCES_MACOSX_COMPILED} -o"
d08b457b
GD
12938fi
12939
3a922bb4 12940
13c0541d
GD
12941if test "$wxUSE_MAC" != 1; then
12942 for ac_hdr in strings.h
9cfadba2 12943do
698dcdb6
VZ
12944ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12945echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4cdb0ab0 12946echo "configure:12947: checking for $ac_hdr" >&5
698dcdb6
VZ
12947if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12948 echo $ac_n "(cached) $ac_c" 1>&6
12949else
12950 cat > conftest.$ac_ext <<EOF
4cdb0ab0 12951#line 12952 "configure"
9cfadba2 12952#include "confdefs.h"
698dcdb6
VZ
12953#include <$ac_hdr>
12954EOF
12955ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4cdb0ab0 12956{ (eval echo configure:12957: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
12957ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12958if test -z "$ac_err"; then
12959 rm -rf conftest*
12960 eval "ac_cv_header_$ac_safe=yes"
6232543b 12961else
698dcdb6
VZ
12962 echo "$ac_err" >&5
12963 echo "configure: failed program was:" >&5
9cfadba2 12964 cat conftest.$ac_ext >&5
698dcdb6
VZ
12965 rm -rf conftest*
12966 eval "ac_cv_header_$ac_safe=no"
9cfadba2 12967fi
698dcdb6 12968rm -f conftest*
9cfadba2 12969fi
698dcdb6
VZ
12970if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12971 echo "$ac_t""yes" 1>&6
12972 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12973 cat >> confdefs.h <<EOF
12974#define $ac_tr_hdr 1
9cfadba2 12975EOF
698dcdb6
VZ
12976
12977else
12978 echo "$ac_t""no" 1>&6
9cfadba2
VZ
12979fi
12980done
10f2d63a 12981
13c0541d
GD
12982fi
12983
3a922bb4 12984for ac_hdr in stdlib.h
10f2d63a 12985do
698dcdb6
VZ
12986ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12987echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4cdb0ab0 12988echo "configure:12989: checking for $ac_hdr" >&5
698dcdb6
VZ
12989if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12990 echo $ac_n "(cached) $ac_c" 1>&6
12991else
12992 cat > conftest.$ac_ext <<EOF
4cdb0ab0 12993#line 12994 "configure"
10f2d63a 12994#include "confdefs.h"
698dcdb6
VZ
12995#include <$ac_hdr>
12996EOF
12997ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4cdb0ab0 12998{ (eval echo configure:12999: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
12999ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13000if test -z "$ac_err"; then
13001 rm -rf conftest*
13002 eval "ac_cv_header_$ac_safe=yes"
6232543b 13003else
698dcdb6
VZ
13004 echo "$ac_err" >&5
13005 echo "configure: failed program was:" >&5
10f2d63a 13006 cat conftest.$ac_ext >&5
698dcdb6
VZ
13007 rm -rf conftest*
13008 eval "ac_cv_header_$ac_safe=no"
10f2d63a 13009fi
698dcdb6 13010rm -f conftest*
10f2d63a 13011fi
698dcdb6
VZ
13012if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13013 echo "$ac_t""yes" 1>&6
13014 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13015 cat >> confdefs.h <<EOF
13016#define $ac_tr_hdr 1
10f2d63a 13017EOF
698dcdb6
VZ
13018
13019else
13020 echo "$ac_t""no" 1>&6
10f2d63a
VZ
13021fi
13022done
13023
9f8148b1 13024for ac_hdr in malloc.h
10f2d63a 13025do
698dcdb6
VZ
13026ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13027echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4cdb0ab0 13028echo "configure:13029: checking for $ac_hdr" >&5
698dcdb6
VZ
13029if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13030 echo $ac_n "(cached) $ac_c" 1>&6
13031else
13032 cat > conftest.$ac_ext <<EOF
4cdb0ab0 13033#line 13034 "configure"
10f2d63a 13034#include "confdefs.h"
698dcdb6
VZ
13035#include <$ac_hdr>
13036EOF
13037ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4cdb0ab0 13038{ (eval echo configure:13039: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
13039ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13040if test -z "$ac_err"; then
13041 rm -rf conftest*
13042 eval "ac_cv_header_$ac_safe=yes"
6f72b082 13043else
698dcdb6
VZ
13044 echo "$ac_err" >&5
13045 echo "configure: failed program was:" >&5
6f72b082 13046 cat conftest.$ac_ext >&5
698dcdb6
VZ
13047 rm -rf conftest*
13048 eval "ac_cv_header_$ac_safe=no"
6f72b082 13049fi
698dcdb6 13050rm -f conftest*
6f72b082 13051fi
698dcdb6
VZ
13052if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13053 echo "$ac_t""yes" 1>&6
13054 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13055 cat >> confdefs.h <<EOF
13056#define $ac_tr_hdr 1
6f72b082 13057EOF
698dcdb6
VZ
13058
13059else
13060 echo "$ac_t""no" 1>&6
6f72b082
OK
13061fi
13062done
13063
9f8148b1 13064for ac_hdr in unistd.h
6f72b082 13065do
698dcdb6
VZ
13066ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13067echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4cdb0ab0 13068echo "configure:13069: checking for $ac_hdr" >&5
698dcdb6
VZ
13069if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13070 echo $ac_n "(cached) $ac_c" 1>&6
13071else
13072 cat > conftest.$ac_ext <<EOF
4cdb0ab0 13073#line 13074 "configure"
6f72b082 13074#include "confdefs.h"
698dcdb6
VZ
13075#include <$ac_hdr>
13076EOF
13077ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4cdb0ab0 13078{ (eval echo configure:13079: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
13079ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13080if test -z "$ac_err"; then
13081 rm -rf conftest*
13082 eval "ac_cv_header_$ac_safe=yes"
6f72b082 13083else
698dcdb6
VZ
13084 echo "$ac_err" >&5
13085 echo "configure: failed program was:" >&5
6f72b082 13086 cat conftest.$ac_ext >&5
698dcdb6
VZ
13087 rm -rf conftest*
13088 eval "ac_cv_header_$ac_safe=no"
6f72b082 13089fi
698dcdb6 13090rm -f conftest*
6f72b082 13091fi
698dcdb6
VZ
13092if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13093 echo "$ac_t""yes" 1>&6
13094 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13095 cat >> confdefs.h <<EOF
13096#define $ac_tr_hdr 1
6f72b082 13097EOF
698dcdb6
VZ
13098
13099else
13100 echo "$ac_t""no" 1>&6
6f72b082
OK
13101fi
13102done
13103
9f8148b1 13104for ac_hdr in wchar.h
6f72b082 13105do
698dcdb6
VZ
13106ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13107echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4cdb0ab0 13108echo "configure:13109: checking for $ac_hdr" >&5
698dcdb6
VZ
13109if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13110 echo $ac_n "(cached) $ac_c" 1>&6
13111else
13112 cat > conftest.$ac_ext <<EOF
4cdb0ab0 13113#line 13114 "configure"
6f72b082 13114#include "confdefs.h"
698dcdb6
VZ
13115#include <$ac_hdr>
13116EOF
13117ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4cdb0ab0 13118{ (eval echo configure:13119: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
13119ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13120if test -z "$ac_err"; then
13121 rm -rf conftest*
13122 eval "ac_cv_header_$ac_safe=yes"
10f2d63a 13123else
698dcdb6
VZ
13124 echo "$ac_err" >&5
13125 echo "configure: failed program was:" >&5
10f2d63a 13126 cat conftest.$ac_ext >&5
698dcdb6
VZ
13127 rm -rf conftest*
13128 eval "ac_cv_header_$ac_safe=no"
10f2d63a 13129fi
698dcdb6 13130rm -f conftest*
10f2d63a 13131fi
698dcdb6
VZ
13132if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13133 echo "$ac_t""yes" 1>&6
13134 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13135 cat >> confdefs.h <<EOF
13136#define $ac_tr_hdr 1
10f2d63a 13137EOF
698dcdb6
VZ
13138
13139else
13140 echo "$ac_t""no" 1>&6
10f2d63a
VZ
13141fi
13142done
13143
9f8148b1 13144for ac_hdr in wcstr.h
0fb0dd83 13145do
698dcdb6
VZ
13146ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13147echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4cdb0ab0 13148echo "configure:13149: checking for $ac_hdr" >&5
698dcdb6
VZ
13149if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13150 echo $ac_n "(cached) $ac_c" 1>&6
13151else
13152 cat > conftest.$ac_ext <<EOF
4cdb0ab0 13153#line 13154 "configure"
0fb0dd83 13154#include "confdefs.h"
698dcdb6
VZ
13155#include <$ac_hdr>
13156EOF
13157ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4cdb0ab0 13158{ (eval echo configure:13159: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
13159ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13160if test -z "$ac_err"; then
13161 rm -rf conftest*
13162 eval "ac_cv_header_$ac_safe=yes"
0fb0dd83 13163else
698dcdb6
VZ
13164 echo "$ac_err" >&5
13165 echo "configure: failed program was:" >&5
0fb0dd83 13166 cat conftest.$ac_ext >&5
698dcdb6
VZ
13167 rm -rf conftest*
13168 eval "ac_cv_header_$ac_safe=no"
0fb0dd83 13169fi
698dcdb6 13170rm -f conftest*
0fb0dd83 13171fi
698dcdb6
VZ
13172if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13173 echo "$ac_t""yes" 1>&6
13174 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13175 cat >> confdefs.h <<EOF
13176#define $ac_tr_hdr 1
0fb0dd83 13177EOF
698dcdb6
VZ
13178
13179else
13180 echo "$ac_t""no" 1>&6
0fb0dd83
RR
13181fi
13182done
13183
9f8148b1 13184for ac_hdr in wctype.h
1f8ae82f 13185do
698dcdb6
VZ
13186ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13187echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4cdb0ab0 13188echo "configure:13189: checking for $ac_hdr" >&5
698dcdb6
VZ
13189if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13190 echo $ac_n "(cached) $ac_c" 1>&6
13191else
13192 cat > conftest.$ac_ext <<EOF
4cdb0ab0 13193#line 13194 "configure"
1f8ae82f 13194#include "confdefs.h"
698dcdb6
VZ
13195#include <$ac_hdr>
13196EOF
13197ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4cdb0ab0 13198{ (eval echo configure:13199: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
13199ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13200if test -z "$ac_err"; then
13201 rm -rf conftest*
13202 eval "ac_cv_header_$ac_safe=yes"
1f8ae82f 13203else
698dcdb6
VZ
13204 echo "$ac_err" >&5
13205 echo "configure: failed program was:" >&5
1f8ae82f 13206 cat conftest.$ac_ext >&5
698dcdb6
VZ
13207 rm -rf conftest*
13208 eval "ac_cv_header_$ac_safe=no"
1f8ae82f 13209fi
698dcdb6 13210rm -f conftest*
1f8ae82f 13211fi
698dcdb6
VZ
13212if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13213 echo "$ac_t""yes" 1>&6
13214 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13215 cat >> confdefs.h <<EOF
13216#define $ac_tr_hdr 1
1f8ae82f 13217EOF
698dcdb6
VZ
13218
13219else
13220 echo "$ac_t""no" 1>&6
1f8ae82f
GD
13221fi
13222done
13223
9f8148b1 13224for ac_hdr in fnmatch.h
10f2d63a 13225do
698dcdb6
VZ
13226ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13227echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4cdb0ab0 13228echo "configure:13229: checking for $ac_hdr" >&5
698dcdb6
VZ
13229if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13230 echo $ac_n "(cached) $ac_c" 1>&6
13231else
13232 cat > conftest.$ac_ext <<EOF
4cdb0ab0 13233#line 13234 "configure"
10f2d63a 13234#include "confdefs.h"
698dcdb6
VZ
13235#include <$ac_hdr>
13236EOF
13237ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4cdb0ab0 13238{ (eval echo configure:13239: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
13239ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13240if test -z "$ac_err"; then
13241 rm -rf conftest*
13242 eval "ac_cv_header_$ac_safe=yes"
10f2d63a 13243else
698dcdb6
VZ
13244 echo "$ac_err" >&5
13245 echo "configure: failed program was:" >&5
10f2d63a 13246 cat conftest.$ac_ext >&5
698dcdb6
VZ
13247 rm -rf conftest*
13248 eval "ac_cv_header_$ac_safe=no"
10f2d63a 13249fi
698dcdb6 13250rm -f conftest*
10f2d63a 13251fi
698dcdb6
VZ
13252if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13253 echo "$ac_t""yes" 1>&6
13254 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13255 cat >> confdefs.h <<EOF
13256#define $ac_tr_hdr 1
10f2d63a 13257EOF
698dcdb6
VZ
13258
13259else
13260 echo "$ac_t""no" 1>&6
10f2d63a
VZ
13261fi
13262done
13263
9f8148b1 13264for ac_hdr in iconv.h
0fbb762e
MB
13265do
13266ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13267echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4cdb0ab0 13268echo "configure:13269: checking for $ac_hdr" >&5
0fbb762e
MB
13269if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13270 echo $ac_n "(cached) $ac_c" 1>&6
13271else
13272 cat > conftest.$ac_ext <<EOF
4cdb0ab0 13273#line 13274 "configure"
0fbb762e
MB
13274#include "confdefs.h"
13275#include <$ac_hdr>
13276EOF
13277ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4cdb0ab0 13278{ (eval echo configure:13279: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
0fbb762e
MB
13279ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13280if test -z "$ac_err"; then
13281 rm -rf conftest*
13282 eval "ac_cv_header_$ac_safe=yes"
13283else
13284 echo "$ac_err" >&5
13285 echo "configure: failed program was:" >&5
13286 cat conftest.$ac_ext >&5
13287 rm -rf conftest*
13288 eval "ac_cv_header_$ac_safe=no"
13289fi
13290rm -f conftest*
13291fi
13292if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13293 echo "$ac_t""yes" 1>&6
13294 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13295 cat >> confdefs.h <<EOF
13296#define $ac_tr_hdr 1
13297EOF
13298
13299else
13300 echo "$ac_t""no" 1>&6
13301fi
13302done
13303
9f8148b1
GD
13304for ac_hdr in langinfo.h
13305do
13306ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13307echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4cdb0ab0 13308echo "configure:13309: checking for $ac_hdr" >&5
9f8148b1
GD
13309if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13310 echo $ac_n "(cached) $ac_c" 1>&6
13311else
13312 cat > conftest.$ac_ext <<EOF
4cdb0ab0 13313#line 13314 "configure"
9f8148b1
GD
13314#include "confdefs.h"
13315#include <$ac_hdr>
13316EOF
13317ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4cdb0ab0 13318{ (eval echo configure:13319: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9f8148b1
GD
13319ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13320if test -z "$ac_err"; then
13321 rm -rf conftest*
13322 eval "ac_cv_header_$ac_safe=yes"
13323else
13324 echo "$ac_err" >&5
13325 echo "configure: failed program was:" >&5
13326 cat conftest.$ac_ext >&5
13327 rm -rf conftest*
13328 eval "ac_cv_header_$ac_safe=no"
13329fi
13330rm -f conftest*
13331fi
13332if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13333 echo "$ac_t""yes" 1>&6
13334 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13335 cat >> confdefs.h <<EOF
13336#define $ac_tr_hdr 1
13337EOF
13338
13339else
13340 echo "$ac_t""no" 1>&6
13341fi
13342done
13343
10f2d63a 13344
3a922bb4
RL
13345if test "$wxUSE_GUI" = "yes"; then
13346 if test "$wxUSE_UNIX" = "yes"; then
13347 for ac_hdr in X11/XKBlib.h
29fd3c0c
VS
13348do
13349ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13350echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4cdb0ab0 13351echo "configure:13352: checking for $ac_hdr" >&5
29fd3c0c
VS
13352if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13353 echo $ac_n "(cached) $ac_c" 1>&6
13354else
13355 cat > conftest.$ac_ext <<EOF
4cdb0ab0 13356#line 13357 "configure"
29fd3c0c
VS
13357#include "confdefs.h"
13358#include <$ac_hdr>
13359EOF
13360ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4cdb0ab0 13361{ (eval echo configure:13362: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
29fd3c0c
VS
13362ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13363if test -z "$ac_err"; then
13364 rm -rf conftest*
13365 eval "ac_cv_header_$ac_safe=yes"
13366else
13367 echo "$ac_err" >&5
13368 echo "configure: failed program was:" >&5
13369 cat conftest.$ac_ext >&5
13370 rm -rf conftest*
13371 eval "ac_cv_header_$ac_safe=no"
13372fi
13373rm -f conftest*
13374fi
13375if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13376 echo "$ac_t""yes" 1>&6
13377 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13378 cat >> confdefs.h <<EOF
13379#define $ac_tr_hdr 1
13380EOF
13381
13382else
13383 echo "$ac_t""no" 1>&6
13384fi
13385done
13386
3a922bb4 13387 fi
29fd3c0c
VS
13388fi
13389
698dcdb6
VZ
13390
13391echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
4cdb0ab0 13392echo "configure:13393: checking for ANSI C header files" >&5
698dcdb6
VZ
13393if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
13394 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 13395else
698dcdb6 13396 cat > conftest.$ac_ext <<EOF
4cdb0ab0 13397#line 13398 "configure"
10f2d63a
VZ
13398#include "confdefs.h"
13399#include <stdlib.h>
13400#include <stdarg.h>
13401#include <string.h>
13402#include <float.h>
698dcdb6
VZ
13403EOF
13404ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4cdb0ab0 13405{ (eval echo configure:13406: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
13406ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13407if test -z "$ac_err"; then
13408 rm -rf conftest*
10f2d63a
VZ
13409 ac_cv_header_stdc=yes
13410else
698dcdb6
VZ
13411 echo "$ac_err" >&5
13412 echo "configure: failed program was:" >&5
10f2d63a 13413 cat conftest.$ac_ext >&5
698dcdb6 13414 rm -rf conftest*
10f2d63a
VZ
13415 ac_cv_header_stdc=no
13416fi
698dcdb6 13417rm -f conftest*
10f2d63a
VZ
13418
13419if test $ac_cv_header_stdc = yes; then
13420 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
698dcdb6 13421cat > conftest.$ac_ext <<EOF
4cdb0ab0 13422#line 13423 "configure"
10f2d63a
VZ
13423#include "confdefs.h"
13424#include <string.h>
698dcdb6 13425EOF
10f2d63a
VZ
13426if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13427 egrep "memchr" >/dev/null 2>&1; then
13428 :
13429else
698dcdb6 13430 rm -rf conftest*
10f2d63a
VZ
13431 ac_cv_header_stdc=no
13432fi
13433rm -f conftest*
13434
13435fi
13436
13437if test $ac_cv_header_stdc = yes; then
13438 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
698dcdb6 13439cat > conftest.$ac_ext <<EOF
4cdb0ab0 13440#line 13441 "configure"
10f2d63a
VZ
13441#include "confdefs.h"
13442#include <stdlib.h>
698dcdb6 13443EOF
10f2d63a
VZ
13444if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13445 egrep "free" >/dev/null 2>&1; then
13446 :
13447else
698dcdb6 13448 rm -rf conftest*
10f2d63a
VZ
13449 ac_cv_header_stdc=no
13450fi
13451rm -f conftest*
13452
13453fi
13454
13455if test $ac_cv_header_stdc = yes; then
13456 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
698dcdb6 13457if test "$cross_compiling" = yes; then
10f2d63a
VZ
13458 :
13459else
698dcdb6 13460 cat > conftest.$ac_ext <<EOF
4cdb0ab0 13461#line 13462 "configure"
10f2d63a
VZ
13462#include "confdefs.h"
13463#include <ctype.h>
698dcdb6
VZ
13464#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13465#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1e487827 13466#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
698dcdb6
VZ
13467int main () { int i; for (i = 0; i < 256; i++)
13468if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
13469exit (0); }
13470
13471EOF
4cdb0ab0 13472if { (eval echo configure:13473: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6 13473then
10f2d63a
VZ
13474 :
13475else
698dcdb6
VZ
13476 echo "configure: failed program was:" >&5
13477 cat conftest.$ac_ext >&5
13478 rm -fr conftest*
13479 ac_cv_header_stdc=no
10f2d63a 13480fi
698dcdb6 13481rm -fr conftest*
10f2d63a 13482fi
698dcdb6 13483
10f2d63a
VZ
13484fi
13485fi
1e487827 13486
698dcdb6
VZ
13487echo "$ac_t""$ac_cv_header_stdc" 1>&6
13488if test $ac_cv_header_stdc = yes; then
13489 cat >> confdefs.h <<\EOF
10f2d63a
VZ
13490#define STDC_HEADERS 1
13491EOF
13492
13493fi
13494
698dcdb6 13495echo $ac_n "checking for mode_t""... $ac_c" 1>&6
4cdb0ab0 13496echo "configure:13497: checking for mode_t" >&5
698dcdb6
VZ
13497if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
13498 echo $ac_n "(cached) $ac_c" 1>&6
1e487827 13499else
698dcdb6 13500 cat > conftest.$ac_ext <<EOF
4cdb0ab0 13501#line 13502 "configure"
1e487827 13502#include "confdefs.h"
698dcdb6
VZ
13503#include <sys/types.h>
13504#if STDC_HEADERS
13505#include <stdlib.h>
13506#include <stddef.h>
13507#endif
13508EOF
13509if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13510 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
13511 rm -rf conftest*
10f2d63a
VZ
13512 ac_cv_type_mode_t=yes
13513else
698dcdb6
VZ
13514 rm -rf conftest*
13515 ac_cv_type_mode_t=no
703e0a69 13516fi
698dcdb6 13517rm -f conftest*
1e487827 13518
698dcdb6
VZ
13519fi
13520echo "$ac_t""$ac_cv_type_mode_t" 1>&6
13521if test $ac_cv_type_mode_t = no; then
13522 cat >> confdefs.h <<\EOF
10f2d63a
VZ
13523#define mode_t int
13524EOF
13525
13526fi
13527
698dcdb6 13528echo $ac_n "checking for off_t""... $ac_c" 1>&6
4cdb0ab0 13529echo "configure:13530: checking for off_t" >&5
698dcdb6
VZ
13530if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
13531 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 13532else
698dcdb6 13533 cat > conftest.$ac_ext <<EOF
4cdb0ab0 13534#line 13535 "configure"
10f2d63a 13535#include "confdefs.h"
698dcdb6
VZ
13536#include <sys/types.h>
13537#if STDC_HEADERS
13538#include <stdlib.h>
13539#include <stddef.h>
13540#endif
13541EOF
13542if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13543 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
13544 rm -rf conftest*
10f2d63a
VZ
13545 ac_cv_type_off_t=yes
13546else
698dcdb6
VZ
13547 rm -rf conftest*
13548 ac_cv_type_off_t=no
703e0a69 13549fi
698dcdb6 13550rm -f conftest*
1e487827 13551
698dcdb6
VZ
13552fi
13553echo "$ac_t""$ac_cv_type_off_t" 1>&6
13554if test $ac_cv_type_off_t = no; then
13555 cat >> confdefs.h <<\EOF
10f2d63a
VZ
13556#define off_t long
13557EOF
13558
13559fi
13560
698dcdb6 13561echo $ac_n "checking for pid_t""... $ac_c" 1>&6
4cdb0ab0 13562echo "configure:13563: checking for pid_t" >&5
698dcdb6
VZ
13563if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
13564 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 13565else
698dcdb6 13566 cat > conftest.$ac_ext <<EOF
4cdb0ab0 13567#line 13568 "configure"
10f2d63a 13568#include "confdefs.h"
698dcdb6
VZ
13569#include <sys/types.h>
13570#if STDC_HEADERS
13571#include <stdlib.h>
13572#include <stddef.h>
13573#endif
13574EOF
13575if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13576 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
13577 rm -rf conftest*
10f2d63a
VZ
13578 ac_cv_type_pid_t=yes
13579else
698dcdb6
VZ
13580 rm -rf conftest*
13581 ac_cv_type_pid_t=no
703e0a69 13582fi
698dcdb6 13583rm -f conftest*
1e487827 13584
698dcdb6
VZ
13585fi
13586echo "$ac_t""$ac_cv_type_pid_t" 1>&6
13587if test $ac_cv_type_pid_t = no; then
13588 cat >> confdefs.h <<\EOF
10f2d63a
VZ
13589#define pid_t int
13590EOF
13591
13592fi
13593
698dcdb6 13594echo $ac_n "checking for size_t""... $ac_c" 1>&6
4cdb0ab0 13595echo "configure:13596: checking for size_t" >&5
698dcdb6
VZ
13596if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
13597 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 13598else
698dcdb6 13599 cat > conftest.$ac_ext <<EOF
4cdb0ab0 13600#line 13601 "configure"
10f2d63a 13601#include "confdefs.h"
698dcdb6
VZ
13602#include <sys/types.h>
13603#if STDC_HEADERS
13604#include <stdlib.h>
13605#include <stddef.h>
13606#endif
13607EOF
13608if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13609 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
13610 rm -rf conftest*
10f2d63a
VZ
13611 ac_cv_type_size_t=yes
13612else
698dcdb6
VZ
13613 rm -rf conftest*
13614 ac_cv_type_size_t=no
703e0a69 13615fi
698dcdb6 13616rm -f conftest*
1e487827 13617
698dcdb6
VZ
13618fi
13619echo "$ac_t""$ac_cv_type_size_t" 1>&6
13620if test $ac_cv_type_size_t = no; then
13621 cat >> confdefs.h <<\EOF
10f2d63a
VZ
13622#define size_t unsigned
13623EOF
13624
13625fi
13626
698dcdb6 13627echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
4cdb0ab0 13628echo "configure:13629: checking for uid_t in sys/types.h" >&5
698dcdb6
VZ
13629if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
13630 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 13631else
698dcdb6 13632 cat > conftest.$ac_ext <<EOF
4cdb0ab0 13633#line 13634 "configure"
10f2d63a
VZ
13634#include "confdefs.h"
13635#include <sys/types.h>
698dcdb6 13636EOF
10f2d63a
VZ
13637if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13638 egrep "uid_t" >/dev/null 2>&1; then
698dcdb6 13639 rm -rf conftest*
10f2d63a
VZ
13640 ac_cv_type_uid_t=yes
13641else
698dcdb6 13642 rm -rf conftest*
10f2d63a
VZ
13643 ac_cv_type_uid_t=no
13644fi
13645rm -f conftest*
13646
13647fi
1e487827 13648
698dcdb6
VZ
13649echo "$ac_t""$ac_cv_type_uid_t" 1>&6
13650if test $ac_cv_type_uid_t = no; then
13651 cat >> confdefs.h <<\EOF
10f2d63a
VZ
13652#define uid_t int
13653EOF
13654
698dcdb6 13655 cat >> confdefs.h <<\EOF
10f2d63a
VZ
13656#define gid_t int
13657EOF
13658
13659fi
13660
1e487827 13661
698dcdb6 13662echo $ac_n "checking for wchar_t""... $ac_c" 1>&6
4cdb0ab0 13663echo "configure:13664: checking for wchar_t" >&5
698dcdb6
VZ
13664if eval "test \"`echo '$''{'wx_cv_type_wchar_t'+set}'`\" = set"; then
13665 echo $ac_n "(cached) $ac_c" 1>&6
13666else
13667
13668 cat > conftest.$ac_ext <<EOF
4cdb0ab0 13669#line 13670 "configure"
0046ff7c 13670#include "confdefs.h"
4b42290e
GD
13671
13672 #ifdef HAVE_WCHAR_H
0fbb762e
MB
13673 # ifdef __CYGWIN__
13674 # include <stddef.h>
13675 # endif
4b42290e
GD
13676 # include <wchar.h>
13677 #endif
13678 #ifdef HAVE_STDLIB_H
13679 # include <stdlib.h>
13680 #endif
13681
698dcdb6 13682int main() {
0046ff7c 13683
d836ee96
VZ
13684 wchar_t wc, *ws;
13685 wc = L'a';
13686 ws = L"Hello, world!";
698dcdb6
VZ
13687
13688; return 0; }
13689EOF
4cdb0ab0 13690if { (eval echo configure:13691: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 13691 rm -rf conftest*
1f8ae82f 13692 wx_cv_type_wchar_t=yes
0046ff7c 13693else
698dcdb6
VZ
13694 echo "configure: failed program was:" >&5
13695 cat conftest.$ac_ext >&5
13696 rm -rf conftest*
13697 wx_cv_type_wchar_t=no
d836ee96 13698
6232543b 13699fi
698dcdb6 13700rm -f conftest*
703e0a69 13701
1e487827 13702fi
698dcdb6
VZ
13703
13704echo "$ac_t""$wx_cv_type_wchar_t" 1>&6
d836ee96
VZ
13705
13706if test "$wx_cv_type_wchar_t" = "yes"; then
698dcdb6 13707 cat >> confdefs.h <<\EOF
0046ff7c
VS
13708#define wxUSE_WCHAR_T 1
13709EOF
13710
13711fi
13712
19af3b06
VZ
13713
13714ac_ext=C
13715# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13716ac_cpp='$CXXCPP $CPPFLAGS'
13717ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13718ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13719cross_compiling=$ac_cv_prog_cxx_cross
13720
d836ee96 13721echo $ac_n "checking if size_t is unsigned int""... $ac_c" 1>&6
4cdb0ab0 13722echo "configure:13723: checking if size_t is unsigned int" >&5
d836ee96
VZ
13723if eval "test \"`echo '$''{'wx_cv_size_t_is_uint'+set}'`\" = set"; then
13724 echo $ac_n "(cached) $ac_c" 1>&6
13725else
dd2c8b7c 13726 cat > conftest.$ac_ext <<EOF
4cdb0ab0 13727#line 13728 "configure"
d836ee96
VZ
13728#include "confdefs.h"
13729#include <stddef.h>
13730int main() {
13731
dd2c8b7c
VZ
13732 return 0; }
13733
d836ee96 13734 struct Foo { void foo(size_t); void foo(unsigned int); };
dd2c8b7c
VZ
13735
13736 int bar() {
d836ee96
VZ
13737
13738; return 0; }
13739EOF
4cdb0ab0 13740if { (eval echo configure:13741: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d836ee96
VZ
13741 rm -rf conftest*
13742 wx_cv_size_t_is_uint=no
13743else
13744 echo "configure: failed program was:" >&5
13745 cat conftest.$ac_ext >&5
13746 rm -rf conftest*
13747 wx_cv_size_t_is_uint=yes
13748
13749fi
13750rm -f conftest*
13751
13752fi
13753
13754echo "$ac_t""$wx_cv_size_t_is_uint" 1>&6
13755
13756if test "$wx_cv_size_t_is_uint" = "yes"; then
13757 cat >> confdefs.h <<\EOF
13758#define wxSIZE_T_IS_UINT 1
13759EOF
13760
13761else
13762 echo $ac_n "checking if size_t is unsigned long""... $ac_c" 1>&6
4cdb0ab0 13763echo "configure:13764: checking if size_t is unsigned long" >&5
d836ee96
VZ
13764if eval "test \"`echo '$''{'wx_cv_size_t_is_ulong'+set}'`\" = set"; then
13765 echo $ac_n "(cached) $ac_c" 1>&6
13766else
13767 cat > conftest.$ac_ext <<EOF
4cdb0ab0 13768#line 13769 "configure"
d836ee96
VZ
13769#include "confdefs.h"
13770#include <stddef.h>
13771int main() {
13772
dd2c8b7c
VZ
13773 return 0; }
13774
d836ee96 13775 struct Foo { void foo(size_t); void foo(unsigned long); };
dd2c8b7c
VZ
13776
13777 int bar() {
d836ee96
VZ
13778
13779; return 0; }
13780EOF
4cdb0ab0 13781if { (eval echo configure:13782: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d836ee96
VZ
13782 rm -rf conftest*
13783 wx_cv_size_t_is_ulong=no
13784else
13785 echo "configure: failed program was:" >&5
13786 cat conftest.$ac_ext >&5
13787 rm -rf conftest*
13788 wx_cv_size_t_is_ulong=yes
13789
13790fi
13791rm -f conftest*
13792
13793fi
13794
13795echo "$ac_t""$wx_cv_size_t_is_ulong" 1>&6
13796
13797 if test "$wx_cv_size_t_is_ulong" = "yes"; then
13798 cat >> confdefs.h <<\EOF
13799#define wxSIZE_T_IS_ULONG 1
13800EOF
13801
13802 fi
13803fi
13804
19af3b06
VZ
13805ac_ext=c
13806# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13807ac_cpp='$CPP $CPPFLAGS'
13808ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13809ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13810cross_compiling=$ac_cv_prog_cc_cross
13811
13812
1e487827 13813
698dcdb6 13814echo $ac_n "checking for pw_gecos in struct passwd""... $ac_c" 1>&6
4cdb0ab0 13815echo "configure:13816: checking for pw_gecos in struct passwd" >&5
698dcdb6
VZ
13816if eval "test \"`echo '$''{'wx_cv_struct_pw_gecos'+set}'`\" = set"; then
13817 echo $ac_n "(cached) $ac_c" 1>&6
13818else
13819
13820 cat > conftest.$ac_ext <<EOF
4cdb0ab0 13821#line 13822 "configure"
b12915c1
VZ
13822#include "confdefs.h"
13823#include <pwd.h>
698dcdb6 13824int main() {
b12915c1
VZ
13825
13826 char *p;
13827 struct passwd *pw;
13828 p = pw->pw_gecos;
698dcdb6
VZ
13829
13830; return 0; }
13831EOF
4cdb0ab0 13832if { (eval echo configure:13833: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
13833 rm -rf conftest*
13834
b12915c1 13835 wx_cv_struct_pw_gecos=yes
698dcdb6 13836
b12915c1 13837else
698dcdb6
VZ
13838 echo "configure: failed program was:" >&5
13839 cat conftest.$ac_ext >&5
13840 rm -rf conftest*
13841
b12915c1 13842 wx_cv_struct_pw_gecos=no
698dcdb6
VZ
13843
13844
6232543b 13845fi
698dcdb6
VZ
13846rm -f conftest*
13847
703e0a69 13848
1e487827 13849fi
698dcdb6
VZ
13850
13851echo "$ac_t""$wx_cv_struct_pw_gecos" 1>&6
b12915c1 13852
bd3277fe 13853if test "$wx_cv_struct_pw_gecos" = "yes"; then
698dcdb6 13854 cat >> confdefs.h <<\EOF
bd3277fe
VZ
13855#define HAVE_PW_GECOS 1
13856EOF
13857
13858fi
13859
698dcdb6
VZ
13860
13861echo $ac_n "checking for working const""... $ac_c" 1>&6
4cdb0ab0 13862echo "configure:13863: checking for working const" >&5
698dcdb6
VZ
13863if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
13864 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 13865else
698dcdb6 13866 cat > conftest.$ac_ext <<EOF
4cdb0ab0 13867#line 13868 "configure"
10f2d63a 13868#include "confdefs.h"
698dcdb6
VZ
13869
13870int main() {
13871
13872/* Ultrix mips cc rejects this. */
4cdb0ab0 13873typedef int charset[2]; const charset x;
698dcdb6
VZ
13874/* SunOS 4.1.1 cc rejects this. */
13875char const *const *ccp;
13876char **p;
13877/* NEC SVR4.0.2 mips cc rejects this. */
13878struct point {int x, y;};
13879static struct point const zero = {0,0};
13880/* AIX XL C 1.02.0.0 rejects this.
13881 It does not let you subtract one const X* pointer from another in an arm
13882 of an if-expression whose if-part is not a constant expression */
13883const char *g = "string";
13884ccp = &g + (g ? g-g : 0);
13885/* HPUX 7.0 cc rejects these. */
13886++ccp;
13887p = (char**) ccp;
13888ccp = (char const *const *) p;
13889{ /* SCO 3.2v4 cc rejects this. */
13890 char *t;
13891 char const *s = 0 ? (char *) 0 : (char const *) 0;
13892
13893 *t++ = 0;
10f2d63a 13894}
698dcdb6
VZ
13895{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
13896 int x[] = {25, 17};
13897 const int *foo = &x[0];
13898 ++foo;
703e0a69 13899}
698dcdb6
VZ
13900{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13901 typedef const int *iptr;
13902 iptr p = 0;
13903 ++p;
6232543b 13904}
698dcdb6
VZ
13905{ /* AIX XL C 1.02.0.0 rejects this saying
13906 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13907 struct s { int j; const int *ap[3]; };
13908 struct s *b; b->j = 5;
1e487827 13909}
698dcdb6
VZ
13910{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13911 const int foo = 10;
13912}
4f14bcd8
GD
13913
13914; return 0; }
698dcdb6 13915EOF
4cdb0ab0 13916if { (eval echo configure:13917: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4f14bcd8
GD
13917 rm -rf conftest*
13918 ac_cv_c_const=yes
698dcdb6
VZ
13919else
13920 echo "configure: failed program was:" >&5
13921 cat conftest.$ac_ext >&5
4f14bcd8
GD
13922 rm -rf conftest*
13923 ac_cv_c_const=no
703e0a69 13924fi
4f14bcd8 13925rm -f conftest*
698dcdb6
VZ
13926fi
13927
4f14bcd8
GD
13928echo "$ac_t""$ac_cv_c_const" 1>&6
13929if test $ac_cv_c_const = no; then
13930 cat >> confdefs.h <<\EOF
13931#define const
698dcdb6
VZ
13932EOF
13933
4f14bcd8 13934fi
698dcdb6 13935
4f14bcd8 13936echo $ac_n "checking for inline""... $ac_c" 1>&6
4cdb0ab0 13937echo "configure:13938: checking for inline" >&5
4f14bcd8 13938if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
698dcdb6 13939 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 13940else
4f14bcd8
GD
13941 ac_cv_c_inline=no
13942for ac_kw in inline __inline__ __inline; do
698dcdb6 13943 cat > conftest.$ac_ext <<EOF
4cdb0ab0 13944#line 13945 "configure"
10f2d63a 13945#include "confdefs.h"
4f14bcd8
GD
13946
13947int main() {
4cdb0ab0 13948} $ac_kw foo() {
4f14bcd8 13949; return 0; }
698dcdb6 13950EOF
4cdb0ab0 13951if { (eval echo configure:13952: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4f14bcd8
GD
13952 rm -rf conftest*
13953 ac_cv_c_inline=$ac_kw; break
10f2d63a 13954else
698dcdb6
VZ
13955 echo "configure: failed program was:" >&5
13956 cat conftest.$ac_ext >&5
10f2d63a 13957fi
4f14bcd8
GD
13958rm -f conftest*
13959done
698dcdb6 13960
10f2d63a 13961fi
4f14bcd8
GD
13962
13963echo "$ac_t""$ac_cv_c_inline" 1>&6
13964case "$ac_cv_c_inline" in
13965 inline | yes) ;;
13966 no) cat >> confdefs.h <<\EOF
13967#define inline
13968EOF
13969 ;;
13970 *) cat >> confdefs.h <<EOF
13971#define inline $ac_cv_c_inline
698dcdb6 13972EOF
4f14bcd8
GD
13973 ;;
13974esac
698dcdb6
VZ
13975
13976
4f14bcd8 13977echo $ac_n "checking size of char""... $ac_c" 1>&6
4cdb0ab0 13978echo "configure:13979: checking size of char" >&5
4f14bcd8 13979if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
698dcdb6
VZ
13980 echo $ac_n "(cached) $ac_c" 1>&6
13981else
13982 if test "$cross_compiling" = yes; then
4f14bcd8 13983 ac_cv_sizeof_char=1
698dcdb6
VZ
13984else
13985 cat > conftest.$ac_ext <<EOF
4cdb0ab0 13986#line 13987 "configure"
698dcdb6
VZ
13987#include "confdefs.h"
13988#include <stdio.h>
13989main()
13990{
13991 FILE *f=fopen("conftestval", "w");
13992 if (!f) exit(1);
4f14bcd8 13993 fprintf(f, "%d\n", sizeof(char));
698dcdb6
VZ
13994 exit(0);
13995}
13996EOF
4cdb0ab0 13997if { (eval echo configure:13998: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6 13998then
4f14bcd8 13999 ac_cv_sizeof_char=`cat conftestval`
6232543b 14000else
698dcdb6
VZ
14001 echo "configure: failed program was:" >&5
14002 cat conftest.$ac_ext >&5
14003 rm -fr conftest*
4f14bcd8 14004 ac_cv_sizeof_char=0
6232543b 14005fi
698dcdb6
VZ
14006rm -fr conftest*
14007fi
14008
703e0a69 14009fi
4f14bcd8 14010echo "$ac_t""$ac_cv_sizeof_char" 1>&6
698dcdb6 14011cat >> confdefs.h <<EOF
4f14bcd8 14012#define SIZEOF_CHAR $ac_cv_sizeof_char
10f2d63a
VZ
14013EOF
14014
1e487827 14015
4f14bcd8 14016echo $ac_n "checking size of short""... $ac_c" 1>&6
4cdb0ab0 14017echo "configure:14018: checking size of short" >&5
4f14bcd8 14018if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
698dcdb6
VZ
14019 echo $ac_n "(cached) $ac_c" 1>&6
14020else
4f14bcd8
GD
14021 if test "$cross_compiling" = yes; then
14022 ac_cv_sizeof_short=2
b93d0d08 14023else
698dcdb6 14024 cat > conftest.$ac_ext <<EOF
4cdb0ab0 14025#line 14026 "configure"
b93d0d08 14026#include "confdefs.h"
4f14bcd8
GD
14027#include <stdio.h>
14028main()
14029{
14030 FILE *f=fopen("conftestval", "w");
14031 if (!f) exit(1);
14032 fprintf(f, "%d\n", sizeof(short));
14033 exit(0);
14034}
698dcdb6 14035EOF
4cdb0ab0 14036if { (eval echo configure:14037: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6 14037then
4f14bcd8 14038 ac_cv_sizeof_short=`cat conftestval`
b93d0d08 14039else
698dcdb6
VZ
14040 echo "configure: failed program was:" >&5
14041 cat conftest.$ac_ext >&5
14042 rm -fr conftest*
4f14bcd8 14043 ac_cv_sizeof_short=0
b93d0d08 14044fi
698dcdb6 14045rm -fr conftest*
b93d0d08
VS
14046fi
14047
b93d0d08 14048fi
4f14bcd8 14049echo "$ac_t""$ac_cv_sizeof_short" 1>&6
698dcdb6 14050cat >> confdefs.h <<EOF
4f14bcd8 14051#define SIZEOF_SHORT $ac_cv_sizeof_short
b93d0d08
VS
14052EOF
14053
698dcdb6 14054
4f14bcd8 14055echo $ac_n "checking size of int *""... $ac_c" 1>&6
4cdb0ab0 14056echo "configure:14057: checking size of int *" >&5
4f14bcd8 14057if eval "test \"`echo '$''{'ac_cv_sizeof_int_p'+set}'`\" = set"; then
698dcdb6 14058 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 14059else
4f14bcd8
GD
14060 if test "$cross_compiling" = yes; then
14061 ac_cv_sizeof_int_p=4
3a922bb4 14062else
3a922bb4 14063 cat > conftest.$ac_ext <<EOF
4cdb0ab0 14064#line 14065 "configure"
3a922bb4 14065#include "confdefs.h"
4f14bcd8
GD
14066#include <stdio.h>
14067main()
14068{
14069 FILE *f=fopen("conftestval", "w");
14070 if (!f) exit(1);
14071 fprintf(f, "%d\n", sizeof(int *));
14072 exit(0);
14073}
14074EOF
4cdb0ab0 14075if { (eval echo configure:14076: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4f14bcd8
GD
14076then
14077 ac_cv_sizeof_int_p=`cat conftestval`
14078else
14079 echo "configure: failed program was:" >&5
14080 cat conftest.$ac_ext >&5
14081 rm -fr conftest*
14082 ac_cv_sizeof_int_p=0
3a922bb4 14083fi
4f14bcd8 14084rm -fr conftest*
3a922bb4 14085fi
698dcdb6 14086
4f14bcd8
GD
14087fi
14088echo "$ac_t""$ac_cv_sizeof_int_p" 1>&6
14089cat >> confdefs.h <<EOF
14090#define SIZEOF_INT_P $ac_cv_sizeof_int_p
10f2d63a
VZ
14091EOF
14092
703e0a69 14093
4f14bcd8 14094echo $ac_n "checking size of int""... $ac_c" 1>&6
4cdb0ab0 14095echo "configure:14096: checking size of int" >&5
4f14bcd8 14096if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
698dcdb6 14097 echo $ac_n "(cached) $ac_c" 1>&6
4f14bcd8
GD
14098else
14099 if test "$cross_compiling" = yes; then
14100 ac_cv_sizeof_int=4
698dcdb6
VZ
14101else
14102 cat > conftest.$ac_ext <<EOF
4cdb0ab0 14103#line 14104 "configure"
10f2d63a 14104#include "confdefs.h"
4f14bcd8
GD
14105#include <stdio.h>
14106main()
14107{
14108 FILE *f=fopen("conftestval", "w");
14109 if (!f) exit(1);
14110 fprintf(f, "%d\n", sizeof(int));
14111 exit(0);
14112}
698dcdb6 14113EOF
4cdb0ab0 14114if { (eval echo configure:14115: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4f14bcd8
GD
14115then
14116 ac_cv_sizeof_int=`cat conftestval`
10f2d63a 14117else
698dcdb6 14118 echo "configure: failed program was:" >&5
10f2d63a 14119 cat conftest.$ac_ext >&5
4f14bcd8
GD
14120 rm -fr conftest*
14121 ac_cv_sizeof_int=0
10f2d63a 14122fi
4f14bcd8 14123rm -fr conftest*
10f2d63a 14124fi
10f2d63a 14125
4f14bcd8
GD
14126fi
14127echo "$ac_t""$ac_cv_sizeof_int" 1>&6
14128cat >> confdefs.h <<EOF
14129#define SIZEOF_INT $ac_cv_sizeof_int
10f2d63a
VZ
14130EOF
14131
698dcdb6 14132
4f14bcd8 14133echo $ac_n "checking size of long""... $ac_c" 1>&6
4cdb0ab0 14134echo "configure:14135: checking size of long" >&5
4f14bcd8 14135if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
698dcdb6
VZ
14136 echo $ac_n "(cached) $ac_c" 1>&6
14137else
4f14bcd8
GD
14138 if test "$cross_compiling" = yes; then
14139 ac_cv_sizeof_long=4
14140else
14141 cat > conftest.$ac_ext <<EOF
4cdb0ab0 14142#line 14143 "configure"
10f2d63a 14143#include "confdefs.h"
4f14bcd8
GD
14144#include <stdio.h>
14145main()
14146{
14147 FILE *f=fopen("conftestval", "w");
14148 if (!f) exit(1);
14149 fprintf(f, "%d\n", sizeof(long));
14150 exit(0);
14151}
698dcdb6 14152EOF
4cdb0ab0 14153if { (eval echo configure:14154: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4f14bcd8
GD
14154then
14155 ac_cv_sizeof_long=`cat conftestval`
10f2d63a 14156else
698dcdb6
VZ
14157 echo "configure: failed program was:" >&5
14158 cat conftest.$ac_ext >&5
4f14bcd8
GD
14159 rm -fr conftest*
14160 ac_cv_sizeof_long=0
10f2d63a 14161fi
4f14bcd8 14162rm -fr conftest*
10f2d63a 14163fi
698dcdb6 14164
4f14bcd8
GD
14165fi
14166echo "$ac_t""$ac_cv_sizeof_long" 1>&6
14167cat >> confdefs.h <<EOF
14168#define SIZEOF_LONG $ac_cv_sizeof_long
10f2d63a
VZ
14169EOF
14170
698dcdb6 14171
4f14bcd8 14172echo $ac_n "checking size of long long""... $ac_c" 1>&6
4cdb0ab0 14173echo "configure:14174: checking size of long long" >&5
4f14bcd8 14174if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
698dcdb6 14175 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 14176else
4f14bcd8
GD
14177 if test "$cross_compiling" = yes; then
14178 ac_cv_sizeof_long_long=0
14179else
14180 cat > conftest.$ac_ext <<EOF
4cdb0ab0 14181#line 14182 "configure"
10f2d63a 14182#include "confdefs.h"
4f14bcd8
GD
14183#include <stdio.h>
14184main()
14185{
14186 FILE *f=fopen("conftestval", "w");
14187 if (!f) exit(1);
14188 fprintf(f, "%d\n", sizeof(long long));
14189 exit(0);
14190}
698dcdb6 14191EOF
4cdb0ab0 14192if { (eval echo configure:14193: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4f14bcd8
GD
14193then
14194 ac_cv_sizeof_long_long=`cat conftestval`
698dcdb6
VZ
14195else
14196 echo "configure: failed program was:" >&5
14197 cat conftest.$ac_ext >&5
4f14bcd8
GD
14198 rm -fr conftest*
14199 ac_cv_sizeof_long_long=0
14200fi
14201rm -fr conftest*
698dcdb6 14202fi
698dcdb6
VZ
14203
14204fi
4f14bcd8
GD
14205echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
14206cat >> confdefs.h <<EOF
14207#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10f2d63a
VZ
14208EOF
14209
10f2d63a 14210
4f14bcd8
GD
14211
14212echo $ac_n "checking size of wchar_t""... $ac_c" 1>&6
4cdb0ab0 14213echo "configure:14214: checking size of wchar_t" >&5
4f14bcd8 14214if eval "test \"`echo '$''{'wx_cv_sizeof_wchar_t'+set}'`\" = set"; then
698dcdb6 14215 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 14216else
4f14bcd8
GD
14217
14218 if test "$cross_compiling" = yes; then
14219 wx_cv_sizeof_wchar_t=4
14220
14221else
14222 cat > conftest.$ac_ext <<EOF
4cdb0ab0 14223#line 14224 "configure"
10f2d63a 14224#include "confdefs.h"
698dcdb6 14225
4f14bcd8 14226 #ifdef HAVE_WCHAR_H
0fbb762e
MB
14227 # ifdef __CYGWIN__
14228 # include <stddef.h>
14229 # endif
4f14bcd8
GD
14230 # include <wchar.h>
14231 #endif
14232 #ifdef HAVE_STDLIB_H
14233 # include <stdlib.h>
14234 #endif
14235 #include <stdio.h>
14236 int main()
14237 {
14238 FILE *f=fopen("conftestval", "w");
14239 if (!f) exit(1);
14240 fprintf(f, "%i", sizeof(wchar_t));
14241 exit(0);
14242 }
14243
698dcdb6 14244EOF
4cdb0ab0 14245if { (eval echo configure:14246: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4f14bcd8
GD
14246then
14247 wx_cv_sizeof_wchar_t=`cat conftestval`
698dcdb6
VZ
14248else
14249 echo "configure: failed program was:" >&5
14250 cat conftest.$ac_ext >&5
4f14bcd8
GD
14251 rm -fr conftest*
14252 wx_cv_sizeof_wchar_t=0
698dcdb6 14253fi
4f14bcd8
GD
14254rm -fr conftest*
14255fi
14256
698dcdb6
VZ
14257
14258fi
4f14bcd8
GD
14259
14260echo "$ac_t""$wx_cv_sizeof_wchar_t" 1>&6
14261
14262cat >> confdefs.h <<EOF
14263#define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t
10f2d63a
VZ
14264EOF
14265
18dbb1f6 14266
4f14bcd8 14267echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
4cdb0ab0 14268echo "configure:14269: checking whether byte ordering is bigendian" >&5
4f14bcd8 14269if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
18dbb1f6
VZ
14270 echo $ac_n "(cached) $ac_c" 1>&6
14271else
4f14bcd8
GD
14272 ac_cv_c_bigendian=unknown
14273# See if sys/param.h defines the BYTE_ORDER macro.
18dbb1f6 14274cat > conftest.$ac_ext <<EOF
4cdb0ab0 14275#line 14276 "configure"
18dbb1f6 14276#include "confdefs.h"
4f14bcd8
GD
14277#include <sys/types.h>
14278#include <sys/param.h>
14279int main() {
18dbb1f6 14280
4f14bcd8
GD
14281#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
14282 bogus endian macros
14283#endif
14284; return 0; }
14285EOF
4cdb0ab0 14286if { (eval echo configure:14287: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4f14bcd8
GD
14287 rm -rf conftest*
14288 # It does; now see whether it defined to BIG_ENDIAN or not.
14289cat > conftest.$ac_ext <<EOF
4cdb0ab0 14290#line 14291 "configure"
4f14bcd8
GD
14291#include "confdefs.h"
14292#include <sys/types.h>
14293#include <sys/param.h>
18dbb1f6 14294int main() {
4f14bcd8
GD
14295
14296#if BYTE_ORDER != BIG_ENDIAN
14297 not big endian
14298#endif
18dbb1f6
VZ
14299; return 0; }
14300EOF
4cdb0ab0 14301if { (eval echo configure:14302: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18dbb1f6 14302 rm -rf conftest*
4f14bcd8 14303 ac_cv_c_bigendian=yes
18dbb1f6
VZ
14304else
14305 echo "configure: failed program was:" >&5
14306 cat conftest.$ac_ext >&5
14307 rm -rf conftest*
4f14bcd8 14308 ac_cv_c_bigendian=no
18dbb1f6
VZ
14309fi
14310rm -f conftest*
698dcdb6 14311else
4f14bcd8
GD
14312 echo "configure: failed program was:" >&5
14313 cat conftest.$ac_ext >&5
1e487827 14314fi
4f14bcd8
GD
14315rm -f conftest*
14316if test $ac_cv_c_bigendian = unknown; then
14317if test "$cross_compiling" = yes; then
14318 ac_cv_c_bigendian=unknown
b3e8d00a
VZ
14319else
14320 cat > conftest.$ac_ext <<EOF
4cdb0ab0 14321#line 14322 "configure"
b3e8d00a 14322#include "confdefs.h"
4f14bcd8
GD
14323main () {
14324 /* Are we little or big endian? From Harbison&Steele. */
14325 union
14326 {
14327 long l;
14328 char c[sizeof (long)];
14329 } u;
14330 u.l = 1;
14331 exit (u.c[sizeof (long) - 1] == 1);
14332}
b3e8d00a 14333EOF
4cdb0ab0 14334if { (eval echo configure:14335: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4f14bcd8
GD
14335then
14336 ac_cv_c_bigendian=no
b3e8d00a
VZ
14337else
14338 echo "configure: failed program was:" >&5
14339 cat conftest.$ac_ext >&5
4f14bcd8
GD
14340 rm -fr conftest*
14341 ac_cv_c_bigendian=yes
b3e8d00a 14342fi
4f14bcd8 14343rm -fr conftest*
b3e8d00a
VZ
14344fi
14345
4f14bcd8
GD
14346fi
14347fi
14348
14349echo "$ac_t""$ac_cv_c_bigendian" 1>&6
14350if test $ac_cv_c_bigendian = unknown; then
14351 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
14352fi
14353if test $ac_cv_c_bigendian = yes; then
14354 cat >> confdefs.h <<\EOF
14355#define WORDS_BIGENDIAN 1
b3e8d00a 14356EOF
4f14bcd8 14357
b3e8d00a 14358fi
b3e8d00a
VZ
14359
14360
4f14bcd8 14361echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
4cdb0ab0 14362echo "configure:14363: checking how to run the C++ preprocessor" >&5
4f14bcd8
GD
14363if test -z "$CXXCPP"; then
14364if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
698dcdb6
VZ
14365 echo $ac_n "(cached) $ac_c" 1>&6
14366else
4f14bcd8
GD
14367 ac_ext=C
14368# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14369ac_cpp='$CXXCPP $CPPFLAGS'
14370ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14371ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14372cross_compiling=$ac_cv_prog_cxx_cross
14373 CXXCPP="${CXX-g++} -E"
698dcdb6 14374 cat > conftest.$ac_ext <<EOF
4cdb0ab0 14375#line 14376 "configure"
10f2d63a 14376#include "confdefs.h"
4f14bcd8 14377#include <stdlib.h>
698dcdb6 14378EOF
4f14bcd8 14379ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4cdb0ab0 14380{ (eval echo configure:14381: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4f14bcd8
GD
14381ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14382if test -z "$ac_err"; then
14383 :
698dcdb6 14384else
4f14bcd8 14385 echo "$ac_err" >&5
698dcdb6
VZ
14386 echo "configure: failed program was:" >&5
14387 cat conftest.$ac_ext >&5
14388 rm -rf conftest*
4f14bcd8 14389 CXXCPP=/lib/cpp
698dcdb6
VZ
14390fi
14391rm -f conftest*
4f14bcd8
GD
14392 ac_cv_prog_CXXCPP="$CXXCPP"
14393ac_ext=C
14394# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14395ac_cpp='$CXXCPP $CPPFLAGS'
14396ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14397ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14398cross_compiling=$ac_cv_prog_cxx_cross
14399fi
698dcdb6 14400fi
4f14bcd8
GD
14401CXXCPP="$ac_cv_prog_CXXCPP"
14402echo "$ac_t""$CXXCPP" 1>&6
698dcdb6 14403
4f14bcd8
GD
14404
14405 if test "$cross_compiling" = "yes"; then
14406 cat >> confdefs.h <<\EOF
14407#define wxUSE_IOSTREAMH 1
698dcdb6
VZ
14408EOF
14409
4f14bcd8
GD
14410 else
14411
14412 ac_ext=C
14413# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14414ac_cpp='$CXXCPP $CPPFLAGS'
14415ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14416ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14417cross_compiling=$ac_cv_prog_cxx_cross
698dcdb6 14418
4f14bcd8
GD
14419
14420 for ac_hdr in iostream
14421do
14422ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
14423echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4cdb0ab0 14424echo "configure:14425: checking for $ac_hdr" >&5
4f14bcd8 14425if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
698dcdb6
VZ
14426 echo $ac_n "(cached) $ac_c" 1>&6
14427else
14428 cat > conftest.$ac_ext <<EOF
4cdb0ab0 14429#line 14430 "configure"
10f2d63a 14430#include "confdefs.h"
4f14bcd8 14431#include <$ac_hdr>
698dcdb6 14432EOF
4f14bcd8 14433ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4cdb0ab0 14434{ (eval echo configure:14435: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4f14bcd8
GD
14435ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14436if test -z "$ac_err"; then
698dcdb6 14437 rm -rf conftest*
4f14bcd8 14438 eval "ac_cv_header_$ac_safe=yes"
698dcdb6 14439else
4f14bcd8 14440 echo "$ac_err" >&5
698dcdb6
VZ
14441 echo "configure: failed program was:" >&5
14442 cat conftest.$ac_ext >&5
14443 rm -rf conftest*
4f14bcd8 14444 eval "ac_cv_header_$ac_safe=no"
698dcdb6
VZ
14445fi
14446rm -f conftest*
14447fi
4f14bcd8 14448if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
698dcdb6 14449 echo "$ac_t""yes" 1>&6
4f14bcd8
GD
14450 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
14451 cat >> confdefs.h <<EOF
14452#define $ac_tr_hdr 1
10f2d63a 14453EOF
4f14bcd8 14454
698dcdb6
VZ
14455else
14456 echo "$ac_t""no" 1>&6
10f2d63a 14457fi
4f14bcd8 14458done
10f2d63a 14459
10f2d63a 14460
4f14bcd8
GD
14461 if test "$ac_cv_header_iostream" = "yes" ; then
14462 :
14463 else
14464 cat >> confdefs.h <<\EOF
14465#define wxUSE_IOSTREAMH 1
14466EOF
14467
14468 fi
1e487827 14469
4f14bcd8
GD
14470 ac_ext=c
14471# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14472ac_cpp='$CPP $CPPFLAGS'
14473ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14474ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14475cross_compiling=$ac_cv_prog_cc_cross
698dcdb6 14476
4f14bcd8 14477 fi
698dcdb6
VZ
14478
14479
14480
4f14bcd8 14481 echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6
4cdb0ab0 14482echo "configure:14483: checking if C++ compiler supports bool" >&5
4f14bcd8 14483if eval "test \"`echo '$''{'wx_cv_cpp_bool'+set}'`\" = set"; then
698dcdb6
VZ
14484 echo $ac_n "(cached) $ac_c" 1>&6
14485else
14486
4f14bcd8
GD
14487
14488 ac_ext=C
14489# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14490ac_cpp='$CXXCPP $CPPFLAGS'
14491ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14492ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14493cross_compiling=$ac_cv_prog_cxx_cross
f6bcfd97 14494
10f2d63a 14495
4f14bcd8 14496 cat > conftest.$ac_ext <<EOF
4cdb0ab0 14497#line 14498 "configure"
4f14bcd8 14498#include "confdefs.h"
10f2d63a 14499
4f14bcd8
GD
14500
14501int main() {
f6bcfd97 14502
4f14bcd8 14503 bool b = true;
f6bcfd97 14504
4f14bcd8
GD
14505 return 0;
14506
698dcdb6
VZ
14507; return 0; }
14508EOF
4cdb0ab0 14509if { (eval echo configure:14510: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
14510 rm -rf conftest*
14511
4f14bcd8
GD
14512 wx_cv_cpp_bool=yes
14513
10f2d63a 14514else
698dcdb6
VZ
14515 echo "configure: failed program was:" >&5
14516 cat conftest.$ac_ext >&5
14517 rm -rf conftest*
14518
4f14bcd8
GD
14519 wx_cv_cpp_bool=no
14520
14521
14522fi
14523rm -f conftest*
c521c494 14524
4f14bcd8
GD
14525 ac_ext=c
14526# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14527ac_cpp='$CPP $CPPFLAGS'
14528ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14529ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14530cross_compiling=$ac_cv_prog_cc_cross
c521c494 14531
4f14bcd8
GD
14532
14533fi
c521c494 14534
4f14bcd8 14535echo "$ac_t""$wx_cv_cpp_bool" 1>&6
c521c494 14536
4f14bcd8
GD
14537 if test "$wx_cv_cpp_bool" = "yes"; then
14538 cat >> confdefs.h <<\EOF
14539#define HAVE_BOOL 1
14540EOF
c521c494 14541
4f14bcd8
GD
14542 fi
14543
14544
14545
14546echo $ac_n "checking for wcslen in -lc""... $ac_c" 1>&6
4cdb0ab0 14547echo "configure:14548: checking for wcslen in -lc" >&5
4f14bcd8
GD
14548ac_lib_var=`echo c'_'wcslen | sed 'y%./+-%__p_%'`
14549if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14550 echo $ac_n "(cached) $ac_c" 1>&6
14551else
14552 ac_save_LIBS="$LIBS"
14553LIBS="-lc $LIBS"
14554cat > conftest.$ac_ext <<EOF
4cdb0ab0 14555#line 14556 "configure"
4f14bcd8
GD
14556#include "confdefs.h"
14557/* Override any gcc2 internal prototype to avoid an error. */
14558/* We use char because int might match the return type of a gcc2
14559 builtin and then its argument prototype would still apply. */
14560char wcslen();
14561
14562int main() {
14563wcslen()
698dcdb6
VZ
14564; return 0; }
14565EOF
4cdb0ab0 14566if { (eval echo configure:14567: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 14567 rm -rf conftest*
4f14bcd8 14568 eval "ac_cv_lib_$ac_lib_var=yes"
c521c494 14569else
698dcdb6
VZ
14570 echo "configure: failed program was:" >&5
14571 cat conftest.$ac_ext >&5
14572 rm -rf conftest*
4f14bcd8 14573 eval "ac_cv_lib_$ac_lib_var=no"
6232543b 14574fi
698dcdb6 14575rm -f conftest*
4f14bcd8 14576LIBS="$ac_save_LIBS"
703e0a69 14577
1e487827 14578fi
4f14bcd8
GD
14579if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14580 echo "$ac_t""yes" 1>&6
14581
14582 cat >> confdefs.h <<\EOF
14583#define HAVE_WCSLEN 1
9d8deca0
VZ
14584EOF
14585
3d63bc3a 14586 WCHAR_LINK=
4f14bcd8 14587
9d8deca0 14588else
4f14bcd8 14589 echo "$ac_t""no" 1>&6
9d8deca0 14590
4f14bcd8 14591 echo $ac_n "checking for wcslen in -lw""... $ac_c" 1>&6
4cdb0ab0 14592echo "configure:14593: checking for wcslen in -lw" >&5
4f14bcd8
GD
14593ac_lib_var=`echo w'_'wcslen | sed 'y%./+-%__p_%'`
14594if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
698dcdb6 14595 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 14596else
4f14bcd8
GD
14597 ac_save_LIBS="$LIBS"
14598LIBS="-lw $LIBS"
14599cat > conftest.$ac_ext <<EOF
4cdb0ab0 14600#line 14601 "configure"
10f2d63a 14601#include "confdefs.h"
4f14bcd8
GD
14602/* Override any gcc2 internal prototype to avoid an error. */
14603/* We use char because int might match the return type of a gcc2
14604 builtin and then its argument prototype would still apply. */
14605char wcslen();
10f2d63a 14606
698dcdb6 14607int main() {
4f14bcd8 14608wcslen()
698dcdb6
VZ
14609; return 0; }
14610EOF
4cdb0ab0 14611if { (eval echo configure:14612: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 14612 rm -rf conftest*
4f14bcd8 14613 eval "ac_cv_lib_$ac_lib_var=yes"
10f2d63a 14614else
698dcdb6
VZ
14615 echo "configure: failed program was:" >&5
14616 cat conftest.$ac_ext >&5
14617 rm -rf conftest*
4f14bcd8 14618 eval "ac_cv_lib_$ac_lib_var=no"
6232543b 14619fi
698dcdb6 14620rm -f conftest*
4f14bcd8 14621LIBS="$ac_save_LIBS"
703e0a69 14622
1e487827 14623fi
4f14bcd8
GD
14624if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14625 echo "$ac_t""yes" 1>&6
14626
14627 cat >> confdefs.h <<\EOF
14628#define HAVE_WCSLEN 1
9d8deca0
VZ
14629EOF
14630
3d63bc3a 14631 WCHAR_LINK=" -lw"
4f14bcd8
GD
14632
14633else
14634 echo "$ac_t""no" 1>&6
698dcdb6 14635
4f14bcd8 14636 echo $ac_n "checking for wcslen in -lmsvcrt""... $ac_c" 1>&6
4cdb0ab0 14637echo "configure:14638: checking for wcslen in -lmsvcrt" >&5
4f14bcd8
GD
14638ac_lib_var=`echo msvcrt'_'wcslen | sed 'y%./+-%__p_%'`
14639if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
698dcdb6
VZ
14640 echo $ac_n "(cached) $ac_c" 1>&6
14641else
4f14bcd8
GD
14642 ac_save_LIBS="$LIBS"
14643LIBS="-lmsvcrt $LIBS"
14644cat > conftest.$ac_ext <<EOF
4cdb0ab0 14645#line 14646 "configure"
95c8801c 14646#include "confdefs.h"
4f14bcd8
GD
14647/* Override any gcc2 internal prototype to avoid an error. */
14648/* We use char because int might match the return type of a gcc2
14649 builtin and then its argument prototype would still apply. */
14650char wcslen();
95c8801c 14651
4f14bcd8
GD
14652int main() {
14653wcslen()
698dcdb6
VZ
14654; return 0; }
14655EOF
4cdb0ab0 14656if { (eval echo configure:14657: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 14657 rm -rf conftest*
4f14bcd8 14658 eval "ac_cv_lib_$ac_lib_var=yes"
95c8801c 14659else
698dcdb6
VZ
14660 echo "configure: failed program was:" >&5
14661 cat conftest.$ac_ext >&5
14662 rm -rf conftest*
4f14bcd8 14663 eval "ac_cv_lib_$ac_lib_var=no"
95c8801c 14664fi
698dcdb6 14665rm -f conftest*
4f14bcd8 14666LIBS="$ac_save_LIBS"
95c8801c
VS
14667
14668fi
4f14bcd8
GD
14669if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14670 echo "$ac_t""yes" 1>&6
14671
14672 cat >> confdefs.h <<\EOF
14673#define HAVE_WCSLEN 1
14674EOF
698dcdb6 14675
3d63bc3a 14676 WCHAR_LINK=
4f14bcd8
GD
14677
14678else
14679 echo "$ac_t""no" 1>&6
14680fi
10f2d63a 14681
4f14bcd8
GD
14682
14683fi
95c8801c 14684
4f14bcd8 14685
95c8801c 14686fi
10f2d63a 14687
1e487827 14688
4f14bcd8 14689for ac_func in wcsrtombs
eb4efbdc 14690do
698dcdb6 14691echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4cdb0ab0 14692echo "configure:14693: checking for $ac_func" >&5
698dcdb6
VZ
14693if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14694 echo $ac_n "(cached) $ac_c" 1>&6
14695else
14696 cat > conftest.$ac_ext <<EOF
4cdb0ab0 14697#line 14698 "configure"
eb4efbdc
VZ
14698#include "confdefs.h"
14699/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 14700 which can conflict with char $ac_func(); below. */
eb4efbdc
VZ
14701#include <assert.h>
14702/* Override any gcc2 internal prototype to avoid an error. */
14703/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
14704 builtin and then its argument prototype would still apply. */
14705char $ac_func();
14706
14707int main() {
eb4efbdc
VZ
14708
14709/* The GNU C library defines this for functions which it implements
14710 to always fail with ENOSYS. Some functions are actually named
14711 something starting with __ and the normal name is an alias. */
14712#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14713choke me
14714#else
698dcdb6 14715$ac_func();
eb4efbdc
VZ
14716#endif
14717
698dcdb6 14718; return 0; }
eb4efbdc 14719EOF
4cdb0ab0 14720if { (eval echo configure:14721: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
14721 rm -rf conftest*
14722 eval "ac_cv_func_$ac_func=yes"
14723else
14724 echo "configure: failed program was:" >&5
14725 cat conftest.$ac_ext >&5
14726 rm -rf conftest*
14727 eval "ac_cv_func_$ac_func=no"
14728fi
14729rm -f conftest*
14730fi
eb4efbdc 14731
698dcdb6
VZ
14732if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14733 echo "$ac_t""yes" 1>&6
14734 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14735 cat >> confdefs.h <<EOF
14736#define $ac_tr_func 1
14737EOF
14738
14739else
14740 echo "$ac_t""no" 1>&6
eb4efbdc
VZ
14741fi
14742done
14743
698dcdb6 14744
4f14bcd8 14745echo $ac_n "checking for vprintf""... $ac_c" 1>&6
4cdb0ab0 14746echo "configure:14747: checking for vprintf" >&5
4f14bcd8 14747if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
698dcdb6
VZ
14748 echo $ac_n "(cached) $ac_c" 1>&6
14749else
4f14bcd8 14750 cat > conftest.$ac_ext <<EOF
4cdb0ab0 14751#line 14752 "configure"
f6bcfd97 14752#include "confdefs.h"
4f14bcd8
GD
14753/* System header to define __stub macros and hopefully few prototypes,
14754 which can conflict with char vprintf(); below. */
14755#include <assert.h>
14756/* Override any gcc2 internal prototype to avoid an error. */
14757/* We use char because int might match the return type of a gcc2
14758 builtin and then its argument prototype would still apply. */
14759char vprintf();
14760
698dcdb6 14761int main() {
f6bcfd97 14762
4f14bcd8
GD
14763/* The GNU C library defines this for functions which it implements
14764 to always fail with ENOSYS. Some functions are actually named
14765 something starting with __ and the normal name is an alias. */
14766#if defined (__stub_vprintf) || defined (__stub___vprintf)
14767choke me
14768#else
14769vprintf();
14770#endif
f6bcfd97 14771
698dcdb6
VZ
14772; return 0; }
14773EOF
4cdb0ab0 14774if { (eval echo configure:14775: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 14775 rm -rf conftest*
4f14bcd8 14776 eval "ac_cv_func_vprintf=yes"
f6bcfd97 14777else
698dcdb6
VZ
14778 echo "configure: failed program was:" >&5
14779 cat conftest.$ac_ext >&5
14780 rm -rf conftest*
4f14bcd8 14781 eval "ac_cv_func_vprintf=no"
6232543b 14782fi
698dcdb6 14783rm -f conftest*
1e487827 14784fi
698dcdb6 14785
4f14bcd8
GD
14786if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
14787 echo "$ac_t""yes" 1>&6
14788 cat >> confdefs.h <<\EOF
14789#define HAVE_VPRINTF 1
f6bcfd97
BP
14790EOF
14791
4f14bcd8
GD
14792else
14793 echo "$ac_t""no" 1>&6
eb4efbdc
VZ
14794fi
14795
4f14bcd8
GD
14796if test "$ac_cv_func_vprintf" != yes; then
14797echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
4cdb0ab0 14798echo "configure:14799: checking for _doprnt" >&5
4f14bcd8 14799if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
698dcdb6
VZ
14800 echo $ac_n "(cached) $ac_c" 1>&6
14801else
14802 cat > conftest.$ac_ext <<EOF
4cdb0ab0 14803#line 14804 "configure"
10f2d63a
VZ
14804#include "confdefs.h"
14805/* System header to define __stub macros and hopefully few prototypes,
4f14bcd8 14806 which can conflict with char _doprnt(); below. */
10f2d63a
VZ
14807#include <assert.h>
14808/* Override any gcc2 internal prototype to avoid an error. */
14809/* We use char because int might match the return type of a gcc2
698dcdb6 14810 builtin and then its argument prototype would still apply. */
4f14bcd8 14811char _doprnt();
698dcdb6
VZ
14812
14813int main() {
10f2d63a
VZ
14814
14815/* The GNU C library defines this for functions which it implements
14816 to always fail with ENOSYS. Some functions are actually named
14817 something starting with __ and the normal name is an alias. */
4f14bcd8 14818#if defined (__stub__doprnt) || defined (__stub____doprnt)
10f2d63a
VZ
14819choke me
14820#else
4f14bcd8 14821_doprnt();
10f2d63a
VZ
14822#endif
14823
698dcdb6 14824; return 0; }
10f2d63a 14825EOF
4cdb0ab0 14826if { (eval echo configure:14827: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 14827 rm -rf conftest*
4f14bcd8 14828 eval "ac_cv_func__doprnt=yes"
698dcdb6
VZ
14829else
14830 echo "configure: failed program was:" >&5
14831 cat conftest.$ac_ext >&5
14832 rm -rf conftest*
4f14bcd8 14833 eval "ac_cv_func__doprnt=no"
698dcdb6
VZ
14834fi
14835rm -f conftest*
14836fi
270a909e 14837
4f14bcd8 14838if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
698dcdb6 14839 echo "$ac_t""yes" 1>&6
4f14bcd8
GD
14840 cat >> confdefs.h <<\EOF
14841#define HAVE_DOPRNT 1
698dcdb6 14842EOF
4f14bcd8 14843
698dcdb6
VZ
14844else
14845 echo "$ac_t""no" 1>&6
270a909e 14846fi
270a909e 14847
4f14bcd8 14848fi
1e487827 14849
52e8b690 14850
52e8b690 14851
52e8b690 14852
52e8b690 14853
52e8b690 14854
4f14bcd8 14855echo $ac_n "checking for vsnprintf""... $ac_c" 1>&6
4cdb0ab0 14856echo "configure:14857: checking for vsnprintf" >&5
4f14bcd8 14857if eval "test \"`echo '$''{'wx_cv_func_vsnprintf'+set}'`\" = set"; then
698dcdb6 14858 echo $ac_n "(cached) $ac_c" 1>&6
c63c7106 14859else
4f14bcd8 14860
af15babd 14861 cat > conftest.$ac_ext <<EOF
4cdb0ab0 14862#line 14863 "configure"
c63c7106 14863#include "confdefs.h"
698dcdb6 14864
4f14bcd8
GD
14865 #include <stdio.h>
14866 #include <stdarg.h>
14867
af15babd
VZ
14868int main() {
14869
4f14bcd8
GD
14870 int wx_test_vsnprintf(const char *, ...);
14871
14872 wx_test_vsnprintf("%s");
14873 return 0;
14874 }
14875
14876 int wx_test_vsnprintf(const char *fmt, ...)
14877 {
14878 char *s;
14879
14880 va_list argp;
14881 va_start(argp, fmt);
14882 vsnprintf(s, 42, fmt, argp);
14883 va_end(argp);
14884
af15babd
VZ
14885; return 0; }
14886EOF
4cdb0ab0 14887if { (eval echo configure:14888: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
af15babd
VZ
14888 rm -rf conftest*
14889
4f14bcd8
GD
14890 wx_cv_func_vsnprintf=yes
14891
af15babd
VZ
14892else
14893 echo "configure: failed program was:" >&5
14894 cat conftest.$ac_ext >&5
14895 rm -rf conftest*
14896
4f14bcd8 14897 cat > conftest.$ac_ext <<EOF
4cdb0ab0 14898#line 14899 "configure"
af15babd 14899#include "confdefs.h"
af15babd 14900
4f14bcd8
GD
14901 #include <stdio.h>
14902 #include <stdarg.h>
14903
af15babd
VZ
14904int main() {
14905
4f14bcd8
GD
14906 int wx_test_vsnprintf(const char *, ...);
14907
14908 wx_test_vsnprintf("%s");
14909 return 0;
14910 }
14911
14912 int wx_test_vsnprintf(const char *fmt, ...)
14913 {
14914 char *s;
af15babd 14915
4f14bcd8
GD
14916 va_list argp;
14917 va_start(argp, fmt);
14918 _vsnprintf(s, 42, fmt, argp);
14919 va_end(argp);
14920
af15babd
VZ
14921; return 0; }
14922EOF
4cdb0ab0 14923if { (eval echo configure:14924: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
af15babd 14924 rm -rf conftest*
4f14bcd8
GD
14925
14926 wx_cv_func_vsnprintf=yes
14927
af15babd
VZ
14928else
14929 echo "configure: failed program was:" >&5
14930 cat conftest.$ac_ext >&5
14931 rm -rf conftest*
4f14bcd8
GD
14932
14933 wx_cv_func_vsnprintf=no
14934
af15babd
VZ
14935fi
14936rm -f conftest*
4f14bcd8 14937
af15babd 14938fi
4f14bcd8 14939rm -f conftest*
af15babd 14940
af15babd 14941fi
af15babd 14942
4f14bcd8 14943echo "$ac_t""$wx_cv_func_vsnprintf" 1>&6
af15babd 14944
4f14bcd8
GD
14945if test "$wx_cv_func_vsnprintf" = yes; then
14946 cat >> confdefs.h <<\EOF
14947#define HAVE_VSNPRINTF 1
14948EOF
14949
14950else
f9bc1684 14951 echo "configure: warning: unsafe function vsprintf will be used instead of vsnprintf" 1>&2
af15babd
VZ
14952fi
14953
4f14bcd8 14954echo $ac_n "checking for vsscanf""... $ac_c" 1>&6
4cdb0ab0 14955echo "configure:14956: checking for vsscanf" >&5
4f14bcd8 14956if eval "test \"`echo '$''{'wx_cv_func_vsscanf'+set}'`\" = set"; then
af15babd
VZ
14957 echo $ac_n "(cached) $ac_c" 1>&6
14958else
4f14bcd8 14959
af15babd 14960 cat > conftest.$ac_ext <<EOF
4cdb0ab0 14961#line 14962 "configure"
af15babd 14962#include "confdefs.h"
af15babd 14963
4f14bcd8
GD
14964 #include <stdio.h>
14965 #include <stdarg.h>
14966
af15babd
VZ
14967int main() {
14968
4f14bcd8
GD
14969 int wx_test_vsscanf(const char *, ...);
14970
14971 wx_test_vsscanf("%d");
14972 return 0;
14973 }
af15babd 14974
4f14bcd8
GD
14975 int wx_test_vsscanf(const char *fmt, ...)
14976 {
14977 va_list argp;
14978 va_start(argp, fmt);
14979 vsscanf("42", fmt, argp);
14980 va_end(argp);
14981
af15babd
VZ
14982; return 0; }
14983EOF
4cdb0ab0 14984if { (eval echo configure:14985: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
af15babd 14985 rm -rf conftest*
4f14bcd8
GD
14986
14987 wx_cv_func_vsscanf=yes
14988
af15babd
VZ
14989else
14990 echo "configure: failed program was:" >&5
14991 cat conftest.$ac_ext >&5
14992 rm -rf conftest*
4f14bcd8
GD
14993
14994 wx_cv_func_vsscanf=no
14995
af15babd
VZ
14996fi
14997rm -f conftest*
4f14bcd8 14998
af15babd
VZ
14999fi
15000
4f14bcd8
GD
15001echo "$ac_t""$wx_cv_func_vsscanf" 1>&6
15002
15003if test "$wx_cv_func_vsscanf" = yes; then
15004 cat >> confdefs.h <<\EOF
15005#define HAVE_VSSCANF 1
af15babd 15006EOF
4f14bcd8 15007
af15babd 15008fi
af15babd 15009
4f14bcd8 15010if test "$TOOLKIT" != "MSW"; then
af15babd 15011
4f14bcd8
GD
15012
15013
15014ac_ext=C
15015# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15016ac_cpp='$CXXCPP $CPPFLAGS'
15017ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15018ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15019cross_compiling=$ac_cv_prog_cxx_cross
15020
15021echo $ac_n "checking if iconv() takes char**""... $ac_c" 1>&6
4cdb0ab0 15022echo "configure:15023: checking if iconv() takes char**" >&5
4f14bcd8 15023if eval "test \"`echo '$''{'wx_cv_iconv_takes_char'+set}'`\" = set"; then
af15babd
VZ
15024 echo $ac_n "(cached) $ac_c" 1>&6
15025else
4f14bcd8
GD
15026
15027 cat > conftest.$ac_ext <<EOF
4cdb0ab0 15028#line 15029 "configure"
af15babd 15029#include "confdefs.h"
4f14bcd8 15030#include <iconv.h>
af15babd
VZ
15031int main() {
15032
4f14bcd8
GD
15033 char **inbuf, **outbuf;
15034 iconv_t cd;
15035 size_t insz, outsz;
15036 iconv(cd, inbuf, &insz, outbuf, &outsz);
15037
af15babd
VZ
15038; return 0; }
15039EOF
4cdb0ab0 15040if { (eval echo configure:15041: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
af15babd 15041 rm -rf conftest*
4f14bcd8 15042 wx_cv_iconv_takes_char=yes
af15babd
VZ
15043else
15044 echo "configure: failed program was:" >&5
15045 cat conftest.$ac_ext >&5
15046 rm -rf conftest*
4f14bcd8 15047 wx_cv_iconv_takes_char=no
af15babd
VZ
15048fi
15049rm -f conftest*
af15babd 15050
af15babd 15051fi
af15babd 15052
4f14bcd8
GD
15053echo "$ac_t""$wx_cv_iconv_takes_char" 1>&6
15054ac_ext=c
15055# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15056ac_cpp='$CPP $CPPFLAGS'
15057ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15058ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15059cross_compiling=$ac_cv_prog_cc_cross
af15babd 15060
4f14bcd8
GD
15061if test "$wx_cv_iconv_takes_char" = yes ; then
15062 cat >> confdefs.h <<\EOF
15063#define WX_ICONV_TAKES_CHAR 1
af15babd
VZ
15064EOF
15065
af15babd
VZ
15066fi
15067
af15babd 15068
4f14bcd8
GD
15069if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
15070 for ac_func in sigaction
af15babd
VZ
15071do
15072echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4cdb0ab0 15073echo "configure:15074: checking for $ac_func" >&5
af15babd
VZ
15074if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15075 echo $ac_n "(cached) $ac_c" 1>&6
15076else
15077 cat > conftest.$ac_ext <<EOF
4cdb0ab0 15078#line 15079 "configure"
af15babd
VZ
15079#include "confdefs.h"
15080/* System header to define __stub macros and hopefully few prototypes,
15081 which can conflict with char $ac_func(); below. */
15082#include <assert.h>
15083/* Override any gcc2 internal prototype to avoid an error. */
15084/* We use char because int might match the return type of a gcc2
15085 builtin and then its argument prototype would still apply. */
15086char $ac_func();
15087
15088int main() {
15089
15090/* The GNU C library defines this for functions which it implements
15091 to always fail with ENOSYS. Some functions are actually named
15092 something starting with __ and the normal name is an alias. */
15093#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15094choke me
15095#else
15096$ac_func();
15097#endif
15098
15099; return 0; }
15100EOF
4cdb0ab0 15101if { (eval echo configure:15102: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
af15babd
VZ
15102 rm -rf conftest*
15103 eval "ac_cv_func_$ac_func=yes"
15104else
15105 echo "configure: failed program was:" >&5
15106 cat conftest.$ac_ext >&5
15107 rm -rf conftest*
15108 eval "ac_cv_func_$ac_func=no"
15109fi
15110rm -f conftest*
15111fi
15112
15113if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15114 echo "$ac_t""yes" 1>&6
15115 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15116 cat >> confdefs.h <<EOF
15117#define $ac_tr_func 1
15118EOF
4f14bcd8 15119
af15babd
VZ
15120else
15121 echo "$ac_t""no" 1>&6
4f14bcd8
GD
15122fi
15123done
15124
15125
15126 if test "$ac_cv_func_sigaction" = "no"; then
15127 echo "configure: warning: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" 1>&2
15128 wxUSE_ON_FATAL_EXCEPTION=no
15129 fi
15130
15131 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
15132
15133 ac_ext=C
15134# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15135ac_cpp='$CXXCPP $CPPFLAGS'
15136ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15137ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15138cross_compiling=$ac_cv_prog_cxx_cross
15139
15140
15141 echo $ac_n "checking for sa_handler type""... $ac_c" 1>&6
4cdb0ab0 15142echo "configure:15143: checking for sa_handler type" >&5
4f14bcd8 15143if eval "test \"`echo '$''{'wx_cv_type_sa_handler'+set}'`\" = set"; then
af15babd
VZ
15144 echo $ac_n "(cached) $ac_c" 1>&6
15145else
4f14bcd8
GD
15146
15147 cat > conftest.$ac_ext <<EOF
4cdb0ab0 15148#line 15149 "configure"
af15babd 15149#include "confdefs.h"
4f14bcd8 15150#include <signal.h>
af15babd 15151int main() {
4f14bcd8
GD
15152
15153 extern void testSigHandler(int);
15154
15155 struct sigaction sa;
15156 sa.sa_handler = testSigHandler;
15157
af15babd
VZ
15158; return 0; }
15159EOF
4cdb0ab0 15160if { (eval echo configure:15161: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
af15babd 15161 rm -rf conftest*
4f14bcd8
GD
15162
15163 wx_cv_type_sa_handler=int
15164
af15babd
VZ
15165else
15166 echo "configure: failed program was:" >&5
15167 cat conftest.$ac_ext >&5
15168 rm -rf conftest*
4f14bcd8
GD
15169
15170 wx_cv_type_sa_handler=void
15171
af15babd
VZ
15172fi
15173rm -f conftest*
4f14bcd8
GD
15174
15175fi
15176
15177echo "$ac_t""$wx_cv_type_sa_handler" 1>&6
15178
15179 ac_ext=c
15180# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15181ac_cpp='$CPP $CPPFLAGS'
15182ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15183ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15184cross_compiling=$ac_cv_prog_cc_cross
af15babd 15185
4f14bcd8
GD
15186
15187 cat >> confdefs.h <<EOF
15188#define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
af15babd
VZ
15189EOF
15190
4f14bcd8
GD
15191 fi
15192fi
af15babd 15193
4f14bcd8 15194for ac_func in vfork
af15babd
VZ
15195do
15196echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4cdb0ab0 15197echo "configure:15198: checking for $ac_func" >&5
af15babd
VZ
15198if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15199 echo $ac_n "(cached) $ac_c" 1>&6
15200else
15201 cat > conftest.$ac_ext <<EOF
4cdb0ab0 15202#line 15203 "configure"
af15babd
VZ
15203#include "confdefs.h"
15204/* System header to define __stub macros and hopefully few prototypes,
15205 which can conflict with char $ac_func(); below. */
15206#include <assert.h>
15207/* Override any gcc2 internal prototype to avoid an error. */
15208/* We use char because int might match the return type of a gcc2
15209 builtin and then its argument prototype would still apply. */
15210char $ac_func();
15211
15212int main() {
15213
15214/* The GNU C library defines this for functions which it implements
15215 to always fail with ENOSYS. Some functions are actually named
15216 something starting with __ and the normal name is an alias. */
15217#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15218choke me
15219#else
15220$ac_func();
15221#endif
15222
15223; return 0; }
15224EOF
4cdb0ab0 15225if { (eval echo configure:15226: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
af15babd
VZ
15226 rm -rf conftest*
15227 eval "ac_cv_func_$ac_func=yes"
15228else
15229 echo "configure: failed program was:" >&5
15230 cat conftest.$ac_ext >&5
15231 rm -rf conftest*
15232 eval "ac_cv_func_$ac_func=no"
15233fi
15234rm -f conftest*
15235fi
15236
15237if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15238 echo "$ac_t""yes" 1>&6
15239 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15240 cat >> confdefs.h <<EOF
15241#define $ac_tr_func 1
15242EOF
4f14bcd8 15243
af15babd
VZ
15244else
15245 echo "$ac_t""no" 1>&6
af15babd
VZ
15246fi
15247done
15248
af15babd 15249
ade35f11
VZ
15250for ac_func in mkstemp mktemp
15251do
15252echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4cdb0ab0 15253echo "configure:15254: checking for $ac_func" >&5
ade35f11
VZ
15254if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15255 echo $ac_n "(cached) $ac_c" 1>&6
15256else
15257 cat > conftest.$ac_ext <<EOF
4cdb0ab0 15258#line 15259 "configure"
ade35f11
VZ
15259#include "confdefs.h"
15260/* System header to define __stub macros and hopefully few prototypes,
15261 which can conflict with char $ac_func(); below. */
15262#include <assert.h>
15263/* Override any gcc2 internal prototype to avoid an error. */
15264/* We use char because int might match the return type of a gcc2
15265 builtin and then its argument prototype would still apply. */
15266char $ac_func();
15267
15268int main() {
15269
15270/* The GNU C library defines this for functions which it implements
15271 to always fail with ENOSYS. Some functions are actually named
15272 something starting with __ and the normal name is an alias. */
15273#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15274choke me
15275#else
15276$ac_func();
15277#endif
15278
15279; return 0; }
15280EOF
4cdb0ab0 15281if { (eval echo configure:15282: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ade35f11
VZ
15282 rm -rf conftest*
15283 eval "ac_cv_func_$ac_func=yes"
15284else
15285 echo "configure: failed program was:" >&5
15286 cat conftest.$ac_ext >&5
15287 rm -rf conftest*
15288 eval "ac_cv_func_$ac_func=no"
15289fi
15290rm -f conftest*
15291fi
15292
15293if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15294 echo "$ac_t""yes" 1>&6
15295 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15296 cat >> confdefs.h <<EOF
15297#define $ac_tr_func 1
15298EOF
15299 break
15300else
15301 echo "$ac_t""no" 1>&6
15302fi
15303done
15304
15305
4f14bcd8 15306echo $ac_n "checking for statfs""... $ac_c" 1>&6
4cdb0ab0 15307echo "configure:15308: checking for statfs" >&5
4f14bcd8
GD
15308if eval "test \"`echo '$''{'wx_cv_func_statfs'+set}'`\" = set"; then
15309 echo $ac_n "(cached) $ac_c" 1>&6
15310else
15311 cat > conftest.$ac_ext <<EOF
4cdb0ab0 15312#line 15313 "configure"
4f14bcd8
GD
15313#include "confdefs.h"
15314
15315 #if defined(__BSD__)
15316 #include <sys/param.h>
15317 #include <sys/mount.h>
15318 #else
15319 #include <sys/vfs.h>
15320 #endif
15321
15322int main() {
15323
15324 long l;
15325 struct statfs fs;
15326 statfs("/", &fs);
15327 l = fs.f_bsize;
15328 l += fs.f_blocks;
15329 l += fs.f_bavail;
15330
15331; return 0; }
15332EOF
4cdb0ab0 15333if { (eval echo configure:15334: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4f14bcd8
GD
15334 rm -rf conftest*
15335
15336 wx_cv_func_statfs=yes
15337
15338else
15339 echo "configure: failed program was:" >&5
15340 cat conftest.$ac_ext >&5
15341 rm -rf conftest*
15342
15343 wx_cv_func_statfs=no
af15babd
VZ
15344
15345
15346fi
4f14bcd8 15347rm -f conftest*
af15babd
VZ
15348
15349fi
15350
4f14bcd8
GD
15351echo "$ac_t""$wx_cv_func_statfs" 1>&6
15352
15353if test "$wx_cv_func_statfs" = "yes"; then
15354 cat >> confdefs.h <<\EOF
15355#define HAVE_STATFS 1
15356EOF
15357
15358else
15359 echo $ac_n "checking for statvfs""... $ac_c" 1>&6
4cdb0ab0 15360echo "configure:15361: checking for statvfs" >&5
4f14bcd8 15361if eval "test \"`echo '$''{'wx_cv_func_statvfs'+set}'`\" = set"; then
af15babd
VZ
15362 echo $ac_n "(cached) $ac_c" 1>&6
15363else
15364 cat > conftest.$ac_ext <<EOF
4cdb0ab0 15365#line 15366 "configure"
af15babd 15366#include "confdefs.h"
af15babd 15367
4f14bcd8
GD
15368 #include <sys/statvfs.h>
15369
af15babd
VZ
15370int main() {
15371
4f14bcd8
GD
15372 long l;
15373 struct statvfs fs;
15374 statvfs("/", &fs);
15375 l = fs.f_bsize;
15376 l += fs.f_blocks;
15377 l += fs.f_bavail;
15378
af15babd
VZ
15379; return 0; }
15380EOF
4cdb0ab0 15381if { (eval echo configure:15382: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
af15babd 15382 rm -rf conftest*
4f14bcd8
GD
15383
15384 wx_cv_func_statvfs=yes
15385
af15babd
VZ
15386else
15387 echo "configure: failed program was:" >&5
15388 cat conftest.$ac_ext >&5
15389 rm -rf conftest*
4f14bcd8
GD
15390
15391 wx_cv_func_statvfs=no
15392
15393
af15babd
VZ
15394fi
15395rm -f conftest*
4f14bcd8 15396
af15babd
VZ
15397fi
15398
4f14bcd8 15399echo "$ac_t""$wx_cv_func_statvfs" 1>&6
af15babd 15400
4f14bcd8
GD
15401 if test "$wx_cv_func_statvfs" = "yes"; then
15402 cat >> confdefs.h <<\EOF
15403#define HAVE_STATVFS 1
15404EOF
af15babd 15405
4f14bcd8
GD
15406 else
15407 echo "configure: warning: wxGetDiskSpace() function won't work without statfs()" 1>&2
15408 fi
15409fi
af15babd 15410
4f14bcd8
GD
15411if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
15412 for ac_func in fcntl flock
af15babd
VZ
15413do
15414echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4cdb0ab0 15415echo "configure:15416: checking for $ac_func" >&5
af15babd
VZ
15416if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15417 echo $ac_n "(cached) $ac_c" 1>&6
15418else
15419 cat > conftest.$ac_ext <<EOF
4cdb0ab0 15420#line 15421 "configure"
af15babd
VZ
15421#include "confdefs.h"
15422/* System header to define __stub macros and hopefully few prototypes,
15423 which can conflict with char $ac_func(); below. */
15424#include <assert.h>
15425/* Override any gcc2 internal prototype to avoid an error. */
af15babd
VZ
15426/* We use char because int might match the return type of a gcc2
15427 builtin and then its argument prototype would still apply. */
15428char $ac_func();
15429
15430int main() {
15431
15432/* The GNU C library defines this for functions which it implements
15433 to always fail with ENOSYS. Some functions are actually named
15434 something starting with __ and the normal name is an alias. */
15435#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15436choke me
15437#else
15438$ac_func();
15439#endif
15440
15441; return 0; }
15442EOF
4cdb0ab0 15443if { (eval echo configure:15444: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
af15babd
VZ
15444 rm -rf conftest*
15445 eval "ac_cv_func_$ac_func=yes"
15446else
15447 echo "configure: failed program was:" >&5
15448 cat conftest.$ac_ext >&5
15449 rm -rf conftest*
15450 eval "ac_cv_func_$ac_func=no"
15451fi
15452rm -f conftest*
15453fi
15454
15455if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15456 echo "$ac_t""yes" 1>&6
15457 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15458 cat >> confdefs.h <<EOF
15459#define $ac_tr_func 1
15460EOF
4f14bcd8 15461 break
af15babd
VZ
15462else
15463 echo "$ac_t""no" 1>&6
15464fi
15465done
15466
15467
4f14bcd8
GD
15468 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
15469 echo "configure: warning: wxSingleInstanceChecker not available" 1>&2
15470 wxUSE_SNGLINST_CHECKER=no
15471 fi
15472fi
af15babd 15473
4f14bcd8 15474for ac_func in timegm
af15babd
VZ
15475do
15476echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4cdb0ab0 15477echo "configure:15478: checking for $ac_func" >&5
af15babd
VZ
15478if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15479 echo $ac_n "(cached) $ac_c" 1>&6
15480else
15481 cat > conftest.$ac_ext <<EOF
4cdb0ab0 15482#line 15483 "configure"
af15babd
VZ
15483#include "confdefs.h"
15484/* System header to define __stub macros and hopefully few prototypes,
15485 which can conflict with char $ac_func(); below. */
15486#include <assert.h>
15487/* Override any gcc2 internal prototype to avoid an error. */
15488/* We use char because int might match the return type of a gcc2
15489 builtin and then its argument prototype would still apply. */
15490char $ac_func();
15491
698dcdb6 15492int main() {
698dcdb6 15493
af15babd
VZ
15494/* The GNU C library defines this for functions which it implements
15495 to always fail with ENOSYS. Some functions are actually named
15496 something starting with __ and the normal name is an alias. */
15497#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15498choke me
15499#else
15500$ac_func();
15501#endif
15502
698dcdb6
VZ
15503; return 0; }
15504EOF
4cdb0ab0 15505if { (eval echo configure:15506: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 15506 rm -rf conftest*
af15babd 15507 eval "ac_cv_func_$ac_func=yes"
698dcdb6
VZ
15508else
15509 echo "configure: failed program was:" >&5
15510 cat conftest.$ac_ext >&5
15511 rm -rf conftest*
af15babd 15512 eval "ac_cv_func_$ac_func=no"
1e487827 15513fi
9952adac 15514rm -f conftest*
af15babd 15515fi
703e0a69 15516
af15babd
VZ
15517if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15518 echo "$ac_t""yes" 1>&6
15519 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4f14bcd8
GD
15520 cat >> confdefs.h <<EOF
15521#define $ac_tr_func 1
15522EOF
15523
15524else
15525 echo "$ac_t""no" 1>&6
af15babd
VZ
15526fi
15527done
15528
15529
4f14bcd8 15530for ac_func in putenv setenv
10f2d63a 15531do
698dcdb6 15532echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4cdb0ab0 15533echo "configure:15534: checking for $ac_func" >&5
698dcdb6
VZ
15534if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15535 echo $ac_n "(cached) $ac_c" 1>&6
15536else
15537 cat > conftest.$ac_ext <<EOF
4cdb0ab0 15538#line 15539 "configure"
af15babd
VZ
15539#include "confdefs.h"
15540/* System header to define __stub macros and hopefully few prototypes,
15541 which can conflict with char $ac_func(); below. */
15542#include <assert.h>
15543/* Override any gcc2 internal prototype to avoid an error. */
15544/* We use char because int might match the return type of a gcc2
15545 builtin and then its argument prototype would still apply. */
15546char $ac_func();
15547
15548int main() {
15549
15550/* The GNU C library defines this for functions which it implements
15551 to always fail with ENOSYS. Some functions are actually named
15552 something starting with __ and the normal name is an alias. */
15553#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15554choke me
15555#else
15556$ac_func();
15557#endif
15558
15559; return 0; }
15560EOF
4cdb0ab0 15561if { (eval echo configure:15562: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
af15babd
VZ
15562 rm -rf conftest*
15563 eval "ac_cv_func_$ac_func=yes"
15564else
15565 echo "configure: failed program was:" >&5
15566 cat conftest.$ac_ext >&5
15567 rm -rf conftest*
15568 eval "ac_cv_func_$ac_func=no"
15569fi
15570rm -f conftest*
15571fi
15572
15573if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15574 echo "$ac_t""yes" 1>&6
15575 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15576 cat >> confdefs.h <<EOF
15577#define $ac_tr_func 1
15578EOF
4f14bcd8 15579 break
af15babd
VZ
15580else
15581 echo "$ac_t""no" 1>&6
15582fi
af15babd
VZ
15583done
15584
15585
4f14bcd8
GD
15586HAVE_SOME_SLEEP_FUNC=0
15587if test "$USE_BEOS" = 1; then
15588 cat >> confdefs.h <<\EOF
15589#define HAVE_SLEEP 1
af15babd
VZ
15590EOF
15591
4f14bcd8 15592 HAVE_SOME_SLEEP_FUNC=1
10f2d63a
VZ
15593fi
15594
4f14bcd8
GD
15595if test "$USE_DARWIN" = 1; then
15596 cat >> confdefs.h <<\EOF
15597#define HAVE_USLEEP 1
af15babd 15598EOF
10f2d63a 15599
4f14bcd8 15600 HAVE_SOME_SLEEP_FUNC=1
10f2d63a
VZ
15601fi
15602
4f14bcd8
GD
15603if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
15604 POSIX4_LINK=
15605 for ac_func in nanosleep
15606do
15607echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4cdb0ab0 15608echo "configure:15609: checking for $ac_func" >&5
4f14bcd8 15609if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
698dcdb6 15610 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 15611else
4f14bcd8 15612 cat > conftest.$ac_ext <<EOF
4cdb0ab0 15613#line 15614 "configure"
10f2d63a 15614#include "confdefs.h"
4f14bcd8
GD
15615/* System header to define __stub macros and hopefully few prototypes,
15616 which can conflict with char $ac_func(); below. */
15617#include <assert.h>
10f2d63a
VZ
15618/* Override any gcc2 internal prototype to avoid an error. */
15619/* We use char because int might match the return type of a gcc2
698dcdb6 15620 builtin and then its argument prototype would still apply. */
4f14bcd8 15621char $ac_func();
698dcdb6
VZ
15622
15623int main() {
4f14bcd8
GD
15624
15625/* The GNU C library defines this for functions which it implements
15626 to always fail with ENOSYS. Some functions are actually named
15627 something starting with __ and the normal name is an alias. */
15628#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15629choke me
15630#else
15631$ac_func();
15632#endif
15633
698dcdb6
VZ
15634; return 0; }
15635EOF
4cdb0ab0 15636if { (eval echo configure:15637: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 15637 rm -rf conftest*
4f14bcd8 15638 eval "ac_cv_func_$ac_func=yes"
698dcdb6
VZ
15639else
15640 echo "configure: failed program was:" >&5
15641 cat conftest.$ac_ext >&5
15642 rm -rf conftest*
4f14bcd8 15643 eval "ac_cv_func_$ac_func=no"
698dcdb6
VZ
15644fi
15645rm -f conftest*
698dcdb6 15646fi
4f14bcd8
GD
15647
15648if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
698dcdb6 15649 echo "$ac_t""yes" 1>&6
4f14bcd8
GD
15650 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15651 cat >> confdefs.h <<EOF
15652#define $ac_tr_func 1
15653EOF
15654 cat >> confdefs.h <<\EOF
15655#define HAVE_NANOSLEEP 1
15656EOF
15657
10f2d63a 15658else
698dcdb6 15659 echo "$ac_t""no" 1>&6
4f14bcd8 15660echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
4cdb0ab0 15661echo "configure:15662: checking for nanosleep in -lposix4" >&5
4f14bcd8 15662ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
698dcdb6
VZ
15663if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15664 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 15665else
698dcdb6 15666 ac_save_LIBS="$LIBS"
4f14bcd8 15667LIBS="-lposix4 $LIBS"
698dcdb6 15668cat > conftest.$ac_ext <<EOF
4cdb0ab0 15669#line 15670 "configure"
10f2d63a
VZ
15670#include "confdefs.h"
15671/* Override any gcc2 internal prototype to avoid an error. */
15672/* We use char because int might match the return type of a gcc2
698dcdb6 15673 builtin and then its argument prototype would still apply. */
4f14bcd8 15674char nanosleep();
698dcdb6
VZ
15675
15676int main() {
4f14bcd8 15677nanosleep()
698dcdb6
VZ
15678; return 0; }
15679EOF
4cdb0ab0 15680if { (eval echo configure:15681: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
15681 rm -rf conftest*
15682 eval "ac_cv_lib_$ac_lib_var=yes"
15683else
15684 echo "configure: failed program was:" >&5
15685 cat conftest.$ac_ext >&5
15686 rm -rf conftest*
15687 eval "ac_cv_lib_$ac_lib_var=no"
15688fi
15689rm -f conftest*
15690LIBS="$ac_save_LIBS"
10f2d63a 15691
698dcdb6
VZ
15692fi
15693if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15694 echo "$ac_t""yes" 1>&6
15695
4f14bcd8
GD
15696 cat >> confdefs.h <<\EOF
15697#define HAVE_NANOSLEEP 1
15698EOF
15699
3d63bc3a 15700 POSIX4_LINK=" -lposix4"
4f14bcd8 15701
10f2d63a 15702else
698dcdb6 15703 echo "$ac_t""no" 1>&6
10f2d63a 15704
4f14bcd8
GD
15705 for ac_func in usleep
15706do
15707echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4cdb0ab0 15708echo "configure:15709: checking for $ac_func" >&5
4f14bcd8 15709if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
698dcdb6 15710 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 15711else
698dcdb6 15712 cat > conftest.$ac_ext <<EOF
4cdb0ab0 15713#line 15714 "configure"
10f2d63a 15714#include "confdefs.h"
4f14bcd8
GD
15715/* System header to define __stub macros and hopefully few prototypes,
15716 which can conflict with char $ac_func(); below. */
15717#include <assert.h>
15718/* Override any gcc2 internal prototype to avoid an error. */
15719/* We use char because int might match the return type of a gcc2
15720 builtin and then its argument prototype would still apply. */
15721char $ac_func();
15722
15723int main() {
15724
15725/* The GNU C library defines this for functions which it implements
15726 to always fail with ENOSYS. Some functions are actually named
15727 something starting with __ and the normal name is an alias. */
15728#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15729choke me
15730#else
15731$ac_func();
15732#endif
15733
15734; return 0; }
698dcdb6 15735EOF
4cdb0ab0 15736if { (eval echo configure:15737: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 15737 rm -rf conftest*
4f14bcd8 15738 eval "ac_cv_func_$ac_func=yes"
1e487827 15739else
698dcdb6 15740 echo "configure: failed program was:" >&5
10f2d63a 15741 cat conftest.$ac_ext >&5
698dcdb6 15742 rm -rf conftest*
4f14bcd8 15743 eval "ac_cv_func_$ac_func=no"
10f2d63a 15744fi
698dcdb6 15745rm -f conftest*
10f2d63a 15746fi
4f14bcd8
GD
15747
15748if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
698dcdb6 15749 echo "$ac_t""yes" 1>&6
4f14bcd8
GD
15750 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15751 cat >> confdefs.h <<EOF
15752#define $ac_tr_func 1
15753EOF
15754 cat >> confdefs.h <<\EOF
15755#define HAVE_USLEEP 1
15756EOF
15757
698dcdb6
VZ
15758else
15759 echo "$ac_t""no" 1>&6
4f14bcd8
GD
15760echo "configure: warning: wxSleep() function will not work" 1>&2
15761
10f2d63a 15762fi
4f14bcd8 15763done
10f2d63a 15764
4f14bcd8 15765
698dcdb6 15766
6232543b 15767fi
10f2d63a 15768
698dcdb6 15769
4f14bcd8 15770
1e487827 15771fi
4f14bcd8 15772done
703e0a69 15773
10f2d63a
VZ
15774fi
15775
4f14bcd8 15776for ac_func in uname gethostname
70846f0a 15777do
698dcdb6 15778echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4cdb0ab0 15779echo "configure:15780: checking for $ac_func" >&5
698dcdb6
VZ
15780if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15781 echo $ac_n "(cached) $ac_c" 1>&6
15782else
15783 cat > conftest.$ac_ext <<EOF
4cdb0ab0 15784#line 15785 "configure"
70846f0a
VZ
15785#include "confdefs.h"
15786/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 15787 which can conflict with char $ac_func(); below. */
70846f0a
VZ
15788#include <assert.h>
15789/* Override any gcc2 internal prototype to avoid an error. */
15790/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
15791 builtin and then its argument prototype would still apply. */
15792char $ac_func();
15793
15794int main() {
70846f0a
VZ
15795
15796/* The GNU C library defines this for functions which it implements
15797 to always fail with ENOSYS. Some functions are actually named
15798 something starting with __ and the normal name is an alias. */
15799#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15800choke me
15801#else
698dcdb6 15802$ac_func();
70846f0a
VZ
15803#endif
15804
698dcdb6 15805; return 0; }
70846f0a 15806EOF
4cdb0ab0 15807if { (eval echo configure:15808: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
15808 rm -rf conftest*
15809 eval "ac_cv_func_$ac_func=yes"
15810else
15811 echo "configure: failed program was:" >&5
15812 cat conftest.$ac_ext >&5
15813 rm -rf conftest*
15814 eval "ac_cv_func_$ac_func=no"
15815fi
15816rm -f conftest*
15817fi
70846f0a 15818
698dcdb6
VZ
15819if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15820 echo "$ac_t""yes" 1>&6
15821 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15822 cat >> confdefs.h <<EOF
15823#define $ac_tr_func 1
15824EOF
4f14bcd8 15825 break
698dcdb6
VZ
15826else
15827 echo "$ac_t""no" 1>&6
70846f0a
VZ
15828fi
15829done
15830
698dcdb6 15831
4f14bcd8
GD
15832
15833ac_ext=C
15834# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15835ac_cpp='$CXXCPP $CPPFLAGS'
15836ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15837ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15838cross_compiling=$ac_cv_prog_cxx_cross
15839
15840
15841for ac_func in strtok_r
10f2d63a 15842do
4f14bcd8 15843echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4cdb0ab0 15844echo "configure:15845: checking for $ac_func" >&5
4f14bcd8 15845if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
698dcdb6
VZ
15846 echo $ac_n "(cached) $ac_c" 1>&6
15847else
15848 cat > conftest.$ac_ext <<EOF
4cdb0ab0 15849#line 15850 "configure"
10f2d63a 15850#include "confdefs.h"
4f14bcd8
GD
15851/* System header to define __stub macros and hopefully few prototypes,
15852 which can conflict with char $ac_func(); below. */
15853#include <assert.h>
15854/* Override any gcc2 internal prototype to avoid an error. */
15855#ifdef __cplusplus
15856extern "C"
15857#endif
15858/* We use char because int might match the return type of a gcc2
15859 builtin and then its argument prototype would still apply. */
15860char $ac_func();
15861
15862int main() {
15863
15864/* The GNU C library defines this for functions which it implements
15865 to always fail with ENOSYS. Some functions are actually named
15866 something starting with __ and the normal name is an alias. */
15867#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15868choke me
15869#else
15870$ac_func();
15871#endif
15872
15873; return 0; }
698dcdb6 15874EOF
4cdb0ab0 15875if { (eval echo configure:15876: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 15876 rm -rf conftest*
4f14bcd8 15877 eval "ac_cv_func_$ac_func=yes"
1e487827 15878else
698dcdb6 15879 echo "configure: failed program was:" >&5
10f2d63a 15880 cat conftest.$ac_ext >&5
698dcdb6 15881 rm -rf conftest*
4f14bcd8 15882 eval "ac_cv_func_$ac_func=no"
10f2d63a 15883fi
698dcdb6 15884rm -f conftest*
10f2d63a 15885fi
4f14bcd8
GD
15886
15887if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
698dcdb6 15888 echo "$ac_t""yes" 1>&6
4f14bcd8 15889 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
698dcdb6 15890 cat >> confdefs.h <<EOF
4f14bcd8 15891#define $ac_tr_func 1
10f2d63a 15892EOF
698dcdb6
VZ
15893
15894else
15895 echo "$ac_t""no" 1>&6
10f2d63a
VZ
15896fi
15897done
15898
698dcdb6 15899
4f14bcd8
GD
15900ac_ext=c
15901# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15902ac_cpp='$CPP $CPPFLAGS'
15903ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15904ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15905cross_compiling=$ac_cv_prog_cc_cross
15906
15907
15908INET_LINK=
15909for ac_func in inet_addr
15910do
15911echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4cdb0ab0 15912echo "configure:15913: checking for $ac_func" >&5
4f14bcd8 15913if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
698dcdb6 15914 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 15915else
4f14bcd8 15916 cat > conftest.$ac_ext <<EOF
4cdb0ab0 15917#line 15918 "configure"
10f2d63a 15918#include "confdefs.h"
4f14bcd8
GD
15919/* System header to define __stub macros and hopefully few prototypes,
15920 which can conflict with char $ac_func(); below. */
15921#include <assert.h>
10f2d63a
VZ
15922/* Override any gcc2 internal prototype to avoid an error. */
15923/* We use char because int might match the return type of a gcc2
698dcdb6 15924 builtin and then its argument prototype would still apply. */
4f14bcd8 15925char $ac_func();
698dcdb6
VZ
15926
15927int main() {
4f14bcd8
GD
15928
15929/* The GNU C library defines this for functions which it implements
15930 to always fail with ENOSYS. Some functions are actually named
15931 something starting with __ and the normal name is an alias. */
15932#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15933choke me
15934#else
15935$ac_func();
15936#endif
15937
698dcdb6
VZ
15938; return 0; }
15939EOF
4cdb0ab0 15940if { (eval echo configure:15941: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 15941 rm -rf conftest*
4f14bcd8 15942 eval "ac_cv_func_$ac_func=yes"
698dcdb6
VZ
15943else
15944 echo "configure: failed program was:" >&5
15945 cat conftest.$ac_ext >&5
15946 rm -rf conftest*
4f14bcd8 15947 eval "ac_cv_func_$ac_func=no"
698dcdb6
VZ
15948fi
15949rm -f conftest*
698dcdb6 15950fi
4f14bcd8
GD
15951
15952if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
698dcdb6 15953 echo "$ac_t""yes" 1>&6
4f14bcd8
GD
15954 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15955 cat >> confdefs.h <<EOF
15956#define $ac_tr_func 1
15957EOF
15958 cat >> confdefs.h <<\EOF
15959#define HAVE_INET_ADDR 1
10f2d63a
VZ
15960EOF
15961
15962else
698dcdb6 15963 echo "$ac_t""no" 1>&6
4f14bcd8 15964echo $ac_n "checking for inet_addr in -lnsl""... $ac_c" 1>&6
4cdb0ab0 15965echo "configure:15966: checking for inet_addr in -lnsl" >&5
4f14bcd8 15966ac_lib_var=`echo nsl'_'inet_addr | sed 'y%./+-%__p_%'`
698dcdb6
VZ
15967if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15968 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 15969else
698dcdb6 15970 ac_save_LIBS="$LIBS"
4f14bcd8 15971LIBS="-lnsl $LIBS"
698dcdb6 15972cat > conftest.$ac_ext <<EOF
4cdb0ab0 15973#line 15974 "configure"
10f2d63a
VZ
15974#include "confdefs.h"
15975/* Override any gcc2 internal prototype to avoid an error. */
15976/* We use char because int might match the return type of a gcc2
698dcdb6 15977 builtin and then its argument prototype would still apply. */
4f14bcd8 15978char inet_addr();
698dcdb6
VZ
15979
15980int main() {
4f14bcd8 15981inet_addr()
698dcdb6
VZ
15982; return 0; }
15983EOF
4cdb0ab0 15984if { (eval echo configure:15985: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
15985 rm -rf conftest*
15986 eval "ac_cv_lib_$ac_lib_var=yes"
15987else
15988 echo "configure: failed program was:" >&5
15989 cat conftest.$ac_ext >&5
15990 rm -rf conftest*
15991 eval "ac_cv_lib_$ac_lib_var=no"
15992fi
15993rm -f conftest*
15994LIBS="$ac_save_LIBS"
15995
15996fi
15997if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15998 echo "$ac_t""yes" 1>&6
4f14bcd8 15999 INET_LINK="nsl"
10f2d63a 16000else
698dcdb6 16001 echo "$ac_t""no" 1>&6
4f14bcd8 16002echo $ac_n "checking for inet_addr in -lresolv""... $ac_c" 1>&6
4cdb0ab0 16003echo "configure:16004: checking for inet_addr in -lresolv" >&5
4f14bcd8 16004ac_lib_var=`echo resolv'_'inet_addr | sed 'y%./+-%__p_%'`
698dcdb6
VZ
16005if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16006 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 16007else
698dcdb6 16008 ac_save_LIBS="$LIBS"
4f14bcd8 16009LIBS="-lresolv $LIBS"
698dcdb6 16010cat > conftest.$ac_ext <<EOF
4cdb0ab0 16011#line 16012 "configure"
10f2d63a
VZ
16012#include "confdefs.h"
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 inet_addr();
698dcdb6
VZ
16017
16018int main() {
4f14bcd8 16019inet_addr()
698dcdb6
VZ
16020; return 0; }
16021EOF
4cdb0ab0 16022if { (eval echo configure:16023: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
16023 rm -rf conftest*
16024 eval "ac_cv_lib_$ac_lib_var=yes"
16025else
16026 echo "configure: failed program was:" >&5
16027 cat conftest.$ac_ext >&5
16028 rm -rf conftest*
16029 eval "ac_cv_lib_$ac_lib_var=no"
16030fi
16031rm -f conftest*
16032LIBS="$ac_save_LIBS"
16033
16034fi
16035if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16036 echo "$ac_t""yes" 1>&6
4f14bcd8
GD
16037 INET_LINK="resolv"
16038
698dcdb6 16039else
4f14bcd8
GD
16040 echo "$ac_t""no" 1>&6
16041fi
698dcdb6 16042
4f14bcd8 16043
698dcdb6 16044fi
4f14bcd8
GD
16045
16046
698dcdb6
VZ
16047
16048fi
4f14bcd8
GD
16049done
16050
16051
16052for ac_func in inet_aton
16053do
16054echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4cdb0ab0 16055echo "configure:16056: checking for $ac_func" >&5
4f14bcd8 16056if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
698dcdb6
VZ
16057 echo $ac_n "(cached) $ac_c" 1>&6
16058else
4f14bcd8 16059 cat > conftest.$ac_ext <<EOF
4cdb0ab0 16060#line 16061 "configure"
f6bcfd97 16061#include "confdefs.h"
4f14bcd8
GD
16062/* System header to define __stub macros and hopefully few prototypes,
16063 which can conflict with char $ac_func(); below. */
16064#include <assert.h>
f6bcfd97
BP
16065/* Override any gcc2 internal prototype to avoid an error. */
16066/* We use char because int might match the return type of a gcc2
698dcdb6 16067 builtin and then its argument prototype would still apply. */
4f14bcd8 16068char $ac_func();
698dcdb6
VZ
16069
16070int main() {
4f14bcd8
GD
16071
16072/* The GNU C library defines this for functions which it implements
16073 to always fail with ENOSYS. Some functions are actually named
16074 something starting with __ and the normal name is an alias. */
16075#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16076choke me
16077#else
16078$ac_func();
16079#endif
16080
698dcdb6
VZ
16081; return 0; }
16082EOF
4cdb0ab0 16083if { (eval echo configure:16084: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 16084 rm -rf conftest*
4f14bcd8 16085 eval "ac_cv_func_$ac_func=yes"
698dcdb6
VZ
16086else
16087 echo "configure: failed program was:" >&5
16088 cat conftest.$ac_ext >&5
16089 rm -rf conftest*
4f14bcd8 16090 eval "ac_cv_func_$ac_func=no"
698dcdb6
VZ
16091fi
16092rm -f conftest*
698dcdb6 16093fi
4f14bcd8
GD
16094
16095if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
698dcdb6 16096 echo "$ac_t""yes" 1>&6
4f14bcd8
GD
16097 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16098 cat >> confdefs.h <<EOF
16099#define $ac_tr_func 1
16100EOF
16101 cat >> confdefs.h <<\EOF
16102#define HAVE_INET_ATON 1
16103EOF
16104
10f2d63a 16105else
698dcdb6 16106 echo "$ac_t""no" 1>&6
4f14bcd8 16107 echo $ac_n "checking for inet_aton in -l$INET_LINK""... $ac_c" 1>&6
4cdb0ab0 16108echo "configure:16109: checking for inet_aton in -l$INET_LINK" >&5
4f14bcd8 16109ac_lib_var=`echo $INET_LINK'_'inet_aton | sed 'y%./+-%__p_%'`
698dcdb6
VZ
16110if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16111 echo $ac_n "(cached) $ac_c" 1>&6
1e487827 16112else
698dcdb6 16113 ac_save_LIBS="$LIBS"
4f14bcd8 16114LIBS="-l$INET_LINK $LIBS"
698dcdb6 16115cat > conftest.$ac_ext <<EOF
4cdb0ab0 16116#line 16117 "configure"
10f2d63a 16117#include "confdefs.h"
6232543b 16118/* Override any gcc2 internal prototype to avoid an error. */
6232543b 16119/* We use char because int might match the return type of a gcc2
698dcdb6 16120 builtin and then its argument prototype would still apply. */
4f14bcd8 16121char inet_aton();
698dcdb6
VZ
16122
16123int main() {
4f14bcd8 16124inet_aton()
698dcdb6
VZ
16125; return 0; }
16126EOF
4cdb0ab0 16127if { (eval echo configure:16128: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
16128 rm -rf conftest*
16129 eval "ac_cv_lib_$ac_lib_var=yes"
16130else
16131 echo "configure: failed program was:" >&5
16132 cat conftest.$ac_ext >&5
16133 rm -rf conftest*
16134 eval "ac_cv_lib_$ac_lib_var=no"
16135fi
16136rm -f conftest*
16137LIBS="$ac_save_LIBS"
10f2d63a 16138
698dcdb6
VZ
16139fi
16140if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16141 echo "$ac_t""yes" 1>&6
4f14bcd8
GD
16142 cat >> confdefs.h <<\EOF
16143#define HAVE_INET_ATON 1
16144EOF
16145
698dcdb6
VZ
16146else
16147 echo "$ac_t""no" 1>&6
10f2d63a
VZ
16148fi
16149
4f14bcd8 16150
10f2d63a 16151fi
4f14bcd8 16152done
10f2d63a 16153
4f14bcd8
GD
16154
16155if test "x$INET_LINK" != "x"; then
16156 cat >> confdefs.h <<\EOF
16157#define HAVE_INET_ADDR 1
16158EOF
16159
3d63bc3a 16160 INET_LINK=" -l$INET_LINK"
6232543b 16161fi
10f2d63a 16162
1e487827 16163fi
703e0a69 16164
698dcdb6 16165
4f14bcd8
GD
16166cat > confcache <<\EOF
16167# This file is a shell script that caches the results of configure
16168# tests run on this system so they can be shared between configure
16169# scripts and configure runs. It is not useful on other systems.
16170# If it contains results you don't want to keep, you may remove or edit it.
16171#
16172# By default, configure uses ./config.cache as the cache file,
16173# creating it if it does not exist already. You can give configure
16174# the --cache-file=FILE option to use a different cache file; that is
16175# what configure does when it calls configure scripts in
16176# subdirectories, so they share the cache.
16177# Giving --cache-file=/dev/null disables caching, for debugging configure.
16178# config.status only pays attention to the cache file if you give it the
16179# --recheck option to rerun configure.
16180#
f6bcfd97 16181EOF
4f14bcd8
GD
16182# The following way of writing the cache mishandles newlines in values,
16183# but we know of no workaround that is simple, portable, and efficient.
16184# So, don't put newlines in cache variables' values.
16185# Ultrix sh set writes to stderr and can't be redirected directly,
16186# and sets the high bit in the cache file unless we assign to the vars.
16187(set) 2>&1 |
16188 case `(ac_space=' '; set | grep ac_space) 2>&1` in
16189 *ac_space=\ *)
16190 # `set' does not quote correctly, so add quotes (double-quote substitution
16191 # turns \\\\ into \\, and sed turns \\ into \).
16192 sed -n \
16193 -e "s/'/'\\\\''/g" \
16194 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
16195 ;;
16196 *)
16197 # `set' quotes correctly as required by POSIX, so do not add quotes.
16198 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
16199 ;;
16200 esac >> confcache
16201if cmp -s $cache_file confcache; then
16202 :
16203else
16204 if test -w $cache_file; then
16205 echo "updating cache $cache_file"
16206 cat confcache > $cache_file
f6bcfd97 16207 else
4f14bcd8 16208 echo "not updating unwritable cache $cache_file"
f6bcfd97 16209 fi
4f14bcd8
GD
16210fi
16211rm -f confcache
f6bcfd97 16212
4f14bcd8
GD
16213
16214
16215if test "$TOOLKIT" != "MSW"; then
16216
7274f1c7
RL
16217
16218 THREADS_LINK=
16219 THREADS_OBJ=
16220 CODE_GEN_FLAGS=
16221 CODE_GEN_FLAGS_CXX=
16222
16223 if test "$wxUSE_THREADS" = "yes" ; then
16224 if test "$wxUSE_WINE" = 1 ; then
156b2523 16225 echo "configure: warning: Threads are not supported under WINE... disabled" 1>&2
7274f1c7
RL
16226 wxUSE_THREADS="no"
16227 elif test "$USE_BEOS" = 1; then
156b2523 16228 echo "configure: warning: BeOS threads are not yet supported... disabled" 1>&2
7274f1c7
RL
16229 wxUSE_THREADS="no"
16230 fi
4f14bcd8 16231 fi
4f14bcd8 16232
7274f1c7
RL
16233 if test "$wxUSE_THREADS" = "yes" ; then
16234
16235 if test "$USE_AIX" = 1; then
16236 THREADS_LIB=pthreads
16237 else
16238 THREADS_LIB=pthread
16239 fi
4f14bcd8 16240
7274f1c7 16241 echo $ac_n "checking for pthread_create in -l$THREADS_LIB""... $ac_c" 1>&6
4cdb0ab0 16242echo "configure:16243: checking for pthread_create in -l$THREADS_LIB" >&5
4f14bcd8 16243ac_lib_var=`echo $THREADS_LIB'_'pthread_create | sed 'y%./+-%__p_%'`
698dcdb6
VZ
16244if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16245 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 16246else
698dcdb6 16247 ac_save_LIBS="$LIBS"
4f14bcd8 16248LIBS="-l$THREADS_LIB $LIBS"
698dcdb6 16249cat > conftest.$ac_ext <<EOF
4cdb0ab0 16250#line 16251 "configure"
10f2d63a
VZ
16251#include "confdefs.h"
16252/* Override any gcc2 internal prototype to avoid an error. */
16253/* We use char because int might match the return type of a gcc2
698dcdb6 16254 builtin and then its argument prototype would still apply. */
4f14bcd8 16255char pthread_create();
698dcdb6
VZ
16256
16257int main() {
4f14bcd8 16258pthread_create()
698dcdb6
VZ
16259; return 0; }
16260EOF
4cdb0ab0 16261if { (eval echo configure:16262: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
16262 rm -rf conftest*
16263 eval "ac_cv_lib_$ac_lib_var=yes"
16264else
16265 echo "configure: failed program was:" >&5
16266 cat conftest.$ac_ext >&5
16267 rm -rf conftest*
16268 eval "ac_cv_lib_$ac_lib_var=no"
16269fi
16270rm -f conftest*
16271LIBS="$ac_save_LIBS"
16272
16273fi
16274if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16275 echo "$ac_t""yes" 1>&6
4f14bcd8 16276
7274f1c7
RL
16277 THREADS_OBJ="threadpsx.lo"
16278 THREADS_LINK=$THREADS_LIB
16279
10f2d63a 16280else
698dcdb6 16281 echo "$ac_t""no" 1>&6
10f2d63a 16282
7274f1c7 16283 echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6
4cdb0ab0 16284echo "configure:16285: checking for pthread_create in -lc_r" >&5
4f14bcd8
GD
16285ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'`
16286if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
698dcdb6
VZ
16287 echo $ac_n "(cached) $ac_c" 1>&6
16288else
4f14bcd8
GD
16289 ac_save_LIBS="$LIBS"
16290LIBS="-lc_r $LIBS"
16291cat > conftest.$ac_ext <<EOF
4cdb0ab0 16292#line 16293 "configure"
10f2d63a 16293#include "confdefs.h"
4f14bcd8
GD
16294/* Override any gcc2 internal prototype to avoid an error. */
16295/* We use char because int might match the return type of a gcc2
16296 builtin and then its argument prototype would still apply. */
16297char pthread_create();
10f2d63a 16298
4f14bcd8
GD
16299int main() {
16300pthread_create()
698dcdb6
VZ
16301; return 0; }
16302EOF
4cdb0ab0 16303if { (eval echo configure:16304: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 16304 rm -rf conftest*
4f14bcd8 16305 eval "ac_cv_lib_$ac_lib_var=yes"
10f2d63a 16306else
698dcdb6
VZ
16307 echo "configure: failed program was:" >&5
16308 cat conftest.$ac_ext >&5
16309 rm -rf conftest*
4f14bcd8 16310 eval "ac_cv_lib_$ac_lib_var=no"
6232543b 16311fi
698dcdb6 16312rm -f conftest*
4f14bcd8 16313LIBS="$ac_save_LIBS"
d9b9876f 16314
4f14bcd8
GD
16315fi
16316if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16317 echo "$ac_t""yes" 1>&6
16318
7274f1c7
RL
16319 THREADS_OBJ="threadpsx.lo"
16320 THREADS_LINK="c_r"
16321
4f14bcd8
GD
16322else
16323 echo "$ac_t""no" 1>&6
ab252f7b 16324
7274f1c7 16325 ac_safe=`echo "sys/prctl.h" | sed 'y%./+-%__p_%'`
4f14bcd8 16326echo $ac_n "checking for sys/prctl.h""... $ac_c" 1>&6
4cdb0ab0 16327echo "configure:16328: checking for sys/prctl.h" >&5
4f14bcd8 16328if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
698dcdb6 16329 echo $ac_n "(cached) $ac_c" 1>&6
d9b9876f 16330else
4f14bcd8 16331 cat > conftest.$ac_ext <<EOF
4cdb0ab0 16332#line 16333 "configure"
d9b9876f 16333#include "confdefs.h"
4f14bcd8 16334#include <sys/prctl.h>
698dcdb6 16335EOF
4f14bcd8 16336ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4cdb0ab0 16337{ (eval echo configure:16338: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4f14bcd8
GD
16338ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16339if test -z "$ac_err"; then
698dcdb6 16340 rm -rf conftest*
4f14bcd8 16341 eval "ac_cv_header_$ac_safe=yes"
d9b9876f 16342else
4f14bcd8 16343 echo "$ac_err" >&5
698dcdb6
VZ
16344 echo "configure: failed program was:" >&5
16345 cat conftest.$ac_ext >&5
16346 rm -rf conftest*
4f14bcd8 16347 eval "ac_cv_header_$ac_safe=no"
6232543b 16348fi
698dcdb6 16349rm -f conftest*
4f14bcd8
GD
16350fi
16351if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16352 echo "$ac_t""yes" 1>&6
698dcdb6 16353
7274f1c7
RL
16354 THREADS_OBJ="threadsgi.lo"
16355
4f14bcd8
GD
16356else
16357 echo "$ac_t""no" 1>&6
1e487827 16358fi
698dcdb6 16359
7274f1c7 16360
4f14bcd8 16361fi
d9b9876f 16362
7274f1c7 16363
4f14bcd8 16364fi
d9b9876f 16365
4f14bcd8 16366
7274f1c7
RL
16367 if test -z "$THREADS_OBJ" ; then
16368 wxUSE_THREADS=no
156b2523 16369 echo "configure: warning: No thread support on this system... disabled" 1>&2
7274f1c7 16370 fi
4f14bcd8 16371 fi
4f14bcd8 16372
7274f1c7
RL
16373 if test "$wxUSE_THREADS" = "yes" ; then
16374 for ac_func in thr_setconcurrency
4f14bcd8
GD
16375do
16376echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4cdb0ab0 16377echo "configure:16378: checking for $ac_func" >&5
4f14bcd8 16378if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
698dcdb6
VZ
16379 echo $ac_n "(cached) $ac_c" 1>&6
16380else
4f14bcd8 16381 cat > conftest.$ac_ext <<EOF
4cdb0ab0 16382#line 16383 "configure"
d9b9876f 16383#include "confdefs.h"
4f14bcd8
GD
16384/* System header to define __stub macros and hopefully few prototypes,
16385 which can conflict with char $ac_func(); below. */
16386#include <assert.h>
16387/* Override any gcc2 internal prototype to avoid an error. */
16388/* We use char because int might match the return type of a gcc2
16389 builtin and then its argument prototype would still apply. */
16390char $ac_func();
16391
698dcdb6 16392int main() {
d9b9876f 16393
4f14bcd8
GD
16394/* The GNU C library defines this for functions which it implements
16395 to always fail with ENOSYS. Some functions are actually named
16396 something starting with __ and the normal name is an alias. */
16397#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16398choke me
16399#else
16400$ac_func();
16401#endif
16402
698dcdb6
VZ
16403; return 0; }
16404EOF
4cdb0ab0 16405if { (eval echo configure:16406: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 16406 rm -rf conftest*
4f14bcd8 16407 eval "ac_cv_func_$ac_func=yes"
d9b9876f 16408else
698dcdb6
VZ
16409 echo "configure: failed program was:" >&5
16410 cat conftest.$ac_ext >&5
16411 rm -rf conftest*
4f14bcd8 16412 eval "ac_cv_func_$ac_func=no"
6232543b 16413fi
698dcdb6 16414rm -f conftest*
1e487827 16415fi
698dcdb6 16416
4f14bcd8
GD
16417if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16418 echo "$ac_t""yes" 1>&6
16419 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16420 cat >> confdefs.h <<EOF
16421#define $ac_tr_func 1
d9b9876f 16422EOF
4f14bcd8
GD
16423
16424else
16425 echo "$ac_t""no" 1>&6
10f2d63a 16426fi
4f14bcd8 16427done
10f2d63a 16428
10f2d63a 16429
7274f1c7
RL
16430
16431 for ac_hdr in sched.h
4f14bcd8
GD
16432do
16433ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16434echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4cdb0ab0 16435echo "configure:16436: checking for $ac_hdr" >&5
4f14bcd8
GD
16436if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
16437 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 16438else
4f14bcd8 16439 cat > conftest.$ac_ext <<EOF
4cdb0ab0 16440#line 16441 "configure"
4f14bcd8
GD
16441#include "confdefs.h"
16442#include <$ac_hdr>
13111b2a 16443EOF
4f14bcd8 16444ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4cdb0ab0 16445{ (eval echo configure:16446: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4f14bcd8
GD
16446ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16447if test -z "$ac_err"; then
16448 rm -rf conftest*
16449 eval "ac_cv_header_$ac_safe=yes"
16450else
16451 echo "$ac_err" >&5
16452 echo "configure: failed program was:" >&5
16453 cat conftest.$ac_ext >&5
16454 rm -rf conftest*
16455 eval "ac_cv_header_$ac_safe=no"
13111b2a 16456fi
4f14bcd8 16457rm -f conftest*
10f2d63a 16458fi
4f14bcd8
GD
16459if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16460 echo "$ac_t""yes" 1>&6
16461 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
698dcdb6 16462 cat >> confdefs.h <<EOF
4f14bcd8 16463#define $ac_tr_hdr 1
f6bcfd97 16464EOF
4f14bcd8
GD
16465
16466else
16467 echo "$ac_t""no" 1>&6
f6bcfd97 16468fi
4f14bcd8 16469done
f6bcfd97 16470
10f2d63a 16471
7274f1c7 16472 echo $ac_n "checking for sched_yield in -l$THREADS_LINK""... $ac_c" 1>&6
4cdb0ab0 16473echo "configure:16474: checking for sched_yield in -l$THREADS_LINK" >&5
4f14bcd8
GD
16474ac_lib_var=`echo $THREADS_LINK'_'sched_yield | sed 'y%./+-%__p_%'`
16475if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16476 echo $ac_n "(cached) $ac_c" 1>&6
16477else
16478 ac_save_LIBS="$LIBS"
16479LIBS="-l$THREADS_LINK $LIBS"
16480cat > conftest.$ac_ext <<EOF
4cdb0ab0 16481#line 16482 "configure"
4f14bcd8
GD
16482#include "confdefs.h"
16483/* Override any gcc2 internal prototype to avoid an error. */
16484/* We use char because int might match the return type of a gcc2
16485 builtin and then its argument prototype would still apply. */
16486char sched_yield();
10f2d63a 16487
4f14bcd8
GD
16488int main() {
16489sched_yield()
16490; return 0; }
10f2d63a 16491EOF
4cdb0ab0 16492if { (eval echo configure:16493: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4f14bcd8
GD
16493 rm -rf conftest*
16494 eval "ac_cv_lib_$ac_lib_var=yes"
10f2d63a 16495else
4f14bcd8
GD
16496 echo "configure: failed program was:" >&5
16497 cat conftest.$ac_ext >&5
16498 rm -rf conftest*
16499 eval "ac_cv_lib_$ac_lib_var=no"
10f2d63a 16500fi
4f14bcd8
GD
16501rm -f conftest*
16502LIBS="$ac_save_LIBS"
10f2d63a 16503
4f14bcd8
GD
16504fi
16505if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16506 echo "$ac_t""yes" 1>&6
16507 cat >> confdefs.h <<\EOF
16508#define HAVE_SCHED_YIELD 1
10f2d63a
VZ
16509EOF
16510
4f14bcd8
GD
16511else
16512 echo "$ac_t""no" 1>&6
16513echo $ac_n "checking for sched_yield in -lposix4""... $ac_c" 1>&6
4cdb0ab0 16514echo "configure:16515: checking for sched_yield in -lposix4" >&5
4f14bcd8
GD
16515ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'`
16516if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16517 echo $ac_n "(cached) $ac_c" 1>&6
16518else
16519 ac_save_LIBS="$LIBS"
16520LIBS="-lposix4 $LIBS"
16521cat > conftest.$ac_ext <<EOF
4cdb0ab0 16522#line 16523 "configure"
4f14bcd8
GD
16523#include "confdefs.h"
16524/* Override any gcc2 internal prototype to avoid an error. */
16525/* We use char because int might match the return type of a gcc2
16526 builtin and then its argument prototype would still apply. */
16527char sched_yield();
47c13eb7 16528
4f14bcd8
GD
16529int main() {
16530sched_yield()
16531; return 0; }
10f2d63a 16532EOF
4cdb0ab0 16533if { (eval echo configure:16534: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4f14bcd8
GD
16534 rm -rf conftest*
16535 eval "ac_cv_lib_$ac_lib_var=yes"
10f2d63a 16536else
4f14bcd8
GD
16537 echo "configure: failed program was:" >&5
16538 cat conftest.$ac_ext >&5
16539 rm -rf conftest*
16540 eval "ac_cv_lib_$ac_lib_var=no"
10f2d63a 16541fi
4f14bcd8
GD
16542rm -f conftest*
16543LIBS="$ac_save_LIBS"
10f2d63a 16544
54276ccf 16545fi
4f14bcd8
GD
16546if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16547 echo "$ac_t""yes" 1>&6
16548 cat >> confdefs.h <<\EOF
16549#define HAVE_SCHED_YIELD 1
54276ccf 16550EOF
3d63bc3a 16551 POSIX4_LINK=" -lposix4"
4f14bcd8
GD
16552else
16553 echo "$ac_t""no" 1>&6
16554echo "configure: warning: wxThread::Yield will not work properly" 1>&2
7274f1c7 16555
54276ccf
VZ
16556fi
16557
7274f1c7 16558
4f14bcd8 16559fi
698dcdb6 16560
10f2d63a 16561
7274f1c7
RL
16562 HAVE_PRIOR_FUNCS=0
16563 echo $ac_n "checking for pthread_attr_getschedpolicy in -l$THREADS_LINK""... $ac_c" 1>&6
4cdb0ab0 16564echo "configure:16565: checking for pthread_attr_getschedpolicy in -l$THREADS_LINK" >&5
4f14bcd8
GD
16565ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_getschedpolicy | sed 'y%./+-%__p_%'`
16566if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
698dcdb6
VZ
16567 echo $ac_n "(cached) $ac_c" 1>&6
16568else
4f14bcd8
GD
16569 ac_save_LIBS="$LIBS"
16570LIBS="-l$THREADS_LINK $LIBS"
16571cat > conftest.$ac_ext <<EOF
4cdb0ab0 16572#line 16573 "configure"
422107f9 16573#include "confdefs.h"
4f14bcd8
GD
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 pthread_attr_getschedpolicy();
16578
16579int main() {
16580pthread_attr_getschedpolicy()
16581; return 0; }
698dcdb6 16582EOF
4cdb0ab0 16583if { (eval echo configure:16584: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 16584 rm -rf conftest*
4f14bcd8 16585 eval "ac_cv_lib_$ac_lib_var=yes"
422107f9 16586else
698dcdb6 16587 echo "configure: failed program was:" >&5
422107f9 16588 cat conftest.$ac_ext >&5
698dcdb6 16589 rm -rf conftest*
4f14bcd8 16590 eval "ac_cv_lib_$ac_lib_var=no"
422107f9 16591fi
698dcdb6 16592rm -f conftest*
4f14bcd8
GD
16593LIBS="$ac_save_LIBS"
16594
422107f9 16595fi
4f14bcd8 16596if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
698dcdb6 16597 echo "$ac_t""yes" 1>&6
4f14bcd8 16598 echo $ac_n "checking for pthread_attr_setschedparam in -l$THREADS_LINK""... $ac_c" 1>&6
4cdb0ab0 16599echo "configure:16600: checking for pthread_attr_setschedparam in -l$THREADS_LINK" >&5
4f14bcd8 16600ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_setschedparam | sed 'y%./+-%__p_%'`
698dcdb6
VZ
16601if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16602 echo $ac_n "(cached) $ac_c" 1>&6
422107f9 16603else
698dcdb6 16604 ac_save_LIBS="$LIBS"
4f14bcd8 16605LIBS="-l$THREADS_LINK $LIBS"
698dcdb6 16606cat > conftest.$ac_ext <<EOF
4cdb0ab0 16607#line 16608 "configure"
422107f9
VZ
16608#include "confdefs.h"
16609/* Override any gcc2 internal prototype to avoid an error. */
16610/* We use char because int might match the return type of a gcc2
698dcdb6 16611 builtin and then its argument prototype would still apply. */
4f14bcd8 16612char pthread_attr_setschedparam();
698dcdb6
VZ
16613
16614int main() {
4f14bcd8 16615pthread_attr_setschedparam()
698dcdb6
VZ
16616; return 0; }
16617EOF
4cdb0ab0 16618if { (eval echo configure:16619: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
16619 rm -rf conftest*
16620 eval "ac_cv_lib_$ac_lib_var=yes"
16621else
16622 echo "configure: failed program was:" >&5
16623 cat conftest.$ac_ext >&5
16624 rm -rf conftest*
16625 eval "ac_cv_lib_$ac_lib_var=no"
16626fi
16627rm -f conftest*
16628LIBS="$ac_save_LIBS"
16629
16630fi
16631if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16632 echo "$ac_t""yes" 1>&6
4f14bcd8 16633 echo $ac_n "checking for sched_get_priority_max in -l$THREADS_LINK""... $ac_c" 1>&6
4cdb0ab0 16634echo "configure:16635: checking for sched_get_priority_max in -l$THREADS_LINK" >&5
4f14bcd8
GD
16635ac_lib_var=`echo $THREADS_LINK'_'sched_get_priority_max | sed 'y%./+-%__p_%'`
16636if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
698dcdb6
VZ
16637 echo $ac_n "(cached) $ac_c" 1>&6
16638else
4f14bcd8
GD
16639 ac_save_LIBS="$LIBS"
16640LIBS="-l$THREADS_LINK $LIBS"
16641cat > conftest.$ac_ext <<EOF
4cdb0ab0 16642#line 16643 "configure"
422107f9 16643#include "confdefs.h"
4f14bcd8
GD
16644/* Override any gcc2 internal prototype to avoid an error. */
16645/* We use char because int might match the return type of a gcc2
16646 builtin and then its argument prototype would still apply. */
16647char sched_get_priority_max();
16648
16649int main() {
16650sched_get_priority_max()
16651; return 0; }
698dcdb6 16652EOF
4cdb0ab0 16653if { (eval echo configure:16654: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 16654 rm -rf conftest*
4f14bcd8 16655 eval "ac_cv_lib_$ac_lib_var=yes"
422107f9 16656else
698dcdb6 16657 echo "configure: failed program was:" >&5
422107f9 16658 cat conftest.$ac_ext >&5
698dcdb6 16659 rm -rf conftest*
4f14bcd8 16660 eval "ac_cv_lib_$ac_lib_var=no"
422107f9 16661fi
698dcdb6 16662rm -f conftest*
4f14bcd8
GD
16663LIBS="$ac_save_LIBS"
16664
422107f9 16665fi
4f14bcd8 16666if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
698dcdb6 16667 echo "$ac_t""yes" 1>&6
4f14bcd8
GD
16668 HAVE_PRIOR_FUNCS=1
16669else
16670 echo "$ac_t""no" 1>&6
16671echo $ac_n "checking for sched_get_priority_max in -lposix4""... $ac_c" 1>&6
4cdb0ab0 16672echo "configure:16673: checking for sched_get_priority_max in -lposix4" >&5
4f14bcd8 16673ac_lib_var=`echo posix4'_'sched_get_priority_max | sed 'y%./+-%__p_%'`
698dcdb6
VZ
16674if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16675 echo $ac_n "(cached) $ac_c" 1>&6
422107f9 16676else
698dcdb6 16677 ac_save_LIBS="$LIBS"
4f14bcd8 16678LIBS="-lposix4 $LIBS"
698dcdb6 16679cat > conftest.$ac_ext <<EOF
4cdb0ab0 16680#line 16681 "configure"
422107f9
VZ
16681#include "confdefs.h"
16682/* Override any gcc2 internal prototype to avoid an error. */
16683/* We use char because int might match the return type of a gcc2
698dcdb6 16684 builtin and then its argument prototype would still apply. */
4f14bcd8 16685char sched_get_priority_max();
698dcdb6
VZ
16686
16687int main() {
4f14bcd8 16688sched_get_priority_max()
698dcdb6
VZ
16689; return 0; }
16690EOF
4cdb0ab0 16691if { (eval echo configure:16692: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
16692 rm -rf conftest*
16693 eval "ac_cv_lib_$ac_lib_var=yes"
16694else
16695 echo "configure: failed program was:" >&5
16696 cat conftest.$ac_ext >&5
16697 rm -rf conftest*
16698 eval "ac_cv_lib_$ac_lib_var=no"
16699fi
16700rm -f conftest*
16701LIBS="$ac_save_LIBS"
16702
16703fi
16704if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16705 echo "$ac_t""yes" 1>&6
4f14bcd8 16706
7274f1c7
RL
16707 HAVE_PRIOR_FUNCS=1
16708 POSIX4_LINK=" -lposix4"
16709
698dcdb6
VZ
16710else
16711 echo "$ac_t""no" 1>&6
422107f9
VZ
16712fi
16713
7274f1c7 16714
422107f9
VZ
16715fi
16716
7274f1c7 16717
4f14bcd8
GD
16718else
16719 echo "$ac_t""no" 1>&6
10f2d63a
VZ
16720fi
16721
7274f1c7 16722
698dcdb6 16723else
4f14bcd8
GD
16724 echo "$ac_t""no" 1>&6
16725fi
463abc64 16726
463abc64 16727
7274f1c7
RL
16728 if test "$HAVE_PRIOR_FUNCS" = 1; then
16729 cat >> confdefs.h <<\EOF
4f14bcd8 16730#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
698dcdb6 16731EOF
463abc64 16732
7274f1c7
RL
16733 else
16734 echo "configure: warning: Setting thread priority will not work" 1>&2
16735 fi
463abc64 16736
7274f1c7 16737 echo $ac_n "checking for pthread_cancel in -l$THREADS_LINK""... $ac_c" 1>&6
4cdb0ab0 16738echo "configure:16739: checking for pthread_cancel in -l$THREADS_LINK" >&5
4f14bcd8 16739ac_lib_var=`echo $THREADS_LINK'_'pthread_cancel | sed 'y%./+-%__p_%'`
698dcdb6
VZ
16740if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16741 echo $ac_n "(cached) $ac_c" 1>&6
422107f9 16742else
698dcdb6 16743 ac_save_LIBS="$LIBS"
4f14bcd8 16744LIBS="-l$THREADS_LINK $LIBS"
698dcdb6 16745cat > conftest.$ac_ext <<EOF
4cdb0ab0 16746#line 16747 "configure"
422107f9
VZ
16747#include "confdefs.h"
16748/* Override any gcc2 internal prototype to avoid an error. */
16749/* We use char because int might match the return type of a gcc2
698dcdb6 16750 builtin and then its argument prototype would still apply. */
4f14bcd8 16751char pthread_cancel();
698dcdb6
VZ
16752
16753int main() {
4f14bcd8 16754pthread_cancel()
698dcdb6
VZ
16755; return 0; }
16756EOF
4cdb0ab0 16757if { (eval echo configure:16758: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
16758 rm -rf conftest*
16759 eval "ac_cv_lib_$ac_lib_var=yes"
16760else
16761 echo "configure: failed program was:" >&5
16762 cat conftest.$ac_ext >&5
16763 rm -rf conftest*
16764 eval "ac_cv_lib_$ac_lib_var=no"
16765fi
16766rm -f conftest*
16767LIBS="$ac_save_LIBS"
16768
16769fi
16770if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16771 echo "$ac_t""yes" 1>&6
4f14bcd8
GD
16772 cat >> confdefs.h <<\EOF
16773#define HAVE_PTHREAD_CANCEL 1
16774EOF
16775
698dcdb6
VZ
16776else
16777 echo "$ac_t""no" 1>&6
4f14bcd8 16778echo "configure: warning: wxThread::Kill() will not work properly" 1>&2
422107f9
VZ
16779fi
16780
422107f9 16781
7274f1c7 16782 echo $ac_n "checking for pthread_cleanup_push/pop""... $ac_c" 1>&6
4cdb0ab0 16783echo "configure:16784: checking for pthread_cleanup_push/pop" >&5
4f14bcd8
GD
16784if eval "test \"`echo '$''{'wx_cv_func_pthread_cleanup_push'+set}'`\" = set"; then
16785 echo $ac_n "(cached) $ac_c" 1>&6
16786else
16787
7274f1c7 16788 cat > conftest.$ac_ext <<EOF
4cdb0ab0 16789#line 16790 "configure"
4f14bcd8
GD
16790#include "confdefs.h"
16791#include <pthread.h>
16792int main() {
16793
7274f1c7
RL
16794 pthread_cleanup_push(NULL, NULL);
16795 pthread_cleanup_pop(0);
16796
4f14bcd8
GD
16797; return 0; }
16798EOF
4cdb0ab0 16799if { (eval echo configure:16800: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4f14bcd8
GD
16800 rm -rf conftest*
16801
7274f1c7
RL
16802 wx_cv_func_pthread_cleanup_push=yes
16803
4f14bcd8
GD
16804else
16805 echo "configure: failed program was:" >&5
16806 cat conftest.$ac_ext >&5
16807 rm -rf conftest*
16808
7274f1c7
RL
16809 wx_cv_func_pthread_cleanup_push=no
16810
4f14bcd8
GD
16811fi
16812rm -f conftest*
7274f1c7 16813
10f2d63a
VZ
16814fi
16815
4f14bcd8
GD
16816echo "$ac_t""$wx_cv_func_pthread_cleanup_push" 1>&6
16817
7274f1c7
RL
16818 if test "$wx_cv_func_pthread_cleanup_push" = "yes"; then
16819 cat >> confdefs.h <<\EOF
4f14bcd8 16820#define HAVE_THREAD_CLEANUP_FUNCTIONS 1
c7a2bf27
RR
16821EOF
16822
7274f1c7 16823 fi
4f14bcd8 16824
7274f1c7
RL
16825
16826 if test "x$wx_lib_glibc21" = "xyes"; then
16827 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
16828 fi
4f14bcd8 16829
7274f1c7 16830 echo $ac_n "checking for pthread_mutexattr_t""... $ac_c" 1>&6
4cdb0ab0 16831echo "configure:16832: checking for pthread_mutexattr_t" >&5
4f14bcd8 16832if eval "test \"`echo '$''{'wx_cv_type_pthread_mutexattr_t'+set}'`\" = set"; then
698dcdb6
VZ
16833 echo $ac_n "(cached) $ac_c" 1>&6
16834else
4f14bcd8 16835
7274f1c7 16836 cat > conftest.$ac_ext <<EOF
4cdb0ab0 16837#line 16838 "configure"
0dcf9893 16838#include "confdefs.h"
4f14bcd8
GD
16839#include <pthread.h>
16840int main() {
16841
7274f1c7
RL
16842 pthread_mutexattr_t attr;
16843 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
16844
4f14bcd8 16845; return 0; }
698dcdb6 16846EOF
4cdb0ab0 16847if { (eval echo configure:16848: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 16848 rm -rf conftest*
4f14bcd8 16849
7274f1c7
RL
16850 wx_cv_type_pthread_mutexattr_t=yes
16851
3fed1840 16852else
698dcdb6 16853 echo "configure: failed program was:" >&5
3fed1840 16854 cat conftest.$ac_ext >&5
698dcdb6 16855 rm -rf conftest*
4f14bcd8 16856
7274f1c7
RL
16857 wx_cv_type_pthread_mutexattr_t=no
16858
4f14bcd8 16859
3fed1840 16860fi
698dcdb6 16861rm -f conftest*
7274f1c7 16862
3fed1840 16863fi
4f14bcd8
GD
16864
16865echo "$ac_t""$wx_cv_type_pthread_mutexattr_t" 1>&6
16866
7274f1c7
RL
16867 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
16868 cat >> confdefs.h <<\EOF
4f14bcd8
GD
16869#define HAVE_PTHREAD_MUTEXATTR_T 1
16870EOF
16871
7274f1c7
RL
16872 else
16873 echo $ac_n "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER""... $ac_c" 1>&6
4cdb0ab0 16874echo "configure:16875: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
4f14bcd8 16875if eval "test \"`echo '$''{'wx_cv_type_pthread_rec_mutex_init'+set}'`\" = set"; then
698dcdb6 16876 echo $ac_n "(cached) $ac_c" 1>&6
3fed1840 16877else
4f14bcd8 16878
7274f1c7 16879 cat > conftest.$ac_ext <<EOF
4cdb0ab0 16880#line 16881 "configure"
3fed1840 16881#include "confdefs.h"
4f14bcd8 16882#include <pthread.h>
698dcdb6 16883int main() {
4f14bcd8 16884
7274f1c7
RL
16885 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
16886
698dcdb6
VZ
16887; return 0; }
16888EOF
4cdb0ab0 16889if { (eval echo configure:16890: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 16890 rm -rf conftest*
4f14bcd8 16891
7274f1c7
RL
16892 wx_cv_type_pthread_rec_mutex_init=yes
16893
698dcdb6
VZ
16894else
16895 echo "configure: failed program was:" >&5
16896 cat conftest.$ac_ext >&5
16897 rm -rf conftest*
4f14bcd8 16898
7274f1c7
RL
16899 wx_cv_type_pthread_rec_mutex_init=no
16900
4f14bcd8 16901
698dcdb6
VZ
16902fi
16903rm -f conftest*
7274f1c7 16904
3fed1840
RR
16905fi
16906
4f14bcd8 16907echo "$ac_t""$wx_cv_type_pthread_rec_mutex_init" 1>&6
7274f1c7
RL
16908 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
16909 cat >> confdefs.h <<\EOF
4f14bcd8
GD
16910#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
16911EOF
3fed1840 16912
7274f1c7
RL
16913 else
16914 echo "configure: warning: wxMutex won't be recursive on this platform" 1>&2
16915 fi
16916 fi
4f14bcd8 16917
7274f1c7 16918 THREADS_LINK=" -l$THREADS_LINK"
4f14bcd8 16919
7274f1c7
RL
16920 if test "$USE_SOLARIS" = "yes" -a "$GCC" != "yes"; then
16921 CPPFLAGS="$CFLAGS -mt"
16922 CXXFLAGS="$CXXFLAGS -mt"
16923 LDFLAGS="$LDFLAGS -mt"
16924 fi
16925 fi
3fed1840 16926
4f14bcd8
GD
16927fi
16928
16929if test "$wxUSE_THREADS" = "yes"; then
3a922bb4 16930 cat >> confdefs.h <<\EOF
4f14bcd8 16931#define wxUSE_THREADS 1
7b6058cd
GD
16932EOF
16933
4f14bcd8 16934
3f345b47 16935 TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS $CPP_MT_FLAG"
4f14bcd8
GD
16936
16937 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
698dcdb6 16938else
4f14bcd8
GD
16939 if test "$ac_cv_func_strtok_r" = "yes"; then
16940 echo $ac_n "checking if -D_REENTRANT is needed""... $ac_c" 1>&6
4cdb0ab0 16941echo "configure:16942: checking if -D_REENTRANT is needed" >&5
4f14bcd8
GD
16942 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
16943 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT"
16944 echo "$ac_t""yes" 1>&6
16945 else
16946 echo "$ac_t""no" 1>&6
16947 fi
16948 fi
16949fi
16950
16951if test "$WXGTK20" = 1 ; then
16952 cat >> confdefs.h <<EOF
16953#define __WXGTK20__ $WXGTK20
698dcdb6 16954EOF
4f14bcd8
GD
16955
16956 WXGTK12=1
10f2d63a 16957fi
4f14bcd8
GD
16958
16959if test "$WXGTK12" = 1 ; then
16960 cat >> confdefs.h <<EOF
16961#define __WXGTK12__ $WXGTK12
16962EOF
16963
10f2d63a 16964fi
698dcdb6 16965
4f14bcd8
GD
16966if test "$WXGTK127" = 1 ; then
16967 cat >> confdefs.h <<EOF
16968#define __WXGTK127__ $WXGTK127
698dcdb6 16969EOF
4f14bcd8 16970
698dcdb6 16971fi
10f2d63a 16972
4f14bcd8
GD
16973WXDEBUG=
16974
16975if test "$wxUSE_DEBUG_INFO" = "yes" ; then
16976 WXDEBUG="-g"
16977 wxUSE_OPTIMISE=no
698dcdb6 16978fi
4f14bcd8
GD
16979
16980if test "$wxUSE_DEBUG_GDB" = "yes" ; then
16981 wxUSE_DEBUG_INFO=yes
16982 WXDEBUG="-ggdb"
10f2d63a
VZ
16983fi
16984
4f14bcd8
GD
16985if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
16986 cat >> confdefs.h <<\EOF
16987#define WXDEBUG 1
16988EOF
16989
16990 WXDEBUG_DEFINE="-D__WXDEBUG__"
10f2d63a 16991else
4f14bcd8
GD
16992 if test "$wxUSE_GTK" = 1 ; then
16993 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
16994 fi
16995fi
16996
16997if test "$wxUSE_MEM_TRACING" = "yes" ; then
16998 cat >> confdefs.h <<\EOF
16999#define wxUSE_MEMORY_TRACING 1
17000EOF
17001
17002 cat >> confdefs.h <<\EOF
17003#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
17004EOF
17005
17006 cat >> confdefs.h <<\EOF
17007#define wxUSE_DEBUG_NEW_ALWAYS 1
17008EOF
17009
17010 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
17011fi
17012
17013if test "$wxUSE_DMALLOC" = "yes" ; then
3d63bc3a 17014 DMALLOC_LIBS="-ldmalloc"
4f14bcd8
GD
17015fi
17016
17017PROFILE=
17018if test "$wxUSE_PROFILE" = "yes" ; then
3d63bc3a 17019 PROFILE=" -pg"
10f2d63a
VZ
17020fi
17021
88e30f2b 17022if test "$GCC" = "yes" ; then
4f14bcd8
GD
17023 if test "$wxUSE_NO_RTTI" = "yes" ; then
17024 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti"
3a922bb4 17025 fi
4f14bcd8
GD
17026 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
17027 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions"
17028 fi
17029 if test "$wxUSE_PERMISSIVE" = "yes" ; then
17030 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
17031 fi
4f14bcd8
GD
17032 if test "$USE_WIN32" = 1 ; then
17033 # I'm not even really sure what this was ever added to solve,
17034 # but someone added it for mingw native builds, so I guess
17035 # they had a reason, right??
17036 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fno-pcc-struct-return"
17037 fi
17038fi
17039
17040
17041CXXFLAGS=`echo "${CXXFLAGS}" | sed "s/\-O.//g" `
17042CFLAGS=`echo "${CFLAGS}" | sed "s/\-O.//g" `
17043if test "$wxUSE_OPTIMISE" = "no" ; then
17044 OPTIMISE=
17045else
17046 if test "$GCC" = yes ; then
17047 OPTIMISE="-O2"
17048 case "${host}" in
17049 i586-*-*|i686-*-* )
17050 OPTIMISE="${OPTIMISE} "
17051 ;;
17052 esac
17053 else
17054 OPTIMISE="-O"
17055 fi
17056fi
17057
17058if test "$WXWIN_COMPATIBILITY_2" = "yes"; then
17059 cat >> confdefs.h <<\EOF
17060#define WXWIN_COMPATIBILITY_2 1
17061EOF
17062
17063
17064 WXWIN_COMPATIBILITY_2_2="yes"
17065fi
17066
17067if test "$WXWIN_COMPATIBILITY_2_2" = "yes"; then
17068 cat >> confdefs.h <<\EOF
17069#define WXWIN_COMPATIBILITY_2_2 1
17070EOF
17071
10f2d63a
VZ
17072fi
17073
698dcdb6 17074
10f2d63a 17075if test "$wxUSE_GUI" = "yes"; then
698dcdb6 17076 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17077#define wxUSE_GUI 1
17078EOF
17079
698dcdb6 17080
10f2d63a 17081 else
698dcdb6 17082 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17083#define wxUSE_NOGUI 1
17084EOF
17085
17086fi
17087
698dcdb6 17088
10f2d63a 17089if test "$wxUSE_UNIX" = "yes"; then
698dcdb6 17090 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17091#define wxUSE_UNIX 1
17092EOF
17093
17094fi
17095
698dcdb6 17096
10f2d63a 17097if test "$wxUSE_APPLE_IEEE" = "yes"; then
698dcdb6 17098 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17099#define wxUSE_APPLE_IEEE 1
17100EOF
17101
17102fi
17103
1e6feb95
VZ
17104if test "$wxUSE_TIMER" = "yes"; then
17105 cat >> confdefs.h <<\EOF
17106#define wxUSE_TIMER 1
17107EOF
17108
17109fi
17110
10f2d63a 17111if test "$wxUSE_WAVE" = "yes"; then
698dcdb6 17112 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17113#define wxUSE_WAVE 1
17114EOF
17115
17116fi
17117
1e6feb95
VZ
17118if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
17119 cat >> confdefs.h <<\EOF
17120#define wxUSE_CMDLINE_PARSER 1
17121EOF
17122
17123fi
17124
17125if test "$wxUSE_STOPWATCH" = "yes"; then
17126 cat >> confdefs.h <<\EOF
17127#define wxUSE_STOPWATCH 1
17128EOF
17129
17130fi
17131
17132if test "$wxUSE_DATETIME" = "yes"; then
17133 cat >> confdefs.h <<\EOF
17134#define wxUSE_DATETIME 1
17135EOF
17136
17137fi
17138
17139if test "$wxUSE_TIMEDATE" = "yes"; then
17140 cat >> confdefs.h <<\EOF
17141#define wxUSE_TIMEDATE 1
17142EOF
17143
17144fi
17145
10f2d63a 17146if test "$wxUSE_FILE" = "yes"; then
698dcdb6 17147 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17148#define wxUSE_FILE 1
17149EOF
17150
17151fi
17152
1e6feb95
VZ
17153if test "$wxUSE_FFILE" = "yes"; then
17154 cat >> confdefs.h <<\EOF
17155#define wxUSE_FFILE 1
17156EOF
17157
17158fi
17159
24528b0c 17160if test "$wxUSE_FILESYSTEM" = "yes"; then
698dcdb6 17161 cat >> confdefs.h <<\EOF
24528b0c
VS
17162#define wxUSE_FILESYSTEM 1
17163EOF
17164
17165fi
17166
10f2d63a 17167if test "$wxUSE_FS_INET" = "yes"; then
698dcdb6 17168 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17169#define wxUSE_FS_INET 1
17170EOF
17171
17172fi
17173
17174if test "$wxUSE_FS_ZIP" = "yes"; then
698dcdb6 17175 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17176#define wxUSE_FS_ZIP 1
17177EOF
17178
17179fi
17180
17181if test "$wxUSE_ZIPSTREAM" = "yes"; then
698dcdb6 17182 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17183#define wxUSE_ZIPSTREAM 1
17184EOF
17185
17186fi
17187
eb4efbdc 17188if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
698dcdb6 17189 cat >> confdefs.h <<\EOF
eb4efbdc
VZ
17190#define wxUSE_ON_FATAL_EXCEPTION 1
17191EOF
17192
17193fi
17194
4f3c5f06 17195if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
698dcdb6 17196 cat >> confdefs.h <<\EOF
4f3c5f06
VZ
17197#define wxUSE_SNGLINST_CHECKER 1
17198EOF
17199
17200fi
17201
10f2d63a 17202if test "$wxUSE_BUSYINFO" = "yes"; then
698dcdb6 17203 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17204#define wxUSE_BUSYINFO 1
17205EOF
17206
17207fi
17208
17209if test "$wxUSE_STD_IOSTREAM" = "yes"; then
698dcdb6 17210 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17211#define wxUSE_STD_IOSTREAM 1
17212EOF
17213
17214fi
17215
a3a584a7
VZ
17216if test "$wxUSE_TEXTBUFFER" = "yes"; then
17217 cat >> confdefs.h <<\EOF
17218#define wxUSE_TEXTBUFFER 1
17219EOF
17220
17221fi
17222
10f2d63a 17223if test "$wxUSE_TEXTFILE" = "yes"; then
a3a584a7 17224 if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
156b2523 17225 echo "configure: warning: wxTextFile requires wxFile and wxTextBuffer... disabled" 1>&2
10f2d63a 17226 else
698dcdb6 17227 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17228#define wxUSE_TEXTFILE 1
17229EOF
17230
17231 fi
17232fi
17233
17234if test "$wxUSE_CONFIG" = "yes" ; then
17235 if test "$wxUSE_TEXTFILE" != "yes"; then
156b2523 17236 echo "configure: warning: wxConfig requires wxTextFile... disabled" 1>&2
10f2d63a 17237 else
698dcdb6 17238 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17239#define wxUSE_CONFIG 1
17240EOF
17241
17242 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
17243 fi
17244fi
17245
17246if test "$wxUSE_INTL" = "yes" ; then
17247 if test "$wxUSE_FILE" != "yes"; then
156b2523 17248 echo "configure: warning: I18n code requires wxFile... disabled" 1>&2
10f2d63a 17249 else
698dcdb6 17250 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17251#define wxUSE_INTL 1
17252EOF
17253
17254 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
f6bcfd97 17255 GUIDIST="$GUIDIST INTL_DIST"
10f2d63a
VZ
17256 fi
17257fi
17258
17259if test "$wxUSE_LOG" = "yes"; then
698dcdb6 17260 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17261#define wxUSE_LOG 1
17262EOF
17263
d73be714
VZ
17264
17265 if test "$wxUSE_LOGGUI" = "yes"; then
17266 cat >> confdefs.h <<\EOF
17267#define wxUSE_LOGGUI 1
17268EOF
17269
17270 fi
17271
17272 if test "$wxUSE_LOGWINDOW" = "yes"; then
17273 cat >> confdefs.h <<\EOF
17274#define wxUSE_LOGWINDOW 1
69d27ff7
MB
17275EOF
17276
17277 fi
17278
17279 if test "$wxUSE_LOGDIALOG" = "yes"; then
17280 cat >> confdefs.h <<\EOF
17281#define wxUSE_LOG_DIALOG 1
d73be714
VZ
17282EOF
17283
17284 fi
10f2d63a
VZ
17285fi
17286
17287if test "$wxUSE_LONGLONG" = "yes"; then
698dcdb6 17288 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17289#define wxUSE_LONGLONG 1
17290EOF
17291
17292fi
17293
e8f65ba6 17294if test "$wxUSE_GEOMETRY" = "yes"; then
698dcdb6 17295 cat >> confdefs.h <<\EOF
e8f65ba6
RR
17296#define wxUSE_GEOMETRY 1
17297EOF
17298
17299fi
17300
10f2d63a 17301if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
698dcdb6 17302 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17303#define wxUSE_DIALUP_MANAGER 1
17304EOF
17305
70f7a477 17306 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
10f2d63a
VZ
17307fi
17308
17309if test "$wxUSE_STREAMS" = "yes" ; then
698dcdb6 17310 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17311#define wxUSE_STREAMS 1
17312EOF
17313
17314fi
17315
1e487827 17316
1e6feb95 17317if test "$wxUSE_DATETIME" = "yes"; then
698dcdb6 17318 for ac_func in strptime
83307f33 17319do
698dcdb6 17320echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4cdb0ab0 17321echo "configure:17322: checking for $ac_func" >&5
698dcdb6
VZ
17322if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17323 echo $ac_n "(cached) $ac_c" 1>&6
17324else
17325 cat > conftest.$ac_ext <<EOF
4cdb0ab0 17326#line 17327 "configure"
83307f33
VZ
17327#include "confdefs.h"
17328/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 17329 which can conflict with char $ac_func(); below. */
83307f33
VZ
17330#include <assert.h>
17331/* Override any gcc2 internal prototype to avoid an error. */
17332/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
17333 builtin and then its argument prototype would still apply. */
17334char $ac_func();
17335
17336int main() {
83307f33
VZ
17337
17338/* The GNU C library defines this for functions which it implements
17339 to always fail with ENOSYS. Some functions are actually named
17340 something starting with __ and the normal name is an alias. */
17341#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17342choke me
17343#else
698dcdb6 17344$ac_func();
83307f33
VZ
17345#endif
17346
698dcdb6 17347; return 0; }
83307f33 17348EOF
4cdb0ab0 17349if { (eval echo configure:17350: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
17350 rm -rf conftest*
17351 eval "ac_cv_func_$ac_func=yes"
17352else
17353 echo "configure: failed program was:" >&5
17354 cat conftest.$ac_ext >&5
17355 rm -rf conftest*
17356 eval "ac_cv_func_$ac_func=no"
17357fi
17358rm -f conftest*
17359fi
83307f33 17360
698dcdb6
VZ
17361if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17362 echo "$ac_t""yes" 1>&6
17363 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17364 cat >> confdefs.h <<EOF
17365#define $ac_tr_func 1
17366EOF
17367
17368else
17369 echo "$ac_t""no" 1>&6
83307f33
VZ
17370fi
17371done
17372
1e487827 17373
698dcdb6 17374 echo $ac_n "checking for timezone variable in <time.h>""... $ac_c" 1>&6
4cdb0ab0 17375echo "configure:17376: checking for timezone variable in <time.h>" >&5
698dcdb6
VZ
17376if eval "test \"`echo '$''{'wx_cv_var_timezone'+set}'`\" = set"; then
17377 echo $ac_n "(cached) $ac_c" 1>&6
17378else
17379
17380 cat > conftest.$ac_ext <<EOF
4cdb0ab0 17381#line 17382 "configure"
360d6699
VZ
17382#include "confdefs.h"
17383
b4085ce6 17384 #include <time.h>
698dcdb6
VZ
17385
17386int main() {
360d6699
VZ
17387
17388 int tz;
4f11a343 17389 tz = timezone;
698dcdb6
VZ
17390
17391; return 0; }
17392EOF
4cdb0ab0 17393if { (eval echo configure:17394: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
17394 rm -rf conftest*
17395
4f11a343 17396 wx_cv_var_timezone=timezone
698dcdb6 17397
360d6699 17398else
698dcdb6
VZ
17399 echo "configure: failed program was:" >&5
17400 cat conftest.$ac_ext >&5
17401 rm -rf conftest*
17402
17403 cat > conftest.$ac_ext <<EOF
4cdb0ab0 17404#line 17405 "configure"
360d6699
VZ
17405#include "confdefs.h"
17406
b4085ce6 17407 #include <time.h>
698dcdb6
VZ
17408
17409int main() {
360d6699
VZ
17410
17411 int tz;
17412 tz = _timezone;
698dcdb6
VZ
17413
17414; return 0; }
17415EOF
4cdb0ab0 17416if { (eval echo configure:17417: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
17417 rm -rf conftest*
17418
360d6699 17419 wx_cv_var_timezone=_timezone
698dcdb6 17420
5357c8e8 17421else
698dcdb6
VZ
17422 echo "configure: failed program was:" >&5
17423 cat conftest.$ac_ext >&5
17424 rm -rf conftest*
17425
17426 cat > conftest.$ac_ext <<EOF
4cdb0ab0 17427#line 17428 "configure"
5357c8e8
VZ
17428#include "confdefs.h"
17429
b4085ce6 17430 #include <time.h>
698dcdb6
VZ
17431
17432int main() {
5357c8e8
VZ
17433
17434 int tz;
4f11a343 17435 tz = __timezone;
698dcdb6
VZ
17436
17437; return 0; }
17438EOF
4cdb0ab0 17439if { (eval echo configure:17440: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
17440 rm -rf conftest*
17441
4f11a343 17442 wx_cv_var_timezone=__timezone
698dcdb6 17443
360d6699 17444else
698dcdb6
VZ
17445 echo "configure: failed program was:" >&5
17446 cat conftest.$ac_ext >&5
17447 rm -rf conftest*
f9bc1684
VS
17448
17449 if test "$USE_DOS" = 0 ; then
17450 { echo "configure: error: no timezone variable" 1>&2; exit 1; }
17451 fi
17452
698dcdb6 17453
360d6699 17454fi
698dcdb6
VZ
17455rm -f conftest*
17456
17457
360d6699 17458fi
698dcdb6
VZ
17459rm -f conftest*
17460
17461
6232543b 17462fi
698dcdb6
VZ
17463rm -f conftest*
17464
17465
1e487827 17466fi
703e0a69 17467
698dcdb6
VZ
17468echo "$ac_t""$wx_cv_var_timezone" 1>&6
17469
f9bc1684 17470 if test "x$wx_cv_var_timezone" != x ; then
698dcdb6 17471 cat >> confdefs.h <<EOF
360d6699
VZ
17472#define WX_TIMEZONE $wx_cv_var_timezone
17473EOF
17474
f9bc1684 17475 fi
698dcdb6
VZ
17476
17477 for ac_func in localtime
afc31813 17478do
698dcdb6 17479echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4cdb0ab0 17480echo "configure:17481: checking for $ac_func" >&5
698dcdb6
VZ
17481if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17482 echo $ac_n "(cached) $ac_c" 1>&6
17483else
17484 cat > conftest.$ac_ext <<EOF
4cdb0ab0 17485#line 17486 "configure"
10f2d63a 17486#include "confdefs.h"
afc31813 17487/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 17488 which can conflict with char $ac_func(); below. */
afc31813
VZ
17489#include <assert.h>
17490/* Override any gcc2 internal prototype to avoid an error. */
17491/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
17492 builtin and then its argument prototype would still apply. */
17493char $ac_func();
17494
17495int main() {
afc31813
VZ
17496
17497/* The GNU C library defines this for functions which it implements
17498 to always fail with ENOSYS. Some functions are actually named
17499 something starting with __ and the normal name is an alias. */
17500#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17501choke me
17502#else
698dcdb6 17503$ac_func();
afc31813
VZ
17504#endif
17505
698dcdb6 17506; return 0; }
10f2d63a 17507EOF
4cdb0ab0 17508if { (eval echo configure:17509: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
17509 rm -rf conftest*
17510 eval "ac_cv_func_$ac_func=yes"
17511else
17512 echo "configure: failed program was:" >&5
17513 cat conftest.$ac_ext >&5
17514 rm -rf conftest*
17515 eval "ac_cv_func_$ac_func=no"
17516fi
17517rm -f conftest*
17518fi
afc31813 17519
698dcdb6
VZ
17520if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17521 echo "$ac_t""yes" 1>&6
17522 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17523 cat >> confdefs.h <<EOF
17524#define $ac_tr_func 1
17525EOF
17526
17527else
17528 echo "$ac_t""no" 1>&6
afc31813
VZ
17529fi
17530done
17531
1e487827 17532
698dcdb6
VZ
17533 if test "$ac_cv_func_localtime" = "yes"; then
17534 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
4cdb0ab0 17535echo "configure:17536: checking for tm_gmtoff in struct tm" >&5
698dcdb6
VZ
17536if eval "test \"`echo '$''{'wx_cv_struct_tm_has_gmtoff'+set}'`\" = set"; then
17537 echo $ac_n "(cached) $ac_c" 1>&6
17538else
17539
17540 cat > conftest.$ac_ext <<EOF
4cdb0ab0 17541#line 17542 "configure"
0470b1e6
VZ
17542#include "confdefs.h"
17543
b4085ce6 17544 #include <time.h>
698dcdb6
VZ
17545
17546int main() {
0470b1e6
VZ
17547
17548 struct tm tm;
17549 tm.tm_gmtoff++;
698dcdb6
VZ
17550
17551; return 0; }
17552EOF
4cdb0ab0 17553if { (eval echo configure:17554: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
17554 rm -rf conftest*
17555
f03a98d8 17556 wx_cv_struct_tm_has_gmtoff=yes
698dcdb6 17557
0470b1e6 17558else
698dcdb6
VZ
17559 echo "configure: failed program was:" >&5
17560 cat conftest.$ac_ext >&5
17561 rm -rf conftest*
17562 wx_cv_struct_tm_has_gmtoff=no
17563
0470b1e6 17564fi
698dcdb6
VZ
17565rm -f conftest*
17566
1e487827 17567fi
698dcdb6
VZ
17568
17569echo "$ac_t""$wx_cv_struct_tm_has_gmtoff" 1>&6
6232543b
VS
17570 fi
17571
17572 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
698dcdb6 17573 cat >> confdefs.h <<\EOF
6232543b
VS
17574#define WX_GMTOFF_IN_TM 1
17575EOF
0470b1e6 17576
3fcdd07b
VZ
17577 fi
17578
698dcdb6 17579 for ac_func in gettimeofday ftime
3fcdd07b 17580do
698dcdb6 17581echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4cdb0ab0 17582echo "configure:17583: checking for $ac_func" >&5
698dcdb6
VZ
17583if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17584 echo $ac_n "(cached) $ac_c" 1>&6
17585else
17586 cat > conftest.$ac_ext <<EOF
4cdb0ab0 17587#line 17588 "configure"
3fcdd07b
VZ
17588#include "confdefs.h"
17589/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 17590 which can conflict with char $ac_func(); below. */
3fcdd07b
VZ
17591#include <assert.h>
17592/* Override any gcc2 internal prototype to avoid an error. */
17593/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
17594 builtin and then its argument prototype would still apply. */
17595char $ac_func();
17596
17597int main() {
3fcdd07b
VZ
17598
17599/* The GNU C library defines this for functions which it implements
17600 to always fail with ENOSYS. Some functions are actually named
17601 something starting with __ and the normal name is an alias. */
17602#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17603choke me
17604#else
698dcdb6 17605$ac_func();
3fcdd07b
VZ
17606#endif
17607
698dcdb6
VZ
17608; return 0; }
17609EOF
4cdb0ab0 17610if { (eval echo configure:17611: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
17611 rm -rf conftest*
17612 eval "ac_cv_func_$ac_func=yes"
17613else
17614 echo "configure: failed program was:" >&5
17615 cat conftest.$ac_ext >&5
17616 rm -rf conftest*
17617 eval "ac_cv_func_$ac_func=no"
17618fi
17619rm -f conftest*
17620fi
17621
17622if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17623 echo "$ac_t""yes" 1>&6
17624 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17625 cat >> confdefs.h <<EOF
17626#define $ac_tr_func 1
3fcdd07b
VZ
17627EOF
17628 break
698dcdb6
VZ
17629else
17630 echo "$ac_t""no" 1>&6
3fcdd07b
VZ
17631fi
17632done
17633
afc31813 17634
698dcdb6
VZ
17635 if test "$ac_cv_func_gettimeofday" = "yes"; then
17636 echo $ac_n "checking whether gettimeofday takes two arguments""... $ac_c" 1>&6
4cdb0ab0 17637echo "configure:17638: checking whether gettimeofday takes two arguments" >&5
698dcdb6
VZ
17638if eval "test \"`echo '$''{'wx_cv_func_gettimeofday_has_2_args'+set}'`\" = set"; then
17639 echo $ac_n "(cached) $ac_c" 1>&6
17640else
17641
17642
17643 ac_ext=C
17644# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1e487827 17645ac_cpp='$CXXCPP $CPPFLAGS'
698dcdb6
VZ
17646ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17647ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17648cross_compiling=$ac_cv_prog_cxx_cross
703e0a69 17649
698dcdb6
VZ
17650
17651 cat > conftest.$ac_ext <<EOF
4cdb0ab0 17652#line 17653 "configure"
10f2d63a 17653#include "confdefs.h"
afc31813
VZ
17654
17655 #include <sys/time.h>
17656 #include <unistd.h>
698dcdb6
VZ
17657
17658int main() {
afc31813
VZ
17659
17660 struct timeval tv;
776862b4 17661 gettimeofday(&tv, NULL);
698dcdb6
VZ
17662
17663; return 0; }
17664EOF
4cdb0ab0 17665if { (eval echo configure:17666: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 17666 rm -rf conftest*
afc31813 17667 wx_cv_func_gettimeofday_has_2_args=yes
10f2d63a 17668else
698dcdb6
VZ
17669 echo "configure: failed program was:" >&5
17670 cat conftest.$ac_ext >&5
17671 rm -rf conftest*
17672 cat > conftest.$ac_ext <<EOF
4cdb0ab0 17673#line 17674 "configure"
10f2d63a 17674#include "confdefs.h"
afc31813
VZ
17675
17676 #include <sys/time.h>
17677 #include <unistd.h>
698dcdb6
VZ
17678
17679int main() {
afc31813
VZ
17680
17681 struct timeval tv;
17682 gettimeofday(&tv);
698dcdb6
VZ
17683
17684; return 0; }
17685EOF
4cdb0ab0 17686if { (eval echo configure:17687: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 17687 rm -rf conftest*
afc31813 17688 wx_cv_func_gettimeofday_has_2_args=no
10f2d63a 17689else
698dcdb6
VZ
17690 echo "configure: failed program was:" >&5
17691 cat conftest.$ac_ext >&5
17692 rm -rf conftest*
776862b4
VZ
17693
17694 echo "configure: warning: failed to determine number of gettimeofday() arguments" 1>&2
17695 wx_cv_func_gettimeofday_has_2_args=unknown
17696
698dcdb6 17697
10f2d63a 17698fi
698dcdb6
VZ
17699rm -f conftest*
17700
10f2d63a 17701fi
698dcdb6 17702rm -f conftest*
afc31813 17703 ac_ext=c
698dcdb6 17704# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10f2d63a 17705ac_cpp='$CPP $CPPFLAGS'
698dcdb6
VZ
17706ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17707ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17708cross_compiling=$ac_cv_prog_cc_cross
10f2d63a 17709
698dcdb6 17710
afc31813 17711fi
698dcdb6
VZ
17712
17713echo "$ac_t""$wx_cv_func_gettimeofday_has_2_args" 1>&6
c63c7106 17714
afc31813 17715 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
698dcdb6 17716 cat >> confdefs.h <<\EOF
afc31813
VZ
17717#define WX_GETTIMEOFDAY_NO_TZ 1
17718EOF
17719
17720 fi
17721 fi
17722
698dcdb6 17723 cat >> confdefs.h <<\EOF
afc31813
VZ
17724#define wxUSE_TIMEDATE 1
17725EOF
17726
17727 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
17728fi
17729
698dcdb6 17730
b089607b
VZ
17731if test "$TOOLKIT" != "MSW"; then
17732
3a922bb4
RL
17733 if test "$wxUSE_SOCKETS" = "yes"; then
17734 echo $ac_n "checking for socket""... $ac_c" 1>&6
4cdb0ab0 17735echo "configure:17736: checking for socket" >&5
698dcdb6
VZ
17736if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
17737 echo $ac_n "(cached) $ac_c" 1>&6
c63c7106 17738else
698dcdb6 17739 cat > conftest.$ac_ext <<EOF
4cdb0ab0 17740#line 17741 "configure"
c63c7106
VZ
17741#include "confdefs.h"
17742/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 17743 which can conflict with char socket(); below. */
c63c7106
VZ
17744#include <assert.h>
17745/* Override any gcc2 internal prototype to avoid an error. */
17746/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
17747 builtin and then its argument prototype would still apply. */
17748char socket();
17749
17750int main() {
c63c7106
VZ
17751
17752/* The GNU C library defines this for functions which it implements
17753 to always fail with ENOSYS. Some functions are actually named
17754 something starting with __ and the normal name is an alias. */
17755#if defined (__stub_socket) || defined (__stub___socket)
17756choke me
17757#else
698dcdb6 17758socket();
c63c7106
VZ
17759#endif
17760
698dcdb6
VZ
17761; return 0; }
17762EOF
4cdb0ab0 17763if { (eval echo configure:17764: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
17764 rm -rf conftest*
17765 eval "ac_cv_func_socket=yes"
17766else
17767 echo "configure: failed program was:" >&5
17768 cat conftest.$ac_ext >&5
17769 rm -rf conftest*
17770 eval "ac_cv_func_socket=no"
17771fi
17772rm -f conftest*
17773fi
17774
17775if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
17776 echo "$ac_t""yes" 1>&6
c63c7106
VZ
17777 :
17778else
698dcdb6
VZ
17779 echo "$ac_t""no" 1>&6
17780echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
4cdb0ab0 17781echo "configure:17782: checking for socket in -lsocket" >&5
698dcdb6
VZ
17782ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
17783if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17784 echo $ac_n "(cached) $ac_c" 1>&6
c63c7106 17785else
698dcdb6 17786 ac_save_LIBS="$LIBS"
c63c7106 17787LIBS="-lsocket $LIBS"
698dcdb6 17788cat > conftest.$ac_ext <<EOF
4cdb0ab0 17789#line 17790 "configure"
c63c7106
VZ
17790#include "confdefs.h"
17791/* Override any gcc2 internal prototype to avoid an error. */
17792/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
17793 builtin and then its argument prototype would still apply. */
17794char socket();
17795
17796int main() {
17797socket()
17798; return 0; }
17799EOF
4cdb0ab0 17800if { (eval echo configure:17801: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
17801 rm -rf conftest*
17802 eval "ac_cv_lib_$ac_lib_var=yes"
17803else
17804 echo "configure: failed program was:" >&5
17805 cat conftest.$ac_ext >&5
17806 rm -rf conftest*
17807 eval "ac_cv_lib_$ac_lib_var=no"
17808fi
17809rm -f conftest*
17810LIBS="$ac_save_LIBS"
17811
17812fi
17813if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17814 echo "$ac_t""yes" 1>&6
c63c7106 17815 INET_LINK="$INET_LINK -lsocket"
c63c7106 17816else
698dcdb6 17817 echo "$ac_t""no" 1>&6
afc31813 17818
3a922bb4
RL
17819 echo "configure: warning: socket library not found - sockets will be disabled" 1>&2
17820 wxUSE_SOCKETS=no
17821
698dcdb6 17822
6232543b 17823fi
b089607b 17824
3a922bb4 17825
1e487827 17826fi
afc31813 17827
3a922bb4 17828 fi
51a9faba 17829
3a922bb4
RL
17830
17831 if test "$wxUSE_SOCKETS" = "yes" ; then
17832 echo $ac_n "checking what is the type of the third argument of getsockname""... $ac_c" 1>&6
4cdb0ab0 17833echo "configure:17834: checking what is the type of the third argument of getsockname" >&5
698dcdb6
VZ
17834if eval "test \"`echo '$''{'wx_cv_type_getsockname3'+set}'`\" = set"; then
17835 echo $ac_n "(cached) $ac_c" 1>&6
17836else
17837
3a922bb4
RL
17838
17839 ac_ext=C
698dcdb6 17840# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1e487827 17841ac_cpp='$CXXCPP $CPPFLAGS'
698dcdb6
VZ
17842ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17843ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17844cross_compiling=$ac_cv_prog_cxx_cross
703e0a69 17845
698dcdb6 17846
3a922bb4 17847 cat > conftest.$ac_ext <<EOF
4cdb0ab0 17848#line 17849 "configure"
afc31813 17849#include "confdefs.h"
51a9faba 17850
3a922bb4
RL
17851 #include <sys/types.h>
17852 #include <sys/socket.h>
17853
698dcdb6 17854int main() {
51a9faba 17855
3a922bb4
RL
17856 socklen_t len;
17857 getsockname(0, 0, &len);
17858
698dcdb6
VZ
17859; return 0; }
17860EOF
4cdb0ab0 17861if { (eval echo configure:17862: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 17862 rm -rf conftest*
51a9faba 17863 wx_cv_type_getsockname3=socklen_t
afc31813 17864else
698dcdb6
VZ
17865 echo "configure: failed program was:" >&5
17866 cat conftest.$ac_ext >&5
17867 rm -rf conftest*
17868 cat > conftest.$ac_ext <<EOF
4cdb0ab0 17869#line 17870 "configure"
afc31813 17870#include "confdefs.h"
51a9faba 17871
3a922bb4
RL
17872 #include <sys/types.h>
17873 #include <sys/socket.h>
17874
698dcdb6 17875int main() {
51a9faba 17876
3a922bb4
RL
17877 size_t len;
17878 getsockname(0, 0, &len);
17879
698dcdb6
VZ
17880; return 0; }
17881EOF
4cdb0ab0 17882if { (eval echo configure:17883: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 17883 rm -rf conftest*
51a9faba 17884 wx_cv_type_getsockname3=size_t
afc31813 17885else
698dcdb6
VZ
17886 echo "configure: failed program was:" >&5
17887 cat conftest.$ac_ext >&5
17888 rm -rf conftest*
17889 cat > conftest.$ac_ext <<EOF
4cdb0ab0 17890#line 17891 "configure"
afc31813 17891#include "confdefs.h"
51a9faba 17892
3a922bb4
RL
17893 #include <sys/types.h>
17894 #include <sys/socket.h>
17895
698dcdb6 17896int main() {
51a9faba 17897
3a922bb4
RL
17898 int len;
17899 getsockname(0, 0, &len);
17900
698dcdb6
VZ
17901; return 0; }
17902EOF
4cdb0ab0 17903if { (eval echo configure:17904: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 17904 rm -rf conftest*
51a9faba 17905 wx_cv_type_getsockname3=int
afc31813 17906else
698dcdb6
VZ
17907 echo "configure: failed program was:" >&5
17908 cat conftest.$ac_ext >&5
17909 rm -rf conftest*
17910 wx_cv_type_getsockname3=unknown
3a922bb4 17911
afc31813 17912fi
698dcdb6 17913rm -f conftest*
3a922bb4 17914
afc31813 17915fi
698dcdb6 17916rm -f conftest*
3a922bb4 17917
afc31813 17918fi
698dcdb6 17919rm -f conftest*
51a9faba 17920
3a922bb4 17921 ac_ext=c
698dcdb6 17922# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
afc31813 17923ac_cpp='$CPP $CPPFLAGS'
698dcdb6
VZ
17924ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17925ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17926cross_compiling=$ac_cv_prog_cc_cross
afc31813 17927
3a922bb4 17928
51a9faba 17929fi
698dcdb6
VZ
17930
17931echo "$ac_t""$wx_cv_type_getsockname3" 1>&6
51a9faba 17932
3a922bb4
RL
17933 if test "$wx_cv_type_getsockname3" = "unknown"; then
17934 wxUSE_SOCKETS=no
17935 echo "configure: warning: Couldn't find socklen_t synonym for this system" 1>&2
17936 else
17937 cat >> confdefs.h <<EOF
51a9faba
VZ
17938#define SOCKLEN_T $wx_cv_type_getsockname3
17939EOF
17940
3a922bb4 17941 fi
51a9faba
VZ
17942 fi
17943fi
afc31813 17944
51a9faba 17945if test "$wxUSE_SOCKETS" = "yes" ; then
698dcdb6 17946 cat >> confdefs.h <<\EOF
afc31813
VZ
17947#define wxUSE_SOCKETS 1
17948EOF
17949
70f7a477 17950 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
afc31813
VZ
17951fi
17952
698dcdb6 17953
dc3d889d
VZ
17954if test "$wxUSE_GUI" = "yes"; then
17955
156b2523
GD
17956 if test "$TOOLKIT" = "MAC"; then
17957 echo "configure: warning: Joystick not yet supported under Mac OS X... disabled" 1>&2
17958 wxUSE_JOYSTICK=no
17959 fi
17960 if test "$TOOLKIT" = "MOTIF"; then
17961 echo "configure: warning: Joystick not yet supported under Motif... disabled" 1>&2
17962 wxUSE_JOYSTICK=no
17963 fi
17964
3a922bb4
RL
17965 if test "$TOOLKIT" != "MSW"; then
17966 if test "$wxUSE_JOYSTICK" = "yes"; then
17967 for ac_hdr in linux/joystick.h
10f2d63a 17968do
698dcdb6
VZ
17969ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
17970echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4cdb0ab0 17971echo "configure:17972: checking for $ac_hdr" >&5
698dcdb6
VZ
17972if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
17973 echo $ac_n "(cached) $ac_c" 1>&6
17974else
17975 cat > conftest.$ac_ext <<EOF
4cdb0ab0 17976#line 17977 "configure"
10f2d63a 17977#include "confdefs.h"
698dcdb6
VZ
17978#include <$ac_hdr>
17979EOF
17980ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4cdb0ab0 17981{ (eval echo configure:17982: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
17982ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
17983if test -z "$ac_err"; then
17984 rm -rf conftest*
17985 eval "ac_cv_header_$ac_safe=yes"
10f2d63a 17986else
698dcdb6
VZ
17987 echo "$ac_err" >&5
17988 echo "configure: failed program was:" >&5
10f2d63a 17989 cat conftest.$ac_ext >&5
698dcdb6
VZ
17990 rm -rf conftest*
17991 eval "ac_cv_header_$ac_safe=no"
10f2d63a 17992fi
698dcdb6 17993rm -f conftest*
10f2d63a 17994fi
698dcdb6
VZ
17995if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
17996 echo "$ac_t""yes" 1>&6
17997 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
17998 cat >> confdefs.h <<EOF
17999#define $ac_tr_hdr 1
10f2d63a 18000EOF
698dcdb6
VZ
18001
18002else
18003 echo "$ac_t""no" 1>&6
10f2d63a
VZ
18004fi
18005done
18006
3a922bb4
RL
18007 if test "$ac_cv_header_linux_joystick_h" != "yes"; then
18008 wxUSE_JOYSTICK=no
156b2523 18009 echo "configure: warning: Joystick not supported by this system... disabled" 1>&2
3a922bb4
RL
18010 fi
18011 fi
18012 fi
b089607b 18013
3a922bb4
RL
18014 if test "$wxUSE_JOYSTICK" = "yes"; then
18015 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18016#define wxUSE_JOYSTICK 1
18017EOF
18018
3a922bb4
RL
18019 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
18020 fi
dc3d889d
VZ
18021fi
18022
698dcdb6 18023
b089607b
VZ
18024if test "$TOOLKIT" != "MSW"; then
18025
3a922bb4
RL
18026 HAVE_DL_FUNCS=0
18027 HAVE_SHL_FUNCS=0
0b9ab0bd 18028 if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
3a922bb4
RL
18029 if test "$USE_DARWIN" = 1; then
18030 HAVE_DL_FUNCS=1
18031 else
18032 for ac_func in dlopen
10f2d63a 18033do
698dcdb6 18034echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4cdb0ab0 18035echo "configure:18036: checking for $ac_func" >&5
698dcdb6
VZ
18036if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18037 echo $ac_n "(cached) $ac_c" 1>&6
18038else
18039 cat > conftest.$ac_ext <<EOF
4cdb0ab0 18040#line 18041 "configure"
10f2d63a
VZ
18041#include "confdefs.h"
18042/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 18043 which can conflict with char $ac_func(); below. */
10f2d63a
VZ
18044#include <assert.h>
18045/* Override any gcc2 internal prototype to avoid an error. */
18046/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
18047 builtin and then its argument prototype would still apply. */
18048char $ac_func();
18049
18050int main() {
10f2d63a
VZ
18051
18052/* The GNU C library defines this for functions which it implements
18053 to always fail with ENOSYS. Some functions are actually named
18054 something starting with __ and the normal name is an alias. */
18055#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18056choke me
18057#else
698dcdb6 18058$ac_func();
10f2d63a
VZ
18059#endif
18060
698dcdb6
VZ
18061; return 0; }
18062EOF
4cdb0ab0 18063if { (eval echo configure:18064: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
18064 rm -rf conftest*
18065 eval "ac_cv_func_$ac_func=yes"
18066else
18067 echo "configure: failed program was:" >&5
18068 cat conftest.$ac_ext >&5
18069 rm -rf conftest*
18070 eval "ac_cv_func_$ac_func=no"
18071fi
18072rm -f conftest*
18073fi
18074
18075if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18076 echo "$ac_t""yes" 1>&6
18077 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18078 cat >> confdefs.h <<EOF
18079#define $ac_tr_func 1
18080EOF
18081
3a922bb4 18082 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18083#define HAVE_DLOPEN 1
18084EOF
18085
3a922bb4
RL
18086 HAVE_DL_FUNCS=1
18087
10f2d63a 18088else
698dcdb6
VZ
18089 echo "$ac_t""no" 1>&6
18090echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
4cdb0ab0 18091echo "configure:18092: checking for dlopen in -ldl" >&5
698dcdb6
VZ
18092ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
18093if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18094 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 18095else
698dcdb6 18096 ac_save_LIBS="$LIBS"
10f2d63a 18097LIBS="-ldl $LIBS"
698dcdb6 18098cat > conftest.$ac_ext <<EOF
4cdb0ab0 18099#line 18100 "configure"
10f2d63a
VZ
18100#include "confdefs.h"
18101/* Override any gcc2 internal prototype to avoid an error. */
18102/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
18103 builtin and then its argument prototype would still apply. */
18104char dlopen();
18105
18106int main() {
18107dlopen()
18108; return 0; }
18109EOF
4cdb0ab0 18110if { (eval echo configure:18111: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
18111 rm -rf conftest*
18112 eval "ac_cv_lib_$ac_lib_var=yes"
18113else
18114 echo "configure: failed program was:" >&5
18115 cat conftest.$ac_ext >&5
18116 rm -rf conftest*
18117 eval "ac_cv_lib_$ac_lib_var=no"
18118fi
18119rm -f conftest*
18120LIBS="$ac_save_LIBS"
18121
18122fi
18123if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18124 echo "$ac_t""yes" 1>&6
18125
3a922bb4 18126 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18127#define HAVE_DLOPEN 1
18128EOF
18129
3a922bb4 18130 HAVE_DL_FUNCS=1
3d63bc3a 18131 DL_LINK=" -ldl$DL_LINK"
3a922bb4 18132
10f2d63a 18133else
698dcdb6 18134 echo "$ac_t""no" 1>&6
10f2d63a 18135
3a922bb4 18136 for ac_func in shl_load
10f2d63a 18137do
698dcdb6 18138echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4cdb0ab0 18139echo "configure:18140: checking for $ac_func" >&5
698dcdb6
VZ
18140if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18141 echo $ac_n "(cached) $ac_c" 1>&6
18142else
18143 cat > conftest.$ac_ext <<EOF
4cdb0ab0 18144#line 18145 "configure"
10f2d63a
VZ
18145#include "confdefs.h"
18146/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 18147 which can conflict with char $ac_func(); below. */
10f2d63a
VZ
18148#include <assert.h>
18149/* Override any gcc2 internal prototype to avoid an error. */
18150/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
18151 builtin and then its argument prototype would still apply. */
18152char $ac_func();
18153
18154int main() {
10f2d63a
VZ
18155
18156/* The GNU C library defines this for functions which it implements
18157 to always fail with ENOSYS. Some functions are actually named
18158 something starting with __ and the normal name is an alias. */
18159#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18160choke me
18161#else
698dcdb6 18162$ac_func();
10f2d63a
VZ
18163#endif
18164
698dcdb6
VZ
18165; return 0; }
18166EOF
4cdb0ab0 18167if { (eval echo configure:18168: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
18168 rm -rf conftest*
18169 eval "ac_cv_func_$ac_func=yes"
18170else
18171 echo "configure: failed program was:" >&5
18172 cat conftest.$ac_ext >&5
18173 rm -rf conftest*
18174 eval "ac_cv_func_$ac_func=no"
18175fi
18176rm -f conftest*
18177fi
18178
18179if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18180 echo "$ac_t""yes" 1>&6
18181 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18182 cat >> confdefs.h <<EOF
18183#define $ac_tr_func 1
18184EOF
18185
3a922bb4 18186 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18187#define HAVE_SHL_LOAD 1
18188EOF
18189
3a922bb4
RL
18190 HAVE_SHL_FUNCS=1
18191
10f2d63a 18192else
698dcdb6
VZ
18193 echo "$ac_t""no" 1>&6
18194echo $ac_n "checking for dld in -lshl_load""... $ac_c" 1>&6
4cdb0ab0 18195echo "configure:18196: checking for dld in -lshl_load" >&5
698dcdb6
VZ
18196ac_lib_var=`echo shl_load'_'dld | sed 'y%./+-%__p_%'`
18197if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18198 echo $ac_n "(cached) $ac_c" 1>&6
f6bcfd97 18199else
698dcdb6 18200 ac_save_LIBS="$LIBS"
f6bcfd97 18201LIBS="-lshl_load $LIBS"
698dcdb6 18202cat > conftest.$ac_ext <<EOF
4cdb0ab0 18203#line 18204 "configure"
f6bcfd97
BP
18204#include "confdefs.h"
18205/* Override any gcc2 internal prototype to avoid an error. */
18206/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
18207 builtin and then its argument prototype would still apply. */
18208char dld();
18209
18210int main() {
18211dld()
18212; return 0; }
18213EOF
4cdb0ab0 18214if { (eval echo configure:18215: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
18215 rm -rf conftest*
18216 eval "ac_cv_lib_$ac_lib_var=yes"
18217else
18218 echo "configure: failed program was:" >&5
18219 cat conftest.$ac_ext >&5
18220 rm -rf conftest*
18221 eval "ac_cv_lib_$ac_lib_var=no"
18222fi
18223rm -f conftest*
18224LIBS="$ac_save_LIBS"
f6bcfd97 18225
698dcdb6
VZ
18226fi
18227if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18228 echo "$ac_t""yes" 1>&6
18229
3a922bb4 18230 HAVE_SHL_FUNCS=1
3d63bc3a 18231 DL_LINK=" -ldld$DL_LINK"
3a922bb4 18232
698dcdb6
VZ
18233else
18234 echo "$ac_t""no" 1>&6
f6bcfd97
BP
18235fi
18236
3a922bb4 18237
10f2d63a
VZ
18238fi
18239done
18240
3a922bb4 18241
10f2d63a
VZ
18242fi
18243
3a922bb4 18244
10f2d63a
VZ
18245fi
18246done
18247
1e487827 18248
3a922bb4
RL
18249 if test "$HAVE_DL_FUNCS" = 1; then
18250 for ac_func in dlerror
f6bcfd97 18251do
698dcdb6 18252echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4cdb0ab0 18253echo "configure:18254: checking for $ac_func" >&5
698dcdb6
VZ
18254if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18255 echo $ac_n "(cached) $ac_c" 1>&6
18256else
18257 cat > conftest.$ac_ext <<EOF
4cdb0ab0 18258#line 18259 "configure"
f6bcfd97
BP
18259#include "confdefs.h"
18260/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 18261 which can conflict with char $ac_func(); below. */
f6bcfd97
BP
18262#include <assert.h>
18263/* Override any gcc2 internal prototype to avoid an error. */
18264/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
18265 builtin and then its argument prototype would still apply. */
18266char $ac_func();
18267
18268int main() {
f6bcfd97
BP
18269
18270/* The GNU C library defines this for functions which it implements
18271 to always fail with ENOSYS. Some functions are actually named
18272 something starting with __ and the normal name is an alias. */
18273#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18274choke me
18275#else
698dcdb6 18276$ac_func();
f6bcfd97
BP
18277#endif
18278
698dcdb6
VZ
18279; return 0; }
18280EOF
4cdb0ab0 18281if { (eval echo configure:18282: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
18282 rm -rf conftest*
18283 eval "ac_cv_func_$ac_func=yes"
18284else
18285 echo "configure: failed program was:" >&5
18286 cat conftest.$ac_ext >&5
18287 rm -rf conftest*
18288 eval "ac_cv_func_$ac_func=no"
18289fi
18290rm -f conftest*
18291fi
18292
18293if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18294 echo "$ac_t""yes" 1>&6
18295 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18296 cat >> confdefs.h <<EOF
18297#define $ac_tr_func 1
18298EOF
18299 cat >> confdefs.h <<\EOF
f6bcfd97
BP
18300#define HAVE_DLERROR 1
18301EOF
18302
18303else
698dcdb6
VZ
18304 echo "$ac_t""no" 1>&6
18305echo $ac_n "checking for dlerror in -ldl""... $ac_c" 1>&6
4cdb0ab0 18306echo "configure:18307: checking for dlerror in -ldl" >&5
698dcdb6
VZ
18307ac_lib_var=`echo dl'_'dlerror | sed 'y%./+-%__p_%'`
18308if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18309 echo $ac_n "(cached) $ac_c" 1>&6
f6bcfd97 18310else
698dcdb6 18311 ac_save_LIBS="$LIBS"
f6bcfd97 18312LIBS="-ldl $LIBS"
698dcdb6 18313cat > conftest.$ac_ext <<EOF
4cdb0ab0 18314#line 18315 "configure"
f6bcfd97
BP
18315#include "confdefs.h"
18316/* Override any gcc2 internal prototype to avoid an error. */
18317/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
18318 builtin and then its argument prototype would still apply. */
18319char dlerror();
18320
18321int main() {
18322dlerror()
18323; return 0; }
18324EOF
4cdb0ab0 18325if { (eval echo configure:18326: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
18326 rm -rf conftest*
18327 eval "ac_cv_lib_$ac_lib_var=yes"
18328else
18329 echo "configure: failed program was:" >&5
18330 cat conftest.$ac_ext >&5
18331 rm -rf conftest*
18332 eval "ac_cv_lib_$ac_lib_var=no"
18333fi
18334rm -f conftest*
18335LIBS="$ac_save_LIBS"
18336
18337fi
18338if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18339 echo "$ac_t""yes" 1>&6
18340 cat >> confdefs.h <<\EOF
f6bcfd97
BP
18341#define HAVE_DLERROR 1
18342EOF
18343
698dcdb6
VZ
18344else
18345 echo "$ac_t""no" 1>&6
f6bcfd97
BP
18346fi
18347
18348fi
18349done
18350
3a922bb4
RL
18351 fi
18352 fi
f6bcfd97 18353
3a922bb4
RL
18354 if test "$HAVE_DL_FUNCS" = 0; then
18355 if test "$HAVE_SHL_FUNCS" = 0; then
18356 if test "$USE_UNIX" = 1; then
18357 echo "configure: warning: Missing dynamic loading support, several features will be disabled" 1>&2
0b9ab0bd 18358 wxUSE_DYNAMIC_LOADER=no
3a922bb4
RL
18359 wxUSE_DYNLIB_CLASS=no
18360 else
18361 echo "configure: warning: Assuming wxLibrary class works on this platform" 1>&2
18362 fi
18363 fi
10f2d63a
VZ
18364 fi
18365 fi
18366fi
18367
0b9ab0bd
RL
18368if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
18369 cat >> confdefs.h <<\EOF
18370#define wxUSE_DYNAMIC_LOADER 1
18371EOF
18372
18373elif test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
698dcdb6 18374 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18375#define wxUSE_DYNLIB_CLASS 1
18376EOF
18377
18378fi
18379
698dcdb6 18380
1e6feb95
VZ
18381if test "$wxUSE_FONTMAP" = "yes" ; then
18382 cat >> confdefs.h <<\EOF
18383#define wxUSE_FONTMAP 1
18384EOF
18385
18386fi
18387
10f2d63a 18388if test "$wxUSE_UNICODE" = "yes" ; then
698dcdb6 18389 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18390#define wxUSE_UNICODE 1
18391EOF
18392
a72a4bfa
VS
18393
18394 if test "$wxUSE_MSW" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
18395 echo $ac_n "checking for main in -lunicows""... $ac_c" 1>&6
4cdb0ab0 18396echo "configure:18397: checking for main in -lunicows" >&5
a72a4bfa
VS
18397ac_lib_var=`echo unicows'_'main | sed 'y%./+-%__p_%'`
18398if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18399 echo $ac_n "(cached) $ac_c" 1>&6
18400else
18401 ac_save_LIBS="$LIBS"
18402LIBS="-lunicows $LIBS"
18403cat > conftest.$ac_ext <<EOF
4cdb0ab0 18404#line 18405 "configure"
a72a4bfa
VS
18405#include "confdefs.h"
18406
18407int main() {
18408main()
18409; return 0; }
18410EOF
4cdb0ab0 18411if { (eval echo configure:18412: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a72a4bfa
VS
18412 rm -rf conftest*
18413 eval "ac_cv_lib_$ac_lib_var=yes"
18414else
18415 echo "configure: failed program was:" >&5
18416 cat conftest.$ac_ext >&5
18417 rm -rf conftest*
18418 eval "ac_cv_lib_$ac_lib_var=no"
18419fi
18420rm -f conftest*
18421LIBS="$ac_save_LIBS"
18422
18423fi
18424if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18425 echo "$ac_t""yes" 1>&6
18426
18427 cat >> confdefs.h <<\EOF
18428#define wxUSE_UNICODE_MSLU 1
18429EOF
18430
18431
18432else
18433 echo "$ac_t""no" 1>&6
18434
18435 echo "configure: warning: Compiler doesn't support MSLU (libunicows.a), disabled.
18436 Applications will only run on Windows NT/2000/XP!" 1>&2
18437 wxUSE_UNICODE_MSLU=no
18438
18439fi
18440
18441 fi
10f2d63a
VZ
18442fi
18443
10f2d63a 18444if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
698dcdb6 18445 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18446#define wxUSE_EXPERIMENTAL_PRINTF 1
18447EOF
18448
18449fi
18450
698dcdb6 18451
698dcdb6 18452
10f2d63a
VZ
18453IODBC_C_SRC=""
18454if test "$wxUSE_ODBC" = "yes" ; then
698dcdb6 18455 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18456#define wxUSE_ODBC 1
18457EOF
18458
18459 WXODBCFLAG="-D_IODBC_"
18460 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
10f2d63a
VZ
18461fi
18462
698dcdb6 18463
10f2d63a 18464if test "$wxUSE_POSTSCRIPT" = "yes" ; then
698dcdb6 18465 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18466#define wxUSE_POSTSCRIPT 1
18467EOF
18468
18469fi
18470
698dcdb6 18471cat >> confdefs.h <<\EOF
10f2d63a
VZ
18472#define wxUSE_AFM_FOR_POSTSCRIPT 1
18473EOF
18474
698dcdb6
VZ
18475
18476cat >> confdefs.h <<\EOF
10f2d63a
VZ
18477#define wxUSE_NORMALIZED_PS_FONTS 1
18478EOF
18479
698dcdb6
VZ
18480
18481
10f2d63a 18482if test "$wxUSE_CONSTRAINTS" = "yes"; then
698dcdb6 18483 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18484#define wxUSE_CONSTRAINTS 1
18485EOF
18486
18487 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
18488fi
18489
18490if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
fc26f4ab 18491 if test "$wxUSE_UNIVERSAL" = "yes"; then
156b2523 18492 echo "configure: warning: MDI not yet supported for wxUNIVERSAL... disabled" 1>&2
fc26f4ab
RL
18493 wxUSE_MDI_ARCHITECTURE=no
18494 fi
18495
18496 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
18497 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18498#define wxUSE_MDI_ARCHITECTURE 1
18499EOF
18500
fc26f4ab
RL
18501 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
18502 fi
10f2d63a
VZ
18503fi
18504
18505if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
698dcdb6 18506 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18507#define wxUSE_DOC_VIEW_ARCHITECTURE 1
18508EOF
18509
18510 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
18511 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
18512 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
18513 fi
18514fi
18515
18516if test "$wxUSE_HELP" = "yes"; then
698dcdb6 18517 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18518#define wxUSE_HELP 1
18519EOF
18520
18521 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
3379ed37 18522
77e13408 18523 if test "$wxUSE_MSW" = 1; then
031d8228 18524 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
29fd3c0c
VS
18525 ac_safe=`echo "htmlhelp.h" | sed 'y%./+-%__p_%'`
18526echo $ac_n "checking for htmlhelp.h""... $ac_c" 1>&6
4cdb0ab0 18527echo "configure:18528: checking for htmlhelp.h" >&5
29fd3c0c
VS
18528if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
18529 echo $ac_n "(cached) $ac_c" 1>&6
18530else
18531 cat > conftest.$ac_ext <<EOF
4cdb0ab0 18532#line 18533 "configure"
29fd3c0c
VS
18533#include "confdefs.h"
18534#include <htmlhelp.h>
18535EOF
18536ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4cdb0ab0 18537{ (eval echo configure:18538: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
29fd3c0c
VS
18538ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
18539if test -z "$ac_err"; then
18540 rm -rf conftest*
18541 eval "ac_cv_header_$ac_safe=yes"
18542else
18543 echo "$ac_err" >&5
18544 echo "configure: failed program was:" >&5
18545 cat conftest.$ac_ext >&5
18546 rm -rf conftest*
18547 eval "ac_cv_header_$ac_safe=no"
18548fi
18549rm -f conftest*
18550fi
18551if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
18552 echo "$ac_t""yes" 1>&6
18553
18554 cat >> confdefs.h <<\EOF
18555#define wxUSE_MS_HTML_HELP 1
18556EOF
18557
18558
18559else
18560 echo "$ac_t""no" 1>&6
18561
fc26f4ab 18562 echo "configure: warning: MS HTML Help cannot be used without htmlhelp.h... disabled" 1>&2
29fd3c0c
VS
18563 wxUSE_MS_HTML_HELP=no
18564
18565fi
18566
3e44f09d 18567 fi
3379ed37 18568 fi
031d8228
VS
18569
18570 if test "$wxUSE_WXHTML_HELP" = "yes"; then
18571 if test "$wxUSE_HTML" = "yes"; then
18572 cat >> confdefs.h <<\EOF
18573#define wxUSE_WXHTML_HELP 1
18574EOF
18575
18576 else
18577 echo "configure: warning: Cannot use wxHTML-based help without wxHTML so it won't be compiled" 1>&2
18578 wxUSE_WXHTML_HELP=no
18579 fi
18580 fi
10f2d63a
VZ
18581fi
18582
18583if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
18584 if test "$wxUSE_CONSTRAINTS" != "yes"; then
698dcdb6 18585 echo "configure: warning: Printing support cannot be used without constraints so it won't be compiled without it" 1>&2
10f2d63a 18586 else
698dcdb6 18587 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18588#define wxUSE_PRINTING_ARCHITECTURE 1
18589EOF
18590
18591 fi
18592 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
18593fi
18594
18595if test "$wxUSE_PROLOGIO" = "yes" ; then
698dcdb6 18596 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18597#define wxUSE_PROLOGIO 1
18598EOF
18599
18600fi
18601
18602if test "$wxUSE_RESOURCES" = "yes" ; then
3379ed37 18603 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18604#define wxUSE_RESOURCES 1
18605EOF
18606
3379ed37 18607 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS resource"
10f2d63a
VZ
18608fi
18609
18610if test "$wxUSE_X_RESOURCES" = "yes"; then
698dcdb6 18611 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18612#define wxUSE_X_RESOURCES 1
18613EOF
18614
18615fi
18616
698dcdb6 18617
77e13408
RL
18618if test "$wxUSE_MSW" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
18619 -o "$wxUSE_CLIPBOARD" = "yes" \
18620 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
2b9bdf71 18621 for ac_hdr in ole2.h
10f2d63a 18622do
698dcdb6
VZ
18623ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
18624echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4cdb0ab0 18625echo "configure:18626: checking for $ac_hdr" >&5
698dcdb6
VZ
18626if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
18627 echo $ac_n "(cached) $ac_c" 1>&6
18628else
18629 cat > conftest.$ac_ext <<EOF
4cdb0ab0 18630#line 18631 "configure"
10f2d63a 18631#include "confdefs.h"
698dcdb6
VZ
18632#include <$ac_hdr>
18633EOF
18634ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4cdb0ab0 18635{ (eval echo configure:18636: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
18636ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
18637if test -z "$ac_err"; then
18638 rm -rf conftest*
18639 eval "ac_cv_header_$ac_safe=yes"
1e487827 18640else
698dcdb6
VZ
18641 echo "$ac_err" >&5
18642 echo "configure: failed program was:" >&5
10f2d63a 18643 cat conftest.$ac_ext >&5
698dcdb6
VZ
18644 rm -rf conftest*
18645 eval "ac_cv_header_$ac_safe=no"
10f2d63a 18646fi
698dcdb6 18647rm -f conftest*
10f2d63a 18648fi
698dcdb6
VZ
18649if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
18650 echo "$ac_t""yes" 1>&6
18651 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
18652 cat >> confdefs.h <<EOF
18653#define $ac_tr_hdr 1
10f2d63a 18654EOF
698dcdb6
VZ
18655
18656else
18657 echo "$ac_t""no" 1>&6
10f2d63a
VZ
18658fi
18659done
18660
698dcdb6 18661
2b9bdf71
VZ
18662 if test "$ac_cv_header_ole2_h" = "yes" ; then
18663 if test "$GCC" = yes ; then
18664 ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)"
2b9bdf71 18665 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
3d63bc3a 18666 LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
2b9bdf71 18667 cat >> confdefs.h <<\EOF
4f11a343
VS
18668#define wxUSE_OLE 1
18669EOF
18670
b64f0a5f 18671
2b9bdf71
VZ
18672 fi
18673
18674 cat >> confdefs.h <<\EOF
18675#define wxUSE_DATAOBJ 1
18676EOF
18677
18678 else
18679 echo "configure: warning: Some features disabled because OLE headers not found" 1>&2
18680
18681 wxUSE_CLIPBOARD=no
18682 wxUSE_DRAG_AND_DROP=no
18683 wxUSE_DATAOBJ=no
18684 fi
18685
77e13408 18686 if test "$wxUSE_METAFILE" = "yes"; then
2b9bdf71 18687 cat >> confdefs.h <<\EOF
b64f0a5f
RL
18688#define wxUSE_METAFILE 1
18689EOF
18690
2b9bdf71
VZ
18691
18692 cat >> confdefs.h <<\EOF
b64f0a5f
RL
18693#define wxUSE_ENH_METAFILE 1
18694EOF
18695
2b9bdf71
VZ
18696 fi
18697fi
18698
18699if test "$wxUSE_IPC" = "yes"; then
18700 if test "$wxUSE_SOCKETS" != "yes"; then
156b2523 18701 echo "configure: warning: wxWindows IPC classes require sockets... disabled" 1>&2
2b9bdf71
VZ
18702 fi
18703
18704 cat >> confdefs.h <<\EOF
18705#define wxUSE_IPC 1
18706EOF
18707
18708fi
18709
18710if test "$wxUSE_CLIPBOARD" = "yes"; then
18711 cat >> confdefs.h <<\EOF
18712#define wxUSE_CLIPBOARD 1
18713EOF
18714
673f4220 18715
e33ef661 18716 cat >> confdefs.h <<\EOF
673f4220
VZ
18717#define wxUSE_DATAOBJ 1
18718EOF
18719
2b9bdf71
VZ
18720fi
18721
18722if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
18723 if test "$wxUSE_GTK" = 1; then
18724 if test "$WXGTK12" != 1; then
156b2523 18725 echo "configure: warning: Drag and drop is only supported under GTK+ 1.2... disabled" 1>&2
10f2d63a
VZ
18726 wxUSE_DRAG_AND_DROP=no
18727 fi
18728 fi
18729
2b9bdf71 18730 if test "$wxUSE_MOTIF" = 1; then
156b2523 18731 echo "configure: warning: Drag and drop not yet supported under Motif... disabled" 1>&2
2b9bdf71
VZ
18732 wxUSE_DRAG_AND_DROP=no
18733 fi
18734
10f2d63a 18735 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
698dcdb6 18736 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18737#define wxUSE_DRAG_AND_DROP 1
18738EOF
18739
18740 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
18741 fi
18742
18743fi
18744
18745if test "$wxUSE_SPLINES" = "yes" ; then
698dcdb6 18746 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18747#define wxUSE_SPLINES 1
18748EOF
18749
18750fi
18751
698dcdb6 18752
1e6feb95
VZ
18753USES_CONTROLS=0
18754if test "$wxUSE_CONTROLS" = "yes"; then
18755 USES_CONTROLS=1
18756fi
18757
10f2d63a 18758if test "$wxUSE_ACCEL" = "yes"; then
698dcdb6 18759 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18760#define wxUSE_ACCEL 1
18761EOF
18762
1e6feb95
VZ
18763 USES_CONTROLS=1
18764fi
18765
18766if test "$wxUSE_BUTTON" = "yes"; then
18767 cat >> confdefs.h <<\EOF
18768#define wxUSE_BUTTON 1
18769EOF
18770
18771 USES_CONTROLS=1
18772fi
18773
18774if test "$wxUSE_BMPBUTTON" = "yes"; then
18775 cat >> confdefs.h <<\EOF
18776#define wxUSE_BMPBUTTON 1
18777EOF
18778
18779 USES_CONTROLS=1
18780fi
18781
18782if test "$wxUSE_CALCTRL" = "yes"; then
18783 cat >> confdefs.h <<\EOF
18784#define wxUSE_CALENDARCTRL 1
18785EOF
18786
18787 USES_CONTROLS=1
18788 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
10f2d63a
VZ
18789fi
18790
18791if test "$wxUSE_CARET" = "yes"; then
698dcdb6 18792 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18793#define wxUSE_CARET 1
18794EOF
18795
1e6feb95 18796 USES_CONTROLS=1
10f2d63a
VZ
18797 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
18798fi
18799
18800if test "$wxUSE_COMBOBOX" = "yes"; then
698dcdb6 18801 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18802#define wxUSE_COMBOBOX 1
18803EOF
18804
1e6feb95 18805 USES_CONTROLS=1
10f2d63a
VZ
18806fi
18807
18808if test "$wxUSE_CHOICE" = "yes"; then
698dcdb6 18809 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18810#define wxUSE_CHOICE 1
18811EOF
18812
1e6feb95 18813 USES_CONTROLS=1
10f2d63a
VZ
18814fi
18815
18816if test "$wxUSE_CHECKBOX" = "yes"; then
698dcdb6 18817 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18818#define wxUSE_CHECKBOX 1
18819EOF
18820
1e6feb95 18821 USES_CONTROLS=1
10f2d63a
VZ
18822fi
18823
18824if test "$wxUSE_CHECKLST" = "yes"; then
698dcdb6 18825 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18826#define wxUSE_CHECKLISTBOX 1
18827EOF
18828
1e6feb95 18829 USES_CONTROLS=1
10f2d63a
VZ
18830 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
18831fi
18832
18833if test "$wxUSE_GAUGE" = "yes"; then
698dcdb6 18834 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18835#define wxUSE_GAUGE 1
18836EOF
18837
1e6feb95 18838 USES_CONTROLS=1
10f2d63a
VZ
18839fi
18840
d6a55c4b
VZ
18841if test "$wxUSE_NEW_GRID" = "yes"; then
18842 wxUSE_GRID="yes"
698dcdb6 18843 cat >> confdefs.h <<\EOF
d6a55c4b 18844#define wxUSE_NEW_GRID 1
10f2d63a
VZ
18845EOF
18846
1e6feb95 18847 USES_CONTROLS=1
d6a55c4b 18848 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS newgrid"
10f2d63a
VZ
18849fi
18850
d6a55c4b 18851if test "$wxUSE_GRID" = "yes"; then
698dcdb6 18852 cat >> confdefs.h <<\EOF
d6a55c4b 18853#define wxUSE_GRID 1
10f2d63a
VZ
18854EOF
18855
1e6feb95 18856 USES_CONTROLS=1
d6a55c4b 18857 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
10f2d63a
VZ
18858fi
18859
18860if test "$wxUSE_IMAGLIST" = "yes"; then
698dcdb6 18861 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18862#define wxUSE_IMAGLIST 1
18863EOF
18864
18865fi
18866
18867if test "$wxUSE_LISTBOX" = "yes"; then
698dcdb6 18868 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18869#define wxUSE_LISTBOX 1
18870EOF
18871
1e6feb95 18872 USES_CONTROLS=1
10f2d63a
VZ
18873fi
18874
18875if test "$wxUSE_LISTCTRL" = "yes"; then
18876 if test "$wxUSE_IMAGLIST" = "yes"; then
698dcdb6 18877 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18878#define wxUSE_LISTCTRL 1
18879EOF
18880
1e6feb95 18881 USES_CONTROLS=1
10f2d63a
VZ
18882 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
18883 else
698dcdb6 18884 echo "configure: warning: wxListCtrl requires wxImageList and won't be compiled without it" 1>&2
10f2d63a
VZ
18885 fi
18886fi
18887
18888if test "$wxUSE_NOTEBOOK" = "yes"; then
698dcdb6 18889 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18890#define wxUSE_NOTEBOOK 1
18891EOF
18892
1e6feb95 18893 USES_CONTROLS=1
10f2d63a
VZ
18894 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
18895fi
18896
24176f2c
GD
18897if test "$wxUSE_PROPSHEET" = "yes"; then
18898 cat >> confdefs.h <<\EOF
18899#define wxUSE_PROPSHEET 1
18900EOF
18901
18902 USES_CONTROLS=1
18903 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS proplist"
18904fi
18905
10f2d63a 18906if test "$wxUSE_RADIOBOX" = "yes"; then
698dcdb6 18907 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18908#define wxUSE_RADIOBOX 1
18909EOF
18910
1e6feb95 18911 USES_CONTROLS=1
10f2d63a
VZ
18912fi
18913
18914if test "$wxUSE_RADIOBTN" = "yes"; then
698dcdb6 18915 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18916#define wxUSE_RADIOBTN 1
18917EOF
18918
1e6feb95 18919 USES_CONTROLS=1
10f2d63a
VZ
18920fi
18921
18922if test "$wxUSE_SASH" = "yes"; then
698dcdb6 18923 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18924#define wxUSE_SASH 1
18925EOF
18926
18927 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
18928fi
18929
18930if test "$wxUSE_SCROLLBAR" = "yes"; then
698dcdb6 18931 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18932#define wxUSE_SCROLLBAR 1
18933EOF
18934
1e6feb95 18935 USES_CONTROLS=1
741a9306 18936 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
10f2d63a
VZ
18937fi
18938
18939if test "$wxUSE_SLIDER" = "yes"; then
698dcdb6 18940 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18941#define wxUSE_SLIDER 1
18942EOF
18943
1e6feb95 18944 USES_CONTROLS=1
10f2d63a
VZ
18945fi
18946
18947if test "$wxUSE_SPINBTN" = "yes"; then
698dcdb6 18948 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18949#define wxUSE_SPINBTN 1
18950EOF
18951
1e6feb95 18952 USES_CONTROLS=1
10f2d63a
VZ
18953fi
18954
56cfaa52 18955if test "$wxUSE_SPINCTRL" = "yes"; then
698dcdb6 18956 cat >> confdefs.h <<\EOF
56cfaa52
RR
18957#define wxUSE_SPINCTRL 1
18958EOF
18959
1e6feb95 18960 USES_CONTROLS=1
56cfaa52
RR
18961fi
18962
10f2d63a 18963if test "$wxUSE_SPLITTER" = "yes"; then
698dcdb6 18964 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18965#define wxUSE_SPLITTER 1
18966EOF
18967
18968 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
18969fi
18970
18971if test "$wxUSE_STATBMP" = "yes"; then
698dcdb6 18972 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18973#define wxUSE_STATBMP 1
18974EOF
18975
1e6feb95 18976 USES_CONTROLS=1
10f2d63a
VZ
18977fi
18978
18979if test "$wxUSE_STATBOX" = "yes"; then
698dcdb6 18980 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18981#define wxUSE_STATBOX 1
18982EOF
18983
1e6feb95
VZ
18984 USES_CONTROLS=1
18985fi
18986
18987if test "$wxUSE_STATTEXT" = "yes"; then
18988 cat >> confdefs.h <<\EOF
18989#define wxUSE_STATTEXT 1
18990EOF
18991
18992 USES_CONTROLS=1
10f2d63a
VZ
18993fi
18994
18995if test "$wxUSE_STATLINE" = "yes"; then
18996 if test "$wxUSE_WINE" = 1 ; then
698dcdb6 18997 echo "configure: warning: wxStaticLine is not supported under WINE" 1>&2
10f2d63a 18998 else
698dcdb6 18999 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19000#define wxUSE_STATLINE 1
19001EOF
19002
1e6feb95 19003 USES_CONTROLS=1
10f2d63a
VZ
19004 fi
19005fi
19006
19007if test "$wxUSE_STATUSBAR" = "yes"; then
698dcdb6 19008 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19009#define wxUSE_STATUSBAR 1
19010EOF
19011
1e6feb95 19012 USES_CONTROLS=1
698dcdb6 19013
2286341c 19014 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
10f2d63a
VZ
19015fi
19016
19017if test "$wxUSE_TABDIALOG" = "yes"; then
698dcdb6 19018 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19019#define wxUSE_TAB_DIALOG 1
19020EOF
19021
19022 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
19023fi
19024
1e6feb95
VZ
19025if test "$wxUSE_TEXTCTRL" = "yes"; then
19026 cat >> confdefs.h <<\EOF
19027#define wxUSE_TEXTCTRL 1
19028EOF
19029
19030 USES_CONTROLS=1
19031 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
19032fi
19033
1db8dc4a 19034if test "$wxUSE_TOGGLEBTN" = "yes"; then
156b2523
GD
19035 if test "$wxUSE_MAC" = 1; then
19036 echo "configure: warning: Toggle button not yet supported under Mac OS X... disabled" 1>&2
19037 wxUSE_TOGGLEBTN=no
19038 fi
19039 if test "$wxUSE_UNIVERSAL" = "yes"; then
19040 echo "configure: warning: Toggle button not yet supported under wxUNIVERSAL... disabled" 1>&2
a45d7ab7
GD
19041 wxUSE_TOGGLEBTN=no
19042 fi
19043
19044 if test "$wxUSE_TOGGLEBTN" = "yes"; then
19045 cat >> confdefs.h <<\EOF
1db8dc4a
VZ
19046#define wxUSE_TOGGLEBTN 1
19047EOF
19048
1e6feb95 19049 USES_CONTROLS=1
a45d7ab7 19050 fi
1db8dc4a
VZ
19051fi
19052
360d6699 19053if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
698dcdb6 19054 cat >> confdefs.h <<\EOF
360d6699
VZ
19055#define wxUSE_TOOLBAR_SIMPLE 1
19056EOF
19057
19058 wxUSE_TOOLBAR="yes"
1e6feb95 19059 USES_CONTROLS=1
360d6699
VZ
19060fi
19061
10f2d63a 19062if test "$wxUSE_TOOLBAR" = "yes"; then
698dcdb6 19063 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19064#define wxUSE_TOOLBAR 1
19065EOF
19066
1e6feb95 19067 USES_CONTROLS=1
698dcdb6 19068
360d6699
VZ
19069 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
19070 wxUSE_TOOLBAR_NATIVE="yes"
19071 fi
19072
1e6feb95
VZ
19073 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
19074 cat >> confdefs.h <<\EOF
360d6699
VZ
19075#define wxUSE_TOOLBAR_NATIVE 1
19076EOF
19077
1e6feb95
VZ
19078 USES_CONTROLS=1
19079 fi
19080
19081 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
360d6699
VZ
19082fi
19083
10f2d63a
VZ
19084if test "$wxUSE_TOOLTIPS" = "yes"; then
19085 if test "$wxUSE_MOTIF" = 1; then
156b2523 19086 echo "configure: warning: wxTooltip not supported yet under Motif... disabled" 1>&2
10f2d63a
VZ
19087 else
19088 if test "$wxUSE_WINE" = 1; then
156b2523 19089 echo "configure: warning: wxTooltip not supported under WINE... disabled" 1>&2
10f2d63a 19090 else
69d27ff7 19091 if test "$wxUSE_UNIVERSAL" = "yes"; then
156b2523 19092 echo "configure: warning: wxTooltip not supported yet in wxUNIVERSAL... disabled" 1>&2
69d27ff7
MB
19093 else
19094 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19095#define wxUSE_TOOLTIPS 1
19096EOF
19097
69d27ff7 19098 fi
10f2d63a
VZ
19099 fi
19100 fi
19101fi
19102
19103if test "$wxUSE_TREECTRL" = "yes"; then
19104 if test "$wxUSE_IMAGLIST" = "yes"; then
698dcdb6 19105 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19106#define wxUSE_TREECTRL 1
19107EOF
19108
1e6feb95 19109 USES_CONTROLS=1
10f2d63a
VZ
19110 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
19111 else
698dcdb6 19112 echo "configure: warning: wxTreeCtrl requires wxImageList and won't be compiled without it" 1>&2
10f2d63a
VZ
19113 fi
19114fi
19115
9f41d601 19116if test "$wxUSE_POPUPWIN" = "yes"; then
6abe4b65 19117 if test "$wxUSE_MAC" = 1; then
156b2523 19118 echo "configure: warning: Popup window not yet supported under Mac OS X... disabled" 1>&2
6abe4b65 19119 else
485cf710
VZ
19120 if test "$wxUSE_MOTIF" = 1; then
19121 echo "configure: warning: wxPopupWindow not yet supported under Motif... disabled" 1>&2
19122 else
19123 cat >> confdefs.h <<\EOF
9f41d601
RR
19124#define wxUSE_POPUPWIN 1
19125EOF
19126
9926e4a4 19127
485cf710
VZ
19128 USES_CONTROLS=1
19129 fi
6abe4b65 19130 fi
9f41d601
RR
19131fi
19132
dd964dcc
VZ
19133if test "$wxUSE_TIPWINDOW" = "yes"; then
19134 cat >> confdefs.h <<\EOF
19135#define wxUSE_TIPWINDOW 1
19136EOF
19137
19138fi
19139
1e6feb95
VZ
19140if test "$USES_CONTROLS" = 1; then
19141 cat >> confdefs.h <<\EOF
19142#define wxUSE_CONTROLS 1
10f2d63a
VZ
19143EOF
19144
10f2d63a
VZ
19145fi
19146
1e6feb95 19147
24176f2c
GD
19148if test "$wxUSE_TREELAYOUT" = "yes"; then
19149 cat >> confdefs.h <<\EOF
19150#define wxUSE_TREELAYOUT 1
19151EOF
19152
19153 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treelay"
19154fi
1e6feb95 19155
24fd6d87
VZ
19156if test "$wxUSE_DRAGIMAGE" = "yes"; then
19157 cat >> confdefs.h <<\EOF
19158#define wxUSE_DRAGIMAGE 1
19159EOF
19160
19161 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
19162fi
19163
1e6feb95 19164if test "$wxUSE_MENUS" = "yes"; then
698dcdb6 19165 cat >> confdefs.h <<\EOF
1e6feb95 19166#define wxUSE_MENUS 1
10f2d63a
VZ
19167EOF
19168
1e6feb95 19169 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
10f2d63a
VZ
19170fi
19171
1e6feb95
VZ
19172if test "$wxUSE_METAFILE" = "yes"; then
19173 cat >> confdefs.h <<\EOF
19174#define wxUSE_METAFILE 1
10f2d63a
VZ
19175EOF
19176
10f2d63a
VZ
19177fi
19178
1e6feb95
VZ
19179if test "$wxUSE_MIMETYPE" = "yes"; then
19180 cat >> confdefs.h <<\EOF
19181#define wxUSE_MIMETYPE 1
10f2d63a
VZ
19182EOF
19183
10f2d63a
VZ
19184fi
19185
3e44f09d
VZ
19186if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
19187 cat >> confdefs.h <<\EOF
19188#define wxUSE_SYSTEM_OPTIONS 1
19189EOF
19190
19191fi
19192
4cdb0ab0 19193if test "$wxUSE_PROTOCOL" = "yes"; then
3954f9ca
VS
19194 if test "$wxUSE_SOCKETS" != "yes"; then
19195 echo "configure: warning: Protocol classes require sockets... disabled" 1>&2
19196 wxUSE_PROTOCOL=no
19197 fi
19198
19199 if test "$wxUSE_PROTOCOL" = "yes"; then
19200 cat >> confdefs.h <<\EOF
4cdb0ab0
VS
19201#define wxUSE_PROTOCOL 1
19202EOF
19203
19204
3954f9ca
VS
19205 if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
19206 cat >> confdefs.h <<\EOF
4cdb0ab0
VS
19207#define wxUSE_PROTOCOL_HTTP 1
19208EOF
19209
3954f9ca
VS
19210 fi
19211 if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
19212 cat >> confdefs.h <<\EOF
4cdb0ab0
VS
19213#define wxUSE_PROTOCOL_FTP 1
19214EOF
19215
3954f9ca
VS
19216 fi
19217 if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
19218 cat >> confdefs.h <<\EOF
19219#define wxUSE_PROTOCOL_FILE 1
19220EOF
19221
19222 fi
4cdb0ab0 19223 fi
3954f9ca
VS
19224fi
19225
19226if test "$wxUSE_URL" = "yes"; then
19227 if test "$wxUSE_PROTOCOL" != "yes"; then
19228 echo "configure: warning: wxURL class requires wxProtocol... disabled" 1>&2
19229 wxUSE_URL=no
19230 fi
19231 if test "$wxUSE_URL" = "yes"; then
4cdb0ab0 19232 cat >> confdefs.h <<\EOF
3954f9ca 19233#define wxUSE_URL 1
4cdb0ab0
VS
19234EOF
19235
19236 fi
19237fi
19238
10f2d63a 19239if test "$wxUSE_MINIFRAME" = "yes"; then
698dcdb6 19240 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19241#define wxUSE_MINIFRAME 1
19242EOF
19243
19244 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
19245fi
19246
19247if test "$wxUSE_HTML" = "yes"; then
698dcdb6 19248 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19249#define wxUSE_HTML 1
19250EOF
19251
19252 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html"
10f2d63a
VZ
19253fi
19254
19255if test "$wxUSE_VALIDATORS" = "yes"; then
698dcdb6 19256 cat >> confdefs.h <<\EOF
1e487827
VS
19257#define wxUSE_VALIDATORS 1
19258EOF
703e0a69 19259
698dcdb6
VZ
19260 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
19261fi
19262
edae8572
VZ
19263if test "$wxUSE_PALETTE" = "yes" ; then
19264 cat >> confdefs.h <<\EOF
19265#define wxUSE_PALETTE 1
19266EOF
19267
19268fi
19269
698dcdb6
VZ
19270if test "$wxUSE_IMAGE" = "yes" ; then
19271 cat >> confdefs.h <<\EOF
19272#define wxUSE_IMAGE 1
19273EOF
19274
19275fi
19276
19277if test "$wxUSE_GIF" = "yes" ; then
19278 cat >> confdefs.h <<\EOF
19279#define wxUSE_GIF 1
19280EOF
19281
19282fi
19283
19284if test "$wxUSE_PCX" = "yes" ; then
19285 cat >> confdefs.h <<\EOF
19286#define wxUSE_PCX 1
19287EOF
19288
19289fi
19290
19291if test "$wxUSE_PNM" = "yes" ; then
19292 cat >> confdefs.h <<\EOF
19293#define wxUSE_PNM 1
19294EOF
19295
19296fi
19297
19298if test "$wxUSE_XPM" = "yes" ; then
19299 cat >> confdefs.h <<\EOF
19300#define wxUSE_XPM 1
19301EOF
19302
19303fi
19304
a72a4bfa
VS
19305if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
19306 LIBS=" -lunicows $LIBS"
19307fi
19308
698dcdb6 19309
1e6feb95
VZ
19310if test "$wxUSE_CHOICEDLG" = "yes"; then
19311 cat >> confdefs.h <<\EOF
19312#define wxUSE_CHOICEDLG 1
19313EOF
19314
19315fi
19316
19317if test "$wxUSE_COLOURDLG" = "yes"; then
19318 cat >> confdefs.h <<\EOF
19319#define wxUSE_COLOURDLG 1
19320EOF
19321
19322fi
19323
19324if test "$wxUSE_FILEDLG" = "yes"; then
19325 cat >> confdefs.h <<\EOF
19326#define wxUSE_FILEDLG 1
19327EOF
19328
19329fi
19330
8db37e06
VZ
19331if test "$wxUSE_FINDREPLDLG" = "yes"; then
19332 cat >> confdefs.h <<\EOF
19333#define wxUSE_FINDREPLDLG 1
19334EOF
19335
19336fi
19337
1e6feb95
VZ
19338if test "$wxUSE_FONTDLG" = "yes"; then
19339 cat >> confdefs.h <<\EOF
19340#define wxUSE_FONTDLG 1
19341EOF
19342
19343fi
19344
19345if test "$wxUSE_DIRDLG" = "yes"; then
19346 if test "$wxUSE_CONSTRAINTS" != "yes"; then
19347 echo "configure: warning: wxDirDialog requires constraints so it won't be compiled without them" 1>&2
19348 else
19349 if test "$wxUSE_TREECTRL" != "yes"; then
19350 echo "configure: warning: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" 1>&2
19351 else
19352 cat >> confdefs.h <<\EOF
19353#define wxUSE_DIRDLG 1
19354EOF
19355
19356 fi
19357 fi
19358fi
19359
19360if test "$wxUSE_MSGDLG" = "yes"; then
19361 cat >> confdefs.h <<\EOF
19362#define wxUSE_MSGDLG 1
19363EOF
19364
19365fi
19366
19367if test "$wxUSE_NUMBERDLG" = "yes"; then
19368 cat >> confdefs.h <<\EOF
19369#define wxUSE_NUMBERDLG 1
19370EOF
19371
19372fi
19373
19374if test "$wxUSE_PROGRESSDLG" = "yes"; then
19375 if test "$wxUSE_CONSTRAINTS" != "yes"; then
19376 echo "configure: warning: wxProgressDialog requires constraints so it won't be compiled without them" 1>&2
19377 else
19378 cat >> confdefs.h <<\EOF
19379#define wxUSE_PROGRESSDLG 1
19380EOF
19381
19382 fi
19383fi
19384
cbca9943
VZ
19385if test "$wxUSE_SPLASH" = "yes"; then
19386 cat >> confdefs.h <<\EOF
19387#define wxUSE_SPLASH 1
19388EOF
19389
19390fi
19391
1e6feb95
VZ
19392if test "$wxUSE_STARTUP_TIPS" = "yes"; then
19393 if test "$wxUSE_CONSTRAINTS" != "yes"; then
19394 echo "configure: warning: Startup tips requires constraints and won't be compiled without them" 1>&2
19395 else
19396 cat >> confdefs.h <<\EOF
19397#define wxUSE_STARTUP_TIPS 1
19398EOF
19399
19400 fi
19401fi
19402
19403if test "$wxUSE_TEXTDLG" = "yes"; then
19404 cat >> confdefs.h <<\EOF
19405#define wxUSE_TEXTDLG 1
19406EOF
19407
19408fi
19409
b1f5d087
VZ
19410if test "$wxUSE_WIZARDDLG" = "yes"; then
19411 cat >> confdefs.h <<\EOF
19412#define wxUSE_WIZARDDLG 1
19413EOF
19414
19415 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
19416fi
19417
1e6feb95 19418
698dcdb6
VZ
19419if test "$cross_compiling" = "yes"; then
19420 OSINFO="\"$host\""
19421else
19422 OSINFO=`uname -s -r -m`
19423 OSINFO="\"$OSINFO\""
19424fi
19425
19426cat >> confdefs.h <<EOF
19427#define WXWIN_OS_DESCRIPTION $OSINFO
19428EOF
19429
19430
19431
06dda230
VZ
19432if test "x$prefix" != "xNONE"; then
19433 wxPREFIX=$prefix
19434else
19435 wxPREFIX=$ac_default_prefix
19436fi
19437
7e67ed0d 19438cat >> confdefs.h <<EOF
06dda230 19439#define wxINSTALL_PREFIX "$wxPREFIX"
7e67ed0d
VZ
19440EOF
19441
19442
19443
698dcdb6 19444
3a922bb4 19445
f11bdd03 19446if test "$wxUSE_MAC" = 1 ; then
3d63bc3a 19447 LDFLAGS="$LDFLAGS -framework Carbon -framework System"
698dcdb6 19448fi
3a922bb4 19449
3d63bc3a
RL
19450
19451LIBS="$ZLIB_LINK$POSIX4_LINK$INET_LINK$WCHAR_LINK$THREADS_LINK$DL_LINK -lm$LIBS"
19452
698dcdb6 19453if test "$wxUSE_GUI" = "yes"; then
3d63bc3a
RL
19454
19455 LIBS=" $GUI_TK_LIBRARY$PNG_LINK$JPEG_LINK$TIFF_LINK$FREETYPE_LINK$LIBS"
3a922bb4
RL
19456
19457
19458 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS controls dialogs \
19459 drawing dynamic erase event exec font image \
19460 minimal richedit rotate widgets"
19461
3a922bb4
RL
19462 CPPFLAGS="$CPPFLAGS \$(EXTRADEFS) \$(APPEXTRADEFS)"
19463else
19464 SAMPLES_SUBDIRS="console"
698dcdb6
VZ
19465fi
19466
698dcdb6 19467
d714471b 19468INCLUDES="-I\${top_builddir}/lib/wx/include/${TOOLCHAIN_NAME} -I\${top_srcdir}/include \
3e44f09d
VZ
19469$REGEX_INCLUDE $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE \
19470$FREETYPE_INCLUDE $TOOLKIT_INCLUDE"
698dcdb6 19471
63e7762e 19472if test "$wxUSE_GTK" = 1; then
3d63bc3a 19473 WXCONFIG_INCLUDE=
698dcdb6
VZ
19474else
19475 WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
19476fi
19477
19478if test "$GXX" = yes ; then
19479 CXXWARNINGS="-Wall"
88e30f2b
RL
19480
19481 if test "$wxUSE_NO_DEPS" = "no" ; then
19482 CFLAGS="-MMD $CFLAGS"
19483 CXXFLAGS="-MMD $CXXFLAGS"
19484 fi
19485fi
19486
1725144d 19487EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE $INCLUDES"
698dcdb6
VZ
19488
19489CFLAGS=`echo $CFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'`
19490CXXFLAGS=`echo $CXXFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \+/ /g'`
19491
3d63bc3a 19492LDFLAGS="$LDFLAGS$PROFILE"
698dcdb6 19493
698dcdb6
VZ
19494SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
19495
19496
19497
19498
19499
19500
19501
19502
19503
19504
19505
19506
19507
19508
19509
19510
19511
19512
19513
19514
19515
19516
19517
19518
19519
19520
19521
19522
19523
19524
19525
19526
19527
19528
19529
19530
19531
19532
19533
19534
19535
19536
19537
19538
19539
19540
19541
19542
19543
19544
19545
19546
19547
19548
19549
19550
19551
19552
19553
19554
19555
19556
19557
19558
19559
19560
19561
32832908 19562
2f51a9ec
GD
19563
19564
19565
19566
f6bcfd97 19567
dad6c0ea 19568
caa2c79b 19569
3711412e 19570
1e6feb95
VZ
19571
19572
885d4bf5
VS
19573
19574
19575
19576
62d0491b 19577
10f2d63a
VZ
19578
19579
698dcdb6 19580echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
3954f9ca 19581echo "configure:19582: checking whether ${MAKE-make} sets \${MAKE}" >&5
698dcdb6
VZ
19582set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
19583if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
19584 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 19585else
698dcdb6 19586 cat > conftestmake <<\EOF
10f2d63a
VZ
19587all:
19588 @echo 'ac_maketemp="${MAKE}"'
19589EOF
19590# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
698dcdb6 19591eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
10f2d63a
VZ
19592if test -n "$ac_maketemp"; then
19593 eval ac_cv_prog_make_${ac_make}_set=yes
19594else
19595 eval ac_cv_prog_make_${ac_make}_set=no
19596fi
698dcdb6 19597rm -f conftestmake
10f2d63a
VZ
19598fi
19599if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
698dcdb6 19600 echo "$ac_t""yes" 1>&6
10f2d63a
VZ
19601 SET_MAKE=
19602else
698dcdb6 19603 echo "$ac_t""no" 1>&6
10f2d63a
VZ
19604 SET_MAKE="MAKE=${MAKE-make}"
19605fi
19606
698dcdb6 19607
3a922bb4
RL
19608if test -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h; then
19609 mv -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h setup.h
00cf1208 19610fi
665bbe97 19611
698dcdb6 19612
10f2d63a 19613
2224580a 19614if test "$wxUSE_GUI" = "yes"; then
ec90f5e5 19615 wx_cv_path_samplesubdirs=$SAMPLES_SUBDIRS
e8482f24
GL
19616 wx_cv_path_ifs=$PATH_IFS
19617 wx_cv_program_ext=$PROGRAM_EXT
19618 wx_cv_target_library=$WX_TARGET_LIBRARY
7b6058cd 19619 wx_cv_target_library_gl=$WX_TARGET_LIBRARY_GL
3711412e 19620 wx_cv_target_libtype=$WX_TARGET_LIBRARY_TYPE
93a20a27 19621 export wx_cv_path_samplesubdirs wx_cv_path_ifs wx_cv_program_ext \
7b6058cd 19622 wx_cv_target_library wx_cv_target_library_gl wx_cv_target_libtype
698dcdb6 19623 subdirs="demos samples utils contrib"
2224580a
VZ
19624
19625fi
10f2d63a 19626
698dcdb6
VZ
19627trap '' 1 2 15
19628cat > confcache <<\EOF
10f2d63a
VZ
19629# This file is a shell script that caches the results of configure
19630# tests run on this system so they can be shared between configure
698dcdb6
VZ
19631# scripts and configure runs. It is not useful on other systems.
19632# If it contains results you don't want to keep, you may remove or edit it.
10f2d63a 19633#
698dcdb6
VZ
19634# By default, configure uses ./config.cache as the cache file,
19635# creating it if it does not exist already. You can give configure
19636# the --cache-file=FILE option to use a different cache file; that is
19637# what configure does when it calls configure scripts in
19638# subdirectories, so they share the cache.
19639# Giving --cache-file=/dev/null disables caching, for debugging configure.
19640# config.status only pays attention to the cache file if you give it the
19641# --recheck option to rerun configure.
10f2d63a 19642#
698dcdb6 19643EOF
10f2d63a
VZ
19644# The following way of writing the cache mishandles newlines in values,
19645# but we know of no workaround that is simple, portable, and efficient.
19646# So, don't put newlines in cache variables' values.
19647# Ultrix sh set writes to stderr and can't be redirected directly,
19648# and sets the high bit in the cache file unless we assign to the vars.
698dcdb6
VZ
19649(set) 2>&1 |
19650 case `(ac_space=' '; set | grep ac_space) 2>&1` in
19651 *ac_space=\ *)
19652 # `set' does not quote correctly, so add quotes (double-quote substitution
19653 # turns \\\\ into \\, and sed turns \\ into \).
19654 sed -n \
19655 -e "s/'/'\\\\''/g" \
19656 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
19657 ;;
19658 *)
19659 # `set' quotes correctly as required by POSIX, so do not add quotes.
19660 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
19661 ;;
19662 esac >> confcache
19663if cmp -s $cache_file confcache; then
19664 :
19665else
10f2d63a 19666 if test -w $cache_file; then
698dcdb6
VZ
19667 echo "updating cache $cache_file"
19668 cat confcache > $cache_file
10f2d63a
VZ
19669 else
19670 echo "not updating unwritable cache $cache_file"
19671 fi
19672fi
19673rm -f confcache
19674
698dcdb6
VZ
19675trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
19676
10f2d63a
VZ
19677test "x$prefix" = xNONE && prefix=$ac_default_prefix
19678# Let make expand exec_prefix.
19679test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19680
698dcdb6
VZ
19681# Any assignment to VPATH causes Sun make to only execute
19682# the first set of double-colon rules, so remove it if not needed.
19683# If there is a colon in the path, we need to keep it.
10f2d63a 19684if test "x$srcdir" = x.; then
698dcdb6 19685 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
10f2d63a
VZ
19686fi
19687
698dcdb6
VZ
19688trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
19689
10f2d63a
VZ
19690DEFS=-DHAVE_CONFIG_H
19691
698dcdb6 19692# Without the "./", some shells look in PATH for config.status.
10f2d63a 19693: ${CONFIG_STATUS=./config.status}
698dcdb6
VZ
19694
19695echo creating $CONFIG_STATUS
19696rm -f $CONFIG_STATUS
19697cat > $CONFIG_STATUS <<EOF
19698#! /bin/sh
10f2d63a
VZ
19699# Generated automatically by configure.
19700# Run this file to recreate the current configuration.
698dcdb6
VZ
19701# This directory was configured as follows,
19702# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19703#
19704# $0 $ac_configure_args
19705#
10f2d63a 19706# Compiler output produced by configure, useful for debugging
698dcdb6 19707# configure, is in ./config.log if it exists.
1e487827 19708
698dcdb6
VZ
19709ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
19710for ac_option
10f2d63a 19711do
698dcdb6 19712 case "\$ac_option" in
10f2d63a 19713 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
698dcdb6
VZ
19714 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
19715 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
19716 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
19717 echo "$CONFIG_STATUS generated by autoconf version 2.13"
19718 exit 0 ;;
19719 -help | --help | --hel | --he | --h)
19720 echo "\$ac_cs_usage"; exit 0 ;;
19721 *) echo "\$ac_cs_usage"; exit 1 ;;
10f2d63a
VZ
19722 esac
19723done
19724
698dcdb6
VZ
19725ac_given_srcdir=$srcdir
19726ac_given_INSTALL="$INSTALL"
703e0a69 19727
698dcdb6
VZ
19728trap 'rm -fr `echo "
19729 wx-config
19730 src/make.env
19731 src/makeprog.env
19732 src/makelib.env
19733 Makefile
19734 setup.h:setup.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1e487827 19735EOF
698dcdb6 19736cat >> $CONFIG_STATUS <<EOF
1e487827 19737
698dcdb6
VZ
19738# Protect against being on the right side of a sed subst in config.status.
19739sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
19740 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
19741$ac_vpsub
19742$extrasub
19743s%@SHELL@%$SHELL%g
19744s%@CFLAGS@%$CFLAGS%g
19745s%@CPPFLAGS@%$CPPFLAGS%g
19746s%@CXXFLAGS@%$CXXFLAGS%g
19747s%@FFLAGS@%$FFLAGS%g
19748s%@DEFS@%$DEFS%g
19749s%@LDFLAGS@%$LDFLAGS%g
19750s%@LIBS@%$LIBS%g
19751s%@exec_prefix@%$exec_prefix%g
19752s%@prefix@%$prefix%g
19753s%@program_transform_name@%$program_transform_name%g
19754s%@bindir@%$bindir%g
19755s%@sbindir@%$sbindir%g
19756s%@libexecdir@%$libexecdir%g
19757s%@datadir@%$datadir%g
19758s%@sysconfdir@%$sysconfdir%g
19759s%@sharedstatedir@%$sharedstatedir%g
19760s%@localstatedir@%$localstatedir%g
19761s%@libdir@%$libdir%g
19762s%@includedir@%$includedir%g
19763s%@oldincludedir@%$oldincludedir%g
19764s%@infodir@%$infodir%g
19765s%@mandir@%$mandir%g
19766s%@host@%$host%g
19767s%@host_alias@%$host_alias%g
19768s%@host_cpu@%$host_cpu%g
19769s%@host_vendor@%$host_vendor%g
19770s%@host_os@%$host_os%g
19771s%@target@%$target%g
19772s%@target_alias@%$target_alias%g
19773s%@target_cpu@%$target_cpu%g
19774s%@target_vendor@%$target_vendor%g
19775s%@target_os@%$target_os%g
19776s%@build@%$build%g
19777s%@build_alias@%$build_alias%g
19778s%@build_cpu@%$build_cpu%g
19779s%@build_vendor@%$build_vendor%g
19780s%@build_os@%$build_os%g
19781s%@CC@%$CC%g
19782s%@CPP@%$CPP%g
19783s%@CXX@%$CXX%g
698dcdb6
VZ
19784s%@RANLIB@%$RANLIB%g
19785s%@AR@%$AR%g
19786s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
d6853540 19787s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
6054113a 19788s%@INSTALL_DATA@%$INSTALL_DATA%g
698dcdb6
VZ
19789s%@STRIP@%$STRIP%g
19790s%@YACC@%$YACC%g
19791s%@LEX@%$LEX%g
19792s%@LEXLIB@%$LEXLIB%g
19793s%@LN_S@%$LN_S%g
19794s%@GTK_CONFIG_2_0@%$GTK_CONFIG_2_0%g
698dcdb6
VZ
19795s%@GTK_CFLAGS@%$GTK_CFLAGS%g
19796s%@GTK_LIBS@%$GTK_LIBS%g
8168de4c 19797s%@GTK_CONFIG@%$GTK_CONFIG%g
698dcdb6
VZ
19798s%@X_CFLAGS@%$X_CFLAGS%g
19799s%@X_PRE_LIBS@%$X_PRE_LIBS%g
19800s%@X_LIBS@%$X_LIBS%g
19801s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
3a922bb4 19802s%@RESCOMP@%$RESCOMP%g
698dcdb6 19803s%@DEREZ@%$DEREZ%g
3a922bb4 19804s%@CXXCPP@%$CXXCPP%g
698dcdb6
VZ
19805s%@LEX_STEM@%$LEX_STEM%g
19806s%@PATH_IFS@%$PATH_IFS%g
19807s%@WX_MAJOR_VERSION_NUMBER@%$WX_MAJOR_VERSION_NUMBER%g
19808s%@WX_MINOR_VERSION_NUMBER@%$WX_MINOR_VERSION_NUMBER%g
19809s%@WX_RELEASE_NUMBER@%$WX_RELEASE_NUMBER%g
698dcdb6
VZ
19810s%@WX_LIBRARY_NAME_STATIC@%$WX_LIBRARY_NAME_STATIC%g
19811s%@WX_LIBRARY_NAME_SHARED@%$WX_LIBRARY_NAME_SHARED%g
77e13408 19812s%@WX_LIBRARY_IMPORTLIB@%$WX_LIBRARY_IMPORTLIB%g
698dcdb6
VZ
19813s%@WX_TARGET_LIBRARY@%$WX_TARGET_LIBRARY%g
19814s%@WX_LIBRARY_LINK1@%$WX_LIBRARY_LINK1%g
19815s%@WX_LIBRARY_LINK2@%$WX_LIBRARY_LINK2%g
698dcdb6 19816s%@PROGRAM_EXT@%$PROGRAM_EXT%g
698dcdb6
VZ
19817s%@WX_LIBRARY_NAME_STATIC_GL@%$WX_LIBRARY_NAME_STATIC_GL%g
19818s%@WX_LIBRARY_NAME_SHARED_GL@%$WX_LIBRARY_NAME_SHARED_GL%g
698dcdb6
VZ
19819s%@WX_TARGET_LIBRARY_GL@%$WX_TARGET_LIBRARY_GL%g
19820s%@WX_LIBRARY_LINK1_GL@%$WX_LIBRARY_LINK1_GL%g
19821s%@WX_LIBRARY_LINK2_GL@%$WX_LIBRARY_LINK2_GL%g
698dcdb6
VZ
19822s%@WX_ALL@%$WX_ALL%g
19823s%@WX_ALL_INSTALLED@%$WX_ALL_INSTALLED%g
19824s%@SHARED_LD@%$SHARED_LD%g
19825s%@PIC_FLAG@%$PIC_FLAG%g
698dcdb6
VZ
19826s%@CODE_GEN_FLAGS@%$CODE_GEN_FLAGS%g
19827s%@CODE_GEN_FLAGS_CXX@%$CODE_GEN_FLAGS_CXX%g
3a922bb4
RL
19828s%@SONAME_FLAGS@%$SONAME_FLAGS%g
19829s%@SONAME_FLAGS_GL@%$SONAME_FLAGS_GL%g
698dcdb6
VZ
19830s%@WX_TARGET_LIBRARY_SONAME@%$WX_TARGET_LIBRARY_SONAME%g
19831s%@WX_TARGET_LIBRARY_TYPE@%$WX_TARGET_LIBRARY_TYPE%g
19832s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g
19833s%@USE_GUI@%$USE_GUI%g
19834s%@AFMINSTALL@%$AFMINSTALL%g
19835s%@TOOLKIT@%$TOOLKIT%g
698dcdb6 19836s%@TOOLKIT_DIR@%$TOOLKIT_DIR%g
1e6feb95 19837s%@TOOLKIT_VPATH@%$TOOLKIT_VPATH%g
3a922bb4
RL
19838s%@TOOLCHAIN_NAME@%$TOOLCHAIN_NAME%g
19839s%@TOOLCHAIN_DEFS@%$TOOLCHAIN_DEFS%g
00c81359 19840s%@TOOLCHAIN_DLL_DEFS@%$TOOLCHAIN_DLL_DEFS%g
3a922bb4
RL
19841s%@cross_compiling@%$cross_compiling%g
19842s%@WXCONFIG_LIBS@%$WXCONFIG_LIBS%g
19843s%@WXCONFIG_LIBS_GL@%$WXCONFIG_LIBS_GL%g
885d4bf5
VS
19844s%@WXCONFIG_LIBS_STATIC@%$WXCONFIG_LIBS_STATIC%g
19845s%@WXCONFIG_LIBS_STATIC_GL@%$WXCONFIG_LIBS_STATIC_GL%g
698dcdb6
VZ
19846s%@WXCONFIG_INCLUDE@%$WXCONFIG_INCLUDE%g
19847s%@ALL_OBJECTS@%$ALL_OBJECTS%g
698dcdb6
VZ
19848s%@GUIDIST@%$GUIDIST%g
19849s%@PORT_FILES@%$PORT_FILES%g
19850s%@DISTDIR@%$DISTDIR%g
698dcdb6 19851s%@SAMPLES_SUBDIRS@%$SAMPLES_SUBDIRS%g
62d0491b 19852s%@LDFLAGS_GL@%$LDFLAGS_GL%g
698dcdb6 19853s%@OPENGL_LIBS@%$OPENGL_LIBS%g
3d63bc3a 19854s%@DMALLOC_LIBS@%$DMALLOC_LIBS%g
698dcdb6 19855s%@EXTRADEFS@%$EXTRADEFS%g
698dcdb6 19856s%@RESFLAGS@%$RESFLAGS%g
3a922bb4 19857s%@RESPROGRAMOBJ@%$RESPROGRAMOBJ%g
d08b457b 19858s%@WX_RESOURCES_MACOSX@%$WX_RESOURCES_MACOSX%g
e23081de 19859s%@WX_RESOURCES_MACOSX_COMPILED@%$WX_RESOURCES_MACOSX_COMPILED%g
698dcdb6
VZ
19860s%@LIBWXMACRES@%$LIBWXMACRES%g
19861s%@LIBWXMACRESCOMP@%$LIBWXMACRESCOMP%g
2baaf735 19862s%@LIBWXMACRESWXCONFIG@%$LIBWXMACRESWXCONFIG%g
698dcdb6
VZ
19863s%@DLLTOOL@%$DLLTOOL%g
19864s%@AS@%$AS%g
19865s%@NM@%$NM%g
19866s%@LD@%$LD%g
19867s%@MAKEINFO@%$MAKEINFO%g
885d4bf5 19868s%@INSTALL_LIBRARY@%$INSTALL_LIBRARY%g
698dcdb6
VZ
19869s%@SET_MAKE@%$SET_MAKE%g
19870s%@subdirs@%$subdirs%g
1e487827 19871
1e487827 19872CEOF
1e487827
VS
19873EOF
19874
698dcdb6
VZ
19875cat >> $CONFIG_STATUS <<\EOF
19876
19877# Split the substitutions into bite-sized pieces for seds with
19878# small command number limits, like on Digital OSF/1 and HP-UX.
19879ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
19880ac_file=1 # Number of current file.
19881ac_beg=1 # First line for current file.
19882ac_end=$ac_max_sed_cmds # Line after last line for current file.
19883ac_more_lines=:
19884ac_sed_cmds=""
19885while $ac_more_lines; do
19886 if test $ac_beg -gt 1; then
19887 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
19888 else
19889 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
19890 fi
19891 if test ! -s conftest.s$ac_file; then
19892 ac_more_lines=false
19893 rm -f conftest.s$ac_file
19894 else
19895 if test -z "$ac_sed_cmds"; then
19896 ac_sed_cmds="sed -f conftest.s$ac_file"
10f2d63a 19897 else
698dcdb6 19898 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
10f2d63a 19899 fi
698dcdb6
VZ
19900 ac_file=`expr $ac_file + 1`
19901 ac_beg=$ac_end
19902 ac_end=`expr $ac_end + $ac_max_sed_cmds`
10f2d63a 19903 fi
698dcdb6
VZ
19904done
19905if test -z "$ac_sed_cmds"; then
19906 ac_sed_cmds=cat
19907fi
19908EOF
10f2d63a 19909
698dcdb6
VZ
19910cat >> $CONFIG_STATUS <<EOF
19911
19912CONFIG_FILES=\${CONFIG_FILES-"wx-config
19913 src/make.env
19914 src/makeprog.env
19915 src/makelib.env
19916 Makefile
19917 "}
10f2d63a 19918EOF
698dcdb6
VZ
19919cat >> $CONFIG_STATUS <<\EOF
19920for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
10f2d63a 19921 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
698dcdb6
VZ
19922 case "$ac_file" in
19923 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
19924 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
19925 *) ac_file_in="${ac_file}.in" ;;
10f2d63a
VZ
19926 esac
19927
698dcdb6 19928 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
1e487827 19929
698dcdb6
VZ
19930 # Remove last slash and all that follows it. Not all systems have dirname.
19931 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
19932 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
19933 # The file is in a subdirectory.
19934 test ! -d "$ac_dir" && mkdir "$ac_dir"
19935 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
10f2d63a 19936 # A "../" for each directory in $ac_dir_suffix.
698dcdb6 19937 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
10f2d63a
VZ
19938 else
19939 ac_dir_suffix= ac_dots=
19940 fi
19941
698dcdb6
VZ
19942 case "$ac_given_srcdir" in
19943 .) srcdir=.
19944 if test -z "$ac_dots"; then top_srcdir=.
19945 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
19946 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
10f2d63a 19947 *) # Relative path.
698dcdb6
VZ
19948 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
19949 top_srcdir="$ac_dots$ac_given_srcdir" ;;
10f2d63a
VZ
19950 esac
19951
698dcdb6
VZ
19952 case "$ac_given_INSTALL" in
19953 [/$]*) INSTALL="$ac_given_INSTALL" ;;
19954 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
10f2d63a
VZ
19955 esac
19956
698dcdb6
VZ
19957 echo creating "$ac_file"
19958 rm -f "$ac_file"
19959 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
19960 case "$ac_file" in
19961 *Makefile*) ac_comsub="1i\\
19962# $configure_input" ;;
19963 *) ac_comsub= ;;
19964 esac
10f2d63a 19965
698dcdb6
VZ
19966 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
19967 sed -e "$ac_comsub
19968s%@configure_input@%$configure_input%g
19969s%@srcdir@%$srcdir%g
19970s%@top_srcdir@%$top_srcdir%g
19971s%@INSTALL@%$INSTALL%g
19972" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
19973fi; done
19974rm -f conftest.s*
10f2d63a
VZ
19975
19976# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
19977# NAME is the cpp macro being defined and VALUE is the value it is being given.
19978#
19979# ac_d sets the value in "#define NAME VALUE" lines.
698dcdb6
VZ
19980ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
19981ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
19982ac_dC='\3'
19983ac_dD='%g'
19984# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
19985ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
19986ac_uB='\([ ]\)%\1#\2define\3'
10f2d63a 19987ac_uC=' '
698dcdb6
VZ
19988ac_uD='\4%g'
19989# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
19990ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
19991ac_eB='$%\1#\2define\3'
19992ac_eC=' '
19993ac_eD='%g'
10f2d63a 19994
698dcdb6
VZ
19995if test "${CONFIG_HEADERS+set}" != set; then
19996EOF
19997cat >> $CONFIG_STATUS <<EOF
19998 CONFIG_HEADERS="setup.h:setup.h.in"
19999EOF
20000cat >> $CONFIG_STATUS <<\EOF
20001fi
20002for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
10f2d63a 20003 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
698dcdb6
VZ
20004 case "$ac_file" in
20005 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
20006 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
20007 *) ac_file_in="${ac_file}.in" ;;
10f2d63a
VZ
20008 esac
20009
698dcdb6
VZ
20010 echo creating $ac_file
20011
20012 rm -f conftest.frag conftest.in conftest.out
20013 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
20014 cat $ac_file_inputs > conftest.in
20015
20016EOF
20017
20018# Transform confdefs.h into a sed script conftest.vals that substitutes
20019# the proper values into config.h.in to produce config.h. And first:
20020# Protect against being on the right side of a sed subst in config.status.
20021# Protect against being in an unquoted here document in config.status.
20022rm -f conftest.vals
20023cat > conftest.hdr <<\EOF
20024s/[\\&%]/\\&/g
20025s%[\\$`]%\\&%g
20026s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
20027s%ac_d%ac_u%gp
20028s%ac_u%ac_e%gp
20029EOF
20030sed -n -f conftest.hdr confdefs.h > conftest.vals
20031rm -f conftest.hdr
10f2d63a
VZ
20032
20033# This sed command replaces #undef with comments. This is necessary, for
20034# example, in the case of _POSIX_SOURCE, which is predefined and required
20035# on some systems where configure will not decide to define it.
698dcdb6
VZ
20036cat >> conftest.vals <<\EOF
20037s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
10f2d63a
VZ
20038EOF
20039
698dcdb6
VZ
20040# Break up conftest.vals because some shells have a limit on
20041# the size of here documents, and old seds have small limits too.
10f2d63a
VZ
20042
20043rm -f conftest.tail
698dcdb6 20044while :
10f2d63a 20045do
698dcdb6
VZ
20046 ac_lines=`grep -c . conftest.vals`
20047 # grep -c gives empty output for an empty file on some AIX systems.
20048 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
20049 # Write a limited-size here document to conftest.frag.
20050 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
20051 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
10f2d63a 20052 echo 'CEOF
698dcdb6
VZ
20053 sed -f conftest.frag conftest.in > conftest.out
20054 rm -f conftest.in
20055 mv conftest.out conftest.in
20056' >> $CONFIG_STATUS
20057 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
20058 rm -f conftest.vals
20059 mv conftest.tail conftest.vals
10f2d63a 20060done
698dcdb6
VZ
20061rm -f conftest.vals
20062
20063cat >> $CONFIG_STATUS <<\EOF
20064 rm -f conftest.frag conftest.h
20065 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
20066 cat conftest.in >> conftest.h
20067 rm -f conftest.in
20068 if cmp -s $ac_file conftest.h 2>/dev/null; then
20069 echo "$ac_file is unchanged"
20070 rm -f conftest.h
10f2d63a 20071 else
698dcdb6
VZ
20072 # Remove last slash and all that follows it. Not all systems have dirname.
20073 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
10f2d63a 20074 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
698dcdb6
VZ
20075 # The file is in a subdirectory.
20076 test ! -d "$ac_dir" && mkdir "$ac_dir"
10f2d63a 20077 fi
698dcdb6
VZ
20078 rm -f $ac_file
20079 mv conftest.h $ac_file
10f2d63a 20080 fi
698dcdb6
VZ
20081fi; done
20082
10f2d63a 20083EOF
698dcdb6 20084cat >> $CONFIG_STATUS <<EOF
10f2d63a 20085
3a922bb4 20086 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}"
698dcdb6
VZ
20087 LN_S="${LN_S}"
20088
20089
20090EOF
20091cat >> $CONFIG_STATUS <<\EOF
10f2d63a 20092
652d930d 20093 if test ! -h wx-config; then
991a5759 20094 chmod +x wx-config
3a922bb4
RL
20095 mv wx-config wx${TOOLCHAIN_NAME}-config
20096 ${LN_S} wx${TOOLCHAIN_NAME}-config wx-config
991a5759 20097 fi
665bbe97 20098
00cf1208
RR
20099 if test ! -d lib; then
20100 mkdir lib
20101 fi
20102 if test ! -d lib/wx; then
20103 mkdir lib/wx
20104 fi
20105 if test ! -d lib/wx/include; then
20106 mkdir lib/wx/include
20107 fi
3a922bb4
RL
20108 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}; then
20109 mkdir lib/wx/include/${TOOLCHAIN_NAME}
00cf1208 20110 fi
3a922bb4
RL
20111 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}/wx; then
20112 mkdir lib/wx/include/${TOOLCHAIN_NAME}/wx
00cf1208
RR
20113 fi
20114 if test -f setup.h; then
3a922bb4 20115 mv -f setup.h lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h
00cf1208 20116 fi
698dcdb6
VZ
20117
20118exit 0
10f2d63a
VZ
20119EOF
20120chmod +x $CONFIG_STATUS
698dcdb6
VZ
20121rm -fr confdefs* $ac_clean_files
20122test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
10f2d63a 20123
2224580a
VZ
20124if test "$no_recursion" != yes; then
20125
20126 # Remove --cache-file and --srcdir arguments so they do not pile up.
20127 ac_sub_configure_args=
20128 ac_prev=
20129 for ac_arg in $ac_configure_args; do
20130 if test -n "$ac_prev"; then
20131 ac_prev=
20132 continue
20133 fi
698dcdb6 20134 case "$ac_arg" in
2224580a
VZ
20135 -cache-file | --cache-file | --cache-fil | --cache-fi \
20136 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
20137 ac_prev=cache_file ;;
20138 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
698dcdb6 20139 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
2224580a
VZ
20140 ;;
20141 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
20142 ac_prev=srcdir ;;
20143 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
20144 ;;
20145 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
20146 esac
20147 done
20148
698dcdb6 20149 for ac_config_dir in demos samples utils contrib; do
2224580a
VZ
20150
20151 # Do not complain, so a configure script can configure whichever
20152 # parts of a large source tree are present.
698dcdb6
VZ
20153 if test ! -d $srcdir/$ac_config_dir; then
20154 continue
20155 fi
20156
20157 echo configuring in $ac_config_dir
2224580a 20158
698dcdb6 20159 case "$srcdir" in
2224580a
VZ
20160 .) ;;
20161 *)
698dcdb6
VZ
20162 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
20163 else
20164 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
20165 fi
20166 ;;
2224580a
VZ
20167 esac
20168
20169 ac_popdir=`pwd`
698dcdb6 20170 cd $ac_config_dir
2224580a 20171
698dcdb6
VZ
20172 # A "../" for each directory in /$ac_config_dir.
20173 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
2224580a 20174
698dcdb6 20175 case "$srcdir" in
2224580a
VZ
20176 .) # No --srcdir option. We are building in place.
20177 ac_sub_srcdir=$srcdir ;;
698dcdb6
VZ
20178 /*) # Absolute path.
20179 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
2224580a 20180 *) # Relative path.
698dcdb6 20181 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
2224580a
VZ
20182 esac
20183
20184 # Check for guested configure; otherwise get Cygnus style configure.
698dcdb6
VZ
20185 if test -f $ac_sub_srcdir/configure; then
20186 ac_sub_configure=$ac_sub_srcdir/configure
2224580a
VZ
20187 elif test -f $ac_sub_srcdir/configure.in; then
20188 ac_sub_configure=$ac_configure
20189 else
698dcdb6 20190 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
2224580a
VZ
20191 ac_sub_configure=
20192 fi
20193
20194 # The recursion is here.
20195 if test -n "$ac_sub_configure"; then
698dcdb6 20196
2224580a 20197 # Make the cache file name correct relative to the subdirectory.
698dcdb6
VZ
20198 case "$cache_file" in
20199 /*) ac_sub_cache_file=$cache_file ;;
2224580a 20200 *) # Relative path.
698dcdb6 20201 ac_sub_cache_file="$ac_dots$cache_file" ;;
2224580a 20202 esac
698dcdb6
VZ
20203 case "$ac_given_INSTALL" in
20204 [/$]*) INSTALL="$ac_given_INSTALL" ;;
20205 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
20206 esac
2224580a 20207
698dcdb6 20208 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
2224580a 20209 # The eval makes quoting arguments work.
698dcdb6
VZ
20210 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
20211 then :
20212 else
20213 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
20214 fi
2224580a
VZ
20215 fi
20216
20217 cd $ac_popdir
20218 done
20219fi
20220
698dcdb6 20221