]> git.saurik.com Git - wxWidgets.git/blame - configure
corrected printf format strings
[wxWidgets.git] / configure
CommitLineData
10f2d63a
VZ
1#! /bin/sh
2
698dcdb6 3# From configure.in Id: configure.in
703e0a69
VZ
4
5
6
7
90dd450c
VZ
8
9
10
11
12
13
14
15
703e0a69 16
703e0a69
VZ
17
18
1e487827 19
1e487827 20
698dcdb6
VZ
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
b040e242
VS
49
50
51
b040e242
VS
52
53
54
55
9e691f46
VZ
56# Configure paths for GTK+
57# Owen Taylor 1997-2001
b040e242
VS
58
59
60
61# Configure paths for GTK+
62# Owen Taylor 97-11-3
698dcdb6 63
698dcdb6
VZ
64
65
66# Guess values for system-dependent variables and create Makefiles.
67# Generated automatically using autoconf version 2.13
68# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
69#
70# This configure script is free software; the Free Software Foundation
71# gives unlimited permission to copy, distribute and modify it.
72
73# Defaults:
74ac_help=
75ac_default_prefix=/usr/local
76# Any additions from configure.in:
77ac_help="$ac_help
8168de4c 78 --enable-gui use GUI classes"
1e6feb95 79ac_help="$ac_help
8168de4c 80 --enable-universal use wxWindows GUI controls instead of native ones"
698dcdb6
VZ
81ac_help="$ac_help
82 --with-gtk use GTK+"
83ac_help="$ac_help
84 --with-motif use Motif/Lesstif"
85ac_help="$ac_help
86 --with-mac use Mac OS X"
87ac_help="$ac_help
88 --with-wine use WINE"
89ac_help="$ac_help
77e13408 90 --with-msw use MS-Windows"
698dcdb6
VZ
91ac_help="$ac_help
92 --with-pm use OS/2 Presentation Manager"
1e6feb95 93ac_help="$ac_help
b3e8d00a 94 --with-mgl use SciTech MGL"
1725144d
RR
95ac_help="$ac_help
96 --with-microwin use MicroWindows"
f79bd02d
JS
97ac_help="$ac_help
98 --with-x11 use X11"
d8356fa3
VZ
99ac_help="$ac_help
100 --enable-nanox use NanoX"
698dcdb6 101ac_help="$ac_help
8168de4c 102 --enable-gtk2 use GTK+ 2.0 if available (EXPERIMENTAL)"
698dcdb6 103ac_help="$ac_help
8168de4c 104 --with-libpng use libpng (PNG image format)"
698dcdb6 105ac_help="$ac_help
8168de4c 106 --with-libjpeg use libjpeg (JPEG file format)"
698dcdb6 107ac_help="$ac_help
8168de4c 108 --with-libtiff use libtiff (TIFF file format)"
698dcdb6 109ac_help="$ac_help
8168de4c 110 --with-opengl use OpenGL (or Mesa)"
698dcdb6 111ac_help="$ac_help
d0e9b150 112 --with-dmalloc use dmalloc library (http://dmalloc.com/)"
3e44f09d
VZ
113ac_help="$ac_help
114 --with-regex enable support for wxRegEx class"
698dcdb6 115ac_help="$ac_help
8168de4c 116 --with-zlib use zlib for LZW compression"
698dcdb6 117ac_help="$ac_help
8168de4c 118 --with-odbc use the IODBC and wxODBC classes"
698dcdb6 119ac_help="$ac_help
8168de4c 120 --enable-shared create shared library code"
698dcdb6 121ac_help="$ac_help
3a922bb4 122 --enable-soname set the DT_SONAME field in ELF shared libraries"
698dcdb6 123ac_help="$ac_help
8168de4c 124 --enable-optimise create optimised code"
698dcdb6 125ac_help="$ac_help
8168de4c 126 --enable-debug same as debug_flag and debug_info"
683dccda
GD
127ac_help="$ac_help
128 --enable-precomp enable use of precompiled headers (Mac OS X)"
698dcdb6 129ac_help="$ac_help
8168de4c 130 --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)"
698dcdb6 131ac_help="$ac_help
8168de4c 132 --enable-debug_info create code with debugging information"
698dcdb6 133ac_help="$ac_help
8168de4c 134 --enable-debug_gdb create code with extra GDB debugging information"
698dcdb6 135ac_help="$ac_help
8168de4c 136 --enable-debug_cntxt use wxDebugContext"
698dcdb6 137ac_help="$ac_help
8168de4c 138 --enable-mem_tracing create code with memory tracing"
698dcdb6 139ac_help="$ac_help
8168de4c 140 --enable-profile create code with profiling information"
698dcdb6 141ac_help="$ac_help
8168de4c 142 --enable-no_rtti create code without RTTI information"
698dcdb6 143ac_help="$ac_help
b3e8d00a 144 --enable-no_exceptions create code without C++ exceptions handling"
698dcdb6 145ac_help="$ac_help
8168de4c 146 --enable-permissive compile code disregarding strict ANSI"
698dcdb6 147ac_help="$ac_help
8168de4c 148 --enable-no_deps create code without dependency information"
54276ccf 149ac_help="$ac_help
b3e8d00a 150 --enable-compat20 enable wxWindows 2.0 compatibility"
54276ccf 151ac_help="$ac_help
0c9a1c32 152 --disable-compat22 disable wxWindows 2.2 compatibility"
698dcdb6 153ac_help="$ac_help
8168de4c 154 --enable-intl use internationalization system"
698dcdb6 155ac_help="$ac_help
8168de4c 156 --enable-config use wxConfig (and derived) classes"
a1622950
VZ
157ac_help="$ac_help
158 --enable-protocols use wxProtocol and derived classes"
159ac_help="$ac_help
160 --enable-ftp use wxFTP (requires wxProtocol"
161ac_help="$ac_help
162 --enable-http use wxHTTP (requires wxProtocol"
163ac_help="$ac_help
164 --enable-fileproto use wxFileProto class (requires wxProtocol"
698dcdb6 165ac_help="$ac_help
8168de4c 166 --enable-sockets use socket/network classes"
698dcdb6 167ac_help="$ac_help
8168de4c 168 --enable-ipc use interprocess communication (wxSocket etc.)"
698dcdb6 169ac_help="$ac_help
8168de4c 170 --enable-cmdline use wxCmdLineParser class"
1e6feb95 171ac_help="$ac_help
8168de4c 172 --enable-datetime use wxDateTime class"
1e6feb95 173ac_help="$ac_help
8168de4c 174 --enable-timedate use obsolete wxDate/wxTime classes"
1e6feb95 175ac_help="$ac_help
8168de4c 176 --enable-stopwatch use wxStopWatch class"
1e6feb95 177ac_help="$ac_help
8168de4c 178 --enable-dialupman use dialup network classes"
698dcdb6 179ac_help="$ac_help
8168de4c 180 --enable-apple_ieee use the Apple IEEE codec"
698dcdb6 181ac_help="$ac_help
8168de4c 182 --enable-timer use wxTimer class"
698dcdb6 183ac_help="$ac_help
8168de4c 184 --enable-wave use wxWave class"
698dcdb6 185ac_help="$ac_help
8168de4c 186 --enable-fraction use wxFraction class"
698dcdb6 187ac_help="$ac_help
8168de4c 188 --enable-dynlib use wxLibrary class for DLL loading"
0b9ab0bd
RL
189ac_help="$ac_help
190 --enable-dynamicloader use (new) wxDynamicLibrary class"
698dcdb6 191ac_help="$ac_help
8168de4c 192 --enable-longlong use wxLongLong class"
698dcdb6 193ac_help="$ac_help
8168de4c 194 --enable-geometry use geometry class"
698dcdb6 195ac_help="$ac_help
8168de4c 196 --enable-log use logging system"
698dcdb6 197ac_help="$ac_help
8168de4c 198 --enable-streams use wxStream etc classes"
698dcdb6 199ac_help="$ac_help
8168de4c 200 --enable-file use wxFile classes"
698dcdb6 201ac_help="$ac_help
8168de4c 202 --enable-ffile use wxFFile classes"
1e6feb95 203ac_help="$ac_help
a3a584a7
VZ
204 --enable-textbuf use wxTextBuffer class"
205ac_help="$ac_help
206 --enable-textfile use wxTextFile class"
698dcdb6 207ac_help="$ac_help
8168de4c 208 --enable-fontmap use font encodings conversion classes"
1e6feb95 209ac_help="$ac_help
8168de4c 210 --enable-unicode compile wxString with Unicode support"
a72a4bfa
VS
211ac_help="$ac_help
212 --enable-mslu use MS Layer for Unicode on Windows 9x (win32 only)"
698dcdb6 213ac_help="$ac_help
8168de4c 214 --enable-wxprintfv use wxWindows implementation of vprintf()"
698dcdb6 215ac_help="$ac_help
8168de4c 216 --enable-std_iostreams use standard C++ stream classes"
698dcdb6 217ac_help="$ac_help
8168de4c 218 --enable-filesystem use virtual file systems classes"
698dcdb6 219ac_help="$ac_help
8168de4c 220 --enable-fs_inet use virtual HTTP/FTP filesystems"
698dcdb6 221ac_help="$ac_help
8168de4c 222 --enable-fs_zip use virtual ZIP filesystems"
698dcdb6 223ac_help="$ac_help
8168de4c 224 --enable-zipstream use wxZipInputStream"
698dcdb6 225ac_help="$ac_help
8168de4c 226 --enable-catch_segvs catch signals and pass them to wxApp::OnFatalException"
698dcdb6 227ac_help="$ac_help
8168de4c 228 --enable-snglinst use wxSingleInstanceChecker class"
698dcdb6 229ac_help="$ac_help
69d27ff7 230 --enable-mimetype use wxMimeTypesManager"
3e44f09d 231ac_help="$ac_help
b3e8d00a 232 --enable-sysoptions use wxSystemOptions"
4cdb0ab0
VS
233ac_help="$ac_help
234 --enable-url use wxURL class"
235ac_help="$ac_help
236 --enable-protocol use wxProtocol class"
237ac_help="$ac_help
238 --enable-protocol-http HTTP support in wxProtocol"
239ac_help="$ac_help
240 --enable-protocol-ftp FTP support in wxProtocol"
241ac_help="$ac_help
242 --enable-protocol-file FILE support in wxProtocol"
1e6feb95 243ac_help="$ac_help
8168de4c 244 --enable-threads use threads"
698dcdb6 245ac_help="$ac_help
8168de4c 246 --enable-docview use document view architecture"
698dcdb6 247ac_help="$ac_help
3379ed37 248 --enable-help use help subsystem"
29fd3c0c
VS
249ac_help="$ac_help
250 --enable-mshtmlhelp use MS HTML Help (win32)"
3379ed37
VZ
251ac_help="$ac_help
252 --enable-html use wxHTML sub-library"
253ac_help="$ac_help
254 --enable-htmlhelp use wxHTML-based help"
698dcdb6 255ac_help="$ac_help
8168de4c 256 --enable-constraints use layout-constraints system"
698dcdb6 257ac_help="$ac_help
8168de4c 258 --enable-printarch use printing architecture"
698dcdb6 259ac_help="$ac_help
8168de4c 260 --enable-mdi use multiple document interface architecture"
698dcdb6 261ac_help="$ac_help
8168de4c 262 --enable-loggui use standard GUI logger"
1e6feb95 263ac_help="$ac_help
8168de4c 264 --enable-logwin use wxLogWindow"
69d27ff7
MB
265ac_help="$ac_help
266 --enable-logdialog use wxLogDialog"
1e6feb95 267ac_help="$ac_help
8168de4c 268 --enable-postscript use wxPostscriptDC device context (default for gtk+)"
698dcdb6 269ac_help="$ac_help
8168de4c 270 --enable-prologio use Prolog IO library"
698dcdb6 271ac_help="$ac_help
8168de4c 272 --enable-resources use wxWindows resources"
698dcdb6 273ac_help="$ac_help
8168de4c 274 --enable-xresources use X resources for save (default for gtk+)"
698dcdb6 275ac_help="$ac_help
8168de4c 276 --enable-clipboard use wxClipboard classes"
698dcdb6 277ac_help="$ac_help
8168de4c 278 --enable-dnd use Drag'n'Drop classes"
698dcdb6 279ac_help="$ac_help
8168de4c 280 --enable-metafile use win32 metafiles"
698dcdb6 281ac_help="$ac_help
24176f2c 282 --enable-treelayout use wxTreeLayout classes"
698dcdb6 283ac_help="$ac_help
8168de4c 284 --enable-controls use all usual controls"
698dcdb6 285ac_help="$ac_help
8168de4c 286 --enable-accel use accelerators"
698dcdb6 287ac_help="$ac_help
8168de4c 288 --enable-button use wxButton class"
698dcdb6 289ac_help="$ac_help
8168de4c 290 --enable-bmpbutton use wxBitmapButton class"
698dcdb6 291ac_help="$ac_help
8168de4c 292 --enable-calendar use wxCalendarCtrl class"
1e6feb95 293ac_help="$ac_help
8168de4c 294 --enable-caret use wxCaret class"
1e6feb95 295ac_help="$ac_help
8168de4c 296 --enable-checkbox use wxCheckBox class"
698dcdb6 297ac_help="$ac_help
8168de4c 298 --enable-checklst use wxCheckListBox (listbox with checkboxes) class"
698dcdb6 299ac_help="$ac_help
8168de4c 300 --enable-choice use wxChoice class"
698dcdb6 301ac_help="$ac_help
8168de4c 302 --enable-combobox use wxComboBox classes"
698dcdb6 303ac_help="$ac_help
8168de4c 304 --enable-gauge use wxGauge class"
698dcdb6 305ac_help="$ac_help
8168de4c 306 --enable-grid use wxGrid class"
698dcdb6 307ac_help="$ac_help
8168de4c 308 --enable-newgrid use new wxGrid class"
698dcdb6 309ac_help="$ac_help
8168de4c 310 --enable-imaglist use wxImageList class"
698dcdb6 311ac_help="$ac_help
8168de4c 312 --enable-listbox use wxListBox class"
698dcdb6 313ac_help="$ac_help
8168de4c 314 --enable-listctrl use wxListCtrl class"
698dcdb6 315ac_help="$ac_help
8168de4c 316 --enable-notebook use wxNotebook class"
24176f2c
GD
317ac_help="$ac_help
318 --enable-propsheet use wxPropertySheet class"
698dcdb6 319ac_help="$ac_help
8168de4c 320 --enable-radiobox use wxRadioBox class"
698dcdb6 321ac_help="$ac_help
8168de4c 322 --enable-radiobtn use wxRadioButton class"
698dcdb6 323ac_help="$ac_help
8168de4c 324 --enable-sash use wxSashWindow class"
698dcdb6 325ac_help="$ac_help
8168de4c 326 --enable-scrollbar use wxScrollBar class and scrollable windows"
698dcdb6 327ac_help="$ac_help
8168de4c 328 --enable-slider use wxSlider class"
698dcdb6 329ac_help="$ac_help
8168de4c 330 --enable-spinbtn use wxSpinButton class"
698dcdb6 331ac_help="$ac_help
8168de4c 332 --enable-spinctrl use wxSpinCtrl class"
698dcdb6 333ac_help="$ac_help
8168de4c 334 --enable-splitter use wxSplitterWindow class"
698dcdb6 335ac_help="$ac_help
8168de4c 336 --enable-statbmp use wxStaticBitmap class"
698dcdb6 337ac_help="$ac_help
8168de4c 338 --enable-statbox use wxStaticBox class"
698dcdb6 339ac_help="$ac_help
8168de4c 340 --enable-statline use wxStaticLine class"
698dcdb6 341ac_help="$ac_help
8168de4c 342 --enable-stattext use wxStaticText class"
1e6feb95 343ac_help="$ac_help
8168de4c 344 --enable-statusbar use wxStatusBar class"
698dcdb6 345ac_help="$ac_help
8168de4c 346 --enable-tabdialog use wxTabControl class"
698dcdb6 347ac_help="$ac_help
8168de4c 348 --enable-textctrl use wxTextCtrl class"
1e6feb95 349ac_help="$ac_help
8168de4c 350 --enable-togglebtn use wxToggleButton class"
698dcdb6 351ac_help="$ac_help
8168de4c 352 --enable-toolbar use wxToolBar class"
698dcdb6 353ac_help="$ac_help
8168de4c 354 --enable-tbarnative use native wxToolBar class"
698dcdb6 355ac_help="$ac_help
8168de4c 356 --enable-tbarsmpl use wxToolBarSimple class"
698dcdb6 357ac_help="$ac_help
8168de4c 358 --enable-treectrl use wxTreeCtrl class"
9926e4a4
VZ
359ac_help="$ac_help
360 --enable-tipwindow use wxTipWindow class"
9f41d601
RR
361ac_help="$ac_help
362 --enable-popupwin use wxPopUpWindow class"
698dcdb6 363ac_help="$ac_help
b3e8d00a 364 --enable-commondlg use all common dialogs"
698dcdb6 365ac_help="$ac_help
8168de4c 366 --enable-choicedlg use wxChoiceDialog"
1e6feb95 367ac_help="$ac_help
8168de4c 368 --enable-coldlg use wxColourDialog"
1e6feb95 369ac_help="$ac_help
8168de4c 370 --enable-filedlg use wxFileDialog"
8db37e06
VZ
371ac_help="$ac_help
372 --enable-finddlg use wxFindReplaceDialog"
1e6feb95 373ac_help="$ac_help
8168de4c 374 --enable-fontdlg use wxFontDialog"
1e6feb95 375ac_help="$ac_help
8168de4c 376 --enable-dirdlg use wxDirDialog"
698dcdb6 377ac_help="$ac_help
8168de4c 378 --enable-msgdlg use wxMessageDialog"
1e6feb95 379ac_help="$ac_help
8168de4c 380 --enable-numberdlg use wxNumberEntryDialog"
cbca9943
VZ
381ac_help="$ac_help
382 --enable-splash use wxSplashScreen"
1e6feb95 383ac_help="$ac_help
8168de4c 384 --enable-textdlg use wxTextDialog"
698dcdb6 385ac_help="$ac_help
8168de4c 386 --enable-tipdlg use startup tips"
698dcdb6 387ac_help="$ac_help
8168de4c 388 --enable-progressdlg use wxProgressDialog"
b1f5d087
VZ
389ac_help="$ac_help
390 --enable-wizarddlg use wxWizard"
698dcdb6 391ac_help="$ac_help
8168de4c 392 --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes"
1e6feb95 393ac_help="$ac_help
8168de4c 394 --enable-miniframe use wxMiniFrame class"
698dcdb6 395ac_help="$ac_help
8168de4c 396 --enable-tooltips use wxToolTip class"
698dcdb6 397ac_help="$ac_help
8168de4c 398 --enable-splines use spline drawing code"
698dcdb6 399ac_help="$ac_help
8168de4c 400 --enable-validators use wxValidator and derived classes"
698dcdb6 401ac_help="$ac_help
8168de4c 402 --enable-busyinfo use wxBusyInfo"
698dcdb6 403ac_help="$ac_help
b3e8d00a 404 --enable-joystick use wxJoystick (Linux only)"
698dcdb6 405ac_help="$ac_help
8168de4c 406 --enable-metafiles use wxMetaFile (Windows only)"
24fd6d87
VZ
407ac_help="$ac_help
408 --enable-dragimage use wxDragImage"
edae8572
VZ
409ac_help="$ac_help
410 --enable-palette use wxPalette class"
1e6feb95 411ac_help="$ac_help
8168de4c 412 --enable-image use wxImage class"
698dcdb6 413ac_help="$ac_help
8168de4c 414 --enable-gif use gif images (GIF file format)"
698dcdb6 415ac_help="$ac_help
8168de4c 416 --enable-pcx use pcx images (PCX file format)"
4b6b4dfc
RR
417ac_help="$ac_help
418 --enable-iff use iff images (IFF file format)"
698dcdb6 419ac_help="$ac_help
8168de4c 420 --enable-pnm use pnm images (PNM file format)"
698dcdb6 421ac_help="$ac_help
8168de4c 422 --enable-xpm use xpm images (XPM file format)"
658974ae
VS
423ac_help="$ac_help
424 --enable-icocur use Windows ICO and CUR formats"
90dd450c
VZ
425ac_help="$ac_help
426 --disable-largefile omit support for large files"
698dcdb6 427ac_help="$ac_help
9e691f46 428 --disable-gtktest do not try to compile and run a test GTK+ program"
3f345b47
VZ
429ac_help="$ac_help
430 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)"
431ac_help="$ac_help
432 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)"
433ac_help="$ac_help
434 --disable-gtktest Do not try to compile and run a test GTK program"
435ac_help="$ac_help
436 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)"
437ac_help="$ac_help
438 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)"
439ac_help="$ac_help
440 --disable-gtktest Do not try to compile and run a test GTK program"
698dcdb6
VZ
441ac_help="$ac_help
442 --with-x use the X Window System"
b040e242
VS
443ac_help="$ac_help
444 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib"
10f2d63a
VZ
445
446# Initialize some variables set by options.
447# The variables have the same names as the options, with
448# dashes changed to underlines.
698dcdb6
VZ
449build=NONE
450cache_file=./config.cache
10f2d63a 451exec_prefix=NONE
698dcdb6 452host=NONE
10f2d63a 453no_create=
698dcdb6 454nonopt=NONE
10f2d63a
VZ
455no_recursion=
456prefix=NONE
457program_prefix=NONE
458program_suffix=NONE
459program_transform_name=s,x,x,
460silent=
461site=
462srcdir=
698dcdb6 463target=NONE
10f2d63a
VZ
464verbose=
465x_includes=NONE
466x_libraries=NONE
467bindir='${exec_prefix}/bin'
468sbindir='${exec_prefix}/sbin'
469libexecdir='${exec_prefix}/libexec'
470datadir='${prefix}/share'
471sysconfdir='${prefix}/etc'
472sharedstatedir='${prefix}/com'
473localstatedir='${prefix}/var'
474libdir='${exec_prefix}/lib'
475includedir='${prefix}/include'
476oldincludedir='/usr/include'
477infodir='${prefix}/info'
478mandir='${prefix}/man'
479
698dcdb6
VZ
480# Initialize some other variables.
481subdirs=
482MFLAGS= MAKEFLAGS=
483SHELL=${CONFIG_SHELL-/bin/sh}
484# Maximum number of lines to put in a shell here document.
485ac_max_here_lines=12
10f2d63a
VZ
486
487ac_prev=
488for ac_option
489do
698dcdb6 490
10f2d63a
VZ
491 # If the previous option needs an argument, assign it.
492 if test -n "$ac_prev"; then
493 eval "$ac_prev=\$ac_option"
494 ac_prev=
495 continue
496 fi
497
698dcdb6
VZ
498 case "$ac_option" in
499 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
500 *) ac_optarg= ;;
501 esac
10f2d63a
VZ
502
503 # Accept the important Cygnus configure options, so we can diagnose typos.
504
698dcdb6 505 case "$ac_option" in
10f2d63a
VZ
506
507 -bindir | --bindir | --bindi | --bind | --bin | --bi)
508 ac_prev=bindir ;;
509 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
698dcdb6 510 bindir="$ac_optarg" ;;
10f2d63a
VZ
511
512 -build | --build | --buil | --bui | --bu)
698dcdb6 513 ac_prev=build ;;
10f2d63a 514 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
698dcdb6 515 build="$ac_optarg" ;;
10f2d63a
VZ
516
517 -cache-file | --cache-file | --cache-fil | --cache-fi \
518 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
519 ac_prev=cache_file ;;
520 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
521 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
698dcdb6 522 cache_file="$ac_optarg" ;;
10f2d63a
VZ
523
524 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
525 ac_prev=datadir ;;
526 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
527 | --da=*)
698dcdb6 528 datadir="$ac_optarg" ;;
10f2d63a
VZ
529
530 -disable-* | --disable-*)
698dcdb6 531 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
10f2d63a 532 # Reject names that are not valid shell variable names.
698dcdb6
VZ
533 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
534 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
535 fi
536 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
537 eval "enable_${ac_feature}=no" ;;
10f2d63a
VZ
538
539 -enable-* | --enable-*)
698dcdb6 540 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
10f2d63a 541 # Reject names that are not valid shell variable names.
698dcdb6
VZ
542 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
543 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
544 fi
545 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
546 case "$ac_option" in
547 *=*) ;;
10f2d63a
VZ
548 *) ac_optarg=yes ;;
549 esac
698dcdb6 550 eval "enable_${ac_feature}='$ac_optarg'" ;;
10f2d63a
VZ
551
552 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
553 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
554 | --exec | --exe | --ex)
555 ac_prev=exec_prefix ;;
556 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
557 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
558 | --exec=* | --exe=* | --ex=*)
698dcdb6 559 exec_prefix="$ac_optarg" ;;
10f2d63a
VZ
560
561 -gas | --gas | --ga | --g)
562 # Obsolete; use --with-gas.
563 with_gas=yes ;;
564
698dcdb6
VZ
565 -help | --help | --hel | --he)
566 # Omit some internal or obsolete options to make the list less imposing.
567 # This message is too long to be a string in the A/UX 3.1 sh.
568 cat << EOF
569Usage: configure [options] [host]
570Options: [defaults in brackets after descriptions]
571Configuration:
572 --cache-file=FILE cache test results in FILE
573 --help print this message
574 --no-create do not create output files
575 --quiet, --silent do not print \`checking...' messages
576 --version print the version of autoconf that created configure
577Directory and file names:
578 --prefix=PREFIX install architecture-independent files in PREFIX
579 [$ac_default_prefix]
580 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
581 [same as prefix]
582 --bindir=DIR user executables in DIR [EPREFIX/bin]
583 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
584 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
585 --datadir=DIR read-only architecture-independent data in DIR
586 [PREFIX/share]
587 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
588 --sharedstatedir=DIR modifiable architecture-independent data in DIR
589 [PREFIX/com]
590 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
591 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
592 --includedir=DIR C header files in DIR [PREFIX/include]
593 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
594 --infodir=DIR info documentation in DIR [PREFIX/info]
595 --mandir=DIR man documentation in DIR [PREFIX/man]
596 --srcdir=DIR find the sources in DIR [configure dir or ..]
597 --program-prefix=PREFIX prepend PREFIX to installed program names
598 --program-suffix=SUFFIX append SUFFIX to installed program names
599 --program-transform-name=PROGRAM
600 run sed PROGRAM on installed program names
601EOF
602 cat << EOF
603Host type:
604 --build=BUILD configure for building on BUILD [BUILD=HOST]
605 --host=HOST configure for HOST [guessed]
606 --target=TARGET configure for TARGET [TARGET=HOST]
607Features and packages:
608 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
609 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
610 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
611 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
612 --x-includes=DIR X include files are in DIR
613 --x-libraries=DIR X library files are in DIR
614EOF
615 if test -n "$ac_help"; then
616 echo "--enable and --with options recognized:$ac_help"
617 fi
618 exit 0 ;;
10f2d63a
VZ
619
620 -host | --host | --hos | --ho)
698dcdb6 621 ac_prev=host ;;
10f2d63a 622 -host=* | --host=* | --hos=* | --ho=*)
698dcdb6 623 host="$ac_optarg" ;;
10f2d63a
VZ
624
625 -includedir | --includedir | --includedi | --included | --include \
626 | --includ | --inclu | --incl | --inc)
627 ac_prev=includedir ;;
628 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
629 | --includ=* | --inclu=* | --incl=* | --inc=*)
698dcdb6 630 includedir="$ac_optarg" ;;
10f2d63a
VZ
631
632 -infodir | --infodir | --infodi | --infod | --info | --inf)
633 ac_prev=infodir ;;
634 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
698dcdb6 635 infodir="$ac_optarg" ;;
10f2d63a
VZ
636
637 -libdir | --libdir | --libdi | --libd)
638 ac_prev=libdir ;;
639 -libdir=* | --libdir=* | --libdi=* | --libd=*)
698dcdb6 640 libdir="$ac_optarg" ;;
10f2d63a
VZ
641
642 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
643 | --libexe | --libex | --libe)
644 ac_prev=libexecdir ;;
645 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
646 | --libexe=* | --libex=* | --libe=*)
698dcdb6 647 libexecdir="$ac_optarg" ;;
10f2d63a
VZ
648
649 -localstatedir | --localstatedir | --localstatedi | --localstated \
650 | --localstate | --localstat | --localsta | --localst \
651 | --locals | --local | --loca | --loc | --lo)
652 ac_prev=localstatedir ;;
653 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
654 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
655 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
698dcdb6 656 localstatedir="$ac_optarg" ;;
10f2d63a
VZ
657
658 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
659 ac_prev=mandir ;;
660 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
698dcdb6 661 mandir="$ac_optarg" ;;
10f2d63a
VZ
662
663 -nfp | --nfp | --nf)
664 # Obsolete; use --without-fp.
665 with_fp=no ;;
666
667 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
668 | --no-cr | --no-c)
669 no_create=yes ;;
670
671 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
672 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
673 no_recursion=yes ;;
674
675 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
676 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
677 | --oldin | --oldi | --old | --ol | --o)
678 ac_prev=oldincludedir ;;
679 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
680 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
681 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
698dcdb6 682 oldincludedir="$ac_optarg" ;;
10f2d63a
VZ
683
684 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
685 ac_prev=prefix ;;
686 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
698dcdb6 687 prefix="$ac_optarg" ;;
10f2d63a
VZ
688
689 -program-prefix | --program-prefix | --program-prefi | --program-pref \
690 | --program-pre | --program-pr | --program-p)
691 ac_prev=program_prefix ;;
692 -program-prefix=* | --program-prefix=* | --program-prefi=* \
693 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
698dcdb6 694 program_prefix="$ac_optarg" ;;
10f2d63a
VZ
695
696 -program-suffix | --program-suffix | --program-suffi | --program-suff \
697 | --program-suf | --program-su | --program-s)
698 ac_prev=program_suffix ;;
699 -program-suffix=* | --program-suffix=* | --program-suffi=* \
700 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
698dcdb6 701 program_suffix="$ac_optarg" ;;
10f2d63a
VZ
702
703 -program-transform-name | --program-transform-name \
704 | --program-transform-nam | --program-transform-na \
705 | --program-transform-n | --program-transform- \
706 | --program-transform | --program-transfor \
707 | --program-transfo | --program-transf \
708 | --program-trans | --program-tran \
709 | --progr-tra | --program-tr | --program-t)
710 ac_prev=program_transform_name ;;
711 -program-transform-name=* | --program-transform-name=* \
712 | --program-transform-nam=* | --program-transform-na=* \
713 | --program-transform-n=* | --program-transform-=* \
714 | --program-transform=* | --program-transfor=* \
715 | --program-transfo=* | --program-transf=* \
716 | --program-trans=* | --program-tran=* \
717 | --progr-tra=* | --program-tr=* | --program-t=*)
698dcdb6 718 program_transform_name="$ac_optarg" ;;
10f2d63a
VZ
719
720 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
721 | -silent | --silent | --silen | --sile | --sil)
722 silent=yes ;;
723
724 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
725 ac_prev=sbindir ;;
726 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
727 | --sbi=* | --sb=*)
698dcdb6 728 sbindir="$ac_optarg" ;;
10f2d63a
VZ
729
730 -sharedstatedir | --sharedstatedir | --sharedstatedi \
731 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
732 | --sharedst | --shareds | --shared | --share | --shar \
733 | --sha | --sh)
734 ac_prev=sharedstatedir ;;
735 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
736 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
737 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
738 | --sha=* | --sh=*)
698dcdb6 739 sharedstatedir="$ac_optarg" ;;
10f2d63a
VZ
740
741 -site | --site | --sit)
742 ac_prev=site ;;
743 -site=* | --site=* | --sit=*)
698dcdb6 744 site="$ac_optarg" ;;
10f2d63a
VZ
745
746 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
747 ac_prev=srcdir ;;
748 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
698dcdb6 749 srcdir="$ac_optarg" ;;
10f2d63a
VZ
750
751 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
752 | --syscon | --sysco | --sysc | --sys | --sy)
753 ac_prev=sysconfdir ;;
754 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
755 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
698dcdb6 756 sysconfdir="$ac_optarg" ;;
10f2d63a
VZ
757
758 -target | --target | --targe | --targ | --tar | --ta | --t)
698dcdb6 759 ac_prev=target ;;
10f2d63a 760 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
698dcdb6 761 target="$ac_optarg" ;;
10f2d63a
VZ
762
763 -v | -verbose | --verbose | --verbos | --verbo | --verb)
764 verbose=yes ;;
765
698dcdb6
VZ
766 -version | --version | --versio | --versi | --vers)
767 echo "configure generated by autoconf version 2.13"
768 exit 0 ;;
10f2d63a
VZ
769
770 -with-* | --with-*)
698dcdb6 771 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
10f2d63a 772 # Reject names that are not valid shell variable names.
698dcdb6
VZ
773 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
774 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
775 fi
10f2d63a 776 ac_package=`echo $ac_package| sed 's/-/_/g'`
698dcdb6
VZ
777 case "$ac_option" in
778 *=*) ;;
10f2d63a
VZ
779 *) ac_optarg=yes ;;
780 esac
698dcdb6 781 eval "with_${ac_package}='$ac_optarg'" ;;
10f2d63a
VZ
782
783 -without-* | --without-*)
698dcdb6 784 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
10f2d63a 785 # Reject names that are not valid shell variable names.
698dcdb6
VZ
786 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
787 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
788 fi
789 ac_package=`echo $ac_package| sed 's/-/_/g'`
790 eval "with_${ac_package}=no" ;;
10f2d63a
VZ
791
792 --x)
793 # Obsolete; use --with-x.
794 with_x=yes ;;
795
796 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
797 | --x-incl | --x-inc | --x-in | --x-i)
798 ac_prev=x_includes ;;
799 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
800 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
698dcdb6 801 x_includes="$ac_optarg" ;;
10f2d63a
VZ
802
803 -x-libraries | --x-libraries | --x-librarie | --x-librari \
804 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
805 ac_prev=x_libraries ;;
806 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
807 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
698dcdb6 808 x_libraries="$ac_optarg" ;;
10f2d63a 809
698dcdb6 810 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
10f2d63a
VZ
811 ;;
812
813 *)
698dcdb6
VZ
814 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
815 echo "configure: warning: $ac_option: invalid host type" 1>&2
816 fi
817 if test "x$nonopt" != xNONE; then
818 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
819 fi
820 nonopt="$ac_option"
10f2d63a
VZ
821 ;;
822
823 esac
824done
825
826if test -n "$ac_prev"; then
698dcdb6
VZ
827 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
828fi
829
830trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
831
832# File descriptor usage:
833# 0 standard input
834# 1 file creation
835# 2 errors and warnings
836# 3 some systems may open it to /dev/tty
837# 4 used on the Kubota Titan
838# 6 checking for... messages and results
839# 5 compiler messages saved in config.log
840if test "$silent" = yes; then
841 exec 6>/dev/null
842else
843 exec 6>&1
10f2d63a 844fi
698dcdb6
VZ
845exec 5>./config.log
846
847echo "\
848This file contains any messages produced by compilers while
849running configure, to aid debugging if configure makes a mistake.
850" 1>&5
10f2d63a 851
698dcdb6
VZ
852# Strip out --no-create and --no-recursion so they do not pile up.
853# Also quote any args containing shell metacharacters.
854ac_configure_args=
855for ac_arg
10f2d63a 856do
698dcdb6
VZ
857 case "$ac_arg" in
858 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
859 | --no-cr | --no-c) ;;
860 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
861 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
862 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
863 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
864 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
10f2d63a
VZ
865 esac
866done
867
698dcdb6
VZ
868# NLS nuisances.
869# Only set these to C if already set. These must not be set unconditionally
870# because not all systems understand e.g. LANG=C (notably SCO).
871# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
872# Non-C LC_CTYPE values break the ctype check.
873if test "${LANG+set}" = set; then LANG=C; export LANG; fi
874if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
875if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
876if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
10f2d63a 877
698dcdb6
VZ
878# confdefs.h avoids OS command line length limits that DEFS can exceed.
879rm -rf conftest* confdefs.h
880# AIX cpp loses on an empty file, so make sure it contains at least a newline.
881echo > confdefs.h
10f2d63a 882
698dcdb6
VZ
883# A filename unique to this package, relative to the directory that
884# configure is in, which we can look for to find out if srcdir is correct.
885ac_unique_file=wx-config.in
10f2d63a
VZ
886
887# Find the source files, if location was not specified.
888if test -z "$srcdir"; then
889 ac_srcdir_defaulted=yes
890 # Try the directory containing this script, then its parent.
891 ac_prog=$0
698dcdb6 892 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
10f2d63a
VZ
893 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
894 srcdir=$ac_confdir
895 if test ! -r $srcdir/$ac_unique_file; then
896 srcdir=..
897 fi
898else
899 ac_srcdir_defaulted=no
900fi
901if test ! -r $srcdir/$ac_unique_file; then
902 if test "$ac_srcdir_defaulted" = yes; then
698dcdb6 903 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
10f2d63a 904 else
698dcdb6 905 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
10f2d63a
VZ
906 fi
907fi
698dcdb6 908srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
10f2d63a
VZ
909
910# Prefer explicitly selected file to automatically selected ones.
911if test -z "$CONFIG_SITE"; then
912 if test "x$prefix" != xNONE; then
913 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
914 else
915 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
916 fi
917fi
918for ac_site_file in $CONFIG_SITE; do
919 if test -r "$ac_site_file"; then
698dcdb6 920 echo "loading site script $ac_site_file"
10f2d63a
VZ
921 . "$ac_site_file"
922 fi
923done
924
925if test -r "$cache_file"; then
698dcdb6
VZ
926 echo "loading cache $cache_file"
927 . $cache_file
10f2d63a 928else
698dcdb6
VZ
929 echo "creating cache $cache_file"
930 > $cache_file
10f2d63a
VZ
931fi
932
933ac_ext=c
698dcdb6 934# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10f2d63a 935ac_cpp='$CPP $CPPFLAGS'
698dcdb6
VZ
936ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
937ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
938cross_compiling=$ac_cv_prog_cc_cross
939
940ac_exeext=
941ac_objext=o
942if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
943 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
944 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
945 ac_n= ac_c='
946' ac_t=' '
947 else
948 ac_n=-n ac_c= ac_t=
949 fi
10f2d63a 950else
698dcdb6 951 ac_n= ac_c='\c' ac_t=
10f2d63a 952fi
698dcdb6
VZ
953
954
10f2d63a 955
7c66a493
VZ
956ac_aux_dir=
957for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
958 if test -f $ac_dir/install-sh; then
959 ac_aux_dir=$ac_dir
960 ac_install_sh="$ac_aux_dir/install-sh -c"
961 break
962 elif test -f $ac_dir/install.sh; then
963 ac_aux_dir=$ac_dir
964 ac_install_sh="$ac_aux_dir/install.sh -c"
965 break
966 fi
967done
968if test -z "$ac_aux_dir"; then
698dcdb6 969 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
7c66a493 970fi
698dcdb6
VZ
971ac_config_guess=$ac_aux_dir/config.guess
972ac_config_sub=$ac_aux_dir/config.sub
973ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
703e0a69 974
698dcdb6
VZ
975
976# Do some error checking and defaulting for the host and target type.
977# The inputs are:
978# configure --host=HOST --target=TARGET --build=BUILD NONOPT
979#
980# The rules are:
981# 1. You are not allowed to specify --host, --target, and nonopt at the
982# same time.
983# 2. Host defaults to nonopt.
984# 3. If nonopt is not specified, then host defaults to the current host,
985# as determined by config.guess.
986# 4. Target and build default to nonopt.
987# 5. If nonopt is not specified, then target and build default to host.
7c66a493
VZ
988
989# The aliases save the names the user supplied, while $host etc.
990# will get canonicalized.
698dcdb6
VZ
991case $host---$target---$nonopt in
992NONE---*---* | *---NONE---* | *---*---NONE) ;;
993*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
994esac
995
996
997# Make sure we can run config.sub.
998if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
999else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1000fi
1001
1002echo $ac_n "checking host system type""... $ac_c" 1>&6
9e691f46 1003echo "configure:1004: checking host system type" >&5
698dcdb6
VZ
1004
1005host_alias=$host
1006case "$host_alias" in
1007NONE)
1008 case $nonopt in
1009 NONE)
1010 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1011 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1012 fi ;;
1013 *) host_alias=$nonopt ;;
1014 esac ;;
1015esac
1016
1017host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1018host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1019host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1020host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1021echo "$ac_t""$host" 1>&6
1022
1023echo $ac_n "checking target system type""... $ac_c" 1>&6
9e691f46 1024echo "configure:1025: checking target system type" >&5
698dcdb6
VZ
1025
1026target_alias=$target
1027case "$target_alias" in
1028NONE)
1029 case $nonopt in
1030 NONE) target_alias=$host_alias ;;
1031 *) target_alias=$nonopt ;;
1032 esac ;;
1033esac
1034
1035target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1036target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1037target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1038target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1039echo "$ac_t""$target" 1>&6
1040
1041echo $ac_n "checking build system type""... $ac_c" 1>&6
9e691f46 1042echo "configure:1043: checking build system type" >&5
698dcdb6
VZ
1043
1044build_alias=$build
1045case "$build_alias" in
1046NONE)
1047 case $nonopt in
1048 NONE) build_alias=$host_alias ;;
1049 *) build_alias=$nonopt ;;
1050 esac ;;
1051esac
1052
1053build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1054build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1055build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1056build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1057echo "$ac_t""$build" 1>&6
1058
1059test "$host_alias" != "$target_alias" &&
7c66a493
VZ
1060 test "$program_prefix$program_suffix$program_transform_name" = \
1061 NONENONEs,x,x, &&
1062 program_prefix=${target_alias}-
1063
698dcdb6
VZ
1064
1065
10f2d63a 1066WX_MAJOR_VERSION_NUMBER=2
37d403aa 1067WX_MINOR_VERSION_NUMBER=3
a0d927d1 1068WX_RELEASE_NUMBER=3
10f2d63a 1069
10f2d63a 1070WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER
10f2d63a 1071WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER
6426998c 1072
978f1259
RL
1073WX_MSW_VERSION=$WX_MAJOR_VERSION_NUMBER$WX_MINOR_VERSION_NUMBER$WX_RELEASE_NUMBER
1074
a0d927d1 1075WX_CURRENT=2
6426998c
RL
1076WX_REVISION=0
1077WX_AGE=0
1078
698dcdb6
VZ
1079
1080
10f2d63a
VZ
1081USE_UNIX=1
1082USE_WIN32=0
f9bc1684 1083USE_DOS=0
b12915c1 1084USE_BEOS=0
1216f52d 1085USE_MAC=0
b12915c1 1086
10f2d63a
VZ
1087USE_LINUX=
1088USE_SGI=
1089USE_HPUX=
1090USE_SYSV=
1091USE_SVR4=
1092USE_AIX=
1093USE_SUN=
1094USE_SOLARIS=
1095USE_SUNOS=
1096USE_ALPHA=
1097USE_OSF=
1098USE_BSD=
f11bdd03 1099USE_DARWIN=
10f2d63a 1100USE_FREEBSD=
95c8801c 1101USE_OPENBSD=
f6bcfd97 1102USE_NETBSD=
10f2d63a
VZ
1103USE_VMS=
1104USE_ULTRIX=
10f2d63a
VZ
1105USE_DATA_GENERAL=
1106
ab9b9eab
VZ
1107NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1108
f79bd02d 1109ALL_TOOLKITS="GTK MAC MGL MICROWIN MOTIF MSW PM WINE X11"
10f2d63a
VZ
1110
1111DEFAULT_wxUSE_GTK=0
1e6feb95
VZ
1112DEFAULT_wxUSE_MAC=0
1113DEFAULT_wxUSE_MGL=0
1725144d 1114DEFAULT_wxUSE_MICROWIN=0
10f2d63a
VZ
1115DEFAULT_wxUSE_MOTIF=0
1116DEFAULT_wxUSE_MSW=0
e07802fc 1117DEFAULT_wxUSE_PM=0
1e6feb95 1118DEFAULT_wxUSE_WINE=0
f79bd02d 1119DEFAULT_wxUSE_X11=0
10f2d63a
VZ
1120
1121DEFAULT_DEFAULT_wxUSE_GTK=0
1e6feb95
VZ
1122DEFAULT_DEFAULT_wxUSE_MAC=0
1123DEFAULT_DEFAULT_wxUSE_MGL=0
1725144d 1124DEFAULT_DEFAULT_wxUSE_MICROWIN=0
10f2d63a
VZ
1125DEFAULT_DEFAULT_wxUSE_MOTIF=0
1126DEFAULT_DEFAULT_wxUSE_MSW=0
e07802fc 1127DEFAULT_DEFAULT_wxUSE_PM=0
1e6feb95 1128DEFAULT_DEFAULT_wxUSE_WINE=0
f79bd02d 1129DEFAULT_DEFAULT_wxUSE_X11=0
10f2d63a 1130
d6a55c4b 1131PROGRAM_EXT=
3a922bb4 1132SO_SUFFIX=so
d6a55c4b 1133
10f2d63a
VZ
1134case "${host}" in
1135 *-hp-hpux* )
1136 USE_HPUX=1
1137 DEFAULT_DEFAULT_wxUSE_MOTIF=1
ab9b9eab 1138 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
3a922bb4 1139 SO_SUFFIX=sl
698dcdb6 1140 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1141#define __HPUX__ 1
1142EOF
1143
1144 ;;
1145 *-*-linux* )
1146 USE_LINUX=1
698dcdb6 1147 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1148#define __LINUX__ 1
1149EOF
1150
1151 TMP=`uname -m`
1152 if test "x$TMP" = "xalpha"; then
1153 USE_ALPHA=1
698dcdb6 1154 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1155#define __ALPHA__ 1
1156EOF
1157
1158 fi
1159 DEFAULT_DEFAULT_wxUSE_GTK=1
1160 ;;
1161 *-*-irix5* | *-*-irix6* )
1162 USE_SGI=1
1163 USE_SVR4=1
698dcdb6 1164 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1165#define __SGI__ 1
1166EOF
1167
698dcdb6 1168 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1169#define __SVR4__ 1
1170EOF
1171
1172 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1173 ;;
1174 *-*-solaris2* )
1175 USE_SUN=1
1176 USE_SOLARIS=1
1177 USE_SVR4=1
698dcdb6 1178 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1179#define __SUN__ 1
1180EOF
1181
698dcdb6 1182 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1183#define __SOLARIS__ 1
1184EOF
1185
698dcdb6 1186 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1187#define __SVR4__ 1
1188EOF
1189
1190 DEFAULT_DEFAULT_wxUSE_MOTIF=1
ab9b9eab 1191 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
10f2d63a
VZ
1192 ;;
1193 *-*-sunos4* )
1194 USE_SUN=1
1195 USE_SUNOS=1
1196 USE_BSD=1
698dcdb6 1197 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1198#define __SUN__ 1
1199EOF
1200
698dcdb6 1201 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1202#define __SUNOS__ 1
1203EOF
1204
698dcdb6 1205 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1206#define __BSD__ 1
1207EOF
1208
1209 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1210 ;;
f6bcfd97 1211 *-*-freebsd*)
10f2d63a
VZ
1212 USE_BSD=1
1213 USE_FREEBSD=1
698dcdb6 1214 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1215#define __FREEBSD__ 1
1216EOF
1217
698dcdb6 1218 cat >> confdefs.h <<\EOF
10f2d63a 1219#define __BSD__ 1
95c8801c
VS
1220EOF
1221
1222 DEFAULT_DEFAULT_wxUSE_GTK=1
1223 ;;
1224 *-*-openbsd*)
1225 USE_BSD=1
1226 USE_OPENBSD=1
698dcdb6 1227 cat >> confdefs.h <<\EOF
95c8801c
VS
1228#define __FREEBSD__ 1
1229EOF
1230
698dcdb6 1231 cat >> confdefs.h <<\EOF
95c8801c 1232#define __OPENBSD__ 1
f6bcfd97
BP
1233EOF
1234
1235 DEFAULT_DEFAULT_wxUSE_GTK=1
1236 ;;
1237 *-*-netbsd*)
1238 USE_BSD=1
1239 USE_NETBSD=1
698dcdb6 1240 cat >> confdefs.h <<\EOF
f6bcfd97
BP
1241#define __FREEBSD__ 1
1242EOF
1243
698dcdb6 1244 cat >> confdefs.h <<\EOF
f6bcfd97 1245#define __NETBSD__ 1
10f2d63a
VZ
1246EOF
1247
1248 DEFAULT_DEFAULT_wxUSE_GTK=1
1249 ;;
1250 *-*-osf* )
1251 USE_ALPHA=1
1252 USE_OSF=1
698dcdb6 1253 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1254#define __ALPHA__ 1
1255EOF
1256
698dcdb6 1257 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1258#define __OSF__ 1
1259EOF
1260
1261 DEFAULT_DEFAULT_wxUSE_MOTIF=1
f6bcfd97 1262 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
10f2d63a
VZ
1263 ;;
1264 *-*-dgux5* )
1265 USE_ALPHA=1
1266 USE_SVR4=1
698dcdb6 1267 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1268#define __ALPHA__ 1
1269EOF
1270
698dcdb6 1271 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1272#define __SVR4__ 1
1273EOF
1274
1275 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1276 ;;
1277 *-*-sysv5* )
1278 USE_SYSV=1
1279 USE_SVR4=1
698dcdb6 1280 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1281#define __SYSV__ 1
1282EOF
1283
698dcdb6 1284 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1285#define __SVR4__ 1
1286EOF
1287
1288 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1289 ;;
1290 *-*-aix* )
1291 USE_AIX=1
1292 USE_SYSV=1
1293 USE_SVR4=1
698dcdb6 1294 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1295#define __AIX__ 1
1296EOF
1297
698dcdb6 1298 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1299#define __SYSV__ 1
1300EOF
1301
698dcdb6 1302 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1303#define __SVR4__ 1
1304EOF
1305
1306 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1307 ;;
1308
1c8183e2 1309 *-*-cygwin* | *-*-mingw32* )
10f2d63a
VZ
1310 USE_UNIX=0
1311 USE_WIN32=1
3a922bb4 1312 SO_SUFFIX=dll
698dcdb6 1313 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1314#define __WIN32__ 1
1315EOF
1316
698dcdb6 1317 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1318#define __WIN95__ 1
1319EOF
1320
698dcdb6 1321 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1322#define __WINDOWS__ 1
1323EOF
1324
698dcdb6 1325 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1326#define __GNUWIN32__ 1
1327EOF
1328
698dcdb6 1329 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1330#define STRICT 1
1331EOF
1332
698dcdb6 1333 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1334#define WINVER 0x0400
1335EOF
1336
cf27ef00 1337 PROGRAM_EXT=".exe"
7b7a7637 1338 RESCOMP=windres
10f2d63a
VZ
1339 DEFAULT_DEFAULT_wxUSE_MSW=1
1340 ;;
1341
f9bc1684
VS
1342 *-pc-msdosdjgpp )
1343 USE_UNIX=0
1344 USE_DOS=1
1345 cat >> confdefs.h <<\EOF
1346#define __DOS__ 1
1347EOF
1348
1349 PROGRAM_EXT=".exe"
1350 DEFAULT_DEFAULT_wxUSE_MGL=1
f9bc1684
VS
1351 ;;
1352
6fa882bd 1353 *-pc-os2_emx | *-pc-os2-emx )
698dcdb6 1354 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1355#define __EMX__ 1
1356EOF
1357
cf27ef00 1358 PROGRAM_EXT=".exe"
e07802fc 1359 DEFAULT_DEFAULT_wxUSE_PM=1
d558c907 1360 LIBS="$LIBS -lstdcpp"
10f2d63a
VZ
1361 ;;
1362
d08b457b
GD
1363 powerpc-*-darwin* )
1364 USE_BSD=1
f11bdd03 1365 USE_DARWIN=1
3a922bb4 1366 SO_SUFFIX=dylib
698dcdb6 1367 cat >> confdefs.h <<\EOF
f11bdd03 1368#define __BSD__ 1
b4085ce6
GD
1369EOF
1370
698dcdb6 1371 cat >> confdefs.h <<\EOF
f11bdd03 1372#define __DARWIN__ 1
d08b457b
GD
1373EOF
1374
1375 cat >> confdefs.h <<\EOF
1376#define __POWERPC__ 1
b4085ce6
GD
1377EOF
1378
1379 DEFAULT_DEFAULT_wxUSE_MAC=1
1380 ;;
1381
b12915c1
VZ
1382 *-*-beos* )
1383 USE_BEOS=1
698dcdb6 1384 cat >> confdefs.h <<\EOF
b12915c1
VZ
1385#define __BEOS__ 1
1386EOF
1387
1388 ;;
1389
10f2d63a 1390 *)
698dcdb6 1391 { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; }
10f2d63a
VZ
1392esac
1393
1394if test "$USE_UNIX" = 1 ; then
b12915c1 1395 wxUSE_UNIX=yes
698dcdb6 1396 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1397#define __UNIX__ 1
1398EOF
1399
10f2d63a
VZ
1400fi
1401
1e487827 1402
1e487827 1403
6232543b 1404
10f2d63a
VZ
1405 wx_arg_cache_file="configarg.cache"
1406 echo "loading argument cache $wx_arg_cache_file"
1407 rm -f ${wx_arg_cache_file}.tmp
1408 touch ${wx_arg_cache_file}.tmp
1409 touch ${wx_arg_cache_file}
698dcdb6 1410
10f2d63a
VZ
1411
1412DEBUG_CONFIGURE=0
1413if test $DEBUG_CONFIGURE = 1; then
1e6feb95
VZ
1414 DEFAULT_wxUSE_UNIVERSAL=no
1415
d8356fa3
VZ
1416 DEFAULT_wxUSE_NANOX=no
1417
10f2d63a
VZ
1418 DEFAULT_wxUSE_THREADS=yes
1419
1420 DEFAULT_wxUSE_SHARED=yes
3a922bb4 1421 DEFAULT_wxUSE_SONAME=no
1e6feb95 1422 DEFAULT_wxUSE_OPTIMISE=no
10f2d63a
VZ
1423 DEFAULT_wxUSE_PROFILE=no
1424 DEFAULT_wxUSE_NO_DEPS=no
8f4a9a10
RR
1425 DEFAULT_wxUSE_NO_RTTI=no
1426 DEFAULT_wxUSE_NO_EXCEPTIONS=no
10f2d63a
VZ
1427 DEFAULT_wxUSE_PERMISSIVE=no
1428 DEFAULT_wxUSE_DEBUG_FLAG=yes
1429 DEFAULT_wxUSE_DEBUG_INFO=yes
1430 DEFAULT_wxUSE_DEBUG_GDB=yes
1431 DEFAULT_wxUSE_MEM_TRACING=no
1432 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1433 DEFAULT_wxUSE_DMALLOC=no
a7ae7112 1434 DEFAULT_wxUSE_PRECOMP=no
10f2d63a
VZ
1435 DEFAULT_wxUSE_APPLE_IEEE=no
1436
1437 DEFAULT_wxUSE_LOG=yes
1e6feb95
VZ
1438 DEFAULT_wxUSE_LOGWINDOW=no
1439 DEFAULT_wxUSE_LOGGUI=no
69d27ff7 1440 DEFAULT_wxUSE_LOGDIALOG=no
10f2d63a
VZ
1441
1442 DEFAULT_wxUSE_GUI=yes
1e6feb95 1443 DEFAULT_wxUSE_CONTROLS=no
10f2d63a 1444
3e44f09d 1445 DEFAULT_wxUSE_REGEX=no
10f2d63a
VZ
1446 DEFAULT_wxUSE_ZLIB=no
1447 DEFAULT_wxUSE_LIBPNG=no
1448 DEFAULT_wxUSE_LIBJPEG=no
c7a2bf27 1449 DEFAULT_wxUSE_LIBTIFF=no
10f2d63a 1450 DEFAULT_wxUSE_ODBC=no
bdad4e7e 1451 DEFAULT_wxUSE_OPENGL=no
10f2d63a 1452
eb4efbdc 1453 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
4f3c5f06 1454 DEFAULT_wxUSE_SNGLINST_CHECKER=no
10f2d63a 1455 DEFAULT_wxUSE_STD_IOSTREAM=no
1e6feb95
VZ
1456 DEFAULT_wxUSE_CMDLINE_PARSER=no
1457 DEFAULT_wxUSE_DATETIME=no
1458 DEFAULT_wxUSE_TIMEDATE=no
1459 DEFAULT_wxUSE_TIMER=no
1460 DEFAULT_wxUSE_STOPWATCH=no
10f2d63a 1461 DEFAULT_wxUSE_FILE=no
1e6feb95 1462 DEFAULT_wxUSE_FFILE=no
a3a584a7 1463 DEFAULT_wxUSE_TEXTBUFFER=no
10f2d63a 1464 DEFAULT_wxUSE_TEXTFILE=no
10f2d63a
VZ
1465 DEFAULT_wxUSE_WAVE=no
1466 DEFAULT_wxUSE_INTL=no
1467 DEFAULT_wxUSE_CONFIG=no
1e6feb95 1468 DEFAULT_wxUSE_FONTMAP=no
10f2d63a
VZ
1469 DEFAULT_wxUSE_STREAMS=no
1470 DEFAULT_wxUSE_SOCKETS=no
1471 DEFAULT_wxUSE_DIALUP_MANAGER=no
10f2d63a 1472 DEFAULT_wxUSE_JOYSTICK=no
6bff71f8 1473 DEFAULT_wxUSE_DYNLIB_CLASS=no
0b9ab0bd 1474 DEFAULT_wxUSE_DYNAMIC_LOADER=no
10f2d63a 1475 DEFAULT_wxUSE_LONGLONG=no
e8f65ba6 1476 DEFAULT_wxUSE_GEOMETRY=no
10f2d63a
VZ
1477
1478 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
1479 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
1480 DEFAULT_wxUSE_POSTSCRIPT=no
1481
1482 DEFAULT_wxUSE_X_RESOURCES=no
1483 DEFAULT_wxUSE_CLIPBOARD=no
1484 DEFAULT_wxUSE_TOOLTIPS=no
1485 DEFAULT_wxUSE_DRAG_AND_DROP=no
24fd6d87 1486 DEFAULT_wxUSE_DRAGIMAGE=no
10f2d63a
VZ
1487 DEFAULT_wxUSE_SPLINES=no
1488
1489 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
1490 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
1491 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
1492
1493 DEFAULT_wxUSE_PROLOGIO=no
1494 DEFAULT_wxUSE_RESOURCES=no
1495 DEFAULT_wxUSE_CONSTRAINTS=no
1496 DEFAULT_wxUSE_IPC=no
1497 DEFAULT_wxUSE_HELP=no
29fd3c0c 1498 DEFAULT_wxUSE_MS_HTML_HELP=no
3379ed37 1499 DEFAULT_wxUSE_WXHTML_HELP=no
24176f2c 1500 DEFAULT_wxUSE_TREELAYOUT=no
10f2d63a 1501 DEFAULT_wxUSE_METAFILE=no
1e6feb95 1502 DEFAULT_wxUSE_MIMETYPE=no
4cdb0ab0
VS
1503 DEFAULT_wxUSE_SYSTEM_OPTIONS=no
1504 DEFAULT_wxUSE_PROTOCOL=no
1505 DEFAULT_wxUSE_PROTOCOL_HTTP=no
1506 DEFAULT_wxUSE_PROTOCOL_FTP=no
1507 DEFAULT_wxUSE_PROTOCOL_FILE=no
1508 DEFAULT_wxUSE_URL=no
1509
10f2d63a 1510 DEFAULT_wxUSE_COMMONDLGS=no
1e6feb95
VZ
1511 DEFAULT_wxUSE_CHOICEDLG=no
1512 DEFAULT_wxUSE_COLOURDLG=no
10f2d63a 1513 DEFAULT_wxUSE_DIRDLG=no
1e6feb95 1514 DEFAULT_wxUSE_FILEDLG=no
8db37e06 1515 DEFAULT_wxUSE_FINDREPLDLG=no
1e6feb95
VZ
1516 DEFAULT_wxUSE_FONTDLG=no
1517 DEFAULT_wxUSE_MSGDLG=no
1518 DEFAULT_wxUSE_NUMBERDLG=no
10f2d63a 1519 DEFAULT_wxUSE_TEXTDLG=no
cbca9943 1520 DEFAULT_wxUSE_SPLASH=no
10f2d63a
VZ
1521 DEFAULT_wxUSE_STARTUP_TIPS=no
1522 DEFAULT_wxUSE_PROGRESSDLG=no
b1f5d087
VZ
1523 DEFAULT_wxUSE_WIZARDDLG=no
1524
1e6feb95 1525 DEFAULT_wxUSE_MENUS=no
10f2d63a
VZ
1526 DEFAULT_wxUSE_MINIFRAME=no
1527 DEFAULT_wxUSE_HTML=no
24528b0c 1528 DEFAULT_wxUSE_FILESYSTEM=no
10f2d63a
VZ
1529 DEFAULT_wxUSE_FS_INET=no
1530 DEFAULT_wxUSE_FS_ZIP=no
1531 DEFAULT_wxUSE_BUSYINFO=no
1532 DEFAULT_wxUSE_ZIPSTREAM=no
1e6feb95 1533 DEFAULT_wxUSE_VALIDATORS=no
10f2d63a
VZ
1534
1535 DEFAULT_wxUSE_ACCEL=no
1e6feb95 1536 DEFAULT_wxUSE_BUTTON=no
10f2d63a 1537 DEFAULT_wxUSE_BMPBUTTON=no
1e6feb95
VZ
1538 DEFAULT_wxUSE_CALCTRL=no
1539 DEFAULT_wxUSE_CARET=no
10f2d63a
VZ
1540 DEFAULT_wxUSE_CHECKBOX=no
1541 DEFAULT_wxUSE_CHECKLST=no
1e6feb95 1542 DEFAULT_wxUSE_CHOICE=no
10f2d63a
VZ
1543 DEFAULT_wxUSE_COMBOBOX=no
1544 DEFAULT_wxUSE_GAUGE=no
1545 DEFAULT_wxUSE_GRID=no
1546 DEFAULT_wxUSE_NEW_GRID=no
1547 DEFAULT_wxUSE_IMAGLIST=no
1548 DEFAULT_wxUSE_LISTBOX=no
1549 DEFAULT_wxUSE_LISTCTRL=no
1550 DEFAULT_wxUSE_NOTEBOOK=no
24176f2c 1551 DEFAULT_wxUSE_PROPSHEET=no
10f2d63a
VZ
1552 DEFAULT_wxUSE_RADIOBOX=no
1553 DEFAULT_wxUSE_RADIOBTN=no
1554 DEFAULT_wxUSE_SASH=no
1555 DEFAULT_wxUSE_SCROLLBAR=no
1556 DEFAULT_wxUSE_SLIDER=no
1557 DEFAULT_wxUSE_SPINBTN=no
56cfaa52 1558 DEFAULT_wxUSE_SPINCTRL=no
10f2d63a
VZ
1559 DEFAULT_wxUSE_SPLITTER=no
1560 DEFAULT_wxUSE_STATBMP=no
1561 DEFAULT_wxUSE_STATBOX=no
1562 DEFAULT_wxUSE_STATLINE=no
1e6feb95 1563 DEFAULT_wxUSE_STATTEXT=no
10f2d63a
VZ
1564 DEFAULT_wxUSE_STATUSBAR=yes
1565 DEFAULT_wxUSE_TABDIALOG=no
1e6feb95 1566 DEFAULT_wxUSE_TEXTCTRL=no
1db8dc4a 1567 DEFAULT_wxUSE_TOGGLEBTN=no
10f2d63a 1568 DEFAULT_wxUSE_TOOLBAR=no
360d6699
VZ
1569 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
1570 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
10f2d63a 1571 DEFAULT_wxUSE_TREECTRL=no
9f41d601 1572 DEFAULT_wxUSE_POPUPWIN=no
9926e4a4 1573 DEFAULT_wxUSE_TIPWINDOW=no
10f2d63a
VZ
1574
1575 DEFAULT_wxUSE_UNICODE=no
a72a4bfa 1576 DEFAULT_wxUSE_UNICODE_MSLU=no
10f2d63a
VZ
1577 DEFAULT_wxUSE_WCSRTOMBS=no
1578
edae8572 1579 DEFAULT_wxUSE_PALETTE=no
0046ff7c 1580 DEFAULT_wxUSE_IMAGE=no
10f2d63a
VZ
1581 DEFAULT_wxUSE_GIF=no
1582 DEFAULT_wxUSE_PCX=no
1583 DEFAULT_wxUSE_PNM=no
4b6b4dfc 1584 DEFAULT_wxUSE_IFF=no
0046ff7c 1585 DEFAULT_wxUSE_XPM=no
658974ae 1586 DEFAULT_wxUSE_ICO_CUR=no
10f2d63a 1587else
1e6feb95
VZ
1588 DEFAULT_wxUSE_UNIVERSAL=no
1589
d8356fa3
VZ
1590 DEFAULT_wxUSE_NANOX=no
1591
10f2d63a
VZ
1592 DEFAULT_wxUSE_THREADS=yes
1593
1594 DEFAULT_wxUSE_SHARED=yes
3a922bb4 1595 DEFAULT_wxUSE_SONAME=no
10f2d63a
VZ
1596 DEFAULT_wxUSE_OPTIMISE=yes
1597 DEFAULT_wxUSE_PROFILE=no
1598 DEFAULT_wxUSE_NO_DEPS=no
8f4a9a10
RR
1599 DEFAULT_wxUSE_NO_RTTI=no
1600 DEFAULT_wxUSE_NO_EXCEPTIONS=no
10f2d63a
VZ
1601 DEFAULT_wxUSE_PERMISSIVE=no
1602 DEFAULT_wxUSE_DEBUG_FLAG=no
1603 DEFAULT_wxUSE_DEBUG_INFO=no
1604 DEFAULT_wxUSE_DEBUG_GDB=no
1605 DEFAULT_wxUSE_MEM_TRACING=no
1606 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1607 DEFAULT_wxUSE_DMALLOC=no
a7ae7112 1608 DEFAULT_wxUSE_PRECOMP=no
10f2d63a
VZ
1609 DEFAULT_wxUSE_APPLE_IEEE=yes
1610
1611 DEFAULT_wxUSE_LOG=yes
d73be714
VZ
1612 DEFAULT_wxUSE_LOGWINDOW=yes
1613 DEFAULT_wxUSE_LOGGUI=yes
69d27ff7 1614 DEFAULT_wxUSE_LOGDIALOG=yes
10f2d63a
VZ
1615
1616 DEFAULT_wxUSE_GUI=yes
1617
831b3152 1618 DEFAULT_wxUSE_REGEX=yes
10f2d63a
VZ
1619 DEFAULT_wxUSE_ZLIB=yes
1620 DEFAULT_wxUSE_LIBPNG=yes
1621 DEFAULT_wxUSE_LIBJPEG=yes
b47c832e 1622 DEFAULT_wxUSE_LIBTIFF=yes
16b52fa1 1623 DEFAULT_wxUSE_ODBC=no
bdad4e7e 1624 DEFAULT_wxUSE_OPENGL=no
10f2d63a 1625
eb4efbdc 1626 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
4f3c5f06 1627 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
10f2d63a 1628 DEFAULT_wxUSE_STD_IOSTREAM=no
1e6feb95
VZ
1629 DEFAULT_wxUSE_CMDLINE_PARSER=yes
1630 DEFAULT_wxUSE_DATETIME=yes
1631 DEFAULT_wxUSE_TIMEDATE=no
1632 DEFAULT_wxUSE_TIMER=yes
1633 DEFAULT_wxUSE_STOPWATCH=yes
10f2d63a 1634 DEFAULT_wxUSE_FILE=yes
1e6feb95 1635 DEFAULT_wxUSE_FFILE=yes
a3a584a7 1636 DEFAULT_wxUSE_TEXTBUFFER=yes
10f2d63a 1637 DEFAULT_wxUSE_TEXTFILE=yes
10f2d63a
VZ
1638 DEFAULT_wxUSE_WAVE=no
1639 DEFAULT_wxUSE_INTL=yes
1640 DEFAULT_wxUSE_CONFIG=yes
1e6feb95 1641 DEFAULT_wxUSE_FONTMAP=yes
10f2d63a
VZ
1642 DEFAULT_wxUSE_STREAMS=yes
1643 DEFAULT_wxUSE_SOCKETS=yes
1644 DEFAULT_wxUSE_DIALUP_MANAGER=yes
10f2d63a 1645 DEFAULT_wxUSE_JOYSTICK=yes
6bff71f8 1646 DEFAULT_wxUSE_DYNLIB_CLASS=yes
9337b578 1647 DEFAULT_wxUSE_DYNAMIC_LOADER=yes
b685cd9b 1648 DEFAULT_wxUSE_LONGLONG=yes
e8f65ba6 1649 DEFAULT_wxUSE_GEOMETRY=yes
10f2d63a
VZ
1650
1651 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
1652 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
1653 DEFAULT_wxUSE_POSTSCRIPT=yes
1654
1655 DEFAULT_wxUSE_X_RESOURCES=no
1656 DEFAULT_wxUSE_CLIPBOARD=yes
1657 DEFAULT_wxUSE_TOOLTIPS=yes
1658 DEFAULT_wxUSE_DRAG_AND_DROP=yes
24fd6d87 1659 DEFAULT_wxUSE_DRAGIMAGE=yes
10f2d63a
VZ
1660 DEFAULT_wxUSE_SPLINES=yes
1661
1662 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
1663 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
1664 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
1665
1666 DEFAULT_wxUSE_PROLOGIO=yes
1667 DEFAULT_wxUSE_RESOURCES=yes
1668 DEFAULT_wxUSE_CONSTRAINTS=yes
1669 DEFAULT_wxUSE_IPC=yes
1670 DEFAULT_wxUSE_HELP=yes
29fd3c0c 1671 DEFAULT_wxUSE_MS_HTML_HELP=yes
3379ed37 1672 DEFAULT_wxUSE_WXHTML_HELP=yes
24176f2c 1673 DEFAULT_wxUSE_TREELAYOUT=yes
10f2d63a 1674 DEFAULT_wxUSE_METAFILE=yes
1e6feb95 1675 DEFAULT_wxUSE_MIMETYPE=yes
3e44f09d 1676 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
4cdb0ab0
VS
1677 DEFAULT_wxUSE_PROTOCOL=yes
1678 DEFAULT_wxUSE_PROTOCOL_HTTP=yes
1679 DEFAULT_wxUSE_PROTOCOL_FTP=yes
1680 DEFAULT_wxUSE_PROTOCOL_FILE=yes
1681 DEFAULT_wxUSE_URL=yes
10f2d63a
VZ
1682
1683 DEFAULT_wxUSE_COMMONDLGS=yes
1e6feb95
VZ
1684 DEFAULT_wxUSE_CHOICEDLG=yes
1685 DEFAULT_wxUSE_COLOURDLG=yes
10f2d63a 1686 DEFAULT_wxUSE_DIRDLG=yes
1e6feb95 1687 DEFAULT_wxUSE_FILEDLG=yes
8db37e06 1688 DEFAULT_wxUSE_FINDREPLDLG=yes
1e6feb95
VZ
1689 DEFAULT_wxUSE_FONTDLG=yes
1690 DEFAULT_wxUSE_MSGDLG=yes
1691 DEFAULT_wxUSE_NUMBERDLG=yes
10f2d63a 1692 DEFAULT_wxUSE_TEXTDLG=yes
cbca9943 1693 DEFAULT_wxUSE_SPLASH=yes
10f2d63a
VZ
1694 DEFAULT_wxUSE_STARTUP_TIPS=yes
1695 DEFAULT_wxUSE_PROGRESSDLG=yes
f33f19dd
VZ
1696 DEFAULT_wxUSE_WIZARDDLG=yes
1697
1e6feb95 1698 DEFAULT_wxUSE_MENUS=yes
10f2d63a
VZ
1699 DEFAULT_wxUSE_MINIFRAME=yes
1700 DEFAULT_wxUSE_HTML=yes
24528b0c 1701 DEFAULT_wxUSE_FILESYSTEM=yes
10f2d63a
VZ
1702 DEFAULT_wxUSE_FS_INET=yes
1703 DEFAULT_wxUSE_FS_ZIP=yes
1704 DEFAULT_wxUSE_BUSYINFO=yes
1705 DEFAULT_wxUSE_ZIPSTREAM=yes
1706 DEFAULT_wxUSE_VALIDATORS=yes
1707
1708 DEFAULT_wxUSE_ACCEL=yes
1e6feb95 1709 DEFAULT_wxUSE_BUTTON=yes
10f2d63a 1710 DEFAULT_wxUSE_BMPBUTTON=yes
1e6feb95
VZ
1711 DEFAULT_wxUSE_CALCTRL=yes
1712 DEFAULT_wxUSE_CARET=yes
10f2d63a
VZ
1713 DEFAULT_wxUSE_CHECKBOX=yes
1714 DEFAULT_wxUSE_CHECKLST=yes
1715 DEFAULT_wxUSE_CHOICE=yes
1716 DEFAULT_wxUSE_COMBOBOX=yes
1717 DEFAULT_wxUSE_GAUGE=yes
1718 DEFAULT_wxUSE_GRID=yes
cc977e5f 1719 DEFAULT_wxUSE_NEW_GRID=yes
10f2d63a
VZ
1720 DEFAULT_wxUSE_IMAGLIST=yes
1721 DEFAULT_wxUSE_LISTBOX=yes
1722 DEFAULT_wxUSE_LISTCTRL=yes
1723 DEFAULT_wxUSE_NOTEBOOK=yes
24176f2c 1724 DEFAULT_wxUSE_PROPSHEET=yes
10f2d63a
VZ
1725 DEFAULT_wxUSE_RADIOBOX=yes
1726 DEFAULT_wxUSE_RADIOBTN=yes
1727 DEFAULT_wxUSE_SASH=yes
1728 DEFAULT_wxUSE_SCROLLBAR=yes
1729 DEFAULT_wxUSE_SLIDER=yes
1730 DEFAULT_wxUSE_SPINBTN=yes
56cfaa52 1731 DEFAULT_wxUSE_SPINCTRL=yes
10f2d63a
VZ
1732 DEFAULT_wxUSE_SPLITTER=yes
1733 DEFAULT_wxUSE_STATBMP=yes
1734 DEFAULT_wxUSE_STATBOX=yes
1735 DEFAULT_wxUSE_STATLINE=yes
1e6feb95 1736 DEFAULT_wxUSE_STATTEXT=yes
10f2d63a
VZ
1737 DEFAULT_wxUSE_STATUSBAR=yes
1738 DEFAULT_wxUSE_TABDIALOG=no
1e6feb95 1739 DEFAULT_wxUSE_TEXTCTRL=yes
1db8dc4a 1740 DEFAULT_wxUSE_TOGGLEBTN=yes
10f2d63a 1741 DEFAULT_wxUSE_TOOLBAR=yes
360d6699
VZ
1742 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
1743 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
10f2d63a 1744 DEFAULT_wxUSE_TREECTRL=yes
9f41d601 1745 DEFAULT_wxUSE_POPUPWIN=yes
9926e4a4 1746 DEFAULT_wxUSE_TIPWINDOW=yes
10f2d63a
VZ
1747
1748 DEFAULT_wxUSE_UNICODE=no
a72a4bfa 1749 DEFAULT_wxUSE_UNICODE_MSLU=yes
10f2d63a
VZ
1750 DEFAULT_wxUSE_WCSRTOMBS=no
1751
edae8572 1752 DEFAULT_wxUSE_PALETTE=yes
0046ff7c 1753 DEFAULT_wxUSE_IMAGE=yes
10f2d63a
VZ
1754 DEFAULT_wxUSE_GIF=yes
1755 DEFAULT_wxUSE_PCX=yes
cc0e8480 1756 DEFAULT_wxUSE_IFF=no
10f2d63a 1757 DEFAULT_wxUSE_PNM=yes
0046ff7c 1758 DEFAULT_wxUSE_XPM=yes
658974ae 1759 DEFAULT_wxUSE_ICO_CUR=yes
10f2d63a
VZ
1760fi
1761
698dcdb6
VZ
1762
1763
10f2d63a
VZ
1764for toolkit in `echo $ALL_TOOLKITS`; do
1765 LINE=`grep "wxUSE_$toolkit" ${wx_arg_cache_file}`
1766 if test "x$LINE" != x ; then
1767 has_toolkit_in_cache=1
1768 eval "DEFAULT_$LINE"
1769 eval "CACHE_$toolkit=1"
1770 fi
1771done
1772
698dcdb6
VZ
1773
1774
1775 echo $ac_n "checking for --enable-gui""... $ac_c" 1>&6
19bc6aad 1776echo "configure:1777: checking for --enable-gui" >&5
10f2d63a
VZ
1777 no_cache=0
1778 # Check whether --enable-gui or --disable-gui was given.
1779if test "${enable_gui+set}" = set; then
1780 enableval="$enable_gui"
698dcdb6 1781
10f2d63a
VZ
1782 if test "$enableval" = yes; then
1783 ac_cv_use_gui='wxUSE_GUI=yes'
1784 else
1785 ac_cv_use_gui='wxUSE_GUI=no'
1786 fi
698dcdb6 1787
10f2d63a 1788else
698dcdb6 1789
10f2d63a
VZ
1790 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
1791 if test "x$LINE" != x ; then
1792 eval "DEFAULT_$LINE"
1793 else
1794 no_cache=1
1795 fi
1796
1797 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
698dcdb6
VZ
1798
1799fi
10f2d63a
VZ
1800
1801
1802 eval "$ac_cv_use_gui"
1803 if test "$no_cache" != 1; then
1804 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
1805 fi
1806
1807 if test "$wxUSE_GUI" = yes; then
698dcdb6 1808 echo "$ac_t""yes" 1>&6
10f2d63a 1809 else
698dcdb6 1810 echo "$ac_t""no" 1>&6
10f2d63a 1811 fi
698dcdb6 1812
10f2d63a 1813
b12915c1 1814if test "$wxUSE_GUI" = "yes"; then
10f2d63a 1815
1e6feb95
VZ
1816
1817 echo $ac_n "checking for --enable-universal""... $ac_c" 1>&6
19bc6aad 1818echo "configure:1819: checking for --enable-universal" >&5
1e6feb95
VZ
1819 no_cache=0
1820 # Check whether --enable-universal or --disable-universal was given.
1821if test "${enable_universal+set}" = set; then
1822 enableval="$enable_universal"
1823
1824 if test "$enableval" = yes; then
1825 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
1826 else
1827 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
1828 fi
1829
1830else
1831
1832 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
1833 if test "x$LINE" != x ; then
1834 eval "DEFAULT_$LINE"
1835 else
1836 no_cache=1
1837 fi
1838
1839 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
1840
1841fi
1842
1843
1844 eval "$ac_cv_use_universal"
1845 if test "$no_cache" != 1; then
1846 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
1847 fi
1848
1849 if test "$wxUSE_UNIVERSAL" = yes; then
1850 echo "$ac_t""yes" 1>&6
1851 else
1852 echo "$ac_t""no" 1>&6
1853 fi
1854
10f2d63a
VZ
1855# Check whether --with-gtk or --without-gtk was given.
1856if test "${with_gtk+set}" = set; then
1857 withval="$with_gtk"
1858 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
698dcdb6 1859fi
10f2d63a
VZ
1860
1861# Check whether --with-motif or --without-motif was given.
1862if test "${with_motif+set}" = set; then
1863 withval="$with_motif"
1864 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
698dcdb6 1865fi
10f2d63a 1866
b4085ce6
GD
1867# Check whether --with-mac or --without-mac was given.
1868if test "${with_mac+set}" = set; then
1869 withval="$with_mac"
1870 wxUSE_MAC="$withval" TOOLKIT_GIVEN=1
698dcdb6 1871fi
b4085ce6 1872
10f2d63a
VZ
1873# Check whether --with-wine or --without-wine was given.
1874if test "${with_wine+set}" = set; then
1875 withval="$with_wine"
1876 wxUSE_WINE="$withval" CACHE_WINE=1 TOOLKIT_GIVEN=1
698dcdb6 1877fi
10f2d63a 1878
77e13408
RL
1879# Check whether --with-msw or --without-msw was given.
1880if test "${with_msw+set}" = set; then
1881 withval="$with_msw"
b4efce5e 1882 wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
698dcdb6 1883fi
10f2d63a 1884
e07802fc
VZ
1885# Check whether --with-pm or --without-pm was given.
1886if test "${with_pm+set}" = set; then
1887 withval="$with_pm"
1888 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
698dcdb6
VZ
1889fi
1890
1e6feb95
VZ
1891# Check whether --with-mgl or --without-mgl was given.
1892if test "${with_mgl+set}" = set; then
1893 withval="$with_mgl"
1894 wxUSE_MGL="$withval" CACHE_MGL=1 TOOLKIT_GIVEN=1
1895fi
1896
1725144d
RR
1897# Check whether --with-microwin or --without-microwin was given.
1898if test "${with_microwin+set}" = set; then
1899 withval="$with_microwin"
1900 wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
1901fi
1902
f79bd02d
JS
1903# Check whether --with-x11 or --without-x11 was given.
1904if test "${with_x11+set}" = set; then
1905 withval="$with_x11"
3c011993 1906 wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
f79bd02d
JS
1907fi
1908
10f2d63a 1909
ba875e66 1910 echo $ac_n "checking for --enable-nanox""... $ac_c" 1>&6
19bc6aad 1911echo "configure:1912: checking for --enable-nanox" >&5
d8356fa3 1912 no_cache=0
ba875e66
VZ
1913 # Check whether --enable-nanox or --disable-nanox was given.
1914if test "${enable_nanox+set}" = set; then
1915 enableval="$enable_nanox"
d8356fa3
VZ
1916
1917 if test "$enableval" = yes; then
ba875e66 1918 ac_cv_use_nanox='wxUSE_NANOX=yes'
d8356fa3 1919 else
ba875e66 1920 ac_cv_use_nanox='wxUSE_NANOX=no'
d8356fa3
VZ
1921 fi
1922
1923else
1924
1925 LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}`
1926 if test "x$LINE" != x ; then
1927 eval "DEFAULT_$LINE"
1928 else
1929 no_cache=1
1930 fi
1931
ba875e66 1932 ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX
d8356fa3
VZ
1933
1934fi
1935
1936
ba875e66 1937 eval "$ac_cv_use_nanox"
d8356fa3 1938 if test "$no_cache" != 1; then
ba875e66 1939 echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp
d8356fa3
VZ
1940 fi
1941
1942 if test "$wxUSE_NANOX" = yes; then
1943 echo "$ac_t""yes" 1>&6
1944 else
1945 echo "$ac_t""no" 1>&6
1946 fi
1947
1948
8168de4c
VZ
1949# Check whether --enable-gtk2 or --disable-gtk2 was given.
1950if test "${enable_gtk2+set}" = set; then
1951 enableval="$enable_gtk2"
9e691f46 1952 wxUSE_GTK2="yes"
10f2d63a 1953else
9e691f46 1954 wxUSE_GTK2="no"
698dcdb6
VZ
1955fi
1956
703e0a69 1957
1e487827 1958
698dcdb6 1959 echo $ac_n "checking for --with-libpng""... $ac_c" 1>&6
19bc6aad 1960echo "configure:1961: checking for --with-libpng" >&5
698dcdb6
VZ
1961 no_cache=0
1962 # Check whether --with-libpng or --without-libpng was given.
b12915c1
VZ
1963if test "${with_libpng+set}" = set; then
1964 withval="$with_libpng"
698dcdb6 1965
10f2d63a 1966 if test "$withval" = yes; then
b12915c1 1967 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
422107f9 1968 elif test "$withval" = no; then
b12915c1 1969 ac_cv_use_libpng='wxUSE_LIBPNG=no'
422107f9
VZ
1970 elif test "$withval" = sys; then
1971 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
4f14bcd8
GD
1972 elif test "$withval" = builtin; then
1973 ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
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 1978else
698dcdb6 1979
b12915c1 1980 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
10f2d63a
VZ
1981 if test "x$LINE" != x ; then
1982 eval "DEFAULT_$LINE"
1983 else
1984 no_cache=1
1985 fi
1986
b12915c1 1987 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
698dcdb6
VZ
1988
1989fi
10f2d63a
VZ
1990
1991
b12915c1 1992 eval "$ac_cv_use_libpng"
10f2d63a 1993 if test "$no_cache" != 1; then
b12915c1 1994 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
1995 fi
1996
b12915c1 1997 if test "$wxUSE_LIBPNG" = yes; then
698dcdb6 1998 echo "$ac_t""yes" 1>&6
422107f9 1999 elif test "$wxUSE_LIBPNG" = no; then
698dcdb6 2000 echo "$ac_t""no" 1>&6
422107f9 2001 elif test "$wxUSE_LIBPNG" = sys; then
698dcdb6 2002 echo "$ac_t""system version" 1>&6
4f14bcd8
GD
2003 elif test "$wxUSE_LIBPNG" = builtin; then
2004 echo "$ac_t""builtin version" 1>&6
422107f9 2005 else
4f14bcd8 2006 { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 2007 fi
698dcdb6 2008
10f2d63a 2009
698dcdb6 2010 echo $ac_n "checking for --with-libjpeg""... $ac_c" 1>&6
19bc6aad 2011echo "configure:2012: checking for --with-libjpeg" >&5
10f2d63a 2012 no_cache=0
698dcdb6 2013 # Check whether --with-libjpeg or --without-libjpeg was given.
b12915c1
VZ
2014if test "${with_libjpeg+set}" = set; then
2015 withval="$with_libjpeg"
698dcdb6 2016
10f2d63a 2017 if test "$withval" = yes; then
b12915c1 2018 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
422107f9 2019 elif test "$withval" = no; then
b12915c1 2020 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
422107f9
VZ
2021 elif test "$withval" = sys; then
2022 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
4f14bcd8
GD
2023 elif test "$withval" = builtin; then
2024 ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
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 2029else
698dcdb6 2030
b12915c1 2031 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
10f2d63a
VZ
2032 if test "x$LINE" != x ; then
2033 eval "DEFAULT_$LINE"
2034 else
2035 no_cache=1
2036 fi
2037
b12915c1 2038 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
698dcdb6
VZ
2039
2040fi
10f2d63a
VZ
2041
2042
b12915c1 2043 eval "$ac_cv_use_libjpeg"
10f2d63a 2044 if test "$no_cache" != 1; then
b12915c1 2045 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2046 fi
2047
b12915c1 2048 if test "$wxUSE_LIBJPEG" = yes; then
698dcdb6 2049 echo "$ac_t""yes" 1>&6
422107f9 2050 elif test "$wxUSE_LIBJPEG" = no; then
698dcdb6 2051 echo "$ac_t""no" 1>&6
422107f9 2052 elif test "$wxUSE_LIBJPEG" = sys; then
698dcdb6 2053 echo "$ac_t""system version" 1>&6
4f14bcd8
GD
2054 elif test "$wxUSE_LIBJPEG" = builtin; then
2055 echo "$ac_t""builtin version" 1>&6
422107f9 2056 else
4f14bcd8 2057 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 2058 fi
698dcdb6 2059
10f2d63a 2060
698dcdb6 2061 echo $ac_n "checking for --with-libtiff""... $ac_c" 1>&6
19bc6aad 2062echo "configure:2063: checking for --with-libtiff" >&5
10f2d63a 2063 no_cache=0
698dcdb6 2064 # Check whether --with-libtiff or --without-libtiff was given.
b12915c1
VZ
2065if test "${with_libtiff+set}" = set; then
2066 withval="$with_libtiff"
698dcdb6 2067
10f2d63a 2068 if test "$withval" = yes; then
b12915c1 2069 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
0dcf9893 2070 elif test "$withval" = no; then
b12915c1 2071 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
0dcf9893
VZ
2072 elif test "$withval" = sys; then
2073 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
4f14bcd8
GD
2074 elif test "$withval" = builtin; then
2075 ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
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 2080else
698dcdb6 2081
b12915c1 2082 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
10f2d63a
VZ
2083 if test "x$LINE" != x ; then
2084 eval "DEFAULT_$LINE"
2085 else
2086 no_cache=1
2087 fi
2088
b12915c1 2089 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
698dcdb6
VZ
2090
2091fi
10f2d63a
VZ
2092
2093
b12915c1 2094 eval "$ac_cv_use_libtiff"
10f2d63a 2095 if test "$no_cache" != 1; then
b12915c1 2096 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2097 fi
2098
b12915c1 2099 if test "$wxUSE_LIBTIFF" = yes; then
698dcdb6 2100 echo "$ac_t""yes" 1>&6
0dcf9893 2101 elif test "$wxUSE_LIBTIFF" = no; then
698dcdb6 2102 echo "$ac_t""no" 1>&6
0dcf9893 2103 elif test "$wxUSE_LIBTIFF" = sys; then
698dcdb6 2104 echo "$ac_t""system version" 1>&6
4f14bcd8
GD
2105 elif test "$wxUSE_LIBTIFF" = builtin; then
2106 echo "$ac_t""builtin version" 1>&6
0dcf9893 2107 else
4f14bcd8 2108 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 2109 fi
698dcdb6 2110
10f2d63a 2111
698dcdb6 2112 echo $ac_n "checking for --with-opengl""... $ac_c" 1>&6
19bc6aad 2113echo "configure:2114: checking for --with-opengl" >&5
10f2d63a 2114 no_cache=0
698dcdb6 2115 # Check whether --with-opengl or --without-opengl was given.
b12915c1
VZ
2116if test "${with_opengl+set}" = set; then
2117 withval="$with_opengl"
698dcdb6 2118
10f2d63a 2119 if test "$withval" = yes; then
b12915c1 2120 ac_cv_use_opengl='wxUSE_OPENGL=yes'
10f2d63a 2121 else
b12915c1 2122 ac_cv_use_opengl='wxUSE_OPENGL=no'
10f2d63a 2123 fi
698dcdb6 2124
10f2d63a 2125else
698dcdb6 2126
b12915c1 2127 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
10f2d63a
VZ
2128 if test "x$LINE" != x ; then
2129 eval "DEFAULT_$LINE"
2130 else
2131 no_cache=1
2132 fi
2133
b12915c1 2134 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
698dcdb6
VZ
2135
2136fi
10f2d63a
VZ
2137
2138
b12915c1 2139 eval "$ac_cv_use_opengl"
10f2d63a 2140 if test "$no_cache" != 1; then
b12915c1 2141 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2142 fi
2143
b12915c1 2144 if test "$wxUSE_OPENGL" = yes; then
698dcdb6 2145 echo "$ac_t""yes" 1>&6
10f2d63a 2146 else
698dcdb6 2147 echo "$ac_t""no" 1>&6
10f2d63a 2148 fi
698dcdb6 2149
10f2d63a 2150
b12915c1
VZ
2151fi
2152
1e487827 2153
698dcdb6 2154 echo $ac_n "checking for --with-dmalloc""... $ac_c" 1>&6
19bc6aad 2155echo "configure:2156: checking for --with-dmalloc" >&5
698dcdb6
VZ
2156 no_cache=0
2157 # Check whether --with-dmalloc or --without-dmalloc was given.
b12915c1
VZ
2158if test "${with_dmalloc+set}" = set; then
2159 withval="$with_dmalloc"
698dcdb6 2160
c7a2bf27 2161 if test "$withval" = yes; then
b12915c1 2162 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
c7a2bf27 2163 else
b12915c1 2164 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
c7a2bf27 2165 fi
698dcdb6 2166
c7a2bf27 2167else
698dcdb6 2168
b12915c1 2169 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
c7a2bf27
RR
2170 if test "x$LINE" != x ; then
2171 eval "DEFAULT_$LINE"
2172 else
2173 no_cache=1
2174 fi
2175
b12915c1 2176 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
698dcdb6
VZ
2177
2178fi
c7a2bf27
RR
2179
2180
b12915c1 2181 eval "$ac_cv_use_dmalloc"
c7a2bf27 2182 if test "$no_cache" != 1; then
b12915c1 2183 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
c7a2bf27
RR
2184 fi
2185
b12915c1 2186 if test "$wxUSE_DMALLOC" = yes; then
698dcdb6 2187 echo "$ac_t""yes" 1>&6
c7a2bf27 2188 else
698dcdb6 2189 echo "$ac_t""no" 1>&6
c7a2bf27 2190 fi
698dcdb6 2191
c7a2bf27 2192
3e44f09d 2193 echo $ac_n "checking for --with-regex""... $ac_c" 1>&6
19bc6aad 2194echo "configure:2195: checking for --with-regex" >&5
3e44f09d
VZ
2195 no_cache=0
2196 # Check whether --with-regex or --without-regex was given.
2197if test "${with_regex+set}" = set; then
2198 withval="$with_regex"
2199
2200 if test "$withval" = yes; then
2201 ac_cv_use_regex='wxUSE_REGEX=yes'
2202 elif test "$withval" = no; then
2203 ac_cv_use_regex='wxUSE_REGEX=no'
2204 elif test "$withval" = sys; then
2205 ac_cv_use_regex='wxUSE_REGEX=sys'
4f14bcd8
GD
2206 elif test "$withval" = builtin; then
2207 ac_cv_use_regex='wxUSE_REGEX=builtin'
3e44f09d 2208 else
4f14bcd8 2209 { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; }
3e44f09d
VZ
2210 fi
2211
2212else
2213
2214 LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
2215 if test "x$LINE" != x ; then
2216 eval "DEFAULT_$LINE"
2217 else
2218 no_cache=1
2219 fi
2220
2221 ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
2222
2223fi
2224
2225
2226 eval "$ac_cv_use_regex"
2227 if test "$no_cache" != 1; then
2228 echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
2229 fi
2230
2231 if test "$wxUSE_REGEX" = yes; then
2232 echo "$ac_t""yes" 1>&6
2233 elif test "$wxUSE_REGEX" = no; then
2234 echo "$ac_t""no" 1>&6
2235 elif test "$wxUSE_REGEX" = sys; then
2236 echo "$ac_t""system version" 1>&6
4f14bcd8
GD
2237 elif test "$wxUSE_REGEX" = builtin; then
2238 echo "$ac_t""builtin version" 1>&6
3e44f09d 2239 else
4f14bcd8 2240 { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; }
3e44f09d
VZ
2241 fi
2242
2243
698dcdb6 2244 echo $ac_n "checking for --with-zlib""... $ac_c" 1>&6
19bc6aad 2245echo "configure:2246: checking for --with-zlib" >&5
10f2d63a 2246 no_cache=0
698dcdb6 2247 # Check whether --with-zlib or --without-zlib was given.
b12915c1
VZ
2248if test "${with_zlib+set}" = set; then
2249 withval="$with_zlib"
698dcdb6 2250
10f2d63a 2251 if test "$withval" = yes; then
b12915c1 2252 ac_cv_use_zlib='wxUSE_ZLIB=yes'
422107f9 2253 elif test "$withval" = no; then
b12915c1 2254 ac_cv_use_zlib='wxUSE_ZLIB=no'
422107f9
VZ
2255 elif test "$withval" = sys; then
2256 ac_cv_use_zlib='wxUSE_ZLIB=sys'
4f14bcd8
GD
2257 elif test "$withval" = builtin; then
2258 ac_cv_use_zlib='wxUSE_ZLIB=builtin'
422107f9 2259 else
4f14bcd8 2260 { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 2261 fi
698dcdb6 2262
10f2d63a 2263else
698dcdb6 2264
b12915c1 2265 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
10f2d63a
VZ
2266 if test "x$LINE" != x ; then
2267 eval "DEFAULT_$LINE"
2268 else
2269 no_cache=1
2270 fi
2271
b12915c1 2272 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
698dcdb6
VZ
2273
2274fi
10f2d63a
VZ
2275
2276
b12915c1 2277 eval "$ac_cv_use_zlib"
10f2d63a 2278 if test "$no_cache" != 1; then
b12915c1 2279 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2280 fi
2281
b12915c1 2282 if test "$wxUSE_ZLIB" = yes; then
698dcdb6 2283 echo "$ac_t""yes" 1>&6
422107f9 2284 elif test "$wxUSE_ZLIB" = no; then
698dcdb6 2285 echo "$ac_t""no" 1>&6
422107f9 2286 elif test "$wxUSE_ZLIB" = sys; then
698dcdb6 2287 echo "$ac_t""system version" 1>&6
4f14bcd8
GD
2288 elif test "$wxUSE_ZLIB" = builtin; then
2289 echo "$ac_t""builtin version" 1>&6
422107f9 2290 else
4f14bcd8 2291 { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 2292 fi
698dcdb6 2293
10f2d63a 2294
698dcdb6 2295 echo $ac_n "checking for --with-odbc""... $ac_c" 1>&6
19bc6aad 2296echo "configure:2297: checking for --with-odbc" >&5
10f2d63a 2297 no_cache=0
698dcdb6 2298 # Check whether --with-odbc or --without-odbc was given.
10f2d63a
VZ
2299if test "${with_odbc+set}" = set; then
2300 withval="$with_odbc"
698dcdb6 2301
10f2d63a
VZ
2302 if test "$withval" = yes; then
2303 ac_cv_use_odbc='wxUSE_ODBC=yes'
2304 else
2305 ac_cv_use_odbc='wxUSE_ODBC=no'
2306 fi
698dcdb6 2307
10f2d63a 2308else
698dcdb6 2309
10f2d63a
VZ
2310 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
2311 if test "x$LINE" != x ; then
2312 eval "DEFAULT_$LINE"
2313 else
2314 no_cache=1
2315 fi
2316
2317 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
698dcdb6
VZ
2318
2319fi
10f2d63a
VZ
2320
2321
2322 eval "$ac_cv_use_odbc"
2323 if test "$no_cache" != 1; then
2324 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
2325 fi
2326
2327 if test "$wxUSE_ODBC" = yes; then
698dcdb6 2328 echo "$ac_t""yes" 1>&6
10f2d63a 2329 else
698dcdb6 2330 echo "$ac_t""no" 1>&6
10f2d63a 2331 fi
698dcdb6
VZ
2332
2333
10f2d63a 2334
698dcdb6 2335
698dcdb6 2336 echo $ac_n "checking for --enable-shared""... $ac_c" 1>&6
19bc6aad 2337echo "configure:2338: checking for --enable-shared" >&5
10f2d63a
VZ
2338 no_cache=0
2339 # Check whether --enable-shared or --disable-shared was given.
2340if test "${enable_shared+set}" = set; then
2341 enableval="$enable_shared"
698dcdb6 2342
10f2d63a
VZ
2343 if test "$enableval" = yes; then
2344 ac_cv_use_shared='wxUSE_SHARED=yes'
2345 else
2346 ac_cv_use_shared='wxUSE_SHARED=no'
2347 fi
698dcdb6 2348
10f2d63a 2349else
698dcdb6 2350
10f2d63a
VZ
2351 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
2352 if test "x$LINE" != x ; then
2353 eval "DEFAULT_$LINE"
2354 else
2355 no_cache=1
2356 fi
2357
2358 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
698dcdb6
VZ
2359
2360fi
10f2d63a
VZ
2361
2362
2363 eval "$ac_cv_use_shared"
2364 if test "$no_cache" != 1; then
2365 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
2366 fi
2367
2368 if test "$wxUSE_SHARED" = yes; then
698dcdb6 2369 echo "$ac_t""yes" 1>&6
10f2d63a 2370 else
698dcdb6 2371 echo "$ac_t""no" 1>&6
10f2d63a 2372 fi
698dcdb6 2373
10f2d63a 2374
3a922bb4 2375 echo $ac_n "checking for --enable-soname""... $ac_c" 1>&6
19bc6aad 2376echo "configure:2377: checking for --enable-soname" >&5
00cf1208 2377 no_cache=0
3a922bb4
RL
2378 # Check whether --enable-soname or --disable-soname was given.
2379if test "${enable_soname+set}" = set; then
2380 enableval="$enable_soname"
698dcdb6 2381
00cf1208 2382 if test "$enableval" = yes; then
3a922bb4 2383 ac_cv_use_soname='wxUSE_SONAME=yes'
00cf1208 2384 else
3a922bb4 2385 ac_cv_use_soname='wxUSE_SONAME=no'
00cf1208 2386 fi
698dcdb6 2387
00cf1208 2388else
698dcdb6 2389
3a922bb4 2390 LINE=`grep "wxUSE_SONAME" ${wx_arg_cache_file}`
00cf1208
RR
2391 if test "x$LINE" != x ; then
2392 eval "DEFAULT_$LINE"
2393 else
2394 no_cache=1
2395 fi
2396
3a922bb4 2397 ac_cv_use_soname='wxUSE_SONAME='$DEFAULT_wxUSE_SONAME
698dcdb6
VZ
2398
2399fi
00cf1208
RR
2400
2401
3a922bb4 2402 eval "$ac_cv_use_soname"
00cf1208 2403 if test "$no_cache" != 1; then
3a922bb4 2404 echo $ac_cv_use_soname >> ${wx_arg_cache_file}.tmp
00cf1208
RR
2405 fi
2406
3a922bb4 2407 if test "$wxUSE_SONAME" = yes; then
698dcdb6 2408 echo "$ac_t""yes" 1>&6
00cf1208 2409 else
698dcdb6 2410 echo "$ac_t""no" 1>&6
00cf1208 2411 fi
698dcdb6 2412
00cf1208 2413
698dcdb6 2414 echo $ac_n "checking for --enable-optimise""... $ac_c" 1>&6
19bc6aad 2415echo "configure:2416: checking for --enable-optimise" >&5
10f2d63a
VZ
2416 no_cache=0
2417 # Check whether --enable-optimise or --disable-optimise was given.
2418if test "${enable_optimise+set}" = set; then
2419 enableval="$enable_optimise"
698dcdb6 2420
10f2d63a
VZ
2421 if test "$enableval" = yes; then
2422 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
2423 else
2424 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
2425 fi
698dcdb6 2426
10f2d63a 2427else
698dcdb6 2428
10f2d63a
VZ
2429 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
2430 if test "x$LINE" != x ; then
2431 eval "DEFAULT_$LINE"
2432 else
2433 no_cache=1
2434 fi
2435
2436 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
698dcdb6
VZ
2437
2438fi
10f2d63a
VZ
2439
2440
2441 eval "$ac_cv_use_optimise"
2442 if test "$no_cache" != 1; then
2443 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
2444 fi
2445
2446 if test "$wxUSE_OPTIMISE" = yes; then
698dcdb6 2447 echo "$ac_t""yes" 1>&6
10f2d63a 2448 else
698dcdb6 2449 echo "$ac_t""no" 1>&6
10f2d63a 2450 fi
698dcdb6 2451
10f2d63a 2452
698dcdb6 2453 echo $ac_n "checking for --enable-debug""... $ac_c" 1>&6
19bc6aad 2454echo "configure:2455: checking for --enable-debug" >&5
10f2d63a
VZ
2455 no_cache=0
2456 # Check whether --enable-debug or --disable-debug was given.
2457if test "${enable_debug+set}" = set; then
2458 enableval="$enable_debug"
698dcdb6 2459
10f2d63a
VZ
2460 if test "$enableval" = yes; then
2461 ac_cv_use_debug='wxUSE_DEBUG=yes'
2462 else
2463 ac_cv_use_debug='wxUSE_DEBUG=no'
2464 fi
698dcdb6 2465
10f2d63a 2466else
698dcdb6 2467
10f2d63a
VZ
2468 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
2469 if test "x$LINE" != x ; then
2470 eval "DEFAULT_$LINE"
2471 else
2472 no_cache=1
2473 fi
2474
2475 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
698dcdb6
VZ
2476
2477fi
10f2d63a
VZ
2478
2479
2480 eval "$ac_cv_use_debug"
2481 if test "$no_cache" != 1; then
2482 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
2483 fi
2484
2485 if test "$wxUSE_DEBUG" = yes; then
698dcdb6 2486 echo "$ac_t""yes" 1>&6
10f2d63a 2487 else
698dcdb6 2488 echo "$ac_t""no" 1>&6
10f2d63a 2489 fi
698dcdb6 2490
10f2d63a 2491
683dccda
GD
2492
2493 echo $ac_n "checking for --enable-precomp""... $ac_c" 1>&6
19bc6aad 2494echo "configure:2495: checking for --enable-precomp" >&5
683dccda
GD
2495 no_cache=0
2496 # Check whether --enable-precomp or --disable-precomp was given.
2497if test "${enable_precomp+set}" = set; then
2498 enableval="$enable_precomp"
2499
2500 if test "$enableval" = yes; then
2501 ac_cv_use_precomp='wxUSE_PRECOMP=yes'
2502 else
2503 ac_cv_use_precomp='wxUSE_PRECOMP=no'
2504 fi
2505
2506else
2507
2508 LINE=`grep "wxUSE_PRECOMP" ${wx_arg_cache_file}`
2509 if test "x$LINE" != x ; then
2510 eval "DEFAULT_$LINE"
2511 else
2512 no_cache=1
2513 fi
2514
2515 ac_cv_use_precomp='wxUSE_PRECOMP='$DEFAULT_wxUSE_PRECOMP
2516
2517fi
2518
2519
2520 eval "$ac_cv_use_precomp"
2521 if test "$no_cache" != 1; then
2522 echo $ac_cv_use_precomp >> ${wx_arg_cache_file}.tmp
2523 fi
2524
2525 if test "$wxUSE_PRECOMP" = yes; then
2526 echo "$ac_t""yes" 1>&6
2527 else
2528 echo "$ac_t""no" 1>&6
2529 fi
2530
2531
10f2d63a
VZ
2532if test "$wxUSE_DEBUG" = "yes"; then
2533 DEFAULT_wxUSE_DEBUG_FLAG=yes
2534 DEFAULT_wxUSE_DEBUG_INFO=yes
2535elif test "$wxUSE_DEBUG" = "no"; then
2536 DEFAULT_wxUSE_DEBUG_FLAG=no
2537 DEFAULT_wxUSE_DEBUG_INFO=no
2538fi
2539
698dcdb6
VZ
2540
2541 echo $ac_n "checking for --enable-debug_flag""... $ac_c" 1>&6
19bc6aad 2542echo "configure:2543: checking for --enable-debug_flag" >&5
10f2d63a
VZ
2543 no_cache=0
2544 # Check whether --enable-debug_flag or --disable-debug_flag was given.
2545if test "${enable_debug_flag+set}" = set; then
2546 enableval="$enable_debug_flag"
698dcdb6 2547
10f2d63a
VZ
2548 if test "$enableval" = yes; then
2549 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
2550 else
2551 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
2552 fi
698dcdb6 2553
10f2d63a 2554else
698dcdb6 2555
10f2d63a
VZ
2556 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
2557 if test "x$LINE" != x ; then
2558 eval "DEFAULT_$LINE"
2559 else
2560 no_cache=1
2561 fi
2562
2563 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
698dcdb6
VZ
2564
2565fi
10f2d63a
VZ
2566
2567
2568 eval "$ac_cv_use_debug_flag"
2569 if test "$no_cache" != 1; then
2570 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
2571 fi
2572
2573 if test "$wxUSE_DEBUG_FLAG" = yes; then
698dcdb6 2574 echo "$ac_t""yes" 1>&6
10f2d63a 2575 else
698dcdb6 2576 echo "$ac_t""no" 1>&6
10f2d63a 2577 fi
698dcdb6 2578
10f2d63a 2579
698dcdb6 2580 echo $ac_n "checking for --enable-debug_info""... $ac_c" 1>&6
19bc6aad 2581echo "configure:2582: checking for --enable-debug_info" >&5
10f2d63a
VZ
2582 no_cache=0
2583 # Check whether --enable-debug_info or --disable-debug_info was given.
2584if test "${enable_debug_info+set}" = set; then
2585 enableval="$enable_debug_info"
698dcdb6 2586
10f2d63a
VZ
2587 if test "$enableval" = yes; then
2588 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
2589 else
2590 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
2591 fi
698dcdb6 2592
10f2d63a 2593else
698dcdb6 2594
10f2d63a
VZ
2595 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
2596 if test "x$LINE" != x ; then
2597 eval "DEFAULT_$LINE"
2598 else
2599 no_cache=1
2600 fi
2601
2602 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
698dcdb6
VZ
2603
2604fi
10f2d63a
VZ
2605
2606
2607 eval "$ac_cv_use_debug_info"
2608 if test "$no_cache" != 1; then
2609 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
2610 fi
2611
2612 if test "$wxUSE_DEBUG_INFO" = yes; then
698dcdb6 2613 echo "$ac_t""yes" 1>&6
10f2d63a 2614 else
698dcdb6 2615 echo "$ac_t""no" 1>&6
10f2d63a 2616 fi
698dcdb6 2617
10f2d63a 2618
698dcdb6 2619 echo $ac_n "checking for --enable-debug_gdb""... $ac_c" 1>&6
19bc6aad 2620echo "configure:2621: checking for --enable-debug_gdb" >&5
10f2d63a
VZ
2621 no_cache=0
2622 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
2623if test "${enable_debug_gdb+set}" = set; then
2624 enableval="$enable_debug_gdb"
698dcdb6 2625
10f2d63a
VZ
2626 if test "$enableval" = yes; then
2627 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
2628 else
2629 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
2630 fi
698dcdb6 2631
10f2d63a 2632else
698dcdb6 2633
10f2d63a
VZ
2634 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
2635 if test "x$LINE" != x ; then
2636 eval "DEFAULT_$LINE"
2637 else
2638 no_cache=1
2639 fi
2640
2641 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
698dcdb6
VZ
2642
2643fi
10f2d63a
VZ
2644
2645
2646 eval "$ac_cv_use_debug_gdb"
2647 if test "$no_cache" != 1; then
2648 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
2649 fi
2650
2651 if test "$wxUSE_DEBUG_GDB" = yes; then
698dcdb6 2652 echo "$ac_t""yes" 1>&6
10f2d63a 2653 else
698dcdb6 2654 echo "$ac_t""no" 1>&6
10f2d63a 2655 fi
698dcdb6 2656
10f2d63a 2657
698dcdb6 2658 echo $ac_n "checking for --enable-debug_cntxt""... $ac_c" 1>&6
19bc6aad 2659echo "configure:2660: checking for --enable-debug_cntxt" >&5
10f2d63a
VZ
2660 no_cache=0
2661 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
2662if test "${enable_debug_cntxt+set}" = set; then
2663 enableval="$enable_debug_cntxt"
698dcdb6 2664
10f2d63a
VZ
2665 if test "$enableval" = yes; then
2666 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
2667 else
2668 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
2669 fi
698dcdb6 2670
10f2d63a 2671else
698dcdb6 2672
10f2d63a
VZ
2673 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
2674 if test "x$LINE" != x ; then
2675 eval "DEFAULT_$LINE"
2676 else
2677 no_cache=1
2678 fi
2679
2680 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
698dcdb6
VZ
2681
2682fi
10f2d63a
VZ
2683
2684
2685 eval "$ac_cv_use_debug_cntxt"
2686 if test "$no_cache" != 1; then
2687 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
2688 fi
2689
2690 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
698dcdb6 2691 echo "$ac_t""yes" 1>&6
10f2d63a 2692 else
698dcdb6 2693 echo "$ac_t""no" 1>&6
10f2d63a 2694 fi
698dcdb6 2695
10f2d63a 2696
698dcdb6 2697 echo $ac_n "checking for --enable-mem_tracing""... $ac_c" 1>&6
19bc6aad 2698echo "configure:2699: checking for --enable-mem_tracing" >&5
10f2d63a
VZ
2699 no_cache=0
2700 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
2701if test "${enable_mem_tracing+set}" = set; then
2702 enableval="$enable_mem_tracing"
698dcdb6 2703
10f2d63a
VZ
2704 if test "$enableval" = yes; then
2705 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
2706 else
2707 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
2708 fi
698dcdb6 2709
10f2d63a 2710else
698dcdb6 2711
10f2d63a
VZ
2712 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
2713 if test "x$LINE" != x ; then
2714 eval "DEFAULT_$LINE"
2715 else
2716 no_cache=1
2717 fi
2718
2719 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
698dcdb6
VZ
2720
2721fi
10f2d63a
VZ
2722
2723
2724 eval "$ac_cv_use_mem_tracing"
2725 if test "$no_cache" != 1; then
2726 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
2727 fi
2728
2729 if test "$wxUSE_MEM_TRACING" = yes; then
698dcdb6 2730 echo "$ac_t""yes" 1>&6
10f2d63a 2731 else
698dcdb6 2732 echo "$ac_t""no" 1>&6
10f2d63a 2733 fi
698dcdb6 2734
10f2d63a 2735
698dcdb6 2736 echo $ac_n "checking for --enable-profile""... $ac_c" 1>&6
19bc6aad 2737echo "configure:2738: checking for --enable-profile" >&5
10f2d63a
VZ
2738 no_cache=0
2739 # Check whether --enable-profile or --disable-profile was given.
2740if test "${enable_profile+set}" = set; then
2741 enableval="$enable_profile"
698dcdb6 2742
10f2d63a
VZ
2743 if test "$enableval" = yes; then
2744 ac_cv_use_profile='wxUSE_PROFILE=yes'
2745 else
2746 ac_cv_use_profile='wxUSE_PROFILE=no'
2747 fi
698dcdb6 2748
10f2d63a 2749else
698dcdb6 2750
10f2d63a
VZ
2751 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
2752 if test "x$LINE" != x ; then
2753 eval "DEFAULT_$LINE"
2754 else
2755 no_cache=1
2756 fi
2757
2758 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
698dcdb6
VZ
2759
2760fi
10f2d63a
VZ
2761
2762
2763 eval "$ac_cv_use_profile"
2764 if test "$no_cache" != 1; then
2765 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
2766 fi
2767
2768 if test "$wxUSE_PROFILE" = yes; then
698dcdb6 2769 echo "$ac_t""yes" 1>&6
10f2d63a 2770 else
698dcdb6 2771 echo "$ac_t""no" 1>&6
10f2d63a 2772 fi
698dcdb6 2773
10f2d63a 2774
698dcdb6 2775 echo $ac_n "checking for --enable-no_rtti""... $ac_c" 1>&6
19bc6aad 2776echo "configure:2777: checking for --enable-no_rtti" >&5
10f2d63a
VZ
2777 no_cache=0
2778 # Check whether --enable-no_rtti or --disable-no_rtti was given.
2779if test "${enable_no_rtti+set}" = set; then
2780 enableval="$enable_no_rtti"
698dcdb6 2781
10f2d63a
VZ
2782 if test "$enableval" = yes; then
2783 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
2784 else
2785 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
2786 fi
698dcdb6 2787
10f2d63a 2788else
698dcdb6 2789
10f2d63a
VZ
2790 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
2791 if test "x$LINE" != x ; then
2792 eval "DEFAULT_$LINE"
2793 else
2794 no_cache=1
2795 fi
2796
2797 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
698dcdb6
VZ
2798
2799fi
10f2d63a
VZ
2800
2801
2802 eval "$ac_cv_use_no_rtti"
2803 if test "$no_cache" != 1; then
2804 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
2805 fi
2806
2807 if test "$wxUSE_NO_RTTI" = yes; then
698dcdb6 2808 echo "$ac_t""yes" 1>&6
10f2d63a 2809 else
698dcdb6 2810 echo "$ac_t""no" 1>&6
10f2d63a 2811 fi
698dcdb6 2812
10f2d63a 2813
698dcdb6 2814 echo $ac_n "checking for --enable-no_exceptions""... $ac_c" 1>&6
19bc6aad 2815echo "configure:2816: checking for --enable-no_exceptions" >&5
10f2d63a
VZ
2816 no_cache=0
2817 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
2818if test "${enable_no_exceptions+set}" = set; then
2819 enableval="$enable_no_exceptions"
698dcdb6 2820
10f2d63a
VZ
2821 if test "$enableval" = yes; then
2822 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
2823 else
2824 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
2825 fi
698dcdb6 2826
10f2d63a 2827else
698dcdb6 2828
10f2d63a
VZ
2829 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
2830 if test "x$LINE" != x ; then
2831 eval "DEFAULT_$LINE"
2832 else
2833 no_cache=1
2834 fi
2835
2836 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
698dcdb6
VZ
2837
2838fi
10f2d63a
VZ
2839
2840
2841 eval "$ac_cv_use_no_exceptions"
2842 if test "$no_cache" != 1; then
2843 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
2844 fi
2845
2846 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
698dcdb6 2847 echo "$ac_t""yes" 1>&6
10f2d63a 2848 else
698dcdb6 2849 echo "$ac_t""no" 1>&6
10f2d63a 2850 fi
698dcdb6 2851
10f2d63a 2852
698dcdb6 2853 echo $ac_n "checking for --enable-permissive""... $ac_c" 1>&6
19bc6aad 2854echo "configure:2855: checking for --enable-permissive" >&5
10f2d63a
VZ
2855 no_cache=0
2856 # Check whether --enable-permissive or --disable-permissive was given.
2857if test "${enable_permissive+set}" = set; then
2858 enableval="$enable_permissive"
698dcdb6 2859
10f2d63a
VZ
2860 if test "$enableval" = yes; then
2861 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
2862 else
2863 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
2864 fi
698dcdb6 2865
10f2d63a 2866else
698dcdb6 2867
10f2d63a
VZ
2868 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
2869 if test "x$LINE" != x ; then
2870 eval "DEFAULT_$LINE"
2871 else
2872 no_cache=1
2873 fi
2874
2875 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
698dcdb6
VZ
2876
2877fi
10f2d63a
VZ
2878
2879
2880 eval "$ac_cv_use_permissive"
2881 if test "$no_cache" != 1; then
2882 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
2883 fi
2884
2885 if test "$wxUSE_PERMISSIVE" = yes; then
698dcdb6 2886 echo "$ac_t""yes" 1>&6
10f2d63a 2887 else
698dcdb6 2888 echo "$ac_t""no" 1>&6
10f2d63a 2889 fi
698dcdb6 2890
10f2d63a 2891
698dcdb6 2892 echo $ac_n "checking for --enable-no_deps""... $ac_c" 1>&6
19bc6aad 2893echo "configure:2894: checking for --enable-no_deps" >&5
10f2d63a
VZ
2894 no_cache=0
2895 # Check whether --enable-no_deps or --disable-no_deps was given.
2896if test "${enable_no_deps+set}" = set; then
2897 enableval="$enable_no_deps"
698dcdb6 2898
10f2d63a
VZ
2899 if test "$enableval" = yes; then
2900 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
2901 else
2902 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
2903 fi
698dcdb6 2904
10f2d63a 2905else
698dcdb6 2906
10f2d63a
VZ
2907 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
2908 if test "x$LINE" != x ; then
2909 eval "DEFAULT_$LINE"
2910 else
2911 no_cache=1
2912 fi
2913
2914 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
698dcdb6
VZ
2915
2916fi
10f2d63a
VZ
2917
2918
2919 eval "$ac_cv_use_no_deps"
2920 if test "$no_cache" != 1; then
2921 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
2922 fi
2923
2924 if test "$wxUSE_NO_DEPS" = yes; then
698dcdb6 2925 echo "$ac_t""yes" 1>&6
10f2d63a 2926 else
698dcdb6 2927 echo "$ac_t""no" 1>&6
10f2d63a 2928 fi
698dcdb6
VZ
2929
2930
10f2d63a 2931
54276ccf 2932 echo $ac_n "checking for --enable-compat20""... $ac_c" 1>&6
19bc6aad 2933echo "configure:2934: checking for --enable-compat20" >&5
54276ccf
VZ
2934 no_cache=0
2935 # Check whether --enable-compat20 or --disable-compat20 was given.
2936if test "${enable_compat20+set}" = set; then
2937 enableval="$enable_compat20"
2938
2939 if test "$enableval" = yes; then
2940 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=yes'
2941 else
2942 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=no'
2943 fi
2944
2945else
2946
2947 LINE=`grep "WXWIN_COMPATIBILITY_2" ${wx_arg_cache_file}`
2948 if test "x$LINE" != x ; then
2949 eval "DEFAULT_$LINE"
2950 else
2951 no_cache=1
2952 fi
2953
2954 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2='$DEFAULT_WXWIN_COMPATIBILITY_2
2955
2956fi
2957
2958
2959 eval "$ac_cv_use_compat20"
2960 if test "$no_cache" != 1; then
2961 echo $ac_cv_use_compat20 >> ${wx_arg_cache_file}.tmp
2962 fi
2963
2964 if test "$WXWIN_COMPATIBILITY_2" = yes; then
2965 echo "$ac_t""yes" 1>&6
2966 else
2967 echo "$ac_t""no" 1>&6
2968 fi
2969
2970
2971 echo $ac_n "checking for --enable-compat22""... $ac_c" 1>&6
19bc6aad 2972echo "configure:2973: checking for --enable-compat22" >&5
54276ccf
VZ
2973 no_cache=0
2974 # Check whether --enable-compat22 or --disable-compat22 was given.
2975if test "${enable_compat22+set}" = set; then
2976 enableval="$enable_compat22"
2977
2978 if test "$enableval" = yes; then
2979 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes'
2980 else
2981 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no'
2982 fi
2983
2984else
2985
2986 LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}`
2987 if test "x$LINE" != x ; then
2988 eval "DEFAULT_$LINE"
2989 else
2990 no_cache=1
2991 fi
2992
2993 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2
2994
2995fi
2996
2997
2998 eval "$ac_cv_use_compat22"
2999 if test "$no_cache" != 1; then
3000 echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp
3001 fi
3002
3003 if test "$WXWIN_COMPATIBILITY_2_2" = yes; then
3004 echo "$ac_t""yes" 1>&6
3005 else
3006 echo "$ac_t""no" 1>&6
3007 fi
3008
3009
3010
698dcdb6
VZ
3011
3012 echo $ac_n "checking for --enable-intl""... $ac_c" 1>&6
19bc6aad 3013echo "configure:3014: checking for --enable-intl" >&5
10f2d63a
VZ
3014 no_cache=0
3015 # Check whether --enable-intl or --disable-intl was given.
3016if test "${enable_intl+set}" = set; then
3017 enableval="$enable_intl"
698dcdb6 3018
10f2d63a
VZ
3019 if test "$enableval" = yes; then
3020 ac_cv_use_intl='wxUSE_INTL=yes'
3021 else
3022 ac_cv_use_intl='wxUSE_INTL=no'
3023 fi
698dcdb6 3024
10f2d63a 3025else
698dcdb6 3026
10f2d63a
VZ
3027 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
3028 if test "x$LINE" != x ; then
3029 eval "DEFAULT_$LINE"
3030 else
3031 no_cache=1
3032 fi
3033
3034 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
698dcdb6
VZ
3035
3036fi
10f2d63a
VZ
3037
3038
3039 eval "$ac_cv_use_intl"
3040 if test "$no_cache" != 1; then
3041 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
3042 fi
3043
3044 if test "$wxUSE_INTL" = yes; then
698dcdb6 3045 echo "$ac_t""yes" 1>&6
10f2d63a 3046 else
698dcdb6 3047 echo "$ac_t""no" 1>&6
10f2d63a 3048 fi
698dcdb6 3049
10f2d63a 3050
698dcdb6 3051 echo $ac_n "checking for --enable-config""... $ac_c" 1>&6
19bc6aad 3052echo "configure:3053: checking for --enable-config" >&5
10f2d63a
VZ
3053 no_cache=0
3054 # Check whether --enable-config or --disable-config was given.
3055if test "${enable_config+set}" = set; then
3056 enableval="$enable_config"
698dcdb6 3057
10f2d63a
VZ
3058 if test "$enableval" = yes; then
3059 ac_cv_use_config='wxUSE_CONFIG=yes'
3060 else
3061 ac_cv_use_config='wxUSE_CONFIG=no'
3062 fi
698dcdb6 3063
10f2d63a 3064else
698dcdb6 3065
10f2d63a
VZ
3066 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
3067 if test "x$LINE" != x ; then
3068 eval "DEFAULT_$LINE"
3069 else
3070 no_cache=1
3071 fi
3072
3073 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
698dcdb6
VZ
3074
3075fi
10f2d63a
VZ
3076
3077
3078 eval "$ac_cv_use_config"
3079 if test "$no_cache" != 1; then
3080 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
3081 fi
3082
3083 if test "$wxUSE_CONFIG" = yes; then
698dcdb6 3084 echo "$ac_t""yes" 1>&6
10f2d63a 3085 else
698dcdb6 3086 echo "$ac_t""no" 1>&6
10f2d63a 3087 fi
698dcdb6
VZ
3088
3089
b12915c1 3090
a1622950 3091 echo $ac_n "checking for --enable-protocols""... $ac_c" 1>&6
19bc6aad 3092echo "configure:3093: checking for --enable-protocols" >&5
a1622950
VZ
3093 no_cache=0
3094 # Check whether --enable-protocols or --disable-protocols was given.
3095if test "${enable_protocols+set}" = set; then
3096 enableval="$enable_protocols"
3097
3098 if test "$enableval" = yes; then
3099 ac_cv_use_protocols='wxUSE_PROTOCOL=yes'
3100 else
3101 ac_cv_use_protocols='wxUSE_PROTOCOL=no'
3102 fi
3103
3104else
3105
3106 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
3107 if test "x$LINE" != x ; then
3108 eval "DEFAULT_$LINE"
3109 else
3110 no_cache=1
3111 fi
3112
3113 ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
3114
3115fi
3116
3117
3118 eval "$ac_cv_use_protocols"
3119 if test "$no_cache" != 1; then
3120 echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp
3121 fi
3122
3123 if test "$wxUSE_PROTOCOL" = yes; then
3124 echo "$ac_t""yes" 1>&6
3125 else
3126 echo "$ac_t""no" 1>&6
3127 fi
3128
3129
3130 echo $ac_n "checking for --enable-ftp""... $ac_c" 1>&6
19bc6aad 3131echo "configure:3132: checking for --enable-ftp" >&5
a1622950
VZ
3132 no_cache=0
3133 # Check whether --enable-ftp or --disable-ftp was given.
3134if test "${enable_ftp+set}" = set; then
3135 enableval="$enable_ftp"
3136
3137 if test "$enableval" = yes; then
3138 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
3139 else
3140 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
3141 fi
3142
3143else
3144
3145 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
3146 if test "x$LINE" != x ; then
3147 eval "DEFAULT_$LINE"
3148 else
3149 no_cache=1
3150 fi
3151
3152 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
3153
3154fi
3155
3156
3157 eval "$ac_cv_use_ftp"
3158 if test "$no_cache" != 1; then
3159 echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp
3160 fi
3161
3162 if test "$wxUSE_PROTOCOL_FTP" = yes; then
3163 echo "$ac_t""yes" 1>&6
3164 else
3165 echo "$ac_t""no" 1>&6
3166 fi
3167
3168
3169 echo $ac_n "checking for --enable-http""... $ac_c" 1>&6
19bc6aad 3170echo "configure:3171: checking for --enable-http" >&5
a1622950
VZ
3171 no_cache=0
3172 # Check whether --enable-http or --disable-http was given.
3173if test "${enable_http+set}" = set; then
3174 enableval="$enable_http"
3175
3176 if test "$enableval" = yes; then
3177 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
3178 else
3179 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
3180 fi
3181
3182else
3183
3184 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
3185 if test "x$LINE" != x ; then
3186 eval "DEFAULT_$LINE"
3187 else
3188 no_cache=1
3189 fi
3190
3191 ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
3192
3193fi
3194
3195
3196 eval "$ac_cv_use_http"
3197 if test "$no_cache" != 1; then
3198 echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp
3199 fi
3200
3201 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
3202 echo "$ac_t""yes" 1>&6
3203 else
3204 echo "$ac_t""no" 1>&6
3205 fi
3206
3207
3208 echo $ac_n "checking for --enable-fileproto""... $ac_c" 1>&6
19bc6aad 3209echo "configure:3210: checking for --enable-fileproto" >&5
a1622950
VZ
3210 no_cache=0
3211 # Check whether --enable-fileproto or --disable-fileproto was given.
3212if test "${enable_fileproto+set}" = set; then
3213 enableval="$enable_fileproto"
3214
3215 if test "$enableval" = yes; then
3216 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
3217 else
3218 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
3219 fi
3220
3221else
3222
3223 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
3224 if test "x$LINE" != x ; then
3225 eval "DEFAULT_$LINE"
3226 else
3227 no_cache=1
3228 fi
3229
3230 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
3231
3232fi
3233
3234
3235 eval "$ac_cv_use_fileproto"
3236 if test "$no_cache" != 1; then
3237 echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp
3238 fi
3239
3240 if test "$wxUSE_PROTOCOL_FILE" = yes; then
3241 echo "$ac_t""yes" 1>&6
3242 else
3243 echo "$ac_t""no" 1>&6
3244 fi
3245
3246
698dcdb6 3247 echo $ac_n "checking for --enable-sockets""... $ac_c" 1>&6
19bc6aad 3248echo "configure:3249: checking for --enable-sockets" >&5
10f2d63a
VZ
3249 no_cache=0
3250 # Check whether --enable-sockets or --disable-sockets was given.
3251if test "${enable_sockets+set}" = set; then
3252 enableval="$enable_sockets"
698dcdb6 3253
10f2d63a
VZ
3254 if test "$enableval" = yes; then
3255 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
3256 else
3257 ac_cv_use_sockets='wxUSE_SOCKETS=no'
3258 fi
698dcdb6 3259
10f2d63a 3260else
698dcdb6 3261
10f2d63a
VZ
3262 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
3263 if test "x$LINE" != x ; then
3264 eval "DEFAULT_$LINE"
3265 else
3266 no_cache=1
3267 fi
3268
3269 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
698dcdb6
VZ
3270
3271fi
10f2d63a
VZ
3272
3273
3274 eval "$ac_cv_use_sockets"
3275 if test "$no_cache" != 1; then
3276 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
3277 fi
3278
3279 if test "$wxUSE_SOCKETS" = yes; then
698dcdb6 3280 echo "$ac_t""yes" 1>&6
10f2d63a 3281 else
698dcdb6 3282 echo "$ac_t""no" 1>&6
10f2d63a 3283 fi
698dcdb6 3284
b12915c1 3285
698dcdb6
VZ
3286
3287 echo $ac_n "checking for --enable-ipc""... $ac_c" 1>&6
19bc6aad 3288echo "configure:3289: checking for --enable-ipc" >&5
10f2d63a 3289 no_cache=0
eb4efbdc
VZ
3290 # Check whether --enable-ipc or --disable-ipc was given.
3291if test "${enable_ipc+set}" = set; then
3292 enableval="$enable_ipc"
698dcdb6 3293
10f2d63a 3294 if test "$enableval" = yes; then
eb4efbdc 3295 ac_cv_use_ipc='wxUSE_IPC=yes'
10f2d63a 3296 else
eb4efbdc 3297 ac_cv_use_ipc='wxUSE_IPC=no'
10f2d63a 3298 fi
698dcdb6 3299
10f2d63a 3300else
698dcdb6 3301
eb4efbdc 3302 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
10f2d63a
VZ
3303 if test "x$LINE" != x ; then
3304 eval "DEFAULT_$LINE"
3305 else
3306 no_cache=1
3307 fi
3308
eb4efbdc 3309 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
698dcdb6
VZ
3310
3311fi
10f2d63a
VZ
3312
3313
eb4efbdc 3314 eval "$ac_cv_use_ipc"
10f2d63a 3315 if test "$no_cache" != 1; then
eb4efbdc 3316 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
3317 fi
3318
eb4efbdc 3319 if test "$wxUSE_IPC" = yes; then
698dcdb6 3320 echo "$ac_t""yes" 1>&6
10f2d63a 3321 else
698dcdb6 3322 echo "$ac_t""no" 1>&6
10f2d63a 3323 fi
698dcdb6
VZ
3324
3325
eb4efbdc 3326
1e6feb95 3327 echo $ac_n "checking for --enable-cmdline""... $ac_c" 1>&6
19bc6aad 3328echo "configure:3329: checking for --enable-cmdline" >&5
1e6feb95
VZ
3329 no_cache=0
3330 # Check whether --enable-cmdline or --disable-cmdline was given.
3331if test "${enable_cmdline+set}" = set; then
3332 enableval="$enable_cmdline"
3333
3334 if test "$enableval" = yes; then
3335 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
3336 else
3337 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
3338 fi
3339
3340else
3341
3342 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
3343 if test "x$LINE" != x ; then
3344 eval "DEFAULT_$LINE"
3345 else
3346 no_cache=1
3347 fi
3348
3349 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
3350
3351fi
3352
3353
3354 eval "$ac_cv_use_cmdline"
3355 if test "$no_cache" != 1; then
3356 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
3357 fi
3358
3359 if test "$wxUSE_CMDLINE_PARSER" = yes; then
3360 echo "$ac_t""yes" 1>&6
3361 else
3362 echo "$ac_t""no" 1>&6
3363 fi
3364
3365
3366 echo $ac_n "checking for --enable-datetime""... $ac_c" 1>&6
19bc6aad 3367echo "configure:3368: checking for --enable-datetime" >&5
1e6feb95
VZ
3368 no_cache=0
3369 # Check whether --enable-datetime or --disable-datetime was given.
3370if test "${enable_datetime+set}" = set; then
3371 enableval="$enable_datetime"
3372
3373 if test "$enableval" = yes; then
3374 ac_cv_use_datetime='wxUSE_DATETIME=yes'
3375 else
3376 ac_cv_use_datetime='wxUSE_DATETIME=no'
3377 fi
3378
3379else
3380
3381 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
3382 if test "x$LINE" != x ; then
3383 eval "DEFAULT_$LINE"
3384 else
3385 no_cache=1
3386 fi
3387
3388 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
3389
3390fi
3391
3392
3393 eval "$ac_cv_use_datetime"
3394 if test "$no_cache" != 1; then
3395 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
3396 fi
3397
3398 if test "$wxUSE_DATETIME" = yes; then
3399 echo "$ac_t""yes" 1>&6
3400 else
3401 echo "$ac_t""no" 1>&6
3402 fi
3403
3404
3405 echo $ac_n "checking for --enable-timedate""... $ac_c" 1>&6
19bc6aad 3406echo "configure:3407: checking for --enable-timedate" >&5
1e6feb95
VZ
3407 no_cache=0
3408 # Check whether --enable-timedate or --disable-timedate was given.
3409if test "${enable_timedate+set}" = set; then
3410 enableval="$enable_timedate"
3411
3412 if test "$enableval" = yes; then
3413 ac_cv_use_timedate='wxUSE_TIMEDATE=yes'
3414 else
3415 ac_cv_use_timedate='wxUSE_TIMEDATE=no'
3416 fi
3417
3418else
3419
3420 LINE=`grep "wxUSE_TIMEDATE" ${wx_arg_cache_file}`
3421 if test "x$LINE" != x ; then
3422 eval "DEFAULT_$LINE"
3423 else
3424 no_cache=1
3425 fi
3426
3427 ac_cv_use_timedate='wxUSE_TIMEDATE='$DEFAULT_wxUSE_TIMEDATE
3428
3429fi
3430
3431
3432 eval "$ac_cv_use_timedate"
3433 if test "$no_cache" != 1; then
3434 echo $ac_cv_use_timedate >> ${wx_arg_cache_file}.tmp
3435 fi
3436
3437 if test "$wxUSE_TIMEDATE" = yes; then
3438 echo "$ac_t""yes" 1>&6
3439 else
3440 echo "$ac_t""no" 1>&6
3441 fi
3442
3443
3444 echo $ac_n "checking for --enable-stopwatch""... $ac_c" 1>&6
19bc6aad 3445echo "configure:3446: checking for --enable-stopwatch" >&5
1e6feb95
VZ
3446 no_cache=0
3447 # Check whether --enable-stopwatch or --disable-stopwatch was given.
3448if test "${enable_stopwatch+set}" = set; then
3449 enableval="$enable_stopwatch"
3450
3451 if test "$enableval" = yes; then
3452 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
3453 else
3454 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
3455 fi
3456
3457else
3458
3459 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
3460 if test "x$LINE" != x ; then
3461 eval "DEFAULT_$LINE"
3462 else
3463 no_cache=1
3464 fi
3465
3466 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
3467
3468fi
3469
3470
3471 eval "$ac_cv_use_stopwatch"
3472 if test "$no_cache" != 1; then
3473 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
3474 fi
3475
3476 if test "$wxUSE_STOPWATCH" = yes; then
3477 echo "$ac_t""yes" 1>&6
3478 else
3479 echo "$ac_t""no" 1>&6
3480 fi
3481
3482
698dcdb6 3483 echo $ac_n "checking for --enable-dialupman""... $ac_c" 1>&6
19bc6aad 3484echo "configure:3485: checking for --enable-dialupman" >&5
10f2d63a 3485 no_cache=0
eb4efbdc
VZ
3486 # Check whether --enable-dialupman or --disable-dialupman was given.
3487if test "${enable_dialupman+set}" = set; then
3488 enableval="$enable_dialupman"
698dcdb6 3489
10f2d63a 3490 if test "$enableval" = yes; then
eb4efbdc 3491 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
10f2d63a 3492 else
eb4efbdc 3493 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
10f2d63a 3494 fi
698dcdb6 3495
10f2d63a 3496else
698dcdb6 3497
eb4efbdc 3498 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
10f2d63a
VZ
3499 if test "x$LINE" != x ; then
3500 eval "DEFAULT_$LINE"
3501 else
3502 no_cache=1
3503 fi
3504
eb4efbdc 3505 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
698dcdb6
VZ
3506
3507fi
10f2d63a
VZ
3508
3509
eb4efbdc 3510 eval "$ac_cv_use_dialupman"
10f2d63a 3511 if test "$no_cache" != 1; then
eb4efbdc 3512 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
3513 fi
3514
eb4efbdc 3515 if test "$wxUSE_DIALUP_MANAGER" = yes; then
698dcdb6 3516 echo "$ac_t""yes" 1>&6
10f2d63a 3517 else
698dcdb6 3518 echo "$ac_t""no" 1>&6
10f2d63a 3519 fi
698dcdb6 3520
10f2d63a 3521
698dcdb6 3522 echo $ac_n "checking for --enable-apple_ieee""... $ac_c" 1>&6
19bc6aad 3523echo "configure:3524: checking for --enable-apple_ieee" >&5
10f2d63a
VZ
3524 no_cache=0
3525 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
3526if test "${enable_apple_ieee+set}" = set; then
3527 enableval="$enable_apple_ieee"
698dcdb6 3528
10f2d63a
VZ
3529 if test "$enableval" = yes; then
3530 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
3531 else
3532 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
3533 fi
698dcdb6 3534
10f2d63a 3535else
698dcdb6 3536
10f2d63a
VZ
3537 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
3538 if test "x$LINE" != x ; then
3539 eval "DEFAULT_$LINE"
3540 else
3541 no_cache=1
3542 fi
3543
3544 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
698dcdb6
VZ
3545
3546fi
10f2d63a
VZ
3547
3548
3549 eval "$ac_cv_use_apple_ieee"
3550 if test "$no_cache" != 1; then
3551 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
3552 fi
3553
3554 if test "$wxUSE_APPLE_IEEE" = yes; then
698dcdb6 3555 echo "$ac_t""yes" 1>&6
10f2d63a 3556 else
698dcdb6 3557 echo "$ac_t""no" 1>&6
10f2d63a 3558 fi
698dcdb6 3559
10f2d63a 3560
1e6feb95 3561 echo $ac_n "checking for --enable-timer""... $ac_c" 1>&6
19bc6aad 3562echo "configure:3563: checking for --enable-timer" >&5
10f2d63a 3563 no_cache=0
1e6feb95
VZ
3564 # Check whether --enable-timer or --disable-timer was given.
3565if test "${enable_timer+set}" = set; then
3566 enableval="$enable_timer"
698dcdb6 3567
10f2d63a 3568 if test "$enableval" = yes; then
1e6feb95 3569 ac_cv_use_timer='wxUSE_TIMER=yes'
10f2d63a 3570 else
1e6feb95 3571 ac_cv_use_timer='wxUSE_TIMER=no'
10f2d63a 3572 fi
698dcdb6 3573
10f2d63a 3574else
698dcdb6 3575
1e6feb95 3576 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
10f2d63a
VZ
3577 if test "x$LINE" != x ; then
3578 eval "DEFAULT_$LINE"
3579 else
3580 no_cache=1
3581 fi
3582
1e6feb95 3583 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
698dcdb6
VZ
3584
3585fi
10f2d63a
VZ
3586
3587
1e6feb95 3588 eval "$ac_cv_use_timer"
10f2d63a 3589 if test "$no_cache" != 1; then
1e6feb95 3590 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
3591 fi
3592
1e6feb95 3593 if test "$wxUSE_TIMER" = yes; then
698dcdb6 3594 echo "$ac_t""yes" 1>&6
10f2d63a 3595 else
698dcdb6 3596 echo "$ac_t""no" 1>&6
10f2d63a 3597 fi
698dcdb6 3598
10f2d63a 3599
698dcdb6 3600 echo $ac_n "checking for --enable-wave""... $ac_c" 1>&6
19bc6aad 3601echo "configure:3602: checking for --enable-wave" >&5
10f2d63a
VZ
3602 no_cache=0
3603 # Check whether --enable-wave or --disable-wave was given.
3604if test "${enable_wave+set}" = set; then
3605 enableval="$enable_wave"
698dcdb6 3606
10f2d63a
VZ
3607 if test "$enableval" = yes; then
3608 ac_cv_use_wave='wxUSE_WAVE=yes'
3609 else
3610 ac_cv_use_wave='wxUSE_WAVE=no'
3611 fi
698dcdb6 3612
10f2d63a 3613else
698dcdb6 3614
10f2d63a
VZ
3615 LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}`
3616 if test "x$LINE" != x ; then
3617 eval "DEFAULT_$LINE"
3618 else
3619 no_cache=1
3620 fi
3621
3622 ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE
698dcdb6
VZ
3623
3624fi
10f2d63a
VZ
3625
3626
3627 eval "$ac_cv_use_wave"
3628 if test "$no_cache" != 1; then
3629 echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp
3630 fi
3631
3632 if test "$wxUSE_WAVE" = yes; then
698dcdb6 3633 echo "$ac_t""yes" 1>&6
10f2d63a 3634 else
698dcdb6 3635 echo "$ac_t""no" 1>&6
10f2d63a 3636 fi
698dcdb6 3637
10f2d63a 3638
698dcdb6 3639 echo $ac_n "checking for --enable-fraction""... $ac_c" 1>&6
19bc6aad 3640echo "configure:3641: checking for --enable-fraction" >&5
10f2d63a
VZ
3641 no_cache=0
3642 # Check whether --enable-fraction or --disable-fraction was given.
3643if test "${enable_fraction+set}" = set; then
3644 enableval="$enable_fraction"
698dcdb6 3645
10f2d63a
VZ
3646 if test "$enableval" = yes; then
3647 ac_cv_use_fraction='wxUSE_FRACTION=yes'
3648 else
3649 ac_cv_use_fraction='wxUSE_FRACTION=no'
3650 fi
698dcdb6 3651
10f2d63a 3652else
698dcdb6 3653
10f2d63a
VZ
3654 LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}`
3655 if test "x$LINE" != x ; then
3656 eval "DEFAULT_$LINE"
3657 else
3658 no_cache=1
3659 fi
3660
3661 ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION
698dcdb6
VZ
3662
3663fi
10f2d63a
VZ
3664
3665
3666 eval "$ac_cv_use_fraction"
3667 if test "$no_cache" != 1; then
3668 echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp
3669 fi
3670
3671 if test "$wxUSE_FRACTION" = yes; then
698dcdb6 3672 echo "$ac_t""yes" 1>&6
10f2d63a 3673 else
698dcdb6 3674 echo "$ac_t""no" 1>&6
10f2d63a 3675 fi
698dcdb6 3676
10f2d63a 3677
698dcdb6 3678 echo $ac_n "checking for --enable-dynlib""... $ac_c" 1>&6
19bc6aad 3679echo "configure:3680: checking for --enable-dynlib" >&5
10f2d63a
VZ
3680 no_cache=0
3681 # Check whether --enable-dynlib or --disable-dynlib was given.
3682if test "${enable_dynlib+set}" = set; then
3683 enableval="$enable_dynlib"
698dcdb6 3684
10f2d63a
VZ
3685 if test "$enableval" = yes; then
3686 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
3687 else
3688 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
3689 fi
698dcdb6 3690
10f2d63a 3691else
698dcdb6 3692
10f2d63a
VZ
3693 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
3694 if test "x$LINE" != x ; then
3695 eval "DEFAULT_$LINE"
3696 else
3697 no_cache=1
3698 fi
3699
3700 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
698dcdb6
VZ
3701
3702fi
10f2d63a
VZ
3703
3704
3705 eval "$ac_cv_use_dynlib"
3706 if test "$no_cache" != 1; then
3707 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
3708 fi
3709
3710 if test "$wxUSE_DYNLIB_CLASS" = yes; then
698dcdb6 3711 echo "$ac_t""yes" 1>&6
10f2d63a 3712 else
698dcdb6 3713 echo "$ac_t""no" 1>&6
10f2d63a 3714 fi
698dcdb6 3715
10f2d63a 3716
0b9ab0bd 3717 echo $ac_n "checking for --enable-dynamicloader""... $ac_c" 1>&6
19bc6aad 3718echo "configure:3719: checking for --enable-dynamicloader" >&5
0b9ab0bd
RL
3719 no_cache=0
3720 # Check whether --enable-dynamicloader or --disable-dynamicloader was given.
3721if test "${enable_dynamicloader+set}" = set; then
3722 enableval="$enable_dynamicloader"
3723
3724 if test "$enableval" = yes; then
3725 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
3726 else
3727 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
3728 fi
3729
3730else
3731
3732 LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}`
3733 if test "x$LINE" != x ; then
3734 eval "DEFAULT_$LINE"
3735 else
3736 no_cache=1
3737 fi
3738
3739 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER
3740
3741fi
3742
3743
3744 eval "$ac_cv_use_dynamicloader"
3745 if test "$no_cache" != 1; then
3746 echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
3747 fi
3748
3749 if test "$wxUSE_DYNAMIC_LOADER" = yes; then
3750 echo "$ac_t""yes" 1>&6
3751 else
3752 echo "$ac_t""no" 1>&6
3753 fi
3754
3755
698dcdb6 3756 echo $ac_n "checking for --enable-longlong""... $ac_c" 1>&6
19bc6aad 3757echo "configure:3758: checking for --enable-longlong" >&5
10f2d63a
VZ
3758 no_cache=0
3759 # Check whether --enable-longlong or --disable-longlong was given.
3760if test "${enable_longlong+set}" = set; then
3761 enableval="$enable_longlong"
698dcdb6 3762
10f2d63a
VZ
3763 if test "$enableval" = yes; then
3764 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
3765 else
3766 ac_cv_use_longlong='wxUSE_LONGLONG=no'
3767 fi
698dcdb6 3768
10f2d63a 3769else
698dcdb6 3770
10f2d63a
VZ
3771 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
3772 if test "x$LINE" != x ; then
3773 eval "DEFAULT_$LINE"
3774 else
3775 no_cache=1
3776 fi
3777
3778 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
698dcdb6
VZ
3779
3780fi
10f2d63a
VZ
3781
3782
3783 eval "$ac_cv_use_longlong"
3784 if test "$no_cache" != 1; then
3785 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
3786 fi
3787
3788 if test "$wxUSE_LONGLONG" = yes; then
698dcdb6 3789 echo "$ac_t""yes" 1>&6
10f2d63a 3790 else
698dcdb6 3791 echo "$ac_t""no" 1>&6
10f2d63a 3792 fi
698dcdb6 3793
10f2d63a 3794
698dcdb6 3795 echo $ac_n "checking for --enable-geometry""... $ac_c" 1>&6
19bc6aad 3796echo "configure:3797: checking for --enable-geometry" >&5
e8f65ba6
RR
3797 no_cache=0
3798 # Check whether --enable-geometry or --disable-geometry was given.
3799if test "${enable_geometry+set}" = set; then
3800 enableval="$enable_geometry"
698dcdb6 3801
e8f65ba6
RR
3802 if test "$enableval" = yes; then
3803 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
3804 else
3805 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
3806 fi
698dcdb6 3807
e8f65ba6 3808else
698dcdb6 3809
e8f65ba6
RR
3810 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
3811 if test "x$LINE" != x ; then
3812 eval "DEFAULT_$LINE"
3813 else
3814 no_cache=1
3815 fi
3816
3817 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
698dcdb6
VZ
3818
3819fi
e8f65ba6
RR
3820
3821
3822 eval "$ac_cv_use_geometry"
3823 if test "$no_cache" != 1; then
3824 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
3825 fi
3826
3827 if test "$wxUSE_GEOMETRY" = yes; then
698dcdb6 3828 echo "$ac_t""yes" 1>&6
e8f65ba6 3829 else
698dcdb6 3830 echo "$ac_t""no" 1>&6
e8f65ba6 3831 fi
698dcdb6 3832
e8f65ba6 3833
698dcdb6 3834 echo $ac_n "checking for --enable-log""... $ac_c" 1>&6
19bc6aad 3835echo "configure:3836: checking for --enable-log" >&5
10f2d63a
VZ
3836 no_cache=0
3837 # Check whether --enable-log or --disable-log was given.
3838if test "${enable_log+set}" = set; then
3839 enableval="$enable_log"
698dcdb6 3840
10f2d63a
VZ
3841 if test "$enableval" = yes; then
3842 ac_cv_use_log='wxUSE_LOG=yes'
3843 else
3844 ac_cv_use_log='wxUSE_LOG=no'
3845 fi
698dcdb6 3846
10f2d63a 3847else
698dcdb6 3848
10f2d63a
VZ
3849 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
3850 if test "x$LINE" != x ; then
3851 eval "DEFAULT_$LINE"
3852 else
3853 no_cache=1
3854 fi
3855
3856 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
698dcdb6
VZ
3857
3858fi
10f2d63a
VZ
3859
3860
3861 eval "$ac_cv_use_log"
3862 if test "$no_cache" != 1; then
3863 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
3864 fi
3865
3866 if test "$wxUSE_LOG" = yes; then
698dcdb6 3867 echo "$ac_t""yes" 1>&6
10f2d63a 3868 else
698dcdb6 3869 echo "$ac_t""no" 1>&6
10f2d63a 3870 fi
698dcdb6 3871
10f2d63a 3872
698dcdb6 3873 echo $ac_n "checking for --enable-streams""... $ac_c" 1>&6
19bc6aad 3874echo "configure:3875: checking for --enable-streams" >&5
10f2d63a
VZ
3875 no_cache=0
3876 # Check whether --enable-streams or --disable-streams was given.
3877if test "${enable_streams+set}" = set; then
3878 enableval="$enable_streams"
698dcdb6 3879
10f2d63a
VZ
3880 if test "$enableval" = yes; then
3881 ac_cv_use_streams='wxUSE_STREAMS=yes'
3882 else
3883 ac_cv_use_streams='wxUSE_STREAMS=no'
3884 fi
698dcdb6 3885
10f2d63a 3886else
698dcdb6 3887
10f2d63a
VZ
3888 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
3889 if test "x$LINE" != x ; then
3890 eval "DEFAULT_$LINE"
3891 else
3892 no_cache=1
3893 fi
3894
3895 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
698dcdb6
VZ
3896
3897fi
10f2d63a
VZ
3898
3899
3900 eval "$ac_cv_use_streams"
3901 if test "$no_cache" != 1; then
3902 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
3903 fi
3904
3905 if test "$wxUSE_STREAMS" = yes; then
698dcdb6 3906 echo "$ac_t""yes" 1>&6
10f2d63a 3907 else
698dcdb6 3908 echo "$ac_t""no" 1>&6
10f2d63a 3909 fi
698dcdb6 3910
10f2d63a 3911
698dcdb6 3912 echo $ac_n "checking for --enable-file""... $ac_c" 1>&6
19bc6aad 3913echo "configure:3914: checking for --enable-file" >&5
10f2d63a
VZ
3914 no_cache=0
3915 # Check whether --enable-file or --disable-file was given.
3916if test "${enable_file+set}" = set; then
3917 enableval="$enable_file"
698dcdb6 3918
10f2d63a
VZ
3919 if test "$enableval" = yes; then
3920 ac_cv_use_file='wxUSE_FILE=yes'
3921 else
3922 ac_cv_use_file='wxUSE_FILE=no'
3923 fi
698dcdb6 3924
10f2d63a 3925else
698dcdb6 3926
10f2d63a
VZ
3927 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
3928 if test "x$LINE" != x ; then
3929 eval "DEFAULT_$LINE"
3930 else
3931 no_cache=1
3932 fi
3933
3934 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
698dcdb6
VZ
3935
3936fi
10f2d63a
VZ
3937
3938
3939 eval "$ac_cv_use_file"
3940 if test "$no_cache" != 1; then
3941 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
3942 fi
3943
3944 if test "$wxUSE_FILE" = yes; then
698dcdb6 3945 echo "$ac_t""yes" 1>&6
10f2d63a 3946 else
698dcdb6 3947 echo "$ac_t""no" 1>&6
10f2d63a 3948 fi
698dcdb6 3949
10f2d63a 3950
1e6feb95 3951 echo $ac_n "checking for --enable-ffile""... $ac_c" 1>&6
19bc6aad 3952echo "configure:3953: checking for --enable-ffile" >&5
10f2d63a 3953 no_cache=0
1e6feb95
VZ
3954 # Check whether --enable-ffile or --disable-ffile was given.
3955if test "${enable_ffile+set}" = set; then
3956 enableval="$enable_ffile"
698dcdb6 3957
10f2d63a 3958 if test "$enableval" = yes; then
1e6feb95 3959 ac_cv_use_ffile='wxUSE_FFILE=yes'
10f2d63a 3960 else
1e6feb95 3961 ac_cv_use_ffile='wxUSE_FFILE=no'
10f2d63a 3962 fi
698dcdb6 3963
10f2d63a 3964else
698dcdb6 3965
1e6feb95 3966 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
10f2d63a
VZ
3967 if test "x$LINE" != x ; then
3968 eval "DEFAULT_$LINE"
3969 else
3970 no_cache=1
3971 fi
3972
1e6feb95 3973 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
698dcdb6
VZ
3974
3975fi
10f2d63a
VZ
3976
3977
1e6feb95 3978 eval "$ac_cv_use_ffile"
10f2d63a 3979 if test "$no_cache" != 1; then
1e6feb95 3980 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
3981 fi
3982
1e6feb95 3983 if test "$wxUSE_FFILE" = yes; then
698dcdb6 3984 echo "$ac_t""yes" 1>&6
10f2d63a 3985 else
698dcdb6 3986 echo "$ac_t""no" 1>&6
10f2d63a 3987 fi
698dcdb6 3988
10f2d63a 3989
a3a584a7 3990 echo $ac_n "checking for --enable-textbuf""... $ac_c" 1>&6
19bc6aad 3991echo "configure:3992: checking for --enable-textbuf" >&5
a3a584a7
VZ
3992 no_cache=0
3993 # Check whether --enable-textbuf or --disable-textbuf was given.
3994if test "${enable_textbuf+set}" = set; then
3995 enableval="$enable_textbuf"
3996
3997 if test "$enableval" = yes; then
3998 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
3999 else
4000 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
4001 fi
4002
4003else
4004
4005 LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}`
4006 if test "x$LINE" != x ; then
4007 eval "DEFAULT_$LINE"
4008 else
4009 no_cache=1
4010 fi
4011
4012 ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
4013
4014fi
4015
4016
4017 eval "$ac_cv_use_textbuf"
4018 if test "$no_cache" != 1; then
4019 echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
4020 fi
4021
4022 if test "$wxUSE_TEXTBUFFER" = yes; then
4023 echo "$ac_t""yes" 1>&6
4024 else
4025 echo "$ac_t""no" 1>&6
4026 fi
4027
4028
1e6feb95 4029 echo $ac_n "checking for --enable-textfile""... $ac_c" 1>&6
19bc6aad 4030echo "configure:4031: checking for --enable-textfile" >&5
10f2d63a 4031 no_cache=0
1e6feb95
VZ
4032 # Check whether --enable-textfile or --disable-textfile was given.
4033if test "${enable_textfile+set}" = set; then
4034 enableval="$enable_textfile"
698dcdb6 4035
10f2d63a 4036 if test "$enableval" = yes; then
1e6feb95 4037 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
10f2d63a 4038 else
1e6feb95 4039 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
10f2d63a 4040 fi
698dcdb6 4041
10f2d63a 4042else
698dcdb6 4043
1e6feb95 4044 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
10f2d63a
VZ
4045 if test "x$LINE" != x ; then
4046 eval "DEFAULT_$LINE"
4047 else
4048 no_cache=1
4049 fi
4050
1e6feb95 4051 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
698dcdb6
VZ
4052
4053fi
10f2d63a
VZ
4054
4055
1e6feb95 4056 eval "$ac_cv_use_textfile"
10f2d63a 4057 if test "$no_cache" != 1; then
1e6feb95 4058 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4059 fi
4060
1e6feb95 4061 if test "$wxUSE_TEXTFILE" = yes; then
698dcdb6 4062 echo "$ac_t""yes" 1>&6
10f2d63a 4063 else
698dcdb6 4064 echo "$ac_t""no" 1>&6
10f2d63a 4065 fi
698dcdb6 4066
10f2d63a 4067
1e6feb95 4068 echo $ac_n "checking for --enable-fontmap""... $ac_c" 1>&6
19bc6aad 4069echo "configure:4070: checking for --enable-fontmap" >&5
10f2d63a 4070 no_cache=0
1e6feb95
VZ
4071 # Check whether --enable-fontmap or --disable-fontmap was given.
4072if test "${enable_fontmap+set}" = set; then
4073 enableval="$enable_fontmap"
698dcdb6 4074
10f2d63a 4075 if test "$enableval" = yes; then
1e6feb95 4076 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
10f2d63a 4077 else
1e6feb95 4078 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
10f2d63a 4079 fi
698dcdb6 4080
10f2d63a 4081else
698dcdb6 4082
1e6feb95 4083 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
10f2d63a
VZ
4084 if test "x$LINE" != x ; then
4085 eval "DEFAULT_$LINE"
4086 else
4087 no_cache=1
4088 fi
4089
1e6feb95 4090 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
698dcdb6
VZ
4091
4092fi
10f2d63a
VZ
4093
4094
1e6feb95 4095 eval "$ac_cv_use_fontmap"
10f2d63a 4096 if test "$no_cache" != 1; then
1e6feb95 4097 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4098 fi
4099
1e6feb95 4100 if test "$wxUSE_FONTMAP" = yes; then
698dcdb6 4101 echo "$ac_t""yes" 1>&6
10f2d63a 4102 else
698dcdb6 4103 echo "$ac_t""no" 1>&6
10f2d63a 4104 fi
698dcdb6 4105
10f2d63a 4106
1e6feb95 4107 echo $ac_n "checking for --enable-unicode""... $ac_c" 1>&6
19bc6aad 4108echo "configure:4109: checking for --enable-unicode" >&5
10f2d63a 4109 no_cache=0
1e6feb95
VZ
4110 # Check whether --enable-unicode or --disable-unicode was given.
4111if test "${enable_unicode+set}" = set; then
4112 enableval="$enable_unicode"
4113
4114 if test "$enableval" = yes; then
4115 ac_cv_use_unicode='wxUSE_UNICODE=yes'
4116 else
4117 ac_cv_use_unicode='wxUSE_UNICODE=no'
4118 fi
4119
4120else
4121
4122 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
4123 if test "x$LINE" != x ; then
4124 eval "DEFAULT_$LINE"
4125 else
4126 no_cache=1
4127 fi
4128
4129 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
4130
4131fi
4132
4133
4134 eval "$ac_cv_use_unicode"
4135 if test "$no_cache" != 1; then
4136 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
4137 fi
4138
4139 if test "$wxUSE_UNICODE" = yes; then
4140 echo "$ac_t""yes" 1>&6
4141 else
4142 echo "$ac_t""no" 1>&6
4143 fi
4144
4145
a72a4bfa 4146 echo $ac_n "checking for --enable-mslu""... $ac_c" 1>&6
19bc6aad 4147echo "configure:4148: checking for --enable-mslu" >&5
a72a4bfa
VS
4148 no_cache=0
4149 # Check whether --enable-mslu or --disable-mslu was given.
4150if test "${enable_mslu+set}" = set; then
4151 enableval="$enable_mslu"
4152
4153 if test "$enableval" = yes; then
4154 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
4155 else
4156 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
4157 fi
4158
4159else
4160
4161 LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}`
4162 if test "x$LINE" != x ; then
4163 eval "DEFAULT_$LINE"
4164 else
4165 no_cache=1
4166 fi
4167
4168 ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU
4169
4170fi
4171
4172
4173 eval "$ac_cv_use_mslu"
4174 if test "$no_cache" != 1; then
4175 echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp
4176 fi
4177
4178 if test "$wxUSE_UNICODE_MSLU" = yes; then
4179 echo "$ac_t""yes" 1>&6
4180 else
4181 echo "$ac_t""no" 1>&6
4182 fi
4183
4184
1e6feb95 4185 echo $ac_n "checking for --enable-wxprintfv""... $ac_c" 1>&6
19bc6aad 4186echo "configure:4187: checking for --enable-wxprintfv" >&5
1e6feb95
VZ
4187 no_cache=0
4188 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
4189if test "${enable_wxprintfv+set}" = set; then
4190 enableval="$enable_wxprintfv"
4191
4192 if test "$enableval" = yes; then
10f2d63a
VZ
4193 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
4194 else
4195 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
4196 fi
698dcdb6 4197
10f2d63a 4198else
698dcdb6 4199
10f2d63a
VZ
4200 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
4201 if test "x$LINE" != x ; then
4202 eval "DEFAULT_$LINE"
4203 else
4204 no_cache=1
4205 fi
4206
4207 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
698dcdb6
VZ
4208
4209fi
10f2d63a
VZ
4210
4211
4212 eval "$ac_cv_use_wxprintfv"
4213 if test "$no_cache" != 1; then
4214 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
4215 fi
4216
4217 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
698dcdb6 4218 echo "$ac_t""yes" 1>&6
10f2d63a 4219 else
698dcdb6 4220 echo "$ac_t""no" 1>&6
10f2d63a 4221 fi
698dcdb6 4222
10f2d63a 4223
698dcdb6 4224 echo $ac_n "checking for --enable-std_iostreams""... $ac_c" 1>&6
19bc6aad 4225echo "configure:4226: checking for --enable-std_iostreams" >&5
10f2d63a
VZ
4226 no_cache=0
4227 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
4228if test "${enable_std_iostreams+set}" = set; then
4229 enableval="$enable_std_iostreams"
698dcdb6 4230
10f2d63a
VZ
4231 if test "$enableval" = yes; then
4232 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
4233 else
4234 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
4235 fi
698dcdb6 4236
10f2d63a 4237else
698dcdb6 4238
10f2d63a
VZ
4239 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
4240 if test "x$LINE" != x ; then
4241 eval "DEFAULT_$LINE"
4242 else
4243 no_cache=1
4244 fi
4245
4246 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
698dcdb6
VZ
4247
4248fi
10f2d63a
VZ
4249
4250
4251 eval "$ac_cv_use_std_iostreams"
4252 if test "$no_cache" != 1; then
4253 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
4254 fi
4255
4256 if test "$wxUSE_STD_IOSTREAM" = yes; then
698dcdb6 4257 echo "$ac_t""yes" 1>&6
10f2d63a 4258 else
698dcdb6 4259 echo "$ac_t""no" 1>&6
10f2d63a 4260 fi
698dcdb6 4261
10f2d63a 4262
698dcdb6 4263 echo $ac_n "checking for --enable-filesystem""... $ac_c" 1>&6
19bc6aad 4264echo "configure:4265: checking for --enable-filesystem" >&5
24528b0c
VS
4265 no_cache=0
4266 # Check whether --enable-filesystem or --disable-filesystem was given.
4267if test "${enable_filesystem+set}" = set; then
4268 enableval="$enable_filesystem"
698dcdb6 4269
24528b0c
VS
4270 if test "$enableval" = yes; then
4271 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
4272 else
4273 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
4274 fi
698dcdb6 4275
24528b0c 4276else
698dcdb6 4277
24528b0c
VS
4278 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
4279 if test "x$LINE" != x ; then
4280 eval "DEFAULT_$LINE"
4281 else
4282 no_cache=1
4283 fi
4284
4285 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
698dcdb6
VZ
4286
4287fi
24528b0c
VS
4288
4289
4290 eval "$ac_cv_use_filesystem"
4291 if test "$no_cache" != 1; then
4292 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
4293 fi
4294
4295 if test "$wxUSE_FILESYSTEM" = yes; then
698dcdb6 4296 echo "$ac_t""yes" 1>&6
24528b0c 4297 else
698dcdb6 4298 echo "$ac_t""no" 1>&6
24528b0c 4299 fi
698dcdb6 4300
24528b0c 4301
698dcdb6 4302 echo $ac_n "checking for --enable-fs_inet""... $ac_c" 1>&6
19bc6aad 4303echo "configure:4304: checking for --enable-fs_inet" >&5
10f2d63a
VZ
4304 no_cache=0
4305 # Check whether --enable-fs_inet or --disable-fs_inet was given.
4306if test "${enable_fs_inet+set}" = set; then
4307 enableval="$enable_fs_inet"
698dcdb6 4308
10f2d63a
VZ
4309 if test "$enableval" = yes; then
4310 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
4311 else
4312 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
4313 fi
698dcdb6 4314
10f2d63a 4315else
698dcdb6 4316
10f2d63a
VZ
4317 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
4318 if test "x$LINE" != x ; then
4319 eval "DEFAULT_$LINE"
4320 else
4321 no_cache=1
4322 fi
4323
4324 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
698dcdb6
VZ
4325
4326fi
10f2d63a
VZ
4327
4328
4329 eval "$ac_cv_use_fs_inet"
4330 if test "$no_cache" != 1; then
4331 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
4332 fi
4333
4334 if test "$wxUSE_FS_INET" = yes; then
698dcdb6 4335 echo "$ac_t""yes" 1>&6
10f2d63a 4336 else
698dcdb6 4337 echo "$ac_t""no" 1>&6
10f2d63a 4338 fi
698dcdb6 4339
10f2d63a 4340
698dcdb6 4341 echo $ac_n "checking for --enable-fs_zip""... $ac_c" 1>&6
19bc6aad 4342echo "configure:4343: checking for --enable-fs_zip" >&5
10f2d63a
VZ
4343 no_cache=0
4344 # Check whether --enable-fs_zip or --disable-fs_zip was given.
4345if test "${enable_fs_zip+set}" = set; then
4346 enableval="$enable_fs_zip"
698dcdb6 4347
10f2d63a
VZ
4348 if test "$enableval" = yes; then
4349 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
4350 else
4351 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
4352 fi
698dcdb6 4353
10f2d63a 4354else
698dcdb6 4355
10f2d63a
VZ
4356 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
4357 if test "x$LINE" != x ; then
4358 eval "DEFAULT_$LINE"
4359 else
4360 no_cache=1
4361 fi
4362
4363 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
698dcdb6
VZ
4364
4365fi
10f2d63a
VZ
4366
4367
4368 eval "$ac_cv_use_fs_zip"
4369 if test "$no_cache" != 1; then
4370 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
4371 fi
4372
4373 if test "$wxUSE_FS_ZIP" = yes; then
698dcdb6 4374 echo "$ac_t""yes" 1>&6
10f2d63a 4375 else
698dcdb6 4376 echo "$ac_t""no" 1>&6
10f2d63a 4377 fi
698dcdb6 4378
10f2d63a 4379
698dcdb6 4380 echo $ac_n "checking for --enable-zipstream""... $ac_c" 1>&6
19bc6aad 4381echo "configure:4382: checking for --enable-zipstream" >&5
10f2d63a
VZ
4382 no_cache=0
4383 # Check whether --enable-zipstream or --disable-zipstream was given.
4384if test "${enable_zipstream+set}" = set; then
4385 enableval="$enable_zipstream"
698dcdb6 4386
10f2d63a
VZ
4387 if test "$enableval" = yes; then
4388 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
4389 else
4390 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
4391 fi
698dcdb6 4392
10f2d63a 4393else
698dcdb6 4394
10f2d63a
VZ
4395 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
4396 if test "x$LINE" != x ; then
4397 eval "DEFAULT_$LINE"
4398 else
4399 no_cache=1
4400 fi
4401
4402 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
698dcdb6
VZ
4403
4404fi
10f2d63a
VZ
4405
4406
4407 eval "$ac_cv_use_zipstream"
4408 if test "$no_cache" != 1; then
4409 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
4410 fi
4411
4412 if test "$wxUSE_ZIPSTREAM" = yes; then
698dcdb6 4413 echo "$ac_t""yes" 1>&6
10f2d63a 4414 else
698dcdb6 4415 echo "$ac_t""no" 1>&6
10f2d63a 4416 fi
698dcdb6 4417
10f2d63a 4418
698dcdb6
VZ
4419
4420 echo $ac_n "checking for --enable-catch_segvs""... $ac_c" 1>&6
19bc6aad 4421echo "configure:4422: checking for --enable-catch_segvs" >&5
eb4efbdc
VZ
4422 no_cache=0
4423 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
4424if test "${enable_catch_segvs+set}" = set; then
4425 enableval="$enable_catch_segvs"
698dcdb6 4426
eb4efbdc
VZ
4427 if test "$enableval" = yes; then
4428 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
4429 else
4430 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
4431 fi
698dcdb6 4432
eb4efbdc 4433else
698dcdb6 4434
eb4efbdc
VZ
4435 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
4436 if test "x$LINE" != x ; then
4437 eval "DEFAULT_$LINE"
4438 else
4439 no_cache=1
4440 fi
4441
4442 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
698dcdb6
VZ
4443
4444fi
eb4efbdc
VZ
4445
4446
4447 eval "$ac_cv_use_catch_segvs"
4448 if test "$no_cache" != 1; then
4449 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
4450 fi
4451
4452 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
698dcdb6 4453 echo "$ac_t""yes" 1>&6
eb4efbdc 4454 else
698dcdb6 4455 echo "$ac_t""no" 1>&6
eb4efbdc 4456 fi
698dcdb6 4457
eb4efbdc 4458
698dcdb6 4459 echo $ac_n "checking for --enable-snglinst""... $ac_c" 1>&6
19bc6aad 4460echo "configure:4461: checking for --enable-snglinst" >&5
4f3c5f06
VZ
4461 no_cache=0
4462 # Check whether --enable-snglinst or --disable-snglinst was given.
4463if test "${enable_snglinst+set}" = set; then
4464 enableval="$enable_snglinst"
698dcdb6 4465
4f3c5f06
VZ
4466 if test "$enableval" = yes; then
4467 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
4468 else
4469 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
4470 fi
698dcdb6 4471
4f3c5f06 4472else
698dcdb6 4473
4f3c5f06
VZ
4474 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
4475 if test "x$LINE" != x ; then
4476 eval "DEFAULT_$LINE"
4477 else
4478 no_cache=1
4479 fi
4480
4481 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
698dcdb6
VZ
4482
4483fi
4f3c5f06
VZ
4484
4485
4486 eval "$ac_cv_use_snglinst"
4487 if test "$no_cache" != 1; then
4488 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
4489 fi
4490
4491 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
698dcdb6 4492 echo "$ac_t""yes" 1>&6
4f3c5f06 4493 else
698dcdb6 4494 echo "$ac_t""no" 1>&6
4f3c5f06 4495 fi
698dcdb6
VZ
4496
4497
eb4efbdc 4498
1e6feb95 4499 echo $ac_n "checking for --enable-mimetype""... $ac_c" 1>&6
19bc6aad 4500echo "configure:4501: checking for --enable-mimetype" >&5
1e6feb95
VZ
4501 no_cache=0
4502 # Check whether --enable-mimetype or --disable-mimetype was given.
4503if test "${enable_mimetype+set}" = set; then
4504 enableval="$enable_mimetype"
4505
4506 if test "$enableval" = yes; then
4507 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
4508 else
4509 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
4510 fi
4511
4512else
4513
4514 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
4515 if test "x$LINE" != x ; then
4516 eval "DEFAULT_$LINE"
4517 else
4518 no_cache=1
4519 fi
4520
4521 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
4522
4523fi
4524
4525
4526 eval "$ac_cv_use_mimetype"
4527 if test "$no_cache" != 1; then
4528 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
4529 fi
4530
4531 if test "$wxUSE_MIMETYPE" = yes; then
4532 echo "$ac_t""yes" 1>&6
4533 else
4534 echo "$ac_t""no" 1>&6
4535 fi
4536
4537
3e44f09d 4538 echo $ac_n "checking for --enable-system_options""... $ac_c" 1>&6
19bc6aad 4539echo "configure:4540: checking for --enable-system_options" >&5
3e44f09d
VZ
4540 no_cache=0
4541 # Check whether --enable-system_options or --disable-system_options was given.
4542if test "${enable_system_options+set}" = set; then
4543 enableval="$enable_system_options"
4544
4545 if test "$enableval" = yes; then
4546 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
4547 else
4548 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
4549 fi
4550
4551else
4552
4553 LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
4554 if test "x$LINE" != x ; then
4555 eval "DEFAULT_$LINE"
4556 else
4557 no_cache=1
4558 fi
4559
4560 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
4561
4562fi
4563
4564
4565 eval "$ac_cv_use_system_options"
4566 if test "$no_cache" != 1; then
4567 echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
4568 fi
4569
4570 if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
4571 echo "$ac_t""yes" 1>&6
4572 else
4573 echo "$ac_t""no" 1>&6
4574 fi
4575
4576
1e6feb95 4577
4cdb0ab0 4578 echo $ac_n "checking for --enable-url""... $ac_c" 1>&6
19bc6aad 4579echo "configure:4580: checking for --enable-url" >&5
4cdb0ab0
VS
4580 no_cache=0
4581 # Check whether --enable-url or --disable-url was given.
4582if test "${enable_url+set}" = set; then
4583 enableval="$enable_url"
4584
4585 if test "$enableval" = yes; then
4586 ac_cv_use_url='wxUSE_URL=yes'
4587 else
4588 ac_cv_use_url='wxUSE_URL=no'
4589 fi
4590
4591else
4592
4593 LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}`
4594 if test "x$LINE" != x ; then
4595 eval "DEFAULT_$LINE"
4596 else
4597 no_cache=1
4598 fi
4599
4600 ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL
4601
4602fi
4603
4604
4605 eval "$ac_cv_use_url"
4606 if test "$no_cache" != 1; then
4607 echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp
4608 fi
4609
4610 if test "$wxUSE_URL" = yes; then
4611 echo "$ac_t""yes" 1>&6
4612 else
4613 echo "$ac_t""no" 1>&6
4614 fi
4615
4616
4617 echo $ac_n "checking for --enable-protocol""... $ac_c" 1>&6
19bc6aad 4618echo "configure:4619: checking for --enable-protocol" >&5
4cdb0ab0
VS
4619 no_cache=0
4620 # Check whether --enable-protocol or --disable-protocol was given.
4621if test "${enable_protocol+set}" = set; then
4622 enableval="$enable_protocol"
4623
4624 if test "$enableval" = yes; then
4625 ac_cv_use_protocol='wxUSE_PROTOCOL=yes'
4626 else
4627 ac_cv_use_protocol='wxUSE_PROTOCOL=no'
4628 fi
4629
4630else
4631
4632 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
4633 if test "x$LINE" != x ; then
4634 eval "DEFAULT_$LINE"
4635 else
4636 no_cache=1
4637 fi
4638
4639 ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
4640
4641fi
4642
4643
4644 eval "$ac_cv_use_protocol"
4645 if test "$no_cache" != 1; then
4646 echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp
4647 fi
4648
4649 if test "$wxUSE_PROTOCOL" = yes; then
4650 echo "$ac_t""yes" 1>&6
4651 else
4652 echo "$ac_t""no" 1>&6
4653 fi
4654
4655
4656 echo $ac_n "checking for --enable-protocol_http""... $ac_c" 1>&6
19bc6aad 4657echo "configure:4658: checking for --enable-protocol_http" >&5
4cdb0ab0
VS
4658 no_cache=0
4659 # Check whether --enable-protocol_http or --disable-protocol_http was given.
4660if test "${enable_protocol_http+set}" = set; then
4661 enableval="$enable_protocol_http"
4662
4663 if test "$enableval" = yes; then
4664 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
4665 else
4666 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
4667 fi
4668
4669else
4670
4671 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
4672 if test "x$LINE" != x ; then
4673 eval "DEFAULT_$LINE"
4674 else
4675 no_cache=1
4676 fi
4677
4678 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
4679
4680fi
4681
4682
4683 eval "$ac_cv_use_protocol_http"
4684 if test "$no_cache" != 1; then
4685 echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp
4686 fi
4687
4688 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
4689 echo "$ac_t""yes" 1>&6
4690 else
4691 echo "$ac_t""no" 1>&6
4692 fi
4693
4694
4695 echo $ac_n "checking for --enable-protocol_ftp""... $ac_c" 1>&6
19bc6aad 4696echo "configure:4697: checking for --enable-protocol_ftp" >&5
4cdb0ab0
VS
4697 no_cache=0
4698 # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given.
4699if test "${enable_protocol_ftp+set}" = set; then
4700 enableval="$enable_protocol_ftp"
4701
4702 if test "$enableval" = yes; then
4703 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
4704 else
4705 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
4706 fi
4707
4708else
4709
4710 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
4711 if test "x$LINE" != x ; then
4712 eval "DEFAULT_$LINE"
4713 else
4714 no_cache=1
4715 fi
4716
4717 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
4718
4719fi
4720
4721
4722 eval "$ac_cv_use_protocol_ftp"
4723 if test "$no_cache" != 1; then
4724 echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp
4725 fi
4726
4727 if test "$wxUSE_PROTOCOL_FTP" = yes; then
4728 echo "$ac_t""yes" 1>&6
4729 else
4730 echo "$ac_t""no" 1>&6
4731 fi
4732
4733
4734 echo $ac_n "checking for --enable-protocol_file""... $ac_c" 1>&6
19bc6aad 4735echo "configure:4736: checking for --enable-protocol_file" >&5
4cdb0ab0
VS
4736 no_cache=0
4737 # Check whether --enable-protocol_file or --disable-protocol_file was given.
4738if test "${enable_protocol_file+set}" = set; then
4739 enableval="$enable_protocol_file"
4740
4741 if test "$enableval" = yes; then
4742 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
4743 else
4744 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
4745 fi
4746
4747else
4748
4749 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
4750 if test "x$LINE" != x ; then
4751 eval "DEFAULT_$LINE"
4752 else
4753 no_cache=1
4754 fi
4755
4756 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
4757
4758fi
4759
4760
4761 eval "$ac_cv_use_protocol_file"
4762 if test "$no_cache" != 1; then
4763 echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp
4764 fi
4765
4766 if test "$wxUSE_PROTOCOL_FILE" = yes; then
4767 echo "$ac_t""yes" 1>&6
4768 else
4769 echo "$ac_t""no" 1>&6
4770 fi
4771
4772
4773
4774
698dcdb6
VZ
4775
4776 echo $ac_n "checking for --enable-threads""... $ac_c" 1>&6
19bc6aad 4777echo "configure:4778: checking for --enable-threads" >&5
10f2d63a
VZ
4778 no_cache=0
4779 # Check whether --enable-threads or --disable-threads was given.
4780if test "${enable_threads+set}" = set; then
4781 enableval="$enable_threads"
698dcdb6 4782
10f2d63a
VZ
4783 if test "$enableval" = yes; then
4784 ac_cv_use_threads='wxUSE_THREADS=yes'
4785 else
4786 ac_cv_use_threads='wxUSE_THREADS=no'
4787 fi
698dcdb6 4788
10f2d63a 4789else
698dcdb6 4790
10f2d63a
VZ
4791 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
4792 if test "x$LINE" != x ; then
4793 eval "DEFAULT_$LINE"
4794 else
4795 no_cache=1
4796 fi
4797
4798 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
698dcdb6
VZ
4799
4800fi
10f2d63a
VZ
4801
4802
4803 eval "$ac_cv_use_threads"
4804 if test "$no_cache" != 1; then
4805 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
4806 fi
4807
4808 if test "$wxUSE_THREADS" = yes; then
698dcdb6 4809 echo "$ac_t""yes" 1>&6
10f2d63a 4810 else
698dcdb6 4811 echo "$ac_t""no" 1>&6
10f2d63a 4812 fi
698dcdb6 4813
10f2d63a 4814
b12915c1
VZ
4815if test "$wxUSE_GUI" = "yes"; then
4816
698dcdb6
VZ
4817
4818
4819 echo $ac_n "checking for --enable-docview""... $ac_c" 1>&6
19bc6aad 4820echo "configure:4821: checking for --enable-docview" >&5
10f2d63a
VZ
4821 no_cache=0
4822 # Check whether --enable-docview or --disable-docview was given.
4823if test "${enable_docview+set}" = set; then
4824 enableval="$enable_docview"
698dcdb6 4825
10f2d63a
VZ
4826 if test "$enableval" = yes; then
4827 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
4828 else
4829 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
4830 fi
698dcdb6 4831
10f2d63a 4832else
698dcdb6 4833
10f2d63a
VZ
4834 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
4835 if test "x$LINE" != x ; then
4836 eval "DEFAULT_$LINE"
4837 else
4838 no_cache=1
4839 fi
4840
4841 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
698dcdb6
VZ
4842
4843fi
10f2d63a
VZ
4844
4845
4846 eval "$ac_cv_use_docview"
4847 if test "$no_cache" != 1; then
4848 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
4849 fi
4850
4851 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
698dcdb6 4852 echo "$ac_t""yes" 1>&6
10f2d63a 4853 else
698dcdb6 4854 echo "$ac_t""no" 1>&6
10f2d63a 4855 fi
698dcdb6 4856
10f2d63a 4857
698dcdb6 4858 echo $ac_n "checking for --enable-help""... $ac_c" 1>&6
19bc6aad 4859echo "configure:4860: checking for --enable-help" >&5
10f2d63a
VZ
4860 no_cache=0
4861 # Check whether --enable-help or --disable-help was given.
4862if test "${enable_help+set}" = set; then
4863 enableval="$enable_help"
698dcdb6 4864
10f2d63a
VZ
4865 if test "$enableval" = yes; then
4866 ac_cv_use_help='wxUSE_HELP=yes'
4867 else
4868 ac_cv_use_help='wxUSE_HELP=no'
4869 fi
698dcdb6 4870
10f2d63a 4871else
698dcdb6 4872
10f2d63a
VZ
4873 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
4874 if test "x$LINE" != x ; then
4875 eval "DEFAULT_$LINE"
4876 else
4877 no_cache=1
4878 fi
4879
4880 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
698dcdb6
VZ
4881
4882fi
10f2d63a
VZ
4883
4884
4885 eval "$ac_cv_use_help"
4886 if test "$no_cache" != 1; then
4887 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
4888 fi
4889
4890 if test "$wxUSE_HELP" = yes; then
698dcdb6 4891 echo "$ac_t""yes" 1>&6
10f2d63a 4892 else
698dcdb6 4893 echo "$ac_t""no" 1>&6
10f2d63a 4894 fi
698dcdb6 4895
10f2d63a 4896
29fd3c0c 4897 echo $ac_n "checking for --enable-mshtmlhelp""... $ac_c" 1>&6
19bc6aad 4898echo "configure:4899: checking for --enable-mshtmlhelp" >&5
29fd3c0c
VS
4899 no_cache=0
4900 # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
4901if test "${enable_mshtmlhelp+set}" = set; then
4902 enableval="$enable_mshtmlhelp"
4903
4904 if test "$enableval" = yes; then
4905 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
4906 else
4907 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
4908 fi
4909
4910else
4911
4912 LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
4913 if test "x$LINE" != x ; then
4914 eval "DEFAULT_$LINE"
4915 else
4916 no_cache=1
4917 fi
4918
4919 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
4920
4921fi
4922
4923
4924 eval "$ac_cv_use_mshtmlhelp"
4925 if test "$no_cache" != 1; then
4926 echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
4927 fi
4928
4929 if test "$wxUSE_MS_HTML_HELP" = yes; then
4930 echo "$ac_t""yes" 1>&6
4931 else
4932 echo "$ac_t""no" 1>&6
4933 fi
4934
4935
3379ed37 4936 echo $ac_n "checking for --enable-html""... $ac_c" 1>&6
19bc6aad 4937echo "configure:4938: checking for --enable-html" >&5
3379ed37
VZ
4938 no_cache=0
4939 # Check whether --enable-html or --disable-html was given.
4940if test "${enable_html+set}" = set; then
4941 enableval="$enable_html"
4942
4943 if test "$enableval" = yes; then
4944 ac_cv_use_html='wxUSE_HTML=yes'
4945 else
4946 ac_cv_use_html='wxUSE_HTML=no'
4947 fi
4948
4949else
4950
4951 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
4952 if test "x$LINE" != x ; then
4953 eval "DEFAULT_$LINE"
4954 else
4955 no_cache=1
4956 fi
4957
4958 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
4959
4960fi
4961
4962
4963 eval "$ac_cv_use_html"
4964 if test "$no_cache" != 1; then
4965 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
4966 fi
4967
4968 if test "$wxUSE_HTML" = yes; then
4969 echo "$ac_t""yes" 1>&6
4970 else
4971 echo "$ac_t""no" 1>&6
4972 fi
4973
4974
4975 echo $ac_n "checking for --enable-htmlhelp""... $ac_c" 1>&6
19bc6aad 4976echo "configure:4977: checking for --enable-htmlhelp" >&5
3379ed37
VZ
4977 no_cache=0
4978 # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
4979if test "${enable_htmlhelp+set}" = set; then
4980 enableval="$enable_htmlhelp"
4981
4982 if test "$enableval" = yes; then
4983 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
4984 else
4985 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
4986 fi
4987
4988else
4989
4990 LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
4991 if test "x$LINE" != x ; then
4992 eval "DEFAULT_$LINE"
4993 else
4994 no_cache=1
4995 fi
4996
4997 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
4998
4999fi
5000
5001
5002 eval "$ac_cv_use_htmlhelp"
5003 if test "$no_cache" != 1; then
5004 echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
5005 fi
5006
5007 if test "$wxUSE_WXHTML_HELP" = yes; then
5008 echo "$ac_t""yes" 1>&6
5009 else
5010 echo "$ac_t""no" 1>&6
5011 fi
5012
5013
698dcdb6 5014 echo $ac_n "checking for --enable-constraints""... $ac_c" 1>&6
19bc6aad 5015echo "configure:5016: checking for --enable-constraints" >&5
10f2d63a
VZ
5016 no_cache=0
5017 # Check whether --enable-constraints or --disable-constraints was given.
5018if test "${enable_constraints+set}" = set; then
5019 enableval="$enable_constraints"
698dcdb6 5020
10f2d63a
VZ
5021 if test "$enableval" = yes; then
5022 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
5023 else
5024 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
5025 fi
698dcdb6 5026
10f2d63a 5027else
698dcdb6 5028
10f2d63a
VZ
5029 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
5030 if test "x$LINE" != x ; then
5031 eval "DEFAULT_$LINE"
5032 else
5033 no_cache=1
5034 fi
5035
5036 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
698dcdb6
VZ
5037
5038fi
10f2d63a
VZ
5039
5040
5041 eval "$ac_cv_use_constraints"
5042 if test "$no_cache" != 1; then
5043 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
5044 fi
5045
5046 if test "$wxUSE_CONSTRAINTS" = yes; then
698dcdb6 5047 echo "$ac_t""yes" 1>&6
10f2d63a 5048 else
698dcdb6 5049 echo "$ac_t""no" 1>&6
10f2d63a 5050 fi
698dcdb6 5051
10f2d63a 5052
698dcdb6 5053 echo $ac_n "checking for --enable-printarch""... $ac_c" 1>&6
19bc6aad 5054echo "configure:5055: checking for --enable-printarch" >&5
10f2d63a
VZ
5055 no_cache=0
5056 # Check whether --enable-printarch or --disable-printarch was given.
5057if test "${enable_printarch+set}" = set; then
5058 enableval="$enable_printarch"
698dcdb6 5059
10f2d63a
VZ
5060 if test "$enableval" = yes; then
5061 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
5062 else
5063 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
5064 fi
698dcdb6 5065
10f2d63a 5066else
698dcdb6 5067
10f2d63a
VZ
5068 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
5069 if test "x$LINE" != x ; then
5070 eval "DEFAULT_$LINE"
5071 else
5072 no_cache=1
5073 fi
5074
5075 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
698dcdb6
VZ
5076
5077fi
10f2d63a
VZ
5078
5079
5080 eval "$ac_cv_use_printarch"
5081 if test "$no_cache" != 1; then
5082 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
5083 fi
5084
5085 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
698dcdb6 5086 echo "$ac_t""yes" 1>&6
10f2d63a 5087 else
698dcdb6 5088 echo "$ac_t""no" 1>&6
10f2d63a 5089 fi
698dcdb6 5090
10f2d63a 5091
698dcdb6 5092 echo $ac_n "checking for --enable-mdi""... $ac_c" 1>&6
19bc6aad 5093echo "configure:5094: checking for --enable-mdi" >&5
10f2d63a
VZ
5094 no_cache=0
5095 # Check whether --enable-mdi or --disable-mdi was given.
5096if test "${enable_mdi+set}" = set; then
5097 enableval="$enable_mdi"
698dcdb6 5098
10f2d63a
VZ
5099 if test "$enableval" = yes; then
5100 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes'
5101 else
5102 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no'
5103 fi
698dcdb6 5104
10f2d63a 5105else
698dcdb6 5106
10f2d63a
VZ
5107 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
5108 if test "x$LINE" != x ; then
5109 eval "DEFAULT_$LINE"
5110 else
5111 no_cache=1
5112 fi
5113
5114 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
698dcdb6
VZ
5115
5116fi
10f2d63a
VZ
5117
5118
5119 eval "$ac_cv_use_mdi"
5120 if test "$no_cache" != 1; then
5121 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
5122 fi
5123
5124 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
698dcdb6 5125 echo "$ac_t""yes" 1>&6
10f2d63a 5126 else
698dcdb6 5127 echo "$ac_t""no" 1>&6
10f2d63a 5128 fi
698dcdb6
VZ
5129
5130
1e6feb95 5131 echo $ac_n "checking for --enable-loggui""... $ac_c" 1>&6
19bc6aad 5132echo "configure:5133: checking for --enable-loggui" >&5
1e6feb95
VZ
5133 no_cache=0
5134 # Check whether --enable-loggui or --disable-loggui was given.
5135if test "${enable_loggui+set}" = set; then
5136 enableval="$enable_loggui"
5137
5138 if test "$enableval" = yes; then
5139 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
5140 else
5141 ac_cv_use_loggui='wxUSE_LOGGUI=no'
5142 fi
5143
5144else
5145
5146 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
5147 if test "x$LINE" != x ; then
5148 eval "DEFAULT_$LINE"
5149 else
5150 no_cache=1
5151 fi
5152
5153 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
5154
5155fi
5156
5157
5158 eval "$ac_cv_use_loggui"
5159 if test "$no_cache" != 1; then
5160 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
5161 fi
5162
5163 if test "$wxUSE_LOGGUI" = yes; then
5164 echo "$ac_t""yes" 1>&6
5165 else
5166 echo "$ac_t""no" 1>&6
5167 fi
5168
5169
5170 echo $ac_n "checking for --enable-logwin""... $ac_c" 1>&6
19bc6aad 5171echo "configure:5172: checking for --enable-logwin" >&5
1e6feb95
VZ
5172 no_cache=0
5173 # Check whether --enable-logwin or --disable-logwin was given.
5174if test "${enable_logwin+set}" = set; then
5175 enableval="$enable_logwin"
5176
5177 if test "$enableval" = yes; then
5178 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
5179 else
5180 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
5181 fi
5182
5183else
5184
5185 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
5186 if test "x$LINE" != x ; then
5187 eval "DEFAULT_$LINE"
5188 else
5189 no_cache=1
5190 fi
5191
5192 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
5193
5194fi
5195
5196
5197 eval "$ac_cv_use_logwin"
5198 if test "$no_cache" != 1; then
5199 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
5200 fi
5201
5202 if test "$wxUSE_LOGWINDOW" = yes; then
5203 echo "$ac_t""yes" 1>&6
5204 else
5205 echo "$ac_t""no" 1>&6
5206 fi
5207
5208
69d27ff7 5209 echo $ac_n "checking for --enable-logdialog""... $ac_c" 1>&6
19bc6aad 5210echo "configure:5211: checking for --enable-logdialog" >&5
69d27ff7
MB
5211 no_cache=0
5212 # Check whether --enable-logdialog or --disable-logdialog was given.
5213if test "${enable_logdialog+set}" = set; then
5214 enableval="$enable_logdialog"
5215
5216 if test "$enableval" = yes; then
5217 ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
5218 else
5219 ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
5220 fi
5221
5222else
5223
5224 LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}`
5225 if test "x$LINE" != x ; then
5226 eval "DEFAULT_$LINE"
5227 else
5228 no_cache=1
5229 fi
5230
5231 ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
5232
5233fi
5234
5235
5236 eval "$ac_cv_use_logdialog"
5237 if test "$no_cache" != 1; then
5238 echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
5239 fi
5240
5241 if test "$wxUSE_LOGDIALOG" = yes; then
5242 echo "$ac_t""yes" 1>&6
5243 else
5244 echo "$ac_t""no" 1>&6
5245 fi
5246
5247
10f2d63a 5248
698dcdb6 5249 echo $ac_n "checking for --enable-postscript""... $ac_c" 1>&6
19bc6aad 5250echo "configure:5251: checking for --enable-postscript" >&5
10f2d63a
VZ
5251 no_cache=0
5252 # Check whether --enable-postscript or --disable-postscript was given.
5253if test "${enable_postscript+set}" = set; then
5254 enableval="$enable_postscript"
698dcdb6 5255
10f2d63a
VZ
5256 if test "$enableval" = yes; then
5257 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
5258 else
5259 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
5260 fi
698dcdb6 5261
10f2d63a 5262else
698dcdb6 5263
10f2d63a
VZ
5264 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
5265 if test "x$LINE" != x ; then
5266 eval "DEFAULT_$LINE"
5267 else
5268 no_cache=1
5269 fi
5270
5271 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
698dcdb6
VZ
5272
5273fi
10f2d63a
VZ
5274
5275
5276 eval "$ac_cv_use_postscript"
5277 if test "$no_cache" != 1; then
5278 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
5279 fi
5280
5281 if test "$wxUSE_POSTSCRIPT" = yes; then
698dcdb6 5282 echo "$ac_t""yes" 1>&6
10f2d63a 5283 else
698dcdb6 5284 echo "$ac_t""no" 1>&6
10f2d63a 5285 fi
698dcdb6
VZ
5286
5287
5288
10f2d63a 5289
1e6feb95 5290
698dcdb6 5291 echo $ac_n "checking for --enable-prologio""... $ac_c" 1>&6
19bc6aad 5292echo "configure:5293: checking for --enable-prologio" >&5
10f2d63a
VZ
5293 no_cache=0
5294 # Check whether --enable-prologio or --disable-prologio was given.
5295if test "${enable_prologio+set}" = set; then
5296 enableval="$enable_prologio"
698dcdb6 5297
10f2d63a
VZ
5298 if test "$enableval" = yes; then
5299 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
5300 else
5301 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
5302 fi
698dcdb6 5303
10f2d63a 5304else
698dcdb6 5305
10f2d63a
VZ
5306 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
5307 if test "x$LINE" != x ; then
5308 eval "DEFAULT_$LINE"
5309 else
5310 no_cache=1
5311 fi
5312
5313 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
698dcdb6
VZ
5314
5315fi
10f2d63a
VZ
5316
5317
5318 eval "$ac_cv_use_prologio"
5319 if test "$no_cache" != 1; then
5320 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
5321 fi
5322
5323 if test "$wxUSE_PROLOGIO" = yes; then
698dcdb6 5324 echo "$ac_t""yes" 1>&6
10f2d63a 5325 else
698dcdb6 5326 echo "$ac_t""no" 1>&6
10f2d63a 5327 fi
698dcdb6 5328
10f2d63a 5329
698dcdb6 5330 echo $ac_n "checking for --enable-resources""... $ac_c" 1>&6
19bc6aad 5331echo "configure:5332: checking for --enable-resources" >&5
10f2d63a
VZ
5332 no_cache=0
5333 # Check whether --enable-resources or --disable-resources was given.
5334if test "${enable_resources+set}" = set; then
5335 enableval="$enable_resources"
698dcdb6 5336
10f2d63a
VZ
5337 if test "$enableval" = yes; then
5338 ac_cv_use_resources='wxUSE_RESOURCES=yes'
5339 else
5340 ac_cv_use_resources='wxUSE_RESOURCES=no'
5341 fi
698dcdb6 5342
10f2d63a 5343else
698dcdb6 5344
10f2d63a
VZ
5345 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
5346 if test "x$LINE" != x ; then
5347 eval "DEFAULT_$LINE"
5348 else
5349 no_cache=1
5350 fi
5351
5352 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
698dcdb6
VZ
5353
5354fi
10f2d63a
VZ
5355
5356
5357 eval "$ac_cv_use_resources"
5358 if test "$no_cache" != 1; then
5359 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
5360 fi
5361
5362 if test "$wxUSE_RESOURCES" = yes; then
698dcdb6 5363 echo "$ac_t""yes" 1>&6
10f2d63a 5364 else
698dcdb6 5365 echo "$ac_t""no" 1>&6
10f2d63a 5366 fi
698dcdb6 5367
10f2d63a 5368
698dcdb6
VZ
5369
5370 echo $ac_n "checking for --enable-xresources""... $ac_c" 1>&6
19bc6aad 5371echo "configure:5372: checking for --enable-xresources" >&5
10f2d63a
VZ
5372 no_cache=0
5373 # Check whether --enable-xresources or --disable-xresources was given.
5374if test "${enable_xresources+set}" = set; then
5375 enableval="$enable_xresources"
698dcdb6 5376
10f2d63a
VZ
5377 if test "$enableval" = yes; then
5378 ac_cv_use_xresources='wxUSE_X_RESOURCES=yes'
5379 else
5380 ac_cv_use_xresources='wxUSE_X_RESOURCES=no'
5381 fi
698dcdb6 5382
10f2d63a 5383else
698dcdb6 5384
10f2d63a
VZ
5385 LINE=`grep "wxUSE_X_RESOURCES" ${wx_arg_cache_file}`
5386 if test "x$LINE" != x ; then
5387 eval "DEFAULT_$LINE"
5388 else
5389 no_cache=1
5390 fi
5391
5392 ac_cv_use_xresources='wxUSE_X_RESOURCES='$DEFAULT_wxUSE_X_RESOURCES
698dcdb6
VZ
5393
5394fi
10f2d63a
VZ
5395
5396
5397 eval "$ac_cv_use_xresources"
5398 if test "$no_cache" != 1; then
5399 echo $ac_cv_use_xresources >> ${wx_arg_cache_file}.tmp
5400 fi
5401
5402 if test "$wxUSE_X_RESOURCES" = yes; then
698dcdb6 5403 echo "$ac_t""yes" 1>&6
10f2d63a 5404 else
698dcdb6 5405 echo "$ac_t""no" 1>&6
10f2d63a 5406 fi
698dcdb6
VZ
5407
5408
10f2d63a 5409
698dcdb6
VZ
5410
5411 echo $ac_n "checking for --enable-clipboard""... $ac_c" 1>&6
19bc6aad 5412echo "configure:5413: checking for --enable-clipboard" >&5
10f2d63a
VZ
5413 no_cache=0
5414 # Check whether --enable-clipboard or --disable-clipboard was given.
5415if test "${enable_clipboard+set}" = set; then
5416 enableval="$enable_clipboard"
698dcdb6 5417
10f2d63a
VZ
5418 if test "$enableval" = yes; then
5419 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
5420 else
5421 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
5422 fi
698dcdb6 5423
10f2d63a 5424else
698dcdb6 5425
10f2d63a
VZ
5426 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
5427 if test "x$LINE" != x ; then
5428 eval "DEFAULT_$LINE"
5429 else
5430 no_cache=1
5431 fi
5432
5433 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
698dcdb6
VZ
5434
5435fi
10f2d63a
VZ
5436
5437
5438 eval "$ac_cv_use_clipboard"
5439 if test "$no_cache" != 1; then
5440 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
5441 fi
5442
5443 if test "$wxUSE_CLIPBOARD" = yes; then
698dcdb6 5444 echo "$ac_t""yes" 1>&6
10f2d63a 5445 else
698dcdb6 5446 echo "$ac_t""no" 1>&6
10f2d63a 5447 fi
698dcdb6 5448
10f2d63a 5449
698dcdb6 5450 echo $ac_n "checking for --enable-dnd""... $ac_c" 1>&6
19bc6aad 5451echo "configure:5452: checking for --enable-dnd" >&5
10f2d63a
VZ
5452 no_cache=0
5453 # Check whether --enable-dnd or --disable-dnd was given.
5454if test "${enable_dnd+set}" = set; then
5455 enableval="$enable_dnd"
698dcdb6 5456
10f2d63a
VZ
5457 if test "$enableval" = yes; then
5458 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
5459 else
5460 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
5461 fi
698dcdb6 5462
10f2d63a 5463else
698dcdb6 5464
10f2d63a
VZ
5465 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
5466 if test "x$LINE" != x ; then
5467 eval "DEFAULT_$LINE"
5468 else
5469 no_cache=1
5470 fi
5471
5472 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
698dcdb6
VZ
5473
5474fi
10f2d63a
VZ
5475
5476
5477 eval "$ac_cv_use_dnd"
5478 if test "$no_cache" != 1; then
5479 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
5480 fi
5481
5482 if test "$wxUSE_DRAG_AND_DROP" = yes; then
698dcdb6 5483 echo "$ac_t""yes" 1>&6
10f2d63a 5484 else
698dcdb6 5485 echo "$ac_t""no" 1>&6
10f2d63a 5486 fi
698dcdb6 5487
10f2d63a 5488
698dcdb6 5489 echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6
19bc6aad 5490echo "configure:5491: checking for --enable-metafile" >&5
b64f0a5f
RL
5491 no_cache=0
5492 # Check whether --enable-metafile or --disable-metafile was given.
5493if test "${enable_metafile+set}" = set; then
5494 enableval="$enable_metafile"
698dcdb6 5495
b64f0a5f
RL
5496 if test "$enableval" = yes; then
5497 ac_cv_use_metafile='wxUSE_METAFILE=yes'
5498 else
5499 ac_cv_use_metafile='wxUSE_METAFILE=no'
5500 fi
698dcdb6 5501
b64f0a5f 5502else
698dcdb6 5503
b64f0a5f
RL
5504 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
5505 if test "x$LINE" != x ; then
5506 eval "DEFAULT_$LINE"
5507 else
5508 no_cache=1
5509 fi
5510
5511 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
698dcdb6
VZ
5512
5513fi
b64f0a5f
RL
5514
5515
5516 eval "$ac_cv_use_metafile"
5517 if test "$no_cache" != 1; then
5518 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
5519 fi
5520
5521 if test "$wxUSE_METAFILE" = yes; then
698dcdb6 5522 echo "$ac_t""yes" 1>&6
b64f0a5f 5523 else
698dcdb6 5524 echo "$ac_t""no" 1>&6
b64f0a5f 5525 fi
698dcdb6
VZ
5526
5527
10f2d63a 5528
24176f2c 5529 echo $ac_n "checking for --enable-treelayout""... $ac_c" 1>&6
19bc6aad 5530echo "configure:5531: checking for --enable-treelayout" >&5
10f2d63a 5531 no_cache=0
24176f2c
GD
5532 # Check whether --enable-treelayout or --disable-treelayout was given.
5533if test "${enable_treelayout+set}" = set; then
5534 enableval="$enable_treelayout"
698dcdb6 5535
10f2d63a 5536 if test "$enableval" = yes; then
24176f2c 5537 ac_cv_use_treelayout='wxUSE_TREELAYOUT=yes'
10f2d63a 5538 else
24176f2c 5539 ac_cv_use_treelayout='wxUSE_TREELAYOUT=no'
10f2d63a 5540 fi
698dcdb6 5541
10f2d63a 5542else
698dcdb6 5543
24176f2c 5544 LINE=`grep "wxUSE_TREELAYOUT" ${wx_arg_cache_file}`
10f2d63a
VZ
5545 if test "x$LINE" != x ; then
5546 eval "DEFAULT_$LINE"
5547 else
5548 no_cache=1
5549 fi
5550
24176f2c 5551 ac_cv_use_treelayout='wxUSE_TREELAYOUT='$DEFAULT_wxUSE_TREELAYOUT
698dcdb6
VZ
5552
5553fi
10f2d63a
VZ
5554
5555
24176f2c 5556 eval "$ac_cv_use_treelayout"
10f2d63a 5557 if test "$no_cache" != 1; then
24176f2c 5558 echo $ac_cv_use_treelayout >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
5559 fi
5560
24176f2c 5561 if test "$wxUSE_TREELAYOUT" = yes; then
698dcdb6 5562 echo "$ac_t""yes" 1>&6
10f2d63a 5563 else
698dcdb6 5564 echo "$ac_t""no" 1>&6
10f2d63a 5565 fi
698dcdb6 5566
10f2d63a 5567
698dcdb6
VZ
5568
5569
5570 echo $ac_n "checking for --enable-controls""... $ac_c" 1>&6
19bc6aad 5571echo "configure:5572: checking for --enable-controls" >&5
10f2d63a
VZ
5572 no_cache=0
5573 # Check whether --enable-controls or --disable-controls was given.
5574if test "${enable_controls+set}" = set; then
5575 enableval="$enable_controls"
698dcdb6 5576
10f2d63a
VZ
5577 if test "$enableval" = yes; then
5578 ac_cv_use_controls='wxUSE_CONTROLS=yes'
5579 else
5580 ac_cv_use_controls='wxUSE_CONTROLS=no'
5581 fi
698dcdb6 5582
10f2d63a 5583else
698dcdb6 5584
10f2d63a
VZ
5585 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
5586 if test "x$LINE" != x ; then
5587 eval "DEFAULT_$LINE"
5588 else
5589 no_cache=1
5590 fi
5591
5592 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
698dcdb6
VZ
5593
5594fi
10f2d63a
VZ
5595
5596
5597 eval "$ac_cv_use_controls"
5598 if test "$no_cache" != 1; then
5599 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
5600 fi
5601
5602 if test "$wxUSE_CONTROLS" = yes; then
698dcdb6 5603 echo "$ac_t""yes" 1>&6
10f2d63a 5604 else
698dcdb6 5605 echo "$ac_t""no" 1>&6
10f2d63a 5606 fi
698dcdb6 5607
10f2d63a
VZ
5608
5609if test "$wxUSE_CONTROLS" = "yes"; then
5610 DEFAULT_wxUSE_ACCEL=yes
1e6feb95
VZ
5611 DEFAULT_wxUSE_BMPBUTTON=yes
5612 DEFAULT_wxUSE_BUTTON=yes
5613 DEFAULT_wxUSE_CALCTRL=no
10f2d63a
VZ
5614 DEFAULT_wxUSE_CARET=yes
5615 DEFAULT_wxUSE_COMBOBOX=yes
10f2d63a
VZ
5616 DEFAULT_wxUSE_CHECKBOX=yes
5617 DEFAULT_wxUSE_CHECKLISTBOX=yes
5618 DEFAULT_wxUSE_CHOICE=yes
5619 DEFAULT_wxUSE_GAUGE=yes
5620 DEFAULT_wxUSE_GRID=yes
cc977e5f 5621 DEFAULT_wxUSE_NEW_GRID=yes
10f2d63a
VZ
5622 DEFAULT_wxUSE_IMAGLIST=yes
5623 DEFAULT_wxUSE_LISTBOX=yes
5624 DEFAULT_wxUSE_LISTCTRL=yes
5625 DEFAULT_wxUSE_NOTEBOOK=yes
24176f2c 5626 DEFAULT_wxUSE_PROPSHEET=yes
10f2d63a
VZ
5627 DEFAULT_wxUSE_RADIOBOX=yes
5628 DEFAULT_wxUSE_RADIOBTN=yes
5629 DEFAULT_wxUSE_SASH=yes
5630 DEFAULT_wxUSE_SCROLLBAR=yes
5631 DEFAULT_wxUSE_SLIDER=yes
5632 DEFAULT_wxUSE_SPINBTN=yes
56cfaa52 5633 DEFAULT_wxUSE_SPINCTRL=yes
10f2d63a
VZ
5634 DEFAULT_wxUSE_SPLITTER=yes
5635 DEFAULT_wxUSE_STATBMP=yes
5636 DEFAULT_wxUSE_STATBOX=yes
5637 DEFAULT_wxUSE_STATLINE=yes
5638 DEFAULT_wxUSE_STATUSBAR=yes
5639 DEFAULT_wxUSE_TAB_DIALOG=yes
1db8dc4a 5640 DEFAULT_wxUSE_TOGGLEBTN=yes
10f2d63a 5641 DEFAULT_wxUSE_TOOLBAR=yes
360d6699
VZ
5642 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
5643 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
10f2d63a
VZ
5644 DEFAULT_wxUSE_TOOLTIPS=yes
5645 DEFAULT_wxUSE_TREECTRL=yes
9f41d601 5646 DEFAULT_wxUSE_POPUPWIN=yes
9926e4a4 5647 DEFAULT_wxUSE_TIPWINDOW=yes
10f2d63a
VZ
5648elif test "$wxUSE_CONTROLS" = "no"; then
5649 DEFAULT_wxUSE_ACCEL=no
1e6feb95
VZ
5650 DEFAULT_wxUSE_BMPBUTTON=no
5651 DEFAULT_wxUSE_BUTTON=no
5652 DEFAULT_wxUSE_CALCTRL=no
10f2d63a
VZ
5653 DEFAULT_wxUSE_CARET=no
5654 DEFAULT_wxUSE_COMBOBOX=no
10f2d63a
VZ
5655 DEFAULT_wxUSE_CHECKBOX=no
5656 DEFAULT_wxUSE_CHECKLISTBOX=no
5657 DEFAULT_wxUSE_CHOICE=no
5658 DEFAULT_wxUSE_GAUGE=no
5659 DEFAULT_wxUSE_GRID=no
5660 DEFAULT_wxUSE_NEW_GRID=no
5661 DEFAULT_wxUSE_IMAGLIST=no
5662 DEFAULT_wxUSE_LISTBOX=no
5663 DEFAULT_wxUSE_LISTCTRL=no
5664 DEFAULT_wxUSE_NOTEBOOK=no
24176f2c 5665 DEFAULT_wxUSE_PROPSHEET=no
10f2d63a
VZ
5666 DEFAULT_wxUSE_RADIOBOX=no
5667 DEFAULT_wxUSE_RADIOBTN=no
5668 DEFAULT_wxUSE_SASH=no
5669 DEFAULT_wxUSE_SCROLLBAR=no
5670 DEFAULT_wxUSE_SLIDER=no
5671 DEFAULT_wxUSE_SPINBTN=no
56cfaa52 5672 DEFAULT_wxUSE_SPINCTRL=no
10f2d63a
VZ
5673 DEFAULT_wxUSE_SPLITTER=no
5674 DEFAULT_wxUSE_STATBMP=no
5675 DEFAULT_wxUSE_STATBOX=no
5676 DEFAULT_wxUSE_STATLINE=no
5677 DEFAULT_wxUSE_STATUSBAR=no
5678 DEFAULT_wxUSE_TAB_DIALOG=no
1db8dc4a 5679 DEFAULT_wxUSE_TOGGLEBTN=no
10f2d63a 5680 DEFAULT_wxUSE_TOOLBAR=no
360d6699
VZ
5681 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
5682 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
10f2d63a
VZ
5683 DEFAULT_wxUSE_TOOLTIPS=no
5684 DEFAULT_wxUSE_TREECTRL=no
9f41d601 5685 DEFAULT_wxUSE_POPUPWIN=no
9926e4a4 5686 DEFAULT_wxUSE_TIPWINDOW=no
10f2d63a
VZ
5687fi
5688
698dcdb6
VZ
5689
5690 echo $ac_n "checking for --enable-accel""... $ac_c" 1>&6
19bc6aad 5691echo "configure:5692: checking for --enable-accel" >&5
10f2d63a
VZ
5692 no_cache=0
5693 # Check whether --enable-accel or --disable-accel was given.
5694if test "${enable_accel+set}" = set; then
5695 enableval="$enable_accel"
698dcdb6 5696
10f2d63a
VZ
5697 if test "$enableval" = yes; then
5698 ac_cv_use_accel='wxUSE_ACCEL=yes'
5699 else
5700 ac_cv_use_accel='wxUSE_ACCEL=no'
5701 fi
698dcdb6 5702
10f2d63a 5703else
698dcdb6 5704
10f2d63a
VZ
5705 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
5706 if test "x$LINE" != x ; then
5707 eval "DEFAULT_$LINE"
5708 else
5709 no_cache=1
5710 fi
5711
5712 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
698dcdb6
VZ
5713
5714fi
10f2d63a
VZ
5715
5716
5717 eval "$ac_cv_use_accel"
5718 if test "$no_cache" != 1; then
5719 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
5720 fi
5721
5722 if test "$wxUSE_ACCEL" = yes; then
698dcdb6 5723 echo "$ac_t""yes" 1>&6
10f2d63a 5724 else
698dcdb6 5725 echo "$ac_t""no" 1>&6
10f2d63a 5726 fi
698dcdb6 5727
10f2d63a 5728
1e6feb95 5729 echo $ac_n "checking for --enable-button""... $ac_c" 1>&6
19bc6aad 5730echo "configure:5731: checking for --enable-button" >&5
10f2d63a 5731 no_cache=0
1e6feb95
VZ
5732 # Check whether --enable-button or --disable-button was given.
5733if test "${enable_button+set}" = set; then
5734 enableval="$enable_button"
698dcdb6 5735
10f2d63a 5736 if test "$enableval" = yes; then
1e6feb95 5737 ac_cv_use_button='wxUSE_BUTTON=yes'
10f2d63a 5738 else
1e6feb95 5739 ac_cv_use_button='wxUSE_BUTTON=no'
10f2d63a 5740 fi
698dcdb6 5741
10f2d63a 5742else
698dcdb6 5743
1e6feb95 5744 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
10f2d63a
VZ
5745 if test "x$LINE" != x ; then
5746 eval "DEFAULT_$LINE"
5747 else
5748 no_cache=1
5749 fi
5750
1e6feb95 5751 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
698dcdb6
VZ
5752
5753fi
10f2d63a
VZ
5754
5755
1e6feb95 5756 eval "$ac_cv_use_button"
10f2d63a 5757 if test "$no_cache" != 1; then
1e6feb95 5758 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
5759 fi
5760
1e6feb95 5761 if test "$wxUSE_BUTTON" = yes; then
698dcdb6 5762 echo "$ac_t""yes" 1>&6
10f2d63a 5763 else
698dcdb6 5764 echo "$ac_t""no" 1>&6
10f2d63a 5765 fi
698dcdb6 5766
10f2d63a 5767
698dcdb6 5768 echo $ac_n "checking for --enable-bmpbutton""... $ac_c" 1>&6
19bc6aad 5769echo "configure:5770: checking for --enable-bmpbutton" >&5
10f2d63a
VZ
5770 no_cache=0
5771 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
5772if test "${enable_bmpbutton+set}" = set; then
5773 enableval="$enable_bmpbutton"
698dcdb6 5774
10f2d63a
VZ
5775 if test "$enableval" = yes; then
5776 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
5777 else
5778 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
5779 fi
698dcdb6 5780
10f2d63a 5781else
698dcdb6 5782
10f2d63a
VZ
5783 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
5784 if test "x$LINE" != x ; then
5785 eval "DEFAULT_$LINE"
5786 else
5787 no_cache=1
5788 fi
5789
5790 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
698dcdb6
VZ
5791
5792fi
10f2d63a
VZ
5793
5794
5795 eval "$ac_cv_use_bmpbutton"
5796 if test "$no_cache" != 1; then
5797 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
5798 fi
5799
5800 if test "$wxUSE_BMPBUTTON" = yes; then
698dcdb6 5801 echo "$ac_t""yes" 1>&6
10f2d63a 5802 else
698dcdb6 5803 echo "$ac_t""no" 1>&6
10f2d63a 5804 fi
698dcdb6 5805
10f2d63a 5806
1e6feb95 5807 echo $ac_n "checking for --enable-calendar""... $ac_c" 1>&6
19bc6aad 5808echo "configure:5809: checking for --enable-calendar" >&5
1e6feb95
VZ
5809 no_cache=0
5810 # Check whether --enable-calendar or --disable-calendar was given.
5811if test "${enable_calendar+set}" = set; then
5812 enableval="$enable_calendar"
5813
5814 if test "$enableval" = yes; then
5815 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
5816 else
5817 ac_cv_use_calendar='wxUSE_CALCTRL=no'
5818 fi
5819
5820else
5821
5822 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
5823 if test "x$LINE" != x ; then
5824 eval "DEFAULT_$LINE"
5825 else
5826 no_cache=1
5827 fi
5828
5829 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
5830
5831fi
5832
5833
5834 eval "$ac_cv_use_calendar"
5835 if test "$no_cache" != 1; then
5836 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
5837 fi
5838
5839 if test "$wxUSE_CALCTRL" = yes; then
5840 echo "$ac_t""yes" 1>&6
5841 else
5842 echo "$ac_t""no" 1>&6
5843 fi
5844
5845
5846 echo $ac_n "checking for --enable-caret""... $ac_c" 1>&6
19bc6aad 5847echo "configure:5848: checking for --enable-caret" >&5
1e6feb95
VZ
5848 no_cache=0
5849 # Check whether --enable-caret or --disable-caret was given.
5850if test "${enable_caret+set}" = set; then
5851 enableval="$enable_caret"
5852
5853 if test "$enableval" = yes; then
5854 ac_cv_use_caret='wxUSE_CARET=yes'
5855 else
5856 ac_cv_use_caret='wxUSE_CARET=no'
5857 fi
5858
5859else
5860
5861 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
5862 if test "x$LINE" != x ; then
5863 eval "DEFAULT_$LINE"
5864 else
5865 no_cache=1
5866 fi
5867
5868 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
5869
5870fi
5871
5872
5873 eval "$ac_cv_use_caret"
5874 if test "$no_cache" != 1; then
5875 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
5876 fi
5877
5878 if test "$wxUSE_CARET" = yes; then
5879 echo "$ac_t""yes" 1>&6
5880 else
5881 echo "$ac_t""no" 1>&6
5882 fi
5883
5884
698dcdb6 5885 echo $ac_n "checking for --enable-checkbox""... $ac_c" 1>&6
19bc6aad 5886echo "configure:5887: checking for --enable-checkbox" >&5
10f2d63a
VZ
5887 no_cache=0
5888 # Check whether --enable-checkbox or --disable-checkbox was given.
5889if test "${enable_checkbox+set}" = set; then
5890 enableval="$enable_checkbox"
698dcdb6 5891
10f2d63a
VZ
5892 if test "$enableval" = yes; then
5893 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
5894 else
5895 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
5896 fi
698dcdb6 5897
10f2d63a 5898else
698dcdb6 5899
10f2d63a
VZ
5900 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
5901 if test "x$LINE" != x ; then
5902 eval "DEFAULT_$LINE"
5903 else
5904 no_cache=1
5905 fi
5906
5907 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
698dcdb6
VZ
5908
5909fi
10f2d63a
VZ
5910
5911
5912 eval "$ac_cv_use_checkbox"
5913 if test "$no_cache" != 1; then
5914 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
5915 fi
5916
5917 if test "$wxUSE_CHECKBOX" = yes; then
698dcdb6 5918 echo "$ac_t""yes" 1>&6
10f2d63a 5919 else
698dcdb6 5920 echo "$ac_t""no" 1>&6
10f2d63a 5921 fi
698dcdb6 5922
10f2d63a 5923
698dcdb6 5924 echo $ac_n "checking for --enable-checklst""... $ac_c" 1>&6
19bc6aad 5925echo "configure:5926: checking for --enable-checklst" >&5
10f2d63a
VZ
5926 no_cache=0
5927 # Check whether --enable-checklst or --disable-checklst was given.
5928if test "${enable_checklst+set}" = set; then
5929 enableval="$enable_checklst"
698dcdb6 5930
10f2d63a
VZ
5931 if test "$enableval" = yes; then
5932 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
5933 else
5934 ac_cv_use_checklst='wxUSE_CHECKLST=no'
5935 fi
698dcdb6 5936
10f2d63a 5937else
698dcdb6 5938
10f2d63a
VZ
5939 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
5940 if test "x$LINE" != x ; then
5941 eval "DEFAULT_$LINE"
5942 else
5943 no_cache=1
5944 fi
5945
5946 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
698dcdb6
VZ
5947
5948fi
10f2d63a
VZ
5949
5950
5951 eval "$ac_cv_use_checklst"
5952 if test "$no_cache" != 1; then
5953 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
5954 fi
5955
5956 if test "$wxUSE_CHECKLST" = yes; then
698dcdb6 5957 echo "$ac_t""yes" 1>&6
10f2d63a 5958 else
698dcdb6 5959 echo "$ac_t""no" 1>&6
10f2d63a 5960 fi
698dcdb6 5961
10f2d63a 5962
698dcdb6 5963 echo $ac_n "checking for --enable-choice""... $ac_c" 1>&6
19bc6aad 5964echo "configure:5965: checking for --enable-choice" >&5
10f2d63a
VZ
5965 no_cache=0
5966 # Check whether --enable-choice or --disable-choice was given.
5967if test "${enable_choice+set}" = set; then
5968 enableval="$enable_choice"
698dcdb6 5969
10f2d63a
VZ
5970 if test "$enableval" = yes; then
5971 ac_cv_use_choice='wxUSE_CHOICE=yes'
5972 else
5973 ac_cv_use_choice='wxUSE_CHOICE=no'
5974 fi
698dcdb6 5975
10f2d63a 5976else
698dcdb6 5977
10f2d63a
VZ
5978 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
5979 if test "x$LINE" != x ; then
5980 eval "DEFAULT_$LINE"
5981 else
5982 no_cache=1
5983 fi
5984
5985 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
698dcdb6
VZ
5986
5987fi
10f2d63a
VZ
5988
5989
5990 eval "$ac_cv_use_choice"
5991 if test "$no_cache" != 1; then
5992 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
5993 fi
5994
5995 if test "$wxUSE_CHOICE" = yes; then
698dcdb6 5996 echo "$ac_t""yes" 1>&6
10f2d63a 5997 else
698dcdb6 5998 echo "$ac_t""no" 1>&6
10f2d63a 5999 fi
698dcdb6 6000
10f2d63a 6001
698dcdb6 6002 echo $ac_n "checking for --enable-combobox""... $ac_c" 1>&6
19bc6aad 6003echo "configure:6004: checking for --enable-combobox" >&5
10f2d63a
VZ
6004 no_cache=0
6005 # Check whether --enable-combobox or --disable-combobox was given.
6006if test "${enable_combobox+set}" = set; then
6007 enableval="$enable_combobox"
698dcdb6 6008
10f2d63a
VZ
6009 if test "$enableval" = yes; then
6010 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
6011 else
6012 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
6013 fi
698dcdb6 6014
10f2d63a 6015else
698dcdb6 6016
10f2d63a
VZ
6017 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
6018 if test "x$LINE" != x ; then
6019 eval "DEFAULT_$LINE"
6020 else
6021 no_cache=1
6022 fi
6023
6024 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
698dcdb6
VZ
6025
6026fi
10f2d63a
VZ
6027
6028
6029 eval "$ac_cv_use_combobox"
6030 if test "$no_cache" != 1; then
6031 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
6032 fi
6033
6034 if test "$wxUSE_COMBOBOX" = yes; then
698dcdb6 6035 echo "$ac_t""yes" 1>&6
10f2d63a 6036 else
698dcdb6 6037 echo "$ac_t""no" 1>&6
10f2d63a 6038 fi
698dcdb6 6039
10f2d63a 6040
698dcdb6 6041 echo $ac_n "checking for --enable-gauge""... $ac_c" 1>&6
19bc6aad 6042echo "configure:6043: checking for --enable-gauge" >&5
10f2d63a
VZ
6043 no_cache=0
6044 # Check whether --enable-gauge or --disable-gauge was given.
6045if test "${enable_gauge+set}" = set; then
6046 enableval="$enable_gauge"
698dcdb6 6047
10f2d63a
VZ
6048 if test "$enableval" = yes; then
6049 ac_cv_use_gauge='wxUSE_GAUGE=yes'
6050 else
6051 ac_cv_use_gauge='wxUSE_GAUGE=no'
6052 fi
698dcdb6 6053
10f2d63a 6054else
698dcdb6 6055
10f2d63a
VZ
6056 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
6057 if test "x$LINE" != x ; then
6058 eval "DEFAULT_$LINE"
6059 else
6060 no_cache=1
6061 fi
6062
6063 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
698dcdb6
VZ
6064
6065fi
10f2d63a
VZ
6066
6067
6068 eval "$ac_cv_use_gauge"
6069 if test "$no_cache" != 1; then
6070 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
6071 fi
6072
6073 if test "$wxUSE_GAUGE" = yes; then
698dcdb6 6074 echo "$ac_t""yes" 1>&6
10f2d63a 6075 else
698dcdb6 6076 echo "$ac_t""no" 1>&6
10f2d63a 6077 fi
698dcdb6 6078
10f2d63a 6079
698dcdb6 6080 echo $ac_n "checking for --enable-grid""... $ac_c" 1>&6
19bc6aad 6081echo "configure:6082: checking for --enable-grid" >&5
10f2d63a
VZ
6082 no_cache=0
6083 # Check whether --enable-grid or --disable-grid was given.
6084if test "${enable_grid+set}" = set; then
6085 enableval="$enable_grid"
698dcdb6 6086
10f2d63a
VZ
6087 if test "$enableval" = yes; then
6088 ac_cv_use_grid='wxUSE_GRID=yes'
6089 else
6090 ac_cv_use_grid='wxUSE_GRID=no'
6091 fi
698dcdb6 6092
10f2d63a 6093else
698dcdb6 6094
10f2d63a
VZ
6095 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
6096 if test "x$LINE" != x ; then
6097 eval "DEFAULT_$LINE"
6098 else
6099 no_cache=1
6100 fi
6101
6102 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
698dcdb6
VZ
6103
6104fi
10f2d63a
VZ
6105
6106
6107 eval "$ac_cv_use_grid"
6108 if test "$no_cache" != 1; then
6109 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
6110 fi
6111
6112 if test "$wxUSE_GRID" = yes; then
698dcdb6 6113 echo "$ac_t""yes" 1>&6
10f2d63a 6114 else
698dcdb6 6115 echo "$ac_t""no" 1>&6
10f2d63a 6116 fi
698dcdb6 6117
10f2d63a 6118
698dcdb6 6119 echo $ac_n "checking for --enable-newgrid""... $ac_c" 1>&6
19bc6aad 6120echo "configure:6121: checking for --enable-newgrid" >&5
10f2d63a
VZ
6121 no_cache=0
6122 # Check whether --enable-newgrid or --disable-newgrid was given.
6123if test "${enable_newgrid+set}" = set; then
6124 enableval="$enable_newgrid"
698dcdb6 6125
10f2d63a
VZ
6126 if test "$enableval" = yes; then
6127 ac_cv_use_newgrid='wxUSE_NEW_GRID=yes'
6128 else
6129 ac_cv_use_newgrid='wxUSE_NEW_GRID=no'
6130 fi
698dcdb6 6131
10f2d63a 6132else
698dcdb6 6133
10f2d63a
VZ
6134 LINE=`grep "wxUSE_NEW_GRID" ${wx_arg_cache_file}`
6135 if test "x$LINE" != x ; then
6136 eval "DEFAULT_$LINE"
6137 else
6138 no_cache=1
6139 fi
6140
6141 ac_cv_use_newgrid='wxUSE_NEW_GRID='$DEFAULT_wxUSE_NEW_GRID
698dcdb6
VZ
6142
6143fi
10f2d63a
VZ
6144
6145
6146 eval "$ac_cv_use_newgrid"
6147 if test "$no_cache" != 1; then
6148 echo $ac_cv_use_newgrid >> ${wx_arg_cache_file}.tmp
6149 fi
6150
6151 if test "$wxUSE_NEW_GRID" = yes; then
698dcdb6 6152 echo "$ac_t""yes" 1>&6
10f2d63a 6153 else
698dcdb6 6154 echo "$ac_t""no" 1>&6
10f2d63a 6155 fi
698dcdb6 6156
10f2d63a 6157
698dcdb6 6158 echo $ac_n "checking for --enable-imaglist""... $ac_c" 1>&6
19bc6aad 6159echo "configure:6160: checking for --enable-imaglist" >&5
10f2d63a
VZ
6160 no_cache=0
6161 # Check whether --enable-imaglist or --disable-imaglist was given.
6162if test "${enable_imaglist+set}" = set; then
6163 enableval="$enable_imaglist"
698dcdb6 6164
10f2d63a
VZ
6165 if test "$enableval" = yes; then
6166 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
6167 else
6168 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
6169 fi
698dcdb6 6170
10f2d63a 6171else
698dcdb6 6172
10f2d63a
VZ
6173 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
6174 if test "x$LINE" != x ; then
6175 eval "DEFAULT_$LINE"
6176 else
6177 no_cache=1
6178 fi
6179
6180 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
698dcdb6
VZ
6181
6182fi
10f2d63a
VZ
6183
6184
6185 eval "$ac_cv_use_imaglist"
6186 if test "$no_cache" != 1; then
6187 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
6188 fi
6189
6190 if test "$wxUSE_IMAGLIST" = yes; then
698dcdb6 6191 echo "$ac_t""yes" 1>&6
10f2d63a 6192 else
698dcdb6 6193 echo "$ac_t""no" 1>&6
10f2d63a 6194 fi
698dcdb6 6195
10f2d63a 6196
698dcdb6 6197 echo $ac_n "checking for --enable-listbox""... $ac_c" 1>&6
19bc6aad 6198echo "configure:6199: checking for --enable-listbox" >&5
10f2d63a
VZ
6199 no_cache=0
6200 # Check whether --enable-listbox or --disable-listbox was given.
6201if test "${enable_listbox+set}" = set; then
6202 enableval="$enable_listbox"
698dcdb6 6203
10f2d63a
VZ
6204 if test "$enableval" = yes; then
6205 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
6206 else
6207 ac_cv_use_listbox='wxUSE_LISTBOX=no'
6208 fi
698dcdb6 6209
10f2d63a 6210else
698dcdb6 6211
10f2d63a
VZ
6212 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
6213 if test "x$LINE" != x ; then
6214 eval "DEFAULT_$LINE"
6215 else
6216 no_cache=1
6217 fi
6218
6219 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
698dcdb6
VZ
6220
6221fi
10f2d63a
VZ
6222
6223
6224 eval "$ac_cv_use_listbox"
6225 if test "$no_cache" != 1; then
6226 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
6227 fi
6228
6229 if test "$wxUSE_LISTBOX" = yes; then
698dcdb6 6230 echo "$ac_t""yes" 1>&6
10f2d63a 6231 else
698dcdb6 6232 echo "$ac_t""no" 1>&6
10f2d63a 6233 fi
698dcdb6 6234
10f2d63a 6235
698dcdb6 6236 echo $ac_n "checking for --enable-listctrl""... $ac_c" 1>&6
19bc6aad 6237echo "configure:6238: checking for --enable-listctrl" >&5
10f2d63a
VZ
6238 no_cache=0
6239 # Check whether --enable-listctrl or --disable-listctrl was given.
6240if test "${enable_listctrl+set}" = set; then
6241 enableval="$enable_listctrl"
698dcdb6 6242
10f2d63a
VZ
6243 if test "$enableval" = yes; then
6244 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
6245 else
6246 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
6247 fi
698dcdb6 6248
10f2d63a 6249else
698dcdb6 6250
10f2d63a
VZ
6251 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
6252 if test "x$LINE" != x ; then
6253 eval "DEFAULT_$LINE"
6254 else
6255 no_cache=1
6256 fi
6257
6258 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
698dcdb6
VZ
6259
6260fi
10f2d63a
VZ
6261
6262
6263 eval "$ac_cv_use_listctrl"
6264 if test "$no_cache" != 1; then
6265 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
6266 fi
6267
6268 if test "$wxUSE_LISTCTRL" = yes; then
698dcdb6 6269 echo "$ac_t""yes" 1>&6
10f2d63a 6270 else
698dcdb6 6271 echo "$ac_t""no" 1>&6
10f2d63a 6272 fi
698dcdb6 6273
10f2d63a 6274
698dcdb6 6275 echo $ac_n "checking for --enable-notebook""... $ac_c" 1>&6
19bc6aad 6276echo "configure:6277: checking for --enable-notebook" >&5
10f2d63a
VZ
6277 no_cache=0
6278 # Check whether --enable-notebook or --disable-notebook was given.
6279if test "${enable_notebook+set}" = set; then
6280 enableval="$enable_notebook"
698dcdb6 6281
10f2d63a
VZ
6282 if test "$enableval" = yes; then
6283 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
6284 else
6285 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
6286 fi
698dcdb6 6287
10f2d63a 6288else
698dcdb6 6289
10f2d63a
VZ
6290 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
6291 if test "x$LINE" != x ; then
6292 eval "DEFAULT_$LINE"
6293 else
6294 no_cache=1
6295 fi
6296
6297 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
698dcdb6
VZ
6298
6299fi
10f2d63a
VZ
6300
6301
6302 eval "$ac_cv_use_notebook"
6303 if test "$no_cache" != 1; then
6304 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
6305 fi
6306
6307 if test "$wxUSE_NOTEBOOK" = yes; then
698dcdb6 6308 echo "$ac_t""yes" 1>&6
10f2d63a 6309 else
698dcdb6 6310 echo "$ac_t""no" 1>&6
10f2d63a 6311 fi
698dcdb6 6312
10f2d63a 6313
24176f2c 6314 echo $ac_n "checking for --enable-propsheet""... $ac_c" 1>&6
19bc6aad 6315echo "configure:6316: checking for --enable-propsheet" >&5
24176f2c
GD
6316 no_cache=0
6317 # Check whether --enable-propsheet or --disable-propsheet was given.
6318if test "${enable_propsheet+set}" = set; then
6319 enableval="$enable_propsheet"
6320
6321 if test "$enableval" = yes; then
6322 ac_cv_use_propsheet='wxUSE_PROPSHEET=yes'
6323 else
6324 ac_cv_use_propsheet='wxUSE_PROPSHEET=no'
6325 fi
6326
6327else
6328
6329 LINE=`grep "wxUSE_PROPSHEET" ${wx_arg_cache_file}`
6330 if test "x$LINE" != x ; then
6331 eval "DEFAULT_$LINE"
6332 else
6333 no_cache=1
6334 fi
6335
6336 ac_cv_use_propsheet='wxUSE_PROPSHEET='$DEFAULT_wxUSE_PROPSHEET
6337
6338fi
6339
6340
6341 eval "$ac_cv_use_propsheet"
6342 if test "$no_cache" != 1; then
6343 echo $ac_cv_use_propsheet >> ${wx_arg_cache_file}.tmp
6344 fi
6345
6346 if test "$wxUSE_PROPSHEET" = yes; then
6347 echo "$ac_t""yes" 1>&6
6348 else
6349 echo "$ac_t""no" 1>&6
6350 fi
6351
6352
698dcdb6 6353 echo $ac_n "checking for --enable-radiobox""... $ac_c" 1>&6
19bc6aad 6354echo "configure:6355: checking for --enable-radiobox" >&5
10f2d63a
VZ
6355 no_cache=0
6356 # Check whether --enable-radiobox or --disable-radiobox was given.
6357if test "${enable_radiobox+set}" = set; then
6358 enableval="$enable_radiobox"
698dcdb6 6359
10f2d63a
VZ
6360 if test "$enableval" = yes; then
6361 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
6362 else
6363 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
6364 fi
698dcdb6 6365
10f2d63a 6366else
698dcdb6 6367
10f2d63a
VZ
6368 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
6369 if test "x$LINE" != x ; then
6370 eval "DEFAULT_$LINE"
6371 else
6372 no_cache=1
6373 fi
6374
6375 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
698dcdb6
VZ
6376
6377fi
10f2d63a
VZ
6378
6379
6380 eval "$ac_cv_use_radiobox"
6381 if test "$no_cache" != 1; then
6382 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
6383 fi
6384
6385 if test "$wxUSE_RADIOBOX" = yes; then
698dcdb6 6386 echo "$ac_t""yes" 1>&6
10f2d63a 6387 else
698dcdb6 6388 echo "$ac_t""no" 1>&6
10f2d63a 6389 fi
698dcdb6 6390
10f2d63a 6391
698dcdb6 6392 echo $ac_n "checking for --enable-radiobtn""... $ac_c" 1>&6
19bc6aad 6393echo "configure:6394: checking for --enable-radiobtn" >&5
10f2d63a
VZ
6394 no_cache=0
6395 # Check whether --enable-radiobtn or --disable-radiobtn was given.
6396if test "${enable_radiobtn+set}" = set; then
6397 enableval="$enable_radiobtn"
698dcdb6 6398
10f2d63a
VZ
6399 if test "$enableval" = yes; then
6400 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
6401 else
6402 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
6403 fi
698dcdb6 6404
10f2d63a 6405else
698dcdb6 6406
10f2d63a
VZ
6407 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
6408 if test "x$LINE" != x ; then
6409 eval "DEFAULT_$LINE"
6410 else
6411 no_cache=1
6412 fi
6413
6414 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
698dcdb6
VZ
6415
6416fi
10f2d63a
VZ
6417
6418
6419 eval "$ac_cv_use_radiobtn"
6420 if test "$no_cache" != 1; then
6421 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
6422 fi
6423
6424 if test "$wxUSE_RADIOBTN" = yes; then
698dcdb6 6425 echo "$ac_t""yes" 1>&6
10f2d63a 6426 else
698dcdb6 6427 echo "$ac_t""no" 1>&6
10f2d63a 6428 fi
698dcdb6 6429
10f2d63a 6430
698dcdb6 6431 echo $ac_n "checking for --enable-sash""... $ac_c" 1>&6
19bc6aad 6432echo "configure:6433: checking for --enable-sash" >&5
10f2d63a
VZ
6433 no_cache=0
6434 # Check whether --enable-sash or --disable-sash was given.
6435if test "${enable_sash+set}" = set; then
6436 enableval="$enable_sash"
698dcdb6 6437
10f2d63a
VZ
6438 if test "$enableval" = yes; then
6439 ac_cv_use_sash='wxUSE_SASH=yes'
6440 else
6441 ac_cv_use_sash='wxUSE_SASH=no'
6442 fi
698dcdb6 6443
10f2d63a 6444else
698dcdb6 6445
10f2d63a
VZ
6446 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
6447 if test "x$LINE" != x ; then
6448 eval "DEFAULT_$LINE"
6449 else
6450 no_cache=1
6451 fi
6452
6453 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
698dcdb6
VZ
6454
6455fi
10f2d63a
VZ
6456
6457
6458 eval "$ac_cv_use_sash"
6459 if test "$no_cache" != 1; then
6460 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
6461 fi
6462
6463 if test "$wxUSE_SASH" = yes; then
698dcdb6 6464 echo "$ac_t""yes" 1>&6
10f2d63a 6465 else
698dcdb6 6466 echo "$ac_t""no" 1>&6
10f2d63a 6467 fi
698dcdb6 6468
10f2d63a 6469
698dcdb6 6470 echo $ac_n "checking for --enable-scrollbar""... $ac_c" 1>&6
19bc6aad 6471echo "configure:6472: checking for --enable-scrollbar" >&5
10f2d63a
VZ
6472 no_cache=0
6473 # Check whether --enable-scrollbar or --disable-scrollbar was given.
6474if test "${enable_scrollbar+set}" = set; then
6475 enableval="$enable_scrollbar"
698dcdb6 6476
10f2d63a
VZ
6477 if test "$enableval" = yes; then
6478 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
6479 else
6480 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
6481 fi
698dcdb6 6482
10f2d63a 6483else
698dcdb6 6484
10f2d63a
VZ
6485 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
6486 if test "x$LINE" != x ; then
6487 eval "DEFAULT_$LINE"
6488 else
6489 no_cache=1
6490 fi
6491
6492 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
698dcdb6
VZ
6493
6494fi
10f2d63a
VZ
6495
6496
6497 eval "$ac_cv_use_scrollbar"
6498 if test "$no_cache" != 1; then
6499 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
6500 fi
6501
6502 if test "$wxUSE_SCROLLBAR" = yes; then
698dcdb6 6503 echo "$ac_t""yes" 1>&6
10f2d63a 6504 else
698dcdb6 6505 echo "$ac_t""no" 1>&6
10f2d63a 6506 fi
698dcdb6 6507
10f2d63a 6508
698dcdb6 6509 echo $ac_n "checking for --enable-slider""... $ac_c" 1>&6
19bc6aad 6510echo "configure:6511: checking for --enable-slider" >&5
10f2d63a
VZ
6511 no_cache=0
6512 # Check whether --enable-slider or --disable-slider was given.
6513if test "${enable_slider+set}" = set; then
6514 enableval="$enable_slider"
698dcdb6 6515
10f2d63a
VZ
6516 if test "$enableval" = yes; then
6517 ac_cv_use_slider='wxUSE_SLIDER=yes'
6518 else
6519 ac_cv_use_slider='wxUSE_SLIDER=no'
6520 fi
698dcdb6 6521
10f2d63a 6522else
698dcdb6 6523
10f2d63a
VZ
6524 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
6525 if test "x$LINE" != x ; then
6526 eval "DEFAULT_$LINE"
6527 else
6528 no_cache=1
6529 fi
6530
6531 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
698dcdb6
VZ
6532
6533fi
10f2d63a
VZ
6534
6535
6536 eval "$ac_cv_use_slider"
6537 if test "$no_cache" != 1; then
6538 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
6539 fi
6540
6541 if test "$wxUSE_SLIDER" = yes; then
698dcdb6 6542 echo "$ac_t""yes" 1>&6
10f2d63a 6543 else
698dcdb6 6544 echo "$ac_t""no" 1>&6
10f2d63a 6545 fi
698dcdb6 6546
10f2d63a 6547
698dcdb6 6548 echo $ac_n "checking for --enable-spinbtn""... $ac_c" 1>&6
19bc6aad 6549echo "configure:6550: checking for --enable-spinbtn" >&5
10f2d63a
VZ
6550 no_cache=0
6551 # Check whether --enable-spinbtn or --disable-spinbtn was given.
6552if test "${enable_spinbtn+set}" = set; then
6553 enableval="$enable_spinbtn"
698dcdb6 6554
10f2d63a
VZ
6555 if test "$enableval" = yes; then
6556 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
6557 else
6558 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
6559 fi
698dcdb6 6560
10f2d63a 6561else
698dcdb6 6562
10f2d63a
VZ
6563 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
6564 if test "x$LINE" != x ; then
6565 eval "DEFAULT_$LINE"
6566 else
6567 no_cache=1
6568 fi
6569
6570 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
698dcdb6
VZ
6571
6572fi
10f2d63a
VZ
6573
6574
6575 eval "$ac_cv_use_spinbtn"
6576 if test "$no_cache" != 1; then
6577 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
6578 fi
6579
6580 if test "$wxUSE_SPINBTN" = yes; then
698dcdb6 6581 echo "$ac_t""yes" 1>&6
10f2d63a 6582 else
698dcdb6 6583 echo "$ac_t""no" 1>&6
10f2d63a 6584 fi
698dcdb6 6585
10f2d63a 6586
698dcdb6 6587 echo $ac_n "checking for --enable-spinctrl""... $ac_c" 1>&6
19bc6aad 6588echo "configure:6589: checking for --enable-spinctrl" >&5
56cfaa52
RR
6589 no_cache=0
6590 # Check whether --enable-spinctrl or --disable-spinctrl was given.
6591if test "${enable_spinctrl+set}" = set; then
6592 enableval="$enable_spinctrl"
698dcdb6 6593
56cfaa52
RR
6594 if test "$enableval" = yes; then
6595 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
6596 else
6597 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
6598 fi
698dcdb6 6599
56cfaa52 6600else
698dcdb6 6601
56cfaa52
RR
6602 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
6603 if test "x$LINE" != x ; then
6604 eval "DEFAULT_$LINE"
6605 else
6606 no_cache=1
6607 fi
6608
6609 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
698dcdb6
VZ
6610
6611fi
56cfaa52
RR
6612
6613
6614 eval "$ac_cv_use_spinctrl"
6615 if test "$no_cache" != 1; then
6616 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
6617 fi
6618
6619 if test "$wxUSE_SPINCTRL" = yes; then
698dcdb6 6620 echo "$ac_t""yes" 1>&6
56cfaa52 6621 else
698dcdb6 6622 echo "$ac_t""no" 1>&6
56cfaa52 6623 fi
698dcdb6 6624
56cfaa52 6625
698dcdb6 6626 echo $ac_n "checking for --enable-splitter""... $ac_c" 1>&6
19bc6aad 6627echo "configure:6628: checking for --enable-splitter" >&5
10f2d63a
VZ
6628 no_cache=0
6629 # Check whether --enable-splitter or --disable-splitter was given.
6630if test "${enable_splitter+set}" = set; then
6631 enableval="$enable_splitter"
698dcdb6 6632
10f2d63a
VZ
6633 if test "$enableval" = yes; then
6634 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
6635 else
6636 ac_cv_use_splitter='wxUSE_SPLITTER=no'
6637 fi
698dcdb6 6638
10f2d63a 6639else
698dcdb6 6640
10f2d63a
VZ
6641 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
6642 if test "x$LINE" != x ; then
6643 eval "DEFAULT_$LINE"
6644 else
6645 no_cache=1
6646 fi
6647
6648 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
698dcdb6
VZ
6649
6650fi
10f2d63a
VZ
6651
6652
6653 eval "$ac_cv_use_splitter"
6654 if test "$no_cache" != 1; then
6655 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
6656 fi
6657
6658 if test "$wxUSE_SPLITTER" = yes; then
698dcdb6 6659 echo "$ac_t""yes" 1>&6
10f2d63a 6660 else
698dcdb6 6661 echo "$ac_t""no" 1>&6
10f2d63a 6662 fi
698dcdb6 6663
10f2d63a 6664
698dcdb6 6665 echo $ac_n "checking for --enable-statbmp""... $ac_c" 1>&6
19bc6aad 6666echo "configure:6667: checking for --enable-statbmp" >&5
10f2d63a
VZ
6667 no_cache=0
6668 # Check whether --enable-statbmp or --disable-statbmp was given.
6669if test "${enable_statbmp+set}" = set; then
6670 enableval="$enable_statbmp"
698dcdb6 6671
10f2d63a
VZ
6672 if test "$enableval" = yes; then
6673 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
6674 else
6675 ac_cv_use_statbmp='wxUSE_STATBMP=no'
6676 fi
698dcdb6 6677
10f2d63a 6678else
698dcdb6 6679
10f2d63a
VZ
6680 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
6681 if test "x$LINE" != x ; then
6682 eval "DEFAULT_$LINE"
6683 else
6684 no_cache=1
6685 fi
6686
6687 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
698dcdb6
VZ
6688
6689fi
10f2d63a
VZ
6690
6691
6692 eval "$ac_cv_use_statbmp"
6693 if test "$no_cache" != 1; then
6694 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
6695 fi
6696
6697 if test "$wxUSE_STATBMP" = yes; then
698dcdb6 6698 echo "$ac_t""yes" 1>&6
10f2d63a 6699 else
698dcdb6 6700 echo "$ac_t""no" 1>&6
10f2d63a 6701 fi
698dcdb6 6702
10f2d63a 6703
698dcdb6 6704 echo $ac_n "checking for --enable-statbox""... $ac_c" 1>&6
19bc6aad 6705echo "configure:6706: checking for --enable-statbox" >&5
10f2d63a
VZ
6706 no_cache=0
6707 # Check whether --enable-statbox or --disable-statbox was given.
6708if test "${enable_statbox+set}" = set; then
6709 enableval="$enable_statbox"
698dcdb6 6710
10f2d63a
VZ
6711 if test "$enableval" = yes; then
6712 ac_cv_use_statbox='wxUSE_STATBOX=yes'
6713 else
6714 ac_cv_use_statbox='wxUSE_STATBOX=no'
6715 fi
698dcdb6 6716
10f2d63a 6717else
698dcdb6 6718
10f2d63a
VZ
6719 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
6720 if test "x$LINE" != x ; then
6721 eval "DEFAULT_$LINE"
6722 else
6723 no_cache=1
6724 fi
6725
6726 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
698dcdb6
VZ
6727
6728fi
10f2d63a
VZ
6729
6730
6731 eval "$ac_cv_use_statbox"
6732 if test "$no_cache" != 1; then
6733 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
6734 fi
6735
6736 if test "$wxUSE_STATBOX" = yes; then
698dcdb6 6737 echo "$ac_t""yes" 1>&6
10f2d63a 6738 else
698dcdb6 6739 echo "$ac_t""no" 1>&6
10f2d63a 6740 fi
698dcdb6 6741
10f2d63a 6742
698dcdb6 6743 echo $ac_n "checking for --enable-statline""... $ac_c" 1>&6
19bc6aad 6744echo "configure:6745: checking for --enable-statline" >&5
10f2d63a
VZ
6745 no_cache=0
6746 # Check whether --enable-statline or --disable-statline was given.
6747if test "${enable_statline+set}" = set; then
6748 enableval="$enable_statline"
698dcdb6 6749
10f2d63a
VZ
6750 if test "$enableval" = yes; then
6751 ac_cv_use_statline='wxUSE_STATLINE=yes'
6752 else
6753 ac_cv_use_statline='wxUSE_STATLINE=no'
6754 fi
698dcdb6 6755
10f2d63a 6756else
698dcdb6 6757
10f2d63a
VZ
6758 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
6759 if test "x$LINE" != x ; then
6760 eval "DEFAULT_$LINE"
6761 else
6762 no_cache=1
6763 fi
6764
6765 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
698dcdb6
VZ
6766
6767fi
10f2d63a
VZ
6768
6769
6770 eval "$ac_cv_use_statline"
6771 if test "$no_cache" != 1; then
6772 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
6773 fi
6774
6775 if test "$wxUSE_STATLINE" = yes; then
698dcdb6 6776 echo "$ac_t""yes" 1>&6
10f2d63a 6777 else
698dcdb6 6778 echo "$ac_t""no" 1>&6
10f2d63a 6779 fi
698dcdb6 6780
10f2d63a 6781
1e6feb95 6782 echo $ac_n "checking for --enable-stattext""... $ac_c" 1>&6
19bc6aad 6783echo "configure:6784: checking for --enable-stattext" >&5
1e6feb95
VZ
6784 no_cache=0
6785 # Check whether --enable-stattext or --disable-stattext was given.
6786if test "${enable_stattext+set}" = set; then
6787 enableval="$enable_stattext"
6788
6789 if test "$enableval" = yes; then
6790 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
6791 else
6792 ac_cv_use_stattext='wxUSE_STATTEXT=no'
6793 fi
6794
6795else
6796
6797 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
6798 if test "x$LINE" != x ; then
6799 eval "DEFAULT_$LINE"
6800 else
6801 no_cache=1
6802 fi
6803
6804 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
6805
6806fi
6807
6808
6809 eval "$ac_cv_use_stattext"
6810 if test "$no_cache" != 1; then
6811 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
6812 fi
6813
6814 if test "$wxUSE_STATTEXT" = yes; then
6815 echo "$ac_t""yes" 1>&6
6816 else
6817 echo "$ac_t""no" 1>&6
6818 fi
6819
6820
698dcdb6 6821 echo $ac_n "checking for --enable-statusbar""... $ac_c" 1>&6
19bc6aad 6822echo "configure:6823: checking for --enable-statusbar" >&5
10f2d63a
VZ
6823 no_cache=0
6824 # Check whether --enable-statusbar or --disable-statusbar was given.
6825if test "${enable_statusbar+set}" = set; then
6826 enableval="$enable_statusbar"
698dcdb6 6827
10f2d63a
VZ
6828 if test "$enableval" = yes; then
6829 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
6830 else
6831 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
6832 fi
698dcdb6 6833
10f2d63a 6834else
698dcdb6 6835
10f2d63a
VZ
6836 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
6837 if test "x$LINE" != x ; then
6838 eval "DEFAULT_$LINE"
6839 else
6840 no_cache=1
6841 fi
6842
6843 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
698dcdb6
VZ
6844
6845fi
10f2d63a
VZ
6846
6847
6848 eval "$ac_cv_use_statusbar"
6849 if test "$no_cache" != 1; then
6850 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
6851 fi
6852
6853 if test "$wxUSE_STATUSBAR" = yes; then
698dcdb6 6854 echo "$ac_t""yes" 1>&6
10f2d63a 6855 else
698dcdb6 6856 echo "$ac_t""no" 1>&6
10f2d63a 6857 fi
698dcdb6 6858
10f2d63a 6859
698dcdb6 6860 echo $ac_n "checking for --enable-tabdialog""... $ac_c" 1>&6
19bc6aad 6861echo "configure:6862: checking for --enable-tabdialog" >&5
10f2d63a
VZ
6862 no_cache=0
6863 # Check whether --enable-tabdialog or --disable-tabdialog was given.
6864if test "${enable_tabdialog+set}" = set; then
6865 enableval="$enable_tabdialog"
698dcdb6 6866
10f2d63a
VZ
6867 if test "$enableval" = yes; then
6868 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
6869 else
6870 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
6871 fi
698dcdb6 6872
10f2d63a 6873else
698dcdb6 6874
10f2d63a
VZ
6875 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
6876 if test "x$LINE" != x ; then
6877 eval "DEFAULT_$LINE"
6878 else
6879 no_cache=1
6880 fi
6881
6882 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
698dcdb6
VZ
6883
6884fi
10f2d63a
VZ
6885
6886
6887 eval "$ac_cv_use_tabdialog"
6888 if test "$no_cache" != 1; then
6889 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
6890 fi
6891
6892 if test "$wxUSE_TABDIALOG" = yes; then
698dcdb6 6893 echo "$ac_t""yes" 1>&6
10f2d63a 6894 else
698dcdb6 6895 echo "$ac_t""no" 1>&6
10f2d63a 6896 fi
698dcdb6 6897
10f2d63a 6898
1e6feb95 6899 echo $ac_n "checking for --enable-textctrl""... $ac_c" 1>&6
19bc6aad 6900echo "configure:6901: checking for --enable-textctrl" >&5
1e6feb95
VZ
6901 no_cache=0
6902 # Check whether --enable-textctrl or --disable-textctrl was given.
6903if test "${enable_textctrl+set}" = set; then
6904 enableval="$enable_textctrl"
6905
6906 if test "$enableval" = yes; then
6907 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
6908 else
6909 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
6910 fi
6911
6912else
6913
6914 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
6915 if test "x$LINE" != x ; then
6916 eval "DEFAULT_$LINE"
6917 else
6918 no_cache=1
6919 fi
6920
6921 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
6922
6923fi
6924
6925
6926 eval "$ac_cv_use_textctrl"
6927 if test "$no_cache" != 1; then
6928 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
6929 fi
6930
6931 if test "$wxUSE_TEXTCTRL" = yes; then
6932 echo "$ac_t""yes" 1>&6
6933 else
6934 echo "$ac_t""no" 1>&6
6935 fi
6936
6937
698dcdb6 6938 echo $ac_n "checking for --enable-togglebtn""... $ac_c" 1>&6
19bc6aad 6939echo "configure:6940: checking for --enable-togglebtn" >&5
1db8dc4a
VZ
6940 no_cache=0
6941 # Check whether --enable-togglebtn or --disable-togglebtn was given.
6942if test "${enable_togglebtn+set}" = set; then
6943 enableval="$enable_togglebtn"
698dcdb6 6944
1db8dc4a
VZ
6945 if test "$enableval" = yes; then
6946 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
6947 else
6948 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
6949 fi
698dcdb6 6950
1db8dc4a 6951else
698dcdb6 6952
1db8dc4a
VZ
6953 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
6954 if test "x$LINE" != x ; then
6955 eval "DEFAULT_$LINE"
6956 else
6957 no_cache=1
6958 fi
6959
6960 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
698dcdb6
VZ
6961
6962fi
1db8dc4a
VZ
6963
6964
6965 eval "$ac_cv_use_togglebtn"
6966 if test "$no_cache" != 1; then
6967 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
6968 fi
6969
6970 if test "$wxUSE_TOGGLEBTN" = yes; then
698dcdb6 6971 echo "$ac_t""yes" 1>&6
1db8dc4a 6972 else
698dcdb6 6973 echo "$ac_t""no" 1>&6
1db8dc4a 6974 fi
698dcdb6 6975
1db8dc4a 6976
698dcdb6 6977 echo $ac_n "checking for --enable-toolbar""... $ac_c" 1>&6
19bc6aad 6978echo "configure:6979: checking for --enable-toolbar" >&5
10f2d63a
VZ
6979 no_cache=0
6980 # Check whether --enable-toolbar or --disable-toolbar was given.
6981if test "${enable_toolbar+set}" = set; then
6982 enableval="$enable_toolbar"
698dcdb6 6983
10f2d63a
VZ
6984 if test "$enableval" = yes; then
6985 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
6986 else
6987 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
6988 fi
698dcdb6 6989
10f2d63a 6990else
698dcdb6 6991
10f2d63a
VZ
6992 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
6993 if test "x$LINE" != x ; then
6994 eval "DEFAULT_$LINE"
6995 else
6996 no_cache=1
6997 fi
6998
6999 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
698dcdb6
VZ
7000
7001fi
10f2d63a
VZ
7002
7003
7004 eval "$ac_cv_use_toolbar"
7005 if test "$no_cache" != 1; then
7006 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
7007 fi
7008
7009 if test "$wxUSE_TOOLBAR" = yes; then
698dcdb6 7010 echo "$ac_t""yes" 1>&6
10f2d63a 7011 else
698dcdb6 7012 echo "$ac_t""no" 1>&6
10f2d63a 7013 fi
698dcdb6 7014
10f2d63a 7015
698dcdb6 7016 echo $ac_n "checking for --enable-tbarnative""... $ac_c" 1>&6
19bc6aad 7017echo "configure:7018: checking for --enable-tbarnative" >&5
360d6699
VZ
7018 no_cache=0
7019 # Check whether --enable-tbarnative or --disable-tbarnative was given.
7020if test "${enable_tbarnative+set}" = set; then
7021 enableval="$enable_tbarnative"
698dcdb6 7022
360d6699
VZ
7023 if test "$enableval" = yes; then
7024 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
7025 else
7026 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
7027 fi
698dcdb6 7028
360d6699 7029else
698dcdb6 7030
360d6699
VZ
7031 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
7032 if test "x$LINE" != x ; then
7033 eval "DEFAULT_$LINE"
7034 else
7035 no_cache=1
7036 fi
7037
7038 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
698dcdb6
VZ
7039
7040fi
360d6699
VZ
7041
7042
7043 eval "$ac_cv_use_tbarnative"
7044 if test "$no_cache" != 1; then
7045 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
7046 fi
7047
7048 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
698dcdb6 7049 echo "$ac_t""yes" 1>&6
360d6699 7050 else
698dcdb6 7051 echo "$ac_t""no" 1>&6
360d6699 7052 fi
698dcdb6 7053
360d6699 7054
698dcdb6 7055 echo $ac_n "checking for --enable-tbarsmpl""... $ac_c" 1>&6
19bc6aad 7056echo "configure:7057: checking for --enable-tbarsmpl" >&5
360d6699
VZ
7057 no_cache=0
7058 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
7059if test "${enable_tbarsmpl+set}" = set; then
7060 enableval="$enable_tbarsmpl"
698dcdb6 7061
360d6699
VZ
7062 if test "$enableval" = yes; then
7063 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
7064 else
7065 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
7066 fi
698dcdb6 7067
360d6699 7068else
698dcdb6 7069
360d6699
VZ
7070 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
7071 if test "x$LINE" != x ; then
7072 eval "DEFAULT_$LINE"
7073 else
7074 no_cache=1
7075 fi
7076
7077 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
698dcdb6
VZ
7078
7079fi
360d6699
VZ
7080
7081
7082 eval "$ac_cv_use_tbarsmpl"
7083 if test "$no_cache" != 1; then
7084 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
7085 fi
7086
7087 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
698dcdb6 7088 echo "$ac_t""yes" 1>&6
360d6699 7089 else
698dcdb6 7090 echo "$ac_t""no" 1>&6
360d6699 7091 fi
698dcdb6 7092
360d6699 7093
698dcdb6 7094 echo $ac_n "checking for --enable-treectrl""... $ac_c" 1>&6
19bc6aad 7095echo "configure:7096: checking for --enable-treectrl" >&5
10f2d63a
VZ
7096 no_cache=0
7097 # Check whether --enable-treectrl or --disable-treectrl was given.
7098if test "${enable_treectrl+set}" = set; then
7099 enableval="$enable_treectrl"
698dcdb6 7100
10f2d63a
VZ
7101 if test "$enableval" = yes; then
7102 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
7103 else
7104 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
7105 fi
698dcdb6 7106
10f2d63a 7107else
698dcdb6 7108
10f2d63a
VZ
7109 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
7110 if test "x$LINE" != x ; then
7111 eval "DEFAULT_$LINE"
7112 else
7113 no_cache=1
7114 fi
7115
7116 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
698dcdb6
VZ
7117
7118fi
10f2d63a
VZ
7119
7120
1e6feb95
VZ
7121 eval "$ac_cv_use_treectrl"
7122 if test "$no_cache" != 1; then
7123 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
7124 fi
7125
7126 if test "$wxUSE_TREECTRL" = yes; then
7127 echo "$ac_t""yes" 1>&6
7128 else
7129 echo "$ac_t""no" 1>&6
7130 fi
7131
7132
9926e4a4 7133 echo $ac_n "checking for --enable-tipwindow""... $ac_c" 1>&6
19bc6aad 7134echo "configure:7135: checking for --enable-tipwindow" >&5
9926e4a4
VZ
7135 no_cache=0
7136 # Check whether --enable-tipwindow or --disable-tipwindow was given.
7137if test "${enable_tipwindow+set}" = set; then
7138 enableval="$enable_tipwindow"
7139
7140 if test "$enableval" = yes; then
7141 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
7142 else
7143 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
7144 fi
7145
7146else
7147
7148 LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
7149 if test "x$LINE" != x ; then
7150 eval "DEFAULT_$LINE"
7151 else
7152 no_cache=1
7153 fi
7154
7155 ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
7156
7157fi
7158
7159
7160 eval "$ac_cv_use_tipwindow"
7161 if test "$no_cache" != 1; then
7162 echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
7163 fi
7164
7165 if test "$wxUSE_TIPWINDOW" = yes; then
7166 echo "$ac_t""yes" 1>&6
7167 else
7168 echo "$ac_t""no" 1>&6
7169 fi
7170
7171
9f41d601 7172 echo $ac_n "checking for --enable-popupwin""... $ac_c" 1>&6
19bc6aad 7173echo "configure:7174: checking for --enable-popupwin" >&5
9f41d601
RR
7174 no_cache=0
7175 # Check whether --enable-popupwin or --disable-popupwin was given.
7176if test "${enable_popupwin+set}" = set; then
7177 enableval="$enable_popupwin"
7178
7179 if test "$enableval" = yes; then
7180 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
7181 else
7182 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
7183 fi
7184
7185else
7186
7187 LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
7188 if test "x$LINE" != x ; then
7189 eval "DEFAULT_$LINE"
7190 else
7191 no_cache=1
7192 fi
7193
7194 ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
7195
7196fi
7197
7198
7199 eval "$ac_cv_use_popupwin"
7200 if test "$no_cache" != 1; then
7201 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
7202 fi
7203
7204 if test "$wxUSE_POPUPWIN" = yes; then
7205 echo "$ac_t""yes" 1>&6
7206 else
7207 echo "$ac_t""no" 1>&6
7208 fi
7209
7210
1e6feb95
VZ
7211
7212
7213 echo $ac_n "checking for --enable-commondlg""... $ac_c" 1>&6
19bc6aad 7214echo "configure:7215: checking for --enable-commondlg" >&5
1e6feb95
VZ
7215 no_cache=0
7216 # Check whether --enable-commondlg or --disable-commondlg was given.
7217if test "${enable_commondlg+set}" = set; then
7218 enableval="$enable_commondlg"
7219
7220 if test "$enableval" = yes; then
7221 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
7222 else
7223 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
7224 fi
7225
7226else
7227
7228 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
7229 if test "x$LINE" != x ; then
7230 eval "DEFAULT_$LINE"
7231 else
7232 no_cache=1
7233 fi
7234
7235 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
7236
7237fi
7238
7239
7240 eval "$ac_cv_use_commondlg"
7241 if test "$no_cache" != 1; then
7242 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
7243 fi
7244
7245 if test "$wxUSE_COMMONDLGS" = yes; then
7246 echo "$ac_t""yes" 1>&6
7247 else
7248 echo "$ac_t""no" 1>&6
7249 fi
7250
7251
7252 echo $ac_n "checking for --enable-choicedlg""... $ac_c" 1>&6
19bc6aad 7253echo "configure:7254: checking for --enable-choicedlg" >&5
1e6feb95
VZ
7254 no_cache=0
7255 # Check whether --enable-choicedlg or --disable-choicedlg was given.
7256if test "${enable_choicedlg+set}" = set; then
7257 enableval="$enable_choicedlg"
7258
7259 if test "$enableval" = yes; then
7260 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
7261 else
7262 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
7263 fi
7264
7265else
7266
7267 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
7268 if test "x$LINE" != x ; then
7269 eval "DEFAULT_$LINE"
7270 else
7271 no_cache=1
7272 fi
7273
7274 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
7275
7276fi
7277
7278
7279 eval "$ac_cv_use_choicedlg"
7280 if test "$no_cache" != 1; then
7281 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
7282 fi
7283
7284 if test "$wxUSE_CHOICEDLG" = yes; then
7285 echo "$ac_t""yes" 1>&6
7286 else
7287 echo "$ac_t""no" 1>&6
7288 fi
7289
7290
7291 echo $ac_n "checking for --enable-coldlg""... $ac_c" 1>&6
19bc6aad 7292echo "configure:7293: checking for --enable-coldlg" >&5
1e6feb95
VZ
7293 no_cache=0
7294 # Check whether --enable-coldlg or --disable-coldlg was given.
7295if test "${enable_coldlg+set}" = set; then
7296 enableval="$enable_coldlg"
7297
7298 if test "$enableval" = yes; then
7299 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
7300 else
7301 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
7302 fi
7303
7304else
7305
7306 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
7307 if test "x$LINE" != x ; then
7308 eval "DEFAULT_$LINE"
7309 else
7310 no_cache=1
7311 fi
7312
7313 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
7314
7315fi
7316
7317
7318 eval "$ac_cv_use_coldlg"
7319 if test "$no_cache" != 1; then
7320 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
7321 fi
7322
7323 if test "$wxUSE_COLOURDLG" = yes; then
7324 echo "$ac_t""yes" 1>&6
7325 else
7326 echo "$ac_t""no" 1>&6
7327 fi
7328
7329
7330 echo $ac_n "checking for --enable-filedlg""... $ac_c" 1>&6
19bc6aad 7331echo "configure:7332: checking for --enable-filedlg" >&5
1e6feb95
VZ
7332 no_cache=0
7333 # Check whether --enable-filedlg or --disable-filedlg was given.
7334if test "${enable_filedlg+set}" = set; then
7335 enableval="$enable_filedlg"
7336
7337 if test "$enableval" = yes; then
7338 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
7339 else
7340 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
7341 fi
7342
7343else
7344
7345 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
7346 if test "x$LINE" != x ; then
7347 eval "DEFAULT_$LINE"
7348 else
7349 no_cache=1
7350 fi
7351
7352 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
7353
7354fi
7355
7356
7357 eval "$ac_cv_use_filedlg"
7358 if test "$no_cache" != 1; then
7359 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
7360 fi
7361
7362 if test "$wxUSE_FILEDLG" = yes; then
7363 echo "$ac_t""yes" 1>&6
7364 else
7365 echo "$ac_t""no" 1>&6
7366 fi
7367
7368
69d27ff7 7369 echo $ac_n "checking for --enable-finddlg""... $ac_c" 1>&6
19bc6aad 7370echo "configure:7371: checking for --enable-finddlg" >&5
8db37e06 7371 no_cache=0
69d27ff7
MB
7372 # Check whether --enable-finddlg or --disable-finddlg was given.
7373if test "${enable_finddlg+set}" = set; then
7374 enableval="$enable_finddlg"
8db37e06
VZ
7375
7376 if test "$enableval" = yes; then
69d27ff7 7377 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
8db37e06 7378 else
69d27ff7 7379 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
8db37e06
VZ
7380 fi
7381
7382else
7383
7384 LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
7385 if test "x$LINE" != x ; then
7386 eval "DEFAULT_$LINE"
7387 else
7388 no_cache=1
7389 fi
7390
69d27ff7 7391 ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
8db37e06
VZ
7392
7393fi
7394
7395
69d27ff7 7396 eval "$ac_cv_use_finddlg"
8db37e06 7397 if test "$no_cache" != 1; then
69d27ff7 7398 echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
8db37e06
VZ
7399 fi
7400
7401 if test "$wxUSE_FINDREPLDLG" = yes; then
7402 echo "$ac_t""yes" 1>&6
7403 else
7404 echo "$ac_t""no" 1>&6
7405 fi
7406
7407
1e6feb95 7408 echo $ac_n "checking for --enable-fontdlg""... $ac_c" 1>&6
19bc6aad 7409echo "configure:7410: checking for --enable-fontdlg" >&5
1e6feb95
VZ
7410 no_cache=0
7411 # Check whether --enable-fontdlg or --disable-fontdlg was given.
7412if test "${enable_fontdlg+set}" = set; then
7413 enableval="$enable_fontdlg"
7414
7415 if test "$enableval" = yes; then
7416 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
7417 else
7418 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
7419 fi
7420
7421else
7422
7423 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
7424 if test "x$LINE" != x ; then
7425 eval "DEFAULT_$LINE"
7426 else
7427 no_cache=1
7428 fi
7429
7430 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
7431
7432fi
7433
7434
7435 eval "$ac_cv_use_fontdlg"
7436 if test "$no_cache" != 1; then
7437 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
7438 fi
7439
7440 if test "$wxUSE_FONTDLG" = yes; then
7441 echo "$ac_t""yes" 1>&6
7442 else
7443 echo "$ac_t""no" 1>&6
7444 fi
7445
7446
7447 echo $ac_n "checking for --enable-dirdlg""... $ac_c" 1>&6
19bc6aad 7448echo "configure:7449: checking for --enable-dirdlg" >&5
1e6feb95
VZ
7449 no_cache=0
7450 # Check whether --enable-dirdlg or --disable-dirdlg was given.
7451if test "${enable_dirdlg+set}" = set; then
7452 enableval="$enable_dirdlg"
7453
7454 if test "$enableval" = yes; then
7455 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
7456 else
7457 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
7458 fi
7459
7460else
7461
7462 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
7463 if test "x$LINE" != x ; then
7464 eval "DEFAULT_$LINE"
7465 else
7466 no_cache=1
7467 fi
7468
7469 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
7470
7471fi
7472
7473
7474 eval "$ac_cv_use_dirdlg"
10f2d63a 7475 if test "$no_cache" != 1; then
1e6feb95 7476 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
7477 fi
7478
1e6feb95 7479 if test "$wxUSE_DIRDLG" = yes; then
698dcdb6 7480 echo "$ac_t""yes" 1>&6
10f2d63a 7481 else
698dcdb6 7482 echo "$ac_t""no" 1>&6
10f2d63a 7483 fi
698dcdb6
VZ
7484
7485
1e6feb95 7486 echo $ac_n "checking for --enable-msgdlg""... $ac_c" 1>&6
19bc6aad 7487echo "configure:7488: checking for --enable-msgdlg" >&5
10f2d63a 7488 no_cache=0
1e6feb95
VZ
7489 # Check whether --enable-msgdlg or --disable-msgdlg was given.
7490if test "${enable_msgdlg+set}" = set; then
7491 enableval="$enable_msgdlg"
698dcdb6 7492
10f2d63a 7493 if test "$enableval" = yes; then
1e6feb95 7494 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
10f2d63a 7495 else
1e6feb95 7496 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
10f2d63a 7497 fi
698dcdb6 7498
10f2d63a 7499else
698dcdb6 7500
1e6feb95 7501 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
10f2d63a
VZ
7502 if test "x$LINE" != x ; then
7503 eval "DEFAULT_$LINE"
7504 else
7505 no_cache=1
7506 fi
7507
1e6feb95 7508 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
698dcdb6
VZ
7509
7510fi
10f2d63a
VZ
7511
7512
1e6feb95 7513 eval "$ac_cv_use_msgdlg"
10f2d63a 7514 if test "$no_cache" != 1; then
1e6feb95 7515 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
7516 fi
7517
1e6feb95 7518 if test "$wxUSE_MSGDLG" = yes; then
698dcdb6 7519 echo "$ac_t""yes" 1>&6
10f2d63a 7520 else
698dcdb6 7521 echo "$ac_t""no" 1>&6
10f2d63a 7522 fi
698dcdb6 7523
10f2d63a 7524
1e6feb95 7525 echo $ac_n "checking for --enable-numberdlg""... $ac_c" 1>&6
19bc6aad 7526echo "configure:7527: checking for --enable-numberdlg" >&5
10f2d63a 7527 no_cache=0
1e6feb95
VZ
7528 # Check whether --enable-numberdlg or --disable-numberdlg was given.
7529if test "${enable_numberdlg+set}" = set; then
7530 enableval="$enable_numberdlg"
698dcdb6 7531
10f2d63a 7532 if test "$enableval" = yes; then
1e6feb95 7533 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
10f2d63a 7534 else
1e6feb95 7535 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
10f2d63a 7536 fi
698dcdb6 7537
10f2d63a 7538else
698dcdb6 7539
1e6feb95 7540 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
10f2d63a
VZ
7541 if test "x$LINE" != x ; then
7542 eval "DEFAULT_$LINE"
7543 else
7544 no_cache=1
7545 fi
7546
1e6feb95 7547 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
698dcdb6
VZ
7548
7549fi
10f2d63a
VZ
7550
7551
1e6feb95 7552 eval "$ac_cv_use_numberdlg"
10f2d63a 7553 if test "$no_cache" != 1; then
1e6feb95 7554 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
7555 fi
7556
1e6feb95 7557 if test "$wxUSE_NUMBERDLG" = yes; then
698dcdb6 7558 echo "$ac_t""yes" 1>&6
10f2d63a 7559 else
698dcdb6 7560 echo "$ac_t""no" 1>&6
10f2d63a 7561 fi
698dcdb6 7562
10f2d63a 7563
cbca9943 7564 echo $ac_n "checking for --enable-splash""... $ac_c" 1>&6
19bc6aad 7565echo "configure:7566: checking for --enable-splash" >&5
cbca9943
VZ
7566 no_cache=0
7567 # Check whether --enable-splash or --disable-splash was given.
7568if test "${enable_splash+set}" = set; then
7569 enableval="$enable_splash"
7570
7571 if test "$enableval" = yes; then
7572 ac_cv_use_splash='wxUSE_SPLASH=yes'
7573 else
7574 ac_cv_use_splash='wxUSE_SPLASH=no'
7575 fi
7576
7577else
7578
7579 LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
7580 if test "x$LINE" != x ; then
7581 eval "DEFAULT_$LINE"
7582 else
7583 no_cache=1
7584 fi
7585
7586 ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
7587
7588fi
7589
7590
7591 eval "$ac_cv_use_splash"
7592 if test "$no_cache" != 1; then
7593 echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
7594 fi
7595
7596 if test "$wxUSE_SPLASH" = yes; then
7597 echo "$ac_t""yes" 1>&6
7598 else
7599 echo "$ac_t""no" 1>&6
7600 fi
7601
7602
698dcdb6 7603 echo $ac_n "checking for --enable-textdlg""... $ac_c" 1>&6
19bc6aad 7604echo "configure:7605: checking for --enable-textdlg" >&5
10f2d63a
VZ
7605 no_cache=0
7606 # Check whether --enable-textdlg or --disable-textdlg was given.
7607if test "${enable_textdlg+set}" = set; then
7608 enableval="$enable_textdlg"
698dcdb6 7609
10f2d63a
VZ
7610 if test "$enableval" = yes; then
7611 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
7612 else
7613 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
7614 fi
698dcdb6 7615
10f2d63a 7616else
698dcdb6 7617
10f2d63a
VZ
7618 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
7619 if test "x$LINE" != x ; then
7620 eval "DEFAULT_$LINE"
7621 else
7622 no_cache=1
7623 fi
7624
7625 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
698dcdb6
VZ
7626
7627fi
10f2d63a
VZ
7628
7629
7630 eval "$ac_cv_use_textdlg"
7631 if test "$no_cache" != 1; then
7632 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
7633 fi
7634
7635 if test "$wxUSE_TEXTDLG" = yes; then
698dcdb6 7636 echo "$ac_t""yes" 1>&6
10f2d63a 7637 else
698dcdb6 7638 echo "$ac_t""no" 1>&6
10f2d63a 7639 fi
698dcdb6 7640
10f2d63a 7641
698dcdb6 7642 echo $ac_n "checking for --enable-tipdlg""... $ac_c" 1>&6
19bc6aad 7643echo "configure:7644: checking for --enable-tipdlg" >&5
10f2d63a
VZ
7644 no_cache=0
7645 # Check whether --enable-tipdlg or --disable-tipdlg was given.
7646if test "${enable_tipdlg+set}" = set; then
7647 enableval="$enable_tipdlg"
698dcdb6 7648
10f2d63a
VZ
7649 if test "$enableval" = yes; then
7650 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
7651 else
7652 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
7653 fi
698dcdb6 7654
10f2d63a 7655else
698dcdb6 7656
10f2d63a
VZ
7657 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
7658 if test "x$LINE" != x ; then
7659 eval "DEFAULT_$LINE"
7660 else
7661 no_cache=1
7662 fi
7663
7664 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
698dcdb6
VZ
7665
7666fi
10f2d63a
VZ
7667
7668
7669 eval "$ac_cv_use_tipdlg"
7670 if test "$no_cache" != 1; then
7671 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
7672 fi
7673
7674 if test "$wxUSE_STARTUP_TIPS" = yes; then
698dcdb6 7675 echo "$ac_t""yes" 1>&6
10f2d63a 7676 else
698dcdb6 7677 echo "$ac_t""no" 1>&6
10f2d63a 7678 fi
698dcdb6 7679
10f2d63a 7680
698dcdb6 7681 echo $ac_n "checking for --enable-progressdlg""... $ac_c" 1>&6
19bc6aad 7682echo "configure:7683: checking for --enable-progressdlg" >&5
10f2d63a
VZ
7683 no_cache=0
7684 # Check whether --enable-progressdlg or --disable-progressdlg was given.
7685if test "${enable_progressdlg+set}" = set; then
7686 enableval="$enable_progressdlg"
698dcdb6 7687
10f2d63a
VZ
7688 if test "$enableval" = yes; then
7689 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
7690 else
7691 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
7692 fi
698dcdb6 7693
10f2d63a 7694else
698dcdb6 7695
10f2d63a
VZ
7696 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
7697 if test "x$LINE" != x ; then
7698 eval "DEFAULT_$LINE"
7699 else
7700 no_cache=1
7701 fi
7702
7703 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
698dcdb6
VZ
7704
7705fi
10f2d63a
VZ
7706
7707
7708 eval "$ac_cv_use_progressdlg"
7709 if test "$no_cache" != 1; then
7710 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
7711 fi
7712
7713 if test "$wxUSE_PROGRESSDLG" = yes; then
698dcdb6 7714 echo "$ac_t""yes" 1>&6
10f2d63a 7715 else
698dcdb6 7716 echo "$ac_t""no" 1>&6
10f2d63a 7717 fi
698dcdb6 7718
10f2d63a 7719
b1f5d087 7720 echo $ac_n "checking for --enable-wizarddlg""... $ac_c" 1>&6
19bc6aad 7721echo "configure:7722: checking for --enable-wizarddlg" >&5
b1f5d087
VZ
7722 no_cache=0
7723 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
7724if test "${enable_wizarddlg+set}" = set; then
7725 enableval="$enable_wizarddlg"
7726
7727 if test "$enableval" = yes; then
7728 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
7729 else
7730 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
7731 fi
7732
7733else
7734
7735 LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
7736 if test "x$LINE" != x ; then
7737 eval "DEFAULT_$LINE"
7738 else
7739 no_cache=1
7740 fi
7741
7742 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
7743
7744fi
7745
7746
7747 eval "$ac_cv_use_wizarddlg"
7748 if test "$no_cache" != 1; then
7749 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
7750 fi
7751
7752 if test "$wxUSE_WIZARDDLG" = yes; then
7753 echo "$ac_t""yes" 1>&6
7754 else
7755 echo "$ac_t""no" 1>&6
7756 fi
7757
7758
7759
7760
1e6feb95 7761 echo $ac_n "checking for --enable-menus""... $ac_c" 1>&6
19bc6aad 7762echo "configure:7763: checking for --enable-menus" >&5
1e6feb95
VZ
7763 no_cache=0
7764 # Check whether --enable-menus or --disable-menus was given.
7765if test "${enable_menus+set}" = set; then
7766 enableval="$enable_menus"
7767
7768 if test "$enableval" = yes; then
7769 ac_cv_use_menus='wxUSE_MENUS=yes'
7770 else
7771 ac_cv_use_menus='wxUSE_MENUS=no'
7772 fi
7773
7774else
7775
7776 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
7777 if test "x$LINE" != x ; then
7778 eval "DEFAULT_$LINE"
7779 else
7780 no_cache=1
7781 fi
7782
7783 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
7784
7785fi
7786
7787
7788 eval "$ac_cv_use_menus"
7789 if test "$no_cache" != 1; then
7790 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
7791 fi
7792
7793 if test "$wxUSE_MENUS" = yes; then
7794 echo "$ac_t""yes" 1>&6
7795 else
7796 echo "$ac_t""no" 1>&6
7797 fi
7798
7799
698dcdb6 7800 echo $ac_n "checking for --enable-miniframe""... $ac_c" 1>&6
19bc6aad 7801echo "configure:7802: checking for --enable-miniframe" >&5
10f2d63a
VZ
7802 no_cache=0
7803 # Check whether --enable-miniframe or --disable-miniframe was given.
7804if test "${enable_miniframe+set}" = set; then
7805 enableval="$enable_miniframe"
698dcdb6 7806
10f2d63a
VZ
7807 if test "$enableval" = yes; then
7808 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
7809 else
7810 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
7811 fi
698dcdb6 7812
10f2d63a 7813else
698dcdb6 7814
10f2d63a
VZ
7815 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
7816 if test "x$LINE" != x ; then
7817 eval "DEFAULT_$LINE"
7818 else
7819 no_cache=1
7820 fi
7821
7822 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
698dcdb6
VZ
7823
7824fi
10f2d63a
VZ
7825
7826
7827 eval "$ac_cv_use_miniframe"
7828 if test "$no_cache" != 1; then
7829 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
7830 fi
7831
7832 if test "$wxUSE_MINIFRAME" = yes; then
698dcdb6 7833 echo "$ac_t""yes" 1>&6
10f2d63a 7834 else
698dcdb6 7835 echo "$ac_t""no" 1>&6
10f2d63a 7836 fi
698dcdb6 7837
10f2d63a 7838
698dcdb6 7839 echo $ac_n "checking for --enable-tooltips""... $ac_c" 1>&6
19bc6aad 7840echo "configure:7841: checking for --enable-tooltips" >&5
10f2d63a
VZ
7841 no_cache=0
7842 # Check whether --enable-tooltips or --disable-tooltips was given.
7843if test "${enable_tooltips+set}" = set; then
7844 enableval="$enable_tooltips"
698dcdb6 7845
10f2d63a
VZ
7846 if test "$enableval" = yes; then
7847 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
7848 else
7849 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
7850 fi
698dcdb6 7851
10f2d63a 7852else
698dcdb6 7853
10f2d63a
VZ
7854 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
7855 if test "x$LINE" != x ; then
7856 eval "DEFAULT_$LINE"
7857 else
7858 no_cache=1
7859 fi
7860
7861 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
698dcdb6
VZ
7862
7863fi
10f2d63a
VZ
7864
7865
7866 eval "$ac_cv_use_tooltips"
7867 if test "$no_cache" != 1; then
7868 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
7869 fi
7870
7871 if test "$wxUSE_TOOLTIPS" = yes; then
698dcdb6 7872 echo "$ac_t""yes" 1>&6
10f2d63a 7873 else
698dcdb6 7874 echo "$ac_t""no" 1>&6
10f2d63a 7875 fi
698dcdb6 7876
10f2d63a 7877
698dcdb6 7878 echo $ac_n "checking for --enable-splines""... $ac_c" 1>&6
19bc6aad 7879echo "configure:7880: checking for --enable-splines" >&5
10f2d63a
VZ
7880 no_cache=0
7881 # Check whether --enable-splines or --disable-splines was given.
7882if test "${enable_splines+set}" = set; then
7883 enableval="$enable_splines"
698dcdb6 7884
10f2d63a
VZ
7885 if test "$enableval" = yes; then
7886 ac_cv_use_splines='wxUSE_SPLINES=yes'
7887 else
7888 ac_cv_use_splines='wxUSE_SPLINES=no'
7889 fi
698dcdb6 7890
10f2d63a 7891else
698dcdb6 7892
10f2d63a
VZ
7893 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
7894 if test "x$LINE" != x ; then
7895 eval "DEFAULT_$LINE"
7896 else
7897 no_cache=1
7898 fi
7899
7900 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
698dcdb6
VZ
7901
7902fi
10f2d63a
VZ
7903
7904
7905 eval "$ac_cv_use_splines"
7906 if test "$no_cache" != 1; then
7907 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
7908 fi
7909
7910 if test "$wxUSE_SPLINES" = yes; then
698dcdb6 7911 echo "$ac_t""yes" 1>&6
10f2d63a 7912 else
698dcdb6 7913 echo "$ac_t""no" 1>&6
10f2d63a 7914 fi
698dcdb6 7915
10f2d63a 7916
698dcdb6 7917 echo $ac_n "checking for --enable-validators""... $ac_c" 1>&6
19bc6aad 7918echo "configure:7919: checking for --enable-validators" >&5
10f2d63a
VZ
7919 no_cache=0
7920 # Check whether --enable-validators or --disable-validators was given.
7921if test "${enable_validators+set}" = set; then
7922 enableval="$enable_validators"
698dcdb6 7923
10f2d63a
VZ
7924 if test "$enableval" = yes; then
7925 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
7926 else
7927 ac_cv_use_validators='wxUSE_VALIDATORS=no'
7928 fi
698dcdb6 7929
10f2d63a 7930else
698dcdb6 7931
10f2d63a
VZ
7932 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
7933 if test "x$LINE" != x ; then
7934 eval "DEFAULT_$LINE"
7935 else
7936 no_cache=1
7937 fi
7938
7939 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
698dcdb6
VZ
7940
7941fi
10f2d63a
VZ
7942
7943
7944 eval "$ac_cv_use_validators"
7945 if test "$no_cache" != 1; then
7946 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
7947 fi
7948
7949 if test "$wxUSE_VALIDATORS" = yes; then
698dcdb6 7950 echo "$ac_t""yes" 1>&6
10f2d63a 7951 else
698dcdb6 7952 echo "$ac_t""no" 1>&6
10f2d63a 7953 fi
698dcdb6 7954
10f2d63a 7955
698dcdb6 7956 echo $ac_n "checking for --enable-busyinfo""... $ac_c" 1>&6
19bc6aad 7957echo "configure:7958: checking for --enable-busyinfo" >&5
10f2d63a
VZ
7958 no_cache=0
7959 # Check whether --enable-busyinfo or --disable-busyinfo was given.
7960if test "${enable_busyinfo+set}" = set; then
7961 enableval="$enable_busyinfo"
698dcdb6 7962
10f2d63a
VZ
7963 if test "$enableval" = yes; then
7964 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
7965 else
7966 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
7967 fi
698dcdb6 7968
10f2d63a 7969else
698dcdb6 7970
10f2d63a
VZ
7971 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
7972 if test "x$LINE" != x ; then
7973 eval "DEFAULT_$LINE"
7974 else
7975 no_cache=1
7976 fi
7977
7978 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
698dcdb6
VZ
7979
7980fi
10f2d63a
VZ
7981
7982
7983 eval "$ac_cv_use_busyinfo"
7984 if test "$no_cache" != 1; then
7985 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
7986 fi
7987
7988 if test "$wxUSE_BUSYINFO" = yes; then
698dcdb6 7989 echo "$ac_t""yes" 1>&6
10f2d63a 7990 else
698dcdb6 7991 echo "$ac_t""no" 1>&6
10f2d63a 7992 fi
698dcdb6 7993
10f2d63a 7994
698dcdb6 7995 echo $ac_n "checking for --enable-joystick""... $ac_c" 1>&6
19bc6aad 7996echo "configure:7997: checking for --enable-joystick" >&5
f6bcfd97
BP
7997 no_cache=0
7998 # Check whether --enable-joystick or --disable-joystick was given.
7999if test "${enable_joystick+set}" = set; then
8000 enableval="$enable_joystick"
698dcdb6 8001
f6bcfd97
BP
8002 if test "$enableval" = yes; then
8003 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
8004 else
8005 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
8006 fi
698dcdb6 8007
f6bcfd97 8008else
698dcdb6 8009
f6bcfd97
BP
8010 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
8011 if test "x$LINE" != x ; then
8012 eval "DEFAULT_$LINE"
8013 else
8014 no_cache=1
8015 fi
8016
8017 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
698dcdb6
VZ
8018
8019fi
f6bcfd97
BP
8020
8021
8022 eval "$ac_cv_use_joystick"
8023 if test "$no_cache" != 1; then
8024 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
8025 fi
8026
8027 if test "$wxUSE_JOYSTICK" = yes; then
698dcdb6 8028 echo "$ac_t""yes" 1>&6
f6bcfd97 8029 else
698dcdb6 8030 echo "$ac_t""no" 1>&6
f6bcfd97 8031 fi
698dcdb6
VZ
8032
8033
1e6feb95 8034 echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6
19bc6aad 8035echo "configure:8036: checking for --enable-metafile" >&5
1e6feb95
VZ
8036 no_cache=0
8037 # Check whether --enable-metafile or --disable-metafile was given.
8038if test "${enable_metafile+set}" = set; then
8039 enableval="$enable_metafile"
8040
8041 if test "$enableval" = yes; then
8042 ac_cv_use_metafile='wxUSE_METAFILE=yes'
8043 else
8044 ac_cv_use_metafile='wxUSE_METAFILE=no'
8045 fi
8046
8047else
8048
8049 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
8050 if test "x$LINE" != x ; then
8051 eval "DEFAULT_$LINE"
8052 else
8053 no_cache=1
8054 fi
8055
8056 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
8057
8058fi
8059
8060
8061 eval "$ac_cv_use_metafile"
8062 if test "$no_cache" != 1; then
8063 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
8064 fi
8065
8066 if test "$wxUSE_METAFILE" = yes; then
8067 echo "$ac_t""yes" 1>&6
8068 else
8069 echo "$ac_t""no" 1>&6
8070 fi
8071
8072
24fd6d87 8073 echo $ac_n "checking for --enable-dragimage""... $ac_c" 1>&6
19bc6aad 8074echo "configure:8075: checking for --enable-dragimage" >&5
24fd6d87
VZ
8075 no_cache=0
8076 # Check whether --enable-dragimage or --disable-dragimage was given.
8077if test "${enable_dragimage+set}" = set; then
8078 enableval="$enable_dragimage"
8079
8080 if test "$enableval" = yes; then
8081 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
8082 else
8083 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
8084 fi
8085
8086else
8087
8088 LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
8089 if test "x$LINE" != x ; then
8090 eval "DEFAULT_$LINE"
8091 else
8092 no_cache=1
8093 fi
8094
8095 ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
8096
8097fi
8098
8099
8100 eval "$ac_cv_use_dragimage"
8101 if test "$no_cache" != 1; then
8102 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
8103 fi
8104
8105 if test "$wxUSE_DRAGIMAGE" = yes; then
8106 echo "$ac_t""yes" 1>&6
8107 else
8108 echo "$ac_t""no" 1>&6
8109 fi
8110
8111
10f2d63a 8112
698dcdb6 8113
edae8572 8114 echo $ac_n "checking for --enable-palette""... $ac_c" 1>&6
19bc6aad 8115echo "configure:8116: checking for --enable-palette" >&5
edae8572
VZ
8116 no_cache=0
8117 # Check whether --enable-palette or --disable-palette was given.
8118if test "${enable_palette+set}" = set; then
8119 enableval="$enable_palette"
8120
8121 if test "$enableval" = yes; then
8122 ac_cv_use_palette='wxUSE_PALETTE=yes'
8123 else
8124 ac_cv_use_palette='wxUSE_PALETTE=no'
8125 fi
8126
8127else
8128
8129 LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
8130 if test "x$LINE" != x ; then
8131 eval "DEFAULT_$LINE"
8132 else
8133 no_cache=1
8134 fi
8135
8136 ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
8137
8138fi
8139
8140
8141 eval "$ac_cv_use_palette"
8142 if test "$no_cache" != 1; then
8143 echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
8144 fi
8145
8146 if test "$wxUSE_PALETTE" = yes; then
8147 echo "$ac_t""yes" 1>&6
8148 else
8149 echo "$ac_t""no" 1>&6
8150 fi
8151
8152
698dcdb6 8153 echo $ac_n "checking for --enable-image""... $ac_c" 1>&6
19bc6aad 8154echo "configure:8155: checking for --enable-image" >&5
0046ff7c
VS
8155 no_cache=0
8156 # Check whether --enable-image or --disable-image was given.
8157if test "${enable_image+set}" = set; then
8158 enableval="$enable_image"
698dcdb6 8159
0046ff7c
VS
8160 if test "$enableval" = yes; then
8161 ac_cv_use_image='wxUSE_IMAGE=yes'
8162 else
8163 ac_cv_use_image='wxUSE_IMAGE=no'
8164 fi
698dcdb6 8165
0046ff7c 8166else
698dcdb6 8167
0046ff7c
VS
8168 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
8169 if test "x$LINE" != x ; then
8170 eval "DEFAULT_$LINE"
8171 else
8172 no_cache=1
8173 fi
8174
8175 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
698dcdb6
VZ
8176
8177fi
0046ff7c
VS
8178
8179
8180 eval "$ac_cv_use_image"
8181 if test "$no_cache" != 1; then
8182 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
8183 fi
8184
8185 if test "$wxUSE_IMAGE" = yes; then
698dcdb6 8186 echo "$ac_t""yes" 1>&6
0046ff7c 8187 else
698dcdb6 8188 echo "$ac_t""no" 1>&6
0046ff7c 8189 fi
698dcdb6 8190
0046ff7c 8191
698dcdb6 8192 echo $ac_n "checking for --enable-gif""... $ac_c" 1>&6
19bc6aad 8193echo "configure:8194: checking for --enable-gif" >&5
10f2d63a
VZ
8194 no_cache=0
8195 # Check whether --enable-gif or --disable-gif was given.
8196if test "${enable_gif+set}" = set; then
8197 enableval="$enable_gif"
698dcdb6 8198
10f2d63a
VZ
8199 if test "$enableval" = yes; then
8200 ac_cv_use_gif='wxUSE_GIF=yes'
8201 else
8202 ac_cv_use_gif='wxUSE_GIF=no'
8203 fi
698dcdb6 8204
10f2d63a 8205else
698dcdb6 8206
10f2d63a
VZ
8207 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
8208 if test "x$LINE" != x ; then
8209 eval "DEFAULT_$LINE"
8210 else
8211 no_cache=1
8212 fi
8213
8214 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
698dcdb6
VZ
8215
8216fi
10f2d63a
VZ
8217
8218
8219 eval "$ac_cv_use_gif"
8220 if test "$no_cache" != 1; then
8221 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
8222 fi
8223
8224 if test "$wxUSE_GIF" = yes; then
698dcdb6 8225 echo "$ac_t""yes" 1>&6
10f2d63a 8226 else
698dcdb6 8227 echo "$ac_t""no" 1>&6
10f2d63a 8228 fi
698dcdb6 8229
10f2d63a 8230
698dcdb6 8231 echo $ac_n "checking for --enable-pcx""... $ac_c" 1>&6
19bc6aad 8232echo "configure:8233: checking for --enable-pcx" >&5
10f2d63a
VZ
8233 no_cache=0
8234 # Check whether --enable-pcx or --disable-pcx was given.
8235if test "${enable_pcx+set}" = set; then
8236 enableval="$enable_pcx"
698dcdb6 8237
10f2d63a
VZ
8238 if test "$enableval" = yes; then
8239 ac_cv_use_pcx='wxUSE_PCX=yes'
8240 else
8241 ac_cv_use_pcx='wxUSE_PCX=no'
8242 fi
698dcdb6 8243
10f2d63a 8244else
698dcdb6 8245
10f2d63a
VZ
8246 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
8247 if test "x$LINE" != x ; then
8248 eval "DEFAULT_$LINE"
8249 else
8250 no_cache=1
8251 fi
8252
8253 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
698dcdb6
VZ
8254
8255fi
10f2d63a
VZ
8256
8257
8258 eval "$ac_cv_use_pcx"
8259 if test "$no_cache" != 1; then
8260 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
8261 fi
8262
8263 if test "$wxUSE_PCX" = yes; then
698dcdb6 8264 echo "$ac_t""yes" 1>&6
10f2d63a 8265 else
698dcdb6 8266 echo "$ac_t""no" 1>&6
10f2d63a 8267 fi
698dcdb6 8268
10f2d63a 8269
4b6b4dfc 8270 echo $ac_n "checking for --enable-iff""... $ac_c" 1>&6
19bc6aad 8271echo "configure:8272: checking for --enable-iff" >&5
4b6b4dfc
RR
8272 no_cache=0
8273 # Check whether --enable-iff or --disable-iff was given.
8274if test "${enable_iff+set}" = set; then
8275 enableval="$enable_iff"
8276
8277 if test "$enableval" = yes; then
8278 ac_cv_use_iff='wxUSE_IFF=yes'
8279 else
8280 ac_cv_use_iff='wxUSE_IFF=no'
8281 fi
8282
8283else
8284
8285 LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}`
8286 if test "x$LINE" != x ; then
8287 eval "DEFAULT_$LINE"
8288 else
8289 no_cache=1
8290 fi
8291
8292 ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF
8293
8294fi
8295
8296
8297 eval "$ac_cv_use_iff"
8298 if test "$no_cache" != 1; then
8299 echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp
8300 fi
8301
8302 if test "$wxUSE_IFF" = yes; then
8303 echo "$ac_t""yes" 1>&6
8304 else
8305 echo "$ac_t""no" 1>&6
8306 fi
8307
8308
698dcdb6 8309 echo $ac_n "checking for --enable-pnm""... $ac_c" 1>&6
19bc6aad 8310echo "configure:8311: checking for --enable-pnm" >&5
10f2d63a
VZ
8311 no_cache=0
8312 # Check whether --enable-pnm or --disable-pnm was given.
8313if test "${enable_pnm+set}" = set; then
8314 enableval="$enable_pnm"
698dcdb6 8315
10f2d63a
VZ
8316 if test "$enableval" = yes; then
8317 ac_cv_use_pnm='wxUSE_PNM=yes'
8318 else
8319 ac_cv_use_pnm='wxUSE_PNM=no'
8320 fi
698dcdb6 8321
10f2d63a 8322else
698dcdb6 8323
10f2d63a
VZ
8324 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
8325 if test "x$LINE" != x ; then
8326 eval "DEFAULT_$LINE"
8327 else
8328 no_cache=1
8329 fi
8330
8331 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
698dcdb6
VZ
8332
8333fi
10f2d63a
VZ
8334
8335
8336 eval "$ac_cv_use_pnm"
8337 if test "$no_cache" != 1; then
8338 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
8339 fi
8340
8341 if test "$wxUSE_PNM" = yes; then
698dcdb6 8342 echo "$ac_t""yes" 1>&6
10f2d63a 8343 else
698dcdb6 8344 echo "$ac_t""no" 1>&6
10f2d63a 8345 fi
698dcdb6 8346
10f2d63a 8347
69d27ff7 8348 echo $ac_n "checking for --enable-xpm""... $ac_c" 1>&6
19bc6aad 8349echo "configure:8350: checking for --enable-xpm" >&5
0046ff7c 8350 no_cache=0
69d27ff7
MB
8351 # Check whether --enable-xpm or --disable-xpm was given.
8352if test "${enable_xpm+set}" = set; then
8353 enableval="$enable_xpm"
698dcdb6 8354
0046ff7c 8355 if test "$enableval" = yes; then
69d27ff7 8356 ac_cv_use_xpm='wxUSE_XPM=yes'
0046ff7c 8357 else
69d27ff7 8358 ac_cv_use_xpm='wxUSE_XPM=no'
0046ff7c 8359 fi
698dcdb6 8360
0046ff7c 8361else
698dcdb6 8362
0046ff7c
VS
8363 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
8364 if test "x$LINE" != x ; then
8365 eval "DEFAULT_$LINE"
8366 else
8367 no_cache=1
8368 fi
8369
69d27ff7 8370 ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
698dcdb6
VZ
8371
8372fi
0046ff7c
VS
8373
8374
69d27ff7 8375 eval "$ac_cv_use_xpm"
0046ff7c 8376 if test "$no_cache" != 1; then
69d27ff7 8377 echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
0046ff7c
VS
8378 fi
8379
8380 if test "$wxUSE_XPM" = yes; then
698dcdb6 8381 echo "$ac_t""yes" 1>&6
0046ff7c 8382 else
698dcdb6 8383 echo "$ac_t""no" 1>&6
0046ff7c 8384 fi
698dcdb6 8385
0046ff7c 8386
c7206e64 8387 echo $ac_n "checking for --enable-ico_cur""... $ac_c" 1>&6
19bc6aad 8388echo "configure:8389: checking for --enable-ico_cur" >&5
658974ae 8389 no_cache=0
c7206e64
VS
8390 # Check whether --enable-ico_cur or --disable-ico_cur was given.
8391if test "${enable_ico_cur+set}" = set; then
8392 enableval="$enable_ico_cur"
658974ae
VS
8393
8394 if test "$enableval" = yes; then
c7206e64 8395 ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
658974ae 8396 else
c7206e64 8397 ac_cv_use_ico_cur='wxUSE_ICO_CUR=no'
658974ae
VS
8398 fi
8399
8400else
8401
8402 LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}`
8403 if test "x$LINE" != x ; then
8404 eval "DEFAULT_$LINE"
8405 else
8406 no_cache=1
8407 fi
8408
c7206e64 8409 ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR
658974ae
VS
8410
8411fi
8412
8413
c7206e64 8414 eval "$ac_cv_use_ico_cur"
658974ae 8415 if test "$no_cache" != 1; then
c7206e64 8416 echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp
658974ae
VS
8417 fi
8418
8419 if test "$wxUSE_ICO_CUR" = yes; then
8420 echo "$ac_t""yes" 1>&6
8421 else
8422 echo "$ac_t""no" 1>&6
8423 fi
8424
8425
b12915c1
VZ
8426fi
8427
d558c907
VS
8428case "${host}" in
8429 *-pc-os2_emx | *-pc-os2-emx )
8430 LEX_STEM="lexyy"
8431 ;;
8432 *)
8433 PATH_IFS=':'
8434 LEX_STEM="lex.yy"
8435 ;;
8436esac
8437
8438
698dcdb6 8439
10f2d63a
VZ
8440 echo "saving argument cache $wx_arg_cache_file"
8441 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
698dcdb6 8442
10f2d63a 8443
698dcdb6
VZ
8444
8445echo $ac_n "checking for toolkit""... $ac_c" 1>&6
19bc6aad 8446echo "configure:8447: checking for toolkit" >&5
10f2d63a
VZ
8447
8448if test "$wxUSE_GUI" = "yes"; then
8449
3a922bb4
RL
8450 if test "$USE_BEOS" = 1; then
8451 { echo "configure: error: BeOS GUI is not supported yet, use --disable-gui" 1>&2; exit 1; }
8452 fi
b12915c1 8453
3a922bb4
RL
8454 if test "$TOOLKIT_GIVEN" = 1; then
8455 for toolkit in `echo $ALL_TOOLKITS`; do
8456 var=wxUSE_$toolkit
8457 eval "value=\$${var}"
8458 eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
8459 done
10f2d63a 8460 else
3a922bb4
RL
8461 for toolkit in `echo $ALL_TOOLKITS`; do
8462 if test "$has_toolkit_in_cache" != 1; then
8463 var=DEFAULT_DEFAULT_wxUSE_$toolkit
8464 else
8465 var=DEFAULT_wxUSE_$toolkit
8466 fi
8467 eval "wxUSE_$toolkit=\$${var}"
8468 done
10f2d63a 8469 fi
10f2d63a 8470
3a922bb4 8471 NUM_TOOLKITS=`expr ${wxUSE_GTK:-0} + ${wxUSE_MOTIF:-0} + ${wxUSE_MAC:-0} \
f79bd02d 8472 + ${wxUSE_WINE:-0} + ${wxUSE_MSW:-0} + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} + ${wxUSE_X11:-0}`
10f2d63a 8473
d558c907 8474 case "${host}" in
6fa882bd 8475 *-pc-os2_emx | *-pc-os2-emx )
3a922bb4 8476 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
3a922bb4 8477 esac
10f2d63a 8478
3a922bb4
RL
8479 case "$NUM_TOOLKITS" in
8480 1)
8481 ;;
8482 0)
8483 { echo "configure: error: Please specify a toolkit - cannot determine the default for ${host}" 1>&2; exit 1; }
8484 ;;
8485 *)
8486 { echo "configure: error: Please specify at most one toolkit (may be some are cached?)" 1>&2; exit 1; }
8487 esac
10f2d63a 8488
3a922bb4
RL
8489 for toolkit in `echo $ALL_TOOLKITS`; do
8490 var=wxUSE_$toolkit
8491 eval "value=\$${var}"
8492 if test "x$value" != x; then
8493 cache_var=CACHE_$toolkit
8494 eval "cache=\$${cache_var}"
8495 if test "$cache" = 1; then
8496 echo "$var=$value" >> ${wx_arg_cache_file}
8497 fi
8498 if test "$value" = 1; then
8499 toolkit_echo=`echo $toolkit | tr [A-Z] [a-z]`
8500 echo "$ac_t""$toolkit_echo" 1>&6
8501 fi
8502 fi
8503 done
10f2d63a 8504else
3a922bb4 8505 echo "$ac_t""base ($host_alias hosted) only" 1>&6
10f2d63a
VZ
8506fi
8507
698dcdb6
VZ
8508
8509cat > confcache <<\EOF
10f2d63a
VZ
8510# This file is a shell script that caches the results of configure
8511# tests run on this system so they can be shared between configure
698dcdb6
VZ
8512# scripts and configure runs. It is not useful on other systems.
8513# If it contains results you don't want to keep, you may remove or edit it.
10f2d63a 8514#
698dcdb6
VZ
8515# By default, configure uses ./config.cache as the cache file,
8516# creating it if it does not exist already. You can give configure
8517# the --cache-file=FILE option to use a different cache file; that is
8518# what configure does when it calls configure scripts in
8519# subdirectories, so they share the cache.
8520# Giving --cache-file=/dev/null disables caching, for debugging configure.
8521# config.status only pays attention to the cache file if you give it the
8522# --recheck option to rerun configure.
10f2d63a 8523#
698dcdb6 8524EOF
10f2d63a
VZ
8525# The following way of writing the cache mishandles newlines in values,
8526# but we know of no workaround that is simple, portable, and efficient.
8527# So, don't put newlines in cache variables' values.
8528# Ultrix sh set writes to stderr and can't be redirected directly,
8529# and sets the high bit in the cache file unless we assign to the vars.
698dcdb6
VZ
8530(set) 2>&1 |
8531 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8532 *ac_space=\ *)
8533 # `set' does not quote correctly, so add quotes (double-quote substitution
8534 # turns \\\\ into \\, and sed turns \\ into \).
8535 sed -n \
8536 -e "s/'/'\\\\''/g" \
8537 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
8538 ;;
8539 *)
8540 # `set' quotes correctly as required by POSIX, so do not add quotes.
8541 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8542 ;;
8543 esac >> confcache
8544if cmp -s $cache_file confcache; then
8545 :
8546else
10f2d63a 8547 if test -w $cache_file; then
698dcdb6
VZ
8548 echo "updating cache $cache_file"
8549 cat confcache > $cache_file
10f2d63a
VZ
8550 else
8551 echo "not updating unwritable cache $cache_file"
8552 fi
8553fi
8554rm -f confcache
8555
698dcdb6 8556
e59890c3 8557if test "$build" != "$host" ; then
9d353d4a 8558 if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 -o "$USE_UNIX"; then
3a922bb4
RL
8559 CC=$host_alias-gcc
8560 CXX=$host_alias-c++
8561 AR=$host_alias-ar
8562 RANLIB=$host_alias-ranlib
8563 DLLTOOL=$host_alias-dlltool
8564 RESCOMP=$host_alias-windres
8565 LD=$host_alias-ld
8566 NM=$host_alias-nm
8567 STRIP=$host_alias-strip
8568 else
8569 { echo "configure: error: $build_alias -> $host_alias cross compilation not supported yet." 1>&2; exit 1; }
8570 fi
10f2d63a
VZ
8571fi
8572
ec603395 8573CFLAGS=${CFLAGS:=}
698dcdb6 8574# Extract the first word of "gcc", so it can be a program name with args.
1e487827 8575set dummy gcc; ac_word=$2
698dcdb6 8576echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
19bc6aad 8577echo "configure:8578: checking for $ac_word" >&5
698dcdb6
VZ
8578if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
8579 echo $ac_n "(cached) $ac_c" 1>&6
6232543b
VS
8580else
8581 if test -n "$CC"; then
8582 ac_cv_prog_CC="$CC" # Let the user override the test.
10f2d63a 8583else
698dcdb6
VZ
8584 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8585 ac_dummy="$PATH"
8586 for ac_dir in $ac_dummy; do
8587 test -z "$ac_dir" && ac_dir=.
8588 if test -f $ac_dir/$ac_word; then
8589 ac_cv_prog_CC="gcc"
8590 break
8591 fi
8592 done
8593 IFS="$ac_save_ifs"
10f2d63a 8594fi
6232543b 8595fi
698dcdb6 8596CC="$ac_cv_prog_CC"
6232543b 8597if test -n "$CC"; then
698dcdb6 8598 echo "$ac_t""$CC" 1>&6
1e487827 8599else
698dcdb6 8600 echo "$ac_t""no" 1>&6
1e487827 8601fi
6232543b 8602
1e487827
VS
8603if test -z "$CC"; then
8604 # Extract the first word of "cc", so it can be a program name with args.
8605set dummy cc; ac_word=$2
698dcdb6 8606echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
19bc6aad 8607echo "configure:8608: checking for $ac_word" >&5
698dcdb6
VZ
8608if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
8609 echo $ac_n "(cached) $ac_c" 1>&6
1e487827
VS
8610else
8611 if test -n "$CC"; then
8612 ac_cv_prog_CC="$CC" # Let the user override the test.
8613else
698dcdb6 8614 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1e487827 8615 ac_prog_rejected=no
698dcdb6
VZ
8616 ac_dummy="$PATH"
8617 for ac_dir in $ac_dummy; do
8618 test -z "$ac_dir" && ac_dir=.
8619 if test -f $ac_dir/$ac_word; then
8620 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
8621 ac_prog_rejected=yes
8622 continue
8623 fi
8624 ac_cv_prog_CC="cc"
8625 break
8626 fi
8627 done
8628 IFS="$ac_save_ifs"
1e487827
VS
8629if test $ac_prog_rejected = yes; then
8630 # We found a bogon in the path, so make sure we never use it.
8631 set dummy $ac_cv_prog_CC
8632 shift
698dcdb6 8633 if test $# -gt 0; then
1e487827
VS
8634 # We chose a different compiler from the bogus one.
8635 # However, it has the same basename, so the bogon will be chosen
8636 # first if we set CC to just the basename; use the full file name.
8637 shift
698dcdb6 8638 set dummy "$ac_dir/$ac_word" "$@"
1e487827
VS
8639 shift
8640 ac_cv_prog_CC="$@"
703e0a69 8641 fi
1e487827
VS
8642fi
8643fi
8644fi
698dcdb6 8645CC="$ac_cv_prog_CC"
1e487827 8646if test -n "$CC"; then
698dcdb6 8647 echo "$ac_t""$CC" 1>&6
703e0a69 8648else
698dcdb6 8649 echo "$ac_t""no" 1>&6
703e0a69 8650fi
1e487827 8651
698dcdb6
VZ
8652 if test -z "$CC"; then
8653 case "`uname -s`" in
8654 *win32* | *WIN32*)
8655 # Extract the first word of "cl", so it can be a program name with args.
8656set dummy cl; ac_word=$2
8657echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
19bc6aad 8658echo "configure:8659: checking for $ac_word" >&5
698dcdb6
VZ
8659if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
8660 echo $ac_n "(cached) $ac_c" 1>&6
1e487827
VS
8661else
8662 if test -n "$CC"; then
8663 ac_cv_prog_CC="$CC" # Let the user override the test.
703e0a69 8664else
698dcdb6
VZ
8665 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8666 ac_dummy="$PATH"
8667 for ac_dir in $ac_dummy; do
8668 test -z "$ac_dir" && ac_dir=.
8669 if test -f $ac_dir/$ac_word; then
8670 ac_cv_prog_CC="cl"
8671 break
8672 fi
8673 done
8674 IFS="$ac_save_ifs"
703e0a69 8675fi
1e487827 8676fi
698dcdb6 8677CC="$ac_cv_prog_CC"
1e487827 8678if test -n "$CC"; then
698dcdb6 8679 echo "$ac_t""$CC" 1>&6
1e487827 8680else
698dcdb6 8681 echo "$ac_t""no" 1>&6
1e487827 8682fi
698dcdb6
VZ
8683 ;;
8684 esac
8685 fi
8686 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1e487827
VS
8687fi
8688
698dcdb6 8689echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
19bc6aad 8690echo "configure:8691: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1e487827 8691
698dcdb6
VZ
8692ac_ext=c
8693# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8694ac_cpp='$CPP $CPPFLAGS'
8695ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8696ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8697cross_compiling=$ac_cv_prog_cc_cross
6232543b 8698
698dcdb6 8699cat > conftest.$ac_ext << EOF
1e487827 8700
19bc6aad 8701#line 8702 "configure"
1e487827
VS
8702#include "confdefs.h"
8703
698dcdb6
VZ
8704main(){return(0);}
8705EOF
19bc6aad 8706if { (eval echo configure:8707: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
8707 ac_cv_prog_cc_works=yes
8708 # If we can't run a trivial program, we are probably using a cross compiler.
8709 if (./conftest; exit) 2>/dev/null; then
8710 ac_cv_prog_cc_cross=no
8711 else
8712 ac_cv_prog_cc_cross=yes
8713 fi
8714else
8715 echo "configure: failed program was:" >&5
8716 cat conftest.$ac_ext >&5
8717 ac_cv_prog_cc_works=no
8718fi
8719rm -fr conftest*
8720ac_ext=c
8721# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8722ac_cpp='$CPP $CPPFLAGS'
8723ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8724ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8725cross_compiling=$ac_cv_prog_cc_cross
8726
8727echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
8728if test $ac_cv_prog_cc_works = no; then
8729 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
8730fi
8731echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
19bc6aad 8732echo "configure:8733: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
698dcdb6
VZ
8733echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
8734cross_compiling=$ac_cv_prog_cc_cross
8735
8736echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
19bc6aad 8737echo "configure:8738: checking whether we are using GNU C" >&5
698dcdb6
VZ
8738if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
8739 echo $ac_n "(cached) $ac_c" 1>&6
8740else
8741 cat > conftest.c <<EOF
8742#ifdef __GNUC__
8743 yes;
1e487827 8744#endif
698dcdb6 8745EOF
19bc6aad 8746if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:8747: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
698dcdb6
VZ
8747 ac_cv_prog_gcc=yes
8748else
8749 ac_cv_prog_gcc=no
8750fi
8751fi
1e487827 8752
698dcdb6 8753echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1e487827 8754
698dcdb6
VZ
8755if test $ac_cv_prog_gcc = yes; then
8756 GCC=yes
8757else
8758 GCC=
8759fi
1e487827 8760
698dcdb6
VZ
8761ac_test_CFLAGS="${CFLAGS+set}"
8762ac_save_CFLAGS="$CFLAGS"
8763CFLAGS=
8764echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
19bc6aad 8765echo "configure:8766: checking whether ${CC-cc} accepts -g" >&5
698dcdb6
VZ
8766if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
8767 echo $ac_n "(cached) $ac_c" 1>&6
8768else
8769 echo 'void f(){}' > conftest.c
8770if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
10f2d63a
VZ
8771 ac_cv_prog_cc_g=yes
8772else
698dcdb6 8773 ac_cv_prog_cc_g=no
10f2d63a 8774fi
698dcdb6
VZ
8775rm -f conftest*
8776
10f2d63a 8777fi
698dcdb6
VZ
8778
8779echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
10f2d63a 8780if test "$ac_test_CFLAGS" = set; then
698dcdb6 8781 CFLAGS="$ac_save_CFLAGS"
10f2d63a
VZ
8782elif test $ac_cv_prog_cc_g = yes; then
8783 if test "$GCC" = yes; then
8784 CFLAGS="-g -O2"
8785 else
8786 CFLAGS="-g"
8787 fi
8788else
8789 if test "$GCC" = yes; then
8790 CFLAGS="-O2"
8791 else
8792 CFLAGS=
8793 fi
8794fi
8795
8796
698dcdb6 8797echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
19bc6aad 8798echo "configure:8799: checking how to run the C preprocessor" >&5
10f2d63a
VZ
8799# On Suns, sometimes $CPP names a directory.
8800if test -n "$CPP" && test -d "$CPP"; then
8801 CPP=
8802fi
8803if test -z "$CPP"; then
698dcdb6
VZ
8804if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
8805 echo $ac_n "(cached) $ac_c" 1>&6
8806else
8807 # This must be in double quotes, not single quotes, because CPP may get
8808 # substituted into the Makefile and "${CC-cc}" will confuse make.
8809 CPP="${CC-cc} -E"
10f2d63a 8810 # On the NeXT, cc -E runs the code through the compiler's parser,
698dcdb6
VZ
8811 # not just through cpp.
8812 cat > conftest.$ac_ext <<EOF
19bc6aad 8813#line 8814 "configure"
10f2d63a
VZ
8814#include "confdefs.h"
8815#include <assert.h>
698dcdb6
VZ
8816Syntax Error
8817EOF
8818ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
19bc6aad 8819{ (eval echo configure:8820: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
8820ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8821if test -z "$ac_err"; then
10f2d63a
VZ
8822 :
8823else
698dcdb6
VZ
8824 echo "$ac_err" >&5
8825 echo "configure: failed program was:" >&5
10f2d63a 8826 cat conftest.$ac_ext >&5
698dcdb6
VZ
8827 rm -rf conftest*
8828 CPP="${CC-cc} -E -traditional-cpp"
8829 cat > conftest.$ac_ext <<EOF
19bc6aad 8830#line 8831 "configure"
10f2d63a 8831#include "confdefs.h"
698dcdb6
VZ
8832#include <assert.h>
8833Syntax Error
8834EOF
8835ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
19bc6aad 8836{ (eval echo configure:8837: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
8837ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8838if test -z "$ac_err"; then
8839 :
10f2d63a 8840else
698dcdb6
VZ
8841 echo "$ac_err" >&5
8842 echo "configure: failed program was:" >&5
10f2d63a 8843 cat conftest.$ac_ext >&5
698dcdb6
VZ
8844 rm -rf conftest*
8845 CPP="${CC-cc} -nologo -E"
8846 cat > conftest.$ac_ext <<EOF
19bc6aad 8847#line 8848 "configure"
10f2d63a
VZ
8848#include "confdefs.h"
8849#include <assert.h>
698dcdb6
VZ
8850Syntax Error
8851EOF
8852ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
19bc6aad 8853{ (eval echo configure:8854: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
8854ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8855if test -z "$ac_err"; then
10f2d63a
VZ
8856 :
8857else
698dcdb6
VZ
8858 echo "$ac_err" >&5
8859 echo "configure: failed program was:" >&5
10f2d63a 8860 cat conftest.$ac_ext >&5
698dcdb6
VZ
8861 rm -rf conftest*
8862 CPP=/lib/cpp
10f2d63a 8863fi
698dcdb6 8864rm -f conftest*
10f2d63a 8865fi
698dcdb6 8866rm -f conftest*
703e0a69 8867fi
698dcdb6
VZ
8868rm -f conftest*
8869 ac_cv_prog_CPP="$CPP"
8870fi
8871 CPP="$ac_cv_prog_CPP"
10f2d63a 8872else
698dcdb6 8873 ac_cv_prog_CPP="$CPP"
10f2d63a 8874fi
698dcdb6 8875echo "$ac_t""$CPP" 1>&6
10f2d63a 8876
698dcdb6
VZ
8877if test $ac_cv_prog_gcc = yes; then
8878 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
19bc6aad 8879echo "configure:8880: checking whether ${CC-cc} needs -traditional" >&5
698dcdb6
VZ
8880if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
8881 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
8882else
8883 ac_pattern="Autoconf.*'x'"
698dcdb6 8884 cat > conftest.$ac_ext <<EOF
19bc6aad 8885#line 8886 "configure"
10f2d63a
VZ
8886#include "confdefs.h"
8887#include <sgtty.h>
8888Autoconf TIOCGETP
698dcdb6 8889EOF
10f2d63a
VZ
8890if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8891 egrep "$ac_pattern" >/dev/null 2>&1; then
698dcdb6 8892 rm -rf conftest*
10f2d63a
VZ
8893 ac_cv_prog_gcc_traditional=yes
8894else
698dcdb6 8895 rm -rf conftest*
10f2d63a
VZ
8896 ac_cv_prog_gcc_traditional=no
8897fi
8898rm -f conftest*
8899
698dcdb6 8900
10f2d63a 8901 if test $ac_cv_prog_gcc_traditional = no; then
698dcdb6 8902 cat > conftest.$ac_ext <<EOF
19bc6aad 8903#line 8904 "configure"
10f2d63a
VZ
8904#include "confdefs.h"
8905#include <termio.h>
8906Autoconf TCGETA
698dcdb6 8907EOF
10f2d63a
VZ
8908if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8909 egrep "$ac_pattern" >/dev/null 2>&1; then
698dcdb6 8910 rm -rf conftest*
10f2d63a
VZ
8911 ac_cv_prog_gcc_traditional=yes
8912fi
8913rm -f conftest*
8914
8915 fi
8916fi
698dcdb6
VZ
8917
8918echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
10f2d63a
VZ
8919 if test $ac_cv_prog_gcc_traditional = yes; then
8920 CC="$CC -traditional"
8921 fi
8922fi
8923
703e0a69 8924
698dcdb6
VZ
8925
8926ac_ext=C
8927# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1e487827 8928ac_cpp='$CXXCPP $CPPFLAGS'
698dcdb6
VZ
8929ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8930ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8931cross_compiling=$ac_cv_prog_cxx_cross
8932
8933
ec603395 8934CXXFLAGS=${CXXFLAGS:=}
698dcdb6
VZ
8935for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
8936do
8937# Extract the first word of "$ac_prog", so it can be a program name with args.
8938set dummy $ac_prog; ac_word=$2
8939echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
19bc6aad 8940echo "configure:8941: checking for $ac_word" >&5
698dcdb6
VZ
8941if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
8942 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
8943else
8944 if test -n "$CXX"; then
8945 ac_cv_prog_CXX="$CXX" # Let the user override the test.
8946else
698dcdb6
VZ
8947 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8948 ac_dummy="$PATH"
8949 for ac_dir in $ac_dummy; do
8950 test -z "$ac_dir" && ac_dir=.
8951 if test -f $ac_dir/$ac_word; then
8952 ac_cv_prog_CXX="$ac_prog"
8953 break
8954 fi
8955 done
8956 IFS="$ac_save_ifs"
10f2d63a
VZ
8957fi
8958fi
698dcdb6 8959CXX="$ac_cv_prog_CXX"
10f2d63a 8960if test -n "$CXX"; then
698dcdb6 8961 echo "$ac_t""$CXX" 1>&6
10f2d63a 8962else
698dcdb6 8963 echo "$ac_t""no" 1>&6
10f2d63a
VZ
8964fi
8965
698dcdb6 8966test -n "$CXX" && break
10f2d63a 8967done
698dcdb6 8968test -n "$CXX" || CXX="gcc"
10f2d63a
VZ
8969
8970
698dcdb6 8971echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
19bc6aad 8972echo "configure:8973: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
10f2d63a 8973
698dcdb6
VZ
8974ac_ext=C
8975# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8976ac_cpp='$CXXCPP $CPPFLAGS'
8977ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8978ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8979cross_compiling=$ac_cv_prog_cxx_cross
703e0a69 8980
698dcdb6
VZ
8981cat > conftest.$ac_ext << EOF
8982
19bc6aad 8983#line 8984 "configure"
10f2d63a
VZ
8984#include "confdefs.h"
8985
698dcdb6
VZ
8986int main(){return(0);}
8987EOF
19bc6aad 8988if { (eval echo configure:8989: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
8989 ac_cv_prog_cxx_works=yes
8990 # If we can't run a trivial program, we are probably using a cross compiler.
8991 if (./conftest; exit) 2>/dev/null; then
8992 ac_cv_prog_cxx_cross=no
8993 else
8994 ac_cv_prog_cxx_cross=yes
8995 fi
8996else
8997 echo "configure: failed program was:" >&5
8998 cat conftest.$ac_ext >&5
8999 ac_cv_prog_cxx_works=no
9000fi
9001rm -fr conftest*
9002ac_ext=C
9003# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9004ac_cpp='$CXXCPP $CPPFLAGS'
9005ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9006ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9007cross_compiling=$ac_cv_prog_cxx_cross
9008
9009echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
9010if test $ac_cv_prog_cxx_works = no; then
9011 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
9012fi
9013echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
19bc6aad 9014echo "configure:9015: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
698dcdb6
VZ
9015echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
9016cross_compiling=$ac_cv_prog_cxx_cross
9017
9018echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
19bc6aad 9019echo "configure:9020: checking whether we are using GNU C++" >&5
698dcdb6
VZ
9020if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
9021 echo $ac_n "(cached) $ac_c" 1>&6
9022else
9023 cat > conftest.C <<EOF
9024#ifdef __GNUC__
9025 yes;
10f2d63a 9026#endif
698dcdb6 9027EOF
19bc6aad 9028if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:9029: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
698dcdb6
VZ
9029 ac_cv_prog_gxx=yes
9030else
9031 ac_cv_prog_gxx=no
9032fi
9033fi
10f2d63a 9034
698dcdb6 9035echo "$ac_t""$ac_cv_prog_gxx" 1>&6
10f2d63a 9036
698dcdb6
VZ
9037if test $ac_cv_prog_gxx = yes; then
9038 GXX=yes
9039else
9040 GXX=
9041fi
10f2d63a 9042
698dcdb6
VZ
9043ac_test_CXXFLAGS="${CXXFLAGS+set}"
9044ac_save_CXXFLAGS="$CXXFLAGS"
9045CXXFLAGS=
9046echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
19bc6aad 9047echo "configure:9048: checking whether ${CXX-g++} accepts -g" >&5
698dcdb6
VZ
9048if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
9049 echo $ac_n "(cached) $ac_c" 1>&6
9050else
9051 echo 'void f(){}' > conftest.cc
9052if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
10f2d63a
VZ
9053 ac_cv_prog_cxx_g=yes
9054else
698dcdb6 9055 ac_cv_prog_cxx_g=no
10f2d63a 9056fi
698dcdb6
VZ
9057rm -f conftest*
9058
10f2d63a 9059fi
698dcdb6
VZ
9060
9061echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
10f2d63a 9062if test "$ac_test_CXXFLAGS" = set; then
698dcdb6 9063 CXXFLAGS="$ac_save_CXXFLAGS"
10f2d63a
VZ
9064elif test $ac_cv_prog_cxx_g = yes; then
9065 if test "$GXX" = yes; then
9066 CXXFLAGS="-g -O2"
9067 else
9068 CXXFLAGS="-g"
9069 fi
9070else
9071 if test "$GXX" = yes; then
9072 CXXFLAGS="-O2"
9073 else
9074 CXXFLAGS=
9075 fi
9076fi
9077
9078
10f2d63a 9079ac_ext=c
698dcdb6 9080# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10f2d63a 9081ac_cpp='$CPP $CPPFLAGS'
698dcdb6
VZ
9082ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9083ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9084cross_compiling=$ac_cv_prog_cc_cross
9085
9086
9087# Extract the first word of "ranlib", so it can be a program name with args.
9088set dummy ranlib; ac_word=$2
9089echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
19bc6aad 9090echo "configure:9091: checking for $ac_word" >&5
698dcdb6
VZ
9091if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
9092 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
9093else
9094 if test -n "$RANLIB"; then
9095 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9096else
698dcdb6
VZ
9097 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9098 ac_dummy="$PATH"
9099 for ac_dir in $ac_dummy; do
9100 test -z "$ac_dir" && ac_dir=.
9101 if test -f $ac_dir/$ac_word; then
9102 ac_cv_prog_RANLIB="ranlib"
9103 break
9104 fi
9105 done
9106 IFS="$ac_save_ifs"
9107 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
10f2d63a
VZ
9108fi
9109fi
698dcdb6 9110RANLIB="$ac_cv_prog_RANLIB"
10f2d63a 9111if test -n "$RANLIB"; then
698dcdb6 9112 echo "$ac_t""$RANLIB" 1>&6
10f2d63a 9113else
698dcdb6 9114 echo "$ac_t""no" 1>&6
10f2d63a
VZ
9115fi
9116
9117
9118# Extract the first word of "ar", so it can be a program name with args.
9119set dummy ar; ac_word=$2
698dcdb6 9120echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
19bc6aad 9121echo "configure:9122: checking for $ac_word" >&5
698dcdb6
VZ
9122if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
9123 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
9124else
9125 if test -n "$AR"; then
9126 ac_cv_prog_AR="$AR" # Let the user override the test.
9127else
698dcdb6
VZ
9128 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9129 ac_dummy="$PATH"
9130 for ac_dir in $ac_dummy; do
9131 test -z "$ac_dir" && ac_dir=.
9132 if test -f $ac_dir/$ac_word; then
9133 ac_cv_prog_AR="ar"
9134 break
9135 fi
9136 done
9137 IFS="$ac_save_ifs"
10f2d63a
VZ
9138 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
9139fi
9140fi
698dcdb6 9141AR="$ac_cv_prog_AR"
10f2d63a 9142if test -n "$AR"; then
698dcdb6 9143 echo "$ac_t""$AR" 1>&6
10f2d63a 9144else
698dcdb6 9145 echo "$ac_t""no" 1>&6
10f2d63a
VZ
9146fi
9147
698dcdb6 9148
6054113a 9149# Find a good install program. We prefer a C program (faster),
10f2d63a
VZ
9150# so one script is as good as another. But avoid the broken or
9151# incompatible versions:
9152# SysV /etc/install, /usr/sbin/install
9153# SunOS /usr/etc/install
9154# IRIX /sbin/install
9155# AIX /bin/install
9156# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
9157# AFS /usr/afsws/bin/install, which mishandles nonexistent args
9158# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
9159# ./install, which can be erroneously created by make from ./install.sh.
698dcdb6 9160echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
19bc6aad 9161echo "configure:9162: checking for a BSD compatible install" >&5
10f2d63a 9162if test -z "$INSTALL"; then
698dcdb6
VZ
9163if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
9164 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 9165else
698dcdb6 9166 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
10f2d63a
VZ
9167 for ac_dir in $PATH; do
9168 # Account for people who put trailing slashes in PATH elements.
698dcdb6
VZ
9169 case "$ac_dir/" in
9170 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
10f2d63a
VZ
9171 *)
9172 # OSF1 and SCO ODT 3.0 have their own names for install.
9173 # Don't use installbsd from OSF since it installs stuff as root
9174 # by default.
9175 for ac_prog in ginstall scoinst install; do
698dcdb6 9176 if test -f $ac_dir/$ac_prog; then
10f2d63a 9177 if test $ac_prog = install &&
698dcdb6 9178 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
10f2d63a
VZ
9179 # AIX install. It has an incompatible calling convention.
9180 :
9181 else
9182 ac_cv_path_install="$ac_dir/$ac_prog -c"
9183 break 2
9184 fi
9185 fi
9186 done
9187 ;;
9188 esac
9189 done
698dcdb6 9190 IFS="$ac_save_IFS"
10f2d63a
VZ
9191
9192fi
9193 if test "${ac_cv_path_install+set}" = set; then
698dcdb6 9194 INSTALL="$ac_cv_path_install"
10f2d63a
VZ
9195 else
9196 # As a last resort, use the slow shell script. We don't cache a
9197 # path for INSTALL within a source directory, because that will
9198 # break other packages using the cache if that directory is
9199 # removed, or if the path is relative.
698dcdb6 9200 INSTALL="$ac_install_sh"
10f2d63a
VZ
9201 fi
9202fi
698dcdb6 9203echo "$ac_t""$INSTALL" 1>&6
10f2d63a
VZ
9204
9205# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
9206# It thinks the first close brace ends the variable substitution.
9207test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
9208
698dcdb6 9209test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
10f2d63a
VZ
9210
9211test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
9212
6054113a
GD
9213case "${host}" in
9214
b5853384 9215 powerpc-*-darwin* )
eb99ae0b
GD
9216 INSTALL_PROGRAM="cp -fp"
9217 INSTALL_DATA="cp -fp"
6054113a
GD
9218 ;;
9219 *)
9220 ;;
d6853540 9221esac
698dcdb6 9222
10f2d63a
VZ
9223# Extract the first word of "strip", so it can be a program name with args.
9224set dummy strip; ac_word=$2
698dcdb6 9225echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
19bc6aad 9226echo "configure:9227: checking for $ac_word" >&5
698dcdb6
VZ
9227if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
9228 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
9229else
9230 if test -n "$STRIP"; then
9231 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9232else
698dcdb6
VZ
9233 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9234 ac_dummy="$PATH"
9235 for ac_dir in $ac_dummy; do
9236 test -z "$ac_dir" && ac_dir=.
9237 if test -f $ac_dir/$ac_word; then
9238 ac_cv_prog_STRIP="strip"
9239 break
9240 fi
9241 done
9242 IFS="$ac_save_ifs"
10f2d63a
VZ
9243 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
9244fi
9245fi
698dcdb6 9246STRIP="$ac_cv_prog_STRIP"
10f2d63a 9247if test -n "$STRIP"; then
698dcdb6 9248 echo "$ac_t""$STRIP" 1>&6
10f2d63a 9249else
698dcdb6 9250 echo "$ac_t""no" 1>&6
10f2d63a
VZ
9251fi
9252
698dcdb6 9253
414eab6d 9254echo $ac_n "checking if make is GNU make""... $ac_c" 1>&6
19bc6aad 9255echo "configure:9256: checking if make is GNU make" >&5
414eab6d
VZ
9256if eval "test \"`echo '$''{'wx_cv_prog_makeisgnu'+set}'`\" = set"; then
9257 echo $ac_n "(cached) $ac_c" 1>&6
9258else
9259
9260 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
d558c907 9261 egrep -s GNU > /dev/null); then
414eab6d
VZ
9262 wx_cv_prog_makeisgnu="yes"
9263 else
9264 wx_cv_prog_makeisgnu="no"
9265 fi
9266
9267fi
9268
9269echo "$ac_t""$wx_cv_prog_makeisgnu" 1>&6
9270
9271if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
9272 IF_GNU_MAKE=""
9273else
9274 IF_GNU_MAKE="#"
9275fi
9276
9277
9278
9279if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
04e7a216 9280echo $ac_n "checking if make supports VPATH""... $ac_c" 1>&6
19bc6aad 9281echo "configure:9282: checking if make supports VPATH" >&5
04e7a216
VZ
9282if eval "test \"`echo '$''{'wx_cv_prog_makevpath'+set}'`\" = set"; then
9283 echo $ac_n "(cached) $ac_c" 1>&6
9284else
9285
10f2d63a
VZ
9286cat - << EOF > confMake
9287check : file
9288 cp \$? \$@
9289 cp \$? final_file
9290EOF
9291
9292if test ! -d sub ; then
9293 mkdir sub
9294fi
9295echo dummy > sub/file
f6bcfd97 9296${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
10f2d63a
VZ
9297RESULT=$?
9298rm -f sub/file check final_file confMake
9299rmdir sub
9300if test "$RESULT" = 0; then
04e7a216 9301 wx_cv_prog_makevpath="yes"
10f2d63a 9302else
04e7a216
VZ
9303 wx_cv_prog_makevpath="no"
9304fi
9305
9306fi
9307
9308echo "$ac_t""$wx_cv_prog_makevpath" 1>&6
9309
9310if test "x$wx_cv_prog_makevpath" != "xyes"; then
9311{ echo "configure: error:
1e487827
VS
9312You need a make-utility that is able to use the variable
9313VPATH correctly.
9314If your version of make does not support VPATH correctly,
9315please install GNU-make (possibly as gmake), and start
9316configure with the following command:
9317export MAKE=gmake; ./configure for sh-type shells
9318setenv MAKE gmake; ./configure for csh-type shells
9319Also please do remember to use gmake in this case every time
9320you are trying to compile.
698dcdb6 9321" 1>&2; exit 1; }
414eab6d 9322fi fi
10f2d63a
VZ
9323for ac_prog in 'bison -y' byacc
9324do
698dcdb6 9325# Extract the first word of "$ac_prog", so it can be a program name with args.
10f2d63a 9326set dummy $ac_prog; ac_word=$2
698dcdb6 9327echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
19bc6aad 9328echo "configure:9329: checking for $ac_word" >&5
698dcdb6
VZ
9329if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
9330 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
9331else
9332 if test -n "$YACC"; then
9333 ac_cv_prog_YACC="$YACC" # Let the user override the test.
9334else
698dcdb6
VZ
9335 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9336 ac_dummy="$PATH"
9337 for ac_dir in $ac_dummy; do
9338 test -z "$ac_dir" && ac_dir=.
9339 if test -f $ac_dir/$ac_word; then
9340 ac_cv_prog_YACC="$ac_prog"
9341 break
9342 fi
9343 done
9344 IFS="$ac_save_ifs"
10f2d63a
VZ
9345fi
9346fi
698dcdb6 9347YACC="$ac_cv_prog_YACC"
10f2d63a 9348if test -n "$YACC"; then
698dcdb6 9349 echo "$ac_t""$YACC" 1>&6
10f2d63a 9350else
698dcdb6 9351 echo "$ac_t""no" 1>&6
10f2d63a
VZ
9352fi
9353
698dcdb6 9354test -n "$YACC" && break
10f2d63a
VZ
9355done
9356test -n "$YACC" || YACC="yacc"
9357
698dcdb6
VZ
9358
9359# Extract the first word of "flex", so it can be a program name with args.
9360set dummy flex; ac_word=$2
9361echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
19bc6aad 9362echo "configure:9363: checking for $ac_word" >&5
698dcdb6
VZ
9363if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
9364 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
9365else
9366 if test -n "$LEX"; then
9367 ac_cv_prog_LEX="$LEX" # Let the user override the test.
9368else
698dcdb6
VZ
9369 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9370 ac_dummy="$PATH"
9371 for ac_dir in $ac_dummy; do
9372 test -z "$ac_dir" && ac_dir=.
9373 if test -f $ac_dir/$ac_word; then
9374 ac_cv_prog_LEX="flex"
9375 break
9376 fi
9377 done
9378 IFS="$ac_save_ifs"
9379 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
10f2d63a
VZ
9380fi
9381fi
698dcdb6 9382LEX="$ac_cv_prog_LEX"
10f2d63a 9383if test -n "$LEX"; then
698dcdb6 9384 echo "$ac_t""$LEX" 1>&6
10f2d63a 9385else
698dcdb6 9386 echo "$ac_t""no" 1>&6
10f2d63a
VZ
9387fi
9388
9389if test -z "$LEXLIB"
9390then
698dcdb6
VZ
9391 case "$LEX" in
9392 flex*) ac_lib=fl ;;
9393 *) ac_lib=l ;;
9394 esac
9395 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
19bc6aad 9396echo "configure:9397: checking for yywrap in -l$ac_lib" >&5
698dcdb6
VZ
9397ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
9398if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9399 echo $ac_n "(cached) $ac_c" 1>&6
9400else
9401 ac_save_LIBS="$LIBS"
9402LIBS="-l$ac_lib $LIBS"
9403cat > conftest.$ac_ext <<EOF
19bc6aad 9404#line 9405 "configure"
10f2d63a
VZ
9405#include "confdefs.h"
9406/* Override any gcc2 internal prototype to avoid an error. */
9407/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
9408 builtin and then its argument prototype would still apply. */
9409char yywrap();
10f2d63a 9410
698dcdb6
VZ
9411int main() {
9412yywrap()
9413; return 0; }
9414EOF
19bc6aad 9415if { (eval echo configure:9416: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
9416 rm -rf conftest*
9417 eval "ac_cv_lib_$ac_lib_var=yes"
10f2d63a 9418else
698dcdb6
VZ
9419 echo "configure: failed program was:" >&5
9420 cat conftest.$ac_ext >&5
9421 rm -rf conftest*
9422 eval "ac_cv_lib_$ac_lib_var=no"
10f2d63a 9423fi
698dcdb6
VZ
9424rm -f conftest*
9425LIBS="$ac_save_LIBS"
9426
10f2d63a 9427fi
698dcdb6
VZ
9428if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9429 echo "$ac_t""yes" 1>&6
9430 LEXLIB="-l$ac_lib"
9431else
9432 echo "$ac_t""no" 1>&6
10f2d63a
VZ
9433fi
9434
9435fi
9436
9437
698dcdb6 9438echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
19bc6aad 9439echo "configure:9440: checking whether ln -s works" >&5
698dcdb6
VZ
9440if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
9441 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 9442else
698dcdb6
VZ
9443 rm -f conftestdata
9444if ln -s X conftestdata 2>/dev/null
9445then
9446 rm -f conftestdata
9447 ac_cv_prog_LN_S="ln -s"
10f2d63a 9448else
698dcdb6 9449 ac_cv_prog_LN_S=ln
10f2d63a
VZ
9450fi
9451fi
698dcdb6
VZ
9452LN_S="$ac_cv_prog_LN_S"
9453if test "$ac_cv_prog_LN_S" = "ln -s"; then
9454 echo "$ac_t""yes" 1>&6
10f2d63a 9455else
698dcdb6 9456 echo "$ac_t""no" 1>&6
10f2d63a
VZ
9457fi
9458
9459
9460
21d1c967
GD
9461if test "$wxUSE_MAC" != 1; then
9462 for ac_hdr in strings.h
9463do
9464ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9465echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9466echo "configure:9467: checking for $ac_hdr" >&5
9467if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
19bc6aad
VZ
9468 echo $ac_n "(cached) $ac_c" 1>&6
9469else
90dd450c 9470 cat > conftest.$ac_ext <<EOF
21d1c967 9471#line 9472 "configure"
19bc6aad 9472#include "confdefs.h"
21d1c967 9473#include <$ac_hdr>
19bc6aad 9474EOF
21d1c967
GD
9475ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9476{ (eval echo configure:9477: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9477ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9478if test -z "$ac_err"; then
19bc6aad 9479 rm -rf conftest*
21d1c967 9480 eval "ac_cv_header_$ac_safe=yes"
19bc6aad 9481else
21d1c967 9482 echo "$ac_err" >&5
19bc6aad
VZ
9483 echo "configure: failed program was:" >&5
9484 cat conftest.$ac_ext >&5
9485 rm -rf conftest*
21d1c967 9486 eval "ac_cv_header_$ac_safe=no"
19bc6aad
VZ
9487fi
9488rm -f conftest*
19bc6aad 9489fi
21d1c967
GD
9490if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9491 echo "$ac_t""yes" 1>&6
9492 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9493 cat >> confdefs.h <<EOF
9494#define $ac_tr_hdr 1
19bc6aad 9495EOF
21d1c967
GD
9496
9497else
9498 echo "$ac_t""no" 1>&6
9499fi
9500done
19bc6aad 9501
19bc6aad
VZ
9502fi
9503
21d1c967
GD
9504for ac_hdr in stdlib.h
9505do
9506ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9507echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9508echo "configure:9509: checking for $ac_hdr" >&5
9509if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
18dbb1f6
VZ
9510 echo $ac_n "(cached) $ac_c" 1>&6
9511else
9512 cat > conftest.$ac_ext <<EOF
21d1c967 9513#line 9514 "configure"
18dbb1f6 9514#include "confdefs.h"
21d1c967 9515#include <$ac_hdr>
18dbb1f6 9516EOF
21d1c967
GD
9517ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9518{ (eval echo configure:9519: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9519ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9520if test -z "$ac_err"; then
18dbb1f6 9521 rm -rf conftest*
21d1c967 9522 eval "ac_cv_header_$ac_safe=yes"
18dbb1f6 9523else
21d1c967 9524 echo "$ac_err" >&5
18dbb1f6
VZ
9525 echo "configure: failed program was:" >&5
9526 cat conftest.$ac_ext >&5
21d1c967
GD
9527 rm -rf conftest*
9528 eval "ac_cv_header_$ac_safe=no"
18dbb1f6
VZ
9529fi
9530rm -f conftest*
90dd450c 9531fi
21d1c967
GD
9532if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9533 echo "$ac_t""yes" 1>&6
9534 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9535 cat >> confdefs.h <<EOF
9536#define $ac_tr_hdr 1
90dd450c 9537EOF
21d1c967
GD
9538
9539else
9540 echo "$ac_t""no" 1>&6
9541fi
9542done
90dd450c 9543
21d1c967
GD
9544for ac_hdr in malloc.h
9545do
9546ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9547echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9548echo "configure:9549: checking for $ac_hdr" >&5
9549if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
90dd450c 9550 echo $ac_n "(cached) $ac_c" 1>&6
90dd450c
VZ
9551else
9552 cat > conftest.$ac_ext <<EOF
21d1c967 9553#line 9554 "configure"
90dd450c 9554#include "confdefs.h"
21d1c967 9555#include <$ac_hdr>
18dbb1f6 9556EOF
21d1c967
GD
9557ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9558{ (eval echo configure:9559: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9559ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9560if test -z "$ac_err"; then
9561 rm -rf conftest*
9562 eval "ac_cv_header_$ac_safe=yes"
18dbb1f6 9563else
21d1c967 9564 echo "$ac_err" >&5
18dbb1f6
VZ
9565 echo "configure: failed program was:" >&5
9566 cat conftest.$ac_ext >&5
21d1c967
GD
9567 rm -rf conftest*
9568 eval "ac_cv_header_$ac_safe=no"
18dbb1f6 9569fi
21d1c967 9570rm -f conftest*
18dbb1f6 9571fi
21d1c967
GD
9572if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9573 echo "$ac_t""yes" 1>&6
9574 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9575 cat >> confdefs.h <<EOF
9576#define $ac_tr_hdr 1
4f14bcd8 9577EOF
21d1c967
GD
9578
9579else
9580 echo "$ac_t""no" 1>&6
9581fi
9582done
dad6c0ea 9583
21d1c967
GD
9584for ac_hdr in unistd.h
9585do
9586ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9587echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9588echo "configure:9589: checking for $ac_hdr" >&5
9589if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3a922bb4
RL
9590 echo $ac_n "(cached) $ac_c" 1>&6
9591else
9592 cat > conftest.$ac_ext <<EOF
21d1c967 9593#line 9594 "configure"
3a922bb4 9594#include "confdefs.h"
21d1c967 9595#include <$ac_hdr>
3a922bb4 9596EOF
21d1c967
GD
9597ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9598{ (eval echo configure:9599: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9599ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9600if test -z "$ac_err"; then
9601 rm -rf conftest*
9602 eval "ac_cv_header_$ac_safe=yes"
3a922bb4 9603else
21d1c967 9604 echo "$ac_err" >&5
3a922bb4
RL
9605 echo "configure: failed program was:" >&5
9606 cat conftest.$ac_ext >&5
21d1c967
GD
9607 rm -rf conftest*
9608 eval "ac_cv_header_$ac_safe=no"
3a922bb4 9609fi
21d1c967 9610rm -f conftest*
90dd450c 9611fi
21d1c967
GD
9612if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9613 echo "$ac_t""yes" 1>&6
9614 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9615 cat >> confdefs.h <<EOF
9616#define $ac_tr_hdr 1
90dd450c 9617EOF
21d1c967
GD
9618
9619else
9620 echo "$ac_t""no" 1>&6
9621fi
9622done
90dd450c 9623
21d1c967
GD
9624for ac_hdr in wchar.h
9625do
9626ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9627echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9628echo "configure:9629: checking for $ac_hdr" >&5
9629if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4f14bcd8 9630 echo $ac_n "(cached) $ac_c" 1>&6
90dd450c
VZ
9631else
9632 cat > conftest.$ac_ext <<EOF
21d1c967 9633#line 9634 "configure"
4f14bcd8 9634#include "confdefs.h"
21d1c967 9635#include <$ac_hdr>
3a922bb4 9636EOF
21d1c967
GD
9637ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9638{ (eval echo configure:9639: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9639ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9640if test -z "$ac_err"; then
9641 rm -rf conftest*
9642 eval "ac_cv_header_$ac_safe=yes"
4f14bcd8 9643else
21d1c967 9644 echo "$ac_err" >&5
4f14bcd8
GD
9645 echo "configure: failed program was:" >&5
9646 cat conftest.$ac_ext >&5
21d1c967
GD
9647 rm -rf conftest*
9648 eval "ac_cv_header_$ac_safe=no"
3a922bb4 9649fi
21d1c967 9650rm -f conftest*
4f14bcd8 9651fi
21d1c967
GD
9652if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9653 echo "$ac_t""yes" 1>&6
9654 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9655 cat >> confdefs.h <<EOF
9656#define $ac_tr_hdr 1
4f14bcd8 9657EOF
21d1c967
GD
9658
9659else
9660 echo "$ac_t""no" 1>&6
9661fi
9662done
4f14bcd8 9663
4f14bcd8 9664
21d1c967
GD
9665if test "$ac_cv_header_wchar_h" != "yes"; then
9666 for ac_hdr in wcstr.h
9667do
9668ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9669echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9670echo "configure:9671: checking for $ac_hdr" >&5
9671if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
d4158b5d
VS
9672 echo $ac_n "(cached) $ac_c" 1>&6
9673else
9674 cat > conftest.$ac_ext <<EOF
21d1c967 9675#line 9676 "configure"
d4158b5d 9676#include "confdefs.h"
21d1c967 9677#include <$ac_hdr>
d4158b5d 9678EOF
21d1c967
GD
9679ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9680{ (eval echo configure:9681: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9681ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9682if test -z "$ac_err"; then
9683 rm -rf conftest*
9684 eval "ac_cv_header_$ac_safe=yes"
d4158b5d 9685else
21d1c967 9686 echo "$ac_err" >&5
d4158b5d
VS
9687 echo "configure: failed program was:" >&5
9688 cat conftest.$ac_ext >&5
21d1c967
GD
9689 rm -rf conftest*
9690 eval "ac_cv_header_$ac_safe=no"
d4158b5d 9691fi
21d1c967
GD
9692rm -f conftest*
9693fi
9694if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9695 echo "$ac_t""yes" 1>&6
9696 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9697 cat >> confdefs.h <<EOF
9698#define $ac_tr_hdr 1
9699EOF
9700
9701else
9702 echo "$ac_t""no" 1>&6
d4158b5d 9703fi
21d1c967 9704done
f6bcfd97 9705
90dd450c 9706fi
90dd450c
VZ
9707
9708
21d1c967
GD
9709for ac_hdr in fnmatch.h
9710do
9711ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9712echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9713echo "configure:9714: checking for $ac_hdr" >&5
9714if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
90dd450c 9715 echo $ac_n "(cached) $ac_c" 1>&6
90dd450c
VZ
9716else
9717 cat > conftest.$ac_ext <<EOF
21d1c967 9718#line 9719 "configure"
90dd450c 9719#include "confdefs.h"
21d1c967 9720#include <$ac_hdr>
90dd450c 9721EOF
21d1c967
GD
9722ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9723{ (eval echo configure:9724: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9724ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9725if test -z "$ac_err"; then
9726 rm -rf conftest*
9727 eval "ac_cv_header_$ac_safe=yes"
3a922bb4 9728else
21d1c967 9729 echo "$ac_err" >&5
3a922bb4
RL
9730 echo "configure: failed program was:" >&5
9731 cat conftest.$ac_ext >&5
21d1c967
GD
9732 rm -rf conftest*
9733 eval "ac_cv_header_$ac_safe=no"
3a922bb4 9734fi
21d1c967 9735rm -f conftest*
4f14bcd8 9736fi
21d1c967
GD
9737if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9738 echo "$ac_t""yes" 1>&6
9739 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9740 cat >> confdefs.h <<EOF
9741#define $ac_tr_hdr 1
90dd450c 9742EOF
21d1c967
GD
9743
9744else
9745 echo "$ac_t""no" 1>&6
9746fi
9747done
90dd450c
VZ
9748
9749
21d1c967
GD
9750if test "x$ac_cv_header_fnmatch_h" = "xyes"; then
9751 for ac_func in fnmatch
9752do
9753echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9754echo "configure:9755: checking for $ac_func" >&5
9755if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
90dd450c 9756 echo $ac_n "(cached) $ac_c" 1>&6
90dd450c
VZ
9757else
9758 cat > conftest.$ac_ext <<EOF
21d1c967 9759#line 9760 "configure"
90dd450c 9760#include "confdefs.h"
21d1c967
GD
9761/* System header to define __stub macros and hopefully few prototypes,
9762 which can conflict with char $ac_func(); below. */
9763#include <assert.h>
9764/* Override any gcc2 internal prototype to avoid an error. */
9765/* We use char because int might match the return type of a gcc2
9766 builtin and then its argument prototype would still apply. */
9767char $ac_func();
9768
9769int main() {
9770
9771/* The GNU C library defines this for functions which it implements
9772 to always fail with ENOSYS. Some functions are actually named
9773 something starting with __ and the normal name is an alias. */
9774#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9775choke me
9776#else
9777$ac_func();
9778#endif
9779
9780; return 0; }
90dd450c 9781EOF
21d1c967
GD
9782if { (eval echo configure:9783: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9783 rm -rf conftest*
9784 eval "ac_cv_func_$ac_func=yes"
90dd450c
VZ
9785else
9786 echo "configure: failed program was:" >&5
9787 cat conftest.$ac_ext >&5
21d1c967
GD
9788 rm -rf conftest*
9789 eval "ac_cv_func_$ac_func=no"
90dd450c 9790fi
21d1c967 9791rm -f conftest*
4f14bcd8 9792fi
32832908 9793
21d1c967
GD
9794if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9795 echo "$ac_t""yes" 1>&6
9796 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9797 cat >> confdefs.h <<EOF
9798#define $ac_tr_func 1
90dd450c 9799EOF
21d1c967
GD
9800
9801else
9802 echo "$ac_t""no" 1>&6
9803fi
9804done
90dd450c 9805
21d1c967 9806fi
90dd450c 9807
21d1c967
GD
9808for ac_hdr in langinfo.h
9809do
9810ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9811echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9812echo "configure:9813: checking for $ac_hdr" >&5
9813if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
90dd450c 9814 echo $ac_n "(cached) $ac_c" 1>&6
90dd450c
VZ
9815else
9816 cat > conftest.$ac_ext <<EOF
21d1c967 9817#line 9818 "configure"
90dd450c 9818#include "confdefs.h"
21d1c967 9819#include <$ac_hdr>
90dd450c 9820EOF
21d1c967
GD
9821ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9822{ (eval echo configure:9823: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9823ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9824if test -z "$ac_err"; then
9825 rm -rf conftest*
9826 eval "ac_cv_header_$ac_safe=yes"
90dd450c 9827else
21d1c967 9828 echo "$ac_err" >&5
90dd450c
VZ
9829 echo "configure: failed program was:" >&5
9830 cat conftest.$ac_ext >&5
21d1c967
GD
9831 rm -rf conftest*
9832 eval "ac_cv_header_$ac_safe=no"
90dd450c 9833fi
21d1c967 9834rm -f conftest*
4f14bcd8 9835fi
21d1c967
GD
9836if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9837 echo "$ac_t""yes" 1>&6
9838 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9839 cat >> confdefs.h <<EOF
9840#define $ac_tr_hdr 1
90dd450c 9841EOF
21d1c967
GD
9842
9843else
9844 echo "$ac_t""no" 1>&6
9845fi
9846done
3a922bb4 9847
7b7a7637 9848
21d1c967
GD
9849if test "$wxUSE_GUI" = "yes"; then
9850 if test "$wxUSE_UNIX" = "yes"; then
9851 for ac_hdr in X11/XKBlib.h
9852do
9853ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9854echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9855echo "configure:9856: checking for $ac_hdr" >&5
9856if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
90dd450c 9857 echo $ac_n "(cached) $ac_c" 1>&6
90dd450c
VZ
9858else
9859 cat > conftest.$ac_ext <<EOF
21d1c967 9860#line 9861 "configure"
90dd450c 9861#include "confdefs.h"
21d1c967 9862#include <$ac_hdr>
90dd450c 9863EOF
21d1c967
GD
9864ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9865{ (eval echo configure:9866: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9866ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9867if test -z "$ac_err"; then
9868 rm -rf conftest*
9869 eval "ac_cv_header_$ac_safe=yes"
90dd450c 9870else
21d1c967 9871 echo "$ac_err" >&5
90dd450c
VZ
9872 echo "configure: failed program was:" >&5
9873 cat conftest.$ac_ext >&5
21d1c967
GD
9874 rm -rf conftest*
9875 eval "ac_cv_header_$ac_safe=no"
3a922bb4 9876fi
21d1c967 9877rm -f conftest*
90dd450c 9878fi
21d1c967
GD
9879if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9880 echo "$ac_t""yes" 1>&6
9881 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9882 cat >> confdefs.h <<EOF
9883#define $ac_tr_hdr 1
4f14bcd8 9884EOF
21d1c967
GD
9885
9886else
9887 echo "$ac_t""no" 1>&6
9888fi
9889done
10f2d63a 9890
21d1c967 9891 fi
90dd450c 9892fi
81809c07 9893
21d1c967
GD
9894
9895echo $ac_n "checking for working const""... $ac_c" 1>&6
9896echo "configure:9897: checking for working const" >&5
9897if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
8168de4c
VZ
9898 echo $ac_n "(cached) $ac_c" 1>&6
9899else
21d1c967
GD
9900 cat > conftest.$ac_ext <<EOF
9901#line 9902 "configure"
4f14bcd8 9902#include "confdefs.h"
21d1c967 9903
4f14bcd8 9904int main() {
21d1c967
GD
9905
9906/* Ultrix mips cc rejects this. */
9907typedef int charset[2]; const charset x;
9908/* SunOS 4.1.1 cc rejects this. */
9909char const *const *ccp;
9910char **p;
9911/* NEC SVR4.0.2 mips cc rejects this. */
9912struct point {int x, y;};
9913static struct point const zero = {0,0};
9914/* AIX XL C 1.02.0.0 rejects this.
9915 It does not let you subtract one const X* pointer from another in an arm
9916 of an if-expression whose if-part is not a constant expression */
9917const char *g = "string";
9918ccp = &g + (g ? g-g : 0);
9919/* HPUX 7.0 cc rejects these. */
9920++ccp;
9921p = (char**) ccp;
9922ccp = (char const *const *) p;
9923{ /* SCO 3.2v4 cc rejects this. */
9924 char *t;
9925 char const *s = 0 ? (char *) 0 : (char const *) 0;
9926
9927 *t++ = 0;
9928}
9929{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9930 int x[] = {25, 17};
9931 const int *foo = &x[0];
9932 ++foo;
9933}
9934{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9935 typedef const int *iptr;
9936 iptr p = 0;
9937 ++p;
9938}
9939{ /* AIX XL C 1.02.0.0 rejects this saying
9940 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9941 struct s { int j; const int *ap[3]; };
9942 struct s *b; b->j = 5;
9943}
9944{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9945 const int foo = 10;
9946}
4f14bcd8 9947
4f14bcd8
GD
9948; return 0; }
9949EOF
21d1c967 9950if { (eval echo configure:9951: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4f14bcd8 9951 rm -rf conftest*
21d1c967 9952 ac_cv_c_const=yes
6f72b082 9953else
4f14bcd8
GD
9954 echo "configure: failed program was:" >&5
9955 cat conftest.$ac_ext >&5
9956 rm -rf conftest*
21d1c967 9957 ac_cv_c_const=no
4f14bcd8
GD
9958fi
9959rm -f conftest*
698dcdb6 9960fi
6f72b082 9961
21d1c967
GD
9962echo "$ac_t""$ac_cv_c_const" 1>&6
9963if test $ac_cv_c_const = no; then
9964 cat >> confdefs.h <<\EOF
9965#define const
90dd450c
VZ
9966EOF
9967
21d1c967 9968fi
90dd450c 9969
21d1c967
GD
9970echo $ac_n "checking for inline""... $ac_c" 1>&6
9971echo "configure:9972: checking for inline" >&5
9972if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
4f14bcd8 9973 echo $ac_n "(cached) $ac_c" 1>&6
6f72b082 9974else
21d1c967
GD
9975 ac_cv_c_inline=no
9976for ac_kw in inline __inline__ __inline; do
9977 cat > conftest.$ac_ext <<EOF
9978#line 9979 "configure"
4f14bcd8 9979#include "confdefs.h"
90dd450c 9980
21d1c967
GD
9981int main() {
9982} $ac_kw foo() {
4f14bcd8
GD
9983; return 0; }
9984EOF
21d1c967 9985if { (eval echo configure:9986: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4f14bcd8 9986 rm -rf conftest*
21d1c967 9987 ac_cv_c_inline=$ac_kw; break
6f72b082 9988else
4f14bcd8
GD
9989 echo "configure: failed program was:" >&5
9990 cat conftest.$ac_ext >&5
698dcdb6 9991fi
4f14bcd8 9992rm -f conftest*
21d1c967 9993done
4f14bcd8 9994
21d1c967 9995fi
4f14bcd8 9996
21d1c967
GD
9997echo "$ac_t""$ac_cv_c_inline" 1>&6
9998case "$ac_cv_c_inline" in
9999 inline | yes) ;;
10000 no) cat >> confdefs.h <<\EOF
10001#define inline
90dd450c 10002EOF
21d1c967
GD
10003 ;;
10004 *) cat >> confdefs.h <<EOF
10005#define inline $ac_cv_c_inline
4f14bcd8 10006EOF
21d1c967
GD
10007 ;;
10008esac
4f14bcd8 10009
90dd450c 10010
21d1c967
GD
10011echo $ac_n "checking size of char""... $ac_c" 1>&6
10012echo "configure:10013: checking size of char" >&5
10013if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
4f14bcd8
GD
10014 echo $ac_n "(cached) $ac_c" 1>&6
10015else
21d1c967
GD
10016 if test "$cross_compiling" = yes; then
10017 ac_cv_sizeof_char=1
4f14bcd8 10018else
90dd450c 10019 cat > conftest.$ac_ext <<EOF
21d1c967 10020#line 10021 "configure"
4f14bcd8 10021#include "confdefs.h"
21d1c967
GD
10022#include <stdio.h>
10023main()
10024{
10025 FILE *f=fopen("conftestval", "w");
10026 if (!f) exit(1);
10027 fprintf(f, "%d\n", sizeof(char));
10028 exit(0);
90dd450c 10029}
4f14bcd8 10030EOF
21d1c967 10031if { (eval echo configure:10032: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
90dd450c 10032then
21d1c967 10033 ac_cv_sizeof_char=`cat conftestval`
4f14bcd8
GD
10034else
10035 echo "configure: failed program was:" >&5
10036 cat conftest.$ac_ext >&5
90dd450c 10037 rm -fr conftest*
21d1c967 10038 ac_cv_sizeof_char=0
90dd450c
VZ
10039fi
10040rm -fr conftest*
4f14bcd8 10041fi
4f14bcd8
GD
10042
10043fi
21d1c967
GD
10044echo "$ac_t""$ac_cv_sizeof_char" 1>&6
10045cat >> confdefs.h <<EOF
10046#define SIZEOF_CHAR $ac_cv_sizeof_char
10047EOF
4f14bcd8 10048
21d1c967
GD
10049
10050echo $ac_n "checking size of short""... $ac_c" 1>&6
10051echo "configure:10052: checking size of short" >&5
10052if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
10053 echo $ac_n "(cached) $ac_c" 1>&6
10054else
10055 if test "$cross_compiling" = yes; then
10056 ac_cv_sizeof_short=2
10057else
10058 cat > conftest.$ac_ext <<EOF
10059#line 10060 "configure"
10060#include "confdefs.h"
10061#include <stdio.h>
10062main()
10063{
10064 FILE *f=fopen("conftestval", "w");
10065 if (!f) exit(1);
10066 fprintf(f, "%d\n", sizeof(short));
10067 exit(0);
10068}
90dd450c 10069EOF
21d1c967
GD
10070if { (eval echo configure:10071: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10071then
10072 ac_cv_sizeof_short=`cat conftestval`
10073else
10074 echo "configure: failed program was:" >&5
10075 cat conftest.$ac_ext >&5
10076 rm -fr conftest*
10077 ac_cv_sizeof_short=0
10078fi
10079rm -fr conftest*
10080fi
4f14bcd8 10081
4f14bcd8 10082fi
21d1c967
GD
10083echo "$ac_t""$ac_cv_sizeof_short" 1>&6
10084cat >> confdefs.h <<EOF
10085#define SIZEOF_SHORT $ac_cv_sizeof_short
10086EOF
4f14bcd8
GD
10087
10088
21d1c967
GD
10089echo $ac_n "checking size of void *""... $ac_c" 1>&6
10090echo "configure:10091: checking size of void *" >&5
10091if eval "test \"`echo '$''{'ac_cv_sizeof_void_p'+set}'`\" = set"; then
4f14bcd8
GD
10092 echo $ac_n "(cached) $ac_c" 1>&6
10093else
21d1c967
GD
10094 if test "$cross_compiling" = yes; then
10095 ac_cv_sizeof_void_p=4
10096else
4f14bcd8 10097 cat > conftest.$ac_ext <<EOF
21d1c967 10098#line 10099 "configure"
4f14bcd8 10099#include "confdefs.h"
21d1c967
GD
10100#include <stdio.h>
10101main()
10102{
10103 FILE *f=fopen("conftestval", "w");
10104 if (!f) exit(1);
10105 fprintf(f, "%d\n", sizeof(void *));
10106 exit(0);
10107}
4f14bcd8 10108EOF
21d1c967
GD
10109if { (eval echo configure:10110: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10110then
10111 ac_cv_sizeof_void_p=`cat conftestval`
4f14bcd8 10112else
4f14bcd8
GD
10113 echo "configure: failed program was:" >&5
10114 cat conftest.$ac_ext >&5
21d1c967
GD
10115 rm -fr conftest*
10116 ac_cv_sizeof_void_p=0
4f14bcd8 10117fi
21d1c967 10118rm -fr conftest*
4f14bcd8 10119fi
4f14bcd8 10120
21d1c967
GD
10121fi
10122echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6
10123cat >> confdefs.h <<EOF
10124#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
90dd450c
VZ
10125EOF
10126
90dd450c 10127
21d1c967
GD
10128echo $ac_n "checking size of int""... $ac_c" 1>&6
10129echo "configure:10130: checking size of int" >&5
10130if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
4f14bcd8 10131 echo $ac_n "(cached) $ac_c" 1>&6
21d1c967
GD
10132else
10133 if test "$cross_compiling" = yes; then
10134 ac_cv_sizeof_int=4
4f14bcd8
GD
10135else
10136 cat > conftest.$ac_ext <<EOF
21d1c967 10137#line 10138 "configure"
4f14bcd8 10138#include "confdefs.h"
21d1c967
GD
10139#include <stdio.h>
10140main()
10141{
10142 FILE *f=fopen("conftestval", "w");
10143 if (!f) exit(1);
10144 fprintf(f, "%d\n", sizeof(int));
10145 exit(0);
10146}
4f14bcd8 10147EOF
21d1c967
GD
10148if { (eval echo configure:10149: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10149then
10150 ac_cv_sizeof_int=`cat conftestval`
4f14bcd8 10151else
4f14bcd8
GD
10152 echo "configure: failed program was:" >&5
10153 cat conftest.$ac_ext >&5
21d1c967
GD
10154 rm -fr conftest*
10155 ac_cv_sizeof_int=0
4f14bcd8 10156fi
21d1c967 10157rm -fr conftest*
4f14bcd8 10158fi
4f14bcd8 10159
21d1c967
GD
10160fi
10161echo "$ac_t""$ac_cv_sizeof_int" 1>&6
10162cat >> confdefs.h <<EOF
10163#define SIZEOF_INT $ac_cv_sizeof_int
90dd450c
VZ
10164EOF
10165
90dd450c 10166
21d1c967
GD
10167echo $ac_n "checking size of long""... $ac_c" 1>&6
10168echo "configure:10169: checking size of long" >&5
10169if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
4f14bcd8
GD
10170 echo $ac_n "(cached) $ac_c" 1>&6
10171else
21d1c967
GD
10172 if test "$cross_compiling" = yes; then
10173 ac_cv_sizeof_long=4
10174else
10175 cat > conftest.$ac_ext <<EOF
10176#line 10177 "configure"
90dd450c 10177#include "confdefs.h"
21d1c967
GD
10178#include <stdio.h>
10179main()
10180{
10181 FILE *f=fopen("conftestval", "w");
10182 if (!f) exit(1);
10183 fprintf(f, "%d\n", sizeof(long));
10184 exit(0);
10185}
4f14bcd8 10186EOF
21d1c967
GD
10187if { (eval echo configure:10188: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10188then
10189 ac_cv_sizeof_long=`cat conftestval`
4f14bcd8
GD
10190else
10191 echo "configure: failed program was:" >&5
10192 cat conftest.$ac_ext >&5
21d1c967
GD
10193 rm -fr conftest*
10194 ac_cv_sizeof_long=0
4f14bcd8 10195fi
21d1c967 10196rm -fr conftest*
90dd450c 10197fi
4f14bcd8 10198
21d1c967
GD
10199fi
10200echo "$ac_t""$ac_cv_sizeof_long" 1>&6
10201cat >> confdefs.h <<EOF
10202#define SIZEOF_LONG $ac_cv_sizeof_long
90dd450c 10203EOF
4f14bcd8 10204
4f14bcd8 10205
4f14bcd8 10206
21d1c967
GD
10207case "${host}" in
10208 arm-*-linux* )
10209 echo $ac_n "checking size of long long""... $ac_c" 1>&6
10210echo "configure:10211: checking size of long long" >&5
10211if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
10212 echo $ac_n "(cached) $ac_c" 1>&6
10213else
10214 if test "$cross_compiling" = yes; then
10215 ac_cv_sizeof_long_long=8
10216else
10217 cat > conftest.$ac_ext <<EOF
10218#line 10219 "configure"
10219#include "confdefs.h"
10220#include <stdio.h>
10221main()
10222{
10223 FILE *f=fopen("conftestval", "w");
10224 if (!f) exit(1);
10225 fprintf(f, "%d\n", sizeof(long long));
10226 exit(0);
10227}
90dd450c 10228EOF
21d1c967
GD
10229if { (eval echo configure:10230: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10230then
10231 ac_cv_sizeof_long_long=`cat conftestval`
90dd450c 10232else
21d1c967
GD
10233 echo "configure: failed program was:" >&5
10234 cat conftest.$ac_ext >&5
10235 rm -fr conftest*
10236 ac_cv_sizeof_long_long=0
10237fi
10238rm -fr conftest*
90dd450c 10239fi
4f14bcd8 10240
21d1c967
GD
10241fi
10242echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
10243cat >> confdefs.h <<EOF
10244#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10245EOF
90dd450c 10246
21d1c967
GD
10247
10248 ;;
10249 * )
10250 echo $ac_n "checking size of long long""... $ac_c" 1>&6
10251echo "configure:10252: checking size of long long" >&5
10252if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
4f14bcd8
GD
10253 echo $ac_n "(cached) $ac_c" 1>&6
10254else
21d1c967
GD
10255 if test "$cross_compiling" = yes; then
10256 ac_cv_sizeof_long_long=0
10257else
10258 cat > conftest.$ac_ext <<EOF
10259#line 10260 "configure"
90dd450c 10260#include "confdefs.h"
21d1c967
GD
10261#include <stdio.h>
10262main()
10263{
10264 FILE *f=fopen("conftestval", "w");
10265 if (!f) exit(1);
10266 fprintf(f, "%d\n", sizeof(long long));
10267 exit(0);
10268}
90dd450c 10269EOF
21d1c967
GD
10270if { (eval echo configure:10271: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10271then
10272 ac_cv_sizeof_long_long=`cat conftestval`
4f14bcd8 10273else
90dd450c
VZ
10274 echo "configure: failed program was:" >&5
10275 cat conftest.$ac_ext >&5
21d1c967
GD
10276 rm -fr conftest*
10277 ac_cv_sizeof_long_long=0
90dd450c 10278fi
21d1c967 10279rm -fr conftest*
4f14bcd8
GD
10280fi
10281
90dd450c 10282fi
21d1c967
GD
10283echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
10284cat >> confdefs.h <<EOF
10285#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
90dd450c 10286EOF
9e691f46 10287
9e691f46 10288
21d1c967
GD
10289esac
10290
10291echo $ac_n "checking size of wchar_t""... $ac_c" 1>&6
10292echo "configure:10293: checking size of wchar_t" >&5
10293if eval "test \"`echo '$''{'wx_cv_sizeof_wchar_t'+set}'`\" = set"; then
90dd450c 10294 echo $ac_n "(cached) $ac_c" 1>&6
21d1c967
GD
10295else
10296
10297 if test "$cross_compiling" = yes; then
10298 wx_cv_sizeof_wchar_t=4
10299
6f72b082 10300else
698dcdb6 10301 cat > conftest.$ac_ext <<EOF
21d1c967 10302#line 10303 "configure"
6f72b082 10303#include "confdefs.h"
21d1c967
GD
10304
10305 #ifdef HAVE_WCHAR_H
10306 # ifdef __CYGWIN__
10307 # include <stddef.h>
10308 # endif
10309 # include <wchar.h>
10310 #endif
10311 #ifdef HAVE_STDLIB_H
10312 # include <stdlib.h>
10313 #endif
10314 #include <stdio.h>
10315 int main()
10316 {
10317 FILE *f=fopen("conftestval", "w");
10318 if (!f) exit(1);
10319 fprintf(f, "%i", sizeof(wchar_t));
10320 exit(0);
10321 }
10322
698dcdb6 10323EOF
21d1c967
GD
10324if { (eval echo configure:10325: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10325then
10326 wx_cv_sizeof_wchar_t=`cat conftestval`
6f72b082 10327else
698dcdb6
VZ
10328 echo "configure: failed program was:" >&5
10329 cat conftest.$ac_ext >&5
21d1c967
GD
10330 rm -fr conftest*
10331 wx_cv_sizeof_wchar_t=0
6f72b082 10332fi
21d1c967 10333rm -fr conftest*
6f72b082 10334fi
6f72b082 10335
90dd450c 10336
3f345b47
VZ
10337fi
10338
21d1c967 10339echo "$ac_t""$wx_cv_sizeof_wchar_t" 1>&6
3f345b47 10340
21d1c967
GD
10341cat >> confdefs.h <<EOF
10342#define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t
10343EOF
90dd450c 10344
90dd450c 10345
21d1c967
GD
10346# Check whether --enable-largefile or --disable-largefile was given.
10347if test "${enable_largefile+set}" = set; then
10348 enableval="$enable_largefile"
10349 :
3f345b47
VZ
10350fi
10351
21d1c967
GD
10352if test "$enable_largefile" != no; then
10353 wx_largefile=no
10354
10355 echo $ac_n "checking for _FILE_OFFSET_BITS value needed for large files""... $ac_c" 1>&6
10356echo "configure:10357: checking for _FILE_OFFSET_BITS value needed for large files" >&5
10357if eval "test \"`echo '$''{'ac_cv_sys_file_offset_bits'+set}'`\" = set"; then
698dcdb6 10358 echo $ac_n "(cached) $ac_c" 1>&6
f6bcfd97 10359else
21d1c967
GD
10360
10361 cat > conftest.$ac_ext <<EOF
10362#line 10363 "configure"
90dd450c 10363#include "confdefs.h"
21d1c967
GD
10364#define _FILE_OFFSET_BITS 64
10365 #include <sys/types.h>
10366int main() {
10367typedef struct {
10368 unsigned int field: sizeof(off_t) == 8;
10369} wxlf;
10370
10371; return 0; }
90dd450c 10372EOF
21d1c967 10373if { (eval echo configure:10374: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
90dd450c 10374 rm -rf conftest*
21d1c967 10375 ac_cv_sys_file_offset_bits=64
f6bcfd97 10376else
90dd450c
VZ
10377 echo "configure: failed program was:" >&5
10378 cat conftest.$ac_ext >&5
10379 rm -rf conftest*
21d1c967 10380 ac_cv_sys_file_offset_bits=no
f6bcfd97 10381fi
90dd450c 10382rm -f conftest*
21d1c967
GD
10383
10384
90dd450c 10385fi
21d1c967
GD
10386
10387echo "$ac_t""$ac_cv_sys_file_offset_bits" 1>&6
10388
10389 if test "$ac_cv_sys_file_offset_bits" != no; then
10390 wx_largefile=yes
10391 cat >> confdefs.h <<EOF
10392#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
10393EOF
10394
10395 fi
10396
10397 if test "x$wx_largefile" != "xyes"; then
10398
10399 echo $ac_n "checking for _LARGE_FILES value needed for large files""... $ac_c" 1>&6
10400echo "configure:10401: checking for _LARGE_FILES value needed for large files" >&5
10401if eval "test \"`echo '$''{'ac_cv_sys_large_files'+set}'`\" = set"; then
90dd450c 10402 echo $ac_n "(cached) $ac_c" 1>&6
f6bcfd97 10403else
21d1c967
GD
10404
10405 cat > conftest.$ac_ext <<EOF
10406#line 10407 "configure"
f6bcfd97 10407#include "confdefs.h"
21d1c967
GD
10408#define _LARGE_FILES 1
10409 #include <sys/types.h>
90dd450c 10410int main() {
21d1c967
GD
10411typedef struct {
10412 unsigned int field: sizeof(off_t) == 8;
10413} wxlf;
10414
90dd450c 10415; return 0; }
698dcdb6 10416EOF
21d1c967 10417if { (eval echo configure:10418: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
90dd450c 10418 rm -rf conftest*
21d1c967 10419 ac_cv_sys_large_files=1
f6bcfd97 10420else
698dcdb6
VZ
10421 echo "configure: failed program was:" >&5
10422 cat conftest.$ac_ext >&5
90dd450c 10423 rm -rf conftest*
21d1c967 10424 ac_cv_sys_large_files=no
f6bcfd97 10425fi
90dd450c 10426rm -f conftest*
21d1c967
GD
10427
10428
f6bcfd97 10429fi
698dcdb6 10430
21d1c967 10431echo "$ac_t""$ac_cv_sys_large_files" 1>&6
3f345b47 10432
21d1c967
GD
10433 if test "$ac_cv_sys_large_files" != no; then
10434 wx_largefile=yes
10435 cat >> confdefs.h <<EOF
10436#define _LARGE_FILES $ac_cv_sys_large_files
10437EOF
90dd450c 10438
90dd450c
VZ
10439 fi
10440
90dd450c 10441 fi
90dd450c 10442
21d1c967
GD
10443 echo $ac_n "checking if large file support is available""... $ac_c" 1>&6
10444echo "configure:10445: checking if large file support is available" >&5
10445 if test "x$wx_largefile" = "xyes"; then
10446 cat >> confdefs.h <<\EOF
10447#define HAVE_LARGEFILE_SUPPORT 1
90dd450c
VZ
10448EOF
10449
90dd450c 10450 fi
21d1c967
GD
10451 echo "$ac_t""$wx_largefile" 1>&6
10452fi
90dd450c 10453
90dd450c 10454
21d1c967
GD
10455echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
10456echo "configure:10457: checking whether byte ordering is bigendian" >&5
10457if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
90dd450c
VZ
10458 echo $ac_n "(cached) $ac_c" 1>&6
10459else
21d1c967
GD
10460 ac_cv_c_bigendian=unknown
10461# See if sys/param.h defines the BYTE_ORDER macro.
10462cat > conftest.$ac_ext <<EOF
10463#line 10464 "configure"
90dd450c 10464#include "confdefs.h"
21d1c967
GD
10465#include <sys/types.h>
10466#include <sys/param.h>
10467int main() {
10468
10469#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
10470 bogus endian macros
10471#endif
10472; return 0; }
90dd450c 10473EOF
21d1c967 10474if { (eval echo configure:10475: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
90dd450c 10475 rm -rf conftest*
21d1c967 10476 # It does; now see whether it defined to BIG_ENDIAN or not.
90dd450c 10477cat > conftest.$ac_ext <<EOF
21d1c967 10478#line 10479 "configure"
90dd450c 10479#include "confdefs.h"
21d1c967
GD
10480#include <sys/types.h>
10481#include <sys/param.h>
3f345b47 10482int main() {
21d1c967
GD
10483
10484#if BYTE_ORDER != BIG_ENDIAN
10485 not big endian
10486#endif
3f345b47
VZ
10487; return 0; }
10488EOF
21d1c967 10489if { (eval echo configure:10490: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3f345b47 10490 rm -rf conftest*
21d1c967 10491 ac_cv_c_bigendian=yes
3f345b47
VZ
10492else
10493 echo "configure: failed program was:" >&5
10494 cat conftest.$ac_ext >&5
10495 rm -rf conftest*
21d1c967 10496 ac_cv_c_bigendian=no
3f345b47
VZ
10497fi
10498rm -f conftest*
3f345b47 10499else
21d1c967
GD
10500 echo "configure: failed program was:" >&5
10501 cat conftest.$ac_ext >&5
3f345b47 10502fi
21d1c967
GD
10503rm -f conftest*
10504if test $ac_cv_c_bigendian = unknown; then
10505if test "$cross_compiling" = yes; then
10506 ac_cv_c_bigendian=unknown
10f2d63a 10507else
90dd450c 10508 cat > conftest.$ac_ext <<EOF
21d1c967 10509#line 10510 "configure"
90dd450c 10510#include "confdefs.h"
21d1c967
GD
10511main () {
10512 /* Are we little or big endian? From Harbison&Steele. */
10513 union
10514 {
10515 long l;
10516 char c[sizeof (long)];
10517 } u;
10518 u.l = 1;
10519 exit (u.c[sizeof (long) - 1] == 1);
10520}
3f345b47 10521EOF
21d1c967
GD
10522if { (eval echo configure:10523: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10523then
10524 ac_cv_c_bigendian=no
3f345b47
VZ
10525else
10526 echo "configure: failed program was:" >&5
10527 cat conftest.$ac_ext >&5
21d1c967
GD
10528 rm -fr conftest*
10529 ac_cv_c_bigendian=yes
3f345b47 10530fi
21d1c967 10531rm -fr conftest*
8168de4c 10532fi
703e0a69 10533
21d1c967
GD
10534fi
10535fi
698dcdb6 10536
21d1c967
GD
10537echo "$ac_t""$ac_cv_c_bigendian" 1>&6
10538if test $ac_cv_c_bigendian = unknown; then
10539 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
10540fi
10541if test $ac_cv_c_bigendian = yes; then
10542 cat >> confdefs.h <<\EOF
10543#define WORDS_BIGENDIAN 1
10544EOF
10545
10546fi
10547
10548
10549echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
10550echo "configure:10551: checking how to run the C++ preprocessor" >&5
10551if test -z "$CXXCPP"; then
10552if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
698dcdb6 10553 echo $ac_n "(cached) $ac_c" 1>&6
7ec2881a 10554else
21d1c967
GD
10555 ac_ext=C
10556# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10557ac_cpp='$CXXCPP $CPPFLAGS'
10558ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10559ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10560cross_compiling=$ac_cv_prog_cxx_cross
10561 CXXCPP="${CXX-g++} -E"
10562 cat > conftest.$ac_ext <<EOF
10563#line 10564 "configure"
7ec2881a 10564#include "confdefs.h"
21d1c967 10565#include <stdlib.h>
698dcdb6 10566EOF
21d1c967
GD
10567ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10568{ (eval echo configure:10569: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10569ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10570if test -z "$ac_err"; then
10571 :
698dcdb6 10572else
21d1c967 10573 echo "$ac_err" >&5
698dcdb6
VZ
10574 echo "configure: failed program was:" >&5
10575 cat conftest.$ac_ext >&5
10576 rm -rf conftest*
21d1c967 10577 CXXCPP=/lib/cpp
698dcdb6
VZ
10578fi
10579rm -f conftest*
21d1c967
GD
10580 ac_cv_prog_CXXCPP="$CXXCPP"
10581ac_ext=C
10582# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10583ac_cpp='$CXXCPP $CPPFLAGS'
10584ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10585ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10586cross_compiling=$ac_cv_prog_cxx_cross
7ec2881a 10587fi
90dd450c 10588fi
21d1c967
GD
10589CXXCPP="$ac_cv_prog_CXXCPP"
10590echo "$ac_t""$CXXCPP" 1>&6
1e6feb95 10591
1725144d 10592
21d1c967 10593 if test "$cross_compiling" = "yes"; then
90dd450c 10594 cat >> confdefs.h <<\EOF
21d1c967 10595#define wxUSE_IOSTREAMH 1
90dd450c 10596EOF
ab9b9eab 10597
21d1c967
GD
10598 else
10599
10600 ac_ext=C
10601# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10602ac_cpp='$CXXCPP $CPPFLAGS'
10603ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10604ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10605cross_compiling=$ac_cv_prog_cxx_cross
10606
ba337fe7 10607
21d1c967
GD
10608 for ac_hdr in iostream
10609do
10610ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10611echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10612echo "configure:10613: checking for $ac_hdr" >&5
90dd450c 10613if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
698dcdb6 10614 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 10615else
90dd450c 10616 cat > conftest.$ac_ext <<EOF
21d1c967 10617#line 10618 "configure"
ab9b9eab 10618#include "confdefs.h"
21d1c967 10619#include <$ac_hdr>
698dcdb6
VZ
10620EOF
10621ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
21d1c967 10622{ (eval echo configure:10623: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
10623ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10624if test -z "$ac_err"; then
10625 rm -rf conftest*
90dd450c 10626 eval "ac_cv_header_$ac_safe=yes"
ab9b9eab 10627else
698dcdb6
VZ
10628 echo "$ac_err" >&5
10629 echo "configure: failed program was:" >&5
ab9b9eab 10630 cat conftest.$ac_ext >&5
698dcdb6 10631 rm -rf conftest*
90dd450c 10632 eval "ac_cv_header_$ac_safe=no"
ab9b9eab 10633fi
698dcdb6 10634rm -f conftest*
90dd450c
VZ
10635fi
10636if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10637 echo "$ac_t""yes" 1>&6
21d1c967
GD
10638 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10639 cat >> confdefs.h <<EOF
10640#define $ac_tr_hdr 1
698dcdb6 10641EOF
21d1c967 10642
ab9b9eab 10643else
90dd450c
VZ
10644 echo "$ac_t""no" 1>&6
10645fi
21d1c967 10646done
10f2d63a 10647
10f2d63a 10648
21d1c967
GD
10649 if test "$ac_cv_header_iostream" = "yes" ; then
10650 :
10651 else
10652 cat >> confdefs.h <<\EOF
10653#define wxUSE_IOSTREAMH 1
10654EOF
788deba1 10655
90dd450c 10656 fi
ab9b9eab 10657
21d1c967
GD
10658 ac_ext=c
10659# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10660ac_cpp='$CPP $CPPFLAGS'
10661ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10662ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10663cross_compiling=$ac_cv_prog_cc_cross
ab9b9eab 10664
21d1c967 10665 fi
ab9b9eab 10666
21d1c967
GD
10667
10668
10669 echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6
10670echo "configure:10671: checking if C++ compiler supports bool" >&5
10671if eval "test \"`echo '$''{'wx_cv_cpp_bool'+set}'`\" = set"; then
698dcdb6 10672 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 10673else
21d1c967
GD
10674
10675
10676 ac_ext=C
10677# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10678ac_cpp='$CXXCPP $CPPFLAGS'
10679ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10680ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10681cross_compiling=$ac_cv_prog_cxx_cross
10682
10683
10684 cat > conftest.$ac_ext <<EOF
10685#line 10686 "configure"
ab9b9eab 10686#include "confdefs.h"
21d1c967
GD
10687
10688
10689int main() {
10690
10691 bool b = true;
10692
10693 return 0;
10694
10695; return 0; }
698dcdb6 10696EOF
21d1c967 10697if { (eval echo configure:10698: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 10698 rm -rf conftest*
21d1c967
GD
10699
10700 wx_cv_cpp_bool=yes
10701
698dcdb6
VZ
10702else
10703 echo "configure: failed program was:" >&5
10704 cat conftest.$ac_ext >&5
10705 rm -rf conftest*
21d1c967
GD
10706
10707 wx_cv_cpp_bool=no
10708
10709
698dcdb6
VZ
10710fi
10711rm -f conftest*
21d1c967
GD
10712
10713 ac_ext=c
10714# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10715ac_cpp='$CPP $CPPFLAGS'
10716ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10717ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10718cross_compiling=$ac_cv_prog_cc_cross
10719
10720
698dcdb6 10721fi
21d1c967
GD
10722
10723echo "$ac_t""$wx_cv_cpp_bool" 1>&6
10724
10725 if test "$wx_cv_cpp_bool" = "yes"; then
10726 cat >> confdefs.h <<\EOF
10727#define HAVE_BOOL 1
90dd450c 10728EOF
ab9b9eab 10729
21d1c967
GD
10730 fi
10731
10732
10733
10734SEARCH_INCLUDE="\
10735 /usr/local/include \
10736 \
10737 /usr/Motif-1.2/include \
10738 /usr/Motif-2.1/include \
10739 \
10740 /usr/include/Motif1.2 \
10741 /opt/xpm/include/X11 \
10742 /opt/GBxpm/include/ \
10743 /opt/GBxpm/X11/include/ \
10744 \
10745 /usr/Motif1.2/include \
10746 /usr/dt/include \
10747 /usr/openwin/include \
10748 \
10749 /usr/include/Xm \
10750 \
10751 /usr/X11R6/include \
10752 /usr/X11R6.4/include \
10753 /usr/X11R5/include \
10754 /usr/X11R4/include \
10755 \
10756 /usr/include/X11R6 \
10757 /usr/include/X11R5 \
10758 /usr/include/X11R4 \
10759 \
10760 /usr/local/X11R6/include \
10761 /usr/local/X11R5/include \
10762 /usr/local/X11R4/include \
10763 \
10764 /usr/local/include/X11R6 \
10765 /usr/local/include/X11R5 \
10766 /usr/local/include/X11R4 \
10767 \
10768 /usr/X11/include \
10769 /usr/include/X11 \
10770 /usr/local/X11/include \
10771 /usr/local/include/X11 \
10772 \
10773 /usr/X386/include \
10774 /usr/x386/include \
10775 /usr/XFree86/include/X11 \
10776 \
10777 X:/XFree86/include \
10778 X:/XFree86/include/X11 \
10779 \
10780 /usr/include/gtk \
10781 /usr/local/include/gtk \
10782 /usr/include/glib \
10783 /usr/local/include/glib \
10784 \
10785 /usr/include/qt \
10786 /usr/local/include/qt \
10787 \
10788 /usr/include/windows \
10789 /usr/include/wine \
10790 /usr/local/include/wine \
10791 \
10792 /usr/unsupported/include \
10793 /usr/athena/include \
10794 /usr/local/x11r5/include \
10795 /usr/lpp/Xamples/include \
10796 \
10797 /usr/openwin/share/include \
10798 \
10799 /usr/include"
10800
10801SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` "
10802
10803
10804cat > confcache <<\EOF
10805# This file is a shell script that caches the results of configure
10806# tests run on this system so they can be shared between configure
10807# scripts and configure runs. It is not useful on other systems.
10808# If it contains results you don't want to keep, you may remove or edit it.
10809#
10810# By default, configure uses ./config.cache as the cache file,
10811# creating it if it does not exist already. You can give configure
10812# the --cache-file=FILE option to use a different cache file; that is
10813# what configure does when it calls configure scripts in
10814# subdirectories, so they share the cache.
10815# Giving --cache-file=/dev/null disables caching, for debugging configure.
10816# config.status only pays attention to the cache file if you give it the
10817# --recheck option to rerun configure.
10818#
698dcdb6 10819EOF
21d1c967
GD
10820# The following way of writing the cache mishandles newlines in values,
10821# but we know of no workaround that is simple, portable, and efficient.
10822# So, don't put newlines in cache variables' values.
10823# Ultrix sh set writes to stderr and can't be redirected directly,
10824# and sets the high bit in the cache file unless we assign to the vars.
10825(set) 2>&1 |
10826 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10827 *ac_space=\ *)
10828 # `set' does not quote correctly, so add quotes (double-quote substitution
10829 # turns \\\\ into \\, and sed turns \\ into \).
10830 sed -n \
10831 -e "s/'/'\\\\''/g" \
10832 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
10833 ;;
10834 *)
10835 # `set' quotes correctly as required by POSIX, so do not add quotes.
10836 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
10837 ;;
10838 esac >> confcache
10839if cmp -s $cache_file confcache; then
90dd450c 10840 :
698dcdb6 10841else
21d1c967
GD
10842 if test -w $cache_file; then
10843 echo "updating cache $cache_file"
10844 cat confcache > $cache_file
10845 else
10846 echo "not updating unwritable cache $cache_file"
10847 fi
ab9b9eab 10848fi
21d1c967 10849rm -f confcache
ab9b9eab 10850
ab9b9eab 10851
21d1c967
GD
10852if test "$USE_LINUX" = 1; then
10853 echo $ac_n "checking for glibc 2.1 or later""... $ac_c" 1>&6
10854echo "configure:10855: checking for glibc 2.1 or later" >&5
10855if eval "test \"`echo '$''{'wx_cv_lib_glibc21'+set}'`\" = set"; then
698dcdb6
VZ
10856 echo $ac_n "(cached) $ac_c" 1>&6
10857else
90dd450c 10858
21d1c967
GD
10859 cat > conftest.$ac_ext <<EOF
10860#line 10861 "configure"
ab9b9eab 10861#include "confdefs.h"
21d1c967 10862#include <features.h>
698dcdb6 10863int main() {
ab9b9eab 10864
21d1c967
GD
10865 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
10866 #error not glibc2.1
10867 #endif
10868
698dcdb6
VZ
10869; return 0; }
10870EOF
21d1c967 10871if { (eval echo configure:10872: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 10872 rm -rf conftest*
90dd450c 10873
21d1c967
GD
10874 wx_cv_lib_glibc21=yes
10875
698dcdb6
VZ
10876else
10877 echo "configure: failed program was:" >&5
10878 cat conftest.$ac_ext >&5
10879 rm -rf conftest*
90dd450c 10880
21d1c967
GD
10881 wx_cv_lib_glibc21=no
10882
10883
698dcdb6
VZ
10884fi
10885rm -f conftest*
90dd450c 10886
698dcdb6
VZ
10887fi
10888
21d1c967
GD
10889echo "$ac_t""$wx_cv_lib_glibc21" 1>&6
10890 if test "$wx_cv_lib_glibc21" = "yes"; then
10891 cat >> confdefs.h <<\EOF
10892#define wxHAVE_GLIBC2 1
10893EOF
1e487827 10894
90dd450c 10895 fi
ab9b9eab
VZ
10896fi
10897
ab9b9eab 10898
ab9b9eab 10899
21d1c967
GD
10900REGEX_INCLUDE=
10901if test "$wxUSE_REGEX" != "no"; then
10902 cat >> confdefs.h <<\EOF
10903#define wxUSE_REGEX 1
10904EOF
698dcdb6 10905
ab9b9eab 10906
21d1c967
GD
10907 if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
10908 ac_safe=`echo "regex.h" | sed 'y%./+-%__p_%'`
10909echo $ac_n "checking for regex.h""... $ac_c" 1>&6
10910echo "configure:10911: checking for regex.h" >&5
10911if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
698dcdb6 10912 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 10913else
21d1c967
GD
10914 cat > conftest.$ac_ext <<EOF
10915#line 10916 "configure"
10916#include "confdefs.h"
10917#include <regex.h>
10918EOF
10919ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10920{ (eval echo configure:10921: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10921ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10922if test -z "$ac_err"; then
10923 rm -rf conftest*
10924 eval "ac_cv_header_$ac_safe=yes"
698dcdb6 10925else
21d1c967
GD
10926 echo "$ac_err" >&5
10927 echo "configure: failed program was:" >&5
10928 cat conftest.$ac_ext >&5
10929 rm -rf conftest*
10930 eval "ac_cv_header_$ac_safe=no"
10931fi
10932rm -f conftest*
698dcdb6 10933fi
21d1c967
GD
10934if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10935 echo "$ac_t""yes" 1>&6
10936 for ac_func in regcomp
10937do
10938echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10939echo "configure:10940: checking for $ac_func" >&5
10940if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10941 echo $ac_n "(cached) $ac_c" 1>&6
10942else
10943 cat > conftest.$ac_ext <<EOF
10944#line 10945 "configure"
10945#include "confdefs.h"
10946/* System header to define __stub macros and hopefully few prototypes,
10947 which can conflict with char $ac_func(); below. */
10948#include <assert.h>
10949/* Override any gcc2 internal prototype to avoid an error. */
10950/* We use char because int might match the return type of a gcc2
10951 builtin and then its argument prototype would still apply. */
10952char $ac_func();
698dcdb6 10953
21d1c967 10954int main() {
90dd450c 10955
21d1c967
GD
10956/* The GNU C library defines this for functions which it implements
10957 to always fail with ENOSYS. Some functions are actually named
10958 something starting with __ and the normal name is an alias. */
10959#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10960choke me
10961#else
10962$ac_func();
10963#endif
90dd450c 10964
21d1c967
GD
10965; return 0; }
10966EOF
10967if { (eval echo configure:10968: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10968 rm -rf conftest*
10969 eval "ac_cv_func_$ac_func=yes"
10970else
10971 echo "configure: failed program was:" >&5
10972 cat conftest.$ac_ext >&5
10973 rm -rf conftest*
10974 eval "ac_cv_func_$ac_func=no"
10975fi
10976rm -f conftest*
10977fi
90dd450c 10978
21d1c967
GD
10979if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10980 echo "$ac_t""yes" 1>&6
10981 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10982 cat >> confdefs.h <<EOF
10983#define $ac_tr_func 1
10984EOF
10985
90dd450c 10986else
21d1c967 10987 echo "$ac_t""no" 1>&6
698dcdb6 10988fi
21d1c967
GD
10989done
10990
698dcdb6
VZ
10991else
10992 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
10993fi
10994
90dd450c 10995
21d1c967
GD
10996 if test "x$ac_cv_func_regcomp" != "xyes"; then
10997 if test "$wxUSE_REGEX" = "sys" ; then
10998 { echo "configure: error: system regex library not found! Use --with-regex to use built-in version" 1>&2; exit 1; }
10999 else
11000 echo "configure: warning: system regex library not found, will use built-in instead" 1>&2
11001 wxUSE_REGEX=builtin
11002 fi
11003 else
11004 wxUSE_REGEX=sys
11005 fi
ab9b9eab 11006 fi
90dd450c 11007
21d1c967
GD
11008 if test "$wxUSE_REGEX" = "builtin" ; then
11009 REGEX_INCLUDE="-I\${top_srcdir}/src/regex"
90dd450c 11010 fi
21d1c967 11011fi
90dd450c 11012
90dd450c 11013
21d1c967
GD
11014ZLIB_INCLUDE=
11015ZLIB_LINK=
11016if test "$wxUSE_ZLIB" != "no" ; then
11017 cat >> confdefs.h <<\EOF
11018#define wxUSE_ZLIB 1
11019EOF
11020
11021
11022 if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
11023 ac_safe=`echo "zlib.h" | sed 'y%./+-%__p_%'`
11024echo $ac_n "checking for zlib.h""... $ac_c" 1>&6
11025echo "configure:11026: checking for zlib.h" >&5
11026if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11027 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 11028else
698dcdb6 11029 cat > conftest.$ac_ext <<EOF
21d1c967 11030#line 11031 "configure"
ab9b9eab 11031#include "confdefs.h"
21d1c967 11032#include <zlib.h>
698dcdb6 11033EOF
21d1c967
GD
11034ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11035{ (eval echo configure:11036: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11036ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11037if test -z "$ac_err"; then
11038 rm -rf conftest*
11039 eval "ac_cv_header_$ac_safe=yes"
698dcdb6 11040else
21d1c967 11041 echo "$ac_err" >&5
698dcdb6
VZ
11042 echo "configure: failed program was:" >&5
11043 cat conftest.$ac_ext >&5
21d1c967
GD
11044 rm -rf conftest*
11045 eval "ac_cv_header_$ac_safe=no"
698dcdb6 11046fi
21d1c967 11047rm -f conftest*
ab9b9eab 11048fi
21d1c967
GD
11049if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11050 echo "$ac_t""yes" 1>&6
11051 echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
11052echo "configure:11053: checking for deflate in -lz" >&5
11053ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
11054if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11055 echo $ac_n "(cached) $ac_c" 1>&6
11056else
11057 ac_save_LIBS="$LIBS"
11058LIBS="-lz $LIBS"
11059cat > conftest.$ac_ext <<EOF
11060#line 11061 "configure"
ab9b9eab 11061#include "confdefs.h"
21d1c967
GD
11062/* Override any gcc2 internal prototype to avoid an error. */
11063/* We use char because int might match the return type of a gcc2
11064 builtin and then its argument prototype would still apply. */
11065char deflate();
ab9b9eab 11066
90dd450c 11067int main() {
21d1c967 11068deflate()
698dcdb6
VZ
11069; return 0; }
11070EOF
21d1c967 11071if { (eval echo configure:11072: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 11072 rm -rf conftest*
21d1c967 11073 eval "ac_cv_lib_$ac_lib_var=yes"
698dcdb6
VZ
11074else
11075 echo "configure: failed program was:" >&5
11076 cat conftest.$ac_ext >&5
11077 rm -rf conftest*
21d1c967 11078 eval "ac_cv_lib_$ac_lib_var=no"
698dcdb6
VZ
11079fi
11080rm -f conftest*
21d1c967 11081LIBS="$ac_save_LIBS"
ab9b9eab 11082
21d1c967
GD
11083fi
11084if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11085 echo "$ac_t""yes" 1>&6
11086 ZLIB_LINK=" -lz"
ab9b9eab 11087else
21d1c967 11088 echo "$ac_t""no" 1>&6
90dd450c 11089fi
698dcdb6 11090
698dcdb6 11091else
21d1c967 11092 echo "$ac_t""no" 1>&6
698dcdb6 11093fi
698dcdb6 11094
21d1c967
GD
11095
11096 if test "x$ZLIB_LINK" = "x" ; then
11097 if test "$wxUSE_ZLIB" = "sys" ; then
11098 { echo "configure: error: system zlib compression library not found! Use --with-zlib=builtin to use built-in version" 1>&2; exit 1; }
11099 else
11100 echo "configure: warning: system zlib compression library not found, will use built-in instead" 1>&2
11101 wxUSE_ZLIB=builtin
11102 fi
11103 else
11104 wxUSE_ZLIB=sys
11105 fi
11106 fi
11107
11108 if test "$wxUSE_ZLIB" = "builtin" ; then
11109 ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib"
11110 fi
ab9b9eab
VZ
11111fi
11112
ab9b9eab 11113
21d1c967
GD
11114PNG_INCLUDE=
11115PNG_LINK=
11116if test "$wxUSE_LIBPNG" != "no" ; then
11117 cat >> confdefs.h <<\EOF
11118#define wxUSE_LIBPNG 1
11119EOF
90dd450c 11120
21d1c967
GD
11121
11122 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
11123 echo "configure: warning: wxMGL doesn't work with builtin png library, will use MGL one instead" 1>&2
11124 wxUSE_LIBPNG=sys
11125 fi
90dd450c 11126
21d1c967
GD
11127 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
11128 echo "configure: warning: system png library doesn't work without system zlib, will use built-in instead" 1>&2
11129 wxUSE_LIBPNG=builtin
11130 fi
11131
11132 if test "$wxUSE_MGL" != 1 ; then
11133 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
11134 ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
11135echo $ac_n "checking for png.h""... $ac_c" 1>&6
11136echo "configure:11137: checking for png.h" >&5
11137if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
90dd450c
VZ
11138 echo $ac_n "(cached) $ac_c" 1>&6
11139else
21d1c967
GD
11140 cat > conftest.$ac_ext <<EOF
11141#line 11142 "configure"
11142#include "confdefs.h"
11143#include <png.h>
11144EOF
11145ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11146{ (eval echo configure:11147: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11147ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11148if test -z "$ac_err"; then
11149 rm -rf conftest*
11150 eval "ac_cv_header_$ac_safe=yes"
90dd450c 11151else
21d1c967 11152 echo "$ac_err" >&5
90dd450c
VZ
11153 echo "configure: failed program was:" >&5
11154 cat conftest.$ac_ext >&5
21d1c967
GD
11155 rm -rf conftest*
11156 eval "ac_cv_header_$ac_safe=no"
90dd450c 11157fi
21d1c967 11158rm -f conftest*
90dd450c 11159fi
21d1c967
GD
11160if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11161 echo "$ac_t""yes" 1>&6
11162 echo $ac_n "checking for png_check_sig in -lpng""... $ac_c" 1>&6
11163echo "configure:11164: checking for png_check_sig in -lpng" >&5
11164ac_lib_var=`echo png'_'png_check_sig | sed 'y%./+-%__p_%'`
11165if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11166 echo $ac_n "(cached) $ac_c" 1>&6
11167else
11168 ac_save_LIBS="$LIBS"
11169LIBS="-lpng -lz -lm $LIBS"
11170cat > conftest.$ac_ext <<EOF
11171#line 11172 "configure"
90dd450c 11172#include "confdefs.h"
21d1c967
GD
11173/* Override any gcc2 internal prototype to avoid an error. */
11174/* We use char because int might match the return type of a gcc2
11175 builtin and then its argument prototype would still apply. */
11176char png_check_sig();
90dd450c
VZ
11177
11178int main() {
21d1c967 11179png_check_sig()
90dd450c
VZ
11180; return 0; }
11181EOF
21d1c967 11182if { (eval echo configure:11183: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
90dd450c 11183 rm -rf conftest*
21d1c967 11184 eval "ac_cv_lib_$ac_lib_var=yes"
90dd450c
VZ
11185else
11186 echo "configure: failed program was:" >&5
11187 cat conftest.$ac_ext >&5
11188 rm -rf conftest*
21d1c967 11189 eval "ac_cv_lib_$ac_lib_var=no"
90dd450c
VZ
11190fi
11191rm -f conftest*
21d1c967 11192LIBS="$ac_save_LIBS"
90dd450c 11193
90dd450c 11194fi
21d1c967
GD
11195if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11196 echo "$ac_t""yes" 1>&6
11197 PNG_LINK=" -lpng"
90dd450c 11198else
21d1c967 11199 echo "$ac_t""no" 1>&6
90dd450c
VZ
11200fi
11201
21d1c967 11202
90dd450c 11203else
21d1c967 11204 echo "$ac_t""no" 1>&6
90dd450c
VZ
11205fi
11206
11207
21d1c967
GD
11208 if test "x$PNG_LINK" = "x" ; then
11209 if test "$wxUSE_LIBPNG" = "sys" ; then
11210 { echo "configure: error: system png library not found! Use --with-libpng=builtin to use built-in version" 1>&2; exit 1; }
11211 else
11212 echo "configure: warning: system png library not found, will use built-in instead" 1>&2
11213 wxUSE_LIBPNG=builtin
11214 fi
11215 else
11216 wxUSE_LIBPNG=yes
11217 fi
11218 fi
11219 fi
90dd450c 11220
21d1c967
GD
11221 if test "$wxUSE_LIBPNG" = "builtin" ; then
11222 PNG_INCLUDE="-I\${top_srcdir}/src/png"
11223 fi
90dd450c 11224
21d1c967 11225 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
90dd450c
VZ
11226fi
11227
90dd450c 11228
21d1c967
GD
11229JPEG_INCLUDE=
11230JPEG_LINK=
11231if test "$wxUSE_LIBJPEG" != "no" ; then
11232 cat >> confdefs.h <<\EOF
11233#define wxUSE_LIBJPEG 1
11234EOF
90dd450c 11235
90dd450c 11236
21d1c967
GD
11237 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
11238 echo "configure: warning: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" 1>&2
11239 wxUSE_LIBJPEG=sys
11240 fi
90dd450c 11241
21d1c967
GD
11242 if test "$wxUSE_MGL" != 1 ; then
11243 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
11244 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
11245echo "configure:11246: checking for jpeglib.h" >&5
11246 if eval "test \"`echo '$''{'ac_cv_header_jpeglib_h'+set}'`\" = set"; then
11247 echo $ac_n "(cached) $ac_c" 1>&6
11248else
11249 cat > conftest.$ac_ext <<EOF
11250#line 11251 "configure"
11251#include "confdefs.h"
90dd450c 11252
21d1c967
GD
11253 #undef HAVE_STDLIB_H
11254 #include <stdio.h>
11255 #include <jpeglib.h>
11256
11257int main() {
90dd450c 11258
21d1c967
GD
11259
11260; return 0; }
90dd450c 11261EOF
21d1c967
GD
11262if { (eval echo configure:11263: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11263 rm -rf conftest*
11264 ac_cv_header_jpeglib_h=yes
90dd450c
VZ
11265else
11266 echo "configure: failed program was:" >&5
11267 cat conftest.$ac_ext >&5
21d1c967
GD
11268 rm -rf conftest*
11269 ac_cv_header_jpeglib_h=no
11270
90dd450c 11271fi
21d1c967
GD
11272rm -f conftest*
11273
90dd450c
VZ
11274fi
11275
21d1c967 11276 echo "$ac_t""$ac_cv_header_jpeglib_h" 1>&6
90dd450c 11277
21d1c967
GD
11278 if test "$ac_cv_header_jpeglib_h" = "yes"; then
11279 echo $ac_n "checking for jpeg_read_header in -ljpeg""... $ac_c" 1>&6
11280echo "configure:11281: checking for jpeg_read_header in -ljpeg" >&5
11281ac_lib_var=`echo jpeg'_'jpeg_read_header | sed 'y%./+-%__p_%'`
11282if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11283 echo $ac_n "(cached) $ac_c" 1>&6
11284else
11285 ac_save_LIBS="$LIBS"
11286LIBS="-ljpeg $LIBS"
11287cat > conftest.$ac_ext <<EOF
11288#line 11289 "configure"
11289#include "confdefs.h"
11290/* Override any gcc2 internal prototype to avoid an error. */
11291/* We use char because int might match the return type of a gcc2
11292 builtin and then its argument prototype would still apply. */
11293char jpeg_read_header();
90dd450c
VZ
11294
11295int main() {
21d1c967 11296jpeg_read_header()
90dd450c
VZ
11297; return 0; }
11298EOF
21d1c967 11299if { (eval echo configure:11300: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
90dd450c 11300 rm -rf conftest*
21d1c967 11301 eval "ac_cv_lib_$ac_lib_var=yes"
90dd450c
VZ
11302else
11303 echo "configure: failed program was:" >&5
11304 cat conftest.$ac_ext >&5
11305 rm -rf conftest*
21d1c967 11306 eval "ac_cv_lib_$ac_lib_var=no"
90dd450c
VZ
11307fi
11308rm -f conftest*
21d1c967 11309LIBS="$ac_save_LIBS"
90dd450c 11310
21d1c967
GD
11311fi
11312if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11313 echo "$ac_t""yes" 1>&6
11314 JPEG_LINK=" -ljpeg"
11315else
11316 echo "$ac_t""no" 1>&6
90dd450c
VZ
11317fi
11318
21d1c967 11319 fi
90dd450c 11320
21d1c967
GD
11321 if test "x$JPEG_LINK" = "x" ; then
11322 if test "$wxUSE_LIBJPEG" = "sys" ; then
11323 { echo "configure: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" 1>&2; exit 1; }
11324 else
11325 echo "configure: warning: system jpeg library not found, will use built-in instead" 1>&2
11326 wxUSE_LIBJPEG=builtin
11327 fi
11328 else
11329 wxUSE_LIBJPEG=sys
11330 fi
11331 fi
11332 fi
90dd450c 11333
21d1c967
GD
11334 if test "$wxUSE_LIBJPEG" = "builtin" ; then
11335 JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg"
11336 fi
11337fi
90dd450c 11338
90dd450c 11339
21d1c967
GD
11340TIFF_INCLUDE=
11341TIFF_LINK=
11342if test "$wxUSE_LIBTIFF" != "no" ; then
11343 cat >> confdefs.h <<\EOF
11344#define wxUSE_LIBTIFF 1
11345EOF
11346
11347
11348 if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
11349 ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
11350echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
11351echo "configure:11352: checking for tiffio.h" >&5
11352if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11353 echo $ac_n "(cached) $ac_c" 1>&6
11354else
11355 cat > conftest.$ac_ext <<EOF
11356#line 11357 "configure"
11357#include "confdefs.h"
11358#include <tiffio.h>
11359EOF
11360ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11361{ (eval echo configure:11362: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11362ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11363if test -z "$ac_err"; then
11364 rm -rf conftest*
11365 eval "ac_cv_header_$ac_safe=yes"
11366else
11367 echo "$ac_err" >&5
11368 echo "configure: failed program was:" >&5
11369 cat conftest.$ac_ext >&5
11370 rm -rf conftest*
11371 eval "ac_cv_header_$ac_safe=no"
11372fi
11373rm -f conftest*
11374fi
11375if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11376 echo "$ac_t""yes" 1>&6
11377 echo $ac_n "checking for TIFFError in -ltiff""... $ac_c" 1>&6
11378echo "configure:11379: checking for TIFFError in -ltiff" >&5
11379ac_lib_var=`echo tiff'_'TIFFError | sed 'y%./+-%__p_%'`
698dcdb6
VZ
11380if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11381 echo $ac_n "(cached) $ac_c" 1>&6
11382else
11383 ac_save_LIBS="$LIBS"
21d1c967 11384LIBS="-ltiff -lm $LIBS"
698dcdb6 11385cat > conftest.$ac_ext <<EOF
21d1c967 11386#line 11387 "configure"
ab9b9eab
VZ
11387#include "confdefs.h"
11388/* Override any gcc2 internal prototype to avoid an error. */
11389/* We use char because int might match the return type of a gcc2
698dcdb6 11390 builtin and then its argument prototype would still apply. */
21d1c967 11391char TIFFError();
698dcdb6
VZ
11392
11393int main() {
21d1c967 11394TIFFError()
698dcdb6
VZ
11395; return 0; }
11396EOF
21d1c967 11397if { (eval echo configure:11398: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
11398 rm -rf conftest*
11399 eval "ac_cv_lib_$ac_lib_var=yes"
11400else
11401 echo "configure: failed program was:" >&5
11402 cat conftest.$ac_ext >&5
11403 rm -rf conftest*
11404 eval "ac_cv_lib_$ac_lib_var=no"
11405fi
11406rm -f conftest*
11407LIBS="$ac_save_LIBS"
11408
11409fi
11410if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11411 echo "$ac_t""yes" 1>&6
21d1c967 11412 TIFF_LINK=" -ltiff"
698dcdb6
VZ
11413else
11414 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
11415fi
11416
21d1c967
GD
11417
11418else
11419 echo "$ac_t""no" 1>&6
11420fi
cd6d6d5b 11421
c79a329d 11422
21d1c967
GD
11423 if test "x$TIFF_LINK" = "x" ; then
11424 if test "$wxUSE_LIBTIFF" = "sys" ; then
11425 { echo "configure: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" 1>&2; exit 1; }
90dd450c 11426 else
21d1c967
GD
11427 echo "configure: warning: system tiff library not found, will use built-in instead" 1>&2
11428 wxUSE_LIBTIFF=builtin
d8356fa3 11429 fi
d8356fa3 11430 else
21d1c967 11431 wxUSE_LIBTIFF=sys
d8356fa3 11432 fi
21d1c967 11433 fi
d8356fa3 11434
21d1c967
GD
11435 if test "$wxUSE_LIBTIFF" = "builtin" ; then
11436 TIFF_INCLUDE="-I\${top_srcdir}/src/tiff"
1e6feb95 11437 fi
21d1c967 11438fi
10f2d63a 11439
90dd450c 11440
21d1c967 11441AFMINSTALL=
90dd450c 11442
21d1c967
GD
11443TOOLKIT=
11444TOOLKIT_INCLUDE=
11445WIDGET_SET=
11446
11447if test "$USE_WIN32" = 1 ; then
11448 for ac_hdr in w32api.h
11449do
11450ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11451echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11452echo "configure:11453: checking for $ac_hdr" >&5
11453if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
f79bd02d
JS
11454 echo $ac_n "(cached) $ac_c" 1>&6
11455else
21d1c967
GD
11456 cat > conftest.$ac_ext <<EOF
11457#line 11458 "configure"
f79bd02d 11458#include "confdefs.h"
21d1c967 11459#include <$ac_hdr>
f79bd02d
JS
11460EOF
11461ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
21d1c967 11462{ (eval echo configure:11463: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
f79bd02d
JS
11463ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11464if test -z "$ac_err"; then
11465 rm -rf conftest*
21d1c967 11466 eval "ac_cv_header_$ac_safe=yes"
f79bd02d
JS
11467else
11468 echo "$ac_err" >&5
11469 echo "configure: failed program was:" >&5
11470 cat conftest.$ac_ext >&5
11471 rm -rf conftest*
21d1c967 11472 eval "ac_cv_header_$ac_safe=no"
f79bd02d
JS
11473fi
11474rm -f conftest*
21d1c967
GD
11475fi
11476if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11477 echo "$ac_t""yes" 1>&6
11478 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11479 cat >> confdefs.h <<EOF
11480#define $ac_tr_hdr 1
11481EOF
11482
11483else
11484 echo "$ac_t""no" 1>&6
11485fi
11486done
f79bd02d 11487
21d1c967
GD
11488 ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'`
11489echo $ac_n "checking for windows.h""... $ac_c" 1>&6
11490echo "configure:11491: checking for windows.h" >&5
11491if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11492 echo $ac_n "(cached) $ac_c" 1>&6
11493else
11494 cat > conftest.$ac_ext <<EOF
11495#line 11496 "configure"
90dd450c 11496#include "confdefs.h"
21d1c967 11497#include <windows.h>
f79bd02d 11498EOF
21d1c967
GD
11499ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11500{ (eval echo configure:11501: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11501ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11502if test -z "$ac_err"; then
90dd450c 11503 rm -rf conftest*
21d1c967 11504 eval "ac_cv_header_$ac_safe=yes"
90dd450c 11505else
21d1c967 11506 echo "$ac_err" >&5
90dd450c
VZ
11507 echo "configure: failed program was:" >&5
11508 cat conftest.$ac_ext >&5
11509 rm -rf conftest*
21d1c967 11510 eval "ac_cv_header_$ac_safe=no"
90dd450c
VZ
11511fi
11512rm -f conftest*
90dd450c 11513fi
21d1c967
GD
11514if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11515 echo "$ac_t""yes" 1>&6
11516 :
90dd450c 11517else
21d1c967
GD
11518 echo "$ac_t""no" 1>&6
11519
11520 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
11521
90dd450c 11522fi
f79bd02d 11523
f79bd02d 11524
21d1c967
GD
11525 echo $ac_n "checking if w32api has good enough MSIE support""... $ac_c" 1>&6
11526echo "configure:11527: checking if w32api has good enough MSIE support" >&5
11527if eval "test \"`echo '$''{'wx_cv_w32api_win32_ie'+set}'`\" = set"; then
11528 echo $ac_n "(cached) $ac_c" 1>&6
f79bd02d 11529else
21d1c967 11530
f79bd02d 11531 cat > conftest.$ac_ext <<EOF
21d1c967 11532#line 11533 "configure"
f79bd02d 11533#include "confdefs.h"
21d1c967 11534#include <w32api.h>
f79bd02d
JS
11535int main() {
11536
21d1c967
GD
11537 #define wxCHECK_W32API_VERSION( major, minor ) \
11538 ( defined( __W32API_MAJOR_VERSION ) && defined( __W32API_MINOR_VERSION ) \
11539 && ( ( __W32API_MAJOR_VERSION > (major) ) \
11540 || ( __W32API_MAJOR_VERSION == (major) && __W32API_MINOR_VERSION >= (minor))))
11541
11542 #if !wxCHECK_W32API_VERSION(1,1)
11543 #error You need w32api 1.1 or newer
11544 #endif
11545
f79bd02d
JS
11546; return 0; }
11547EOF
21d1c967 11548if { (eval echo configure:11549: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
f79bd02d 11549 rm -rf conftest*
21d1c967
GD
11550
11551 wx_cv_w32api_win32_ie=yes
11552
f79bd02d
JS
11553else
11554 echo "configure: failed program was:" >&5
11555 cat conftest.$ac_ext >&5
11556 rm -rf conftest*
21d1c967
GD
11557
11558 wx_cv_w32api_win32_ie=no
11559
f79bd02d
JS
11560fi
11561rm -f conftest*
21d1c967
GD
11562
11563fi
f79bd02d 11564
21d1c967
GD
11565echo "$ac_t""$wx_cv_w32api_win32_ie" 1>&6
11566 if test "$wx_cv_w32api_win32_ie" = "yes" ; then
11567 CPPFLAGS="$CPPFLAGS -D_WIN32_IE=0x400"
11568 fi
f79bd02d 11569
21d1c967
GD
11570 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -ladvapi32 -lwsock32"
11571
11572 case "${host}" in
11573 *-*-cygwin* )
11574 LIBS="$LIBS -lkernel32 -luser32 -lgdi32 -lcomdlg32"
11575 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__"
f79bd02d 11576 esac
f79bd02d 11577
21d1c967
GD
11578 if test "$wxUSE_ODBC" = "yes" ; then
11579 LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
11580 fi
f79bd02d 11581
21d1c967
GD
11582 RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
11583 RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
f79bd02d 11584fi
f79bd02d 11585
21d1c967
GD
11586if test "$wxUSE_GUI" = "yes"; then
11587 USE_GUI=1
f79bd02d 11588
21d1c967 11589 GUI_TK_LIBRARY=
f79bd02d 11590
21d1c967
GD
11591 WXGTK12=
11592 WXGTK127=
11593 WXGTK20=
f79bd02d 11594
21d1c967
GD
11595 if test "$wxUSE_MSW" = 1 ; then
11596 TOOLKIT=MSW
11597 GUIDIST=MSW_DIST
f79bd02d 11598
21d1c967
GD
11599 case "${host}" in
11600 *-*-mingw32* )
11601 LDFLAGS="$LDFLAGS -Wl,--subsystem,windows -mwindows"
11602 esac
f79bd02d
JS
11603 fi
11604
21d1c967
GD
11605 if test "$wxUSE_GTK" = 1; then
11606 echo $ac_n "checking for GTK+ version""... $ac_c" 1>&6
11607echo "configure:11608: checking for GTK+ version" >&5
11608
11609 gtk_version_cached=1
11610 if eval "test \"`echo '$''{'wx_cv_lib_gtk'+set}'`\" = set"; then
f79bd02d
JS
11611 echo $ac_n "(cached) $ac_c" 1>&6
11612else
21d1c967
GD
11613
11614 gtk_version_cached=0
11615 echo "$ac_t""" 1>&6
f79bd02d 11616
21d1c967
GD
11617 GTK_MODULES=
11618 if test "$wxUSE_THREADS" = "yes"; then
11619 GTK_MODULES=gthread
11620 fi
f79bd02d 11621
21d1c967
GD
11622 wx_cv_lib_gtk=
11623 if test "x$wxUSE_GTK2" = "xyes"; then
11624 # Check whether --enable-gtktest or --disable-gtktest was given.
11625if test "${enable_gtktest+set}" = set; then
11626 enableval="$enable_gtktest"
f79bd02d
JS
11627 :
11628else
21d1c967 11629 enable_gtktest=yes
f79bd02d
JS
11630fi
11631
f79bd02d 11632
21d1c967
GD
11633 pkg_config_args=gtk+-2.0
11634 for module in . $GTK_MODULES
11635 do
11636 case "$module" in
11637 gthread)
11638 pkg_config_args="$pkg_config_args gthread-2.0"
11639 ;;
11640 esac
11641 done
11642
11643 no_gtk=""
f79bd02d 11644
21d1c967
GD
11645 # Extract the first word of "pkg-config", so it can be a program name with args.
11646set dummy pkg-config; ac_word=$2
11647echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
11648echo "configure:11649: checking for $ac_word" >&5
11649if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
11650 echo $ac_n "(cached) $ac_c" 1>&6
11651else
11652 case "$PKG_CONFIG" in
11653 /*)
11654 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11655 ;;
11656 ?:/*)
11657 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
11658 ;;
11659 *)
11660 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
11661 ac_dummy="$PATH"
11662 for ac_dir in $ac_dummy; do
11663 test -z "$ac_dir" && ac_dir=.
11664 if test -f $ac_dir/$ac_word; then
11665 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
11666 break
11667 fi
11668 done
11669 IFS="$ac_save_ifs"
11670 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11671 ;;
11672esac
f79bd02d 11673fi
21d1c967
GD
11674PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
11675if test -n "$PKG_CONFIG"; then
11676 echo "$ac_t""$PKG_CONFIG" 1>&6
f79bd02d
JS
11677else
11678 echo "$ac_t""no" 1>&6
11679fi
11680
f79bd02d 11681
21d1c967
GD
11682 if test x$PKG_CONFIG != xno ; then
11683 if pkg-config --atleast-pkgconfig-version 0.7 ; then
11684 :
11685 else
11686 echo *** pkg-config too old; version 0.7 or better required.
11687 no_gtk=yes
11688 PKG_CONFIG=no
11689 fi
11690 else
11691 no_gtk=yes
11692 fi
f79bd02d 11693
21d1c967
GD
11694 min_gtk_version=2.0.0
11695 echo $ac_n "checking for GTK+ - version >= $min_gtk_version""... $ac_c" 1>&6
11696echo "configure:11697: checking for GTK+ - version >= $min_gtk_version" >&5
f79bd02d 11697
21d1c967
GD
11698 if test x$PKG_CONFIG != xno ; then
11699 ## don't try to run the test against uninstalled libtool libs
11700 if $PKG_CONFIG --uninstalled $pkg_config_args; then
11701 echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
11702 enable_gtktest=no
11703 fi
f79bd02d 11704
21d1c967
GD
11705 if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
11706 :
11707 else
11708 no_gtk=yes
11709 fi
11710 fi
f79bd02d 11711
21d1c967
GD
11712 if test x"$no_gtk" = x ; then
11713 GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
11714 GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
11715 gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
11716 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
11717 gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
11718 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
11719 gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
11720 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
11721 if test "x$enable_gtktest" = "xyes" ; then
11722 ac_save_CFLAGS="$CFLAGS"
11723 ac_save_LIBS="$LIBS"
11724 CFLAGS="$CFLAGS $GTK_CFLAGS"
11725 LIBS="$GTK_LIBS $LIBS"
11726 rm -f conf.gtktest
11727 if test "$cross_compiling" = yes; then
11728 echo $ac_n "cross compiling; assumed OK... $ac_c"
f79bd02d 11729else
21d1c967
GD
11730 cat > conftest.$ac_ext <<EOF
11731#line 11732 "configure"
f79bd02d 11732#include "confdefs.h"
f79bd02d 11733
21d1c967
GD
11734#include <gtk/gtk.h>
11735#include <stdio.h>
11736#include <stdlib.h>
f79bd02d 11737
21d1c967
GD
11738int
11739main ()
11740{
11741 int major, minor, micro;
11742 char *tmp_version;
f79bd02d 11743
21d1c967 11744 system ("touch conf.gtktest");
f79bd02d 11745
21d1c967
GD
11746 /* HP/UX 9 (%@#!) writes to sscanf strings */
11747 tmp_version = g_strdup("$min_gtk_version");
11748 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
11749 printf("%s, bad version string\n", "$min_gtk_version");
11750 exit(1);
11751 }
f79bd02d 11752
21d1c967
GD
11753 if ((gtk_major_version != $gtk_config_major_version) ||
11754 (gtk_minor_version != $gtk_config_minor_version) ||
11755 (gtk_micro_version != $gtk_config_micro_version))
11756 {
11757 printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
11758 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
11759 gtk_major_version, gtk_minor_version, gtk_micro_version);
11760 printf ("*** was found! If pkg-config was correct, then it is best\n");
11761 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
11762 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
11763 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
11764 printf("*** required on your system.\n");
11765 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
11766 printf("*** to point to the correct configuration files\n");
11767 }
11768 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
11769 (gtk_minor_version != GTK_MINOR_VERSION) ||
11770 (gtk_micro_version != GTK_MICRO_VERSION))
11771 {
11772 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
11773 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
11774 printf("*** library (version %d.%d.%d)\n",
11775 gtk_major_version, gtk_minor_version, gtk_micro_version);
11776 }
11777 else
11778 {
11779 if ((gtk_major_version > major) ||
11780 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
11781 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
11782 {
11783 return 0;
11784 }
11785 else
11786 {
11787 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
11788 gtk_major_version, gtk_minor_version, gtk_micro_version);
11789 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
11790 major, minor, micro);
11791 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
11792 printf("***\n");
11793 printf("*** If you have already installed a sufficiently new version, this error\n");
11794 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
11795 printf("*** being found. The easiest way to fix this is to remove the old version\n");
11796 printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
11797 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
11798 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
11799 printf("*** so that the correct libraries are found at run-time))\n");
11800 }
11801 }
11802 return 1;
11803}
f79bd02d 11804
f79bd02d 11805EOF
21d1c967
GD
11806if { (eval echo configure:11807: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11807then
11808 :
f79bd02d
JS
11809else
11810 echo "configure: failed program was:" >&5
11811 cat conftest.$ac_ext >&5
21d1c967
GD
11812 rm -fr conftest*
11813 no_gtk=yes
f79bd02d 11814fi
21d1c967 11815rm -fr conftest*
f79bd02d
JS
11816fi
11817
21d1c967
GD
11818 CFLAGS="$ac_save_CFLAGS"
11819 LIBS="$ac_save_LIBS"
11820 fi
11821 fi
11822 if test "x$no_gtk" = x ; then
11823 echo "$ac_t""yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" 1>&6
11824 wx_cv_lib_gtk=2.0
11825 else
11826 echo "$ac_t""no" 1>&6
11827 if test "$PKG_CONFIG" = "no" ; then
11828 echo "*** A new enough version of pkg-config was not found."
11829 echo "*** See http://pkgconfig.sourceforge.net"
11830 else
11831 if test -f conf.gtktest ; then
11832 :
11833 else
11834 echo "*** Could not run GTK+ test program, checking why..."
11835 CFLAGS="$CFLAGS $GTK_CFLAGS"
11836 LIBS="$LIBS $GTK_LIBS"
11837 cat > conftest.$ac_ext <<EOF
11838#line 11839 "configure"
f79bd02d 11839#include "confdefs.h"
21d1c967
GD
11840
11841#include <gtk/gtk.h>
11842#include <stdio.h>
f79bd02d
JS
11843
11844int main() {
21d1c967 11845 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
f79bd02d
JS
11846; return 0; }
11847EOF
21d1c967 11848if { (eval echo configure:11849: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
f79bd02d 11849 rm -rf conftest*
21d1c967
GD
11850 echo "*** The test program compiled, but did not run. This usually means"
11851 echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
11852 echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
11853 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
11854 echo "*** to the installed location Also, make sure you have run ldconfig if that"
11855 echo "*** is required on your system"
11856 echo "***"
11857 echo "*** If you have an old version installed, it is best to remove it, although"
11858 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
f79bd02d
JS
11859else
11860 echo "configure: failed program was:" >&5
11861 cat conftest.$ac_ext >&5
11862 rm -rf conftest*
21d1c967
GD
11863 echo "*** The test program failed to compile or link. See the file config.log for the"
11864 echo "*** exact error that occured. This usually means GTK+ was incorrectly installed"
11865 echo "*** or that you have moved GTK+ since it was installed. In the latter case, you"
11866 echo "*** may want to edit the pkg-config script: $PKG_CONFIG"
f79bd02d
JS
11867fi
11868rm -f conftest*
21d1c967
GD
11869 CFLAGS="$ac_save_CFLAGS"
11870 LIBS="$ac_save_LIBS"
11871 fi
11872 fi
11873 GTK_CFLAGS=""
11874 GTK_LIBS=""
11875 :
11876 fi
11877
11878
11879 rm -f conf.gtktest
f79bd02d 11880
21d1c967 11881 fi
f79bd02d 11882
21d1c967
GD
11883 if test -z "$wx_cv_lib_gtk"; then
11884 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
11885if test "${with_gtk_prefix+set}" = set; then
11886 withval="$with_gtk_prefix"
11887 gtk_config_prefix="$withval"
11888else
11889 gtk_config_prefix=""
11890fi
f79bd02d 11891
21d1c967
GD
11892# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
11893if test "${with_gtk_exec_prefix+set}" = set; then
11894 withval="$with_gtk_exec_prefix"
11895 gtk_config_exec_prefix="$withval"
11896else
11897 gtk_config_exec_prefix=""
11898fi
11899
11900# Check whether --enable-gtktest or --disable-gtktest was given.
11901if test "${enable_gtktest+set}" = set; then
11902 enableval="$enable_gtktest"
11903 :
11904else
11905 enable_gtktest=yes
11906fi
11907
11908
11909 for module in . $GTK_MODULES
11910 do
11911 case "$module" in
11912 gthread)
11913 gtk_config_args="$gtk_config_args gthread"
11914 ;;
11915 esac
11916 done
11917
11918 if test x$gtk_config_exec_prefix != x ; then
11919 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
11920 if test x${GTK_CONFIG+set} != xset ; then
11921 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
11922 fi
11923 fi
11924 if test x$gtk_config_prefix != x ; then
11925 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
11926 if test x${GTK_CONFIG+set} != xset ; then
11927 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
11928 fi
11929 fi
11930
11931 # Extract the first word of "gtk-config", so it can be a program name with args.
11932set dummy gtk-config; ac_word=$2
11933echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
11934echo "configure:11935: checking for $ac_word" >&5
11935if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
f79bd02d 11936 echo $ac_n "(cached) $ac_c" 1>&6
21d1c967
GD
11937else
11938 case "$GTK_CONFIG" in
11939 /*)
11940 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
11941 ;;
11942 ?:/*)
11943 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
11944 ;;
11945 *)
11946 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
11947 ac_dummy="$PATH"
11948 for ac_dir in $ac_dummy; do
11949 test -z "$ac_dir" && ac_dir=.
11950 if test -f $ac_dir/$ac_word; then
11951 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
11952 break
11953 fi
11954 done
11955 IFS="$ac_save_ifs"
11956 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
11957 ;;
11958esac
11959fi
11960GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
11961if test -n "$GTK_CONFIG"; then
11962 echo "$ac_t""$GTK_CONFIG" 1>&6
11963else
11964 echo "$ac_t""no" 1>&6
11965fi
11966
11967 min_gtk_version=1.2.7
11968 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
11969echo "configure:11970: checking for GTK - version >= $min_gtk_version" >&5
11970 no_gtk=""
11971 if test "$GTK_CONFIG" = "no" ; then
11972 no_gtk=yes
11973 else
11974 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
11975 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
11976 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
11977 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
11978 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
11979 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
11980 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
11981 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
11982 if test "x$enable_gtktest" = "xyes" ; then
11983 ac_save_CFLAGS="$CFLAGS"
11984 ac_save_LIBS="$LIBS"
11985 CFLAGS="$CFLAGS $GTK_CFLAGS"
11986 LIBS="$GTK_LIBS $LIBS"
11987 rm -f conf.gtktest
11988 if test "$cross_compiling" = yes; then
11989 echo $ac_n "cross compiling; assumed OK... $ac_c"
f79bd02d 11990else
90dd450c 11991 cat > conftest.$ac_ext <<EOF
21d1c967 11992#line 11993 "configure"
f79bd02d
JS
11993#include "confdefs.h"
11994
21d1c967
GD
11995#include <gtk/gtk.h>
11996#include <stdio.h>
11997#include <stdlib.h>
f79bd02d 11998
21d1c967
GD
11999int
12000main ()
12001{
12002 int major, minor, micro;
12003 char *tmp_version;
12004
12005 system ("touch conf.gtktest");
12006
12007 /* HP/UX 9 (%@#!) writes to sscanf strings */
12008 tmp_version = g_strdup("$min_gtk_version");
12009 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
12010 printf("%s, bad version string\n", "$min_gtk_version");
12011 exit(1);
12012 }
90dd450c 12013
21d1c967
GD
12014 if ((gtk_major_version != $gtk_config_major_version) ||
12015 (gtk_minor_version != $gtk_config_minor_version) ||
12016 (gtk_micro_version != $gtk_config_micro_version))
12017 {
12018 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
12019 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
12020 gtk_major_version, gtk_minor_version, gtk_micro_version);
12021 printf ("*** was found! If gtk-config was correct, then it is best\n");
12022 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
12023 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
12024 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
12025 printf("*** required on your system.\n");
12026 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
12027 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
12028 printf("*** before re-running configure\n");
12029 }
12030#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
12031 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
12032 (gtk_minor_version != GTK_MINOR_VERSION) ||
12033 (gtk_micro_version != GTK_MICRO_VERSION))
12034 {
12035 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
12036 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
12037 printf("*** library (version %d.%d.%d)\n",
12038 gtk_major_version, gtk_minor_version, gtk_micro_version);
12039 }
12040#endif /* defined (GTK_MAJOR_VERSION) ... */
12041 else
12042 {
12043 if ((gtk_major_version > major) ||
12044 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
12045 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
12046 {
12047 return 0;
12048 }
12049 else
12050 {
12051 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
12052 gtk_major_version, gtk_minor_version, gtk_micro_version);
12053 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
12054 major, minor, micro);
12055 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
12056 printf("***\n");
12057 printf("*** If you have already installed a sufficiently new version, this error\n");
12058 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
12059 printf("*** being found. The easiest way to fix this is to remove the old version\n");
12060 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
12061 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
12062 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
12063 printf("*** so that the correct libraries are found at run-time))\n");
12064 }
12065 }
12066 return 1;
12067}
12068
12069EOF
12070if { (eval echo configure:12071: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12071then
12072 :
12073else
12074 echo "configure: failed program was:" >&5
12075 cat conftest.$ac_ext >&5
12076 rm -fr conftest*
12077 no_gtk=yes
12078fi
12079rm -fr conftest*
12080fi
12081
12082 CFLAGS="$ac_save_CFLAGS"
12083 LIBS="$ac_save_LIBS"
12084 fi
12085 fi
12086 if test "x$no_gtk" = x ; then
12087 echo "$ac_t""yes" 1>&6
12088 wx_cv_lib_gtk=1.2.7
12089 else
12090 echo "$ac_t""no" 1>&6
12091 if test "$GTK_CONFIG" = "no" ; then
12092 echo "*** The gtk-config script installed by GTK could not be found"
12093 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
12094 echo "*** your path, or set the GTK_CONFIG environment variable to the"
12095 echo "*** full path to gtk-config."
12096 else
12097 if test -f conf.gtktest ; then
12098 :
12099 else
12100 echo "*** Could not run GTK test program, checking why..."
12101 CFLAGS="$CFLAGS $GTK_CFLAGS"
12102 LIBS="$LIBS $GTK_LIBS"
12103 cat > conftest.$ac_ext <<EOF
12104#line 12105 "configure"
12105#include "confdefs.h"
12106
12107#include <gtk/gtk.h>
12108#include <stdio.h>
12109
12110int main() {
12111 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
f79bd02d
JS
12112; return 0; }
12113EOF
21d1c967 12114if { (eval echo configure:12115: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
f79bd02d 12115 rm -rf conftest*
21d1c967
GD
12116 echo "*** The test program compiled, but did not run. This usually means"
12117 echo "*** that the run-time linker is not finding GTK or finding the wrong"
12118 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
12119 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
12120 echo "*** to the installed location Also, make sure you have run ldconfig if that"
12121 echo "*** is required on your system"
12122 echo "***"
12123 echo "*** If you have an old version installed, it is best to remove it, although"
12124 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
12125 echo "***"
12126 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
12127 echo "*** came with the system with the command"
12128 echo "***"
12129 echo "*** rpm --erase --nodeps gtk gtk-devel"
f79bd02d
JS
12130else
12131 echo "configure: failed program was:" >&5
12132 cat conftest.$ac_ext >&5
12133 rm -rf conftest*
21d1c967
GD
12134 echo "*** The test program failed to compile or link. See the file config.log for the"
12135 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
12136 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
12137 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
f79bd02d
JS
12138fi
12139rm -f conftest*
21d1c967
GD
12140 CFLAGS="$ac_save_CFLAGS"
12141 LIBS="$ac_save_LIBS"
12142 fi
12143 fi
12144 GTK_CFLAGS=""
12145 GTK_LIBS=""
12146 :
12147 fi
12148
12149
12150 rm -f conf.gtktest
12151
12152 fi
12153
12154 if test -z "$wx_cv_lib_gtk"; then
12155 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
12156if test "${with_gtk_prefix+set}" = set; then
12157 withval="$with_gtk_prefix"
12158 gtk_config_prefix="$withval"
12159else
12160 gtk_config_prefix=""
90dd450c 12161fi
f79bd02d 12162
21d1c967
GD
12163# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
12164if test "${with_gtk_exec_prefix+set}" = set; then
12165 withval="$with_gtk_exec_prefix"
12166 gtk_config_exec_prefix="$withval"
12167else
12168 gtk_config_exec_prefix=""
12169fi
12170
12171# Check whether --enable-gtktest or --disable-gtktest was given.
12172if test "${enable_gtktest+set}" = set; then
12173 enableval="$enable_gtktest"
90dd450c
VZ
12174 :
12175else
21d1c967 12176 enable_gtktest=yes
90dd450c 12177fi
f79bd02d 12178
21d1c967
GD
12179
12180 for module in . $GTK_MODULES
12181 do
12182 case "$module" in
12183 gthread)
12184 gtk_config_args="$gtk_config_args gthread"
12185 ;;
12186 esac
12187 done
12188
12189 if test x$gtk_config_exec_prefix != x ; then
12190 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
12191 if test x${GTK_CONFIG+set} != xset ; then
12192 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
12193 fi
12194 fi
12195 if test x$gtk_config_prefix != x ; then
12196 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
12197 if test x${GTK_CONFIG+set} != xset ; then
12198 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
12199 fi
12200 fi
12201
12202 # Extract the first word of "gtk-config", so it can be a program name with args.
12203set dummy gtk-config; ac_word=$2
12204echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
12205echo "configure:12206: checking for $ac_word" >&5
12206if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
90dd450c
VZ
12207 echo $ac_n "(cached) $ac_c" 1>&6
12208else
21d1c967
GD
12209 case "$GTK_CONFIG" in
12210 /*)
12211 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
12212 ;;
12213 ?:/*)
12214 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
12215 ;;
12216 *)
12217 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
12218 ac_dummy="$PATH"
12219 for ac_dir in $ac_dummy; do
12220 test -z "$ac_dir" && ac_dir=.
12221 if test -f $ac_dir/$ac_word; then
12222 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
12223 break
12224 fi
12225 done
12226 IFS="$ac_save_ifs"
12227 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
12228 ;;
12229esac
12230fi
12231GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
12232if test -n "$GTK_CONFIG"; then
12233 echo "$ac_t""$GTK_CONFIG" 1>&6
12234else
12235 echo "$ac_t""no" 1>&6
12236fi
12237
12238 min_gtk_version=1.2.3
12239 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
12240echo "configure:12241: checking for GTK - version >= $min_gtk_version" >&5
12241 no_gtk=""
12242 if test "$GTK_CONFIG" = "no" ; then
12243 no_gtk=yes
12244 else
12245 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
12246 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
12247 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
12248 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
12249 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
12250 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
12251 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
12252 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
12253 if test "x$enable_gtktest" = "xyes" ; then
12254 ac_save_CFLAGS="$CFLAGS"
12255 ac_save_LIBS="$LIBS"
12256 CFLAGS="$CFLAGS $GTK_CFLAGS"
12257 LIBS="$GTK_LIBS $LIBS"
12258 rm -f conf.gtktest
12259 if test "$cross_compiling" = yes; then
12260 echo $ac_n "cross compiling; assumed OK... $ac_c"
12261else
12262 cat > conftest.$ac_ext <<EOF
12263#line 12264 "configure"
f79bd02d 12264#include "confdefs.h"
21d1c967
GD
12265
12266#include <gtk/gtk.h>
12267#include <stdio.h>
12268#include <stdlib.h>
12269
12270int
12271main ()
12272{
12273 int major, minor, micro;
12274 char *tmp_version;
12275
12276 system ("touch conf.gtktest");
12277
12278 /* HP/UX 9 (%@#!) writes to sscanf strings */
12279 tmp_version = g_strdup("$min_gtk_version");
12280 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
12281 printf("%s, bad version string\n", "$min_gtk_version");
12282 exit(1);
12283 }
12284
12285 if ((gtk_major_version != $gtk_config_major_version) ||
12286 (gtk_minor_version != $gtk_config_minor_version) ||
12287 (gtk_micro_version != $gtk_config_micro_version))
12288 {
12289 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
12290 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
12291 gtk_major_version, gtk_minor_version, gtk_micro_version);
12292 printf ("*** was found! If gtk-config was correct, then it is best\n");
12293 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
12294 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
12295 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
12296 printf("*** required on your system.\n");
12297 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
12298 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
12299 printf("*** before re-running configure\n");
12300 }
12301#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
12302 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
12303 (gtk_minor_version != GTK_MINOR_VERSION) ||
12304 (gtk_micro_version != GTK_MICRO_VERSION))
12305 {
12306 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
12307 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
12308 printf("*** library (version %d.%d.%d)\n",
12309 gtk_major_version, gtk_minor_version, gtk_micro_version);
12310 }
12311#endif /* defined (GTK_MAJOR_VERSION) ... */
12312 else
12313 {
12314 if ((gtk_major_version > major) ||
12315 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
12316 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
12317 {
12318 return 0;
12319 }
12320 else
12321 {
12322 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
12323 gtk_major_version, gtk_minor_version, gtk_micro_version);
12324 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
12325 major, minor, micro);
12326 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
12327 printf("***\n");
12328 printf("*** If you have already installed a sufficiently new version, this error\n");
12329 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
12330 printf("*** being found. The easiest way to fix this is to remove the old version\n");
12331 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
12332 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
12333 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
12334 printf("*** so that the correct libraries are found at run-time))\n");
12335 }
12336 }
12337 return 1;
12338}
12339
12340EOF
12341if { (eval echo configure:12342: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12342then
12343 :
12344else
12345 echo "configure: failed program was:" >&5
12346 cat conftest.$ac_ext >&5
12347 rm -fr conftest*
12348 no_gtk=yes
12349fi
12350rm -fr conftest*
12351fi
12352
12353 CFLAGS="$ac_save_CFLAGS"
12354 LIBS="$ac_save_LIBS"
12355 fi
12356 fi
12357 if test "x$no_gtk" = x ; then
12358 echo "$ac_t""yes" 1>&6
12359 wx_cv_lib_gtk=1.2.3
12360 else
12361 echo "$ac_t""no" 1>&6
12362 if test "$GTK_CONFIG" = "no" ; then
12363 echo "*** The gtk-config script installed by GTK could not be found"
12364 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
12365 echo "*** your path, or set the GTK_CONFIG environment variable to the"
12366 echo "*** full path to gtk-config."
12367 else
12368 if test -f conf.gtktest ; then
12369 :
12370 else
12371 echo "*** Could not run GTK test program, checking why..."
12372 CFLAGS="$CFLAGS $GTK_CFLAGS"
12373 LIBS="$LIBS $GTK_LIBS"
12374 cat > conftest.$ac_ext <<EOF
12375#line 12376 "configure"
12376#include "confdefs.h"
12377
12378#include <gtk/gtk.h>
12379#include <stdio.h>
f79bd02d 12380
f79bd02d 12381int main() {
21d1c967 12382 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
f79bd02d
JS
12383; return 0; }
12384EOF
21d1c967 12385if { (eval echo configure:12386: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
f79bd02d 12386 rm -rf conftest*
21d1c967
GD
12387 echo "*** The test program compiled, but did not run. This usually means"
12388 echo "*** that the run-time linker is not finding GTK or finding the wrong"
12389 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
12390 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
12391 echo "*** to the installed location Also, make sure you have run ldconfig if that"
12392 echo "*** is required on your system"
12393 echo "***"
12394 echo "*** If you have an old version installed, it is best to remove it, although"
12395 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
12396 echo "***"
12397 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
12398 echo "*** came with the system with the command"
12399 echo "***"
12400 echo "*** rpm --erase --nodeps gtk gtk-devel"
f79bd02d
JS
12401else
12402 echo "configure: failed program was:" >&5
12403 cat conftest.$ac_ext >&5
12404 rm -rf conftest*
21d1c967
GD
12405 echo "*** The test program failed to compile or link. See the file config.log for the"
12406 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
12407 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
12408 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
f79bd02d
JS
12409fi
12410rm -f conftest*
21d1c967
GD
12411 CFLAGS="$ac_save_CFLAGS"
12412 LIBS="$ac_save_LIBS"
12413 fi
12414 fi
12415 GTK_CFLAGS=""
12416 GTK_LIBS=""
12417 :
12418 fi
12419
12420
12421 rm -f conf.gtktest
f79bd02d 12422
21d1c967
GD
12423 fi
12424
12425 if test -z "$wx_cv_lib_gtk"; then
12426 wx_cv_lib_gtk=none
12427 else
12428 wx_cv_cflags_gtk=$GTK_CFLAGS
12429 wx_cv_libs_gtk=$GTK_LIBS
12430 fi
12431
12432
90dd450c 12433fi
b4085ce6 12434
e07802fc 12435
21d1c967
GD
12436 if test "$gtk_version_cached" = 1; then
12437 echo "$ac_t""$wx_cv_lib_gtk" 1>&6
12438 fi
12439
12440 case "$wx_cv_lib_gtk" in
12441 2.0) WXGTK20=1
12442 ;;
12443 1.2.7) WXGTK127=1
12444 WXGTK12=1
12445 ;;
12446 1.2.3) WXGTK12=1
12447 ;;
12448 *) { echo "configure: error:
12449Please check that gtk-config is in path, the directory
12450where GTK+ libraries are installed (returned by
12451'gtk-config --libs' command) is in LD_LIBRARY_PATH or
12452equivalent variable and GTK+ is version 1.2.3 or above.
12453 " 1>&2; exit 1; }
12454 ;;
12455 esac
12456
12457 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
12458 GUI_TK_LIBRARY="$wx_cv_libs_gtk"
12459
12460 AFMINSTALL=afminstall
12461 TOOLKIT=GTK
12462 GUIDIST=GTK_DIST
12463
12464 echo $ac_n "checking for gdk_im_open in -lgdk""... $ac_c" 1>&6
12465echo "configure:12466: checking for gdk_im_open in -lgdk" >&5
12466ac_lib_var=`echo gdk'_'gdk_im_open | sed 'y%./+-%__p_%'`
90dd450c
VZ
12467if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12468 echo $ac_n "(cached) $ac_c" 1>&6
12469else
12470 ac_save_LIBS="$LIBS"
21d1c967 12471LIBS="-lgdk $LIBS"
90dd450c 12472cat > conftest.$ac_ext <<EOF
21d1c967 12473#line 12474 "configure"
90dd450c
VZ
12474#include "confdefs.h"
12475/* Override any gcc2 internal prototype to avoid an error. */
12476/* We use char because int might match the return type of a gcc2
12477 builtin and then its argument prototype would still apply. */
21d1c967 12478char gdk_im_open();
9b695262 12479
90dd450c 12480int main() {
21d1c967 12481gdk_im_open()
90dd450c
VZ
12482; return 0; }
12483EOF
21d1c967 12484if { (eval echo configure:12485: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
90dd450c
VZ
12485 rm -rf conftest*
12486 eval "ac_cv_lib_$ac_lib_var=yes"
12487else
12488 echo "configure: failed program was:" >&5
12489 cat conftest.$ac_ext >&5
12490 rm -rf conftest*
12491 eval "ac_cv_lib_$ac_lib_var=no"
12492fi
12493rm -f conftest*
12494LIBS="$ac_save_LIBS"
9b695262 12495
90dd450c
VZ
12496fi
12497if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12498 echo "$ac_t""yes" 1>&6
21d1c967
GD
12499 cat >> confdefs.h <<\EOF
12500#define HAVE_XIM 1
12501EOF
12502
90dd450c
VZ
12503else
12504 echo "$ac_t""no" 1>&6
12505fi
1e6feb95 12506
21d1c967 12507 fi
1e6feb95 12508
21d1c967
GD
12509 if test "$wxUSE_MGL" = 1; then
12510 echo $ac_n "checking for SciTech MGL library""... $ac_c" 1>&6
12511echo "configure:12512: checking for SciTech MGL library" >&5
12512 if test "x$MGL_ROOT" = x ; then
12513 echo "$ac_t""not found" 1>&6
12514 { echo "configure: error: Cannot find MGL library. Make sure MGL_ROOT is set." 1>&2; exit 1; }
12515 else
12516 echo "$ac_t""$MGL_ROOT" 1>&6
12517 fi
12518
12519 case "${host}" in
12520 *-*-linux* )
12521 mgl_os=linux/gcc/glibc
12522 ;;
12523 *-pc-msdosdjgpp )
12524 mgl_os=dos32/dj2
12525 ;;
12526 *)
12527 { echo "configure: error: This system type ${host} is not yet supported by wxMGL." 1>&2; exit 1; }
12528 esac
1e6feb95 12529
21d1c967 12530 mgl_lib_type=""
3fcdd07b 12531
21d1c967
GD
12532 if test "$wxUSE_DEBUG_FLAG" = yes ; then
12533 if test -f $MGL_ROOT/lib/debug/$mgl_os/libmgl.a -o \
12534 -f $MGL_ROOT/lib/debug/$mgl_os/libmgl.so; then
12535 mgl_lib_type=debug
12536 fi
12537 fi
12538 if test "x$mgl_lib_type" = x ; then
12539 if test -f $MGL_ROOT/lib/release/$mgl_os/libmgl.a -o \
12540 -f $MGL_ROOT/lib/release/$mgl_os/libmgl.so; then
12541 mgl_lib_type=release
12542 else
12543 { echo "configure: error: Cannot find MGL libraries, make sure they are compiled." 1>&2; exit 1; }
12544 fi
90dd450c 12545 fi
2224580a 12546
21d1c967
GD
12547 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
12548 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
12549
90dd450c 12550 AFMINSTALL=afminstall
21d1c967
GD
12551 TOOLKIT=MGL
12552 GUIDIST=MGL_DIST
12553 fi
dad6c0ea 12554
21d1c967
GD
12555 if test "$wxUSE_MICROWIN" = 1; then
12556 echo $ac_n "checking for MicroWindows""... $ac_c" 1>&6
12557echo "configure:12558: checking for MicroWindows" >&5
12558 if test "x$MICROWINDOWS" = x ; then
12559 echo "$ac_t""not found" 1>&6
12560 { echo "configure: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." 1>&2; exit 1; }
12561 else
12562 echo "$ac_t""$MICROWINDOWS" 1>&6
12563 fi
f6bcfd97 12564
21d1c967
GD
12565 if test -f $MICROWINDOWS/lib/libmwin.a; then
12566 echo "$ac_t""MicroWindows' libraries found." 1>&6
12567 else
12568 { echo "configure: error: Cannot find MicroWindows libraries, make sure they are compiled." 1>&2; exit 1; }
90dd450c 12569 fi
0b2effe9 12570
21d1c967
GD
12571 TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
12572 GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
12573
12574 AFMINSTALL=afminstall
12575 TOOLKIT=MICROWIN
12576 GUIDIST=MICROWIN_DIST
90dd450c 12577
21d1c967
GD
12578 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__ -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
12579 fi
f6bcfd97 12580
21d1c967
GD
12581 if test "$wxUSE_X11" = 1; then
12582 # If we find X, set shell vars x_includes and x_libraries to the
12583# paths, otherwise set no_x=yes.
12584# Uses ac_ vars as temps to allow command line to override cache and checks.
12585# --without-x overrides everything else, but does not touch the cache.
12586echo $ac_n "checking for X""... $ac_c" 1>&6
12587echo "configure:12588: checking for X" >&5
d8356fa3 12588
21d1c967
GD
12589# Check whether --with-x or --without-x was given.
12590if test "${with_x+set}" = set; then
12591 withval="$with_x"
12592 :
12593fi
2224580a 12594
21d1c967
GD
12595# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
12596if test "x$with_x" = xno; then
12597 # The user explicitly disabled X.
12598 have_x=disabled
12599else
12600 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
12601 # Both variables are already set.
12602 have_x=yes
12603 else
12604if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
12605 echo $ac_n "(cached) $ac_c" 1>&6
12606else
12607 # One or both of the vars are not set, and there is no cached value.
12608ac_x_includes=NO ac_x_libraries=NO
12609rm -fr conftestdir
12610if mkdir conftestdir; then
12611 cd conftestdir
12612 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
12613 cat > Imakefile <<'EOF'
12614acfindx:
12615 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
12616EOF
12617 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
12618 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
12619 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
12620 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
12621 for ac_extension in a so sl; do
12622 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
12623 test -f $ac_im_libdir/libX11.$ac_extension; then
12624 ac_im_usrlibdir=$ac_im_libdir; break
12625 fi
12626 done
12627 # Screen out bogus values from the imake configuration. They are
12628 # bogus both because they are the default anyway, and because
12629 # using them would break gcc on systems where it needs fixed includes.
12630 case "$ac_im_incroot" in
12631 /usr/include) ;;
12632 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
12633 esac
12634 case "$ac_im_usrlibdir" in
12635 /usr/lib | /lib) ;;
12636 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
12637 esac
12638 fi
12639 cd ..
12640 rm -fr conftestdir
12641fi
10f2d63a 12642
21d1c967
GD
12643if test "$ac_x_includes" = NO; then
12644 # Guess where to find include files, by looking for this one X11 .h file.
12645 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
e45387bf 12646
21d1c967
GD
12647 # First, try using that file with no special directory specified.
12648cat > conftest.$ac_ext <<EOF
12649#line 12650 "configure"
12650#include "confdefs.h"
12651#include <$x_direct_test_include>
90dd450c 12652EOF
21d1c967
GD
12653ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12654{ (eval echo configure:12655: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12655ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12656if test -z "$ac_err"; then
90dd450c 12657 rm -rf conftest*
21d1c967
GD
12658 # We can compile using X headers with no special include directory.
12659ac_x_includes=
90dd450c 12660else
21d1c967 12661 echo "$ac_err" >&5
90dd450c
VZ
12662 echo "configure: failed program was:" >&5
12663 cat conftest.$ac_ext >&5
12664 rm -rf conftest*
21d1c967
GD
12665 # Look for the header file in a standard set of common directories.
12666# Check X11 before X11Rn because it is often a symlink to the current release.
12667 for ac_dir in \
12668 /usr/X11/include \
12669 /usr/X11R6/include \
12670 /usr/X11R5/include \
12671 /usr/X11R4/include \
12672 \
12673 /usr/include/X11 \
12674 /usr/include/X11R6 \
12675 /usr/include/X11R5 \
12676 /usr/include/X11R4 \
12677 \
12678 /usr/local/X11/include \
12679 /usr/local/X11R6/include \
12680 /usr/local/X11R5/include \
12681 /usr/local/X11R4/include \
12682 \
12683 /usr/local/include/X11 \
12684 /usr/local/include/X11R6 \
12685 /usr/local/include/X11R5 \
12686 /usr/local/include/X11R4 \
12687 \
12688 /usr/X386/include \
12689 /usr/x386/include \
12690 /usr/XFree86/include/X11 \
12691 \
12692 /usr/include \
12693 /usr/local/include \
12694 /usr/unsupported/include \
12695 /usr/athena/include \
12696 /usr/local/x11r5/include \
12697 /usr/lpp/Xamples/include \
12698 \
12699 /usr/openwin/include \
12700 /usr/openwin/share/include \
12701 ; \
12702 do
12703 if test -r "$ac_dir/$x_direct_test_include"; then
12704 ac_x_includes=$ac_dir
12705 break
12706 fi
12707 done
3a922bb4 12708fi
90dd450c 12709rm -f conftest*
21d1c967 12710fi # $ac_x_includes = NO
10f2d63a 12711
21d1c967
GD
12712if test "$ac_x_libraries" = NO; then
12713 # Check for the libraries.
be505a65 12714
21d1c967
GD
12715 test -z "$x_direct_test_library" && x_direct_test_library=Xt
12716 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
90dd450c 12717
21d1c967
GD
12718 # See if we find them without any special options.
12719 # Don't add to $LIBS permanently.
12720 ac_save_LIBS="$LIBS"
12721 LIBS="-l$x_direct_test_library $LIBS"
12722cat > conftest.$ac_ext <<EOF
12723#line 12724 "configure"
3a922bb4 12724#include "confdefs.h"
21d1c967
GD
12725
12726int main() {
12727${x_direct_test_function}()
12728; return 0; }
3a922bb4 12729EOF
21d1c967 12730if { (eval echo configure:12731: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3a922bb4 12731 rm -rf conftest*
21d1c967
GD
12732 LIBS="$ac_save_LIBS"
12733# We can link X programs with no special library path.
12734ac_x_libraries=
3a922bb4 12735else
3a922bb4
RL
12736 echo "configure: failed program was:" >&5
12737 cat conftest.$ac_ext >&5
12738 rm -rf conftest*
21d1c967
GD
12739 LIBS="$ac_save_LIBS"
12740# First see if replacing the include by lib works.
12741# Check X11 before X11Rn because it is often a symlink to the current release.
12742for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
12743 /usr/X11/lib \
12744 /usr/X11R6/lib \
12745 /usr/X11R5/lib \
12746 /usr/X11R4/lib \
12747 \
12748 /usr/lib/X11 \
12749 /usr/lib/X11R6 \
12750 /usr/lib/X11R5 \
12751 /usr/lib/X11R4 \
12752 \
12753 /usr/local/X11/lib \
12754 /usr/local/X11R6/lib \
12755 /usr/local/X11R5/lib \
12756 /usr/local/X11R4/lib \
12757 \
12758 /usr/local/lib/X11 \
12759 /usr/local/lib/X11R6 \
12760 /usr/local/lib/X11R5 \
12761 /usr/local/lib/X11R4 \
12762 \
12763 /usr/X386/lib \
12764 /usr/x386/lib \
12765 /usr/XFree86/lib/X11 \
12766 \
12767 /usr/lib \
12768 /usr/local/lib \
12769 /usr/unsupported/lib \
12770 /usr/athena/lib \
12771 /usr/local/x11r5/lib \
12772 /usr/lpp/Xamples/lib \
12773 /lib/usr/lib/X11 \
12774 \
12775 /usr/openwin/lib \
12776 /usr/openwin/share/lib \
12777 ; \
12778do
12779 for ac_extension in a so sl; do
12780 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
12781 ac_x_libraries=$ac_dir
12782 break 2
12783 fi
12784 done
12785done
3a922bb4
RL
12786fi
12787rm -f conftest*
21d1c967 12788fi # $ac_x_libraries = NO
90dd450c 12789
21d1c967
GD
12790if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
12791 # Didn't find X anywhere. Cache the known absence of X.
12792 ac_cv_have_x="have_x=no"
12793else
12794 # Record where we found X for the cache.
12795 ac_cv_have_x="have_x=yes \
12796 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
90dd450c 12797fi
21d1c967
GD
12798fi
12799 fi
12800 eval "$ac_cv_have_x"
12801fi # $with_x != no
90dd450c 12802
21d1c967
GD
12803if test "$have_x" != yes; then
12804 echo "$ac_t""$have_x" 1>&6
12805 no_x=yes
12806else
12807 # If each of the values was on the command line, it overrides each guess.
12808 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
12809 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
12810 # Update the cache value to reflect the command line values.
12811 ac_cv_have_x="have_x=yes \
12812 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
12813 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
12814fi
90dd450c 12815
21d1c967 12816if test "$no_x" = yes; then
90dd450c
VZ
12817 # Not all programs may use this symbol, but it does not hurt to define it.
12818 cat >> confdefs.h <<\EOF
12819#define X_DISPLAY_MISSING 1
12820EOF
12821
12822 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
12823else
12824 if test -n "$x_includes"; then
12825 X_CFLAGS="$X_CFLAGS -I$x_includes"
62d0491b 12826 fi
3a922bb4 12827
90dd450c
VZ
12828 # It would also be nice to do this for all -L options, not just this one.
12829 if test -n "$x_libraries"; then
12830 X_LIBS="$X_LIBS -L$x_libraries"
12831 # For Solaris; some versions of Sun CC require a space after -R and
12832 # others require no space. Words are not sufficient . . . .
12833 case "`(uname -sr) 2>/dev/null`" in
12834 "SunOS 5"*)
12835 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
21d1c967 12836echo "configure:12837: checking whether -R must be followed by a space" >&5
90dd450c
VZ
12837 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
12838 cat > conftest.$ac_ext <<EOF
21d1c967 12839#line 12840 "configure"
90dd450c
VZ
12840#include "confdefs.h"
12841
12842int main() {
12843
12844; return 0; }
12845EOF
21d1c967 12846if { (eval echo configure:12847: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
90dd450c
VZ
12847 rm -rf conftest*
12848 ac_R_nospace=yes
3a922bb4 12849else
90dd450c
VZ
12850 echo "configure: failed program was:" >&5
12851 cat conftest.$ac_ext >&5
12852 rm -rf conftest*
12853 ac_R_nospace=no
3a922bb4 12854fi
90dd450c
VZ
12855rm -f conftest*
12856 if test $ac_R_nospace = yes; then
12857 echo "$ac_t""no" 1>&6
12858 X_LIBS="$X_LIBS -R$x_libraries"
12859 else
12860 LIBS="$ac_xsave_LIBS -R $x_libraries"
12861 cat > conftest.$ac_ext <<EOF
21d1c967 12862#line 12863 "configure"
90dd450c 12863#include "confdefs.h"
3a922bb4 12864
90dd450c 12865int main() {
6f754473 12866
90dd450c
VZ
12867; return 0; }
12868EOF
21d1c967 12869if { (eval echo configure:12870: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
90dd450c
VZ
12870 rm -rf conftest*
12871 ac_R_space=yes
12872else
12873 echo "configure: failed program was:" >&5
12874 cat conftest.$ac_ext >&5
12875 rm -rf conftest*
12876 ac_R_space=no
12877fi
12878rm -f conftest*
12879 if test $ac_R_space = yes; then
12880 echo "$ac_t""yes" 1>&6
12881 X_LIBS="$X_LIBS -R $x_libraries"
12882 else
12883 echo "$ac_t""neither works" 1>&6
12884 fi
12885 fi
12886 LIBS="$ac_xsave_LIBS"
12887 esac
12888 fi
12889
12890 # Check for system-dependent libraries X programs must link with.
12891 # Do this before checking for the system-independent R6 libraries
12892 # (-lICE), since we may need -lsocket or whatever for X linking.
6f754473 12893
90dd450c
VZ
12894 if test "$ISC" = yes; then
12895 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
12896 else
12897 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
12898 # libraries were built with DECnet support. And karl@cs.umb.edu says
12899 # the Alpha needs dnet_stub (dnet does not exist).
12900 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
21d1c967 12901echo "configure:12902: checking for dnet_ntoa in -ldnet" >&5
90dd450c
VZ
12902ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
12903if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12904 echo $ac_n "(cached) $ac_c" 1>&6
12905else
12906 ac_save_LIBS="$LIBS"
12907LIBS="-ldnet $LIBS"
12908cat > conftest.$ac_ext <<EOF
21d1c967 12909#line 12910 "configure"
90dd450c
VZ
12910#include "confdefs.h"
12911/* Override any gcc2 internal prototype to avoid an error. */
12912/* We use char because int might match the return type of a gcc2
12913 builtin and then its argument prototype would still apply. */
12914char dnet_ntoa();
6f754473 12915
90dd450c
VZ
12916int main() {
12917dnet_ntoa()
12918; return 0; }
6f754473 12919EOF
21d1c967 12920if { (eval echo configure:12921: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
90dd450c
VZ
12921 rm -rf conftest*
12922 eval "ac_cv_lib_$ac_lib_var=yes"
12923else
12924 echo "configure: failed program was:" >&5
12925 cat conftest.$ac_ext >&5
12926 rm -rf conftest*
12927 eval "ac_cv_lib_$ac_lib_var=no"
3a922bb4 12928fi
90dd450c
VZ
12929rm -f conftest*
12930LIBS="$ac_save_LIBS"
3a922bb4 12931
3a922bb4 12932fi
90dd450c
VZ
12933if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12934 echo "$ac_t""yes" 1>&6
12935 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
12936else
12937 echo "$ac_t""no" 1>&6
3a922bb4
RL
12938fi
12939
90dd450c
VZ
12940 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
12941 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
21d1c967 12942echo "configure:12943: checking for dnet_ntoa in -ldnet_stub" >&5
90dd450c
VZ
12943ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
12944if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12945 echo $ac_n "(cached) $ac_c" 1>&6
12946else
12947 ac_save_LIBS="$LIBS"
12948LIBS="-ldnet_stub $LIBS"
12949cat > conftest.$ac_ext <<EOF
21d1c967 12950#line 12951 "configure"
90dd450c
VZ
12951#include "confdefs.h"
12952/* Override any gcc2 internal prototype to avoid an error. */
12953/* We use char because int might match the return type of a gcc2
12954 builtin and then its argument prototype would still apply. */
12955char dnet_ntoa();
f676c7ff 12956
90dd450c
VZ
12957int main() {
12958dnet_ntoa()
12959; return 0; }
12960EOF
21d1c967 12961if { (eval echo configure:12962: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
90dd450c
VZ
12962 rm -rf conftest*
12963 eval "ac_cv_lib_$ac_lib_var=yes"
12964else
12965 echo "configure: failed program was:" >&5
12966 cat conftest.$ac_ext >&5
12967 rm -rf conftest*
12968 eval "ac_cv_lib_$ac_lib_var=no"
3a922bb4 12969fi
90dd450c
VZ
12970rm -f conftest*
12971LIBS="$ac_save_LIBS"
3a922bb4 12972
90dd450c
VZ
12973fi
12974if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12975 echo "$ac_t""yes" 1>&6
12976 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
12977else
12978 echo "$ac_t""no" 1>&6
3a922bb4
RL
12979fi
12980
90dd450c 12981 fi
978f1259 12982
90dd450c
VZ
12983 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
12984 # to get the SysV transport functions.
12985 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
12986 # needs -lnsl.
12987 # The nsl library prevents programs from opening the X display
12988 # on Irix 5.2, according to dickey@clark.net.
12989 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
21d1c967 12990echo "configure:12991: checking for gethostbyname" >&5
90dd450c
VZ
12991if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
12992 echo $ac_n "(cached) $ac_c" 1>&6
12993else
12994 cat > conftest.$ac_ext <<EOF
21d1c967 12995#line 12996 "configure"
90dd450c
VZ
12996#include "confdefs.h"
12997/* System header to define __stub macros and hopefully few prototypes,
12998 which can conflict with char gethostbyname(); below. */
12999#include <assert.h>
13000/* Override any gcc2 internal prototype to avoid an error. */
13001/* We use char because int might match the return type of a gcc2
13002 builtin and then its argument prototype would still apply. */
13003char gethostbyname();
978f1259 13004
90dd450c 13005int main() {
978f1259 13006
90dd450c
VZ
13007/* The GNU C library defines this for functions which it implements
13008 to always fail with ENOSYS. Some functions are actually named
13009 something starting with __ and the normal name is an alias. */
13010#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
13011choke me
13012#else
13013gethostbyname();
13014#endif
978f1259 13015
90dd450c
VZ
13016; return 0; }
13017EOF
21d1c967 13018if { (eval echo configure:13019: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
90dd450c
VZ
13019 rm -rf conftest*
13020 eval "ac_cv_func_gethostbyname=yes"
13021else
13022 echo "configure: failed program was:" >&5
13023 cat conftest.$ac_ext >&5
13024 rm -rf conftest*
13025 eval "ac_cv_func_gethostbyname=no"
978f1259 13026fi
90dd450c 13027rm -f conftest*
4222829b
VS
13028fi
13029
90dd450c
VZ
13030if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
13031 echo "$ac_t""yes" 1>&6
13032 :
13033else
13034 echo "$ac_t""no" 1>&6
13035fi
698dcdb6 13036
90dd450c
VZ
13037 if test $ac_cv_func_gethostbyname = no; then
13038 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
21d1c967 13039echo "configure:13040: checking for gethostbyname in -lnsl" >&5
90dd450c
VZ
13040ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
13041if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13042 echo $ac_n "(cached) $ac_c" 1>&6
13043else
13044 ac_save_LIBS="$LIBS"
13045LIBS="-lnsl $LIBS"
13046cat > conftest.$ac_ext <<EOF
21d1c967 13047#line 13048 "configure"
90dd450c
VZ
13048#include "confdefs.h"
13049/* Override any gcc2 internal prototype to avoid an error. */
13050/* We use char because int might match the return type of a gcc2
13051 builtin and then its argument prototype would still apply. */
13052char gethostbyname();
f6bcfd97 13053
90dd450c
VZ
13054int main() {
13055gethostbyname()
13056; return 0; }
13057EOF
21d1c967 13058if { (eval echo configure:13059: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
90dd450c
VZ
13059 rm -rf conftest*
13060 eval "ac_cv_lib_$ac_lib_var=yes"
13061else
13062 echo "configure: failed program was:" >&5
13063 cat conftest.$ac_ext >&5
13064 rm -rf conftest*
13065 eval "ac_cv_lib_$ac_lib_var=no"
13066fi
13067rm -f conftest*
13068LIBS="$ac_save_LIBS"
55e80573 13069
90dd450c
VZ
13070fi
13071if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13072 echo "$ac_t""yes" 1>&6
13073 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
13074else
13075 echo "$ac_t""no" 1>&6
13076fi
b12915c1 13077
90dd450c
VZ
13078 fi
13079
13080 # lieder@skyler.mavd.honeywell.com says without -lsocket,
13081 # socket/setsockopt and other routines are undefined under SCO ODT
13082 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
13083 # on later versions), says simon@lia.di.epfl.ch: it contains
13084 # gethostby* variants that don't use the nameserver (or something).
13085 # -lsocket must be given before -lnsl if both are needed.
13086 # We assume that if connect needs -lnsl, so does gethostbyname.
13087 echo $ac_n "checking for connect""... $ac_c" 1>&6
21d1c967 13088echo "configure:13089: checking for connect" >&5
90dd450c 13089if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
55e80573
VZ
13090 echo $ac_n "(cached) $ac_c" 1>&6
13091else
90dd450c 13092 cat > conftest.$ac_ext <<EOF
21d1c967 13093#line 13094 "configure"
55e80573 13094#include "confdefs.h"
90dd450c
VZ
13095/* System header to define __stub macros and hopefully few prototypes,
13096 which can conflict with char connect(); below. */
13097#include <assert.h>
13098/* Override any gcc2 internal prototype to avoid an error. */
13099/* We use char because int might match the return type of a gcc2
13100 builtin and then its argument prototype would still apply. */
13101char connect();
55e80573
VZ
13102
13103int main() {
13104
90dd450c
VZ
13105/* The GNU C library defines this for functions which it implements
13106 to always fail with ENOSYS. Some functions are actually named
13107 something starting with __ and the normal name is an alias. */
13108#if defined (__stub_connect) || defined (__stub___connect)
13109choke me
13110#else
13111connect();
13112#endif
13113
55e80573
VZ
13114; return 0; }
13115EOF
21d1c967 13116if { (eval echo configure:13117: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
55e80573 13117 rm -rf conftest*
90dd450c 13118 eval "ac_cv_func_connect=yes"
55e80573
VZ
13119else
13120 echo "configure: failed program was:" >&5
13121 cat conftest.$ac_ext >&5
13122 rm -rf conftest*
90dd450c 13123 eval "ac_cv_func_connect=no"
55e80573
VZ
13124fi
13125rm -f conftest*
55e80573
VZ
13126fi
13127
90dd450c
VZ
13128if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
13129 echo "$ac_t""yes" 1>&6
13130 :
13131else
13132 echo "$ac_t""no" 1>&6
13133fi
55e80573 13134
90dd450c
VZ
13135 if test $ac_cv_func_connect = no; then
13136 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
21d1c967 13137echo "configure:13138: checking for connect in -lsocket" >&5
90dd450c
VZ
13138ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
13139if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13140 echo $ac_n "(cached) $ac_c" 1>&6
13141else
13142 ac_save_LIBS="$LIBS"
13143LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
13144cat > conftest.$ac_ext <<EOF
21d1c967 13145#line 13146 "configure"
90dd450c
VZ
13146#include "confdefs.h"
13147/* Override any gcc2 internal prototype to avoid an error. */
13148/* We use char because int might match the return type of a gcc2
13149 builtin and then its argument prototype would still apply. */
13150char connect();
55e80573 13151
90dd450c
VZ
13152int main() {
13153connect()
13154; return 0; }
13155EOF
21d1c967 13156if { (eval echo configure:13157: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
90dd450c
VZ
13157 rm -rf conftest*
13158 eval "ac_cv_lib_$ac_lib_var=yes"
13159else
13160 echo "configure: failed program was:" >&5
13161 cat conftest.$ac_ext >&5
13162 rm -rf conftest*
13163 eval "ac_cv_lib_$ac_lib_var=no"
13164fi
13165rm -f conftest*
13166LIBS="$ac_save_LIBS"
77e13408 13167
90dd450c
VZ
13168fi
13169if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13170 echo "$ac_t""yes" 1>&6
13171 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
13172else
13173 echo "$ac_t""no" 1>&6
13174fi
77e13408 13175
90dd450c 13176 fi
25d0687a 13177
90dd450c
VZ
13178 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
13179 echo $ac_n "checking for remove""... $ac_c" 1>&6
21d1c967 13180echo "configure:13181: checking for remove" >&5
90dd450c
VZ
13181if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
13182 echo $ac_n "(cached) $ac_c" 1>&6
13183else
13184 cat > conftest.$ac_ext <<EOF
21d1c967 13185#line 13186 "configure"
90dd450c
VZ
13186#include "confdefs.h"
13187/* System header to define __stub macros and hopefully few prototypes,
13188 which can conflict with char remove(); below. */
13189#include <assert.h>
13190/* Override any gcc2 internal prototype to avoid an error. */
13191/* We use char because int might match the return type of a gcc2
13192 builtin and then its argument prototype would still apply. */
13193char remove();
7b7a7637 13194
90dd450c 13195int main() {
55e80573 13196
90dd450c
VZ
13197/* The GNU C library defines this for functions which it implements
13198 to always fail with ENOSYS. Some functions are actually named
13199 something starting with __ and the normal name is an alias. */
13200#if defined (__stub_remove) || defined (__stub___remove)
13201choke me
13202#else
13203remove();
13204#endif
55e80573 13205
90dd450c
VZ
13206; return 0; }
13207EOF
21d1c967 13208if { (eval echo configure:13209: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
90dd450c
VZ
13209 rm -rf conftest*
13210 eval "ac_cv_func_remove=yes"
13211else
13212 echo "configure: failed program was:" >&5
13213 cat conftest.$ac_ext >&5
13214 rm -rf conftest*
13215 eval "ac_cv_func_remove=no"
13216fi
13217rm -f conftest*
13218fi
55e80573 13219
90dd450c
VZ
13220if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
13221 echo "$ac_t""yes" 1>&6
13222 :
13223else
13224 echo "$ac_t""no" 1>&6
13225fi
10f2d63a 13226
90dd450c
VZ
13227 if test $ac_cv_func_remove = no; then
13228 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
21d1c967 13229echo "configure:13230: checking for remove in -lposix" >&5
90dd450c
VZ
13230ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
13231if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13232 echo $ac_n "(cached) $ac_c" 1>&6
13233else
13234 ac_save_LIBS="$LIBS"
13235LIBS="-lposix $LIBS"
13236cat > conftest.$ac_ext <<EOF
21d1c967 13237#line 13238 "configure"
90dd450c
VZ
13238#include "confdefs.h"
13239/* Override any gcc2 internal prototype to avoid an error. */
13240/* We use char because int might match the return type of a gcc2
13241 builtin and then its argument prototype would still apply. */
13242char remove();
55e80573 13243
90dd450c
VZ
13244int main() {
13245remove()
13246; return 0; }
13247EOF
21d1c967 13248if { (eval echo configure:13249: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
90dd450c
VZ
13249 rm -rf conftest*
13250 eval "ac_cv_lib_$ac_lib_var=yes"
13251else
13252 echo "configure: failed program was:" >&5
13253 cat conftest.$ac_ext >&5
13254 rm -rf conftest*
13255 eval "ac_cv_lib_$ac_lib_var=no"
3a922bb4 13256fi
90dd450c
VZ
13257rm -f conftest*
13258LIBS="$ac_save_LIBS"
f6bcfd97 13259
90dd450c
VZ
13260fi
13261if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13262 echo "$ac_t""yes" 1>&6
13263 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
13264else
13265 echo "$ac_t""no" 1>&6
13266fi
f6bcfd97 13267
6fa882bd
RR
13268 fi
13269
90dd450c
VZ
13270 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
13271 echo $ac_n "checking for shmat""... $ac_c" 1>&6
21d1c967 13272echo "configure:13273: checking for shmat" >&5
90dd450c
VZ
13273if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
13274 echo $ac_n "(cached) $ac_c" 1>&6
13275else
13276 cat > conftest.$ac_ext <<EOF
21d1c967 13277#line 13278 "configure"
90dd450c
VZ
13278#include "confdefs.h"
13279/* System header to define __stub macros and hopefully few prototypes,
13280 which can conflict with char shmat(); below. */
13281#include <assert.h>
13282/* Override any gcc2 internal prototype to avoid an error. */
13283/* We use char because int might match the return type of a gcc2
13284 builtin and then its argument prototype would still apply. */
13285char shmat();
698dcdb6 13286
90dd450c 13287int main() {
3a922bb4 13288
90dd450c
VZ
13289/* The GNU C library defines this for functions which it implements
13290 to always fail with ENOSYS. Some functions are actually named
13291 something starting with __ and the normal name is an alias. */
13292#if defined (__stub_shmat) || defined (__stub___shmat)
13293choke me
13294#else
13295shmat();
13296#endif
10f2d63a 13297
90dd450c
VZ
13298; return 0; }
13299EOF
21d1c967 13300if { (eval echo configure:13301: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
90dd450c
VZ
13301 rm -rf conftest*
13302 eval "ac_cv_func_shmat=yes"
d08b457b 13303else
90dd450c
VZ
13304 echo "configure: failed program was:" >&5
13305 cat conftest.$ac_ext >&5
13306 rm -rf conftest*
13307 eval "ac_cv_func_shmat=no"
d08b457b 13308fi
90dd450c 13309rm -f conftest*
d08b457b 13310fi
90dd450c
VZ
13311
13312if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
13313 echo "$ac_t""yes" 1>&6
13314 :
d08b457b
GD
13315else
13316 echo "$ac_t""no" 1>&6
13317fi
13318
90dd450c
VZ
13319 if test $ac_cv_func_shmat = no; then
13320 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
21d1c967 13321echo "configure:13322: checking for shmat in -lipc" >&5
90dd450c
VZ
13322ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
13323if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
d08b457b
GD
13324 echo $ac_n "(cached) $ac_c" 1>&6
13325else
90dd450c
VZ
13326 ac_save_LIBS="$LIBS"
13327LIBS="-lipc $LIBS"
13328cat > conftest.$ac_ext <<EOF
21d1c967 13329#line 13330 "configure"
90dd450c
VZ
13330#include "confdefs.h"
13331/* Override any gcc2 internal prototype to avoid an error. */
13332/* We use char because int might match the return type of a gcc2
13333 builtin and then its argument prototype would still apply. */
13334char shmat();
13335
13336int main() {
13337shmat()
13338; return 0; }
13339EOF
21d1c967 13340if { (eval echo configure:13341: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
90dd450c
VZ
13341 rm -rf conftest*
13342 eval "ac_cv_lib_$ac_lib_var=yes"
d08b457b 13343else
90dd450c
VZ
13344 echo "configure: failed program was:" >&5
13345 cat conftest.$ac_ext >&5
13346 rm -rf conftest*
13347 eval "ac_cv_lib_$ac_lib_var=no"
d08b457b 13348fi
90dd450c
VZ
13349rm -f conftest*
13350LIBS="$ac_save_LIBS"
13351
d08b457b 13352fi
90dd450c
VZ
13353if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13354 echo "$ac_t""yes" 1>&6
13355 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
d08b457b
GD
13356else
13357 echo "$ac_t""no" 1>&6
13358fi
13359
d558c907 13360 fi
90dd450c 13361 fi
3a922bb4 13362
90dd450c
VZ
13363 # Check for libraries that X11R6 Xt/Xaw programs need.
13364 ac_save_LDFLAGS="$LDFLAGS"
13365 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
13366 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
13367 # check for ICE first), but we must link in the order -lSM -lICE or
13368 # we get undefined symbols. So assume we have SM if we have ICE.
13369 # These have to be linked with before -lX11, unlike the other
13370 # libraries we check for below, so use a different variable.
13371 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
13372 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
21d1c967 13373echo "configure:13374: checking for IceConnectionNumber in -lICE" >&5
90dd450c
VZ
13374ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
13375if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
698dcdb6
VZ
13376 echo $ac_n "(cached) $ac_c" 1>&6
13377else
90dd450c
VZ
13378 ac_save_LIBS="$LIBS"
13379LIBS="-lICE $X_EXTRA_LIBS $LIBS"
13380cat > conftest.$ac_ext <<EOF
21d1c967 13381#line 13382 "configure"
9cfadba2 13382#include "confdefs.h"
90dd450c
VZ
13383/* Override any gcc2 internal prototype to avoid an error. */
13384/* We use char because int might match the return type of a gcc2
13385 builtin and then its argument prototype would still apply. */
13386char IceConnectionNumber();
13387
13388int main() {
13389IceConnectionNumber()
13390; return 0; }
698dcdb6 13391EOF
21d1c967 13392if { (eval echo configure:13393: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 13393 rm -rf conftest*
90dd450c 13394 eval "ac_cv_lib_$ac_lib_var=yes"
6232543b 13395else
698dcdb6 13396 echo "configure: failed program was:" >&5
9cfadba2 13397 cat conftest.$ac_ext >&5
698dcdb6 13398 rm -rf conftest*
90dd450c 13399 eval "ac_cv_lib_$ac_lib_var=no"
9cfadba2 13400fi
698dcdb6 13401rm -f conftest*
90dd450c
VZ
13402LIBS="$ac_save_LIBS"
13403
9cfadba2 13404fi
90dd450c 13405if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
698dcdb6 13406 echo "$ac_t""yes" 1>&6
90dd450c 13407 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
698dcdb6
VZ
13408else
13409 echo "$ac_t""no" 1>&6
9cfadba2 13410fi
10f2d63a 13411
90dd450c
VZ
13412 LDFLAGS="$ac_save_LDFLAGS"
13413
13414fi
13415
13416
13417 if test "$no_x" = "yes"; then
13418 { echo "configure: error: X11 not found" 1>&2; exit 1; }
13419 fi
13420
13421 GUI_TK_LIBRARY="$X_LIBS"
13422 TOOLKIT_INCLUDE="$X_CFLAGS"
13423 AFMINSTALL=afminstall
13424 COMPILED_X_PROGRAM=0
13425
21d1c967
GD
13426 if test "$wxUSE_NANOX" = "yes"; then
13427 echo $ac_n "checking for MicroWindows/NanoX distribution""... $ac_c" 1>&6
13428echo "configure:13429: checking for MicroWindows/NanoX distribution" >&5
13429 if test "x$MICROWIN" = x ; then
13430 echo "$ac_t""not found" 1>&6
13431 { echo "configure: error: Cannot find MicroWindows library. Make sure MICROWIN is set." 1>&2; exit 1; }
90dd450c 13432 else
21d1c967
GD
13433 echo "$ac_t""$MICROWIN" 1>&6
13434 cat >> confdefs.h <<\EOF
13435#define wxUSE_NANOX 1
698dcdb6 13436EOF
21d1c967 13437
90dd450c
VZ
13438 fi
13439 fi
13440
13441 xpm_link=
13442 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
21d1c967 13443echo "configure:13444: checking for Xpm library" >&5
90dd450c
VZ
13444
13445ac_find_libraries=
13446for ac_dir in $SEARCH_LIB;
13447 do
13448 for ac_extension in a so sl dylib; do
13449 if test -f "$ac_dir/libXpm.$ac_extension"; then
13450 ac_find_libraries=$ac_dir
13451 break 2
13452 fi
13453 done
13454 done
13455
13456 if test "$ac_find_libraries" != "" ; then
13457
13458 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
13459 result=$?
13460 if test $result = 0; then
13461 ac_path_to_link=""
13462 else
13463 ac_path_to_link=" -L$ac_find_libraries"
21d1c967 13464 fi
90dd450c 13465
21d1c967
GD
13466 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
13467 xpm_link=" -lXpm"
13468 cat >> confdefs.h <<\EOF
13469#define wxHAVE_LIB_XPM 1
13470EOF
90dd450c 13471
21d1c967
GD
13472 echo "$ac_t""found at $ac_find_libraries" 1>&6
13473 else
13474 cat > conftest.$ac_ext <<EOF
13475#line 13476 "configure"
13476#include "confdefs.h"
90dd450c 13477
21d1c967
GD
13478 #include <X11/xpm.h>
13479
13480int main() {
6f72b082 13481
21d1c967
GD
13482 int version;
13483 version = XpmLibraryVersion();
13484
13485; return 0; }
13486EOF
13487if { (eval echo configure:13488: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13488 rm -rf conftest*
13489
13490 xpm_link=" -lXpm"
13491 cat >> confdefs.h <<\EOF
13492#define wxHAVE_LIB_XPM 1
13493EOF
90dd450c 13494
21d1c967
GD
13495 echo "$ac_t""found in default search path" 1>&6
13496 COMPILED_X_PROGRAM=0
13497
13498else
13499 echo "configure: failed program was:" >&5
13500 cat conftest.$ac_ext >&5
13501 rm -rf conftest*
13502
13503 echo "$ac_t""no" 1>&6
13504 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
13505
13506
6f72b082 13507fi
21d1c967
GD
13508rm -f conftest*
13509 fi
90dd450c 13510
21d1c967
GD
13511 if test "$wxUSE_NANOX" = "yes"; then
13512 TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
13513 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__NANOX__ -DMWPIXEL_FORMAT=MWPF_TRUECOLOR0888 -DHAVE_FILEIO -DHAVE_BMP_SUPPORT=1 -DHAVE_GIF_SUPPORT=1 -DHAVE_PNM_SUPPORT=1 -DHAVE_XPM_SUPPORT=1 -DLINUX=1 -DUNIX=1 -DUSE_EXPOSURE -DSCREEN_HEIGHT=480 -DSCREEN_WIDTH=640 -DSCREEN_DEPTH=4 -DX11=1"
13514 GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
13515 else
13516 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11$xpm_link"
13517 fi
6f72b082 13518
21d1c967
GD
13519 TOOLKIT_VPATH="\${top_srcdir}/src/x11"
13520 TOOLKIT=X11
13521 GUIDIST=X11_DIST
13522 fi
90dd450c 13523
21d1c967
GD
13524 if test "$wxUSE_WINE" = 1; then
13525 ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'`
13526echo $ac_n "checking for windows.h""... $ac_c" 1>&6
13527echo "configure:13528: checking for windows.h" >&5
698dcdb6
VZ
13528if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13529 echo $ac_n "(cached) $ac_c" 1>&6
13530else
13531 cat > conftest.$ac_ext <<EOF
21d1c967 13532#line 13533 "configure"
6f72b082 13533#include "confdefs.h"
21d1c967 13534#include <windows.h>
698dcdb6
VZ
13535EOF
13536ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
21d1c967 13537{ (eval echo configure:13538: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
13538ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13539if test -z "$ac_err"; then
13540 rm -rf conftest*
13541 eval "ac_cv_header_$ac_safe=yes"
10f2d63a 13542else
698dcdb6
VZ
13543 echo "$ac_err" >&5
13544 echo "configure: failed program was:" >&5
10f2d63a 13545 cat conftest.$ac_ext >&5
698dcdb6
VZ
13546 rm -rf conftest*
13547 eval "ac_cv_header_$ac_safe=no"
10f2d63a 13548fi
698dcdb6 13549rm -f conftest*
10f2d63a 13550fi
698dcdb6
VZ
13551if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13552 echo "$ac_t""yes" 1>&6
21d1c967
GD
13553 :
13554else
13555 echo "$ac_t""no" 1>&6
13556
13557 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
13558
13559fi
13560
13561
13562 xpm_link=
13563 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
13564echo "configure:13565: checking for Xpm library" >&5
13565
90dd450c
VZ
13566ac_find_libraries=
13567for ac_dir in $SEARCH_LIB;
13568 do
13569 for ac_extension in a so sl dylib; do
21d1c967 13570 if test -f "$ac_dir/libXpm.$ac_extension"; then
90dd450c
VZ
13571 ac_find_libraries=$ac_dir
13572 break 2
13573 fi
13574 done
13575 done
13576
21d1c967
GD
13577 if test "$ac_find_libraries" != "" ; then
13578 GUI_TK_LIBRARY="-L$ac_find_libraries"
13579 xpm_link=" -lXpm"
13580 cat >> confdefs.h <<\EOF
13581#define wxHAVE_LIB_XPM 1
13582EOF
90dd450c 13583
21d1c967
GD
13584 echo "$ac_t""found at $ac_find_libraries" 1>&6
13585 else
13586 echo "$ac_t""no" 1>&6
13587 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
13588 fi
13589
13590 mesa_link=
13591 echo $ac_n "checking for Mesa library""... $ac_c" 1>&6
13592echo "configure:13593: checking for Mesa library" >&5
13593
90dd450c
VZ
13594ac_find_libraries=
13595for ac_dir in $SEARCH_LIB;
13596 do
13597 for ac_extension in a so sl dylib; do
13598 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
13599 ac_find_libraries=$ac_dir
13600 break 2
13601 fi
13602 done
13603 done
13604
21d1c967
GD
13605 if test "$ac_find_libraries" != "" ; then
13606 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -L$ac_find_libraries"
13607 mesa_link=" -lMesaGL"
13608 echo "$ac_t""found at $ac_find_libraries" 1>&6
13609 else
13610 { echo "configure: error: no" 1>&2; exit 1; }
13611 fi
13612
13613 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lwine$mesa_link$xpm_link -lXxf86dga -lXxf86vm -lSM -lICE -lXext -lXmu -lX11 -lncurses"
13614 TOOLKIT=MSW
13615 GUIDIST=MSW_DIST
13616 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXWINE__"
13617 fi
13618
13619 if test "$wxUSE_MOTIF" = 1; then
13620 if test "$no_x" = yes; then
13621 # Not all programs may use this symbol, but it does not hurt to define it.
13622 cat >> confdefs.h <<\EOF
13623#define X_DISPLAY_MISSING 1
13624EOF
13625
13626 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
13627else
13628 if test -n "$x_includes"; then
13629 X_CFLAGS="$X_CFLAGS -I$x_includes"
90dd450c
VZ
13630 fi
13631
21d1c967
GD
13632 # It would also be nice to do this for all -L options, not just this one.
13633 if test -n "$x_libraries"; then
13634 X_LIBS="$X_LIBS -L$x_libraries"
13635 # For Solaris; some versions of Sun CC require a space after -R and
13636 # others require no space. Words are not sufficient . . . .
13637 case "`(uname -sr) 2>/dev/null`" in
13638 "SunOS 5"*)
13639 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
13640echo "configure:13641: checking whether -R must be followed by a space" >&5
13641 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
13642 cat > conftest.$ac_ext <<EOF
13643#line 13644 "configure"
13644#include "confdefs.h"
13645
13646int main() {
13647
13648; return 0; }
13649EOF
13650if { (eval echo configure:13651: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13651 rm -rf conftest*
13652 ac_R_nospace=yes
698dcdb6 13653else
21d1c967
GD
13654 echo "configure: failed program was:" >&5
13655 cat conftest.$ac_ext >&5
13656 rm -rf conftest*
13657 ac_R_nospace=no
10f2d63a 13658fi
21d1c967
GD
13659rm -f conftest*
13660 if test $ac_R_nospace = yes; then
13661 echo "$ac_t""no" 1>&6
13662 X_LIBS="$X_LIBS -R$x_libraries"
13663 else
13664 LIBS="$ac_xsave_LIBS -R $x_libraries"
13665 cat > conftest.$ac_ext <<EOF
13666#line 13667 "configure"
13667#include "confdefs.h"
10f2d63a 13668
21d1c967 13669int main() {
f0c87536 13670
21d1c967 13671; return 0; }
698dcdb6 13672EOF
21d1c967
GD
13673if { (eval echo configure:13674: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13674 rm -rf conftest*
13675 ac_R_space=yes
13676else
13677 echo "configure: failed program was:" >&5
13678 cat conftest.$ac_ext >&5
13679 rm -rf conftest*
13680 ac_R_space=no
13681fi
13682rm -f conftest*
13683 if test $ac_R_space = yes; then
13684 echo "$ac_t""yes" 1>&6
13685 X_LIBS="$X_LIBS -R $x_libraries"
13686 else
13687 echo "$ac_t""neither works" 1>&6
13688 fi
13689 fi
13690 LIBS="$ac_xsave_LIBS"
13691 esac
13692 fi
90dd450c 13693
21d1c967
GD
13694 # Check for system-dependent libraries X programs must link with.
13695 # Do this before checking for the system-independent R6 libraries
13696 # (-lICE), since we may need -lsocket or whatever for X linking.
13697
13698 if test "$ISC" = yes; then
13699 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
13700 else
13701 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
13702 # libraries were built with DECnet support. And karl@cs.umb.edu says
13703 # the Alpha needs dnet_stub (dnet does not exist).
13704 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
13705echo "configure:13706: checking for dnet_ntoa in -ldnet" >&5
13706ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
13707if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13708 echo $ac_n "(cached) $ac_c" 1>&6
13709else
13710 ac_save_LIBS="$LIBS"
13711LIBS="-ldnet $LIBS"
13712cat > conftest.$ac_ext <<EOF
13713#line 13714 "configure"
13714#include "confdefs.h"
13715/* Override any gcc2 internal prototype to avoid an error. */
13716/* We use char because int might match the return type of a gcc2
13717 builtin and then its argument prototype would still apply. */
13718char dnet_ntoa();
13719
13720int main() {
13721dnet_ntoa()
13722; return 0; }
90dd450c 13723EOF
21d1c967
GD
13724if { (eval echo configure:13725: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13725 rm -rf conftest*
13726 eval "ac_cv_lib_$ac_lib_var=yes"
13727else
13728 echo "configure: failed program was:" >&5
13729 cat conftest.$ac_ext >&5
13730 rm -rf conftest*
13731 eval "ac_cv_lib_$ac_lib_var=no"
0fb0dd83 13732fi
21d1c967
GD
13733rm -f conftest*
13734LIBS="$ac_save_LIBS"
90dd450c 13735
0fb0dd83 13736fi
21d1c967
GD
13737if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13738 echo "$ac_t""yes" 1>&6
13739 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
13740else
13741 echo "$ac_t""no" 1>&6
0fb0dd83 13742fi
0fb0dd83 13743
21d1c967
GD
13744 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
13745 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
13746echo "configure:13747: checking for dnet_ntoa in -ldnet_stub" >&5
13747ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
13748if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13749 echo $ac_n "(cached) $ac_c" 1>&6
13750else
13751 ac_save_LIBS="$LIBS"
13752LIBS="-ldnet_stub $LIBS"
13753cat > conftest.$ac_ext <<EOF
13754#line 13755 "configure"
13755#include "confdefs.h"
13756/* Override any gcc2 internal prototype to avoid an error. */
13757/* We use char because int might match the return type of a gcc2
13758 builtin and then its argument prototype would still apply. */
13759char dnet_ntoa();
90dd450c 13760
21d1c967
GD
13761int main() {
13762dnet_ntoa()
13763; return 0; }
13764EOF
13765if { (eval echo configure:13766: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13766 rm -rf conftest*
13767 eval "ac_cv_lib_$ac_lib_var=yes"
13768else
13769 echo "configure: failed program was:" >&5
13770 cat conftest.$ac_ext >&5
13771 rm -rf conftest*
13772 eval "ac_cv_lib_$ac_lib_var=no"
90dd450c 13773fi
21d1c967
GD
13774rm -f conftest*
13775LIBS="$ac_save_LIBS"
90dd450c 13776
21d1c967
GD
13777fi
13778if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13779 echo "$ac_t""yes" 1>&6
13780 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
13781else
13782 echo "$ac_t""no" 1>&6
90dd450c
VZ
13783fi
13784
21d1c967 13785 fi
90dd450c 13786
21d1c967
GD
13787 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
13788 # to get the SysV transport functions.
13789 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
13790 # needs -lnsl.
13791 # The nsl library prevents programs from opening the X display
13792 # on Irix 5.2, according to dickey@clark.net.
13793 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
13794echo "configure:13795: checking for gethostbyname" >&5
13795if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
13796 echo $ac_n "(cached) $ac_c" 1>&6
13797else
13798 cat > conftest.$ac_ext <<EOF
13799#line 13800 "configure"
13800#include "confdefs.h"
13801/* System header to define __stub macros and hopefully few prototypes,
13802 which can conflict with char gethostbyname(); below. */
13803#include <assert.h>
13804/* Override any gcc2 internal prototype to avoid an error. */
13805/* We use char because int might match the return type of a gcc2
13806 builtin and then its argument prototype would still apply. */
13807char gethostbyname();
90dd450c 13808
21d1c967 13809int main() {
90dd450c 13810
21d1c967
GD
13811/* The GNU C library defines this for functions which it implements
13812 to always fail with ENOSYS. Some functions are actually named
13813 something starting with __ and the normal name is an alias. */
13814#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
13815choke me
13816#else
13817gethostbyname();
13818#endif
90dd450c 13819
21d1c967
GD
13820; return 0; }
13821EOF
13822if { (eval echo configure:13823: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13823 rm -rf conftest*
13824 eval "ac_cv_func_gethostbyname=yes"
13825else
13826 echo "configure: failed program was:" >&5
13827 cat conftest.$ac_ext >&5
13828 rm -rf conftest*
13829 eval "ac_cv_func_gethostbyname=no"
13830fi
13831rm -f conftest*
90dd450c
VZ
13832fi
13833
21d1c967
GD
13834if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
13835 echo "$ac_t""yes" 1>&6
13836 :
13837else
13838 echo "$ac_t""no" 1>&6
13839fi
90dd450c 13840
21d1c967
GD
13841 if test $ac_cv_func_gethostbyname = no; then
13842 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
13843echo "configure:13844: checking for gethostbyname in -lnsl" >&5
13844ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
13845if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13846 echo $ac_n "(cached) $ac_c" 1>&6
13847else
13848 ac_save_LIBS="$LIBS"
13849LIBS="-lnsl $LIBS"
13850cat > conftest.$ac_ext <<EOF
13851#line 13852 "configure"
13852#include "confdefs.h"
13853/* Override any gcc2 internal prototype to avoid an error. */
13854/* We use char because int might match the return type of a gcc2
13855 builtin and then its argument prototype would still apply. */
13856char gethostbyname();
90dd450c 13857
21d1c967
GD
13858int main() {
13859gethostbyname()
13860; return 0; }
13861EOF
13862if { (eval echo configure:13863: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13863 rm -rf conftest*
13864 eval "ac_cv_lib_$ac_lib_var=yes"
13865else
13866 echo "configure: failed program was:" >&5
13867 cat conftest.$ac_ext >&5
13868 rm -rf conftest*
13869 eval "ac_cv_lib_$ac_lib_var=no"
1f8ae82f 13870fi
21d1c967
GD
13871rm -f conftest*
13872LIBS="$ac_save_LIBS"
f0c87536 13873
21d1c967
GD
13874fi
13875if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13876 echo "$ac_t""yes" 1>&6
13877 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
13878else
13879 echo "$ac_t""no" 1>&6
13880fi
90dd450c 13881
90dd450c
VZ
13882 fi
13883
21d1c967
GD
13884 # lieder@skyler.mavd.honeywell.com says without -lsocket,
13885 # socket/setsockopt and other routines are undefined under SCO ODT
13886 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
13887 # on later versions), says simon@lia.di.epfl.ch: it contains
13888 # gethostby* variants that don't use the nameserver (or something).
13889 # -lsocket must be given before -lnsl if both are needed.
13890 # We assume that if connect needs -lnsl, so does gethostbyname.
13891 echo $ac_n "checking for connect""... $ac_c" 1>&6
13892echo "configure:13893: checking for connect" >&5
13893if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
13894 echo $ac_n "(cached) $ac_c" 1>&6
13895else
13896 cat > conftest.$ac_ext <<EOF
13897#line 13898 "configure"
13898#include "confdefs.h"
13899/* System header to define __stub macros and hopefully few prototypes,
13900 which can conflict with char connect(); below. */
13901#include <assert.h>
13902/* Override any gcc2 internal prototype to avoid an error. */
13903/* We use char because int might match the return type of a gcc2
13904 builtin and then its argument prototype would still apply. */
13905char connect();
90dd450c 13906
21d1c967 13907int main() {
90dd450c 13908
21d1c967
GD
13909/* The GNU C library defines this for functions which it implements
13910 to always fail with ENOSYS. Some functions are actually named
13911 something starting with __ and the normal name is an alias. */
13912#if defined (__stub_connect) || defined (__stub___connect)
13913choke me
13914#else
13915connect();
13916#endif
90dd450c 13917
21d1c967
GD
13918; return 0; }
13919EOF
13920if { (eval echo configure:13921: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13921 rm -rf conftest*
13922 eval "ac_cv_func_connect=yes"
13923else
13924 echo "configure: failed program was:" >&5
13925 cat conftest.$ac_ext >&5
13926 rm -rf conftest*
13927 eval "ac_cv_func_connect=no"
13928fi
13929rm -f conftest*
13930fi
90dd450c 13931
21d1c967
GD
13932if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
13933 echo "$ac_t""yes" 1>&6
13934 :
13935else
13936 echo "$ac_t""no" 1>&6
13937fi
1f8ae82f 13938
21d1c967
GD
13939 if test $ac_cv_func_connect = no; then
13940 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
13941echo "configure:13942: checking for connect in -lsocket" >&5
13942ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
13943if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
0fbb762e
MB
13944 echo $ac_n "(cached) $ac_c" 1>&6
13945else
21d1c967
GD
13946 ac_save_LIBS="$LIBS"
13947LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
13948cat > conftest.$ac_ext <<EOF
13949#line 13950 "configure"
0fbb762e 13950#include "confdefs.h"
21d1c967
GD
13951/* Override any gcc2 internal prototype to avoid an error. */
13952/* We use char because int might match the return type of a gcc2
13953 builtin and then its argument prototype would still apply. */
13954char connect();
90dd450c
VZ
13955
13956int main() {
21d1c967 13957connect()
90dd450c 13958; return 0; }
0fbb762e 13959EOF
21d1c967 13960if { (eval echo configure:13961: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
0fbb762e 13961 rm -rf conftest*
21d1c967 13962 eval "ac_cv_lib_$ac_lib_var=yes"
0fbb762e 13963else
0fbb762e
MB
13964 echo "configure: failed program was:" >&5
13965 cat conftest.$ac_ext >&5
13966 rm -rf conftest*
21d1c967 13967 eval "ac_cv_lib_$ac_lib_var=no"
0fbb762e
MB
13968fi
13969rm -f conftest*
21d1c967 13970LIBS="$ac_save_LIBS"
90dd450c 13971
21d1c967
GD
13972fi
13973if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13974 echo "$ac_t""yes" 1>&6
13975 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
13976else
13977 echo "$ac_t""no" 1>&6
13978fi
90dd450c 13979
21d1c967 13980 fi
90dd450c 13981
21d1c967
GD
13982 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
13983 echo $ac_n "checking for remove""... $ac_c" 1>&6
13984echo "configure:13985: checking for remove" >&5
13985if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
13986 echo $ac_n "(cached) $ac_c" 1>&6
13987else
13988 cat > conftest.$ac_ext <<EOF
13989#line 13990 "configure"
13990#include "confdefs.h"
13991/* System header to define __stub macros and hopefully few prototypes,
13992 which can conflict with char remove(); below. */
13993#include <assert.h>
13994/* Override any gcc2 internal prototype to avoid an error. */
13995/* We use char because int might match the return type of a gcc2
13996 builtin and then its argument prototype would still apply. */
13997char remove();
90dd450c 13998
21d1c967 13999int main() {
90dd450c 14000
21d1c967
GD
14001/* The GNU C library defines this for functions which it implements
14002 to always fail with ENOSYS. Some functions are actually named
14003 something starting with __ and the normal name is an alias. */
14004#if defined (__stub_remove) || defined (__stub___remove)
14005choke me
14006#else
14007remove();
14008#endif
90dd450c 14009
21d1c967
GD
14010; return 0; }
14011EOF
14012if { (eval echo configure:14013: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14013 rm -rf conftest*
14014 eval "ac_cv_func_remove=yes"
14015else
14016 echo "configure: failed program was:" >&5
14017 cat conftest.$ac_ext >&5
14018 rm -rf conftest*
14019 eval "ac_cv_func_remove=no"
14020fi
14021rm -f conftest*
14022fi
90dd450c 14023
21d1c967
GD
14024if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
14025 echo "$ac_t""yes" 1>&6
14026 :
14027else
14028 echo "$ac_t""no" 1>&6
14029fi
90dd450c 14030
21d1c967
GD
14031 if test $ac_cv_func_remove = no; then
14032 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
14033echo "configure:14034: checking for remove in -lposix" >&5
14034ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
14035if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14036 echo $ac_n "(cached) $ac_c" 1>&6
14037else
14038 ac_save_LIBS="$LIBS"
14039LIBS="-lposix $LIBS"
14040cat > conftest.$ac_ext <<EOF
14041#line 14042 "configure"
14042#include "confdefs.h"
14043/* Override any gcc2 internal prototype to avoid an error. */
14044/* We use char because int might match the return type of a gcc2
14045 builtin and then its argument prototype would still apply. */
14046char remove();
90dd450c 14047
21d1c967
GD
14048int main() {
14049remove()
14050; return 0; }
14051EOF
14052if { (eval echo configure:14053: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14053 rm -rf conftest*
14054 eval "ac_cv_lib_$ac_lib_var=yes"
14055else
14056 echo "configure: failed program was:" >&5
14057 cat conftest.$ac_ext >&5
14058 rm -rf conftest*
14059 eval "ac_cv_lib_$ac_lib_var=no"
0fbb762e 14060fi
21d1c967
GD
14061rm -f conftest*
14062LIBS="$ac_save_LIBS"
0fbb762e 14063
21d1c967
GD
14064fi
14065if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14066 echo "$ac_t""yes" 1>&6
14067 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
14068else
14069 echo "$ac_t""no" 1>&6
14070fi
19bc6aad 14071
90dd450c 14072 fi
19bc6aad 14073
21d1c967
GD
14074 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
14075 echo $ac_n "checking for shmat""... $ac_c" 1>&6
14076echo "configure:14077: checking for shmat" >&5
14077if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
14078 echo $ac_n "(cached) $ac_c" 1>&6
14079else
14080 cat > conftest.$ac_ext <<EOF
14081#line 14082 "configure"
14082#include "confdefs.h"
14083/* System header to define __stub macros and hopefully few prototypes,
14084 which can conflict with char shmat(); below. */
14085#include <assert.h>
14086/* Override any gcc2 internal prototype to avoid an error. */
14087/* We use char because int might match the return type of a gcc2
14088 builtin and then its argument prototype would still apply. */
14089char shmat();
19bc6aad 14090
21d1c967 14091int main() {
90dd450c 14092
21d1c967
GD
14093/* The GNU C library defines this for functions which it implements
14094 to always fail with ENOSYS. Some functions are actually named
14095 something starting with __ and the normal name is an alias. */
14096#if defined (__stub_shmat) || defined (__stub___shmat)
14097choke me
14098#else
14099shmat();
14100#endif
90dd450c 14101
21d1c967
GD
14102; return 0; }
14103EOF
14104if { (eval echo configure:14105: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14105 rm -rf conftest*
14106 eval "ac_cv_func_shmat=yes"
90dd450c 14107else
21d1c967
GD
14108 echo "configure: failed program was:" >&5
14109 cat conftest.$ac_ext >&5
14110 rm -rf conftest*
14111 eval "ac_cv_func_shmat=no"
19bc6aad 14112fi
21d1c967 14113rm -f conftest*
19bc6aad 14114fi
21d1c967
GD
14115
14116if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
14117 echo "$ac_t""yes" 1>&6
14118 :
19bc6aad
VZ
14119else
14120 echo "$ac_t""no" 1>&6
14121fi
19bc6aad 14122
21d1c967
GD
14123 if test $ac_cv_func_shmat = no; then
14124 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
14125echo "configure:14126: checking for shmat in -lipc" >&5
14126ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
14127if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9f8148b1
GD
14128 echo $ac_n "(cached) $ac_c" 1>&6
14129else
21d1c967
GD
14130 ac_save_LIBS="$LIBS"
14131LIBS="-lipc $LIBS"
14132cat > conftest.$ac_ext <<EOF
14133#line 14134 "configure"
14134#include "confdefs.h"
14135/* Override any gcc2 internal prototype to avoid an error. */
14136/* We use char because int might match the return type of a gcc2
14137 builtin and then its argument prototype would still apply. */
14138char shmat();
14139
14140int main() {
14141shmat()
14142; return 0; }
14143EOF
14144if { (eval echo configure:14145: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14145 rm -rf conftest*
14146 eval "ac_cv_lib_$ac_lib_var=yes"
9f8148b1 14147else
21d1c967
GD
14148 echo "configure: failed program was:" >&5
14149 cat conftest.$ac_ext >&5
14150 rm -rf conftest*
14151 eval "ac_cv_lib_$ac_lib_var=no"
9f8148b1 14152fi
21d1c967
GD
14153rm -f conftest*
14154LIBS="$ac_save_LIBS"
14155
9f8148b1 14156fi
21d1c967
GD
14157if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14158 echo "$ac_t""yes" 1>&6
14159 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
9f8148b1
GD
14160else
14161 echo "$ac_t""no" 1>&6
14162fi
90dd450c 14163
90dd450c 14164 fi
21d1c967 14165 fi
10f2d63a 14166
21d1c967
GD
14167 # Check for libraries that X11R6 Xt/Xaw programs need.
14168 ac_save_LDFLAGS="$LDFLAGS"
14169 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
14170 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
14171 # check for ICE first), but we must link in the order -lSM -lICE or
14172 # we get undefined symbols. So assume we have SM if we have ICE.
14173 # These have to be linked with before -lX11, unlike the other
14174 # libraries we check for below, so use a different variable.
14175 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
14176 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
14177echo "configure:14178: checking for IceConnectionNumber in -lICE" >&5
14178ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
14179if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
29fd3c0c
VS
14180 echo $ac_n "(cached) $ac_c" 1>&6
14181else
21d1c967
GD
14182 ac_save_LIBS="$LIBS"
14183LIBS="-lICE $X_EXTRA_LIBS $LIBS"
14184cat > conftest.$ac_ext <<EOF
14185#line 14186 "configure"
29fd3c0c 14186#include "confdefs.h"
21d1c967
GD
14187/* Override any gcc2 internal prototype to avoid an error. */
14188/* We use char because int might match the return type of a gcc2
14189 builtin and then its argument prototype would still apply. */
14190char IceConnectionNumber();
14191
14192int main() {
14193IceConnectionNumber()
14194; return 0; }
29fd3c0c 14195EOF
21d1c967 14196if { (eval echo configure:14197: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
29fd3c0c 14197 rm -rf conftest*
21d1c967 14198 eval "ac_cv_lib_$ac_lib_var=yes"
29fd3c0c 14199else
29fd3c0c
VS
14200 echo "configure: failed program was:" >&5
14201 cat conftest.$ac_ext >&5
14202 rm -rf conftest*
21d1c967 14203 eval "ac_cv_lib_$ac_lib_var=no"
29fd3c0c
VS
14204fi
14205rm -f conftest*
21d1c967
GD
14206LIBS="$ac_save_LIBS"
14207
29fd3c0c 14208fi
21d1c967 14209if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
29fd3c0c 14210 echo "$ac_t""yes" 1>&6
21d1c967 14211 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
29fd3c0c
VS
14212else
14213 echo "$ac_t""no" 1>&6
14214fi
21d1c967
GD
14215
14216 LDFLAGS="$ac_save_LDFLAGS"
29fd3c0c 14217
10f2d63a
VZ
14218fi
14219
21d1c967
GD
14220
14221 if test "$no_x" = "yes"; then
14222 { echo "configure: error: X11 not found" 1>&2; exit 1; }
14223 fi
14224
14225 GUI_TK_LIBRARY="$X_LIBS"
14226 TOOLKIT_INCLUDE="$X_CFLAGS"
14227 AFMINSTALL=afminstall
14228 COMPILED_X_PROGRAM=0
14229
14230 echo $ac_n "checking for Motif/Lesstif headers""... $ac_c" 1>&6
14231echo "configure:14232: checking for Motif/Lesstif headers" >&5
14232
14233ac_find_includes=
14234for ac_dir in $SEARCH_INCLUDE;
14235 do
14236 if test -f "$ac_dir/Xm/Xm.h"; then
14237 ac_find_includes=$ac_dir
14238 break
14239 fi
14240 done
14241
14242 if test "$ac_find_includes" != "" ; then
14243 echo "$ac_t""found $ac_find_includes" 1>&6
14244 else
14245 cat > conftest.$ac_ext <<EOF
14246#line 14247 "configure"
10f2d63a 14247#include "confdefs.h"
21d1c967
GD
14248
14249 #include <Xm/Xm.h>
14250
14251int main() {
14252
14253 int version;
14254 version = xmUseVersion;
14255
14256; return 0; }
698dcdb6 14257EOF
21d1c967 14258if { (eval echo configure:14259: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 14259 rm -rf conftest*
21d1c967
GD
14260
14261 echo "$ac_t""found in default search path" 1>&6
14262 COMPILED_X_PROGRAM=1
14263
10f2d63a 14264else
90dd450c
VZ
14265 echo "configure: failed program was:" >&5
14266 cat conftest.$ac_ext >&5
698dcdb6 14267 rm -rf conftest*
21d1c967
GD
14268
14269 echo "$ac_t""no" 1>&6
14270 { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; }
14271
14272
10f2d63a
VZ
14273fi
14274rm -f conftest*
21d1c967 14275 fi
10f2d63a 14276
21d1c967
GD
14277 if test "$COMPILED_X_PROGRAM" = 0; then
14278 echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6
14279echo "configure:14280: checking for Motif/Lesstif library" >&5
14280
14281ac_find_libraries=
14282for ac_dir in $SEARCH_LIB;
14283 do
14284 for ac_extension in a so sl dylib; do
14285 if test -f "$ac_dir/libXm.$ac_extension"; then
14286 ac_find_libraries=$ac_dir
14287 break 2
14288 fi
14289 done
14290 done
14291
14292 if test "$ac_find_libraries" != "" ; then
14293
14294 ac_path_to_include=$ac_find_includes
14295 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
14296 result=$?
14297 if test $result = 0; then
14298 ac_path_to_include=""
14299 else
14300 ac_path_to_include=" -I$ac_find_includes"
14301 fi
14302
14303
14304 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
14305 result=$?
14306 if test $result = 0; then
14307 ac_path_to_link=""
14308 else
14309 ac_path_to_link=" -L$ac_find_libraries"
14310 fi
14311
14312
14313 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
14314 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
14315 echo "$ac_t""found at $ac_find_libraries" 1>&6
14316 else
14317 cat > conftest.$ac_ext <<EOF
14318#line 14319 "configure"
d836ee96 14319#include "confdefs.h"
21d1c967
GD
14320
14321 #include <Xm/Xm.h>
14322
14323int main() {
14324
14325 int version;
14326 version = xmUseVersion;
14327
14328; return 0; }
d836ee96 14329EOF
21d1c967 14330if { (eval echo configure:14331: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d836ee96 14331 rm -rf conftest*
21d1c967
GD
14332
14333 echo "$ac_t""found in default search path" 1>&6
14334 COMPILED_X_PROGRAM=1
14335
d836ee96
VZ
14336else
14337 echo "configure: failed program was:" >&5
14338 cat conftest.$ac_ext >&5
14339 rm -rf conftest*
21d1c967
GD
14340
14341 echo "$ac_t""no" 1>&6
14342 { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; }
14343
14344
d836ee96
VZ
14345fi
14346rm -f conftest*
21d1c967
GD
14347 fi
14348 fi
14349
14350 xpm_link=
14351 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
14352echo "configure:14353: checking for Xpm library" >&5
14353
14354ac_find_libraries=
14355for ac_dir in $SEARCH_LIB;
14356 do
14357 for ac_extension in a so sl dylib; do
14358 if test -f "$ac_dir/libXpm.$ac_extension"; then
14359 ac_find_libraries=$ac_dir
14360 break 2
14361 fi
14362 done
14363 done
14364
14365 if test "$ac_find_libraries" != "" ; then
14366
14367 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
14368 result=$?
14369 if test $result = 0; then
14370 ac_path_to_link=""
14371 else
14372 ac_path_to_link=" -L$ac_find_libraries"
14373 fi
14374
14375 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
14376 xpm_link=" -lXpm"
14377 cat >> confdefs.h <<\EOF
14378#define wxHAVE_LIB_XPM 1
d836ee96 14379EOF
90dd450c 14380
21d1c967
GD
14381 echo "$ac_t""found at $ac_find_libraries" 1>&6
14382 else
14383 cat > conftest.$ac_ext <<EOF
14384#line 14385 "configure"
d836ee96 14385#include "confdefs.h"
21d1c967
GD
14386
14387 #include <X11/xpm.h>
14388
14389int main() {
14390
14391 int version;
14392 version = XpmLibraryVersion();
14393
14394; return 0; }
d836ee96 14395EOF
21d1c967 14396if { (eval echo configure:14397: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d836ee96 14397 rm -rf conftest*
21d1c967
GD
14398
14399 xpm_link=" -lXpm"
14400 cat >> confdefs.h <<\EOF
14401#define wxHAVE_LIB_XPM 1
14402EOF
14403
14404 echo "$ac_t""found in default search path" 1>&6
14405 COMPILED_X_PROGRAM=0
14406
d836ee96
VZ
14407else
14408 echo "configure: failed program was:" >&5
14409 cat conftest.$ac_ext >&5
14410 rm -rf conftest*
21d1c967
GD
14411
14412 echo "$ac_t""no" 1>&6
14413 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
14414
14415
d836ee96
VZ
14416fi
14417rm -f conftest*
21d1c967
GD
14418 fi
14419
14420 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm$xpm_link -lXmu -lXext -lXt -lX11"
14421 TOOLKIT_VPATH="\${top_srcdir}/src/motif${PATH_IFS}\${top_srcdir}/src/motif/xmcombo"
14422 TOOLKIT=MOTIF
14423 GUIDIST=MOTIF_DIST
14424 fi
14425
14426 if test "$wxUSE_MAC" = 1; then
14427 if test "$wxUSE_PRECOMP" = "yes"; then
14428 CPPFLAGS="$CPPFLAGS -cpp-precomp"
14429 else
14430 CPPFLAGS="$CPPFLAGS -no-cpp-precomp"
14431 fi
14432 CPPFLAGS="$CPPFLAGS -I/Developer/Headers/FlatCarbon -I\${top_srcdir}/src/mac/morefile"
14433 CFLAGS="$CFLAGS -fpascal-strings"
14434 CXXFLAGS="$CXXFLAGS -fpascal-strings"
14435
14436 TOOLKIT_VPATH="\${top_srcdir}/src/mac${PATH_IFS}\${top_srcdir}/src/mac/morefile"
14437 TOOLKIT=MAC
14438 GUIDIST=MACX_DIST
14439 fi
14440
14441 if test "$wxUSE_PM" = 1; then
14442 TOOLKIT=PM
14443 GUIDIST=GTK_DIST
14444 fi
14445
14446 if test "$TOOLKIT" = "PM" ; then
14447 TOOLKIT_DIR="os2"
14448 else
14449 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
14450 fi
14451
14452 PORT_FILES="\${top_srcdir}/src/\$(TOOLKITDIR)/files.lst"
14453
14454 if test "$wxUSE_UNIVERSAL" = "yes"; then
14455 ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}"
14456
14457 ALL_SOURCES="\$(ALL_SOURCES) \${UNIV_SOURCES}"
14458 ALL_HEADERS="\$(ALL_HEADERS) \${UNIV_HEADERS}"
14459
14460 PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst"
14461 if test "$wxUSE_X11" = 1; then
14462 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}${PATH_IFS}\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes"
14463 else
14464 TOOLKIT_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes${PATH_IFS}\${top_srcdir}/src/${TOOLKIT_DIR}"
14465 fi
14466 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
14467 WIDGET_SET=univ
14468 else
14469 ALL_OBJECTS="\$(GUIOBJS)"
14470 ALL_SOURCES="\$(ALL_SOURCES)"
14471 ALL_HEADERS="\$(ALL_HEADERS)"
14472 fi
14473
14474 ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)"
14475
14476 if test "$TOOLKIT" != "MSW" -a "$USE_DOS" != 1; then
14477 ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)"
14478 fi
14479
14480 if test "$wxUSE_HTML" = "yes"; then
14481 ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)"
14482 fi
14483
14484 if test "$wxUSE_LIBJPEG" = "builtin" ; then
14485 ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)"
14486 fi
14487 if test "$wxUSE_LIBTIFF" = "builtin" ; then
14488 ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)"
14489 fi
14490 if test "$wxUSE_LIBPNG" = "builtin" ; then
14491 ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)"
14492 fi
14493
14494 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
14495 DISTDIR="wx\$(TOOLKIT)"
90dd450c 14496else
21d1c967
GD
14497 USE_GUI=0
14498
14499 TOOLKIT_DIR="base"
14500
14501 if test "$USE_WIN32" = 1 ; then
14502 ALL_OBJECTS="\${BASE_OBJS} \${BASE_MSW_OBJS}"
14503 TOOLKIT_VPATH="\${top_srcdir}/src/msw"
14504
14505 TOOLKIT="MSW"
14506 else
14507 ALL_OBJECTS="\${BASE_OBJS} \${BASE_UNIX_OBJS}"
14508 TOOLKIT_VPATH="\${top_srcdir}/src/unix"
14509 fi
14510
14511 ALL_SOURCES="\$(ALL_SOURCES)"
14512 ALL_HEADERS="\$(ALL_HEADERS)"
14513
14514 PORT_FILES="\${top_srcdir}/src/files.lst"
14515
14516 GUIDIST="BASE_DIST"
14517 DISTDIR="wxBase"
d836ee96
VZ
14518fi
14519
21d1c967
GD
14520
14521if test "$TOOLKIT" != "MSW" -a "$wxUSE_ODBC" = "yes" ; then
14522 ALL_OBJECTS="${ALL_OBJECTS} \$(IODBCOBJS)"
6232543b 14523fi
21d1c967
GD
14524
14525if test "$wxUSE_REGEX" = "builtin" ; then
14526 ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)"
1e487827 14527fi
21d1c967
GD
14528if test "$wxUSE_ZLIB" = "builtin" ; then
14529 ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
bd3277fe
VZ
14530fi
14531
698dcdb6 14532
21d1c967
GD
14533if test "$wxUSE_OPENGL" = "yes"; then
14534 if test "$wxUSE_MAC" = 1; then
14535 OPENGL_LIBS="-framework OpenGL -framework AGL"
14536 elif test "$wxUSE_MSW" = 1; then
14537 OPENGL_LIBS="-lopengl32 -lglu32"
14538 else
14539 ac_safe=`echo "GL/gl.h" | sed 'y%./+-%__p_%'`
14540echo $ac_n "checking for GL/gl.h""... $ac_c" 1>&6
14541echo "configure:14542: checking for GL/gl.h" >&5
90dd450c 14542if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
698dcdb6 14543 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 14544else
698dcdb6 14545 cat > conftest.$ac_ext <<EOF
21d1c967 14546#line 14547 "configure"
10f2d63a 14547#include "confdefs.h"
21d1c967 14548#include <GL/gl.h>
698dcdb6 14549EOF
90dd450c 14550ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
21d1c967 14551{ (eval echo configure:14552: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
90dd450c
VZ
14552ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14553if test -z "$ac_err"; then
4f14bcd8 14554 rm -rf conftest*
90dd450c 14555 eval "ac_cv_header_$ac_safe=yes"
698dcdb6 14556else
90dd450c 14557 echo "$ac_err" >&5
698dcdb6
VZ
14558 echo "configure: failed program was:" >&5
14559 cat conftest.$ac_ext >&5
4f14bcd8 14560 rm -rf conftest*
90dd450c 14561 eval "ac_cv_header_$ac_safe=no"
703e0a69 14562fi
4f14bcd8 14563rm -f conftest*
698dcdb6 14564fi
90dd450c
VZ
14565if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14566 echo "$ac_t""yes" 1>&6
21d1c967
GD
14567
14568 echo $ac_n "checking for -lGL""... $ac_c" 1>&6
14569echo "configure:14570: checking for -lGL" >&5
14570
14571ac_find_libraries=
14572for ac_dir in $SEARCH_LIB;
14573 do
14574 for ac_extension in a so sl dylib; do
14575 if test -f "$ac_dir/libGL.$ac_extension"; then
14576 ac_find_libraries=$ac_dir
14577 break 2
14578 fi
14579 done
14580 done
14581
14582 if test "$ac_find_libraries" != "" ; then
14583
14584 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
14585 result=$?
14586 if test $result = 0; then
14587 ac_path_to_link=""
14588 else
14589 ac_path_to_link=" -L$ac_find_libraries"
14590 fi
14591
14592 if test "$ac_path_to_link" = " -L/usr/lib" ; then
14593 LDFLAGS_GL="$LDFLAGS"
14594 else
14595 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
14596 fi
14597 OPENGL_LIBS="-lGL -lGLU"
14598 echo "$ac_t""yes" 1>&6
14599 else
14600 echo "$ac_t""no" 1>&6
14601 echo $ac_n "checking for -lMesaGL""... $ac_c" 1>&6
14602echo "configure:14603: checking for -lMesaGL" >&5
14603
14604ac_find_libraries=
14605for ac_dir in $SEARCH_LIB;
14606 do
14607 for ac_extension in a so sl dylib; do
14608 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
14609 ac_find_libraries=$ac_dir
14610 break 2
14611 fi
14612 done
14613 done
14614
14615 if test "$ac_find_libraries" != "" ; then
14616
14617 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
14618 result=$?
14619 if test $result = 0; then
14620 ac_path_to_link=""
14621 else
14622 ac_path_to_link=" -L$ac_find_libraries"
14623 fi
14624
14625 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
14626 OPENGL_LIBS="-lMesaGL -lMesaGLU"
14627 echo "$ac_t""yes" 1>&6
14628 else
14629 echo "$ac_t""no" 1>&6
14630 fi
14631 fi
14632
90dd450c
VZ
14633else
14634 echo "$ac_t""no" 1>&6
14635fi
698dcdb6
VZ
14636
14637
21d1c967
GD
14638 if test "x$OPENGL_LIBS" = "x"; then
14639 { echo "configure: error: OpenGL libraries not available" 1>&2; exit 1; }
14640 fi
14641 fi
90dd450c 14642
21d1c967
GD
14643 if test "$wxUSE_OPENGL" = "yes"; then
14644 cat >> confdefs.h <<\EOF
14645#define wxUSE_OPENGL 1
698dcdb6 14646EOF
21d1c967
GD
14647
14648 cat >> confdefs.h <<\EOF
14649#define wxUSE_GLCANVAS 1
14650EOF
14651
14652 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl"
14653 fi
10f2d63a 14654fi
21d1c967
GD
14655
14656if test -z "$TOOLKIT_VPATH" ; then
14657 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}"
10f2d63a 14658fi
21d1c967
GD
14659
14660if test -n "$TOOLKIT" ; then
14661 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
14662fi
14663
14664lib_unicode_suffix=
14665if test "$wxUSE_UNICODE" = "yes"; then
14666 lib_unicode_suffix=u
90dd450c 14667fi
698dcdb6 14668
21d1c967
GD
14669lib_debug_suffix=
14670if test "$wxUSE_DEBUG_FLAG" = "yes"; then
14671 lib_debug_suffix=d
14672fi
698dcdb6 14673
21d1c967
GD
14674TOOLCHAIN_NAME="${TOOLKIT_DIR}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}-${WX_RELEASE}"
14675TOOLCHAIN_NAME_GL="${TOOLKIT_DIR}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_gl-${WX_RELEASE}"
14676
14677if test "$cross_compiling" = "yes"; then
14678 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}-${host_alias}"
14679 TOOLCHAIN_NAME_GL="${TOOLCHAIN_NAME_GL}-${host_alias}"
14680fi
14681
14682WX_LIBRARY="wx_${TOOLCHAIN_NAME}"
14683WX_LIBRARY_GL="wx_${TOOLCHAIN_NAME_GL}"
14684
14685WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
14686WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
14687
14688WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}"
14689WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
14690WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}"
14691WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
14692
14693case "${host}" in
14694 *-*-cygwin* | *-*-mingw32* )
14695
14696
14697
14698 if test "$cross_compiling" != "yes"; then
14699 WX_LIBRARY="wxmsw${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}"
14700 WX_LIBRARY_GL="wxmsw_gl${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}"
14701 WX_LIBRARY_NAME_SHARED="${WX_LIBRARY}.${SO_SUFFIX}"
14702 WX_LIBRARY_NAME_SHARED_GL="${WX_LIBRARY_GL}.${SO_SUFFIX}"
14703 else
14704 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}"
14705 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
14706 fi
14707 ;;
14708
14709 *-*-darwin* )
14710 if test "$wxUSE_MAC" = 1; then
14711 WX_RESOURCES_MACOSX_ASCII="lib${WX_LIBRARY}.r"
14712 WX_RESOURCES_MACOSX_DATA="lib${WX_LIBRARY}.rsrc"
14713 fi
14714 ;;
14715esac
14716
14717WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a"
14718WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY_GL}.a"
14719
14720WXCONFIG_LIBS="-l${WX_LIBRARY}"
14721WXCONFIG_LIBS_STATIC="lib${WX_LIBRARY}.a"
14722
14723if test "$wxUSE_OPENGL" = "yes"; then
14724 WXCONFIG_LIBS_GL="-l${WX_LIBRARY_GL} ${OPENGL_LIBS}"
14725 WXCONFIG_LIBS_STATIC_GL="lib${WX_LIBRARY_GL}.a ${OPENGL_LIBS}"
14726fi
14727
14728
14729
14730if test "$wxUSE_SHARED" = "yes"; then
14731 case "${host}" in
14732 *-pc-os2_emx | *-pc-os2-emx | \
14733 *-pc-msdosdjgpp )
14734 wxUSE_SHARED=no
14735 echo "configure: warning: Host system doesn't support shared libraries, disabling" 1>&2
14736 ;;
14737 esac
14738fi
14739
14740if test "$wxUSE_SHARED" = "yes"; then
14741
14742 if test "$wxUSE_OPENGL" = "yes"; then
14743 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
14744 WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1} \$(build_libdir)/${WX_LIBRARY_LINK1_GL}"
14745 else
14746 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
14747 WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1}"
14748 fi
14749
14750 if test "$GCC" = "yes"; then
14751 PIC_FLAG="-fPIC"
14752 fi
14753
14754 SHARED_LD="${CXX} -shared -o"
14755
14756 case "${host}" in
14757 *-hp-hpux* )
14758 if test "$GCC" == "yes"; then
14759 SHARED_LD="${SHARED_LD} ${PIC_FLAG}"
14760 else
14761 LDFLAGS="$LDFLAGS -L/usr/lib"
14762
14763 SHARED_LD="${CXX} -b -o"
14764 PIC_FLAG="+Z"
14765 fi
14766
14767 if test "$wxUSE_OPENGL" = "yes"; then
14768 WX_ALL_INSTALLED="preinstall_gl"
14769 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}"
14770 else
14771 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}"
14772 fi
14773 ;;
14774
14775 *-*-linux* )
14776 if test "$GCC" != "yes"; then
14777 echo $ac_n "checking for Intel compiler""... $ac_c" 1>&6
14778echo "configure:14779: checking for Intel compiler" >&5
14779if eval "test \"`echo '$''{'wx_cv_prog_icc'+set}'`\" = set"; then
698dcdb6 14780 echo $ac_n "(cached) $ac_c" 1>&6
698dcdb6 14781else
21d1c967
GD
14782
14783 cat > conftest.$ac_ext <<EOF
14784#line 14785 "configure"
698dcdb6 14785#include "confdefs.h"
90dd450c
VZ
14786
14787int main() {
14788
21d1c967
GD
14789 #ifndef __INTEL_COMPILER
14790 #error Not icc
14791 #endif
14792
90dd450c 14793; return 0; }
698dcdb6 14794EOF
21d1c967 14795if { (eval echo configure:14796: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
90dd450c 14796 rm -rf conftest*
21d1c967 14797 wx_cv_prog_icc=yes
6232543b 14798else
698dcdb6
VZ
14799 echo "configure: failed program was:" >&5
14800 cat conftest.$ac_ext >&5
90dd450c 14801 rm -rf conftest*
21d1c967
GD
14802 wx_cv_prog_icc=no
14803
6232543b 14804fi
90dd450c 14805rm -f conftest*
21d1c967 14806
698dcdb6
VZ
14807fi
14808
21d1c967
GD
14809echo "$ac_t""$wx_cv_prog_icc" 1>&6
14810 if test "$wx_cv_prog_icc" = "yes"; then
14811 PIC_FLAG="-KPIC"
14812 fi
14813 fi
14814
14815 if test "$wxUSE_SONAME" = "yes" ; then
14816 SONAME_FLAGS="-Wl,-soname,${WX_LIBRARY_LINK1}"
14817 SONAME_FLAGS_GL="-Wl,-soname,${WX_LIBRARY_LINK1_GL}"
14818 WX_TARGET_LIBRARY_SONAME="-Wl,-soname,\$(TARGETLIB_LINK1)"
14819 fi
14820 ;;
14821
14822 *-*-solaris2* )
14823 if test "$GCC" = yes ; then
14824 CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
14825 else
14826 SHARED_LD="${CXX} -G -o"
14827 PIC_FLAG="-KPIC"
14828 SONAME_FLAGS="-h ${WX_LIBRARY_NAME_SHARED}"
14829 SONAME_FLAGS_GL="-h ${WX_LIBRARY_NAME_SHARED_GL}"
14830 fi
14831 ;;
14832
14833 *-*-darwin* )
14834 CFLAGS="$CFLAGS -fno-common -DWXMAKINGDLL"
14835 CXXFLAGS="$CXXFLAGS -fno-common -DWXMAKINGDLL"
14836 SHARED_LD="\${top_srcdir}/distrib/mac/shared-ld-sh -undefined suppress -flat_namespace -o"
14837 PIC_FLAG="-dynamic -fPIC"
14838 SONAME_FLAGS="-compatibility_version ${WX_RELEASE} -current_version ${WX_VERSION}"
14839 SONAME_FLAGS_GL=${SONAME_FLAGS}
14840 ;;
14841
14842 *-*-aix* )
14843 SHARED_LD="/usr/lpp/xlC/bin/makeC++SharedLib -p 0 -o"
14844 ;;
14845
14846 *-*-cygwin* | *-*-mingw32* )
14847
14848 WX_LIBRARY_IMPORTLIB="${WX_LIBRARY_NAME_SHARED}.a"
14849
14850 SHARED_LD="${CXX} -shared -Wl,--out-implib,lib/${WX_LIBRARY_IMPORTLIB} -o"
14851 TOOLCHAIN_DLL_DEFS="${TOOLCHAIN_DLL_DEFS} -DWXUSINGDLL=1"
14852
14853 PIC_FLAG="-UWXUSINGDLL -DWXMAKINGDLL=1 -D_DLL=1 -D_WINDLL=1"
14854
14855 if test "$wxUSE_OPENGL" = "yes"; then
14856 WX_ALL_INSTALLED="preinstall_gl"
14857 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}"
14858 else
14859 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}"
14860 fi
14861 ;;
14862
14863 *-*-beos* )
14864 SHARED_LD="${LD} -shared -o"
14865 ;;
14866
14867 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
14868 *-*-sunos4* | \
14869 *-*-irix5* | *-*-irix6* | \
14870 *-*-osf* | \
14871 *-*-dgux5* | \
14872 *-*-sysv5* )
14873 ;;
14874
14875 *)
14876 { echo "configure: error: unknown system type $host." 1>&2; exit 1; }
14877 esac
14878
14879 if test "x$WX_TARGET_LIBRARY" = "x"; then
14880 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
14881 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}"
14882 fi
14883
14884 WX_TARGET_LIBRARY_TYPE="so"
14885 INSTALL_LIBRARY='$(INSTALL_PROGRAM)'
90dd450c 14886fi
10f2d63a 14887
21d1c967
GD
14888if test "$wxUSE_SHARED" = "no"; then
14889
14890 if test "$wxUSE_GUI" = "no" -o "$USE_WIN32" = 1 ; then
14891 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
14892 fi
14893
14894 if test "$wxUSE_MAC" = 1; then
14895 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
14896 fi
14897
14898 if test "$wxUSE_OPENGL" = "yes"; then
14899 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_gl"
14900 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC} \$(build_libdir)/${WX_LIBRARY_NAME_STATIC_GL}"
14901 else
14902 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC}"
14903 fi
14904
14905 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
14906 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
14907
14908 WX_TARGET_LIBRARY_TYPE="a"
14909 INSTALL_LIBRARY='$(INSTALL_DATA)'
90dd450c 14910fi
1e487827 14911
21d1c967
GD
14912if test "$wxUSE_MAC" = 1; then
14913 LIBWXMACRES="\$(top_builddir)/lib/${WX_RESOURCES_MACOSX_ASCII}"
14914 WX_ALL="${WX_ALL} ${LIBWXMACRES}"
14915 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_res"
14916 # Extract the first word of "Rez", so it can be a program name with args.
14917set dummy Rez; ac_word=$2
14918echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
14919echo "configure:14920: checking for $ac_word" >&5
14920if eval "test \"`echo '$''{'ac_cv_prog_RESCOMP'+set}'`\" = set"; then
698dcdb6 14921 echo $ac_n "(cached) $ac_c" 1>&6
b93d0d08 14922else
21d1c967
GD
14923 if test -n "$RESCOMP"; then
14924 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
b93d0d08 14925else
21d1c967
GD
14926 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
14927 ac_dummy="$PATH"
14928 for ac_dir in $ac_dummy; do
14929 test -z "$ac_dir" && ac_dir=.
14930 if test -f $ac_dir/$ac_word; then
14931 ac_cv_prog_RESCOMP="Rez"
14932 break
14933 fi
14934 done
14935 IFS="$ac_save_ifs"
14936 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
b93d0d08 14937fi
b93d0d08 14938fi
21d1c967
GD
14939RESCOMP="$ac_cv_prog_RESCOMP"
14940if test -n "$RESCOMP"; then
14941 echo "$ac_t""$RESCOMP" 1>&6
90dd450c
VZ
14942else
14943 echo "$ac_t""no" 1>&6
14944fi
b93d0d08 14945
21d1c967
GD
14946 # Extract the first word of "DeRez", so it can be a program name with args.
14947set dummy DeRez; ac_word=$2
14948echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
14949echo "configure:14950: checking for $ac_word" >&5
14950if eval "test \"`echo '$''{'ac_cv_prog_DEREZ'+set}'`\" = set"; then
698dcdb6 14951 echo $ac_n "(cached) $ac_c" 1>&6
3a922bb4 14952else
21d1c967
GD
14953 if test -n "$DEREZ"; then
14954 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
4f14bcd8 14955else
21d1c967
GD
14956 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
14957 ac_dummy="$PATH"
14958 for ac_dir in $ac_dummy; do
14959 test -z "$ac_dir" && ac_dir=.
14960 if test -f $ac_dir/$ac_word; then
14961 ac_cv_prog_DEREZ="DeRez"
14962 break
14963 fi
14964 done
14965 IFS="$ac_save_ifs"
14966 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
3a922bb4 14967fi
90dd450c 14968fi
21d1c967
GD
14969DEREZ="$ac_cv_prog_DEREZ"
14970if test -n "$DEREZ"; then
14971 echo "$ac_t""$DEREZ" 1>&6
90dd450c
VZ
14972else
14973 echo "$ac_t""no" 1>&6
3a922bb4 14974fi
698dcdb6 14975
21d1c967
GD
14976 MACOSX_BUNDLE="bundle"
14977 if test "$wxUSE_SHARED" = "yes"; then
14978 LIBWXMACRESCOMP="\$(RESCOMP) -t APPL Carbon.r -o \$(BIN_PROGRAM)"
14979 LIBWXMACRESWXCONFIG="${RESCOMP} -t APPL Carbon.r -o"
14980 else
14981 LIBWXMACRESCOMP="\$(RESCOMP) -t APPL Carbon.r ${LIBWXMACRES} -o \$(BIN_PROGRAM)"
14982 LIBWXMACRESWXCONFIG="${RESCOMP} -t APPL Carbon.r \${prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
14983 fi
14984else
14985 if test "$wxUSE_PM" = 1; then
14986 LIBWXMACRESCOMP="emxbind -ep \$(BIN_PROGRAM)"
90dd450c 14987 fi
4f14bcd8 14988fi
10f2d63a 14989
703e0a69 14990
90dd450c 14991echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
21d1c967 14992echo "configure:14993: checking for ANSI C header files" >&5
90dd450c 14993if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
698dcdb6
VZ
14994 echo $ac_n "(cached) $ac_c" 1>&6
14995else
14996 cat > conftest.$ac_ext <<EOF
21d1c967 14997#line 14998 "configure"
10f2d63a 14998#include "confdefs.h"
90dd450c
VZ
14999#include <stdlib.h>
15000#include <stdarg.h>
15001#include <string.h>
15002#include <float.h>
698dcdb6 15003EOF
90dd450c 15004ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
21d1c967 15005{ (eval echo configure:15006: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
90dd450c
VZ
15006ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15007if test -z "$ac_err"; then
15008 rm -rf conftest*
15009 ac_cv_header_stdc=yes
10f2d63a 15010else
90dd450c 15011 echo "$ac_err" >&5
698dcdb6 15012 echo "configure: failed program was:" >&5
10f2d63a 15013 cat conftest.$ac_ext >&5
90dd450c
VZ
15014 rm -rf conftest*
15015 ac_cv_header_stdc=no
10f2d63a 15016fi
90dd450c
VZ
15017rm -f conftest*
15018
15019if test $ac_cv_header_stdc = yes; then
15020 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15021cat > conftest.$ac_ext <<EOF
21d1c967 15022#line 15023 "configure"
90dd450c
VZ
15023#include "confdefs.h"
15024#include <string.h>
15025EOF
15026if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15027 egrep "memchr" >/dev/null 2>&1; then
15028 :
15029else
15030 rm -rf conftest*
15031 ac_cv_header_stdc=no
10f2d63a 15032fi
90dd450c 15033rm -f conftest*
10f2d63a 15034
4f14bcd8 15035fi
90dd450c
VZ
15036
15037if test $ac_cv_header_stdc = yes; then
15038 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15039cat > conftest.$ac_ext <<EOF
21d1c967 15040#line 15041 "configure"
90dd450c
VZ
15041#include "confdefs.h"
15042#include <stdlib.h>
10f2d63a 15043EOF
90dd450c
VZ
15044if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15045 egrep "free" >/dev/null 2>&1; then
15046 :
15047else
15048 rm -rf conftest*
15049 ac_cv_header_stdc=no
15050fi
15051rm -f conftest*
10f2d63a 15052
90dd450c 15053fi
698dcdb6 15054
90dd450c
VZ
15055if test $ac_cv_header_stdc = yes; then
15056 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15057if test "$cross_compiling" = yes; then
15058 :
4f14bcd8
GD
15059else
15060 cat > conftest.$ac_ext <<EOF
21d1c967 15061#line 15062 "configure"
10f2d63a 15062#include "confdefs.h"
90dd450c
VZ
15063#include <ctype.h>
15064#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15065#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15066#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15067int main () { int i; for (i = 0; i < 256; i++)
15068if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
15069exit (0); }
15070
698dcdb6 15071EOF
21d1c967 15072if { (eval echo configure:15073: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4f14bcd8 15073then
90dd450c 15074 :
10f2d63a 15075else
698dcdb6
VZ
15076 echo "configure: failed program was:" >&5
15077 cat conftest.$ac_ext >&5
4f14bcd8 15078 rm -fr conftest*
90dd450c 15079 ac_cv_header_stdc=no
10f2d63a 15080fi
4f14bcd8 15081rm -fr conftest*
10f2d63a 15082fi
698dcdb6 15083
4f14bcd8 15084fi
90dd450c 15085fi
10f2d63a 15086
90dd450c
VZ
15087echo "$ac_t""$ac_cv_header_stdc" 1>&6
15088if test $ac_cv_header_stdc = yes; then
15089 cat >> confdefs.h <<\EOF
15090#define STDC_HEADERS 1
15091EOF
698dcdb6 15092
90dd450c 15093fi
9d353d4a 15094
90dd450c 15095echo $ac_n "checking for mode_t""... $ac_c" 1>&6
21d1c967 15096echo "configure:15097: checking for mode_t" >&5
90dd450c 15097if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
9d353d4a 15098 echo $ac_n "(cached) $ac_c" 1>&6
9d353d4a
RR
15099else
15100 cat > conftest.$ac_ext <<EOF
21d1c967 15101#line 15102 "configure"
9d353d4a 15102#include "confdefs.h"
90dd450c
VZ
15103#include <sys/types.h>
15104#if STDC_HEADERS
15105#include <stdlib.h>
15106#include <stddef.h>
15107#endif
9d353d4a 15108EOF
90dd450c
VZ
15109if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15110 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
15111 rm -rf conftest*
15112 ac_cv_type_mode_t=yes
9d353d4a 15113else
90dd450c
VZ
15114 rm -rf conftest*
15115 ac_cv_type_mode_t=no
9d353d4a 15116fi
90dd450c 15117rm -f conftest*
9d353d4a
RR
15118
15119fi
90dd450c
VZ
15120echo "$ac_t""$ac_cv_type_mode_t" 1>&6
15121if test $ac_cv_type_mode_t = no; then
15122 cat >> confdefs.h <<\EOF
15123#define mode_t int
9d353d4a
RR
15124EOF
15125
90dd450c 15126fi
9d353d4a 15127
90dd450c 15128echo $ac_n "checking for off_t""... $ac_c" 1>&6
21d1c967 15129echo "configure:15130: checking for off_t" >&5
90dd450c 15130if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
698dcdb6 15131 echo $ac_n "(cached) $ac_c" 1>&6
4f14bcd8
GD
15132else
15133 cat > conftest.$ac_ext <<EOF
21d1c967 15134#line 15135 "configure"
10f2d63a 15135#include "confdefs.h"
90dd450c
VZ
15136#include <sys/types.h>
15137#if STDC_HEADERS
15138#include <stdlib.h>
15139#include <stddef.h>
15140#endif
698dcdb6 15141EOF
90dd450c
VZ
15142if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15143 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
15144 rm -rf conftest*
15145 ac_cv_type_off_t=yes
698dcdb6 15146else
90dd450c
VZ
15147 rm -rf conftest*
15148 ac_cv_type_off_t=no
698dcdb6 15149fi
90dd450c 15150rm -f conftest*
698dcdb6
VZ
15151
15152fi
90dd450c
VZ
15153echo "$ac_t""$ac_cv_type_off_t" 1>&6
15154if test $ac_cv_type_off_t = no; then
15155 cat >> confdefs.h <<\EOF
15156#define off_t long
10f2d63a
VZ
15157EOF
15158
90dd450c 15159fi
10f2d63a 15160
90dd450c 15161echo $ac_n "checking for pid_t""... $ac_c" 1>&6
21d1c967 15162echo "configure:15163: checking for pid_t" >&5
90dd450c 15163if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
698dcdb6 15164 echo $ac_n "(cached) $ac_c" 1>&6
4f14bcd8
GD
15165else
15166 cat > conftest.$ac_ext <<EOF
21d1c967 15167#line 15168 "configure"
10f2d63a 15168#include "confdefs.h"
90dd450c
VZ
15169#include <sys/types.h>
15170#if STDC_HEADERS
15171#include <stdlib.h>
15172#include <stddef.h>
15173#endif
698dcdb6 15174EOF
90dd450c
VZ
15175if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15176 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
15177 rm -rf conftest*
15178 ac_cv_type_pid_t=yes
698dcdb6 15179else
90dd450c
VZ
15180 rm -rf conftest*
15181 ac_cv_type_pid_t=no
4f14bcd8 15182fi
90dd450c 15183rm -f conftest*
698dcdb6
VZ
15184
15185fi
90dd450c
VZ
15186echo "$ac_t""$ac_cv_type_pid_t" 1>&6
15187if test $ac_cv_type_pid_t = no; then
15188 cat >> confdefs.h <<\EOF
15189#define pid_t int
10f2d63a
VZ
15190EOF
15191
90dd450c 15192fi
18dbb1f6 15193
90dd450c 15194echo $ac_n "checking for size_t""... $ac_c" 1>&6
21d1c967 15195echo "configure:15196: checking for size_t" >&5
90dd450c 15196if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
18dbb1f6 15197 echo $ac_n "(cached) $ac_c" 1>&6
90dd450c
VZ
15198else
15199 cat > conftest.$ac_ext <<EOF
21d1c967 15200#line 15201 "configure"
4f14bcd8
GD
15201#include "confdefs.h"
15202#include <sys/types.h>
90dd450c
VZ
15203#if STDC_HEADERS
15204#include <stdlib.h>
15205#include <stddef.h>
4f14bcd8 15206#endif
18dbb1f6 15207EOF
90dd450c
VZ
15208if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15209 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
18dbb1f6 15210 rm -rf conftest*
90dd450c 15211 ac_cv_type_size_t=yes
18dbb1f6 15212else
18dbb1f6 15213 rm -rf conftest*
90dd450c 15214 ac_cv_type_size_t=no
18dbb1f6
VZ
15215fi
15216rm -f conftest*
90dd450c 15217
1e487827 15218fi
90dd450c
VZ
15219echo "$ac_t""$ac_cv_type_size_t" 1>&6
15220if test $ac_cv_type_size_t = no; then
15221 cat >> confdefs.h <<\EOF
15222#define size_t unsigned
15223EOF
15224
15225fi
15226
15227echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
21d1c967 15228echo "configure:15229: checking for uid_t in sys/types.h" >&5
90dd450c
VZ
15229if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
15230 echo $ac_n "(cached) $ac_c" 1>&6
b3e8d00a
VZ
15231else
15232 cat > conftest.$ac_ext <<EOF
21d1c967 15233#line 15234 "configure"
b3e8d00a 15234#include "confdefs.h"
90dd450c 15235#include <sys/types.h>
b3e8d00a 15236EOF
90dd450c
VZ
15237if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15238 egrep "uid_t" >/dev/null 2>&1; then
15239 rm -rf conftest*
15240 ac_cv_type_uid_t=yes
b3e8d00a 15241else
90dd450c
VZ
15242 rm -rf conftest*
15243 ac_cv_type_uid_t=no
b3e8d00a 15244fi
90dd450c 15245rm -f conftest*
b3e8d00a 15246
4f14bcd8
GD
15247fi
15248
90dd450c
VZ
15249echo "$ac_t""$ac_cv_type_uid_t" 1>&6
15250if test $ac_cv_type_uid_t = no; then
4f14bcd8 15251 cat >> confdefs.h <<\EOF
90dd450c
VZ
15252#define uid_t int
15253EOF
15254
15255 cat >> confdefs.h <<\EOF
15256#define gid_t int
b3e8d00a 15257EOF
4f14bcd8 15258
b3e8d00a 15259fi
b3e8d00a
VZ
15260
15261
90dd450c
VZ
15262
15263ac_ext=C
4f14bcd8
GD
15264# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15265ac_cpp='$CXXCPP $CPPFLAGS'
15266ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15267ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15268cross_compiling=$ac_cv_prog_cxx_cross
90dd450c
VZ
15269
15270echo $ac_n "checking if size_t is unsigned int""... $ac_c" 1>&6
21d1c967 15271echo "configure:15272: checking if size_t is unsigned int" >&5
90dd450c
VZ
15272if eval "test \"`echo '$''{'wx_cv_size_t_is_uint'+set}'`\" = set"; then
15273 echo $ac_n "(cached) $ac_c" 1>&6
15274else
15275 cat > conftest.$ac_ext <<EOF
21d1c967 15276#line 15277 "configure"
10f2d63a 15277#include "confdefs.h"
90dd450c
VZ
15278#include <stddef.h>
15279int main() {
15280
15281 return 0; }
15282
15283 struct Foo { void foo(size_t); void foo(unsigned int); };
15284
15285 int bar() {
15286
15287; return 0; }
698dcdb6 15288EOF
21d1c967 15289if { (eval echo configure:15290: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
90dd450c
VZ
15290 rm -rf conftest*
15291 wx_cv_size_t_is_uint=no
698dcdb6
VZ
15292else
15293 echo "configure: failed program was:" >&5
15294 cat conftest.$ac_ext >&5
15295 rm -rf conftest*
90dd450c
VZ
15296 wx_cv_size_t_is_uint=yes
15297
698dcdb6
VZ
15298fi
15299rm -f conftest*
90dd450c 15300
698dcdb6
VZ
15301fi
15302
90dd450c 15303echo "$ac_t""$wx_cv_size_t_is_uint" 1>&6
4f14bcd8 15304
90dd450c 15305if test "$wx_cv_size_t_is_uint" = "yes"; then
4f14bcd8 15306 cat >> confdefs.h <<\EOF
90dd450c 15307#define wxSIZE_T_IS_UINT 1
698dcdb6
VZ
15308EOF
15309
90dd450c
VZ
15310else
15311 echo $ac_n "checking if size_t is unsigned long""... $ac_c" 1>&6
21d1c967 15312echo "configure:15313: checking if size_t is unsigned long" >&5
90dd450c 15313if eval "test \"`echo '$''{'wx_cv_size_t_is_ulong'+set}'`\" = set"; then
698dcdb6
VZ
15314 echo $ac_n "(cached) $ac_c" 1>&6
15315else
15316 cat > conftest.$ac_ext <<EOF
21d1c967 15317#line 15318 "configure"
10f2d63a 15318#include "confdefs.h"
90dd450c
VZ
15319#include <stddef.h>
15320int main() {
15321
15322 return 0; }
15323
15324 struct Foo { void foo(size_t); void foo(unsigned long); };
15325
15326 int bar() {
15327
15328; return 0; }
698dcdb6 15329EOF
21d1c967 15330if { (eval echo configure:15331: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 15331 rm -rf conftest*
90dd450c 15332 wx_cv_size_t_is_ulong=no
698dcdb6
VZ
15333else
15334 echo "configure: failed program was:" >&5
15335 cat conftest.$ac_ext >&5
15336 rm -rf conftest*
90dd450c
VZ
15337 wx_cv_size_t_is_ulong=yes
15338
698dcdb6
VZ
15339fi
15340rm -f conftest*
90dd450c 15341
698dcdb6 15342fi
10f2d63a 15343
90dd450c 15344echo "$ac_t""$wx_cv_size_t_is_ulong" 1>&6
10f2d63a 15345
90dd450c
VZ
15346 if test "$wx_cv_size_t_is_ulong" = "yes"; then
15347 cat >> confdefs.h <<\EOF
15348#define wxSIZE_T_IS_ULONG 1
4f14bcd8
GD
15349EOF
15350
15351 fi
90dd450c 15352fi
1e487827 15353
90dd450c 15354ac_ext=c
4f14bcd8
GD
15355# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15356ac_cpp='$CPP $CPPFLAGS'
15357ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15358ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15359cross_compiling=$ac_cv_prog_cc_cross
698dcdb6 15360
698dcdb6
VZ
15361
15362
90dd450c 15363echo $ac_n "checking for pw_gecos in struct passwd""... $ac_c" 1>&6
21d1c967 15364echo "configure:15365: checking for pw_gecos in struct passwd" >&5
90dd450c 15365if eval "test \"`echo '$''{'wx_cv_struct_pw_gecos'+set}'`\" = set"; then
698dcdb6
VZ
15366 echo $ac_n "(cached) $ac_c" 1>&6
15367else
15368
90dd450c 15369 cat > conftest.$ac_ext <<EOF
21d1c967 15370#line 15371 "configure"
4f14bcd8 15371#include "confdefs.h"
90dd450c 15372#include <pwd.h>
4f14bcd8 15373int main() {
f6bcfd97 15374
90dd450c
VZ
15375 char *p;
15376 struct passwd *pw;
15377 p = pw->pw_gecos;
15378
698dcdb6
VZ
15379; return 0; }
15380EOF
21d1c967 15381if { (eval echo configure:15382: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
15382 rm -rf conftest*
15383
90dd450c
VZ
15384 wx_cv_struct_pw_gecos=yes
15385
10f2d63a 15386else
698dcdb6
VZ
15387 echo "configure: failed program was:" >&5
15388 cat conftest.$ac_ext >&5
15389 rm -rf conftest*
15390
90dd450c
VZ
15391 wx_cv_struct_pw_gecos=no
15392
15393
4f14bcd8
GD
15394fi
15395rm -f conftest*
90dd450c 15396
c521c494 15397
4f14bcd8 15398fi
c521c494 15399
90dd450c 15400echo "$ac_t""$wx_cv_struct_pw_gecos" 1>&6
c521c494 15401
90dd450c 15402if test "$wx_cv_struct_pw_gecos" = "yes"; then
4f14bcd8 15403 cat >> confdefs.h <<\EOF
90dd450c 15404#define HAVE_PW_GECOS 1
4f14bcd8 15405EOF
c521c494 15406
90dd450c 15407fi
4f14bcd8
GD
15408
15409
d29b553b
VZ
15410WCHAR_OK=0
15411if test "$wx_cv_sizeof_wchar_t" != "0"; then
15412 WCHAR_LINK=
7a30264c
VZ
15413 for ac_func in wcslen
15414do
15415echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21d1c967 15416echo "configure:15417: checking for $ac_func" >&5
7a30264c 15417if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4f14bcd8
GD
15418 echo $ac_n "(cached) $ac_c" 1>&6
15419else
7a30264c 15420 cat > conftest.$ac_ext <<EOF
21d1c967 15421#line 15422 "configure"
4f14bcd8 15422#include "confdefs.h"
7a30264c
VZ
15423/* System header to define __stub macros and hopefully few prototypes,
15424 which can conflict with char $ac_func(); below. */
15425#include <assert.h>
4f14bcd8
GD
15426/* Override any gcc2 internal prototype to avoid an error. */
15427/* We use char because int might match the return type of a gcc2
15428 builtin and then its argument prototype would still apply. */
7a30264c 15429char $ac_func();
4f14bcd8
GD
15430
15431int main() {
7a30264c
VZ
15432
15433/* The GNU C library defines this for functions which it implements
15434 to always fail with ENOSYS. Some functions are actually named
15435 something starting with __ and the normal name is an alias. */
15436#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15437choke me
15438#else
15439$ac_func();
15440#endif
15441
698dcdb6
VZ
15442; return 0; }
15443EOF
21d1c967 15444if { (eval echo configure:15445: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 15445 rm -rf conftest*
7a30264c 15446 eval "ac_cv_func_$ac_func=yes"
c521c494 15447else
698dcdb6
VZ
15448 echo "configure: failed program was:" >&5
15449 cat conftest.$ac_ext >&5
15450 rm -rf conftest*
7a30264c 15451 eval "ac_cv_func_$ac_func=no"
6232543b 15452fi
698dcdb6 15453rm -f conftest*
1e487827 15454fi
7a30264c
VZ
15455
15456if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4f14bcd8 15457 echo "$ac_t""yes" 1>&6
7a30264c
VZ
15458 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15459 cat >> confdefs.h <<EOF
15460#define $ac_tr_func 1
15461EOF
15462
15463 cat >> confdefs.h <<\EOF
4f14bcd8 15464#define HAVE_WCSLEN 1
9d8deca0
VZ
15465EOF
15466
7a30264c
VZ
15467 WCHAR_OK=1
15468
9d8deca0 15469else
4f14bcd8 15470 echo "$ac_t""no" 1>&6
7a30264c
VZ
15471fi
15472done
9d8deca0 15473
7a30264c
VZ
15474
15475 if test "$WCHAR_OK" = 0; then
15476 if test "$TOOLKIT" = "MSW"; then
15477 echo $ac_n "checking for wcslen in -lmsvcrt""... $ac_c" 1>&6
21d1c967 15478echo "configure:15479: checking for wcslen in -lmsvcrt" >&5
7a30264c 15479ac_lib_var=`echo msvcrt'_'wcslen | sed 'y%./+-%__p_%'`
4f14bcd8 15480if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
698dcdb6 15481 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 15482else
4f14bcd8 15483 ac_save_LIBS="$LIBS"
7a30264c 15484LIBS="-lmsvcrt $LIBS"
4f14bcd8 15485cat > conftest.$ac_ext <<EOF
21d1c967 15486#line 15487 "configure"
10f2d63a 15487#include "confdefs.h"
4f14bcd8
GD
15488/* Override any gcc2 internal prototype to avoid an error. */
15489/* We use char because int might match the return type of a gcc2
15490 builtin and then its argument prototype would still apply. */
15491char wcslen();
10f2d63a 15492
698dcdb6 15493int main() {
4f14bcd8 15494wcslen()
698dcdb6
VZ
15495; return 0; }
15496EOF
21d1c967 15497if { (eval echo configure:15498: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 15498 rm -rf conftest*
4f14bcd8 15499 eval "ac_cv_lib_$ac_lib_var=yes"
10f2d63a 15500else
698dcdb6
VZ
15501 echo "configure: failed program was:" >&5
15502 cat conftest.$ac_ext >&5
15503 rm -rf conftest*
4f14bcd8 15504 eval "ac_cv_lib_$ac_lib_var=no"
6232543b 15505fi
698dcdb6 15506rm -f conftest*
4f14bcd8 15507LIBS="$ac_save_LIBS"
703e0a69 15508
1e487827 15509fi
4f14bcd8
GD
15510if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15511 echo "$ac_t""yes" 1>&6
15512
7a30264c 15513 cat >> confdefs.h <<\EOF
4f14bcd8 15514#define HAVE_WCSLEN 1
9d8deca0
VZ
15515EOF
15516
7a30264c
VZ
15517 WCHAR_OK=1
15518
4f14bcd8
GD
15519else
15520 echo "$ac_t""no" 1>&6
d29b553b 15521fi
698dcdb6 15522
7a30264c
VZ
15523 else
15524 echo $ac_n "checking for wcslen in -lw""... $ac_c" 1>&6
21d1c967 15525echo "configure:15526: checking for wcslen in -lw" >&5
7a30264c 15526ac_lib_var=`echo w'_'wcslen | sed 'y%./+-%__p_%'`
4f14bcd8 15527if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
698dcdb6
VZ
15528 echo $ac_n "(cached) $ac_c" 1>&6
15529else
4f14bcd8 15530 ac_save_LIBS="$LIBS"
7a30264c 15531LIBS="-lw $LIBS"
4f14bcd8 15532cat > conftest.$ac_ext <<EOF
21d1c967 15533#line 15534 "configure"
95c8801c 15534#include "confdefs.h"
4f14bcd8
GD
15535/* Override any gcc2 internal prototype to avoid an error. */
15536/* We use char because int might match the return type of a gcc2
15537 builtin and then its argument prototype would still apply. */
15538char wcslen();
95c8801c 15539
4f14bcd8
GD
15540int main() {
15541wcslen()
698dcdb6
VZ
15542; return 0; }
15543EOF
21d1c967 15544if { (eval echo configure:15545: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 15545 rm -rf conftest*
4f14bcd8 15546 eval "ac_cv_lib_$ac_lib_var=yes"
95c8801c 15547else
698dcdb6
VZ
15548 echo "configure: failed program was:" >&5
15549 cat conftest.$ac_ext >&5
15550 rm -rf conftest*
4f14bcd8 15551 eval "ac_cv_lib_$ac_lib_var=no"
95c8801c 15552fi
698dcdb6 15553rm -f conftest*
4f14bcd8 15554LIBS="$ac_save_LIBS"
95c8801c
VS
15555
15556fi
4f14bcd8
GD
15557if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15558 echo "$ac_t""yes" 1>&6
15559
7a30264c 15560 cat >> confdefs.h <<\EOF
4f14bcd8
GD
15561#define HAVE_WCSLEN 1
15562EOF
698dcdb6 15563
7a30264c
VZ
15564 WCHAR_LINK=" -lw"
15565 WCHAR_OK=1
15566
4f14bcd8
GD
15567else
15568 echo "$ac_t""no" 1>&6
15569fi
10f2d63a 15570
7a30264c 15571 fi
d29b553b 15572 fi
4f14bcd8 15573fi
95c8801c 15574
d29b553b
VZ
15575if test "$WCHAR_OK" = 1; then
15576 cat >> confdefs.h <<\EOF
15577#define wxUSE_WCHAR_T 1
15578EOF
10f2d63a 15579
1e487827 15580
d29b553b 15581 for ac_func in wcsrtombs
eb4efbdc 15582do
698dcdb6 15583echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21d1c967 15584echo "configure:15585: checking for $ac_func" >&5
698dcdb6
VZ
15585if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15586 echo $ac_n "(cached) $ac_c" 1>&6
15587else
15588 cat > conftest.$ac_ext <<EOF
21d1c967 15589#line 15590 "configure"
eb4efbdc
VZ
15590#include "confdefs.h"
15591/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 15592 which can conflict with char $ac_func(); below. */
eb4efbdc
VZ
15593#include <assert.h>
15594/* Override any gcc2 internal prototype to avoid an error. */
15595/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
15596 builtin and then its argument prototype would still apply. */
15597char $ac_func();
15598
15599int main() {
eb4efbdc
VZ
15600
15601/* The GNU C library defines this for functions which it implements
15602 to always fail with ENOSYS. Some functions are actually named
15603 something starting with __ and the normal name is an alias. */
15604#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15605choke me
15606#else
698dcdb6 15607$ac_func();
eb4efbdc
VZ
15608#endif
15609
698dcdb6 15610; return 0; }
eb4efbdc 15611EOF
21d1c967 15612if { (eval echo configure:15613: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
15613 rm -rf conftest*
15614 eval "ac_cv_func_$ac_func=yes"
15615else
15616 echo "configure: failed program was:" >&5
15617 cat conftest.$ac_ext >&5
15618 rm -rf conftest*
15619 eval "ac_cv_func_$ac_func=no"
15620fi
15621rm -f conftest*
15622fi
eb4efbdc 15623
698dcdb6
VZ
15624if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15625 echo "$ac_t""yes" 1>&6
15626 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15627 cat >> confdefs.h <<EOF
15628#define $ac_tr_func 1
15629EOF
15630
15631else
15632 echo "$ac_t""no" 1>&6
eb4efbdc
VZ
15633fi
15634done
15635
d29b553b 15636else
a1ea5055
GD
15637 if test "$USE_DARWIN" = 1; then
15638 cat >> confdefs.h <<\EOF
15639#define wxUSE_WCHAR_T 1
15640EOF
15641
15642 else
15643 echo "configure: warning: Wide character support is unavailable" 1>&2
15644 fi
d29b553b 15645fi
698dcdb6 15646
4f14bcd8 15647echo $ac_n "checking for vprintf""... $ac_c" 1>&6
21d1c967 15648echo "configure:15649: checking for vprintf" >&5
4f14bcd8 15649if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
698dcdb6
VZ
15650 echo $ac_n "(cached) $ac_c" 1>&6
15651else
4f14bcd8 15652 cat > conftest.$ac_ext <<EOF
21d1c967 15653#line 15654 "configure"
f6bcfd97 15654#include "confdefs.h"
4f14bcd8
GD
15655/* System header to define __stub macros and hopefully few prototypes,
15656 which can conflict with char vprintf(); below. */
15657#include <assert.h>
15658/* Override any gcc2 internal prototype to avoid an error. */
15659/* We use char because int might match the return type of a gcc2
15660 builtin and then its argument prototype would still apply. */
15661char vprintf();
15662
698dcdb6 15663int main() {
f6bcfd97 15664
4f14bcd8
GD
15665/* The GNU C library defines this for functions which it implements
15666 to always fail with ENOSYS. Some functions are actually named
15667 something starting with __ and the normal name is an alias. */
15668#if defined (__stub_vprintf) || defined (__stub___vprintf)
15669choke me
15670#else
15671vprintf();
15672#endif
f6bcfd97 15673
698dcdb6
VZ
15674; return 0; }
15675EOF
21d1c967 15676if { (eval echo configure:15677: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 15677 rm -rf conftest*
4f14bcd8 15678 eval "ac_cv_func_vprintf=yes"
f6bcfd97 15679else
698dcdb6
VZ
15680 echo "configure: failed program was:" >&5
15681 cat conftest.$ac_ext >&5
15682 rm -rf conftest*
4f14bcd8 15683 eval "ac_cv_func_vprintf=no"
6232543b 15684fi
698dcdb6 15685rm -f conftest*
1e487827 15686fi
698dcdb6 15687
4f14bcd8
GD
15688if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
15689 echo "$ac_t""yes" 1>&6
15690 cat >> confdefs.h <<\EOF
15691#define HAVE_VPRINTF 1
f6bcfd97
BP
15692EOF
15693
4f14bcd8
GD
15694else
15695 echo "$ac_t""no" 1>&6
eb4efbdc
VZ
15696fi
15697
4f14bcd8
GD
15698if test "$ac_cv_func_vprintf" != yes; then
15699echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
21d1c967 15700echo "configure:15701: checking for _doprnt" >&5
4f14bcd8 15701if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
698dcdb6
VZ
15702 echo $ac_n "(cached) $ac_c" 1>&6
15703else
15704 cat > conftest.$ac_ext <<EOF
21d1c967 15705#line 15706 "configure"
10f2d63a
VZ
15706#include "confdefs.h"
15707/* System header to define __stub macros and hopefully few prototypes,
4f14bcd8 15708 which can conflict with char _doprnt(); below. */
10f2d63a
VZ
15709#include <assert.h>
15710/* Override any gcc2 internal prototype to avoid an error. */
15711/* We use char because int might match the return type of a gcc2
698dcdb6 15712 builtin and then its argument prototype would still apply. */
4f14bcd8 15713char _doprnt();
698dcdb6
VZ
15714
15715int main() {
10f2d63a
VZ
15716
15717/* The GNU C library defines this for functions which it implements
15718 to always fail with ENOSYS. Some functions are actually named
15719 something starting with __ and the normal name is an alias. */
4f14bcd8 15720#if defined (__stub__doprnt) || defined (__stub____doprnt)
10f2d63a
VZ
15721choke me
15722#else
4f14bcd8 15723_doprnt();
10f2d63a
VZ
15724#endif
15725
698dcdb6 15726; return 0; }
10f2d63a 15727EOF
21d1c967 15728if { (eval echo configure:15729: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 15729 rm -rf conftest*
4f14bcd8 15730 eval "ac_cv_func__doprnt=yes"
698dcdb6
VZ
15731else
15732 echo "configure: failed program was:" >&5
15733 cat conftest.$ac_ext >&5
15734 rm -rf conftest*
4f14bcd8 15735 eval "ac_cv_func__doprnt=no"
698dcdb6
VZ
15736fi
15737rm -f conftest*
15738fi
270a909e 15739
4f14bcd8 15740if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
698dcdb6 15741 echo "$ac_t""yes" 1>&6
4f14bcd8
GD
15742 cat >> confdefs.h <<\EOF
15743#define HAVE_DOPRNT 1
698dcdb6 15744EOF
4f14bcd8 15745
698dcdb6
VZ
15746else
15747 echo "$ac_t""no" 1>&6
270a909e 15748fi
270a909e 15749
4f14bcd8 15750fi
1e487827 15751
52e8b690 15752
52e8b690 15753
52e8b690 15754
52e8b690 15755
52e8b690 15756
4f14bcd8 15757echo $ac_n "checking for vsnprintf""... $ac_c" 1>&6
21d1c967 15758echo "configure:15759: checking for vsnprintf" >&5
4f14bcd8 15759if eval "test \"`echo '$''{'wx_cv_func_vsnprintf'+set}'`\" = set"; then
698dcdb6 15760 echo $ac_n "(cached) $ac_c" 1>&6
c63c7106 15761else
4f14bcd8 15762
af15babd 15763 cat > conftest.$ac_ext <<EOF
21d1c967 15764#line 15765 "configure"
c63c7106 15765#include "confdefs.h"
698dcdb6 15766
4f14bcd8
GD
15767 #include <stdio.h>
15768 #include <stdarg.h>
15769
af15babd
VZ
15770int main() {
15771
4f14bcd8
GD
15772 int wx_test_vsnprintf(const char *, ...);
15773
15774 wx_test_vsnprintf("%s");
15775 return 0;
15776 }
15777
15778 int wx_test_vsnprintf(const char *fmt, ...)
15779 {
15780 char *s;
15781
15782 va_list argp;
15783 va_start(argp, fmt);
15784 vsnprintf(s, 42, fmt, argp);
15785 va_end(argp);
15786
af15babd
VZ
15787; return 0; }
15788EOF
21d1c967 15789if { (eval echo configure:15790: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
af15babd
VZ
15790 rm -rf conftest*
15791
4f14bcd8
GD
15792 wx_cv_func_vsnprintf=yes
15793
af15babd
VZ
15794else
15795 echo "configure: failed program was:" >&5
15796 cat conftest.$ac_ext >&5
15797 rm -rf conftest*
15798
4f14bcd8 15799 cat > conftest.$ac_ext <<EOF
21d1c967 15800#line 15801 "configure"
af15babd 15801#include "confdefs.h"
af15babd 15802
4f14bcd8
GD
15803 #include <stdio.h>
15804 #include <stdarg.h>
15805
af15babd
VZ
15806int main() {
15807
4f14bcd8
GD
15808 int wx_test_vsnprintf(const char *, ...);
15809
15810 wx_test_vsnprintf("%s");
15811 return 0;
15812 }
15813
15814 int wx_test_vsnprintf(const char *fmt, ...)
15815 {
15816 char *s;
af15babd 15817
4f14bcd8
GD
15818 va_list argp;
15819 va_start(argp, fmt);
15820 _vsnprintf(s, 42, fmt, argp);
15821 va_end(argp);
15822
af15babd
VZ
15823; return 0; }
15824EOF
21d1c967 15825if { (eval echo configure:15826: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
af15babd 15826 rm -rf conftest*
4f14bcd8
GD
15827
15828 wx_cv_func_vsnprintf=yes
15829
af15babd
VZ
15830else
15831 echo "configure: failed program was:" >&5
15832 cat conftest.$ac_ext >&5
15833 rm -rf conftest*
4f14bcd8
GD
15834
15835 wx_cv_func_vsnprintf=no
15836
af15babd
VZ
15837fi
15838rm -f conftest*
4f14bcd8 15839
af15babd 15840fi
4f14bcd8 15841rm -f conftest*
af15babd 15842
af15babd 15843fi
af15babd 15844
4f14bcd8 15845echo "$ac_t""$wx_cv_func_vsnprintf" 1>&6
af15babd 15846
4f14bcd8
GD
15847if test "$wx_cv_func_vsnprintf" = yes; then
15848 cat >> confdefs.h <<\EOF
15849#define HAVE_VSNPRINTF 1
15850EOF
15851
15852else
f9bc1684 15853 echo "configure: warning: unsafe function vsprintf will be used instead of vsnprintf" 1>&2
af15babd
VZ
15854fi
15855
4f14bcd8 15856echo $ac_n "checking for vsscanf""... $ac_c" 1>&6
21d1c967 15857echo "configure:15858: checking for vsscanf" >&5
4f14bcd8 15858if eval "test \"`echo '$''{'wx_cv_func_vsscanf'+set}'`\" = set"; then
af15babd
VZ
15859 echo $ac_n "(cached) $ac_c" 1>&6
15860else
4f14bcd8 15861
af15babd 15862 cat > conftest.$ac_ext <<EOF
21d1c967 15863#line 15864 "configure"
af15babd 15864#include "confdefs.h"
af15babd 15865
4f14bcd8
GD
15866 #include <stdio.h>
15867 #include <stdarg.h>
15868
af15babd
VZ
15869int main() {
15870
4f14bcd8
GD
15871 int wx_test_vsscanf(const char *, ...);
15872
15873 wx_test_vsscanf("%d");
15874 return 0;
15875 }
af15babd 15876
4f14bcd8
GD
15877 int wx_test_vsscanf(const char *fmt, ...)
15878 {
15879 va_list argp;
15880 va_start(argp, fmt);
15881 vsscanf("42", fmt, argp);
15882 va_end(argp);
15883
af15babd
VZ
15884; return 0; }
15885EOF
21d1c967 15886if { (eval echo configure:15887: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
af15babd 15887 rm -rf conftest*
4f14bcd8
GD
15888
15889 wx_cv_func_vsscanf=yes
15890
af15babd
VZ
15891else
15892 echo "configure: failed program was:" >&5
15893 cat conftest.$ac_ext >&5
15894 rm -rf conftest*
4f14bcd8
GD
15895
15896 wx_cv_func_vsscanf=no
15897
af15babd
VZ
15898fi
15899rm -f conftest*
4f14bcd8 15900
af15babd
VZ
15901fi
15902
4f14bcd8
GD
15903echo "$ac_t""$wx_cv_func_vsscanf" 1>&6
15904
15905if test "$wx_cv_func_vsscanf" = yes; then
15906 cat >> confdefs.h <<\EOF
15907#define HAVE_VSSCANF 1
af15babd 15908EOF
4f14bcd8 15909
af15babd 15910fi
af15babd 15911
4f14bcd8 15912if test "$TOOLKIT" != "MSW"; then
af15babd 15913
4f14bcd8
GD
15914
15915
15916ac_ext=C
15917# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15918ac_cpp='$CXXCPP $CPPFLAGS'
15919ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15920ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15921cross_compiling=$ac_cv_prog_cxx_cross
15922
b040e242
VS
15923
15924
15925 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
15926if test "${with_libiconv_prefix+set}" = set; then
15927 withval="$with_libiconv_prefix"
15928
15929 for dir in `echo "$withval" | tr : ' '`; do
15930 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
15931 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
15932 done
15933
15934fi
15935
15936
15937 echo $ac_n "checking for iconv""... $ac_c" 1>&6
21d1c967 15938echo "configure:15939: checking for iconv" >&5
b040e242 15939if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then
af15babd
VZ
15940 echo $ac_n "(cached) $ac_c" 1>&6
15941else
4f14bcd8 15942
b040e242
VS
15943 am_cv_func_iconv="no, consider installing GNU libiconv"
15944 am_cv_lib_iconv=no
4f14bcd8 15945 cat > conftest.$ac_ext <<EOF
21d1c967 15946#line 15947 "configure"
af15babd 15947#include "confdefs.h"
b040e242 15948#include <stdlib.h>
4f14bcd8 15949#include <iconv.h>
af15babd 15950int main() {
b040e242
VS
15951iconv_t cd = iconv_open("","");
15952 iconv(cd,NULL,NULL,NULL,NULL);
15953 iconv_close(cd);
af15babd
VZ
15954; return 0; }
15955EOF
21d1c967 15956if { (eval echo configure:15957: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
af15babd 15957 rm -rf conftest*
b040e242 15958 am_cv_func_iconv=yes
af15babd
VZ
15959else
15960 echo "configure: failed program was:" >&5
15961 cat conftest.$ac_ext >&5
b040e242
VS
15962fi
15963rm -f conftest*
15964 if test "$am_cv_func_iconv" != yes; then
15965 am_save_LIBS="$LIBS"
15966 LIBS="$LIBS -liconv"
15967 cat > conftest.$ac_ext <<EOF
21d1c967 15968#line 15969 "configure"
b040e242
VS
15969#include "confdefs.h"
15970#include <stdlib.h>
15971#include <iconv.h>
15972int main() {
15973iconv_t cd = iconv_open("","");
15974 iconv(cd,NULL,NULL,NULL,NULL);
15975 iconv_close(cd);
15976; return 0; }
15977EOF
21d1c967 15978if { (eval echo configure:15979: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
af15babd 15979 rm -rf conftest*
b040e242
VS
15980 am_cv_lib_iconv=yes
15981 am_cv_func_iconv=yes
15982else
15983 echo "configure: failed program was:" >&5
15984 cat conftest.$ac_ext >&5
af15babd
VZ
15985fi
15986rm -f conftest*
b040e242
VS
15987 LIBS="$am_save_LIBS"
15988 fi
15989
15990fi
15991
15992echo "$ac_t""$am_cv_func_iconv" 1>&6
15993 if test "$am_cv_func_iconv" = yes; then
15994 cat >> confdefs.h <<\EOF
15995#define HAVE_ICONV 1
15996EOF
15997
b7043674 15998 echo $ac_n "checking if iconv needs const""... $ac_c" 1>&6
21d1c967 15999echo "configure:16000: checking if iconv needs const" >&5
b7043674 16000if eval "test \"`echo '$''{'wx_cv_func_iconv_const'+set}'`\" = set"; then
b040e242
VS
16001 echo $ac_n "(cached) $ac_c" 1>&6
16002else
b7043674 16003 cat > conftest.$ac_ext <<EOF
21d1c967 16004#line 16005 "configure"
b040e242
VS
16005#include "confdefs.h"
16006
16007#include <stdlib.h>
16008#include <iconv.h>
16009extern
16010#ifdef __cplusplus
16011"C"
16012#endif
16013#if defined(__STDC__) || defined(__cplusplus)
16014size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
16015#else
16016size_t iconv();
16017#endif
b7043674 16018
b040e242 16019int main() {
af15babd 16020
b040e242
VS
16021; return 0; }
16022EOF
21d1c967 16023if { (eval echo configure:16024: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
b040e242 16024 rm -rf conftest*
b7043674 16025 wx_cv_func_iconv_const="no"
b040e242
VS
16026else
16027 echo "configure: failed program was:" >&5
16028 cat conftest.$ac_ext >&5
16029 rm -rf conftest*
b7043674
VZ
16030 wx_cv_func_iconv_const="yes"
16031
b040e242
VS
16032fi
16033rm -f conftest*
b7043674 16034
af15babd 16035fi
af15babd 16036
b7043674
VZ
16037echo "$ac_t""$wx_cv_func_iconv_const" 1>&6
16038
16039 iconv_const=
1c405bb5 16040 if test "x$wx_cv_func_iconv_const" = "xyes"; then
b7043674
VZ
16041 iconv_const="const"
16042 fi
16043
b040e242 16044 cat >> confdefs.h <<EOF
b7043674 16045#define ICONV_CONST $iconv_const
b040e242
VS
16046EOF
16047
16048 fi
16049 LIBICONV=
16050 if test "$am_cv_lib_iconv" = yes; then
16051 LIBICONV="-liconv"
16052 fi
16053
16054
16055LIBS="$LIBICONV $LIBS"
4f14bcd8
GD
16056ac_ext=c
16057# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16058ac_cpp='$CPP $CPPFLAGS'
16059ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16060ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16061cross_compiling=$ac_cv_prog_cc_cross
af15babd 16062
af15babd 16063
4f14bcd8
GD
16064if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
16065 for ac_func in sigaction
af15babd
VZ
16066do
16067echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21d1c967 16068echo "configure:16069: checking for $ac_func" >&5
af15babd
VZ
16069if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16070 echo $ac_n "(cached) $ac_c" 1>&6
16071else
16072 cat > conftest.$ac_ext <<EOF
21d1c967 16073#line 16074 "configure"
af15babd
VZ
16074#include "confdefs.h"
16075/* System header to define __stub macros and hopefully few prototypes,
16076 which can conflict with char $ac_func(); below. */
16077#include <assert.h>
16078/* Override any gcc2 internal prototype to avoid an error. */
16079/* We use char because int might match the return type of a gcc2
16080 builtin and then its argument prototype would still apply. */
16081char $ac_func();
16082
16083int main() {
16084
16085/* The GNU C library defines this for functions which it implements
16086 to always fail with ENOSYS. Some functions are actually named
16087 something starting with __ and the normal name is an alias. */
16088#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16089choke me
16090#else
16091$ac_func();
16092#endif
16093
16094; return 0; }
16095EOF
21d1c967 16096if { (eval echo configure:16097: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
af15babd
VZ
16097 rm -rf conftest*
16098 eval "ac_cv_func_$ac_func=yes"
16099else
16100 echo "configure: failed program was:" >&5
16101 cat conftest.$ac_ext >&5
16102 rm -rf conftest*
16103 eval "ac_cv_func_$ac_func=no"
16104fi
16105rm -f conftest*
16106fi
16107
16108if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16109 echo "$ac_t""yes" 1>&6
16110 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16111 cat >> confdefs.h <<EOF
16112#define $ac_tr_func 1
16113EOF
4f14bcd8 16114
af15babd
VZ
16115else
16116 echo "$ac_t""no" 1>&6
4f14bcd8
GD
16117fi
16118done
16119
16120
16121 if test "$ac_cv_func_sigaction" = "no"; then
16122 echo "configure: warning: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" 1>&2
16123 wxUSE_ON_FATAL_EXCEPTION=no
16124 fi
16125
16126 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
16127
16128 ac_ext=C
16129# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16130ac_cpp='$CXXCPP $CPPFLAGS'
16131ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16132ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16133cross_compiling=$ac_cv_prog_cxx_cross
16134
16135
16136 echo $ac_n "checking for sa_handler type""... $ac_c" 1>&6
21d1c967 16137echo "configure:16138: checking for sa_handler type" >&5
4f14bcd8 16138if eval "test \"`echo '$''{'wx_cv_type_sa_handler'+set}'`\" = set"; then
af15babd
VZ
16139 echo $ac_n "(cached) $ac_c" 1>&6
16140else
4f14bcd8
GD
16141
16142 cat > conftest.$ac_ext <<EOF
21d1c967 16143#line 16144 "configure"
af15babd 16144#include "confdefs.h"
4f14bcd8 16145#include <signal.h>
af15babd 16146int main() {
4f14bcd8
GD
16147
16148 extern void testSigHandler(int);
16149
16150 struct sigaction sa;
16151 sa.sa_handler = testSigHandler;
16152
af15babd
VZ
16153; return 0; }
16154EOF
21d1c967 16155if { (eval echo configure:16156: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
af15babd 16156 rm -rf conftest*
4f14bcd8
GD
16157
16158 wx_cv_type_sa_handler=int
16159
af15babd
VZ
16160else
16161 echo "configure: failed program was:" >&5
16162 cat conftest.$ac_ext >&5
16163 rm -rf conftest*
4f14bcd8
GD
16164
16165 wx_cv_type_sa_handler=void
16166
af15babd
VZ
16167fi
16168rm -f conftest*
4f14bcd8
GD
16169
16170fi
16171
16172echo "$ac_t""$wx_cv_type_sa_handler" 1>&6
16173
16174 ac_ext=c
16175# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16176ac_cpp='$CPP $CPPFLAGS'
16177ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16178ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16179cross_compiling=$ac_cv_prog_cc_cross
af15babd 16180
4f14bcd8
GD
16181
16182 cat >> confdefs.h <<EOF
16183#define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
af15babd
VZ
16184EOF
16185
4f14bcd8
GD
16186 fi
16187fi
af15babd 16188
4f14bcd8 16189for ac_func in vfork
af15babd
VZ
16190do
16191echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21d1c967 16192echo "configure:16193: checking for $ac_func" >&5
af15babd
VZ
16193if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16194 echo $ac_n "(cached) $ac_c" 1>&6
16195else
16196 cat > conftest.$ac_ext <<EOF
21d1c967 16197#line 16198 "configure"
af15babd
VZ
16198#include "confdefs.h"
16199/* System header to define __stub macros and hopefully few prototypes,
16200 which can conflict with char $ac_func(); below. */
16201#include <assert.h>
16202/* Override any gcc2 internal prototype to avoid an error. */
16203/* We use char because int might match the return type of a gcc2
16204 builtin and then its argument prototype would still apply. */
16205char $ac_func();
16206
16207int main() {
16208
16209/* The GNU C library defines this for functions which it implements
16210 to always fail with ENOSYS. Some functions are actually named
16211 something starting with __ and the normal name is an alias. */
16212#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16213choke me
16214#else
16215$ac_func();
16216#endif
16217
16218; return 0; }
16219EOF
21d1c967 16220if { (eval echo configure:16221: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
af15babd
VZ
16221 rm -rf conftest*
16222 eval "ac_cv_func_$ac_func=yes"
16223else
16224 echo "configure: failed program was:" >&5
16225 cat conftest.$ac_ext >&5
16226 rm -rf conftest*
16227 eval "ac_cv_func_$ac_func=no"
16228fi
16229rm -f conftest*
16230fi
16231
16232if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16233 echo "$ac_t""yes" 1>&6
16234 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16235 cat >> confdefs.h <<EOF
16236#define $ac_tr_func 1
16237EOF
4f14bcd8 16238
af15babd
VZ
16239else
16240 echo "$ac_t""no" 1>&6
af15babd
VZ
16241fi
16242done
16243
af15babd 16244
ade35f11
VZ
16245for ac_func in mkstemp mktemp
16246do
16247echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21d1c967 16248echo "configure:16249: checking for $ac_func" >&5
ade35f11
VZ
16249if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16250 echo $ac_n "(cached) $ac_c" 1>&6
16251else
16252 cat > conftest.$ac_ext <<EOF
21d1c967 16253#line 16254 "configure"
ade35f11
VZ
16254#include "confdefs.h"
16255/* System header to define __stub macros and hopefully few prototypes,
16256 which can conflict with char $ac_func(); below. */
16257#include <assert.h>
16258/* Override any gcc2 internal prototype to avoid an error. */
16259/* We use char because int might match the return type of a gcc2
16260 builtin and then its argument prototype would still apply. */
16261char $ac_func();
16262
16263int main() {
16264
16265/* The GNU C library defines this for functions which it implements
16266 to always fail with ENOSYS. Some functions are actually named
16267 something starting with __ and the normal name is an alias. */
16268#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16269choke me
16270#else
16271$ac_func();
16272#endif
16273
16274; return 0; }
16275EOF
21d1c967 16276if { (eval echo configure:16277: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ade35f11
VZ
16277 rm -rf conftest*
16278 eval "ac_cv_func_$ac_func=yes"
16279else
16280 echo "configure: failed program was:" >&5
16281 cat conftest.$ac_ext >&5
16282 rm -rf conftest*
16283 eval "ac_cv_func_$ac_func=no"
16284fi
16285rm -f conftest*
16286fi
16287
16288if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16289 echo "$ac_t""yes" 1>&6
16290 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16291 cat >> confdefs.h <<EOF
16292#define $ac_tr_func 1
16293EOF
16294 break
16295else
16296 echo "$ac_t""no" 1>&6
16297fi
16298done
16299
16300
4f14bcd8 16301echo $ac_n "checking for statfs""... $ac_c" 1>&6
21d1c967 16302echo "configure:16303: checking for statfs" >&5
4f14bcd8
GD
16303if eval "test \"`echo '$''{'wx_cv_func_statfs'+set}'`\" = set"; then
16304 echo $ac_n "(cached) $ac_c" 1>&6
16305else
16306 cat > conftest.$ac_ext <<EOF
21d1c967 16307#line 16308 "configure"
4f14bcd8
GD
16308#include "confdefs.h"
16309
16310 #if defined(__BSD__)
16311 #include <sys/param.h>
16312 #include <sys/mount.h>
16313 #else
16314 #include <sys/vfs.h>
16315 #endif
16316
16317int main() {
16318
16319 long l;
16320 struct statfs fs;
16321 statfs("/", &fs);
16322 l = fs.f_bsize;
16323 l += fs.f_blocks;
16324 l += fs.f_bavail;
16325
16326; return 0; }
16327EOF
21d1c967 16328if { (eval echo configure:16329: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4f14bcd8
GD
16329 rm -rf conftest*
16330
16331 wx_cv_func_statfs=yes
16332
16333else
16334 echo "configure: failed program was:" >&5
16335 cat conftest.$ac_ext >&5
16336 rm -rf conftest*
16337
16338 wx_cv_func_statfs=no
af15babd
VZ
16339
16340
16341fi
4f14bcd8 16342rm -f conftest*
af15babd
VZ
16343
16344fi
16345
4f14bcd8
GD
16346echo "$ac_t""$wx_cv_func_statfs" 1>&6
16347
16348if test "$wx_cv_func_statfs" = "yes"; then
16349 cat >> confdefs.h <<\EOF
16350#define HAVE_STATFS 1
16351EOF
16352
16353else
16354 echo $ac_n "checking for statvfs""... $ac_c" 1>&6
21d1c967 16355echo "configure:16356: checking for statvfs" >&5
4f14bcd8 16356if eval "test \"`echo '$''{'wx_cv_func_statvfs'+set}'`\" = set"; then
af15babd
VZ
16357 echo $ac_n "(cached) $ac_c" 1>&6
16358else
16359 cat > conftest.$ac_ext <<EOF
21d1c967 16360#line 16361 "configure"
af15babd 16361#include "confdefs.h"
af15babd 16362
4f14bcd8
GD
16363 #include <sys/statvfs.h>
16364
af15babd
VZ
16365int main() {
16366
4f14bcd8
GD
16367 long l;
16368 struct statvfs fs;
16369 statvfs("/", &fs);
16370 l = fs.f_bsize;
16371 l += fs.f_blocks;
16372 l += fs.f_bavail;
16373
af15babd
VZ
16374; return 0; }
16375EOF
21d1c967 16376if { (eval echo configure:16377: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
af15babd 16377 rm -rf conftest*
4f14bcd8
GD
16378
16379 wx_cv_func_statvfs=yes
16380
af15babd
VZ
16381else
16382 echo "configure: failed program was:" >&5
16383 cat conftest.$ac_ext >&5
16384 rm -rf conftest*
4f14bcd8
GD
16385
16386 wx_cv_func_statvfs=no
16387
16388
af15babd
VZ
16389fi
16390rm -f conftest*
4f14bcd8 16391
af15babd
VZ
16392fi
16393
4f14bcd8 16394echo "$ac_t""$wx_cv_func_statvfs" 1>&6
af15babd 16395
4f14bcd8
GD
16396 if test "$wx_cv_func_statvfs" = "yes"; then
16397 cat >> confdefs.h <<\EOF
16398#define HAVE_STATVFS 1
16399EOF
af15babd 16400
4f14bcd8
GD
16401 else
16402 echo "configure: warning: wxGetDiskSpace() function won't work without statfs()" 1>&2
16403 fi
16404fi
af15babd 16405
4f14bcd8
GD
16406if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
16407 for ac_func in fcntl flock
af15babd
VZ
16408do
16409echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21d1c967 16410echo "configure:16411: checking for $ac_func" >&5
af15babd
VZ
16411if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16412 echo $ac_n "(cached) $ac_c" 1>&6
16413else
16414 cat > conftest.$ac_ext <<EOF
21d1c967 16415#line 16416 "configure"
af15babd
VZ
16416#include "confdefs.h"
16417/* System header to define __stub macros and hopefully few prototypes,
16418 which can conflict with char $ac_func(); below. */
16419#include <assert.h>
16420/* Override any gcc2 internal prototype to avoid an error. */
af15babd
VZ
16421/* We use char because int might match the return type of a gcc2
16422 builtin and then its argument prototype would still apply. */
16423char $ac_func();
16424
16425int main() {
16426
16427/* The GNU C library defines this for functions which it implements
16428 to always fail with ENOSYS. Some functions are actually named
16429 something starting with __ and the normal name is an alias. */
16430#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16431choke me
16432#else
16433$ac_func();
16434#endif
16435
16436; return 0; }
16437EOF
21d1c967 16438if { (eval echo configure:16439: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
af15babd
VZ
16439 rm -rf conftest*
16440 eval "ac_cv_func_$ac_func=yes"
16441else
16442 echo "configure: failed program was:" >&5
16443 cat conftest.$ac_ext >&5
16444 rm -rf conftest*
16445 eval "ac_cv_func_$ac_func=no"
16446fi
16447rm -f conftest*
16448fi
16449
16450if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16451 echo "$ac_t""yes" 1>&6
16452 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16453 cat >> confdefs.h <<EOF
16454#define $ac_tr_func 1
16455EOF
4f14bcd8 16456 break
af15babd
VZ
16457else
16458 echo "$ac_t""no" 1>&6
16459fi
16460done
16461
16462
4f14bcd8
GD
16463 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
16464 echo "configure: warning: wxSingleInstanceChecker not available" 1>&2
16465 wxUSE_SNGLINST_CHECKER=no
16466 fi
16467fi
af15babd 16468
4f14bcd8 16469for ac_func in timegm
af15babd
VZ
16470do
16471echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21d1c967 16472echo "configure:16473: checking for $ac_func" >&5
af15babd
VZ
16473if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16474 echo $ac_n "(cached) $ac_c" 1>&6
16475else
16476 cat > conftest.$ac_ext <<EOF
21d1c967 16477#line 16478 "configure"
af15babd
VZ
16478#include "confdefs.h"
16479/* System header to define __stub macros and hopefully few prototypes,
16480 which can conflict with char $ac_func(); below. */
16481#include <assert.h>
16482/* Override any gcc2 internal prototype to avoid an error. */
16483/* We use char because int might match the return type of a gcc2
16484 builtin and then its argument prototype would still apply. */
16485char $ac_func();
16486
698dcdb6 16487int main() {
698dcdb6 16488
af15babd
VZ
16489/* The GNU C library defines this for functions which it implements
16490 to always fail with ENOSYS. Some functions are actually named
16491 something starting with __ and the normal name is an alias. */
16492#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16493choke me
16494#else
16495$ac_func();
16496#endif
16497
698dcdb6
VZ
16498; return 0; }
16499EOF
21d1c967 16500if { (eval echo configure:16501: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 16501 rm -rf conftest*
af15babd 16502 eval "ac_cv_func_$ac_func=yes"
698dcdb6
VZ
16503else
16504 echo "configure: failed program was:" >&5
16505 cat conftest.$ac_ext >&5
16506 rm -rf conftest*
af15babd 16507 eval "ac_cv_func_$ac_func=no"
1e487827 16508fi
9952adac 16509rm -f conftest*
af15babd 16510fi
703e0a69 16511
af15babd
VZ
16512if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16513 echo "$ac_t""yes" 1>&6
16514 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4f14bcd8
GD
16515 cat >> confdefs.h <<EOF
16516#define $ac_tr_func 1
16517EOF
16518
16519else
16520 echo "$ac_t""no" 1>&6
af15babd
VZ
16521fi
16522done
16523
16524
4f14bcd8 16525for ac_func in putenv setenv
10f2d63a 16526do
698dcdb6 16527echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21d1c967 16528echo "configure:16529: checking for $ac_func" >&5
698dcdb6
VZ
16529if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16530 echo $ac_n "(cached) $ac_c" 1>&6
16531else
16532 cat > conftest.$ac_ext <<EOF
21d1c967 16533#line 16534 "configure"
af15babd
VZ
16534#include "confdefs.h"
16535/* System header to define __stub macros and hopefully few prototypes,
16536 which can conflict with char $ac_func(); below. */
16537#include <assert.h>
16538/* Override any gcc2 internal prototype to avoid an error. */
16539/* We use char because int might match the return type of a gcc2
16540 builtin and then its argument prototype would still apply. */
16541char $ac_func();
16542
16543int main() {
16544
16545/* The GNU C library defines this for functions which it implements
16546 to always fail with ENOSYS. Some functions are actually named
16547 something starting with __ and the normal name is an alias. */
16548#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16549choke me
16550#else
16551$ac_func();
16552#endif
16553
16554; return 0; }
16555EOF
21d1c967 16556if { (eval echo configure:16557: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
af15babd
VZ
16557 rm -rf conftest*
16558 eval "ac_cv_func_$ac_func=yes"
16559else
16560 echo "configure: failed program was:" >&5
16561 cat conftest.$ac_ext >&5
16562 rm -rf conftest*
16563 eval "ac_cv_func_$ac_func=no"
16564fi
16565rm -f conftest*
16566fi
16567
16568if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16569 echo "$ac_t""yes" 1>&6
16570 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16571 cat >> confdefs.h <<EOF
16572#define $ac_tr_func 1
16573EOF
4f14bcd8 16574 break
af15babd
VZ
16575else
16576 echo "$ac_t""no" 1>&6
16577fi
af15babd
VZ
16578done
16579
16580
4f14bcd8
GD
16581HAVE_SOME_SLEEP_FUNC=0
16582if test "$USE_BEOS" = 1; then
16583 cat >> confdefs.h <<\EOF
16584#define HAVE_SLEEP 1
af15babd
VZ
16585EOF
16586
4f14bcd8 16587 HAVE_SOME_SLEEP_FUNC=1
10f2d63a
VZ
16588fi
16589
4f14bcd8
GD
16590if test "$USE_DARWIN" = 1; then
16591 cat >> confdefs.h <<\EOF
16592#define HAVE_USLEEP 1
af15babd 16593EOF
10f2d63a 16594
4f14bcd8 16595 HAVE_SOME_SLEEP_FUNC=1
10f2d63a
VZ
16596fi
16597
4f14bcd8
GD
16598if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
16599 POSIX4_LINK=
16600 for ac_func in nanosleep
16601do
16602echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21d1c967 16603echo "configure:16604: checking for $ac_func" >&5
4f14bcd8 16604if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
698dcdb6 16605 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 16606else
4f14bcd8 16607 cat > conftest.$ac_ext <<EOF
21d1c967 16608#line 16609 "configure"
10f2d63a 16609#include "confdefs.h"
4f14bcd8
GD
16610/* System header to define __stub macros and hopefully few prototypes,
16611 which can conflict with char $ac_func(); below. */
16612#include <assert.h>
10f2d63a
VZ
16613/* Override any gcc2 internal prototype to avoid an error. */
16614/* We use char because int might match the return type of a gcc2
698dcdb6 16615 builtin and then its argument prototype would still apply. */
4f14bcd8 16616char $ac_func();
698dcdb6
VZ
16617
16618int main() {
4f14bcd8
GD
16619
16620/* The GNU C library defines this for functions which it implements
16621 to always fail with ENOSYS. Some functions are actually named
16622 something starting with __ and the normal name is an alias. */
16623#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16624choke me
16625#else
16626$ac_func();
16627#endif
16628
698dcdb6
VZ
16629; return 0; }
16630EOF
21d1c967 16631if { (eval echo configure:16632: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 16632 rm -rf conftest*
4f14bcd8 16633 eval "ac_cv_func_$ac_func=yes"
698dcdb6
VZ
16634else
16635 echo "configure: failed program was:" >&5
16636 cat conftest.$ac_ext >&5
16637 rm -rf conftest*
4f14bcd8 16638 eval "ac_cv_func_$ac_func=no"
698dcdb6
VZ
16639fi
16640rm -f conftest*
698dcdb6 16641fi
4f14bcd8
GD
16642
16643if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
698dcdb6 16644 echo "$ac_t""yes" 1>&6
4f14bcd8
GD
16645 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16646 cat >> confdefs.h <<EOF
16647#define $ac_tr_func 1
16648EOF
16649 cat >> confdefs.h <<\EOF
16650#define HAVE_NANOSLEEP 1
16651EOF
16652
10f2d63a 16653else
698dcdb6 16654 echo "$ac_t""no" 1>&6
4f14bcd8 16655echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
21d1c967 16656echo "configure:16657: checking for nanosleep in -lposix4" >&5
4f14bcd8 16657ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
698dcdb6
VZ
16658if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16659 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 16660else
698dcdb6 16661 ac_save_LIBS="$LIBS"
4f14bcd8 16662LIBS="-lposix4 $LIBS"
698dcdb6 16663cat > conftest.$ac_ext <<EOF
21d1c967 16664#line 16665 "configure"
10f2d63a
VZ
16665#include "confdefs.h"
16666/* Override any gcc2 internal prototype to avoid an error. */
16667/* We use char because int might match the return type of a gcc2
698dcdb6 16668 builtin and then its argument prototype would still apply. */
4f14bcd8 16669char nanosleep();
698dcdb6
VZ
16670
16671int main() {
4f14bcd8 16672nanosleep()
698dcdb6
VZ
16673; return 0; }
16674EOF
21d1c967 16675if { (eval echo configure:16676: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
16676 rm -rf conftest*
16677 eval "ac_cv_lib_$ac_lib_var=yes"
16678else
16679 echo "configure: failed program was:" >&5
16680 cat conftest.$ac_ext >&5
16681 rm -rf conftest*
16682 eval "ac_cv_lib_$ac_lib_var=no"
16683fi
16684rm -f conftest*
16685LIBS="$ac_save_LIBS"
10f2d63a 16686
698dcdb6
VZ
16687fi
16688if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16689 echo "$ac_t""yes" 1>&6
16690
4f14bcd8
GD
16691 cat >> confdefs.h <<\EOF
16692#define HAVE_NANOSLEEP 1
16693EOF
16694
3d63bc3a 16695 POSIX4_LINK=" -lposix4"
4f14bcd8 16696
10f2d63a 16697else
698dcdb6 16698 echo "$ac_t""no" 1>&6
10f2d63a 16699
4f14bcd8
GD
16700 for ac_func in usleep
16701do
16702echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21d1c967 16703echo "configure:16704: checking for $ac_func" >&5
4f14bcd8 16704if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
698dcdb6 16705 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 16706else
698dcdb6 16707 cat > conftest.$ac_ext <<EOF
21d1c967 16708#line 16709 "configure"
10f2d63a 16709#include "confdefs.h"
4f14bcd8
GD
16710/* System header to define __stub macros and hopefully few prototypes,
16711 which can conflict with char $ac_func(); below. */
16712#include <assert.h>
16713/* Override any gcc2 internal prototype to avoid an error. */
16714/* We use char because int might match the return type of a gcc2
16715 builtin and then its argument prototype would still apply. */
16716char $ac_func();
16717
16718int main() {
16719
16720/* The GNU C library defines this for functions which it implements
16721 to always fail with ENOSYS. Some functions are actually named
16722 something starting with __ and the normal name is an alias. */
16723#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16724choke me
16725#else
16726$ac_func();
16727#endif
16728
16729; return 0; }
698dcdb6 16730EOF
21d1c967 16731if { (eval echo configure:16732: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 16732 rm -rf conftest*
4f14bcd8 16733 eval "ac_cv_func_$ac_func=yes"
1e487827 16734else
698dcdb6 16735 echo "configure: failed program was:" >&5
10f2d63a 16736 cat conftest.$ac_ext >&5
698dcdb6 16737 rm -rf conftest*
4f14bcd8 16738 eval "ac_cv_func_$ac_func=no"
10f2d63a 16739fi
698dcdb6 16740rm -f conftest*
10f2d63a 16741fi
4f14bcd8
GD
16742
16743if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
698dcdb6 16744 echo "$ac_t""yes" 1>&6
4f14bcd8
GD
16745 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16746 cat >> confdefs.h <<EOF
16747#define $ac_tr_func 1
16748EOF
16749 cat >> confdefs.h <<\EOF
16750#define HAVE_USLEEP 1
16751EOF
16752
698dcdb6
VZ
16753else
16754 echo "$ac_t""no" 1>&6
4f14bcd8
GD
16755echo "configure: warning: wxSleep() function will not work" 1>&2
16756
10f2d63a 16757fi
4f14bcd8 16758done
10f2d63a 16759
4f14bcd8 16760
698dcdb6 16761
6232543b 16762fi
10f2d63a 16763
698dcdb6 16764
4f14bcd8 16765
1e487827 16766fi
4f14bcd8 16767done
703e0a69 16768
10f2d63a
VZ
16769fi
16770
4f14bcd8 16771for ac_func in uname gethostname
70846f0a 16772do
698dcdb6 16773echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21d1c967 16774echo "configure:16775: checking for $ac_func" >&5
698dcdb6
VZ
16775if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16776 echo $ac_n "(cached) $ac_c" 1>&6
16777else
16778 cat > conftest.$ac_ext <<EOF
21d1c967 16779#line 16780 "configure"
70846f0a
VZ
16780#include "confdefs.h"
16781/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 16782 which can conflict with char $ac_func(); below. */
70846f0a
VZ
16783#include <assert.h>
16784/* Override any gcc2 internal prototype to avoid an error. */
16785/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
16786 builtin and then its argument prototype would still apply. */
16787char $ac_func();
16788
16789int main() {
70846f0a
VZ
16790
16791/* The GNU C library defines this for functions which it implements
16792 to always fail with ENOSYS. Some functions are actually named
16793 something starting with __ and the normal name is an alias. */
16794#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16795choke me
16796#else
698dcdb6 16797$ac_func();
70846f0a
VZ
16798#endif
16799
698dcdb6 16800; return 0; }
70846f0a 16801EOF
21d1c967 16802if { (eval echo configure:16803: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
16803 rm -rf conftest*
16804 eval "ac_cv_func_$ac_func=yes"
16805else
16806 echo "configure: failed program was:" >&5
16807 cat conftest.$ac_ext >&5
16808 rm -rf conftest*
16809 eval "ac_cv_func_$ac_func=no"
16810fi
16811rm -f conftest*
16812fi
70846f0a 16813
698dcdb6
VZ
16814if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16815 echo "$ac_t""yes" 1>&6
16816 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16817 cat >> confdefs.h <<EOF
16818#define $ac_tr_func 1
16819EOF
4f14bcd8 16820 break
698dcdb6
VZ
16821else
16822 echo "$ac_t""no" 1>&6
70846f0a
VZ
16823fi
16824done
16825
698dcdb6 16826
4f14bcd8
GD
16827
16828ac_ext=C
16829# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16830ac_cpp='$CXXCPP $CPPFLAGS'
16831ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16832ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16833cross_compiling=$ac_cv_prog_cxx_cross
16834
16835
16836for ac_func in strtok_r
10f2d63a 16837do
4f14bcd8 16838echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21d1c967 16839echo "configure:16840: checking for $ac_func" >&5
4f14bcd8 16840if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
698dcdb6
VZ
16841 echo $ac_n "(cached) $ac_c" 1>&6
16842else
16843 cat > conftest.$ac_ext <<EOF
21d1c967 16844#line 16845 "configure"
10f2d63a 16845#include "confdefs.h"
4f14bcd8
GD
16846/* System header to define __stub macros and hopefully few prototypes,
16847 which can conflict with char $ac_func(); below. */
16848#include <assert.h>
16849/* Override any gcc2 internal prototype to avoid an error. */
16850#ifdef __cplusplus
16851extern "C"
16852#endif
16853/* We use char because int might match the return type of a gcc2
16854 builtin and then its argument prototype would still apply. */
16855char $ac_func();
16856
16857int main() {
16858
16859/* The GNU C library defines this for functions which it implements
16860 to always fail with ENOSYS. Some functions are actually named
16861 something starting with __ and the normal name is an alias. */
16862#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16863choke me
16864#else
16865$ac_func();
16866#endif
16867
16868; return 0; }
698dcdb6 16869EOF
21d1c967 16870if { (eval echo configure:16871: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 16871 rm -rf conftest*
4f14bcd8 16872 eval "ac_cv_func_$ac_func=yes"
1e487827 16873else
698dcdb6 16874 echo "configure: failed program was:" >&5
10f2d63a 16875 cat conftest.$ac_ext >&5
698dcdb6 16876 rm -rf conftest*
4f14bcd8 16877 eval "ac_cv_func_$ac_func=no"
10f2d63a 16878fi
698dcdb6 16879rm -f conftest*
10f2d63a 16880fi
4f14bcd8
GD
16881
16882if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
698dcdb6 16883 echo "$ac_t""yes" 1>&6
4f14bcd8 16884 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
698dcdb6 16885 cat >> confdefs.h <<EOF
4f14bcd8 16886#define $ac_tr_func 1
10f2d63a 16887EOF
698dcdb6
VZ
16888
16889else
16890 echo "$ac_t""no" 1>&6
10f2d63a
VZ
16891fi
16892done
16893
698dcdb6 16894
4f14bcd8
GD
16895ac_ext=c
16896# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16897ac_cpp='$CPP $CPPFLAGS'
16898ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16899ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16900cross_compiling=$ac_cv_prog_cc_cross
16901
16902
16903INET_LINK=
16904for ac_func in inet_addr
16905do
16906echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21d1c967 16907echo "configure:16908: checking for $ac_func" >&5
4f14bcd8 16908if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
698dcdb6 16909 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 16910else
4f14bcd8 16911 cat > conftest.$ac_ext <<EOF
21d1c967 16912#line 16913 "configure"
10f2d63a 16913#include "confdefs.h"
4f14bcd8
GD
16914/* System header to define __stub macros and hopefully few prototypes,
16915 which can conflict with char $ac_func(); below. */
16916#include <assert.h>
10f2d63a
VZ
16917/* Override any gcc2 internal prototype to avoid an error. */
16918/* We use char because int might match the return type of a gcc2
698dcdb6 16919 builtin and then its argument prototype would still apply. */
4f14bcd8 16920char $ac_func();
698dcdb6
VZ
16921
16922int main() {
4f14bcd8
GD
16923
16924/* The GNU C library defines this for functions which it implements
16925 to always fail with ENOSYS. Some functions are actually named
16926 something starting with __ and the normal name is an alias. */
16927#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16928choke me
16929#else
16930$ac_func();
16931#endif
16932
698dcdb6
VZ
16933; return 0; }
16934EOF
21d1c967 16935if { (eval echo configure:16936: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 16936 rm -rf conftest*
4f14bcd8 16937 eval "ac_cv_func_$ac_func=yes"
698dcdb6
VZ
16938else
16939 echo "configure: failed program was:" >&5
16940 cat conftest.$ac_ext >&5
16941 rm -rf conftest*
4f14bcd8 16942 eval "ac_cv_func_$ac_func=no"
698dcdb6
VZ
16943fi
16944rm -f conftest*
698dcdb6 16945fi
4f14bcd8
GD
16946
16947if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
698dcdb6 16948 echo "$ac_t""yes" 1>&6
4f14bcd8
GD
16949 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16950 cat >> confdefs.h <<EOF
16951#define $ac_tr_func 1
16952EOF
16953 cat >> confdefs.h <<\EOF
16954#define HAVE_INET_ADDR 1
10f2d63a
VZ
16955EOF
16956
16957else
698dcdb6 16958 echo "$ac_t""no" 1>&6
4f14bcd8 16959echo $ac_n "checking for inet_addr in -lnsl""... $ac_c" 1>&6
21d1c967 16960echo "configure:16961: checking for inet_addr in -lnsl" >&5
4f14bcd8 16961ac_lib_var=`echo nsl'_'inet_addr | sed 'y%./+-%__p_%'`
698dcdb6
VZ
16962if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16963 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 16964else
698dcdb6 16965 ac_save_LIBS="$LIBS"
4f14bcd8 16966LIBS="-lnsl $LIBS"
698dcdb6 16967cat > conftest.$ac_ext <<EOF
21d1c967 16968#line 16969 "configure"
10f2d63a
VZ
16969#include "confdefs.h"
16970/* Override any gcc2 internal prototype to avoid an error. */
16971/* We use char because int might match the return type of a gcc2
698dcdb6 16972 builtin and then its argument prototype would still apply. */
4f14bcd8 16973char inet_addr();
698dcdb6
VZ
16974
16975int main() {
4f14bcd8 16976inet_addr()
698dcdb6
VZ
16977; return 0; }
16978EOF
21d1c967 16979if { (eval echo configure:16980: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
16980 rm -rf conftest*
16981 eval "ac_cv_lib_$ac_lib_var=yes"
16982else
16983 echo "configure: failed program was:" >&5
16984 cat conftest.$ac_ext >&5
16985 rm -rf conftest*
16986 eval "ac_cv_lib_$ac_lib_var=no"
16987fi
16988rm -f conftest*
16989LIBS="$ac_save_LIBS"
16990
16991fi
16992if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16993 echo "$ac_t""yes" 1>&6
4f14bcd8 16994 INET_LINK="nsl"
10f2d63a 16995else
698dcdb6 16996 echo "$ac_t""no" 1>&6
4f14bcd8 16997echo $ac_n "checking for inet_addr in -lresolv""... $ac_c" 1>&6
21d1c967 16998echo "configure:16999: checking for inet_addr in -lresolv" >&5
4f14bcd8 16999ac_lib_var=`echo resolv'_'inet_addr | sed 'y%./+-%__p_%'`
698dcdb6
VZ
17000if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17001 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 17002else
698dcdb6 17003 ac_save_LIBS="$LIBS"
4f14bcd8 17004LIBS="-lresolv $LIBS"
698dcdb6 17005cat > conftest.$ac_ext <<EOF
21d1c967 17006#line 17007 "configure"
10f2d63a
VZ
17007#include "confdefs.h"
17008/* Override any gcc2 internal prototype to avoid an error. */
17009/* We use char because int might match the return type of a gcc2
698dcdb6 17010 builtin and then its argument prototype would still apply. */
4f14bcd8 17011char inet_addr();
698dcdb6
VZ
17012
17013int main() {
4f14bcd8 17014inet_addr()
698dcdb6
VZ
17015; return 0; }
17016EOF
21d1c967 17017if { (eval echo configure:17018: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
17018 rm -rf conftest*
17019 eval "ac_cv_lib_$ac_lib_var=yes"
17020else
17021 echo "configure: failed program was:" >&5
17022 cat conftest.$ac_ext >&5
17023 rm -rf conftest*
17024 eval "ac_cv_lib_$ac_lib_var=no"
17025fi
17026rm -f conftest*
17027LIBS="$ac_save_LIBS"
17028
17029fi
17030if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17031 echo "$ac_t""yes" 1>&6
4f14bcd8 17032 INET_LINK="resolv"
698dcdb6 17033else
4f14bcd8 17034 echo "$ac_t""no" 1>&6
3c011993 17035echo $ac_n "checking for inet_addr in -lsocket""... $ac_c" 1>&6
21d1c967 17036echo "configure:17037: checking for inet_addr in -lsocket" >&5
3c011993
VZ
17037ac_lib_var=`echo socket'_'inet_addr | sed 'y%./+-%__p_%'`
17038if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17039 echo $ac_n "(cached) $ac_c" 1>&6
17040else
17041 ac_save_LIBS="$LIBS"
17042LIBS="-lsocket $LIBS"
17043cat > conftest.$ac_ext <<EOF
21d1c967 17044#line 17045 "configure"
3c011993
VZ
17045#include "confdefs.h"
17046/* Override any gcc2 internal prototype to avoid an error. */
17047/* We use char because int might match the return type of a gcc2
17048 builtin and then its argument prototype would still apply. */
17049char inet_addr();
17050
17051int main() {
17052inet_addr()
17053; return 0; }
17054EOF
21d1c967 17055if { (eval echo configure:17056: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3c011993
VZ
17056 rm -rf conftest*
17057 eval "ac_cv_lib_$ac_lib_var=yes"
17058else
17059 echo "configure: failed program was:" >&5
17060 cat conftest.$ac_ext >&5
17061 rm -rf conftest*
17062 eval "ac_cv_lib_$ac_lib_var=no"
17063fi
17064rm -f conftest*
17065LIBS="$ac_save_LIBS"
17066
17067fi
17068if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17069 echo "$ac_t""yes" 1>&6
17070 INET_LINK="socket"
17071
17072else
17073 echo "$ac_t""no" 1>&6
17074fi
17075
17076
4f14bcd8 17077fi
698dcdb6 17078
4f14bcd8 17079
698dcdb6 17080fi
4f14bcd8
GD
17081
17082
698dcdb6
VZ
17083
17084fi
4f14bcd8
GD
17085done
17086
17087
17088for ac_func in inet_aton
17089do
17090echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21d1c967 17091echo "configure:17092: checking for $ac_func" >&5
4f14bcd8 17092if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
698dcdb6
VZ
17093 echo $ac_n "(cached) $ac_c" 1>&6
17094else
4f14bcd8 17095 cat > conftest.$ac_ext <<EOF
21d1c967 17096#line 17097 "configure"
f6bcfd97 17097#include "confdefs.h"
4f14bcd8
GD
17098/* System header to define __stub macros and hopefully few prototypes,
17099 which can conflict with char $ac_func(); below. */
17100#include <assert.h>
f6bcfd97
BP
17101/* Override any gcc2 internal prototype to avoid an error. */
17102/* We use char because int might match the return type of a gcc2
698dcdb6 17103 builtin and then its argument prototype would still apply. */
4f14bcd8 17104char $ac_func();
698dcdb6
VZ
17105
17106int main() {
4f14bcd8
GD
17107
17108/* The GNU C library defines this for functions which it implements
17109 to always fail with ENOSYS. Some functions are actually named
17110 something starting with __ and the normal name is an alias. */
17111#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17112choke me
17113#else
17114$ac_func();
17115#endif
17116
698dcdb6
VZ
17117; return 0; }
17118EOF
21d1c967 17119if { (eval echo configure:17120: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 17120 rm -rf conftest*
4f14bcd8 17121 eval "ac_cv_func_$ac_func=yes"
698dcdb6
VZ
17122else
17123 echo "configure: failed program was:" >&5
17124 cat conftest.$ac_ext >&5
17125 rm -rf conftest*
4f14bcd8 17126 eval "ac_cv_func_$ac_func=no"
698dcdb6
VZ
17127fi
17128rm -f conftest*
698dcdb6 17129fi
4f14bcd8
GD
17130
17131if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
698dcdb6 17132 echo "$ac_t""yes" 1>&6
4f14bcd8
GD
17133 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17134 cat >> confdefs.h <<EOF
17135#define $ac_tr_func 1
17136EOF
17137 cat >> confdefs.h <<\EOF
17138#define HAVE_INET_ATON 1
17139EOF
17140
10f2d63a 17141else
698dcdb6 17142 echo "$ac_t""no" 1>&6
4f14bcd8 17143 echo $ac_n "checking for inet_aton in -l$INET_LINK""... $ac_c" 1>&6
21d1c967 17144echo "configure:17145: checking for inet_aton in -l$INET_LINK" >&5
4f14bcd8 17145ac_lib_var=`echo $INET_LINK'_'inet_aton | sed 'y%./+-%__p_%'`
698dcdb6
VZ
17146if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17147 echo $ac_n "(cached) $ac_c" 1>&6
1e487827 17148else
698dcdb6 17149 ac_save_LIBS="$LIBS"
4f14bcd8 17150LIBS="-l$INET_LINK $LIBS"
698dcdb6 17151cat > conftest.$ac_ext <<EOF
21d1c967 17152#line 17153 "configure"
10f2d63a 17153#include "confdefs.h"
6232543b 17154/* Override any gcc2 internal prototype to avoid an error. */
6232543b 17155/* We use char because int might match the return type of a gcc2
698dcdb6 17156 builtin and then its argument prototype would still apply. */
4f14bcd8 17157char inet_aton();
698dcdb6
VZ
17158
17159int main() {
4f14bcd8 17160inet_aton()
698dcdb6
VZ
17161; return 0; }
17162EOF
21d1c967 17163if { (eval echo configure:17164: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
17164 rm -rf conftest*
17165 eval "ac_cv_lib_$ac_lib_var=yes"
17166else
17167 echo "configure: failed program was:" >&5
17168 cat conftest.$ac_ext >&5
17169 rm -rf conftest*
17170 eval "ac_cv_lib_$ac_lib_var=no"
17171fi
17172rm -f conftest*
17173LIBS="$ac_save_LIBS"
10f2d63a 17174
698dcdb6
VZ
17175fi
17176if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17177 echo "$ac_t""yes" 1>&6
4f14bcd8
GD
17178 cat >> confdefs.h <<\EOF
17179#define HAVE_INET_ATON 1
17180EOF
17181
698dcdb6
VZ
17182else
17183 echo "$ac_t""no" 1>&6
10f2d63a
VZ
17184fi
17185
4f14bcd8 17186
10f2d63a 17187fi
4f14bcd8 17188done
10f2d63a 17189
4f14bcd8
GD
17190
17191if test "x$INET_LINK" != "x"; then
17192 cat >> confdefs.h <<\EOF
17193#define HAVE_INET_ADDR 1
17194EOF
17195
3d63bc3a 17196 INET_LINK=" -l$INET_LINK"
6232543b 17197fi
10f2d63a 17198
1e487827 17199fi
703e0a69 17200
698dcdb6 17201
4f14bcd8
GD
17202cat > confcache <<\EOF
17203# This file is a shell script that caches the results of configure
17204# tests run on this system so they can be shared between configure
17205# scripts and configure runs. It is not useful on other systems.
17206# If it contains results you don't want to keep, you may remove or edit it.
17207#
17208# By default, configure uses ./config.cache as the cache file,
17209# creating it if it does not exist already. You can give configure
17210# the --cache-file=FILE option to use a different cache file; that is
17211# what configure does when it calls configure scripts in
17212# subdirectories, so they share the cache.
17213# Giving --cache-file=/dev/null disables caching, for debugging configure.
17214# config.status only pays attention to the cache file if you give it the
17215# --recheck option to rerun configure.
17216#
f6bcfd97 17217EOF
4f14bcd8
GD
17218# The following way of writing the cache mishandles newlines in values,
17219# but we know of no workaround that is simple, portable, and efficient.
17220# So, don't put newlines in cache variables' values.
17221# Ultrix sh set writes to stderr and can't be redirected directly,
17222# and sets the high bit in the cache file unless we assign to the vars.
17223(set) 2>&1 |
17224 case `(ac_space=' '; set | grep ac_space) 2>&1` in
17225 *ac_space=\ *)
17226 # `set' does not quote correctly, so add quotes (double-quote substitution
17227 # turns \\\\ into \\, and sed turns \\ into \).
17228 sed -n \
17229 -e "s/'/'\\\\''/g" \
17230 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
17231 ;;
17232 *)
17233 # `set' quotes correctly as required by POSIX, so do not add quotes.
17234 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
17235 ;;
17236 esac >> confcache
17237if cmp -s $cache_file confcache; then
17238 :
17239else
17240 if test -w $cache_file; then
17241 echo "updating cache $cache_file"
17242 cat confcache > $cache_file
f6bcfd97 17243 else
4f14bcd8 17244 echo "not updating unwritable cache $cache_file"
f6bcfd97 17245 fi
4f14bcd8
GD
17246fi
17247rm -f confcache
f6bcfd97 17248
4f14bcd8
GD
17249
17250
009fead0 17251CPP_MT_FLAG=
4f14bcd8
GD
17252if test "$TOOLKIT" != "MSW"; then
17253
009fead0 17254
7274f1c7 17255 THREADS_LINK=
009fead0 17256 THREADS_CFLAGS=
7274f1c7
RL
17257
17258 if test "$wxUSE_THREADS" = "yes" ; then
17259 if test "$wxUSE_WINE" = 1 ; then
156b2523 17260 echo "configure: warning: Threads are not supported under WINE... disabled" 1>&2
7274f1c7
RL
17261 wxUSE_THREADS="no"
17262 elif test "$USE_BEOS" = 1; then
156b2523 17263 echo "configure: warning: BeOS threads are not yet supported... disabled" 1>&2
7274f1c7
RL
17264 wxUSE_THREADS="no"
17265 fi
4f14bcd8 17266 fi
4f14bcd8 17267
7274f1c7 17268 if test "$wxUSE_THREADS" = "yes" ; then
009fead0 17269
3010d50a 17270
009fead0
VZ
17271 THREAD_OPTS="-pthread"
17272 case "${host}" in
17273 *-*-solaris2* | *-*-sunos4* )
17274 if test "x$GCC" = "xyes"; then
126be6b4 17275 THREAD_OPTS="-pthreads $THREAD_OPTS"
009fead0
VZ
17276 else
17277 THREAD_OPTS="-mt $THREAD_OPTS"
17278 fi
17279 ;;
17280 *-*-freebsd*)
17281 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
17282 ;;
4101db81 17283 *-*-darwin*)
8f4a9a10 17284 THREAD_OPTS=""
4101db81 17285 ;;
8f4a9a10 17286 *-*-aix*)
009fead0
VZ
17287 THREAD_OPTS="pthreads"
17288 ;;
009fead0 17289 esac
4f14bcd8 17290
02a1dfba 17291 THREAD_OPTS="$THREAD_OPTS pthread none"
595e0e44 17292
009fead0
VZ
17293 THREADS_OK=no
17294 for flag in $THREAD_OPTS; do
17295 case $flag in
17296 none)
17297 echo $ac_n "checking whether pthreads work without any flags""... $ac_c" 1>&6
21d1c967 17298echo "configure:17299: checking whether pthreads work without any flags" >&5
009fead0 17299 ;;
698dcdb6 17300
009fead0
VZ
17301 -*)
17302 echo $ac_n "checking whether pthreads work with $flag""... $ac_c" 1>&6
21d1c967 17303echo "configure:17304: checking whether pthreads work with $flag" >&5
009fead0
VZ
17304 THREADS_CFLAGS="$flag"
17305 ;;
698dcdb6 17306
009fead0
VZ
17307 *)
17308 echo $ac_n "checking for the pthreads library -l$flag""... $ac_c" 1>&6
21d1c967 17309echo "configure:17310: checking for the pthreads library -l$flag" >&5
009fead0
VZ
17310 THREADS_LINK="-l$flag"
17311 ;;
17312 esac
10f2d63a 17313
009fead0
VZ
17314 save_LIBS="$LIBS"
17315 save_CFLAGS="$CFLAGS"
17316 LIBS="$THREADS_LINK $LIBS"
04727afd 17317 CFLAGS="$THREADS_CFLAGS $CFLAGS"
10f2d63a 17318
009fead0 17319 cat > conftest.$ac_ext <<EOF
21d1c967 17320#line 17321 "configure"
009fead0
VZ
17321#include "confdefs.h"
17322#include <pthread.h>
4f14bcd8 17323int main() {
009fead0 17324pthread_create(0,0,0,0);
698dcdb6
VZ
17325; return 0; }
17326EOF
21d1c967 17327if { (eval echo configure:17328: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 17328 rm -rf conftest*
009fead0 17329 THREADS_OK=yes
10f2d63a 17330else
698dcdb6
VZ
17331 echo "configure: failed program was:" >&5
17332 cat conftest.$ac_ext >&5
6232543b 17333fi
698dcdb6 17334rm -f conftest*
698dcdb6 17335
009fead0
VZ
17336 LIBS="$save_LIBS"
17337 CFLAGS="$save_CFLAGS"
d9b9876f 17338
009fead0
VZ
17339 echo "$ac_t""$THREADS_OK" 1>&6
17340 if test "x$THREADS_OK" = "xyes"; then
17341 break;
17342 fi
d9b9876f 17343
009fead0
VZ
17344 THREADS_LINK=""
17345 THREADS_CFLAGS=""
17346 done
4f14bcd8 17347
009fead0
VZ
17348 if test "x$THREADS_OK" != "xyes"; then
17349 wxUSE_THREADS=no
17350 echo "configure: warning: No thread support on this system... disabled" 1>&2
17351 else
fe5a9cab
VZ
17352 LIBS="$THREADS_LINK $THREADS_CFLAGS $LIBS"
17353
009fead0 17354 echo $ac_n "checking if more special flags are required for pthreads""... $ac_c" 1>&6
21d1c967 17355echo "configure:17356: checking if more special flags are required for pthreads" >&5
009fead0
VZ
17356 flag=no
17357 case "${host}" in
17358 *-aix* | *-freebsd*)
17359 flag="-D_THREAD_SAFE"
17360 ;;
17361 *solaris* | alpha*-osf*)
17362 flag="-D_REENTRANT"
17363 ;;
17364 esac
17365 echo "$ac_t""${flag}" 1>&6
17366 if test "x$flag" != xno; then
04727afd 17367 THREADS_CFLAGS="$THREADS_CFLAGS $flag"
009fead0
VZ
17368 fi
17369
009fead0 17370 if test "x$THREADS_CFLAGS" != "x"; then
04727afd 17371 CFLAGS="$CFLAGS $THREADS_CFLAGS"
009fead0
VZ
17372 CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS"
17373 fi
17374 fi
4f14bcd8 17375 fi
4f14bcd8 17376
7274f1c7
RL
17377 if test "$wxUSE_THREADS" = "yes" ; then
17378 for ac_func in thr_setconcurrency
4f14bcd8
GD
17379do
17380echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21d1c967 17381echo "configure:17382: checking for $ac_func" >&5
4f14bcd8 17382if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
698dcdb6
VZ
17383 echo $ac_n "(cached) $ac_c" 1>&6
17384else
4f14bcd8 17385 cat > conftest.$ac_ext <<EOF
21d1c967 17386#line 17387 "configure"
d9b9876f 17387#include "confdefs.h"
4f14bcd8
GD
17388/* System header to define __stub macros and hopefully few prototypes,
17389 which can conflict with char $ac_func(); below. */
17390#include <assert.h>
17391/* Override any gcc2 internal prototype to avoid an error. */
17392/* We use char because int might match the return type of a gcc2
17393 builtin and then its argument prototype would still apply. */
17394char $ac_func();
17395
698dcdb6 17396int main() {
d9b9876f 17397
4f14bcd8
GD
17398/* The GNU C library defines this for functions which it implements
17399 to always fail with ENOSYS. Some functions are actually named
17400 something starting with __ and the normal name is an alias. */
17401#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17402choke me
17403#else
17404$ac_func();
17405#endif
17406
698dcdb6
VZ
17407; return 0; }
17408EOF
21d1c967 17409if { (eval echo configure:17410: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 17410 rm -rf conftest*
4f14bcd8 17411 eval "ac_cv_func_$ac_func=yes"
d9b9876f 17412else
698dcdb6
VZ
17413 echo "configure: failed program was:" >&5
17414 cat conftest.$ac_ext >&5
17415 rm -rf conftest*
4f14bcd8 17416 eval "ac_cv_func_$ac_func=no"
6232543b 17417fi
698dcdb6 17418rm -f conftest*
1e487827 17419fi
698dcdb6 17420
4f14bcd8
GD
17421if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17422 echo "$ac_t""yes" 1>&6
17423 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17424 cat >> confdefs.h <<EOF
17425#define $ac_tr_func 1
d9b9876f 17426EOF
4f14bcd8
GD
17427
17428else
17429 echo "$ac_t""no" 1>&6
10f2d63a 17430fi
4f14bcd8 17431done
10f2d63a 17432
10f2d63a 17433
7274f1c7 17434 for ac_hdr in sched.h
4f14bcd8
GD
17435do
17436ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
17437echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
21d1c967 17438echo "configure:17439: checking for $ac_hdr" >&5
4f14bcd8
GD
17439if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
17440 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 17441else
4f14bcd8 17442 cat > conftest.$ac_ext <<EOF
21d1c967 17443#line 17444 "configure"
4f14bcd8
GD
17444#include "confdefs.h"
17445#include <$ac_hdr>
13111b2a 17446EOF
4f14bcd8 17447ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
21d1c967 17448{ (eval echo configure:17449: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4f14bcd8
GD
17449ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
17450if test -z "$ac_err"; then
17451 rm -rf conftest*
17452 eval "ac_cv_header_$ac_safe=yes"
17453else
17454 echo "$ac_err" >&5
17455 echo "configure: failed program was:" >&5
17456 cat conftest.$ac_ext >&5
17457 rm -rf conftest*
17458 eval "ac_cv_header_$ac_safe=no"
13111b2a 17459fi
4f14bcd8 17460rm -f conftest*
10f2d63a 17461fi
4f14bcd8
GD
17462if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
17463 echo "$ac_t""yes" 1>&6
17464 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
698dcdb6 17465 cat >> confdefs.h <<EOF
4f14bcd8 17466#define $ac_tr_hdr 1
f6bcfd97 17467EOF
4f14bcd8
GD
17468
17469else
17470 echo "$ac_t""no" 1>&6
f6bcfd97 17471fi
4f14bcd8 17472done
f6bcfd97 17473
009fead0
VZ
17474 if test "$ac_cv_header_sched_h" = "yes"; then
17475 echo $ac_n "checking for sched_yield""... $ac_c" 1>&6
21d1c967 17476echo "configure:17477: checking for sched_yield" >&5
009fead0 17477if eval "test \"`echo '$''{'ac_cv_func_sched_yield'+set}'`\" = set"; then
4f14bcd8
GD
17478 echo $ac_n "(cached) $ac_c" 1>&6
17479else
009fead0 17480 cat > conftest.$ac_ext <<EOF
21d1c967 17481#line 17482 "configure"
4f14bcd8 17482#include "confdefs.h"
009fead0
VZ
17483/* System header to define __stub macros and hopefully few prototypes,
17484 which can conflict with char sched_yield(); below. */
17485#include <assert.h>
4f14bcd8
GD
17486/* Override any gcc2 internal prototype to avoid an error. */
17487/* We use char because int might match the return type of a gcc2
17488 builtin and then its argument prototype would still apply. */
17489char sched_yield();
10f2d63a 17490
4f14bcd8 17491int main() {
009fead0
VZ
17492
17493/* The GNU C library defines this for functions which it implements
17494 to always fail with ENOSYS. Some functions are actually named
17495 something starting with __ and the normal name is an alias. */
17496#if defined (__stub_sched_yield) || defined (__stub___sched_yield)
17497choke me
17498#else
17499sched_yield();
17500#endif
17501
4f14bcd8 17502; return 0; }
10f2d63a 17503EOF
21d1c967 17504if { (eval echo configure:17505: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4f14bcd8 17505 rm -rf conftest*
009fead0 17506 eval "ac_cv_func_sched_yield=yes"
10f2d63a 17507else
4f14bcd8
GD
17508 echo "configure: failed program was:" >&5
17509 cat conftest.$ac_ext >&5
17510 rm -rf conftest*
009fead0 17511 eval "ac_cv_func_sched_yield=no"
10f2d63a 17512fi
4f14bcd8 17513rm -f conftest*
4f14bcd8 17514fi
009fead0
VZ
17515
17516if eval "test \"`echo '$ac_cv_func_'sched_yield`\" = yes"; then
4f14bcd8
GD
17517 echo "$ac_t""yes" 1>&6
17518 cat >> confdefs.h <<\EOF
17519#define HAVE_SCHED_YIELD 1
10f2d63a
VZ
17520EOF
17521
4f14bcd8
GD
17522else
17523 echo "$ac_t""no" 1>&6
009fead0
VZ
17524
17525 echo $ac_n "checking for sched_yield in -lposix4""... $ac_c" 1>&6
21d1c967 17526echo "configure:17527: checking for sched_yield in -lposix4" >&5
4f14bcd8
GD
17527ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'`
17528if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17529 echo $ac_n "(cached) $ac_c" 1>&6
17530else
17531 ac_save_LIBS="$LIBS"
17532LIBS="-lposix4 $LIBS"
17533cat > conftest.$ac_ext <<EOF
21d1c967 17534#line 17535 "configure"
4f14bcd8
GD
17535#include "confdefs.h"
17536/* Override any gcc2 internal prototype to avoid an error. */
17537/* We use char because int might match the return type of a gcc2
17538 builtin and then its argument prototype would still apply. */
17539char sched_yield();
47c13eb7 17540
4f14bcd8
GD
17541int main() {
17542sched_yield()
17543; return 0; }
10f2d63a 17544EOF
21d1c967 17545if { (eval echo configure:17546: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4f14bcd8
GD
17546 rm -rf conftest*
17547 eval "ac_cv_lib_$ac_lib_var=yes"
10f2d63a 17548else
4f14bcd8
GD
17549 echo "configure: failed program was:" >&5
17550 cat conftest.$ac_ext >&5
17551 rm -rf conftest*
17552 eval "ac_cv_lib_$ac_lib_var=no"
10f2d63a 17553fi
4f14bcd8
GD
17554rm -f conftest*
17555LIBS="$ac_save_LIBS"
10f2d63a 17556
54276ccf 17557fi
4f14bcd8
GD
17558if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17559 echo "$ac_t""yes" 1>&6
17560 cat >> confdefs.h <<\EOF
17561#define HAVE_SCHED_YIELD 1
54276ccf 17562EOF
3d63bc3a 17563 POSIX4_LINK=" -lposix4"
4f14bcd8
GD
17564else
17565 echo "$ac_t""no" 1>&6
17566echo "configure: warning: wxThread::Yield will not work properly" 1>&2
009fead0 17567
54276ccf
VZ
17568fi
17569
009fead0
VZ
17570
17571
4f14bcd8 17572fi
698dcdb6 17573
009fead0 17574 fi
10f2d63a 17575
7274f1c7 17576 HAVE_PRIOR_FUNCS=0
009fead0 17577 echo $ac_n "checking for pthread_attr_getschedpolicy""... $ac_c" 1>&6
21d1c967 17578echo "configure:17579: checking for pthread_attr_getschedpolicy" >&5
009fead0 17579if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_getschedpolicy'+set}'`\" = set"; then
698dcdb6
VZ
17580 echo $ac_n "(cached) $ac_c" 1>&6
17581else
009fead0 17582 cat > conftest.$ac_ext <<EOF
21d1c967 17583#line 17584 "configure"
422107f9 17584#include "confdefs.h"
009fead0
VZ
17585/* System header to define __stub macros and hopefully few prototypes,
17586 which can conflict with char pthread_attr_getschedpolicy(); below. */
17587#include <assert.h>
4f14bcd8
GD
17588/* Override any gcc2 internal prototype to avoid an error. */
17589/* We use char because int might match the return type of a gcc2
17590 builtin and then its argument prototype would still apply. */
17591char pthread_attr_getschedpolicy();
17592
17593int main() {
009fead0
VZ
17594
17595/* The GNU C library defines this for functions which it implements
17596 to always fail with ENOSYS. Some functions are actually named
17597 something starting with __ and the normal name is an alias. */
17598#if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy)
17599choke me
17600#else
17601pthread_attr_getschedpolicy();
17602#endif
17603
4f14bcd8 17604; return 0; }
698dcdb6 17605EOF
21d1c967 17606if { (eval echo configure:17607: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 17607 rm -rf conftest*
009fead0 17608 eval "ac_cv_func_pthread_attr_getschedpolicy=yes"
422107f9 17609else
698dcdb6 17610 echo "configure: failed program was:" >&5
422107f9 17611 cat conftest.$ac_ext >&5
698dcdb6 17612 rm -rf conftest*
009fead0 17613 eval "ac_cv_func_pthread_attr_getschedpolicy=no"
422107f9 17614fi
698dcdb6 17615rm -f conftest*
422107f9 17616fi
009fead0
VZ
17617
17618if eval "test \"`echo '$ac_cv_func_'pthread_attr_getschedpolicy`\" = yes"; then
698dcdb6 17619 echo "$ac_t""yes" 1>&6
009fead0 17620 echo $ac_n "checking for pthread_attr_setschedparam""... $ac_c" 1>&6
21d1c967 17621echo "configure:17622: checking for pthread_attr_setschedparam" >&5
009fead0 17622if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_setschedparam'+set}'`\" = set"; then
698dcdb6 17623 echo $ac_n "(cached) $ac_c" 1>&6
422107f9 17624else
009fead0 17625 cat > conftest.$ac_ext <<EOF
21d1c967 17626#line 17627 "configure"
422107f9 17627#include "confdefs.h"
009fead0
VZ
17628/* System header to define __stub macros and hopefully few prototypes,
17629 which can conflict with char pthread_attr_setschedparam(); below. */
17630#include <assert.h>
422107f9
VZ
17631/* Override any gcc2 internal prototype to avoid an error. */
17632/* We use char because int might match the return type of a gcc2
698dcdb6 17633 builtin and then its argument prototype would still apply. */
4f14bcd8 17634char pthread_attr_setschedparam();
698dcdb6
VZ
17635
17636int main() {
009fead0
VZ
17637
17638/* The GNU C library defines this for functions which it implements
17639 to always fail with ENOSYS. Some functions are actually named
17640 something starting with __ and the normal name is an alias. */
17641#if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam)
17642choke me
17643#else
17644pthread_attr_setschedparam();
17645#endif
17646
698dcdb6
VZ
17647; return 0; }
17648EOF
21d1c967 17649if { (eval echo configure:17650: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 17650 rm -rf conftest*
009fead0 17651 eval "ac_cv_func_pthread_attr_setschedparam=yes"
698dcdb6
VZ
17652else
17653 echo "configure: failed program was:" >&5
17654 cat conftest.$ac_ext >&5
17655 rm -rf conftest*
009fead0 17656 eval "ac_cv_func_pthread_attr_setschedparam=no"
698dcdb6
VZ
17657fi
17658rm -f conftest*
698dcdb6 17659fi
009fead0
VZ
17660
17661if eval "test \"`echo '$ac_cv_func_'pthread_attr_setschedparam`\" = yes"; then
698dcdb6 17662 echo "$ac_t""yes" 1>&6
009fead0 17663 echo $ac_n "checking for sched_get_priority_max""... $ac_c" 1>&6
21d1c967 17664echo "configure:17665: checking for sched_get_priority_max" >&5
009fead0 17665if eval "test \"`echo '$''{'ac_cv_func_sched_get_priority_max'+set}'`\" = set"; then
698dcdb6
VZ
17666 echo $ac_n "(cached) $ac_c" 1>&6
17667else
009fead0 17668 cat > conftest.$ac_ext <<EOF
21d1c967 17669#line 17670 "configure"
422107f9 17670#include "confdefs.h"
009fead0
VZ
17671/* System header to define __stub macros and hopefully few prototypes
17672else
17673 echo "$ac_t""no" 1>&6
17674which can conflict with char sched_get_priority_max(); below. */
17675#include <assert.h>
4f14bcd8
GD
17676/* Override any gcc2 internal prototype to avoid an error. */
17677/* We use char because int might match the return type of a gcc2
17678 builtin and then its argument prototype would still apply. */
17679char sched_get_priority_max();
17680
17681int main() {
009fead0
VZ
17682
17683/* The GNU C library defines this for functions which it implements
17684 to always fail with ENOSYS. Some functions are actually named
17685 something starting with __ and the normal name is an alias. */
17686#if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max)
17687choke me
17688#else
17689sched_get_priority_max();
17690#endif
17691
4f14bcd8 17692; return 0; }
698dcdb6 17693EOF
21d1c967 17694if { (eval echo configure:17695: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 17695 rm -rf conftest*
009fead0 17696 eval "ac_cv_func_sched_get_priority_max=yes"
422107f9 17697else
698dcdb6 17698 echo "configure: failed program was:" >&5
422107f9 17699 cat conftest.$ac_ext >&5
698dcdb6 17700 rm -rf conftest*
009fead0 17701 eval "ac_cv_func_sched_get_priority_max=no"
422107f9 17702fi
698dcdb6 17703rm -f conftest*
422107f9 17704fi
009fead0
VZ
17705
17706if eval "test \"`echo '$ac_cv_func_'sched_get_priority_max`\" = yes"; then
698dcdb6 17707 echo "$ac_t""yes" 1>&6
4f14bcd8
GD
17708 HAVE_PRIOR_FUNCS=1
17709else
17710 echo "$ac_t""no" 1>&6
17711echo $ac_n "checking for sched_get_priority_max in -lposix4""... $ac_c" 1>&6
21d1c967 17712echo "configure:17713: checking for sched_get_priority_max in -lposix4" >&5
4f14bcd8 17713ac_lib_var=`echo posix4'_'sched_get_priority_max | sed 'y%./+-%__p_%'`
698dcdb6
VZ
17714if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17715 echo $ac_n "(cached) $ac_c" 1>&6
422107f9 17716else
698dcdb6 17717 ac_save_LIBS="$LIBS"
4f14bcd8 17718LIBS="-lposix4 $LIBS"
698dcdb6 17719cat > conftest.$ac_ext <<EOF
21d1c967 17720#line 17721 "configure"
422107f9
VZ
17721#include "confdefs.h"
17722/* Override any gcc2 internal prototype to avoid an error. */
17723/* We use char because int might match the return type of a gcc2
698dcdb6 17724 builtin and then its argument prototype would still apply. */
4f14bcd8 17725char sched_get_priority_max();
698dcdb6
VZ
17726
17727int main() {
4f14bcd8 17728sched_get_priority_max()
698dcdb6
VZ
17729; return 0; }
17730EOF
21d1c967 17731if { (eval echo configure:17732: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
17732 rm -rf conftest*
17733 eval "ac_cv_lib_$ac_lib_var=yes"
17734else
17735 echo "configure: failed program was:" >&5
17736 cat conftest.$ac_ext >&5
17737 rm -rf conftest*
17738 eval "ac_cv_lib_$ac_lib_var=no"
17739fi
17740rm -f conftest*
17741LIBS="$ac_save_LIBS"
17742
17743fi
17744if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17745 echo "$ac_t""yes" 1>&6
4f14bcd8 17746
7274f1c7
RL
17747 HAVE_PRIOR_FUNCS=1
17748 POSIX4_LINK=" -lposix4"
17749
698dcdb6
VZ
17750else
17751 echo "$ac_t""no" 1>&6
422107f9
VZ
17752fi
17753
7274f1c7 17754
422107f9
VZ
17755fi
17756
7274f1c7 17757
4f14bcd8
GD
17758else
17759 echo "$ac_t""no" 1>&6
10f2d63a
VZ
17760fi
17761
7274f1c7 17762
4f14bcd8 17763fi
463abc64 17764
463abc64 17765
7274f1c7
RL
17766 if test "$HAVE_PRIOR_FUNCS" = 1; then
17767 cat >> confdefs.h <<\EOF
4f14bcd8 17768#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
698dcdb6 17769EOF
463abc64 17770
7274f1c7
RL
17771 else
17772 echo "configure: warning: Setting thread priority will not work" 1>&2
17773 fi
463abc64 17774
009fead0 17775 echo $ac_n "checking for pthread_cancel""... $ac_c" 1>&6
21d1c967 17776echo "configure:17777: checking for pthread_cancel" >&5
009fead0 17777if eval "test \"`echo '$''{'ac_cv_func_pthread_cancel'+set}'`\" = set"; then
698dcdb6 17778 echo $ac_n "(cached) $ac_c" 1>&6
422107f9 17779else
009fead0 17780 cat > conftest.$ac_ext <<EOF
21d1c967 17781#line 17782 "configure"
422107f9 17782#include "confdefs.h"
009fead0
VZ
17783/* System header to define __stub macros and hopefully few prototypes,
17784 which can conflict with char pthread_cancel(); below. */
17785#include <assert.h>
422107f9
VZ
17786/* Override any gcc2 internal prototype to avoid an error. */
17787/* We use char because int might match the return type of a gcc2
698dcdb6 17788 builtin and then its argument prototype would still apply. */
4f14bcd8 17789char pthread_cancel();
698dcdb6
VZ
17790
17791int main() {
009fead0
VZ
17792
17793/* The GNU C library defines this for functions which it implements
17794 to always fail with ENOSYS. Some functions are actually named
17795 something starting with __ and the normal name is an alias. */
17796#if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel)
17797choke me
17798#else
17799pthread_cancel();
17800#endif
17801
698dcdb6
VZ
17802; return 0; }
17803EOF
21d1c967 17804if { (eval echo configure:17805: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 17805 rm -rf conftest*
009fead0 17806 eval "ac_cv_func_pthread_cancel=yes"
698dcdb6
VZ
17807else
17808 echo "configure: failed program was:" >&5
17809 cat conftest.$ac_ext >&5
17810 rm -rf conftest*
009fead0 17811 eval "ac_cv_func_pthread_cancel=no"
698dcdb6
VZ
17812fi
17813rm -f conftest*
698dcdb6 17814fi
009fead0
VZ
17815
17816if eval "test \"`echo '$ac_cv_func_'pthread_cancel`\" = yes"; then
698dcdb6 17817 echo "$ac_t""yes" 1>&6
4f14bcd8
GD
17818 cat >> confdefs.h <<\EOF
17819#define HAVE_PTHREAD_CANCEL 1
17820EOF
17821
698dcdb6
VZ
17822else
17823 echo "$ac_t""no" 1>&6
4f14bcd8 17824echo "configure: warning: wxThread::Kill() will not work properly" 1>&2
422107f9
VZ
17825fi
17826
422107f9 17827
7274f1c7 17828 echo $ac_n "checking for pthread_cleanup_push/pop""... $ac_c" 1>&6
21d1c967 17829echo "configure:17830: checking for pthread_cleanup_push/pop" >&5
4f14bcd8
GD
17830if eval "test \"`echo '$''{'wx_cv_func_pthread_cleanup_push'+set}'`\" = set"; then
17831 echo $ac_n "(cached) $ac_c" 1>&6
17832else
17833
7274f1c7 17834 cat > conftest.$ac_ext <<EOF
21d1c967 17835#line 17836 "configure"
4f14bcd8
GD
17836#include "confdefs.h"
17837#include <pthread.h>
17838int main() {
17839
7274f1c7
RL
17840 pthread_cleanup_push(NULL, NULL);
17841 pthread_cleanup_pop(0);
17842
4f14bcd8
GD
17843; return 0; }
17844EOF
21d1c967 17845if { (eval echo configure:17846: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4f14bcd8
GD
17846 rm -rf conftest*
17847
7274f1c7
RL
17848 wx_cv_func_pthread_cleanup_push=yes
17849
4f14bcd8
GD
17850else
17851 echo "configure: failed program was:" >&5
17852 cat conftest.$ac_ext >&5
17853 rm -rf conftest*
17854
7274f1c7
RL
17855 wx_cv_func_pthread_cleanup_push=no
17856
4f14bcd8
GD
17857fi
17858rm -f conftest*
7274f1c7 17859
10f2d63a
VZ
17860fi
17861
4f14bcd8
GD
17862echo "$ac_t""$wx_cv_func_pthread_cleanup_push" 1>&6
17863
7274f1c7
RL
17864 if test "$wx_cv_func_pthread_cleanup_push" = "yes"; then
17865 cat >> confdefs.h <<\EOF
4f14bcd8 17866#define HAVE_THREAD_CLEANUP_FUNCTIONS 1
c7a2bf27
RR
17867EOF
17868
7274f1c7 17869 fi
4f14bcd8 17870
7274f1c7 17871
19bc6aad 17872 if test "x$wx_cv_lib_glibc21" = "xyes"; then
7274f1c7
RL
17873 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
17874 fi
4f14bcd8 17875
7274f1c7 17876 echo $ac_n "checking for pthread_mutexattr_t""... $ac_c" 1>&6
21d1c967 17877echo "configure:17878: checking for pthread_mutexattr_t" >&5
4f14bcd8 17878if eval "test \"`echo '$''{'wx_cv_type_pthread_mutexattr_t'+set}'`\" = set"; then
698dcdb6
VZ
17879 echo $ac_n "(cached) $ac_c" 1>&6
17880else
4f14bcd8 17881
7274f1c7 17882 cat > conftest.$ac_ext <<EOF
21d1c967 17883#line 17884 "configure"
0dcf9893 17884#include "confdefs.h"
4f14bcd8
GD
17885#include <pthread.h>
17886int main() {
17887
7274f1c7
RL
17888 pthread_mutexattr_t attr;
17889 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
17890
4f14bcd8 17891; return 0; }
698dcdb6 17892EOF
21d1c967 17893if { (eval echo configure:17894: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 17894 rm -rf conftest*
4f14bcd8 17895
7274f1c7
RL
17896 wx_cv_type_pthread_mutexattr_t=yes
17897
3fed1840 17898else
698dcdb6 17899 echo "configure: failed program was:" >&5
3fed1840 17900 cat conftest.$ac_ext >&5
698dcdb6 17901 rm -rf conftest*
4f14bcd8 17902
7274f1c7
RL
17903 wx_cv_type_pthread_mutexattr_t=no
17904
4f14bcd8 17905
3fed1840 17906fi
698dcdb6 17907rm -f conftest*
7274f1c7 17908
3fed1840 17909fi
4f14bcd8
GD
17910
17911echo "$ac_t""$wx_cv_type_pthread_mutexattr_t" 1>&6
17912
7274f1c7
RL
17913 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
17914 cat >> confdefs.h <<\EOF
4f14bcd8
GD
17915#define HAVE_PTHREAD_MUTEXATTR_T 1
17916EOF
17917
7274f1c7
RL
17918 else
17919 echo $ac_n "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER""... $ac_c" 1>&6
21d1c967 17920echo "configure:17921: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
4f14bcd8 17921if eval "test \"`echo '$''{'wx_cv_type_pthread_rec_mutex_init'+set}'`\" = set"; then
698dcdb6 17922 echo $ac_n "(cached) $ac_c" 1>&6
3fed1840 17923else
4f14bcd8 17924
7274f1c7 17925 cat > conftest.$ac_ext <<EOF
21d1c967 17926#line 17927 "configure"
3fed1840 17927#include "confdefs.h"
4f14bcd8 17928#include <pthread.h>
698dcdb6 17929int main() {
4f14bcd8 17930
7274f1c7
RL
17931 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
17932
698dcdb6
VZ
17933; return 0; }
17934EOF
21d1c967 17935if { (eval echo configure:17936: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 17936 rm -rf conftest*
4f14bcd8 17937
7274f1c7
RL
17938 wx_cv_type_pthread_rec_mutex_init=yes
17939
698dcdb6
VZ
17940else
17941 echo "configure: failed program was:" >&5
17942 cat conftest.$ac_ext >&5
17943 rm -rf conftest*
4f14bcd8 17944
7274f1c7
RL
17945 wx_cv_type_pthread_rec_mutex_init=no
17946
4f14bcd8 17947
698dcdb6
VZ
17948fi
17949rm -f conftest*
7274f1c7 17950
3fed1840
RR
17951fi
17952
4f14bcd8 17953echo "$ac_t""$wx_cv_type_pthread_rec_mutex_init" 1>&6
7274f1c7
RL
17954 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
17955 cat >> confdefs.h <<\EOF
4f14bcd8
GD
17956#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
17957EOF
3fed1840 17958
7274f1c7
RL
17959 else
17960 echo "configure: warning: wxMutex won't be recursive on this platform" 1>&2
17961 fi
17962 fi
7274f1c7 17963 fi
3fed1840 17964
4f14bcd8
GD
17965fi
17966
17967if test "$wxUSE_THREADS" = "yes"; then
3a922bb4 17968 cat >> confdefs.h <<\EOF
4f14bcd8 17969#define wxUSE_THREADS 1
7b6058cd
GD
17970EOF
17971
4f14bcd8 17972
4f14bcd8 17973 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
698dcdb6 17974else
4f14bcd8
GD
17975 if test "$ac_cv_func_strtok_r" = "yes"; then
17976 echo $ac_n "checking if -D_REENTRANT is needed""... $ac_c" 1>&6
21d1c967 17977echo "configure:17978: checking if -D_REENTRANT is needed" >&5
4f14bcd8
GD
17978 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
17979 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT"
17980 echo "$ac_t""yes" 1>&6
17981 else
17982 echo "$ac_t""no" 1>&6
17983 fi
17984 fi
17985fi
17986
17987if test "$WXGTK20" = 1 ; then
17988 cat >> confdefs.h <<EOF
17989#define __WXGTK20__ $WXGTK20
698dcdb6 17990EOF
4f14bcd8
GD
17991
17992 WXGTK12=1
10f2d63a 17993fi
4f14bcd8
GD
17994
17995if test "$WXGTK12" = 1 ; then
17996 cat >> confdefs.h <<EOF
17997#define __WXGTK12__ $WXGTK12
17998EOF
17999
10f2d63a 18000fi
698dcdb6 18001
4f14bcd8
GD
18002if test "$WXGTK127" = 1 ; then
18003 cat >> confdefs.h <<EOF
18004#define __WXGTK127__ $WXGTK127
698dcdb6 18005EOF
4f14bcd8 18006
698dcdb6 18007fi
10f2d63a 18008
4f14bcd8
GD
18009WXDEBUG=
18010
18011if test "$wxUSE_DEBUG_INFO" = "yes" ; then
18012 WXDEBUG="-g"
18013 wxUSE_OPTIMISE=no
698dcdb6 18014fi
4f14bcd8
GD
18015
18016if test "$wxUSE_DEBUG_GDB" = "yes" ; then
18017 wxUSE_DEBUG_INFO=yes
18018 WXDEBUG="-ggdb"
10f2d63a
VZ
18019fi
18020
4f14bcd8
GD
18021if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
18022 cat >> confdefs.h <<\EOF
18023#define WXDEBUG 1
18024EOF
18025
18026 WXDEBUG_DEFINE="-D__WXDEBUG__"
10f2d63a 18027else
4f14bcd8
GD
18028 if test "$wxUSE_GTK" = 1 ; then
18029 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
18030 fi
18031fi
18032
18033if test "$wxUSE_MEM_TRACING" = "yes" ; then
18034 cat >> confdefs.h <<\EOF
18035#define wxUSE_MEMORY_TRACING 1
18036EOF
18037
18038 cat >> confdefs.h <<\EOF
18039#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
18040EOF
18041
18042 cat >> confdefs.h <<\EOF
18043#define wxUSE_DEBUG_NEW_ALWAYS 1
18044EOF
18045
18046 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
18047fi
18048
18049if test "$wxUSE_DMALLOC" = "yes" ; then
3d63bc3a 18050 DMALLOC_LIBS="-ldmalloc"
4f14bcd8
GD
18051fi
18052
18053PROFILE=
18054if test "$wxUSE_PROFILE" = "yes" ; then
3d63bc3a 18055 PROFILE=" -pg"
10f2d63a
VZ
18056fi
18057
009fead0
VZ
18058CODE_GEN_FLAGS=
18059CODE_GEN_FLAGS_CXX=
88e30f2b 18060if test "$GCC" = "yes" ; then
4f14bcd8
GD
18061 if test "$wxUSE_NO_RTTI" = "yes" ; then
18062 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti"
3a922bb4 18063 fi
4f14bcd8
GD
18064 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
18065 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions"
18066 fi
18067 if test "$wxUSE_PERMISSIVE" = "yes" ; then
18068 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
18069 fi
4f14bcd8
GD
18070 if test "$USE_WIN32" = 1 ; then
18071 # I'm not even really sure what this was ever added to solve,
18072 # but someone added it for mingw native builds, so I guess
18073 # they had a reason, right??
18074 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fno-pcc-struct-return"
18075 fi
18076fi
18077
4f14bcd8
GD
18078if test "$wxUSE_OPTIMISE" = "no" ; then
18079 OPTIMISE=
18080else
18081 if test "$GCC" = yes ; then
18082 OPTIMISE="-O2"
18083 case "${host}" in
18084 i586-*-*|i686-*-* )
18085 OPTIMISE="${OPTIMISE} "
18086 ;;
18087 esac
18088 else
18089 OPTIMISE="-O"
18090 fi
18091fi
18092
18093if test "$WXWIN_COMPATIBILITY_2" = "yes"; then
18094 cat >> confdefs.h <<\EOF
18095#define WXWIN_COMPATIBILITY_2 1
18096EOF
18097
18098
18099 WXWIN_COMPATIBILITY_2_2="yes"
18100fi
18101
0c9a1c32 18102if test "x$WXWIN_COMPATIBILITY_2_2" != "xno"; then
4f14bcd8
GD
18103 cat >> confdefs.h <<\EOF
18104#define WXWIN_COMPATIBILITY_2_2 1
18105EOF
18106
10f2d63a
VZ
18107fi
18108
698dcdb6 18109
10f2d63a 18110if test "$wxUSE_GUI" = "yes"; then
698dcdb6 18111 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18112#define wxUSE_GUI 1
18113EOF
18114
698dcdb6 18115
10f2d63a 18116 else
698dcdb6 18117 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18118#define wxUSE_NOGUI 1
18119EOF
18120
18121fi
18122
698dcdb6 18123
10f2d63a 18124if test "$wxUSE_UNIX" = "yes"; then
698dcdb6 18125 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18126#define wxUSE_UNIX 1
18127EOF
18128
18129fi
18130
698dcdb6 18131
10f2d63a 18132if test "$wxUSE_APPLE_IEEE" = "yes"; then
698dcdb6 18133 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18134#define wxUSE_APPLE_IEEE 1
18135EOF
18136
18137fi
18138
1e6feb95
VZ
18139if test "$wxUSE_TIMER" = "yes"; then
18140 cat >> confdefs.h <<\EOF
18141#define wxUSE_TIMER 1
18142EOF
18143
18144fi
18145
10f2d63a 18146if test "$wxUSE_WAVE" = "yes"; then
698dcdb6 18147 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18148#define wxUSE_WAVE 1
18149EOF
18150
18151fi
18152
1e6feb95
VZ
18153if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
18154 cat >> confdefs.h <<\EOF
18155#define wxUSE_CMDLINE_PARSER 1
18156EOF
18157
18158fi
18159
18160if test "$wxUSE_STOPWATCH" = "yes"; then
18161 cat >> confdefs.h <<\EOF
18162#define wxUSE_STOPWATCH 1
18163EOF
18164
18165fi
18166
18167if test "$wxUSE_DATETIME" = "yes"; then
18168 cat >> confdefs.h <<\EOF
18169#define wxUSE_DATETIME 1
18170EOF
18171
18172fi
18173
18174if test "$wxUSE_TIMEDATE" = "yes"; then
18175 cat >> confdefs.h <<\EOF
18176#define wxUSE_TIMEDATE 1
18177EOF
18178
18179fi
18180
10f2d63a 18181if test "$wxUSE_FILE" = "yes"; then
698dcdb6 18182 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18183#define wxUSE_FILE 1
18184EOF
18185
18186fi
18187
1e6feb95
VZ
18188if test "$wxUSE_FFILE" = "yes"; then
18189 cat >> confdefs.h <<\EOF
18190#define wxUSE_FFILE 1
18191EOF
18192
18193fi
18194
24528b0c 18195if test "$wxUSE_FILESYSTEM" = "yes"; then
698dcdb6 18196 cat >> confdefs.h <<\EOF
24528b0c
VS
18197#define wxUSE_FILESYSTEM 1
18198EOF
18199
18200fi
18201
10f2d63a 18202if test "$wxUSE_FS_INET" = "yes"; then
698dcdb6 18203 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18204#define wxUSE_FS_INET 1
18205EOF
18206
18207fi
18208
18209if test "$wxUSE_FS_ZIP" = "yes"; then
698dcdb6 18210 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18211#define wxUSE_FS_ZIP 1
18212EOF
18213
18214fi
18215
18216if test "$wxUSE_ZIPSTREAM" = "yes"; then
698dcdb6 18217 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18218#define wxUSE_ZIPSTREAM 1
18219EOF
18220
18221fi
18222
eb4efbdc 18223if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
698dcdb6 18224 cat >> confdefs.h <<\EOF
eb4efbdc
VZ
18225#define wxUSE_ON_FATAL_EXCEPTION 1
18226EOF
18227
18228fi
18229
4f3c5f06 18230if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
698dcdb6 18231 cat >> confdefs.h <<\EOF
4f3c5f06
VZ
18232#define wxUSE_SNGLINST_CHECKER 1
18233EOF
18234
18235fi
18236
10f2d63a 18237if test "$wxUSE_BUSYINFO" = "yes"; then
698dcdb6 18238 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18239#define wxUSE_BUSYINFO 1
18240EOF
18241
18242fi
18243
18244if test "$wxUSE_STD_IOSTREAM" = "yes"; then
698dcdb6 18245 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18246#define wxUSE_STD_IOSTREAM 1
18247EOF
18248
18249fi
18250
a3a584a7
VZ
18251if test "$wxUSE_TEXTBUFFER" = "yes"; then
18252 cat >> confdefs.h <<\EOF
18253#define wxUSE_TEXTBUFFER 1
18254EOF
18255
18256fi
18257
10f2d63a 18258if test "$wxUSE_TEXTFILE" = "yes"; then
a3a584a7 18259 if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
156b2523 18260 echo "configure: warning: wxTextFile requires wxFile and wxTextBuffer... disabled" 1>&2
10f2d63a 18261 else
698dcdb6 18262 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18263#define wxUSE_TEXTFILE 1
18264EOF
18265
18266 fi
18267fi
18268
18269if test "$wxUSE_CONFIG" = "yes" ; then
18270 if test "$wxUSE_TEXTFILE" != "yes"; then
156b2523 18271 echo "configure: warning: wxConfig requires wxTextFile... disabled" 1>&2
10f2d63a 18272 else
698dcdb6 18273 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18274#define wxUSE_CONFIG 1
18275EOF
18276
18277 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
18278 fi
18279fi
18280
18281if test "$wxUSE_INTL" = "yes" ; then
18282 if test "$wxUSE_FILE" != "yes"; then
156b2523 18283 echo "configure: warning: I18n code requires wxFile... disabled" 1>&2
10f2d63a 18284 else
698dcdb6 18285 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18286#define wxUSE_INTL 1
18287EOF
18288
18289 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
f6bcfd97 18290 GUIDIST="$GUIDIST INTL_DIST"
10f2d63a
VZ
18291 fi
18292fi
18293
18294if test "$wxUSE_LOG" = "yes"; then
698dcdb6 18295 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18296#define wxUSE_LOG 1
18297EOF
18298
d73be714
VZ
18299
18300 if test "$wxUSE_LOGGUI" = "yes"; then
18301 cat >> confdefs.h <<\EOF
18302#define wxUSE_LOGGUI 1
18303EOF
18304
18305 fi
18306
18307 if test "$wxUSE_LOGWINDOW" = "yes"; then
18308 cat >> confdefs.h <<\EOF
18309#define wxUSE_LOGWINDOW 1
69d27ff7
MB
18310EOF
18311
18312 fi
18313
18314 if test "$wxUSE_LOGDIALOG" = "yes"; then
18315 cat >> confdefs.h <<\EOF
18316#define wxUSE_LOG_DIALOG 1
d73be714
VZ
18317EOF
18318
18319 fi
10f2d63a
VZ
18320fi
18321
18322if test "$wxUSE_LONGLONG" = "yes"; then
698dcdb6 18323 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18324#define wxUSE_LONGLONG 1
18325EOF
18326
18327fi
18328
e8f65ba6 18329if test "$wxUSE_GEOMETRY" = "yes"; then
698dcdb6 18330 cat >> confdefs.h <<\EOF
e8f65ba6
RR
18331#define wxUSE_GEOMETRY 1
18332EOF
18333
18334fi
18335
10f2d63a 18336if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
698dcdb6 18337 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18338#define wxUSE_DIALUP_MANAGER 1
18339EOF
18340
70f7a477 18341 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
10f2d63a
VZ
18342fi
18343
18344if test "$wxUSE_STREAMS" = "yes" ; then
698dcdb6 18345 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18346#define wxUSE_STREAMS 1
18347EOF
18348
18349fi
18350
1e487827 18351
1e6feb95 18352if test "$wxUSE_DATETIME" = "yes"; then
698dcdb6 18353 for ac_func in strptime
83307f33 18354do
698dcdb6 18355echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21d1c967 18356echo "configure:18357: checking for $ac_func" >&5
698dcdb6
VZ
18357if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18358 echo $ac_n "(cached) $ac_c" 1>&6
18359else
18360 cat > conftest.$ac_ext <<EOF
21d1c967 18361#line 18362 "configure"
83307f33
VZ
18362#include "confdefs.h"
18363/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 18364 which can conflict with char $ac_func(); below. */
83307f33
VZ
18365#include <assert.h>
18366/* Override any gcc2 internal prototype to avoid an error. */
18367/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
18368 builtin and then its argument prototype would still apply. */
18369char $ac_func();
18370
18371int main() {
83307f33
VZ
18372
18373/* The GNU C library defines this for functions which it implements
18374 to always fail with ENOSYS. Some functions are actually named
18375 something starting with __ and the normal name is an alias. */
18376#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18377choke me
18378#else
698dcdb6 18379$ac_func();
83307f33
VZ
18380#endif
18381
698dcdb6 18382; return 0; }
83307f33 18383EOF
21d1c967 18384if { (eval echo configure:18385: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
18385 rm -rf conftest*
18386 eval "ac_cv_func_$ac_func=yes"
18387else
18388 echo "configure: failed program was:" >&5
18389 cat conftest.$ac_ext >&5
18390 rm -rf conftest*
18391 eval "ac_cv_func_$ac_func=no"
18392fi
18393rm -f conftest*
18394fi
83307f33 18395
698dcdb6
VZ
18396if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18397 echo "$ac_t""yes" 1>&6
18398 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18399 cat >> confdefs.h <<EOF
18400#define $ac_tr_func 1
18401EOF
18402
18403else
18404 echo "$ac_t""no" 1>&6
83307f33
VZ
18405fi
18406done
18407
1e487827 18408
62cc730f 18409 echo $ac_n "checking for timezone variable in <time.h>""... $ac_c" 1>&6
21d1c967 18410echo "configure:18411: checking for timezone variable in <time.h>" >&5
698dcdb6
VZ
18411if eval "test \"`echo '$''{'wx_cv_var_timezone'+set}'`\" = set"; then
18412 echo $ac_n "(cached) $ac_c" 1>&6
18413else
18414
18415 cat > conftest.$ac_ext <<EOF
21d1c967 18416#line 18417 "configure"
360d6699
VZ
18417#include "confdefs.h"
18418
b4085ce6 18419 #include <time.h>
698dcdb6
VZ
18420
18421int main() {
360d6699
VZ
18422
18423 int tz;
4f11a343 18424 tz = timezone;
698dcdb6
VZ
18425
18426; return 0; }
18427EOF
21d1c967 18428if { (eval echo configure:18429: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
18429 rm -rf conftest*
18430
4f11a343 18431 wx_cv_var_timezone=timezone
698dcdb6 18432
360d6699 18433else
698dcdb6
VZ
18434 echo "configure: failed program was:" >&5
18435 cat conftest.$ac_ext >&5
18436 rm -rf conftest*
18437
18438 cat > conftest.$ac_ext <<EOF
21d1c967 18439#line 18440 "configure"
360d6699
VZ
18440#include "confdefs.h"
18441
b4085ce6 18442 #include <time.h>
698dcdb6
VZ
18443
18444int main() {
360d6699
VZ
18445
18446 int tz;
18447 tz = _timezone;
698dcdb6
VZ
18448
18449; return 0; }
18450EOF
21d1c967 18451if { (eval echo configure:18452: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
18452 rm -rf conftest*
18453
360d6699 18454 wx_cv_var_timezone=_timezone
698dcdb6 18455
5357c8e8 18456else
698dcdb6
VZ
18457 echo "configure: failed program was:" >&5
18458 cat conftest.$ac_ext >&5
18459 rm -rf conftest*
18460
18461 cat > conftest.$ac_ext <<EOF
21d1c967 18462#line 18463 "configure"
5357c8e8
VZ
18463#include "confdefs.h"
18464
b4085ce6 18465 #include <time.h>
698dcdb6
VZ
18466
18467int main() {
5357c8e8
VZ
18468
18469 int tz;
4f11a343 18470 tz = __timezone;
698dcdb6
VZ
18471
18472; return 0; }
18473EOF
21d1c967 18474if { (eval echo configure:18475: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
18475 rm -rf conftest*
18476
4f11a343 18477 wx_cv_var_timezone=__timezone
698dcdb6 18478
360d6699 18479else
698dcdb6
VZ
18480 echo "configure: failed program was:" >&5
18481 cat conftest.$ac_ext >&5
18482 rm -rf conftest*
f9bc1684
VS
18483
18484 if test "$USE_DOS" = 0 ; then
62cc730f 18485 echo "configure: warning: no timezone variable" 1>&2
f9bc1684
VS
18486 fi
18487
698dcdb6 18488
360d6699 18489fi
698dcdb6
VZ
18490rm -f conftest*
18491
18492
360d6699 18493fi
698dcdb6
VZ
18494rm -f conftest*
18495
18496
6232543b 18497fi
698dcdb6
VZ
18498rm -f conftest*
18499
18500
1e487827 18501fi
703e0a69 18502
698dcdb6
VZ
18503echo "$ac_t""$wx_cv_var_timezone" 1>&6
18504
f9bc1684 18505 if test "x$wx_cv_var_timezone" != x ; then
698dcdb6 18506 cat >> confdefs.h <<EOF
360d6699
VZ
18507#define WX_TIMEZONE $wx_cv_var_timezone
18508EOF
18509
f9bc1684 18510 fi
698dcdb6
VZ
18511
18512 for ac_func in localtime
afc31813 18513do
698dcdb6 18514echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21d1c967 18515echo "configure:18516: checking for $ac_func" >&5
698dcdb6
VZ
18516if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18517 echo $ac_n "(cached) $ac_c" 1>&6
18518else
18519 cat > conftest.$ac_ext <<EOF
21d1c967 18520#line 18521 "configure"
10f2d63a 18521#include "confdefs.h"
afc31813 18522/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 18523 which can conflict with char $ac_func(); below. */
afc31813
VZ
18524#include <assert.h>
18525/* Override any gcc2 internal prototype to avoid an error. */
18526/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
18527 builtin and then its argument prototype would still apply. */
18528char $ac_func();
18529
18530int main() {
afc31813
VZ
18531
18532/* The GNU C library defines this for functions which it implements
18533 to always fail with ENOSYS. Some functions are actually named
18534 something starting with __ and the normal name is an alias. */
18535#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18536choke me
18537#else
698dcdb6 18538$ac_func();
afc31813
VZ
18539#endif
18540
698dcdb6 18541; return 0; }
10f2d63a 18542EOF
21d1c967 18543if { (eval echo configure:18544: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
18544 rm -rf conftest*
18545 eval "ac_cv_func_$ac_func=yes"
18546else
18547 echo "configure: failed program was:" >&5
18548 cat conftest.$ac_ext >&5
18549 rm -rf conftest*
18550 eval "ac_cv_func_$ac_func=no"
18551fi
18552rm -f conftest*
18553fi
afc31813 18554
698dcdb6
VZ
18555if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18556 echo "$ac_t""yes" 1>&6
18557 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18558 cat >> confdefs.h <<EOF
18559#define $ac_tr_func 1
18560EOF
18561
18562else
18563 echo "$ac_t""no" 1>&6
afc31813
VZ
18564fi
18565done
18566
1e487827 18567
698dcdb6
VZ
18568 if test "$ac_cv_func_localtime" = "yes"; then
18569 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
21d1c967 18570echo "configure:18571: checking for tm_gmtoff in struct tm" >&5
698dcdb6
VZ
18571if eval "test \"`echo '$''{'wx_cv_struct_tm_has_gmtoff'+set}'`\" = set"; then
18572 echo $ac_n "(cached) $ac_c" 1>&6
18573else
18574
18575 cat > conftest.$ac_ext <<EOF
21d1c967 18576#line 18577 "configure"
0470b1e6
VZ
18577#include "confdefs.h"
18578
b4085ce6 18579 #include <time.h>
698dcdb6
VZ
18580
18581int main() {
0470b1e6
VZ
18582
18583 struct tm tm;
18584 tm.tm_gmtoff++;
698dcdb6
VZ
18585
18586; return 0; }
18587EOF
21d1c967 18588if { (eval echo configure:18589: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
18589 rm -rf conftest*
18590
f03a98d8 18591 wx_cv_struct_tm_has_gmtoff=yes
698dcdb6 18592
0470b1e6 18593else
698dcdb6
VZ
18594 echo "configure: failed program was:" >&5
18595 cat conftest.$ac_ext >&5
18596 rm -rf conftest*
18597 wx_cv_struct_tm_has_gmtoff=no
18598
0470b1e6 18599fi
698dcdb6
VZ
18600rm -f conftest*
18601
1e487827 18602fi
698dcdb6
VZ
18603
18604echo "$ac_t""$wx_cv_struct_tm_has_gmtoff" 1>&6
6232543b
VS
18605 fi
18606
18607 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
698dcdb6 18608 cat >> confdefs.h <<\EOF
6232543b
VS
18609#define WX_GMTOFF_IN_TM 1
18610EOF
0470b1e6 18611
3fcdd07b
VZ
18612 fi
18613
698dcdb6 18614 for ac_func in gettimeofday ftime
3fcdd07b 18615do
698dcdb6 18616echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21d1c967 18617echo "configure:18618: checking for $ac_func" >&5
698dcdb6
VZ
18618if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18619 echo $ac_n "(cached) $ac_c" 1>&6
18620else
18621 cat > conftest.$ac_ext <<EOF
21d1c967 18622#line 18623 "configure"
3fcdd07b
VZ
18623#include "confdefs.h"
18624/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 18625 which can conflict with char $ac_func(); below. */
3fcdd07b
VZ
18626#include <assert.h>
18627/* Override any gcc2 internal prototype to avoid an error. */
18628/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
18629 builtin and then its argument prototype would still apply. */
18630char $ac_func();
18631
18632int main() {
3fcdd07b
VZ
18633
18634/* The GNU C library defines this for functions which it implements
18635 to always fail with ENOSYS. Some functions are actually named
18636 something starting with __ and the normal name is an alias. */
18637#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18638choke me
18639#else
698dcdb6 18640$ac_func();
3fcdd07b
VZ
18641#endif
18642
698dcdb6
VZ
18643; return 0; }
18644EOF
21d1c967 18645if { (eval echo configure:18646: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
18646 rm -rf conftest*
18647 eval "ac_cv_func_$ac_func=yes"
18648else
18649 echo "configure: failed program was:" >&5
18650 cat conftest.$ac_ext >&5
18651 rm -rf conftest*
18652 eval "ac_cv_func_$ac_func=no"
18653fi
18654rm -f conftest*
18655fi
18656
18657if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18658 echo "$ac_t""yes" 1>&6
18659 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18660 cat >> confdefs.h <<EOF
18661#define $ac_tr_func 1
3fcdd07b
VZ
18662EOF
18663 break
698dcdb6
VZ
18664else
18665 echo "$ac_t""no" 1>&6
3fcdd07b
VZ
18666fi
18667done
18668
afc31813 18669
698dcdb6
VZ
18670 if test "$ac_cv_func_gettimeofday" = "yes"; then
18671 echo $ac_n "checking whether gettimeofday takes two arguments""... $ac_c" 1>&6
21d1c967 18672echo "configure:18673: checking whether gettimeofday takes two arguments" >&5
698dcdb6
VZ
18673if eval "test \"`echo '$''{'wx_cv_func_gettimeofday_has_2_args'+set}'`\" = set"; then
18674 echo $ac_n "(cached) $ac_c" 1>&6
18675else
18676
18677
18678 ac_ext=C
18679# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1e487827 18680ac_cpp='$CXXCPP $CPPFLAGS'
698dcdb6
VZ
18681ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18682ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18683cross_compiling=$ac_cv_prog_cxx_cross
703e0a69 18684
698dcdb6
VZ
18685
18686 cat > conftest.$ac_ext <<EOF
21d1c967 18687#line 18688 "configure"
10f2d63a 18688#include "confdefs.h"
afc31813
VZ
18689
18690 #include <sys/time.h>
18691 #include <unistd.h>
698dcdb6
VZ
18692
18693int main() {
afc31813
VZ
18694
18695 struct timeval tv;
776862b4 18696 gettimeofday(&tv, NULL);
698dcdb6
VZ
18697
18698; return 0; }
18699EOF
21d1c967 18700if { (eval echo configure:18701: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 18701 rm -rf conftest*
afc31813 18702 wx_cv_func_gettimeofday_has_2_args=yes
10f2d63a 18703else
698dcdb6
VZ
18704 echo "configure: failed program was:" >&5
18705 cat conftest.$ac_ext >&5
18706 rm -rf conftest*
18707 cat > conftest.$ac_ext <<EOF
21d1c967 18708#line 18709 "configure"
10f2d63a 18709#include "confdefs.h"
afc31813
VZ
18710
18711 #include <sys/time.h>
18712 #include <unistd.h>
698dcdb6
VZ
18713
18714int main() {
afc31813
VZ
18715
18716 struct timeval tv;
18717 gettimeofday(&tv);
698dcdb6
VZ
18718
18719; return 0; }
18720EOF
21d1c967 18721if { (eval echo configure:18722: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 18722 rm -rf conftest*
afc31813 18723 wx_cv_func_gettimeofday_has_2_args=no
10f2d63a 18724else
698dcdb6
VZ
18725 echo "configure: failed program was:" >&5
18726 cat conftest.$ac_ext >&5
18727 rm -rf conftest*
776862b4
VZ
18728
18729 echo "configure: warning: failed to determine number of gettimeofday() arguments" 1>&2
18730 wx_cv_func_gettimeofday_has_2_args=unknown
18731
698dcdb6 18732
10f2d63a 18733fi
698dcdb6
VZ
18734rm -f conftest*
18735
10f2d63a 18736fi
698dcdb6 18737rm -f conftest*
afc31813 18738 ac_ext=c
698dcdb6 18739# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10f2d63a 18740ac_cpp='$CPP $CPPFLAGS'
698dcdb6
VZ
18741ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18742ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18743cross_compiling=$ac_cv_prog_cc_cross
10f2d63a 18744
698dcdb6 18745
afc31813 18746fi
698dcdb6
VZ
18747
18748echo "$ac_t""$wx_cv_func_gettimeofday_has_2_args" 1>&6
c63c7106 18749
afc31813 18750 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
698dcdb6 18751 cat >> confdefs.h <<\EOF
afc31813
VZ
18752#define WX_GETTIMEOFDAY_NO_TZ 1
18753EOF
18754
18755 fi
18756 fi
18757
698dcdb6 18758 cat >> confdefs.h <<\EOF
afc31813
VZ
18759#define wxUSE_TIMEDATE 1
18760EOF
18761
18762 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
18763fi
18764
698dcdb6 18765
0feee163
VZ
18766if test "$wxUSE_SOCKETS" = "yes"; then
18767 if test "$TOOLKIT" = "X11"; then
18768 echo "configure: warning: wxSocket not yet supported under X11... disabled" 1>&2
18769 wxUSE_SOCKETS="no"
18770 fi
18771fi
b089607b 18772
0feee163
VZ
18773if test "$wxUSE_SOCKETS" = "yes"; then
18774 if test "$TOOLKIT" != "MSW"; then
3a922bb4 18775 echo $ac_n "checking for socket""... $ac_c" 1>&6
21d1c967 18776echo "configure:18777: checking for socket" >&5
698dcdb6
VZ
18777if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
18778 echo $ac_n "(cached) $ac_c" 1>&6
c63c7106 18779else
698dcdb6 18780 cat > conftest.$ac_ext <<EOF
21d1c967 18781#line 18782 "configure"
c63c7106
VZ
18782#include "confdefs.h"
18783/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 18784 which can conflict with char socket(); below. */
c63c7106
VZ
18785#include <assert.h>
18786/* Override any gcc2 internal prototype to avoid an error. */
18787/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
18788 builtin and then its argument prototype would still apply. */
18789char socket();
18790
18791int main() {
c63c7106
VZ
18792
18793/* The GNU C library defines this for functions which it implements
18794 to always fail with ENOSYS. Some functions are actually named
18795 something starting with __ and the normal name is an alias. */
18796#if defined (__stub_socket) || defined (__stub___socket)
18797choke me
18798#else
698dcdb6 18799socket();
c63c7106
VZ
18800#endif
18801
698dcdb6
VZ
18802; return 0; }
18803EOF
21d1c967 18804if { (eval echo configure:18805: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
18805 rm -rf conftest*
18806 eval "ac_cv_func_socket=yes"
18807else
18808 echo "configure: failed program was:" >&5
18809 cat conftest.$ac_ext >&5
18810 rm -rf conftest*
18811 eval "ac_cv_func_socket=no"
18812fi
18813rm -f conftest*
18814fi
18815
18816if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
18817 echo "$ac_t""yes" 1>&6
c63c7106
VZ
18818 :
18819else
698dcdb6
VZ
18820 echo "$ac_t""no" 1>&6
18821echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
21d1c967 18822echo "configure:18823: checking for socket in -lsocket" >&5
698dcdb6
VZ
18823ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
18824if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18825 echo $ac_n "(cached) $ac_c" 1>&6
c63c7106 18826else
698dcdb6 18827 ac_save_LIBS="$LIBS"
c63c7106 18828LIBS="-lsocket $LIBS"
698dcdb6 18829cat > conftest.$ac_ext <<EOF
21d1c967 18830#line 18831 "configure"
c63c7106
VZ
18831#include "confdefs.h"
18832/* Override any gcc2 internal prototype to avoid an error. */
18833/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
18834 builtin and then its argument prototype would still apply. */
18835char socket();
18836
18837int main() {
18838socket()
18839; return 0; }
18840EOF
21d1c967 18841if { (eval echo configure:18842: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
18842 rm -rf conftest*
18843 eval "ac_cv_lib_$ac_lib_var=yes"
18844else
18845 echo "configure: failed program was:" >&5
18846 cat conftest.$ac_ext >&5
18847 rm -rf conftest*
18848 eval "ac_cv_lib_$ac_lib_var=no"
18849fi
18850rm -f conftest*
18851LIBS="$ac_save_LIBS"
18852
18853fi
18854if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18855 echo "$ac_t""yes" 1>&6
d558c907
VS
18856 if test "$INET_LINK" != " -lsocket"; then
18857 INET_LINK="$INET_LINK -lsocket"
18858 fi
c63c7106 18859else
698dcdb6 18860 echo "$ac_t""no" 1>&6
afc31813 18861
3a922bb4
RL
18862 echo "configure: warning: socket library not found - sockets will be disabled" 1>&2
18863 wxUSE_SOCKETS=no
18864
698dcdb6 18865
6232543b 18866fi
b089607b 18867
3a922bb4 18868
1e487827 18869fi
afc31813 18870
3a922bb4 18871 fi
0feee163 18872fi
51a9faba 18873
0feee163
VZ
18874if test "$wxUSE_SOCKETS" = "yes" ; then
18875 if test "$TOOLKIT" != "MSW"; then
3a922bb4 18876 echo $ac_n "checking what is the type of the third argument of getsockname""... $ac_c" 1>&6
21d1c967 18877echo "configure:18878: checking what is the type of the third argument of getsockname" >&5
698dcdb6
VZ
18878if eval "test \"`echo '$''{'wx_cv_type_getsockname3'+set}'`\" = set"; then
18879 echo $ac_n "(cached) $ac_c" 1>&6
18880else
18881
3a922bb4
RL
18882
18883 ac_ext=C
698dcdb6 18884# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1e487827 18885ac_cpp='$CXXCPP $CPPFLAGS'
698dcdb6
VZ
18886ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18887ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18888cross_compiling=$ac_cv_prog_cxx_cross
703e0a69 18889
698dcdb6 18890
3a922bb4 18891 cat > conftest.$ac_ext <<EOF
21d1c967 18892#line 18893 "configure"
afc31813 18893#include "confdefs.h"
51a9faba 18894
3a922bb4
RL
18895 #include <sys/types.h>
18896 #include <sys/socket.h>
18897
698dcdb6 18898int main() {
51a9faba 18899
3a922bb4
RL
18900 socklen_t len;
18901 getsockname(0, 0, &len);
18902
698dcdb6
VZ
18903; return 0; }
18904EOF
21d1c967 18905if { (eval echo configure:18906: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 18906 rm -rf conftest*
51a9faba 18907 wx_cv_type_getsockname3=socklen_t
afc31813 18908else
698dcdb6
VZ
18909 echo "configure: failed program was:" >&5
18910 cat conftest.$ac_ext >&5
18911 rm -rf conftest*
18912 cat > conftest.$ac_ext <<EOF
21d1c967 18913#line 18914 "configure"
afc31813 18914#include "confdefs.h"
51a9faba 18915
3a922bb4
RL
18916 #include <sys/types.h>
18917 #include <sys/socket.h>
18918
698dcdb6 18919int main() {
51a9faba 18920
3a922bb4
RL
18921 size_t len;
18922 getsockname(0, 0, &len);
18923
698dcdb6
VZ
18924; return 0; }
18925EOF
21d1c967 18926if { (eval echo configure:18927: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 18927 rm -rf conftest*
51a9faba 18928 wx_cv_type_getsockname3=size_t
afc31813 18929else
698dcdb6
VZ
18930 echo "configure: failed program was:" >&5
18931 cat conftest.$ac_ext >&5
18932 rm -rf conftest*
18933 cat > conftest.$ac_ext <<EOF
21d1c967 18934#line 18935 "configure"
afc31813 18935#include "confdefs.h"
51a9faba 18936
3a922bb4
RL
18937 #include <sys/types.h>
18938 #include <sys/socket.h>
18939
698dcdb6 18940int main() {
51a9faba 18941
3a922bb4
RL
18942 int len;
18943 getsockname(0, 0, &len);
18944
698dcdb6
VZ
18945; return 0; }
18946EOF
21d1c967 18947if { (eval echo configure:18948: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 18948 rm -rf conftest*
51a9faba 18949 wx_cv_type_getsockname3=int
afc31813 18950else
698dcdb6
VZ
18951 echo "configure: failed program was:" >&5
18952 cat conftest.$ac_ext >&5
18953 rm -rf conftest*
18954 wx_cv_type_getsockname3=unknown
3a922bb4 18955
afc31813 18956fi
698dcdb6 18957rm -f conftest*
3a922bb4 18958
afc31813 18959fi
698dcdb6 18960rm -f conftest*
3a922bb4 18961
afc31813 18962fi
698dcdb6 18963rm -f conftest*
51a9faba 18964
3a922bb4 18965 ac_ext=c
698dcdb6 18966# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
afc31813 18967ac_cpp='$CPP $CPPFLAGS'
698dcdb6
VZ
18968ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18969ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18970cross_compiling=$ac_cv_prog_cc_cross
afc31813 18971
3a922bb4 18972
51a9faba 18973fi
698dcdb6
VZ
18974
18975echo "$ac_t""$wx_cv_type_getsockname3" 1>&6
51a9faba 18976
3a922bb4
RL
18977 if test "$wx_cv_type_getsockname3" = "unknown"; then
18978 wxUSE_SOCKETS=no
18979 echo "configure: warning: Couldn't find socklen_t synonym for this system" 1>&2
18980 else
18981 cat >> confdefs.h <<EOF
51a9faba
VZ
18982#define SOCKLEN_T $wx_cv_type_getsockname3
18983EOF
18984
3a922bb4 18985 fi
51a9faba
VZ
18986 fi
18987fi
afc31813 18988
51a9faba 18989if test "$wxUSE_SOCKETS" = "yes" ; then
698dcdb6 18990 cat >> confdefs.h <<\EOF
afc31813
VZ
18991#define wxUSE_SOCKETS 1
18992EOF
18993
70f7a477 18994 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
afc31813
VZ
18995fi
18996
698dcdb6 18997
dc3d889d
VZ
18998if test "$wxUSE_GUI" = "yes"; then
18999
156b2523
GD
19000 if test "$TOOLKIT" = "MAC"; then
19001 echo "configure: warning: Joystick not yet supported under Mac OS X... disabled" 1>&2
19002 wxUSE_JOYSTICK=no
19003 fi
19004 if test "$TOOLKIT" = "MOTIF"; then
19005 echo "configure: warning: Joystick not yet supported under Motif... disabled" 1>&2
19006 wxUSE_JOYSTICK=no
f79bd02d
JS
19007 fi
19008 if test "$TOOLKIT" = "X11"; then
19009 echo "configure: warning: Joystick not yet supported under X11... disabled" 1>&2
19010 wxUSE_JOYSTICK=no
156b2523
GD
19011 fi
19012
3a922bb4
RL
19013 if test "$TOOLKIT" != "MSW"; then
19014 if test "$wxUSE_JOYSTICK" = "yes"; then
19015 for ac_hdr in linux/joystick.h
10f2d63a 19016do
698dcdb6
VZ
19017ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
19018echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
21d1c967 19019echo "configure:19020: checking for $ac_hdr" >&5
698dcdb6
VZ
19020if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
19021 echo $ac_n "(cached) $ac_c" 1>&6
19022else
19023 cat > conftest.$ac_ext <<EOF
21d1c967 19024#line 19025 "configure"
10f2d63a 19025#include "confdefs.h"
698dcdb6
VZ
19026#include <$ac_hdr>
19027EOF
19028ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
21d1c967 19029{ (eval echo configure:19030: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
19030ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
19031if test -z "$ac_err"; then
19032 rm -rf conftest*
19033 eval "ac_cv_header_$ac_safe=yes"
10f2d63a 19034else
698dcdb6
VZ
19035 echo "$ac_err" >&5
19036 echo "configure: failed program was:" >&5
10f2d63a 19037 cat conftest.$ac_ext >&5
698dcdb6
VZ
19038 rm -rf conftest*
19039 eval "ac_cv_header_$ac_safe=no"
10f2d63a 19040fi
698dcdb6 19041rm -f conftest*
10f2d63a 19042fi
698dcdb6
VZ
19043if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
19044 echo "$ac_t""yes" 1>&6
19045 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
19046 cat >> confdefs.h <<EOF
19047#define $ac_tr_hdr 1
10f2d63a 19048EOF
698dcdb6
VZ
19049
19050else
19051 echo "$ac_t""no" 1>&6
10f2d63a
VZ
19052fi
19053done
19054
3a922bb4
RL
19055 if test "$ac_cv_header_linux_joystick_h" != "yes"; then
19056 wxUSE_JOYSTICK=no
156b2523 19057 echo "configure: warning: Joystick not supported by this system... disabled" 1>&2
3a922bb4
RL
19058 fi
19059 fi
19060 fi
b089607b 19061
3a922bb4
RL
19062 if test "$wxUSE_JOYSTICK" = "yes"; then
19063 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19064#define wxUSE_JOYSTICK 1
19065EOF
19066
3a922bb4
RL
19067 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
19068 fi
dc3d889d
VZ
19069fi
19070
698dcdb6 19071
b089607b
VZ
19072if test "$TOOLKIT" != "MSW"; then
19073
3a922bb4
RL
19074 HAVE_DL_FUNCS=0
19075 HAVE_SHL_FUNCS=0
0b9ab0bd 19076 if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
3a922bb4
RL
19077 if test "$USE_DARWIN" = 1; then
19078 HAVE_DL_FUNCS=1
19079 else
19080 for ac_func in dlopen
10f2d63a 19081do
698dcdb6 19082echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21d1c967 19083echo "configure:19084: checking for $ac_func" >&5
698dcdb6
VZ
19084if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19085 echo $ac_n "(cached) $ac_c" 1>&6
19086else
19087 cat > conftest.$ac_ext <<EOF
21d1c967 19088#line 19089 "configure"
10f2d63a
VZ
19089#include "confdefs.h"
19090/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 19091 which can conflict with char $ac_func(); below. */
10f2d63a
VZ
19092#include <assert.h>
19093/* Override any gcc2 internal prototype to avoid an error. */
19094/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
19095 builtin and then its argument prototype would still apply. */
19096char $ac_func();
19097
19098int main() {
10f2d63a
VZ
19099
19100/* The GNU C library defines this for functions which it implements
19101 to always fail with ENOSYS. Some functions are actually named
19102 something starting with __ and the normal name is an alias. */
19103#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19104choke me
19105#else
698dcdb6 19106$ac_func();
10f2d63a
VZ
19107#endif
19108
698dcdb6
VZ
19109; return 0; }
19110EOF
21d1c967 19111if { (eval echo configure:19112: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
19112 rm -rf conftest*
19113 eval "ac_cv_func_$ac_func=yes"
19114else
19115 echo "configure: failed program was:" >&5
19116 cat conftest.$ac_ext >&5
19117 rm -rf conftest*
19118 eval "ac_cv_func_$ac_func=no"
19119fi
19120rm -f conftest*
19121fi
19122
19123if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19124 echo "$ac_t""yes" 1>&6
19125 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19126 cat >> confdefs.h <<EOF
19127#define $ac_tr_func 1
19128EOF
19129
3a922bb4 19130 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19131#define HAVE_DLOPEN 1
19132EOF
19133
3a922bb4
RL
19134 HAVE_DL_FUNCS=1
19135
10f2d63a 19136else
698dcdb6
VZ
19137 echo "$ac_t""no" 1>&6
19138echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
21d1c967 19139echo "configure:19140: checking for dlopen in -ldl" >&5
698dcdb6
VZ
19140ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
19141if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
19142 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 19143else
698dcdb6 19144 ac_save_LIBS="$LIBS"
10f2d63a 19145LIBS="-ldl $LIBS"
698dcdb6 19146cat > conftest.$ac_ext <<EOF
21d1c967 19147#line 19148 "configure"
10f2d63a
VZ
19148#include "confdefs.h"
19149/* Override any gcc2 internal prototype to avoid an error. */
19150/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
19151 builtin and then its argument prototype would still apply. */
19152char dlopen();
19153
19154int main() {
19155dlopen()
19156; return 0; }
19157EOF
21d1c967 19158if { (eval echo configure:19159: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
19159 rm -rf conftest*
19160 eval "ac_cv_lib_$ac_lib_var=yes"
19161else
19162 echo "configure: failed program was:" >&5
19163 cat conftest.$ac_ext >&5
19164 rm -rf conftest*
19165 eval "ac_cv_lib_$ac_lib_var=no"
19166fi
19167rm -f conftest*
19168LIBS="$ac_save_LIBS"
19169
19170fi
19171if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19172 echo "$ac_t""yes" 1>&6
19173
3a922bb4 19174 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19175#define HAVE_DLOPEN 1
19176EOF
19177
3a922bb4 19178 HAVE_DL_FUNCS=1
3d63bc3a 19179 DL_LINK=" -ldl$DL_LINK"
3a922bb4 19180
10f2d63a 19181else
698dcdb6 19182 echo "$ac_t""no" 1>&6
10f2d63a 19183
3a922bb4 19184 for ac_func in shl_load
10f2d63a 19185do
698dcdb6 19186echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21d1c967 19187echo "configure:19188: checking for $ac_func" >&5
698dcdb6
VZ
19188if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19189 echo $ac_n "(cached) $ac_c" 1>&6
19190else
19191 cat > conftest.$ac_ext <<EOF
21d1c967 19192#line 19193 "configure"
10f2d63a
VZ
19193#include "confdefs.h"
19194/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 19195 which can conflict with char $ac_func(); below. */
10f2d63a
VZ
19196#include <assert.h>
19197/* Override any gcc2 internal prototype to avoid an error. */
19198/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
19199 builtin and then its argument prototype would still apply. */
19200char $ac_func();
19201
19202int main() {
10f2d63a
VZ
19203
19204/* The GNU C library defines this for functions which it implements
19205 to always fail with ENOSYS. Some functions are actually named
19206 something starting with __ and the normal name is an alias. */
19207#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19208choke me
19209#else
698dcdb6 19210$ac_func();
10f2d63a
VZ
19211#endif
19212
698dcdb6
VZ
19213; return 0; }
19214EOF
21d1c967 19215if { (eval echo configure:19216: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
19216 rm -rf conftest*
19217 eval "ac_cv_func_$ac_func=yes"
19218else
19219 echo "configure: failed program was:" >&5
19220 cat conftest.$ac_ext >&5
19221 rm -rf conftest*
19222 eval "ac_cv_func_$ac_func=no"
19223fi
19224rm -f conftest*
19225fi
19226
19227if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19228 echo "$ac_t""yes" 1>&6
19229 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19230 cat >> confdefs.h <<EOF
19231#define $ac_tr_func 1
19232EOF
19233
3a922bb4 19234 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19235#define HAVE_SHL_LOAD 1
19236EOF
19237
3a922bb4
RL
19238 HAVE_SHL_FUNCS=1
19239
10f2d63a 19240else
698dcdb6
VZ
19241 echo "$ac_t""no" 1>&6
19242echo $ac_n "checking for dld in -lshl_load""... $ac_c" 1>&6
21d1c967 19243echo "configure:19244: checking for dld in -lshl_load" >&5
698dcdb6
VZ
19244ac_lib_var=`echo shl_load'_'dld | sed 'y%./+-%__p_%'`
19245if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
19246 echo $ac_n "(cached) $ac_c" 1>&6
f6bcfd97 19247else
698dcdb6 19248 ac_save_LIBS="$LIBS"
f6bcfd97 19249LIBS="-lshl_load $LIBS"
698dcdb6 19250cat > conftest.$ac_ext <<EOF
21d1c967 19251#line 19252 "configure"
f6bcfd97
BP
19252#include "confdefs.h"
19253/* Override any gcc2 internal prototype to avoid an error. */
19254/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
19255 builtin and then its argument prototype would still apply. */
19256char dld();
19257
19258int main() {
19259dld()
19260; return 0; }
19261EOF
21d1c967 19262if { (eval echo configure:19263: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
19263 rm -rf conftest*
19264 eval "ac_cv_lib_$ac_lib_var=yes"
19265else
19266 echo "configure: failed program was:" >&5
19267 cat conftest.$ac_ext >&5
19268 rm -rf conftest*
19269 eval "ac_cv_lib_$ac_lib_var=no"
19270fi
19271rm -f conftest*
19272LIBS="$ac_save_LIBS"
f6bcfd97 19273
698dcdb6
VZ
19274fi
19275if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19276 echo "$ac_t""yes" 1>&6
19277
3a922bb4 19278 HAVE_SHL_FUNCS=1
3d63bc3a 19279 DL_LINK=" -ldld$DL_LINK"
3a922bb4 19280
698dcdb6
VZ
19281else
19282 echo "$ac_t""no" 1>&6
f6bcfd97
BP
19283fi
19284
3a922bb4 19285
10f2d63a
VZ
19286fi
19287done
19288
3a922bb4 19289
10f2d63a
VZ
19290fi
19291
3a922bb4 19292
10f2d63a
VZ
19293fi
19294done
19295
1e487827 19296
3a922bb4
RL
19297 if test "$HAVE_DL_FUNCS" = 1; then
19298 for ac_func in dlerror
f6bcfd97 19299do
698dcdb6 19300echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21d1c967 19301echo "configure:19302: checking for $ac_func" >&5
698dcdb6
VZ
19302if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19303 echo $ac_n "(cached) $ac_c" 1>&6
19304else
19305 cat > conftest.$ac_ext <<EOF
21d1c967 19306#line 19307 "configure"
f6bcfd97
BP
19307#include "confdefs.h"
19308/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 19309 which can conflict with char $ac_func(); below. */
f6bcfd97
BP
19310#include <assert.h>
19311/* Override any gcc2 internal prototype to avoid an error. */
19312/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
19313 builtin and then its argument prototype would still apply. */
19314char $ac_func();
19315
19316int main() {
f6bcfd97
BP
19317
19318/* The GNU C library defines this for functions which it implements
19319 to always fail with ENOSYS. Some functions are actually named
19320 something starting with __ and the normal name is an alias. */
19321#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19322choke me
19323#else
698dcdb6 19324$ac_func();
f6bcfd97
BP
19325#endif
19326
698dcdb6
VZ
19327; return 0; }
19328EOF
21d1c967 19329if { (eval echo configure:19330: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
19330 rm -rf conftest*
19331 eval "ac_cv_func_$ac_func=yes"
19332else
19333 echo "configure: failed program was:" >&5
19334 cat conftest.$ac_ext >&5
19335 rm -rf conftest*
19336 eval "ac_cv_func_$ac_func=no"
19337fi
19338rm -f conftest*
19339fi
19340
19341if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19342 echo "$ac_t""yes" 1>&6
19343 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19344 cat >> confdefs.h <<EOF
19345#define $ac_tr_func 1
19346EOF
19347 cat >> confdefs.h <<\EOF
f6bcfd97
BP
19348#define HAVE_DLERROR 1
19349EOF
19350
19351else
698dcdb6
VZ
19352 echo "$ac_t""no" 1>&6
19353echo $ac_n "checking for dlerror in -ldl""... $ac_c" 1>&6
21d1c967 19354echo "configure:19355: checking for dlerror in -ldl" >&5
698dcdb6
VZ
19355ac_lib_var=`echo dl'_'dlerror | sed 'y%./+-%__p_%'`
19356if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
19357 echo $ac_n "(cached) $ac_c" 1>&6
f6bcfd97 19358else
698dcdb6 19359 ac_save_LIBS="$LIBS"
f6bcfd97 19360LIBS="-ldl $LIBS"
698dcdb6 19361cat > conftest.$ac_ext <<EOF
21d1c967 19362#line 19363 "configure"
f6bcfd97
BP
19363#include "confdefs.h"
19364/* Override any gcc2 internal prototype to avoid an error. */
19365/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
19366 builtin and then its argument prototype would still apply. */
19367char dlerror();
19368
19369int main() {
19370dlerror()
19371; return 0; }
19372EOF
21d1c967 19373if { (eval echo configure:19374: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
19374 rm -rf conftest*
19375 eval "ac_cv_lib_$ac_lib_var=yes"
19376else
19377 echo "configure: failed program was:" >&5
19378 cat conftest.$ac_ext >&5
19379 rm -rf conftest*
19380 eval "ac_cv_lib_$ac_lib_var=no"
19381fi
19382rm -f conftest*
19383LIBS="$ac_save_LIBS"
19384
19385fi
19386if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19387 echo "$ac_t""yes" 1>&6
19388 cat >> confdefs.h <<\EOF
f6bcfd97
BP
19389#define HAVE_DLERROR 1
19390EOF
19391
698dcdb6
VZ
19392else
19393 echo "$ac_t""no" 1>&6
f6bcfd97
BP
19394fi
19395
19396fi
19397done
19398
3a922bb4
RL
19399 fi
19400 fi
f6bcfd97 19401
3a922bb4
RL
19402 if test "$HAVE_DL_FUNCS" = 0; then
19403 if test "$HAVE_SHL_FUNCS" = 0; then
19404 if test "$USE_UNIX" = 1; then
19405 echo "configure: warning: Missing dynamic loading support, several features will be disabled" 1>&2
0b9ab0bd 19406 wxUSE_DYNAMIC_LOADER=no
3a922bb4
RL
19407 wxUSE_DYNLIB_CLASS=no
19408 else
19409 echo "configure: warning: Assuming wxLibrary class works on this platform" 1>&2
19410 fi
19411 fi
10f2d63a
VZ
19412 fi
19413 fi
19414fi
19415
0b9ab0bd
RL
19416if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
19417 cat >> confdefs.h <<\EOF
19418#define wxUSE_DYNAMIC_LOADER 1
19419EOF
19420
19421elif test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
698dcdb6 19422 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19423#define wxUSE_DYNLIB_CLASS 1
19424EOF
19425
19426fi
19427
698dcdb6 19428
1e6feb95
VZ
19429if test "$wxUSE_FONTMAP" = "yes" ; then
19430 cat >> confdefs.h <<\EOF
19431#define wxUSE_FONTMAP 1
19432EOF
19433
19434fi
19435
10f2d63a 19436if test "$wxUSE_UNICODE" = "yes" ; then
698dcdb6 19437 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19438#define wxUSE_UNICODE 1
19439EOF
19440
bbc3925a
VS
19441
19442 if test "$wxUSE_MSW" != 1; then
19443 wxUSE_UNICODE_MSLU=no
19444 fi
a72a4bfa
VS
19445
19446 if test "$wxUSE_MSW" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
19447 echo $ac_n "checking for main in -lunicows""... $ac_c" 1>&6
21d1c967 19448echo "configure:19449: checking for main in -lunicows" >&5
a72a4bfa
VS
19449ac_lib_var=`echo unicows'_'main | sed 'y%./+-%__p_%'`
19450if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
19451 echo $ac_n "(cached) $ac_c" 1>&6
19452else
19453 ac_save_LIBS="$LIBS"
19454LIBS="-lunicows $LIBS"
19455cat > conftest.$ac_ext <<EOF
21d1c967 19456#line 19457 "configure"
a72a4bfa
VS
19457#include "confdefs.h"
19458
19459int main() {
19460main()
19461; return 0; }
19462EOF
21d1c967 19463if { (eval echo configure:19464: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a72a4bfa
VS
19464 rm -rf conftest*
19465 eval "ac_cv_lib_$ac_lib_var=yes"
19466else
19467 echo "configure: failed program was:" >&5
19468 cat conftest.$ac_ext >&5
19469 rm -rf conftest*
19470 eval "ac_cv_lib_$ac_lib_var=no"
19471fi
19472rm -f conftest*
19473LIBS="$ac_save_LIBS"
19474
19475fi
19476if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19477 echo "$ac_t""yes" 1>&6
19478
19479 cat >> confdefs.h <<\EOF
19480#define wxUSE_UNICODE_MSLU 1
19481EOF
19482
19483
19484else
19485 echo "$ac_t""no" 1>&6
19486
19487 echo "configure: warning: Compiler doesn't support MSLU (libunicows.a), disabled.
19488 Applications will only run on Windows NT/2000/XP!" 1>&2
19489 wxUSE_UNICODE_MSLU=no
19490
19491fi
19492
19493 fi
10f2d63a
VZ
19494fi
19495
10f2d63a 19496if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
698dcdb6 19497 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19498#define wxUSE_EXPERIMENTAL_PRINTF 1
19499EOF
19500
19501fi
19502
698dcdb6 19503
698dcdb6 19504
10f2d63a
VZ
19505IODBC_C_SRC=""
19506if test "$wxUSE_ODBC" = "yes" ; then
698dcdb6 19507 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19508#define wxUSE_ODBC 1
19509EOF
19510
19511 WXODBCFLAG="-D_IODBC_"
19512 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
10f2d63a
VZ
19513fi
19514
698dcdb6 19515
10f2d63a 19516if test "$wxUSE_POSTSCRIPT" = "yes" ; then
698dcdb6 19517 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19518#define wxUSE_POSTSCRIPT 1
19519EOF
19520
19521fi
19522
698dcdb6 19523cat >> confdefs.h <<\EOF
10f2d63a
VZ
19524#define wxUSE_AFM_FOR_POSTSCRIPT 1
19525EOF
19526
698dcdb6
VZ
19527
19528cat >> confdefs.h <<\EOF
10f2d63a
VZ
19529#define wxUSE_NORMALIZED_PS_FONTS 1
19530EOF
19531
698dcdb6
VZ
19532
19533
10f2d63a 19534if test "$wxUSE_CONSTRAINTS" = "yes"; then
698dcdb6 19535 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19536#define wxUSE_CONSTRAINTS 1
19537EOF
19538
19539 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
19540fi
19541
19542if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
fc26f4ab 19543 if test "$wxUSE_UNIVERSAL" = "yes"; then
0feee163 19544 echo "configure: warning: MDI not yet supported for wxUniversal... disabled" 1>&2
fc26f4ab
RL
19545 wxUSE_MDI_ARCHITECTURE=no
19546 fi
19547
19548 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
19549 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19550#define wxUSE_MDI_ARCHITECTURE 1
19551EOF
19552
fc26f4ab
RL
19553 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
19554 fi
10f2d63a
VZ
19555fi
19556
19557if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
698dcdb6 19558 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19559#define wxUSE_DOC_VIEW_ARCHITECTURE 1
19560EOF
19561
19562 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
19563 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
19564 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
19565 fi
19566fi
19567
19568if test "$wxUSE_HELP" = "yes"; then
698dcdb6 19569 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19570#define wxUSE_HELP 1
19571EOF
19572
19573 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
3379ed37 19574
77e13408 19575 if test "$wxUSE_MSW" = 1; then
031d8228 19576 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
3b7bc64a 19577 cat >> confdefs.h <<\EOF
29fd3c0c
VS
19578#define wxUSE_MS_HTML_HELP 1
19579EOF
19580
3e44f09d 19581 fi
3379ed37 19582 fi
031d8228
VS
19583
19584 if test "$wxUSE_WXHTML_HELP" = "yes"; then
19585 if test "$wxUSE_HTML" = "yes"; then
19586 cat >> confdefs.h <<\EOF
19587#define wxUSE_WXHTML_HELP 1
19588EOF
19589
19590 else
19591 echo "configure: warning: Cannot use wxHTML-based help without wxHTML so it won't be compiled" 1>&2
19592 wxUSE_WXHTML_HELP=no
19593 fi
19594 fi
10f2d63a
VZ
19595fi
19596
19597if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
19598 if test "$wxUSE_CONSTRAINTS" != "yes"; then
698dcdb6 19599 echo "configure: warning: Printing support cannot be used without constraints so it won't be compiled without it" 1>&2
10f2d63a 19600 else
698dcdb6 19601 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19602#define wxUSE_PRINTING_ARCHITECTURE 1
19603EOF
19604
19605 fi
19606 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
19607fi
19608
19609if test "$wxUSE_PROLOGIO" = "yes" ; then
698dcdb6 19610 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19611#define wxUSE_PROLOGIO 1
19612EOF
19613
19614fi
19615
19616if test "$wxUSE_RESOURCES" = "yes" ; then
e334d0ea
JS
19617 if test "$wxUSE_NANOX" = "yes"; then
19618 echo "configure: warning: Cannot use resource database functions in NanoX" 1>&2
19619 else
19620 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19621#define wxUSE_RESOURCES 1
19622EOF
19623
e334d0ea
JS
19624 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS resource"
19625 fi
10f2d63a
VZ
19626fi
19627
19628if test "$wxUSE_X_RESOURCES" = "yes"; then
698dcdb6 19629 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19630#define wxUSE_X_RESOURCES 1
19631EOF
19632
19633fi
19634
698dcdb6 19635
77e13408
RL
19636if test "$wxUSE_MSW" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
19637 -o "$wxUSE_CLIPBOARD" = "yes" \
19638 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
2b9bdf71 19639 for ac_hdr in ole2.h
10f2d63a 19640do
698dcdb6
VZ
19641ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
19642echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
21d1c967 19643echo "configure:19644: checking for $ac_hdr" >&5
698dcdb6
VZ
19644if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
19645 echo $ac_n "(cached) $ac_c" 1>&6
19646else
19647 cat > conftest.$ac_ext <<EOF
21d1c967 19648#line 19649 "configure"
10f2d63a 19649#include "confdefs.h"
698dcdb6
VZ
19650#include <$ac_hdr>
19651EOF
19652ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
21d1c967 19653{ (eval echo configure:19654: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
19654ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
19655if test -z "$ac_err"; then
19656 rm -rf conftest*
19657 eval "ac_cv_header_$ac_safe=yes"
1e487827 19658else
698dcdb6
VZ
19659 echo "$ac_err" >&5
19660 echo "configure: failed program was:" >&5
10f2d63a 19661 cat conftest.$ac_ext >&5
698dcdb6
VZ
19662 rm -rf conftest*
19663 eval "ac_cv_header_$ac_safe=no"
10f2d63a 19664fi
698dcdb6 19665rm -f conftest*
10f2d63a 19666fi
698dcdb6
VZ
19667if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
19668 echo "$ac_t""yes" 1>&6
19669 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
19670 cat >> confdefs.h <<EOF
19671#define $ac_tr_hdr 1
10f2d63a 19672EOF
698dcdb6
VZ
19673
19674else
19675 echo "$ac_t""no" 1>&6
10f2d63a
VZ
19676fi
19677done
19678
698dcdb6 19679
2b9bdf71
VZ
19680 if test "$ac_cv_header_ole2_h" = "yes" ; then
19681 if test "$GCC" = yes ; then
19682 ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)"
2b9bdf71 19683 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
3d63bc3a 19684 LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
2b9bdf71 19685 cat >> confdefs.h <<\EOF
4f11a343
VS
19686#define wxUSE_OLE 1
19687EOF
19688
b64f0a5f 19689
2b9bdf71
VZ
19690 fi
19691
19692 cat >> confdefs.h <<\EOF
19693#define wxUSE_DATAOBJ 1
19694EOF
19695
19696 else
19697 echo "configure: warning: Some features disabled because OLE headers not found" 1>&2
19698
19699 wxUSE_CLIPBOARD=no
19700 wxUSE_DRAG_AND_DROP=no
19701 wxUSE_DATAOBJ=no
19702 fi
19703
77e13408 19704 if test "$wxUSE_METAFILE" = "yes"; then
2b9bdf71 19705 cat >> confdefs.h <<\EOF
b64f0a5f
RL
19706#define wxUSE_METAFILE 1
19707EOF
19708
2b9bdf71
VZ
19709
19710 cat >> confdefs.h <<\EOF
b64f0a5f
RL
19711#define wxUSE_ENH_METAFILE 1
19712EOF
19713
2b9bdf71
VZ
19714 fi
19715fi
19716
19717if test "$wxUSE_IPC" = "yes"; then
19718 if test "$wxUSE_SOCKETS" != "yes"; then
156b2523 19719 echo "configure: warning: wxWindows IPC classes require sockets... disabled" 1>&2
2b9bdf71
VZ
19720 fi
19721
19722 cat >> confdefs.h <<\EOF
19723#define wxUSE_IPC 1
19724EOF
19725
19726fi
19727
19728if test "$wxUSE_CLIPBOARD" = "yes"; then
9691c806 19729 cat >> confdefs.h <<\EOF
2b9bdf71
VZ
19730#define wxUSE_CLIPBOARD 1
19731EOF
19732
673f4220 19733
9691c806 19734 cat >> confdefs.h <<\EOF
673f4220
VZ
19735#define wxUSE_DATAOBJ 1
19736EOF
19737
2b9bdf71
VZ
19738fi
19739
19740if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
19741 if test "$wxUSE_GTK" = 1; then
19742 if test "$WXGTK12" != 1; then
156b2523 19743 echo "configure: warning: Drag and drop is only supported under GTK+ 1.2... disabled" 1>&2
10f2d63a
VZ
19744 wxUSE_DRAG_AND_DROP=no
19745 fi
19746 fi
19747
2b9bdf71 19748 if test "$wxUSE_MOTIF" = 1; then
156b2523 19749 echo "configure: warning: Drag and drop not yet supported under Motif... disabled" 1>&2
2b9bdf71
VZ
19750 wxUSE_DRAG_AND_DROP=no
19751 fi
19752
f79bd02d
JS
19753 if test "$wxUSE_X11" = 1; then
19754 echo "configure: warning: Drag and drop not yet supported under X11... disabled" 1>&2
19755 wxUSE_DRAG_AND_DROP=no
19756 fi
19757
10f2d63a 19758 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
698dcdb6 19759 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19760#define wxUSE_DRAG_AND_DROP 1
19761EOF
19762
19763 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
19764 fi
19765
19766fi
19767
19768if test "$wxUSE_SPLINES" = "yes" ; then
698dcdb6 19769 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19770#define wxUSE_SPLINES 1
19771EOF
19772
19773fi
19774
698dcdb6 19775
1e6feb95
VZ
19776USES_CONTROLS=0
19777if test "$wxUSE_CONTROLS" = "yes"; then
19778 USES_CONTROLS=1
19779fi
19780
10f2d63a 19781if test "$wxUSE_ACCEL" = "yes"; then
698dcdb6 19782 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19783#define wxUSE_ACCEL 1
19784EOF
19785
1e6feb95
VZ
19786 USES_CONTROLS=1
19787fi
19788
19789if test "$wxUSE_BUTTON" = "yes"; then
19790 cat >> confdefs.h <<\EOF
19791#define wxUSE_BUTTON 1
19792EOF
19793
19794 USES_CONTROLS=1
19795fi
19796
19797if test "$wxUSE_BMPBUTTON" = "yes"; then
19798 cat >> confdefs.h <<\EOF
19799#define wxUSE_BMPBUTTON 1
19800EOF
19801
19802 USES_CONTROLS=1
19803fi
19804
19805if test "$wxUSE_CALCTRL" = "yes"; then
19806 cat >> confdefs.h <<\EOF
19807#define wxUSE_CALENDARCTRL 1
19808EOF
19809
19810 USES_CONTROLS=1
19811 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
10f2d63a
VZ
19812fi
19813
19814if test "$wxUSE_CARET" = "yes"; then
698dcdb6 19815 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19816#define wxUSE_CARET 1
19817EOF
19818
1e6feb95 19819 USES_CONTROLS=1
10f2d63a
VZ
19820 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
19821fi
19822
19823if test "$wxUSE_COMBOBOX" = "yes"; then
698dcdb6 19824 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19825#define wxUSE_COMBOBOX 1
19826EOF
19827
1e6feb95 19828 USES_CONTROLS=1
10f2d63a
VZ
19829fi
19830
19831if test "$wxUSE_CHOICE" = "yes"; then
698dcdb6 19832 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19833#define wxUSE_CHOICE 1
19834EOF
19835
1e6feb95 19836 USES_CONTROLS=1
10f2d63a
VZ
19837fi
19838
19839if test "$wxUSE_CHECKBOX" = "yes"; then
698dcdb6 19840 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19841#define wxUSE_CHECKBOX 1
19842EOF
19843
1e6feb95 19844 USES_CONTROLS=1
10f2d63a
VZ
19845fi
19846
19847if test "$wxUSE_CHECKLST" = "yes"; then
698dcdb6 19848 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19849#define wxUSE_CHECKLISTBOX 1
19850EOF
19851
1e6feb95 19852 USES_CONTROLS=1
10f2d63a
VZ
19853 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
19854fi
19855
19856if test "$wxUSE_GAUGE" = "yes"; then
698dcdb6 19857 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19858#define wxUSE_GAUGE 1
19859EOF
19860
1e6feb95 19861 USES_CONTROLS=1
10f2d63a
VZ
19862fi
19863
d6a55c4b
VZ
19864if test "$wxUSE_NEW_GRID" = "yes"; then
19865 wxUSE_GRID="yes"
698dcdb6 19866 cat >> confdefs.h <<\EOF
d6a55c4b 19867#define wxUSE_NEW_GRID 1
10f2d63a
VZ
19868EOF
19869
1e6feb95 19870 USES_CONTROLS=1
d6a55c4b 19871 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS newgrid"
10f2d63a
VZ
19872fi
19873
d6a55c4b 19874if test "$wxUSE_GRID" = "yes"; then
698dcdb6 19875 cat >> confdefs.h <<\EOF
d6a55c4b 19876#define wxUSE_GRID 1
10f2d63a
VZ
19877EOF
19878
1e6feb95 19879 USES_CONTROLS=1
d6a55c4b 19880 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
10f2d63a
VZ
19881fi
19882
19883if test "$wxUSE_IMAGLIST" = "yes"; then
698dcdb6 19884 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19885#define wxUSE_IMAGLIST 1
19886EOF
19887
19888fi
19889
19890if test "$wxUSE_LISTBOX" = "yes"; then
698dcdb6 19891 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19892#define wxUSE_LISTBOX 1
19893EOF
19894
1e6feb95 19895 USES_CONTROLS=1
10f2d63a
VZ
19896fi
19897
19898if test "$wxUSE_LISTCTRL" = "yes"; then
19899 if test "$wxUSE_IMAGLIST" = "yes"; then
698dcdb6 19900 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19901#define wxUSE_LISTCTRL 1
19902EOF
19903
1e6feb95 19904 USES_CONTROLS=1
10f2d63a
VZ
19905 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
19906 else
698dcdb6 19907 echo "configure: warning: wxListCtrl requires wxImageList and won't be compiled without it" 1>&2
10f2d63a
VZ
19908 fi
19909fi
19910
19911if test "$wxUSE_NOTEBOOK" = "yes"; then
698dcdb6 19912 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19913#define wxUSE_NOTEBOOK 1
19914EOF
19915
1e6feb95 19916 USES_CONTROLS=1
10f2d63a
VZ
19917 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
19918fi
19919
24176f2c
GD
19920if test "$wxUSE_PROPSHEET" = "yes"; then
19921 cat >> confdefs.h <<\EOF
19922#define wxUSE_PROPSHEET 1
19923EOF
19924
19925 USES_CONTROLS=1
19926 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS proplist"
19927fi
19928
10f2d63a 19929if test "$wxUSE_RADIOBOX" = "yes"; then
698dcdb6 19930 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19931#define wxUSE_RADIOBOX 1
19932EOF
19933
1e6feb95 19934 USES_CONTROLS=1
10f2d63a
VZ
19935fi
19936
19937if test "$wxUSE_RADIOBTN" = "yes"; then
698dcdb6 19938 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19939#define wxUSE_RADIOBTN 1
19940EOF
19941
1e6feb95 19942 USES_CONTROLS=1
10f2d63a
VZ
19943fi
19944
19945if test "$wxUSE_SASH" = "yes"; then
698dcdb6 19946 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19947#define wxUSE_SASH 1
19948EOF
19949
19950 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
19951fi
19952
19953if test "$wxUSE_SCROLLBAR" = "yes"; then
698dcdb6 19954 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19955#define wxUSE_SCROLLBAR 1
19956EOF
19957
1e6feb95 19958 USES_CONTROLS=1
741a9306 19959 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
10f2d63a
VZ
19960fi
19961
19962if test "$wxUSE_SLIDER" = "yes"; then
698dcdb6 19963 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19964#define wxUSE_SLIDER 1
19965EOF
19966
1e6feb95 19967 USES_CONTROLS=1
10f2d63a
VZ
19968fi
19969
19970if test "$wxUSE_SPINBTN" = "yes"; then
698dcdb6 19971 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19972#define wxUSE_SPINBTN 1
19973EOF
19974
1e6feb95 19975 USES_CONTROLS=1
10f2d63a
VZ
19976fi
19977
56cfaa52 19978if test "$wxUSE_SPINCTRL" = "yes"; then
698dcdb6 19979 cat >> confdefs.h <<\EOF
56cfaa52
RR
19980#define wxUSE_SPINCTRL 1
19981EOF
19982
1e6feb95 19983 USES_CONTROLS=1
56cfaa52
RR
19984fi
19985
10f2d63a 19986if test "$wxUSE_SPLITTER" = "yes"; then
698dcdb6 19987 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19988#define wxUSE_SPLITTER 1
19989EOF
19990
19991 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
19992fi
19993
19994if test "$wxUSE_STATBMP" = "yes"; then
698dcdb6 19995 cat >> confdefs.h <<\EOF
10f2d63a
VZ
19996#define wxUSE_STATBMP 1
19997EOF
19998
1e6feb95 19999 USES_CONTROLS=1
10f2d63a
VZ
20000fi
20001
20002if test "$wxUSE_STATBOX" = "yes"; then
698dcdb6 20003 cat >> confdefs.h <<\EOF
10f2d63a
VZ
20004#define wxUSE_STATBOX 1
20005EOF
20006
1e6feb95
VZ
20007 USES_CONTROLS=1
20008fi
20009
20010if test "$wxUSE_STATTEXT" = "yes"; then
20011 cat >> confdefs.h <<\EOF
20012#define wxUSE_STATTEXT 1
20013EOF
20014
20015 USES_CONTROLS=1
10f2d63a
VZ
20016fi
20017
20018if test "$wxUSE_STATLINE" = "yes"; then
20019 if test "$wxUSE_WINE" = 1 ; then
698dcdb6 20020 echo "configure: warning: wxStaticLine is not supported under WINE" 1>&2
10f2d63a 20021 else
698dcdb6 20022 cat >> confdefs.h <<\EOF
10f2d63a
VZ
20023#define wxUSE_STATLINE 1
20024EOF
20025
1e6feb95 20026 USES_CONTROLS=1
10f2d63a
VZ
20027 fi
20028fi
20029
20030if test "$wxUSE_STATUSBAR" = "yes"; then
698dcdb6 20031 cat >> confdefs.h <<\EOF
10f2d63a
VZ
20032#define wxUSE_STATUSBAR 1
20033EOF
20034
1e6feb95 20035 USES_CONTROLS=1
698dcdb6 20036
2286341c 20037 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
10f2d63a
VZ
20038fi
20039
20040if test "$wxUSE_TABDIALOG" = "yes"; then
698dcdb6 20041 cat >> confdefs.h <<\EOF
10f2d63a
VZ
20042#define wxUSE_TAB_DIALOG 1
20043EOF
20044
20045 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
20046fi
20047
1e6feb95
VZ
20048if test "$wxUSE_TEXTCTRL" = "yes"; then
20049 cat >> confdefs.h <<\EOF
20050#define wxUSE_TEXTCTRL 1
20051EOF
20052
20053 USES_CONTROLS=1
20054 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
20055fi
20056
1db8dc4a 20057if test "$wxUSE_TOGGLEBTN" = "yes"; then
156b2523
GD
20058 if test "$wxUSE_MAC" = 1; then
20059 echo "configure: warning: Toggle button not yet supported under Mac OS X... disabled" 1>&2
20060 wxUSE_TOGGLEBTN=no
20061 fi
20062 if test "$wxUSE_UNIVERSAL" = "yes"; then
0feee163 20063 echo "configure: warning: Toggle button not yet supported under wxUniversal... disabled" 1>&2
a45d7ab7
GD
20064 wxUSE_TOGGLEBTN=no
20065 fi
20066
20067 if test "$wxUSE_TOGGLEBTN" = "yes"; then
20068 cat >> confdefs.h <<\EOF
1db8dc4a
VZ
20069#define wxUSE_TOGGLEBTN 1
20070EOF
20071
1e6feb95 20072 USES_CONTROLS=1
a45d7ab7 20073 fi
1db8dc4a
VZ
20074fi
20075
360d6699 20076if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
698dcdb6 20077 cat >> confdefs.h <<\EOF
360d6699
VZ
20078#define wxUSE_TOOLBAR_SIMPLE 1
20079EOF
20080
20081 wxUSE_TOOLBAR="yes"
1e6feb95 20082 USES_CONTROLS=1
360d6699
VZ
20083fi
20084
10f2d63a 20085if test "$wxUSE_TOOLBAR" = "yes"; then
698dcdb6 20086 cat >> confdefs.h <<\EOF
10f2d63a
VZ
20087#define wxUSE_TOOLBAR 1
20088EOF
20089
1e6feb95 20090 USES_CONTROLS=1
698dcdb6 20091
360d6699
VZ
20092 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
20093 wxUSE_TOOLBAR_NATIVE="yes"
20094 fi
20095
1e6feb95
VZ
20096 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
20097 cat >> confdefs.h <<\EOF
360d6699
VZ
20098#define wxUSE_TOOLBAR_NATIVE 1
20099EOF
20100
1e6feb95
VZ
20101 USES_CONTROLS=1
20102 fi
20103
20104 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
360d6699
VZ
20105fi
20106
10f2d63a
VZ
20107if test "$wxUSE_TOOLTIPS" = "yes"; then
20108 if test "$wxUSE_MOTIF" = 1; then
156b2523 20109 echo "configure: warning: wxTooltip not supported yet under Motif... disabled" 1>&2
10f2d63a
VZ
20110 else
20111 if test "$wxUSE_WINE" = 1; then
156b2523 20112 echo "configure: warning: wxTooltip not supported under WINE... disabled" 1>&2
10f2d63a 20113 else
69d27ff7 20114 if test "$wxUSE_UNIVERSAL" = "yes"; then
0feee163 20115 echo "configure: warning: wxTooltip not supported yet in wxUniversal... disabled" 1>&2
69d27ff7 20116 else
3c011993 20117 cat >> confdefs.h <<\EOF
10f2d63a
VZ
20118#define wxUSE_TOOLTIPS 1
20119EOF
20120
69d27ff7 20121 fi
10f2d63a
VZ
20122 fi
20123 fi
20124fi
20125
20126if test "$wxUSE_TREECTRL" = "yes"; then
20127 if test "$wxUSE_IMAGLIST" = "yes"; then
698dcdb6 20128 cat >> confdefs.h <<\EOF
10f2d63a
VZ
20129#define wxUSE_TREECTRL 1
20130EOF
20131
1e6feb95 20132 USES_CONTROLS=1
10f2d63a
VZ
20133 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
20134 else
698dcdb6 20135 echo "configure: warning: wxTreeCtrl requires wxImageList and won't be compiled without it" 1>&2
10f2d63a
VZ
20136 fi
20137fi
20138
9f41d601 20139if test "$wxUSE_POPUPWIN" = "yes"; then
6abe4b65 20140 if test "$wxUSE_MAC" = 1; then
156b2523 20141 echo "configure: warning: Popup window not yet supported under Mac OS X... disabled" 1>&2
6abe4b65 20142 else
485cf710
VZ
20143 if test "$wxUSE_MOTIF" = 1; then
20144 echo "configure: warning: wxPopupWindow not yet supported under Motif... disabled" 1>&2
20145 else
3c011993
VZ
20146 if test "$wxUSE_PM" = 1; then
20147 echo "configure: warning: wxPopupWindow not yet supported under PM... disabled" 1>&2
20148 else
20149 cat >> confdefs.h <<\EOF
9f41d601
RR
20150#define wxUSE_POPUPWIN 1
20151EOF
20152
9926e4a4 20153
3c011993
VZ
20154 USES_CONTROLS=1
20155 fi
485cf710 20156 fi
6abe4b65 20157 fi
9f41d601
RR
20158fi
20159
dd964dcc 20160if test "$wxUSE_TIPWINDOW" = "yes"; then
3c011993
VZ
20161 if test "$wxUSE_PM" = 1; then
20162 echo "configure: warning: wxTipWindow not yet supported under PM... disabled" 1>&2
20163 else
20164 cat >> confdefs.h <<\EOF
dd964dcc
VZ
20165#define wxUSE_TIPWINDOW 1
20166EOF
20167
3c011993 20168 fi
dd964dcc
VZ
20169fi
20170
1e6feb95
VZ
20171if test "$USES_CONTROLS" = 1; then
20172 cat >> confdefs.h <<\EOF
20173#define wxUSE_CONTROLS 1
10f2d63a
VZ
20174EOF
20175
10f2d63a
VZ
20176fi
20177
1e6feb95 20178
24176f2c
GD
20179if test "$wxUSE_TREELAYOUT" = "yes"; then
20180 cat >> confdefs.h <<\EOF
20181#define wxUSE_TREELAYOUT 1
20182EOF
20183
20184 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treelay"
20185fi
1e6feb95 20186
24fd6d87
VZ
20187if test "$wxUSE_DRAGIMAGE" = "yes"; then
20188 cat >> confdefs.h <<\EOF
20189#define wxUSE_DRAGIMAGE 1
20190EOF
20191
20192 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
20193fi
20194
1e6feb95 20195if test "$wxUSE_MENUS" = "yes"; then
698dcdb6 20196 cat >> confdefs.h <<\EOF
1e6feb95 20197#define wxUSE_MENUS 1
10f2d63a
VZ
20198EOF
20199
1e6feb95 20200 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
10f2d63a
VZ
20201fi
20202
1e6feb95
VZ
20203if test "$wxUSE_METAFILE" = "yes"; then
20204 cat >> confdefs.h <<\EOF
20205#define wxUSE_METAFILE 1
10f2d63a
VZ
20206EOF
20207
10f2d63a
VZ
20208fi
20209
1e6feb95
VZ
20210if test "$wxUSE_MIMETYPE" = "yes"; then
20211 cat >> confdefs.h <<\EOF
20212#define wxUSE_MIMETYPE 1
10f2d63a
VZ
20213EOF
20214
10f2d63a
VZ
20215fi
20216
3e44f09d
VZ
20217if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
20218 cat >> confdefs.h <<\EOF
20219#define wxUSE_SYSTEM_OPTIONS 1
20220EOF
20221
20222fi
20223
4cdb0ab0 20224if test "$wxUSE_PROTOCOL" = "yes"; then
3954f9ca
VS
20225 if test "$wxUSE_SOCKETS" != "yes"; then
20226 echo "configure: warning: Protocol classes require sockets... disabled" 1>&2
20227 wxUSE_PROTOCOL=no
20228 fi
20229
20230 if test "$wxUSE_PROTOCOL" = "yes"; then
20231 cat >> confdefs.h <<\EOF
4cdb0ab0
VS
20232#define wxUSE_PROTOCOL 1
20233EOF
20234
20235
3954f9ca
VS
20236 if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
20237 cat >> confdefs.h <<\EOF
4cdb0ab0
VS
20238#define wxUSE_PROTOCOL_HTTP 1
20239EOF
20240
3954f9ca
VS
20241 fi
20242 if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
20243 cat >> confdefs.h <<\EOF
4cdb0ab0
VS
20244#define wxUSE_PROTOCOL_FTP 1
20245EOF
20246
3954f9ca
VS
20247 fi
20248 if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
20249 cat >> confdefs.h <<\EOF
20250#define wxUSE_PROTOCOL_FILE 1
20251EOF
20252
20253 fi
4cdb0ab0 20254 fi
3954f9ca
VS
20255fi
20256
20257if test "$wxUSE_URL" = "yes"; then
20258 if test "$wxUSE_PROTOCOL" != "yes"; then
20259 echo "configure: warning: wxURL class requires wxProtocol... disabled" 1>&2
20260 wxUSE_URL=no
20261 fi
20262 if test "$wxUSE_URL" = "yes"; then
4cdb0ab0 20263 cat >> confdefs.h <<\EOF
3954f9ca 20264#define wxUSE_URL 1
4cdb0ab0
VS
20265EOF
20266
20267 fi
20268fi
20269
10f2d63a 20270if test "$wxUSE_MINIFRAME" = "yes"; then
698dcdb6 20271 cat >> confdefs.h <<\EOF
10f2d63a
VZ
20272#define wxUSE_MINIFRAME 1
20273EOF
20274
20275 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
20276fi
20277
20278if test "$wxUSE_HTML" = "yes"; then
698dcdb6 20279 cat >> confdefs.h <<\EOF
10f2d63a
VZ
20280#define wxUSE_HTML 1
20281EOF
20282
20283 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html"
10f2d63a
VZ
20284fi
20285
20286if test "$wxUSE_VALIDATORS" = "yes"; then
698dcdb6 20287 cat >> confdefs.h <<\EOF
1e487827
VS
20288#define wxUSE_VALIDATORS 1
20289EOF
703e0a69 20290
698dcdb6
VZ
20291 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
20292fi
20293
edae8572
VZ
20294if test "$wxUSE_PALETTE" = "yes" ; then
20295 cat >> confdefs.h <<\EOF
20296#define wxUSE_PALETTE 1
20297EOF
20298
20299fi
20300
698dcdb6
VZ
20301if test "$wxUSE_IMAGE" = "yes" ; then
20302 cat >> confdefs.h <<\EOF
20303#define wxUSE_IMAGE 1
20304EOF
20305
20306fi
20307
20308if test "$wxUSE_GIF" = "yes" ; then
20309 cat >> confdefs.h <<\EOF
20310#define wxUSE_GIF 1
20311EOF
20312
20313fi
20314
20315if test "$wxUSE_PCX" = "yes" ; then
20316 cat >> confdefs.h <<\EOF
20317#define wxUSE_PCX 1
20318EOF
20319
20320fi
20321
4b6b4dfc
RR
20322if test "$wxUSE_IFF" = "yes" ; then
20323 cat >> confdefs.h <<\EOF
20324#define wxUSE_IFF 1
20325EOF
20326
20327fi
20328
698dcdb6
VZ
20329if test "$wxUSE_PNM" = "yes" ; then
20330 cat >> confdefs.h <<\EOF
20331#define wxUSE_PNM 1
20332EOF
20333
20334fi
20335
20336if test "$wxUSE_XPM" = "yes" ; then
20337 cat >> confdefs.h <<\EOF
20338#define wxUSE_XPM 1
20339EOF
20340
20341fi
20342
658974ae
VS
20343if test "$wxUSE_ICO_CUR" = "yes" ; then
20344 cat >> confdefs.h <<\EOF
20345#define wxUSE_ICO_CUR 1
20346EOF
20347
20348fi
20349
a72a4bfa
VS
20350if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
20351 LIBS=" -lunicows $LIBS"
20352fi
20353
698dcdb6 20354
1e6feb95
VZ
20355if test "$wxUSE_CHOICEDLG" = "yes"; then
20356 cat >> confdefs.h <<\EOF
20357#define wxUSE_CHOICEDLG 1
20358EOF
20359
20360fi
20361
20362if test "$wxUSE_COLOURDLG" = "yes"; then
20363 cat >> confdefs.h <<\EOF
20364#define wxUSE_COLOURDLG 1
20365EOF
20366
20367fi
20368
20369if test "$wxUSE_FILEDLG" = "yes"; then
20370 cat >> confdefs.h <<\EOF
20371#define wxUSE_FILEDLG 1
20372EOF
20373
20374fi
20375
8db37e06
VZ
20376if test "$wxUSE_FINDREPLDLG" = "yes"; then
20377 cat >> confdefs.h <<\EOF
20378#define wxUSE_FINDREPLDLG 1
20379EOF
20380
20381fi
20382
1e6feb95
VZ
20383if test "$wxUSE_FONTDLG" = "yes"; then
20384 cat >> confdefs.h <<\EOF
20385#define wxUSE_FONTDLG 1
20386EOF
20387
20388fi
20389
20390if test "$wxUSE_DIRDLG" = "yes"; then
ae1daed0
JS
20391 if test "$wxUSE_TREECTRL" != "yes"; then
20392 echo "configure: warning: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" 1>&2
1e6feb95 20393 else
ae1daed0 20394 cat >> confdefs.h <<\EOF
1e6feb95
VZ
20395#define wxUSE_DIRDLG 1
20396EOF
20397
1e6feb95
VZ
20398 fi
20399fi
20400
20401if test "$wxUSE_MSGDLG" = "yes"; then
20402 cat >> confdefs.h <<\EOF
20403#define wxUSE_MSGDLG 1
20404EOF
20405
20406fi
20407
20408if test "$wxUSE_NUMBERDLG" = "yes"; then
20409 cat >> confdefs.h <<\EOF
20410#define wxUSE_NUMBERDLG 1
20411EOF
20412
20413fi
20414
20415if test "$wxUSE_PROGRESSDLG" = "yes"; then
20416 if test "$wxUSE_CONSTRAINTS" != "yes"; then
20417 echo "configure: warning: wxProgressDialog requires constraints so it won't be compiled without them" 1>&2
20418 else
20419 cat >> confdefs.h <<\EOF
20420#define wxUSE_PROGRESSDLG 1
20421EOF
20422
20423 fi
20424fi
20425
cbca9943
VZ
20426if test "$wxUSE_SPLASH" = "yes"; then
20427 cat >> confdefs.h <<\EOF
20428#define wxUSE_SPLASH 1
20429EOF
20430
20431fi
20432
1e6feb95
VZ
20433if test "$wxUSE_STARTUP_TIPS" = "yes"; then
20434 if test "$wxUSE_CONSTRAINTS" != "yes"; then
20435 echo "configure: warning: Startup tips requires constraints and won't be compiled without them" 1>&2
20436 else
20437 cat >> confdefs.h <<\EOF
20438#define wxUSE_STARTUP_TIPS 1
20439EOF
20440
20441 fi
20442fi
20443
20444if test "$wxUSE_TEXTDLG" = "yes"; then
20445 cat >> confdefs.h <<\EOF
20446#define wxUSE_TEXTDLG 1
20447EOF
20448
20449fi
20450
b1f5d087
VZ
20451if test "$wxUSE_WIZARDDLG" = "yes"; then
20452 cat >> confdefs.h <<\EOF
20453#define wxUSE_WIZARDDLG 1
20454EOF
20455
20456 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
20457fi
20458
1e6feb95 20459
698dcdb6
VZ
20460if test "$cross_compiling" = "yes"; then
20461 OSINFO="\"$host\""
20462else
20463 OSINFO=`uname -s -r -m`
20464 OSINFO="\"$OSINFO\""
20465fi
20466
20467cat >> confdefs.h <<EOF
20468#define WXWIN_OS_DESCRIPTION $OSINFO
20469EOF
20470
20471
20472
06dda230
VZ
20473if test "x$prefix" != "xNONE"; then
20474 wxPREFIX=$prefix
20475else
20476 wxPREFIX=$ac_default_prefix
20477fi
20478
7e67ed0d 20479cat >> confdefs.h <<EOF
06dda230 20480#define wxINSTALL_PREFIX "$wxPREFIX"
7e67ed0d
VZ
20481EOF
20482
20483
20484
698dcdb6 20485
3a922bb4 20486
f11bdd03 20487if test "$wxUSE_MAC" = 1 ; then
3d63bc3a 20488 LDFLAGS="$LDFLAGS -framework Carbon -framework System"
698dcdb6 20489fi
3a922bb4 20490
3d63bc3a 20491
009fead0 20492LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK -lm $LIBS"
3d63bc3a 20493
698dcdb6 20494if test "$wxUSE_GUI" = "yes"; then
3d63bc3a 20495
cb61c62d 20496 LIBS="$GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $LIBS"
3a922bb4
RL
20497
20498
867a54b6 20499 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs \
3a922bb4
RL
20500 drawing dynamic erase event exec font image \
20501 minimal richedit rotate widgets"
20502
3a922bb4
RL
20503 CPPFLAGS="$CPPFLAGS \$(EXTRADEFS) \$(APPEXTRADEFS)"
20504else
20505 SAMPLES_SUBDIRS="console"
698dcdb6
VZ
20506fi
20507
698dcdb6 20508
57973b9c
VZ
20509INCLUDES="-I\${top_builddir}/lib/wx/include/${TOOLCHAIN_NAME} \
20510-I\${top_srcdir}/include \
20511$REGEX_INCLUDE $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE \
20512$TOOLKIT_INCLUDE"
698dcdb6 20513
63e7762e 20514if test "$wxUSE_GTK" = 1; then
3d63bc3a 20515 WXCONFIG_INCLUDE=
698dcdb6
VZ
20516else
20517 WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
20518fi
20519
20520if test "$GXX" = yes ; then
20521 CXXWARNINGS="-Wall"
88e30f2b
RL
20522
20523 if test "$wxUSE_NO_DEPS" = "no" ; then
20524 CFLAGS="-MMD $CFLAGS"
20525 CXXFLAGS="-MMD $CXXFLAGS"
20526 fi
20527fi
20528
1725144d 20529EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE $INCLUDES"
698dcdb6
VZ
20530
20531CFLAGS=`echo $CFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'`
20532CXXFLAGS=`echo $CXXFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \+/ /g'`
fe5a9cab 20533LIBS=`echo $LIBS | sed 's/ \+/ /g'`
698dcdb6 20534
fe5a9cab 20535LDFLAGS="$LDFLAGS $PROFILE"
698dcdb6 20536
698dcdb6
VZ
20537SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
20538
20539
20540
20541
20542
20543
20544
20545
20546
20547
20548
20549
20550
20551
20552
20553
20554
20555
20556
20557
20558
20559
20560
20561
20562
20563
20564
20565
20566
20567
20568
20569
20570
20571
20572
20573
20574
20575
20576
20577
20578
20579
20580
20581
20582
20583
20584
20585
20586
20587
20588
20589
20590
20591
20592
20593
20594
20595
20596
20597
20598
20599
20600
20601
20602
20603
20604
32832908 20605
2f51a9ec
GD
20606
20607
20608
20609
f6bcfd97 20610
dad6c0ea 20611
caa2c79b 20612
3711412e 20613
1e6feb95
VZ
20614
20615
885d4bf5
VS
20616
20617
20618
20619
9b695262
VZ
20620
20621
62d0491b 20622
ef7f2189 20623
40f7145c 20624
10f2d63a
VZ
20625
20626
698dcdb6 20627echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
21d1c967 20628echo "configure:20629: checking whether ${MAKE-make} sets \${MAKE}" >&5
698dcdb6
VZ
20629set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
20630if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
20631 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 20632else
698dcdb6 20633 cat > conftestmake <<\EOF
10f2d63a
VZ
20634all:
20635 @echo 'ac_maketemp="${MAKE}"'
20636EOF
20637# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
698dcdb6 20638eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
10f2d63a
VZ
20639if test -n "$ac_maketemp"; then
20640 eval ac_cv_prog_make_${ac_make}_set=yes
20641else
20642 eval ac_cv_prog_make_${ac_make}_set=no
20643fi
698dcdb6 20644rm -f conftestmake
10f2d63a
VZ
20645fi
20646if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
698dcdb6 20647 echo "$ac_t""yes" 1>&6
10f2d63a
VZ
20648 SET_MAKE=
20649else
698dcdb6 20650 echo "$ac_t""no" 1>&6
10f2d63a
VZ
20651 SET_MAKE="MAKE=${MAKE-make}"
20652fi
20653
698dcdb6 20654
3a922bb4
RL
20655if test -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h; then
20656 mv -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h setup.h
00cf1208 20657fi
665bbe97 20658
698dcdb6 20659
10f2d63a 20660
57973b9c
VZ
20661wx_cv_path_samplesubdirs=$SAMPLES_SUBDIRS
20662wx_cv_if_gnu_make=$IF_GNU_MAKE
20663wx_cv_path_ifs=$PATH_IFS
20664wx_cv_program_ext=$PROGRAM_EXT
20665wx_cv_target_library=$WX_TARGET_LIBRARY
20666wx_cv_target_library_gl=$WX_TARGET_LIBRARY_GL
20667wx_cv_target_libtype=$WX_TARGET_LIBRARY_TYPE
20668export wx_cv_path_samplesubdirs wx_cv_if_gnu_make \
20669 wx_cv_path_ifs wx_cv_program_ext \
20670 wx_cv_target_library wx_cv_target_library_gl wx_cv_target_libtype
20671
20672subdirs="demos samples utils contrib"
2224580a 20673
10f2d63a 20674
698dcdb6
VZ
20675trap '' 1 2 15
20676cat > confcache <<\EOF
10f2d63a
VZ
20677# This file is a shell script that caches the results of configure
20678# tests run on this system so they can be shared between configure
698dcdb6
VZ
20679# scripts and configure runs. It is not useful on other systems.
20680# If it contains results you don't want to keep, you may remove or edit it.
10f2d63a 20681#
698dcdb6
VZ
20682# By default, configure uses ./config.cache as the cache file,
20683# creating it if it does not exist already. You can give configure
20684# the --cache-file=FILE option to use a different cache file; that is
20685# what configure does when it calls configure scripts in
20686# subdirectories, so they share the cache.
20687# Giving --cache-file=/dev/null disables caching, for debugging configure.
20688# config.status only pays attention to the cache file if you give it the
20689# --recheck option to rerun configure.
10f2d63a 20690#
698dcdb6 20691EOF
10f2d63a
VZ
20692# The following way of writing the cache mishandles newlines in values,
20693# but we know of no workaround that is simple, portable, and efficient.
20694# So, don't put newlines in cache variables' values.
20695# Ultrix sh set writes to stderr and can't be redirected directly,
20696# and sets the high bit in the cache file unless we assign to the vars.
698dcdb6
VZ
20697(set) 2>&1 |
20698 case `(ac_space=' '; set | grep ac_space) 2>&1` in
20699 *ac_space=\ *)
20700 # `set' does not quote correctly, so add quotes (double-quote substitution
20701 # turns \\\\ into \\, and sed turns \\ into \).
20702 sed -n \
20703 -e "s/'/'\\\\''/g" \
20704 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
20705 ;;
20706 *)
20707 # `set' quotes correctly as required by POSIX, so do not add quotes.
20708 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
20709 ;;
20710 esac >> confcache
20711if cmp -s $cache_file confcache; then
20712 :
20713else
10f2d63a 20714 if test -w $cache_file; then
698dcdb6
VZ
20715 echo "updating cache $cache_file"
20716 cat confcache > $cache_file
10f2d63a
VZ
20717 else
20718 echo "not updating unwritable cache $cache_file"
20719 fi
20720fi
20721rm -f confcache
20722
698dcdb6
VZ
20723trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
20724
10f2d63a
VZ
20725test "x$prefix" = xNONE && prefix=$ac_default_prefix
20726# Let make expand exec_prefix.
20727test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20728
698dcdb6
VZ
20729# Any assignment to VPATH causes Sun make to only execute
20730# the first set of double-colon rules, so remove it if not needed.
20731# If there is a colon in the path, we need to keep it.
10f2d63a 20732if test "x$srcdir" = x.; then
698dcdb6 20733 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
10f2d63a
VZ
20734fi
20735
698dcdb6
VZ
20736trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
20737
10f2d63a
VZ
20738DEFS=-DHAVE_CONFIG_H
20739
698dcdb6 20740# Without the "./", some shells look in PATH for config.status.
10f2d63a 20741: ${CONFIG_STATUS=./config.status}
698dcdb6
VZ
20742
20743echo creating $CONFIG_STATUS
20744rm -f $CONFIG_STATUS
20745cat > $CONFIG_STATUS <<EOF
20746#! /bin/sh
10f2d63a
VZ
20747# Generated automatically by configure.
20748# Run this file to recreate the current configuration.
698dcdb6
VZ
20749# This directory was configured as follows,
20750# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20751#
20752# $0 $ac_configure_args
20753#
10f2d63a 20754# Compiler output produced by configure, useful for debugging
698dcdb6 20755# configure, is in ./config.log if it exists.
1e487827 20756
698dcdb6
VZ
20757ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
20758for ac_option
10f2d63a 20759do
698dcdb6 20760 case "\$ac_option" in
10f2d63a 20761 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
698dcdb6
VZ
20762 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
20763 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
20764 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
20765 echo "$CONFIG_STATUS generated by autoconf version 2.13"
20766 exit 0 ;;
20767 -help | --help | --hel | --he | --h)
20768 echo "\$ac_cs_usage"; exit 0 ;;
20769 *) echo "\$ac_cs_usage"; exit 1 ;;
10f2d63a
VZ
20770 esac
20771done
20772
698dcdb6
VZ
20773ac_given_srcdir=$srcdir
20774ac_given_INSTALL="$INSTALL"
703e0a69 20775
698dcdb6
VZ
20776trap 'rm -fr `echo "
20777 wx-config
20778 src/make.env
20779 src/makeprog.env
20780 src/makelib.env
20781 Makefile
20782 setup.h:setup.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1e487827 20783EOF
698dcdb6 20784cat >> $CONFIG_STATUS <<EOF
1e487827 20785
698dcdb6
VZ
20786# Protect against being on the right side of a sed subst in config.status.
20787sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
20788 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
20789$ac_vpsub
20790$extrasub
20791s%@SHELL@%$SHELL%g
20792s%@CFLAGS@%$CFLAGS%g
20793s%@CPPFLAGS@%$CPPFLAGS%g
20794s%@CXXFLAGS@%$CXXFLAGS%g
20795s%@FFLAGS@%$FFLAGS%g
20796s%@DEFS@%$DEFS%g
20797s%@LDFLAGS@%$LDFLAGS%g
20798s%@LIBS@%$LIBS%g
20799s%@exec_prefix@%$exec_prefix%g
20800s%@prefix@%$prefix%g
20801s%@program_transform_name@%$program_transform_name%g
20802s%@bindir@%$bindir%g
20803s%@sbindir@%$sbindir%g
20804s%@libexecdir@%$libexecdir%g
20805s%@datadir@%$datadir%g
20806s%@sysconfdir@%$sysconfdir%g
20807s%@sharedstatedir@%$sharedstatedir%g
20808s%@localstatedir@%$localstatedir%g
20809s%@libdir@%$libdir%g
20810s%@includedir@%$includedir%g
20811s%@oldincludedir@%$oldincludedir%g
20812s%@infodir@%$infodir%g
20813s%@mandir@%$mandir%g
20814s%@host@%$host%g
20815s%@host_alias@%$host_alias%g
20816s%@host_cpu@%$host_cpu%g
20817s%@host_vendor@%$host_vendor%g
20818s%@host_os@%$host_os%g
20819s%@target@%$target%g
20820s%@target_alias@%$target_alias%g
20821s%@target_cpu@%$target_cpu%g
20822s%@target_vendor@%$target_vendor%g
20823s%@target_os@%$target_os%g
20824s%@build@%$build%g
20825s%@build_alias@%$build_alias%g
20826s%@build_cpu@%$build_cpu%g
20827s%@build_vendor@%$build_vendor%g
20828s%@build_os@%$build_os%g
20829s%@CC@%$CC%g
20830s%@CPP@%$CPP%g
20831s%@CXX@%$CXX%g
698dcdb6
VZ
20832s%@RANLIB@%$RANLIB%g
20833s%@AR@%$AR%g
20834s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
d6853540 20835s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
6054113a 20836s%@INSTALL_DATA@%$INSTALL_DATA%g
698dcdb6 20837s%@STRIP@%$STRIP%g
613d0995 20838s%@IF_GNU_MAKE@%$IF_GNU_MAKE%g
698dcdb6
VZ
20839s%@YACC@%$YACC%g
20840s%@LEX@%$LEX%g
20841s%@LEXLIB@%$LEXLIB%g
20842s%@LN_S@%$LN_S%g
90dd450c 20843s%@CXXCPP@%$CXXCPP%g
9e691f46 20844s%@PKG_CONFIG@%$PKG_CONFIG%g
698dcdb6
VZ
20845s%@GTK_CFLAGS@%$GTK_CFLAGS%g
20846s%@GTK_LIBS@%$GTK_LIBS%g
8168de4c 20847s%@GTK_CONFIG@%$GTK_CONFIG%g
698dcdb6
VZ
20848s%@X_CFLAGS@%$X_CFLAGS%g
20849s%@X_PRE_LIBS@%$X_PRE_LIBS%g
20850s%@X_LIBS@%$X_LIBS%g
20851s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
3a922bb4 20852s%@RESCOMP@%$RESCOMP%g
698dcdb6 20853s%@DEREZ@%$DEREZ%g
b040e242 20854s%@LIBICONV@%$LIBICONV%g
698dcdb6
VZ
20855s%@LEX_STEM@%$LEX_STEM%g
20856s%@PATH_IFS@%$PATH_IFS%g
20857s%@WX_MAJOR_VERSION_NUMBER@%$WX_MAJOR_VERSION_NUMBER%g
20858s%@WX_MINOR_VERSION_NUMBER@%$WX_MINOR_VERSION_NUMBER%g
20859s%@WX_RELEASE_NUMBER@%$WX_RELEASE_NUMBER%g
698dcdb6
VZ
20860s%@WX_LIBRARY_NAME_STATIC@%$WX_LIBRARY_NAME_STATIC%g
20861s%@WX_LIBRARY_NAME_SHARED@%$WX_LIBRARY_NAME_SHARED%g
77e13408 20862s%@WX_LIBRARY_IMPORTLIB@%$WX_LIBRARY_IMPORTLIB%g
698dcdb6
VZ
20863s%@WX_TARGET_LIBRARY@%$WX_TARGET_LIBRARY%g
20864s%@WX_LIBRARY_LINK1@%$WX_LIBRARY_LINK1%g
20865s%@WX_LIBRARY_LINK2@%$WX_LIBRARY_LINK2%g
698dcdb6 20866s%@PROGRAM_EXT@%$PROGRAM_EXT%g
698dcdb6
VZ
20867s%@WX_LIBRARY_NAME_STATIC_GL@%$WX_LIBRARY_NAME_STATIC_GL%g
20868s%@WX_LIBRARY_NAME_SHARED_GL@%$WX_LIBRARY_NAME_SHARED_GL%g
698dcdb6
VZ
20869s%@WX_TARGET_LIBRARY_GL@%$WX_TARGET_LIBRARY_GL%g
20870s%@WX_LIBRARY_LINK1_GL@%$WX_LIBRARY_LINK1_GL%g
20871s%@WX_LIBRARY_LINK2_GL@%$WX_LIBRARY_LINK2_GL%g
698dcdb6
VZ
20872s%@WX_ALL@%$WX_ALL%g
20873s%@WX_ALL_INSTALLED@%$WX_ALL_INSTALLED%g
20874s%@SHARED_LD@%$SHARED_LD%g
20875s%@PIC_FLAG@%$PIC_FLAG%g
698dcdb6
VZ
20876s%@CODE_GEN_FLAGS@%$CODE_GEN_FLAGS%g
20877s%@CODE_GEN_FLAGS_CXX@%$CODE_GEN_FLAGS_CXX%g
3a922bb4
RL
20878s%@SONAME_FLAGS@%$SONAME_FLAGS%g
20879s%@SONAME_FLAGS_GL@%$SONAME_FLAGS_GL%g
698dcdb6
VZ
20880s%@WX_TARGET_LIBRARY_SONAME@%$WX_TARGET_LIBRARY_SONAME%g
20881s%@WX_TARGET_LIBRARY_TYPE@%$WX_TARGET_LIBRARY_TYPE%g
20882s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g
20883s%@USE_GUI@%$USE_GUI%g
20884s%@AFMINSTALL@%$AFMINSTALL%g
20885s%@TOOLKIT@%$TOOLKIT%g
698dcdb6 20886s%@TOOLKIT_DIR@%$TOOLKIT_DIR%g
1e6feb95 20887s%@TOOLKIT_VPATH@%$TOOLKIT_VPATH%g
3a922bb4
RL
20888s%@TOOLCHAIN_NAME@%$TOOLCHAIN_NAME%g
20889s%@TOOLCHAIN_DEFS@%$TOOLCHAIN_DEFS%g
00c81359 20890s%@TOOLCHAIN_DLL_DEFS@%$TOOLCHAIN_DLL_DEFS%g
3a922bb4
RL
20891s%@cross_compiling@%$cross_compiling%g
20892s%@WXCONFIG_LIBS@%$WXCONFIG_LIBS%g
20893s%@WXCONFIG_LIBS_GL@%$WXCONFIG_LIBS_GL%g
885d4bf5
VS
20894s%@WXCONFIG_LIBS_STATIC@%$WXCONFIG_LIBS_STATIC%g
20895s%@WXCONFIG_LIBS_STATIC_GL@%$WXCONFIG_LIBS_STATIC_GL%g
698dcdb6
VZ
20896s%@WXCONFIG_INCLUDE@%$WXCONFIG_INCLUDE%g
20897s%@ALL_OBJECTS@%$ALL_OBJECTS%g
9b695262
VZ
20898s%@ALL_HEADERS@%$ALL_HEADERS%g
20899s%@ALL_SOURCES@%$ALL_SOURCES%g
698dcdb6
VZ
20900s%@GUIDIST@%$GUIDIST%g
20901s%@PORT_FILES@%$PORT_FILES%g
20902s%@DISTDIR@%$DISTDIR%g
698dcdb6 20903s%@SAMPLES_SUBDIRS@%$SAMPLES_SUBDIRS%g
62d0491b 20904s%@LDFLAGS_GL@%$LDFLAGS_GL%g
40f7145c 20905s%@LDFLAGS_EXE@%$LDFLAGS_EXE%g
698dcdb6 20906s%@OPENGL_LIBS@%$OPENGL_LIBS%g
3d63bc3a 20907s%@DMALLOC_LIBS@%$DMALLOC_LIBS%g
698dcdb6 20908s%@EXTRADEFS@%$EXTRADEFS%g
698dcdb6 20909s%@RESFLAGS@%$RESFLAGS%g
3a922bb4 20910s%@RESPROGRAMOBJ@%$RESPROGRAMOBJ%g
e95edd8d
GD
20911s%@WX_RESOURCES_MACOSX_ASCII@%$WX_RESOURCES_MACOSX_ASCII%g
20912s%@WX_RESOURCES_MACOSX_DATA@%$WX_RESOURCES_MACOSX_DATA%g
ef7f2189 20913s%@MACOSX_BUNDLE@%$MACOSX_BUNDLE%g
698dcdb6
VZ
20914s%@LIBWXMACRES@%$LIBWXMACRES%g
20915s%@LIBWXMACRESCOMP@%$LIBWXMACRESCOMP%g
2baaf735 20916s%@LIBWXMACRESWXCONFIG@%$LIBWXMACRESWXCONFIG%g
698dcdb6
VZ
20917s%@DLLTOOL@%$DLLTOOL%g
20918s%@AS@%$AS%g
20919s%@NM@%$NM%g
20920s%@LD@%$LD%g
20921s%@MAKEINFO@%$MAKEINFO%g
885d4bf5 20922s%@INSTALL_LIBRARY@%$INSTALL_LIBRARY%g
698dcdb6
VZ
20923s%@SET_MAKE@%$SET_MAKE%g
20924s%@subdirs@%$subdirs%g
1e487827 20925
1e487827 20926CEOF
1e487827
VS
20927EOF
20928
698dcdb6
VZ
20929cat >> $CONFIG_STATUS <<\EOF
20930
20931# Split the substitutions into bite-sized pieces for seds with
20932# small command number limits, like on Digital OSF/1 and HP-UX.
20933ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
20934ac_file=1 # Number of current file.
20935ac_beg=1 # First line for current file.
20936ac_end=$ac_max_sed_cmds # Line after last line for current file.
20937ac_more_lines=:
20938ac_sed_cmds=""
20939while $ac_more_lines; do
20940 if test $ac_beg -gt 1; then
20941 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
20942 else
20943 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
20944 fi
20945 if test ! -s conftest.s$ac_file; then
20946 ac_more_lines=false
20947 rm -f conftest.s$ac_file
20948 else
20949 if test -z "$ac_sed_cmds"; then
20950 ac_sed_cmds="sed -f conftest.s$ac_file"
10f2d63a 20951 else
698dcdb6 20952 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
10f2d63a 20953 fi
698dcdb6
VZ
20954 ac_file=`expr $ac_file + 1`
20955 ac_beg=$ac_end
20956 ac_end=`expr $ac_end + $ac_max_sed_cmds`
10f2d63a 20957 fi
698dcdb6
VZ
20958done
20959if test -z "$ac_sed_cmds"; then
20960 ac_sed_cmds=cat
20961fi
20962EOF
10f2d63a 20963
698dcdb6
VZ
20964cat >> $CONFIG_STATUS <<EOF
20965
20966CONFIG_FILES=\${CONFIG_FILES-"wx-config
20967 src/make.env
20968 src/makeprog.env
20969 src/makelib.env
20970 Makefile
20971 "}
10f2d63a 20972EOF
698dcdb6
VZ
20973cat >> $CONFIG_STATUS <<\EOF
20974for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
10f2d63a 20975 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
698dcdb6
VZ
20976 case "$ac_file" in
20977 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
20978 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
20979 *) ac_file_in="${ac_file}.in" ;;
10f2d63a
VZ
20980 esac
20981
698dcdb6 20982 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
1e487827 20983
698dcdb6
VZ
20984 # Remove last slash and all that follows it. Not all systems have dirname.
20985 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
20986 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
20987 # The file is in a subdirectory.
20988 test ! -d "$ac_dir" && mkdir "$ac_dir"
20989 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
10f2d63a 20990 # A "../" for each directory in $ac_dir_suffix.
698dcdb6 20991 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
10f2d63a
VZ
20992 else
20993 ac_dir_suffix= ac_dots=
20994 fi
20995
698dcdb6
VZ
20996 case "$ac_given_srcdir" in
20997 .) srcdir=.
20998 if test -z "$ac_dots"; then top_srcdir=.
20999 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
21000 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
10f2d63a 21001 *) # Relative path.
698dcdb6
VZ
21002 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
21003 top_srcdir="$ac_dots$ac_given_srcdir" ;;
10f2d63a
VZ
21004 esac
21005
698dcdb6
VZ
21006 case "$ac_given_INSTALL" in
21007 [/$]*) INSTALL="$ac_given_INSTALL" ;;
21008 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
10f2d63a
VZ
21009 esac
21010
698dcdb6
VZ
21011 echo creating "$ac_file"
21012 rm -f "$ac_file"
21013 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
21014 case "$ac_file" in
21015 *Makefile*) ac_comsub="1i\\
21016# $configure_input" ;;
21017 *) ac_comsub= ;;
21018 esac
10f2d63a 21019
698dcdb6
VZ
21020 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
21021 sed -e "$ac_comsub
21022s%@configure_input@%$configure_input%g
21023s%@srcdir@%$srcdir%g
21024s%@top_srcdir@%$top_srcdir%g
21025s%@INSTALL@%$INSTALL%g
21026" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
21027fi; done
21028rm -f conftest.s*
10f2d63a
VZ
21029
21030# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
21031# NAME is the cpp macro being defined and VALUE is the value it is being given.
21032#
21033# ac_d sets the value in "#define NAME VALUE" lines.
698dcdb6
VZ
21034ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
21035ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
21036ac_dC='\3'
21037ac_dD='%g'
21038# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
21039ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
21040ac_uB='\([ ]\)%\1#\2define\3'
10f2d63a 21041ac_uC=' '
698dcdb6
VZ
21042ac_uD='\4%g'
21043# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
21044ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
21045ac_eB='$%\1#\2define\3'
21046ac_eC=' '
21047ac_eD='%g'
10f2d63a 21048
698dcdb6
VZ
21049if test "${CONFIG_HEADERS+set}" != set; then
21050EOF
21051cat >> $CONFIG_STATUS <<EOF
21052 CONFIG_HEADERS="setup.h:setup.h.in"
21053EOF
21054cat >> $CONFIG_STATUS <<\EOF
21055fi
21056for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
10f2d63a 21057 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
698dcdb6
VZ
21058 case "$ac_file" in
21059 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
21060 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
21061 *) ac_file_in="${ac_file}.in" ;;
10f2d63a
VZ
21062 esac
21063
698dcdb6
VZ
21064 echo creating $ac_file
21065
21066 rm -f conftest.frag conftest.in conftest.out
21067 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
21068 cat $ac_file_inputs > conftest.in
21069
21070EOF
21071
21072# Transform confdefs.h into a sed script conftest.vals that substitutes
21073# the proper values into config.h.in to produce config.h. And first:
21074# Protect against being on the right side of a sed subst in config.status.
21075# Protect against being in an unquoted here document in config.status.
21076rm -f conftest.vals
21077cat > conftest.hdr <<\EOF
21078s/[\\&%]/\\&/g
21079s%[\\$`]%\\&%g
21080s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
21081s%ac_d%ac_u%gp
21082s%ac_u%ac_e%gp
21083EOF
21084sed -n -f conftest.hdr confdefs.h > conftest.vals
21085rm -f conftest.hdr
10f2d63a
VZ
21086
21087# This sed command replaces #undef with comments. This is necessary, for
21088# example, in the case of _POSIX_SOURCE, which is predefined and required
21089# on some systems where configure will not decide to define it.
698dcdb6
VZ
21090cat >> conftest.vals <<\EOF
21091s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
10f2d63a
VZ
21092EOF
21093
698dcdb6
VZ
21094# Break up conftest.vals because some shells have a limit on
21095# the size of here documents, and old seds have small limits too.
10f2d63a
VZ
21096
21097rm -f conftest.tail
698dcdb6 21098while :
10f2d63a 21099do
698dcdb6
VZ
21100 ac_lines=`grep -c . conftest.vals`
21101 # grep -c gives empty output for an empty file on some AIX systems.
21102 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
21103 # Write a limited-size here document to conftest.frag.
21104 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
21105 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
10f2d63a 21106 echo 'CEOF
698dcdb6
VZ
21107 sed -f conftest.frag conftest.in > conftest.out
21108 rm -f conftest.in
21109 mv conftest.out conftest.in
21110' >> $CONFIG_STATUS
21111 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
21112 rm -f conftest.vals
21113 mv conftest.tail conftest.vals
10f2d63a 21114done
698dcdb6
VZ
21115rm -f conftest.vals
21116
21117cat >> $CONFIG_STATUS <<\EOF
21118 rm -f conftest.frag conftest.h
21119 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
21120 cat conftest.in >> conftest.h
21121 rm -f conftest.in
21122 if cmp -s $ac_file conftest.h 2>/dev/null; then
21123 echo "$ac_file is unchanged"
21124 rm -f conftest.h
10f2d63a 21125 else
698dcdb6
VZ
21126 # Remove last slash and all that follows it. Not all systems have dirname.
21127 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
10f2d63a 21128 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
698dcdb6
VZ
21129 # The file is in a subdirectory.
21130 test ! -d "$ac_dir" && mkdir "$ac_dir"
10f2d63a 21131 fi
698dcdb6
VZ
21132 rm -f $ac_file
21133 mv conftest.h $ac_file
10f2d63a 21134 fi
698dcdb6
VZ
21135fi; done
21136
10f2d63a 21137EOF
698dcdb6 21138cat >> $CONFIG_STATUS <<EOF
10f2d63a 21139
3a922bb4 21140 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}"
698dcdb6
VZ
21141 LN_S="${LN_S}"
21142
21143
21144EOF
21145cat >> $CONFIG_STATUS <<\EOF
10f2d63a 21146
652d930d 21147 if test ! -h wx-config; then
991a5759 21148 chmod +x wx-config
3a922bb4
RL
21149 mv wx-config wx${TOOLCHAIN_NAME}-config
21150 ${LN_S} wx${TOOLCHAIN_NAME}-config wx-config
991a5759 21151 fi
665bbe97 21152
00cf1208
RR
21153 if test ! -d lib; then
21154 mkdir lib
21155 fi
21156 if test ! -d lib/wx; then
21157 mkdir lib/wx
21158 fi
21159 if test ! -d lib/wx/include; then
21160 mkdir lib/wx/include
21161 fi
3a922bb4
RL
21162 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}; then
21163 mkdir lib/wx/include/${TOOLCHAIN_NAME}
00cf1208 21164 fi
3a922bb4
RL
21165 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}/wx; then
21166 mkdir lib/wx/include/${TOOLCHAIN_NAME}/wx
00cf1208
RR
21167 fi
21168 if test -f setup.h; then
3a922bb4 21169 mv -f setup.h lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h
00cf1208 21170 fi
698dcdb6
VZ
21171
21172exit 0
10f2d63a
VZ
21173EOF
21174chmod +x $CONFIG_STATUS
698dcdb6
VZ
21175rm -fr confdefs* $ac_clean_files
21176test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
10f2d63a 21177
2224580a
VZ
21178if test "$no_recursion" != yes; then
21179
21180 # Remove --cache-file and --srcdir arguments so they do not pile up.
21181 ac_sub_configure_args=
21182 ac_prev=
21183 for ac_arg in $ac_configure_args; do
21184 if test -n "$ac_prev"; then
21185 ac_prev=
21186 continue
21187 fi
698dcdb6 21188 case "$ac_arg" in
2224580a
VZ
21189 -cache-file | --cache-file | --cache-fil | --cache-fi \
21190 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
21191 ac_prev=cache_file ;;
21192 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
698dcdb6 21193 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
2224580a
VZ
21194 ;;
21195 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
21196 ac_prev=srcdir ;;
21197 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
21198 ;;
21199 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
21200 esac
21201 done
21202
8f4a9a10 21203 for ac_config_dir in demos samples utils contrib; do
2224580a
VZ
21204
21205 # Do not complain, so a configure script can configure whichever
21206 # parts of a large source tree are present.
698dcdb6
VZ
21207 if test ! -d $srcdir/$ac_config_dir; then
21208 continue
21209 fi
21210
21211 echo configuring in $ac_config_dir
2224580a 21212
698dcdb6 21213 case "$srcdir" in
2224580a
VZ
21214 .) ;;
21215 *)
698dcdb6
VZ
21216 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
21217 else
21218 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
21219 fi
21220 ;;
2224580a
VZ
21221 esac
21222
21223 ac_popdir=`pwd`
698dcdb6 21224 cd $ac_config_dir
2224580a 21225
698dcdb6
VZ
21226 # A "../" for each directory in /$ac_config_dir.
21227 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
2224580a 21228
698dcdb6 21229 case "$srcdir" in
2224580a
VZ
21230 .) # No --srcdir option. We are building in place.
21231 ac_sub_srcdir=$srcdir ;;
698dcdb6
VZ
21232 /*) # Absolute path.
21233 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
2224580a 21234 *) # Relative path.
698dcdb6 21235 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
2224580a
VZ
21236 esac
21237
21238 # Check for guested configure; otherwise get Cygnus style configure.
698dcdb6
VZ
21239 if test -f $ac_sub_srcdir/configure; then
21240 ac_sub_configure=$ac_sub_srcdir/configure
2224580a
VZ
21241 elif test -f $ac_sub_srcdir/configure.in; then
21242 ac_sub_configure=$ac_configure
21243 else
698dcdb6 21244 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
2224580a
VZ
21245 ac_sub_configure=
21246 fi
21247
21248 # The recursion is here.
21249 if test -n "$ac_sub_configure"; then
698dcdb6 21250
2224580a 21251 # Make the cache file name correct relative to the subdirectory.
698dcdb6
VZ
21252 case "$cache_file" in
21253 /*) ac_sub_cache_file=$cache_file ;;
2224580a 21254 *) # Relative path.
698dcdb6 21255 ac_sub_cache_file="$ac_dots$cache_file" ;;
2224580a 21256 esac
698dcdb6
VZ
21257 case "$ac_given_INSTALL" in
21258 [/$]*) INSTALL="$ac_given_INSTALL" ;;
21259 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
21260 esac
2224580a 21261
698dcdb6 21262 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
2224580a 21263 # The eval makes quoting arguments work.
698dcdb6
VZ
21264 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
21265 then :
21266 else
21267 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
21268 fi
2224580a
VZ
21269 fi
21270
21271 cd $ac_popdir
21272 done
21273fi
21274
698dcdb6 21275