]> git.saurik.com Git - wxWidgets.git/blame - configure
Bumped version and soname for 2.3.3
[wxWidgets.git] / configure
CommitLineData
10f2d63a
VZ
1#! /bin/sh
2
698dcdb6 3# From configure.in Id: configure.in
703e0a69
VZ
4
5
6
7
8
703e0a69
VZ
9
10
1e487827 11
1e487827 12
698dcdb6
VZ
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
698dcdb6
VZ
42
43
44# Guess values for system-dependent variables and create Makefiles.
45# Generated automatically using autoconf version 2.13
46# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
47#
48# This configure script is free software; the Free Software Foundation
49# gives unlimited permission to copy, distribute and modify it.
50
51# Defaults:
52ac_help=
53ac_default_prefix=/usr/local
54# Any additions from configure.in:
55ac_help="$ac_help
8168de4c 56 --enable-gui use GUI classes"
1e6feb95 57ac_help="$ac_help
8168de4c 58 --enable-universal use wxWindows GUI controls instead of native ones"
698dcdb6
VZ
59ac_help="$ac_help
60 --with-gtk use GTK+"
61ac_help="$ac_help
62 --with-motif use Motif/Lesstif"
63ac_help="$ac_help
64 --with-mac use Mac OS X"
65ac_help="$ac_help
66 --with-wine use WINE"
67ac_help="$ac_help
77e13408 68 --with-msw use MS-Windows"
698dcdb6
VZ
69ac_help="$ac_help
70 --with-pm use OS/2 Presentation Manager"
1e6feb95 71ac_help="$ac_help
b3e8d00a 72 --with-mgl use SciTech MGL"
698dcdb6 73ac_help="$ac_help
8168de4c 74 --enable-gtk2 use GTK+ 2.0 if available (EXPERIMENTAL)"
698dcdb6 75ac_help="$ac_help
8168de4c 76 --with-libpng use libpng (PNG image format)"
698dcdb6 77ac_help="$ac_help
8168de4c 78 --with-libjpeg use libjpeg (JPEG file format)"
698dcdb6 79ac_help="$ac_help
8168de4c 80 --with-libtiff use libtiff (TIFF file format)"
698dcdb6 81ac_help="$ac_help
8168de4c 82 --with-freetype use freetype (font rasterizer)"
698dcdb6 83ac_help="$ac_help
8168de4c 84 --with-opengl use OpenGL (or Mesa)"
698dcdb6 85ac_help="$ac_help
d0e9b150 86 --with-dmalloc use dmalloc library (http://dmalloc.com/)"
3e44f09d
VZ
87ac_help="$ac_help
88 --with-regex enable support for wxRegEx class"
698dcdb6 89ac_help="$ac_help
8168de4c 90 --with-zlib use zlib for LZW compression"
698dcdb6 91ac_help="$ac_help
8168de4c 92 --with-odbc use the IODBC and wxODBC classes"
698dcdb6 93ac_help="$ac_help
8168de4c 94 --enable-shared create shared library code"
698dcdb6 95ac_help="$ac_help
3a922bb4 96 --enable-soname set the DT_SONAME field in ELF shared libraries"
698dcdb6 97ac_help="$ac_help
8168de4c 98 --enable-optimise create optimised code"
698dcdb6 99ac_help="$ac_help
8168de4c 100 --enable-debug same as debug_flag and debug_info"
683dccda
GD
101ac_help="$ac_help
102 --enable-precomp enable use of precompiled headers (Mac OS X)"
698dcdb6 103ac_help="$ac_help
8168de4c 104 --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)"
698dcdb6 105ac_help="$ac_help
8168de4c 106 --enable-debug_info create code with debugging information"
698dcdb6 107ac_help="$ac_help
8168de4c 108 --enable-debug_gdb create code with extra GDB debugging information"
698dcdb6 109ac_help="$ac_help
8168de4c 110 --enable-debug_cntxt use wxDebugContext"
698dcdb6 111ac_help="$ac_help
8168de4c 112 --enable-mem_tracing create code with memory tracing"
698dcdb6 113ac_help="$ac_help
8168de4c 114 --enable-profile create code with profiling information"
698dcdb6 115ac_help="$ac_help
8168de4c 116 --enable-no_rtti create code without RTTI information"
698dcdb6 117ac_help="$ac_help
b3e8d00a 118 --enable-no_exceptions create code without C++ exceptions handling"
698dcdb6 119ac_help="$ac_help
8168de4c 120 --enable-permissive compile code disregarding strict ANSI"
698dcdb6 121ac_help="$ac_help
8168de4c 122 --enable-no_deps create code without dependency information"
54276ccf 123ac_help="$ac_help
b3e8d00a 124 --enable-compat20 enable wxWindows 2.0 compatibility"
54276ccf 125ac_help="$ac_help
b3e8d00a 126 --enable-compat22 enable wxWindows 2.2 compatibility"
698dcdb6 127ac_help="$ac_help
8168de4c 128 --enable-intl use internationalization system"
698dcdb6 129ac_help="$ac_help
8168de4c 130 --enable-config use wxConfig (and derived) classes"
698dcdb6 131ac_help="$ac_help
8168de4c 132 --enable-sockets use socket/network classes"
698dcdb6 133ac_help="$ac_help
8168de4c 134 --enable-ipc use interprocess communication (wxSocket etc.)"
698dcdb6 135ac_help="$ac_help
8168de4c 136 --enable-cmdline use wxCmdLineParser class"
1e6feb95 137ac_help="$ac_help
8168de4c 138 --enable-datetime use wxDateTime class"
1e6feb95 139ac_help="$ac_help
8168de4c 140 --enable-timedate use obsolete wxDate/wxTime classes"
1e6feb95 141ac_help="$ac_help
8168de4c 142 --enable-stopwatch use wxStopWatch class"
1e6feb95 143ac_help="$ac_help
8168de4c 144 --enable-dialupman use dialup network classes"
698dcdb6 145ac_help="$ac_help
8168de4c 146 --enable-apple_ieee use the Apple IEEE codec"
698dcdb6 147ac_help="$ac_help
8168de4c 148 --enable-timer use wxTimer class"
698dcdb6 149ac_help="$ac_help
8168de4c 150 --enable-wave use wxWave class"
698dcdb6 151ac_help="$ac_help
8168de4c 152 --enable-fraction use wxFraction class"
698dcdb6 153ac_help="$ac_help
8168de4c 154 --enable-dynlib use wxLibrary class for DLL loading"
0b9ab0bd
RL
155ac_help="$ac_help
156 --enable-dynamicloader use (new) wxDynamicLibrary class"
698dcdb6 157ac_help="$ac_help
8168de4c 158 --enable-longlong use wxLongLong class"
698dcdb6 159ac_help="$ac_help
8168de4c 160 --enable-geometry use geometry class"
698dcdb6 161ac_help="$ac_help
8168de4c 162 --enable-log use logging system"
698dcdb6 163ac_help="$ac_help
8168de4c 164 --enable-streams use wxStream etc classes"
698dcdb6 165ac_help="$ac_help
8168de4c 166 --enable-file use wxFile classes"
698dcdb6 167ac_help="$ac_help
8168de4c 168 --enable-ffile use wxFFile classes"
1e6feb95 169ac_help="$ac_help
a3a584a7
VZ
170 --enable-textbuf use wxTextBuffer class"
171ac_help="$ac_help
172 --enable-textfile use wxTextFile class"
698dcdb6 173ac_help="$ac_help
8168de4c 174 --enable-fontmap use font encodings conversion classes"
1e6feb95 175ac_help="$ac_help
8168de4c 176 --enable-unicode compile wxString with Unicode support"
698dcdb6 177ac_help="$ac_help
8168de4c 178 --enable-wxprintfv use wxWindows implementation of vprintf()"
698dcdb6 179ac_help="$ac_help
8168de4c 180 --enable-std_iostreams use standard C++ stream classes"
698dcdb6 181ac_help="$ac_help
8168de4c 182 --enable-filesystem use virtual file systems classes"
698dcdb6 183ac_help="$ac_help
8168de4c 184 --enable-fs_inet use virtual HTTP/FTP filesystems"
698dcdb6 185ac_help="$ac_help
8168de4c 186 --enable-fs_zip use virtual ZIP filesystems"
698dcdb6 187ac_help="$ac_help
8168de4c 188 --enable-zipstream use wxZipInputStream"
698dcdb6 189ac_help="$ac_help
8168de4c 190 --enable-catch_segvs catch signals and pass them to wxApp::OnFatalException"
698dcdb6 191ac_help="$ac_help
8168de4c 192 --enable-snglinst use wxSingleInstanceChecker class"
698dcdb6 193ac_help="$ac_help
69d27ff7 194 --enable-mimetype use wxMimeTypesManager"
3e44f09d 195ac_help="$ac_help
b3e8d00a 196 --enable-sysoptions use wxSystemOptions"
1e6feb95 197ac_help="$ac_help
8168de4c 198 --enable-threads use threads"
698dcdb6 199ac_help="$ac_help
8168de4c 200 --enable-docview use document view architecture"
698dcdb6 201ac_help="$ac_help
3379ed37 202 --enable-help use help subsystem"
29fd3c0c
VS
203ac_help="$ac_help
204 --enable-mshtmlhelp use MS HTML Help (win32)"
3379ed37
VZ
205ac_help="$ac_help
206 --enable-html use wxHTML sub-library"
207ac_help="$ac_help
208 --enable-htmlhelp use wxHTML-based help"
698dcdb6 209ac_help="$ac_help
8168de4c 210 --enable-constraints use layout-constraints system"
698dcdb6 211ac_help="$ac_help
8168de4c 212 --enable-printarch use printing architecture"
698dcdb6 213ac_help="$ac_help
8168de4c 214 --enable-mdi use multiple document interface architecture"
698dcdb6 215ac_help="$ac_help
8168de4c 216 --enable-loggui use standard GUI logger"
1e6feb95 217ac_help="$ac_help
8168de4c 218 --enable-logwin use wxLogWindow"
69d27ff7
MB
219ac_help="$ac_help
220 --enable-logdialog use wxLogDialog"
1e6feb95 221ac_help="$ac_help
8168de4c 222 --enable-postscript use wxPostscriptDC device context (default for gtk+)"
698dcdb6 223ac_help="$ac_help
8168de4c 224 --enable-prologio use Prolog IO library"
698dcdb6 225ac_help="$ac_help
8168de4c 226 --enable-resources use wxWindows resources"
698dcdb6 227ac_help="$ac_help
8168de4c 228 --enable-xresources use X resources for save (default for gtk+)"
698dcdb6 229ac_help="$ac_help
8168de4c 230 --enable-clipboard use wxClipboard classes"
698dcdb6 231ac_help="$ac_help
8168de4c 232 --enable-dnd use Drag'n'Drop classes"
698dcdb6 233ac_help="$ac_help
8168de4c 234 --enable-metafile use win32 metafiles"
698dcdb6 235ac_help="$ac_help
24176f2c 236 --enable-treelayout use wxTreeLayout classes"
698dcdb6 237ac_help="$ac_help
8168de4c 238 --enable-controls use all usual controls"
698dcdb6 239ac_help="$ac_help
8168de4c 240 --enable-accel use accelerators"
698dcdb6 241ac_help="$ac_help
8168de4c 242 --enable-button use wxButton class"
698dcdb6 243ac_help="$ac_help
8168de4c 244 --enable-bmpbutton use wxBitmapButton class"
698dcdb6 245ac_help="$ac_help
8168de4c 246 --enable-calendar use wxCalendarCtrl class"
1e6feb95 247ac_help="$ac_help
8168de4c 248 --enable-caret use wxCaret class"
1e6feb95 249ac_help="$ac_help
8168de4c 250 --enable-checkbox use wxCheckBox class"
698dcdb6 251ac_help="$ac_help
8168de4c 252 --enable-checklst use wxCheckListBox (listbox with checkboxes) class"
698dcdb6 253ac_help="$ac_help
8168de4c 254 --enable-choice use wxChoice class"
698dcdb6 255ac_help="$ac_help
8168de4c 256 --enable-combobox use wxComboBox classes"
698dcdb6 257ac_help="$ac_help
8168de4c 258 --enable-gauge use wxGauge class"
698dcdb6 259ac_help="$ac_help
8168de4c 260 --enable-grid use wxGrid class"
698dcdb6 261ac_help="$ac_help
8168de4c 262 --enable-newgrid use new wxGrid class"
698dcdb6 263ac_help="$ac_help
8168de4c 264 --enable-imaglist use wxImageList class"
698dcdb6 265ac_help="$ac_help
8168de4c 266 --enable-listbox use wxListBox class"
698dcdb6 267ac_help="$ac_help
8168de4c 268 --enable-listctrl use wxListCtrl class"
698dcdb6 269ac_help="$ac_help
8168de4c 270 --enable-notebook use wxNotebook class"
24176f2c
GD
271ac_help="$ac_help
272 --enable-propsheet use wxPropertySheet class"
698dcdb6 273ac_help="$ac_help
8168de4c 274 --enable-radiobox use wxRadioBox class"
698dcdb6 275ac_help="$ac_help
8168de4c 276 --enable-radiobtn use wxRadioButton class"
698dcdb6 277ac_help="$ac_help
8168de4c 278 --enable-sash use wxSashWindow class"
698dcdb6 279ac_help="$ac_help
8168de4c 280 --enable-scrollbar use wxScrollBar class and scrollable windows"
698dcdb6 281ac_help="$ac_help
8168de4c 282 --enable-slider use wxSlider class"
698dcdb6 283ac_help="$ac_help
8168de4c 284 --enable-spinbtn use wxSpinButton class"
698dcdb6 285ac_help="$ac_help
8168de4c 286 --enable-spinctrl use wxSpinCtrl class"
698dcdb6 287ac_help="$ac_help
8168de4c 288 --enable-splitter use wxSplitterWindow class"
698dcdb6 289ac_help="$ac_help
8168de4c 290 --enable-statbmp use wxStaticBitmap class"
698dcdb6 291ac_help="$ac_help
8168de4c 292 --enable-statbox use wxStaticBox class"
698dcdb6 293ac_help="$ac_help
8168de4c 294 --enable-statline use wxStaticLine class"
698dcdb6 295ac_help="$ac_help
8168de4c 296 --enable-stattext use wxStaticText class"
1e6feb95 297ac_help="$ac_help
8168de4c 298 --enable-statusbar use wxStatusBar class"
698dcdb6 299ac_help="$ac_help
8168de4c 300 --enable-tabdialog use wxTabControl class"
698dcdb6 301ac_help="$ac_help
8168de4c 302 --enable-textctrl use wxTextCtrl class"
1e6feb95 303ac_help="$ac_help
8168de4c 304 --enable-togglebtn use wxToggleButton class"
698dcdb6 305ac_help="$ac_help
8168de4c 306 --enable-toolbar use wxToolBar class"
698dcdb6 307ac_help="$ac_help
8168de4c 308 --enable-tbarnative use native wxToolBar class"
698dcdb6 309ac_help="$ac_help
8168de4c 310 --enable-tbarsmpl use wxToolBarSimple class"
698dcdb6 311ac_help="$ac_help
8168de4c 312 --enable-treectrl use wxTreeCtrl class"
9926e4a4
VZ
313ac_help="$ac_help
314 --enable-tipwindow use wxTipWindow class"
9f41d601
RR
315ac_help="$ac_help
316 --enable-popupwin use wxPopUpWindow class"
698dcdb6 317ac_help="$ac_help
b3e8d00a 318 --enable-commondlg use all common dialogs"
698dcdb6 319ac_help="$ac_help
8168de4c 320 --enable-choicedlg use wxChoiceDialog"
1e6feb95 321ac_help="$ac_help
8168de4c 322 --enable-coldlg use wxColourDialog"
1e6feb95 323ac_help="$ac_help
8168de4c 324 --enable-filedlg use wxFileDialog"
8db37e06
VZ
325ac_help="$ac_help
326 --enable-finddlg use wxFindReplaceDialog"
1e6feb95 327ac_help="$ac_help
8168de4c 328 --enable-fontdlg use wxFontDialog"
1e6feb95 329ac_help="$ac_help
8168de4c 330 --enable-dirdlg use wxDirDialog"
698dcdb6 331ac_help="$ac_help
8168de4c 332 --enable-msgdlg use wxMessageDialog"
1e6feb95 333ac_help="$ac_help
8168de4c 334 --enable-numberdlg use wxNumberEntryDialog"
cbca9943
VZ
335ac_help="$ac_help
336 --enable-splash use wxSplashScreen"
1e6feb95 337ac_help="$ac_help
8168de4c 338 --enable-textdlg use wxTextDialog"
698dcdb6 339ac_help="$ac_help
8168de4c 340 --enable-tipdlg use startup tips"
698dcdb6 341ac_help="$ac_help
8168de4c 342 --enable-progressdlg use wxProgressDialog"
b1f5d087
VZ
343ac_help="$ac_help
344 --enable-wizarddlg use wxWizard"
698dcdb6 345ac_help="$ac_help
8168de4c 346 --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes"
1e6feb95 347ac_help="$ac_help
8168de4c 348 --enable-miniframe use wxMiniFrame class"
698dcdb6 349ac_help="$ac_help
8168de4c 350 --enable-tooltips use wxToolTip class"
698dcdb6 351ac_help="$ac_help
8168de4c 352 --enable-splines use spline drawing code"
698dcdb6 353ac_help="$ac_help
8168de4c 354 --enable-validators use wxValidator and derived classes"
698dcdb6 355ac_help="$ac_help
8168de4c 356 --enable-busyinfo use wxBusyInfo"
698dcdb6 357ac_help="$ac_help
b3e8d00a 358 --enable-joystick use wxJoystick (Linux only)"
698dcdb6 359ac_help="$ac_help
8168de4c 360 --enable-metafiles use wxMetaFile (Windows only)"
24fd6d87
VZ
361ac_help="$ac_help
362 --enable-dragimage use wxDragImage"
edae8572
VZ
363ac_help="$ac_help
364 --enable-palette use wxPalette class"
1e6feb95 365ac_help="$ac_help
8168de4c 366 --enable-image use wxImage class"
698dcdb6 367ac_help="$ac_help
8168de4c 368 --enable-gif use gif images (GIF file format)"
698dcdb6 369ac_help="$ac_help
8168de4c 370 --enable-pcx use pcx images (PCX file format)"
698dcdb6 371ac_help="$ac_help
8168de4c 372 --enable-pnm use pnm images (PNM file format)"
698dcdb6 373ac_help="$ac_help
8168de4c 374 --enable-xpm use xpm images (XPM file format)"
698dcdb6
VZ
375ac_help="$ac_help
376 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)"
377ac_help="$ac_help
378 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)"
379ac_help="$ac_help
380 --disable-gtktest Do not try to compile and run a test GTK program"
3f345b47
VZ
381ac_help="$ac_help
382 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)"
383ac_help="$ac_help
384 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)"
385ac_help="$ac_help
386 --disable-gtktest Do not try to compile and run a test GTK program"
387ac_help="$ac_help
388 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)"
389ac_help="$ac_help
390 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)"
391ac_help="$ac_help
392 --disable-gtktest Do not try to compile and run a test GTK program"
698dcdb6
VZ
393ac_help="$ac_help
394 --with-x use the X Window System"
10f2d63a
VZ
395
396# Initialize some variables set by options.
397# The variables have the same names as the options, with
398# dashes changed to underlines.
698dcdb6
VZ
399build=NONE
400cache_file=./config.cache
10f2d63a 401exec_prefix=NONE
698dcdb6 402host=NONE
10f2d63a 403no_create=
698dcdb6 404nonopt=NONE
10f2d63a
VZ
405no_recursion=
406prefix=NONE
407program_prefix=NONE
408program_suffix=NONE
409program_transform_name=s,x,x,
410silent=
411site=
412srcdir=
698dcdb6 413target=NONE
10f2d63a
VZ
414verbose=
415x_includes=NONE
416x_libraries=NONE
417bindir='${exec_prefix}/bin'
418sbindir='${exec_prefix}/sbin'
419libexecdir='${exec_prefix}/libexec'
420datadir='${prefix}/share'
421sysconfdir='${prefix}/etc'
422sharedstatedir='${prefix}/com'
423localstatedir='${prefix}/var'
424libdir='${exec_prefix}/lib'
425includedir='${prefix}/include'
426oldincludedir='/usr/include'
427infodir='${prefix}/info'
428mandir='${prefix}/man'
429
698dcdb6
VZ
430# Initialize some other variables.
431subdirs=
432MFLAGS= MAKEFLAGS=
433SHELL=${CONFIG_SHELL-/bin/sh}
434# Maximum number of lines to put in a shell here document.
435ac_max_here_lines=12
10f2d63a
VZ
436
437ac_prev=
438for ac_option
439do
698dcdb6 440
10f2d63a
VZ
441 # If the previous option needs an argument, assign it.
442 if test -n "$ac_prev"; then
443 eval "$ac_prev=\$ac_option"
444 ac_prev=
445 continue
446 fi
447
698dcdb6
VZ
448 case "$ac_option" in
449 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
450 *) ac_optarg= ;;
451 esac
10f2d63a
VZ
452
453 # Accept the important Cygnus configure options, so we can diagnose typos.
454
698dcdb6 455 case "$ac_option" in
10f2d63a
VZ
456
457 -bindir | --bindir | --bindi | --bind | --bin | --bi)
458 ac_prev=bindir ;;
459 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
698dcdb6 460 bindir="$ac_optarg" ;;
10f2d63a
VZ
461
462 -build | --build | --buil | --bui | --bu)
698dcdb6 463 ac_prev=build ;;
10f2d63a 464 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
698dcdb6 465 build="$ac_optarg" ;;
10f2d63a
VZ
466
467 -cache-file | --cache-file | --cache-fil | --cache-fi \
468 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
469 ac_prev=cache_file ;;
470 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
471 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
698dcdb6 472 cache_file="$ac_optarg" ;;
10f2d63a
VZ
473
474 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
475 ac_prev=datadir ;;
476 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
477 | --da=*)
698dcdb6 478 datadir="$ac_optarg" ;;
10f2d63a
VZ
479
480 -disable-* | --disable-*)
698dcdb6 481 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
10f2d63a 482 # Reject names that are not valid shell variable names.
698dcdb6
VZ
483 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
484 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
485 fi
486 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
487 eval "enable_${ac_feature}=no" ;;
10f2d63a
VZ
488
489 -enable-* | --enable-*)
698dcdb6 490 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
10f2d63a 491 # Reject names that are not valid shell variable names.
698dcdb6
VZ
492 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
493 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
494 fi
495 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
496 case "$ac_option" in
497 *=*) ;;
10f2d63a
VZ
498 *) ac_optarg=yes ;;
499 esac
698dcdb6 500 eval "enable_${ac_feature}='$ac_optarg'" ;;
10f2d63a
VZ
501
502 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
503 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
504 | --exec | --exe | --ex)
505 ac_prev=exec_prefix ;;
506 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
507 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
508 | --exec=* | --exe=* | --ex=*)
698dcdb6 509 exec_prefix="$ac_optarg" ;;
10f2d63a
VZ
510
511 -gas | --gas | --ga | --g)
512 # Obsolete; use --with-gas.
513 with_gas=yes ;;
514
698dcdb6
VZ
515 -help | --help | --hel | --he)
516 # Omit some internal or obsolete options to make the list less imposing.
517 # This message is too long to be a string in the A/UX 3.1 sh.
518 cat << EOF
519Usage: configure [options] [host]
520Options: [defaults in brackets after descriptions]
521Configuration:
522 --cache-file=FILE cache test results in FILE
523 --help print this message
524 --no-create do not create output files
525 --quiet, --silent do not print \`checking...' messages
526 --version print the version of autoconf that created configure
527Directory and file names:
528 --prefix=PREFIX install architecture-independent files in PREFIX
529 [$ac_default_prefix]
530 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
531 [same as prefix]
532 --bindir=DIR user executables in DIR [EPREFIX/bin]
533 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
534 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
535 --datadir=DIR read-only architecture-independent data in DIR
536 [PREFIX/share]
537 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
538 --sharedstatedir=DIR modifiable architecture-independent data in DIR
539 [PREFIX/com]
540 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
541 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
542 --includedir=DIR C header files in DIR [PREFIX/include]
543 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
544 --infodir=DIR info documentation in DIR [PREFIX/info]
545 --mandir=DIR man documentation in DIR [PREFIX/man]
546 --srcdir=DIR find the sources in DIR [configure dir or ..]
547 --program-prefix=PREFIX prepend PREFIX to installed program names
548 --program-suffix=SUFFIX append SUFFIX to installed program names
549 --program-transform-name=PROGRAM
550 run sed PROGRAM on installed program names
551EOF
552 cat << EOF
553Host type:
554 --build=BUILD configure for building on BUILD [BUILD=HOST]
555 --host=HOST configure for HOST [guessed]
556 --target=TARGET configure for TARGET [TARGET=HOST]
557Features and packages:
558 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
559 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
560 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
561 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
562 --x-includes=DIR X include files are in DIR
563 --x-libraries=DIR X library files are in DIR
564EOF
565 if test -n "$ac_help"; then
566 echo "--enable and --with options recognized:$ac_help"
567 fi
568 exit 0 ;;
10f2d63a
VZ
569
570 -host | --host | --hos | --ho)
698dcdb6 571 ac_prev=host ;;
10f2d63a 572 -host=* | --host=* | --hos=* | --ho=*)
698dcdb6 573 host="$ac_optarg" ;;
10f2d63a
VZ
574
575 -includedir | --includedir | --includedi | --included | --include \
576 | --includ | --inclu | --incl | --inc)
577 ac_prev=includedir ;;
578 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
579 | --includ=* | --inclu=* | --incl=* | --inc=*)
698dcdb6 580 includedir="$ac_optarg" ;;
10f2d63a
VZ
581
582 -infodir | --infodir | --infodi | --infod | --info | --inf)
583 ac_prev=infodir ;;
584 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
698dcdb6 585 infodir="$ac_optarg" ;;
10f2d63a
VZ
586
587 -libdir | --libdir | --libdi | --libd)
588 ac_prev=libdir ;;
589 -libdir=* | --libdir=* | --libdi=* | --libd=*)
698dcdb6 590 libdir="$ac_optarg" ;;
10f2d63a
VZ
591
592 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
593 | --libexe | --libex | --libe)
594 ac_prev=libexecdir ;;
595 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
596 | --libexe=* | --libex=* | --libe=*)
698dcdb6 597 libexecdir="$ac_optarg" ;;
10f2d63a
VZ
598
599 -localstatedir | --localstatedir | --localstatedi | --localstated \
600 | --localstate | --localstat | --localsta | --localst \
601 | --locals | --local | --loca | --loc | --lo)
602 ac_prev=localstatedir ;;
603 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
604 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
605 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
698dcdb6 606 localstatedir="$ac_optarg" ;;
10f2d63a
VZ
607
608 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
609 ac_prev=mandir ;;
610 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
698dcdb6 611 mandir="$ac_optarg" ;;
10f2d63a
VZ
612
613 -nfp | --nfp | --nf)
614 # Obsolete; use --without-fp.
615 with_fp=no ;;
616
617 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
618 | --no-cr | --no-c)
619 no_create=yes ;;
620
621 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
622 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
623 no_recursion=yes ;;
624
625 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
626 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
627 | --oldin | --oldi | --old | --ol | --o)
628 ac_prev=oldincludedir ;;
629 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
630 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
631 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
698dcdb6 632 oldincludedir="$ac_optarg" ;;
10f2d63a
VZ
633
634 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
635 ac_prev=prefix ;;
636 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
698dcdb6 637 prefix="$ac_optarg" ;;
10f2d63a
VZ
638
639 -program-prefix | --program-prefix | --program-prefi | --program-pref \
640 | --program-pre | --program-pr | --program-p)
641 ac_prev=program_prefix ;;
642 -program-prefix=* | --program-prefix=* | --program-prefi=* \
643 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
698dcdb6 644 program_prefix="$ac_optarg" ;;
10f2d63a
VZ
645
646 -program-suffix | --program-suffix | --program-suffi | --program-suff \
647 | --program-suf | --program-su | --program-s)
648 ac_prev=program_suffix ;;
649 -program-suffix=* | --program-suffix=* | --program-suffi=* \
650 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
698dcdb6 651 program_suffix="$ac_optarg" ;;
10f2d63a
VZ
652
653 -program-transform-name | --program-transform-name \
654 | --program-transform-nam | --program-transform-na \
655 | --program-transform-n | --program-transform- \
656 | --program-transform | --program-transfor \
657 | --program-transfo | --program-transf \
658 | --program-trans | --program-tran \
659 | --progr-tra | --program-tr | --program-t)
660 ac_prev=program_transform_name ;;
661 -program-transform-name=* | --program-transform-name=* \
662 | --program-transform-nam=* | --program-transform-na=* \
663 | --program-transform-n=* | --program-transform-=* \
664 | --program-transform=* | --program-transfor=* \
665 | --program-transfo=* | --program-transf=* \
666 | --program-trans=* | --program-tran=* \
667 | --progr-tra=* | --program-tr=* | --program-t=*)
698dcdb6 668 program_transform_name="$ac_optarg" ;;
10f2d63a
VZ
669
670 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
671 | -silent | --silent | --silen | --sile | --sil)
672 silent=yes ;;
673
674 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
675 ac_prev=sbindir ;;
676 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
677 | --sbi=* | --sb=*)
698dcdb6 678 sbindir="$ac_optarg" ;;
10f2d63a
VZ
679
680 -sharedstatedir | --sharedstatedir | --sharedstatedi \
681 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
682 | --sharedst | --shareds | --shared | --share | --shar \
683 | --sha | --sh)
684 ac_prev=sharedstatedir ;;
685 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
686 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
687 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
688 | --sha=* | --sh=*)
698dcdb6 689 sharedstatedir="$ac_optarg" ;;
10f2d63a
VZ
690
691 -site | --site | --sit)
692 ac_prev=site ;;
693 -site=* | --site=* | --sit=*)
698dcdb6 694 site="$ac_optarg" ;;
10f2d63a
VZ
695
696 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
697 ac_prev=srcdir ;;
698 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
698dcdb6 699 srcdir="$ac_optarg" ;;
10f2d63a
VZ
700
701 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
702 | --syscon | --sysco | --sysc | --sys | --sy)
703 ac_prev=sysconfdir ;;
704 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
705 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
698dcdb6 706 sysconfdir="$ac_optarg" ;;
10f2d63a
VZ
707
708 -target | --target | --targe | --targ | --tar | --ta | --t)
698dcdb6 709 ac_prev=target ;;
10f2d63a 710 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
698dcdb6 711 target="$ac_optarg" ;;
10f2d63a
VZ
712
713 -v | -verbose | --verbose | --verbos | --verbo | --verb)
714 verbose=yes ;;
715
698dcdb6
VZ
716 -version | --version | --versio | --versi | --vers)
717 echo "configure generated by autoconf version 2.13"
718 exit 0 ;;
10f2d63a
VZ
719
720 -with-* | --with-*)
698dcdb6 721 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
10f2d63a 722 # Reject names that are not valid shell variable names.
698dcdb6
VZ
723 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
724 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
725 fi
10f2d63a 726 ac_package=`echo $ac_package| sed 's/-/_/g'`
698dcdb6
VZ
727 case "$ac_option" in
728 *=*) ;;
10f2d63a
VZ
729 *) ac_optarg=yes ;;
730 esac
698dcdb6 731 eval "with_${ac_package}='$ac_optarg'" ;;
10f2d63a
VZ
732
733 -without-* | --without-*)
698dcdb6 734 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
10f2d63a 735 # Reject names that are not valid shell variable names.
698dcdb6
VZ
736 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
737 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
738 fi
739 ac_package=`echo $ac_package| sed 's/-/_/g'`
740 eval "with_${ac_package}=no" ;;
10f2d63a
VZ
741
742 --x)
743 # Obsolete; use --with-x.
744 with_x=yes ;;
745
746 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
747 | --x-incl | --x-inc | --x-in | --x-i)
748 ac_prev=x_includes ;;
749 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
750 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
698dcdb6 751 x_includes="$ac_optarg" ;;
10f2d63a
VZ
752
753 -x-libraries | --x-libraries | --x-librarie | --x-librari \
754 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
755 ac_prev=x_libraries ;;
756 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
757 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
698dcdb6 758 x_libraries="$ac_optarg" ;;
10f2d63a 759
698dcdb6 760 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
10f2d63a
VZ
761 ;;
762
763 *)
698dcdb6
VZ
764 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
765 echo "configure: warning: $ac_option: invalid host type" 1>&2
766 fi
767 if test "x$nonopt" != xNONE; then
768 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
769 fi
770 nonopt="$ac_option"
10f2d63a
VZ
771 ;;
772
773 esac
774done
775
776if test -n "$ac_prev"; then
698dcdb6
VZ
777 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
778fi
779
780trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
781
782# File descriptor usage:
783# 0 standard input
784# 1 file creation
785# 2 errors and warnings
786# 3 some systems may open it to /dev/tty
787# 4 used on the Kubota Titan
788# 6 checking for... messages and results
789# 5 compiler messages saved in config.log
790if test "$silent" = yes; then
791 exec 6>/dev/null
792else
793 exec 6>&1
10f2d63a 794fi
698dcdb6
VZ
795exec 5>./config.log
796
797echo "\
798This file contains any messages produced by compilers while
799running configure, to aid debugging if configure makes a mistake.
800" 1>&5
10f2d63a 801
698dcdb6
VZ
802# Strip out --no-create and --no-recursion so they do not pile up.
803# Also quote any args containing shell metacharacters.
804ac_configure_args=
805for ac_arg
10f2d63a 806do
698dcdb6
VZ
807 case "$ac_arg" in
808 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
809 | --no-cr | --no-c) ;;
810 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
811 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
812 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
813 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
814 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
10f2d63a
VZ
815 esac
816done
817
698dcdb6
VZ
818# NLS nuisances.
819# Only set these to C if already set. These must not be set unconditionally
820# because not all systems understand e.g. LANG=C (notably SCO).
821# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
822# Non-C LC_CTYPE values break the ctype check.
823if test "${LANG+set}" = set; then LANG=C; export LANG; fi
824if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
825if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
826if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
10f2d63a 827
698dcdb6
VZ
828# confdefs.h avoids OS command line length limits that DEFS can exceed.
829rm -rf conftest* confdefs.h
830# AIX cpp loses on an empty file, so make sure it contains at least a newline.
831echo > confdefs.h
10f2d63a 832
698dcdb6
VZ
833# A filename unique to this package, relative to the directory that
834# configure is in, which we can look for to find out if srcdir is correct.
835ac_unique_file=wx-config.in
10f2d63a
VZ
836
837# Find the source files, if location was not specified.
838if test -z "$srcdir"; then
839 ac_srcdir_defaulted=yes
840 # Try the directory containing this script, then its parent.
841 ac_prog=$0
698dcdb6 842 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
10f2d63a
VZ
843 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
844 srcdir=$ac_confdir
845 if test ! -r $srcdir/$ac_unique_file; then
846 srcdir=..
847 fi
848else
849 ac_srcdir_defaulted=no
850fi
851if test ! -r $srcdir/$ac_unique_file; then
852 if test "$ac_srcdir_defaulted" = yes; then
698dcdb6 853 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
10f2d63a 854 else
698dcdb6 855 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
10f2d63a
VZ
856 fi
857fi
698dcdb6 858srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
10f2d63a
VZ
859
860# Prefer explicitly selected file to automatically selected ones.
861if test -z "$CONFIG_SITE"; then
862 if test "x$prefix" != xNONE; then
863 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
864 else
865 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
866 fi
867fi
868for ac_site_file in $CONFIG_SITE; do
869 if test -r "$ac_site_file"; then
698dcdb6 870 echo "loading site script $ac_site_file"
10f2d63a
VZ
871 . "$ac_site_file"
872 fi
873done
874
875if test -r "$cache_file"; then
698dcdb6
VZ
876 echo "loading cache $cache_file"
877 . $cache_file
10f2d63a 878else
698dcdb6
VZ
879 echo "creating cache $cache_file"
880 > $cache_file
10f2d63a
VZ
881fi
882
883ac_ext=c
698dcdb6 884# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10f2d63a 885ac_cpp='$CPP $CPPFLAGS'
698dcdb6
VZ
886ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
887ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
888cross_compiling=$ac_cv_prog_cc_cross
889
890ac_exeext=
891ac_objext=o
892if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
893 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
894 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
895 ac_n= ac_c='
896' ac_t=' '
897 else
898 ac_n=-n ac_c= ac_t=
899 fi
10f2d63a 900else
698dcdb6 901 ac_n= ac_c='\c' ac_t=
10f2d63a 902fi
698dcdb6
VZ
903
904
10f2d63a 905
7c66a493
VZ
906ac_aux_dir=
907for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
908 if test -f $ac_dir/install-sh; then
909 ac_aux_dir=$ac_dir
910 ac_install_sh="$ac_aux_dir/install-sh -c"
911 break
912 elif test -f $ac_dir/install.sh; then
913 ac_aux_dir=$ac_dir
914 ac_install_sh="$ac_aux_dir/install.sh -c"
915 break
916 fi
917done
918if test -z "$ac_aux_dir"; then
698dcdb6 919 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
7c66a493 920fi
698dcdb6
VZ
921ac_config_guess=$ac_aux_dir/config.guess
922ac_config_sub=$ac_aux_dir/config.sub
923ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
703e0a69 924
698dcdb6
VZ
925
926# Do some error checking and defaulting for the host and target type.
927# The inputs are:
928# configure --host=HOST --target=TARGET --build=BUILD NONOPT
929#
930# The rules are:
931# 1. You are not allowed to specify --host, --target, and nonopt at the
932# same time.
933# 2. Host defaults to nonopt.
934# 3. If nonopt is not specified, then host defaults to the current host,
935# as determined by config.guess.
936# 4. Target and build default to nonopt.
937# 5. If nonopt is not specified, then target and build default to host.
7c66a493
VZ
938
939# The aliases save the names the user supplied, while $host etc.
940# will get canonicalized.
698dcdb6
VZ
941case $host---$target---$nonopt in
942NONE---*---* | *---NONE---* | *---*---NONE) ;;
943*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
944esac
945
946
947# Make sure we can run config.sub.
948if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
949else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
950fi
951
952echo $ac_n "checking host system type""... $ac_c" 1>&6
3f345b47 953echo "configure:954: checking host system type" >&5
698dcdb6
VZ
954
955host_alias=$host
956case "$host_alias" in
957NONE)
958 case $nonopt in
959 NONE)
960 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
961 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
962 fi ;;
963 *) host_alias=$nonopt ;;
964 esac ;;
965esac
966
967host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
968host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
969host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
970host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
971echo "$ac_t""$host" 1>&6
972
973echo $ac_n "checking target system type""... $ac_c" 1>&6
3f345b47 974echo "configure:975: checking target system type" >&5
698dcdb6
VZ
975
976target_alias=$target
977case "$target_alias" in
978NONE)
979 case $nonopt in
980 NONE) target_alias=$host_alias ;;
981 *) target_alias=$nonopt ;;
982 esac ;;
983esac
984
985target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
986target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
987target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
988target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
989echo "$ac_t""$target" 1>&6
990
991echo $ac_n "checking build system type""... $ac_c" 1>&6
3f345b47 992echo "configure:993: checking build system type" >&5
698dcdb6
VZ
993
994build_alias=$build
995case "$build_alias" in
996NONE)
997 case $nonopt in
998 NONE) build_alias=$host_alias ;;
999 *) build_alias=$nonopt ;;
1000 esac ;;
1001esac
1002
1003build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1004build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1005build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1006build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1007echo "$ac_t""$build" 1>&6
1008
1009test "$host_alias" != "$target_alias" &&
7c66a493
VZ
1010 test "$program_prefix$program_suffix$program_transform_name" = \
1011 NONENONEs,x,x, &&
1012 program_prefix=${target_alias}-
1013
698dcdb6
VZ
1014
1015
10f2d63a 1016WX_MAJOR_VERSION_NUMBER=2
37d403aa 1017WX_MINOR_VERSION_NUMBER=3
a0d927d1 1018WX_RELEASE_NUMBER=3
10f2d63a 1019
10f2d63a 1020WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER
10f2d63a 1021WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER
6426998c 1022
978f1259
RL
1023WX_MSW_VERSION=$WX_MAJOR_VERSION_NUMBER$WX_MINOR_VERSION_NUMBER$WX_RELEASE_NUMBER
1024
a0d927d1 1025WX_CURRENT=2
6426998c
RL
1026WX_REVISION=0
1027WX_AGE=0
1028
698dcdb6
VZ
1029
1030
10f2d63a
VZ
1031USE_UNIX=1
1032USE_WIN32=0
f9bc1684 1033USE_DOS=0
b12915c1 1034USE_BEOS=0
1216f52d 1035USE_MAC=0
b12915c1 1036
10f2d63a
VZ
1037USE_LINUX=
1038USE_SGI=
1039USE_HPUX=
1040USE_SYSV=
1041USE_SVR4=
1042USE_AIX=
1043USE_SUN=
1044USE_SOLARIS=
1045USE_SUNOS=
1046USE_ALPHA=
1047USE_OSF=
1048USE_BSD=
f11bdd03 1049USE_DARWIN=
10f2d63a 1050USE_FREEBSD=
95c8801c 1051USE_OPENBSD=
f6bcfd97 1052USE_NETBSD=
10f2d63a
VZ
1053USE_VMS=
1054USE_ULTRIX=
10f2d63a
VZ
1055USE_DATA_GENERAL=
1056
ab9b9eab
VZ
1057NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1058
3f345b47
VZ
1059CPP_MT_FLAG=-D_REENTRANT
1060
77e13408 1061ALL_TOOLKITS="GTK MAC MGL MOTIF MSW PM WINE"
10f2d63a
VZ
1062
1063DEFAULT_wxUSE_GTK=0
1e6feb95
VZ
1064DEFAULT_wxUSE_MAC=0
1065DEFAULT_wxUSE_MGL=0
10f2d63a
VZ
1066DEFAULT_wxUSE_MOTIF=0
1067DEFAULT_wxUSE_MSW=0
e07802fc 1068DEFAULT_wxUSE_PM=0
1e6feb95 1069DEFAULT_wxUSE_WINE=0
10f2d63a
VZ
1070
1071DEFAULT_DEFAULT_wxUSE_GTK=0
1e6feb95
VZ
1072DEFAULT_DEFAULT_wxUSE_MAC=0
1073DEFAULT_DEFAULT_wxUSE_MGL=0
10f2d63a
VZ
1074DEFAULT_DEFAULT_wxUSE_MOTIF=0
1075DEFAULT_DEFAULT_wxUSE_MSW=0
e07802fc 1076DEFAULT_DEFAULT_wxUSE_PM=0
1e6feb95 1077DEFAULT_DEFAULT_wxUSE_WINE=0
10f2d63a 1078
d6a55c4b 1079PROGRAM_EXT=
3a922bb4 1080SO_SUFFIX=so
d6a55c4b 1081
10f2d63a
VZ
1082case "${host}" in
1083 *-hp-hpux* )
1084 USE_HPUX=1
1085 DEFAULT_DEFAULT_wxUSE_MOTIF=1
ab9b9eab 1086 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
3a922bb4 1087 SO_SUFFIX=sl
698dcdb6 1088 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1089#define __HPUX__ 1
1090EOF
1091
1092 ;;
1093 *-*-linux* )
1094 USE_LINUX=1
698dcdb6 1095 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1096#define __LINUX__ 1
1097EOF
1098
1099 TMP=`uname -m`
1100 if test "x$TMP" = "xalpha"; then
1101 USE_ALPHA=1
698dcdb6 1102 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1103#define __ALPHA__ 1
1104EOF
1105
1106 fi
1107 DEFAULT_DEFAULT_wxUSE_GTK=1
1108 ;;
1109 *-*-irix5* | *-*-irix6* )
1110 USE_SGI=1
1111 USE_SVR4=1
698dcdb6 1112 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1113#define __SGI__ 1
1114EOF
1115
698dcdb6 1116 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1117#define __SVR4__ 1
1118EOF
1119
1120 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1121 ;;
1122 *-*-solaris2* )
1123 USE_SUN=1
1124 USE_SOLARIS=1
1125 USE_SVR4=1
698dcdb6 1126 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1127#define __SUN__ 1
1128EOF
1129
698dcdb6 1130 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1131#define __SOLARIS__ 1
1132EOF
1133
698dcdb6 1134 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1135#define __SVR4__ 1
1136EOF
1137
1138 DEFAULT_DEFAULT_wxUSE_MOTIF=1
ab9b9eab 1139 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
10f2d63a
VZ
1140 ;;
1141 *-*-sunos4* )
1142 USE_SUN=1
1143 USE_SUNOS=1
1144 USE_BSD=1
698dcdb6 1145 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1146#define __SUN__ 1
1147EOF
1148
698dcdb6 1149 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1150#define __SUNOS__ 1
1151EOF
1152
698dcdb6 1153 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1154#define __BSD__ 1
1155EOF
1156
1157 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1158 ;;
f6bcfd97 1159 *-*-freebsd*)
10f2d63a
VZ
1160 USE_BSD=1
1161 USE_FREEBSD=1
3f345b47 1162 CPP_MT_FLAG=-D_THREAD_SAFE
698dcdb6 1163 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1164#define __FREEBSD__ 1
1165EOF
1166
698dcdb6 1167 cat >> confdefs.h <<\EOF
10f2d63a 1168#define __BSD__ 1
95c8801c
VS
1169EOF
1170
1171 DEFAULT_DEFAULT_wxUSE_GTK=1
1172 ;;
1173 *-*-openbsd*)
1174 USE_BSD=1
1175 USE_OPENBSD=1
698dcdb6 1176 cat >> confdefs.h <<\EOF
95c8801c
VS
1177#define __FREEBSD__ 1
1178EOF
1179
698dcdb6 1180 cat >> confdefs.h <<\EOF
95c8801c 1181#define __OPENBSD__ 1
f6bcfd97
BP
1182EOF
1183
1184 DEFAULT_DEFAULT_wxUSE_GTK=1
1185 ;;
1186 *-*-netbsd*)
1187 USE_BSD=1
1188 USE_NETBSD=1
698dcdb6 1189 cat >> confdefs.h <<\EOF
f6bcfd97
BP
1190#define __FREEBSD__ 1
1191EOF
1192
698dcdb6 1193 cat >> confdefs.h <<\EOF
f6bcfd97 1194#define __NETBSD__ 1
10f2d63a
VZ
1195EOF
1196
1197 DEFAULT_DEFAULT_wxUSE_GTK=1
1198 ;;
1199 *-*-osf* )
1200 USE_ALPHA=1
1201 USE_OSF=1
698dcdb6 1202 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1203#define __ALPHA__ 1
1204EOF
1205
698dcdb6 1206 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1207#define __OSF__ 1
1208EOF
1209
1210 DEFAULT_DEFAULT_wxUSE_MOTIF=1
f6bcfd97 1211 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
10f2d63a
VZ
1212 ;;
1213 *-*-dgux5* )
1214 USE_ALPHA=1
1215 USE_SVR4=1
698dcdb6 1216 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1217#define __ALPHA__ 1
1218EOF
1219
698dcdb6 1220 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1221#define __SVR4__ 1
1222EOF
1223
1224 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1225 ;;
1226 *-*-sysv5* )
1227 USE_SYSV=1
1228 USE_SVR4=1
698dcdb6 1229 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1230#define __SYSV__ 1
1231EOF
1232
698dcdb6 1233 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1234#define __SVR4__ 1
1235EOF
1236
1237 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1238 ;;
1239 *-*-aix* )
1240 USE_AIX=1
1241 USE_SYSV=1
1242 USE_SVR4=1
698dcdb6 1243 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1244#define __AIX__ 1
1245EOF
1246
698dcdb6 1247 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1248#define __SYSV__ 1
1249EOF
1250
698dcdb6 1251 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1252#define __SVR4__ 1
1253EOF
1254
1255 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1256 ;;
1257
1c8183e2 1258 *-*-cygwin* | *-*-mingw32* )
10f2d63a
VZ
1259 USE_UNIX=0
1260 USE_WIN32=1
3a922bb4 1261 SO_SUFFIX=dll
698dcdb6 1262 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1263#define __WIN32__ 1
1264EOF
1265
698dcdb6 1266 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1267#define __WIN95__ 1
1268EOF
1269
698dcdb6 1270 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1271#define __WINDOWS__ 1
1272EOF
1273
698dcdb6 1274 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1275#define __GNUWIN32__ 1
1276EOF
1277
698dcdb6 1278 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1279#define STRICT 1
1280EOF
1281
698dcdb6 1282 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1283#define WINVER 0x0400
1284EOF
1285
cf27ef00 1286 PROGRAM_EXT=".exe"
7b7a7637 1287 RESCOMP=windres
10f2d63a
VZ
1288 DEFAULT_DEFAULT_wxUSE_MSW=1
1289 ;;
1290
f9bc1684
VS
1291 *-pc-msdosdjgpp )
1292 USE_UNIX=0
1293 USE_DOS=1
1294 cat >> confdefs.h <<\EOF
1295#define __DOS__ 1
1296EOF
1297
1298 PROGRAM_EXT=".exe"
1299 DEFAULT_DEFAULT_wxUSE_MGL=1
1300 DEFAULT_DEFAULT_wxUSE_SHARED=0
1301 ;;
1302
6fa882bd 1303 *-pc-os2_emx | *-pc-os2-emx )
698dcdb6 1304 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1305#define __EMX__ 1
1306EOF
1307
cf27ef00 1308 PROGRAM_EXT=".exe"
e07802fc 1309 DEFAULT_DEFAULT_wxUSE_PM=1
10f2d63a
VZ
1310 ;;
1311
d08b457b
GD
1312 powerpc-*-darwin* )
1313 USE_BSD=1
f11bdd03 1314 USE_DARWIN=1
3f345b47 1315 CPP_MT_FLAG=
3a922bb4 1316 SO_SUFFIX=dylib
698dcdb6 1317 cat >> confdefs.h <<\EOF
f11bdd03 1318#define __BSD__ 1
b4085ce6
GD
1319EOF
1320
698dcdb6 1321 cat >> confdefs.h <<\EOF
f11bdd03 1322#define __DARWIN__ 1
d08b457b
GD
1323EOF
1324
1325 cat >> confdefs.h <<\EOF
1326#define __POWERPC__ 1
b4085ce6
GD
1327EOF
1328
1329 DEFAULT_DEFAULT_wxUSE_MAC=1
1330 ;;
1331
b12915c1
VZ
1332 *-*-beos* )
1333 USE_BEOS=1
698dcdb6 1334 cat >> confdefs.h <<\EOF
b12915c1
VZ
1335#define __BEOS__ 1
1336EOF
1337
1338 ;;
1339
10f2d63a 1340 *)
698dcdb6 1341 { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; }
10f2d63a
VZ
1342esac
1343
1344if test "$USE_UNIX" = 1 ; then
b12915c1 1345 wxUSE_UNIX=yes
698dcdb6 1346 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1347#define __UNIX__ 1
1348EOF
1349
10f2d63a
VZ
1350fi
1351
2389f33b
VZ
1352if test "$USE_LINUX" = 1; then
1353 echo $ac_n "checking for glibc 2.1 or later""... $ac_c" 1>&6
f9bc1684 1354echo "configure:1355: checking for glibc 2.1 or later" >&5
2389f33b
VZ
1355if eval "test \"`echo '$''{'wx_lib_glibc21'+set}'`\" = set"; then
1356 echo $ac_n "(cached) $ac_c" 1>&6
1357else
1358 cat > conftest.$ac_ext <<EOF
f9bc1684 1359#line 1360 "configure"
2389f33b
VZ
1360#include "confdefs.h"
1361#include <features.h>
1362int main() {
1363
1364 #if !__GLIBC_PREREQ(2, 1)
1365 #error not glibc2.1
1366 #endif
1367
1368; return 0; }
1369EOF
f9bc1684 1370if { (eval echo configure:1371: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2389f33b
VZ
1371 rm -rf conftest*
1372
1373 wx_lib_glibc21=yes
1374
1375else
1376 echo "configure: failed program was:" >&5
1377 cat conftest.$ac_ext >&5
1378 rm -rf conftest*
1379
1380 wx_lib_glibc21=no
1381
1382
1383fi
1384rm -f conftest*
1385
1386fi
1387
1388echo "$ac_t""$wx_lib_glibc21" 1>&6
2389f33b
VZ
1389 if test "$wx_lib_glibc21" = "yes"; then
1390 cat >> confdefs.h <<\EOF
1391#define wxHAVE_GLIBC2 1
1392EOF
1393
1394 fi
1395fi
10f2d63a 1396
1e487827 1397
1e487827 1398
6232543b 1399
10f2d63a
VZ
1400 wx_arg_cache_file="configarg.cache"
1401 echo "loading argument cache $wx_arg_cache_file"
1402 rm -f ${wx_arg_cache_file}.tmp
1403 touch ${wx_arg_cache_file}.tmp
1404 touch ${wx_arg_cache_file}
698dcdb6 1405
10f2d63a
VZ
1406
1407DEBUG_CONFIGURE=0
1408if test $DEBUG_CONFIGURE = 1; then
1e6feb95
VZ
1409 DEFAULT_wxUSE_UNIVERSAL=no
1410
10f2d63a
VZ
1411 DEFAULT_wxUSE_THREADS=yes
1412
1413 DEFAULT_wxUSE_SHARED=yes
3a922bb4 1414 DEFAULT_wxUSE_SONAME=no
1e6feb95 1415 DEFAULT_wxUSE_OPTIMISE=no
10f2d63a
VZ
1416 DEFAULT_wxUSE_PROFILE=no
1417 DEFAULT_wxUSE_NO_DEPS=no
f676c7ff
MB
1418 DEFAULT_wxUSE_NO_RTTI=yes
1419 DEFAULT_wxUSE_NO_EXCEPTIONS=yes
10f2d63a
VZ
1420 DEFAULT_wxUSE_PERMISSIVE=no
1421 DEFAULT_wxUSE_DEBUG_FLAG=yes
1422 DEFAULT_wxUSE_DEBUG_INFO=yes
1423 DEFAULT_wxUSE_DEBUG_GDB=yes
1424 DEFAULT_wxUSE_MEM_TRACING=no
1425 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1426 DEFAULT_wxUSE_DMALLOC=no
683dccda 1427 DEFAULT_wxUSE_PRECOMP=yes
10f2d63a
VZ
1428 DEFAULT_wxUSE_APPLE_IEEE=no
1429
1430 DEFAULT_wxUSE_LOG=yes
1e6feb95
VZ
1431 DEFAULT_wxUSE_LOGWINDOW=no
1432 DEFAULT_wxUSE_LOGGUI=no
69d27ff7 1433 DEFAULT_wxUSE_LOGDIALOG=no
10f2d63a
VZ
1434
1435 DEFAULT_wxUSE_GUI=yes
1e6feb95 1436 DEFAULT_wxUSE_CONTROLS=no
10f2d63a 1437
3e44f09d 1438 DEFAULT_wxUSE_REGEX=no
10f2d63a
VZ
1439 DEFAULT_wxUSE_ZLIB=no
1440 DEFAULT_wxUSE_LIBPNG=no
1441 DEFAULT_wxUSE_LIBJPEG=no
c7a2bf27 1442 DEFAULT_wxUSE_LIBTIFF=no
10f2d63a 1443 DEFAULT_wxUSE_ODBC=no
3fed1840 1444 DEFAULT_wxUSE_FREETYPE=no
bdad4e7e 1445 DEFAULT_wxUSE_OPENGL=no
10f2d63a 1446
eb4efbdc 1447 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
4f3c5f06 1448 DEFAULT_wxUSE_SNGLINST_CHECKER=no
10f2d63a 1449 DEFAULT_wxUSE_STD_IOSTREAM=no
1e6feb95
VZ
1450 DEFAULT_wxUSE_CMDLINE_PARSER=no
1451 DEFAULT_wxUSE_DATETIME=no
1452 DEFAULT_wxUSE_TIMEDATE=no
1453 DEFAULT_wxUSE_TIMER=no
1454 DEFAULT_wxUSE_STOPWATCH=no
10f2d63a 1455 DEFAULT_wxUSE_FILE=no
1e6feb95 1456 DEFAULT_wxUSE_FFILE=no
a3a584a7 1457 DEFAULT_wxUSE_TEXTBUFFER=no
10f2d63a 1458 DEFAULT_wxUSE_TEXTFILE=no
10f2d63a
VZ
1459 DEFAULT_wxUSE_WAVE=no
1460 DEFAULT_wxUSE_INTL=no
1461 DEFAULT_wxUSE_CONFIG=no
1e6feb95 1462 DEFAULT_wxUSE_FONTMAP=no
10f2d63a
VZ
1463 DEFAULT_wxUSE_STREAMS=no
1464 DEFAULT_wxUSE_SOCKETS=no
1465 DEFAULT_wxUSE_DIALUP_MANAGER=no
10f2d63a
VZ
1466 DEFAULT_wxUSE_JOYSTICK=no
1467 DEFAULT_wxUSE_DYNLIB_CLASS=no
0b9ab0bd 1468 DEFAULT_wxUSE_DYNAMIC_LOADER=no
10f2d63a 1469 DEFAULT_wxUSE_LONGLONG=no
e8f65ba6 1470 DEFAULT_wxUSE_GEOMETRY=no
10f2d63a
VZ
1471
1472 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
1473 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
1474 DEFAULT_wxUSE_POSTSCRIPT=no
1475
1476 DEFAULT_wxUSE_X_RESOURCES=no
1477 DEFAULT_wxUSE_CLIPBOARD=no
1478 DEFAULT_wxUSE_TOOLTIPS=no
1479 DEFAULT_wxUSE_DRAG_AND_DROP=no
24fd6d87 1480 DEFAULT_wxUSE_DRAGIMAGE=no
10f2d63a
VZ
1481 DEFAULT_wxUSE_SPLINES=no
1482
1483 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
1484 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
1485 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
1486
1487 DEFAULT_wxUSE_PROLOGIO=no
1488 DEFAULT_wxUSE_RESOURCES=no
1489 DEFAULT_wxUSE_CONSTRAINTS=no
1490 DEFAULT_wxUSE_IPC=no
1491 DEFAULT_wxUSE_HELP=no
29fd3c0c 1492 DEFAULT_wxUSE_MS_HTML_HELP=no
3379ed37 1493 DEFAULT_wxUSE_WXHTML_HELP=no
24176f2c 1494 DEFAULT_wxUSE_TREELAYOUT=no
10f2d63a 1495 DEFAULT_wxUSE_METAFILE=no
1e6feb95 1496 DEFAULT_wxUSE_MIMETYPE=no
3e44f09d 1497 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
10f2d63a
VZ
1498
1499 DEFAULT_wxUSE_COMMONDLGS=no
1e6feb95
VZ
1500 DEFAULT_wxUSE_CHOICEDLG=no
1501 DEFAULT_wxUSE_COLOURDLG=no
10f2d63a 1502 DEFAULT_wxUSE_DIRDLG=no
1e6feb95 1503 DEFAULT_wxUSE_FILEDLG=no
8db37e06 1504 DEFAULT_wxUSE_FINDREPLDLG=no
1e6feb95
VZ
1505 DEFAULT_wxUSE_FONTDLG=no
1506 DEFAULT_wxUSE_MSGDLG=no
1507 DEFAULT_wxUSE_NUMBERDLG=no
10f2d63a 1508 DEFAULT_wxUSE_TEXTDLG=no
cbca9943 1509 DEFAULT_wxUSE_SPLASH=no
10f2d63a
VZ
1510 DEFAULT_wxUSE_STARTUP_TIPS=no
1511 DEFAULT_wxUSE_PROGRESSDLG=no
b1f5d087
VZ
1512 DEFAULT_wxUSE_WIZARDDLG=no
1513
1e6feb95 1514 DEFAULT_wxUSE_MENUS=no
10f2d63a
VZ
1515 DEFAULT_wxUSE_MINIFRAME=no
1516 DEFAULT_wxUSE_HTML=no
24528b0c 1517 DEFAULT_wxUSE_FILESYSTEM=no
10f2d63a
VZ
1518 DEFAULT_wxUSE_FS_INET=no
1519 DEFAULT_wxUSE_FS_ZIP=no
1520 DEFAULT_wxUSE_BUSYINFO=no
1521 DEFAULT_wxUSE_ZIPSTREAM=no
1e6feb95 1522 DEFAULT_wxUSE_VALIDATORS=no
10f2d63a
VZ
1523
1524 DEFAULT_wxUSE_ACCEL=no
1e6feb95 1525 DEFAULT_wxUSE_BUTTON=no
10f2d63a 1526 DEFAULT_wxUSE_BMPBUTTON=no
1e6feb95
VZ
1527 DEFAULT_wxUSE_CALCTRL=no
1528 DEFAULT_wxUSE_CARET=no
10f2d63a
VZ
1529 DEFAULT_wxUSE_CHECKBOX=no
1530 DEFAULT_wxUSE_CHECKLST=no
1e6feb95 1531 DEFAULT_wxUSE_CHOICE=no
10f2d63a
VZ
1532 DEFAULT_wxUSE_COMBOBOX=no
1533 DEFAULT_wxUSE_GAUGE=no
1534 DEFAULT_wxUSE_GRID=no
1535 DEFAULT_wxUSE_NEW_GRID=no
1536 DEFAULT_wxUSE_IMAGLIST=no
1537 DEFAULT_wxUSE_LISTBOX=no
1538 DEFAULT_wxUSE_LISTCTRL=no
1539 DEFAULT_wxUSE_NOTEBOOK=no
24176f2c 1540 DEFAULT_wxUSE_PROPSHEET=no
10f2d63a
VZ
1541 DEFAULT_wxUSE_RADIOBOX=no
1542 DEFAULT_wxUSE_RADIOBTN=no
1543 DEFAULT_wxUSE_SASH=no
1544 DEFAULT_wxUSE_SCROLLBAR=no
1545 DEFAULT_wxUSE_SLIDER=no
1546 DEFAULT_wxUSE_SPINBTN=no
56cfaa52 1547 DEFAULT_wxUSE_SPINCTRL=no
10f2d63a
VZ
1548 DEFAULT_wxUSE_SPLITTER=no
1549 DEFAULT_wxUSE_STATBMP=no
1550 DEFAULT_wxUSE_STATBOX=no
1551 DEFAULT_wxUSE_STATLINE=no
1e6feb95 1552 DEFAULT_wxUSE_STATTEXT=no
10f2d63a
VZ
1553 DEFAULT_wxUSE_STATUSBAR=yes
1554 DEFAULT_wxUSE_TABDIALOG=no
1e6feb95 1555 DEFAULT_wxUSE_TEXTCTRL=no
1db8dc4a 1556 DEFAULT_wxUSE_TOGGLEBTN=no
10f2d63a 1557 DEFAULT_wxUSE_TOOLBAR=no
360d6699
VZ
1558 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
1559 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
10f2d63a 1560 DEFAULT_wxUSE_TREECTRL=no
9f41d601 1561 DEFAULT_wxUSE_POPUPWIN=no
9926e4a4 1562 DEFAULT_wxUSE_TIPWINDOW=no
10f2d63a
VZ
1563
1564 DEFAULT_wxUSE_UNICODE=no
1565 DEFAULT_wxUSE_WCSRTOMBS=no
1566
edae8572 1567 DEFAULT_wxUSE_PALETTE=no
0046ff7c 1568 DEFAULT_wxUSE_IMAGE=no
10f2d63a
VZ
1569 DEFAULT_wxUSE_GIF=no
1570 DEFAULT_wxUSE_PCX=no
1571 DEFAULT_wxUSE_PNM=no
0046ff7c 1572 DEFAULT_wxUSE_XPM=no
10f2d63a 1573else
1e6feb95
VZ
1574 DEFAULT_wxUSE_UNIVERSAL=no
1575
10f2d63a
VZ
1576 DEFAULT_wxUSE_THREADS=yes
1577
1578 DEFAULT_wxUSE_SHARED=yes
3a922bb4 1579 DEFAULT_wxUSE_SONAME=no
10f2d63a
VZ
1580 DEFAULT_wxUSE_OPTIMISE=yes
1581 DEFAULT_wxUSE_PROFILE=no
1582 DEFAULT_wxUSE_NO_DEPS=no
f676c7ff
MB
1583 DEFAULT_wxUSE_NO_RTTI=yes
1584 DEFAULT_wxUSE_NO_EXCEPTIONS=yes
10f2d63a
VZ
1585 DEFAULT_wxUSE_PERMISSIVE=no
1586 DEFAULT_wxUSE_DEBUG_FLAG=no
1587 DEFAULT_wxUSE_DEBUG_INFO=no
1588 DEFAULT_wxUSE_DEBUG_GDB=no
1589 DEFAULT_wxUSE_MEM_TRACING=no
1590 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1591 DEFAULT_wxUSE_DMALLOC=no
683dccda 1592 DEFAULT_wxUSE_PRECOMP=yes
10f2d63a
VZ
1593 DEFAULT_wxUSE_APPLE_IEEE=yes
1594
1595 DEFAULT_wxUSE_LOG=yes
d73be714
VZ
1596 DEFAULT_wxUSE_LOGWINDOW=yes
1597 DEFAULT_wxUSE_LOGGUI=yes
69d27ff7 1598 DEFAULT_wxUSE_LOGDIALOG=yes
10f2d63a
VZ
1599
1600 DEFAULT_wxUSE_GUI=yes
1601
831b3152 1602 DEFAULT_wxUSE_REGEX=yes
10f2d63a
VZ
1603 DEFAULT_wxUSE_ZLIB=yes
1604 DEFAULT_wxUSE_LIBPNG=yes
1605 DEFAULT_wxUSE_LIBJPEG=yes
b47c832e 1606 DEFAULT_wxUSE_LIBTIFF=yes
16b52fa1 1607 DEFAULT_wxUSE_ODBC=no
3fed1840 1608 DEFAULT_wxUSE_FREETYPE=no
bdad4e7e 1609 DEFAULT_wxUSE_OPENGL=no
10f2d63a 1610
eb4efbdc 1611 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
4f3c5f06 1612 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
10f2d63a 1613 DEFAULT_wxUSE_STD_IOSTREAM=no
1e6feb95
VZ
1614 DEFAULT_wxUSE_CMDLINE_PARSER=yes
1615 DEFAULT_wxUSE_DATETIME=yes
1616 DEFAULT_wxUSE_TIMEDATE=no
1617 DEFAULT_wxUSE_TIMER=yes
1618 DEFAULT_wxUSE_STOPWATCH=yes
10f2d63a 1619 DEFAULT_wxUSE_FILE=yes
1e6feb95 1620 DEFAULT_wxUSE_FFILE=yes
a3a584a7 1621 DEFAULT_wxUSE_TEXTBUFFER=yes
10f2d63a 1622 DEFAULT_wxUSE_TEXTFILE=yes
10f2d63a
VZ
1623 DEFAULT_wxUSE_WAVE=no
1624 DEFAULT_wxUSE_INTL=yes
1625 DEFAULT_wxUSE_CONFIG=yes
1e6feb95 1626 DEFAULT_wxUSE_FONTMAP=yes
10f2d63a
VZ
1627 DEFAULT_wxUSE_STREAMS=yes
1628 DEFAULT_wxUSE_SOCKETS=yes
1629 DEFAULT_wxUSE_DIALUP_MANAGER=yes
10f2d63a 1630 DEFAULT_wxUSE_JOYSTICK=yes
0b9ab0bd
RL
1631 DEFAULT_wxUSE_DYNLIB_CLASS=no
1632 DEFAULT_wxUSE_DYNAMIC_LOADER=yes
b685cd9b 1633 DEFAULT_wxUSE_LONGLONG=yes
e8f65ba6 1634 DEFAULT_wxUSE_GEOMETRY=yes
10f2d63a
VZ
1635
1636 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
1637 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
1638 DEFAULT_wxUSE_POSTSCRIPT=yes
1639
1640 DEFAULT_wxUSE_X_RESOURCES=no
1641 DEFAULT_wxUSE_CLIPBOARD=yes
1642 DEFAULT_wxUSE_TOOLTIPS=yes
1643 DEFAULT_wxUSE_DRAG_AND_DROP=yes
24fd6d87 1644 DEFAULT_wxUSE_DRAGIMAGE=yes
10f2d63a
VZ
1645 DEFAULT_wxUSE_SPLINES=yes
1646
1647 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
1648 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
1649 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
1650
1651 DEFAULT_wxUSE_PROLOGIO=yes
1652 DEFAULT_wxUSE_RESOURCES=yes
1653 DEFAULT_wxUSE_CONSTRAINTS=yes
1654 DEFAULT_wxUSE_IPC=yes
1655 DEFAULT_wxUSE_HELP=yes
29fd3c0c 1656 DEFAULT_wxUSE_MS_HTML_HELP=yes
3379ed37 1657 DEFAULT_wxUSE_WXHTML_HELP=yes
24176f2c 1658 DEFAULT_wxUSE_TREELAYOUT=yes
10f2d63a 1659 DEFAULT_wxUSE_METAFILE=yes
1e6feb95 1660 DEFAULT_wxUSE_MIMETYPE=yes
3e44f09d 1661 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
10f2d63a
VZ
1662
1663 DEFAULT_wxUSE_COMMONDLGS=yes
1e6feb95
VZ
1664 DEFAULT_wxUSE_CHOICEDLG=yes
1665 DEFAULT_wxUSE_COLOURDLG=yes
10f2d63a 1666 DEFAULT_wxUSE_DIRDLG=yes
1e6feb95 1667 DEFAULT_wxUSE_FILEDLG=yes
8db37e06 1668 DEFAULT_wxUSE_FINDREPLDLG=yes
1e6feb95
VZ
1669 DEFAULT_wxUSE_FONTDLG=yes
1670 DEFAULT_wxUSE_MSGDLG=yes
1671 DEFAULT_wxUSE_NUMBERDLG=yes
10f2d63a 1672 DEFAULT_wxUSE_TEXTDLG=yes
cbca9943 1673 DEFAULT_wxUSE_SPLASH=yes
10f2d63a
VZ
1674 DEFAULT_wxUSE_STARTUP_TIPS=yes
1675 DEFAULT_wxUSE_PROGRESSDLG=yes
f33f19dd
VZ
1676 DEFAULT_wxUSE_WIZARDDLG=yes
1677
1e6feb95 1678 DEFAULT_wxUSE_MENUS=yes
10f2d63a
VZ
1679 DEFAULT_wxUSE_MINIFRAME=yes
1680 DEFAULT_wxUSE_HTML=yes
24528b0c 1681 DEFAULT_wxUSE_FILESYSTEM=yes
10f2d63a
VZ
1682 DEFAULT_wxUSE_FS_INET=yes
1683 DEFAULT_wxUSE_FS_ZIP=yes
1684 DEFAULT_wxUSE_BUSYINFO=yes
1685 DEFAULT_wxUSE_ZIPSTREAM=yes
1686 DEFAULT_wxUSE_VALIDATORS=yes
1687
1688 DEFAULT_wxUSE_ACCEL=yes
1e6feb95 1689 DEFAULT_wxUSE_BUTTON=yes
10f2d63a 1690 DEFAULT_wxUSE_BMPBUTTON=yes
1e6feb95
VZ
1691 DEFAULT_wxUSE_CALCTRL=yes
1692 DEFAULT_wxUSE_CARET=yes
10f2d63a
VZ
1693 DEFAULT_wxUSE_CHECKBOX=yes
1694 DEFAULT_wxUSE_CHECKLST=yes
1695 DEFAULT_wxUSE_CHOICE=yes
1696 DEFAULT_wxUSE_COMBOBOX=yes
1697 DEFAULT_wxUSE_GAUGE=yes
1698 DEFAULT_wxUSE_GRID=yes
cc977e5f 1699 DEFAULT_wxUSE_NEW_GRID=yes
10f2d63a
VZ
1700 DEFAULT_wxUSE_IMAGLIST=yes
1701 DEFAULT_wxUSE_LISTBOX=yes
1702 DEFAULT_wxUSE_LISTCTRL=yes
1703 DEFAULT_wxUSE_NOTEBOOK=yes
24176f2c 1704 DEFAULT_wxUSE_PROPSHEET=yes
10f2d63a
VZ
1705 DEFAULT_wxUSE_RADIOBOX=yes
1706 DEFAULT_wxUSE_RADIOBTN=yes
1707 DEFAULT_wxUSE_SASH=yes
1708 DEFAULT_wxUSE_SCROLLBAR=yes
1709 DEFAULT_wxUSE_SLIDER=yes
1710 DEFAULT_wxUSE_SPINBTN=yes
56cfaa52 1711 DEFAULT_wxUSE_SPINCTRL=yes
10f2d63a
VZ
1712 DEFAULT_wxUSE_SPLITTER=yes
1713 DEFAULT_wxUSE_STATBMP=yes
1714 DEFAULT_wxUSE_STATBOX=yes
1715 DEFAULT_wxUSE_STATLINE=yes
1e6feb95 1716 DEFAULT_wxUSE_STATTEXT=yes
10f2d63a
VZ
1717 DEFAULT_wxUSE_STATUSBAR=yes
1718 DEFAULT_wxUSE_TABDIALOG=no
1e6feb95 1719 DEFAULT_wxUSE_TEXTCTRL=yes
1db8dc4a 1720 DEFAULT_wxUSE_TOGGLEBTN=yes
10f2d63a 1721 DEFAULT_wxUSE_TOOLBAR=yes
360d6699
VZ
1722 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
1723 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
10f2d63a 1724 DEFAULT_wxUSE_TREECTRL=yes
9f41d601 1725 DEFAULT_wxUSE_POPUPWIN=yes
9926e4a4 1726 DEFAULT_wxUSE_TIPWINDOW=yes
10f2d63a
VZ
1727
1728 DEFAULT_wxUSE_UNICODE=no
1729 DEFAULT_wxUSE_WCSRTOMBS=no
1730
edae8572 1731 DEFAULT_wxUSE_PALETTE=yes
0046ff7c 1732 DEFAULT_wxUSE_IMAGE=yes
10f2d63a
VZ
1733 DEFAULT_wxUSE_GIF=yes
1734 DEFAULT_wxUSE_PCX=yes
1735 DEFAULT_wxUSE_PNM=yes
0046ff7c 1736 DEFAULT_wxUSE_XPM=yes
10f2d63a
VZ
1737fi
1738
698dcdb6
VZ
1739
1740
10f2d63a
VZ
1741for toolkit in `echo $ALL_TOOLKITS`; do
1742 LINE=`grep "wxUSE_$toolkit" ${wx_arg_cache_file}`
1743 if test "x$LINE" != x ; then
1744 has_toolkit_in_cache=1
1745 eval "DEFAULT_$LINE"
1746 eval "CACHE_$toolkit=1"
1747 fi
1748done
1749
698dcdb6
VZ
1750
1751
1752 echo $ac_n "checking for --enable-gui""... $ac_c" 1>&6
f9bc1684 1753echo "configure:1754: checking for --enable-gui" >&5
10f2d63a
VZ
1754 no_cache=0
1755 # Check whether --enable-gui or --disable-gui was given.
1756if test "${enable_gui+set}" = set; then
1757 enableval="$enable_gui"
698dcdb6 1758
10f2d63a
VZ
1759 if test "$enableval" = yes; then
1760 ac_cv_use_gui='wxUSE_GUI=yes'
1761 else
1762 ac_cv_use_gui='wxUSE_GUI=no'
1763 fi
698dcdb6 1764
10f2d63a 1765else
698dcdb6 1766
10f2d63a
VZ
1767 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
1768 if test "x$LINE" != x ; then
1769 eval "DEFAULT_$LINE"
1770 else
1771 no_cache=1
1772 fi
1773
1774 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
698dcdb6
VZ
1775
1776fi
10f2d63a
VZ
1777
1778
1779 eval "$ac_cv_use_gui"
1780 if test "$no_cache" != 1; then
1781 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
1782 fi
1783
1784 if test "$wxUSE_GUI" = yes; then
698dcdb6 1785 echo "$ac_t""yes" 1>&6
10f2d63a 1786 else
698dcdb6 1787 echo "$ac_t""no" 1>&6
10f2d63a 1788 fi
698dcdb6 1789
10f2d63a 1790
b12915c1 1791if test "$wxUSE_GUI" = "yes"; then
10f2d63a 1792
1e6feb95
VZ
1793
1794 echo $ac_n "checking for --enable-universal""... $ac_c" 1>&6
f9bc1684 1795echo "configure:1796: checking for --enable-universal" >&5
1e6feb95
VZ
1796 no_cache=0
1797 # Check whether --enable-universal or --disable-universal was given.
1798if test "${enable_universal+set}" = set; then
1799 enableval="$enable_universal"
1800
1801 if test "$enableval" = yes; then
1802 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
1803 else
1804 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
1805 fi
1806
1807else
1808
1809 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
1810 if test "x$LINE" != x ; then
1811 eval "DEFAULT_$LINE"
1812 else
1813 no_cache=1
1814 fi
1815
1816 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
1817
1818fi
1819
1820
1821 eval "$ac_cv_use_universal"
1822 if test "$no_cache" != 1; then
1823 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
1824 fi
1825
1826 if test "$wxUSE_UNIVERSAL" = yes; then
1827 echo "$ac_t""yes" 1>&6
1828 else
1829 echo "$ac_t""no" 1>&6
1830 fi
1831
10f2d63a
VZ
1832# Check whether --with-gtk or --without-gtk was given.
1833if test "${with_gtk+set}" = set; then
1834 withval="$with_gtk"
1835 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
698dcdb6 1836fi
10f2d63a
VZ
1837
1838# Check whether --with-motif or --without-motif was given.
1839if test "${with_motif+set}" = set; then
1840 withval="$with_motif"
1841 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
698dcdb6 1842fi
10f2d63a 1843
b4085ce6
GD
1844# Check whether --with-mac or --without-mac was given.
1845if test "${with_mac+set}" = set; then
1846 withval="$with_mac"
1847 wxUSE_MAC="$withval" TOOLKIT_GIVEN=1
698dcdb6 1848fi
b4085ce6 1849
10f2d63a
VZ
1850# Check whether --with-wine or --without-wine was given.
1851if test "${with_wine+set}" = set; then
1852 withval="$with_wine"
1853 wxUSE_WINE="$withval" CACHE_WINE=1 TOOLKIT_GIVEN=1
698dcdb6 1854fi
10f2d63a 1855
77e13408
RL
1856# Check whether --with-msw or --without-msw was given.
1857if test "${with_msw+set}" = set; then
1858 withval="$with_msw"
1859 wxUSE_MSW="$withval" CACHE_MSW TOOLKIT_GIVEN=1
698dcdb6 1860fi
10f2d63a 1861
e07802fc
VZ
1862# Check whether --with-pm or --without-pm was given.
1863if test "${with_pm+set}" = set; then
1864 withval="$with_pm"
1865 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
698dcdb6
VZ
1866fi
1867
1e6feb95
VZ
1868# Check whether --with-mgl or --without-mgl was given.
1869if test "${with_mgl+set}" = set; then
1870 withval="$with_mgl"
1871 wxUSE_MGL="$withval" CACHE_MGL=1 TOOLKIT_GIVEN=1
1872fi
1873
10f2d63a 1874
8168de4c
VZ
1875# Check whether --enable-gtk2 or --disable-gtk2 was given.
1876if test "${enable_gtk2+set}" = set; then
1877 enableval="$enable_gtk2"
1878 wxUSE_GTK2=1
10f2d63a 1879else
8168de4c 1880 wxUSE_GTK2=0
698dcdb6
VZ
1881fi
1882
703e0a69 1883
1e487827 1884
698dcdb6 1885 echo $ac_n "checking for --with-libpng""... $ac_c" 1>&6
f9bc1684 1886echo "configure:1887: checking for --with-libpng" >&5
698dcdb6
VZ
1887 no_cache=0
1888 # Check whether --with-libpng or --without-libpng was given.
b12915c1
VZ
1889if test "${with_libpng+set}" = set; then
1890 withval="$with_libpng"
698dcdb6 1891
10f2d63a 1892 if test "$withval" = yes; then
b12915c1 1893 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
422107f9 1894 elif test "$withval" = no; then
b12915c1 1895 ac_cv_use_libpng='wxUSE_LIBPNG=no'
422107f9
VZ
1896 elif test "$withval" = sys; then
1897 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
4f14bcd8
GD
1898 elif test "$withval" = builtin; then
1899 ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
422107f9 1900 else
4f14bcd8 1901 { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 1902 fi
698dcdb6 1903
10f2d63a 1904else
698dcdb6 1905
b12915c1 1906 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
10f2d63a
VZ
1907 if test "x$LINE" != x ; then
1908 eval "DEFAULT_$LINE"
1909 else
1910 no_cache=1
1911 fi
1912
b12915c1 1913 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
698dcdb6
VZ
1914
1915fi
10f2d63a
VZ
1916
1917
b12915c1 1918 eval "$ac_cv_use_libpng"
10f2d63a 1919 if test "$no_cache" != 1; then
b12915c1 1920 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
1921 fi
1922
b12915c1 1923 if test "$wxUSE_LIBPNG" = yes; then
698dcdb6 1924 echo "$ac_t""yes" 1>&6
422107f9 1925 elif test "$wxUSE_LIBPNG" = no; then
698dcdb6 1926 echo "$ac_t""no" 1>&6
422107f9 1927 elif test "$wxUSE_LIBPNG" = sys; then
698dcdb6 1928 echo "$ac_t""system version" 1>&6
4f14bcd8
GD
1929 elif test "$wxUSE_LIBPNG" = builtin; then
1930 echo "$ac_t""builtin version" 1>&6
422107f9 1931 else
4f14bcd8 1932 { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 1933 fi
698dcdb6 1934
10f2d63a 1935
698dcdb6 1936 echo $ac_n "checking for --with-libjpeg""... $ac_c" 1>&6
f9bc1684 1937echo "configure:1938: checking for --with-libjpeg" >&5
10f2d63a 1938 no_cache=0
698dcdb6 1939 # Check whether --with-libjpeg or --without-libjpeg was given.
b12915c1
VZ
1940if test "${with_libjpeg+set}" = set; then
1941 withval="$with_libjpeg"
698dcdb6 1942
10f2d63a 1943 if test "$withval" = yes; then
b12915c1 1944 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
422107f9 1945 elif test "$withval" = no; then
b12915c1 1946 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
422107f9
VZ
1947 elif test "$withval" = sys; then
1948 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
4f14bcd8
GD
1949 elif test "$withval" = builtin; then
1950 ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
422107f9 1951 else
4f14bcd8 1952 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 1953 fi
698dcdb6 1954
10f2d63a 1955else
698dcdb6 1956
b12915c1 1957 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
10f2d63a
VZ
1958 if test "x$LINE" != x ; then
1959 eval "DEFAULT_$LINE"
1960 else
1961 no_cache=1
1962 fi
1963
b12915c1 1964 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
698dcdb6
VZ
1965
1966fi
10f2d63a
VZ
1967
1968
b12915c1 1969 eval "$ac_cv_use_libjpeg"
10f2d63a 1970 if test "$no_cache" != 1; then
b12915c1 1971 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
1972 fi
1973
b12915c1 1974 if test "$wxUSE_LIBJPEG" = yes; then
698dcdb6 1975 echo "$ac_t""yes" 1>&6
422107f9 1976 elif test "$wxUSE_LIBJPEG" = no; then
698dcdb6 1977 echo "$ac_t""no" 1>&6
422107f9 1978 elif test "$wxUSE_LIBJPEG" = sys; then
698dcdb6 1979 echo "$ac_t""system version" 1>&6
4f14bcd8
GD
1980 elif test "$wxUSE_LIBJPEG" = builtin; then
1981 echo "$ac_t""builtin version" 1>&6
422107f9 1982 else
4f14bcd8 1983 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 1984 fi
698dcdb6 1985
10f2d63a 1986
698dcdb6 1987 echo $ac_n "checking for --with-libtiff""... $ac_c" 1>&6
f9bc1684 1988echo "configure:1989: checking for --with-libtiff" >&5
10f2d63a 1989 no_cache=0
698dcdb6 1990 # Check whether --with-libtiff or --without-libtiff was given.
b12915c1
VZ
1991if test "${with_libtiff+set}" = set; then
1992 withval="$with_libtiff"
698dcdb6 1993
10f2d63a 1994 if test "$withval" = yes; then
b12915c1 1995 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
0dcf9893 1996 elif test "$withval" = no; then
b12915c1 1997 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
0dcf9893
VZ
1998 elif test "$withval" = sys; then
1999 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
4f14bcd8
GD
2000 elif test "$withval" = builtin; then
2001 ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
0dcf9893 2002 else
4f14bcd8 2003 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 2004 fi
698dcdb6 2005
10f2d63a 2006else
698dcdb6 2007
b12915c1 2008 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
10f2d63a
VZ
2009 if test "x$LINE" != x ; then
2010 eval "DEFAULT_$LINE"
2011 else
2012 no_cache=1
2013 fi
2014
b12915c1 2015 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
698dcdb6
VZ
2016
2017fi
10f2d63a
VZ
2018
2019
b12915c1 2020 eval "$ac_cv_use_libtiff"
10f2d63a 2021 if test "$no_cache" != 1; then
b12915c1 2022 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2023 fi
2024
b12915c1 2025 if test "$wxUSE_LIBTIFF" = yes; then
698dcdb6 2026 echo "$ac_t""yes" 1>&6
0dcf9893 2027 elif test "$wxUSE_LIBTIFF" = no; then
698dcdb6 2028 echo "$ac_t""no" 1>&6
0dcf9893 2029 elif test "$wxUSE_LIBTIFF" = sys; then
698dcdb6 2030 echo "$ac_t""system version" 1>&6
4f14bcd8
GD
2031 elif test "$wxUSE_LIBTIFF" = builtin; then
2032 echo "$ac_t""builtin version" 1>&6
0dcf9893 2033 else
4f14bcd8 2034 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 2035 fi
698dcdb6 2036
10f2d63a 2037
698dcdb6 2038 echo $ac_n "checking for --with-freetype""... $ac_c" 1>&6
f9bc1684 2039echo "configure:2040: checking for --with-freetype" >&5
3fed1840 2040 no_cache=0
698dcdb6 2041 # Check whether --with-freetype or --without-freetype was given.
3fed1840
RR
2042if test "${with_freetype+set}" = set; then
2043 withval="$with_freetype"
698dcdb6 2044
3fed1840
RR
2045 if test "$withval" = yes; then
2046 ac_cv_use_freetype='wxUSE_FREETYPE=yes'
2047 elif test "$withval" = no; then
2048 ac_cv_use_freetype='wxUSE_FREETYPE=no'
2049 elif test "$withval" = sys; then
2050 ac_cv_use_freetype='wxUSE_FREETYPE=sys'
4f14bcd8
GD
2051 elif test "$withval" = builtin; then
2052 ac_cv_use_freetype='wxUSE_FREETYPE=builtin'
3fed1840 2053 else
4f14bcd8 2054 { echo "configure: error: Invalid value for --with-freetype: should be yes, no, sys, or builtin" 1>&2; exit 1; }
3fed1840 2055 fi
698dcdb6 2056
3fed1840 2057else
698dcdb6 2058
3fed1840
RR
2059 LINE=`grep "wxUSE_FREETYPE" ${wx_arg_cache_file}`
2060 if test "x$LINE" != x ; then
2061 eval "DEFAULT_$LINE"
2062 else
2063 no_cache=1
2064 fi
2065
2066 ac_cv_use_freetype='wxUSE_FREETYPE='$DEFAULT_wxUSE_FREETYPE
698dcdb6
VZ
2067
2068fi
3fed1840
RR
2069
2070
2071 eval "$ac_cv_use_freetype"
2072 if test "$no_cache" != 1; then
2073 echo $ac_cv_use_freetype >> ${wx_arg_cache_file}.tmp
2074 fi
2075
2076 if test "$wxUSE_FREETYPE" = yes; then
698dcdb6 2077 echo "$ac_t""yes" 1>&6
3fed1840 2078 elif test "$wxUSE_FREETYPE" = no; then
698dcdb6 2079 echo "$ac_t""no" 1>&6
3fed1840 2080 elif test "$wxUSE_FREETYPE" = sys; then
698dcdb6 2081 echo "$ac_t""system version" 1>&6
4f14bcd8
GD
2082 elif test "$wxUSE_FREETYPE" = builtin; then
2083 echo "$ac_t""builtin version" 1>&6
3fed1840 2084 else
4f14bcd8 2085 { echo "configure: error: Invalid value for --with-freetype: should be yes, no, sys, or builtin" 1>&2; exit 1; }
3fed1840 2086 fi
698dcdb6 2087
3fed1840 2088
698dcdb6 2089 echo $ac_n "checking for --with-opengl""... $ac_c" 1>&6
f9bc1684 2090echo "configure:2091: checking for --with-opengl" >&5
10f2d63a 2091 no_cache=0
698dcdb6 2092 # Check whether --with-opengl or --without-opengl was given.
b12915c1
VZ
2093if test "${with_opengl+set}" = set; then
2094 withval="$with_opengl"
698dcdb6 2095
10f2d63a 2096 if test "$withval" = yes; then
b12915c1 2097 ac_cv_use_opengl='wxUSE_OPENGL=yes'
10f2d63a 2098 else
b12915c1 2099 ac_cv_use_opengl='wxUSE_OPENGL=no'
10f2d63a 2100 fi
698dcdb6 2101
10f2d63a 2102else
698dcdb6 2103
b12915c1 2104 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
10f2d63a
VZ
2105 if test "x$LINE" != x ; then
2106 eval "DEFAULT_$LINE"
2107 else
2108 no_cache=1
2109 fi
2110
b12915c1 2111 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
698dcdb6
VZ
2112
2113fi
10f2d63a
VZ
2114
2115
b12915c1 2116 eval "$ac_cv_use_opengl"
10f2d63a 2117 if test "$no_cache" != 1; then
b12915c1 2118 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2119 fi
2120
b12915c1 2121 if test "$wxUSE_OPENGL" = yes; then
698dcdb6 2122 echo "$ac_t""yes" 1>&6
10f2d63a 2123 else
698dcdb6 2124 echo "$ac_t""no" 1>&6
10f2d63a 2125 fi
698dcdb6 2126
10f2d63a 2127
b12915c1
VZ
2128fi
2129
1e487827 2130
698dcdb6 2131 echo $ac_n "checking for --with-dmalloc""... $ac_c" 1>&6
f9bc1684 2132echo "configure:2133: checking for --with-dmalloc" >&5
698dcdb6
VZ
2133 no_cache=0
2134 # Check whether --with-dmalloc or --without-dmalloc was given.
b12915c1
VZ
2135if test "${with_dmalloc+set}" = set; then
2136 withval="$with_dmalloc"
698dcdb6 2137
c7a2bf27 2138 if test "$withval" = yes; then
b12915c1 2139 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
c7a2bf27 2140 else
b12915c1 2141 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
c7a2bf27 2142 fi
698dcdb6 2143
c7a2bf27 2144else
698dcdb6 2145
b12915c1 2146 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
c7a2bf27
RR
2147 if test "x$LINE" != x ; then
2148 eval "DEFAULT_$LINE"
2149 else
2150 no_cache=1
2151 fi
2152
b12915c1 2153 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
698dcdb6
VZ
2154
2155fi
c7a2bf27
RR
2156
2157
b12915c1 2158 eval "$ac_cv_use_dmalloc"
c7a2bf27 2159 if test "$no_cache" != 1; then
b12915c1 2160 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
c7a2bf27
RR
2161 fi
2162
b12915c1 2163 if test "$wxUSE_DMALLOC" = yes; then
698dcdb6 2164 echo "$ac_t""yes" 1>&6
c7a2bf27 2165 else
698dcdb6 2166 echo "$ac_t""no" 1>&6
c7a2bf27 2167 fi
698dcdb6 2168
c7a2bf27 2169
3e44f09d 2170 echo $ac_n "checking for --with-regex""... $ac_c" 1>&6
f9bc1684 2171echo "configure:2172: checking for --with-regex" >&5
3e44f09d
VZ
2172 no_cache=0
2173 # Check whether --with-regex or --without-regex was given.
2174if test "${with_regex+set}" = set; then
2175 withval="$with_regex"
2176
2177 if test "$withval" = yes; then
2178 ac_cv_use_regex='wxUSE_REGEX=yes'
2179 elif test "$withval" = no; then
2180 ac_cv_use_regex='wxUSE_REGEX=no'
2181 elif test "$withval" = sys; then
2182 ac_cv_use_regex='wxUSE_REGEX=sys'
4f14bcd8
GD
2183 elif test "$withval" = builtin; then
2184 ac_cv_use_regex='wxUSE_REGEX=builtin'
3e44f09d 2185 else
4f14bcd8 2186 { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; }
3e44f09d
VZ
2187 fi
2188
2189else
2190
2191 LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
2192 if test "x$LINE" != x ; then
2193 eval "DEFAULT_$LINE"
2194 else
2195 no_cache=1
2196 fi
2197
2198 ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
2199
2200fi
2201
2202
2203 eval "$ac_cv_use_regex"
2204 if test "$no_cache" != 1; then
2205 echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
2206 fi
2207
2208 if test "$wxUSE_REGEX" = yes; then
2209 echo "$ac_t""yes" 1>&6
2210 elif test "$wxUSE_REGEX" = no; then
2211 echo "$ac_t""no" 1>&6
2212 elif test "$wxUSE_REGEX" = sys; then
2213 echo "$ac_t""system version" 1>&6
4f14bcd8
GD
2214 elif test "$wxUSE_REGEX" = builtin; then
2215 echo "$ac_t""builtin version" 1>&6
3e44f09d 2216 else
4f14bcd8 2217 { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; }
3e44f09d
VZ
2218 fi
2219
2220
698dcdb6 2221 echo $ac_n "checking for --with-zlib""... $ac_c" 1>&6
f9bc1684 2222echo "configure:2223: checking for --with-zlib" >&5
10f2d63a 2223 no_cache=0
698dcdb6 2224 # Check whether --with-zlib or --without-zlib was given.
b12915c1
VZ
2225if test "${with_zlib+set}" = set; then
2226 withval="$with_zlib"
698dcdb6 2227
10f2d63a 2228 if test "$withval" = yes; then
b12915c1 2229 ac_cv_use_zlib='wxUSE_ZLIB=yes'
422107f9 2230 elif test "$withval" = no; then
b12915c1 2231 ac_cv_use_zlib='wxUSE_ZLIB=no'
422107f9
VZ
2232 elif test "$withval" = sys; then
2233 ac_cv_use_zlib='wxUSE_ZLIB=sys'
4f14bcd8
GD
2234 elif test "$withval" = builtin; then
2235 ac_cv_use_zlib='wxUSE_ZLIB=builtin'
422107f9 2236 else
4f14bcd8 2237 { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 2238 fi
698dcdb6 2239
10f2d63a 2240else
698dcdb6 2241
b12915c1 2242 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
10f2d63a
VZ
2243 if test "x$LINE" != x ; then
2244 eval "DEFAULT_$LINE"
2245 else
2246 no_cache=1
2247 fi
2248
b12915c1 2249 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
698dcdb6
VZ
2250
2251fi
10f2d63a
VZ
2252
2253
b12915c1 2254 eval "$ac_cv_use_zlib"
10f2d63a 2255 if test "$no_cache" != 1; then
b12915c1 2256 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2257 fi
2258
b12915c1 2259 if test "$wxUSE_ZLIB" = yes; then
698dcdb6 2260 echo "$ac_t""yes" 1>&6
422107f9 2261 elif test "$wxUSE_ZLIB" = no; then
698dcdb6 2262 echo "$ac_t""no" 1>&6
422107f9 2263 elif test "$wxUSE_ZLIB" = sys; then
698dcdb6 2264 echo "$ac_t""system version" 1>&6
4f14bcd8
GD
2265 elif test "$wxUSE_ZLIB" = builtin; then
2266 echo "$ac_t""builtin version" 1>&6
422107f9 2267 else
4f14bcd8 2268 { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 2269 fi
698dcdb6 2270
10f2d63a 2271
698dcdb6 2272 echo $ac_n "checking for --with-odbc""... $ac_c" 1>&6
f9bc1684 2273echo "configure:2274: checking for --with-odbc" >&5
10f2d63a 2274 no_cache=0
698dcdb6 2275 # Check whether --with-odbc or --without-odbc was given.
10f2d63a
VZ
2276if test "${with_odbc+set}" = set; then
2277 withval="$with_odbc"
698dcdb6 2278
10f2d63a
VZ
2279 if test "$withval" = yes; then
2280 ac_cv_use_odbc='wxUSE_ODBC=yes'
2281 else
2282 ac_cv_use_odbc='wxUSE_ODBC=no'
2283 fi
698dcdb6 2284
10f2d63a 2285else
698dcdb6 2286
10f2d63a
VZ
2287 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
2288 if test "x$LINE" != x ; then
2289 eval "DEFAULT_$LINE"
2290 else
2291 no_cache=1
2292 fi
2293
2294 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
698dcdb6
VZ
2295
2296fi
10f2d63a
VZ
2297
2298
2299 eval "$ac_cv_use_odbc"
2300 if test "$no_cache" != 1; then
2301 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
2302 fi
2303
2304 if test "$wxUSE_ODBC" = yes; then
698dcdb6 2305 echo "$ac_t""yes" 1>&6
10f2d63a 2306 else
698dcdb6 2307 echo "$ac_t""no" 1>&6
10f2d63a 2308 fi
698dcdb6
VZ
2309
2310
10f2d63a 2311
698dcdb6 2312
698dcdb6 2313 echo $ac_n "checking for --enable-shared""... $ac_c" 1>&6
f9bc1684 2314echo "configure:2315: checking for --enable-shared" >&5
10f2d63a
VZ
2315 no_cache=0
2316 # Check whether --enable-shared or --disable-shared was given.
2317if test "${enable_shared+set}" = set; then
2318 enableval="$enable_shared"
698dcdb6 2319
10f2d63a
VZ
2320 if test "$enableval" = yes; then
2321 ac_cv_use_shared='wxUSE_SHARED=yes'
2322 else
2323 ac_cv_use_shared='wxUSE_SHARED=no'
2324 fi
698dcdb6 2325
10f2d63a 2326else
698dcdb6 2327
10f2d63a
VZ
2328 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
2329 if test "x$LINE" != x ; then
2330 eval "DEFAULT_$LINE"
2331 else
2332 no_cache=1
2333 fi
2334
2335 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
698dcdb6
VZ
2336
2337fi
10f2d63a
VZ
2338
2339
2340 eval "$ac_cv_use_shared"
2341 if test "$no_cache" != 1; then
2342 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
2343 fi
2344
2345 if test "$wxUSE_SHARED" = yes; then
698dcdb6 2346 echo "$ac_t""yes" 1>&6
10f2d63a 2347 else
698dcdb6 2348 echo "$ac_t""no" 1>&6
10f2d63a 2349 fi
698dcdb6 2350
10f2d63a 2351
3a922bb4 2352 echo $ac_n "checking for --enable-soname""... $ac_c" 1>&6
f9bc1684 2353echo "configure:2354: checking for --enable-soname" >&5
00cf1208 2354 no_cache=0
3a922bb4
RL
2355 # Check whether --enable-soname or --disable-soname was given.
2356if test "${enable_soname+set}" = set; then
2357 enableval="$enable_soname"
698dcdb6 2358
00cf1208 2359 if test "$enableval" = yes; then
3a922bb4 2360 ac_cv_use_soname='wxUSE_SONAME=yes'
00cf1208 2361 else
3a922bb4 2362 ac_cv_use_soname='wxUSE_SONAME=no'
00cf1208 2363 fi
698dcdb6 2364
00cf1208 2365else
698dcdb6 2366
3a922bb4 2367 LINE=`grep "wxUSE_SONAME" ${wx_arg_cache_file}`
00cf1208
RR
2368 if test "x$LINE" != x ; then
2369 eval "DEFAULT_$LINE"
2370 else
2371 no_cache=1
2372 fi
2373
3a922bb4 2374 ac_cv_use_soname='wxUSE_SONAME='$DEFAULT_wxUSE_SONAME
698dcdb6
VZ
2375
2376fi
00cf1208
RR
2377
2378
3a922bb4 2379 eval "$ac_cv_use_soname"
00cf1208 2380 if test "$no_cache" != 1; then
3a922bb4 2381 echo $ac_cv_use_soname >> ${wx_arg_cache_file}.tmp
00cf1208
RR
2382 fi
2383
3a922bb4 2384 if test "$wxUSE_SONAME" = yes; then
698dcdb6 2385 echo "$ac_t""yes" 1>&6
00cf1208 2386 else
698dcdb6 2387 echo "$ac_t""no" 1>&6
00cf1208 2388 fi
698dcdb6 2389
00cf1208 2390
698dcdb6 2391 echo $ac_n "checking for --enable-optimise""... $ac_c" 1>&6
f9bc1684 2392echo "configure:2393: checking for --enable-optimise" >&5
10f2d63a
VZ
2393 no_cache=0
2394 # Check whether --enable-optimise or --disable-optimise was given.
2395if test "${enable_optimise+set}" = set; then
2396 enableval="$enable_optimise"
698dcdb6 2397
10f2d63a
VZ
2398 if test "$enableval" = yes; then
2399 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
2400 else
2401 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
2402 fi
698dcdb6 2403
10f2d63a 2404else
698dcdb6 2405
10f2d63a
VZ
2406 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
2407 if test "x$LINE" != x ; then
2408 eval "DEFAULT_$LINE"
2409 else
2410 no_cache=1
2411 fi
2412
2413 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
698dcdb6
VZ
2414
2415fi
10f2d63a
VZ
2416
2417
2418 eval "$ac_cv_use_optimise"
2419 if test "$no_cache" != 1; then
2420 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
2421 fi
2422
2423 if test "$wxUSE_OPTIMISE" = yes; then
698dcdb6 2424 echo "$ac_t""yes" 1>&6
10f2d63a 2425 else
698dcdb6 2426 echo "$ac_t""no" 1>&6
10f2d63a 2427 fi
698dcdb6 2428
10f2d63a 2429
698dcdb6 2430 echo $ac_n "checking for --enable-debug""... $ac_c" 1>&6
f9bc1684 2431echo "configure:2432: checking for --enable-debug" >&5
10f2d63a
VZ
2432 no_cache=0
2433 # Check whether --enable-debug or --disable-debug was given.
2434if test "${enable_debug+set}" = set; then
2435 enableval="$enable_debug"
698dcdb6 2436
10f2d63a
VZ
2437 if test "$enableval" = yes; then
2438 ac_cv_use_debug='wxUSE_DEBUG=yes'
2439 else
2440 ac_cv_use_debug='wxUSE_DEBUG=no'
2441 fi
698dcdb6 2442
10f2d63a 2443else
698dcdb6 2444
10f2d63a
VZ
2445 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
2446 if test "x$LINE" != x ; then
2447 eval "DEFAULT_$LINE"
2448 else
2449 no_cache=1
2450 fi
2451
2452 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
698dcdb6
VZ
2453
2454fi
10f2d63a
VZ
2455
2456
2457 eval "$ac_cv_use_debug"
2458 if test "$no_cache" != 1; then
2459 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
2460 fi
2461
2462 if test "$wxUSE_DEBUG" = yes; then
698dcdb6 2463 echo "$ac_t""yes" 1>&6
10f2d63a 2464 else
698dcdb6 2465 echo "$ac_t""no" 1>&6
10f2d63a 2466 fi
698dcdb6 2467
10f2d63a 2468
683dccda
GD
2469
2470 echo $ac_n "checking for --enable-precomp""... $ac_c" 1>&6
f9bc1684 2471echo "configure:2472: checking for --enable-precomp" >&5
683dccda
GD
2472 no_cache=0
2473 # Check whether --enable-precomp or --disable-precomp was given.
2474if test "${enable_precomp+set}" = set; then
2475 enableval="$enable_precomp"
2476
2477 if test "$enableval" = yes; then
2478 ac_cv_use_precomp='wxUSE_PRECOMP=yes'
2479 else
2480 ac_cv_use_precomp='wxUSE_PRECOMP=no'
2481 fi
2482
2483else
2484
2485 LINE=`grep "wxUSE_PRECOMP" ${wx_arg_cache_file}`
2486 if test "x$LINE" != x ; then
2487 eval "DEFAULT_$LINE"
2488 else
2489 no_cache=1
2490 fi
2491
2492 ac_cv_use_precomp='wxUSE_PRECOMP='$DEFAULT_wxUSE_PRECOMP
2493
2494fi
2495
2496
2497 eval "$ac_cv_use_precomp"
2498 if test "$no_cache" != 1; then
2499 echo $ac_cv_use_precomp >> ${wx_arg_cache_file}.tmp
2500 fi
2501
2502 if test "$wxUSE_PRECOMP" = yes; then
2503 echo "$ac_t""yes" 1>&6
2504 else
2505 echo "$ac_t""no" 1>&6
2506 fi
2507
2508
10f2d63a
VZ
2509if test "$wxUSE_DEBUG" = "yes"; then
2510 DEFAULT_wxUSE_DEBUG_FLAG=yes
2511 DEFAULT_wxUSE_DEBUG_INFO=yes
2512elif test "$wxUSE_DEBUG" = "no"; then
2513 DEFAULT_wxUSE_DEBUG_FLAG=no
2514 DEFAULT_wxUSE_DEBUG_INFO=no
2515fi
2516
698dcdb6
VZ
2517
2518 echo $ac_n "checking for --enable-debug_flag""... $ac_c" 1>&6
f9bc1684 2519echo "configure:2520: checking for --enable-debug_flag" >&5
10f2d63a
VZ
2520 no_cache=0
2521 # Check whether --enable-debug_flag or --disable-debug_flag was given.
2522if test "${enable_debug_flag+set}" = set; then
2523 enableval="$enable_debug_flag"
698dcdb6 2524
10f2d63a
VZ
2525 if test "$enableval" = yes; then
2526 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
2527 else
2528 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
2529 fi
698dcdb6 2530
10f2d63a 2531else
698dcdb6 2532
10f2d63a
VZ
2533 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
2534 if test "x$LINE" != x ; then
2535 eval "DEFAULT_$LINE"
2536 else
2537 no_cache=1
2538 fi
2539
2540 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
698dcdb6
VZ
2541
2542fi
10f2d63a
VZ
2543
2544
2545 eval "$ac_cv_use_debug_flag"
2546 if test "$no_cache" != 1; then
2547 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
2548 fi
2549
2550 if test "$wxUSE_DEBUG_FLAG" = yes; then
698dcdb6 2551 echo "$ac_t""yes" 1>&6
10f2d63a 2552 else
698dcdb6 2553 echo "$ac_t""no" 1>&6
10f2d63a 2554 fi
698dcdb6 2555
10f2d63a 2556
698dcdb6 2557 echo $ac_n "checking for --enable-debug_info""... $ac_c" 1>&6
f9bc1684 2558echo "configure:2559: checking for --enable-debug_info" >&5
10f2d63a
VZ
2559 no_cache=0
2560 # Check whether --enable-debug_info or --disable-debug_info was given.
2561if test "${enable_debug_info+set}" = set; then
2562 enableval="$enable_debug_info"
698dcdb6 2563
10f2d63a
VZ
2564 if test "$enableval" = yes; then
2565 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
2566 else
2567 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
2568 fi
698dcdb6 2569
10f2d63a 2570else
698dcdb6 2571
10f2d63a
VZ
2572 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
2573 if test "x$LINE" != x ; then
2574 eval "DEFAULT_$LINE"
2575 else
2576 no_cache=1
2577 fi
2578
2579 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
698dcdb6
VZ
2580
2581fi
10f2d63a
VZ
2582
2583
2584 eval "$ac_cv_use_debug_info"
2585 if test "$no_cache" != 1; then
2586 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
2587 fi
2588
2589 if test "$wxUSE_DEBUG_INFO" = yes; then
698dcdb6 2590 echo "$ac_t""yes" 1>&6
10f2d63a 2591 else
698dcdb6 2592 echo "$ac_t""no" 1>&6
10f2d63a 2593 fi
698dcdb6 2594
10f2d63a 2595
698dcdb6 2596 echo $ac_n "checking for --enable-debug_gdb""... $ac_c" 1>&6
f9bc1684 2597echo "configure:2598: checking for --enable-debug_gdb" >&5
10f2d63a
VZ
2598 no_cache=0
2599 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
2600if test "${enable_debug_gdb+set}" = set; then
2601 enableval="$enable_debug_gdb"
698dcdb6 2602
10f2d63a
VZ
2603 if test "$enableval" = yes; then
2604 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
2605 else
2606 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
2607 fi
698dcdb6 2608
10f2d63a 2609else
698dcdb6 2610
10f2d63a
VZ
2611 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
2612 if test "x$LINE" != x ; then
2613 eval "DEFAULT_$LINE"
2614 else
2615 no_cache=1
2616 fi
2617
2618 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
698dcdb6
VZ
2619
2620fi
10f2d63a
VZ
2621
2622
2623 eval "$ac_cv_use_debug_gdb"
2624 if test "$no_cache" != 1; then
2625 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
2626 fi
2627
2628 if test "$wxUSE_DEBUG_GDB" = yes; then
698dcdb6 2629 echo "$ac_t""yes" 1>&6
10f2d63a 2630 else
698dcdb6 2631 echo "$ac_t""no" 1>&6
10f2d63a 2632 fi
698dcdb6 2633
10f2d63a 2634
698dcdb6 2635 echo $ac_n "checking for --enable-debug_cntxt""... $ac_c" 1>&6
f9bc1684 2636echo "configure:2637: checking for --enable-debug_cntxt" >&5
10f2d63a
VZ
2637 no_cache=0
2638 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
2639if test "${enable_debug_cntxt+set}" = set; then
2640 enableval="$enable_debug_cntxt"
698dcdb6 2641
10f2d63a
VZ
2642 if test "$enableval" = yes; then
2643 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
2644 else
2645 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
2646 fi
698dcdb6 2647
10f2d63a 2648else
698dcdb6 2649
10f2d63a
VZ
2650 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
2651 if test "x$LINE" != x ; then
2652 eval "DEFAULT_$LINE"
2653 else
2654 no_cache=1
2655 fi
2656
2657 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
698dcdb6
VZ
2658
2659fi
10f2d63a
VZ
2660
2661
2662 eval "$ac_cv_use_debug_cntxt"
2663 if test "$no_cache" != 1; then
2664 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
2665 fi
2666
2667 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
698dcdb6 2668 echo "$ac_t""yes" 1>&6
10f2d63a 2669 else
698dcdb6 2670 echo "$ac_t""no" 1>&6
10f2d63a 2671 fi
698dcdb6 2672
10f2d63a 2673
698dcdb6 2674 echo $ac_n "checking for --enable-mem_tracing""... $ac_c" 1>&6
f9bc1684 2675echo "configure:2676: checking for --enable-mem_tracing" >&5
10f2d63a
VZ
2676 no_cache=0
2677 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
2678if test "${enable_mem_tracing+set}" = set; then
2679 enableval="$enable_mem_tracing"
698dcdb6 2680
10f2d63a
VZ
2681 if test "$enableval" = yes; then
2682 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
2683 else
2684 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
2685 fi
698dcdb6 2686
10f2d63a 2687else
698dcdb6 2688
10f2d63a
VZ
2689 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
2690 if test "x$LINE" != x ; then
2691 eval "DEFAULT_$LINE"
2692 else
2693 no_cache=1
2694 fi
2695
2696 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
698dcdb6
VZ
2697
2698fi
10f2d63a
VZ
2699
2700
2701 eval "$ac_cv_use_mem_tracing"
2702 if test "$no_cache" != 1; then
2703 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
2704 fi
2705
2706 if test "$wxUSE_MEM_TRACING" = yes; then
698dcdb6 2707 echo "$ac_t""yes" 1>&6
10f2d63a 2708 else
698dcdb6 2709 echo "$ac_t""no" 1>&6
10f2d63a 2710 fi
698dcdb6 2711
10f2d63a 2712
698dcdb6 2713 echo $ac_n "checking for --enable-profile""... $ac_c" 1>&6
f9bc1684 2714echo "configure:2715: checking for --enable-profile" >&5
10f2d63a
VZ
2715 no_cache=0
2716 # Check whether --enable-profile or --disable-profile was given.
2717if test "${enable_profile+set}" = set; then
2718 enableval="$enable_profile"
698dcdb6 2719
10f2d63a
VZ
2720 if test "$enableval" = yes; then
2721 ac_cv_use_profile='wxUSE_PROFILE=yes'
2722 else
2723 ac_cv_use_profile='wxUSE_PROFILE=no'
2724 fi
698dcdb6 2725
10f2d63a 2726else
698dcdb6 2727
10f2d63a
VZ
2728 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
2729 if test "x$LINE" != x ; then
2730 eval "DEFAULT_$LINE"
2731 else
2732 no_cache=1
2733 fi
2734
2735 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
698dcdb6
VZ
2736
2737fi
10f2d63a
VZ
2738
2739
2740 eval "$ac_cv_use_profile"
2741 if test "$no_cache" != 1; then
2742 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
2743 fi
2744
2745 if test "$wxUSE_PROFILE" = yes; then
698dcdb6 2746 echo "$ac_t""yes" 1>&6
10f2d63a 2747 else
698dcdb6 2748 echo "$ac_t""no" 1>&6
10f2d63a 2749 fi
698dcdb6 2750
10f2d63a 2751
698dcdb6 2752 echo $ac_n "checking for --enable-no_rtti""... $ac_c" 1>&6
f9bc1684 2753echo "configure:2754: checking for --enable-no_rtti" >&5
10f2d63a
VZ
2754 no_cache=0
2755 # Check whether --enable-no_rtti or --disable-no_rtti was given.
2756if test "${enable_no_rtti+set}" = set; then
2757 enableval="$enable_no_rtti"
698dcdb6 2758
10f2d63a
VZ
2759 if test "$enableval" = yes; then
2760 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
2761 else
2762 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
2763 fi
698dcdb6 2764
10f2d63a 2765else
698dcdb6 2766
10f2d63a
VZ
2767 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
2768 if test "x$LINE" != x ; then
2769 eval "DEFAULT_$LINE"
2770 else
2771 no_cache=1
2772 fi
2773
2774 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
698dcdb6
VZ
2775
2776fi
10f2d63a
VZ
2777
2778
2779 eval "$ac_cv_use_no_rtti"
2780 if test "$no_cache" != 1; then
2781 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
2782 fi
2783
2784 if test "$wxUSE_NO_RTTI" = yes; then
698dcdb6 2785 echo "$ac_t""yes" 1>&6
10f2d63a 2786 else
698dcdb6 2787 echo "$ac_t""no" 1>&6
10f2d63a 2788 fi
698dcdb6 2789
10f2d63a 2790
698dcdb6 2791 echo $ac_n "checking for --enable-no_exceptions""... $ac_c" 1>&6
f9bc1684 2792echo "configure:2793: checking for --enable-no_exceptions" >&5
10f2d63a
VZ
2793 no_cache=0
2794 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
2795if test "${enable_no_exceptions+set}" = set; then
2796 enableval="$enable_no_exceptions"
698dcdb6 2797
10f2d63a
VZ
2798 if test "$enableval" = yes; then
2799 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
2800 else
2801 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
2802 fi
698dcdb6 2803
10f2d63a 2804else
698dcdb6 2805
10f2d63a
VZ
2806 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
2807 if test "x$LINE" != x ; then
2808 eval "DEFAULT_$LINE"
2809 else
2810 no_cache=1
2811 fi
2812
2813 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
698dcdb6
VZ
2814
2815fi
10f2d63a
VZ
2816
2817
2818 eval "$ac_cv_use_no_exceptions"
2819 if test "$no_cache" != 1; then
2820 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
2821 fi
2822
2823 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
698dcdb6 2824 echo "$ac_t""yes" 1>&6
10f2d63a 2825 else
698dcdb6 2826 echo "$ac_t""no" 1>&6
10f2d63a 2827 fi
698dcdb6 2828
10f2d63a 2829
698dcdb6 2830 echo $ac_n "checking for --enable-permissive""... $ac_c" 1>&6
f9bc1684 2831echo "configure:2832: checking for --enable-permissive" >&5
10f2d63a
VZ
2832 no_cache=0
2833 # Check whether --enable-permissive or --disable-permissive was given.
2834if test "${enable_permissive+set}" = set; then
2835 enableval="$enable_permissive"
698dcdb6 2836
10f2d63a
VZ
2837 if test "$enableval" = yes; then
2838 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
2839 else
2840 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
2841 fi
698dcdb6 2842
10f2d63a 2843else
698dcdb6 2844
10f2d63a
VZ
2845 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
2846 if test "x$LINE" != x ; then
2847 eval "DEFAULT_$LINE"
2848 else
2849 no_cache=1
2850 fi
2851
2852 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
698dcdb6
VZ
2853
2854fi
10f2d63a
VZ
2855
2856
2857 eval "$ac_cv_use_permissive"
2858 if test "$no_cache" != 1; then
2859 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
2860 fi
2861
2862 if test "$wxUSE_PERMISSIVE" = yes; then
698dcdb6 2863 echo "$ac_t""yes" 1>&6
10f2d63a 2864 else
698dcdb6 2865 echo "$ac_t""no" 1>&6
10f2d63a 2866 fi
698dcdb6 2867
10f2d63a 2868
698dcdb6 2869 echo $ac_n "checking for --enable-no_deps""... $ac_c" 1>&6
f9bc1684 2870echo "configure:2871: checking for --enable-no_deps" >&5
10f2d63a
VZ
2871 no_cache=0
2872 # Check whether --enable-no_deps or --disable-no_deps was given.
2873if test "${enable_no_deps+set}" = set; then
2874 enableval="$enable_no_deps"
698dcdb6 2875
10f2d63a
VZ
2876 if test "$enableval" = yes; then
2877 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
2878 else
2879 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
2880 fi
698dcdb6 2881
10f2d63a 2882else
698dcdb6 2883
10f2d63a
VZ
2884 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
2885 if test "x$LINE" != x ; then
2886 eval "DEFAULT_$LINE"
2887 else
2888 no_cache=1
2889 fi
2890
2891 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
698dcdb6
VZ
2892
2893fi
10f2d63a
VZ
2894
2895
2896 eval "$ac_cv_use_no_deps"
2897 if test "$no_cache" != 1; then
2898 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
2899 fi
2900
2901 if test "$wxUSE_NO_DEPS" = yes; then
698dcdb6 2902 echo "$ac_t""yes" 1>&6
10f2d63a 2903 else
698dcdb6 2904 echo "$ac_t""no" 1>&6
10f2d63a 2905 fi
698dcdb6
VZ
2906
2907
10f2d63a 2908
54276ccf 2909 echo $ac_n "checking for --enable-compat20""... $ac_c" 1>&6
f9bc1684 2910echo "configure:2911: checking for --enable-compat20" >&5
54276ccf
VZ
2911 no_cache=0
2912 # Check whether --enable-compat20 or --disable-compat20 was given.
2913if test "${enable_compat20+set}" = set; then
2914 enableval="$enable_compat20"
2915
2916 if test "$enableval" = yes; then
2917 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=yes'
2918 else
2919 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=no'
2920 fi
2921
2922else
2923
2924 LINE=`grep "WXWIN_COMPATIBILITY_2" ${wx_arg_cache_file}`
2925 if test "x$LINE" != x ; then
2926 eval "DEFAULT_$LINE"
2927 else
2928 no_cache=1
2929 fi
2930
2931 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2='$DEFAULT_WXWIN_COMPATIBILITY_2
2932
2933fi
2934
2935
2936 eval "$ac_cv_use_compat20"
2937 if test "$no_cache" != 1; then
2938 echo $ac_cv_use_compat20 >> ${wx_arg_cache_file}.tmp
2939 fi
2940
2941 if test "$WXWIN_COMPATIBILITY_2" = yes; then
2942 echo "$ac_t""yes" 1>&6
2943 else
2944 echo "$ac_t""no" 1>&6
2945 fi
2946
2947
2948 echo $ac_n "checking for --enable-compat22""... $ac_c" 1>&6
f9bc1684 2949echo "configure:2950: checking for --enable-compat22" >&5
54276ccf
VZ
2950 no_cache=0
2951 # Check whether --enable-compat22 or --disable-compat22 was given.
2952if test "${enable_compat22+set}" = set; then
2953 enableval="$enable_compat22"
2954
2955 if test "$enableval" = yes; then
2956 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes'
2957 else
2958 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no'
2959 fi
2960
2961else
2962
2963 LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}`
2964 if test "x$LINE" != x ; then
2965 eval "DEFAULT_$LINE"
2966 else
2967 no_cache=1
2968 fi
2969
2970 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2
2971
2972fi
2973
2974
2975 eval "$ac_cv_use_compat22"
2976 if test "$no_cache" != 1; then
2977 echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp
2978 fi
2979
2980 if test "$WXWIN_COMPATIBILITY_2_2" = yes; then
2981 echo "$ac_t""yes" 1>&6
2982 else
2983 echo "$ac_t""no" 1>&6
2984 fi
2985
2986
2987
698dcdb6
VZ
2988
2989 echo $ac_n "checking for --enable-intl""... $ac_c" 1>&6
f9bc1684 2990echo "configure:2991: checking for --enable-intl" >&5
10f2d63a
VZ
2991 no_cache=0
2992 # Check whether --enable-intl or --disable-intl was given.
2993if test "${enable_intl+set}" = set; then
2994 enableval="$enable_intl"
698dcdb6 2995
10f2d63a
VZ
2996 if test "$enableval" = yes; then
2997 ac_cv_use_intl='wxUSE_INTL=yes'
2998 else
2999 ac_cv_use_intl='wxUSE_INTL=no'
3000 fi
698dcdb6 3001
10f2d63a 3002else
698dcdb6 3003
10f2d63a
VZ
3004 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
3005 if test "x$LINE" != x ; then
3006 eval "DEFAULT_$LINE"
3007 else
3008 no_cache=1
3009 fi
3010
3011 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
698dcdb6
VZ
3012
3013fi
10f2d63a
VZ
3014
3015
3016 eval "$ac_cv_use_intl"
3017 if test "$no_cache" != 1; then
3018 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
3019 fi
3020
3021 if test "$wxUSE_INTL" = yes; then
698dcdb6 3022 echo "$ac_t""yes" 1>&6
10f2d63a 3023 else
698dcdb6 3024 echo "$ac_t""no" 1>&6
10f2d63a 3025 fi
698dcdb6 3026
10f2d63a 3027
698dcdb6 3028 echo $ac_n "checking for --enable-config""... $ac_c" 1>&6
f9bc1684 3029echo "configure:3030: checking for --enable-config" >&5
10f2d63a
VZ
3030 no_cache=0
3031 # Check whether --enable-config or --disable-config was given.
3032if test "${enable_config+set}" = set; then
3033 enableval="$enable_config"
698dcdb6 3034
10f2d63a
VZ
3035 if test "$enableval" = yes; then
3036 ac_cv_use_config='wxUSE_CONFIG=yes'
3037 else
3038 ac_cv_use_config='wxUSE_CONFIG=no'
3039 fi
698dcdb6 3040
10f2d63a 3041else
698dcdb6 3042
10f2d63a
VZ
3043 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
3044 if test "x$LINE" != x ; then
3045 eval "DEFAULT_$LINE"
3046 else
3047 no_cache=1
3048 fi
3049
3050 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
698dcdb6
VZ
3051
3052fi
10f2d63a
VZ
3053
3054
3055 eval "$ac_cv_use_config"
3056 if test "$no_cache" != 1; then
3057 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
3058 fi
3059
3060 if test "$wxUSE_CONFIG" = yes; then
698dcdb6 3061 echo "$ac_t""yes" 1>&6
10f2d63a 3062 else
698dcdb6 3063 echo "$ac_t""no" 1>&6
10f2d63a 3064 fi
698dcdb6
VZ
3065
3066
b12915c1 3067
698dcdb6 3068 echo $ac_n "checking for --enable-sockets""... $ac_c" 1>&6
f9bc1684 3069echo "configure:3070: checking for --enable-sockets" >&5
10f2d63a
VZ
3070 no_cache=0
3071 # Check whether --enable-sockets or --disable-sockets was given.
3072if test "${enable_sockets+set}" = set; then
3073 enableval="$enable_sockets"
698dcdb6 3074
10f2d63a
VZ
3075 if test "$enableval" = yes; then
3076 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
3077 else
3078 ac_cv_use_sockets='wxUSE_SOCKETS=no'
3079 fi
698dcdb6 3080
10f2d63a 3081else
698dcdb6 3082
10f2d63a
VZ
3083 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
3084 if test "x$LINE" != x ; then
3085 eval "DEFAULT_$LINE"
3086 else
3087 no_cache=1
3088 fi
3089
3090 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
698dcdb6
VZ
3091
3092fi
10f2d63a
VZ
3093
3094
3095 eval "$ac_cv_use_sockets"
3096 if test "$no_cache" != 1; then
3097 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
3098 fi
3099
3100 if test "$wxUSE_SOCKETS" = yes; then
698dcdb6 3101 echo "$ac_t""yes" 1>&6
10f2d63a 3102 else
698dcdb6 3103 echo "$ac_t""no" 1>&6
10f2d63a 3104 fi
698dcdb6 3105
b12915c1 3106
698dcdb6
VZ
3107
3108 echo $ac_n "checking for --enable-ipc""... $ac_c" 1>&6
f9bc1684 3109echo "configure:3110: checking for --enable-ipc" >&5
10f2d63a 3110 no_cache=0
eb4efbdc
VZ
3111 # Check whether --enable-ipc or --disable-ipc was given.
3112if test "${enable_ipc+set}" = set; then
3113 enableval="$enable_ipc"
698dcdb6 3114
10f2d63a 3115 if test "$enableval" = yes; then
eb4efbdc 3116 ac_cv_use_ipc='wxUSE_IPC=yes'
10f2d63a 3117 else
eb4efbdc 3118 ac_cv_use_ipc='wxUSE_IPC=no'
10f2d63a 3119 fi
698dcdb6 3120
10f2d63a 3121else
698dcdb6 3122
eb4efbdc 3123 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
10f2d63a
VZ
3124 if test "x$LINE" != x ; then
3125 eval "DEFAULT_$LINE"
3126 else
3127 no_cache=1
3128 fi
3129
eb4efbdc 3130 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
698dcdb6
VZ
3131
3132fi
10f2d63a
VZ
3133
3134
eb4efbdc 3135 eval "$ac_cv_use_ipc"
10f2d63a 3136 if test "$no_cache" != 1; then
eb4efbdc 3137 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
3138 fi
3139
eb4efbdc 3140 if test "$wxUSE_IPC" = yes; then
698dcdb6 3141 echo "$ac_t""yes" 1>&6
10f2d63a 3142 else
698dcdb6 3143 echo "$ac_t""no" 1>&6
10f2d63a 3144 fi
698dcdb6
VZ
3145
3146
eb4efbdc 3147
1e6feb95 3148 echo $ac_n "checking for --enable-cmdline""... $ac_c" 1>&6
f9bc1684 3149echo "configure:3150: checking for --enable-cmdline" >&5
1e6feb95
VZ
3150 no_cache=0
3151 # Check whether --enable-cmdline or --disable-cmdline was given.
3152if test "${enable_cmdline+set}" = set; then
3153 enableval="$enable_cmdline"
3154
3155 if test "$enableval" = yes; then
3156 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
3157 else
3158 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
3159 fi
3160
3161else
3162
3163 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
3164 if test "x$LINE" != x ; then
3165 eval "DEFAULT_$LINE"
3166 else
3167 no_cache=1
3168 fi
3169
3170 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
3171
3172fi
3173
3174
3175 eval "$ac_cv_use_cmdline"
3176 if test "$no_cache" != 1; then
3177 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
3178 fi
3179
3180 if test "$wxUSE_CMDLINE_PARSER" = yes; then
3181 echo "$ac_t""yes" 1>&6
3182 else
3183 echo "$ac_t""no" 1>&6
3184 fi
3185
3186
3187 echo $ac_n "checking for --enable-datetime""... $ac_c" 1>&6
f9bc1684 3188echo "configure:3189: checking for --enable-datetime" >&5
1e6feb95
VZ
3189 no_cache=0
3190 # Check whether --enable-datetime or --disable-datetime was given.
3191if test "${enable_datetime+set}" = set; then
3192 enableval="$enable_datetime"
3193
3194 if test "$enableval" = yes; then
3195 ac_cv_use_datetime='wxUSE_DATETIME=yes'
3196 else
3197 ac_cv_use_datetime='wxUSE_DATETIME=no'
3198 fi
3199
3200else
3201
3202 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
3203 if test "x$LINE" != x ; then
3204 eval "DEFAULT_$LINE"
3205 else
3206 no_cache=1
3207 fi
3208
3209 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
3210
3211fi
3212
3213
3214 eval "$ac_cv_use_datetime"
3215 if test "$no_cache" != 1; then
3216 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
3217 fi
3218
3219 if test "$wxUSE_DATETIME" = yes; then
3220 echo "$ac_t""yes" 1>&6
3221 else
3222 echo "$ac_t""no" 1>&6
3223 fi
3224
3225
3226 echo $ac_n "checking for --enable-timedate""... $ac_c" 1>&6
f9bc1684 3227echo "configure:3228: checking for --enable-timedate" >&5
1e6feb95
VZ
3228 no_cache=0
3229 # Check whether --enable-timedate or --disable-timedate was given.
3230if test "${enable_timedate+set}" = set; then
3231 enableval="$enable_timedate"
3232
3233 if test "$enableval" = yes; then
3234 ac_cv_use_timedate='wxUSE_TIMEDATE=yes'
3235 else
3236 ac_cv_use_timedate='wxUSE_TIMEDATE=no'
3237 fi
3238
3239else
3240
3241 LINE=`grep "wxUSE_TIMEDATE" ${wx_arg_cache_file}`
3242 if test "x$LINE" != x ; then
3243 eval "DEFAULT_$LINE"
3244 else
3245 no_cache=1
3246 fi
3247
3248 ac_cv_use_timedate='wxUSE_TIMEDATE='$DEFAULT_wxUSE_TIMEDATE
3249
3250fi
3251
3252
3253 eval "$ac_cv_use_timedate"
3254 if test "$no_cache" != 1; then
3255 echo $ac_cv_use_timedate >> ${wx_arg_cache_file}.tmp
3256 fi
3257
3258 if test "$wxUSE_TIMEDATE" = yes; then
3259 echo "$ac_t""yes" 1>&6
3260 else
3261 echo "$ac_t""no" 1>&6
3262 fi
3263
3264
3265 echo $ac_n "checking for --enable-stopwatch""... $ac_c" 1>&6
f9bc1684 3266echo "configure:3267: checking for --enable-stopwatch" >&5
1e6feb95
VZ
3267 no_cache=0
3268 # Check whether --enable-stopwatch or --disable-stopwatch was given.
3269if test "${enable_stopwatch+set}" = set; then
3270 enableval="$enable_stopwatch"
3271
3272 if test "$enableval" = yes; then
3273 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
3274 else
3275 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
3276 fi
3277
3278else
3279
3280 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
3281 if test "x$LINE" != x ; then
3282 eval "DEFAULT_$LINE"
3283 else
3284 no_cache=1
3285 fi
3286
3287 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
3288
3289fi
3290
3291
3292 eval "$ac_cv_use_stopwatch"
3293 if test "$no_cache" != 1; then
3294 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
3295 fi
3296
3297 if test "$wxUSE_STOPWATCH" = yes; then
3298 echo "$ac_t""yes" 1>&6
3299 else
3300 echo "$ac_t""no" 1>&6
3301 fi
3302
3303
698dcdb6 3304 echo $ac_n "checking for --enable-dialupman""... $ac_c" 1>&6
f9bc1684 3305echo "configure:3306: checking for --enable-dialupman" >&5
10f2d63a 3306 no_cache=0
eb4efbdc
VZ
3307 # Check whether --enable-dialupman or --disable-dialupman was given.
3308if test "${enable_dialupman+set}" = set; then
3309 enableval="$enable_dialupman"
698dcdb6 3310
10f2d63a 3311 if test "$enableval" = yes; then
eb4efbdc 3312 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
10f2d63a 3313 else
eb4efbdc 3314 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
10f2d63a 3315 fi
698dcdb6 3316
10f2d63a 3317else
698dcdb6 3318
eb4efbdc 3319 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
10f2d63a
VZ
3320 if test "x$LINE" != x ; then
3321 eval "DEFAULT_$LINE"
3322 else
3323 no_cache=1
3324 fi
3325
eb4efbdc 3326 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
698dcdb6
VZ
3327
3328fi
10f2d63a
VZ
3329
3330
eb4efbdc 3331 eval "$ac_cv_use_dialupman"
10f2d63a 3332 if test "$no_cache" != 1; then
eb4efbdc 3333 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
3334 fi
3335
eb4efbdc 3336 if test "$wxUSE_DIALUP_MANAGER" = yes; then
698dcdb6 3337 echo "$ac_t""yes" 1>&6
10f2d63a 3338 else
698dcdb6 3339 echo "$ac_t""no" 1>&6
10f2d63a 3340 fi
698dcdb6 3341
10f2d63a 3342
698dcdb6 3343 echo $ac_n "checking for --enable-apple_ieee""... $ac_c" 1>&6
f9bc1684 3344echo "configure:3345: checking for --enable-apple_ieee" >&5
10f2d63a
VZ
3345 no_cache=0
3346 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
3347if test "${enable_apple_ieee+set}" = set; then
3348 enableval="$enable_apple_ieee"
698dcdb6 3349
10f2d63a
VZ
3350 if test "$enableval" = yes; then
3351 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
3352 else
3353 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
3354 fi
698dcdb6 3355
10f2d63a 3356else
698dcdb6 3357
10f2d63a
VZ
3358 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
3359 if test "x$LINE" != x ; then
3360 eval "DEFAULT_$LINE"
3361 else
3362 no_cache=1
3363 fi
3364
3365 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
698dcdb6
VZ
3366
3367fi
10f2d63a
VZ
3368
3369
3370 eval "$ac_cv_use_apple_ieee"
3371 if test "$no_cache" != 1; then
3372 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
3373 fi
3374
3375 if test "$wxUSE_APPLE_IEEE" = yes; then
698dcdb6 3376 echo "$ac_t""yes" 1>&6
10f2d63a 3377 else
698dcdb6 3378 echo "$ac_t""no" 1>&6
10f2d63a 3379 fi
698dcdb6 3380
10f2d63a 3381
1e6feb95 3382 echo $ac_n "checking for --enable-timer""... $ac_c" 1>&6
f9bc1684 3383echo "configure:3384: checking for --enable-timer" >&5
10f2d63a 3384 no_cache=0
1e6feb95
VZ
3385 # Check whether --enable-timer or --disable-timer was given.
3386if test "${enable_timer+set}" = set; then
3387 enableval="$enable_timer"
698dcdb6 3388
10f2d63a 3389 if test "$enableval" = yes; then
1e6feb95 3390 ac_cv_use_timer='wxUSE_TIMER=yes'
10f2d63a 3391 else
1e6feb95 3392 ac_cv_use_timer='wxUSE_TIMER=no'
10f2d63a 3393 fi
698dcdb6 3394
10f2d63a 3395else
698dcdb6 3396
1e6feb95 3397 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
10f2d63a
VZ
3398 if test "x$LINE" != x ; then
3399 eval "DEFAULT_$LINE"
3400 else
3401 no_cache=1
3402 fi
3403
1e6feb95 3404 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
698dcdb6
VZ
3405
3406fi
10f2d63a
VZ
3407
3408
1e6feb95 3409 eval "$ac_cv_use_timer"
10f2d63a 3410 if test "$no_cache" != 1; then
1e6feb95 3411 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
3412 fi
3413
1e6feb95 3414 if test "$wxUSE_TIMER" = yes; then
698dcdb6 3415 echo "$ac_t""yes" 1>&6
10f2d63a 3416 else
698dcdb6 3417 echo "$ac_t""no" 1>&6
10f2d63a 3418 fi
698dcdb6 3419
10f2d63a 3420
698dcdb6 3421 echo $ac_n "checking for --enable-wave""... $ac_c" 1>&6
f9bc1684 3422echo "configure:3423: checking for --enable-wave" >&5
10f2d63a
VZ
3423 no_cache=0
3424 # Check whether --enable-wave or --disable-wave was given.
3425if test "${enable_wave+set}" = set; then
3426 enableval="$enable_wave"
698dcdb6 3427
10f2d63a
VZ
3428 if test "$enableval" = yes; then
3429 ac_cv_use_wave='wxUSE_WAVE=yes'
3430 else
3431 ac_cv_use_wave='wxUSE_WAVE=no'
3432 fi
698dcdb6 3433
10f2d63a 3434else
698dcdb6 3435
10f2d63a
VZ
3436 LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}`
3437 if test "x$LINE" != x ; then
3438 eval "DEFAULT_$LINE"
3439 else
3440 no_cache=1
3441 fi
3442
3443 ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE
698dcdb6
VZ
3444
3445fi
10f2d63a
VZ
3446
3447
3448 eval "$ac_cv_use_wave"
3449 if test "$no_cache" != 1; then
3450 echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp
3451 fi
3452
3453 if test "$wxUSE_WAVE" = yes; then
698dcdb6 3454 echo "$ac_t""yes" 1>&6
10f2d63a 3455 else
698dcdb6 3456 echo "$ac_t""no" 1>&6
10f2d63a 3457 fi
698dcdb6 3458
10f2d63a 3459
698dcdb6 3460 echo $ac_n "checking for --enable-fraction""... $ac_c" 1>&6
f9bc1684 3461echo "configure:3462: checking for --enable-fraction" >&5
10f2d63a
VZ
3462 no_cache=0
3463 # Check whether --enable-fraction or --disable-fraction was given.
3464if test "${enable_fraction+set}" = set; then
3465 enableval="$enable_fraction"
698dcdb6 3466
10f2d63a
VZ
3467 if test "$enableval" = yes; then
3468 ac_cv_use_fraction='wxUSE_FRACTION=yes'
3469 else
3470 ac_cv_use_fraction='wxUSE_FRACTION=no'
3471 fi
698dcdb6 3472
10f2d63a 3473else
698dcdb6 3474
10f2d63a
VZ
3475 LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}`
3476 if test "x$LINE" != x ; then
3477 eval "DEFAULT_$LINE"
3478 else
3479 no_cache=1
3480 fi
3481
3482 ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION
698dcdb6
VZ
3483
3484fi
10f2d63a
VZ
3485
3486
3487 eval "$ac_cv_use_fraction"
3488 if test "$no_cache" != 1; then
3489 echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp
3490 fi
3491
3492 if test "$wxUSE_FRACTION" = yes; then
698dcdb6 3493 echo "$ac_t""yes" 1>&6
10f2d63a 3494 else
698dcdb6 3495 echo "$ac_t""no" 1>&6
10f2d63a 3496 fi
698dcdb6 3497
10f2d63a 3498
698dcdb6 3499 echo $ac_n "checking for --enable-dynlib""... $ac_c" 1>&6
f9bc1684 3500echo "configure:3501: checking for --enable-dynlib" >&5
10f2d63a
VZ
3501 no_cache=0
3502 # Check whether --enable-dynlib or --disable-dynlib was given.
3503if test "${enable_dynlib+set}" = set; then
3504 enableval="$enable_dynlib"
698dcdb6 3505
10f2d63a
VZ
3506 if test "$enableval" = yes; then
3507 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
3508 else
3509 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
3510 fi
698dcdb6 3511
10f2d63a 3512else
698dcdb6 3513
10f2d63a
VZ
3514 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
3515 if test "x$LINE" != x ; then
3516 eval "DEFAULT_$LINE"
3517 else
3518 no_cache=1
3519 fi
3520
3521 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
698dcdb6
VZ
3522
3523fi
10f2d63a
VZ
3524
3525
3526 eval "$ac_cv_use_dynlib"
3527 if test "$no_cache" != 1; then
3528 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
3529 fi
3530
3531 if test "$wxUSE_DYNLIB_CLASS" = yes; then
698dcdb6 3532 echo "$ac_t""yes" 1>&6
10f2d63a 3533 else
698dcdb6 3534 echo "$ac_t""no" 1>&6
10f2d63a 3535 fi
698dcdb6 3536
10f2d63a 3537
0b9ab0bd
RL
3538 echo $ac_n "checking for --enable-dynamicloader""... $ac_c" 1>&6
3539echo "configure:3540: checking for --enable-dynamicloader" >&5
3540 no_cache=0
3541 # Check whether --enable-dynamicloader or --disable-dynamicloader was given.
3542if test "${enable_dynamicloader+set}" = set; then
3543 enableval="$enable_dynamicloader"
3544
3545 if test "$enableval" = yes; then
3546 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
3547 else
3548 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
3549 fi
3550
3551else
3552
3553 LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}`
3554 if test "x$LINE" != x ; then
3555 eval "DEFAULT_$LINE"
3556 else
3557 no_cache=1
3558 fi
3559
3560 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER
3561
3562fi
3563
3564
3565 eval "$ac_cv_use_dynamicloader"
3566 if test "$no_cache" != 1; then
3567 echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
3568 fi
3569
3570 if test "$wxUSE_DYNAMIC_LOADER" = yes; then
3571 echo "$ac_t""yes" 1>&6
3572 else
3573 echo "$ac_t""no" 1>&6
3574 fi
3575
3576
698dcdb6 3577 echo $ac_n "checking for --enable-longlong""... $ac_c" 1>&6
0b9ab0bd 3578echo "configure:3579: checking for --enable-longlong" >&5
10f2d63a
VZ
3579 no_cache=0
3580 # Check whether --enable-longlong or --disable-longlong was given.
3581if test "${enable_longlong+set}" = set; then
3582 enableval="$enable_longlong"
698dcdb6 3583
10f2d63a
VZ
3584 if test "$enableval" = yes; then
3585 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
3586 else
3587 ac_cv_use_longlong='wxUSE_LONGLONG=no'
3588 fi
698dcdb6 3589
10f2d63a 3590else
698dcdb6 3591
10f2d63a
VZ
3592 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
3593 if test "x$LINE" != x ; then
3594 eval "DEFAULT_$LINE"
3595 else
3596 no_cache=1
3597 fi
3598
3599 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
698dcdb6
VZ
3600
3601fi
10f2d63a
VZ
3602
3603
3604 eval "$ac_cv_use_longlong"
3605 if test "$no_cache" != 1; then
3606 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
3607 fi
3608
3609 if test "$wxUSE_LONGLONG" = yes; then
698dcdb6 3610 echo "$ac_t""yes" 1>&6
10f2d63a 3611 else
698dcdb6 3612 echo "$ac_t""no" 1>&6
10f2d63a 3613 fi
698dcdb6 3614
10f2d63a 3615
698dcdb6 3616 echo $ac_n "checking for --enable-geometry""... $ac_c" 1>&6
0b9ab0bd 3617echo "configure:3618: checking for --enable-geometry" >&5
e8f65ba6
RR
3618 no_cache=0
3619 # Check whether --enable-geometry or --disable-geometry was given.
3620if test "${enable_geometry+set}" = set; then
3621 enableval="$enable_geometry"
698dcdb6 3622
e8f65ba6
RR
3623 if test "$enableval" = yes; then
3624 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
3625 else
3626 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
3627 fi
698dcdb6 3628
e8f65ba6 3629else
698dcdb6 3630
e8f65ba6
RR
3631 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
3632 if test "x$LINE" != x ; then
3633 eval "DEFAULT_$LINE"
3634 else
3635 no_cache=1
3636 fi
3637
3638 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
698dcdb6
VZ
3639
3640fi
e8f65ba6
RR
3641
3642
3643 eval "$ac_cv_use_geometry"
3644 if test "$no_cache" != 1; then
3645 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
3646 fi
3647
3648 if test "$wxUSE_GEOMETRY" = yes; then
698dcdb6 3649 echo "$ac_t""yes" 1>&6
e8f65ba6 3650 else
698dcdb6 3651 echo "$ac_t""no" 1>&6
e8f65ba6 3652 fi
698dcdb6 3653
e8f65ba6 3654
698dcdb6 3655 echo $ac_n "checking for --enable-log""... $ac_c" 1>&6
0b9ab0bd 3656echo "configure:3657: checking for --enable-log" >&5
10f2d63a
VZ
3657 no_cache=0
3658 # Check whether --enable-log or --disable-log was given.
3659if test "${enable_log+set}" = set; then
3660 enableval="$enable_log"
698dcdb6 3661
10f2d63a
VZ
3662 if test "$enableval" = yes; then
3663 ac_cv_use_log='wxUSE_LOG=yes'
3664 else
3665 ac_cv_use_log='wxUSE_LOG=no'
3666 fi
698dcdb6 3667
10f2d63a 3668else
698dcdb6 3669
10f2d63a
VZ
3670 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
3671 if test "x$LINE" != x ; then
3672 eval "DEFAULT_$LINE"
3673 else
3674 no_cache=1
3675 fi
3676
3677 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
698dcdb6
VZ
3678
3679fi
10f2d63a
VZ
3680
3681
3682 eval "$ac_cv_use_log"
3683 if test "$no_cache" != 1; then
3684 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
3685 fi
3686
3687 if test "$wxUSE_LOG" = yes; then
698dcdb6 3688 echo "$ac_t""yes" 1>&6
10f2d63a 3689 else
698dcdb6 3690 echo "$ac_t""no" 1>&6
10f2d63a 3691 fi
698dcdb6 3692
10f2d63a 3693
698dcdb6 3694 echo $ac_n "checking for --enable-streams""... $ac_c" 1>&6
0b9ab0bd 3695echo "configure:3696: checking for --enable-streams" >&5
10f2d63a
VZ
3696 no_cache=0
3697 # Check whether --enable-streams or --disable-streams was given.
3698if test "${enable_streams+set}" = set; then
3699 enableval="$enable_streams"
698dcdb6 3700
10f2d63a
VZ
3701 if test "$enableval" = yes; then
3702 ac_cv_use_streams='wxUSE_STREAMS=yes'
3703 else
3704 ac_cv_use_streams='wxUSE_STREAMS=no'
3705 fi
698dcdb6 3706
10f2d63a 3707else
698dcdb6 3708
10f2d63a
VZ
3709 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
3710 if test "x$LINE" != x ; then
3711 eval "DEFAULT_$LINE"
3712 else
3713 no_cache=1
3714 fi
3715
3716 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
698dcdb6
VZ
3717
3718fi
10f2d63a
VZ
3719
3720
3721 eval "$ac_cv_use_streams"
3722 if test "$no_cache" != 1; then
3723 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
3724 fi
3725
3726 if test "$wxUSE_STREAMS" = yes; then
698dcdb6 3727 echo "$ac_t""yes" 1>&6
10f2d63a 3728 else
698dcdb6 3729 echo "$ac_t""no" 1>&6
10f2d63a 3730 fi
698dcdb6 3731
10f2d63a 3732
698dcdb6 3733 echo $ac_n "checking for --enable-file""... $ac_c" 1>&6
0b9ab0bd 3734echo "configure:3735: checking for --enable-file" >&5
10f2d63a
VZ
3735 no_cache=0
3736 # Check whether --enable-file or --disable-file was given.
3737if test "${enable_file+set}" = set; then
3738 enableval="$enable_file"
698dcdb6 3739
10f2d63a
VZ
3740 if test "$enableval" = yes; then
3741 ac_cv_use_file='wxUSE_FILE=yes'
3742 else
3743 ac_cv_use_file='wxUSE_FILE=no'
3744 fi
698dcdb6 3745
10f2d63a 3746else
698dcdb6 3747
10f2d63a
VZ
3748 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
3749 if test "x$LINE" != x ; then
3750 eval "DEFAULT_$LINE"
3751 else
3752 no_cache=1
3753 fi
3754
3755 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
698dcdb6
VZ
3756
3757fi
10f2d63a
VZ
3758
3759
3760 eval "$ac_cv_use_file"
3761 if test "$no_cache" != 1; then
3762 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
3763 fi
3764
3765 if test "$wxUSE_FILE" = yes; then
698dcdb6 3766 echo "$ac_t""yes" 1>&6
10f2d63a 3767 else
698dcdb6 3768 echo "$ac_t""no" 1>&6
10f2d63a 3769 fi
698dcdb6 3770
10f2d63a 3771
1e6feb95 3772 echo $ac_n "checking for --enable-ffile""... $ac_c" 1>&6
0b9ab0bd 3773echo "configure:3774: checking for --enable-ffile" >&5
10f2d63a 3774 no_cache=0
1e6feb95
VZ
3775 # Check whether --enable-ffile or --disable-ffile was given.
3776if test "${enable_ffile+set}" = set; then
3777 enableval="$enable_ffile"
698dcdb6 3778
10f2d63a 3779 if test "$enableval" = yes; then
1e6feb95 3780 ac_cv_use_ffile='wxUSE_FFILE=yes'
10f2d63a 3781 else
1e6feb95 3782 ac_cv_use_ffile='wxUSE_FFILE=no'
10f2d63a 3783 fi
698dcdb6 3784
10f2d63a 3785else
698dcdb6 3786
1e6feb95 3787 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
10f2d63a
VZ
3788 if test "x$LINE" != x ; then
3789 eval "DEFAULT_$LINE"
3790 else
3791 no_cache=1
3792 fi
3793
1e6feb95 3794 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
698dcdb6
VZ
3795
3796fi
10f2d63a
VZ
3797
3798
1e6feb95 3799 eval "$ac_cv_use_ffile"
10f2d63a 3800 if test "$no_cache" != 1; then
1e6feb95 3801 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
3802 fi
3803
1e6feb95 3804 if test "$wxUSE_FFILE" = yes; then
698dcdb6 3805 echo "$ac_t""yes" 1>&6
10f2d63a 3806 else
698dcdb6 3807 echo "$ac_t""no" 1>&6
10f2d63a 3808 fi
698dcdb6 3809
10f2d63a 3810
a3a584a7 3811 echo $ac_n "checking for --enable-textbuf""... $ac_c" 1>&6
0b9ab0bd 3812echo "configure:3813: checking for --enable-textbuf" >&5
a3a584a7
VZ
3813 no_cache=0
3814 # Check whether --enable-textbuf or --disable-textbuf was given.
3815if test "${enable_textbuf+set}" = set; then
3816 enableval="$enable_textbuf"
3817
3818 if test "$enableval" = yes; then
3819 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
3820 else
3821 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
3822 fi
3823
3824else
3825
3826 LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}`
3827 if test "x$LINE" != x ; then
3828 eval "DEFAULT_$LINE"
3829 else
3830 no_cache=1
3831 fi
3832
3833 ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
3834
3835fi
3836
3837
3838 eval "$ac_cv_use_textbuf"
3839 if test "$no_cache" != 1; then
3840 echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
3841 fi
3842
3843 if test "$wxUSE_TEXTBUFFER" = yes; then
3844 echo "$ac_t""yes" 1>&6
3845 else
3846 echo "$ac_t""no" 1>&6
3847 fi
3848
3849
1e6feb95 3850 echo $ac_n "checking for --enable-textfile""... $ac_c" 1>&6
0b9ab0bd 3851echo "configure:3852: checking for --enable-textfile" >&5
10f2d63a 3852 no_cache=0
1e6feb95
VZ
3853 # Check whether --enable-textfile or --disable-textfile was given.
3854if test "${enable_textfile+set}" = set; then
3855 enableval="$enable_textfile"
698dcdb6 3856
10f2d63a 3857 if test "$enableval" = yes; then
1e6feb95 3858 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
10f2d63a 3859 else
1e6feb95 3860 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
10f2d63a 3861 fi
698dcdb6 3862
10f2d63a 3863else
698dcdb6 3864
1e6feb95 3865 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
10f2d63a
VZ
3866 if test "x$LINE" != x ; then
3867 eval "DEFAULT_$LINE"
3868 else
3869 no_cache=1
3870 fi
3871
1e6feb95 3872 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
698dcdb6
VZ
3873
3874fi
10f2d63a
VZ
3875
3876
1e6feb95 3877 eval "$ac_cv_use_textfile"
10f2d63a 3878 if test "$no_cache" != 1; then
1e6feb95 3879 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
3880 fi
3881
1e6feb95 3882 if test "$wxUSE_TEXTFILE" = yes; then
698dcdb6 3883 echo "$ac_t""yes" 1>&6
10f2d63a 3884 else
698dcdb6 3885 echo "$ac_t""no" 1>&6
10f2d63a 3886 fi
698dcdb6 3887
10f2d63a 3888
1e6feb95 3889 echo $ac_n "checking for --enable-fontmap""... $ac_c" 1>&6
0b9ab0bd 3890echo "configure:3891: checking for --enable-fontmap" >&5
10f2d63a 3891 no_cache=0
1e6feb95
VZ
3892 # Check whether --enable-fontmap or --disable-fontmap was given.
3893if test "${enable_fontmap+set}" = set; then
3894 enableval="$enable_fontmap"
698dcdb6 3895
10f2d63a 3896 if test "$enableval" = yes; then
1e6feb95 3897 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
10f2d63a 3898 else
1e6feb95 3899 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
10f2d63a 3900 fi
698dcdb6 3901
10f2d63a 3902else
698dcdb6 3903
1e6feb95 3904 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
10f2d63a
VZ
3905 if test "x$LINE" != x ; then
3906 eval "DEFAULT_$LINE"
3907 else
3908 no_cache=1
3909 fi
3910
1e6feb95 3911 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
698dcdb6
VZ
3912
3913fi
10f2d63a
VZ
3914
3915
1e6feb95 3916 eval "$ac_cv_use_fontmap"
10f2d63a 3917 if test "$no_cache" != 1; then
1e6feb95 3918 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
3919 fi
3920
1e6feb95 3921 if test "$wxUSE_FONTMAP" = yes; then
698dcdb6 3922 echo "$ac_t""yes" 1>&6
10f2d63a 3923 else
698dcdb6 3924 echo "$ac_t""no" 1>&6
10f2d63a 3925 fi
698dcdb6 3926
10f2d63a 3927
1e6feb95 3928 echo $ac_n "checking for --enable-unicode""... $ac_c" 1>&6
0b9ab0bd 3929echo "configure:3930: checking for --enable-unicode" >&5
10f2d63a 3930 no_cache=0
1e6feb95
VZ
3931 # Check whether --enable-unicode or --disable-unicode was given.
3932if test "${enable_unicode+set}" = set; then
3933 enableval="$enable_unicode"
3934
3935 if test "$enableval" = yes; then
3936 ac_cv_use_unicode='wxUSE_UNICODE=yes'
3937 else
3938 ac_cv_use_unicode='wxUSE_UNICODE=no'
3939 fi
3940
3941else
3942
3943 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
3944 if test "x$LINE" != x ; then
3945 eval "DEFAULT_$LINE"
3946 else
3947 no_cache=1
3948 fi
3949
3950 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
3951
3952fi
3953
3954
3955 eval "$ac_cv_use_unicode"
3956 if test "$no_cache" != 1; then
3957 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
3958 fi
3959
3960 if test "$wxUSE_UNICODE" = yes; then
3961 echo "$ac_t""yes" 1>&6
3962 else
3963 echo "$ac_t""no" 1>&6
3964 fi
3965
3966
1e6feb95 3967 echo $ac_n "checking for --enable-wxprintfv""... $ac_c" 1>&6
0b9ab0bd 3968echo "configure:3969: checking for --enable-wxprintfv" >&5
1e6feb95
VZ
3969 no_cache=0
3970 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
3971if test "${enable_wxprintfv+set}" = set; then
3972 enableval="$enable_wxprintfv"
3973
3974 if test "$enableval" = yes; then
10f2d63a
VZ
3975 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
3976 else
3977 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
3978 fi
698dcdb6 3979
10f2d63a 3980else
698dcdb6 3981
10f2d63a
VZ
3982 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
3983 if test "x$LINE" != x ; then
3984 eval "DEFAULT_$LINE"
3985 else
3986 no_cache=1
3987 fi
3988
3989 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
698dcdb6
VZ
3990
3991fi
10f2d63a
VZ
3992
3993
3994 eval "$ac_cv_use_wxprintfv"
3995 if test "$no_cache" != 1; then
3996 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
3997 fi
3998
3999 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
698dcdb6 4000 echo "$ac_t""yes" 1>&6
10f2d63a 4001 else
698dcdb6 4002 echo "$ac_t""no" 1>&6
10f2d63a 4003 fi
698dcdb6 4004
10f2d63a 4005
698dcdb6 4006 echo $ac_n "checking for --enable-std_iostreams""... $ac_c" 1>&6
0b9ab0bd 4007echo "configure:4008: checking for --enable-std_iostreams" >&5
10f2d63a
VZ
4008 no_cache=0
4009 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
4010if test "${enable_std_iostreams+set}" = set; then
4011 enableval="$enable_std_iostreams"
698dcdb6 4012
10f2d63a
VZ
4013 if test "$enableval" = yes; then
4014 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
4015 else
4016 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
4017 fi
698dcdb6 4018
10f2d63a 4019else
698dcdb6 4020
10f2d63a
VZ
4021 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
4022 if test "x$LINE" != x ; then
4023 eval "DEFAULT_$LINE"
4024 else
4025 no_cache=1
4026 fi
4027
4028 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
698dcdb6
VZ
4029
4030fi
10f2d63a
VZ
4031
4032
4033 eval "$ac_cv_use_std_iostreams"
4034 if test "$no_cache" != 1; then
4035 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
4036 fi
4037
4038 if test "$wxUSE_STD_IOSTREAM" = yes; then
698dcdb6 4039 echo "$ac_t""yes" 1>&6
10f2d63a 4040 else
698dcdb6 4041 echo "$ac_t""no" 1>&6
10f2d63a 4042 fi
698dcdb6 4043
10f2d63a 4044
698dcdb6 4045 echo $ac_n "checking for --enable-filesystem""... $ac_c" 1>&6
0b9ab0bd 4046echo "configure:4047: checking for --enable-filesystem" >&5
24528b0c
VS
4047 no_cache=0
4048 # Check whether --enable-filesystem or --disable-filesystem was given.
4049if test "${enable_filesystem+set}" = set; then
4050 enableval="$enable_filesystem"
698dcdb6 4051
24528b0c
VS
4052 if test "$enableval" = yes; then
4053 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
4054 else
4055 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
4056 fi
698dcdb6 4057
24528b0c 4058else
698dcdb6 4059
24528b0c
VS
4060 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
4061 if test "x$LINE" != x ; then
4062 eval "DEFAULT_$LINE"
4063 else
4064 no_cache=1
4065 fi
4066
4067 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
698dcdb6
VZ
4068
4069fi
24528b0c
VS
4070
4071
4072 eval "$ac_cv_use_filesystem"
4073 if test "$no_cache" != 1; then
4074 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
4075 fi
4076
4077 if test "$wxUSE_FILESYSTEM" = yes; then
698dcdb6 4078 echo "$ac_t""yes" 1>&6
24528b0c 4079 else
698dcdb6 4080 echo "$ac_t""no" 1>&6
24528b0c 4081 fi
698dcdb6 4082
24528b0c 4083
698dcdb6 4084 echo $ac_n "checking for --enable-fs_inet""... $ac_c" 1>&6
0b9ab0bd 4085echo "configure:4086: checking for --enable-fs_inet" >&5
10f2d63a
VZ
4086 no_cache=0
4087 # Check whether --enable-fs_inet or --disable-fs_inet was given.
4088if test "${enable_fs_inet+set}" = set; then
4089 enableval="$enable_fs_inet"
698dcdb6 4090
10f2d63a
VZ
4091 if test "$enableval" = yes; then
4092 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
4093 else
4094 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
4095 fi
698dcdb6 4096
10f2d63a 4097else
698dcdb6 4098
10f2d63a
VZ
4099 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
4100 if test "x$LINE" != x ; then
4101 eval "DEFAULT_$LINE"
4102 else
4103 no_cache=1
4104 fi
4105
4106 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
698dcdb6
VZ
4107
4108fi
10f2d63a
VZ
4109
4110
4111 eval "$ac_cv_use_fs_inet"
4112 if test "$no_cache" != 1; then
4113 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
4114 fi
4115
4116 if test "$wxUSE_FS_INET" = yes; then
698dcdb6 4117 echo "$ac_t""yes" 1>&6
10f2d63a 4118 else
698dcdb6 4119 echo "$ac_t""no" 1>&6
10f2d63a 4120 fi
698dcdb6 4121
10f2d63a 4122
698dcdb6 4123 echo $ac_n "checking for --enable-fs_zip""... $ac_c" 1>&6
0b9ab0bd 4124echo "configure:4125: checking for --enable-fs_zip" >&5
10f2d63a
VZ
4125 no_cache=0
4126 # Check whether --enable-fs_zip or --disable-fs_zip was given.
4127if test "${enable_fs_zip+set}" = set; then
4128 enableval="$enable_fs_zip"
698dcdb6 4129
10f2d63a
VZ
4130 if test "$enableval" = yes; then
4131 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
4132 else
4133 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
4134 fi
698dcdb6 4135
10f2d63a 4136else
698dcdb6 4137
10f2d63a
VZ
4138 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
4139 if test "x$LINE" != x ; then
4140 eval "DEFAULT_$LINE"
4141 else
4142 no_cache=1
4143 fi
4144
4145 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
698dcdb6
VZ
4146
4147fi
10f2d63a
VZ
4148
4149
4150 eval "$ac_cv_use_fs_zip"
4151 if test "$no_cache" != 1; then
4152 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
4153 fi
4154
4155 if test "$wxUSE_FS_ZIP" = yes; then
698dcdb6 4156 echo "$ac_t""yes" 1>&6
10f2d63a 4157 else
698dcdb6 4158 echo "$ac_t""no" 1>&6
10f2d63a 4159 fi
698dcdb6 4160
10f2d63a 4161
698dcdb6 4162 echo $ac_n "checking for --enable-zipstream""... $ac_c" 1>&6
0b9ab0bd 4163echo "configure:4164: checking for --enable-zipstream" >&5
10f2d63a
VZ
4164 no_cache=0
4165 # Check whether --enable-zipstream or --disable-zipstream was given.
4166if test "${enable_zipstream+set}" = set; then
4167 enableval="$enable_zipstream"
698dcdb6 4168
10f2d63a
VZ
4169 if test "$enableval" = yes; then
4170 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
4171 else
4172 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
4173 fi
698dcdb6 4174
10f2d63a 4175else
698dcdb6 4176
10f2d63a
VZ
4177 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
4178 if test "x$LINE" != x ; then
4179 eval "DEFAULT_$LINE"
4180 else
4181 no_cache=1
4182 fi
4183
4184 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
698dcdb6
VZ
4185
4186fi
10f2d63a
VZ
4187
4188
4189 eval "$ac_cv_use_zipstream"
4190 if test "$no_cache" != 1; then
4191 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
4192 fi
4193
4194 if test "$wxUSE_ZIPSTREAM" = yes; then
698dcdb6 4195 echo "$ac_t""yes" 1>&6
10f2d63a 4196 else
698dcdb6 4197 echo "$ac_t""no" 1>&6
10f2d63a 4198 fi
698dcdb6 4199
10f2d63a 4200
698dcdb6
VZ
4201
4202 echo $ac_n "checking for --enable-catch_segvs""... $ac_c" 1>&6
0b9ab0bd 4203echo "configure:4204: checking for --enable-catch_segvs" >&5
eb4efbdc
VZ
4204 no_cache=0
4205 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
4206if test "${enable_catch_segvs+set}" = set; then
4207 enableval="$enable_catch_segvs"
698dcdb6 4208
eb4efbdc
VZ
4209 if test "$enableval" = yes; then
4210 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
4211 else
4212 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
4213 fi
698dcdb6 4214
eb4efbdc 4215else
698dcdb6 4216
eb4efbdc
VZ
4217 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
4218 if test "x$LINE" != x ; then
4219 eval "DEFAULT_$LINE"
4220 else
4221 no_cache=1
4222 fi
4223
4224 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
698dcdb6
VZ
4225
4226fi
eb4efbdc
VZ
4227
4228
4229 eval "$ac_cv_use_catch_segvs"
4230 if test "$no_cache" != 1; then
4231 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
4232 fi
4233
4234 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
698dcdb6 4235 echo "$ac_t""yes" 1>&6
eb4efbdc 4236 else
698dcdb6 4237 echo "$ac_t""no" 1>&6
eb4efbdc 4238 fi
698dcdb6 4239
eb4efbdc 4240
698dcdb6 4241 echo $ac_n "checking for --enable-snglinst""... $ac_c" 1>&6
0b9ab0bd 4242echo "configure:4243: checking for --enable-snglinst" >&5
4f3c5f06
VZ
4243 no_cache=0
4244 # Check whether --enable-snglinst or --disable-snglinst was given.
4245if test "${enable_snglinst+set}" = set; then
4246 enableval="$enable_snglinst"
698dcdb6 4247
4f3c5f06
VZ
4248 if test "$enableval" = yes; then
4249 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
4250 else
4251 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
4252 fi
698dcdb6 4253
4f3c5f06 4254else
698dcdb6 4255
4f3c5f06
VZ
4256 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
4257 if test "x$LINE" != x ; then
4258 eval "DEFAULT_$LINE"
4259 else
4260 no_cache=1
4261 fi
4262
4263 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
698dcdb6
VZ
4264
4265fi
4f3c5f06
VZ
4266
4267
4268 eval "$ac_cv_use_snglinst"
4269 if test "$no_cache" != 1; then
4270 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
4271 fi
4272
4273 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
698dcdb6 4274 echo "$ac_t""yes" 1>&6
4f3c5f06 4275 else
698dcdb6 4276 echo "$ac_t""no" 1>&6
4f3c5f06 4277 fi
698dcdb6
VZ
4278
4279
eb4efbdc 4280
1e6feb95 4281 echo $ac_n "checking for --enable-mimetype""... $ac_c" 1>&6
0b9ab0bd 4282echo "configure:4283: checking for --enable-mimetype" >&5
1e6feb95
VZ
4283 no_cache=0
4284 # Check whether --enable-mimetype or --disable-mimetype was given.
4285if test "${enable_mimetype+set}" = set; then
4286 enableval="$enable_mimetype"
4287
4288 if test "$enableval" = yes; then
4289 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
4290 else
4291 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
4292 fi
4293
4294else
4295
4296 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
4297 if test "x$LINE" != x ; then
4298 eval "DEFAULT_$LINE"
4299 else
4300 no_cache=1
4301 fi
4302
4303 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
4304
4305fi
4306
4307
4308 eval "$ac_cv_use_mimetype"
4309 if test "$no_cache" != 1; then
4310 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
4311 fi
4312
4313 if test "$wxUSE_MIMETYPE" = yes; then
4314 echo "$ac_t""yes" 1>&6
4315 else
4316 echo "$ac_t""no" 1>&6
4317 fi
4318
4319
3e44f09d 4320 echo $ac_n "checking for --enable-system_options""... $ac_c" 1>&6
0b9ab0bd 4321echo "configure:4322: checking for --enable-system_options" >&5
3e44f09d
VZ
4322 no_cache=0
4323 # Check whether --enable-system_options or --disable-system_options was given.
4324if test "${enable_system_options+set}" = set; then
4325 enableval="$enable_system_options"
4326
4327 if test "$enableval" = yes; then
4328 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
4329 else
4330 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
4331 fi
4332
4333else
4334
4335 LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
4336 if test "x$LINE" != x ; then
4337 eval "DEFAULT_$LINE"
4338 else
4339 no_cache=1
4340 fi
4341
4342 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
4343
4344fi
4345
4346
4347 eval "$ac_cv_use_system_options"
4348 if test "$no_cache" != 1; then
4349 echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
4350 fi
4351
4352 if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
4353 echo "$ac_t""yes" 1>&6
4354 else
4355 echo "$ac_t""no" 1>&6
4356 fi
4357
4358
1e6feb95 4359
698dcdb6
VZ
4360
4361 echo $ac_n "checking for --enable-threads""... $ac_c" 1>&6
0b9ab0bd 4362echo "configure:4363: checking for --enable-threads" >&5
10f2d63a
VZ
4363 no_cache=0
4364 # Check whether --enable-threads or --disable-threads was given.
4365if test "${enable_threads+set}" = set; then
4366 enableval="$enable_threads"
698dcdb6 4367
10f2d63a
VZ
4368 if test "$enableval" = yes; then
4369 ac_cv_use_threads='wxUSE_THREADS=yes'
4370 else
4371 ac_cv_use_threads='wxUSE_THREADS=no'
4372 fi
698dcdb6 4373
10f2d63a 4374else
698dcdb6 4375
10f2d63a
VZ
4376 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
4377 if test "x$LINE" != x ; then
4378 eval "DEFAULT_$LINE"
4379 else
4380 no_cache=1
4381 fi
4382
4383 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
698dcdb6
VZ
4384
4385fi
10f2d63a
VZ
4386
4387
4388 eval "$ac_cv_use_threads"
4389 if test "$no_cache" != 1; then
4390 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
4391 fi
4392
4393 if test "$wxUSE_THREADS" = yes; then
698dcdb6 4394 echo "$ac_t""yes" 1>&6
10f2d63a 4395 else
698dcdb6 4396 echo "$ac_t""no" 1>&6
10f2d63a 4397 fi
698dcdb6 4398
10f2d63a 4399
b12915c1
VZ
4400if test "$wxUSE_GUI" = "yes"; then
4401
698dcdb6
VZ
4402
4403
4404 echo $ac_n "checking for --enable-docview""... $ac_c" 1>&6
f9bc1684 4405echo "configure:4406: checking for --enable-docview" >&5
10f2d63a
VZ
4406 no_cache=0
4407 # Check whether --enable-docview or --disable-docview was given.
4408if test "${enable_docview+set}" = set; then
4409 enableval="$enable_docview"
698dcdb6 4410
10f2d63a
VZ
4411 if test "$enableval" = yes; then
4412 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
4413 else
4414 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
4415 fi
698dcdb6 4416
10f2d63a 4417else
698dcdb6 4418
10f2d63a
VZ
4419 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
4420 if test "x$LINE" != x ; then
4421 eval "DEFAULT_$LINE"
4422 else
4423 no_cache=1
4424 fi
4425
4426 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
698dcdb6
VZ
4427
4428fi
10f2d63a
VZ
4429
4430
4431 eval "$ac_cv_use_docview"
4432 if test "$no_cache" != 1; then
4433 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
4434 fi
4435
4436 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
698dcdb6 4437 echo "$ac_t""yes" 1>&6
10f2d63a 4438 else
698dcdb6 4439 echo "$ac_t""no" 1>&6
10f2d63a 4440 fi
698dcdb6 4441
10f2d63a 4442
698dcdb6 4443 echo $ac_n "checking for --enable-help""... $ac_c" 1>&6
f9bc1684 4444echo "configure:4445: checking for --enable-help" >&5
10f2d63a
VZ
4445 no_cache=0
4446 # Check whether --enable-help or --disable-help was given.
4447if test "${enable_help+set}" = set; then
4448 enableval="$enable_help"
698dcdb6 4449
10f2d63a
VZ
4450 if test "$enableval" = yes; then
4451 ac_cv_use_help='wxUSE_HELP=yes'
4452 else
4453 ac_cv_use_help='wxUSE_HELP=no'
4454 fi
698dcdb6 4455
10f2d63a 4456else
698dcdb6 4457
10f2d63a
VZ
4458 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
4459 if test "x$LINE" != x ; then
4460 eval "DEFAULT_$LINE"
4461 else
4462 no_cache=1
4463 fi
4464
4465 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
698dcdb6
VZ
4466
4467fi
10f2d63a
VZ
4468
4469
4470 eval "$ac_cv_use_help"
4471 if test "$no_cache" != 1; then
4472 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
4473 fi
4474
4475 if test "$wxUSE_HELP" = yes; then
698dcdb6 4476 echo "$ac_t""yes" 1>&6
10f2d63a 4477 else
698dcdb6 4478 echo "$ac_t""no" 1>&6
10f2d63a 4479 fi
698dcdb6 4480
10f2d63a 4481
29fd3c0c 4482 echo $ac_n "checking for --enable-mshtmlhelp""... $ac_c" 1>&6
f9bc1684 4483echo "configure:4484: checking for --enable-mshtmlhelp" >&5
29fd3c0c
VS
4484 no_cache=0
4485 # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
4486if test "${enable_mshtmlhelp+set}" = set; then
4487 enableval="$enable_mshtmlhelp"
4488
4489 if test "$enableval" = yes; then
4490 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
4491 else
4492 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
4493 fi
4494
4495else
4496
4497 LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
4498 if test "x$LINE" != x ; then
4499 eval "DEFAULT_$LINE"
4500 else
4501 no_cache=1
4502 fi
4503
4504 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
4505
4506fi
4507
4508
4509 eval "$ac_cv_use_mshtmlhelp"
4510 if test "$no_cache" != 1; then
4511 echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
4512 fi
4513
4514 if test "$wxUSE_MS_HTML_HELP" = yes; then
4515 echo "$ac_t""yes" 1>&6
4516 else
4517 echo "$ac_t""no" 1>&6
4518 fi
4519
4520
3379ed37 4521 echo $ac_n "checking for --enable-html""... $ac_c" 1>&6
f9bc1684 4522echo "configure:4523: checking for --enable-html" >&5
3379ed37
VZ
4523 no_cache=0
4524 # Check whether --enable-html or --disable-html was given.
4525if test "${enable_html+set}" = set; then
4526 enableval="$enable_html"
4527
4528 if test "$enableval" = yes; then
4529 ac_cv_use_html='wxUSE_HTML=yes'
4530 else
4531 ac_cv_use_html='wxUSE_HTML=no'
4532 fi
4533
4534else
4535
4536 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
4537 if test "x$LINE" != x ; then
4538 eval "DEFAULT_$LINE"
4539 else
4540 no_cache=1
4541 fi
4542
4543 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
4544
4545fi
4546
4547
4548 eval "$ac_cv_use_html"
4549 if test "$no_cache" != 1; then
4550 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
4551 fi
4552
4553 if test "$wxUSE_HTML" = yes; then
4554 echo "$ac_t""yes" 1>&6
4555 else
4556 echo "$ac_t""no" 1>&6
4557 fi
4558
4559
4560 echo $ac_n "checking for --enable-htmlhelp""... $ac_c" 1>&6
f9bc1684 4561echo "configure:4562: checking for --enable-htmlhelp" >&5
3379ed37
VZ
4562 no_cache=0
4563 # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
4564if test "${enable_htmlhelp+set}" = set; then
4565 enableval="$enable_htmlhelp"
4566
4567 if test "$enableval" = yes; then
4568 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
4569 else
4570 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
4571 fi
4572
4573else
4574
4575 LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
4576 if test "x$LINE" != x ; then
4577 eval "DEFAULT_$LINE"
4578 else
4579 no_cache=1
4580 fi
4581
4582 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
4583
4584fi
4585
4586
4587 eval "$ac_cv_use_htmlhelp"
4588 if test "$no_cache" != 1; then
4589 echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
4590 fi
4591
4592 if test "$wxUSE_WXHTML_HELP" = yes; then
4593 echo "$ac_t""yes" 1>&6
4594 else
4595 echo "$ac_t""no" 1>&6
4596 fi
4597
4598
698dcdb6 4599 echo $ac_n "checking for --enable-constraints""... $ac_c" 1>&6
f9bc1684 4600echo "configure:4601: checking for --enable-constraints" >&5
10f2d63a
VZ
4601 no_cache=0
4602 # Check whether --enable-constraints or --disable-constraints was given.
4603if test "${enable_constraints+set}" = set; then
4604 enableval="$enable_constraints"
698dcdb6 4605
10f2d63a
VZ
4606 if test "$enableval" = yes; then
4607 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
4608 else
4609 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
4610 fi
698dcdb6 4611
10f2d63a 4612else
698dcdb6 4613
10f2d63a
VZ
4614 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
4615 if test "x$LINE" != x ; then
4616 eval "DEFAULT_$LINE"
4617 else
4618 no_cache=1
4619 fi
4620
4621 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
698dcdb6
VZ
4622
4623fi
10f2d63a
VZ
4624
4625
4626 eval "$ac_cv_use_constraints"
4627 if test "$no_cache" != 1; then
4628 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
4629 fi
4630
4631 if test "$wxUSE_CONSTRAINTS" = yes; then
698dcdb6 4632 echo "$ac_t""yes" 1>&6
10f2d63a 4633 else
698dcdb6 4634 echo "$ac_t""no" 1>&6
10f2d63a 4635 fi
698dcdb6 4636
10f2d63a 4637
698dcdb6 4638 echo $ac_n "checking for --enable-printarch""... $ac_c" 1>&6
f9bc1684 4639echo "configure:4640: checking for --enable-printarch" >&5
10f2d63a
VZ
4640 no_cache=0
4641 # Check whether --enable-printarch or --disable-printarch was given.
4642if test "${enable_printarch+set}" = set; then
4643 enableval="$enable_printarch"
698dcdb6 4644
10f2d63a
VZ
4645 if test "$enableval" = yes; then
4646 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
4647 else
4648 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
4649 fi
698dcdb6 4650
10f2d63a 4651else
698dcdb6 4652
10f2d63a
VZ
4653 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
4654 if test "x$LINE" != x ; then
4655 eval "DEFAULT_$LINE"
4656 else
4657 no_cache=1
4658 fi
4659
4660 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
698dcdb6
VZ
4661
4662fi
10f2d63a
VZ
4663
4664
4665 eval "$ac_cv_use_printarch"
4666 if test "$no_cache" != 1; then
4667 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
4668 fi
4669
4670 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
698dcdb6 4671 echo "$ac_t""yes" 1>&6
10f2d63a 4672 else
698dcdb6 4673 echo "$ac_t""no" 1>&6
10f2d63a 4674 fi
698dcdb6 4675
10f2d63a 4676
698dcdb6 4677 echo $ac_n "checking for --enable-mdi""... $ac_c" 1>&6
f9bc1684 4678echo "configure:4679: checking for --enable-mdi" >&5
10f2d63a
VZ
4679 no_cache=0
4680 # Check whether --enable-mdi or --disable-mdi was given.
4681if test "${enable_mdi+set}" = set; then
4682 enableval="$enable_mdi"
698dcdb6 4683
10f2d63a
VZ
4684 if test "$enableval" = yes; then
4685 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes'
4686 else
4687 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no'
4688 fi
698dcdb6 4689
10f2d63a 4690else
698dcdb6 4691
10f2d63a
VZ
4692 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
4693 if test "x$LINE" != x ; then
4694 eval "DEFAULT_$LINE"
4695 else
4696 no_cache=1
4697 fi
4698
4699 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
698dcdb6
VZ
4700
4701fi
10f2d63a
VZ
4702
4703
4704 eval "$ac_cv_use_mdi"
4705 if test "$no_cache" != 1; then
4706 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
4707 fi
4708
4709 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
698dcdb6 4710 echo "$ac_t""yes" 1>&6
10f2d63a 4711 else
698dcdb6 4712 echo "$ac_t""no" 1>&6
10f2d63a 4713 fi
698dcdb6
VZ
4714
4715
1e6feb95 4716 echo $ac_n "checking for --enable-loggui""... $ac_c" 1>&6
f9bc1684 4717echo "configure:4718: checking for --enable-loggui" >&5
1e6feb95
VZ
4718 no_cache=0
4719 # Check whether --enable-loggui or --disable-loggui was given.
4720if test "${enable_loggui+set}" = set; then
4721 enableval="$enable_loggui"
4722
4723 if test "$enableval" = yes; then
4724 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
4725 else
4726 ac_cv_use_loggui='wxUSE_LOGGUI=no'
4727 fi
4728
4729else
4730
4731 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
4732 if test "x$LINE" != x ; then
4733 eval "DEFAULT_$LINE"
4734 else
4735 no_cache=1
4736 fi
4737
4738 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
4739
4740fi
4741
4742
4743 eval "$ac_cv_use_loggui"
4744 if test "$no_cache" != 1; then
4745 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
4746 fi
4747
4748 if test "$wxUSE_LOGGUI" = yes; then
4749 echo "$ac_t""yes" 1>&6
4750 else
4751 echo "$ac_t""no" 1>&6
4752 fi
4753
4754
4755 echo $ac_n "checking for --enable-logwin""... $ac_c" 1>&6
f9bc1684 4756echo "configure:4757: checking for --enable-logwin" >&5
1e6feb95
VZ
4757 no_cache=0
4758 # Check whether --enable-logwin or --disable-logwin was given.
4759if test "${enable_logwin+set}" = set; then
4760 enableval="$enable_logwin"
4761
4762 if test "$enableval" = yes; then
4763 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
4764 else
4765 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
4766 fi
4767
4768else
4769
4770 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
4771 if test "x$LINE" != x ; then
4772 eval "DEFAULT_$LINE"
4773 else
4774 no_cache=1
4775 fi
4776
4777 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
4778
4779fi
4780
4781
4782 eval "$ac_cv_use_logwin"
4783 if test "$no_cache" != 1; then
4784 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
4785 fi
4786
4787 if test "$wxUSE_LOGWINDOW" = yes; then
4788 echo "$ac_t""yes" 1>&6
4789 else
4790 echo "$ac_t""no" 1>&6
4791 fi
4792
4793
69d27ff7 4794 echo $ac_n "checking for --enable-logdialog""... $ac_c" 1>&6
f9bc1684 4795echo "configure:4796: checking for --enable-logdialog" >&5
69d27ff7
MB
4796 no_cache=0
4797 # Check whether --enable-logdialog or --disable-logdialog was given.
4798if test "${enable_logdialog+set}" = set; then
4799 enableval="$enable_logdialog"
4800
4801 if test "$enableval" = yes; then
4802 ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
4803 else
4804 ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
4805 fi
4806
4807else
4808
4809 LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}`
4810 if test "x$LINE" != x ; then
4811 eval "DEFAULT_$LINE"
4812 else
4813 no_cache=1
4814 fi
4815
4816 ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
4817
4818fi
4819
4820
4821 eval "$ac_cv_use_logdialog"
4822 if test "$no_cache" != 1; then
4823 echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
4824 fi
4825
4826 if test "$wxUSE_LOGDIALOG" = yes; then
4827 echo "$ac_t""yes" 1>&6
4828 else
4829 echo "$ac_t""no" 1>&6
4830 fi
4831
4832
10f2d63a 4833
698dcdb6 4834 echo $ac_n "checking for --enable-postscript""... $ac_c" 1>&6
f9bc1684 4835echo "configure:4836: checking for --enable-postscript" >&5
10f2d63a
VZ
4836 no_cache=0
4837 # Check whether --enable-postscript or --disable-postscript was given.
4838if test "${enable_postscript+set}" = set; then
4839 enableval="$enable_postscript"
698dcdb6 4840
10f2d63a
VZ
4841 if test "$enableval" = yes; then
4842 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
4843 else
4844 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
4845 fi
698dcdb6 4846
10f2d63a 4847else
698dcdb6 4848
10f2d63a
VZ
4849 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
4850 if test "x$LINE" != x ; then
4851 eval "DEFAULT_$LINE"
4852 else
4853 no_cache=1
4854 fi
4855
4856 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
698dcdb6
VZ
4857
4858fi
10f2d63a
VZ
4859
4860
4861 eval "$ac_cv_use_postscript"
4862 if test "$no_cache" != 1; then
4863 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
4864 fi
4865
4866 if test "$wxUSE_POSTSCRIPT" = yes; then
698dcdb6 4867 echo "$ac_t""yes" 1>&6
10f2d63a 4868 else
698dcdb6 4869 echo "$ac_t""no" 1>&6
10f2d63a 4870 fi
698dcdb6
VZ
4871
4872
4873
10f2d63a 4874
1e6feb95 4875
698dcdb6 4876 echo $ac_n "checking for --enable-prologio""... $ac_c" 1>&6
f9bc1684 4877echo "configure:4878: checking for --enable-prologio" >&5
10f2d63a
VZ
4878 no_cache=0
4879 # Check whether --enable-prologio or --disable-prologio was given.
4880if test "${enable_prologio+set}" = set; then
4881 enableval="$enable_prologio"
698dcdb6 4882
10f2d63a
VZ
4883 if test "$enableval" = yes; then
4884 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
4885 else
4886 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
4887 fi
698dcdb6 4888
10f2d63a 4889else
698dcdb6 4890
10f2d63a
VZ
4891 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
4892 if test "x$LINE" != x ; then
4893 eval "DEFAULT_$LINE"
4894 else
4895 no_cache=1
4896 fi
4897
4898 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
698dcdb6
VZ
4899
4900fi
10f2d63a
VZ
4901
4902
4903 eval "$ac_cv_use_prologio"
4904 if test "$no_cache" != 1; then
4905 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
4906 fi
4907
4908 if test "$wxUSE_PROLOGIO" = yes; then
698dcdb6 4909 echo "$ac_t""yes" 1>&6
10f2d63a 4910 else
698dcdb6 4911 echo "$ac_t""no" 1>&6
10f2d63a 4912 fi
698dcdb6 4913
10f2d63a 4914
698dcdb6 4915 echo $ac_n "checking for --enable-resources""... $ac_c" 1>&6
f9bc1684 4916echo "configure:4917: checking for --enable-resources" >&5
10f2d63a
VZ
4917 no_cache=0
4918 # Check whether --enable-resources or --disable-resources was given.
4919if test "${enable_resources+set}" = set; then
4920 enableval="$enable_resources"
698dcdb6 4921
10f2d63a
VZ
4922 if test "$enableval" = yes; then
4923 ac_cv_use_resources='wxUSE_RESOURCES=yes'
4924 else
4925 ac_cv_use_resources='wxUSE_RESOURCES=no'
4926 fi
698dcdb6 4927
10f2d63a 4928else
698dcdb6 4929
10f2d63a
VZ
4930 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
4931 if test "x$LINE" != x ; then
4932 eval "DEFAULT_$LINE"
4933 else
4934 no_cache=1
4935 fi
4936
4937 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
698dcdb6
VZ
4938
4939fi
10f2d63a
VZ
4940
4941
4942 eval "$ac_cv_use_resources"
4943 if test "$no_cache" != 1; then
4944 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
4945 fi
4946
4947 if test "$wxUSE_RESOURCES" = yes; then
698dcdb6 4948 echo "$ac_t""yes" 1>&6
10f2d63a 4949 else
698dcdb6 4950 echo "$ac_t""no" 1>&6
10f2d63a 4951 fi
698dcdb6 4952
10f2d63a 4953
698dcdb6
VZ
4954
4955 echo $ac_n "checking for --enable-xresources""... $ac_c" 1>&6
f9bc1684 4956echo "configure:4957: checking for --enable-xresources" >&5
10f2d63a
VZ
4957 no_cache=0
4958 # Check whether --enable-xresources or --disable-xresources was given.
4959if test "${enable_xresources+set}" = set; then
4960 enableval="$enable_xresources"
698dcdb6 4961
10f2d63a
VZ
4962 if test "$enableval" = yes; then
4963 ac_cv_use_xresources='wxUSE_X_RESOURCES=yes'
4964 else
4965 ac_cv_use_xresources='wxUSE_X_RESOURCES=no'
4966 fi
698dcdb6 4967
10f2d63a 4968else
698dcdb6 4969
10f2d63a
VZ
4970 LINE=`grep "wxUSE_X_RESOURCES" ${wx_arg_cache_file}`
4971 if test "x$LINE" != x ; then
4972 eval "DEFAULT_$LINE"
4973 else
4974 no_cache=1
4975 fi
4976
4977 ac_cv_use_xresources='wxUSE_X_RESOURCES='$DEFAULT_wxUSE_X_RESOURCES
698dcdb6
VZ
4978
4979fi
10f2d63a
VZ
4980
4981
4982 eval "$ac_cv_use_xresources"
4983 if test "$no_cache" != 1; then
4984 echo $ac_cv_use_xresources >> ${wx_arg_cache_file}.tmp
4985 fi
4986
4987 if test "$wxUSE_X_RESOURCES" = yes; then
698dcdb6 4988 echo "$ac_t""yes" 1>&6
10f2d63a 4989 else
698dcdb6 4990 echo "$ac_t""no" 1>&6
10f2d63a 4991 fi
698dcdb6
VZ
4992
4993
10f2d63a 4994
698dcdb6
VZ
4995
4996 echo $ac_n "checking for --enable-clipboard""... $ac_c" 1>&6
f9bc1684 4997echo "configure:4998: checking for --enable-clipboard" >&5
10f2d63a
VZ
4998 no_cache=0
4999 # Check whether --enable-clipboard or --disable-clipboard was given.
5000if test "${enable_clipboard+set}" = set; then
5001 enableval="$enable_clipboard"
698dcdb6 5002
10f2d63a
VZ
5003 if test "$enableval" = yes; then
5004 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
5005 else
5006 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
5007 fi
698dcdb6 5008
10f2d63a 5009else
698dcdb6 5010
10f2d63a
VZ
5011 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
5012 if test "x$LINE" != x ; then
5013 eval "DEFAULT_$LINE"
5014 else
5015 no_cache=1
5016 fi
5017
5018 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
698dcdb6
VZ
5019
5020fi
10f2d63a
VZ
5021
5022
5023 eval "$ac_cv_use_clipboard"
5024 if test "$no_cache" != 1; then
5025 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
5026 fi
5027
5028 if test "$wxUSE_CLIPBOARD" = yes; then
698dcdb6 5029 echo "$ac_t""yes" 1>&6
10f2d63a 5030 else
698dcdb6 5031 echo "$ac_t""no" 1>&6
10f2d63a 5032 fi
698dcdb6 5033
10f2d63a 5034
698dcdb6 5035 echo $ac_n "checking for --enable-dnd""... $ac_c" 1>&6
f9bc1684 5036echo "configure:5037: checking for --enable-dnd" >&5
10f2d63a
VZ
5037 no_cache=0
5038 # Check whether --enable-dnd or --disable-dnd was given.
5039if test "${enable_dnd+set}" = set; then
5040 enableval="$enable_dnd"
698dcdb6 5041
10f2d63a
VZ
5042 if test "$enableval" = yes; then
5043 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
5044 else
5045 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
5046 fi
698dcdb6 5047
10f2d63a 5048else
698dcdb6 5049
10f2d63a
VZ
5050 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
5051 if test "x$LINE" != x ; then
5052 eval "DEFAULT_$LINE"
5053 else
5054 no_cache=1
5055 fi
5056
5057 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
698dcdb6
VZ
5058
5059fi
10f2d63a
VZ
5060
5061
5062 eval "$ac_cv_use_dnd"
5063 if test "$no_cache" != 1; then
5064 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
5065 fi
5066
5067 if test "$wxUSE_DRAG_AND_DROP" = yes; then
698dcdb6 5068 echo "$ac_t""yes" 1>&6
10f2d63a 5069 else
698dcdb6 5070 echo "$ac_t""no" 1>&6
10f2d63a 5071 fi
698dcdb6 5072
10f2d63a 5073
698dcdb6 5074 echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6
f9bc1684 5075echo "configure:5076: checking for --enable-metafile" >&5
b64f0a5f
RL
5076 no_cache=0
5077 # Check whether --enable-metafile or --disable-metafile was given.
5078if test "${enable_metafile+set}" = set; then
5079 enableval="$enable_metafile"
698dcdb6 5080
b64f0a5f
RL
5081 if test "$enableval" = yes; then
5082 ac_cv_use_metafile='wxUSE_METAFILE=yes'
5083 else
5084 ac_cv_use_metafile='wxUSE_METAFILE=no'
5085 fi
698dcdb6 5086
b64f0a5f 5087else
698dcdb6 5088
b64f0a5f
RL
5089 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
5090 if test "x$LINE" != x ; then
5091 eval "DEFAULT_$LINE"
5092 else
5093 no_cache=1
5094 fi
5095
5096 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
698dcdb6
VZ
5097
5098fi
b64f0a5f
RL
5099
5100
5101 eval "$ac_cv_use_metafile"
5102 if test "$no_cache" != 1; then
5103 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
5104 fi
5105
5106 if test "$wxUSE_METAFILE" = yes; then
698dcdb6 5107 echo "$ac_t""yes" 1>&6
b64f0a5f 5108 else
698dcdb6 5109 echo "$ac_t""no" 1>&6
b64f0a5f 5110 fi
698dcdb6
VZ
5111
5112
10f2d63a 5113
24176f2c 5114 echo $ac_n "checking for --enable-treelayout""... $ac_c" 1>&6
f9bc1684 5115echo "configure:5116: checking for --enable-treelayout" >&5
10f2d63a 5116 no_cache=0
24176f2c
GD
5117 # Check whether --enable-treelayout or --disable-treelayout was given.
5118if test "${enable_treelayout+set}" = set; then
5119 enableval="$enable_treelayout"
698dcdb6 5120
10f2d63a 5121 if test "$enableval" = yes; then
24176f2c 5122 ac_cv_use_treelayout='wxUSE_TREELAYOUT=yes'
10f2d63a 5123 else
24176f2c 5124 ac_cv_use_treelayout='wxUSE_TREELAYOUT=no'
10f2d63a 5125 fi
698dcdb6 5126
10f2d63a 5127else
698dcdb6 5128
24176f2c 5129 LINE=`grep "wxUSE_TREELAYOUT" ${wx_arg_cache_file}`
10f2d63a
VZ
5130 if test "x$LINE" != x ; then
5131 eval "DEFAULT_$LINE"
5132 else
5133 no_cache=1
5134 fi
5135
24176f2c 5136 ac_cv_use_treelayout='wxUSE_TREELAYOUT='$DEFAULT_wxUSE_TREELAYOUT
698dcdb6
VZ
5137
5138fi
10f2d63a
VZ
5139
5140
24176f2c 5141 eval "$ac_cv_use_treelayout"
10f2d63a 5142 if test "$no_cache" != 1; then
24176f2c 5143 echo $ac_cv_use_treelayout >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
5144 fi
5145
24176f2c 5146 if test "$wxUSE_TREELAYOUT" = yes; then
698dcdb6 5147 echo "$ac_t""yes" 1>&6
10f2d63a 5148 else
698dcdb6 5149 echo "$ac_t""no" 1>&6
10f2d63a 5150 fi
698dcdb6 5151
10f2d63a 5152
698dcdb6
VZ
5153
5154
5155 echo $ac_n "checking for --enable-controls""... $ac_c" 1>&6
f9bc1684 5156echo "configure:5157: checking for --enable-controls" >&5
10f2d63a
VZ
5157 no_cache=0
5158 # Check whether --enable-controls or --disable-controls was given.
5159if test "${enable_controls+set}" = set; then
5160 enableval="$enable_controls"
698dcdb6 5161
10f2d63a
VZ
5162 if test "$enableval" = yes; then
5163 ac_cv_use_controls='wxUSE_CONTROLS=yes'
5164 else
5165 ac_cv_use_controls='wxUSE_CONTROLS=no'
5166 fi
698dcdb6 5167
10f2d63a 5168else
698dcdb6 5169
10f2d63a
VZ
5170 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
5171 if test "x$LINE" != x ; then
5172 eval "DEFAULT_$LINE"
5173 else
5174 no_cache=1
5175 fi
5176
5177 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
698dcdb6
VZ
5178
5179fi
10f2d63a
VZ
5180
5181
5182 eval "$ac_cv_use_controls"
5183 if test "$no_cache" != 1; then
5184 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
5185 fi
5186
5187 if test "$wxUSE_CONTROLS" = yes; then
698dcdb6 5188 echo "$ac_t""yes" 1>&6
10f2d63a 5189 else
698dcdb6 5190 echo "$ac_t""no" 1>&6
10f2d63a 5191 fi
698dcdb6 5192
10f2d63a
VZ
5193
5194if test "$wxUSE_CONTROLS" = "yes"; then
5195 DEFAULT_wxUSE_ACCEL=yes
1e6feb95
VZ
5196 DEFAULT_wxUSE_BMPBUTTON=yes
5197 DEFAULT_wxUSE_BUTTON=yes
5198 DEFAULT_wxUSE_CALCTRL=no
10f2d63a
VZ
5199 DEFAULT_wxUSE_CARET=yes
5200 DEFAULT_wxUSE_COMBOBOX=yes
10f2d63a
VZ
5201 DEFAULT_wxUSE_CHECKBOX=yes
5202 DEFAULT_wxUSE_CHECKLISTBOX=yes
5203 DEFAULT_wxUSE_CHOICE=yes
5204 DEFAULT_wxUSE_GAUGE=yes
5205 DEFAULT_wxUSE_GRID=yes
cc977e5f 5206 DEFAULT_wxUSE_NEW_GRID=yes
10f2d63a
VZ
5207 DEFAULT_wxUSE_IMAGLIST=yes
5208 DEFAULT_wxUSE_LISTBOX=yes
5209 DEFAULT_wxUSE_LISTCTRL=yes
5210 DEFAULT_wxUSE_NOTEBOOK=yes
24176f2c 5211 DEFAULT_wxUSE_PROPSHEET=yes
10f2d63a
VZ
5212 DEFAULT_wxUSE_RADIOBOX=yes
5213 DEFAULT_wxUSE_RADIOBTN=yes
5214 DEFAULT_wxUSE_SASH=yes
5215 DEFAULT_wxUSE_SCROLLBAR=yes
5216 DEFAULT_wxUSE_SLIDER=yes
5217 DEFAULT_wxUSE_SPINBTN=yes
56cfaa52 5218 DEFAULT_wxUSE_SPINCTRL=yes
10f2d63a
VZ
5219 DEFAULT_wxUSE_SPLITTER=yes
5220 DEFAULT_wxUSE_STATBMP=yes
5221 DEFAULT_wxUSE_STATBOX=yes
5222 DEFAULT_wxUSE_STATLINE=yes
5223 DEFAULT_wxUSE_STATUSBAR=yes
5224 DEFAULT_wxUSE_TAB_DIALOG=yes
1db8dc4a 5225 DEFAULT_wxUSE_TOGGLEBTN=yes
10f2d63a 5226 DEFAULT_wxUSE_TOOLBAR=yes
360d6699
VZ
5227 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
5228 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
10f2d63a
VZ
5229 DEFAULT_wxUSE_TOOLTIPS=yes
5230 DEFAULT_wxUSE_TREECTRL=yes
9f41d601 5231 DEFAULT_wxUSE_POPUPWIN=yes
9926e4a4 5232 DEFAULT_wxUSE_TIPWINDOW=yes
10f2d63a
VZ
5233elif test "$wxUSE_CONTROLS" = "no"; then
5234 DEFAULT_wxUSE_ACCEL=no
1e6feb95
VZ
5235 DEFAULT_wxUSE_BMPBUTTON=no
5236 DEFAULT_wxUSE_BUTTON=no
5237 DEFAULT_wxUSE_CALCTRL=no
10f2d63a
VZ
5238 DEFAULT_wxUSE_CARET=no
5239 DEFAULT_wxUSE_COMBOBOX=no
10f2d63a
VZ
5240 DEFAULT_wxUSE_CHECKBOX=no
5241 DEFAULT_wxUSE_CHECKLISTBOX=no
5242 DEFAULT_wxUSE_CHOICE=no
5243 DEFAULT_wxUSE_GAUGE=no
5244 DEFAULT_wxUSE_GRID=no
5245 DEFAULT_wxUSE_NEW_GRID=no
5246 DEFAULT_wxUSE_IMAGLIST=no
5247 DEFAULT_wxUSE_LISTBOX=no
5248 DEFAULT_wxUSE_LISTCTRL=no
5249 DEFAULT_wxUSE_NOTEBOOK=no
24176f2c 5250 DEFAULT_wxUSE_PROPSHEET=no
10f2d63a
VZ
5251 DEFAULT_wxUSE_RADIOBOX=no
5252 DEFAULT_wxUSE_RADIOBTN=no
5253 DEFAULT_wxUSE_SASH=no
5254 DEFAULT_wxUSE_SCROLLBAR=no
5255 DEFAULT_wxUSE_SLIDER=no
5256 DEFAULT_wxUSE_SPINBTN=no
56cfaa52 5257 DEFAULT_wxUSE_SPINCTRL=no
10f2d63a
VZ
5258 DEFAULT_wxUSE_SPLITTER=no
5259 DEFAULT_wxUSE_STATBMP=no
5260 DEFAULT_wxUSE_STATBOX=no
5261 DEFAULT_wxUSE_STATLINE=no
5262 DEFAULT_wxUSE_STATUSBAR=no
5263 DEFAULT_wxUSE_TAB_DIALOG=no
1db8dc4a 5264 DEFAULT_wxUSE_TOGGLEBTN=no
10f2d63a 5265 DEFAULT_wxUSE_TOOLBAR=no
360d6699
VZ
5266 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
5267 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
10f2d63a
VZ
5268 DEFAULT_wxUSE_TOOLTIPS=no
5269 DEFAULT_wxUSE_TREECTRL=no
9f41d601 5270 DEFAULT_wxUSE_POPUPWIN=no
9926e4a4 5271 DEFAULT_wxUSE_TIPWINDOW=no
10f2d63a
VZ
5272fi
5273
698dcdb6
VZ
5274
5275 echo $ac_n "checking for --enable-accel""... $ac_c" 1>&6
f9bc1684 5276echo "configure:5277: checking for --enable-accel" >&5
10f2d63a
VZ
5277 no_cache=0
5278 # Check whether --enable-accel or --disable-accel was given.
5279if test "${enable_accel+set}" = set; then
5280 enableval="$enable_accel"
698dcdb6 5281
10f2d63a
VZ
5282 if test "$enableval" = yes; then
5283 ac_cv_use_accel='wxUSE_ACCEL=yes'
5284 else
5285 ac_cv_use_accel='wxUSE_ACCEL=no'
5286 fi
698dcdb6 5287
10f2d63a 5288else
698dcdb6 5289
10f2d63a
VZ
5290 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
5291 if test "x$LINE" != x ; then
5292 eval "DEFAULT_$LINE"
5293 else
5294 no_cache=1
5295 fi
5296
5297 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
698dcdb6
VZ
5298
5299fi
10f2d63a
VZ
5300
5301
5302 eval "$ac_cv_use_accel"
5303 if test "$no_cache" != 1; then
5304 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
5305 fi
5306
5307 if test "$wxUSE_ACCEL" = yes; then
698dcdb6 5308 echo "$ac_t""yes" 1>&6
10f2d63a 5309 else
698dcdb6 5310 echo "$ac_t""no" 1>&6
10f2d63a 5311 fi
698dcdb6 5312
10f2d63a 5313
1e6feb95 5314 echo $ac_n "checking for --enable-button""... $ac_c" 1>&6
f9bc1684 5315echo "configure:5316: checking for --enable-button" >&5
10f2d63a 5316 no_cache=0
1e6feb95
VZ
5317 # Check whether --enable-button or --disable-button was given.
5318if test "${enable_button+set}" = set; then
5319 enableval="$enable_button"
698dcdb6 5320
10f2d63a 5321 if test "$enableval" = yes; then
1e6feb95 5322 ac_cv_use_button='wxUSE_BUTTON=yes'
10f2d63a 5323 else
1e6feb95 5324 ac_cv_use_button='wxUSE_BUTTON=no'
10f2d63a 5325 fi
698dcdb6 5326
10f2d63a 5327else
698dcdb6 5328
1e6feb95 5329 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
10f2d63a
VZ
5330 if test "x$LINE" != x ; then
5331 eval "DEFAULT_$LINE"
5332 else
5333 no_cache=1
5334 fi
5335
1e6feb95 5336 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
698dcdb6
VZ
5337
5338fi
10f2d63a
VZ
5339
5340
1e6feb95 5341 eval "$ac_cv_use_button"
10f2d63a 5342 if test "$no_cache" != 1; then
1e6feb95 5343 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
5344 fi
5345
1e6feb95 5346 if test "$wxUSE_BUTTON" = yes; then
698dcdb6 5347 echo "$ac_t""yes" 1>&6
10f2d63a 5348 else
698dcdb6 5349 echo "$ac_t""no" 1>&6
10f2d63a 5350 fi
698dcdb6 5351
10f2d63a 5352
698dcdb6 5353 echo $ac_n "checking for --enable-bmpbutton""... $ac_c" 1>&6
f9bc1684 5354echo "configure:5355: checking for --enable-bmpbutton" >&5
10f2d63a
VZ
5355 no_cache=0
5356 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
5357if test "${enable_bmpbutton+set}" = set; then
5358 enableval="$enable_bmpbutton"
698dcdb6 5359
10f2d63a
VZ
5360 if test "$enableval" = yes; then
5361 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
5362 else
5363 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
5364 fi
698dcdb6 5365
10f2d63a 5366else
698dcdb6 5367
10f2d63a
VZ
5368 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
5369 if test "x$LINE" != x ; then
5370 eval "DEFAULT_$LINE"
5371 else
5372 no_cache=1
5373 fi
5374
5375 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
698dcdb6
VZ
5376
5377fi
10f2d63a
VZ
5378
5379
5380 eval "$ac_cv_use_bmpbutton"
5381 if test "$no_cache" != 1; then
5382 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
5383 fi
5384
5385 if test "$wxUSE_BMPBUTTON" = yes; then
698dcdb6 5386 echo "$ac_t""yes" 1>&6
10f2d63a 5387 else
698dcdb6 5388 echo "$ac_t""no" 1>&6
10f2d63a 5389 fi
698dcdb6 5390
10f2d63a 5391
1e6feb95 5392 echo $ac_n "checking for --enable-calendar""... $ac_c" 1>&6
f9bc1684 5393echo "configure:5394: checking for --enable-calendar" >&5
1e6feb95
VZ
5394 no_cache=0
5395 # Check whether --enable-calendar or --disable-calendar was given.
5396if test "${enable_calendar+set}" = set; then
5397 enableval="$enable_calendar"
5398
5399 if test "$enableval" = yes; then
5400 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
5401 else
5402 ac_cv_use_calendar='wxUSE_CALCTRL=no'
5403 fi
5404
5405else
5406
5407 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
5408 if test "x$LINE" != x ; then
5409 eval "DEFAULT_$LINE"
5410 else
5411 no_cache=1
5412 fi
5413
5414 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
5415
5416fi
5417
5418
5419 eval "$ac_cv_use_calendar"
5420 if test "$no_cache" != 1; then
5421 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
5422 fi
5423
5424 if test "$wxUSE_CALCTRL" = yes; then
5425 echo "$ac_t""yes" 1>&6
5426 else
5427 echo "$ac_t""no" 1>&6
5428 fi
5429
5430
5431 echo $ac_n "checking for --enable-caret""... $ac_c" 1>&6
f9bc1684 5432echo "configure:5433: checking for --enable-caret" >&5
1e6feb95
VZ
5433 no_cache=0
5434 # Check whether --enable-caret or --disable-caret was given.
5435if test "${enable_caret+set}" = set; then
5436 enableval="$enable_caret"
5437
5438 if test "$enableval" = yes; then
5439 ac_cv_use_caret='wxUSE_CARET=yes'
5440 else
5441 ac_cv_use_caret='wxUSE_CARET=no'
5442 fi
5443
5444else
5445
5446 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
5447 if test "x$LINE" != x ; then
5448 eval "DEFAULT_$LINE"
5449 else
5450 no_cache=1
5451 fi
5452
5453 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
5454
5455fi
5456
5457
5458 eval "$ac_cv_use_caret"
5459 if test "$no_cache" != 1; then
5460 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
5461 fi
5462
5463 if test "$wxUSE_CARET" = yes; then
5464 echo "$ac_t""yes" 1>&6
5465 else
5466 echo "$ac_t""no" 1>&6
5467 fi
5468
5469
698dcdb6 5470 echo $ac_n "checking for --enable-checkbox""... $ac_c" 1>&6
f9bc1684 5471echo "configure:5472: checking for --enable-checkbox" >&5
10f2d63a
VZ
5472 no_cache=0
5473 # Check whether --enable-checkbox or --disable-checkbox was given.
5474if test "${enable_checkbox+set}" = set; then
5475 enableval="$enable_checkbox"
698dcdb6 5476
10f2d63a
VZ
5477 if test "$enableval" = yes; then
5478 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
5479 else
5480 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
5481 fi
698dcdb6 5482
10f2d63a 5483else
698dcdb6 5484
10f2d63a
VZ
5485 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
5486 if test "x$LINE" != x ; then
5487 eval "DEFAULT_$LINE"
5488 else
5489 no_cache=1
5490 fi
5491
5492 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
698dcdb6
VZ
5493
5494fi
10f2d63a
VZ
5495
5496
5497 eval "$ac_cv_use_checkbox"
5498 if test "$no_cache" != 1; then
5499 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
5500 fi
5501
5502 if test "$wxUSE_CHECKBOX" = yes; then
698dcdb6 5503 echo "$ac_t""yes" 1>&6
10f2d63a 5504 else
698dcdb6 5505 echo "$ac_t""no" 1>&6
10f2d63a 5506 fi
698dcdb6 5507
10f2d63a 5508
698dcdb6 5509 echo $ac_n "checking for --enable-checklst""... $ac_c" 1>&6
f9bc1684 5510echo "configure:5511: checking for --enable-checklst" >&5
10f2d63a
VZ
5511 no_cache=0
5512 # Check whether --enable-checklst or --disable-checklst was given.
5513if test "${enable_checklst+set}" = set; then
5514 enableval="$enable_checklst"
698dcdb6 5515
10f2d63a
VZ
5516 if test "$enableval" = yes; then
5517 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
5518 else
5519 ac_cv_use_checklst='wxUSE_CHECKLST=no'
5520 fi
698dcdb6 5521
10f2d63a 5522else
698dcdb6 5523
10f2d63a
VZ
5524 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
5525 if test "x$LINE" != x ; then
5526 eval "DEFAULT_$LINE"
5527 else
5528 no_cache=1
5529 fi
5530
5531 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
698dcdb6
VZ
5532
5533fi
10f2d63a
VZ
5534
5535
5536 eval "$ac_cv_use_checklst"
5537 if test "$no_cache" != 1; then
5538 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
5539 fi
5540
5541 if test "$wxUSE_CHECKLST" = yes; then
698dcdb6 5542 echo "$ac_t""yes" 1>&6
10f2d63a 5543 else
698dcdb6 5544 echo "$ac_t""no" 1>&6
10f2d63a 5545 fi
698dcdb6 5546
10f2d63a 5547
698dcdb6 5548 echo $ac_n "checking for --enable-choice""... $ac_c" 1>&6
f9bc1684 5549echo "configure:5550: checking for --enable-choice" >&5
10f2d63a
VZ
5550 no_cache=0
5551 # Check whether --enable-choice or --disable-choice was given.
5552if test "${enable_choice+set}" = set; then
5553 enableval="$enable_choice"
698dcdb6 5554
10f2d63a
VZ
5555 if test "$enableval" = yes; then
5556 ac_cv_use_choice='wxUSE_CHOICE=yes'
5557 else
5558 ac_cv_use_choice='wxUSE_CHOICE=no'
5559 fi
698dcdb6 5560
10f2d63a 5561else
698dcdb6 5562
10f2d63a
VZ
5563 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
5564 if test "x$LINE" != x ; then
5565 eval "DEFAULT_$LINE"
5566 else
5567 no_cache=1
5568 fi
5569
5570 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
698dcdb6
VZ
5571
5572fi
10f2d63a
VZ
5573
5574
5575 eval "$ac_cv_use_choice"
5576 if test "$no_cache" != 1; then
5577 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
5578 fi
5579
5580 if test "$wxUSE_CHOICE" = yes; then
698dcdb6 5581 echo "$ac_t""yes" 1>&6
10f2d63a 5582 else
698dcdb6 5583 echo "$ac_t""no" 1>&6
10f2d63a 5584 fi
698dcdb6 5585
10f2d63a 5586
698dcdb6 5587 echo $ac_n "checking for --enable-combobox""... $ac_c" 1>&6
f9bc1684 5588echo "configure:5589: checking for --enable-combobox" >&5
10f2d63a
VZ
5589 no_cache=0
5590 # Check whether --enable-combobox or --disable-combobox was given.
5591if test "${enable_combobox+set}" = set; then
5592 enableval="$enable_combobox"
698dcdb6 5593
10f2d63a
VZ
5594 if test "$enableval" = yes; then
5595 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
5596 else
5597 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
5598 fi
698dcdb6 5599
10f2d63a 5600else
698dcdb6 5601
10f2d63a
VZ
5602 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
5603 if test "x$LINE" != x ; then
5604 eval "DEFAULT_$LINE"
5605 else
5606 no_cache=1
5607 fi
5608
5609 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
698dcdb6
VZ
5610
5611fi
10f2d63a
VZ
5612
5613
5614 eval "$ac_cv_use_combobox"
5615 if test "$no_cache" != 1; then
5616 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
5617 fi
5618
5619 if test "$wxUSE_COMBOBOX" = yes; then
698dcdb6 5620 echo "$ac_t""yes" 1>&6
10f2d63a 5621 else
698dcdb6 5622 echo "$ac_t""no" 1>&6
10f2d63a 5623 fi
698dcdb6 5624
10f2d63a 5625
698dcdb6 5626 echo $ac_n "checking for --enable-gauge""... $ac_c" 1>&6
f9bc1684 5627echo "configure:5628: checking for --enable-gauge" >&5
10f2d63a
VZ
5628 no_cache=0
5629 # Check whether --enable-gauge or --disable-gauge was given.
5630if test "${enable_gauge+set}" = set; then
5631 enableval="$enable_gauge"
698dcdb6 5632
10f2d63a
VZ
5633 if test "$enableval" = yes; then
5634 ac_cv_use_gauge='wxUSE_GAUGE=yes'
5635 else
5636 ac_cv_use_gauge='wxUSE_GAUGE=no'
5637 fi
698dcdb6 5638
10f2d63a 5639else
698dcdb6 5640
10f2d63a
VZ
5641 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
5642 if test "x$LINE" != x ; then
5643 eval "DEFAULT_$LINE"
5644 else
5645 no_cache=1
5646 fi
5647
5648 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
698dcdb6
VZ
5649
5650fi
10f2d63a
VZ
5651
5652
5653 eval "$ac_cv_use_gauge"
5654 if test "$no_cache" != 1; then
5655 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
5656 fi
5657
5658 if test "$wxUSE_GAUGE" = yes; then
698dcdb6 5659 echo "$ac_t""yes" 1>&6
10f2d63a 5660 else
698dcdb6 5661 echo "$ac_t""no" 1>&6
10f2d63a 5662 fi
698dcdb6 5663
10f2d63a 5664
698dcdb6 5665 echo $ac_n "checking for --enable-grid""... $ac_c" 1>&6
f9bc1684 5666echo "configure:5667: checking for --enable-grid" >&5
10f2d63a
VZ
5667 no_cache=0
5668 # Check whether --enable-grid or --disable-grid was given.
5669if test "${enable_grid+set}" = set; then
5670 enableval="$enable_grid"
698dcdb6 5671
10f2d63a
VZ
5672 if test "$enableval" = yes; then
5673 ac_cv_use_grid='wxUSE_GRID=yes'
5674 else
5675 ac_cv_use_grid='wxUSE_GRID=no'
5676 fi
698dcdb6 5677
10f2d63a 5678else
698dcdb6 5679
10f2d63a
VZ
5680 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
5681 if test "x$LINE" != x ; then
5682 eval "DEFAULT_$LINE"
5683 else
5684 no_cache=1
5685 fi
5686
5687 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
698dcdb6
VZ
5688
5689fi
10f2d63a
VZ
5690
5691
5692 eval "$ac_cv_use_grid"
5693 if test "$no_cache" != 1; then
5694 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
5695 fi
5696
5697 if test "$wxUSE_GRID" = yes; then
698dcdb6 5698 echo "$ac_t""yes" 1>&6
10f2d63a 5699 else
698dcdb6 5700 echo "$ac_t""no" 1>&6
10f2d63a 5701 fi
698dcdb6 5702
10f2d63a 5703
698dcdb6 5704 echo $ac_n "checking for --enable-newgrid""... $ac_c" 1>&6
f9bc1684 5705echo "configure:5706: checking for --enable-newgrid" >&5
10f2d63a
VZ
5706 no_cache=0
5707 # Check whether --enable-newgrid or --disable-newgrid was given.
5708if test "${enable_newgrid+set}" = set; then
5709 enableval="$enable_newgrid"
698dcdb6 5710
10f2d63a
VZ
5711 if test "$enableval" = yes; then
5712 ac_cv_use_newgrid='wxUSE_NEW_GRID=yes'
5713 else
5714 ac_cv_use_newgrid='wxUSE_NEW_GRID=no'
5715 fi
698dcdb6 5716
10f2d63a 5717else
698dcdb6 5718
10f2d63a
VZ
5719 LINE=`grep "wxUSE_NEW_GRID" ${wx_arg_cache_file}`
5720 if test "x$LINE" != x ; then
5721 eval "DEFAULT_$LINE"
5722 else
5723 no_cache=1
5724 fi
5725
5726 ac_cv_use_newgrid='wxUSE_NEW_GRID='$DEFAULT_wxUSE_NEW_GRID
698dcdb6
VZ
5727
5728fi
10f2d63a
VZ
5729
5730
5731 eval "$ac_cv_use_newgrid"
5732 if test "$no_cache" != 1; then
5733 echo $ac_cv_use_newgrid >> ${wx_arg_cache_file}.tmp
5734 fi
5735
5736 if test "$wxUSE_NEW_GRID" = yes; then
698dcdb6 5737 echo "$ac_t""yes" 1>&6
10f2d63a 5738 else
698dcdb6 5739 echo "$ac_t""no" 1>&6
10f2d63a 5740 fi
698dcdb6 5741
10f2d63a 5742
698dcdb6 5743 echo $ac_n "checking for --enable-imaglist""... $ac_c" 1>&6
f9bc1684 5744echo "configure:5745: checking for --enable-imaglist" >&5
10f2d63a
VZ
5745 no_cache=0
5746 # Check whether --enable-imaglist or --disable-imaglist was given.
5747if test "${enable_imaglist+set}" = set; then
5748 enableval="$enable_imaglist"
698dcdb6 5749
10f2d63a
VZ
5750 if test "$enableval" = yes; then
5751 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
5752 else
5753 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
5754 fi
698dcdb6 5755
10f2d63a 5756else
698dcdb6 5757
10f2d63a
VZ
5758 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
5759 if test "x$LINE" != x ; then
5760 eval "DEFAULT_$LINE"
5761 else
5762 no_cache=1
5763 fi
5764
5765 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
698dcdb6
VZ
5766
5767fi
10f2d63a
VZ
5768
5769
5770 eval "$ac_cv_use_imaglist"
5771 if test "$no_cache" != 1; then
5772 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
5773 fi
5774
5775 if test "$wxUSE_IMAGLIST" = yes; then
698dcdb6 5776 echo "$ac_t""yes" 1>&6
10f2d63a 5777 else
698dcdb6 5778 echo "$ac_t""no" 1>&6
10f2d63a 5779 fi
698dcdb6 5780
10f2d63a 5781
698dcdb6 5782 echo $ac_n "checking for --enable-listbox""... $ac_c" 1>&6
f9bc1684 5783echo "configure:5784: checking for --enable-listbox" >&5
10f2d63a
VZ
5784 no_cache=0
5785 # Check whether --enable-listbox or --disable-listbox was given.
5786if test "${enable_listbox+set}" = set; then
5787 enableval="$enable_listbox"
698dcdb6 5788
10f2d63a
VZ
5789 if test "$enableval" = yes; then
5790 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
5791 else
5792 ac_cv_use_listbox='wxUSE_LISTBOX=no'
5793 fi
698dcdb6 5794
10f2d63a 5795else
698dcdb6 5796
10f2d63a
VZ
5797 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
5798 if test "x$LINE" != x ; then
5799 eval "DEFAULT_$LINE"
5800 else
5801 no_cache=1
5802 fi
5803
5804 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
698dcdb6
VZ
5805
5806fi
10f2d63a
VZ
5807
5808
5809 eval "$ac_cv_use_listbox"
5810 if test "$no_cache" != 1; then
5811 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
5812 fi
5813
5814 if test "$wxUSE_LISTBOX" = yes; then
698dcdb6 5815 echo "$ac_t""yes" 1>&6
10f2d63a 5816 else
698dcdb6 5817 echo "$ac_t""no" 1>&6
10f2d63a 5818 fi
698dcdb6 5819
10f2d63a 5820
698dcdb6 5821 echo $ac_n "checking for --enable-listctrl""... $ac_c" 1>&6
f9bc1684 5822echo "configure:5823: checking for --enable-listctrl" >&5
10f2d63a
VZ
5823 no_cache=0
5824 # Check whether --enable-listctrl or --disable-listctrl was given.
5825if test "${enable_listctrl+set}" = set; then
5826 enableval="$enable_listctrl"
698dcdb6 5827
10f2d63a
VZ
5828 if test "$enableval" = yes; then
5829 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
5830 else
5831 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
5832 fi
698dcdb6 5833
10f2d63a 5834else
698dcdb6 5835
10f2d63a
VZ
5836 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
5837 if test "x$LINE" != x ; then
5838 eval "DEFAULT_$LINE"
5839 else
5840 no_cache=1
5841 fi
5842
5843 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
698dcdb6
VZ
5844
5845fi
10f2d63a
VZ
5846
5847
5848 eval "$ac_cv_use_listctrl"
5849 if test "$no_cache" != 1; then
5850 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
5851 fi
5852
5853 if test "$wxUSE_LISTCTRL" = yes; then
698dcdb6 5854 echo "$ac_t""yes" 1>&6
10f2d63a 5855 else
698dcdb6 5856 echo "$ac_t""no" 1>&6
10f2d63a 5857 fi
698dcdb6 5858
10f2d63a 5859
698dcdb6 5860 echo $ac_n "checking for --enable-notebook""... $ac_c" 1>&6
f9bc1684 5861echo "configure:5862: checking for --enable-notebook" >&5
10f2d63a
VZ
5862 no_cache=0
5863 # Check whether --enable-notebook or --disable-notebook was given.
5864if test "${enable_notebook+set}" = set; then
5865 enableval="$enable_notebook"
698dcdb6 5866
10f2d63a
VZ
5867 if test "$enableval" = yes; then
5868 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
5869 else
5870 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
5871 fi
698dcdb6 5872
10f2d63a 5873else
698dcdb6 5874
10f2d63a
VZ
5875 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
5876 if test "x$LINE" != x ; then
5877 eval "DEFAULT_$LINE"
5878 else
5879 no_cache=1
5880 fi
5881
5882 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
698dcdb6
VZ
5883
5884fi
10f2d63a
VZ
5885
5886
5887 eval "$ac_cv_use_notebook"
5888 if test "$no_cache" != 1; then
5889 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
5890 fi
5891
5892 if test "$wxUSE_NOTEBOOK" = yes; then
698dcdb6 5893 echo "$ac_t""yes" 1>&6
10f2d63a 5894 else
698dcdb6 5895 echo "$ac_t""no" 1>&6
10f2d63a 5896 fi
698dcdb6 5897
10f2d63a 5898
24176f2c 5899 echo $ac_n "checking for --enable-propsheet""... $ac_c" 1>&6
f9bc1684 5900echo "configure:5901: checking for --enable-propsheet" >&5
24176f2c
GD
5901 no_cache=0
5902 # Check whether --enable-propsheet or --disable-propsheet was given.
5903if test "${enable_propsheet+set}" = set; then
5904 enableval="$enable_propsheet"
5905
5906 if test "$enableval" = yes; then
5907 ac_cv_use_propsheet='wxUSE_PROPSHEET=yes'
5908 else
5909 ac_cv_use_propsheet='wxUSE_PROPSHEET=no'
5910 fi
5911
5912else
5913
5914 LINE=`grep "wxUSE_PROPSHEET" ${wx_arg_cache_file}`
5915 if test "x$LINE" != x ; then
5916 eval "DEFAULT_$LINE"
5917 else
5918 no_cache=1
5919 fi
5920
5921 ac_cv_use_propsheet='wxUSE_PROPSHEET='$DEFAULT_wxUSE_PROPSHEET
5922
5923fi
5924
5925
5926 eval "$ac_cv_use_propsheet"
5927 if test "$no_cache" != 1; then
5928 echo $ac_cv_use_propsheet >> ${wx_arg_cache_file}.tmp
5929 fi
5930
5931 if test "$wxUSE_PROPSHEET" = yes; then
5932 echo "$ac_t""yes" 1>&6
5933 else
5934 echo "$ac_t""no" 1>&6
5935 fi
5936
5937
698dcdb6 5938 echo $ac_n "checking for --enable-radiobox""... $ac_c" 1>&6
f9bc1684 5939echo "configure:5940: checking for --enable-radiobox" >&5
10f2d63a
VZ
5940 no_cache=0
5941 # Check whether --enable-radiobox or --disable-radiobox was given.
5942if test "${enable_radiobox+set}" = set; then
5943 enableval="$enable_radiobox"
698dcdb6 5944
10f2d63a
VZ
5945 if test "$enableval" = yes; then
5946 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
5947 else
5948 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
5949 fi
698dcdb6 5950
10f2d63a 5951else
698dcdb6 5952
10f2d63a
VZ
5953 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
5954 if test "x$LINE" != x ; then
5955 eval "DEFAULT_$LINE"
5956 else
5957 no_cache=1
5958 fi
5959
5960 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
698dcdb6
VZ
5961
5962fi
10f2d63a
VZ
5963
5964
5965 eval "$ac_cv_use_radiobox"
5966 if test "$no_cache" != 1; then
5967 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
5968 fi
5969
5970 if test "$wxUSE_RADIOBOX" = yes; then
698dcdb6 5971 echo "$ac_t""yes" 1>&6
10f2d63a 5972 else
698dcdb6 5973 echo "$ac_t""no" 1>&6
10f2d63a 5974 fi
698dcdb6 5975
10f2d63a 5976
698dcdb6 5977 echo $ac_n "checking for --enable-radiobtn""... $ac_c" 1>&6
f9bc1684 5978echo "configure:5979: checking for --enable-radiobtn" >&5
10f2d63a
VZ
5979 no_cache=0
5980 # Check whether --enable-radiobtn or --disable-radiobtn was given.
5981if test "${enable_radiobtn+set}" = set; then
5982 enableval="$enable_radiobtn"
698dcdb6 5983
10f2d63a
VZ
5984 if test "$enableval" = yes; then
5985 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
5986 else
5987 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
5988 fi
698dcdb6 5989
10f2d63a 5990else
698dcdb6 5991
10f2d63a
VZ
5992 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
5993 if test "x$LINE" != x ; then
5994 eval "DEFAULT_$LINE"
5995 else
5996 no_cache=1
5997 fi
5998
5999 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
698dcdb6
VZ
6000
6001fi
10f2d63a
VZ
6002
6003
6004 eval "$ac_cv_use_radiobtn"
6005 if test "$no_cache" != 1; then
6006 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
6007 fi
6008
6009 if test "$wxUSE_RADIOBTN" = yes; then
698dcdb6 6010 echo "$ac_t""yes" 1>&6
10f2d63a 6011 else
698dcdb6 6012 echo "$ac_t""no" 1>&6
10f2d63a 6013 fi
698dcdb6 6014
10f2d63a 6015
698dcdb6 6016 echo $ac_n "checking for --enable-sash""... $ac_c" 1>&6
f9bc1684 6017echo "configure:6018: checking for --enable-sash" >&5
10f2d63a
VZ
6018 no_cache=0
6019 # Check whether --enable-sash or --disable-sash was given.
6020if test "${enable_sash+set}" = set; then
6021 enableval="$enable_sash"
698dcdb6 6022
10f2d63a
VZ
6023 if test "$enableval" = yes; then
6024 ac_cv_use_sash='wxUSE_SASH=yes'
6025 else
6026 ac_cv_use_sash='wxUSE_SASH=no'
6027 fi
698dcdb6 6028
10f2d63a 6029else
698dcdb6 6030
10f2d63a
VZ
6031 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
6032 if test "x$LINE" != x ; then
6033 eval "DEFAULT_$LINE"
6034 else
6035 no_cache=1
6036 fi
6037
6038 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
698dcdb6
VZ
6039
6040fi
10f2d63a
VZ
6041
6042
6043 eval "$ac_cv_use_sash"
6044 if test "$no_cache" != 1; then
6045 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
6046 fi
6047
6048 if test "$wxUSE_SASH" = yes; then
698dcdb6 6049 echo "$ac_t""yes" 1>&6
10f2d63a 6050 else
698dcdb6 6051 echo "$ac_t""no" 1>&6
10f2d63a 6052 fi
698dcdb6 6053
10f2d63a 6054
698dcdb6 6055 echo $ac_n "checking for --enable-scrollbar""... $ac_c" 1>&6
f9bc1684 6056echo "configure:6057: checking for --enable-scrollbar" >&5
10f2d63a
VZ
6057 no_cache=0
6058 # Check whether --enable-scrollbar or --disable-scrollbar was given.
6059if test "${enable_scrollbar+set}" = set; then
6060 enableval="$enable_scrollbar"
698dcdb6 6061
10f2d63a
VZ
6062 if test "$enableval" = yes; then
6063 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
6064 else
6065 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
6066 fi
698dcdb6 6067
10f2d63a 6068else
698dcdb6 6069
10f2d63a
VZ
6070 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
6071 if test "x$LINE" != x ; then
6072 eval "DEFAULT_$LINE"
6073 else
6074 no_cache=1
6075 fi
6076
6077 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
698dcdb6
VZ
6078
6079fi
10f2d63a
VZ
6080
6081
6082 eval "$ac_cv_use_scrollbar"
6083 if test "$no_cache" != 1; then
6084 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
6085 fi
6086
6087 if test "$wxUSE_SCROLLBAR" = yes; then
698dcdb6 6088 echo "$ac_t""yes" 1>&6
10f2d63a 6089 else
698dcdb6 6090 echo "$ac_t""no" 1>&6
10f2d63a 6091 fi
698dcdb6 6092
10f2d63a 6093
698dcdb6 6094 echo $ac_n "checking for --enable-slider""... $ac_c" 1>&6
f9bc1684 6095echo "configure:6096: checking for --enable-slider" >&5
10f2d63a
VZ
6096 no_cache=0
6097 # Check whether --enable-slider or --disable-slider was given.
6098if test "${enable_slider+set}" = set; then
6099 enableval="$enable_slider"
698dcdb6 6100
10f2d63a
VZ
6101 if test "$enableval" = yes; then
6102 ac_cv_use_slider='wxUSE_SLIDER=yes'
6103 else
6104 ac_cv_use_slider='wxUSE_SLIDER=no'
6105 fi
698dcdb6 6106
10f2d63a 6107else
698dcdb6 6108
10f2d63a
VZ
6109 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
6110 if test "x$LINE" != x ; then
6111 eval "DEFAULT_$LINE"
6112 else
6113 no_cache=1
6114 fi
6115
6116 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
698dcdb6
VZ
6117
6118fi
10f2d63a
VZ
6119
6120
6121 eval "$ac_cv_use_slider"
6122 if test "$no_cache" != 1; then
6123 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
6124 fi
6125
6126 if test "$wxUSE_SLIDER" = yes; then
698dcdb6 6127 echo "$ac_t""yes" 1>&6
10f2d63a 6128 else
698dcdb6 6129 echo "$ac_t""no" 1>&6
10f2d63a 6130 fi
698dcdb6 6131
10f2d63a 6132
698dcdb6 6133 echo $ac_n "checking for --enable-spinbtn""... $ac_c" 1>&6
f9bc1684 6134echo "configure:6135: checking for --enable-spinbtn" >&5
10f2d63a
VZ
6135 no_cache=0
6136 # Check whether --enable-spinbtn or --disable-spinbtn was given.
6137if test "${enable_spinbtn+set}" = set; then
6138 enableval="$enable_spinbtn"
698dcdb6 6139
10f2d63a
VZ
6140 if test "$enableval" = yes; then
6141 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
6142 else
6143 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
6144 fi
698dcdb6 6145
10f2d63a 6146else
698dcdb6 6147
10f2d63a
VZ
6148 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
6149 if test "x$LINE" != x ; then
6150 eval "DEFAULT_$LINE"
6151 else
6152 no_cache=1
6153 fi
6154
6155 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
698dcdb6
VZ
6156
6157fi
10f2d63a
VZ
6158
6159
6160 eval "$ac_cv_use_spinbtn"
6161 if test "$no_cache" != 1; then
6162 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
6163 fi
6164
6165 if test "$wxUSE_SPINBTN" = yes; then
698dcdb6 6166 echo "$ac_t""yes" 1>&6
10f2d63a 6167 else
698dcdb6 6168 echo "$ac_t""no" 1>&6
10f2d63a 6169 fi
698dcdb6 6170
10f2d63a 6171
698dcdb6 6172 echo $ac_n "checking for --enable-spinctrl""... $ac_c" 1>&6
f9bc1684 6173echo "configure:6174: checking for --enable-spinctrl" >&5
56cfaa52
RR
6174 no_cache=0
6175 # Check whether --enable-spinctrl or --disable-spinctrl was given.
6176if test "${enable_spinctrl+set}" = set; then
6177 enableval="$enable_spinctrl"
698dcdb6 6178
56cfaa52
RR
6179 if test "$enableval" = yes; then
6180 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
6181 else
6182 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
6183 fi
698dcdb6 6184
56cfaa52 6185else
698dcdb6 6186
56cfaa52
RR
6187 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
6188 if test "x$LINE" != x ; then
6189 eval "DEFAULT_$LINE"
6190 else
6191 no_cache=1
6192 fi
6193
6194 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
698dcdb6
VZ
6195
6196fi
56cfaa52
RR
6197
6198
6199 eval "$ac_cv_use_spinctrl"
6200 if test "$no_cache" != 1; then
6201 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
6202 fi
6203
6204 if test "$wxUSE_SPINCTRL" = yes; then
698dcdb6 6205 echo "$ac_t""yes" 1>&6
56cfaa52 6206 else
698dcdb6 6207 echo "$ac_t""no" 1>&6
56cfaa52 6208 fi
698dcdb6 6209
56cfaa52 6210
698dcdb6 6211 echo $ac_n "checking for --enable-splitter""... $ac_c" 1>&6
f9bc1684 6212echo "configure:6213: checking for --enable-splitter" >&5
10f2d63a
VZ
6213 no_cache=0
6214 # Check whether --enable-splitter or --disable-splitter was given.
6215if test "${enable_splitter+set}" = set; then
6216 enableval="$enable_splitter"
698dcdb6 6217
10f2d63a
VZ
6218 if test "$enableval" = yes; then
6219 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
6220 else
6221 ac_cv_use_splitter='wxUSE_SPLITTER=no'
6222 fi
698dcdb6 6223
10f2d63a 6224else
698dcdb6 6225
10f2d63a
VZ
6226 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
6227 if test "x$LINE" != x ; then
6228 eval "DEFAULT_$LINE"
6229 else
6230 no_cache=1
6231 fi
6232
6233 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
698dcdb6
VZ
6234
6235fi
10f2d63a
VZ
6236
6237
6238 eval "$ac_cv_use_splitter"
6239 if test "$no_cache" != 1; then
6240 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
6241 fi
6242
6243 if test "$wxUSE_SPLITTER" = yes; then
698dcdb6 6244 echo "$ac_t""yes" 1>&6
10f2d63a 6245 else
698dcdb6 6246 echo "$ac_t""no" 1>&6
10f2d63a 6247 fi
698dcdb6 6248
10f2d63a 6249
698dcdb6 6250 echo $ac_n "checking for --enable-statbmp""... $ac_c" 1>&6
f9bc1684 6251echo "configure:6252: checking for --enable-statbmp" >&5
10f2d63a
VZ
6252 no_cache=0
6253 # Check whether --enable-statbmp or --disable-statbmp was given.
6254if test "${enable_statbmp+set}" = set; then
6255 enableval="$enable_statbmp"
698dcdb6 6256
10f2d63a
VZ
6257 if test "$enableval" = yes; then
6258 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
6259 else
6260 ac_cv_use_statbmp='wxUSE_STATBMP=no'
6261 fi
698dcdb6 6262
10f2d63a 6263else
698dcdb6 6264
10f2d63a
VZ
6265 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
6266 if test "x$LINE" != x ; then
6267 eval "DEFAULT_$LINE"
6268 else
6269 no_cache=1
6270 fi
6271
6272 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
698dcdb6
VZ
6273
6274fi
10f2d63a
VZ
6275
6276
6277 eval "$ac_cv_use_statbmp"
6278 if test "$no_cache" != 1; then
6279 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
6280 fi
6281
6282 if test "$wxUSE_STATBMP" = yes; then
698dcdb6 6283 echo "$ac_t""yes" 1>&6
10f2d63a 6284 else
698dcdb6 6285 echo "$ac_t""no" 1>&6
10f2d63a 6286 fi
698dcdb6 6287
10f2d63a 6288
698dcdb6 6289 echo $ac_n "checking for --enable-statbox""... $ac_c" 1>&6
f9bc1684 6290echo "configure:6291: checking for --enable-statbox" >&5
10f2d63a
VZ
6291 no_cache=0
6292 # Check whether --enable-statbox or --disable-statbox was given.
6293if test "${enable_statbox+set}" = set; then
6294 enableval="$enable_statbox"
698dcdb6 6295
10f2d63a
VZ
6296 if test "$enableval" = yes; then
6297 ac_cv_use_statbox='wxUSE_STATBOX=yes'
6298 else
6299 ac_cv_use_statbox='wxUSE_STATBOX=no'
6300 fi
698dcdb6 6301
10f2d63a 6302else
698dcdb6 6303
10f2d63a
VZ
6304 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
6305 if test "x$LINE" != x ; then
6306 eval "DEFAULT_$LINE"
6307 else
6308 no_cache=1
6309 fi
6310
6311 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
698dcdb6
VZ
6312
6313fi
10f2d63a
VZ
6314
6315
6316 eval "$ac_cv_use_statbox"
6317 if test "$no_cache" != 1; then
6318 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
6319 fi
6320
6321 if test "$wxUSE_STATBOX" = yes; then
698dcdb6 6322 echo "$ac_t""yes" 1>&6
10f2d63a 6323 else
698dcdb6 6324 echo "$ac_t""no" 1>&6
10f2d63a 6325 fi
698dcdb6 6326
10f2d63a 6327
698dcdb6 6328 echo $ac_n "checking for --enable-statline""... $ac_c" 1>&6
f9bc1684 6329echo "configure:6330: checking for --enable-statline" >&5
10f2d63a
VZ
6330 no_cache=0
6331 # Check whether --enable-statline or --disable-statline was given.
6332if test "${enable_statline+set}" = set; then
6333 enableval="$enable_statline"
698dcdb6 6334
10f2d63a
VZ
6335 if test "$enableval" = yes; then
6336 ac_cv_use_statline='wxUSE_STATLINE=yes'
6337 else
6338 ac_cv_use_statline='wxUSE_STATLINE=no'
6339 fi
698dcdb6 6340
10f2d63a 6341else
698dcdb6 6342
10f2d63a
VZ
6343 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
6344 if test "x$LINE" != x ; then
6345 eval "DEFAULT_$LINE"
6346 else
6347 no_cache=1
6348 fi
6349
6350 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
698dcdb6
VZ
6351
6352fi
10f2d63a
VZ
6353
6354
6355 eval "$ac_cv_use_statline"
6356 if test "$no_cache" != 1; then
6357 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
6358 fi
6359
6360 if test "$wxUSE_STATLINE" = yes; then
698dcdb6 6361 echo "$ac_t""yes" 1>&6
10f2d63a 6362 else
698dcdb6 6363 echo "$ac_t""no" 1>&6
10f2d63a 6364 fi
698dcdb6 6365
10f2d63a 6366
1e6feb95 6367 echo $ac_n "checking for --enable-stattext""... $ac_c" 1>&6
f9bc1684 6368echo "configure:6369: checking for --enable-stattext" >&5
1e6feb95
VZ
6369 no_cache=0
6370 # Check whether --enable-stattext or --disable-stattext was given.
6371if test "${enable_stattext+set}" = set; then
6372 enableval="$enable_stattext"
6373
6374 if test "$enableval" = yes; then
6375 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
6376 else
6377 ac_cv_use_stattext='wxUSE_STATTEXT=no'
6378 fi
6379
6380else
6381
6382 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
6383 if test "x$LINE" != x ; then
6384 eval "DEFAULT_$LINE"
6385 else
6386 no_cache=1
6387 fi
6388
6389 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
6390
6391fi
6392
6393
6394 eval "$ac_cv_use_stattext"
6395 if test "$no_cache" != 1; then
6396 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
6397 fi
6398
6399 if test "$wxUSE_STATTEXT" = yes; then
6400 echo "$ac_t""yes" 1>&6
6401 else
6402 echo "$ac_t""no" 1>&6
6403 fi
6404
6405
698dcdb6 6406 echo $ac_n "checking for --enable-statusbar""... $ac_c" 1>&6
f9bc1684 6407echo "configure:6408: checking for --enable-statusbar" >&5
10f2d63a
VZ
6408 no_cache=0
6409 # Check whether --enable-statusbar or --disable-statusbar was given.
6410if test "${enable_statusbar+set}" = set; then
6411 enableval="$enable_statusbar"
698dcdb6 6412
10f2d63a
VZ
6413 if test "$enableval" = yes; then
6414 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
6415 else
6416 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
6417 fi
698dcdb6 6418
10f2d63a 6419else
698dcdb6 6420
10f2d63a
VZ
6421 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
6422 if test "x$LINE" != x ; then
6423 eval "DEFAULT_$LINE"
6424 else
6425 no_cache=1
6426 fi
6427
6428 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
698dcdb6
VZ
6429
6430fi
10f2d63a
VZ
6431
6432
6433 eval "$ac_cv_use_statusbar"
6434 if test "$no_cache" != 1; then
6435 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
6436 fi
6437
6438 if test "$wxUSE_STATUSBAR" = yes; then
698dcdb6 6439 echo "$ac_t""yes" 1>&6
10f2d63a 6440 else
698dcdb6 6441 echo "$ac_t""no" 1>&6
10f2d63a 6442 fi
698dcdb6 6443
10f2d63a 6444
698dcdb6 6445 echo $ac_n "checking for --enable-tabdialog""... $ac_c" 1>&6
f9bc1684 6446echo "configure:6447: checking for --enable-tabdialog" >&5
10f2d63a
VZ
6447 no_cache=0
6448 # Check whether --enable-tabdialog or --disable-tabdialog was given.
6449if test "${enable_tabdialog+set}" = set; then
6450 enableval="$enable_tabdialog"
698dcdb6 6451
10f2d63a
VZ
6452 if test "$enableval" = yes; then
6453 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
6454 else
6455 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
6456 fi
698dcdb6 6457
10f2d63a 6458else
698dcdb6 6459
10f2d63a
VZ
6460 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
6461 if test "x$LINE" != x ; then
6462 eval "DEFAULT_$LINE"
6463 else
6464 no_cache=1
6465 fi
6466
6467 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
698dcdb6
VZ
6468
6469fi
10f2d63a
VZ
6470
6471
6472 eval "$ac_cv_use_tabdialog"
6473 if test "$no_cache" != 1; then
6474 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
6475 fi
6476
6477 if test "$wxUSE_TABDIALOG" = yes; then
698dcdb6 6478 echo "$ac_t""yes" 1>&6
10f2d63a 6479 else
698dcdb6 6480 echo "$ac_t""no" 1>&6
10f2d63a 6481 fi
698dcdb6 6482
10f2d63a 6483
1e6feb95 6484 echo $ac_n "checking for --enable-textctrl""... $ac_c" 1>&6
f9bc1684 6485echo "configure:6486: checking for --enable-textctrl" >&5
1e6feb95
VZ
6486 no_cache=0
6487 # Check whether --enable-textctrl or --disable-textctrl was given.
6488if test "${enable_textctrl+set}" = set; then
6489 enableval="$enable_textctrl"
6490
6491 if test "$enableval" = yes; then
6492 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
6493 else
6494 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
6495 fi
6496
6497else
6498
6499 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
6500 if test "x$LINE" != x ; then
6501 eval "DEFAULT_$LINE"
6502 else
6503 no_cache=1
6504 fi
6505
6506 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
6507
6508fi
6509
6510
6511 eval "$ac_cv_use_textctrl"
6512 if test "$no_cache" != 1; then
6513 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
6514 fi
6515
6516 if test "$wxUSE_TEXTCTRL" = yes; then
6517 echo "$ac_t""yes" 1>&6
6518 else
6519 echo "$ac_t""no" 1>&6
6520 fi
6521
6522
698dcdb6 6523 echo $ac_n "checking for --enable-togglebtn""... $ac_c" 1>&6
f9bc1684 6524echo "configure:6525: checking for --enable-togglebtn" >&5
1db8dc4a
VZ
6525 no_cache=0
6526 # Check whether --enable-togglebtn or --disable-togglebtn was given.
6527if test "${enable_togglebtn+set}" = set; then
6528 enableval="$enable_togglebtn"
698dcdb6 6529
1db8dc4a
VZ
6530 if test "$enableval" = yes; then
6531 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
6532 else
6533 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
6534 fi
698dcdb6 6535
1db8dc4a 6536else
698dcdb6 6537
1db8dc4a
VZ
6538 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
6539 if test "x$LINE" != x ; then
6540 eval "DEFAULT_$LINE"
6541 else
6542 no_cache=1
6543 fi
6544
6545 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
698dcdb6
VZ
6546
6547fi
1db8dc4a
VZ
6548
6549
6550 eval "$ac_cv_use_togglebtn"
6551 if test "$no_cache" != 1; then
6552 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
6553 fi
6554
6555 if test "$wxUSE_TOGGLEBTN" = yes; then
698dcdb6 6556 echo "$ac_t""yes" 1>&6
1db8dc4a 6557 else
698dcdb6 6558 echo "$ac_t""no" 1>&6
1db8dc4a 6559 fi
698dcdb6 6560
1db8dc4a 6561
698dcdb6 6562 echo $ac_n "checking for --enable-toolbar""... $ac_c" 1>&6
f9bc1684 6563echo "configure:6564: checking for --enable-toolbar" >&5
10f2d63a
VZ
6564 no_cache=0
6565 # Check whether --enable-toolbar or --disable-toolbar was given.
6566if test "${enable_toolbar+set}" = set; then
6567 enableval="$enable_toolbar"
698dcdb6 6568
10f2d63a
VZ
6569 if test "$enableval" = yes; then
6570 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
6571 else
6572 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
6573 fi
698dcdb6 6574
10f2d63a 6575else
698dcdb6 6576
10f2d63a
VZ
6577 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
6578 if test "x$LINE" != x ; then
6579 eval "DEFAULT_$LINE"
6580 else
6581 no_cache=1
6582 fi
6583
6584 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
698dcdb6
VZ
6585
6586fi
10f2d63a
VZ
6587
6588
6589 eval "$ac_cv_use_toolbar"
6590 if test "$no_cache" != 1; then
6591 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
6592 fi
6593
6594 if test "$wxUSE_TOOLBAR" = yes; then
698dcdb6 6595 echo "$ac_t""yes" 1>&6
10f2d63a 6596 else
698dcdb6 6597 echo "$ac_t""no" 1>&6
10f2d63a 6598 fi
698dcdb6 6599
10f2d63a 6600
698dcdb6 6601 echo $ac_n "checking for --enable-tbarnative""... $ac_c" 1>&6
f9bc1684 6602echo "configure:6603: checking for --enable-tbarnative" >&5
360d6699
VZ
6603 no_cache=0
6604 # Check whether --enable-tbarnative or --disable-tbarnative was given.
6605if test "${enable_tbarnative+set}" = set; then
6606 enableval="$enable_tbarnative"
698dcdb6 6607
360d6699
VZ
6608 if test "$enableval" = yes; then
6609 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
6610 else
6611 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
6612 fi
698dcdb6 6613
360d6699 6614else
698dcdb6 6615
360d6699
VZ
6616 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
6617 if test "x$LINE" != x ; then
6618 eval "DEFAULT_$LINE"
6619 else
6620 no_cache=1
6621 fi
6622
6623 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
698dcdb6
VZ
6624
6625fi
360d6699
VZ
6626
6627
6628 eval "$ac_cv_use_tbarnative"
6629 if test "$no_cache" != 1; then
6630 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
6631 fi
6632
6633 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
698dcdb6 6634 echo "$ac_t""yes" 1>&6
360d6699 6635 else
698dcdb6 6636 echo "$ac_t""no" 1>&6
360d6699 6637 fi
698dcdb6 6638
360d6699 6639
698dcdb6 6640 echo $ac_n "checking for --enable-tbarsmpl""... $ac_c" 1>&6
f9bc1684 6641echo "configure:6642: checking for --enable-tbarsmpl" >&5
360d6699
VZ
6642 no_cache=0
6643 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
6644if test "${enable_tbarsmpl+set}" = set; then
6645 enableval="$enable_tbarsmpl"
698dcdb6 6646
360d6699
VZ
6647 if test "$enableval" = yes; then
6648 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
6649 else
6650 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
6651 fi
698dcdb6 6652
360d6699 6653else
698dcdb6 6654
360d6699
VZ
6655 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
6656 if test "x$LINE" != x ; then
6657 eval "DEFAULT_$LINE"
6658 else
6659 no_cache=1
6660 fi
6661
6662 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
698dcdb6
VZ
6663
6664fi
360d6699
VZ
6665
6666
6667 eval "$ac_cv_use_tbarsmpl"
6668 if test "$no_cache" != 1; then
6669 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
6670 fi
6671
6672 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
698dcdb6 6673 echo "$ac_t""yes" 1>&6
360d6699 6674 else
698dcdb6 6675 echo "$ac_t""no" 1>&6
360d6699 6676 fi
698dcdb6 6677
360d6699 6678
698dcdb6 6679 echo $ac_n "checking for --enable-treectrl""... $ac_c" 1>&6
f9bc1684 6680echo "configure:6681: checking for --enable-treectrl" >&5
10f2d63a
VZ
6681 no_cache=0
6682 # Check whether --enable-treectrl or --disable-treectrl was given.
6683if test "${enable_treectrl+set}" = set; then
6684 enableval="$enable_treectrl"
698dcdb6 6685
10f2d63a
VZ
6686 if test "$enableval" = yes; then
6687 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
6688 else
6689 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
6690 fi
698dcdb6 6691
10f2d63a 6692else
698dcdb6 6693
10f2d63a
VZ
6694 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
6695 if test "x$LINE" != x ; then
6696 eval "DEFAULT_$LINE"
6697 else
6698 no_cache=1
6699 fi
6700
6701 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
698dcdb6
VZ
6702
6703fi
10f2d63a
VZ
6704
6705
1e6feb95
VZ
6706 eval "$ac_cv_use_treectrl"
6707 if test "$no_cache" != 1; then
6708 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
6709 fi
6710
6711 if test "$wxUSE_TREECTRL" = yes; then
6712 echo "$ac_t""yes" 1>&6
6713 else
6714 echo "$ac_t""no" 1>&6
6715 fi
6716
6717
9926e4a4 6718 echo $ac_n "checking for --enable-tipwindow""... $ac_c" 1>&6
f9bc1684 6719echo "configure:6720: checking for --enable-tipwindow" >&5
9926e4a4
VZ
6720 no_cache=0
6721 # Check whether --enable-tipwindow or --disable-tipwindow was given.
6722if test "${enable_tipwindow+set}" = set; then
6723 enableval="$enable_tipwindow"
6724
6725 if test "$enableval" = yes; then
6726 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
6727 else
6728 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
6729 fi
6730
6731else
6732
6733 LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
6734 if test "x$LINE" != x ; then
6735 eval "DEFAULT_$LINE"
6736 else
6737 no_cache=1
6738 fi
6739
6740 ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
6741
6742fi
6743
6744
6745 eval "$ac_cv_use_tipwindow"
6746 if test "$no_cache" != 1; then
6747 echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
6748 fi
6749
6750 if test "$wxUSE_TIPWINDOW" = yes; then
6751 echo "$ac_t""yes" 1>&6
6752 else
6753 echo "$ac_t""no" 1>&6
6754 fi
6755
6756
9f41d601 6757 echo $ac_n "checking for --enable-popupwin""... $ac_c" 1>&6
f9bc1684 6758echo "configure:6759: checking for --enable-popupwin" >&5
9f41d601
RR
6759 no_cache=0
6760 # Check whether --enable-popupwin or --disable-popupwin was given.
6761if test "${enable_popupwin+set}" = set; then
6762 enableval="$enable_popupwin"
6763
6764 if test "$enableval" = yes; then
6765 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
6766 else
6767 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
6768 fi
6769
6770else
6771
6772 LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
6773 if test "x$LINE" != x ; then
6774 eval "DEFAULT_$LINE"
6775 else
6776 no_cache=1
6777 fi
6778
6779 ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
6780
6781fi
6782
6783
6784 eval "$ac_cv_use_popupwin"
6785 if test "$no_cache" != 1; then
6786 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
6787 fi
6788
6789 if test "$wxUSE_POPUPWIN" = yes; then
6790 echo "$ac_t""yes" 1>&6
6791 else
6792 echo "$ac_t""no" 1>&6
6793 fi
6794
6795
1e6feb95
VZ
6796
6797
6798 echo $ac_n "checking for --enable-commondlg""... $ac_c" 1>&6
f9bc1684 6799echo "configure:6800: checking for --enable-commondlg" >&5
1e6feb95
VZ
6800 no_cache=0
6801 # Check whether --enable-commondlg or --disable-commondlg was given.
6802if test "${enable_commondlg+set}" = set; then
6803 enableval="$enable_commondlg"
6804
6805 if test "$enableval" = yes; then
6806 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
6807 else
6808 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
6809 fi
6810
6811else
6812
6813 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
6814 if test "x$LINE" != x ; then
6815 eval "DEFAULT_$LINE"
6816 else
6817 no_cache=1
6818 fi
6819
6820 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
6821
6822fi
6823
6824
6825 eval "$ac_cv_use_commondlg"
6826 if test "$no_cache" != 1; then
6827 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
6828 fi
6829
6830 if test "$wxUSE_COMMONDLGS" = yes; then
6831 echo "$ac_t""yes" 1>&6
6832 else
6833 echo "$ac_t""no" 1>&6
6834 fi
6835
6836
6837 echo $ac_n "checking for --enable-choicedlg""... $ac_c" 1>&6
f9bc1684 6838echo "configure:6839: checking for --enable-choicedlg" >&5
1e6feb95
VZ
6839 no_cache=0
6840 # Check whether --enable-choicedlg or --disable-choicedlg was given.
6841if test "${enable_choicedlg+set}" = set; then
6842 enableval="$enable_choicedlg"
6843
6844 if test "$enableval" = yes; then
6845 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
6846 else
6847 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
6848 fi
6849
6850else
6851
6852 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
6853 if test "x$LINE" != x ; then
6854 eval "DEFAULT_$LINE"
6855 else
6856 no_cache=1
6857 fi
6858
6859 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
6860
6861fi
6862
6863
6864 eval "$ac_cv_use_choicedlg"
6865 if test "$no_cache" != 1; then
6866 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
6867 fi
6868
6869 if test "$wxUSE_CHOICEDLG" = yes; then
6870 echo "$ac_t""yes" 1>&6
6871 else
6872 echo "$ac_t""no" 1>&6
6873 fi
6874
6875
6876 echo $ac_n "checking for --enable-coldlg""... $ac_c" 1>&6
f9bc1684 6877echo "configure:6878: checking for --enable-coldlg" >&5
1e6feb95
VZ
6878 no_cache=0
6879 # Check whether --enable-coldlg or --disable-coldlg was given.
6880if test "${enable_coldlg+set}" = set; then
6881 enableval="$enable_coldlg"
6882
6883 if test "$enableval" = yes; then
6884 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
6885 else
6886 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
6887 fi
6888
6889else
6890
6891 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
6892 if test "x$LINE" != x ; then
6893 eval "DEFAULT_$LINE"
6894 else
6895 no_cache=1
6896 fi
6897
6898 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
6899
6900fi
6901
6902
6903 eval "$ac_cv_use_coldlg"
6904 if test "$no_cache" != 1; then
6905 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
6906 fi
6907
6908 if test "$wxUSE_COLOURDLG" = yes; then
6909 echo "$ac_t""yes" 1>&6
6910 else
6911 echo "$ac_t""no" 1>&6
6912 fi
6913
6914
6915 echo $ac_n "checking for --enable-filedlg""... $ac_c" 1>&6
f9bc1684 6916echo "configure:6917: checking for --enable-filedlg" >&5
1e6feb95
VZ
6917 no_cache=0
6918 # Check whether --enable-filedlg or --disable-filedlg was given.
6919if test "${enable_filedlg+set}" = set; then
6920 enableval="$enable_filedlg"
6921
6922 if test "$enableval" = yes; then
6923 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
6924 else
6925 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
6926 fi
6927
6928else
6929
6930 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
6931 if test "x$LINE" != x ; then
6932 eval "DEFAULT_$LINE"
6933 else
6934 no_cache=1
6935 fi
6936
6937 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
6938
6939fi
6940
6941
6942 eval "$ac_cv_use_filedlg"
6943 if test "$no_cache" != 1; then
6944 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
6945 fi
6946
6947 if test "$wxUSE_FILEDLG" = yes; then
6948 echo "$ac_t""yes" 1>&6
6949 else
6950 echo "$ac_t""no" 1>&6
6951 fi
6952
6953
69d27ff7 6954 echo $ac_n "checking for --enable-finddlg""... $ac_c" 1>&6
f9bc1684 6955echo "configure:6956: checking for --enable-finddlg" >&5
8db37e06 6956 no_cache=0
69d27ff7
MB
6957 # Check whether --enable-finddlg or --disable-finddlg was given.
6958if test "${enable_finddlg+set}" = set; then
6959 enableval="$enable_finddlg"
8db37e06
VZ
6960
6961 if test "$enableval" = yes; then
69d27ff7 6962 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
8db37e06 6963 else
69d27ff7 6964 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
8db37e06
VZ
6965 fi
6966
6967else
6968
6969 LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
6970 if test "x$LINE" != x ; then
6971 eval "DEFAULT_$LINE"
6972 else
6973 no_cache=1
6974 fi
6975
69d27ff7 6976 ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
8db37e06
VZ
6977
6978fi
6979
6980
69d27ff7 6981 eval "$ac_cv_use_finddlg"
8db37e06 6982 if test "$no_cache" != 1; then
69d27ff7 6983 echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
8db37e06
VZ
6984 fi
6985
6986 if test "$wxUSE_FINDREPLDLG" = yes; then
6987 echo "$ac_t""yes" 1>&6
6988 else
6989 echo "$ac_t""no" 1>&6
6990 fi
6991
6992
1e6feb95 6993 echo $ac_n "checking for --enable-fontdlg""... $ac_c" 1>&6
f9bc1684 6994echo "configure:6995: checking for --enable-fontdlg" >&5
1e6feb95
VZ
6995 no_cache=0
6996 # Check whether --enable-fontdlg or --disable-fontdlg was given.
6997if test "${enable_fontdlg+set}" = set; then
6998 enableval="$enable_fontdlg"
6999
7000 if test "$enableval" = yes; then
7001 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
7002 else
7003 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
7004 fi
7005
7006else
7007
7008 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
7009 if test "x$LINE" != x ; then
7010 eval "DEFAULT_$LINE"
7011 else
7012 no_cache=1
7013 fi
7014
7015 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
7016
7017fi
7018
7019
7020 eval "$ac_cv_use_fontdlg"
7021 if test "$no_cache" != 1; then
7022 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
7023 fi
7024
7025 if test "$wxUSE_FONTDLG" = yes; then
7026 echo "$ac_t""yes" 1>&6
7027 else
7028 echo "$ac_t""no" 1>&6
7029 fi
7030
7031
7032 echo $ac_n "checking for --enable-dirdlg""... $ac_c" 1>&6
f9bc1684 7033echo "configure:7034: checking for --enable-dirdlg" >&5
1e6feb95
VZ
7034 no_cache=0
7035 # Check whether --enable-dirdlg or --disable-dirdlg was given.
7036if test "${enable_dirdlg+set}" = set; then
7037 enableval="$enable_dirdlg"
7038
7039 if test "$enableval" = yes; then
7040 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
7041 else
7042 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
7043 fi
7044
7045else
7046
7047 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
7048 if test "x$LINE" != x ; then
7049 eval "DEFAULT_$LINE"
7050 else
7051 no_cache=1
7052 fi
7053
7054 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
7055
7056fi
7057
7058
7059 eval "$ac_cv_use_dirdlg"
10f2d63a 7060 if test "$no_cache" != 1; then
1e6feb95 7061 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
7062 fi
7063
1e6feb95 7064 if test "$wxUSE_DIRDLG" = yes; then
698dcdb6 7065 echo "$ac_t""yes" 1>&6
10f2d63a 7066 else
698dcdb6 7067 echo "$ac_t""no" 1>&6
10f2d63a 7068 fi
698dcdb6
VZ
7069
7070
1e6feb95 7071 echo $ac_n "checking for --enable-msgdlg""... $ac_c" 1>&6
f9bc1684 7072echo "configure:7073: checking for --enable-msgdlg" >&5
10f2d63a 7073 no_cache=0
1e6feb95
VZ
7074 # Check whether --enable-msgdlg or --disable-msgdlg was given.
7075if test "${enable_msgdlg+set}" = set; then
7076 enableval="$enable_msgdlg"
698dcdb6 7077
10f2d63a 7078 if test "$enableval" = yes; then
1e6feb95 7079 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
10f2d63a 7080 else
1e6feb95 7081 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
10f2d63a 7082 fi
698dcdb6 7083
10f2d63a 7084else
698dcdb6 7085
1e6feb95 7086 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
10f2d63a
VZ
7087 if test "x$LINE" != x ; then
7088 eval "DEFAULT_$LINE"
7089 else
7090 no_cache=1
7091 fi
7092
1e6feb95 7093 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
698dcdb6
VZ
7094
7095fi
10f2d63a
VZ
7096
7097
1e6feb95 7098 eval "$ac_cv_use_msgdlg"
10f2d63a 7099 if test "$no_cache" != 1; then
1e6feb95 7100 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
7101 fi
7102
1e6feb95 7103 if test "$wxUSE_MSGDLG" = yes; then
698dcdb6 7104 echo "$ac_t""yes" 1>&6
10f2d63a 7105 else
698dcdb6 7106 echo "$ac_t""no" 1>&6
10f2d63a 7107 fi
698dcdb6 7108
10f2d63a 7109
1e6feb95 7110 echo $ac_n "checking for --enable-numberdlg""... $ac_c" 1>&6
f9bc1684 7111echo "configure:7112: checking for --enable-numberdlg" >&5
10f2d63a 7112 no_cache=0
1e6feb95
VZ
7113 # Check whether --enable-numberdlg or --disable-numberdlg was given.
7114if test "${enable_numberdlg+set}" = set; then
7115 enableval="$enable_numberdlg"
698dcdb6 7116
10f2d63a 7117 if test "$enableval" = yes; then
1e6feb95 7118 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
10f2d63a 7119 else
1e6feb95 7120 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
10f2d63a 7121 fi
698dcdb6 7122
10f2d63a 7123else
698dcdb6 7124
1e6feb95 7125 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
10f2d63a
VZ
7126 if test "x$LINE" != x ; then
7127 eval "DEFAULT_$LINE"
7128 else
7129 no_cache=1
7130 fi
7131
1e6feb95 7132 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
698dcdb6
VZ
7133
7134fi
10f2d63a
VZ
7135
7136
1e6feb95 7137 eval "$ac_cv_use_numberdlg"
10f2d63a 7138 if test "$no_cache" != 1; then
1e6feb95 7139 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
7140 fi
7141
1e6feb95 7142 if test "$wxUSE_NUMBERDLG" = yes; then
698dcdb6 7143 echo "$ac_t""yes" 1>&6
10f2d63a 7144 else
698dcdb6 7145 echo "$ac_t""no" 1>&6
10f2d63a 7146 fi
698dcdb6 7147
10f2d63a 7148
cbca9943 7149 echo $ac_n "checking for --enable-splash""... $ac_c" 1>&6
f9bc1684 7150echo "configure:7151: checking for --enable-splash" >&5
cbca9943
VZ
7151 no_cache=0
7152 # Check whether --enable-splash or --disable-splash was given.
7153if test "${enable_splash+set}" = set; then
7154 enableval="$enable_splash"
7155
7156 if test "$enableval" = yes; then
7157 ac_cv_use_splash='wxUSE_SPLASH=yes'
7158 else
7159 ac_cv_use_splash='wxUSE_SPLASH=no'
7160 fi
7161
7162else
7163
7164 LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
7165 if test "x$LINE" != x ; then
7166 eval "DEFAULT_$LINE"
7167 else
7168 no_cache=1
7169 fi
7170
7171 ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
7172
7173fi
7174
7175
7176 eval "$ac_cv_use_splash"
7177 if test "$no_cache" != 1; then
7178 echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
7179 fi
7180
7181 if test "$wxUSE_SPLASH" = yes; then
7182 echo "$ac_t""yes" 1>&6
7183 else
7184 echo "$ac_t""no" 1>&6
7185 fi
7186
7187
698dcdb6 7188 echo $ac_n "checking for --enable-textdlg""... $ac_c" 1>&6
f9bc1684 7189echo "configure:7190: checking for --enable-textdlg" >&5
10f2d63a
VZ
7190 no_cache=0
7191 # Check whether --enable-textdlg or --disable-textdlg was given.
7192if test "${enable_textdlg+set}" = set; then
7193 enableval="$enable_textdlg"
698dcdb6 7194
10f2d63a
VZ
7195 if test "$enableval" = yes; then
7196 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
7197 else
7198 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
7199 fi
698dcdb6 7200
10f2d63a 7201else
698dcdb6 7202
10f2d63a
VZ
7203 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
7204 if test "x$LINE" != x ; then
7205 eval "DEFAULT_$LINE"
7206 else
7207 no_cache=1
7208 fi
7209
7210 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
698dcdb6
VZ
7211
7212fi
10f2d63a
VZ
7213
7214
7215 eval "$ac_cv_use_textdlg"
7216 if test "$no_cache" != 1; then
7217 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
7218 fi
7219
7220 if test "$wxUSE_TEXTDLG" = yes; then
698dcdb6 7221 echo "$ac_t""yes" 1>&6
10f2d63a 7222 else
698dcdb6 7223 echo "$ac_t""no" 1>&6
10f2d63a 7224 fi
698dcdb6 7225
10f2d63a 7226
698dcdb6 7227 echo $ac_n "checking for --enable-tipdlg""... $ac_c" 1>&6
f9bc1684 7228echo "configure:7229: checking for --enable-tipdlg" >&5
10f2d63a
VZ
7229 no_cache=0
7230 # Check whether --enable-tipdlg or --disable-tipdlg was given.
7231if test "${enable_tipdlg+set}" = set; then
7232 enableval="$enable_tipdlg"
698dcdb6 7233
10f2d63a
VZ
7234 if test "$enableval" = yes; then
7235 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
7236 else
7237 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
7238 fi
698dcdb6 7239
10f2d63a 7240else
698dcdb6 7241
10f2d63a
VZ
7242 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
7243 if test "x$LINE" != x ; then
7244 eval "DEFAULT_$LINE"
7245 else
7246 no_cache=1
7247 fi
7248
7249 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
698dcdb6
VZ
7250
7251fi
10f2d63a
VZ
7252
7253
7254 eval "$ac_cv_use_tipdlg"
7255 if test "$no_cache" != 1; then
7256 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
7257 fi
7258
7259 if test "$wxUSE_STARTUP_TIPS" = yes; then
698dcdb6 7260 echo "$ac_t""yes" 1>&6
10f2d63a 7261 else
698dcdb6 7262 echo "$ac_t""no" 1>&6
10f2d63a 7263 fi
698dcdb6 7264
10f2d63a 7265
698dcdb6 7266 echo $ac_n "checking for --enable-progressdlg""... $ac_c" 1>&6
f9bc1684 7267echo "configure:7268: checking for --enable-progressdlg" >&5
10f2d63a
VZ
7268 no_cache=0
7269 # Check whether --enable-progressdlg or --disable-progressdlg was given.
7270if test "${enable_progressdlg+set}" = set; then
7271 enableval="$enable_progressdlg"
698dcdb6 7272
10f2d63a
VZ
7273 if test "$enableval" = yes; then
7274 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
7275 else
7276 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
7277 fi
698dcdb6 7278
10f2d63a 7279else
698dcdb6 7280
10f2d63a
VZ
7281 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
7282 if test "x$LINE" != x ; then
7283 eval "DEFAULT_$LINE"
7284 else
7285 no_cache=1
7286 fi
7287
7288 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
698dcdb6
VZ
7289
7290fi
10f2d63a
VZ
7291
7292
7293 eval "$ac_cv_use_progressdlg"
7294 if test "$no_cache" != 1; then
7295 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
7296 fi
7297
7298 if test "$wxUSE_PROGRESSDLG" = yes; then
698dcdb6 7299 echo "$ac_t""yes" 1>&6
10f2d63a 7300 else
698dcdb6 7301 echo "$ac_t""no" 1>&6
10f2d63a 7302 fi
698dcdb6 7303
10f2d63a 7304
b1f5d087 7305 echo $ac_n "checking for --enable-wizarddlg""... $ac_c" 1>&6
f9bc1684 7306echo "configure:7307: checking for --enable-wizarddlg" >&5
b1f5d087
VZ
7307 no_cache=0
7308 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
7309if test "${enable_wizarddlg+set}" = set; then
7310 enableval="$enable_wizarddlg"
7311
7312 if test "$enableval" = yes; then
7313 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
7314 else
7315 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
7316 fi
7317
7318else
7319
7320 LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
7321 if test "x$LINE" != x ; then
7322 eval "DEFAULT_$LINE"
7323 else
7324 no_cache=1
7325 fi
7326
7327 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
7328
7329fi
7330
7331
7332 eval "$ac_cv_use_wizarddlg"
7333 if test "$no_cache" != 1; then
7334 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
7335 fi
7336
7337 if test "$wxUSE_WIZARDDLG" = yes; then
7338 echo "$ac_t""yes" 1>&6
7339 else
7340 echo "$ac_t""no" 1>&6
7341 fi
7342
7343
7344
7345
1e6feb95 7346 echo $ac_n "checking for --enable-menus""... $ac_c" 1>&6
f9bc1684 7347echo "configure:7348: checking for --enable-menus" >&5
1e6feb95
VZ
7348 no_cache=0
7349 # Check whether --enable-menus or --disable-menus was given.
7350if test "${enable_menus+set}" = set; then
7351 enableval="$enable_menus"
7352
7353 if test "$enableval" = yes; then
7354 ac_cv_use_menus='wxUSE_MENUS=yes'
7355 else
7356 ac_cv_use_menus='wxUSE_MENUS=no'
7357 fi
7358
7359else
7360
7361 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
7362 if test "x$LINE" != x ; then
7363 eval "DEFAULT_$LINE"
7364 else
7365 no_cache=1
7366 fi
7367
7368 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
7369
7370fi
7371
7372
7373 eval "$ac_cv_use_menus"
7374 if test "$no_cache" != 1; then
7375 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
7376 fi
7377
7378 if test "$wxUSE_MENUS" = yes; then
7379 echo "$ac_t""yes" 1>&6
7380 else
7381 echo "$ac_t""no" 1>&6
7382 fi
7383
7384
698dcdb6 7385 echo $ac_n "checking for --enable-miniframe""... $ac_c" 1>&6
f9bc1684 7386echo "configure:7387: checking for --enable-miniframe" >&5
10f2d63a
VZ
7387 no_cache=0
7388 # Check whether --enable-miniframe or --disable-miniframe was given.
7389if test "${enable_miniframe+set}" = set; then
7390 enableval="$enable_miniframe"
698dcdb6 7391
10f2d63a
VZ
7392 if test "$enableval" = yes; then
7393 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
7394 else
7395 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
7396 fi
698dcdb6 7397
10f2d63a 7398else
698dcdb6 7399
10f2d63a
VZ
7400 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
7401 if test "x$LINE" != x ; then
7402 eval "DEFAULT_$LINE"
7403 else
7404 no_cache=1
7405 fi
7406
7407 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
698dcdb6
VZ
7408
7409fi
10f2d63a
VZ
7410
7411
7412 eval "$ac_cv_use_miniframe"
7413 if test "$no_cache" != 1; then
7414 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
7415 fi
7416
7417 if test "$wxUSE_MINIFRAME" = yes; then
698dcdb6 7418 echo "$ac_t""yes" 1>&6
10f2d63a 7419 else
698dcdb6 7420 echo "$ac_t""no" 1>&6
10f2d63a 7421 fi
698dcdb6 7422
10f2d63a 7423
698dcdb6 7424 echo $ac_n "checking for --enable-tooltips""... $ac_c" 1>&6
f9bc1684 7425echo "configure:7426: checking for --enable-tooltips" >&5
10f2d63a
VZ
7426 no_cache=0
7427 # Check whether --enable-tooltips or --disable-tooltips was given.
7428if test "${enable_tooltips+set}" = set; then
7429 enableval="$enable_tooltips"
698dcdb6 7430
10f2d63a
VZ
7431 if test "$enableval" = yes; then
7432 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
7433 else
7434 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
7435 fi
698dcdb6 7436
10f2d63a 7437else
698dcdb6 7438
10f2d63a
VZ
7439 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
7440 if test "x$LINE" != x ; then
7441 eval "DEFAULT_$LINE"
7442 else
7443 no_cache=1
7444 fi
7445
7446 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
698dcdb6
VZ
7447
7448fi
10f2d63a
VZ
7449
7450
7451 eval "$ac_cv_use_tooltips"
7452 if test "$no_cache" != 1; then
7453 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
7454 fi
7455
7456 if test "$wxUSE_TOOLTIPS" = yes; then
698dcdb6 7457 echo "$ac_t""yes" 1>&6
10f2d63a 7458 else
698dcdb6 7459 echo "$ac_t""no" 1>&6
10f2d63a 7460 fi
698dcdb6 7461
10f2d63a 7462
698dcdb6 7463 echo $ac_n "checking for --enable-splines""... $ac_c" 1>&6
f9bc1684 7464echo "configure:7465: checking for --enable-splines" >&5
10f2d63a
VZ
7465 no_cache=0
7466 # Check whether --enable-splines or --disable-splines was given.
7467if test "${enable_splines+set}" = set; then
7468 enableval="$enable_splines"
698dcdb6 7469
10f2d63a
VZ
7470 if test "$enableval" = yes; then
7471 ac_cv_use_splines='wxUSE_SPLINES=yes'
7472 else
7473 ac_cv_use_splines='wxUSE_SPLINES=no'
7474 fi
698dcdb6 7475
10f2d63a 7476else
698dcdb6 7477
10f2d63a
VZ
7478 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
7479 if test "x$LINE" != x ; then
7480 eval "DEFAULT_$LINE"
7481 else
7482 no_cache=1
7483 fi
7484
7485 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
698dcdb6
VZ
7486
7487fi
10f2d63a
VZ
7488
7489
7490 eval "$ac_cv_use_splines"
7491 if test "$no_cache" != 1; then
7492 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
7493 fi
7494
7495 if test "$wxUSE_SPLINES" = yes; then
698dcdb6 7496 echo "$ac_t""yes" 1>&6
10f2d63a 7497 else
698dcdb6 7498 echo "$ac_t""no" 1>&6
10f2d63a 7499 fi
698dcdb6 7500
10f2d63a 7501
698dcdb6 7502 echo $ac_n "checking for --enable-validators""... $ac_c" 1>&6
f9bc1684 7503echo "configure:7504: checking for --enable-validators" >&5
10f2d63a
VZ
7504 no_cache=0
7505 # Check whether --enable-validators or --disable-validators was given.
7506if test "${enable_validators+set}" = set; then
7507 enableval="$enable_validators"
698dcdb6 7508
10f2d63a
VZ
7509 if test "$enableval" = yes; then
7510 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
7511 else
7512 ac_cv_use_validators='wxUSE_VALIDATORS=no'
7513 fi
698dcdb6 7514
10f2d63a 7515else
698dcdb6 7516
10f2d63a
VZ
7517 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
7518 if test "x$LINE" != x ; then
7519 eval "DEFAULT_$LINE"
7520 else
7521 no_cache=1
7522 fi
7523
7524 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
698dcdb6
VZ
7525
7526fi
10f2d63a
VZ
7527
7528
7529 eval "$ac_cv_use_validators"
7530 if test "$no_cache" != 1; then
7531 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
7532 fi
7533
7534 if test "$wxUSE_VALIDATORS" = yes; then
698dcdb6 7535 echo "$ac_t""yes" 1>&6
10f2d63a 7536 else
698dcdb6 7537 echo "$ac_t""no" 1>&6
10f2d63a 7538 fi
698dcdb6 7539
10f2d63a 7540
698dcdb6 7541 echo $ac_n "checking for --enable-busyinfo""... $ac_c" 1>&6
f9bc1684 7542echo "configure:7543: checking for --enable-busyinfo" >&5
10f2d63a
VZ
7543 no_cache=0
7544 # Check whether --enable-busyinfo or --disable-busyinfo was given.
7545if test "${enable_busyinfo+set}" = set; then
7546 enableval="$enable_busyinfo"
698dcdb6 7547
10f2d63a
VZ
7548 if test "$enableval" = yes; then
7549 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
7550 else
7551 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
7552 fi
698dcdb6 7553
10f2d63a 7554else
698dcdb6 7555
10f2d63a
VZ
7556 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
7557 if test "x$LINE" != x ; then
7558 eval "DEFAULT_$LINE"
7559 else
7560 no_cache=1
7561 fi
7562
7563 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
698dcdb6
VZ
7564
7565fi
10f2d63a
VZ
7566
7567
7568 eval "$ac_cv_use_busyinfo"
7569 if test "$no_cache" != 1; then
7570 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
7571 fi
7572
7573 if test "$wxUSE_BUSYINFO" = yes; then
698dcdb6 7574 echo "$ac_t""yes" 1>&6
10f2d63a 7575 else
698dcdb6 7576 echo "$ac_t""no" 1>&6
10f2d63a 7577 fi
698dcdb6 7578
10f2d63a 7579
698dcdb6 7580 echo $ac_n "checking for --enable-joystick""... $ac_c" 1>&6
f9bc1684 7581echo "configure:7582: checking for --enable-joystick" >&5
f6bcfd97
BP
7582 no_cache=0
7583 # Check whether --enable-joystick or --disable-joystick was given.
7584if test "${enable_joystick+set}" = set; then
7585 enableval="$enable_joystick"
698dcdb6 7586
f6bcfd97
BP
7587 if test "$enableval" = yes; then
7588 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
7589 else
7590 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
7591 fi
698dcdb6 7592
f6bcfd97 7593else
698dcdb6 7594
f6bcfd97
BP
7595 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
7596 if test "x$LINE" != x ; then
7597 eval "DEFAULT_$LINE"
7598 else
7599 no_cache=1
7600 fi
7601
7602 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
698dcdb6
VZ
7603
7604fi
f6bcfd97
BP
7605
7606
7607 eval "$ac_cv_use_joystick"
7608 if test "$no_cache" != 1; then
7609 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
7610 fi
7611
7612 if test "$wxUSE_JOYSTICK" = yes; then
698dcdb6 7613 echo "$ac_t""yes" 1>&6
f6bcfd97 7614 else
698dcdb6 7615 echo "$ac_t""no" 1>&6
f6bcfd97 7616 fi
698dcdb6
VZ
7617
7618
1e6feb95 7619 echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6
f9bc1684 7620echo "configure:7621: checking for --enable-metafile" >&5
1e6feb95
VZ
7621 no_cache=0
7622 # Check whether --enable-metafile or --disable-metafile was given.
7623if test "${enable_metafile+set}" = set; then
7624 enableval="$enable_metafile"
7625
7626 if test "$enableval" = yes; then
7627 ac_cv_use_metafile='wxUSE_METAFILE=yes'
7628 else
7629 ac_cv_use_metafile='wxUSE_METAFILE=no'
7630 fi
7631
7632else
7633
7634 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
7635 if test "x$LINE" != x ; then
7636 eval "DEFAULT_$LINE"
7637 else
7638 no_cache=1
7639 fi
7640
7641 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
7642
7643fi
7644
7645
7646 eval "$ac_cv_use_metafile"
7647 if test "$no_cache" != 1; then
7648 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
7649 fi
7650
7651 if test "$wxUSE_METAFILE" = yes; then
7652 echo "$ac_t""yes" 1>&6
7653 else
7654 echo "$ac_t""no" 1>&6
7655 fi
7656
7657
24fd6d87 7658 echo $ac_n "checking for --enable-dragimage""... $ac_c" 1>&6
f9bc1684 7659echo "configure:7660: checking for --enable-dragimage" >&5
24fd6d87
VZ
7660 no_cache=0
7661 # Check whether --enable-dragimage or --disable-dragimage was given.
7662if test "${enable_dragimage+set}" = set; then
7663 enableval="$enable_dragimage"
7664
7665 if test "$enableval" = yes; then
7666 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
7667 else
7668 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
7669 fi
7670
7671else
7672
7673 LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
7674 if test "x$LINE" != x ; then
7675 eval "DEFAULT_$LINE"
7676 else
7677 no_cache=1
7678 fi
7679
7680 ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
7681
7682fi
7683
7684
7685 eval "$ac_cv_use_dragimage"
7686 if test "$no_cache" != 1; then
7687 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
7688 fi
7689
7690 if test "$wxUSE_DRAGIMAGE" = yes; then
7691 echo "$ac_t""yes" 1>&6
7692 else
7693 echo "$ac_t""no" 1>&6
7694 fi
7695
7696
10f2d63a 7697
698dcdb6 7698
edae8572 7699 echo $ac_n "checking for --enable-palette""... $ac_c" 1>&6
f9bc1684 7700echo "configure:7701: checking for --enable-palette" >&5
edae8572
VZ
7701 no_cache=0
7702 # Check whether --enable-palette or --disable-palette was given.
7703if test "${enable_palette+set}" = set; then
7704 enableval="$enable_palette"
7705
7706 if test "$enableval" = yes; then
7707 ac_cv_use_palette='wxUSE_PALETTE=yes'
7708 else
7709 ac_cv_use_palette='wxUSE_PALETTE=no'
7710 fi
7711
7712else
7713
7714 LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
7715 if test "x$LINE" != x ; then
7716 eval "DEFAULT_$LINE"
7717 else
7718 no_cache=1
7719 fi
7720
7721 ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
7722
7723fi
7724
7725
7726 eval "$ac_cv_use_palette"
7727 if test "$no_cache" != 1; then
7728 echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
7729 fi
7730
7731 if test "$wxUSE_PALETTE" = yes; then
7732 echo "$ac_t""yes" 1>&6
7733 else
7734 echo "$ac_t""no" 1>&6
7735 fi
7736
7737
698dcdb6 7738 echo $ac_n "checking for --enable-image""... $ac_c" 1>&6
f9bc1684 7739echo "configure:7740: checking for --enable-image" >&5
0046ff7c
VS
7740 no_cache=0
7741 # Check whether --enable-image or --disable-image was given.
7742if test "${enable_image+set}" = set; then
7743 enableval="$enable_image"
698dcdb6 7744
0046ff7c
VS
7745 if test "$enableval" = yes; then
7746 ac_cv_use_image='wxUSE_IMAGE=yes'
7747 else
7748 ac_cv_use_image='wxUSE_IMAGE=no'
7749 fi
698dcdb6 7750
0046ff7c 7751else
698dcdb6 7752
0046ff7c
VS
7753 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
7754 if test "x$LINE" != x ; then
7755 eval "DEFAULT_$LINE"
7756 else
7757 no_cache=1
7758 fi
7759
7760 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
698dcdb6
VZ
7761
7762fi
0046ff7c
VS
7763
7764
7765 eval "$ac_cv_use_image"
7766 if test "$no_cache" != 1; then
7767 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
7768 fi
7769
7770 if test "$wxUSE_IMAGE" = yes; then
698dcdb6 7771 echo "$ac_t""yes" 1>&6
0046ff7c 7772 else
698dcdb6 7773 echo "$ac_t""no" 1>&6
0046ff7c 7774 fi
698dcdb6 7775
0046ff7c 7776
698dcdb6 7777 echo $ac_n "checking for --enable-gif""... $ac_c" 1>&6
f9bc1684 7778echo "configure:7779: checking for --enable-gif" >&5
10f2d63a
VZ
7779 no_cache=0
7780 # Check whether --enable-gif or --disable-gif was given.
7781if test "${enable_gif+set}" = set; then
7782 enableval="$enable_gif"
698dcdb6 7783
10f2d63a
VZ
7784 if test "$enableval" = yes; then
7785 ac_cv_use_gif='wxUSE_GIF=yes'
7786 else
7787 ac_cv_use_gif='wxUSE_GIF=no'
7788 fi
698dcdb6 7789
10f2d63a 7790else
698dcdb6 7791
10f2d63a
VZ
7792 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
7793 if test "x$LINE" != x ; then
7794 eval "DEFAULT_$LINE"
7795 else
7796 no_cache=1
7797 fi
7798
7799 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
698dcdb6
VZ
7800
7801fi
10f2d63a
VZ
7802
7803
7804 eval "$ac_cv_use_gif"
7805 if test "$no_cache" != 1; then
7806 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
7807 fi
7808
7809 if test "$wxUSE_GIF" = yes; then
698dcdb6 7810 echo "$ac_t""yes" 1>&6
10f2d63a 7811 else
698dcdb6 7812 echo "$ac_t""no" 1>&6
10f2d63a 7813 fi
698dcdb6 7814
10f2d63a 7815
698dcdb6 7816 echo $ac_n "checking for --enable-pcx""... $ac_c" 1>&6
f9bc1684 7817echo "configure:7818: checking for --enable-pcx" >&5
10f2d63a
VZ
7818 no_cache=0
7819 # Check whether --enable-pcx or --disable-pcx was given.
7820if test "${enable_pcx+set}" = set; then
7821 enableval="$enable_pcx"
698dcdb6 7822
10f2d63a
VZ
7823 if test "$enableval" = yes; then
7824 ac_cv_use_pcx='wxUSE_PCX=yes'
7825 else
7826 ac_cv_use_pcx='wxUSE_PCX=no'
7827 fi
698dcdb6 7828
10f2d63a 7829else
698dcdb6 7830
10f2d63a
VZ
7831 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
7832 if test "x$LINE" != x ; then
7833 eval "DEFAULT_$LINE"
7834 else
7835 no_cache=1
7836 fi
7837
7838 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
698dcdb6
VZ
7839
7840fi
10f2d63a
VZ
7841
7842
7843 eval "$ac_cv_use_pcx"
7844 if test "$no_cache" != 1; then
7845 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
7846 fi
7847
7848 if test "$wxUSE_PCX" = yes; then
698dcdb6 7849 echo "$ac_t""yes" 1>&6
10f2d63a 7850 else
698dcdb6 7851 echo "$ac_t""no" 1>&6
10f2d63a 7852 fi
698dcdb6 7853
10f2d63a 7854
698dcdb6 7855 echo $ac_n "checking for --enable-pnm""... $ac_c" 1>&6
f9bc1684 7856echo "configure:7857: checking for --enable-pnm" >&5
10f2d63a
VZ
7857 no_cache=0
7858 # Check whether --enable-pnm or --disable-pnm was given.
7859if test "${enable_pnm+set}" = set; then
7860 enableval="$enable_pnm"
698dcdb6 7861
10f2d63a
VZ
7862 if test "$enableval" = yes; then
7863 ac_cv_use_pnm='wxUSE_PNM=yes'
7864 else
7865 ac_cv_use_pnm='wxUSE_PNM=no'
7866 fi
698dcdb6 7867
10f2d63a 7868else
698dcdb6 7869
10f2d63a
VZ
7870 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
7871 if test "x$LINE" != x ; then
7872 eval "DEFAULT_$LINE"
7873 else
7874 no_cache=1
7875 fi
7876
7877 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
698dcdb6
VZ
7878
7879fi
10f2d63a
VZ
7880
7881
7882 eval "$ac_cv_use_pnm"
7883 if test "$no_cache" != 1; then
7884 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
7885 fi
7886
7887 if test "$wxUSE_PNM" = yes; then
698dcdb6 7888 echo "$ac_t""yes" 1>&6
10f2d63a 7889 else
698dcdb6 7890 echo "$ac_t""no" 1>&6
10f2d63a 7891 fi
698dcdb6 7892
10f2d63a 7893
69d27ff7 7894 echo $ac_n "checking for --enable-xpm""... $ac_c" 1>&6
f9bc1684 7895echo "configure:7896: checking for --enable-xpm" >&5
0046ff7c 7896 no_cache=0
69d27ff7
MB
7897 # Check whether --enable-xpm or --disable-xpm was given.
7898if test "${enable_xpm+set}" = set; then
7899 enableval="$enable_xpm"
698dcdb6 7900
0046ff7c 7901 if test "$enableval" = yes; then
69d27ff7 7902 ac_cv_use_xpm='wxUSE_XPM=yes'
0046ff7c 7903 else
69d27ff7 7904 ac_cv_use_xpm='wxUSE_XPM=no'
0046ff7c 7905 fi
698dcdb6 7906
0046ff7c 7907else
698dcdb6 7908
0046ff7c
VS
7909 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
7910 if test "x$LINE" != x ; then
7911 eval "DEFAULT_$LINE"
7912 else
7913 no_cache=1
7914 fi
7915
69d27ff7 7916 ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
698dcdb6
VZ
7917
7918fi
0046ff7c
VS
7919
7920
69d27ff7 7921 eval "$ac_cv_use_xpm"
0046ff7c 7922 if test "$no_cache" != 1; then
69d27ff7 7923 echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
0046ff7c
VS
7924 fi
7925
7926 if test "$wxUSE_XPM" = yes; then
698dcdb6 7927 echo "$ac_t""yes" 1>&6
0046ff7c 7928 else
698dcdb6 7929 echo "$ac_t""no" 1>&6
0046ff7c 7930 fi
698dcdb6 7931
0046ff7c 7932
b12915c1
VZ
7933fi
7934
698dcdb6 7935
10f2d63a
VZ
7936 echo "saving argument cache $wx_arg_cache_file"
7937 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
698dcdb6 7938
10f2d63a 7939
698dcdb6
VZ
7940
7941echo $ac_n "checking for toolkit""... $ac_c" 1>&6
f9bc1684 7942echo "configure:7943: checking for toolkit" >&5
10f2d63a
VZ
7943
7944if test "$wxUSE_GUI" = "yes"; then
7945
3a922bb4
RL
7946 if test "$USE_BEOS" = 1; then
7947 { echo "configure: error: BeOS GUI is not supported yet, use --disable-gui" 1>&2; exit 1; }
7948 fi
b12915c1 7949
3a922bb4
RL
7950 if test "$TOOLKIT_GIVEN" = 1; then
7951 for toolkit in `echo $ALL_TOOLKITS`; do
7952 var=wxUSE_$toolkit
7953 eval "value=\$${var}"
7954 eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
7955 done
10f2d63a 7956 else
3a922bb4
RL
7957 for toolkit in `echo $ALL_TOOLKITS`; do
7958 if test "$has_toolkit_in_cache" != 1; then
7959 var=DEFAULT_DEFAULT_wxUSE_$toolkit
7960 else
7961 var=DEFAULT_wxUSE_$toolkit
7962 fi
7963 eval "wxUSE_$toolkit=\$${var}"
7964 done
10f2d63a 7965 fi
10f2d63a 7966
3a922bb4 7967 NUM_TOOLKITS=`expr ${wxUSE_GTK:-0} + ${wxUSE_MOTIF:-0} + ${wxUSE_MAC:-0} \
77e13408 7968 + ${wxUSE_WINE:-0} + ${wxUSE_MSW:-0} + ${wxUSE_MGL:-0}`
10f2d63a 7969
3a922bb4 7970 case "${host}" in
6fa882bd 7971 *-pc-os2_emx | *-pc-os2-emx )
3a922bb4
RL
7972 # PATH_IFS is autodetected by OS/2's configure (usually ';')
7973 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
7974 LEX_STEM="lexyy"
7975 ;;
7976 *)
7977 PATH_IFS=':'
7978 LEX_STEM="lex.yy"
7979 ;;
7980 esac
10f2d63a 7981
3a922bb4
RL
7982 case "$NUM_TOOLKITS" in
7983 1)
7984 ;;
7985 0)
7986 { echo "configure: error: Please specify a toolkit - cannot determine the default for ${host}" 1>&2; exit 1; }
7987 ;;
7988 *)
7989 { echo "configure: error: Please specify at most one toolkit (may be some are cached?)" 1>&2; exit 1; }
7990 esac
10f2d63a 7991
3a922bb4
RL
7992 for toolkit in `echo $ALL_TOOLKITS`; do
7993 var=wxUSE_$toolkit
7994 eval "value=\$${var}"
7995 if test "x$value" != x; then
7996 cache_var=CACHE_$toolkit
7997 eval "cache=\$${cache_var}"
7998 if test "$cache" = 1; then
7999 echo "$var=$value" >> ${wx_arg_cache_file}
8000 fi
8001 if test "$value" = 1; then
8002 toolkit_echo=`echo $toolkit | tr [A-Z] [a-z]`
8003 echo "$ac_t""$toolkit_echo" 1>&6
8004 fi
8005 fi
8006 done
10f2d63a 8007else
cf27ef00 8008 PATH_IFS=':'
3a922bb4 8009 echo "$ac_t""base ($host_alias hosted) only" 1>&6
10f2d63a
VZ
8010fi
8011
698dcdb6
VZ
8012
8013cat > confcache <<\EOF
10f2d63a
VZ
8014# This file is a shell script that caches the results of configure
8015# tests run on this system so they can be shared between configure
698dcdb6
VZ
8016# scripts and configure runs. It is not useful on other systems.
8017# If it contains results you don't want to keep, you may remove or edit it.
10f2d63a 8018#
698dcdb6
VZ
8019# By default, configure uses ./config.cache as the cache file,
8020# creating it if it does not exist already. You can give configure
8021# the --cache-file=FILE option to use a different cache file; that is
8022# what configure does when it calls configure scripts in
8023# subdirectories, so they share the cache.
8024# Giving --cache-file=/dev/null disables caching, for debugging configure.
8025# config.status only pays attention to the cache file if you give it the
8026# --recheck option to rerun configure.
10f2d63a 8027#
698dcdb6 8028EOF
10f2d63a
VZ
8029# The following way of writing the cache mishandles newlines in values,
8030# but we know of no workaround that is simple, portable, and efficient.
8031# So, don't put newlines in cache variables' values.
8032# Ultrix sh set writes to stderr and can't be redirected directly,
8033# and sets the high bit in the cache file unless we assign to the vars.
698dcdb6
VZ
8034(set) 2>&1 |
8035 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8036 *ac_space=\ *)
8037 # `set' does not quote correctly, so add quotes (double-quote substitution
8038 # turns \\\\ into \\, and sed turns \\ into \).
8039 sed -n \
8040 -e "s/'/'\\\\''/g" \
8041 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
8042 ;;
8043 *)
8044 # `set' quotes correctly as required by POSIX, so do not add quotes.
8045 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8046 ;;
8047 esac >> confcache
8048if cmp -s $cache_file confcache; then
8049 :
8050else
10f2d63a 8051 if test -w $cache_file; then
698dcdb6
VZ
8052 echo "updating cache $cache_file"
8053 cat confcache > $cache_file
10f2d63a
VZ
8054 else
8055 echo "not updating unwritable cache $cache_file"
8056 fi
8057fi
8058rm -f confcache
8059
698dcdb6 8060
e59890c3 8061if test "$build" != "$host" ; then
f9bc1684 8062 if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 ; then
3a922bb4
RL
8063 CC=$host_alias-gcc
8064 CXX=$host_alias-c++
8065 AR=$host_alias-ar
8066 RANLIB=$host_alias-ranlib
8067 DLLTOOL=$host_alias-dlltool
8068 RESCOMP=$host_alias-windres
8069 LD=$host_alias-ld
8070 NM=$host_alias-nm
8071 STRIP=$host_alias-strip
8072 else
8073 { echo "configure: error: $build_alias -> $host_alias cross compilation not supported yet." 1>&2; exit 1; }
8074 fi
10f2d63a
VZ
8075fi
8076
698dcdb6 8077# Extract the first word of "gcc", so it can be a program name with args.
1e487827 8078set dummy gcc; ac_word=$2
698dcdb6 8079echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
f9bc1684 8080echo "configure:8081: checking for $ac_word" >&5
698dcdb6
VZ
8081if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
8082 echo $ac_n "(cached) $ac_c" 1>&6
6232543b
VS
8083else
8084 if test -n "$CC"; then
8085 ac_cv_prog_CC="$CC" # Let the user override the test.
10f2d63a 8086else
698dcdb6
VZ
8087 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8088 ac_dummy="$PATH"
8089 for ac_dir in $ac_dummy; do
8090 test -z "$ac_dir" && ac_dir=.
8091 if test -f $ac_dir/$ac_word; then
8092 ac_cv_prog_CC="gcc"
8093 break
8094 fi
8095 done
8096 IFS="$ac_save_ifs"
10f2d63a 8097fi
6232543b 8098fi
698dcdb6 8099CC="$ac_cv_prog_CC"
6232543b 8100if test -n "$CC"; then
698dcdb6 8101 echo "$ac_t""$CC" 1>&6
1e487827 8102else
698dcdb6 8103 echo "$ac_t""no" 1>&6
1e487827 8104fi
6232543b 8105
1e487827
VS
8106if test -z "$CC"; then
8107 # Extract the first word of "cc", so it can be a program name with args.
8108set dummy cc; ac_word=$2
698dcdb6 8109echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
f9bc1684 8110echo "configure:8111: checking for $ac_word" >&5
698dcdb6
VZ
8111if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
8112 echo $ac_n "(cached) $ac_c" 1>&6
1e487827
VS
8113else
8114 if test -n "$CC"; then
8115 ac_cv_prog_CC="$CC" # Let the user override the test.
8116else
698dcdb6 8117 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1e487827 8118 ac_prog_rejected=no
698dcdb6
VZ
8119 ac_dummy="$PATH"
8120 for ac_dir in $ac_dummy; do
8121 test -z "$ac_dir" && ac_dir=.
8122 if test -f $ac_dir/$ac_word; then
8123 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
8124 ac_prog_rejected=yes
8125 continue
8126 fi
8127 ac_cv_prog_CC="cc"
8128 break
8129 fi
8130 done
8131 IFS="$ac_save_ifs"
1e487827
VS
8132if test $ac_prog_rejected = yes; then
8133 # We found a bogon in the path, so make sure we never use it.
8134 set dummy $ac_cv_prog_CC
8135 shift
698dcdb6 8136 if test $# -gt 0; then
1e487827
VS
8137 # We chose a different compiler from the bogus one.
8138 # However, it has the same basename, so the bogon will be chosen
8139 # first if we set CC to just the basename; use the full file name.
8140 shift
698dcdb6 8141 set dummy "$ac_dir/$ac_word" "$@"
1e487827
VS
8142 shift
8143 ac_cv_prog_CC="$@"
703e0a69 8144 fi
1e487827
VS
8145fi
8146fi
8147fi
698dcdb6 8148CC="$ac_cv_prog_CC"
1e487827 8149if test -n "$CC"; then
698dcdb6 8150 echo "$ac_t""$CC" 1>&6
703e0a69 8151else
698dcdb6 8152 echo "$ac_t""no" 1>&6
703e0a69 8153fi
1e487827 8154
698dcdb6
VZ
8155 if test -z "$CC"; then
8156 case "`uname -s`" in
8157 *win32* | *WIN32*)
8158 # Extract the first word of "cl", so it can be a program name with args.
8159set dummy cl; ac_word=$2
8160echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
f9bc1684 8161echo "configure:8162: checking for $ac_word" >&5
698dcdb6
VZ
8162if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
8163 echo $ac_n "(cached) $ac_c" 1>&6
1e487827
VS
8164else
8165 if test -n "$CC"; then
8166 ac_cv_prog_CC="$CC" # Let the user override the test.
703e0a69 8167else
698dcdb6
VZ
8168 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8169 ac_dummy="$PATH"
8170 for ac_dir in $ac_dummy; do
8171 test -z "$ac_dir" && ac_dir=.
8172 if test -f $ac_dir/$ac_word; then
8173 ac_cv_prog_CC="cl"
8174 break
8175 fi
8176 done
8177 IFS="$ac_save_ifs"
703e0a69 8178fi
1e487827 8179fi
698dcdb6 8180CC="$ac_cv_prog_CC"
1e487827 8181if test -n "$CC"; then
698dcdb6 8182 echo "$ac_t""$CC" 1>&6
1e487827 8183else
698dcdb6 8184 echo "$ac_t""no" 1>&6
1e487827 8185fi
698dcdb6
VZ
8186 ;;
8187 esac
8188 fi
8189 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1e487827
VS
8190fi
8191
698dcdb6 8192echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
f9bc1684 8193echo "configure:8194: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1e487827 8194
698dcdb6
VZ
8195ac_ext=c
8196# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8197ac_cpp='$CPP $CPPFLAGS'
8198ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8199ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8200cross_compiling=$ac_cv_prog_cc_cross
6232543b 8201
698dcdb6 8202cat > conftest.$ac_ext << EOF
1e487827 8203
f9bc1684 8204#line 8205 "configure"
1e487827
VS
8205#include "confdefs.h"
8206
698dcdb6
VZ
8207main(){return(0);}
8208EOF
f9bc1684 8209if { (eval echo configure:8210: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
8210 ac_cv_prog_cc_works=yes
8211 # If we can't run a trivial program, we are probably using a cross compiler.
8212 if (./conftest; exit) 2>/dev/null; then
8213 ac_cv_prog_cc_cross=no
8214 else
8215 ac_cv_prog_cc_cross=yes
8216 fi
8217else
8218 echo "configure: failed program was:" >&5
8219 cat conftest.$ac_ext >&5
8220 ac_cv_prog_cc_works=no
8221fi
8222rm -fr conftest*
8223ac_ext=c
8224# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8225ac_cpp='$CPP $CPPFLAGS'
8226ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8227ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8228cross_compiling=$ac_cv_prog_cc_cross
8229
8230echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
8231if test $ac_cv_prog_cc_works = no; then
8232 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
8233fi
8234echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
f9bc1684 8235echo "configure:8236: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
698dcdb6
VZ
8236echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
8237cross_compiling=$ac_cv_prog_cc_cross
8238
8239echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
f9bc1684 8240echo "configure:8241: checking whether we are using GNU C" >&5
698dcdb6
VZ
8241if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
8242 echo $ac_n "(cached) $ac_c" 1>&6
8243else
8244 cat > conftest.c <<EOF
8245#ifdef __GNUC__
8246 yes;
1e487827 8247#endif
698dcdb6 8248EOF
f9bc1684 8249if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:8250: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
698dcdb6
VZ
8250 ac_cv_prog_gcc=yes
8251else
8252 ac_cv_prog_gcc=no
8253fi
8254fi
1e487827 8255
698dcdb6 8256echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1e487827 8257
698dcdb6
VZ
8258if test $ac_cv_prog_gcc = yes; then
8259 GCC=yes
8260else
8261 GCC=
8262fi
1e487827 8263
698dcdb6
VZ
8264ac_test_CFLAGS="${CFLAGS+set}"
8265ac_save_CFLAGS="$CFLAGS"
8266CFLAGS=
8267echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
f9bc1684 8268echo "configure:8269: checking whether ${CC-cc} accepts -g" >&5
698dcdb6
VZ
8269if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
8270 echo $ac_n "(cached) $ac_c" 1>&6
8271else
8272 echo 'void f(){}' > conftest.c
8273if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
10f2d63a
VZ
8274 ac_cv_prog_cc_g=yes
8275else
698dcdb6 8276 ac_cv_prog_cc_g=no
10f2d63a 8277fi
698dcdb6
VZ
8278rm -f conftest*
8279
10f2d63a 8280fi
698dcdb6
VZ
8281
8282echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
10f2d63a 8283if test "$ac_test_CFLAGS" = set; then
698dcdb6 8284 CFLAGS="$ac_save_CFLAGS"
10f2d63a
VZ
8285elif test $ac_cv_prog_cc_g = yes; then
8286 if test "$GCC" = yes; then
8287 CFLAGS="-g -O2"
8288 else
8289 CFLAGS="-g"
8290 fi
8291else
8292 if test "$GCC" = yes; then
8293 CFLAGS="-O2"
8294 else
8295 CFLAGS=
8296 fi
8297fi
8298
8299
8300CFLAGS=`echo "$CFLAGS" | sed 's/-g//g'`
8301
698dcdb6 8302echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
f9bc1684 8303echo "configure:8304: checking how to run the C preprocessor" >&5
10f2d63a
VZ
8304# On Suns, sometimes $CPP names a directory.
8305if test -n "$CPP" && test -d "$CPP"; then
8306 CPP=
8307fi
8308if test -z "$CPP"; then
698dcdb6
VZ
8309if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
8310 echo $ac_n "(cached) $ac_c" 1>&6
8311else
8312 # This must be in double quotes, not single quotes, because CPP may get
8313 # substituted into the Makefile and "${CC-cc}" will confuse make.
8314 CPP="${CC-cc} -E"
10f2d63a 8315 # On the NeXT, cc -E runs the code through the compiler's parser,
698dcdb6
VZ
8316 # not just through cpp.
8317 cat > conftest.$ac_ext <<EOF
f9bc1684 8318#line 8319 "configure"
10f2d63a
VZ
8319#include "confdefs.h"
8320#include <assert.h>
698dcdb6
VZ
8321Syntax Error
8322EOF
8323ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
f9bc1684 8324{ (eval echo configure:8325: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
8325ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8326if test -z "$ac_err"; then
10f2d63a
VZ
8327 :
8328else
698dcdb6
VZ
8329 echo "$ac_err" >&5
8330 echo "configure: failed program was:" >&5
10f2d63a 8331 cat conftest.$ac_ext >&5
698dcdb6
VZ
8332 rm -rf conftest*
8333 CPP="${CC-cc} -E -traditional-cpp"
8334 cat > conftest.$ac_ext <<EOF
f9bc1684 8335#line 8336 "configure"
10f2d63a 8336#include "confdefs.h"
698dcdb6
VZ
8337#include <assert.h>
8338Syntax Error
8339EOF
8340ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
f9bc1684 8341{ (eval echo configure:8342: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
8342ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8343if test -z "$ac_err"; then
8344 :
10f2d63a 8345else
698dcdb6
VZ
8346 echo "$ac_err" >&5
8347 echo "configure: failed program was:" >&5
10f2d63a 8348 cat conftest.$ac_ext >&5
698dcdb6
VZ
8349 rm -rf conftest*
8350 CPP="${CC-cc} -nologo -E"
8351 cat > conftest.$ac_ext <<EOF
f9bc1684 8352#line 8353 "configure"
10f2d63a
VZ
8353#include "confdefs.h"
8354#include <assert.h>
698dcdb6
VZ
8355Syntax Error
8356EOF
8357ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
f9bc1684 8358{ (eval echo configure:8359: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
8359ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8360if test -z "$ac_err"; then
10f2d63a
VZ
8361 :
8362else
698dcdb6
VZ
8363 echo "$ac_err" >&5
8364 echo "configure: failed program was:" >&5
10f2d63a 8365 cat conftest.$ac_ext >&5
698dcdb6
VZ
8366 rm -rf conftest*
8367 CPP=/lib/cpp
10f2d63a 8368fi
698dcdb6 8369rm -f conftest*
10f2d63a 8370fi
698dcdb6 8371rm -f conftest*
703e0a69 8372fi
698dcdb6
VZ
8373rm -f conftest*
8374 ac_cv_prog_CPP="$CPP"
8375fi
8376 CPP="$ac_cv_prog_CPP"
10f2d63a 8377else
698dcdb6 8378 ac_cv_prog_CPP="$CPP"
10f2d63a 8379fi
698dcdb6 8380echo "$ac_t""$CPP" 1>&6
10f2d63a 8381
698dcdb6
VZ
8382if test $ac_cv_prog_gcc = yes; then
8383 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
f9bc1684 8384echo "configure:8385: checking whether ${CC-cc} needs -traditional" >&5
698dcdb6
VZ
8385if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
8386 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
8387else
8388 ac_pattern="Autoconf.*'x'"
698dcdb6 8389 cat > conftest.$ac_ext <<EOF
f9bc1684 8390#line 8391 "configure"
10f2d63a
VZ
8391#include "confdefs.h"
8392#include <sgtty.h>
8393Autoconf TIOCGETP
698dcdb6 8394EOF
10f2d63a
VZ
8395if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8396 egrep "$ac_pattern" >/dev/null 2>&1; then
698dcdb6 8397 rm -rf conftest*
10f2d63a
VZ
8398 ac_cv_prog_gcc_traditional=yes
8399else
698dcdb6 8400 rm -rf conftest*
10f2d63a
VZ
8401 ac_cv_prog_gcc_traditional=no
8402fi
8403rm -f conftest*
8404
698dcdb6 8405
10f2d63a 8406 if test $ac_cv_prog_gcc_traditional = no; then
698dcdb6 8407 cat > conftest.$ac_ext <<EOF
f9bc1684 8408#line 8409 "configure"
10f2d63a
VZ
8409#include "confdefs.h"
8410#include <termio.h>
8411Autoconf TCGETA
698dcdb6 8412EOF
10f2d63a
VZ
8413if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8414 egrep "$ac_pattern" >/dev/null 2>&1; then
698dcdb6 8415 rm -rf conftest*
10f2d63a
VZ
8416 ac_cv_prog_gcc_traditional=yes
8417fi
8418rm -f conftest*
8419
8420 fi
8421fi
698dcdb6
VZ
8422
8423echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
10f2d63a
VZ
8424 if test $ac_cv_prog_gcc_traditional = yes; then
8425 CC="$CC -traditional"
8426 fi
8427fi
8428
703e0a69 8429
698dcdb6
VZ
8430
8431ac_ext=C
8432# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1e487827 8433ac_cpp='$CXXCPP $CPPFLAGS'
698dcdb6
VZ
8434ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8435ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8436cross_compiling=$ac_cv_prog_cxx_cross
8437
8438
8439for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
8440do
8441# Extract the first word of "$ac_prog", so it can be a program name with args.
8442set dummy $ac_prog; ac_word=$2
8443echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
f9bc1684 8444echo "configure:8445: checking for $ac_word" >&5
698dcdb6
VZ
8445if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
8446 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
8447else
8448 if test -n "$CXX"; then
8449 ac_cv_prog_CXX="$CXX" # Let the user override the test.
8450else
698dcdb6
VZ
8451 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8452 ac_dummy="$PATH"
8453 for ac_dir in $ac_dummy; do
8454 test -z "$ac_dir" && ac_dir=.
8455 if test -f $ac_dir/$ac_word; then
8456 ac_cv_prog_CXX="$ac_prog"
8457 break
8458 fi
8459 done
8460 IFS="$ac_save_ifs"
10f2d63a
VZ
8461fi
8462fi
698dcdb6 8463CXX="$ac_cv_prog_CXX"
10f2d63a 8464if test -n "$CXX"; then
698dcdb6 8465 echo "$ac_t""$CXX" 1>&6
10f2d63a 8466else
698dcdb6 8467 echo "$ac_t""no" 1>&6
10f2d63a
VZ
8468fi
8469
698dcdb6 8470test -n "$CXX" && break
10f2d63a 8471done
698dcdb6 8472test -n "$CXX" || CXX="gcc"
10f2d63a
VZ
8473
8474
698dcdb6 8475echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
f9bc1684 8476echo "configure:8477: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
10f2d63a 8477
698dcdb6
VZ
8478ac_ext=C
8479# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8480ac_cpp='$CXXCPP $CPPFLAGS'
8481ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8482ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8483cross_compiling=$ac_cv_prog_cxx_cross
703e0a69 8484
698dcdb6
VZ
8485cat > conftest.$ac_ext << EOF
8486
f9bc1684 8487#line 8488 "configure"
10f2d63a
VZ
8488#include "confdefs.h"
8489
698dcdb6
VZ
8490int main(){return(0);}
8491EOF
f9bc1684 8492if { (eval echo configure:8493: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
8493 ac_cv_prog_cxx_works=yes
8494 # If we can't run a trivial program, we are probably using a cross compiler.
8495 if (./conftest; exit) 2>/dev/null; then
8496 ac_cv_prog_cxx_cross=no
8497 else
8498 ac_cv_prog_cxx_cross=yes
8499 fi
8500else
8501 echo "configure: failed program was:" >&5
8502 cat conftest.$ac_ext >&5
8503 ac_cv_prog_cxx_works=no
8504fi
8505rm -fr conftest*
8506ac_ext=C
8507# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8508ac_cpp='$CXXCPP $CPPFLAGS'
8509ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8510ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8511cross_compiling=$ac_cv_prog_cxx_cross
8512
8513echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
8514if test $ac_cv_prog_cxx_works = no; then
8515 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
8516fi
8517echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
f9bc1684 8518echo "configure:8519: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
698dcdb6
VZ
8519echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
8520cross_compiling=$ac_cv_prog_cxx_cross
8521
8522echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
f9bc1684 8523echo "configure:8524: checking whether we are using GNU C++" >&5
698dcdb6
VZ
8524if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
8525 echo $ac_n "(cached) $ac_c" 1>&6
8526else
8527 cat > conftest.C <<EOF
8528#ifdef __GNUC__
8529 yes;
10f2d63a 8530#endif
698dcdb6 8531EOF
f9bc1684 8532if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:8533: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
698dcdb6
VZ
8533 ac_cv_prog_gxx=yes
8534else
8535 ac_cv_prog_gxx=no
8536fi
8537fi
10f2d63a 8538
698dcdb6 8539echo "$ac_t""$ac_cv_prog_gxx" 1>&6
10f2d63a 8540
698dcdb6
VZ
8541if test $ac_cv_prog_gxx = yes; then
8542 GXX=yes
8543else
8544 GXX=
8545fi
10f2d63a 8546
698dcdb6
VZ
8547ac_test_CXXFLAGS="${CXXFLAGS+set}"
8548ac_save_CXXFLAGS="$CXXFLAGS"
8549CXXFLAGS=
8550echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
f9bc1684 8551echo "configure:8552: checking whether ${CXX-g++} accepts -g" >&5
698dcdb6
VZ
8552if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
8553 echo $ac_n "(cached) $ac_c" 1>&6
8554else
8555 echo 'void f(){}' > conftest.cc
8556if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
10f2d63a
VZ
8557 ac_cv_prog_cxx_g=yes
8558else
698dcdb6 8559 ac_cv_prog_cxx_g=no
10f2d63a 8560fi
698dcdb6
VZ
8561rm -f conftest*
8562
10f2d63a 8563fi
698dcdb6
VZ
8564
8565echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
10f2d63a 8566if test "$ac_test_CXXFLAGS" = set; then
698dcdb6 8567 CXXFLAGS="$ac_save_CXXFLAGS"
10f2d63a
VZ
8568elif test $ac_cv_prog_cxx_g = yes; then
8569 if test "$GXX" = yes; then
8570 CXXFLAGS="-g -O2"
8571 else
8572 CXXFLAGS="-g"
8573 fi
8574else
8575 if test "$GXX" = yes; then
8576 CXXFLAGS="-O2"
8577 else
8578 CXXFLAGS=
8579 fi
8580fi
8581
8582
10f2d63a
VZ
8583CXXFLAGS=`echo "$CXXFLAGS" | sed 's/-g//g'`
8584
8585ac_ext=c
698dcdb6 8586# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10f2d63a 8587ac_cpp='$CPP $CPPFLAGS'
698dcdb6
VZ
8588ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8589ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8590cross_compiling=$ac_cv_prog_cc_cross
8591
8592
8593# Extract the first word of "ranlib", so it can be a program name with args.
8594set dummy ranlib; ac_word=$2
8595echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
f9bc1684 8596echo "configure:8597: checking for $ac_word" >&5
698dcdb6
VZ
8597if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
8598 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
8599else
8600 if test -n "$RANLIB"; then
8601 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8602else
698dcdb6
VZ
8603 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8604 ac_dummy="$PATH"
8605 for ac_dir in $ac_dummy; do
8606 test -z "$ac_dir" && ac_dir=.
8607 if test -f $ac_dir/$ac_word; then
8608 ac_cv_prog_RANLIB="ranlib"
8609 break
8610 fi
8611 done
8612 IFS="$ac_save_ifs"
8613 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
10f2d63a
VZ
8614fi
8615fi
698dcdb6 8616RANLIB="$ac_cv_prog_RANLIB"
10f2d63a 8617if test -n "$RANLIB"; then
698dcdb6 8618 echo "$ac_t""$RANLIB" 1>&6
10f2d63a 8619else
698dcdb6 8620 echo "$ac_t""no" 1>&6
10f2d63a
VZ
8621fi
8622
8623
8624# Extract the first word of "ar", so it can be a program name with args.
8625set dummy ar; ac_word=$2
698dcdb6 8626echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
f9bc1684 8627echo "configure:8628: checking for $ac_word" >&5
698dcdb6
VZ
8628if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
8629 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
8630else
8631 if test -n "$AR"; then
8632 ac_cv_prog_AR="$AR" # Let the user override the test.
8633else
698dcdb6
VZ
8634 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8635 ac_dummy="$PATH"
8636 for ac_dir in $ac_dummy; do
8637 test -z "$ac_dir" && ac_dir=.
8638 if test -f $ac_dir/$ac_word; then
8639 ac_cv_prog_AR="ar"
8640 break
8641 fi
8642 done
8643 IFS="$ac_save_ifs"
10f2d63a
VZ
8644 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
8645fi
8646fi
698dcdb6 8647AR="$ac_cv_prog_AR"
10f2d63a 8648if test -n "$AR"; then
698dcdb6 8649 echo "$ac_t""$AR" 1>&6
10f2d63a 8650else
698dcdb6 8651 echo "$ac_t""no" 1>&6
10f2d63a
VZ
8652fi
8653
698dcdb6 8654
6054113a 8655# Find a good install program. We prefer a C program (faster),
10f2d63a
VZ
8656# so one script is as good as another. But avoid the broken or
8657# incompatible versions:
8658# SysV /etc/install, /usr/sbin/install
8659# SunOS /usr/etc/install
8660# IRIX /sbin/install
8661# AIX /bin/install
8662# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
8663# AFS /usr/afsws/bin/install, which mishandles nonexistent args
8664# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8665# ./install, which can be erroneously created by make from ./install.sh.
698dcdb6 8666echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
f9bc1684 8667echo "configure:8668: checking for a BSD compatible install" >&5
10f2d63a 8668if test -z "$INSTALL"; then
698dcdb6
VZ
8669if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
8670 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 8671else
698dcdb6 8672 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
10f2d63a
VZ
8673 for ac_dir in $PATH; do
8674 # Account for people who put trailing slashes in PATH elements.
698dcdb6
VZ
8675 case "$ac_dir/" in
8676 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
10f2d63a
VZ
8677 *)
8678 # OSF1 and SCO ODT 3.0 have their own names for install.
8679 # Don't use installbsd from OSF since it installs stuff as root
8680 # by default.
8681 for ac_prog in ginstall scoinst install; do
698dcdb6 8682 if test -f $ac_dir/$ac_prog; then
10f2d63a 8683 if test $ac_prog = install &&
698dcdb6 8684 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
10f2d63a
VZ
8685 # AIX install. It has an incompatible calling convention.
8686 :
8687 else
8688 ac_cv_path_install="$ac_dir/$ac_prog -c"
8689 break 2
8690 fi
8691 fi
8692 done
8693 ;;
8694 esac
8695 done
698dcdb6 8696 IFS="$ac_save_IFS"
10f2d63a
VZ
8697
8698fi
8699 if test "${ac_cv_path_install+set}" = set; then
698dcdb6 8700 INSTALL="$ac_cv_path_install"
10f2d63a
VZ
8701 else
8702 # As a last resort, use the slow shell script. We don't cache a
8703 # path for INSTALL within a source directory, because that will
8704 # break other packages using the cache if that directory is
8705 # removed, or if the path is relative.
698dcdb6 8706 INSTALL="$ac_install_sh"
10f2d63a
VZ
8707 fi
8708fi
698dcdb6 8709echo "$ac_t""$INSTALL" 1>&6
10f2d63a
VZ
8710
8711# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8712# It thinks the first close brace ends the variable substitution.
8713test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8714
698dcdb6 8715test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
10f2d63a
VZ
8716
8717test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8718
6054113a
GD
8719case "${host}" in
8720
b5853384 8721 powerpc-*-darwin* )
eb99ae0b
GD
8722 INSTALL_PROGRAM="cp -fp"
8723 INSTALL_DATA="cp -fp"
6054113a
GD
8724 ;;
8725 *)
8726 ;;
d6853540 8727esac
698dcdb6 8728
10f2d63a
VZ
8729# Extract the first word of "strip", so it can be a program name with args.
8730set dummy strip; ac_word=$2
698dcdb6 8731echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
f9bc1684 8732echo "configure:8733: checking for $ac_word" >&5
698dcdb6
VZ
8733if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
8734 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
8735else
8736 if test -n "$STRIP"; then
8737 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8738else
698dcdb6
VZ
8739 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8740 ac_dummy="$PATH"
8741 for ac_dir in $ac_dummy; do
8742 test -z "$ac_dir" && ac_dir=.
8743 if test -f $ac_dir/$ac_word; then
8744 ac_cv_prog_STRIP="strip"
8745 break
8746 fi
8747 done
8748 IFS="$ac_save_ifs"
10f2d63a
VZ
8749 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
8750fi
8751fi
698dcdb6 8752STRIP="$ac_cv_prog_STRIP"
10f2d63a 8753if test -n "$STRIP"; then
698dcdb6 8754 echo "$ac_t""$STRIP" 1>&6
10f2d63a 8755else
698dcdb6 8756 echo "$ac_t""no" 1>&6
10f2d63a
VZ
8757fi
8758
698dcdb6
VZ
8759
8760echo $ac_n "checking make for VPATH support""... $ac_c" 1>&6
f9bc1684 8761echo "configure:8762: checking make for VPATH support" >&5
10f2d63a
VZ
8762cat - << EOF > confMake
8763check : file
8764 cp \$? \$@
8765 cp \$? final_file
8766EOF
8767
8768if test ! -d sub ; then
8769 mkdir sub
8770fi
8771echo dummy > sub/file
f6bcfd97 8772${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
10f2d63a
VZ
8773RESULT=$?
8774rm -f sub/file check final_file confMake
8775rmdir sub
8776if test "$RESULT" = 0; then
698dcdb6 8777 echo "$ac_t""yes" 1>&6
10f2d63a 8778else
698dcdb6
VZ
8779 echo "$ac_t""no" 1>&6
8780 { echo "configure: error:
1e487827
VS
8781You need a make-utility that is able to use the variable
8782VPATH correctly.
8783If your version of make does not support VPATH correctly,
8784please install GNU-make (possibly as gmake), and start
8785configure with the following command:
8786export MAKE=gmake; ./configure for sh-type shells
8787setenv MAKE gmake; ./configure for csh-type shells
8788Also please do remember to use gmake in this case every time
8789you are trying to compile.
698dcdb6 8790" 1>&2; exit 1; }
10f2d63a
VZ
8791fi
8792
8793for ac_prog in 'bison -y' byacc
8794do
698dcdb6 8795# Extract the first word of "$ac_prog", so it can be a program name with args.
10f2d63a 8796set dummy $ac_prog; ac_word=$2
698dcdb6 8797echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
f9bc1684 8798echo "configure:8799: checking for $ac_word" >&5
698dcdb6
VZ
8799if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
8800 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
8801else
8802 if test -n "$YACC"; then
8803 ac_cv_prog_YACC="$YACC" # Let the user override the test.
8804else
698dcdb6
VZ
8805 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8806 ac_dummy="$PATH"
8807 for ac_dir in $ac_dummy; do
8808 test -z "$ac_dir" && ac_dir=.
8809 if test -f $ac_dir/$ac_word; then
8810 ac_cv_prog_YACC="$ac_prog"
8811 break
8812 fi
8813 done
8814 IFS="$ac_save_ifs"
10f2d63a
VZ
8815fi
8816fi
698dcdb6 8817YACC="$ac_cv_prog_YACC"
10f2d63a 8818if test -n "$YACC"; then
698dcdb6 8819 echo "$ac_t""$YACC" 1>&6
10f2d63a 8820else
698dcdb6 8821 echo "$ac_t""no" 1>&6
10f2d63a
VZ
8822fi
8823
698dcdb6 8824test -n "$YACC" && break
10f2d63a
VZ
8825done
8826test -n "$YACC" || YACC="yacc"
8827
698dcdb6
VZ
8828
8829# Extract the first word of "flex", so it can be a program name with args.
8830set dummy flex; ac_word=$2
8831echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
f9bc1684 8832echo "configure:8833: checking for $ac_word" >&5
698dcdb6
VZ
8833if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
8834 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
8835else
8836 if test -n "$LEX"; then
8837 ac_cv_prog_LEX="$LEX" # Let the user override the test.
8838else
698dcdb6
VZ
8839 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8840 ac_dummy="$PATH"
8841 for ac_dir in $ac_dummy; do
8842 test -z "$ac_dir" && ac_dir=.
8843 if test -f $ac_dir/$ac_word; then
8844 ac_cv_prog_LEX="flex"
8845 break
8846 fi
8847 done
8848 IFS="$ac_save_ifs"
8849 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
10f2d63a
VZ
8850fi
8851fi
698dcdb6 8852LEX="$ac_cv_prog_LEX"
10f2d63a 8853if test -n "$LEX"; then
698dcdb6 8854 echo "$ac_t""$LEX" 1>&6
10f2d63a 8855else
698dcdb6 8856 echo "$ac_t""no" 1>&6
10f2d63a
VZ
8857fi
8858
8859if test -z "$LEXLIB"
8860then
698dcdb6
VZ
8861 case "$LEX" in
8862 flex*) ac_lib=fl ;;
8863 *) ac_lib=l ;;
8864 esac
8865 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
f9bc1684 8866echo "configure:8867: checking for yywrap in -l$ac_lib" >&5
698dcdb6
VZ
8867ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
8868if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8869 echo $ac_n "(cached) $ac_c" 1>&6
8870else
8871 ac_save_LIBS="$LIBS"
8872LIBS="-l$ac_lib $LIBS"
8873cat > conftest.$ac_ext <<EOF
f9bc1684 8874#line 8875 "configure"
10f2d63a
VZ
8875#include "confdefs.h"
8876/* Override any gcc2 internal prototype to avoid an error. */
8877/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
8878 builtin and then its argument prototype would still apply. */
8879char yywrap();
10f2d63a 8880
698dcdb6
VZ
8881int main() {
8882yywrap()
8883; return 0; }
8884EOF
f9bc1684 8885if { (eval echo configure:8886: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
8886 rm -rf conftest*
8887 eval "ac_cv_lib_$ac_lib_var=yes"
10f2d63a 8888else
698dcdb6
VZ
8889 echo "configure: failed program was:" >&5
8890 cat conftest.$ac_ext >&5
8891 rm -rf conftest*
8892 eval "ac_cv_lib_$ac_lib_var=no"
10f2d63a 8893fi
698dcdb6
VZ
8894rm -f conftest*
8895LIBS="$ac_save_LIBS"
8896
10f2d63a 8897fi
698dcdb6
VZ
8898if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8899 echo "$ac_t""yes" 1>&6
8900 LEXLIB="-l$ac_lib"
8901else
8902 echo "$ac_t""no" 1>&6
10f2d63a
VZ
8903fi
8904
8905fi
8906
8907
698dcdb6 8908echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
f9bc1684 8909echo "configure:8910: checking whether ln -s works" >&5
698dcdb6
VZ
8910if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
8911 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 8912else
698dcdb6
VZ
8913 rm -f conftestdata
8914if ln -s X conftestdata 2>/dev/null
8915then
8916 rm -f conftestdata
8917 ac_cv_prog_LN_S="ln -s"
10f2d63a 8918else
698dcdb6 8919 ac_cv_prog_LN_S=ln
10f2d63a
VZ
8920fi
8921fi
698dcdb6
VZ
8922LN_S="$ac_cv_prog_LN_S"
8923if test "$ac_cv_prog_LN_S" = "ln -s"; then
8924 echo "$ac_t""yes" 1>&6
10f2d63a 8925else
698dcdb6 8926 echo "$ac_t""no" 1>&6
10f2d63a
VZ
8927fi
8928
8929
8930
8931SEARCH_INCLUDE="\
8932 /usr/local/include \
8933 \
8934 /usr/Motif-1.2/include \
8935 /usr/Motif-2.1/include \
8936 \
8937 /usr/include/Motif1.2 \
8938 /opt/xpm/include/X11 \
8939 /opt/GBxpm/include/ \
8940 /opt/GBxpm/X11/include/ \
8941 \
8942 /usr/Motif1.2/include \
8943 /usr/dt/include \
afc31813
VZ
8944 /usr/openwin/include \
8945 \
10f2d63a
VZ
8946 /usr/include/Xm \
8947 \
8948 /usr/X11R6/include \
afc31813 8949 /usr/X11R6.4/include \
10f2d63a
VZ
8950 /usr/X11R5/include \
8951 /usr/X11R4/include \
8952 \
10f2d63a
VZ
8953 /usr/include/X11R6 \
8954 /usr/include/X11R5 \
8955 /usr/include/X11R4 \
8956 \
8957 /usr/local/X11R6/include \
8958 /usr/local/X11R5/include \
8959 /usr/local/X11R4/include \
8960 \
8961 /usr/local/include/X11R6 \
8962 /usr/local/include/X11R5 \
8963 /usr/local/include/X11R4 \
8964 \
8965 /usr/X11/include \
8966 /usr/include/X11 \
8967 /usr/local/X11/include \
8968 /usr/local/include/X11 \
8969 \
8970 /usr/X386/include \
8971 /usr/x386/include \
8972 /usr/XFree86/include/X11 \
8973 \
cf27ef00 8974 X:/XFree86/include \
ec14dd32
VZ
8975 X:/XFree86/include/X11 \
8976 \
10f2d63a
VZ
8977 /usr/include/gtk \
8978 /usr/local/include/gtk \
8979 /usr/include/glib \
8980 /usr/local/include/glib \
8981 \
8982 /usr/include/qt \
8983 /usr/local/include/qt \
8984 \
8985 /usr/include/windows \
8986 /usr/include/wine \
8987 /usr/local/include/wine \
8988 \
8989 /usr/unsupported/include \
8990 /usr/athena/include \
8991 /usr/local/x11r5/include \
8992 /usr/lpp/Xamples/include \
8993 \
10f2d63a 8994 /usr/openwin/share/include \
928b5c08
VZ
8995 \
8996 /usr/include"
10f2d63a
VZ
8997
8998SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` "
8999
698dcdb6
VZ
9000
9001cat > confcache <<\EOF
10f2d63a
VZ
9002# This file is a shell script that caches the results of configure
9003# tests run on this system so they can be shared between configure
698dcdb6
VZ
9004# scripts and configure runs. It is not useful on other systems.
9005# If it contains results you don't want to keep, you may remove or edit it.
10f2d63a 9006#
698dcdb6
VZ
9007# By default, configure uses ./config.cache as the cache file,
9008# creating it if it does not exist already. You can give configure
9009# the --cache-file=FILE option to use a different cache file; that is
9010# what configure does when it calls configure scripts in
9011# subdirectories, so they share the cache.
9012# Giving --cache-file=/dev/null disables caching, for debugging configure.
9013# config.status only pays attention to the cache file if you give it the
9014# --recheck option to rerun configure.
10f2d63a 9015#
698dcdb6 9016EOF
10f2d63a
VZ
9017# The following way of writing the cache mishandles newlines in values,
9018# but we know of no workaround that is simple, portable, and efficient.
9019# So, don't put newlines in cache variables' values.
9020# Ultrix sh set writes to stderr and can't be redirected directly,
9021# and sets the high bit in the cache file unless we assign to the vars.
698dcdb6
VZ
9022(set) 2>&1 |
9023 case `(ac_space=' '; set | grep ac_space) 2>&1` in
9024 *ac_space=\ *)
9025 # `set' does not quote correctly, so add quotes (double-quote substitution
9026 # turns \\\\ into \\, and sed turns \\ into \).
9027 sed -n \
9028 -e "s/'/'\\\\''/g" \
9029 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
9030 ;;
9031 *)
9032 # `set' quotes correctly as required by POSIX, so do not add quotes.
9033 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
9034 ;;
9035 esac >> confcache
9036if cmp -s $cache_file confcache; then
9037 :
9038else
10f2d63a 9039 if test -w $cache_file; then
698dcdb6
VZ
9040 echo "updating cache $cache_file"
9041 cat confcache > $cache_file
10f2d63a
VZ
9042 else
9043 echo "not updating unwritable cache $cache_file"
9044 fi
9045fi
9046rm -f confcache
9047
698dcdb6
VZ
9048
9049
4f14bcd8 9050
18dbb1f6
VZ
9051REGEX_INCLUDE=
9052if test "$wxUSE_REGEX" != "no"; then
4f14bcd8
GD
9053 cat >> confdefs.h <<\EOF
9054#define wxUSE_REGEX 1
9055EOF
9056
9057
9058 if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
9059 ac_safe=`echo "regex.h" | sed 'y%./+-%__p_%'`
18dbb1f6 9060echo $ac_n "checking for regex.h""... $ac_c" 1>&6
f9bc1684 9061echo "configure:9062: checking for regex.h" >&5
18dbb1f6
VZ
9062if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9063 echo $ac_n "(cached) $ac_c" 1>&6
9064else
9065 cat > conftest.$ac_ext <<EOF
f9bc1684 9066#line 9067 "configure"
18dbb1f6
VZ
9067#include "confdefs.h"
9068#include <regex.h>
9069EOF
9070ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
f9bc1684 9071{ (eval echo configure:9072: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
18dbb1f6
VZ
9072ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9073if test -z "$ac_err"; then
9074 rm -rf conftest*
9075 eval "ac_cv_header_$ac_safe=yes"
9076else
9077 echo "$ac_err" >&5
9078 echo "configure: failed program was:" >&5
9079 cat conftest.$ac_ext >&5
9080 rm -rf conftest*
9081 eval "ac_cv_header_$ac_safe=no"
9082fi
9083rm -f conftest*
9084fi
9085if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9086 echo "$ac_t""yes" 1>&6
9087 for ac_func in regcomp
9088do
9089echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
f9bc1684 9090echo "configure:9091: checking for $ac_func" >&5
18dbb1f6
VZ
9091if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9092 echo $ac_n "(cached) $ac_c" 1>&6
9093else
9094 cat > conftest.$ac_ext <<EOF
f9bc1684 9095#line 9096 "configure"
18dbb1f6
VZ
9096#include "confdefs.h"
9097/* System header to define __stub macros and hopefully few prototypes,
9098 which can conflict with char $ac_func(); below. */
9099#include <assert.h>
9100/* Override any gcc2 internal prototype to avoid an error. */
9101/* We use char because int might match the return type of a gcc2
9102 builtin and then its argument prototype would still apply. */
9103char $ac_func();
9104
9105int main() {
9106
9107/* The GNU C library defines this for functions which it implements
9108 to always fail with ENOSYS. Some functions are actually named
9109 something starting with __ and the normal name is an alias. */
9110#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9111choke me
9112#else
9113$ac_func();
9114#endif
9115
9116; return 0; }
9117EOF
f9bc1684 9118if { (eval echo configure:9119: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18dbb1f6
VZ
9119 rm -rf conftest*
9120 eval "ac_cv_func_$ac_func=yes"
9121else
9122 echo "configure: failed program was:" >&5
9123 cat conftest.$ac_ext >&5
9124 rm -rf conftest*
9125 eval "ac_cv_func_$ac_func=no"
9126fi
9127rm -f conftest*
9128fi
9129
9130if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9131 echo "$ac_t""yes" 1>&6
9132 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9133 cat >> confdefs.h <<EOF
9134#define $ac_tr_func 1
9135EOF
9136
9137else
9138 echo "$ac_t""no" 1>&6
9139fi
9140done
9141
9142else
9143 echo "$ac_t""no" 1>&6
9144fi
9145
9146
4f14bcd8
GD
9147 if test "x$ac_cv_func_regcomp" != "xyes"; then
9148 if test "$wxUSE_REGEX" = "sys" ; then
9149 { echo "configure: error: system regex library not found! Use --with-regex to use built-in version" 1>&2; exit 1; }
9150 else
a3df447d 9151 echo "configure: warning: system regex library not found, will use built-in instead" 1>&2
4f14bcd8
GD
9152 wxUSE_REGEX=builtin
9153 fi
9154 else
9155 wxUSE_REGEX=sys
18dbb1f6 9156 fi
18dbb1f6
VZ
9157 fi
9158
4f14bcd8
GD
9159 if test "$wxUSE_REGEX" = "builtin" ; then
9160 REGEX_INCLUDE="-I\${top_srcdir}/src/regex"
9161 fi
18dbb1f6
VZ
9162fi
9163
9164
4f14bcd8
GD
9165ZLIB_INCLUDE=
9166ZLIB_LINK=
9167if test "$wxUSE_ZLIB" != "no" ; then
9168 cat >> confdefs.h <<\EOF
9169#define wxUSE_ZLIB 1
9170EOF
dad6c0ea 9171
10f2d63a 9172
4f14bcd8
GD
9173 if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
9174 ac_safe=`echo "zlib.h" | sed 'y%./+-%__p_%'`
9175echo $ac_n "checking for zlib.h""... $ac_c" 1>&6
f9bc1684 9176echo "configure:9177: checking for zlib.h" >&5
3a922bb4
RL
9177if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9178 echo $ac_n "(cached) $ac_c" 1>&6
9179else
9180 cat > conftest.$ac_ext <<EOF
f9bc1684 9181#line 9182 "configure"
3a922bb4 9182#include "confdefs.h"
4f14bcd8 9183#include <zlib.h>
3a922bb4
RL
9184EOF
9185ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
f9bc1684 9186{ (eval echo configure:9187: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3a922bb4
RL
9187ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9188if test -z "$ac_err"; then
9189 rm -rf conftest*
9190 eval "ac_cv_header_$ac_safe=yes"
9191else
9192 echo "$ac_err" >&5
9193 echo "configure: failed program was:" >&5
9194 cat conftest.$ac_ext >&5
9195 rm -rf conftest*
9196 eval "ac_cv_header_$ac_safe=no"
9197fi
9198rm -f conftest*
9199fi
9200if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9201 echo "$ac_t""yes" 1>&6
4f14bcd8 9202 echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
f9bc1684 9203echo "configure:9204: checking for deflate in -lz" >&5
4f14bcd8
GD
9204ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
9205if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9206 echo $ac_n "(cached) $ac_c" 1>&6
9207else
9208 ac_save_LIBS="$LIBS"
9209LIBS="-lz $LIBS"
9210cat > conftest.$ac_ext <<EOF
f9bc1684 9211#line 9212 "configure"
4f14bcd8
GD
9212#include "confdefs.h"
9213/* Override any gcc2 internal prototype to avoid an error. */
9214/* We use char because int might match the return type of a gcc2
9215 builtin and then its argument prototype would still apply. */
9216char deflate();
9217
9218int main() {
9219deflate()
9220; return 0; }
3a922bb4 9221EOF
f9bc1684 9222if { (eval echo configure:9223: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4f14bcd8
GD
9223 rm -rf conftest*
9224 eval "ac_cv_lib_$ac_lib_var=yes"
9225else
9226 echo "configure: failed program was:" >&5
9227 cat conftest.$ac_ext >&5
9228 rm -rf conftest*
9229 eval "ac_cv_lib_$ac_lib_var=no"
9230fi
9231rm -f conftest*
9232LIBS="$ac_save_LIBS"
9233
9234fi
9235if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9236 echo "$ac_t""yes" 1>&6
3d63bc3a 9237 ZLIB_LINK=" -lz"
3a922bb4
RL
9238else
9239 echo "$ac_t""no" 1>&6
9240fi
10f2d63a 9241
4f14bcd8
GD
9242else
9243 echo "$ac_t""no" 1>&6
9244fi
9245
9246
9247 if test "x$ZLIB_LINK" = "x" ; then
9248 if test "$wxUSE_ZLIB" = "sys" ; then
9249 { echo "configure: error: system zlib compression library not found! Use --with-zlib=builtin to use built-in version" 1>&2; exit 1; }
9250 else
a3df447d 9251 echo "configure: warning: system zlib compression library not found, will use built-in instead" 1>&2
4f14bcd8
GD
9252 wxUSE_ZLIB=builtin
9253 fi
9254 else
9255 wxUSE_ZLIB=sys
9256 fi
9257 fi
9258
9259 if test "$wxUSE_ZLIB" = "builtin" ; then
9260 ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib"
9261 fi
9262fi
9263
9264
9265PNG_INCLUDE=
9266PNG_LINK=
9267if test "$wxUSE_LIBPNG" != "no" ; then
9268 cat >> confdefs.h <<\EOF
9269#define wxUSE_LIBPNG 1
9270EOF
9271
9272
9273 if test "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
a3df447d 9274 echo "configure: warning: system png library doesn't work without system zlib, will use built-in instead" 1>&2
4f14bcd8
GD
9275 wxUSE_LIBPNG=builtin
9276 fi
9277
9278 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
9279 ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
9280echo $ac_n "checking for png.h""... $ac_c" 1>&6
f9bc1684 9281echo "configure:9282: checking for png.h" >&5
d4158b5d
VS
9282if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9283 echo $ac_n "(cached) $ac_c" 1>&6
9284else
9285 cat > conftest.$ac_ext <<EOF
f9bc1684 9286#line 9287 "configure"
d4158b5d 9287#include "confdefs.h"
4f14bcd8 9288#include <png.h>
d4158b5d
VS
9289EOF
9290ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
f9bc1684 9291{ (eval echo configure:9292: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d4158b5d
VS
9292ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9293if test -z "$ac_err"; then
9294 rm -rf conftest*
9295 eval "ac_cv_header_$ac_safe=yes"
9296else
9297 echo "$ac_err" >&5
9298 echo "configure: failed program was:" >&5
9299 cat conftest.$ac_ext >&5
9300 rm -rf conftest*
9301 eval "ac_cv_header_$ac_safe=no"
9302fi
9303rm -f conftest*
9304fi
9305if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9306 echo "$ac_t""yes" 1>&6
4f14bcd8 9307 echo $ac_n "checking for png_check_sig in -lpng""... $ac_c" 1>&6
f9bc1684 9308echo "configure:9309: checking for png_check_sig in -lpng" >&5
4f14bcd8
GD
9309ac_lib_var=`echo png'_'png_check_sig | sed 'y%./+-%__p_%'`
9310if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3a922bb4
RL
9311 echo $ac_n "(cached) $ac_c" 1>&6
9312else
4f14bcd8
GD
9313 ac_save_LIBS="$LIBS"
9314LIBS="-lpng -lz -lm $LIBS"
9315cat > conftest.$ac_ext <<EOF
f9bc1684 9316#line 9317 "configure"
3a922bb4 9317#include "confdefs.h"
4f14bcd8
GD
9318/* Override any gcc2 internal prototype to avoid an error. */
9319/* We use char because int might match the return type of a gcc2
9320 builtin and then its argument prototype would still apply. */
9321char png_check_sig();
f6bcfd97 9322
4f14bcd8
GD
9323int main() {
9324png_check_sig()
3a922bb4
RL
9325; return 0; }
9326EOF
f9bc1684 9327if { (eval echo configure:9328: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3a922bb4 9328 rm -rf conftest*
4f14bcd8 9329 eval "ac_cv_lib_$ac_lib_var=yes"
3a922bb4
RL
9330else
9331 echo "configure: failed program was:" >&5
9332 cat conftest.$ac_ext >&5
9333 rm -rf conftest*
4f14bcd8 9334 eval "ac_cv_lib_$ac_lib_var=no"
3a922bb4
RL
9335fi
9336rm -f conftest*
4f14bcd8 9337LIBS="$ac_save_LIBS"
10f2d63a 9338
4f14bcd8
GD
9339fi
9340if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9341 echo "$ac_t""yes" 1>&6
3d63bc3a 9342 PNG_LINK=" -lpng"
4f14bcd8
GD
9343else
9344 echo "$ac_t""no" 1>&6
9345fi
32832908 9346
4f14bcd8
GD
9347
9348else
9349 echo "$ac_t""no" 1>&6
9350fi
3a922bb4 9351
7b7a7637 9352
4f14bcd8
GD
9353 if test "x$PNG_LINK" = "x" ; then
9354 if test "$wxUSE_LIBPNG" = "sys" ; then
9355 { echo "configure: error: system png library not found! Use --with-libpng=builtin to use built-in version" 1>&2; exit 1; }
9356 else
a3df447d 9357 echo "configure: warning: system png library not found, will use built-in instead" 1>&2
4f14bcd8
GD
9358 wxUSE_LIBPNG=builtin
9359 fi
9360 else
9361 wxUSE_LIBPNG=yes
9362 fi
3a922bb4
RL
9363 fi
9364
4f14bcd8
GD
9365 if test "$wxUSE_LIBPNG" = "builtin" ; then
9366 PNG_INCLUDE="-I\${top_srcdir}/src/png"
3a922bb4
RL
9367 fi
9368
4f14bcd8 9369 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
3a922bb4
RL
9370fi
9371
32832908 9372
4f14bcd8
GD
9373JPEG_INCLUDE=
9374JPEG_LINK=
9375if test "$wxUSE_LIBJPEG" != "no" ; then
9376 cat >> confdefs.h <<\EOF
9377#define wxUSE_LIBJPEG 1
9378EOF
10f2d63a 9379
8168de4c 9380
4f14bcd8
GD
9381 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
9382 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
f9bc1684 9383echo "configure:9384: checking for jpeglib.h" >&5
4f14bcd8 9384 if eval "test \"`echo '$''{'ac_cv_header_jpeglib_h'+set}'`\" = set"; then
8168de4c
VZ
9385 echo $ac_n "(cached) $ac_c" 1>&6
9386else
4f14bcd8 9387 cat > conftest.$ac_ext <<EOF
f9bc1684 9388#line 9389 "configure"
4f14bcd8 9389#include "confdefs.h"
8168de4c 9390
4f14bcd8
GD
9391 #undef HAVE_STDLIB_H
9392 #include <stdio.h>
9393 #include <jpeglib.h>
9394
9395int main() {
9396
9397
9398; return 0; }
9399EOF
f9bc1684 9400if { (eval echo configure:9401: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4f14bcd8
GD
9401 rm -rf conftest*
9402 ac_cv_header_jpeglib_h=yes
6f72b082 9403else
4f14bcd8
GD
9404 echo "configure: failed program was:" >&5
9405 cat conftest.$ac_ext >&5
9406 rm -rf conftest*
9407 ac_cv_header_jpeglib_h=no
9408
9409fi
9410rm -f conftest*
9411
698dcdb6 9412fi
6f72b082 9413
4f14bcd8
GD
9414 echo "$ac_t""$ac_cv_header_jpeglib_h" 1>&6
9415
9416 if test "$ac_cv_header_jpeglib_h" = "yes"; then
9417 echo $ac_n "checking for jpeg_read_header in -ljpeg""... $ac_c" 1>&6
f9bc1684 9418echo "configure:9419: checking for jpeg_read_header in -ljpeg" >&5
4f14bcd8
GD
9419ac_lib_var=`echo jpeg'_'jpeg_read_header | sed 'y%./+-%__p_%'`
9420if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9421 echo $ac_n "(cached) $ac_c" 1>&6
6f72b082 9422else
4f14bcd8
GD
9423 ac_save_LIBS="$LIBS"
9424LIBS="-ljpeg $LIBS"
9425cat > conftest.$ac_ext <<EOF
f9bc1684 9426#line 9427 "configure"
4f14bcd8
GD
9427#include "confdefs.h"
9428/* Override any gcc2 internal prototype to avoid an error. */
9429/* We use char because int might match the return type of a gcc2
9430 builtin and then its argument prototype would still apply. */
9431char jpeg_read_header();
698dcdb6 9432
4f14bcd8
GD
9433int main() {
9434jpeg_read_header()
9435; return 0; }
9436EOF
f9bc1684 9437if { (eval echo configure:9438: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4f14bcd8
GD
9438 rm -rf conftest*
9439 eval "ac_cv_lib_$ac_lib_var=yes"
6f72b082 9440else
4f14bcd8
GD
9441 echo "configure: failed program was:" >&5
9442 cat conftest.$ac_ext >&5
9443 rm -rf conftest*
9444 eval "ac_cv_lib_$ac_lib_var=no"
698dcdb6 9445fi
4f14bcd8
GD
9446rm -f conftest*
9447LIBS="$ac_save_LIBS"
698dcdb6 9448
4f14bcd8
GD
9449fi
9450if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9451 echo "$ac_t""yes" 1>&6
3d63bc3a 9452 JPEG_LINK=" -ljpeg"
4f14bcd8
GD
9453else
9454 echo "$ac_t""no" 1>&6
9455fi
9456
9457 fi
9458
9459 if test "x$JPEG_LINK" = "x" ; then
9460 if test "$wxUSE_LIBJPEG" = "sys" ; then
9461 { echo "configure: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" 1>&2; exit 1; }
9462 else
a3df447d 9463 echo "configure: warning: system jpeg library not found, will use built-in instead" 1>&2
4f14bcd8
GD
9464 wxUSE_LIBJPEG=builtin
9465 fi
9466 else
9467 wxUSE_LIBJPEG=sys
9468 fi
9469 fi
9470
9471 if test "$wxUSE_LIBJPEG" = "builtin" ; then
9472 JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg"
9473 fi
9474fi
9475
9476
9477TIFF_INCLUDE=
9478TIFF_LINK=
9479if test "$wxUSE_LIBTIFF" != "no" ; then
9480 cat >> confdefs.h <<\EOF
9481#define wxUSE_LIBTIFF 1
9482EOF
9483
9484
9485 if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
9486 ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
9487echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
f9bc1684 9488echo "configure:9489: checking for tiffio.h" >&5
4f14bcd8
GD
9489if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9490 echo $ac_n "(cached) $ac_c" 1>&6
9491else
9492 cat > conftest.$ac_ext <<EOF
f9bc1684 9493#line 9494 "configure"
4f14bcd8
GD
9494#include "confdefs.h"
9495#include <tiffio.h>
9496EOF
9497ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
f9bc1684 9498{ (eval echo configure:9499: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4f14bcd8
GD
9499ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9500if test -z "$ac_err"; then
9501 rm -rf conftest*
9502 eval "ac_cv_header_$ac_safe=yes"
9503else
9504 echo "$ac_err" >&5
9505 echo "configure: failed program was:" >&5
9506 cat conftest.$ac_ext >&5
9507 rm -rf conftest*
9508 eval "ac_cv_header_$ac_safe=no"
9509fi
9510rm -f conftest*
9511fi
9512if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9513 echo "$ac_t""yes" 1>&6
9514 echo $ac_n "checking for TIFFError in -ltiff""... $ac_c" 1>&6
f9bc1684 9515echo "configure:9516: checking for TIFFError in -ltiff" >&5
4f14bcd8
GD
9516ac_lib_var=`echo tiff'_'TIFFError | sed 'y%./+-%__p_%'`
9517if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9518 echo $ac_n "(cached) $ac_c" 1>&6
9519else
9520 ac_save_LIBS="$LIBS"
9521LIBS="-ltiff -lm $LIBS"
9522cat > conftest.$ac_ext <<EOF
f9bc1684 9523#line 9524 "configure"
4f14bcd8
GD
9524#include "confdefs.h"
9525/* Override any gcc2 internal prototype to avoid an error. */
9526/* We use char because int might match the return type of a gcc2
9527 builtin and then its argument prototype would still apply. */
9528char TIFFError();
9529
9530int main() {
9531TIFFError()
9532; return 0; }
9533EOF
f9bc1684 9534if { (eval echo configure:9535: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4f14bcd8
GD
9535 rm -rf conftest*
9536 eval "ac_cv_lib_$ac_lib_var=yes"
9537else
9538 echo "configure: failed program was:" >&5
9539 cat conftest.$ac_ext >&5
9540 rm -rf conftest*
9541 eval "ac_cv_lib_$ac_lib_var=no"
9542fi
9543rm -f conftest*
9544LIBS="$ac_save_LIBS"
9545
9546fi
9547if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9548 echo "$ac_t""yes" 1>&6
3d63bc3a 9549 TIFF_LINK=" -ltiff"
4f14bcd8
GD
9550else
9551 echo "$ac_t""no" 1>&6
9552fi
9553
9554
9555else
9556 echo "$ac_t""no" 1>&6
9557fi
9558
9559
9560 if test "x$TIFF_LINK" = "x" ; then
9561 if test "$wxUSE_LIBTIFF" = "sys" ; then
9562 { echo "configure: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" 1>&2; exit 1; }
9563 else
a3df447d 9564 echo "configure: warning: system tiff library not found, will use built-in instead" 1>&2
4f14bcd8
GD
9565 wxUSE_LIBTIFF=builtin
9566 fi
9567 else
9568 wxUSE_LIBTIFF=sys
9569 fi
9570 fi
9571
9572 if test "$wxUSE_LIBTIFF" = "builtin" ; then
9573 TIFF_INCLUDE="-I\${top_srcdir}/src/tiff"
9574 fi
9575fi
9576
9577
9578FREETYPE_INCLUDE=
9579FREETYPE_LINK=
9580if test "$wxUSE_FREETYPE" != "no" ; then
9581 cat >> confdefs.h <<\EOF
9582#define wxUSE_FREETYPE 1
9583EOF
9584
9585
9586 if test "$wxUSE_FREETYPE" = "sys" -o "$wxUSE_FREETYPE" = "yes" ; then
9587 ac_safe=`echo "freetype.h" | sed 'y%./+-%__p_%'`
9588echo $ac_n "checking for freetype.h""... $ac_c" 1>&6
f9bc1684 9589echo "configure:9590: checking for freetype.h" >&5
4f14bcd8
GD
9590if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9591 echo $ac_n "(cached) $ac_c" 1>&6
9592else
9593 cat > conftest.$ac_ext <<EOF
f9bc1684 9594#line 9595 "configure"
4f14bcd8
GD
9595#include "confdefs.h"
9596#include <freetype.h>
9597EOF
9598ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
f9bc1684 9599{ (eval echo configure:9600: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4f14bcd8
GD
9600ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9601if test -z "$ac_err"; then
9602 rm -rf conftest*
9603 eval "ac_cv_header_$ac_safe=yes"
9604else
9605 echo "$ac_err" >&5
9606 echo "configure: failed program was:" >&5
9607 cat conftest.$ac_ext >&5
9608 rm -rf conftest*
9609 eval "ac_cv_header_$ac_safe=no"
9610fi
9611rm -f conftest*
9612fi
9613if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9614 echo "$ac_t""yes" 1>&6
9615 echo $ac_n "checking for FT_Render_Glyph in -lfreetype""... $ac_c" 1>&6
f9bc1684 9616echo "configure:9617: checking for FT_Render_Glyph in -lfreetype" >&5
4f14bcd8
GD
9617ac_lib_var=`echo freetype'_'FT_Render_Glyph | sed 'y%./+-%__p_%'`
9618if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9619 echo $ac_n "(cached) $ac_c" 1>&6
9620else
9621 ac_save_LIBS="$LIBS"
9622LIBS="-lfreetype -lm $LIBS"
9623cat > conftest.$ac_ext <<EOF
f9bc1684 9624#line 9625 "configure"
4f14bcd8
GD
9625#include "confdefs.h"
9626/* Override any gcc2 internal prototype to avoid an error. */
9627/* We use char because int might match the return type of a gcc2
9628 builtin and then its argument prototype would still apply. */
9629char FT_Render_Glyph();
9630
9631int main() {
9632FT_Render_Glyph()
9633; return 0; }
9634EOF
f9bc1684 9635if { (eval echo configure:9636: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4f14bcd8
GD
9636 rm -rf conftest*
9637 eval "ac_cv_lib_$ac_lib_var=yes"
9638else
9639 echo "configure: failed program was:" >&5
9640 cat conftest.$ac_ext >&5
9641 rm -rf conftest*
9642 eval "ac_cv_lib_$ac_lib_var=no"
9643fi
9644rm -f conftest*
9645LIBS="$ac_save_LIBS"
9646
9647fi
9648if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9649 echo "$ac_t""yes" 1>&6
3d63bc3a 9650 FREETYPE_LINK=" -lfreetype"
4f14bcd8
GD
9651else
9652 echo "$ac_t""no" 1>&6
9653fi
9654
9655
9656else
9657 echo "$ac_t""no" 1>&6
9658fi
9659
9660
9661 if test "x$FREETYPE_LINK" = "x" ; then
9662 if test "$wxUSE_FREETYPE" = "sys" ; then
9663 { echo "configure: error: system freetype library not found! Use --with-freetype=builtin to use built-in version" 1>&2; exit 1; }
9664 else
a3df447d 9665 echo "configure: warning: system freetype library not found, will use built-in instead" 1>&2
4f14bcd8
GD
9666 wxUSE_FREETYPE=builtin
9667 fi
9668 else
9669 wxUSE_FREETYPE=sys
9670 fi
9671 fi
9672
9673 if test "$wxUSE_FREETYPE" = "builtin" ; then
9674 FREETYPE_INCLUDE="-I\${top_srcdir}/src/freetype"
9675 fi
9676fi
9677
9678
9679AFMINSTALL=
9680
9681TOOLKIT=
9682TOOLKIT_INCLUDE=
9683WIDGET_SET=
9684
9685if test "$USE_WIN32" = 1 ; then
9686 for ac_hdr in w32api.h
9687do
9688ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9689echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
f9bc1684 9690echo "configure:9691: checking for $ac_hdr" >&5
4f14bcd8
GD
9691if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9692 echo $ac_n "(cached) $ac_c" 1>&6
9693else
9694 cat > conftest.$ac_ext <<EOF
f9bc1684 9695#line 9696 "configure"
4f14bcd8
GD
9696#include "confdefs.h"
9697#include <$ac_hdr>
9698EOF
9699ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
f9bc1684 9700{ (eval echo configure:9701: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4f14bcd8
GD
9701ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9702if test -z "$ac_err"; then
9703 rm -rf conftest*
9704 eval "ac_cv_header_$ac_safe=yes"
9705else
9706 echo "$ac_err" >&5
9707 echo "configure: failed program was:" >&5
9708 cat conftest.$ac_ext >&5
9709 rm -rf conftest*
9710 eval "ac_cv_header_$ac_safe=no"
9711fi
9712rm -f conftest*
9713fi
9714if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9715 echo "$ac_t""yes" 1>&6
9716 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9717 cat >> confdefs.h <<EOF
9718#define $ac_tr_hdr 1
9719EOF
9720
9721else
9722 echo "$ac_t""no" 1>&6
9723fi
9724done
9725
9726 ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'`
9727echo $ac_n "checking for windows.h""... $ac_c" 1>&6
f9bc1684 9728echo "configure:9729: checking for windows.h" >&5
4f14bcd8
GD
9729if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9730 echo $ac_n "(cached) $ac_c" 1>&6
9731else
9732 cat > conftest.$ac_ext <<EOF
f9bc1684 9733#line 9734 "configure"
4f14bcd8
GD
9734#include "confdefs.h"
9735#include <windows.h>
9736EOF
9737ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
f9bc1684 9738{ (eval echo configure:9739: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4f14bcd8
GD
9739ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9740if test -z "$ac_err"; then
9741 rm -rf conftest*
9742 eval "ac_cv_header_$ac_safe=yes"
9743else
9744 echo "$ac_err" >&5
9745 echo "configure: failed program was:" >&5
9746 cat conftest.$ac_ext >&5
9747 rm -rf conftest*
9748 eval "ac_cv_header_$ac_safe=no"
9749fi
9750rm -f conftest*
9751fi
9752if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9753 echo "$ac_t""yes" 1>&6
9754 :
9755else
9756 echo "$ac_t""no" 1>&6
9757
9758 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
9759
9760fi
9761
9762
9763 echo $ac_n "checking if w32api has good enough MSIE support""... $ac_c" 1>&6
f9bc1684 9764echo "configure:9765: checking if w32api has good enough MSIE support" >&5
ea7682f0 9765if eval "test \"`echo '$''{'wx_cv_w32api_win32_ie'+set}'`\" = set"; then
4f14bcd8
GD
9766 echo $ac_n "(cached) $ac_c" 1>&6
9767else
9768
9769 cat > conftest.$ac_ext <<EOF
f9bc1684 9770#line 9771 "configure"
4f14bcd8
GD
9771#include "confdefs.h"
9772#include <w32api.h>
9773int main() {
9774
9775 #define wxCHECK_W32API_VERSION( major, minor ) \
9776 ( defined( __W32API_MAJOR_VERSION ) && defined( __W32API_MINOR_VERSION ) \
9777 && ( ( __W32API_MAJOR_VERSION > (major) ) \
9778 || ( __W32API_MAJOR_VERSION == (major) && __W32API_MINOR_VERSION >= (minor))))
9779
9780 #if !wxCHECK_W32API_VERSION(1,1)
9781 #error You need w32api 1.1 or newer
9782 #endif
9783
9784; return 0; }
9785EOF
f9bc1684 9786if { (eval echo configure:9787: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4f14bcd8
GD
9787 rm -rf conftest*
9788
ea7682f0 9789 wx_cv_w32api_win32_ie=yes
4f14bcd8
GD
9790
9791else
9792 echo "configure: failed program was:" >&5
9793 cat conftest.$ac_ext >&5
9794 rm -rf conftest*
9795
ea7682f0 9796 wx_cv_w32api_win32_ie=no
4f14bcd8
GD
9797
9798fi
9799rm -f conftest*
9800
9801fi
9802
ea7682f0
VS
9803echo "$ac_t""$wx_cv_w32api_win32_ie" 1>&6
9804 if test "$wx_cv_w32api_win32_ie" = "yes" ; then
9805 CPPFLAGS="$CPPFLAGS -D_WIN32_IE=0x400"
9806 fi
4f14bcd8
GD
9807
9808 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -ladvapi32 -lwsock32"
9809
77e13408
RL
9810 case "${host}" in
9811 *-*-cygwin* )
9812 LIBS="$LIBS -lkernel32 -luser32 -lgdi32 -lcomdlg32"
9813 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__"
9814 esac
4f14bcd8
GD
9815
9816 if test "$wxUSE_ODBC" = "yes" ; then
3d63bc3a 9817 LIBS=" -lodbc32 -lole32 -loleaut32$LIBS"
4f14bcd8
GD
9818 fi
9819
4f14bcd8
GD
9820 RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
9821 RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
9822fi
9823
9824if test "$wxUSE_GUI" = "yes"; then
9825 USE_GUI=1
9826
9827 GUI_TK_LIBRARY=
9828
9829 WXGTK12=
9830 WXGTK127=
9831 WXGTK20=
9832
77e13408 9833 if test "$wxUSE_MSW" = 1 ; then
4f14bcd8
GD
9834 TOOLKIT=MSW
9835 GUIDIST=MSW_DIST
77e13408
RL
9836
9837 case "${host}" in
9838 *-*-mingw32* )
3d63bc3a 9839 LDFLAGS="$LDFLAGS -Wl,--subsystem,windows -mwindows"
77e13408 9840 esac
4f14bcd8
GD
9841 fi
9842
9843 if test "$wxUSE_GTK" = 1; then
9844 echo $ac_n "checking for GTK+ version""... $ac_c" 1>&6
f9bc1684 9845echo "configure:9846: checking for GTK+ version" >&5
4f14bcd8
GD
9846
9847 gtk_version_cached=1
9848 if eval "test \"`echo '$''{'wx_cv_lib_gtk'+set}'`\" = set"; then
9849 echo $ac_n "(cached) $ac_c" 1>&6
9850else
9851
9852 gtk_version_cached=0
d48ad9bd 9853 echo "$ac_t""" 1>&6
4f14bcd8 9854
3f345b47
VZ
9855 GTK_MODULES=
9856 if test "$wxUSE_THREADS" = "yes"; then
9857 GTK_MODULES=gthread
9858 fi
9859
4f14bcd8
GD
9860 wx_cv_lib_gtk=
9861 if test "x$wxUSE_GTK2" = "xyes"; then
9862 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
9863if test "${with_gtk_prefix+set}" = set; then
9864 withval="$with_gtk_prefix"
9865 gtk_config_prefix="$withval"
9866else
9867 gtk_config_prefix=""
9868fi
9869
9870# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
9871if test "${with_gtk_exec_prefix+set}" = set; then
9872 withval="$with_gtk_exec_prefix"
9873 gtk_config_exec_prefix="$withval"
9874else
9875 gtk_config_exec_prefix=""
9876fi
9877
9878# Check whether --enable-gtktest or --disable-gtktest was given.
9879if test "${enable_gtktest+set}" = set; then
9880 enableval="$enable_gtktest"
9881 :
9882else
9883 enable_gtktest=yes
9884fi
9885
9886
3f345b47 9887 for module in . $GTK_MODULES
4f14bcd8 9888 do
6f72b082 9889 case "$module" in
8168de4c 9890 gthread)
6f72b082
OK
9891 gtk_config_args="$gtk_config_args gthread"
9892 ;;
9893 esac
9894 done
9895
9896 if test x$gtk_config_exec_prefix != x ; then
9897 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
9898 if test x${GTK_CONFIG_2_0+set} != xset ; then
9899 GTK_CONFIG_2_0=$gtk_config_exec_prefix/bin/gtk-config-2.0
9900 fi
9901 fi
9902 if test x$gtk_config_prefix != x ; then
9903 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
9904 if test x${GTK_CONFIG_2_0+set} != xset ; then
9905 GTK_CONFIG_2_0=$gtk_config_prefix/bin/gtk-config-2.0
9906 fi
9907 fi
9908
9909 # Extract the first word of "gtk-config-2.0", so it can be a program name with args.
9910set dummy gtk-config-2.0; ac_word=$2
698dcdb6 9911echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
f9bc1684 9912echo "configure:9913: checking for $ac_word" >&5
698dcdb6
VZ
9913if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG_2_0'+set}'`\" = set"; then
9914 echo $ac_n "(cached) $ac_c" 1>&6
6f72b082 9915else
698dcdb6
VZ
9916 case "$GTK_CONFIG_2_0" in
9917 /*)
6f72b082
OK
9918 ac_cv_path_GTK_CONFIG_2_0="$GTK_CONFIG_2_0" # Let the user override the test with a path.
9919 ;;
698dcdb6
VZ
9920 ?:/*)
9921 ac_cv_path_GTK_CONFIG_2_0="$GTK_CONFIG_2_0" # Let the user override the test with a dos path.
9922 ;;
6f72b082 9923 *)
698dcdb6
VZ
9924 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9925 ac_dummy="$PATH"
9926 for ac_dir in $ac_dummy; do
9927 test -z "$ac_dir" && ac_dir=.
9928 if test -f $ac_dir/$ac_word; then
9929 ac_cv_path_GTK_CONFIG_2_0="$ac_dir/$ac_word"
9930 break
9931 fi
9932 done
9933 IFS="$ac_save_ifs"
6f72b082
OK
9934 test -z "$ac_cv_path_GTK_CONFIG_2_0" && ac_cv_path_GTK_CONFIG_2_0="no"
9935 ;;
9936esac
9937fi
698dcdb6 9938GTK_CONFIG_2_0="$ac_cv_path_GTK_CONFIG_2_0"
6f72b082 9939if test -n "$GTK_CONFIG_2_0"; then
698dcdb6 9940 echo "$ac_t""$GTK_CONFIG_2_0" 1>&6
6f72b082 9941else
698dcdb6 9942 echo "$ac_t""no" 1>&6
6f72b082
OK
9943fi
9944
9945 min_gtk_version=1.3.1
698dcdb6 9946 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
f9bc1684 9947echo "configure:9948: checking for GTK - version >= $min_gtk_version" >&5
6f72b082
OK
9948 no_gtk=""
9949 if test "$GTK_CONFIG_2_0" = "no" ; then
9950 no_gtk=yes
9951 else
9952 GTK_CFLAGS=`$GTK_CONFIG_2_0 $gtk_config_args --cflags`
9953 GTK_LIBS=`$GTK_CONFIG_2_0 $gtk_config_args --libs`
9954 gtk_config_major_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \
9955 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
9956 gtk_config_minor_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \
9957 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
9958 gtk_config_micro_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \
9959 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
9960 if test "x$enable_gtktest" = "xyes" ; then
9961 ac_save_CFLAGS="$CFLAGS"
9962 ac_save_LIBS="$LIBS"
9963 CFLAGS="$CFLAGS $GTK_CFLAGS"
9964 LIBS="$GTK_LIBS $LIBS"
9965 rm -f conf.gtktest
9966 if test "$cross_compiling" = yes; then
9967 echo $ac_n "cross compiling; assumed OK... $ac_c"
9968else
698dcdb6 9969 cat > conftest.$ac_ext <<EOF
f9bc1684 9970#line 9971 "configure"
6f72b082
OK
9971#include "confdefs.h"
9972
9973#include <gtk/gtk.h>
9974#include <stdio.h>
9975#include <stdlib.h>
9976
8168de4c 9977int
6f72b082
OK
9978main ()
9979{
9980 int major, minor, micro;
9981 char *tmp_version;
9982
9983 system ("touch conf.gtktest");
9984
9985 /* HP/UX 9 (%@#!) writes to sscanf strings */
9986 tmp_version = g_strdup("$min_gtk_version");
9987 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
9988 printf("%s, bad version string\n", "$min_gtk_version");
9989 exit(1);
9990 }
9991
9992 if ((gtk_major_version != $gtk_config_major_version) ||
9993 (gtk_minor_version != $gtk_config_minor_version) ||
9994 (gtk_micro_version != $gtk_config_micro_version))
9995 {
8168de4c 9996 printf("\n*** 'gtk-config-2.0 --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
6f72b082
OK
9997 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
9998 gtk_major_version, gtk_minor_version, gtk_micro_version);
9999 printf ("*** was found! If gtk-config-2.0 was correct, then it is best\n");
10000 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
10001 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
10002 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
10003 printf("*** required on your system.\n");
10004 printf("*** If gtk-config-2.0 was wrong, set the environment variable GTK_CONFIG_2_0\n");
10005 printf("*** to point to the correct copy of gtk-config-2.0, and remove the file config.cache\n");
10006 printf("*** before re-running configure\n");
8168de4c 10007 }
6f72b082
OK
10008#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
10009 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
8168de4c 10010 (gtk_minor_version != GTK_MINOR_VERSION) ||
6f72b082
OK
10011 (gtk_micro_version != GTK_MICRO_VERSION))
10012 {
10013 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
8168de4c 10014 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
6f72b082 10015 printf("*** library (version %d.%d.%d)\n",
8168de4c 10016 gtk_major_version, gtk_minor_version, gtk_micro_version);
6f72b082
OK
10017 }
10018#endif /* defined (GTK_MAJOR_VERSION) ... */
10019 else
10020 {
10021 if ((gtk_major_version > major) ||
10022 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
10023 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
10024 {
10025 return 0;
10026 }
10027 else
10028 {
10029 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
10030 gtk_major_version, gtk_minor_version, gtk_micro_version);
10031 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
8168de4c 10032 major, minor, micro);
6f72b082
OK
10033 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
10034 printf("***\n");
10035 printf("*** If you have already installed a sufficiently new version, this error\n");
10036 printf("*** probably means that the wrong copy of the gtk-config-2.0 shell script is\n");
10037 printf("*** being found. The easiest way to fix this is to remove the old version\n");
10038 printf("*** of GTK+, but you can also set the GTK_CONFIG_2_0 environment to point to the\n");
10039 printf("*** correct copy of gtk-config-2.0. (In this case, you will have to\n");
10040 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
10041 printf("*** so that the correct libraries are found at run-time))\n");
10042 }
10043 }
10044 return 1;
10045}
10046
698dcdb6 10047EOF
f9bc1684 10048if { (eval echo configure:10049: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6 10049then
6f72b082
OK
10050 :
10051else
698dcdb6
VZ
10052 echo "configure: failed program was:" >&5
10053 cat conftest.$ac_ext >&5
10054 rm -fr conftest*
10055 no_gtk=yes
6f72b082 10056fi
698dcdb6 10057rm -fr conftest*
6f72b082 10058fi
698dcdb6 10059
6f72b082
OK
10060 CFLAGS="$ac_save_CFLAGS"
10061 LIBS="$ac_save_LIBS"
10062 fi
10063 fi
10064 if test "x$no_gtk" = x ; then
698dcdb6 10065 echo "$ac_t""yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" 1>&6
8168de4c 10066 wx_cv_lib_gtk=2.0
6f72b082 10067 else
698dcdb6 10068 echo "$ac_t""no" 1>&6
6f72b082
OK
10069 if test "$GTK_CONFIG_2_0" = "no" ; then
10070 echo "*** The gtk-config-2.0 script installed by GTK could not be found"
10071 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
10072 echo "*** your path, or set the GTK_CONFIG_2_0 environment variable to the"
10073 echo "*** full path to gtk-config-2.0."
10074 else
10075 if test -f conf.gtktest ; then
10076 :
10077 else
10078 echo "*** Could not run GTK test program, checking why..."
10079 CFLAGS="$CFLAGS $GTK_CFLAGS"
10080 LIBS="$LIBS $GTK_LIBS"
698dcdb6 10081 cat > conftest.$ac_ext <<EOF
f9bc1684 10082#line 10083 "configure"
6f72b082
OK
10083#include "confdefs.h"
10084
10085#include <gtk/gtk.h>
10086#include <stdio.h>
10087
698dcdb6
VZ
10088int main() {
10089 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
10090; return 0; }
10091EOF
f9bc1684 10092if { (eval echo configure:10093: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 10093 rm -rf conftest*
6f72b082
OK
10094 echo "*** The test program compiled, but did not run. This usually means"
10095 echo "*** that the run-time linker is not finding GTK or finding the wrong"
10096 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
10097 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
10098 echo "*** to the installed location Also, make sure you have run ldconfig if that"
10099 echo "*** is required on your system"
8168de4c 10100 echo "***"
6f72b082
OK
10101 echo "*** If you have an old version installed, it is best to remove it, although"
10102 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
10103 echo "***"
10104 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
10105 echo "*** came with the system with the command"
10106 echo "***"
698dcdb6 10107 echo "*** rpm --erase --nodeps gtk gtk-devel"
6f72b082 10108else
698dcdb6
VZ
10109 echo "configure: failed program was:" >&5
10110 cat conftest.$ac_ext >&5
10111 rm -rf conftest*
10112 echo "*** The test program failed to compile or link. See the file config.log for the"
6f72b082
OK
10113 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
10114 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
698dcdb6 10115 echo "*** may want to edit the gtk-config-2.0 script: $GTK_CONFIG_2_0"
6f72b082 10116fi
698dcdb6 10117rm -f conftest*
6f72b082
OK
10118 CFLAGS="$ac_save_CFLAGS"
10119 LIBS="$ac_save_LIBS"
10120 fi
10121 fi
10122 GTK_CFLAGS=""
10123 GTK_LIBS=""
3f345b47 10124 :
8168de4c
VZ
10125 fi
10126
10127
10128 rm -f conf.gtktest
10129
10130 fi
10131
10132 if test -z "$wx_cv_lib_gtk"; then
3f345b47
VZ
10133 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
10134if test "${with_gtk_prefix+set}" = set; then
10135 withval="$with_gtk_prefix"
10136 gtk_config_prefix="$withval"
10137else
10138 gtk_config_prefix=""
10139fi
10140
10141# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
10142if test "${with_gtk_exec_prefix+set}" = set; then
10143 withval="$with_gtk_exec_prefix"
10144 gtk_config_exec_prefix="$withval"
10145else
10146 gtk_config_exec_prefix=""
10147fi
10148
10149# Check whether --enable-gtktest or --disable-gtktest was given.
10150if test "${enable_gtktest+set}" = set; then
10151 enableval="$enable_gtktest"
10152 :
10153else
10154 enable_gtktest=yes
10155fi
10156
10157
10158 for module in . $GTK_MODULES
10159 do
10160 case "$module" in
10161 gthread)
10162 gtk_config_args="$gtk_config_args gthread"
10163 ;;
10164 esac
10165 done
10166
10f2d63a
VZ
10167 if test x$gtk_config_exec_prefix != x ; then
10168 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
10169 if test x${GTK_CONFIG+set} != xset ; then
10170 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
10171 fi
10172 fi
10173 if test x$gtk_config_prefix != x ; then
10174 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
10175 if test x${GTK_CONFIG+set} != xset ; then
10176 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
10177 fi
10178 fi
10179
10180 # Extract the first word of "gtk-config", so it can be a program name with args.
10181set dummy gtk-config; ac_word=$2
698dcdb6 10182echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
f9bc1684 10183echo "configure:10184: checking for $ac_word" >&5
698dcdb6
VZ
10184if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
10185 echo $ac_n "(cached) $ac_c" 1>&6
f6bcfd97 10186else
698dcdb6
VZ
10187 case "$GTK_CONFIG" in
10188 /*)
f6bcfd97
BP
10189 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
10190 ;;
698dcdb6
VZ
10191 ?:/*)
10192 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
10193 ;;
f6bcfd97 10194 *)
698dcdb6
VZ
10195 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
10196 ac_dummy="$PATH"
10197 for ac_dir in $ac_dummy; do
10198 test -z "$ac_dir" && ac_dir=.
10199 if test -f $ac_dir/$ac_word; then
10200 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
10201 break
10202 fi
10203 done
10204 IFS="$ac_save_ifs"
f6bcfd97
BP
10205 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
10206 ;;
10207esac
10208fi
698dcdb6 10209GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
f6bcfd97 10210if test -n "$GTK_CONFIG"; then
698dcdb6 10211 echo "$ac_t""$GTK_CONFIG" 1>&6
f6bcfd97 10212else
698dcdb6 10213 echo "$ac_t""no" 1>&6
f6bcfd97
BP
10214fi
10215
10216 min_gtk_version=1.2.7
698dcdb6 10217 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
f9bc1684 10218echo "configure:10219: checking for GTK - version >= $min_gtk_version" >&5
f6bcfd97 10219 no_gtk=""
3f345b47
VZ
10220 if test "$GTK_CONFIG" = "no" ; then
10221 no_gtk=yes
10222 else
10223 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
10224 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
10225 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
10226 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
10227 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
10228 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
10229 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
10230 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
10231 if test "x$enable_gtktest" = "xyes" ; then
10232 ac_save_CFLAGS="$CFLAGS"
10233 ac_save_LIBS="$LIBS"
10234 CFLAGS="$CFLAGS $GTK_CFLAGS"
10235 LIBS="$GTK_LIBS $LIBS"
10236 rm -f conf.gtktest
10237 if test "$cross_compiling" = yes; then
f6bcfd97
BP
10238 echo $ac_n "cross compiling; assumed OK... $ac_c"
10239else
698dcdb6 10240 cat > conftest.$ac_ext <<EOF
f9bc1684 10241#line 10242 "configure"
f6bcfd97
BP
10242#include "confdefs.h"
10243
10244#include <gtk/gtk.h>
f6bcfd97
BP
10245#include <stdio.h>
10246#include <stdlib.h>
10247
3f345b47 10248int
f6bcfd97
BP
10249main ()
10250{
10251 int major, minor, micro;
3f345b47 10252 char *tmp_version;
f6bcfd97 10253
3f345b47 10254 system ("touch conf.gtktest");
f6bcfd97 10255
3f345b47
VZ
10256 /* HP/UX 9 (%@#!) writes to sscanf strings */
10257 tmp_version = g_strdup("$min_gtk_version");
10258 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
10259 printf("%s, bad version string\n", "$min_gtk_version");
f6bcfd97
BP
10260 exit(1);
10261 }
10262
3f345b47
VZ
10263 if ((gtk_major_version != $gtk_config_major_version) ||
10264 (gtk_minor_version != $gtk_config_minor_version) ||
10265 (gtk_micro_version != $gtk_config_micro_version))
10266 {
10267 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
10268 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
10269 gtk_major_version, gtk_minor_version, gtk_micro_version);
10270 printf ("*** was found! If gtk-config was correct, then it is best\n");
10271 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
10272 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
10273 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
10274 printf("*** required on your system.\n");
10275 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
10276 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
10277 printf("*** before re-running configure\n");
10278 }
10279#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
10280 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
10281 (gtk_minor_version != GTK_MINOR_VERSION) ||
10282 (gtk_micro_version != GTK_MICRO_VERSION))
10283 {
10284 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
10285 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
10286 printf("*** library (version %d.%d.%d)\n",
10287 gtk_major_version, gtk_minor_version, gtk_micro_version);
10288 }
10289#endif /* defined (GTK_MAJOR_VERSION) ... */
10290 else
10291 {
10292 if ((gtk_major_version > major) ||
10293 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
10294 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
10295 {
10296 return 0;
10297 }
10298 else
10299 {
10300 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
10301 gtk_major_version, gtk_minor_version, gtk_micro_version);
10302 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
10303 major, minor, micro);
10304 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
10305 printf("***\n");
10306 printf("*** If you have already installed a sufficiently new version, this error\n");
10307 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
10308 printf("*** being found. The easiest way to fix this is to remove the old version\n");
10309 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
10310 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
10311 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
10312 printf("*** so that the correct libraries are found at run-time))\n");
10313 }
10314 }
10315 return 1;
f6bcfd97
BP
10316}
10317
698dcdb6 10318EOF
f9bc1684 10319if { (eval echo configure:10320: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6 10320then
f6bcfd97
BP
10321 :
10322else
698dcdb6
VZ
10323 echo "configure: failed program was:" >&5
10324 cat conftest.$ac_ext >&5
10325 rm -fr conftest*
10326 no_gtk=yes
f6bcfd97 10327fi
698dcdb6 10328rm -fr conftest*
f6bcfd97 10329fi
698dcdb6 10330
3f345b47
VZ
10331 CFLAGS="$ac_save_CFLAGS"
10332 LIBS="$ac_save_LIBS"
10333 fi
f6bcfd97
BP
10334 fi
10335 if test "x$no_gtk" = x ; then
698dcdb6 10336 echo "$ac_t""yes" 1>&6
3f345b47 10337 wx_cv_lib_gtk=1.2.7
f6bcfd97 10338 else
698dcdb6 10339 echo "$ac_t""no" 1>&6
3f345b47
VZ
10340 if test "$GTK_CONFIG" = "no" ; then
10341 echo "*** The gtk-config script installed by GTK could not be found"
10342 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
10343 echo "*** your path, or set the GTK_CONFIG environment variable to the"
10344 echo "*** full path to gtk-config."
10345 else
10346 if test -f conf.gtktest ; then
10347 :
10348 else
10349 echo "*** Could not run GTK test program, checking why..."
10350 CFLAGS="$CFLAGS $GTK_CFLAGS"
10351 LIBS="$LIBS $GTK_LIBS"
10352 cat > conftest.$ac_ext <<EOF
f9bc1684 10353#line 10354 "configure"
3f345b47
VZ
10354#include "confdefs.h"
10355
10356#include <gtk/gtk.h>
10357#include <stdio.h>
10358
10359int main() {
10360 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
10361; return 0; }
10362EOF
f9bc1684 10363if { (eval echo configure:10364: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3f345b47
VZ
10364 rm -rf conftest*
10365 echo "*** The test program compiled, but did not run. This usually means"
10366 echo "*** that the run-time linker is not finding GTK or finding the wrong"
10367 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
10368 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
10369 echo "*** to the installed location Also, make sure you have run ldconfig if that"
10370 echo "*** is required on your system"
10371 echo "***"
10372 echo "*** If you have an old version installed, it is best to remove it, although"
10373 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
10374 echo "***"
10375 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
10376 echo "*** came with the system with the command"
10377 echo "***"
10378 echo "*** rpm --erase --nodeps gtk gtk-devel"
10379else
10380 echo "configure: failed program was:" >&5
10381 cat conftest.$ac_ext >&5
10382 rm -rf conftest*
10383 echo "*** The test program failed to compile or link. See the file config.log for the"
10384 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
10385 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
10386 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
10387fi
10388rm -f conftest*
10389 CFLAGS="$ac_save_CFLAGS"
10390 LIBS="$ac_save_LIBS"
10391 fi
10392 fi
f6bcfd97
BP
10393 GTK_CFLAGS=""
10394 GTK_LIBS=""
10395 :
10396 fi
698dcdb6
VZ
10397
10398
3f345b47 10399 rm -f conf.gtktest
f6bcfd97 10400
8168de4c
VZ
10401 fi
10402
10403 if test -z "$wx_cv_lib_gtk"; then
3f345b47
VZ
10404 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
10405if test "${with_gtk_prefix+set}" = set; then
10406 withval="$with_gtk_prefix"
10407 gtk_config_prefix="$withval"
10408else
10409 gtk_config_prefix=""
10410fi
10411
10412# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
10413if test "${with_gtk_exec_prefix+set}" = set; then
10414 withval="$with_gtk_exec_prefix"
10415 gtk_config_exec_prefix="$withval"
10416else
10417 gtk_config_exec_prefix=""
10418fi
10419
10420# Check whether --enable-gtktest or --disable-gtktest was given.
10421if test "${enable_gtktest+set}" = set; then
10422 enableval="$enable_gtktest"
10423 :
10424else
10425 enable_gtktest=yes
10426fi
10427
10428
10429 for module in . $GTK_MODULES
10430 do
10431 case "$module" in
10432 gthread)
10433 gtk_config_args="$gtk_config_args gthread"
10434 ;;
10435 esac
10436 done
10437
f6bcfd97
BP
10438 if test x$gtk_config_exec_prefix != x ; then
10439 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
10440 if test x${GTK_CONFIG+set} != xset ; then
10441 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
10442 fi
10443 fi
10444 if test x$gtk_config_prefix != x ; then
10445 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
10446 if test x${GTK_CONFIG+set} != xset ; then
10447 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
10448 fi
10449 fi
10450
10451 # Extract the first word of "gtk-config", so it can be a program name with args.
10452set dummy gtk-config; ac_word=$2
698dcdb6 10453echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
f9bc1684 10454echo "configure:10455: checking for $ac_word" >&5
698dcdb6
VZ
10455if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
10456 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 10457else
698dcdb6
VZ
10458 case "$GTK_CONFIG" in
10459 /*)
10f2d63a
VZ
10460 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
10461 ;;
698dcdb6
VZ
10462 ?:/*)
10463 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
10464 ;;
10f2d63a 10465 *)
698dcdb6
VZ
10466 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
10467 ac_dummy="$PATH"
10468 for ac_dir in $ac_dummy; do
10469 test -z "$ac_dir" && ac_dir=.
10470 if test -f $ac_dir/$ac_word; then
10471 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
10472 break
10473 fi
10474 done
10475 IFS="$ac_save_ifs"
10f2d63a
VZ
10476 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
10477 ;;
10478esac
10479fi
698dcdb6 10480GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
10f2d63a 10481if test -n "$GTK_CONFIG"; then
698dcdb6 10482 echo "$ac_t""$GTK_CONFIG" 1>&6
10f2d63a 10483else
698dcdb6 10484 echo "$ac_t""no" 1>&6
10f2d63a
VZ
10485fi
10486
04165bec 10487 min_gtk_version=1.2.3
698dcdb6 10488 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
f9bc1684 10489echo "configure:10490: checking for GTK - version >= $min_gtk_version" >&5
10f2d63a 10490 no_gtk=""
3f345b47
VZ
10491 if test "$GTK_CONFIG" = "no" ; then
10492 no_gtk=yes
10493 else
10494 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
10495 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
10496 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
10497 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
10498 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
10499 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
10500 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
10501 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
10502 if test "x$enable_gtktest" = "xyes" ; then
10503 ac_save_CFLAGS="$CFLAGS"
10504 ac_save_LIBS="$LIBS"
10505 CFLAGS="$CFLAGS $GTK_CFLAGS"
10506 LIBS="$GTK_LIBS $LIBS"
10507 rm -f conf.gtktest
10508 if test "$cross_compiling" = yes; then
10f2d63a
VZ
10509 echo $ac_n "cross compiling; assumed OK... $ac_c"
10510else
698dcdb6 10511 cat > conftest.$ac_ext <<EOF
f9bc1684 10512#line 10513 "configure"
10f2d63a
VZ
10513#include "confdefs.h"
10514
10515#include <gtk/gtk.h>
10516#include <stdio.h>
32832908 10517#include <stdlib.h>
10f2d63a 10518
3f345b47 10519int
10f2d63a
VZ
10520main ()
10521{
10522 int major, minor, micro;
3f345b47 10523 char *tmp_version;
10f2d63a 10524
3f345b47 10525 system ("touch conf.gtktest");
10f2d63a 10526
3f345b47
VZ
10527 /* HP/UX 9 (%@#!) writes to sscanf strings */
10528 tmp_version = g_strdup("$min_gtk_version");
10529 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
10530 printf("%s, bad version string\n", "$min_gtk_version");
f49f2b0c
RR
10531 exit(1);
10532 }
10533
3f345b47
VZ
10534 if ((gtk_major_version != $gtk_config_major_version) ||
10535 (gtk_minor_version != $gtk_config_minor_version) ||
10536 (gtk_micro_version != $gtk_config_micro_version))
10537 {
10538 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
10539 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
10540 gtk_major_version, gtk_minor_version, gtk_micro_version);
10541 printf ("*** was found! If gtk-config was correct, then it is best\n");
10542 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
10543 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
10544 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
10545 printf("*** required on your system.\n");
10546 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
10547 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
10548 printf("*** before re-running configure\n");
10549 }
10550#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
10551 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
10552 (gtk_minor_version != GTK_MINOR_VERSION) ||
10553 (gtk_micro_version != GTK_MICRO_VERSION))
10554 {
10555 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
10556 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
10557 printf("*** library (version %d.%d.%d)\n",
10558 gtk_major_version, gtk_minor_version, gtk_micro_version);
10559 }
10560#endif /* defined (GTK_MAJOR_VERSION) ... */
10561 else
10562 {
10563 if ((gtk_major_version > major) ||
10564 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
10565 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
10566 {
10567 return 0;
10568 }
10569 else
10570 {
10571 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
10572 gtk_major_version, gtk_minor_version, gtk_micro_version);
10573 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
10574 major, minor, micro);
10575 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
10576 printf("***\n");
10577 printf("*** If you have already installed a sufficiently new version, this error\n");
10578 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
10579 printf("*** being found. The easiest way to fix this is to remove the old version\n");
10580 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
10581 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
10582 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
10583 printf("*** so that the correct libraries are found at run-time))\n");
10584 }
10585 }
10586 return 1;
10f2d63a
VZ
10587}
10588
698dcdb6 10589EOF
f9bc1684 10590if { (eval echo configure:10591: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6 10591then
10f2d63a
VZ
10592 :
10593else
698dcdb6
VZ
10594 echo "configure: failed program was:" >&5
10595 cat conftest.$ac_ext >&5
10596 rm -fr conftest*
10597 no_gtk=yes
10f2d63a 10598fi
698dcdb6 10599rm -fr conftest*
10f2d63a 10600fi
698dcdb6 10601
3f345b47
VZ
10602 CFLAGS="$ac_save_CFLAGS"
10603 LIBS="$ac_save_LIBS"
10604 fi
10f2d63a
VZ
10605 fi
10606 if test "x$no_gtk" = x ; then
698dcdb6 10607 echo "$ac_t""yes" 1>&6
3f345b47 10608 wx_cv_lib_gtk=1.2.3
10f2d63a 10609 else
698dcdb6 10610 echo "$ac_t""no" 1>&6
3f345b47
VZ
10611 if test "$GTK_CONFIG" = "no" ; then
10612 echo "*** The gtk-config script installed by GTK could not be found"
10613 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
10614 echo "*** your path, or set the GTK_CONFIG environment variable to the"
10615 echo "*** full path to gtk-config."
10616 else
10617 if test -f conf.gtktest ; then
10618 :
10619 else
10620 echo "*** Could not run GTK test program, checking why..."
10621 CFLAGS="$CFLAGS $GTK_CFLAGS"
10622 LIBS="$LIBS $GTK_LIBS"
10623 cat > conftest.$ac_ext <<EOF
f9bc1684 10624#line 10625 "configure"
3f345b47
VZ
10625#include "confdefs.h"
10626
10627#include <gtk/gtk.h>
10628#include <stdio.h>
10629
10630int main() {
10631 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
10632; return 0; }
10633EOF
f9bc1684 10634if { (eval echo configure:10635: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3f345b47
VZ
10635 rm -rf conftest*
10636 echo "*** The test program compiled, but did not run. This usually means"
10637 echo "*** that the run-time linker is not finding GTK or finding the wrong"
10638 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
10639 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
10640 echo "*** to the installed location Also, make sure you have run ldconfig if that"
10641 echo "*** is required on your system"
10642 echo "***"
10643 echo "*** If you have an old version installed, it is best to remove it, although"
10644 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
10645 echo "***"
10646 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
10647 echo "*** came with the system with the command"
10648 echo "***"
10649 echo "*** rpm --erase --nodeps gtk gtk-devel"
10650else
10651 echo "configure: failed program was:" >&5
10652 cat conftest.$ac_ext >&5
10653 rm -rf conftest*
10654 echo "*** The test program failed to compile or link. See the file config.log for the"
10655 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
10656 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
10657 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
10658fi
10659rm -f conftest*
10660 CFLAGS="$ac_save_CFLAGS"
10661 LIBS="$ac_save_LIBS"
10662 fi
10663 fi
10f2d63a
VZ
10664 GTK_CFLAGS=""
10665 GTK_LIBS=""
7e99ad86 10666 :
10f2d63a 10667 fi
698dcdb6
VZ
10668
10669
3f345b47 10670 rm -f conf.gtktest
10f2d63a 10671
8168de4c
VZ
10672 fi
10673
10674 if test -z "$wx_cv_lib_gtk"; then
10675 wx_cv_lib_gtk=none
138be253
VZ
10676 else
10677 wx_cv_cflags_gtk=$GTK_CFLAGS
10678 wx_cv_libs_gtk=$GTK_LIBS
8168de4c
VZ
10679 fi
10680
1e6feb95 10681
8168de4c 10682fi
703e0a69 10683
698dcdb6 10684
8168de4c
VZ
10685 if test "$gtk_version_cached" = 1; then
10686 echo "$ac_t""$wx_cv_lib_gtk" 1>&6
1e6feb95 10687 fi
698dcdb6 10688
8168de4c
VZ
10689 case "$wx_cv_lib_gtk" in
10690 2.0) WXGTK20=1
10691 ;;
10692 1.2.7) WXGTK127=1
d1a8d972 10693 WXGTK12=1
8168de4c
VZ
10694 ;;
10695 1.2.3) WXGTK12=1
10696 ;;
10697 *) { echo "configure: error:
10698Please check that gtk-config is in path, the directory
10699where GTK+ libraries are installed (returned by
10700'gtk-config --libs' command) is in LD_LIBRARY_PATH or
10701equivalent variable and GTK+ is version 1.2.3 or above.
10702 " 1>&2; exit 1; }
10703 ;;
10704 esac
2224580a 10705
138be253 10706 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
11dfaa5f 10707 GUI_TK_LIBRARY="$wx_cv_libs_gtk"
698dcdb6 10708
1e6feb95
VZ
10709 AFMINSTALL=afminstall
10710 TOOLKIT=GTK
10711 GUIDIST=GTK_DIST
7ec2881a 10712
1e6feb95 10713 echo $ac_n "checking for gdk_im_open in -lgdk""... $ac_c" 1>&6
f9bc1684 10714echo "configure:10715: checking for gdk_im_open in -lgdk" >&5
698dcdb6
VZ
10715ac_lib_var=`echo gdk'_'gdk_im_open | sed 'y%./+-%__p_%'`
10716if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10717 echo $ac_n "(cached) $ac_c" 1>&6
7ec2881a 10718else
698dcdb6 10719 ac_save_LIBS="$LIBS"
7ec2881a 10720LIBS="-lgdk $LIBS"
698dcdb6 10721cat > conftest.$ac_ext <<EOF
f9bc1684 10722#line 10723 "configure"
7ec2881a
RR
10723#include "confdefs.h"
10724/* Override any gcc2 internal prototype to avoid an error. */
10725/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
10726 builtin and then its argument prototype would still apply. */
10727char gdk_im_open();
10728
10729int main() {
10730gdk_im_open()
10731; return 0; }
10732EOF
f9bc1684 10733if { (eval echo configure:10734: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
10734 rm -rf conftest*
10735 eval "ac_cv_lib_$ac_lib_var=yes"
10736else
10737 echo "configure: failed program was:" >&5
10738 cat conftest.$ac_ext >&5
10739 rm -rf conftest*
10740 eval "ac_cv_lib_$ac_lib_var=no"
10741fi
10742rm -f conftest*
10743LIBS="$ac_save_LIBS"
10744
10745fi
10746if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10747 echo "$ac_t""yes" 1>&6
10748 cat >> confdefs.h <<\EOF
7ec2881a
RR
10749#define HAVE_XIM 1
10750EOF
10751
698dcdb6
VZ
10752else
10753 echo "$ac_t""no" 1>&6
7ec2881a
RR
10754fi
10755
1e6feb95 10756 fi
10f2d63a 10757
1e6feb95 10758 if test "$wxUSE_MGL" = 1; then
1e6feb95 10759 echo $ac_n "checking for SciTech MGL library""... $ac_c" 1>&6
f9bc1684 10760echo "configure:10761: checking for SciTech MGL library" >&5
1e6feb95
VZ
10761 if test "x$MGL_ROOT" = x ; then
10762 echo "$ac_t""not found" 1>&6
10763 { echo "configure: error: Cannot find MGL library. Make sure MGL_ROOT is set." 1>&2; exit 1; }
10764 else
10765 echo "$ac_t""$MGL_ROOT" 1>&6
10766 fi
10767
f9bc1684
VS
10768 case "${host}" in
10769 *-*-linux* )
10770 mgl_os=linux/gcc/glibc
10771 ;;
10772 *-pc-msdosdjgpp )
10773 mgl_os=dos32/dj2
10774 ;;
10775 *)
10776 { echo "configure: error: This system type ${host} is not yet supported by wxMGL." 1>&2; exit 1; }
10777 esac
10778
3a922bb4 10779 mgl_lib_type=""
1e6feb95
VZ
10780
10781 if test "$wxUSE_DEBUG_FLAG" = yes ; then
223e7fbf
VS
10782 if test -f $MGL_ROOT/lib/debug/$mgl_os/libmgl.a -o \
10783 -f $MGL_ROOT/lib/debug/$mgl_os/libmgl.so; then
3a922bb4 10784 mgl_lib_type=debug
1e6feb95
VZ
10785 fi
10786 fi
3a922bb4 10787 if test "x$mgl_lib_type" = x ; then
223e7fbf
VS
10788 if test -f $MGL_ROOT/lib/release/$mgl_os/libmgl.a -o \
10789 -f $MGL_ROOT/lib/release/$mgl_os/libmgl.so; then
3a922bb4 10790 mgl_lib_type=release
1e6feb95
VZ
10791 else
10792 { echo "configure: error: Cannot find MGL libraries, make sure they are compiled." 1>&2; exit 1; }
10793 fi
10794 fi
10795
10796 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
3a922bb4 10797 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
1e6feb95
VZ
10798
10799 AFMINSTALL=afminstall
10800 TOOLKIT=MGL
10801 GUIDIST=MGL_DIST
10802 fi
10803
10804 if test "$wxUSE_WINE" = 1; then
3a922bb4
RL
10805 ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'`
10806echo $ac_n "checking for windows.h""... $ac_c" 1>&6
f9bc1684 10807echo "configure:10808: checking for windows.h" >&5
3a922bb4
RL
10808if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10809 echo $ac_n "(cached) $ac_c" 1>&6
10810else
10811 cat > conftest.$ac_ext <<EOF
f9bc1684 10812#line 10813 "configure"
3a922bb4
RL
10813#include "confdefs.h"
10814#include <windows.h>
10815EOF
10816ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
f9bc1684 10817{ (eval echo configure:10818: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3a922bb4
RL
10818ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10819if test -z "$ac_err"; then
10820 rm -rf conftest*
10821 eval "ac_cv_header_$ac_safe=yes"
10822else
10823 echo "$ac_err" >&5
10824 echo "configure: failed program was:" >&5
10825 cat conftest.$ac_ext >&5
10826 rm -rf conftest*
10827 eval "ac_cv_header_$ac_safe=no"
10828fi
10829rm -f conftest*
10830fi
10831if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10832 echo "$ac_t""yes" 1>&6
10833 :
10834else
10835 echo "$ac_t""no" 1>&6
10f2d63a 10836
1e6feb95 10837 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
3a922bb4
RL
10838
10839fi
10840
10f2d63a 10841
3d63bc3a 10842 xpm_link=
1e6feb95 10843 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
f9bc1684 10844echo "configure:10845: checking for Xpm library" >&5
1e6feb95 10845
10f2d63a
VZ
10846ac_find_libraries=
10847for ac_dir in $SEARCH_LIB;
10848 do
f11bdd03 10849 for ac_extension in a so sl dylib; do
10f2d63a
VZ
10850 if test -f "$ac_dir/libXpm.$ac_extension"; then
10851 ac_find_libraries=$ac_dir
10852 break 2
10853 fi
10854 done
10855 done
10856
1e6feb95
VZ
10857 if test "$ac_find_libraries" != "" ; then
10858 GUI_TK_LIBRARY="-L$ac_find_libraries"
3d63bc3a 10859 xpm_link=" -lXpm"
1e6feb95 10860 cat >> confdefs.h <<\EOF
10f2d63a
VZ
10861#define wxHAVE_LIB_XPM 1
10862EOF
10863
1e6feb95
VZ
10864 echo "$ac_t""found at $ac_find_libraries" 1>&6
10865 else
10866 echo "$ac_t""no" 1>&6
10867 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
10868 fi
10f2d63a 10869
3d63bc3a 10870 mesa_link=
1e6feb95 10871 echo $ac_n "checking for Mesa library""... $ac_c" 1>&6
f9bc1684 10872echo "configure:10873: checking for Mesa library" >&5
1e6feb95 10873
10f2d63a
VZ
10874ac_find_libraries=
10875for ac_dir in $SEARCH_LIB;
10876 do
f11bdd03 10877 for ac_extension in a so sl dylib; do
10f2d63a
VZ
10878 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
10879 ac_find_libraries=$ac_dir
10880 break 2
10881 fi
10882 done
10883 done
10884
1e6feb95
VZ
10885 if test "$ac_find_libraries" != "" ; then
10886 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -L$ac_find_libraries"
3d63bc3a 10887 mesa_link=" -lMesaGL"
1e6feb95
VZ
10888 echo "$ac_t""found at $ac_find_libraries" 1>&6
10889 else
10890 { echo "configure: error: no" 1>&2; exit 1; }
10891 fi
10f2d63a 10892
3d63bc3a 10893 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lwine$mesa_link$xpm_link -lXxf86dga -lXxf86vm -lSM -lICE -lXext -lXmu -lX11 -lncurses"
1e6feb95
VZ
10894 TOOLKIT=MSW
10895 GUIDIST=MSW_DIST
3a922bb4 10896 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXWINE__"
1e6feb95 10897 fi
698dcdb6 10898
d714471b
VZ
10899 if test "$wxUSE_MOTIF" = 1; then
10900 # If we find X, set shell vars x_includes and x_libraries to the
698dcdb6
VZ
10901# paths, otherwise set no_x=yes.
10902# Uses ac_ vars as temps to allow command line to override cache and checks.
10903# --without-x overrides everything else, but does not touch the cache.
10904echo $ac_n "checking for X""... $ac_c" 1>&6
f9bc1684 10905echo "configure:10906: checking for X" >&5
ab9b9eab
VZ
10906
10907# Check whether --with-x or --without-x was given.
10908if test "${with_x+set}" = set; then
10909 withval="$with_x"
698dcdb6
VZ
10910 :
10911fi
ba337fe7 10912
ab9b9eab
VZ
10913# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
10914if test "x$with_x" = xno; then
10915 # The user explicitly disabled X.
10916 have_x=disabled
10917else
10918 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
10919 # Both variables are already set.
10920 have_x=yes
10921 else
698dcdb6
VZ
10922if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
10923 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab
VZ
10924else
10925 # One or both of the vars are not set, and there is no cached value.
698dcdb6
VZ
10926ac_x_includes=NO ac_x_libraries=NO
10927rm -fr conftestdir
10928if mkdir conftestdir; then
10929 cd conftestdir
ab9b9eab 10930 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
698dcdb6 10931 cat > Imakefile <<'EOF'
ab9b9eab
VZ
10932acfindx:
10933 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
10934EOF
10935 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
10936 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
10937 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
10938 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
10f2d63a 10939 for ac_extension in a so sl; do
ab9b9eab 10940 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
698dcdb6 10941 test -f $ac_im_libdir/libX11.$ac_extension; then
ab9b9eab 10942 ac_im_usrlibdir=$ac_im_libdir; break
10f2d63a
VZ
10943 fi
10944 done
ab9b9eab
VZ
10945 # Screen out bogus values from the imake configuration. They are
10946 # bogus both because they are the default anyway, and because
10947 # using them would break gcc on systems where it needs fixed includes.
698dcdb6 10948 case "$ac_im_incroot" in
ab9b9eab 10949 /usr/include) ;;
698dcdb6 10950 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
ab9b9eab 10951 esac
698dcdb6 10952 case "$ac_im_usrlibdir" in
ab9b9eab 10953 /usr/lib | /lib) ;;
698dcdb6 10954 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
ab9b9eab 10955 esac
ba337fe7 10956 fi
ab9b9eab 10957 cd ..
698dcdb6 10958 rm -fr conftestdir
ab9b9eab 10959fi
10f2d63a 10960
698dcdb6
VZ
10961if test "$ac_x_includes" = NO; then
10962 # Guess where to find include files, by looking for this one X11 .h file.
10963 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
10964
ab9b9eab 10965 # First, try using that file with no special directory specified.
698dcdb6 10966cat > conftest.$ac_ext <<EOF
f9bc1684 10967#line 10968 "configure"
ab9b9eab 10968#include "confdefs.h"
698dcdb6
VZ
10969#include <$x_direct_test_include>
10970EOF
10971ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
f9bc1684 10972{ (eval echo configure:10973: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
10973ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10974if test -z "$ac_err"; then
10975 rm -rf conftest*
ab9b9eab
VZ
10976 # We can compile using X headers with no special include directory.
10977ac_x_includes=
10978else
698dcdb6
VZ
10979 echo "$ac_err" >&5
10980 echo "configure: failed program was:" >&5
ab9b9eab 10981 cat conftest.$ac_ext >&5
698dcdb6
VZ
10982 rm -rf conftest*
10983 # Look for the header file in a standard set of common directories.
10984# Check X11 before X11Rn because it is often a symlink to the current release.
10985 for ac_dir in \
10986 /usr/X11/include \
10987 /usr/X11R6/include \
10988 /usr/X11R5/include \
10989 /usr/X11R4/include \
10990 \
10991 /usr/include/X11 \
10992 /usr/include/X11R6 \
10993 /usr/include/X11R5 \
10994 /usr/include/X11R4 \
10995 \
10996 /usr/local/X11/include \
10997 /usr/local/X11R6/include \
10998 /usr/local/X11R5/include \
10999 /usr/local/X11R4/include \
11000 \
11001 /usr/local/include/X11 \
11002 /usr/local/include/X11R6 \
11003 /usr/local/include/X11R5 \
11004 /usr/local/include/X11R4 \
11005 \
11006 /usr/X386/include \
11007 /usr/x386/include \
11008 /usr/XFree86/include/X11 \
11009 \
11010 /usr/include \
11011 /usr/local/include \
11012 /usr/unsupported/include \
11013 /usr/athena/include \
11014 /usr/local/x11r5/include \
11015 /usr/lpp/Xamples/include \
11016 \
11017 /usr/openwin/include \
11018 /usr/openwin/share/include \
11019 ; \
11020 do
11021 if test -r "$ac_dir/$x_direct_test_include"; then
11022 ac_x_includes=$ac_dir
11023 break
11024 fi
11025 done
ab9b9eab 11026fi
698dcdb6
VZ
11027rm -f conftest*
11028fi # $ac_x_includes = NO
10f2d63a 11029
698dcdb6 11030if test "$ac_x_libraries" = NO; then
ab9b9eab 11031 # Check for the libraries.
698dcdb6
VZ
11032
11033 test -z "$x_direct_test_library" && x_direct_test_library=Xt
11034 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
11035
ab9b9eab
VZ
11036 # See if we find them without any special options.
11037 # Don't add to $LIBS permanently.
698dcdb6
VZ
11038 ac_save_LIBS="$LIBS"
11039 LIBS="-l$x_direct_test_library $LIBS"
11040cat > conftest.$ac_ext <<EOF
f9bc1684 11041#line 11042 "configure"
ab9b9eab 11042#include "confdefs.h"
698dcdb6
VZ
11043
11044int main() {
11045${x_direct_test_function}()
11046; return 0; }
11047EOF
f9bc1684 11048if { (eval echo configure:11049: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
11049 rm -rf conftest*
11050 LIBS="$ac_save_LIBS"
ab9b9eab
VZ
11051# We can link X programs with no special library path.
11052ac_x_libraries=
11053else
698dcdb6
VZ
11054 echo "configure: failed program was:" >&5
11055 cat conftest.$ac_ext >&5
11056 rm -rf conftest*
11057 LIBS="$ac_save_LIBS"
11058# First see if replacing the include by lib works.
11059# Check X11 before X11Rn because it is often a symlink to the current release.
11060for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
11061 /usr/X11/lib \
11062 /usr/X11R6/lib \
11063 /usr/X11R5/lib \
11064 /usr/X11R4/lib \
11065 \
11066 /usr/lib/X11 \
11067 /usr/lib/X11R6 \
11068 /usr/lib/X11R5 \
11069 /usr/lib/X11R4 \
11070 \
11071 /usr/local/X11/lib \
11072 /usr/local/X11R6/lib \
11073 /usr/local/X11R5/lib \
11074 /usr/local/X11R4/lib \
11075 \
11076 /usr/local/lib/X11 \
11077 /usr/local/lib/X11R6 \
11078 /usr/local/lib/X11R5 \
11079 /usr/local/lib/X11R4 \
11080 \
11081 /usr/X386/lib \
11082 /usr/x386/lib \
11083 /usr/XFree86/lib/X11 \
11084 \
11085 /usr/lib \
11086 /usr/local/lib \
11087 /usr/unsupported/lib \
11088 /usr/athena/lib \
11089 /usr/local/x11r5/lib \
11090 /usr/lpp/Xamples/lib \
11091 /lib/usr/lib/X11 \
11092 \
11093 /usr/openwin/lib \
11094 /usr/openwin/share/lib \
11095 ; \
ab9b9eab
VZ
11096do
11097 for ac_extension in a so sl; do
698dcdb6 11098 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
ab9b9eab
VZ
11099 ac_x_libraries=$ac_dir
11100 break 2
10f2d63a 11101 fi
10f2d63a 11102 done
ab9b9eab
VZ
11103done
11104fi
698dcdb6
VZ
11105rm -f conftest*
11106fi # $ac_x_libraries = NO
10f2d63a 11107
698dcdb6 11108if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
ab9b9eab
VZ
11109 # Didn't find X anywhere. Cache the known absence of X.
11110 ac_cv_have_x="have_x=no"
11111else
11112 # Record where we found X for the cache.
11113 ac_cv_have_x="have_x=yes \
11114 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
11115fi
11116fi
10f2d63a 11117 fi
ab9b9eab
VZ
11118 eval "$ac_cv_have_x"
11119fi # $with_x != no
10f2d63a 11120
ab9b9eab 11121if test "$have_x" != yes; then
698dcdb6 11122 echo "$ac_t""$have_x" 1>&6
ab9b9eab
VZ
11123 no_x=yes
11124else
11125 # If each of the values was on the command line, it overrides each guess.
11126 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
11127 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
11128 # Update the cache value to reflect the command line values.
11129 ac_cv_have_x="have_x=yes \
11130 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
698dcdb6 11131 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
ab9b9eab 11132fi
10f2d63a 11133
ab9b9eab
VZ
11134if test "$no_x" = yes; then
11135 # Not all programs may use this symbol, but it does not hurt to define it.
698dcdb6 11136 cat >> confdefs.h <<\EOF
ab9b9eab
VZ
11137#define X_DISPLAY_MISSING 1
11138EOF
10f2d63a 11139
ab9b9eab
VZ
11140 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
11141else
11142 if test -n "$x_includes"; then
11143 X_CFLAGS="$X_CFLAGS -I$x_includes"
10f2d63a
VZ
11144 fi
11145
ab9b9eab
VZ
11146 # It would also be nice to do this for all -L options, not just this one.
11147 if test -n "$x_libraries"; then
11148 X_LIBS="$X_LIBS -L$x_libraries"
11149 # For Solaris; some versions of Sun CC require a space after -R and
11150 # others require no space. Words are not sufficient . . . .
698dcdb6 11151 case "`(uname -sr) 2>/dev/null`" in
ab9b9eab 11152 "SunOS 5"*)
698dcdb6 11153 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
f9bc1684 11154echo "configure:11155: checking whether -R must be followed by a space" >&5
698dcdb6
VZ
11155 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
11156 cat > conftest.$ac_ext <<EOF
f9bc1684 11157#line 11158 "configure"
ab9b9eab 11158#include "confdefs.h"
10f2d63a 11159
698dcdb6 11160int main() {
788deba1 11161
698dcdb6
VZ
11162; return 0; }
11163EOF
f9bc1684 11164if { (eval echo configure:11165: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 11165 rm -rf conftest*
ab9b9eab
VZ
11166 ac_R_nospace=yes
11167else
698dcdb6
VZ
11168 echo "configure: failed program was:" >&5
11169 cat conftest.$ac_ext >&5
11170 rm -rf conftest*
11171 ac_R_nospace=no
ab9b9eab 11172fi
698dcdb6 11173rm -f conftest*
ab9b9eab 11174 if test $ac_R_nospace = yes; then
698dcdb6 11175 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
11176 X_LIBS="$X_LIBS -R$x_libraries"
11177 else
11178 LIBS="$ac_xsave_LIBS -R $x_libraries"
698dcdb6 11179 cat > conftest.$ac_ext <<EOF
f9bc1684 11180#line 11181 "configure"
ab9b9eab 11181#include "confdefs.h"
788deba1 11182
698dcdb6 11183int main() {
ab9b9eab 11184
698dcdb6
VZ
11185; return 0; }
11186EOF
f9bc1684 11187if { (eval echo configure:11188: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 11188 rm -rf conftest*
ab9b9eab
VZ
11189 ac_R_space=yes
11190else
698dcdb6
VZ
11191 echo "configure: failed program was:" >&5
11192 cat conftest.$ac_ext >&5
11193 rm -rf conftest*
11194 ac_R_space=no
ab9b9eab 11195fi
698dcdb6 11196rm -f conftest*
ab9b9eab 11197 if test $ac_R_space = yes; then
698dcdb6 11198 echo "$ac_t""yes" 1>&6
ab9b9eab
VZ
11199 X_LIBS="$X_LIBS -R $x_libraries"
11200 else
698dcdb6 11201 echo "$ac_t""neither works" 1>&6
ab9b9eab
VZ
11202 fi
11203 fi
698dcdb6 11204 LIBS="$ac_xsave_LIBS"
ab9b9eab
VZ
11205 esac
11206 fi
11207
11208 # Check for system-dependent libraries X programs must link with.
11209 # Do this before checking for the system-independent R6 libraries
11210 # (-lICE), since we may need -lsocket or whatever for X linking.
11211
11212 if test "$ISC" = yes; then
11213 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
11214 else
698dcdb6
VZ
11215 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
11216 # libraries were built with DECnet support. And karl@cs.umb.edu says
ab9b9eab 11217 # the Alpha needs dnet_stub (dnet does not exist).
698dcdb6 11218 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
f9bc1684 11219echo "configure:11220: checking for dnet_ntoa in -ldnet" >&5
698dcdb6
VZ
11220ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
11221if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11222 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 11223else
698dcdb6 11224 ac_save_LIBS="$LIBS"
ab9b9eab 11225LIBS="-ldnet $LIBS"
698dcdb6 11226cat > conftest.$ac_ext <<EOF
f9bc1684 11227#line 11228 "configure"
ab9b9eab
VZ
11228#include "confdefs.h"
11229/* Override any gcc2 internal prototype to avoid an error. */
11230/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
11231 builtin and then its argument prototype would still apply. */
11232char dnet_ntoa();
11233
11234int main() {
11235dnet_ntoa()
11236; return 0; }
11237EOF
f9bc1684 11238if { (eval echo configure:11239: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
11239 rm -rf conftest*
11240 eval "ac_cv_lib_$ac_lib_var=yes"
11241else
11242 echo "configure: failed program was:" >&5
11243 cat conftest.$ac_ext >&5
11244 rm -rf conftest*
11245 eval "ac_cv_lib_$ac_lib_var=no"
11246fi
11247rm -f conftest*
11248LIBS="$ac_save_LIBS"
11249
11250fi
11251if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11252 echo "$ac_t""yes" 1>&6
ab9b9eab 11253 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
698dcdb6
VZ
11254else
11255 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
11256fi
11257
11258 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
698dcdb6 11259 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
f9bc1684 11260echo "configure:11261: checking for dnet_ntoa in -ldnet_stub" >&5
698dcdb6
VZ
11261ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
11262if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11263 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 11264else
698dcdb6 11265 ac_save_LIBS="$LIBS"
ab9b9eab 11266LIBS="-ldnet_stub $LIBS"
698dcdb6 11267cat > conftest.$ac_ext <<EOF
f9bc1684 11268#line 11269 "configure"
ab9b9eab
VZ
11269#include "confdefs.h"
11270/* Override any gcc2 internal prototype to avoid an error. */
11271/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
11272 builtin and then its argument prototype would still apply. */
11273char dnet_ntoa();
11274
11275int main() {
11276dnet_ntoa()
11277; return 0; }
11278EOF
f9bc1684 11279if { (eval echo configure:11280: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
11280 rm -rf conftest*
11281 eval "ac_cv_lib_$ac_lib_var=yes"
11282else
11283 echo "configure: failed program was:" >&5
11284 cat conftest.$ac_ext >&5
11285 rm -rf conftest*
11286 eval "ac_cv_lib_$ac_lib_var=no"
11287fi
11288rm -f conftest*
11289LIBS="$ac_save_LIBS"
11290
11291fi
11292if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11293 echo "$ac_t""yes" 1>&6
ab9b9eab 11294 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
698dcdb6
VZ
11295else
11296 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
11297fi
11298
11299 fi
11300
11301 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
11302 # to get the SysV transport functions.
698dcdb6 11303 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
ab9b9eab
VZ
11304 # needs -lnsl.
11305 # The nsl library prevents programs from opening the X display
698dcdb6
VZ
11306 # on Irix 5.2, according to dickey@clark.net.
11307 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
f9bc1684 11308echo "configure:11309: checking for gethostbyname" >&5
698dcdb6
VZ
11309if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
11310 echo $ac_n "(cached) $ac_c" 1>&6
11311else
11312 cat > conftest.$ac_ext <<EOF
f9bc1684 11313#line 11314 "configure"
ab9b9eab
VZ
11314#include "confdefs.h"
11315/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 11316 which can conflict with char gethostbyname(); below. */
ab9b9eab
VZ
11317#include <assert.h>
11318/* Override any gcc2 internal prototype to avoid an error. */
11319/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
11320 builtin and then its argument prototype would still apply. */
11321char gethostbyname();
11322
11323int main() {
ab9b9eab
VZ
11324
11325/* The GNU C library defines this for functions which it implements
11326 to always fail with ENOSYS. Some functions are actually named
11327 something starting with __ and the normal name is an alias. */
11328#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
11329choke me
11330#else
698dcdb6 11331gethostbyname();
ab9b9eab
VZ
11332#endif
11333
698dcdb6
VZ
11334; return 0; }
11335EOF
f9bc1684 11336if { (eval echo configure:11337: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
11337 rm -rf conftest*
11338 eval "ac_cv_func_gethostbyname=yes"
11339else
11340 echo "configure: failed program was:" >&5
11341 cat conftest.$ac_ext >&5
11342 rm -rf conftest*
11343 eval "ac_cv_func_gethostbyname=no"
11344fi
11345rm -f conftest*
11346fi
11347
11348if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
11349 echo "$ac_t""yes" 1>&6
11350 :
11351else
11352 echo "$ac_t""no" 1>&6
11353fi
ab9b9eab
VZ
11354
11355 if test $ac_cv_func_gethostbyname = no; then
698dcdb6 11356 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
f9bc1684 11357echo "configure:11358: checking for gethostbyname in -lnsl" >&5
698dcdb6
VZ
11358ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
11359if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11360 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 11361else
698dcdb6 11362 ac_save_LIBS="$LIBS"
ab9b9eab 11363LIBS="-lnsl $LIBS"
698dcdb6 11364cat > conftest.$ac_ext <<EOF
f9bc1684 11365#line 11366 "configure"
ab9b9eab
VZ
11366#include "confdefs.h"
11367/* Override any gcc2 internal prototype to avoid an error. */
11368/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
11369 builtin and then its argument prototype would still apply. */
11370char gethostbyname();
6232543b 11371
698dcdb6
VZ
11372int main() {
11373gethostbyname()
11374; return 0; }
11375EOF
f9bc1684 11376if { (eval echo configure:11377: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
11377 rm -rf conftest*
11378 eval "ac_cv_lib_$ac_lib_var=yes"
703e0a69 11379else
698dcdb6
VZ
11380 echo "configure: failed program was:" >&5
11381 cat conftest.$ac_ext >&5
11382 rm -rf conftest*
11383 eval "ac_cv_lib_$ac_lib_var=no"
11384fi
11385rm -f conftest*
11386LIBS="$ac_save_LIBS"
1e487827 11387
698dcdb6
VZ
11388fi
11389if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11390 echo "$ac_t""yes" 1>&6
11391 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
11392else
11393 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
11394fi
11395
11396 fi
11397
11398 # lieder@skyler.mavd.honeywell.com says without -lsocket,
11399 # socket/setsockopt and other routines are undefined under SCO ODT
11400 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
698dcdb6
VZ
11401 # on later versions), says simon@lia.di.epfl.ch: it contains
11402 # gethostby* variants that don't use the nameserver (or something).
11403 # -lsocket must be given before -lnsl if both are needed.
11404 # We assume that if connect needs -lnsl, so does gethostbyname.
11405 echo $ac_n "checking for connect""... $ac_c" 1>&6
f9bc1684 11406echo "configure:11407: checking for connect" >&5
698dcdb6
VZ
11407if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
11408 echo $ac_n "(cached) $ac_c" 1>&6
11409else
11410 cat > conftest.$ac_ext <<EOF
f9bc1684 11411#line 11412 "configure"
ab9b9eab
VZ
11412#include "confdefs.h"
11413/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 11414 which can conflict with char connect(); below. */
ab9b9eab
VZ
11415#include <assert.h>
11416/* Override any gcc2 internal prototype to avoid an error. */
11417/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
11418 builtin and then its argument prototype would still apply. */
11419char connect();
11420
11421int main() {
ab9b9eab
VZ
11422
11423/* The GNU C library defines this for functions which it implements
11424 to always fail with ENOSYS. Some functions are actually named
11425 something starting with __ and the normal name is an alias. */
11426#if defined (__stub_connect) || defined (__stub___connect)
11427choke me
11428#else
698dcdb6 11429connect();
ab9b9eab
VZ
11430#endif
11431
698dcdb6
VZ
11432; return 0; }
11433EOF
f9bc1684 11434if { (eval echo configure:11435: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
11435 rm -rf conftest*
11436 eval "ac_cv_func_connect=yes"
11437else
11438 echo "configure: failed program was:" >&5
11439 cat conftest.$ac_ext >&5
11440 rm -rf conftest*
11441 eval "ac_cv_func_connect=no"
11442fi
11443rm -f conftest*
11444fi
11445
11446if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
11447 echo "$ac_t""yes" 1>&6
11448 :
11449else
11450 echo "$ac_t""no" 1>&6
11451fi
ab9b9eab
VZ
11452
11453 if test $ac_cv_func_connect = no; then
698dcdb6 11454 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
f9bc1684 11455echo "configure:11456: checking for connect in -lsocket" >&5
698dcdb6
VZ
11456ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
11457if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11458 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 11459else
698dcdb6 11460 ac_save_LIBS="$LIBS"
ab9b9eab 11461LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
698dcdb6 11462cat > conftest.$ac_ext <<EOF
f9bc1684 11463#line 11464 "configure"
ab9b9eab
VZ
11464#include "confdefs.h"
11465/* Override any gcc2 internal prototype to avoid an error. */
11466/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
11467 builtin and then its argument prototype would still apply. */
11468char connect();
11469
11470int main() {
11471connect()
11472; return 0; }
11473EOF
f9bc1684 11474if { (eval echo configure:11475: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
11475 rm -rf conftest*
11476 eval "ac_cv_lib_$ac_lib_var=yes"
11477else
11478 echo "configure: failed program was:" >&5
11479 cat conftest.$ac_ext >&5
11480 rm -rf conftest*
11481 eval "ac_cv_lib_$ac_lib_var=no"
11482fi
11483rm -f conftest*
11484LIBS="$ac_save_LIBS"
11485
11486fi
11487if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11488 echo "$ac_t""yes" 1>&6
ab9b9eab 11489 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
698dcdb6
VZ
11490else
11491 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
11492fi
11493
11494 fi
11495
698dcdb6
VZ
11496 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
11497 echo $ac_n "checking for remove""... $ac_c" 1>&6
f9bc1684 11498echo "configure:11499: checking for remove" >&5
698dcdb6
VZ
11499if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
11500 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 11501else
698dcdb6 11502 cat > conftest.$ac_ext <<EOF
f9bc1684 11503#line 11504 "configure"
ab9b9eab
VZ
11504#include "confdefs.h"
11505/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 11506 which can conflict with char remove(); below. */
ab9b9eab
VZ
11507#include <assert.h>
11508/* Override any gcc2 internal prototype to avoid an error. */
11509/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
11510 builtin and then its argument prototype would still apply. */
11511char remove();
11512
11513int main() {
ab9b9eab
VZ
11514
11515/* The GNU C library defines this for functions which it implements
11516 to always fail with ENOSYS. Some functions are actually named
11517 something starting with __ and the normal name is an alias. */
11518#if defined (__stub_remove) || defined (__stub___remove)
11519choke me
11520#else
698dcdb6 11521remove();
ab9b9eab
VZ
11522#endif
11523
698dcdb6
VZ
11524; return 0; }
11525EOF
f9bc1684 11526if { (eval echo configure:11527: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
11527 rm -rf conftest*
11528 eval "ac_cv_func_remove=yes"
11529else
11530 echo "configure: failed program was:" >&5
11531 cat conftest.$ac_ext >&5
11532 rm -rf conftest*
11533 eval "ac_cv_func_remove=no"
11534fi
11535rm -f conftest*
11536fi
11537
11538if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
11539 echo "$ac_t""yes" 1>&6
11540 :
11541else
11542 echo "$ac_t""no" 1>&6
11543fi
ab9b9eab
VZ
11544
11545 if test $ac_cv_func_remove = no; then
698dcdb6 11546 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
f9bc1684 11547echo "configure:11548: checking for remove in -lposix" >&5
698dcdb6
VZ
11548ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
11549if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11550 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 11551else
698dcdb6 11552 ac_save_LIBS="$LIBS"
ab9b9eab 11553LIBS="-lposix $LIBS"
698dcdb6 11554cat > conftest.$ac_ext <<EOF
f9bc1684 11555#line 11556 "configure"
ab9b9eab
VZ
11556#include "confdefs.h"
11557/* Override any gcc2 internal prototype to avoid an error. */
11558/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
11559 builtin and then its argument prototype would still apply. */
11560char remove();
11561
11562int main() {
11563remove()
11564; return 0; }
11565EOF
f9bc1684 11566if { (eval echo configure:11567: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
11567 rm -rf conftest*
11568 eval "ac_cv_lib_$ac_lib_var=yes"
11569else
11570 echo "configure: failed program was:" >&5
11571 cat conftest.$ac_ext >&5
11572 rm -rf conftest*
11573 eval "ac_cv_lib_$ac_lib_var=no"
11574fi
11575rm -f conftest*
11576LIBS="$ac_save_LIBS"
11577
11578fi
11579if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11580 echo "$ac_t""yes" 1>&6
ab9b9eab 11581 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
698dcdb6
VZ
11582else
11583 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
11584fi
11585
11586 fi
11587
11588 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
698dcdb6 11589 echo $ac_n "checking for shmat""... $ac_c" 1>&6
f9bc1684 11590echo "configure:11591: checking for shmat" >&5
698dcdb6
VZ
11591if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
11592 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 11593else
698dcdb6 11594 cat > conftest.$ac_ext <<EOF
f9bc1684 11595#line 11596 "configure"
ab9b9eab
VZ
11596#include "confdefs.h"
11597/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 11598 which can conflict with char shmat(); below. */
ab9b9eab
VZ
11599#include <assert.h>
11600/* Override any gcc2 internal prototype to avoid an error. */
11601/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
11602 builtin and then its argument prototype would still apply. */
11603char shmat();
11604
11605int main() {
ab9b9eab
VZ
11606
11607/* The GNU C library defines this for functions which it implements
11608 to always fail with ENOSYS. Some functions are actually named
11609 something starting with __ and the normal name is an alias. */
11610#if defined (__stub_shmat) || defined (__stub___shmat)
11611choke me
11612#else
698dcdb6 11613shmat();
ab9b9eab
VZ
11614#endif
11615
698dcdb6
VZ
11616; return 0; }
11617EOF
f9bc1684 11618if { (eval echo configure:11619: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
11619 rm -rf conftest*
11620 eval "ac_cv_func_shmat=yes"
11621else
11622 echo "configure: failed program was:" >&5
11623 cat conftest.$ac_ext >&5
11624 rm -rf conftest*
11625 eval "ac_cv_func_shmat=no"
11626fi
11627rm -f conftest*
11628fi
11629
11630if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
11631 echo "$ac_t""yes" 1>&6
11632 :
11633else
11634 echo "$ac_t""no" 1>&6
11635fi
ab9b9eab
VZ
11636
11637 if test $ac_cv_func_shmat = no; then
698dcdb6 11638 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
f9bc1684 11639echo "configure:11640: checking for shmat in -lipc" >&5
698dcdb6
VZ
11640ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
11641if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11642 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 11643else
698dcdb6 11644 ac_save_LIBS="$LIBS"
ab9b9eab 11645LIBS="-lipc $LIBS"
698dcdb6 11646cat > conftest.$ac_ext <<EOF
f9bc1684 11647#line 11648 "configure"
ab9b9eab
VZ
11648#include "confdefs.h"
11649/* Override any gcc2 internal prototype to avoid an error. */
11650/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
11651 builtin and then its argument prototype would still apply. */
11652char shmat();
11653
11654int main() {
11655shmat()
11656; return 0; }
11657EOF
f9bc1684 11658if { (eval echo configure:11659: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
11659 rm -rf conftest*
11660 eval "ac_cv_lib_$ac_lib_var=yes"
11661else
11662 echo "configure: failed program was:" >&5
11663 cat conftest.$ac_ext >&5
11664 rm -rf conftest*
11665 eval "ac_cv_lib_$ac_lib_var=no"
11666fi
11667rm -f conftest*
11668LIBS="$ac_save_LIBS"
11669
11670fi
11671if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11672 echo "$ac_t""yes" 1>&6
ab9b9eab 11673 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
698dcdb6
VZ
11674else
11675 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
11676fi
11677
11678 fi
11679 fi
11680
11681 # Check for libraries that X11R6 Xt/Xaw programs need.
698dcdb6 11682 ac_save_LDFLAGS="$LDFLAGS"
ab9b9eab
VZ
11683 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
11684 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
11685 # check for ICE first), but we must link in the order -lSM -lICE or
11686 # we get undefined symbols. So assume we have SM if we have ICE.
11687 # These have to be linked with before -lX11, unlike the other
11688 # libraries we check for below, so use a different variable.
698dcdb6
VZ
11689 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
11690 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
f9bc1684 11691echo "configure:11692: checking for IceConnectionNumber in -lICE" >&5
698dcdb6
VZ
11692ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
11693if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11694 echo $ac_n "(cached) $ac_c" 1>&6
11695else
11696 ac_save_LIBS="$LIBS"
ab9b9eab 11697LIBS="-lICE $X_EXTRA_LIBS $LIBS"
698dcdb6 11698cat > conftest.$ac_ext <<EOF
f9bc1684 11699#line 11700 "configure"
ab9b9eab
VZ
11700#include "confdefs.h"
11701/* Override any gcc2 internal prototype to avoid an error. */
11702/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
11703 builtin and then its argument prototype would still apply. */
11704char IceConnectionNumber();
11705
11706int main() {
11707IceConnectionNumber()
11708; return 0; }
11709EOF
f9bc1684 11710if { (eval echo configure:11711: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
11711 rm -rf conftest*
11712 eval "ac_cv_lib_$ac_lib_var=yes"
11713else
11714 echo "configure: failed program was:" >&5
11715 cat conftest.$ac_ext >&5
11716 rm -rf conftest*
11717 eval "ac_cv_lib_$ac_lib_var=no"
11718fi
11719rm -f conftest*
11720LIBS="$ac_save_LIBS"
11721
11722fi
11723if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11724 echo "$ac_t""yes" 1>&6
ab9b9eab 11725 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
698dcdb6
VZ
11726else
11727 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
11728fi
11729
698dcdb6 11730 LDFLAGS="$ac_save_LDFLAGS"
ab9b9eab
VZ
11731
11732fi
11733
11734
1e6feb95
VZ
11735 if test "$no_x" = "yes"; then
11736 { echo "configure: error: X11 not found" 1>&2; exit 1; }
11737 fi
ab9b9eab 11738
1e6feb95
VZ
11739 GUI_TK_LIBRARY="$X_LIBS"
11740 TOOLKIT_INCLUDE="$X_CFLAGS"
1e6feb95 11741 AFMINSTALL=afminstall
1e6feb95 11742 COMPILED_X_PROGRAM=0
cd6d6d5b 11743
1e6feb95 11744 echo $ac_n "checking for Motif/Lesstif headers""... $ac_c" 1>&6
f9bc1684 11745echo "configure:11746: checking for Motif/Lesstif headers" >&5
1e6feb95 11746
ab9b9eab
VZ
11747ac_find_includes=
11748for ac_dir in $SEARCH_INCLUDE;
11749 do
11750 if test -f "$ac_dir/Xm/Xm.h"; then
11751 ac_find_includes=$ac_dir
11752 break
11753 fi
11754 done
11755
1e6feb95
VZ
11756 if test "$ac_find_includes" != "" ; then
11757 echo "$ac_t""found $ac_find_includes" 1>&6
11758 else
11759 cat > conftest.$ac_ext <<EOF
f9bc1684 11760#line 11761 "configure"
cd6d6d5b
VZ
11761#include "confdefs.h"
11762
1e6feb95
VZ
11763 #include <Xm/Xm.h>
11764
698dcdb6 11765int main() {
cd6d6d5b 11766
1e6feb95 11767 int version;
1e6feb95
VZ
11768 version = xmUseVersion;
11769
698dcdb6
VZ
11770; return 0; }
11771EOF
f9bc1684 11772if { (eval echo configure:11773: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
11773 rm -rf conftest*
11774
1e6feb95
VZ
11775 echo "$ac_t""found in default search path" 1>&6
11776 COMPILED_X_PROGRAM=1
11777
cd6d6d5b 11778else
698dcdb6
VZ
11779 echo "configure: failed program was:" >&5
11780 cat conftest.$ac_ext >&5
11781 rm -rf conftest*
11782
1e6feb95
VZ
11783 echo "$ac_t""no" 1>&6
11784 { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; }
11785
698dcdb6 11786
cd6d6d5b 11787fi
698dcdb6 11788rm -f conftest*
1e6feb95 11789 fi
ab9b9eab 11790
1e6feb95
VZ
11791 if test "$COMPILED_X_PROGRAM" = 0; then
11792 echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6
f9bc1684 11793echo "configure:11794: checking for Motif/Lesstif library" >&5
1e6feb95 11794
ab9b9eab
VZ
11795ac_find_libraries=
11796for ac_dir in $SEARCH_LIB;
11797 do
f11bdd03 11798 for ac_extension in a so sl dylib; do
ab9b9eab
VZ
11799 if test -f "$ac_dir/libXm.$ac_extension"; then
11800 ac_find_libraries=$ac_dir
11801 break 2
11802 fi
11803 done
11804 done
11805
1e6feb95
VZ
11806 if test "$ac_find_libraries" != "" ; then
11807
ab9b9eab
VZ
11808 ac_path_to_include=$ac_find_includes
11809 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
11810 result=$?
11811 if test $result = 0; then
11812 ac_path_to_include=""
11813 else
62d0491b 11814 ac_path_to_include=" -I$ac_find_includes"
ab9b9eab
VZ
11815 fi
11816
1e6feb95 11817
ab9b9eab
VZ
11818 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
11819 result=$?
11820 if test $result = 0; then
11821 ac_path_to_link=""
11822 else
62d0491b 11823 ac_path_to_link=" -L$ac_find_libraries"
ab9b9eab
VZ
11824 fi
11825
698dcdb6 11826
62d0491b
RL
11827 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
11828 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
1e6feb95
VZ
11829 echo "$ac_t""found at $ac_find_libraries" 1>&6
11830 else
11831 cat > conftest.$ac_ext <<EOF
f9bc1684 11832#line 11833 "configure"
cd6d6d5b 11833#include "confdefs.h"
ab9b9eab 11834
1e6feb95
VZ
11835 #include <Xm/Xm.h>
11836
698dcdb6 11837int main() {
ab9b9eab 11838
1e6feb95 11839 int version;
1e6feb95
VZ
11840 version = xmUseVersion;
11841
698dcdb6
VZ
11842; return 0; }
11843EOF
f9bc1684 11844if { (eval echo configure:11845: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
11845 rm -rf conftest*
11846
1e6feb95
VZ
11847 echo "$ac_t""found in default search path" 1>&6
11848 COMPILED_X_PROGRAM=1
11849
cd6d6d5b 11850else
698dcdb6
VZ
11851 echo "configure: failed program was:" >&5
11852 cat conftest.$ac_ext >&5
11853 rm -rf conftest*
11854
1e6feb95
VZ
11855 echo "$ac_t""no" 1>&6
11856 { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; }
11857
698dcdb6 11858
cd6d6d5b 11859fi
698dcdb6 11860rm -f conftest*
1e6feb95 11861 fi
cd6d6d5b 11862 fi
ab9b9eab 11863
3d63bc3a 11864 xpm_link=
1e6feb95 11865 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
f9bc1684 11866echo "configure:11867: checking for Xpm library" >&5
1e6feb95 11867
ab9b9eab
VZ
11868ac_find_libraries=
11869for ac_dir in $SEARCH_LIB;
11870 do
f11bdd03 11871 for ac_extension in a so sl dylib; do
ab9b9eab
VZ
11872 if test -f "$ac_dir/libXpm.$ac_extension"; then
11873 ac_find_libraries=$ac_dir
11874 break 2
11875 fi
11876 done
11877 done
11878
1e6feb95
VZ
11879 if test "$ac_find_libraries" != "" ; then
11880
ab9b9eab
VZ
11881 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
11882 result=$?
11883 if test $result = 0; then
11884 ac_path_to_link=""
11885 else
62d0491b 11886 ac_path_to_link=" -L$ac_find_libraries"
ab9b9eab
VZ
11887 fi
11888
62d0491b 11889 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
3d63bc3a 11890 xpm_link=" -lXpm"
1e6feb95 11891 cat >> confdefs.h <<\EOF
ab9b9eab
VZ
11892#define wxHAVE_LIB_XPM 1
11893EOF
11894
1e6feb95
VZ
11895 echo "$ac_t""found at $ac_find_libraries" 1>&6
11896 else
11897 cat > conftest.$ac_ext <<EOF
f9bc1684 11898#line 11899 "configure"
cd6d6d5b
VZ
11899#include "confdefs.h"
11900
1e6feb95
VZ
11901 #include <X11/xpm.h>
11902
698dcdb6 11903int main() {
cd6d6d5b 11904
1e6feb95 11905 int version;
1e6feb95
VZ
11906 version = XpmLibraryVersion();
11907
698dcdb6
VZ
11908; return 0; }
11909EOF
f9bc1684 11910if { (eval echo configure:11911: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
11911 rm -rf conftest*
11912
3d63bc3a 11913 xpm_link=" -lXpm"
3a922bb4 11914 cat >> confdefs.h <<\EOF
3ace2e6d
SN
11915#define wxHAVE_LIB_XPM 1
11916EOF
11917
1e6feb95
VZ
11918 echo "$ac_t""found in default search path" 1>&6
11919 COMPILED_X_PROGRAM=0
11920
cd6d6d5b 11921else
698dcdb6
VZ
11922 echo "configure: failed program was:" >&5
11923 cat conftest.$ac_ext >&5
11924 rm -rf conftest*
11925
1e6feb95
VZ
11926 echo "$ac_t""no" 1>&6
11927 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
11928
698dcdb6 11929
cd6d6d5b 11930fi
698dcdb6 11931rm -f conftest*
1e6feb95
VZ
11932 fi
11933
3d63bc3a 11934 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm$xpm_link -lXmu -lXext -lXt -lX11"
334f0d2c 11935 TOOLKIT_VPATH="\${top_srcdir}/src/motif${PATH_IFS}\${top_srcdir}/src/motif/xmcombo"
1e6feb95
VZ
11936 TOOLKIT=MOTIF
11937 GUIDIST=MOTIF_DIST
ab9b9eab
VZ
11938 fi
11939
683dccda
GD
11940 if test "$wxUSE_MAC" = 1; then
11941 if test "$wxUSE_PRECOMP" = "yes"; then
3d63bc3a 11942 CPPFLAGS="$CPPFLAGS -cpp-precomp"
683dccda 11943 fi
3d63bc3a
RL
11944 CPPFLAGS="$CPPFLAGS -I/Developer/Headers/FlatCarbon -I\${top_srcdir}/src/mac/morefile"
11945 CFLAGS="$CFLAGS -fpascal-strings"
11946 CXXFLAGS="$CXXFLAGS -fpascal-strings"
11947 TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -DTARGET_CARBON"
d08b457b 11948
13c0541d 11949 TOOLKIT_VPATH="\${top_srcdir}/src/mac${PATH_IFS}\${top_srcdir}/src/mac/morefile"
1e6feb95 11950 TOOLKIT=MAC
683dccda 11951 GUIDIST=MACX_DIST
1e6feb95 11952 fi
10f2d63a 11953
1e6feb95
VZ
11954 if test "$wxUSE_PM" = 1; then
11955 TOOLKIT=PM
11956 GUIDIST=GTK_DIST
11957 fi
b4085ce6 11958
3a922bb4 11959 if test "$TOOLKIT" = "PM" ; then
1e6feb95 11960 TOOLKIT_DIR="os2"
3a922bb4
RL
11961 else
11962 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
1e6feb95 11963 fi
e07802fc 11964
3a922bb4 11965 PORT_FILES="\${top_srcdir}/src/\$(TOOLKITDIR)/files.lst"
1e6feb95 11966
3a922bb4
RL
11967 if test "$wxUSE_UNIVERSAL" = "yes"; then
11968 ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}"
11969 PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst"
11970 TOOLKIT_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes${PATH_IFS}\${top_srcdir}/src/${TOOLKIT_DIR}"
11971 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
11972 WIDGET_SET=univ
f6bcfd97 11973 else
3a922bb4 11974 ALL_OBJECTS="\$(GUIOBJS)"
1e6feb95
VZ
11975 fi
11976
ba0e650c 11977 ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)"
1e6feb95 11978
f9bc1684 11979 if test "$TOOLKIT" != "MSW" -a "$USE_DOS" != 1; then
1e6feb95
VZ
11980 ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)"
11981 fi
11982
11983 if test "$wxUSE_HTML" = "yes"; then
11984 ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)"
11985 fi
3fcdd07b 11986
3a922bb4
RL
11987 if test "$TOOLKIT" != "MSW" -a "$wxUSE_ODBC" = "yes" ; then
11988 ALL_OBJECTS="${ALL_OBJECTS} \$(IODBCOBJS)"
831b3152 11989 fi
4f14bcd8 11990 if test "$wxUSE_LIBJPEG" = "builtin" ; then
2224580a 11991 ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)"
d9d8273d 11992 fi
4f14bcd8 11993 if test "$wxUSE_LIBTIFF" = "builtin" ; then
d9d8273d
RR
11994 ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)"
11995 fi
4f14bcd8 11996 if test "$wxUSE_LIBPNG" = "builtin" ; then
d9d8273d
RR
11997 ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)"
11998 fi
4f14bcd8 11999 if test "$wxUSE_FREETYPE" = "builtin" ; then
3fed1840
RR
12000 ALL_OBJECTS="${ALL_OBJECTS} \$(FREETYPEOBJS)"
12001 fi
2224580a 12002
2224580a
VZ
12003 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
12004 DISTDIR="wx\$(TOOLKIT)"
10f2d63a 12005else
dad6c0ea
VZ
12006 USE_GUI=0
12007
3a922bb4 12008 TOOLKIT_DIR="base"
f6bcfd97 12009
3a922bb4
RL
12010 if test "$USE_WIN32" = 1 ; then
12011 ALL_OBJECTS="\${BASE_OBJS} \${BASE_MSW_OBJS}"
12012 TOOLKIT_VPATH="\${top_srcdir}/src/msw"
0b2effe9 12013
3a922bb4 12014 TOOLKIT="MSW"
f6bcfd97 12015 else
3a922bb4
RL
12016 ALL_OBJECTS="\${BASE_OBJS} \${BASE_UNIX_OBJS}"
12017 TOOLKIT_VPATH="\${top_srcdir}/src/unix"
f6bcfd97
BP
12018 fi
12019
831b3152 12020 PORT_FILES="\${top_srcdir}/src/files.lst"
2224580a
VZ
12021
12022 GUIDIST="BASE_DIST"
12023 DISTDIR="wxBase"
10f2d63a
VZ
12024fi
12025
4f14bcd8 12026if test "$wxUSE_REGEX" = "builtin" ; then
3a922bb4
RL
12027 ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)"
12028fi
4f14bcd8 12029if test "$wxUSE_ZLIB" = "builtin" ; then
3a922bb4
RL
12030 ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
12031fi
10f2d63a 12032
3a922bb4 12033if test "$wxUSE_OPENGL" = "yes"; then
62d0491b
RL
12034 if test "$wxUSE_MAC" = 1; then
12035 OPENGL_LIBS="-framework OpenGL -framework AGL"
12036 else
570cb8cb 12037
62d0491b 12038 ac_safe=`echo "GL/gl.h" | sed 'y%./+-%__p_%'`
3a922bb4 12039echo $ac_n "checking for GL/gl.h""... $ac_c" 1>&6
f9bc1684 12040echo "configure:12041: checking for GL/gl.h" >&5
3a922bb4
RL
12041if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12042 echo $ac_n "(cached) $ac_c" 1>&6
12043else
12044 cat > conftest.$ac_ext <<EOF
f9bc1684 12045#line 12046 "configure"
3a922bb4
RL
12046#include "confdefs.h"
12047#include <GL/gl.h>
12048EOF
12049ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
f9bc1684 12050{ (eval echo configure:12051: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3a922bb4
RL
12051ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12052if test -z "$ac_err"; then
12053 rm -rf conftest*
12054 eval "ac_cv_header_$ac_safe=yes"
12055else
12056 echo "$ac_err" >&5
12057 echo "configure: failed program was:" >&5
12058 cat conftest.$ac_ext >&5
12059 rm -rf conftest*
12060 eval "ac_cv_header_$ac_safe=no"
12061fi
12062rm -f conftest*
12063fi
12064if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12065 echo "$ac_t""yes" 1>&6
12066
1352efdf 12067 echo $ac_n "checking for -lGL""... $ac_c" 1>&6
f9bc1684 12068echo "configure:12069: checking for -lGL" >&5
57964555 12069
62d0491b
RL
12070ac_find_libraries=
12071for ac_dir in $SEARCH_LIB;
12072 do
12073 for ac_extension in a so sl dylib; do
12074 if test -f "$ac_dir/libGL.$ac_extension"; then
12075 ac_find_libraries=$ac_dir
12076 break 2
12077 fi
12078 done
12079 done
3a922bb4 12080
62d0491b
RL
12081 if test "$ac_find_libraries" != "" ; then
12082
12083 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
12084 result=$?
12085 if test $result = 0; then
12086 ac_path_to_link=""
12087 else
12088 ac_path_to_link=" -L$ac_find_libraries"
12089 fi
3a922bb4 12090
62d0491b
RL
12091 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
12092 OPENGL_LIBS="-lGL -lGLU"
1352efdf 12093 echo "$ac_t""yes" 1>&6
62d0491b 12094 else
1352efdf
RL
12095 echo "$ac_t""no" 1>&6
12096 echo $ac_n "checking for -lMesaGL""... $ac_c" 1>&6
f9bc1684 12097echo "configure:12098: checking for -lMesaGL" >&5
62d0491b
RL
12098
12099ac_find_libraries=
12100for ac_dir in $SEARCH_LIB;
12101 do
12102 for ac_extension in a so sl dylib; do
12103 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
12104 ac_find_libraries=$ac_dir
12105 break 2
12106 fi
12107 done
12108 done
3a922bb4 12109
62d0491b 12110 if test "$ac_find_libraries" != "" ; then
57964555 12111
62d0491b
RL
12112 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
12113 result=$?
12114 if test $result = 0; then
12115 ac_path_to_link=""
12116 else
12117 ac_path_to_link=" -L$ac_find_libraries"
12118 fi
3a922bb4 12119
62d0491b
RL
12120 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
12121 OPENGL_LIBS="-lMesaGL -lMesaGLU"
1352efdf
RL
12122 echo "$ac_t""yes" 1>&6
12123 else
12124 echo "$ac_t""no" 1>&6
62d0491b
RL
12125 fi
12126 fi
12127
3a922bb4
RL
12128else
12129 echo "$ac_t""no" 1>&6
3a922bb4
RL
12130fi
12131
6f754473 12132
62d0491b
RL
12133
12134# AC_CHECK_HEADER(GL/gl.h,
12135# [
12136# AC_CHECK_LIB(GL, glFlush,
12137# [
12138# OPENGL_LIBS="-lGL -lGLU"
12139# ],
12140# [
12141# AC_CHECK_LIB(MesaGL, glFlush,
12142# [
12143# OPENGL_LIBS="-lMesaGL -lMesaGLU"
12144# ],
12145# [],
12146# [-lm])
12147# ],
12148# [-lm])
12149# ])
12150
12151 if test "x$OPENGL_LIBS" = "x"; then
12152 { echo "configure: error: OpenGL libraries not available" 1>&2; exit 1; }
12153 fi
6f754473 12154 fi
6f754473 12155
62d0491b
RL
12156 if test "$wxUSE_OPENGL" = "yes"; then
12157 cat >> confdefs.h <<\EOF
6f754473
VZ
12158#define wxUSE_OPENGL 1
12159EOF
12160
62d0491b 12161 cat >> confdefs.h <<\EOF
6f754473
VZ
12162#define wxUSE_GLCANVAS 1
12163EOF
12164
62d0491b
RL
12165 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl"
12166 fi
3a922bb4
RL
12167fi
12168
12169if test -z "$TOOLKIT_VPATH" ; then
12170 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}"
12171fi
12172
12173if test -n "$TOOLKIT" ; then
12174 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
12175fi
12176
f676c7ff
MB
12177lib_unicode_suffix=
12178if test "$wxUSE_UNICODE" = "yes"; then
12179 lib_unicode_suffix=u
12180fi
12181
3a922bb4
RL
12182lib_debug_suffix=
12183if test "$wxUSE_DEBUG_FLAG" = "yes"; then
12184 lib_debug_suffix=d
3a922bb4
RL
12185fi
12186
f676c7ff
MB
12187TOOLCHAIN_NAME="${TOOLKIT_DIR}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}-${WX_RELEASE}"
12188TOOLCHAIN_NAME_GL="${TOOLKIT_DIR}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_gl-${WX_RELEASE}"
3a922bb4
RL
12189
12190if test "$cross_compiling" = "yes"; then
12191 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}-${host_alias}"
12192 TOOLCHAIN_NAME_GL="${TOOLCHAIN_NAME_GL}-${host_alias}"
12193fi
12194
12195WX_LIBRARY="wx_${TOOLCHAIN_NAME}"
12196WX_LIBRARY_GL="wx_${TOOLCHAIN_NAME_GL}"
12197
3a922bb4
RL
12198WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
12199WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
12200
12201WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}"
12202WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
12203WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}"
12204WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
12205
d08b457b 12206WX_RESOURCES_MACOSX="lib${WX_LIBRARY}.rsrc"
e23081de 12207WX_RESOURCES_MACOSX_COMPILED="lib${WX_LIBRARY}.r"
3a922bb4 12208
978f1259
RL
12209case "${host}" in
12210 *-*-cygwin* | *-*-mingw32* )
12211
2da4f892 12212
978f1259
RL
12213
12214 if test "$cross_compiling" != "yes"; then
12215 WX_LIBRARY="wxmsw${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}"
12216 WX_LIBRARY_GL="wxmsw_gl${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}"
12217 WX_LIBRARY_NAME_SHARED="${WX_LIBRARY}.${SO_SUFFIX}"
12218 WX_LIBRARY_NAME_SHARED_GL="${WX_LIBRARY_GL}.${SO_SUFFIX}"
2da4f892
RL
12219 else
12220 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}"
12221 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
978f1259
RL
12222 fi
12223
12224esac
12225
12226WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a"
12227WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY_GL}.a"
12228
12229WXCONFIG_LIBS="-l${WX_LIBRARY}"
885d4bf5 12230WXCONFIG_LIBS_STATIC="lib${WX_LIBRARY}.a"
978f1259
RL
12231
12232if test "$wxUSE_OPENGL" = "yes"; then
885d4bf5
VS
12233 WXCONFIG_LIBS_GL="-l${WX_LIBRARY_GL} ${OPENGL_LIBS}"
12234 WXCONFIG_LIBS_STATIC_GL="lib${WX_LIBRARY_GL}.a ${OPENGL_LIBS}"
978f1259
RL
12235fi
12236
12237
3a922bb4
RL
12238
12239if test "$wxUSE_SHARED" = "yes"; then
55e80573
VZ
12240
12241 if test "$wxUSE_OPENGL" = "yes"; then
12242 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
3a922bb4 12243 WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1} \$(build_libdir)/${WX_LIBRARY_LINK1_GL}"
55e80573
VZ
12244 else
12245 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
3a922bb4 12246 WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1}"
55e80573
VZ
12247 fi
12248
dd4f7467 12249 if test "$GCC" = "yes"; then
55e80573 12250 PIC_FLAG="-fPIC"
dd4f7467 12251 fi
55e80573
VZ
12252
12253 SHARED_LD="${CXX} -shared -o"
698dcdb6 12254
10f2d63a
VZ
12255 case "${host}" in
12256 *-hp-hpux* )
55e80573 12257 if test "$GCC" != "yes"; then
3d63bc3a 12258 LDFLAGS="$LDFLAGS -L/usr/lib"
f6bcfd97 12259
10f2d63a
VZ
12260 SHARED_LD="${CXX} -b -o"
12261 PIC_FLAG="+Z"
12262 fi
55e80573 12263
7b7a7637
RL
12264 if test "$wxUSE_OPENGL" = "yes"; then
12265 WX_ALL_INSTALLED="preinstall_gl"
12266 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}"
12267 else
12268 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}"
12269 fi
10f2d63a 12270 ;;
b12915c1 12271
55e80573
VZ
12272 *-*-linux* )
12273 if test "$GCC" != "yes"; then
12274 echo $ac_n "checking for Intel compiler""... $ac_c" 1>&6
f9bc1684 12275echo "configure:12276: checking for Intel compiler" >&5
55e80573
VZ
12276if eval "test \"`echo '$''{'wx_cv_prog_icc'+set}'`\" = set"; then
12277 echo $ac_n "(cached) $ac_c" 1>&6
12278else
12279
12280 cat > conftest.$ac_ext <<EOF
f9bc1684 12281#line 12282 "configure"
55e80573
VZ
12282#include "confdefs.h"
12283
12284int main() {
12285
12286 #ifndef __INTEL_COMPILER
dd4f7467 12287 #error Not icc
55e80573
VZ
12288 #endif
12289
12290; return 0; }
12291EOF
f9bc1684 12292if { (eval echo configure:12293: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
55e80573
VZ
12293 rm -rf conftest*
12294 wx_cv_prog_icc=yes
12295else
12296 echo "configure: failed program was:" >&5
12297 cat conftest.$ac_ext >&5
12298 rm -rf conftest*
12299 wx_cv_prog_icc=no
12300
12301fi
12302rm -f conftest*
12303
12304fi
12305
12306echo "$ac_t""$wx_cv_prog_icc" 1>&6
55e80573
VZ
12307 if test "$wx_cv_prog_icc" = "yes"; then
12308 PIC_FLAG="-KPIC"
12309 fi
12310 fi
12311
3a922bb4
RL
12312 if test "$wxUSE_SONAME" = "yes" ; then
12313 SONAME_FLAGS="-Wl,-soname,${WX_LIBRARY_LINK1}"
12314 SONAME_FLAGS_GL="-Wl,-soname,${WX_LIBRARY_LINK1_GL}"
f6bcfd97 12315 WX_TARGET_LIBRARY_SONAME="-Wl,-soname,\$(TARGETLIB_LINK1)"
00cf1208 12316 fi
10f2d63a 12317 ;;
55e80573 12318
10f2d63a
VZ
12319 *-*-solaris2* )
12320 if test "$GCC" = yes ; then
f6bcfd97 12321 CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
10f2d63a
VZ
12322 else
12323 SHARED_LD="${CXX} -G -o"
12324 PIC_FLAG="-KPIC"
7b7a7637
RL
12325 SONAME_FLAGS="-h ${WX_LIBRARY_NAME_SHARED}"
12326 SONAME_FLAGS_GL="-h ${WX_LIBRARY_NAME_SHARED}"
10f2d63a 12327 fi
10f2d63a 12328 ;;
55e80573 12329
b4085ce6 12330 *-*-darwin* )
156b2523
GD
12331 CFLAGS="$CFLAGS -fno-common -DDYLIB_INIT"
12332 CXXFLAGS="$CXXFLAGS -fno-common -DDYLIB_INIT"
12333 SHARED_LD="$CXX -dynamiclib -init _wxWindowsDylibInit -o"
ea5999b9 12334 PIC_FLAG="-dynamic -fPIC"
10f2d63a 12335 ;;
55e80573 12336
10f2d63a
VZ
12337 *-*-aix* )
12338 SHARED_LD="/usr/lpp/xlC/bin/makeC++SharedLib -p 0 -o"
10f2d63a 12339 ;;
55e80573 12340
7b7a7637 12341 *-*-cygwin* | *-*-mingw32* )
77e13408 12342
2da4f892 12343 WX_LIBRARY_IMPORTLIB="${WX_LIBRARY_NAME_SHARED}.a"
77e13408 12344
77e13408 12345 SHARED_LD="${CXX} -shared -Wl,--out-implib,lib/${WX_LIBRARY_IMPORTLIB} -o"
00c81359 12346 TOOLCHAIN_DLL_DEFS="${TOOLCHAIN_DLL_DEFS} -DWXUSINGDLL=1"
25d0687a
RL
12347
12348 PIC_FLAG="-UWXUSINGDLL -DWXMAKINGDLL=1 -D_DLL=1 -D_WINDLL=1"
7b7a7637
RL
12349
12350 if test "$wxUSE_OPENGL" = "yes"; then
f6bcfd97 12351 WX_ALL_INSTALLED="preinstall_gl"
978f1259 12352 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}"
f6bcfd97 12353 else
978f1259 12354 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}"
f6bcfd97 12355 fi
10f2d63a 12356 ;;
55e80573 12357
6fa882bd 12358 *-pc-os2_emx | *-pc-os2-emx )
7b7a7637 12359 wxUSE_SHARED=no
10f2d63a 12360 ;;
55e80573 12361
b12915c1 12362 *-*-beos* )
e2b8b066 12363 SHARED_LD="${LD} -shared -o"
b12915c1 12364 ;;
55e80573
VZ
12365
12366 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
12367 *-*-sunos4* | \
12368 *-*-irix5* | *-*-irix6* | \
12369 *-*-osf* | \
12370 *-*-dgux5* | \
12371 *-*-sysv5* )
12372 ;;
12373
10f2d63a 12374 *)
7b7a7637 12375 { echo "configure: error: unknown system type $host." 1>&2; exit 1; }
10f2d63a
VZ
12376 esac
12377
12378 if test "x$WX_TARGET_LIBRARY" = "x"; then
12379 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
bdad4e7e 12380 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}"
10f2d63a 12381 fi
55e80573 12382
3711412e 12383 WX_TARGET_LIBRARY_TYPE="so"
885d4bf5 12384 INSTALL_LIBRARY='$(INSTALL_PROGRAM)'
3a922bb4 12385fi
f6bcfd97 12386
3a922bb4 12387if test "$wxUSE_SHARED" = "no"; then
f6bcfd97 12388
3a922bb4 12389 if test "$wxUSE_GUI" = "no" -o "$USE_WIN32" = 1 ; then
f6bcfd97
BP
12390 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
12391 fi
12392
6fa882bd
RR
12393 if test "$wxUSE_MAC" = 1; then
12394 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
12395 fi
12396
3a922bb4
RL
12397 if test "$wxUSE_OPENGL" = "yes"; then
12398 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_gl"
12399 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC} \$(build_libdir)/${WX_LIBRARY_NAME_STATIC_GL}"
12400 else
12401 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC}"
12402 fi
698dcdb6 12403
3a922bb4
RL
12404 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
12405 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
12406
12407 WX_TARGET_LIBRARY_TYPE="a"
885d4bf5 12408 INSTALL_LIBRARY='$(INSTALL_DATA)'
10f2d63a 12409fi
10f2d63a 12410
d08b457b
GD
12411if test "$wxUSE_MAC" = 1; then
12412 WX_ALL="${WX_ALL} \$(build_libdir)/lib${WX_LIBRARY}.r"
e23081de 12413 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_res"
d08b457b
GD
12414 # Extract the first word of "Rez", so it can be a program name with args.
12415set dummy Rez; ac_word=$2
12416echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
f9bc1684 12417echo "configure:12418: checking for $ac_word" >&5
d08b457b
GD
12418if eval "test \"`echo '$''{'ac_cv_prog_RESCOMP'+set}'`\" = set"; then
12419 echo $ac_n "(cached) $ac_c" 1>&6
12420else
12421 if test -n "$RESCOMP"; then
12422 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
12423else
12424 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
12425 ac_dummy="$PATH"
12426 for ac_dir in $ac_dummy; do
12427 test -z "$ac_dir" && ac_dir=.
12428 if test -f $ac_dir/$ac_word; then
12429 ac_cv_prog_RESCOMP="Rez"
12430 break
12431 fi
12432 done
12433 IFS="$ac_save_ifs"
12434 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
12435fi
12436fi
12437RESCOMP="$ac_cv_prog_RESCOMP"
12438if test -n "$RESCOMP"; then
12439 echo "$ac_t""$RESCOMP" 1>&6
12440else
12441 echo "$ac_t""no" 1>&6
12442fi
12443
9f8148b1
GD
12444 # Extract the first word of "DeRez", so it can be a program name with args.
12445set dummy DeRez; ac_word=$2
d08b457b 12446echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
f9bc1684 12447echo "configure:12448: checking for $ac_word" >&5
d08b457b
GD
12448if eval "test \"`echo '$''{'ac_cv_prog_DEREZ'+set}'`\" = set"; then
12449 echo $ac_n "(cached) $ac_c" 1>&6
12450else
12451 if test -n "$DEREZ"; then
12452 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
12453else
12454 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
12455 ac_dummy="$PATH"
12456 for ac_dir in $ac_dummy; do
12457 test -z "$ac_dir" && ac_dir=.
12458 if test -f $ac_dir/$ac_word; then
9f8148b1 12459 ac_cv_prog_DEREZ="DeRez"
d08b457b
GD
12460 break
12461 fi
12462 done
12463 IFS="$ac_save_ifs"
9f8148b1 12464 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
d08b457b
GD
12465fi
12466fi
12467DEREZ="$ac_cv_prog_DEREZ"
12468if test -n "$DEREZ"; then
12469 echo "$ac_t""$DEREZ" 1>&6
12470else
12471 echo "$ac_t""no" 1>&6
12472fi
12473
12474 LIBWXMACRES="\$(top_builddir)/lib/lib${WX_LIBRARY}.r"
12475 LIBWXMACRESCOMP="\$(RESCOMP) Carbon.r -t APPL ${LIBWXMACRES} -o \$(BIN_PROGRAM)"
e23081de 12476 LIBWXMACRESWXCONFIG="${RESCOMP} Carbon.r -t APPL \${prefix}/lib/${WX_RESOURCES_MACOSX_COMPILED} -o"
d08b457b
GD
12477fi
12478
3a922bb4 12479
13c0541d
GD
12480if test "$wxUSE_MAC" != 1; then
12481 for ac_hdr in strings.h
9cfadba2 12482do
698dcdb6
VZ
12483ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12484echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
f9bc1684 12485echo "configure:12486: checking for $ac_hdr" >&5
698dcdb6
VZ
12486if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12487 echo $ac_n "(cached) $ac_c" 1>&6
12488else
12489 cat > conftest.$ac_ext <<EOF
f9bc1684 12490#line 12491 "configure"
9cfadba2 12491#include "confdefs.h"
698dcdb6
VZ
12492#include <$ac_hdr>
12493EOF
12494ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
f9bc1684 12495{ (eval echo configure:12496: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
12496ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12497if test -z "$ac_err"; then
12498 rm -rf conftest*
12499 eval "ac_cv_header_$ac_safe=yes"
6232543b 12500else
698dcdb6
VZ
12501 echo "$ac_err" >&5
12502 echo "configure: failed program was:" >&5
9cfadba2 12503 cat conftest.$ac_ext >&5
698dcdb6
VZ
12504 rm -rf conftest*
12505 eval "ac_cv_header_$ac_safe=no"
9cfadba2 12506fi
698dcdb6 12507rm -f conftest*
9cfadba2 12508fi
698dcdb6
VZ
12509if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12510 echo "$ac_t""yes" 1>&6
12511 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12512 cat >> confdefs.h <<EOF
12513#define $ac_tr_hdr 1
9cfadba2 12514EOF
698dcdb6
VZ
12515
12516else
12517 echo "$ac_t""no" 1>&6
9cfadba2
VZ
12518fi
12519done
10f2d63a 12520
13c0541d
GD
12521fi
12522
3a922bb4 12523for ac_hdr in stdlib.h
10f2d63a 12524do
698dcdb6
VZ
12525ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12526echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
f9bc1684 12527echo "configure:12528: checking for $ac_hdr" >&5
698dcdb6
VZ
12528if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12529 echo $ac_n "(cached) $ac_c" 1>&6
12530else
12531 cat > conftest.$ac_ext <<EOF
f9bc1684 12532#line 12533 "configure"
10f2d63a 12533#include "confdefs.h"
698dcdb6
VZ
12534#include <$ac_hdr>
12535EOF
12536ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
f9bc1684 12537{ (eval echo configure:12538: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
12538ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12539if test -z "$ac_err"; then
12540 rm -rf conftest*
12541 eval "ac_cv_header_$ac_safe=yes"
6232543b 12542else
698dcdb6
VZ
12543 echo "$ac_err" >&5
12544 echo "configure: failed program was:" >&5
10f2d63a 12545 cat conftest.$ac_ext >&5
698dcdb6
VZ
12546 rm -rf conftest*
12547 eval "ac_cv_header_$ac_safe=no"
10f2d63a 12548fi
698dcdb6 12549rm -f conftest*
10f2d63a 12550fi
698dcdb6
VZ
12551if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12552 echo "$ac_t""yes" 1>&6
12553 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12554 cat >> confdefs.h <<EOF
12555#define $ac_tr_hdr 1
10f2d63a 12556EOF
698dcdb6
VZ
12557
12558else
12559 echo "$ac_t""no" 1>&6
10f2d63a
VZ
12560fi
12561done
12562
9f8148b1 12563for ac_hdr in malloc.h
10f2d63a 12564do
698dcdb6
VZ
12565ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12566echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
f9bc1684 12567echo "configure:12568: checking for $ac_hdr" >&5
698dcdb6
VZ
12568if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12569 echo $ac_n "(cached) $ac_c" 1>&6
12570else
12571 cat > conftest.$ac_ext <<EOF
f9bc1684 12572#line 12573 "configure"
10f2d63a 12573#include "confdefs.h"
698dcdb6
VZ
12574#include <$ac_hdr>
12575EOF
12576ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
f9bc1684 12577{ (eval echo configure:12578: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
12578ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12579if test -z "$ac_err"; then
12580 rm -rf conftest*
12581 eval "ac_cv_header_$ac_safe=yes"
6f72b082 12582else
698dcdb6
VZ
12583 echo "$ac_err" >&5
12584 echo "configure: failed program was:" >&5
6f72b082 12585 cat conftest.$ac_ext >&5
698dcdb6
VZ
12586 rm -rf conftest*
12587 eval "ac_cv_header_$ac_safe=no"
6f72b082 12588fi
698dcdb6 12589rm -f conftest*
6f72b082 12590fi
698dcdb6
VZ
12591if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12592 echo "$ac_t""yes" 1>&6
12593 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12594 cat >> confdefs.h <<EOF
12595#define $ac_tr_hdr 1
6f72b082 12596EOF
698dcdb6
VZ
12597
12598else
12599 echo "$ac_t""no" 1>&6
6f72b082
OK
12600fi
12601done
12602
9f8148b1 12603for ac_hdr in unistd.h
6f72b082 12604do
698dcdb6
VZ
12605ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12606echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
f9bc1684 12607echo "configure:12608: checking for $ac_hdr" >&5
698dcdb6
VZ
12608if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12609 echo $ac_n "(cached) $ac_c" 1>&6
12610else
12611 cat > conftest.$ac_ext <<EOF
f9bc1684 12612#line 12613 "configure"
6f72b082 12613#include "confdefs.h"
698dcdb6
VZ
12614#include <$ac_hdr>
12615EOF
12616ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
f9bc1684 12617{ (eval echo configure:12618: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
12618ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12619if test -z "$ac_err"; then
12620 rm -rf conftest*
12621 eval "ac_cv_header_$ac_safe=yes"
6f72b082 12622else
698dcdb6
VZ
12623 echo "$ac_err" >&5
12624 echo "configure: failed program was:" >&5
6f72b082 12625 cat conftest.$ac_ext >&5
698dcdb6
VZ
12626 rm -rf conftest*
12627 eval "ac_cv_header_$ac_safe=no"
6f72b082 12628fi
698dcdb6 12629rm -f conftest*
6f72b082 12630fi
698dcdb6
VZ
12631if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12632 echo "$ac_t""yes" 1>&6
12633 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12634 cat >> confdefs.h <<EOF
12635#define $ac_tr_hdr 1
6f72b082 12636EOF
698dcdb6
VZ
12637
12638else
12639 echo "$ac_t""no" 1>&6
6f72b082
OK
12640fi
12641done
12642
9f8148b1 12643for ac_hdr in wchar.h
6f72b082 12644do
698dcdb6
VZ
12645ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12646echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
f9bc1684 12647echo "configure:12648: checking for $ac_hdr" >&5
698dcdb6
VZ
12648if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12649 echo $ac_n "(cached) $ac_c" 1>&6
12650else
12651 cat > conftest.$ac_ext <<EOF
f9bc1684 12652#line 12653 "configure"
6f72b082 12653#include "confdefs.h"
698dcdb6
VZ
12654#include <$ac_hdr>
12655EOF
12656ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
f9bc1684 12657{ (eval echo configure:12658: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
12658ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12659if test -z "$ac_err"; then
12660 rm -rf conftest*
12661 eval "ac_cv_header_$ac_safe=yes"
10f2d63a 12662else
698dcdb6
VZ
12663 echo "$ac_err" >&5
12664 echo "configure: failed program was:" >&5
10f2d63a 12665 cat conftest.$ac_ext >&5
698dcdb6
VZ
12666 rm -rf conftest*
12667 eval "ac_cv_header_$ac_safe=no"
10f2d63a 12668fi
698dcdb6 12669rm -f conftest*
10f2d63a 12670fi
698dcdb6
VZ
12671if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12672 echo "$ac_t""yes" 1>&6
12673 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12674 cat >> confdefs.h <<EOF
12675#define $ac_tr_hdr 1
10f2d63a 12676EOF
698dcdb6
VZ
12677
12678else
12679 echo "$ac_t""no" 1>&6
10f2d63a
VZ
12680fi
12681done
12682
9f8148b1 12683for ac_hdr in wcstr.h
0fb0dd83 12684do
698dcdb6
VZ
12685ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12686echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
f9bc1684 12687echo "configure:12688: checking for $ac_hdr" >&5
698dcdb6
VZ
12688if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12689 echo $ac_n "(cached) $ac_c" 1>&6
12690else
12691 cat > conftest.$ac_ext <<EOF
f9bc1684 12692#line 12693 "configure"
0fb0dd83 12693#include "confdefs.h"
698dcdb6
VZ
12694#include <$ac_hdr>
12695EOF
12696ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
f9bc1684 12697{ (eval echo configure:12698: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
12698ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12699if test -z "$ac_err"; then
12700 rm -rf conftest*
12701 eval "ac_cv_header_$ac_safe=yes"
0fb0dd83 12702else
698dcdb6
VZ
12703 echo "$ac_err" >&5
12704 echo "configure: failed program was:" >&5
0fb0dd83 12705 cat conftest.$ac_ext >&5
698dcdb6
VZ
12706 rm -rf conftest*
12707 eval "ac_cv_header_$ac_safe=no"
0fb0dd83 12708fi
698dcdb6 12709rm -f conftest*
0fb0dd83 12710fi
698dcdb6
VZ
12711if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12712 echo "$ac_t""yes" 1>&6
12713 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12714 cat >> confdefs.h <<EOF
12715#define $ac_tr_hdr 1
0fb0dd83 12716EOF
698dcdb6
VZ
12717
12718else
12719 echo "$ac_t""no" 1>&6
0fb0dd83
RR
12720fi
12721done
12722
9f8148b1 12723for ac_hdr in wctype.h
1f8ae82f 12724do
698dcdb6
VZ
12725ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12726echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
f9bc1684 12727echo "configure:12728: checking for $ac_hdr" >&5
698dcdb6
VZ
12728if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12729 echo $ac_n "(cached) $ac_c" 1>&6
12730else
12731 cat > conftest.$ac_ext <<EOF
f9bc1684 12732#line 12733 "configure"
1f8ae82f 12733#include "confdefs.h"
698dcdb6
VZ
12734#include <$ac_hdr>
12735EOF
12736ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
f9bc1684 12737{ (eval echo configure:12738: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
12738ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12739if test -z "$ac_err"; then
12740 rm -rf conftest*
12741 eval "ac_cv_header_$ac_safe=yes"
1f8ae82f 12742else
698dcdb6
VZ
12743 echo "$ac_err" >&5
12744 echo "configure: failed program was:" >&5
1f8ae82f 12745 cat conftest.$ac_ext >&5
698dcdb6
VZ
12746 rm -rf conftest*
12747 eval "ac_cv_header_$ac_safe=no"
1f8ae82f 12748fi
698dcdb6 12749rm -f conftest*
1f8ae82f 12750fi
698dcdb6
VZ
12751if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12752 echo "$ac_t""yes" 1>&6
12753 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12754 cat >> confdefs.h <<EOF
12755#define $ac_tr_hdr 1
1f8ae82f 12756EOF
698dcdb6
VZ
12757
12758else
12759 echo "$ac_t""no" 1>&6
1f8ae82f
GD
12760fi
12761done
12762
9f8148b1 12763for ac_hdr in fnmatch.h
10f2d63a 12764do
698dcdb6
VZ
12765ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12766echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
f9bc1684 12767echo "configure:12768: checking for $ac_hdr" >&5
698dcdb6
VZ
12768if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12769 echo $ac_n "(cached) $ac_c" 1>&6
12770else
12771 cat > conftest.$ac_ext <<EOF
f9bc1684 12772#line 12773 "configure"
10f2d63a 12773#include "confdefs.h"
698dcdb6
VZ
12774#include <$ac_hdr>
12775EOF
12776ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
f9bc1684 12777{ (eval echo configure:12778: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
12778ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12779if test -z "$ac_err"; then
12780 rm -rf conftest*
12781 eval "ac_cv_header_$ac_safe=yes"
10f2d63a 12782else
698dcdb6
VZ
12783 echo "$ac_err" >&5
12784 echo "configure: failed program was:" >&5
10f2d63a 12785 cat conftest.$ac_ext >&5
698dcdb6
VZ
12786 rm -rf conftest*
12787 eval "ac_cv_header_$ac_safe=no"
10f2d63a 12788fi
698dcdb6 12789rm -f conftest*
10f2d63a 12790fi
698dcdb6
VZ
12791if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12792 echo "$ac_t""yes" 1>&6
12793 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12794 cat >> confdefs.h <<EOF
12795#define $ac_tr_hdr 1
10f2d63a 12796EOF
698dcdb6
VZ
12797
12798else
12799 echo "$ac_t""no" 1>&6
10f2d63a
VZ
12800fi
12801done
12802
9f8148b1 12803for ac_hdr in iconv.h
0fbb762e
MB
12804do
12805ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12806echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
f9bc1684 12807echo "configure:12808: checking for $ac_hdr" >&5
0fbb762e
MB
12808if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12809 echo $ac_n "(cached) $ac_c" 1>&6
12810else
12811 cat > conftest.$ac_ext <<EOF
f9bc1684 12812#line 12813 "configure"
0fbb762e
MB
12813#include "confdefs.h"
12814#include <$ac_hdr>
12815EOF
12816ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
f9bc1684 12817{ (eval echo configure:12818: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
0fbb762e
MB
12818ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12819if test -z "$ac_err"; then
12820 rm -rf conftest*
12821 eval "ac_cv_header_$ac_safe=yes"
12822else
12823 echo "$ac_err" >&5
12824 echo "configure: failed program was:" >&5
12825 cat conftest.$ac_ext >&5
12826 rm -rf conftest*
12827 eval "ac_cv_header_$ac_safe=no"
12828fi
12829rm -f conftest*
12830fi
12831if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12832 echo "$ac_t""yes" 1>&6
12833 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12834 cat >> confdefs.h <<EOF
12835#define $ac_tr_hdr 1
12836EOF
12837
12838else
12839 echo "$ac_t""no" 1>&6
12840fi
12841done
12842
9f8148b1
GD
12843for ac_hdr in langinfo.h
12844do
12845ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12846echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
f9bc1684 12847echo "configure:12848: checking for $ac_hdr" >&5
9f8148b1
GD
12848if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12849 echo $ac_n "(cached) $ac_c" 1>&6
12850else
12851 cat > conftest.$ac_ext <<EOF
f9bc1684 12852#line 12853 "configure"
9f8148b1
GD
12853#include "confdefs.h"
12854#include <$ac_hdr>
12855EOF
12856ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
f9bc1684 12857{ (eval echo configure:12858: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9f8148b1
GD
12858ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12859if test -z "$ac_err"; then
12860 rm -rf conftest*
12861 eval "ac_cv_header_$ac_safe=yes"
12862else
12863 echo "$ac_err" >&5
12864 echo "configure: failed program was:" >&5
12865 cat conftest.$ac_ext >&5
12866 rm -rf conftest*
12867 eval "ac_cv_header_$ac_safe=no"
12868fi
12869rm -f conftest*
12870fi
12871if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12872 echo "$ac_t""yes" 1>&6
12873 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12874 cat >> confdefs.h <<EOF
12875#define $ac_tr_hdr 1
12876EOF
12877
12878else
12879 echo "$ac_t""no" 1>&6
12880fi
12881done
12882
10f2d63a 12883
3a922bb4
RL
12884if test "$wxUSE_GUI" = "yes"; then
12885 if test "$wxUSE_UNIX" = "yes"; then
12886 for ac_hdr in X11/XKBlib.h
29fd3c0c
VS
12887do
12888ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12889echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
f9bc1684 12890echo "configure:12891: checking for $ac_hdr" >&5
29fd3c0c
VS
12891if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12892 echo $ac_n "(cached) $ac_c" 1>&6
12893else
12894 cat > conftest.$ac_ext <<EOF
f9bc1684 12895#line 12896 "configure"
29fd3c0c
VS
12896#include "confdefs.h"
12897#include <$ac_hdr>
12898EOF
12899ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
f9bc1684 12900{ (eval echo configure:12901: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
29fd3c0c
VS
12901ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12902if test -z "$ac_err"; then
12903 rm -rf conftest*
12904 eval "ac_cv_header_$ac_safe=yes"
12905else
12906 echo "$ac_err" >&5
12907 echo "configure: failed program was:" >&5
12908 cat conftest.$ac_ext >&5
12909 rm -rf conftest*
12910 eval "ac_cv_header_$ac_safe=no"
12911fi
12912rm -f conftest*
12913fi
12914if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12915 echo "$ac_t""yes" 1>&6
12916 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12917 cat >> confdefs.h <<EOF
12918#define $ac_tr_hdr 1
12919EOF
12920
12921else
12922 echo "$ac_t""no" 1>&6
12923fi
12924done
12925
3a922bb4 12926 fi
29fd3c0c
VS
12927fi
12928
698dcdb6
VZ
12929
12930echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
f9bc1684 12931echo "configure:12932: checking for ANSI C header files" >&5
698dcdb6
VZ
12932if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
12933 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 12934else
698dcdb6 12935 cat > conftest.$ac_ext <<EOF
f9bc1684 12936#line 12937 "configure"
10f2d63a
VZ
12937#include "confdefs.h"
12938#include <stdlib.h>
12939#include <stdarg.h>
12940#include <string.h>
12941#include <float.h>
698dcdb6
VZ
12942EOF
12943ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
f9bc1684 12944{ (eval echo configure:12945: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
12945ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12946if test -z "$ac_err"; then
12947 rm -rf conftest*
10f2d63a
VZ
12948 ac_cv_header_stdc=yes
12949else
698dcdb6
VZ
12950 echo "$ac_err" >&5
12951 echo "configure: failed program was:" >&5
10f2d63a 12952 cat conftest.$ac_ext >&5
698dcdb6 12953 rm -rf conftest*
10f2d63a
VZ
12954 ac_cv_header_stdc=no
12955fi
698dcdb6 12956rm -f conftest*
10f2d63a
VZ
12957
12958if test $ac_cv_header_stdc = yes; then
12959 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
698dcdb6 12960cat > conftest.$ac_ext <<EOF
f9bc1684 12961#line 12962 "configure"
10f2d63a
VZ
12962#include "confdefs.h"
12963#include <string.h>
698dcdb6 12964EOF
10f2d63a
VZ
12965if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12966 egrep "memchr" >/dev/null 2>&1; then
12967 :
12968else
698dcdb6 12969 rm -rf conftest*
10f2d63a
VZ
12970 ac_cv_header_stdc=no
12971fi
12972rm -f conftest*
12973
12974fi
12975
12976if test $ac_cv_header_stdc = yes; then
12977 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
698dcdb6 12978cat > conftest.$ac_ext <<EOF
f9bc1684 12979#line 12980 "configure"
10f2d63a
VZ
12980#include "confdefs.h"
12981#include <stdlib.h>
698dcdb6 12982EOF
10f2d63a
VZ
12983if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12984 egrep "free" >/dev/null 2>&1; then
12985 :
12986else
698dcdb6 12987 rm -rf conftest*
10f2d63a
VZ
12988 ac_cv_header_stdc=no
12989fi
12990rm -f conftest*
12991
12992fi
12993
12994if test $ac_cv_header_stdc = yes; then
12995 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
698dcdb6 12996if test "$cross_compiling" = yes; then
10f2d63a
VZ
12997 :
12998else
698dcdb6 12999 cat > conftest.$ac_ext <<EOF
f9bc1684 13000#line 13001 "configure"
10f2d63a
VZ
13001#include "confdefs.h"
13002#include <ctype.h>
698dcdb6
VZ
13003#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13004#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1e487827 13005#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
698dcdb6
VZ
13006int main () { int i; for (i = 0; i < 256; i++)
13007if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
13008exit (0); }
13009
13010EOF
f9bc1684 13011if { (eval echo configure:13012: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6 13012then
10f2d63a
VZ
13013 :
13014else
698dcdb6
VZ
13015 echo "configure: failed program was:" >&5
13016 cat conftest.$ac_ext >&5
13017 rm -fr conftest*
13018 ac_cv_header_stdc=no
10f2d63a 13019fi
698dcdb6 13020rm -fr conftest*
10f2d63a 13021fi
698dcdb6 13022
10f2d63a
VZ
13023fi
13024fi
1e487827 13025
698dcdb6
VZ
13026echo "$ac_t""$ac_cv_header_stdc" 1>&6
13027if test $ac_cv_header_stdc = yes; then
13028 cat >> confdefs.h <<\EOF
10f2d63a
VZ
13029#define STDC_HEADERS 1
13030EOF
13031
13032fi
13033
698dcdb6 13034echo $ac_n "checking for mode_t""... $ac_c" 1>&6
f9bc1684 13035echo "configure:13036: checking for mode_t" >&5
698dcdb6
VZ
13036if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
13037 echo $ac_n "(cached) $ac_c" 1>&6
1e487827 13038else
698dcdb6 13039 cat > conftest.$ac_ext <<EOF
f9bc1684 13040#line 13041 "configure"
1e487827 13041#include "confdefs.h"
698dcdb6
VZ
13042#include <sys/types.h>
13043#if STDC_HEADERS
13044#include <stdlib.h>
13045#include <stddef.h>
13046#endif
13047EOF
13048if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13049 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
13050 rm -rf conftest*
10f2d63a
VZ
13051 ac_cv_type_mode_t=yes
13052else
698dcdb6
VZ
13053 rm -rf conftest*
13054 ac_cv_type_mode_t=no
703e0a69 13055fi
698dcdb6 13056rm -f conftest*
1e487827 13057
698dcdb6
VZ
13058fi
13059echo "$ac_t""$ac_cv_type_mode_t" 1>&6
13060if test $ac_cv_type_mode_t = no; then
13061 cat >> confdefs.h <<\EOF
10f2d63a
VZ
13062#define mode_t int
13063EOF
13064
13065fi
13066
698dcdb6 13067echo $ac_n "checking for off_t""... $ac_c" 1>&6
f9bc1684 13068echo "configure:13069: checking for off_t" >&5
698dcdb6
VZ
13069if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
13070 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 13071else
698dcdb6 13072 cat > conftest.$ac_ext <<EOF
f9bc1684 13073#line 13074 "configure"
10f2d63a 13074#include "confdefs.h"
698dcdb6
VZ
13075#include <sys/types.h>
13076#if STDC_HEADERS
13077#include <stdlib.h>
13078#include <stddef.h>
13079#endif
13080EOF
13081if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13082 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
13083 rm -rf conftest*
10f2d63a
VZ
13084 ac_cv_type_off_t=yes
13085else
698dcdb6
VZ
13086 rm -rf conftest*
13087 ac_cv_type_off_t=no
703e0a69 13088fi
698dcdb6 13089rm -f conftest*
1e487827 13090
698dcdb6
VZ
13091fi
13092echo "$ac_t""$ac_cv_type_off_t" 1>&6
13093if test $ac_cv_type_off_t = no; then
13094 cat >> confdefs.h <<\EOF
10f2d63a
VZ
13095#define off_t long
13096EOF
13097
13098fi
13099
698dcdb6 13100echo $ac_n "checking for pid_t""... $ac_c" 1>&6
f9bc1684 13101echo "configure:13102: checking for pid_t" >&5
698dcdb6
VZ
13102if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
13103 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 13104else
698dcdb6 13105 cat > conftest.$ac_ext <<EOF
f9bc1684 13106#line 13107 "configure"
10f2d63a 13107#include "confdefs.h"
698dcdb6
VZ
13108#include <sys/types.h>
13109#if STDC_HEADERS
13110#include <stdlib.h>
13111#include <stddef.h>
13112#endif
13113EOF
13114if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13115 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
13116 rm -rf conftest*
10f2d63a
VZ
13117 ac_cv_type_pid_t=yes
13118else
698dcdb6
VZ
13119 rm -rf conftest*
13120 ac_cv_type_pid_t=no
703e0a69 13121fi
698dcdb6 13122rm -f conftest*
1e487827 13123
698dcdb6
VZ
13124fi
13125echo "$ac_t""$ac_cv_type_pid_t" 1>&6
13126if test $ac_cv_type_pid_t = no; then
13127 cat >> confdefs.h <<\EOF
10f2d63a
VZ
13128#define pid_t int
13129EOF
13130
13131fi
13132
698dcdb6 13133echo $ac_n "checking for size_t""... $ac_c" 1>&6
f9bc1684 13134echo "configure:13135: checking for size_t" >&5
698dcdb6
VZ
13135if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
13136 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 13137else
698dcdb6 13138 cat > conftest.$ac_ext <<EOF
f9bc1684 13139#line 13140 "configure"
10f2d63a 13140#include "confdefs.h"
698dcdb6
VZ
13141#include <sys/types.h>
13142#if STDC_HEADERS
13143#include <stdlib.h>
13144#include <stddef.h>
13145#endif
13146EOF
13147if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13148 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
13149 rm -rf conftest*
10f2d63a
VZ
13150 ac_cv_type_size_t=yes
13151else
698dcdb6
VZ
13152 rm -rf conftest*
13153 ac_cv_type_size_t=no
703e0a69 13154fi
698dcdb6 13155rm -f conftest*
1e487827 13156
698dcdb6
VZ
13157fi
13158echo "$ac_t""$ac_cv_type_size_t" 1>&6
13159if test $ac_cv_type_size_t = no; then
13160 cat >> confdefs.h <<\EOF
10f2d63a
VZ
13161#define size_t unsigned
13162EOF
13163
13164fi
13165
698dcdb6 13166echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
f9bc1684 13167echo "configure:13168: checking for uid_t in sys/types.h" >&5
698dcdb6
VZ
13168if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
13169 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 13170else
698dcdb6 13171 cat > conftest.$ac_ext <<EOF
f9bc1684 13172#line 13173 "configure"
10f2d63a
VZ
13173#include "confdefs.h"
13174#include <sys/types.h>
698dcdb6 13175EOF
10f2d63a
VZ
13176if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13177 egrep "uid_t" >/dev/null 2>&1; then
698dcdb6 13178 rm -rf conftest*
10f2d63a
VZ
13179 ac_cv_type_uid_t=yes
13180else
698dcdb6 13181 rm -rf conftest*
10f2d63a
VZ
13182 ac_cv_type_uid_t=no
13183fi
13184rm -f conftest*
13185
13186fi
1e487827 13187
698dcdb6
VZ
13188echo "$ac_t""$ac_cv_type_uid_t" 1>&6
13189if test $ac_cv_type_uid_t = no; then
13190 cat >> confdefs.h <<\EOF
10f2d63a
VZ
13191#define uid_t int
13192EOF
13193
698dcdb6 13194 cat >> confdefs.h <<\EOF
10f2d63a
VZ
13195#define gid_t int
13196EOF
13197
13198fi
13199
1e487827 13200
698dcdb6 13201echo $ac_n "checking for wchar_t""... $ac_c" 1>&6
f9bc1684 13202echo "configure:13203: checking for wchar_t" >&5
698dcdb6
VZ
13203if eval "test \"`echo '$''{'wx_cv_type_wchar_t'+set}'`\" = set"; then
13204 echo $ac_n "(cached) $ac_c" 1>&6
13205else
13206
13207 cat > conftest.$ac_ext <<EOF
f9bc1684 13208#line 13209 "configure"
0046ff7c 13209#include "confdefs.h"
4b42290e
GD
13210
13211 #ifdef HAVE_WCHAR_H
0fbb762e
MB
13212 # ifdef __CYGWIN__
13213 # include <stddef.h>
13214 # endif
4b42290e
GD
13215 # include <wchar.h>
13216 #endif
13217 #ifdef HAVE_STDLIB_H
13218 # include <stdlib.h>
13219 #endif
13220
698dcdb6 13221int main() {
0046ff7c 13222
d836ee96
VZ
13223 wchar_t wc, *ws;
13224 wc = L'a';
13225 ws = L"Hello, world!";
698dcdb6
VZ
13226
13227; return 0; }
13228EOF
f9bc1684 13229if { (eval echo configure:13230: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 13230 rm -rf conftest*
1f8ae82f 13231 wx_cv_type_wchar_t=yes
0046ff7c 13232else
698dcdb6
VZ
13233 echo "configure: failed program was:" >&5
13234 cat conftest.$ac_ext >&5
13235 rm -rf conftest*
13236 wx_cv_type_wchar_t=no
d836ee96 13237
6232543b 13238fi
698dcdb6 13239rm -f conftest*
703e0a69 13240
1e487827 13241fi
698dcdb6
VZ
13242
13243echo "$ac_t""$wx_cv_type_wchar_t" 1>&6
d836ee96
VZ
13244
13245if test "$wx_cv_type_wchar_t" = "yes"; then
698dcdb6 13246 cat >> confdefs.h <<\EOF
0046ff7c
VS
13247#define wxUSE_WCHAR_T 1
13248EOF
13249
13250fi
13251
19af3b06
VZ
13252
13253ac_ext=C
13254# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13255ac_cpp='$CXXCPP $CPPFLAGS'
13256ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13257ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13258cross_compiling=$ac_cv_prog_cxx_cross
13259
d836ee96 13260echo $ac_n "checking if size_t is unsigned int""... $ac_c" 1>&6
f9bc1684 13261echo "configure:13262: checking if size_t is unsigned int" >&5
d836ee96
VZ
13262if eval "test \"`echo '$''{'wx_cv_size_t_is_uint'+set}'`\" = set"; then
13263 echo $ac_n "(cached) $ac_c" 1>&6
13264else
dd2c8b7c 13265 cat > conftest.$ac_ext <<EOF
f9bc1684 13266#line 13267 "configure"
d836ee96
VZ
13267#include "confdefs.h"
13268#include <stddef.h>
13269int main() {
13270
dd2c8b7c
VZ
13271 return 0; }
13272
d836ee96 13273 struct Foo { void foo(size_t); void foo(unsigned int); };
dd2c8b7c
VZ
13274
13275 int bar() {
d836ee96
VZ
13276
13277; return 0; }
13278EOF
f9bc1684 13279if { (eval echo configure:13280: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d836ee96
VZ
13280 rm -rf conftest*
13281 wx_cv_size_t_is_uint=no
13282else
13283 echo "configure: failed program was:" >&5
13284 cat conftest.$ac_ext >&5
13285 rm -rf conftest*
13286 wx_cv_size_t_is_uint=yes
13287
13288fi
13289rm -f conftest*
13290
13291fi
13292
13293echo "$ac_t""$wx_cv_size_t_is_uint" 1>&6
13294
13295if test "$wx_cv_size_t_is_uint" = "yes"; then
13296 cat >> confdefs.h <<\EOF
13297#define wxSIZE_T_IS_UINT 1
13298EOF
13299
13300else
13301 echo $ac_n "checking if size_t is unsigned long""... $ac_c" 1>&6
f9bc1684 13302echo "configure:13303: checking if size_t is unsigned long" >&5
d836ee96
VZ
13303if eval "test \"`echo '$''{'wx_cv_size_t_is_ulong'+set}'`\" = set"; then
13304 echo $ac_n "(cached) $ac_c" 1>&6
13305else
13306 cat > conftest.$ac_ext <<EOF
f9bc1684 13307#line 13308 "configure"
d836ee96
VZ
13308#include "confdefs.h"
13309#include <stddef.h>
13310int main() {
13311
dd2c8b7c
VZ
13312 return 0; }
13313
d836ee96 13314 struct Foo { void foo(size_t); void foo(unsigned long); };
dd2c8b7c
VZ
13315
13316 int bar() {
d836ee96
VZ
13317
13318; return 0; }
13319EOF
f9bc1684 13320if { (eval echo configure:13321: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d836ee96
VZ
13321 rm -rf conftest*
13322 wx_cv_size_t_is_ulong=no
13323else
13324 echo "configure: failed program was:" >&5
13325 cat conftest.$ac_ext >&5
13326 rm -rf conftest*
13327 wx_cv_size_t_is_ulong=yes
13328
13329fi
13330rm -f conftest*
13331
13332fi
13333
13334echo "$ac_t""$wx_cv_size_t_is_ulong" 1>&6
13335
13336 if test "$wx_cv_size_t_is_ulong" = "yes"; then
13337 cat >> confdefs.h <<\EOF
13338#define wxSIZE_T_IS_ULONG 1
13339EOF
13340
13341 fi
13342fi
13343
19af3b06
VZ
13344ac_ext=c
13345# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13346ac_cpp='$CPP $CPPFLAGS'
13347ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13348ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13349cross_compiling=$ac_cv_prog_cc_cross
13350
13351
1e487827 13352
698dcdb6 13353echo $ac_n "checking for pw_gecos in struct passwd""... $ac_c" 1>&6
f9bc1684 13354echo "configure:13355: checking for pw_gecos in struct passwd" >&5
698dcdb6
VZ
13355if eval "test \"`echo '$''{'wx_cv_struct_pw_gecos'+set}'`\" = set"; then
13356 echo $ac_n "(cached) $ac_c" 1>&6
13357else
13358
13359 cat > conftest.$ac_ext <<EOF
f9bc1684 13360#line 13361 "configure"
b12915c1
VZ
13361#include "confdefs.h"
13362#include <pwd.h>
698dcdb6 13363int main() {
b12915c1
VZ
13364
13365 char *p;
13366 struct passwd *pw;
13367 p = pw->pw_gecos;
698dcdb6
VZ
13368
13369; return 0; }
13370EOF
f9bc1684 13371if { (eval echo configure:13372: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
13372 rm -rf conftest*
13373
b12915c1 13374 wx_cv_struct_pw_gecos=yes
698dcdb6 13375
b12915c1 13376else
698dcdb6
VZ
13377 echo "configure: failed program was:" >&5
13378 cat conftest.$ac_ext >&5
13379 rm -rf conftest*
13380
b12915c1 13381 wx_cv_struct_pw_gecos=no
698dcdb6
VZ
13382
13383
6232543b 13384fi
698dcdb6
VZ
13385rm -f conftest*
13386
703e0a69 13387
1e487827 13388fi
698dcdb6
VZ
13389
13390echo "$ac_t""$wx_cv_struct_pw_gecos" 1>&6
b12915c1 13391
bd3277fe 13392if test "$wx_cv_struct_pw_gecos" = "yes"; then
698dcdb6 13393 cat >> confdefs.h <<\EOF
bd3277fe
VZ
13394#define HAVE_PW_GECOS 1
13395EOF
13396
13397fi
13398
698dcdb6
VZ
13399
13400echo $ac_n "checking for working const""... $ac_c" 1>&6
f9bc1684 13401echo "configure:13402: checking for working const" >&5
698dcdb6
VZ
13402if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
13403 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 13404else
698dcdb6 13405 cat > conftest.$ac_ext <<EOF
f9bc1684 13406#line 13407 "configure"
10f2d63a 13407#include "confdefs.h"
698dcdb6
VZ
13408
13409int main() {
13410
13411/* Ultrix mips cc rejects this. */
9f8148b1 13412typedef int charset[2]; const charset x;
698dcdb6
VZ
13413/* SunOS 4.1.1 cc rejects this. */
13414char const *const *ccp;
13415char **p;
13416/* NEC SVR4.0.2 mips cc rejects this. */
13417struct point {int x, y;};
13418static struct point const zero = {0,0};
13419/* AIX XL C 1.02.0.0 rejects this.
13420 It does not let you subtract one const X* pointer from another in an arm
13421 of an if-expression whose if-part is not a constant expression */
13422const char *g = "string";
13423ccp = &g + (g ? g-g : 0);
13424/* HPUX 7.0 cc rejects these. */
13425++ccp;
13426p = (char**) ccp;
13427ccp = (char const *const *) p;
13428{ /* SCO 3.2v4 cc rejects this. */
13429 char *t;
13430 char const *s = 0 ? (char *) 0 : (char const *) 0;
13431
13432 *t++ = 0;
10f2d63a 13433}
698dcdb6
VZ
13434{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
13435 int x[] = {25, 17};
13436 const int *foo = &x[0];
13437 ++foo;
703e0a69 13438}
698dcdb6
VZ
13439{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13440 typedef const int *iptr;
13441 iptr p = 0;
13442 ++p;
6232543b 13443}
698dcdb6
VZ
13444{ /* AIX XL C 1.02.0.0 rejects this saying
13445 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13446 struct s { int j; const int *ap[3]; };
13447 struct s *b; b->j = 5;
1e487827 13448}
698dcdb6
VZ
13449{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13450 const int foo = 10;
13451}
4f14bcd8
GD
13452
13453; return 0; }
698dcdb6 13454EOF
f9bc1684 13455if { (eval echo configure:13456: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4f14bcd8
GD
13456 rm -rf conftest*
13457 ac_cv_c_const=yes
698dcdb6
VZ
13458else
13459 echo "configure: failed program was:" >&5
13460 cat conftest.$ac_ext >&5
4f14bcd8
GD
13461 rm -rf conftest*
13462 ac_cv_c_const=no
703e0a69 13463fi
4f14bcd8 13464rm -f conftest*
698dcdb6
VZ
13465fi
13466
4f14bcd8
GD
13467echo "$ac_t""$ac_cv_c_const" 1>&6
13468if test $ac_cv_c_const = no; then
13469 cat >> confdefs.h <<\EOF
13470#define const
698dcdb6
VZ
13471EOF
13472
4f14bcd8 13473fi
698dcdb6 13474
4f14bcd8 13475echo $ac_n "checking for inline""... $ac_c" 1>&6
f9bc1684 13476echo "configure:13477: checking for inline" >&5
4f14bcd8 13477if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
698dcdb6 13478 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 13479else
4f14bcd8
GD
13480 ac_cv_c_inline=no
13481for ac_kw in inline __inline__ __inline; do
698dcdb6 13482 cat > conftest.$ac_ext <<EOF
f9bc1684 13483#line 13484 "configure"
10f2d63a 13484#include "confdefs.h"
4f14bcd8
GD
13485
13486int main() {
9f8148b1 13487} $ac_kw foo() {
4f14bcd8 13488; return 0; }
698dcdb6 13489EOF
f9bc1684 13490if { (eval echo configure:13491: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4f14bcd8
GD
13491 rm -rf conftest*
13492 ac_cv_c_inline=$ac_kw; break
10f2d63a 13493else
698dcdb6
VZ
13494 echo "configure: failed program was:" >&5
13495 cat conftest.$ac_ext >&5
10f2d63a 13496fi
4f14bcd8
GD
13497rm -f conftest*
13498done
698dcdb6 13499
10f2d63a 13500fi
4f14bcd8
GD
13501
13502echo "$ac_t""$ac_cv_c_inline" 1>&6
13503case "$ac_cv_c_inline" in
13504 inline | yes) ;;
13505 no) cat >> confdefs.h <<\EOF
13506#define inline
13507EOF
13508 ;;
13509 *) cat >> confdefs.h <<EOF
13510#define inline $ac_cv_c_inline
698dcdb6 13511EOF
4f14bcd8
GD
13512 ;;
13513esac
698dcdb6
VZ
13514
13515
4f14bcd8 13516echo $ac_n "checking size of char""... $ac_c" 1>&6
f9bc1684 13517echo "configure:13518: checking size of char" >&5
4f14bcd8 13518if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
698dcdb6
VZ
13519 echo $ac_n "(cached) $ac_c" 1>&6
13520else
13521 if test "$cross_compiling" = yes; then
4f14bcd8 13522 ac_cv_sizeof_char=1
698dcdb6
VZ
13523else
13524 cat > conftest.$ac_ext <<EOF
f9bc1684 13525#line 13526 "configure"
698dcdb6
VZ
13526#include "confdefs.h"
13527#include <stdio.h>
0b9ab0bd 13528#include <sys/types.h>
698dcdb6
VZ
13529main()
13530{
13531 FILE *f=fopen("conftestval", "w");
13532 if (!f) exit(1);
4f14bcd8 13533 fprintf(f, "%d\n", sizeof(char));
698dcdb6
VZ
13534 exit(0);
13535}
13536EOF
0b9ab0bd 13537if { (eval echo configure:13538: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6 13538then
4f14bcd8 13539 ac_cv_sizeof_char=`cat conftestval`
6232543b 13540else
698dcdb6
VZ
13541 echo "configure: failed program was:" >&5
13542 cat conftest.$ac_ext >&5
13543 rm -fr conftest*
4f14bcd8 13544 ac_cv_sizeof_char=0
6232543b 13545fi
698dcdb6
VZ
13546rm -fr conftest*
13547fi
13548
703e0a69 13549fi
4f14bcd8 13550echo "$ac_t""$ac_cv_sizeof_char" 1>&6
698dcdb6 13551cat >> confdefs.h <<EOF
4f14bcd8 13552#define SIZEOF_CHAR $ac_cv_sizeof_char
10f2d63a
VZ
13553EOF
13554
1e487827 13555
4f14bcd8 13556echo $ac_n "checking size of short""... $ac_c" 1>&6
0b9ab0bd 13557echo "configure:13558: checking size of short" >&5
4f14bcd8 13558if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
698dcdb6
VZ
13559 echo $ac_n "(cached) $ac_c" 1>&6
13560else
4f14bcd8
GD
13561 if test "$cross_compiling" = yes; then
13562 ac_cv_sizeof_short=2
b93d0d08 13563else
698dcdb6 13564 cat > conftest.$ac_ext <<EOF
0b9ab0bd 13565#line 13566 "configure"
b93d0d08 13566#include "confdefs.h"
4f14bcd8 13567#include <stdio.h>
0b9ab0bd 13568#include <sys/types.h>
4f14bcd8
GD
13569main()
13570{
13571 FILE *f=fopen("conftestval", "w");
13572 if (!f) exit(1);
13573 fprintf(f, "%d\n", sizeof(short));
13574 exit(0);
13575}
698dcdb6 13576EOF
0b9ab0bd 13577if { (eval echo configure:13578: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6 13578then
4f14bcd8 13579 ac_cv_sizeof_short=`cat conftestval`
b93d0d08 13580else
698dcdb6
VZ
13581 echo "configure: failed program was:" >&5
13582 cat conftest.$ac_ext >&5
13583 rm -fr conftest*
4f14bcd8 13584 ac_cv_sizeof_short=0
b93d0d08 13585fi
698dcdb6 13586rm -fr conftest*
b93d0d08
VS
13587fi
13588
b93d0d08 13589fi
4f14bcd8 13590echo "$ac_t""$ac_cv_sizeof_short" 1>&6
698dcdb6 13591cat >> confdefs.h <<EOF
4f14bcd8 13592#define SIZEOF_SHORT $ac_cv_sizeof_short
b93d0d08
VS
13593EOF
13594
698dcdb6 13595
4f14bcd8 13596echo $ac_n "checking size of int *""... $ac_c" 1>&6
0b9ab0bd 13597echo "configure:13598: checking size of int *" >&5
4f14bcd8 13598if eval "test \"`echo '$''{'ac_cv_sizeof_int_p'+set}'`\" = set"; then
698dcdb6 13599 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 13600else
4f14bcd8
GD
13601 if test "$cross_compiling" = yes; then
13602 ac_cv_sizeof_int_p=4
3a922bb4 13603else
3a922bb4 13604 cat > conftest.$ac_ext <<EOF
0b9ab0bd 13605#line 13606 "configure"
3a922bb4 13606#include "confdefs.h"
4f14bcd8 13607#include <stdio.h>
0b9ab0bd 13608#include <sys/types.h>
4f14bcd8
GD
13609main()
13610{
13611 FILE *f=fopen("conftestval", "w");
13612 if (!f) exit(1);
13613 fprintf(f, "%d\n", sizeof(int *));
13614 exit(0);
13615}
13616EOF
0b9ab0bd 13617if { (eval echo configure:13618: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4f14bcd8
GD
13618then
13619 ac_cv_sizeof_int_p=`cat conftestval`
13620else
13621 echo "configure: failed program was:" >&5
13622 cat conftest.$ac_ext >&5
13623 rm -fr conftest*
13624 ac_cv_sizeof_int_p=0
3a922bb4 13625fi
4f14bcd8 13626rm -fr conftest*
3a922bb4 13627fi
698dcdb6 13628
4f14bcd8
GD
13629fi
13630echo "$ac_t""$ac_cv_sizeof_int_p" 1>&6
13631cat >> confdefs.h <<EOF
13632#define SIZEOF_INT_P $ac_cv_sizeof_int_p
10f2d63a
VZ
13633EOF
13634
703e0a69 13635
4f14bcd8 13636echo $ac_n "checking size of int""... $ac_c" 1>&6
0b9ab0bd 13637echo "configure:13638: checking size of int" >&5
4f14bcd8 13638if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
698dcdb6 13639 echo $ac_n "(cached) $ac_c" 1>&6
4f14bcd8
GD
13640else
13641 if test "$cross_compiling" = yes; then
13642 ac_cv_sizeof_int=4
698dcdb6
VZ
13643else
13644 cat > conftest.$ac_ext <<EOF
0b9ab0bd 13645#line 13646 "configure"
10f2d63a 13646#include "confdefs.h"
4f14bcd8 13647#include <stdio.h>
0b9ab0bd 13648#include <sys/types.h>
4f14bcd8
GD
13649main()
13650{
13651 FILE *f=fopen("conftestval", "w");
13652 if (!f) exit(1);
13653 fprintf(f, "%d\n", sizeof(int));
13654 exit(0);
13655}
698dcdb6 13656EOF
0b9ab0bd 13657if { (eval echo configure:13658: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4f14bcd8
GD
13658then
13659 ac_cv_sizeof_int=`cat conftestval`
10f2d63a 13660else
698dcdb6 13661 echo "configure: failed program was:" >&5
10f2d63a 13662 cat conftest.$ac_ext >&5
4f14bcd8
GD
13663 rm -fr conftest*
13664 ac_cv_sizeof_int=0
10f2d63a 13665fi
4f14bcd8 13666rm -fr conftest*
10f2d63a 13667fi
10f2d63a 13668
4f14bcd8
GD
13669fi
13670echo "$ac_t""$ac_cv_sizeof_int" 1>&6
13671cat >> confdefs.h <<EOF
13672#define SIZEOF_INT $ac_cv_sizeof_int
10f2d63a
VZ
13673EOF
13674
698dcdb6 13675
4f14bcd8 13676echo $ac_n "checking size of long""... $ac_c" 1>&6
0b9ab0bd 13677echo "configure:13678: checking size of long" >&5
4f14bcd8 13678if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
698dcdb6
VZ
13679 echo $ac_n "(cached) $ac_c" 1>&6
13680else
4f14bcd8
GD
13681 if test "$cross_compiling" = yes; then
13682 ac_cv_sizeof_long=4
13683else
13684 cat > conftest.$ac_ext <<EOF
0b9ab0bd 13685#line 13686 "configure"
10f2d63a 13686#include "confdefs.h"
4f14bcd8 13687#include <stdio.h>
0b9ab0bd 13688#include <sys/types.h>
4f14bcd8
GD
13689main()
13690{
13691 FILE *f=fopen("conftestval", "w");
13692 if (!f) exit(1);
13693 fprintf(f, "%d\n", sizeof(long));
13694 exit(0);
13695}
698dcdb6 13696EOF
0b9ab0bd 13697if { (eval echo configure:13698: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4f14bcd8
GD
13698then
13699 ac_cv_sizeof_long=`cat conftestval`
10f2d63a 13700else
698dcdb6
VZ
13701 echo "configure: failed program was:" >&5
13702 cat conftest.$ac_ext >&5
4f14bcd8
GD
13703 rm -fr conftest*
13704 ac_cv_sizeof_long=0
10f2d63a 13705fi
4f14bcd8 13706rm -fr conftest*
10f2d63a 13707fi
698dcdb6 13708
4f14bcd8
GD
13709fi
13710echo "$ac_t""$ac_cv_sizeof_long" 1>&6
13711cat >> confdefs.h <<EOF
13712#define SIZEOF_LONG $ac_cv_sizeof_long
10f2d63a
VZ
13713EOF
13714
698dcdb6 13715
4f14bcd8 13716echo $ac_n "checking size of long long""... $ac_c" 1>&6
0b9ab0bd 13717echo "configure:13718: checking size of long long" >&5
4f14bcd8 13718if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
698dcdb6 13719 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 13720else
4f14bcd8
GD
13721 if test "$cross_compiling" = yes; then
13722 ac_cv_sizeof_long_long=0
13723else
13724 cat > conftest.$ac_ext <<EOF
0b9ab0bd 13725#line 13726 "configure"
10f2d63a 13726#include "confdefs.h"
4f14bcd8 13727#include <stdio.h>
0b9ab0bd 13728#include <sys/types.h>
4f14bcd8
GD
13729main()
13730{
13731 FILE *f=fopen("conftestval", "w");
13732 if (!f) exit(1);
13733 fprintf(f, "%d\n", sizeof(long long));
13734 exit(0);
13735}
698dcdb6 13736EOF
0b9ab0bd 13737if { (eval echo configure:13738: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4f14bcd8
GD
13738then
13739 ac_cv_sizeof_long_long=`cat conftestval`
698dcdb6
VZ
13740else
13741 echo "configure: failed program was:" >&5
13742 cat conftest.$ac_ext >&5
4f14bcd8
GD
13743 rm -fr conftest*
13744 ac_cv_sizeof_long_long=0
13745fi
13746rm -fr conftest*
698dcdb6 13747fi
698dcdb6
VZ
13748
13749fi
4f14bcd8
GD
13750echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
13751cat >> confdefs.h <<EOF
13752#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10f2d63a
VZ
13753EOF
13754
10f2d63a 13755
4f14bcd8
GD
13756
13757echo $ac_n "checking size of wchar_t""... $ac_c" 1>&6
0b9ab0bd 13758echo "configure:13759: checking size of wchar_t" >&5
4f14bcd8 13759if eval "test \"`echo '$''{'wx_cv_sizeof_wchar_t'+set}'`\" = set"; then
698dcdb6 13760 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 13761else
4f14bcd8
GD
13762
13763 if test "$cross_compiling" = yes; then
13764 wx_cv_sizeof_wchar_t=4
13765
13766else
13767 cat > conftest.$ac_ext <<EOF
0b9ab0bd 13768#line 13769 "configure"
10f2d63a 13769#include "confdefs.h"
698dcdb6 13770
4f14bcd8 13771 #ifdef HAVE_WCHAR_H
0fbb762e
MB
13772 # ifdef __CYGWIN__
13773 # include <stddef.h>
13774 # endif
4f14bcd8
GD
13775 # include <wchar.h>
13776 #endif
13777 #ifdef HAVE_STDLIB_H
13778 # include <stdlib.h>
13779 #endif
13780 #include <stdio.h>
13781 int main()
13782 {
13783 FILE *f=fopen("conftestval", "w");
13784 if (!f) exit(1);
13785 fprintf(f, "%i", sizeof(wchar_t));
13786 exit(0);
13787 }
13788
698dcdb6 13789EOF
0b9ab0bd 13790if { (eval echo configure:13791: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4f14bcd8
GD
13791then
13792 wx_cv_sizeof_wchar_t=`cat conftestval`
698dcdb6
VZ
13793else
13794 echo "configure: failed program was:" >&5
13795 cat conftest.$ac_ext >&5
4f14bcd8
GD
13796 rm -fr conftest*
13797 wx_cv_sizeof_wchar_t=0
698dcdb6 13798fi
4f14bcd8
GD
13799rm -fr conftest*
13800fi
13801
698dcdb6
VZ
13802
13803fi
4f14bcd8
GD
13804
13805echo "$ac_t""$wx_cv_sizeof_wchar_t" 1>&6
13806
13807cat >> confdefs.h <<EOF
13808#define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t
10f2d63a
VZ
13809EOF
13810
18dbb1f6 13811
4f14bcd8 13812echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
0b9ab0bd 13813echo "configure:13814: checking whether byte ordering is bigendian" >&5
4f14bcd8 13814if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
18dbb1f6
VZ
13815 echo $ac_n "(cached) $ac_c" 1>&6
13816else
4f14bcd8
GD
13817 ac_cv_c_bigendian=unknown
13818# See if sys/param.h defines the BYTE_ORDER macro.
18dbb1f6 13819cat > conftest.$ac_ext <<EOF
0b9ab0bd 13820#line 13821 "configure"
18dbb1f6 13821#include "confdefs.h"
4f14bcd8
GD
13822#include <sys/types.h>
13823#include <sys/param.h>
13824int main() {
18dbb1f6 13825
4f14bcd8
GD
13826#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
13827 bogus endian macros
13828#endif
13829; return 0; }
13830EOF
0b9ab0bd 13831if { (eval echo configure:13832: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4f14bcd8
GD
13832 rm -rf conftest*
13833 # It does; now see whether it defined to BIG_ENDIAN or not.
13834cat > conftest.$ac_ext <<EOF
0b9ab0bd 13835#line 13836 "configure"
4f14bcd8
GD
13836#include "confdefs.h"
13837#include <sys/types.h>
13838#include <sys/param.h>
18dbb1f6 13839int main() {
4f14bcd8
GD
13840
13841#if BYTE_ORDER != BIG_ENDIAN
13842 not big endian
13843#endif
18dbb1f6
VZ
13844; return 0; }
13845EOF
0b9ab0bd 13846if { (eval echo configure:13847: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18dbb1f6 13847 rm -rf conftest*
4f14bcd8 13848 ac_cv_c_bigendian=yes
18dbb1f6
VZ
13849else
13850 echo "configure: failed program was:" >&5
13851 cat conftest.$ac_ext >&5
13852 rm -rf conftest*
4f14bcd8 13853 ac_cv_c_bigendian=no
18dbb1f6
VZ
13854fi
13855rm -f conftest*
698dcdb6 13856else
4f14bcd8
GD
13857 echo "configure: failed program was:" >&5
13858 cat conftest.$ac_ext >&5
1e487827 13859fi
4f14bcd8
GD
13860rm -f conftest*
13861if test $ac_cv_c_bigendian = unknown; then
13862if test "$cross_compiling" = yes; then
13863 ac_cv_c_bigendian=unknown
b3e8d00a
VZ
13864else
13865 cat > conftest.$ac_ext <<EOF
0b9ab0bd 13866#line 13867 "configure"
b3e8d00a 13867#include "confdefs.h"
4f14bcd8
GD
13868main () {
13869 /* Are we little or big endian? From Harbison&Steele. */
13870 union
13871 {
13872 long l;
13873 char c[sizeof (long)];
13874 } u;
13875 u.l = 1;
13876 exit (u.c[sizeof (long) - 1] == 1);
13877}
b3e8d00a 13878EOF
0b9ab0bd 13879if { (eval echo configure:13880: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4f14bcd8
GD
13880then
13881 ac_cv_c_bigendian=no
b3e8d00a
VZ
13882else
13883 echo "configure: failed program was:" >&5
13884 cat conftest.$ac_ext >&5
4f14bcd8
GD
13885 rm -fr conftest*
13886 ac_cv_c_bigendian=yes
b3e8d00a 13887fi
4f14bcd8 13888rm -fr conftest*
b3e8d00a
VZ
13889fi
13890
4f14bcd8
GD
13891fi
13892fi
13893
13894echo "$ac_t""$ac_cv_c_bigendian" 1>&6
13895if test $ac_cv_c_bigendian = unknown; then
13896 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
13897fi
13898if test $ac_cv_c_bigendian = yes; then
13899 cat >> confdefs.h <<\EOF
13900#define WORDS_BIGENDIAN 1
b3e8d00a 13901EOF
4f14bcd8 13902
b3e8d00a 13903fi
b3e8d00a
VZ
13904
13905
4f14bcd8 13906echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
0b9ab0bd 13907echo "configure:13908: checking how to run the C++ preprocessor" >&5
4f14bcd8
GD
13908if test -z "$CXXCPP"; then
13909if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
698dcdb6
VZ
13910 echo $ac_n "(cached) $ac_c" 1>&6
13911else
4f14bcd8
GD
13912 ac_ext=C
13913# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13914ac_cpp='$CXXCPP $CPPFLAGS'
13915ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13916ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13917cross_compiling=$ac_cv_prog_cxx_cross
13918 CXXCPP="${CXX-g++} -E"
698dcdb6 13919 cat > conftest.$ac_ext <<EOF
0b9ab0bd 13920#line 13921 "configure"
10f2d63a 13921#include "confdefs.h"
4f14bcd8 13922#include <stdlib.h>
698dcdb6 13923EOF
4f14bcd8 13924ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
0b9ab0bd 13925{ (eval echo configure:13926: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4f14bcd8
GD
13926ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13927if test -z "$ac_err"; then
13928 :
698dcdb6 13929else
4f14bcd8 13930 echo "$ac_err" >&5
698dcdb6
VZ
13931 echo "configure: failed program was:" >&5
13932 cat conftest.$ac_ext >&5
13933 rm -rf conftest*
4f14bcd8 13934 CXXCPP=/lib/cpp
698dcdb6
VZ
13935fi
13936rm -f conftest*
4f14bcd8
GD
13937 ac_cv_prog_CXXCPP="$CXXCPP"
13938ac_ext=C
13939# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13940ac_cpp='$CXXCPP $CPPFLAGS'
13941ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13942ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13943cross_compiling=$ac_cv_prog_cxx_cross
13944fi
698dcdb6 13945fi
4f14bcd8
GD
13946CXXCPP="$ac_cv_prog_CXXCPP"
13947echo "$ac_t""$CXXCPP" 1>&6
698dcdb6 13948
4f14bcd8
GD
13949
13950 if test "$cross_compiling" = "yes"; then
13951 cat >> confdefs.h <<\EOF
13952#define wxUSE_IOSTREAMH 1
698dcdb6
VZ
13953EOF
13954
4f14bcd8
GD
13955 else
13956
13957 ac_ext=C
13958# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13959ac_cpp='$CXXCPP $CPPFLAGS'
13960ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13961ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13962cross_compiling=$ac_cv_prog_cxx_cross
698dcdb6 13963
4f14bcd8
GD
13964
13965 for ac_hdr in iostream
13966do
13967ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13968echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
0b9ab0bd 13969echo "configure:13970: checking for $ac_hdr" >&5
4f14bcd8 13970if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
698dcdb6
VZ
13971 echo $ac_n "(cached) $ac_c" 1>&6
13972else
13973 cat > conftest.$ac_ext <<EOF
0b9ab0bd 13974#line 13975 "configure"
10f2d63a 13975#include "confdefs.h"
4f14bcd8 13976#include <$ac_hdr>
698dcdb6 13977EOF
4f14bcd8 13978ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
0b9ab0bd 13979{ (eval echo configure:13980: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4f14bcd8
GD
13980ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13981if test -z "$ac_err"; then
698dcdb6 13982 rm -rf conftest*
4f14bcd8 13983 eval "ac_cv_header_$ac_safe=yes"
698dcdb6 13984else
4f14bcd8 13985 echo "$ac_err" >&5
698dcdb6
VZ
13986 echo "configure: failed program was:" >&5
13987 cat conftest.$ac_ext >&5
13988 rm -rf conftest*
4f14bcd8 13989 eval "ac_cv_header_$ac_safe=no"
698dcdb6
VZ
13990fi
13991rm -f conftest*
13992fi
4f14bcd8 13993if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
698dcdb6 13994 echo "$ac_t""yes" 1>&6
4f14bcd8
GD
13995 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13996 cat >> confdefs.h <<EOF
13997#define $ac_tr_hdr 1
10f2d63a 13998EOF
4f14bcd8 13999
698dcdb6
VZ
14000else
14001 echo "$ac_t""no" 1>&6
10f2d63a 14002fi
4f14bcd8 14003done
10f2d63a 14004
10f2d63a 14005
4f14bcd8
GD
14006 if test "$ac_cv_header_iostream" = "yes" ; then
14007 :
14008 else
14009 cat >> confdefs.h <<\EOF
14010#define wxUSE_IOSTREAMH 1
14011EOF
14012
14013 fi
1e487827 14014
4f14bcd8
GD
14015 ac_ext=c
14016# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14017ac_cpp='$CPP $CPPFLAGS'
14018ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14019ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14020cross_compiling=$ac_cv_prog_cc_cross
698dcdb6 14021
4f14bcd8 14022 fi
698dcdb6
VZ
14023
14024
14025
4f14bcd8 14026 echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6
0b9ab0bd 14027echo "configure:14028: checking if C++ compiler supports bool" >&5
4f14bcd8 14028if eval "test \"`echo '$''{'wx_cv_cpp_bool'+set}'`\" = set"; then
698dcdb6
VZ
14029 echo $ac_n "(cached) $ac_c" 1>&6
14030else
14031
4f14bcd8
GD
14032
14033 ac_ext=C
14034# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14035ac_cpp='$CXXCPP $CPPFLAGS'
14036ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14037ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14038cross_compiling=$ac_cv_prog_cxx_cross
f6bcfd97 14039
10f2d63a 14040
4f14bcd8 14041 cat > conftest.$ac_ext <<EOF
0b9ab0bd 14042#line 14043 "configure"
4f14bcd8 14043#include "confdefs.h"
10f2d63a 14044
4f14bcd8
GD
14045
14046int main() {
f6bcfd97 14047
4f14bcd8 14048 bool b = true;
f6bcfd97 14049
4f14bcd8
GD
14050 return 0;
14051
698dcdb6
VZ
14052; return 0; }
14053EOF
0b9ab0bd 14054if { (eval echo configure:14055: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
14055 rm -rf conftest*
14056
4f14bcd8
GD
14057 wx_cv_cpp_bool=yes
14058
10f2d63a 14059else
698dcdb6
VZ
14060 echo "configure: failed program was:" >&5
14061 cat conftest.$ac_ext >&5
14062 rm -rf conftest*
14063
4f14bcd8
GD
14064 wx_cv_cpp_bool=no
14065
14066
14067fi
14068rm -f conftest*
c521c494 14069
4f14bcd8
GD
14070 ac_ext=c
14071# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14072ac_cpp='$CPP $CPPFLAGS'
14073ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14074ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14075cross_compiling=$ac_cv_prog_cc_cross
c521c494 14076
4f14bcd8
GD
14077
14078fi
c521c494 14079
4f14bcd8 14080echo "$ac_t""$wx_cv_cpp_bool" 1>&6
c521c494 14081
4f14bcd8
GD
14082 if test "$wx_cv_cpp_bool" = "yes"; then
14083 cat >> confdefs.h <<\EOF
14084#define HAVE_BOOL 1
14085EOF
c521c494 14086
4f14bcd8
GD
14087 fi
14088
14089
14090
14091echo $ac_n "checking for wcslen in -lc""... $ac_c" 1>&6
0b9ab0bd 14092echo "configure:14093: checking for wcslen in -lc" >&5
4f14bcd8
GD
14093ac_lib_var=`echo c'_'wcslen | sed 'y%./+-%__p_%'`
14094if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14095 echo $ac_n "(cached) $ac_c" 1>&6
14096else
14097 ac_save_LIBS="$LIBS"
14098LIBS="-lc $LIBS"
14099cat > conftest.$ac_ext <<EOF
0b9ab0bd 14100#line 14101 "configure"
4f14bcd8
GD
14101#include "confdefs.h"
14102/* Override any gcc2 internal prototype to avoid an error. */
14103/* We use char because int might match the return type of a gcc2
14104 builtin and then its argument prototype would still apply. */
14105char wcslen();
14106
14107int main() {
14108wcslen()
698dcdb6
VZ
14109; return 0; }
14110EOF
0b9ab0bd 14111if { (eval echo configure:14112: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 14112 rm -rf conftest*
4f14bcd8 14113 eval "ac_cv_lib_$ac_lib_var=yes"
c521c494 14114else
698dcdb6
VZ
14115 echo "configure: failed program was:" >&5
14116 cat conftest.$ac_ext >&5
14117 rm -rf conftest*
4f14bcd8 14118 eval "ac_cv_lib_$ac_lib_var=no"
6232543b 14119fi
698dcdb6 14120rm -f conftest*
4f14bcd8 14121LIBS="$ac_save_LIBS"
703e0a69 14122
1e487827 14123fi
4f14bcd8
GD
14124if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14125 echo "$ac_t""yes" 1>&6
14126
14127 cat >> confdefs.h <<\EOF
14128#define HAVE_WCSLEN 1
9d8deca0
VZ
14129EOF
14130
3d63bc3a 14131 WCHAR_LINK=
4f14bcd8 14132
9d8deca0 14133else
4f14bcd8 14134 echo "$ac_t""no" 1>&6
9d8deca0 14135
4f14bcd8 14136 echo $ac_n "checking for wcslen in -lw""... $ac_c" 1>&6
0b9ab0bd 14137echo "configure:14138: checking for wcslen in -lw" >&5
4f14bcd8
GD
14138ac_lib_var=`echo w'_'wcslen | sed 'y%./+-%__p_%'`
14139if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
698dcdb6 14140 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 14141else
4f14bcd8
GD
14142 ac_save_LIBS="$LIBS"
14143LIBS="-lw $LIBS"
14144cat > conftest.$ac_ext <<EOF
0b9ab0bd 14145#line 14146 "configure"
10f2d63a 14146#include "confdefs.h"
4f14bcd8
GD
14147/* Override any gcc2 internal prototype to avoid an error. */
14148/* We use char because int might match the return type of a gcc2
14149 builtin and then its argument prototype would still apply. */
14150char wcslen();
10f2d63a 14151
698dcdb6 14152int main() {
4f14bcd8 14153wcslen()
698dcdb6
VZ
14154; return 0; }
14155EOF
0b9ab0bd 14156if { (eval echo configure:14157: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 14157 rm -rf conftest*
4f14bcd8 14158 eval "ac_cv_lib_$ac_lib_var=yes"
10f2d63a 14159else
698dcdb6
VZ
14160 echo "configure: failed program was:" >&5
14161 cat conftest.$ac_ext >&5
14162 rm -rf conftest*
4f14bcd8 14163 eval "ac_cv_lib_$ac_lib_var=no"
6232543b 14164fi
698dcdb6 14165rm -f conftest*
4f14bcd8 14166LIBS="$ac_save_LIBS"
703e0a69 14167
1e487827 14168fi
4f14bcd8
GD
14169if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14170 echo "$ac_t""yes" 1>&6
14171
14172 cat >> confdefs.h <<\EOF
14173#define HAVE_WCSLEN 1
9d8deca0
VZ
14174EOF
14175
3d63bc3a 14176 WCHAR_LINK=" -lw"
4f14bcd8
GD
14177
14178else
14179 echo "$ac_t""no" 1>&6
698dcdb6 14180
4f14bcd8 14181 echo $ac_n "checking for wcslen in -lmsvcrt""... $ac_c" 1>&6
0b9ab0bd 14182echo "configure:14183: checking for wcslen in -lmsvcrt" >&5
4f14bcd8
GD
14183ac_lib_var=`echo msvcrt'_'wcslen | sed 'y%./+-%__p_%'`
14184if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
698dcdb6
VZ
14185 echo $ac_n "(cached) $ac_c" 1>&6
14186else
4f14bcd8
GD
14187 ac_save_LIBS="$LIBS"
14188LIBS="-lmsvcrt $LIBS"
14189cat > conftest.$ac_ext <<EOF
0b9ab0bd 14190#line 14191 "configure"
95c8801c 14191#include "confdefs.h"
4f14bcd8
GD
14192/* Override any gcc2 internal prototype to avoid an error. */
14193/* We use char because int might match the return type of a gcc2
14194 builtin and then its argument prototype would still apply. */
14195char wcslen();
95c8801c 14196
4f14bcd8
GD
14197int main() {
14198wcslen()
698dcdb6
VZ
14199; return 0; }
14200EOF
0b9ab0bd 14201if { (eval echo configure:14202: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 14202 rm -rf conftest*
4f14bcd8 14203 eval "ac_cv_lib_$ac_lib_var=yes"
95c8801c 14204else
698dcdb6
VZ
14205 echo "configure: failed program was:" >&5
14206 cat conftest.$ac_ext >&5
14207 rm -rf conftest*
4f14bcd8 14208 eval "ac_cv_lib_$ac_lib_var=no"
95c8801c 14209fi
698dcdb6 14210rm -f conftest*
4f14bcd8 14211LIBS="$ac_save_LIBS"
95c8801c
VS
14212
14213fi
4f14bcd8
GD
14214if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14215 echo "$ac_t""yes" 1>&6
14216
14217 cat >> confdefs.h <<\EOF
14218#define HAVE_WCSLEN 1
14219EOF
698dcdb6 14220
3d63bc3a 14221 WCHAR_LINK=
4f14bcd8
GD
14222
14223else
14224 echo "$ac_t""no" 1>&6
14225fi
10f2d63a 14226
4f14bcd8
GD
14227
14228fi
95c8801c 14229
4f14bcd8 14230
95c8801c 14231fi
10f2d63a 14232
1e487827 14233
4f14bcd8 14234for ac_func in wcsrtombs
eb4efbdc 14235do
698dcdb6 14236echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
0b9ab0bd 14237echo "configure:14238: checking for $ac_func" >&5
698dcdb6
VZ
14238if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14239 echo $ac_n "(cached) $ac_c" 1>&6
14240else
14241 cat > conftest.$ac_ext <<EOF
0b9ab0bd 14242#line 14243 "configure"
eb4efbdc
VZ
14243#include "confdefs.h"
14244/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 14245 which can conflict with char $ac_func(); below. */
eb4efbdc
VZ
14246#include <assert.h>
14247/* Override any gcc2 internal prototype to avoid an error. */
14248/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
14249 builtin and then its argument prototype would still apply. */
14250char $ac_func();
14251
14252int main() {
eb4efbdc
VZ
14253
14254/* The GNU C library defines this for functions which it implements
14255 to always fail with ENOSYS. Some functions are actually named
14256 something starting with __ and the normal name is an alias. */
14257#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14258choke me
14259#else
698dcdb6 14260$ac_func();
eb4efbdc
VZ
14261#endif
14262
698dcdb6 14263; return 0; }
eb4efbdc 14264EOF
0b9ab0bd 14265if { (eval echo configure:14266: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
14266 rm -rf conftest*
14267 eval "ac_cv_func_$ac_func=yes"
14268else
14269 echo "configure: failed program was:" >&5
14270 cat conftest.$ac_ext >&5
14271 rm -rf conftest*
14272 eval "ac_cv_func_$ac_func=no"
14273fi
14274rm -f conftest*
14275fi
eb4efbdc 14276
698dcdb6
VZ
14277if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14278 echo "$ac_t""yes" 1>&6
14279 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14280 cat >> confdefs.h <<EOF
14281#define $ac_tr_func 1
14282EOF
14283
14284else
14285 echo "$ac_t""no" 1>&6
eb4efbdc
VZ
14286fi
14287done
14288
698dcdb6 14289
4f14bcd8 14290echo $ac_n "checking for vprintf""... $ac_c" 1>&6
0b9ab0bd 14291echo "configure:14292: checking for vprintf" >&5
4f14bcd8 14292if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
698dcdb6
VZ
14293 echo $ac_n "(cached) $ac_c" 1>&6
14294else
4f14bcd8 14295 cat > conftest.$ac_ext <<EOF
0b9ab0bd 14296#line 14297 "configure"
f6bcfd97 14297#include "confdefs.h"
4f14bcd8
GD
14298/* System header to define __stub macros and hopefully few prototypes,
14299 which can conflict with char vprintf(); below. */
14300#include <assert.h>
14301/* Override any gcc2 internal prototype to avoid an error. */
14302/* We use char because int might match the return type of a gcc2
14303 builtin and then its argument prototype would still apply. */
14304char vprintf();
14305
698dcdb6 14306int main() {
f6bcfd97 14307
4f14bcd8
GD
14308/* The GNU C library defines this for functions which it implements
14309 to always fail with ENOSYS. Some functions are actually named
14310 something starting with __ and the normal name is an alias. */
14311#if defined (__stub_vprintf) || defined (__stub___vprintf)
14312choke me
14313#else
14314vprintf();
14315#endif
f6bcfd97 14316
698dcdb6
VZ
14317; return 0; }
14318EOF
0b9ab0bd 14319if { (eval echo configure:14320: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 14320 rm -rf conftest*
4f14bcd8 14321 eval "ac_cv_func_vprintf=yes"
f6bcfd97 14322else
698dcdb6
VZ
14323 echo "configure: failed program was:" >&5
14324 cat conftest.$ac_ext >&5
14325 rm -rf conftest*
4f14bcd8 14326 eval "ac_cv_func_vprintf=no"
6232543b 14327fi
698dcdb6 14328rm -f conftest*
1e487827 14329fi
698dcdb6 14330
4f14bcd8
GD
14331if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
14332 echo "$ac_t""yes" 1>&6
14333 cat >> confdefs.h <<\EOF
14334#define HAVE_VPRINTF 1
f6bcfd97
BP
14335EOF
14336
4f14bcd8
GD
14337else
14338 echo "$ac_t""no" 1>&6
eb4efbdc
VZ
14339fi
14340
4f14bcd8
GD
14341if test "$ac_cv_func_vprintf" != yes; then
14342echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
0b9ab0bd 14343echo "configure:14344: checking for _doprnt" >&5
4f14bcd8 14344if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
698dcdb6
VZ
14345 echo $ac_n "(cached) $ac_c" 1>&6
14346else
14347 cat > conftest.$ac_ext <<EOF
0b9ab0bd 14348#line 14349 "configure"
10f2d63a
VZ
14349#include "confdefs.h"
14350/* System header to define __stub macros and hopefully few prototypes,
4f14bcd8 14351 which can conflict with char _doprnt(); below. */
10f2d63a
VZ
14352#include <assert.h>
14353/* Override any gcc2 internal prototype to avoid an error. */
14354/* We use char because int might match the return type of a gcc2
698dcdb6 14355 builtin and then its argument prototype would still apply. */
4f14bcd8 14356char _doprnt();
698dcdb6
VZ
14357
14358int main() {
10f2d63a
VZ
14359
14360/* The GNU C library defines this for functions which it implements
14361 to always fail with ENOSYS. Some functions are actually named
14362 something starting with __ and the normal name is an alias. */
4f14bcd8 14363#if defined (__stub__doprnt) || defined (__stub____doprnt)
10f2d63a
VZ
14364choke me
14365#else
4f14bcd8 14366_doprnt();
10f2d63a
VZ
14367#endif
14368
698dcdb6 14369; return 0; }
10f2d63a 14370EOF
0b9ab0bd 14371if { (eval echo configure:14372: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 14372 rm -rf conftest*
4f14bcd8 14373 eval "ac_cv_func__doprnt=yes"
698dcdb6
VZ
14374else
14375 echo "configure: failed program was:" >&5
14376 cat conftest.$ac_ext >&5
14377 rm -rf conftest*
4f14bcd8 14378 eval "ac_cv_func__doprnt=no"
698dcdb6
VZ
14379fi
14380rm -f conftest*
14381fi
270a909e 14382
4f14bcd8 14383if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
698dcdb6 14384 echo "$ac_t""yes" 1>&6
4f14bcd8
GD
14385 cat >> confdefs.h <<\EOF
14386#define HAVE_DOPRNT 1
698dcdb6 14387EOF
4f14bcd8 14388
698dcdb6
VZ
14389else
14390 echo "$ac_t""no" 1>&6
270a909e 14391fi
270a909e 14392
4f14bcd8 14393fi
1e487827 14394
52e8b690 14395
52e8b690 14396
52e8b690 14397
52e8b690 14398
52e8b690 14399
4f14bcd8 14400echo $ac_n "checking for vsnprintf""... $ac_c" 1>&6
0b9ab0bd 14401echo "configure:14402: checking for vsnprintf" >&5
4f14bcd8 14402if eval "test \"`echo '$''{'wx_cv_func_vsnprintf'+set}'`\" = set"; then
698dcdb6 14403 echo $ac_n "(cached) $ac_c" 1>&6
c63c7106 14404else
4f14bcd8 14405
af15babd 14406 cat > conftest.$ac_ext <<EOF
0b9ab0bd 14407#line 14408 "configure"
c63c7106 14408#include "confdefs.h"
698dcdb6 14409
4f14bcd8
GD
14410 #include <stdio.h>
14411 #include <stdarg.h>
14412
af15babd
VZ
14413int main() {
14414
4f14bcd8
GD
14415 int wx_test_vsnprintf(const char *, ...);
14416
14417 wx_test_vsnprintf("%s");
14418 return 0;
14419 }
14420
14421 int wx_test_vsnprintf(const char *fmt, ...)
14422 {
14423 char *s;
14424
14425 va_list argp;
14426 va_start(argp, fmt);
14427 vsnprintf(s, 42, fmt, argp);
14428 va_end(argp);
14429
af15babd
VZ
14430; return 0; }
14431EOF
0b9ab0bd 14432if { (eval echo configure:14433: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
af15babd
VZ
14433 rm -rf conftest*
14434
4f14bcd8
GD
14435 wx_cv_func_vsnprintf=yes
14436
af15babd
VZ
14437else
14438 echo "configure: failed program was:" >&5
14439 cat conftest.$ac_ext >&5
14440 rm -rf conftest*
14441
4f14bcd8 14442 cat > conftest.$ac_ext <<EOF
0b9ab0bd 14443#line 14444 "configure"
af15babd 14444#include "confdefs.h"
af15babd 14445
4f14bcd8
GD
14446 #include <stdio.h>
14447 #include <stdarg.h>
14448
af15babd
VZ
14449int main() {
14450
4f14bcd8
GD
14451 int wx_test_vsnprintf(const char *, ...);
14452
14453 wx_test_vsnprintf("%s");
14454 return 0;
14455 }
14456
14457 int wx_test_vsnprintf(const char *fmt, ...)
14458 {
14459 char *s;
af15babd 14460
4f14bcd8
GD
14461 va_list argp;
14462 va_start(argp, fmt);
14463 _vsnprintf(s, 42, fmt, argp);
14464 va_end(argp);
14465
af15babd
VZ
14466; return 0; }
14467EOF
0b9ab0bd 14468if { (eval echo configure:14469: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
af15babd 14469 rm -rf conftest*
4f14bcd8
GD
14470
14471 wx_cv_func_vsnprintf=yes
14472
af15babd
VZ
14473else
14474 echo "configure: failed program was:" >&5
14475 cat conftest.$ac_ext >&5
14476 rm -rf conftest*
4f14bcd8
GD
14477
14478 wx_cv_func_vsnprintf=no
14479
af15babd
VZ
14480fi
14481rm -f conftest*
4f14bcd8 14482
af15babd 14483fi
4f14bcd8 14484rm -f conftest*
af15babd 14485
af15babd 14486fi
af15babd 14487
4f14bcd8 14488echo "$ac_t""$wx_cv_func_vsnprintf" 1>&6
af15babd 14489
4f14bcd8
GD
14490if test "$wx_cv_func_vsnprintf" = yes; then
14491 cat >> confdefs.h <<\EOF
14492#define HAVE_VSNPRINTF 1
14493EOF
14494
14495else
f9bc1684 14496 echo "configure: warning: unsafe function vsprintf will be used instead of vsnprintf" 1>&2
af15babd
VZ
14497fi
14498
4f14bcd8 14499echo $ac_n "checking for vsscanf""... $ac_c" 1>&6
0b9ab0bd 14500echo "configure:14501: checking for vsscanf" >&5
4f14bcd8 14501if eval "test \"`echo '$''{'wx_cv_func_vsscanf'+set}'`\" = set"; then
af15babd
VZ
14502 echo $ac_n "(cached) $ac_c" 1>&6
14503else
4f14bcd8 14504
af15babd 14505 cat > conftest.$ac_ext <<EOF
0b9ab0bd 14506#line 14507 "configure"
af15babd 14507#include "confdefs.h"
af15babd 14508
4f14bcd8
GD
14509 #include <stdio.h>
14510 #include <stdarg.h>
14511
af15babd
VZ
14512int main() {
14513
4f14bcd8
GD
14514 int wx_test_vsscanf(const char *, ...);
14515
14516 wx_test_vsscanf("%d");
14517 return 0;
14518 }
af15babd 14519
4f14bcd8
GD
14520 int wx_test_vsscanf(const char *fmt, ...)
14521 {
14522 va_list argp;
14523 va_start(argp, fmt);
14524 vsscanf("42", fmt, argp);
14525 va_end(argp);
14526
af15babd
VZ
14527; return 0; }
14528EOF
0b9ab0bd 14529if { (eval echo configure:14530: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
af15babd 14530 rm -rf conftest*
4f14bcd8
GD
14531
14532 wx_cv_func_vsscanf=yes
14533
af15babd
VZ
14534else
14535 echo "configure: failed program was:" >&5
14536 cat conftest.$ac_ext >&5
14537 rm -rf conftest*
4f14bcd8
GD
14538
14539 wx_cv_func_vsscanf=no
14540
af15babd
VZ
14541fi
14542rm -f conftest*
4f14bcd8 14543
af15babd
VZ
14544fi
14545
4f14bcd8
GD
14546echo "$ac_t""$wx_cv_func_vsscanf" 1>&6
14547
14548if test "$wx_cv_func_vsscanf" = yes; then
14549 cat >> confdefs.h <<\EOF
14550#define HAVE_VSSCANF 1
af15babd 14551EOF
4f14bcd8 14552
af15babd 14553fi
af15babd 14554
4f14bcd8 14555if test "$TOOLKIT" != "MSW"; then
af15babd 14556
4f14bcd8
GD
14557
14558
14559ac_ext=C
14560# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14561ac_cpp='$CXXCPP $CPPFLAGS'
14562ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14563ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14564cross_compiling=$ac_cv_prog_cxx_cross
14565
14566echo $ac_n "checking if iconv() takes char**""... $ac_c" 1>&6
0b9ab0bd 14567echo "configure:14568: checking if iconv() takes char**" >&5
4f14bcd8 14568if eval "test \"`echo '$''{'wx_cv_iconv_takes_char'+set}'`\" = set"; then
af15babd
VZ
14569 echo $ac_n "(cached) $ac_c" 1>&6
14570else
4f14bcd8
GD
14571
14572 cat > conftest.$ac_ext <<EOF
0b9ab0bd 14573#line 14574 "configure"
af15babd 14574#include "confdefs.h"
4f14bcd8 14575#include <iconv.h>
af15babd
VZ
14576int main() {
14577
4f14bcd8
GD
14578 char **inbuf, **outbuf;
14579 iconv_t cd;
14580 size_t insz, outsz;
14581 iconv(cd, inbuf, &insz, outbuf, &outsz);
14582
af15babd
VZ
14583; return 0; }
14584EOF
0b9ab0bd 14585if { (eval echo configure:14586: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
af15babd 14586 rm -rf conftest*
4f14bcd8 14587 wx_cv_iconv_takes_char=yes
af15babd
VZ
14588else
14589 echo "configure: failed program was:" >&5
14590 cat conftest.$ac_ext >&5
14591 rm -rf conftest*
4f14bcd8 14592 wx_cv_iconv_takes_char=no
af15babd
VZ
14593fi
14594rm -f conftest*
af15babd 14595
af15babd 14596fi
af15babd 14597
4f14bcd8
GD
14598echo "$ac_t""$wx_cv_iconv_takes_char" 1>&6
14599ac_ext=c
14600# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14601ac_cpp='$CPP $CPPFLAGS'
14602ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14603ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14604cross_compiling=$ac_cv_prog_cc_cross
af15babd 14605
4f14bcd8
GD
14606if test "$wx_cv_iconv_takes_char" = yes ; then
14607 cat >> confdefs.h <<\EOF
14608#define WX_ICONV_TAKES_CHAR 1
af15babd
VZ
14609EOF
14610
af15babd
VZ
14611fi
14612
af15babd 14613
4f14bcd8
GD
14614if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
14615 for ac_func in sigaction
af15babd
VZ
14616do
14617echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
0b9ab0bd 14618echo "configure:14619: checking for $ac_func" >&5
af15babd
VZ
14619if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14620 echo $ac_n "(cached) $ac_c" 1>&6
14621else
14622 cat > conftest.$ac_ext <<EOF
0b9ab0bd 14623#line 14624 "configure"
af15babd
VZ
14624#include "confdefs.h"
14625/* System header to define __stub macros and hopefully few prototypes,
14626 which can conflict with char $ac_func(); below. */
14627#include <assert.h>
14628/* Override any gcc2 internal prototype to avoid an error. */
14629/* We use char because int might match the return type of a gcc2
14630 builtin and then its argument prototype would still apply. */
14631char $ac_func();
14632
14633int main() {
14634
14635/* The GNU C library defines this for functions which it implements
14636 to always fail with ENOSYS. Some functions are actually named
14637 something starting with __ and the normal name is an alias. */
14638#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14639choke me
14640#else
14641$ac_func();
14642#endif
14643
14644; return 0; }
14645EOF
0b9ab0bd 14646if { (eval echo configure:14647: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
af15babd
VZ
14647 rm -rf conftest*
14648 eval "ac_cv_func_$ac_func=yes"
14649else
14650 echo "configure: failed program was:" >&5
14651 cat conftest.$ac_ext >&5
14652 rm -rf conftest*
14653 eval "ac_cv_func_$ac_func=no"
14654fi
14655rm -f conftest*
14656fi
14657
14658if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14659 echo "$ac_t""yes" 1>&6
14660 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14661 cat >> confdefs.h <<EOF
14662#define $ac_tr_func 1
14663EOF
4f14bcd8 14664
af15babd
VZ
14665else
14666 echo "$ac_t""no" 1>&6
4f14bcd8
GD
14667fi
14668done
14669
14670
14671 if test "$ac_cv_func_sigaction" = "no"; then
14672 echo "configure: warning: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" 1>&2
14673 wxUSE_ON_FATAL_EXCEPTION=no
14674 fi
14675
14676 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
14677
14678 ac_ext=C
14679# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14680ac_cpp='$CXXCPP $CPPFLAGS'
14681ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14682ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14683cross_compiling=$ac_cv_prog_cxx_cross
14684
14685
14686 echo $ac_n "checking for sa_handler type""... $ac_c" 1>&6
0b9ab0bd 14687echo "configure:14688: checking for sa_handler type" >&5
4f14bcd8 14688if eval "test \"`echo '$''{'wx_cv_type_sa_handler'+set}'`\" = set"; then
af15babd
VZ
14689 echo $ac_n "(cached) $ac_c" 1>&6
14690else
4f14bcd8
GD
14691
14692 cat > conftest.$ac_ext <<EOF
0b9ab0bd 14693#line 14694 "configure"
af15babd 14694#include "confdefs.h"
4f14bcd8 14695#include <signal.h>
af15babd 14696int main() {
4f14bcd8
GD
14697
14698 extern void testSigHandler(int);
14699
14700 struct sigaction sa;
14701 sa.sa_handler = testSigHandler;
14702
af15babd
VZ
14703; return 0; }
14704EOF
0b9ab0bd 14705if { (eval echo configure:14706: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
af15babd 14706 rm -rf conftest*
4f14bcd8
GD
14707
14708 wx_cv_type_sa_handler=int
14709
af15babd
VZ
14710else
14711 echo "configure: failed program was:" >&5
14712 cat conftest.$ac_ext >&5
14713 rm -rf conftest*
4f14bcd8
GD
14714
14715 wx_cv_type_sa_handler=void
14716
af15babd
VZ
14717fi
14718rm -f conftest*
4f14bcd8
GD
14719
14720fi
14721
14722echo "$ac_t""$wx_cv_type_sa_handler" 1>&6
14723
14724 ac_ext=c
14725# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14726ac_cpp='$CPP $CPPFLAGS'
14727ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14728ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14729cross_compiling=$ac_cv_prog_cc_cross
af15babd 14730
4f14bcd8
GD
14731
14732 cat >> confdefs.h <<EOF
14733#define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
af15babd
VZ
14734EOF
14735
4f14bcd8
GD
14736 fi
14737fi
af15babd 14738
4f14bcd8 14739for ac_func in vfork
af15babd
VZ
14740do
14741echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
0b9ab0bd 14742echo "configure:14743: checking for $ac_func" >&5
af15babd
VZ
14743if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14744 echo $ac_n "(cached) $ac_c" 1>&6
14745else
14746 cat > conftest.$ac_ext <<EOF
0b9ab0bd 14747#line 14748 "configure"
af15babd
VZ
14748#include "confdefs.h"
14749/* System header to define __stub macros and hopefully few prototypes,
14750 which can conflict with char $ac_func(); below. */
14751#include <assert.h>
14752/* Override any gcc2 internal prototype to avoid an error. */
14753/* We use char because int might match the return type of a gcc2
14754 builtin and then its argument prototype would still apply. */
14755char $ac_func();
14756
14757int main() {
14758
14759/* The GNU C library defines this for functions which it implements
14760 to always fail with ENOSYS. Some functions are actually named
14761 something starting with __ and the normal name is an alias. */
14762#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14763choke me
14764#else
14765$ac_func();
14766#endif
14767
14768; return 0; }
14769EOF
0b9ab0bd 14770if { (eval echo configure:14771: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
af15babd
VZ
14771 rm -rf conftest*
14772 eval "ac_cv_func_$ac_func=yes"
14773else
14774 echo "configure: failed program was:" >&5
14775 cat conftest.$ac_ext >&5
14776 rm -rf conftest*
14777 eval "ac_cv_func_$ac_func=no"
14778fi
14779rm -f conftest*
14780fi
14781
14782if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14783 echo "$ac_t""yes" 1>&6
14784 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14785 cat >> confdefs.h <<EOF
14786#define $ac_tr_func 1
14787EOF
4f14bcd8 14788
af15babd
VZ
14789else
14790 echo "$ac_t""no" 1>&6
af15babd
VZ
14791fi
14792done
14793
af15babd 14794
ade35f11
VZ
14795for ac_func in mkstemp mktemp
14796do
14797echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
0b9ab0bd 14798echo "configure:14799: checking for $ac_func" >&5
ade35f11
VZ
14799if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14800 echo $ac_n "(cached) $ac_c" 1>&6
14801else
14802 cat > conftest.$ac_ext <<EOF
0b9ab0bd 14803#line 14804 "configure"
ade35f11
VZ
14804#include "confdefs.h"
14805/* System header to define __stub macros and hopefully few prototypes,
14806 which can conflict with char $ac_func(); below. */
14807#include <assert.h>
14808/* Override any gcc2 internal prototype to avoid an error. */
14809/* We use char because int might match the return type of a gcc2
14810 builtin and then its argument prototype would still apply. */
14811char $ac_func();
14812
14813int main() {
14814
14815/* The GNU C library defines this for functions which it implements
14816 to always fail with ENOSYS. Some functions are actually named
14817 something starting with __ and the normal name is an alias. */
14818#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14819choke me
14820#else
14821$ac_func();
14822#endif
14823
14824; return 0; }
14825EOF
0b9ab0bd 14826if { (eval echo configure:14827: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ade35f11
VZ
14827 rm -rf conftest*
14828 eval "ac_cv_func_$ac_func=yes"
14829else
14830 echo "configure: failed program was:" >&5
14831 cat conftest.$ac_ext >&5
14832 rm -rf conftest*
14833 eval "ac_cv_func_$ac_func=no"
14834fi
14835rm -f conftest*
14836fi
14837
14838if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14839 echo "$ac_t""yes" 1>&6
14840 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14841 cat >> confdefs.h <<EOF
14842#define $ac_tr_func 1
14843EOF
14844 break
14845else
14846 echo "$ac_t""no" 1>&6
14847fi
14848done
14849
14850
4f14bcd8 14851echo $ac_n "checking for statfs""... $ac_c" 1>&6
0b9ab0bd 14852echo "configure:14853: checking for statfs" >&5
4f14bcd8
GD
14853if eval "test \"`echo '$''{'wx_cv_func_statfs'+set}'`\" = set"; then
14854 echo $ac_n "(cached) $ac_c" 1>&6
14855else
14856 cat > conftest.$ac_ext <<EOF
0b9ab0bd 14857#line 14858 "configure"
4f14bcd8
GD
14858#include "confdefs.h"
14859
14860 #if defined(__BSD__)
14861 #include <sys/param.h>
14862 #include <sys/mount.h>
14863 #else
14864 #include <sys/vfs.h>
14865 #endif
14866
14867int main() {
14868
14869 long l;
14870 struct statfs fs;
14871 statfs("/", &fs);
14872 l = fs.f_bsize;
14873 l += fs.f_blocks;
14874 l += fs.f_bavail;
14875
14876; return 0; }
14877EOF
0b9ab0bd 14878if { (eval echo configure:14879: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4f14bcd8
GD
14879 rm -rf conftest*
14880
14881 wx_cv_func_statfs=yes
14882
14883else
14884 echo "configure: failed program was:" >&5
14885 cat conftest.$ac_ext >&5
14886 rm -rf conftest*
14887
14888 wx_cv_func_statfs=no
af15babd
VZ
14889
14890
14891fi
4f14bcd8 14892rm -f conftest*
af15babd
VZ
14893
14894fi
14895
4f14bcd8
GD
14896echo "$ac_t""$wx_cv_func_statfs" 1>&6
14897
14898if test "$wx_cv_func_statfs" = "yes"; then
14899 cat >> confdefs.h <<\EOF
14900#define HAVE_STATFS 1
14901EOF
14902
14903else
14904 echo $ac_n "checking for statvfs""... $ac_c" 1>&6
0b9ab0bd 14905echo "configure:14906: checking for statvfs" >&5
4f14bcd8 14906if eval "test \"`echo '$''{'wx_cv_func_statvfs'+set}'`\" = set"; then
af15babd
VZ
14907 echo $ac_n "(cached) $ac_c" 1>&6
14908else
14909 cat > conftest.$ac_ext <<EOF
0b9ab0bd 14910#line 14911 "configure"
af15babd 14911#include "confdefs.h"
af15babd 14912
4f14bcd8
GD
14913 #include <sys/statvfs.h>
14914
af15babd
VZ
14915int main() {
14916
4f14bcd8
GD
14917 long l;
14918 struct statvfs fs;
14919 statvfs("/", &fs);
14920 l = fs.f_bsize;
14921 l += fs.f_blocks;
14922 l += fs.f_bavail;
14923
af15babd
VZ
14924; return 0; }
14925EOF
0b9ab0bd 14926if { (eval echo configure:14927: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
af15babd 14927 rm -rf conftest*
4f14bcd8
GD
14928
14929 wx_cv_func_statvfs=yes
14930
af15babd
VZ
14931else
14932 echo "configure: failed program was:" >&5
14933 cat conftest.$ac_ext >&5
14934 rm -rf conftest*
4f14bcd8
GD
14935
14936 wx_cv_func_statvfs=no
14937
14938
af15babd
VZ
14939fi
14940rm -f conftest*
4f14bcd8 14941
af15babd
VZ
14942fi
14943
4f14bcd8 14944echo "$ac_t""$wx_cv_func_statvfs" 1>&6
af15babd 14945
4f14bcd8
GD
14946 if test "$wx_cv_func_statvfs" = "yes"; then
14947 cat >> confdefs.h <<\EOF
14948#define HAVE_STATVFS 1
14949EOF
af15babd 14950
4f14bcd8
GD
14951 else
14952 echo "configure: warning: wxGetDiskSpace() function won't work without statfs()" 1>&2
14953 fi
14954fi
af15babd 14955
4f14bcd8
GD
14956if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
14957 for ac_func in fcntl flock
af15babd
VZ
14958do
14959echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
0b9ab0bd 14960echo "configure:14961: checking for $ac_func" >&5
af15babd
VZ
14961if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14962 echo $ac_n "(cached) $ac_c" 1>&6
14963else
14964 cat > conftest.$ac_ext <<EOF
0b9ab0bd 14965#line 14966 "configure"
af15babd
VZ
14966#include "confdefs.h"
14967/* System header to define __stub macros and hopefully few prototypes,
14968 which can conflict with char $ac_func(); below. */
14969#include <assert.h>
14970/* Override any gcc2 internal prototype to avoid an error. */
af15babd
VZ
14971/* We use char because int might match the return type of a gcc2
14972 builtin and then its argument prototype would still apply. */
14973char $ac_func();
14974
14975int main() {
14976
14977/* The GNU C library defines this for functions which it implements
14978 to always fail with ENOSYS. Some functions are actually named
14979 something starting with __ and the normal name is an alias. */
14980#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14981choke me
14982#else
14983$ac_func();
14984#endif
14985
14986; return 0; }
14987EOF
0b9ab0bd 14988if { (eval echo configure:14989: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
af15babd
VZ
14989 rm -rf conftest*
14990 eval "ac_cv_func_$ac_func=yes"
14991else
14992 echo "configure: failed program was:" >&5
14993 cat conftest.$ac_ext >&5
14994 rm -rf conftest*
14995 eval "ac_cv_func_$ac_func=no"
14996fi
14997rm -f conftest*
14998fi
14999
15000if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15001 echo "$ac_t""yes" 1>&6
15002 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15003 cat >> confdefs.h <<EOF
15004#define $ac_tr_func 1
15005EOF
4f14bcd8 15006 break
af15babd
VZ
15007else
15008 echo "$ac_t""no" 1>&6
15009fi
15010done
15011
15012
4f14bcd8
GD
15013 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
15014 echo "configure: warning: wxSingleInstanceChecker not available" 1>&2
15015 wxUSE_SNGLINST_CHECKER=no
15016 fi
15017fi
af15babd 15018
4f14bcd8 15019for ac_func in timegm
af15babd
VZ
15020do
15021echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
0b9ab0bd 15022echo "configure:15023: checking for $ac_func" >&5
af15babd
VZ
15023if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15024 echo $ac_n "(cached) $ac_c" 1>&6
15025else
15026 cat > conftest.$ac_ext <<EOF
0b9ab0bd 15027#line 15028 "configure"
af15babd
VZ
15028#include "confdefs.h"
15029/* System header to define __stub macros and hopefully few prototypes,
15030 which can conflict with char $ac_func(); below. */
15031#include <assert.h>
15032/* Override any gcc2 internal prototype to avoid an error. */
15033/* We use char because int might match the return type of a gcc2
15034 builtin and then its argument prototype would still apply. */
15035char $ac_func();
15036
698dcdb6 15037int main() {
698dcdb6 15038
af15babd
VZ
15039/* The GNU C library defines this for functions which it implements
15040 to always fail with ENOSYS. Some functions are actually named
15041 something starting with __ and the normal name is an alias. */
15042#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15043choke me
15044#else
15045$ac_func();
15046#endif
15047
698dcdb6
VZ
15048; return 0; }
15049EOF
0b9ab0bd 15050if { (eval echo configure:15051: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 15051 rm -rf conftest*
af15babd 15052 eval "ac_cv_func_$ac_func=yes"
698dcdb6
VZ
15053else
15054 echo "configure: failed program was:" >&5
15055 cat conftest.$ac_ext >&5
15056 rm -rf conftest*
af15babd 15057 eval "ac_cv_func_$ac_func=no"
1e487827 15058fi
9952adac 15059rm -f conftest*
af15babd 15060fi
703e0a69 15061
af15babd
VZ
15062if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15063 echo "$ac_t""yes" 1>&6
15064 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4f14bcd8
GD
15065 cat >> confdefs.h <<EOF
15066#define $ac_tr_func 1
15067EOF
15068
15069else
15070 echo "$ac_t""no" 1>&6
af15babd
VZ
15071fi
15072done
15073
15074
4f14bcd8 15075for ac_func in putenv setenv
10f2d63a 15076do
698dcdb6 15077echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
0b9ab0bd 15078echo "configure:15079: checking for $ac_func" >&5
698dcdb6
VZ
15079if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15080 echo $ac_n "(cached) $ac_c" 1>&6
15081else
15082 cat > conftest.$ac_ext <<EOF
0b9ab0bd 15083#line 15084 "configure"
af15babd
VZ
15084#include "confdefs.h"
15085/* System header to define __stub macros and hopefully few prototypes,
15086 which can conflict with char $ac_func(); below. */
15087#include <assert.h>
15088/* Override any gcc2 internal prototype to avoid an error. */
15089/* We use char because int might match the return type of a gcc2
15090 builtin and then its argument prototype would still apply. */
15091char $ac_func();
15092
15093int main() {
15094
15095/* The GNU C library defines this for functions which it implements
15096 to always fail with ENOSYS. Some functions are actually named
15097 something starting with __ and the normal name is an alias. */
15098#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15099choke me
15100#else
15101$ac_func();
15102#endif
15103
15104; return 0; }
15105EOF
0b9ab0bd 15106if { (eval echo configure:15107: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
af15babd
VZ
15107 rm -rf conftest*
15108 eval "ac_cv_func_$ac_func=yes"
15109else
15110 echo "configure: failed program was:" >&5
15111 cat conftest.$ac_ext >&5
15112 rm -rf conftest*
15113 eval "ac_cv_func_$ac_func=no"
15114fi
15115rm -f conftest*
15116fi
15117
15118if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15119 echo "$ac_t""yes" 1>&6
15120 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15121 cat >> confdefs.h <<EOF
15122#define $ac_tr_func 1
15123EOF
4f14bcd8 15124 break
af15babd
VZ
15125else
15126 echo "$ac_t""no" 1>&6
15127fi
af15babd
VZ
15128done
15129
15130
4f14bcd8
GD
15131HAVE_SOME_SLEEP_FUNC=0
15132if test "$USE_BEOS" = 1; then
15133 cat >> confdefs.h <<\EOF
15134#define HAVE_SLEEP 1
af15babd
VZ
15135EOF
15136
4f14bcd8 15137 HAVE_SOME_SLEEP_FUNC=1
10f2d63a
VZ
15138fi
15139
4f14bcd8
GD
15140if test "$USE_DARWIN" = 1; then
15141 cat >> confdefs.h <<\EOF
15142#define HAVE_USLEEP 1
af15babd 15143EOF
10f2d63a 15144
4f14bcd8 15145 HAVE_SOME_SLEEP_FUNC=1
10f2d63a
VZ
15146fi
15147
4f14bcd8
GD
15148if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
15149 POSIX4_LINK=
15150 for ac_func in nanosleep
15151do
15152echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
0b9ab0bd 15153echo "configure:15154: checking for $ac_func" >&5
4f14bcd8 15154if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
698dcdb6 15155 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 15156else
4f14bcd8 15157 cat > conftest.$ac_ext <<EOF
0b9ab0bd 15158#line 15159 "configure"
10f2d63a 15159#include "confdefs.h"
4f14bcd8
GD
15160/* System header to define __stub macros and hopefully few prototypes,
15161 which can conflict with char $ac_func(); below. */
15162#include <assert.h>
10f2d63a
VZ
15163/* Override any gcc2 internal prototype to avoid an error. */
15164/* We use char because int might match the return type of a gcc2
698dcdb6 15165 builtin and then its argument prototype would still apply. */
4f14bcd8 15166char $ac_func();
698dcdb6
VZ
15167
15168int main() {
4f14bcd8
GD
15169
15170/* The GNU C library defines this for functions which it implements
15171 to always fail with ENOSYS. Some functions are actually named
15172 something starting with __ and the normal name is an alias. */
15173#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15174choke me
15175#else
15176$ac_func();
15177#endif
15178
698dcdb6
VZ
15179; return 0; }
15180EOF
0b9ab0bd 15181if { (eval echo configure:15182: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 15182 rm -rf conftest*
4f14bcd8 15183 eval "ac_cv_func_$ac_func=yes"
698dcdb6
VZ
15184else
15185 echo "configure: failed program was:" >&5
15186 cat conftest.$ac_ext >&5
15187 rm -rf conftest*
4f14bcd8 15188 eval "ac_cv_func_$ac_func=no"
698dcdb6
VZ
15189fi
15190rm -f conftest*
698dcdb6 15191fi
4f14bcd8
GD
15192
15193if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
698dcdb6 15194 echo "$ac_t""yes" 1>&6
4f14bcd8
GD
15195 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15196 cat >> confdefs.h <<EOF
15197#define $ac_tr_func 1
15198EOF
15199 cat >> confdefs.h <<\EOF
15200#define HAVE_NANOSLEEP 1
15201EOF
15202
10f2d63a 15203else
698dcdb6 15204 echo "$ac_t""no" 1>&6
4f14bcd8 15205echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
0b9ab0bd 15206echo "configure:15207: checking for nanosleep in -lposix4" >&5
4f14bcd8 15207ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
698dcdb6
VZ
15208if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15209 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 15210else
698dcdb6 15211 ac_save_LIBS="$LIBS"
4f14bcd8 15212LIBS="-lposix4 $LIBS"
698dcdb6 15213cat > conftest.$ac_ext <<EOF
0b9ab0bd 15214#line 15215 "configure"
10f2d63a
VZ
15215#include "confdefs.h"
15216/* Override any gcc2 internal prototype to avoid an error. */
15217/* We use char because int might match the return type of a gcc2
698dcdb6 15218 builtin and then its argument prototype would still apply. */
4f14bcd8 15219char nanosleep();
698dcdb6
VZ
15220
15221int main() {
4f14bcd8 15222nanosleep()
698dcdb6
VZ
15223; return 0; }
15224EOF
0b9ab0bd 15225if { (eval echo configure:15226: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
15226 rm -rf conftest*
15227 eval "ac_cv_lib_$ac_lib_var=yes"
15228else
15229 echo "configure: failed program was:" >&5
15230 cat conftest.$ac_ext >&5
15231 rm -rf conftest*
15232 eval "ac_cv_lib_$ac_lib_var=no"
15233fi
15234rm -f conftest*
15235LIBS="$ac_save_LIBS"
10f2d63a 15236
698dcdb6
VZ
15237fi
15238if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15239 echo "$ac_t""yes" 1>&6
15240
4f14bcd8
GD
15241 cat >> confdefs.h <<\EOF
15242#define HAVE_NANOSLEEP 1
15243EOF
15244
3d63bc3a 15245 POSIX4_LINK=" -lposix4"
4f14bcd8 15246
10f2d63a 15247else
698dcdb6 15248 echo "$ac_t""no" 1>&6
10f2d63a 15249
4f14bcd8
GD
15250 for ac_func in usleep
15251do
15252echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
0b9ab0bd 15253echo "configure:15254: checking for $ac_func" >&5
4f14bcd8 15254if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
698dcdb6 15255 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 15256else
698dcdb6 15257 cat > conftest.$ac_ext <<EOF
0b9ab0bd 15258#line 15259 "configure"
10f2d63a 15259#include "confdefs.h"
4f14bcd8
GD
15260/* System header to define __stub macros and hopefully few prototypes,
15261 which can conflict with char $ac_func(); below. */
15262#include <assert.h>
15263/* Override any gcc2 internal prototype to avoid an error. */
15264/* We use char because int might match the return type of a gcc2
15265 builtin and then its argument prototype would still apply. */
15266char $ac_func();
15267
15268int main() {
15269
15270/* The GNU C library defines this for functions which it implements
15271 to always fail with ENOSYS. Some functions are actually named
15272 something starting with __ and the normal name is an alias. */
15273#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15274choke me
15275#else
15276$ac_func();
15277#endif
15278
15279; return 0; }
698dcdb6 15280EOF
0b9ab0bd 15281if { (eval echo configure:15282: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 15282 rm -rf conftest*
4f14bcd8 15283 eval "ac_cv_func_$ac_func=yes"
1e487827 15284else
698dcdb6 15285 echo "configure: failed program was:" >&5
10f2d63a 15286 cat conftest.$ac_ext >&5
698dcdb6 15287 rm -rf conftest*
4f14bcd8 15288 eval "ac_cv_func_$ac_func=no"
10f2d63a 15289fi
698dcdb6 15290rm -f conftest*
10f2d63a 15291fi
4f14bcd8
GD
15292
15293if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
698dcdb6 15294 echo "$ac_t""yes" 1>&6
4f14bcd8
GD
15295 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15296 cat >> confdefs.h <<EOF
15297#define $ac_tr_func 1
15298EOF
15299 cat >> confdefs.h <<\EOF
15300#define HAVE_USLEEP 1
15301EOF
15302
698dcdb6
VZ
15303else
15304 echo "$ac_t""no" 1>&6
4f14bcd8
GD
15305echo "configure: warning: wxSleep() function will not work" 1>&2
15306
10f2d63a 15307fi
4f14bcd8 15308done
10f2d63a 15309
4f14bcd8 15310
698dcdb6 15311
6232543b 15312fi
10f2d63a 15313
698dcdb6 15314
4f14bcd8 15315
1e487827 15316fi
4f14bcd8 15317done
703e0a69 15318
10f2d63a
VZ
15319fi
15320
4f14bcd8 15321for ac_func in uname gethostname
70846f0a 15322do
698dcdb6 15323echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
0b9ab0bd 15324echo "configure:15325: checking for $ac_func" >&5
698dcdb6
VZ
15325if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15326 echo $ac_n "(cached) $ac_c" 1>&6
15327else
15328 cat > conftest.$ac_ext <<EOF
0b9ab0bd 15329#line 15330 "configure"
70846f0a
VZ
15330#include "confdefs.h"
15331/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 15332 which can conflict with char $ac_func(); below. */
70846f0a
VZ
15333#include <assert.h>
15334/* Override any gcc2 internal prototype to avoid an error. */
15335/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
15336 builtin and then its argument prototype would still apply. */
15337char $ac_func();
15338
15339int main() {
70846f0a
VZ
15340
15341/* The GNU C library defines this for functions which it implements
15342 to always fail with ENOSYS. Some functions are actually named
15343 something starting with __ and the normal name is an alias. */
15344#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15345choke me
15346#else
698dcdb6 15347$ac_func();
70846f0a
VZ
15348#endif
15349
698dcdb6 15350; return 0; }
70846f0a 15351EOF
0b9ab0bd 15352if { (eval echo configure:15353: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
15353 rm -rf conftest*
15354 eval "ac_cv_func_$ac_func=yes"
15355else
15356 echo "configure: failed program was:" >&5
15357 cat conftest.$ac_ext >&5
15358 rm -rf conftest*
15359 eval "ac_cv_func_$ac_func=no"
15360fi
15361rm -f conftest*
15362fi
70846f0a 15363
698dcdb6
VZ
15364if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15365 echo "$ac_t""yes" 1>&6
15366 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15367 cat >> confdefs.h <<EOF
15368#define $ac_tr_func 1
15369EOF
4f14bcd8 15370 break
698dcdb6
VZ
15371else
15372 echo "$ac_t""no" 1>&6
70846f0a
VZ
15373fi
15374done
15375
698dcdb6 15376
4f14bcd8
GD
15377
15378ac_ext=C
15379# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15380ac_cpp='$CXXCPP $CPPFLAGS'
15381ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15382ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15383cross_compiling=$ac_cv_prog_cxx_cross
15384
15385
15386for ac_func in strtok_r
10f2d63a 15387do
4f14bcd8 15388echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
0b9ab0bd 15389echo "configure:15390: checking for $ac_func" >&5
4f14bcd8 15390if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
698dcdb6
VZ
15391 echo $ac_n "(cached) $ac_c" 1>&6
15392else
15393 cat > conftest.$ac_ext <<EOF
0b9ab0bd 15394#line 15395 "configure"
10f2d63a 15395#include "confdefs.h"
4f14bcd8
GD
15396/* System header to define __stub macros and hopefully few prototypes,
15397 which can conflict with char $ac_func(); below. */
15398#include <assert.h>
15399/* Override any gcc2 internal prototype to avoid an error. */
15400#ifdef __cplusplus
15401extern "C"
15402#endif
15403/* We use char because int might match the return type of a gcc2
15404 builtin and then its argument prototype would still apply. */
15405char $ac_func();
15406
15407int main() {
15408
15409/* The GNU C library defines this for functions which it implements
15410 to always fail with ENOSYS. Some functions are actually named
15411 something starting with __ and the normal name is an alias. */
15412#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15413choke me
15414#else
15415$ac_func();
15416#endif
15417
15418; return 0; }
698dcdb6 15419EOF
0b9ab0bd 15420if { (eval echo configure:15421: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 15421 rm -rf conftest*
4f14bcd8 15422 eval "ac_cv_func_$ac_func=yes"
1e487827 15423else
698dcdb6 15424 echo "configure: failed program was:" >&5
10f2d63a 15425 cat conftest.$ac_ext >&5
698dcdb6 15426 rm -rf conftest*
4f14bcd8 15427 eval "ac_cv_func_$ac_func=no"
10f2d63a 15428fi
698dcdb6 15429rm -f conftest*
10f2d63a 15430fi
4f14bcd8
GD
15431
15432if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
698dcdb6 15433 echo "$ac_t""yes" 1>&6
4f14bcd8 15434 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
698dcdb6 15435 cat >> confdefs.h <<EOF
4f14bcd8 15436#define $ac_tr_func 1
10f2d63a 15437EOF
698dcdb6
VZ
15438
15439else
15440 echo "$ac_t""no" 1>&6
10f2d63a
VZ
15441fi
15442done
15443
698dcdb6 15444
4f14bcd8
GD
15445ac_ext=c
15446# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15447ac_cpp='$CPP $CPPFLAGS'
15448ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15449ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15450cross_compiling=$ac_cv_prog_cc_cross
15451
15452
15453INET_LINK=
15454for ac_func in inet_addr
15455do
15456echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
0b9ab0bd 15457echo "configure:15458: checking for $ac_func" >&5
4f14bcd8 15458if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
698dcdb6 15459 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 15460else
4f14bcd8 15461 cat > conftest.$ac_ext <<EOF
0b9ab0bd 15462#line 15463 "configure"
10f2d63a 15463#include "confdefs.h"
4f14bcd8
GD
15464/* System header to define __stub macros and hopefully few prototypes,
15465 which can conflict with char $ac_func(); below. */
15466#include <assert.h>
10f2d63a
VZ
15467/* Override any gcc2 internal prototype to avoid an error. */
15468/* We use char because int might match the return type of a gcc2
698dcdb6 15469 builtin and then its argument prototype would still apply. */
4f14bcd8 15470char $ac_func();
698dcdb6
VZ
15471
15472int main() {
4f14bcd8
GD
15473
15474/* The GNU C library defines this for functions which it implements
15475 to always fail with ENOSYS. Some functions are actually named
15476 something starting with __ and the normal name is an alias. */
15477#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15478choke me
15479#else
15480$ac_func();
15481#endif
15482
698dcdb6
VZ
15483; return 0; }
15484EOF
0b9ab0bd 15485if { (eval echo configure:15486: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 15486 rm -rf conftest*
4f14bcd8 15487 eval "ac_cv_func_$ac_func=yes"
698dcdb6
VZ
15488else
15489 echo "configure: failed program was:" >&5
15490 cat conftest.$ac_ext >&5
15491 rm -rf conftest*
4f14bcd8 15492 eval "ac_cv_func_$ac_func=no"
698dcdb6
VZ
15493fi
15494rm -f conftest*
698dcdb6 15495fi
4f14bcd8
GD
15496
15497if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
698dcdb6 15498 echo "$ac_t""yes" 1>&6
4f14bcd8
GD
15499 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15500 cat >> confdefs.h <<EOF
15501#define $ac_tr_func 1
15502EOF
15503 cat >> confdefs.h <<\EOF
15504#define HAVE_INET_ADDR 1
10f2d63a
VZ
15505EOF
15506
15507else
698dcdb6 15508 echo "$ac_t""no" 1>&6
4f14bcd8 15509echo $ac_n "checking for inet_addr in -lnsl""... $ac_c" 1>&6
0b9ab0bd 15510echo "configure:15511: checking for inet_addr in -lnsl" >&5
4f14bcd8 15511ac_lib_var=`echo nsl'_'inet_addr | sed 'y%./+-%__p_%'`
698dcdb6
VZ
15512if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15513 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 15514else
698dcdb6 15515 ac_save_LIBS="$LIBS"
4f14bcd8 15516LIBS="-lnsl $LIBS"
698dcdb6 15517cat > conftest.$ac_ext <<EOF
0b9ab0bd 15518#line 15519 "configure"
10f2d63a
VZ
15519#include "confdefs.h"
15520/* Override any gcc2 internal prototype to avoid an error. */
15521/* We use char because int might match the return type of a gcc2
698dcdb6 15522 builtin and then its argument prototype would still apply. */
4f14bcd8 15523char inet_addr();
698dcdb6
VZ
15524
15525int main() {
4f14bcd8 15526inet_addr()
698dcdb6
VZ
15527; return 0; }
15528EOF
0b9ab0bd 15529if { (eval echo configure:15530: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
15530 rm -rf conftest*
15531 eval "ac_cv_lib_$ac_lib_var=yes"
15532else
15533 echo "configure: failed program was:" >&5
15534 cat conftest.$ac_ext >&5
15535 rm -rf conftest*
15536 eval "ac_cv_lib_$ac_lib_var=no"
15537fi
15538rm -f conftest*
15539LIBS="$ac_save_LIBS"
15540
15541fi
15542if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15543 echo "$ac_t""yes" 1>&6
4f14bcd8 15544 INET_LINK="nsl"
10f2d63a 15545else
698dcdb6 15546 echo "$ac_t""no" 1>&6
4f14bcd8 15547echo $ac_n "checking for inet_addr in -lresolv""... $ac_c" 1>&6
0b9ab0bd 15548echo "configure:15549: checking for inet_addr in -lresolv" >&5
4f14bcd8 15549ac_lib_var=`echo resolv'_'inet_addr | sed 'y%./+-%__p_%'`
698dcdb6
VZ
15550if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15551 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 15552else
698dcdb6 15553 ac_save_LIBS="$LIBS"
4f14bcd8 15554LIBS="-lresolv $LIBS"
698dcdb6 15555cat > conftest.$ac_ext <<EOF
0b9ab0bd 15556#line 15557 "configure"
10f2d63a
VZ
15557#include "confdefs.h"
15558/* Override any gcc2 internal prototype to avoid an error. */
15559/* We use char because int might match the return type of a gcc2
698dcdb6 15560 builtin and then its argument prototype would still apply. */
4f14bcd8 15561char inet_addr();
698dcdb6
VZ
15562
15563int main() {
4f14bcd8 15564inet_addr()
698dcdb6
VZ
15565; return 0; }
15566EOF
0b9ab0bd 15567if { (eval echo configure:15568: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
15568 rm -rf conftest*
15569 eval "ac_cv_lib_$ac_lib_var=yes"
15570else
15571 echo "configure: failed program was:" >&5
15572 cat conftest.$ac_ext >&5
15573 rm -rf conftest*
15574 eval "ac_cv_lib_$ac_lib_var=no"
15575fi
15576rm -f conftest*
15577LIBS="$ac_save_LIBS"
15578
15579fi
15580if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15581 echo "$ac_t""yes" 1>&6
4f14bcd8
GD
15582 INET_LINK="resolv"
15583
698dcdb6 15584else
4f14bcd8
GD
15585 echo "$ac_t""no" 1>&6
15586fi
698dcdb6 15587
4f14bcd8 15588
698dcdb6 15589fi
4f14bcd8
GD
15590
15591
698dcdb6
VZ
15592
15593fi
4f14bcd8
GD
15594done
15595
15596
15597for ac_func in inet_aton
15598do
15599echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
0b9ab0bd 15600echo "configure:15601: checking for $ac_func" >&5
4f14bcd8 15601if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
698dcdb6
VZ
15602 echo $ac_n "(cached) $ac_c" 1>&6
15603else
4f14bcd8 15604 cat > conftest.$ac_ext <<EOF
0b9ab0bd 15605#line 15606 "configure"
f6bcfd97 15606#include "confdefs.h"
4f14bcd8
GD
15607/* System header to define __stub macros and hopefully few prototypes,
15608 which can conflict with char $ac_func(); below. */
15609#include <assert.h>
f6bcfd97
BP
15610/* Override any gcc2 internal prototype to avoid an error. */
15611/* We use char because int might match the return type of a gcc2
698dcdb6 15612 builtin and then its argument prototype would still apply. */
4f14bcd8 15613char $ac_func();
698dcdb6
VZ
15614
15615int main() {
4f14bcd8
GD
15616
15617/* The GNU C library defines this for functions which it implements
15618 to always fail with ENOSYS. Some functions are actually named
15619 something starting with __ and the normal name is an alias. */
15620#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15621choke me
15622#else
15623$ac_func();
15624#endif
15625
698dcdb6
VZ
15626; return 0; }
15627EOF
0b9ab0bd 15628if { (eval echo configure:15629: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 15629 rm -rf conftest*
4f14bcd8 15630 eval "ac_cv_func_$ac_func=yes"
698dcdb6
VZ
15631else
15632 echo "configure: failed program was:" >&5
15633 cat conftest.$ac_ext >&5
15634 rm -rf conftest*
4f14bcd8 15635 eval "ac_cv_func_$ac_func=no"
698dcdb6
VZ
15636fi
15637rm -f conftest*
698dcdb6 15638fi
4f14bcd8
GD
15639
15640if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
698dcdb6 15641 echo "$ac_t""yes" 1>&6
4f14bcd8
GD
15642 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15643 cat >> confdefs.h <<EOF
15644#define $ac_tr_func 1
15645EOF
15646 cat >> confdefs.h <<\EOF
15647#define HAVE_INET_ATON 1
15648EOF
15649
10f2d63a 15650else
698dcdb6 15651 echo "$ac_t""no" 1>&6
4f14bcd8 15652 echo $ac_n "checking for inet_aton in -l$INET_LINK""... $ac_c" 1>&6
0b9ab0bd 15653echo "configure:15654: checking for inet_aton in -l$INET_LINK" >&5
4f14bcd8 15654ac_lib_var=`echo $INET_LINK'_'inet_aton | sed 'y%./+-%__p_%'`
698dcdb6
VZ
15655if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15656 echo $ac_n "(cached) $ac_c" 1>&6
1e487827 15657else
698dcdb6 15658 ac_save_LIBS="$LIBS"
4f14bcd8 15659LIBS="-l$INET_LINK $LIBS"
698dcdb6 15660cat > conftest.$ac_ext <<EOF
0b9ab0bd 15661#line 15662 "configure"
10f2d63a 15662#include "confdefs.h"
6232543b 15663/* Override any gcc2 internal prototype to avoid an error. */
6232543b 15664/* We use char because int might match the return type of a gcc2
698dcdb6 15665 builtin and then its argument prototype would still apply. */
4f14bcd8 15666char inet_aton();
698dcdb6
VZ
15667
15668int main() {
4f14bcd8 15669inet_aton()
698dcdb6
VZ
15670; return 0; }
15671EOF
0b9ab0bd 15672if { (eval echo configure:15673: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
15673 rm -rf conftest*
15674 eval "ac_cv_lib_$ac_lib_var=yes"
15675else
15676 echo "configure: failed program was:" >&5
15677 cat conftest.$ac_ext >&5
15678 rm -rf conftest*
15679 eval "ac_cv_lib_$ac_lib_var=no"
15680fi
15681rm -f conftest*
15682LIBS="$ac_save_LIBS"
10f2d63a 15683
698dcdb6
VZ
15684fi
15685if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15686 echo "$ac_t""yes" 1>&6
4f14bcd8
GD
15687 cat >> confdefs.h <<\EOF
15688#define HAVE_INET_ATON 1
15689EOF
15690
698dcdb6
VZ
15691else
15692 echo "$ac_t""no" 1>&6
10f2d63a
VZ
15693fi
15694
4f14bcd8 15695
10f2d63a 15696fi
4f14bcd8 15697done
10f2d63a 15698
4f14bcd8
GD
15699
15700if test "x$INET_LINK" != "x"; then
15701 cat >> confdefs.h <<\EOF
15702#define HAVE_INET_ADDR 1
15703EOF
15704
3d63bc3a 15705 INET_LINK=" -l$INET_LINK"
6232543b 15706fi
10f2d63a 15707
1e487827 15708fi
703e0a69 15709
698dcdb6 15710
4f14bcd8
GD
15711cat > confcache <<\EOF
15712# This file is a shell script that caches the results of configure
15713# tests run on this system so they can be shared between configure
15714# scripts and configure runs. It is not useful on other systems.
15715# If it contains results you don't want to keep, you may remove or edit it.
15716#
15717# By default, configure uses ./config.cache as the cache file,
15718# creating it if it does not exist already. You can give configure
15719# the --cache-file=FILE option to use a different cache file; that is
15720# what configure does when it calls configure scripts in
15721# subdirectories, so they share the cache.
15722# Giving --cache-file=/dev/null disables caching, for debugging configure.
15723# config.status only pays attention to the cache file if you give it the
15724# --recheck option to rerun configure.
15725#
f6bcfd97 15726EOF
4f14bcd8
GD
15727# The following way of writing the cache mishandles newlines in values,
15728# but we know of no workaround that is simple, portable, and efficient.
15729# So, don't put newlines in cache variables' values.
15730# Ultrix sh set writes to stderr and can't be redirected directly,
15731# and sets the high bit in the cache file unless we assign to the vars.
15732(set) 2>&1 |
15733 case `(ac_space=' '; set | grep ac_space) 2>&1` in
15734 *ac_space=\ *)
15735 # `set' does not quote correctly, so add quotes (double-quote substitution
15736 # turns \\\\ into \\, and sed turns \\ into \).
15737 sed -n \
15738 -e "s/'/'\\\\''/g" \
15739 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
15740 ;;
15741 *)
15742 # `set' quotes correctly as required by POSIX, so do not add quotes.
15743 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
15744 ;;
15745 esac >> confcache
15746if cmp -s $cache_file confcache; then
15747 :
15748else
15749 if test -w $cache_file; then
15750 echo "updating cache $cache_file"
15751 cat confcache > $cache_file
f6bcfd97 15752 else
4f14bcd8 15753 echo "not updating unwritable cache $cache_file"
f6bcfd97 15754 fi
4f14bcd8
GD
15755fi
15756rm -f confcache
f6bcfd97 15757
4f14bcd8
GD
15758
15759
15760if test "$TOOLKIT" != "MSW"; then
15761
7274f1c7
RL
15762
15763 THREADS_LINK=
15764 THREADS_OBJ=
15765 CODE_GEN_FLAGS=
15766 CODE_GEN_FLAGS_CXX=
15767
15768 if test "$wxUSE_THREADS" = "yes" ; then
15769 if test "$wxUSE_WINE" = 1 ; then
156b2523 15770 echo "configure: warning: Threads are not supported under WINE... disabled" 1>&2
7274f1c7
RL
15771 wxUSE_THREADS="no"
15772 elif test "$USE_BEOS" = 1; then
156b2523 15773 echo "configure: warning: BeOS threads are not yet supported... disabled" 1>&2
7274f1c7
RL
15774 wxUSE_THREADS="no"
15775 fi
4f14bcd8 15776 fi
4f14bcd8 15777
7274f1c7
RL
15778 if test "$wxUSE_THREADS" = "yes" ; then
15779
15780 if test "$USE_AIX" = 1; then
15781 THREADS_LIB=pthreads
15782 else
15783 THREADS_LIB=pthread
15784 fi
4f14bcd8 15785
7274f1c7 15786 echo $ac_n "checking for pthread_create in -l$THREADS_LIB""... $ac_c" 1>&6
0b9ab0bd 15787echo "configure:15788: checking for pthread_create in -l$THREADS_LIB" >&5
4f14bcd8 15788ac_lib_var=`echo $THREADS_LIB'_'pthread_create | sed 'y%./+-%__p_%'`
698dcdb6
VZ
15789if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15790 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 15791else
698dcdb6 15792 ac_save_LIBS="$LIBS"
4f14bcd8 15793LIBS="-l$THREADS_LIB $LIBS"
698dcdb6 15794cat > conftest.$ac_ext <<EOF
0b9ab0bd 15795#line 15796 "configure"
10f2d63a
VZ
15796#include "confdefs.h"
15797/* Override any gcc2 internal prototype to avoid an error. */
15798/* We use char because int might match the return type of a gcc2
698dcdb6 15799 builtin and then its argument prototype would still apply. */
4f14bcd8 15800char pthread_create();
698dcdb6
VZ
15801
15802int main() {
4f14bcd8 15803pthread_create()
698dcdb6
VZ
15804; return 0; }
15805EOF
0b9ab0bd 15806if { (eval echo configure:15807: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
15807 rm -rf conftest*
15808 eval "ac_cv_lib_$ac_lib_var=yes"
15809else
15810 echo "configure: failed program was:" >&5
15811 cat conftest.$ac_ext >&5
15812 rm -rf conftest*
15813 eval "ac_cv_lib_$ac_lib_var=no"
15814fi
15815rm -f conftest*
15816LIBS="$ac_save_LIBS"
15817
15818fi
15819if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15820 echo "$ac_t""yes" 1>&6
4f14bcd8 15821
7274f1c7
RL
15822 THREADS_OBJ="threadpsx.lo"
15823 THREADS_LINK=$THREADS_LIB
15824
10f2d63a 15825else
698dcdb6 15826 echo "$ac_t""no" 1>&6
10f2d63a 15827
7274f1c7 15828 echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6
0b9ab0bd 15829echo "configure:15830: checking for pthread_create in -lc_r" >&5
4f14bcd8
GD
15830ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'`
15831if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
698dcdb6
VZ
15832 echo $ac_n "(cached) $ac_c" 1>&6
15833else
4f14bcd8
GD
15834 ac_save_LIBS="$LIBS"
15835LIBS="-lc_r $LIBS"
15836cat > conftest.$ac_ext <<EOF
0b9ab0bd 15837#line 15838 "configure"
10f2d63a 15838#include "confdefs.h"
4f14bcd8
GD
15839/* Override any gcc2 internal prototype to avoid an error. */
15840/* We use char because int might match the return type of a gcc2
15841 builtin and then its argument prototype would still apply. */
15842char pthread_create();
10f2d63a 15843
4f14bcd8
GD
15844int main() {
15845pthread_create()
698dcdb6
VZ
15846; return 0; }
15847EOF
0b9ab0bd 15848if { (eval echo configure:15849: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 15849 rm -rf conftest*
4f14bcd8 15850 eval "ac_cv_lib_$ac_lib_var=yes"
10f2d63a 15851else
698dcdb6
VZ
15852 echo "configure: failed program was:" >&5
15853 cat conftest.$ac_ext >&5
15854 rm -rf conftest*
4f14bcd8 15855 eval "ac_cv_lib_$ac_lib_var=no"
6232543b 15856fi
698dcdb6 15857rm -f conftest*
4f14bcd8 15858LIBS="$ac_save_LIBS"
d9b9876f 15859
4f14bcd8
GD
15860fi
15861if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15862 echo "$ac_t""yes" 1>&6
15863
7274f1c7
RL
15864 THREADS_OBJ="threadpsx.lo"
15865 THREADS_LINK="c_r"
15866
4f14bcd8
GD
15867else
15868 echo "$ac_t""no" 1>&6
ab252f7b 15869
7274f1c7 15870 ac_safe=`echo "sys/prctl.h" | sed 'y%./+-%__p_%'`
4f14bcd8 15871echo $ac_n "checking for sys/prctl.h""... $ac_c" 1>&6
0b9ab0bd 15872echo "configure:15873: checking for sys/prctl.h" >&5
4f14bcd8 15873if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
698dcdb6 15874 echo $ac_n "(cached) $ac_c" 1>&6
d9b9876f 15875else
4f14bcd8 15876 cat > conftest.$ac_ext <<EOF
0b9ab0bd 15877#line 15878 "configure"
d9b9876f 15878#include "confdefs.h"
4f14bcd8 15879#include <sys/prctl.h>
698dcdb6 15880EOF
4f14bcd8 15881ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
0b9ab0bd 15882{ (eval echo configure:15883: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4f14bcd8
GD
15883ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15884if test -z "$ac_err"; then
698dcdb6 15885 rm -rf conftest*
4f14bcd8 15886 eval "ac_cv_header_$ac_safe=yes"
d9b9876f 15887else
4f14bcd8 15888 echo "$ac_err" >&5
698dcdb6
VZ
15889 echo "configure: failed program was:" >&5
15890 cat conftest.$ac_ext >&5
15891 rm -rf conftest*
4f14bcd8 15892 eval "ac_cv_header_$ac_safe=no"
6232543b 15893fi
698dcdb6 15894rm -f conftest*
4f14bcd8
GD
15895fi
15896if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15897 echo "$ac_t""yes" 1>&6
698dcdb6 15898
7274f1c7
RL
15899 THREADS_OBJ="threadsgi.lo"
15900
4f14bcd8
GD
15901else
15902 echo "$ac_t""no" 1>&6
1e487827 15903fi
698dcdb6 15904
7274f1c7 15905
4f14bcd8 15906fi
d9b9876f 15907
7274f1c7 15908
4f14bcd8 15909fi
d9b9876f 15910
4f14bcd8 15911
7274f1c7
RL
15912 if test -z "$THREADS_OBJ" ; then
15913 wxUSE_THREADS=no
156b2523 15914 echo "configure: warning: No thread support on this system... disabled" 1>&2
7274f1c7 15915 fi
4f14bcd8 15916 fi
4f14bcd8 15917
7274f1c7
RL
15918 if test "$wxUSE_THREADS" = "yes" ; then
15919 for ac_func in thr_setconcurrency
4f14bcd8
GD
15920do
15921echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
0b9ab0bd 15922echo "configure:15923: checking for $ac_func" >&5
4f14bcd8 15923if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
698dcdb6
VZ
15924 echo $ac_n "(cached) $ac_c" 1>&6
15925else
4f14bcd8 15926 cat > conftest.$ac_ext <<EOF
0b9ab0bd 15927#line 15928 "configure"
d9b9876f 15928#include "confdefs.h"
4f14bcd8
GD
15929/* System header to define __stub macros and hopefully few prototypes,
15930 which can conflict with char $ac_func(); below. */
15931#include <assert.h>
15932/* Override any gcc2 internal prototype to avoid an error. */
15933/* We use char because int might match the return type of a gcc2
15934 builtin and then its argument prototype would still apply. */
15935char $ac_func();
15936
698dcdb6 15937int main() {
d9b9876f 15938
4f14bcd8
GD
15939/* The GNU C library defines this for functions which it implements
15940 to always fail with ENOSYS. Some functions are actually named
15941 something starting with __ and the normal name is an alias. */
15942#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15943choke me
15944#else
15945$ac_func();
15946#endif
15947
698dcdb6
VZ
15948; return 0; }
15949EOF
0b9ab0bd 15950if { (eval echo configure:15951: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 15951 rm -rf conftest*
4f14bcd8 15952 eval "ac_cv_func_$ac_func=yes"
d9b9876f 15953else
698dcdb6
VZ
15954 echo "configure: failed program was:" >&5
15955 cat conftest.$ac_ext >&5
15956 rm -rf conftest*
4f14bcd8 15957 eval "ac_cv_func_$ac_func=no"
6232543b 15958fi
698dcdb6 15959rm -f conftest*
1e487827 15960fi
698dcdb6 15961
4f14bcd8
GD
15962if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15963 echo "$ac_t""yes" 1>&6
15964 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15965 cat >> confdefs.h <<EOF
15966#define $ac_tr_func 1
d9b9876f 15967EOF
4f14bcd8
GD
15968
15969else
15970 echo "$ac_t""no" 1>&6
10f2d63a 15971fi
4f14bcd8 15972done
10f2d63a 15973
10f2d63a 15974
7274f1c7
RL
15975
15976 for ac_hdr in sched.h
4f14bcd8
GD
15977do
15978ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15979echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
0b9ab0bd 15980echo "configure:15981: checking for $ac_hdr" >&5
4f14bcd8
GD
15981if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15982 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 15983else
4f14bcd8 15984 cat > conftest.$ac_ext <<EOF
0b9ab0bd 15985#line 15986 "configure"
4f14bcd8
GD
15986#include "confdefs.h"
15987#include <$ac_hdr>
13111b2a 15988EOF
4f14bcd8 15989ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
0b9ab0bd 15990{ (eval echo configure:15991: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4f14bcd8
GD
15991ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15992if test -z "$ac_err"; then
15993 rm -rf conftest*
15994 eval "ac_cv_header_$ac_safe=yes"
15995else
15996 echo "$ac_err" >&5
15997 echo "configure: failed program was:" >&5
15998 cat conftest.$ac_ext >&5
15999 rm -rf conftest*
16000 eval "ac_cv_header_$ac_safe=no"
13111b2a 16001fi
4f14bcd8 16002rm -f conftest*
10f2d63a 16003fi
4f14bcd8
GD
16004if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16005 echo "$ac_t""yes" 1>&6
16006 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
698dcdb6 16007 cat >> confdefs.h <<EOF
4f14bcd8 16008#define $ac_tr_hdr 1
f6bcfd97 16009EOF
4f14bcd8
GD
16010
16011else
16012 echo "$ac_t""no" 1>&6
f6bcfd97 16013fi
4f14bcd8 16014done
f6bcfd97 16015
10f2d63a 16016
7274f1c7 16017 echo $ac_n "checking for sched_yield in -l$THREADS_LINK""... $ac_c" 1>&6
0b9ab0bd 16018echo "configure:16019: checking for sched_yield in -l$THREADS_LINK" >&5
4f14bcd8
GD
16019ac_lib_var=`echo $THREADS_LINK'_'sched_yield | sed 'y%./+-%__p_%'`
16020if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16021 echo $ac_n "(cached) $ac_c" 1>&6
16022else
16023 ac_save_LIBS="$LIBS"
16024LIBS="-l$THREADS_LINK $LIBS"
16025cat > conftest.$ac_ext <<EOF
0b9ab0bd 16026#line 16027 "configure"
4f14bcd8
GD
16027#include "confdefs.h"
16028/* Override any gcc2 internal prototype to avoid an error. */
16029/* We use char because int might match the return type of a gcc2
16030 builtin and then its argument prototype would still apply. */
16031char sched_yield();
10f2d63a 16032
4f14bcd8
GD
16033int main() {
16034sched_yield()
16035; return 0; }
10f2d63a 16036EOF
0b9ab0bd 16037if { (eval echo configure:16038: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4f14bcd8
GD
16038 rm -rf conftest*
16039 eval "ac_cv_lib_$ac_lib_var=yes"
10f2d63a 16040else
4f14bcd8
GD
16041 echo "configure: failed program was:" >&5
16042 cat conftest.$ac_ext >&5
16043 rm -rf conftest*
16044 eval "ac_cv_lib_$ac_lib_var=no"
10f2d63a 16045fi
4f14bcd8
GD
16046rm -f conftest*
16047LIBS="$ac_save_LIBS"
10f2d63a 16048
4f14bcd8
GD
16049fi
16050if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16051 echo "$ac_t""yes" 1>&6
16052 cat >> confdefs.h <<\EOF
16053#define HAVE_SCHED_YIELD 1
10f2d63a
VZ
16054EOF
16055
4f14bcd8
GD
16056else
16057 echo "$ac_t""no" 1>&6
16058echo $ac_n "checking for sched_yield in -lposix4""... $ac_c" 1>&6
0b9ab0bd 16059echo "configure:16060: checking for sched_yield in -lposix4" >&5
4f14bcd8
GD
16060ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'`
16061if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16062 echo $ac_n "(cached) $ac_c" 1>&6
16063else
16064 ac_save_LIBS="$LIBS"
16065LIBS="-lposix4 $LIBS"
16066cat > conftest.$ac_ext <<EOF
0b9ab0bd 16067#line 16068 "configure"
4f14bcd8
GD
16068#include "confdefs.h"
16069/* Override any gcc2 internal prototype to avoid an error. */
16070/* We use char because int might match the return type of a gcc2
16071 builtin and then its argument prototype would still apply. */
16072char sched_yield();
47c13eb7 16073
4f14bcd8
GD
16074int main() {
16075sched_yield()
16076; return 0; }
10f2d63a 16077EOF
0b9ab0bd 16078if { (eval echo configure:16079: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4f14bcd8
GD
16079 rm -rf conftest*
16080 eval "ac_cv_lib_$ac_lib_var=yes"
10f2d63a 16081else
4f14bcd8
GD
16082 echo "configure: failed program was:" >&5
16083 cat conftest.$ac_ext >&5
16084 rm -rf conftest*
16085 eval "ac_cv_lib_$ac_lib_var=no"
10f2d63a 16086fi
4f14bcd8
GD
16087rm -f conftest*
16088LIBS="$ac_save_LIBS"
10f2d63a 16089
54276ccf 16090fi
4f14bcd8
GD
16091if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16092 echo "$ac_t""yes" 1>&6
16093 cat >> confdefs.h <<\EOF
16094#define HAVE_SCHED_YIELD 1
54276ccf 16095EOF
3d63bc3a 16096 POSIX4_LINK=" -lposix4"
4f14bcd8
GD
16097else
16098 echo "$ac_t""no" 1>&6
16099echo "configure: warning: wxThread::Yield will not work properly" 1>&2
7274f1c7 16100
54276ccf
VZ
16101fi
16102
7274f1c7 16103
4f14bcd8 16104fi
698dcdb6 16105
10f2d63a 16106
7274f1c7
RL
16107 HAVE_PRIOR_FUNCS=0
16108 echo $ac_n "checking for pthread_attr_getschedpolicy in -l$THREADS_LINK""... $ac_c" 1>&6
0b9ab0bd 16109echo "configure:16110: checking for pthread_attr_getschedpolicy in -l$THREADS_LINK" >&5
4f14bcd8
GD
16110ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_getschedpolicy | sed 'y%./+-%__p_%'`
16111if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
698dcdb6
VZ
16112 echo $ac_n "(cached) $ac_c" 1>&6
16113else
4f14bcd8
GD
16114 ac_save_LIBS="$LIBS"
16115LIBS="-l$THREADS_LINK $LIBS"
16116cat > conftest.$ac_ext <<EOF
0b9ab0bd 16117#line 16118 "configure"
422107f9 16118#include "confdefs.h"
4f14bcd8
GD
16119/* Override any gcc2 internal prototype to avoid an error. */
16120/* We use char because int might match the return type of a gcc2
16121 builtin and then its argument prototype would still apply. */
16122char pthread_attr_getschedpolicy();
16123
16124int main() {
16125pthread_attr_getschedpolicy()
16126; return 0; }
698dcdb6 16127EOF
0b9ab0bd 16128if { (eval echo configure:16129: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 16129 rm -rf conftest*
4f14bcd8 16130 eval "ac_cv_lib_$ac_lib_var=yes"
422107f9 16131else
698dcdb6 16132 echo "configure: failed program was:" >&5
422107f9 16133 cat conftest.$ac_ext >&5
698dcdb6 16134 rm -rf conftest*
4f14bcd8 16135 eval "ac_cv_lib_$ac_lib_var=no"
422107f9 16136fi
698dcdb6 16137rm -f conftest*
4f14bcd8
GD
16138LIBS="$ac_save_LIBS"
16139
422107f9 16140fi
4f14bcd8 16141if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
698dcdb6 16142 echo "$ac_t""yes" 1>&6
4f14bcd8 16143 echo $ac_n "checking for pthread_attr_setschedparam in -l$THREADS_LINK""... $ac_c" 1>&6
0b9ab0bd 16144echo "configure:16145: checking for pthread_attr_setschedparam in -l$THREADS_LINK" >&5
4f14bcd8 16145ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_setschedparam | sed 'y%./+-%__p_%'`
698dcdb6
VZ
16146if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16147 echo $ac_n "(cached) $ac_c" 1>&6
422107f9 16148else
698dcdb6 16149 ac_save_LIBS="$LIBS"
4f14bcd8 16150LIBS="-l$THREADS_LINK $LIBS"
698dcdb6 16151cat > conftest.$ac_ext <<EOF
0b9ab0bd 16152#line 16153 "configure"
422107f9
VZ
16153#include "confdefs.h"
16154/* Override any gcc2 internal prototype to avoid an error. */
16155/* We use char because int might match the return type of a gcc2
698dcdb6 16156 builtin and then its argument prototype would still apply. */
4f14bcd8 16157char pthread_attr_setschedparam();
698dcdb6
VZ
16158
16159int main() {
4f14bcd8 16160pthread_attr_setschedparam()
698dcdb6
VZ
16161; return 0; }
16162EOF
0b9ab0bd 16163if { (eval echo configure:16164: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
16164 rm -rf conftest*
16165 eval "ac_cv_lib_$ac_lib_var=yes"
16166else
16167 echo "configure: failed program was:" >&5
16168 cat conftest.$ac_ext >&5
16169 rm -rf conftest*
16170 eval "ac_cv_lib_$ac_lib_var=no"
16171fi
16172rm -f conftest*
16173LIBS="$ac_save_LIBS"
16174
16175fi
16176if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16177 echo "$ac_t""yes" 1>&6
4f14bcd8 16178 echo $ac_n "checking for sched_get_priority_max in -l$THREADS_LINK""... $ac_c" 1>&6
0b9ab0bd 16179echo "configure:16180: checking for sched_get_priority_max in -l$THREADS_LINK" >&5
4f14bcd8
GD
16180ac_lib_var=`echo $THREADS_LINK'_'sched_get_priority_max | sed 'y%./+-%__p_%'`
16181if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
698dcdb6
VZ
16182 echo $ac_n "(cached) $ac_c" 1>&6
16183else
4f14bcd8
GD
16184 ac_save_LIBS="$LIBS"
16185LIBS="-l$THREADS_LINK $LIBS"
16186cat > conftest.$ac_ext <<EOF
0b9ab0bd 16187#line 16188 "configure"
422107f9 16188#include "confdefs.h"
4f14bcd8
GD
16189/* Override any gcc2 internal prototype to avoid an error. */
16190/* We use char because int might match the return type of a gcc2
16191 builtin and then its argument prototype would still apply. */
16192char sched_get_priority_max();
16193
16194int main() {
16195sched_get_priority_max()
16196; return 0; }
698dcdb6 16197EOF
0b9ab0bd 16198if { (eval echo configure:16199: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 16199 rm -rf conftest*
4f14bcd8 16200 eval "ac_cv_lib_$ac_lib_var=yes"
422107f9 16201else
698dcdb6 16202 echo "configure: failed program was:" >&5
422107f9 16203 cat conftest.$ac_ext >&5
698dcdb6 16204 rm -rf conftest*
4f14bcd8 16205 eval "ac_cv_lib_$ac_lib_var=no"
422107f9 16206fi
698dcdb6 16207rm -f conftest*
4f14bcd8
GD
16208LIBS="$ac_save_LIBS"
16209
422107f9 16210fi
4f14bcd8 16211if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
698dcdb6 16212 echo "$ac_t""yes" 1>&6
4f14bcd8
GD
16213 HAVE_PRIOR_FUNCS=1
16214else
16215 echo "$ac_t""no" 1>&6
16216echo $ac_n "checking for sched_get_priority_max in -lposix4""... $ac_c" 1>&6
0b9ab0bd 16217echo "configure:16218: checking for sched_get_priority_max in -lposix4" >&5
4f14bcd8 16218ac_lib_var=`echo posix4'_'sched_get_priority_max | sed 'y%./+-%__p_%'`
698dcdb6
VZ
16219if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16220 echo $ac_n "(cached) $ac_c" 1>&6
422107f9 16221else
698dcdb6 16222 ac_save_LIBS="$LIBS"
4f14bcd8 16223LIBS="-lposix4 $LIBS"
698dcdb6 16224cat > conftest.$ac_ext <<EOF
0b9ab0bd 16225#line 16226 "configure"
422107f9
VZ
16226#include "confdefs.h"
16227/* Override any gcc2 internal prototype to avoid an error. */
16228/* We use char because int might match the return type of a gcc2
698dcdb6 16229 builtin and then its argument prototype would still apply. */
4f14bcd8 16230char sched_get_priority_max();
698dcdb6
VZ
16231
16232int main() {
4f14bcd8 16233sched_get_priority_max()
698dcdb6
VZ
16234; return 0; }
16235EOF
0b9ab0bd 16236if { (eval echo configure:16237: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
16237 rm -rf conftest*
16238 eval "ac_cv_lib_$ac_lib_var=yes"
16239else
16240 echo "configure: failed program was:" >&5
16241 cat conftest.$ac_ext >&5
16242 rm -rf conftest*
16243 eval "ac_cv_lib_$ac_lib_var=no"
16244fi
16245rm -f conftest*
16246LIBS="$ac_save_LIBS"
16247
16248fi
16249if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16250 echo "$ac_t""yes" 1>&6
4f14bcd8 16251
7274f1c7
RL
16252 HAVE_PRIOR_FUNCS=1
16253 POSIX4_LINK=" -lposix4"
16254
698dcdb6
VZ
16255else
16256 echo "$ac_t""no" 1>&6
422107f9
VZ
16257fi
16258
7274f1c7 16259
422107f9
VZ
16260fi
16261
7274f1c7 16262
4f14bcd8
GD
16263else
16264 echo "$ac_t""no" 1>&6
10f2d63a
VZ
16265fi
16266
7274f1c7 16267
698dcdb6 16268else
4f14bcd8
GD
16269 echo "$ac_t""no" 1>&6
16270fi
463abc64 16271
463abc64 16272
7274f1c7
RL
16273 if test "$HAVE_PRIOR_FUNCS" = 1; then
16274 cat >> confdefs.h <<\EOF
4f14bcd8 16275#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
698dcdb6 16276EOF
463abc64 16277
7274f1c7
RL
16278 else
16279 echo "configure: warning: Setting thread priority will not work" 1>&2
16280 fi
463abc64 16281
7274f1c7 16282 echo $ac_n "checking for pthread_cancel in -l$THREADS_LINK""... $ac_c" 1>&6
0b9ab0bd 16283echo "configure:16284: checking for pthread_cancel in -l$THREADS_LINK" >&5
4f14bcd8 16284ac_lib_var=`echo $THREADS_LINK'_'pthread_cancel | sed 'y%./+-%__p_%'`
698dcdb6
VZ
16285if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16286 echo $ac_n "(cached) $ac_c" 1>&6
422107f9 16287else
698dcdb6 16288 ac_save_LIBS="$LIBS"
4f14bcd8 16289LIBS="-l$THREADS_LINK $LIBS"
698dcdb6 16290cat > conftest.$ac_ext <<EOF
0b9ab0bd 16291#line 16292 "configure"
422107f9
VZ
16292#include "confdefs.h"
16293/* Override any gcc2 internal prototype to avoid an error. */
16294/* We use char because int might match the return type of a gcc2
698dcdb6 16295 builtin and then its argument prototype would still apply. */
4f14bcd8 16296char pthread_cancel();
698dcdb6
VZ
16297
16298int main() {
4f14bcd8 16299pthread_cancel()
698dcdb6
VZ
16300; return 0; }
16301EOF
0b9ab0bd 16302if { (eval echo configure:16303: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
16303 rm -rf conftest*
16304 eval "ac_cv_lib_$ac_lib_var=yes"
16305else
16306 echo "configure: failed program was:" >&5
16307 cat conftest.$ac_ext >&5
16308 rm -rf conftest*
16309 eval "ac_cv_lib_$ac_lib_var=no"
16310fi
16311rm -f conftest*
16312LIBS="$ac_save_LIBS"
16313
16314fi
16315if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16316 echo "$ac_t""yes" 1>&6
4f14bcd8
GD
16317 cat >> confdefs.h <<\EOF
16318#define HAVE_PTHREAD_CANCEL 1
16319EOF
16320
698dcdb6
VZ
16321else
16322 echo "$ac_t""no" 1>&6
4f14bcd8 16323echo "configure: warning: wxThread::Kill() will not work properly" 1>&2
422107f9
VZ
16324fi
16325
422107f9 16326
7274f1c7 16327 echo $ac_n "checking for pthread_cleanup_push/pop""... $ac_c" 1>&6
0b9ab0bd 16328echo "configure:16329: checking for pthread_cleanup_push/pop" >&5
4f14bcd8
GD
16329if eval "test \"`echo '$''{'wx_cv_func_pthread_cleanup_push'+set}'`\" = set"; then
16330 echo $ac_n "(cached) $ac_c" 1>&6
16331else
16332
7274f1c7 16333 cat > conftest.$ac_ext <<EOF
0b9ab0bd 16334#line 16335 "configure"
4f14bcd8
GD
16335#include "confdefs.h"
16336#include <pthread.h>
16337int main() {
16338
7274f1c7
RL
16339 pthread_cleanup_push(NULL, NULL);
16340 pthread_cleanup_pop(0);
16341
4f14bcd8
GD
16342; return 0; }
16343EOF
0b9ab0bd 16344if { (eval echo configure:16345: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4f14bcd8
GD
16345 rm -rf conftest*
16346
7274f1c7
RL
16347 wx_cv_func_pthread_cleanup_push=yes
16348
4f14bcd8
GD
16349else
16350 echo "configure: failed program was:" >&5
16351 cat conftest.$ac_ext >&5
16352 rm -rf conftest*
16353
7274f1c7
RL
16354 wx_cv_func_pthread_cleanup_push=no
16355
4f14bcd8
GD
16356fi
16357rm -f conftest*
7274f1c7 16358
10f2d63a
VZ
16359fi
16360
4f14bcd8
GD
16361echo "$ac_t""$wx_cv_func_pthread_cleanup_push" 1>&6
16362
7274f1c7
RL
16363 if test "$wx_cv_func_pthread_cleanup_push" = "yes"; then
16364 cat >> confdefs.h <<\EOF
4f14bcd8 16365#define HAVE_THREAD_CLEANUP_FUNCTIONS 1
c7a2bf27
RR
16366EOF
16367
7274f1c7 16368 fi
4f14bcd8 16369
7274f1c7
RL
16370
16371 if test "x$wx_lib_glibc21" = "xyes"; then
16372 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
16373 fi
4f14bcd8 16374
7274f1c7 16375 echo $ac_n "checking for pthread_mutexattr_t""... $ac_c" 1>&6
0b9ab0bd 16376echo "configure:16377: checking for pthread_mutexattr_t" >&5
4f14bcd8 16377if eval "test \"`echo '$''{'wx_cv_type_pthread_mutexattr_t'+set}'`\" = set"; then
698dcdb6
VZ
16378 echo $ac_n "(cached) $ac_c" 1>&6
16379else
4f14bcd8 16380
7274f1c7 16381 cat > conftest.$ac_ext <<EOF
0b9ab0bd 16382#line 16383 "configure"
0dcf9893 16383#include "confdefs.h"
4f14bcd8
GD
16384#include <pthread.h>
16385int main() {
16386
7274f1c7
RL
16387 pthread_mutexattr_t attr;
16388 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
16389
4f14bcd8 16390; return 0; }
698dcdb6 16391EOF
0b9ab0bd 16392if { (eval echo configure:16393: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 16393 rm -rf conftest*
4f14bcd8 16394
7274f1c7
RL
16395 wx_cv_type_pthread_mutexattr_t=yes
16396
3fed1840 16397else
698dcdb6 16398 echo "configure: failed program was:" >&5
3fed1840 16399 cat conftest.$ac_ext >&5
698dcdb6 16400 rm -rf conftest*
4f14bcd8 16401
7274f1c7
RL
16402 wx_cv_type_pthread_mutexattr_t=no
16403
4f14bcd8 16404
3fed1840 16405fi
698dcdb6 16406rm -f conftest*
7274f1c7 16407
3fed1840 16408fi
4f14bcd8
GD
16409
16410echo "$ac_t""$wx_cv_type_pthread_mutexattr_t" 1>&6
16411
7274f1c7
RL
16412 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
16413 cat >> confdefs.h <<\EOF
4f14bcd8
GD
16414#define HAVE_PTHREAD_MUTEXATTR_T 1
16415EOF
16416
7274f1c7
RL
16417 else
16418 echo $ac_n "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER""... $ac_c" 1>&6
0b9ab0bd 16419echo "configure:16420: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
4f14bcd8 16420if eval "test \"`echo '$''{'wx_cv_type_pthread_rec_mutex_init'+set}'`\" = set"; then
698dcdb6 16421 echo $ac_n "(cached) $ac_c" 1>&6
3fed1840 16422else
4f14bcd8 16423
7274f1c7 16424 cat > conftest.$ac_ext <<EOF
0b9ab0bd 16425#line 16426 "configure"
3fed1840 16426#include "confdefs.h"
4f14bcd8 16427#include <pthread.h>
698dcdb6 16428int main() {
4f14bcd8 16429
7274f1c7
RL
16430 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
16431
698dcdb6
VZ
16432; return 0; }
16433EOF
0b9ab0bd 16434if { (eval echo configure:16435: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 16435 rm -rf conftest*
4f14bcd8 16436
7274f1c7
RL
16437 wx_cv_type_pthread_rec_mutex_init=yes
16438
698dcdb6
VZ
16439else
16440 echo "configure: failed program was:" >&5
16441 cat conftest.$ac_ext >&5
16442 rm -rf conftest*
4f14bcd8 16443
7274f1c7
RL
16444 wx_cv_type_pthread_rec_mutex_init=no
16445
4f14bcd8 16446
698dcdb6
VZ
16447fi
16448rm -f conftest*
7274f1c7 16449
3fed1840
RR
16450fi
16451
4f14bcd8 16452echo "$ac_t""$wx_cv_type_pthread_rec_mutex_init" 1>&6
7274f1c7
RL
16453 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
16454 cat >> confdefs.h <<\EOF
4f14bcd8
GD
16455#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
16456EOF
3fed1840 16457
7274f1c7
RL
16458 else
16459 echo "configure: warning: wxMutex won't be recursive on this platform" 1>&2
16460 fi
16461 fi
4f14bcd8 16462
7274f1c7 16463 THREADS_LINK=" -l$THREADS_LINK"
4f14bcd8 16464
7274f1c7
RL
16465 if test "$USE_SOLARIS" = "yes" -a "$GCC" != "yes"; then
16466 CPPFLAGS="$CFLAGS -mt"
16467 CXXFLAGS="$CXXFLAGS -mt"
16468 LDFLAGS="$LDFLAGS -mt"
16469 fi
16470 fi
3fed1840 16471
4f14bcd8
GD
16472fi
16473
16474if test "$wxUSE_THREADS" = "yes"; then
3a922bb4 16475 cat >> confdefs.h <<\EOF
4f14bcd8 16476#define wxUSE_THREADS 1
7b6058cd
GD
16477EOF
16478
4f14bcd8 16479
3f345b47 16480 TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS $CPP_MT_FLAG"
4f14bcd8
GD
16481
16482 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
698dcdb6 16483else
4f14bcd8
GD
16484 if test "$ac_cv_func_strtok_r" = "yes"; then
16485 echo $ac_n "checking if -D_REENTRANT is needed""... $ac_c" 1>&6
0b9ab0bd 16486echo "configure:16487: checking if -D_REENTRANT is needed" >&5
4f14bcd8
GD
16487 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
16488 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT"
16489 echo "$ac_t""yes" 1>&6
16490 else
16491 echo "$ac_t""no" 1>&6
16492 fi
16493 fi
16494fi
16495
16496if test "$WXGTK20" = 1 ; then
16497 cat >> confdefs.h <<EOF
16498#define __WXGTK20__ $WXGTK20
698dcdb6 16499EOF
4f14bcd8
GD
16500
16501 WXGTK12=1
10f2d63a 16502fi
4f14bcd8
GD
16503
16504if test "$WXGTK12" = 1 ; then
16505 cat >> confdefs.h <<EOF
16506#define __WXGTK12__ $WXGTK12
16507EOF
16508
10f2d63a 16509fi
698dcdb6 16510
4f14bcd8
GD
16511if test "$WXGTK127" = 1 ; then
16512 cat >> confdefs.h <<EOF
16513#define __WXGTK127__ $WXGTK127
698dcdb6 16514EOF
4f14bcd8 16515
698dcdb6 16516fi
10f2d63a 16517
4f14bcd8
GD
16518WXDEBUG=
16519
16520if test "$wxUSE_DEBUG_INFO" = "yes" ; then
16521 WXDEBUG="-g"
16522 wxUSE_OPTIMISE=no
698dcdb6 16523fi
4f14bcd8
GD
16524
16525if test "$wxUSE_DEBUG_GDB" = "yes" ; then
16526 wxUSE_DEBUG_INFO=yes
16527 WXDEBUG="-ggdb"
10f2d63a
VZ
16528fi
16529
4f14bcd8
GD
16530if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
16531 cat >> confdefs.h <<\EOF
16532#define WXDEBUG 1
16533EOF
16534
16535 WXDEBUG_DEFINE="-D__WXDEBUG__"
10f2d63a 16536else
4f14bcd8
GD
16537 if test "$wxUSE_GTK" = 1 ; then
16538 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
16539 fi
16540fi
16541
16542if test "$wxUSE_MEM_TRACING" = "yes" ; then
16543 cat >> confdefs.h <<\EOF
16544#define wxUSE_MEMORY_TRACING 1
16545EOF
16546
16547 cat >> confdefs.h <<\EOF
16548#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
16549EOF
16550
16551 cat >> confdefs.h <<\EOF
16552#define wxUSE_DEBUG_NEW_ALWAYS 1
16553EOF
16554
16555 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
16556fi
16557
16558if test "$wxUSE_DMALLOC" = "yes" ; then
3d63bc3a 16559 DMALLOC_LIBS="-ldmalloc"
4f14bcd8
GD
16560fi
16561
16562PROFILE=
16563if test "$wxUSE_PROFILE" = "yes" ; then
3d63bc3a 16564 PROFILE=" -pg"
10f2d63a
VZ
16565fi
16566
88e30f2b 16567if test "$GCC" = "yes" ; then
4f14bcd8
GD
16568 if test "$wxUSE_NO_RTTI" = "yes" ; then
16569 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti"
3a922bb4 16570 fi
4f14bcd8
GD
16571 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
16572 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions"
16573 fi
16574 if test "$wxUSE_PERMISSIVE" = "yes" ; then
16575 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
16576 fi
4f14bcd8
GD
16577 if test "$USE_WIN32" = 1 ; then
16578 # I'm not even really sure what this was ever added to solve,
16579 # but someone added it for mingw native builds, so I guess
16580 # they had a reason, right??
16581 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fno-pcc-struct-return"
16582 fi
16583fi
16584
16585
16586CXXFLAGS=`echo "${CXXFLAGS}" | sed "s/\-O.//g" `
16587CFLAGS=`echo "${CFLAGS}" | sed "s/\-O.//g" `
16588if test "$wxUSE_OPTIMISE" = "no" ; then
16589 OPTIMISE=
16590else
16591 if test "$GCC" = yes ; then
16592 OPTIMISE="-O2"
16593 case "${host}" in
16594 i586-*-*|i686-*-* )
16595 OPTIMISE="${OPTIMISE} "
16596 ;;
16597 esac
16598 else
16599 OPTIMISE="-O"
16600 fi
16601fi
16602
16603if test "$WXWIN_COMPATIBILITY_2" = "yes"; then
16604 cat >> confdefs.h <<\EOF
16605#define WXWIN_COMPATIBILITY_2 1
16606EOF
16607
16608
16609 WXWIN_COMPATIBILITY_2_2="yes"
16610fi
16611
16612if test "$WXWIN_COMPATIBILITY_2_2" = "yes"; then
16613 cat >> confdefs.h <<\EOF
16614#define WXWIN_COMPATIBILITY_2_2 1
16615EOF
16616
10f2d63a
VZ
16617fi
16618
698dcdb6 16619
10f2d63a 16620if test "$wxUSE_GUI" = "yes"; then
698dcdb6 16621 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16622#define wxUSE_GUI 1
16623EOF
16624
698dcdb6 16625
10f2d63a 16626 else
698dcdb6 16627 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16628#define wxUSE_NOGUI 1
16629EOF
16630
16631fi
16632
698dcdb6 16633
10f2d63a 16634if test "$wxUSE_UNIX" = "yes"; then
698dcdb6 16635 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16636#define wxUSE_UNIX 1
16637EOF
16638
16639fi
16640
698dcdb6 16641
10f2d63a 16642if test "$wxUSE_APPLE_IEEE" = "yes"; then
698dcdb6 16643 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16644#define wxUSE_APPLE_IEEE 1
16645EOF
16646
16647fi
16648
1e6feb95
VZ
16649if test "$wxUSE_TIMER" = "yes"; then
16650 cat >> confdefs.h <<\EOF
16651#define wxUSE_TIMER 1
16652EOF
16653
16654fi
16655
10f2d63a 16656if test "$wxUSE_WAVE" = "yes"; then
698dcdb6 16657 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16658#define wxUSE_WAVE 1
16659EOF
16660
16661fi
16662
1e6feb95
VZ
16663if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
16664 cat >> confdefs.h <<\EOF
16665#define wxUSE_CMDLINE_PARSER 1
16666EOF
16667
16668fi
16669
16670if test "$wxUSE_STOPWATCH" = "yes"; then
16671 cat >> confdefs.h <<\EOF
16672#define wxUSE_STOPWATCH 1
16673EOF
16674
16675fi
16676
16677if test "$wxUSE_DATETIME" = "yes"; then
16678 cat >> confdefs.h <<\EOF
16679#define wxUSE_DATETIME 1
16680EOF
16681
16682fi
16683
16684if test "$wxUSE_TIMEDATE" = "yes"; then
16685 cat >> confdefs.h <<\EOF
16686#define wxUSE_TIMEDATE 1
16687EOF
16688
16689fi
16690
10f2d63a 16691if test "$wxUSE_FILE" = "yes"; then
698dcdb6 16692 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16693#define wxUSE_FILE 1
16694EOF
16695
16696fi
16697
1e6feb95
VZ
16698if test "$wxUSE_FFILE" = "yes"; then
16699 cat >> confdefs.h <<\EOF
16700#define wxUSE_FFILE 1
16701EOF
16702
16703fi
16704
24528b0c 16705if test "$wxUSE_FILESYSTEM" = "yes"; then
698dcdb6 16706 cat >> confdefs.h <<\EOF
24528b0c
VS
16707#define wxUSE_FILESYSTEM 1
16708EOF
16709
16710fi
16711
10f2d63a 16712if test "$wxUSE_FS_INET" = "yes"; then
698dcdb6 16713 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16714#define wxUSE_FS_INET 1
16715EOF
16716
16717fi
16718
16719if test "$wxUSE_FS_ZIP" = "yes"; then
698dcdb6 16720 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16721#define wxUSE_FS_ZIP 1
16722EOF
16723
16724fi
16725
16726if test "$wxUSE_ZIPSTREAM" = "yes"; then
698dcdb6 16727 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16728#define wxUSE_ZIPSTREAM 1
16729EOF
16730
16731fi
16732
eb4efbdc 16733if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
698dcdb6 16734 cat >> confdefs.h <<\EOF
eb4efbdc
VZ
16735#define wxUSE_ON_FATAL_EXCEPTION 1
16736EOF
16737
16738fi
16739
4f3c5f06 16740if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
698dcdb6 16741 cat >> confdefs.h <<\EOF
4f3c5f06
VZ
16742#define wxUSE_SNGLINST_CHECKER 1
16743EOF
16744
16745fi
16746
10f2d63a 16747if test "$wxUSE_BUSYINFO" = "yes"; then
698dcdb6 16748 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16749#define wxUSE_BUSYINFO 1
16750EOF
16751
16752fi
16753
16754if test "$wxUSE_STD_IOSTREAM" = "yes"; then
698dcdb6 16755 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16756#define wxUSE_STD_IOSTREAM 1
16757EOF
16758
16759fi
16760
a3a584a7
VZ
16761if test "$wxUSE_TEXTBUFFER" = "yes"; then
16762 cat >> confdefs.h <<\EOF
16763#define wxUSE_TEXTBUFFER 1
16764EOF
16765
16766fi
16767
10f2d63a 16768if test "$wxUSE_TEXTFILE" = "yes"; then
a3a584a7 16769 if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
156b2523 16770 echo "configure: warning: wxTextFile requires wxFile and wxTextBuffer... disabled" 1>&2
10f2d63a 16771 else
698dcdb6 16772 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16773#define wxUSE_TEXTFILE 1
16774EOF
16775
16776 fi
16777fi
16778
16779if test "$wxUSE_CONFIG" = "yes" ; then
16780 if test "$wxUSE_TEXTFILE" != "yes"; then
156b2523 16781 echo "configure: warning: wxConfig requires wxTextFile... disabled" 1>&2
10f2d63a 16782 else
698dcdb6 16783 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16784#define wxUSE_CONFIG 1
16785EOF
16786
16787 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
16788 fi
16789fi
16790
16791if test "$wxUSE_INTL" = "yes" ; then
16792 if test "$wxUSE_FILE" != "yes"; then
156b2523 16793 echo "configure: warning: I18n code requires wxFile... disabled" 1>&2
10f2d63a 16794 else
698dcdb6 16795 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16796#define wxUSE_INTL 1
16797EOF
16798
16799 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
f6bcfd97 16800 GUIDIST="$GUIDIST INTL_DIST"
10f2d63a
VZ
16801 fi
16802fi
16803
16804if test "$wxUSE_LOG" = "yes"; then
698dcdb6 16805 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16806#define wxUSE_LOG 1
16807EOF
16808
d73be714
VZ
16809
16810 if test "$wxUSE_LOGGUI" = "yes"; then
16811 cat >> confdefs.h <<\EOF
16812#define wxUSE_LOGGUI 1
16813EOF
16814
16815 fi
16816
16817 if test "$wxUSE_LOGWINDOW" = "yes"; then
16818 cat >> confdefs.h <<\EOF
16819#define wxUSE_LOGWINDOW 1
69d27ff7
MB
16820EOF
16821
16822 fi
16823
16824 if test "$wxUSE_LOGDIALOG" = "yes"; then
16825 cat >> confdefs.h <<\EOF
16826#define wxUSE_LOG_DIALOG 1
d73be714
VZ
16827EOF
16828
16829 fi
10f2d63a
VZ
16830fi
16831
16832if test "$wxUSE_LONGLONG" = "yes"; then
698dcdb6 16833 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16834#define wxUSE_LONGLONG 1
16835EOF
16836
16837fi
16838
e8f65ba6 16839if test "$wxUSE_GEOMETRY" = "yes"; then
698dcdb6 16840 cat >> confdefs.h <<\EOF
e8f65ba6
RR
16841#define wxUSE_GEOMETRY 1
16842EOF
16843
16844fi
16845
10f2d63a 16846if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
698dcdb6 16847 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16848#define wxUSE_DIALUP_MANAGER 1
16849EOF
16850
70f7a477 16851 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
10f2d63a
VZ
16852fi
16853
16854if test "$wxUSE_STREAMS" = "yes" ; then
698dcdb6 16855 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16856#define wxUSE_STREAMS 1
16857EOF
16858
16859fi
16860
1e487827 16861
1e6feb95 16862if test "$wxUSE_DATETIME" = "yes"; then
698dcdb6 16863 for ac_func in strptime
83307f33 16864do
698dcdb6 16865echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
0b9ab0bd 16866echo "configure:16867: checking for $ac_func" >&5
698dcdb6
VZ
16867if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16868 echo $ac_n "(cached) $ac_c" 1>&6
16869else
16870 cat > conftest.$ac_ext <<EOF
0b9ab0bd 16871#line 16872 "configure"
83307f33
VZ
16872#include "confdefs.h"
16873/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 16874 which can conflict with char $ac_func(); below. */
83307f33
VZ
16875#include <assert.h>
16876/* Override any gcc2 internal prototype to avoid an error. */
16877/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
16878 builtin and then its argument prototype would still apply. */
16879char $ac_func();
16880
16881int main() {
83307f33
VZ
16882
16883/* The GNU C library defines this for functions which it implements
16884 to always fail with ENOSYS. Some functions are actually named
16885 something starting with __ and the normal name is an alias. */
16886#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16887choke me
16888#else
698dcdb6 16889$ac_func();
83307f33
VZ
16890#endif
16891
698dcdb6 16892; return 0; }
83307f33 16893EOF
0b9ab0bd 16894if { (eval echo configure:16895: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
16895 rm -rf conftest*
16896 eval "ac_cv_func_$ac_func=yes"
16897else
16898 echo "configure: failed program was:" >&5
16899 cat conftest.$ac_ext >&5
16900 rm -rf conftest*
16901 eval "ac_cv_func_$ac_func=no"
16902fi
16903rm -f conftest*
16904fi
83307f33 16905
698dcdb6
VZ
16906if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16907 echo "$ac_t""yes" 1>&6
16908 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16909 cat >> confdefs.h <<EOF
16910#define $ac_tr_func 1
16911EOF
16912
16913else
16914 echo "$ac_t""no" 1>&6
83307f33
VZ
16915fi
16916done
16917
1e487827 16918
698dcdb6 16919 echo $ac_n "checking for timezone variable in <time.h>""... $ac_c" 1>&6
0b9ab0bd 16920echo "configure:16921: checking for timezone variable in <time.h>" >&5
698dcdb6
VZ
16921if eval "test \"`echo '$''{'wx_cv_var_timezone'+set}'`\" = set"; then
16922 echo $ac_n "(cached) $ac_c" 1>&6
16923else
16924
16925 cat > conftest.$ac_ext <<EOF
0b9ab0bd 16926#line 16927 "configure"
360d6699
VZ
16927#include "confdefs.h"
16928
b4085ce6 16929 #include <time.h>
698dcdb6
VZ
16930
16931int main() {
360d6699
VZ
16932
16933 int tz;
4f11a343 16934 tz = timezone;
698dcdb6
VZ
16935
16936; return 0; }
16937EOF
0b9ab0bd 16938if { (eval echo configure:16939: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
16939 rm -rf conftest*
16940
4f11a343 16941 wx_cv_var_timezone=timezone
698dcdb6 16942
360d6699 16943else
698dcdb6
VZ
16944 echo "configure: failed program was:" >&5
16945 cat conftest.$ac_ext >&5
16946 rm -rf conftest*
16947
16948 cat > conftest.$ac_ext <<EOF
0b9ab0bd 16949#line 16950 "configure"
360d6699
VZ
16950#include "confdefs.h"
16951
b4085ce6 16952 #include <time.h>
698dcdb6
VZ
16953
16954int main() {
360d6699
VZ
16955
16956 int tz;
16957 tz = _timezone;
698dcdb6
VZ
16958
16959; return 0; }
16960EOF
0b9ab0bd 16961if { (eval echo configure:16962: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
16962 rm -rf conftest*
16963
360d6699 16964 wx_cv_var_timezone=_timezone
698dcdb6 16965
5357c8e8 16966else
698dcdb6
VZ
16967 echo "configure: failed program was:" >&5
16968 cat conftest.$ac_ext >&5
16969 rm -rf conftest*
16970
16971 cat > conftest.$ac_ext <<EOF
0b9ab0bd 16972#line 16973 "configure"
5357c8e8
VZ
16973#include "confdefs.h"
16974
b4085ce6 16975 #include <time.h>
698dcdb6
VZ
16976
16977int main() {
5357c8e8
VZ
16978
16979 int tz;
4f11a343 16980 tz = __timezone;
698dcdb6
VZ
16981
16982; return 0; }
16983EOF
0b9ab0bd 16984if { (eval echo configure:16985: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
16985 rm -rf conftest*
16986
4f11a343 16987 wx_cv_var_timezone=__timezone
698dcdb6 16988
360d6699 16989else
698dcdb6
VZ
16990 echo "configure: failed program was:" >&5
16991 cat conftest.$ac_ext >&5
16992 rm -rf conftest*
f9bc1684
VS
16993
16994 if test "$USE_DOS" = 0 ; then
16995 { echo "configure: error: no timezone variable" 1>&2; exit 1; }
16996 fi
16997
698dcdb6 16998
360d6699 16999fi
698dcdb6
VZ
17000rm -f conftest*
17001
17002
360d6699 17003fi
698dcdb6
VZ
17004rm -f conftest*
17005
17006
6232543b 17007fi
698dcdb6
VZ
17008rm -f conftest*
17009
17010
1e487827 17011fi
703e0a69 17012
698dcdb6
VZ
17013echo "$ac_t""$wx_cv_var_timezone" 1>&6
17014
f9bc1684 17015 if test "x$wx_cv_var_timezone" != x ; then
698dcdb6 17016 cat >> confdefs.h <<EOF
360d6699
VZ
17017#define WX_TIMEZONE $wx_cv_var_timezone
17018EOF
17019
f9bc1684 17020 fi
698dcdb6
VZ
17021
17022 for ac_func in localtime
afc31813 17023do
698dcdb6 17024echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
0b9ab0bd 17025echo "configure:17026: checking for $ac_func" >&5
698dcdb6
VZ
17026if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17027 echo $ac_n "(cached) $ac_c" 1>&6
17028else
17029 cat > conftest.$ac_ext <<EOF
0b9ab0bd 17030#line 17031 "configure"
10f2d63a 17031#include "confdefs.h"
afc31813 17032/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 17033 which can conflict with char $ac_func(); below. */
afc31813
VZ
17034#include <assert.h>
17035/* Override any gcc2 internal prototype to avoid an error. */
17036/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
17037 builtin and then its argument prototype would still apply. */
17038char $ac_func();
17039
17040int main() {
afc31813
VZ
17041
17042/* The GNU C library defines this for functions which it implements
17043 to always fail with ENOSYS. Some functions are actually named
17044 something starting with __ and the normal name is an alias. */
17045#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17046choke me
17047#else
698dcdb6 17048$ac_func();
afc31813
VZ
17049#endif
17050
698dcdb6 17051; return 0; }
10f2d63a 17052EOF
0b9ab0bd 17053if { (eval echo configure:17054: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
17054 rm -rf conftest*
17055 eval "ac_cv_func_$ac_func=yes"
17056else
17057 echo "configure: failed program was:" >&5
17058 cat conftest.$ac_ext >&5
17059 rm -rf conftest*
17060 eval "ac_cv_func_$ac_func=no"
17061fi
17062rm -f conftest*
17063fi
afc31813 17064
698dcdb6
VZ
17065if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17066 echo "$ac_t""yes" 1>&6
17067 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17068 cat >> confdefs.h <<EOF
17069#define $ac_tr_func 1
17070EOF
17071
17072else
17073 echo "$ac_t""no" 1>&6
afc31813
VZ
17074fi
17075done
17076
1e487827 17077
698dcdb6
VZ
17078 if test "$ac_cv_func_localtime" = "yes"; then
17079 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
0b9ab0bd 17080echo "configure:17081: checking for tm_gmtoff in struct tm" >&5
698dcdb6
VZ
17081if eval "test \"`echo '$''{'wx_cv_struct_tm_has_gmtoff'+set}'`\" = set"; then
17082 echo $ac_n "(cached) $ac_c" 1>&6
17083else
17084
17085 cat > conftest.$ac_ext <<EOF
0b9ab0bd 17086#line 17087 "configure"
0470b1e6
VZ
17087#include "confdefs.h"
17088
b4085ce6 17089 #include <time.h>
698dcdb6
VZ
17090
17091int main() {
0470b1e6
VZ
17092
17093 struct tm tm;
17094 tm.tm_gmtoff++;
698dcdb6
VZ
17095
17096; return 0; }
17097EOF
0b9ab0bd 17098if { (eval echo configure:17099: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
17099 rm -rf conftest*
17100
f03a98d8 17101 wx_cv_struct_tm_has_gmtoff=yes
698dcdb6 17102
0470b1e6 17103else
698dcdb6
VZ
17104 echo "configure: failed program was:" >&5
17105 cat conftest.$ac_ext >&5
17106 rm -rf conftest*
17107 wx_cv_struct_tm_has_gmtoff=no
17108
0470b1e6 17109fi
698dcdb6
VZ
17110rm -f conftest*
17111
1e487827 17112fi
698dcdb6
VZ
17113
17114echo "$ac_t""$wx_cv_struct_tm_has_gmtoff" 1>&6
6232543b
VS
17115 fi
17116
17117 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
698dcdb6 17118 cat >> confdefs.h <<\EOF
6232543b
VS
17119#define WX_GMTOFF_IN_TM 1
17120EOF
0470b1e6 17121
3fcdd07b
VZ
17122 fi
17123
698dcdb6 17124 for ac_func in gettimeofday ftime
3fcdd07b 17125do
698dcdb6 17126echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
0b9ab0bd 17127echo "configure:17128: checking for $ac_func" >&5
698dcdb6
VZ
17128if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17129 echo $ac_n "(cached) $ac_c" 1>&6
17130else
17131 cat > conftest.$ac_ext <<EOF
0b9ab0bd 17132#line 17133 "configure"
3fcdd07b
VZ
17133#include "confdefs.h"
17134/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 17135 which can conflict with char $ac_func(); below. */
3fcdd07b
VZ
17136#include <assert.h>
17137/* Override any gcc2 internal prototype to avoid an error. */
17138/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
17139 builtin and then its argument prototype would still apply. */
17140char $ac_func();
17141
17142int main() {
3fcdd07b
VZ
17143
17144/* The GNU C library defines this for functions which it implements
17145 to always fail with ENOSYS. Some functions are actually named
17146 something starting with __ and the normal name is an alias. */
17147#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17148choke me
17149#else
698dcdb6 17150$ac_func();
3fcdd07b
VZ
17151#endif
17152
698dcdb6
VZ
17153; return 0; }
17154EOF
0b9ab0bd 17155if { (eval echo configure:17156: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
17156 rm -rf conftest*
17157 eval "ac_cv_func_$ac_func=yes"
17158else
17159 echo "configure: failed program was:" >&5
17160 cat conftest.$ac_ext >&5
17161 rm -rf conftest*
17162 eval "ac_cv_func_$ac_func=no"
17163fi
17164rm -f conftest*
17165fi
17166
17167if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17168 echo "$ac_t""yes" 1>&6
17169 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17170 cat >> confdefs.h <<EOF
17171#define $ac_tr_func 1
3fcdd07b
VZ
17172EOF
17173 break
698dcdb6
VZ
17174else
17175 echo "$ac_t""no" 1>&6
3fcdd07b
VZ
17176fi
17177done
17178
afc31813 17179
698dcdb6
VZ
17180 if test "$ac_cv_func_gettimeofday" = "yes"; then
17181 echo $ac_n "checking whether gettimeofday takes two arguments""... $ac_c" 1>&6
0b9ab0bd 17182echo "configure:17183: checking whether gettimeofday takes two arguments" >&5
698dcdb6
VZ
17183if eval "test \"`echo '$''{'wx_cv_func_gettimeofday_has_2_args'+set}'`\" = set"; then
17184 echo $ac_n "(cached) $ac_c" 1>&6
17185else
17186
17187
17188 ac_ext=C
17189# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1e487827 17190ac_cpp='$CXXCPP $CPPFLAGS'
698dcdb6
VZ
17191ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17192ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17193cross_compiling=$ac_cv_prog_cxx_cross
703e0a69 17194
698dcdb6
VZ
17195
17196 cat > conftest.$ac_ext <<EOF
0b9ab0bd 17197#line 17198 "configure"
10f2d63a 17198#include "confdefs.h"
afc31813
VZ
17199
17200 #include <sys/time.h>
17201 #include <unistd.h>
698dcdb6
VZ
17202
17203int main() {
afc31813
VZ
17204
17205 struct timeval tv;
776862b4 17206 gettimeofday(&tv, NULL);
698dcdb6
VZ
17207
17208; return 0; }
17209EOF
0b9ab0bd 17210if { (eval echo configure:17211: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 17211 rm -rf conftest*
afc31813 17212 wx_cv_func_gettimeofday_has_2_args=yes
10f2d63a 17213else
698dcdb6
VZ
17214 echo "configure: failed program was:" >&5
17215 cat conftest.$ac_ext >&5
17216 rm -rf conftest*
17217 cat > conftest.$ac_ext <<EOF
0b9ab0bd 17218#line 17219 "configure"
10f2d63a 17219#include "confdefs.h"
afc31813
VZ
17220
17221 #include <sys/time.h>
17222 #include <unistd.h>
698dcdb6
VZ
17223
17224int main() {
afc31813
VZ
17225
17226 struct timeval tv;
17227 gettimeofday(&tv);
698dcdb6
VZ
17228
17229; return 0; }
17230EOF
0b9ab0bd 17231if { (eval echo configure:17232: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 17232 rm -rf conftest*
afc31813 17233 wx_cv_func_gettimeofday_has_2_args=no
10f2d63a 17234else
698dcdb6
VZ
17235 echo "configure: failed program was:" >&5
17236 cat conftest.$ac_ext >&5
17237 rm -rf conftest*
776862b4
VZ
17238
17239 echo "configure: warning: failed to determine number of gettimeofday() arguments" 1>&2
17240 wx_cv_func_gettimeofday_has_2_args=unknown
17241
698dcdb6 17242
10f2d63a 17243fi
698dcdb6
VZ
17244rm -f conftest*
17245
10f2d63a 17246fi
698dcdb6 17247rm -f conftest*
afc31813 17248 ac_ext=c
698dcdb6 17249# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10f2d63a 17250ac_cpp='$CPP $CPPFLAGS'
698dcdb6
VZ
17251ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17252ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17253cross_compiling=$ac_cv_prog_cc_cross
10f2d63a 17254
698dcdb6 17255
afc31813 17256fi
698dcdb6
VZ
17257
17258echo "$ac_t""$wx_cv_func_gettimeofday_has_2_args" 1>&6
c63c7106 17259
afc31813 17260 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
698dcdb6 17261 cat >> confdefs.h <<\EOF
afc31813
VZ
17262#define WX_GETTIMEOFDAY_NO_TZ 1
17263EOF
17264
17265 fi
17266 fi
17267
698dcdb6 17268 cat >> confdefs.h <<\EOF
afc31813
VZ
17269#define wxUSE_TIMEDATE 1
17270EOF
17271
17272 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
17273fi
17274
698dcdb6 17275
b089607b
VZ
17276if test "$TOOLKIT" != "MSW"; then
17277
3a922bb4
RL
17278 if test "$wxUSE_SOCKETS" = "yes"; then
17279 echo $ac_n "checking for socket""... $ac_c" 1>&6
0b9ab0bd 17280echo "configure:17281: checking for socket" >&5
698dcdb6
VZ
17281if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
17282 echo $ac_n "(cached) $ac_c" 1>&6
c63c7106 17283else
698dcdb6 17284 cat > conftest.$ac_ext <<EOF
0b9ab0bd 17285#line 17286 "configure"
c63c7106
VZ
17286#include "confdefs.h"
17287/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 17288 which can conflict with char socket(); below. */
c63c7106
VZ
17289#include <assert.h>
17290/* Override any gcc2 internal prototype to avoid an error. */
17291/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
17292 builtin and then its argument prototype would still apply. */
17293char socket();
17294
17295int main() {
c63c7106
VZ
17296
17297/* The GNU C library defines this for functions which it implements
17298 to always fail with ENOSYS. Some functions are actually named
17299 something starting with __ and the normal name is an alias. */
17300#if defined (__stub_socket) || defined (__stub___socket)
17301choke me
17302#else
698dcdb6 17303socket();
c63c7106
VZ
17304#endif
17305
698dcdb6
VZ
17306; return 0; }
17307EOF
0b9ab0bd 17308if { (eval echo configure:17309: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
17309 rm -rf conftest*
17310 eval "ac_cv_func_socket=yes"
17311else
17312 echo "configure: failed program was:" >&5
17313 cat conftest.$ac_ext >&5
17314 rm -rf conftest*
17315 eval "ac_cv_func_socket=no"
17316fi
17317rm -f conftest*
17318fi
17319
17320if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
17321 echo "$ac_t""yes" 1>&6
c63c7106
VZ
17322 :
17323else
698dcdb6
VZ
17324 echo "$ac_t""no" 1>&6
17325echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
0b9ab0bd 17326echo "configure:17327: checking for socket in -lsocket" >&5
698dcdb6
VZ
17327ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
17328if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17329 echo $ac_n "(cached) $ac_c" 1>&6
c63c7106 17330else
698dcdb6 17331 ac_save_LIBS="$LIBS"
c63c7106 17332LIBS="-lsocket $LIBS"
698dcdb6 17333cat > conftest.$ac_ext <<EOF
0b9ab0bd 17334#line 17335 "configure"
c63c7106
VZ
17335#include "confdefs.h"
17336/* Override any gcc2 internal prototype to avoid an error. */
17337/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
17338 builtin and then its argument prototype would still apply. */
17339char socket();
17340
17341int main() {
17342socket()
17343; return 0; }
17344EOF
0b9ab0bd 17345if { (eval echo configure:17346: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
17346 rm -rf conftest*
17347 eval "ac_cv_lib_$ac_lib_var=yes"
17348else
17349 echo "configure: failed program was:" >&5
17350 cat conftest.$ac_ext >&5
17351 rm -rf conftest*
17352 eval "ac_cv_lib_$ac_lib_var=no"
17353fi
17354rm -f conftest*
17355LIBS="$ac_save_LIBS"
17356
17357fi
17358if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17359 echo "$ac_t""yes" 1>&6
c63c7106 17360 INET_LINK="$INET_LINK -lsocket"
c63c7106 17361else
698dcdb6 17362 echo "$ac_t""no" 1>&6
afc31813 17363
3a922bb4
RL
17364 echo "configure: warning: socket library not found - sockets will be disabled" 1>&2
17365 wxUSE_SOCKETS=no
17366
698dcdb6 17367
6232543b 17368fi
b089607b 17369
3a922bb4 17370
1e487827 17371fi
afc31813 17372
3a922bb4 17373 fi
51a9faba 17374
3a922bb4
RL
17375
17376 if test "$wxUSE_SOCKETS" = "yes" ; then
17377 echo $ac_n "checking what is the type of the third argument of getsockname""... $ac_c" 1>&6
0b9ab0bd 17378echo "configure:17379: checking what is the type of the third argument of getsockname" >&5
698dcdb6
VZ
17379if eval "test \"`echo '$''{'wx_cv_type_getsockname3'+set}'`\" = set"; then
17380 echo $ac_n "(cached) $ac_c" 1>&6
17381else
17382
3a922bb4
RL
17383
17384 ac_ext=C
698dcdb6 17385# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1e487827 17386ac_cpp='$CXXCPP $CPPFLAGS'
698dcdb6
VZ
17387ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17388ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17389cross_compiling=$ac_cv_prog_cxx_cross
703e0a69 17390
698dcdb6 17391
3a922bb4 17392 cat > conftest.$ac_ext <<EOF
0b9ab0bd 17393#line 17394 "configure"
afc31813 17394#include "confdefs.h"
51a9faba 17395
3a922bb4
RL
17396 #include <sys/types.h>
17397 #include <sys/socket.h>
17398
698dcdb6 17399int main() {
51a9faba 17400
3a922bb4
RL
17401 socklen_t len;
17402 getsockname(0, 0, &len);
17403
698dcdb6
VZ
17404; return 0; }
17405EOF
0b9ab0bd 17406if { (eval echo configure:17407: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 17407 rm -rf conftest*
51a9faba 17408 wx_cv_type_getsockname3=socklen_t
afc31813 17409else
698dcdb6
VZ
17410 echo "configure: failed program was:" >&5
17411 cat conftest.$ac_ext >&5
17412 rm -rf conftest*
17413 cat > conftest.$ac_ext <<EOF
0b9ab0bd 17414#line 17415 "configure"
afc31813 17415#include "confdefs.h"
51a9faba 17416
3a922bb4
RL
17417 #include <sys/types.h>
17418 #include <sys/socket.h>
17419
698dcdb6 17420int main() {
51a9faba 17421
3a922bb4
RL
17422 size_t len;
17423 getsockname(0, 0, &len);
17424
698dcdb6
VZ
17425; return 0; }
17426EOF
0b9ab0bd 17427if { (eval echo configure:17428: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 17428 rm -rf conftest*
51a9faba 17429 wx_cv_type_getsockname3=size_t
afc31813 17430else
698dcdb6
VZ
17431 echo "configure: failed program was:" >&5
17432 cat conftest.$ac_ext >&5
17433 rm -rf conftest*
17434 cat > conftest.$ac_ext <<EOF
0b9ab0bd 17435#line 17436 "configure"
afc31813 17436#include "confdefs.h"
51a9faba 17437
3a922bb4
RL
17438 #include <sys/types.h>
17439 #include <sys/socket.h>
17440
698dcdb6 17441int main() {
51a9faba 17442
3a922bb4
RL
17443 int len;
17444 getsockname(0, 0, &len);
17445
698dcdb6
VZ
17446; return 0; }
17447EOF
0b9ab0bd 17448if { (eval echo configure:17449: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 17449 rm -rf conftest*
51a9faba 17450 wx_cv_type_getsockname3=int
afc31813 17451else
698dcdb6
VZ
17452 echo "configure: failed program was:" >&5
17453 cat conftest.$ac_ext >&5
17454 rm -rf conftest*
17455 wx_cv_type_getsockname3=unknown
3a922bb4 17456
afc31813 17457fi
698dcdb6 17458rm -f conftest*
3a922bb4 17459
afc31813 17460fi
698dcdb6 17461rm -f conftest*
3a922bb4 17462
afc31813 17463fi
698dcdb6 17464rm -f conftest*
51a9faba 17465
3a922bb4 17466 ac_ext=c
698dcdb6 17467# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
afc31813 17468ac_cpp='$CPP $CPPFLAGS'
698dcdb6
VZ
17469ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17470ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17471cross_compiling=$ac_cv_prog_cc_cross
afc31813 17472
3a922bb4 17473
51a9faba 17474fi
698dcdb6
VZ
17475
17476echo "$ac_t""$wx_cv_type_getsockname3" 1>&6
51a9faba 17477
3a922bb4
RL
17478 if test "$wx_cv_type_getsockname3" = "unknown"; then
17479 wxUSE_SOCKETS=no
17480 echo "configure: warning: Couldn't find socklen_t synonym for this system" 1>&2
17481 else
17482 cat >> confdefs.h <<EOF
51a9faba
VZ
17483#define SOCKLEN_T $wx_cv_type_getsockname3
17484EOF
17485
3a922bb4 17486 fi
51a9faba
VZ
17487 fi
17488fi
afc31813 17489
51a9faba 17490if test "$wxUSE_SOCKETS" = "yes" ; then
698dcdb6 17491 cat >> confdefs.h <<\EOF
afc31813
VZ
17492#define wxUSE_SOCKETS 1
17493EOF
17494
70f7a477 17495 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
afc31813
VZ
17496fi
17497
698dcdb6 17498
dc3d889d
VZ
17499if test "$wxUSE_GUI" = "yes"; then
17500
156b2523
GD
17501 if test "$TOOLKIT" = "MAC"; then
17502 echo "configure: warning: Joystick not yet supported under Mac OS X... disabled" 1>&2
17503 wxUSE_JOYSTICK=no
17504 fi
17505 if test "$TOOLKIT" = "MOTIF"; then
17506 echo "configure: warning: Joystick not yet supported under Motif... disabled" 1>&2
17507 wxUSE_JOYSTICK=no
17508 fi
17509
3a922bb4
RL
17510 if test "$TOOLKIT" != "MSW"; then
17511 if test "$wxUSE_JOYSTICK" = "yes"; then
17512 for ac_hdr in linux/joystick.h
10f2d63a 17513do
698dcdb6
VZ
17514ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
17515echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
0b9ab0bd 17516echo "configure:17517: checking for $ac_hdr" >&5
698dcdb6
VZ
17517if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
17518 echo $ac_n "(cached) $ac_c" 1>&6
17519else
17520 cat > conftest.$ac_ext <<EOF
0b9ab0bd 17521#line 17522 "configure"
10f2d63a 17522#include "confdefs.h"
698dcdb6
VZ
17523#include <$ac_hdr>
17524EOF
17525ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
0b9ab0bd 17526{ (eval echo configure:17527: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
17527ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
17528if test -z "$ac_err"; then
17529 rm -rf conftest*
17530 eval "ac_cv_header_$ac_safe=yes"
10f2d63a 17531else
698dcdb6
VZ
17532 echo "$ac_err" >&5
17533 echo "configure: failed program was:" >&5
10f2d63a 17534 cat conftest.$ac_ext >&5
698dcdb6
VZ
17535 rm -rf conftest*
17536 eval "ac_cv_header_$ac_safe=no"
10f2d63a 17537fi
698dcdb6 17538rm -f conftest*
10f2d63a 17539fi
698dcdb6
VZ
17540if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
17541 echo "$ac_t""yes" 1>&6
17542 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
17543 cat >> confdefs.h <<EOF
17544#define $ac_tr_hdr 1
10f2d63a 17545EOF
698dcdb6
VZ
17546
17547else
17548 echo "$ac_t""no" 1>&6
10f2d63a
VZ
17549fi
17550done
17551
3a922bb4
RL
17552 if test "$ac_cv_header_linux_joystick_h" != "yes"; then
17553 wxUSE_JOYSTICK=no
156b2523 17554 echo "configure: warning: Joystick not supported by this system... disabled" 1>&2
3a922bb4
RL
17555 fi
17556 fi
17557 fi
b089607b 17558
3a922bb4
RL
17559 if test "$wxUSE_JOYSTICK" = "yes"; then
17560 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17561#define wxUSE_JOYSTICK 1
17562EOF
17563
3a922bb4
RL
17564 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
17565 fi
dc3d889d
VZ
17566fi
17567
698dcdb6 17568
b089607b
VZ
17569if test "$TOOLKIT" != "MSW"; then
17570
3a922bb4
RL
17571 HAVE_DL_FUNCS=0
17572 HAVE_SHL_FUNCS=0
0b9ab0bd 17573 if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
3a922bb4
RL
17574 if test "$USE_DARWIN" = 1; then
17575 HAVE_DL_FUNCS=1
17576 else
17577 for ac_func in dlopen
10f2d63a 17578do
698dcdb6 17579echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
0b9ab0bd 17580echo "configure:17581: checking for $ac_func" >&5
698dcdb6
VZ
17581if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17582 echo $ac_n "(cached) $ac_c" 1>&6
17583else
17584 cat > conftest.$ac_ext <<EOF
0b9ab0bd 17585#line 17586 "configure"
10f2d63a
VZ
17586#include "confdefs.h"
17587/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 17588 which can conflict with char $ac_func(); below. */
10f2d63a
VZ
17589#include <assert.h>
17590/* Override any gcc2 internal prototype to avoid an error. */
17591/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
17592 builtin and then its argument prototype would still apply. */
17593char $ac_func();
17594
17595int main() {
10f2d63a
VZ
17596
17597/* The GNU C library defines this for functions which it implements
17598 to always fail with ENOSYS. Some functions are actually named
17599 something starting with __ and the normal name is an alias. */
17600#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17601choke me
17602#else
698dcdb6 17603$ac_func();
10f2d63a
VZ
17604#endif
17605
698dcdb6
VZ
17606; return 0; }
17607EOF
0b9ab0bd 17608if { (eval echo configure:17609: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
17609 rm -rf conftest*
17610 eval "ac_cv_func_$ac_func=yes"
17611else
17612 echo "configure: failed program was:" >&5
17613 cat conftest.$ac_ext >&5
17614 rm -rf conftest*
17615 eval "ac_cv_func_$ac_func=no"
17616fi
17617rm -f conftest*
17618fi
17619
17620if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17621 echo "$ac_t""yes" 1>&6
17622 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17623 cat >> confdefs.h <<EOF
17624#define $ac_tr_func 1
17625EOF
17626
3a922bb4 17627 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17628#define HAVE_DLOPEN 1
17629EOF
17630
3a922bb4
RL
17631 HAVE_DL_FUNCS=1
17632
10f2d63a 17633else
698dcdb6
VZ
17634 echo "$ac_t""no" 1>&6
17635echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
0b9ab0bd 17636echo "configure:17637: checking for dlopen in -ldl" >&5
698dcdb6
VZ
17637ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
17638if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17639 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 17640else
698dcdb6 17641 ac_save_LIBS="$LIBS"
10f2d63a 17642LIBS="-ldl $LIBS"
698dcdb6 17643cat > conftest.$ac_ext <<EOF
0b9ab0bd 17644#line 17645 "configure"
10f2d63a
VZ
17645#include "confdefs.h"
17646/* Override any gcc2 internal prototype to avoid an error. */
17647/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
17648 builtin and then its argument prototype would still apply. */
17649char dlopen();
17650
17651int main() {
17652dlopen()
17653; return 0; }
17654EOF
0b9ab0bd 17655if { (eval echo configure:17656: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
17656 rm -rf conftest*
17657 eval "ac_cv_lib_$ac_lib_var=yes"
17658else
17659 echo "configure: failed program was:" >&5
17660 cat conftest.$ac_ext >&5
17661 rm -rf conftest*
17662 eval "ac_cv_lib_$ac_lib_var=no"
17663fi
17664rm -f conftest*
17665LIBS="$ac_save_LIBS"
17666
17667fi
17668if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17669 echo "$ac_t""yes" 1>&6
17670
3a922bb4 17671 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17672#define HAVE_DLOPEN 1
17673EOF
17674
3a922bb4 17675 HAVE_DL_FUNCS=1
3d63bc3a 17676 DL_LINK=" -ldl$DL_LINK"
3a922bb4 17677
10f2d63a 17678else
698dcdb6 17679 echo "$ac_t""no" 1>&6
10f2d63a 17680
3a922bb4 17681 for ac_func in shl_load
10f2d63a 17682do
698dcdb6 17683echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
0b9ab0bd 17684echo "configure:17685: checking for $ac_func" >&5
698dcdb6
VZ
17685if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17686 echo $ac_n "(cached) $ac_c" 1>&6
17687else
17688 cat > conftest.$ac_ext <<EOF
0b9ab0bd 17689#line 17690 "configure"
10f2d63a
VZ
17690#include "confdefs.h"
17691/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 17692 which can conflict with char $ac_func(); below. */
10f2d63a
VZ
17693#include <assert.h>
17694/* Override any gcc2 internal prototype to avoid an error. */
17695/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
17696 builtin and then its argument prototype would still apply. */
17697char $ac_func();
17698
17699int main() {
10f2d63a
VZ
17700
17701/* The GNU C library defines this for functions which it implements
17702 to always fail with ENOSYS. Some functions are actually named
17703 something starting with __ and the normal name is an alias. */
17704#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17705choke me
17706#else
698dcdb6 17707$ac_func();
10f2d63a
VZ
17708#endif
17709
698dcdb6
VZ
17710; return 0; }
17711EOF
0b9ab0bd 17712if { (eval echo configure:17713: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
17713 rm -rf conftest*
17714 eval "ac_cv_func_$ac_func=yes"
17715else
17716 echo "configure: failed program was:" >&5
17717 cat conftest.$ac_ext >&5
17718 rm -rf conftest*
17719 eval "ac_cv_func_$ac_func=no"
17720fi
17721rm -f conftest*
17722fi
17723
17724if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17725 echo "$ac_t""yes" 1>&6
17726 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17727 cat >> confdefs.h <<EOF
17728#define $ac_tr_func 1
17729EOF
17730
3a922bb4 17731 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17732#define HAVE_SHL_LOAD 1
17733EOF
17734
3a922bb4
RL
17735 HAVE_SHL_FUNCS=1
17736
10f2d63a 17737else
698dcdb6
VZ
17738 echo "$ac_t""no" 1>&6
17739echo $ac_n "checking for dld in -lshl_load""... $ac_c" 1>&6
0b9ab0bd 17740echo "configure:17741: checking for dld in -lshl_load" >&5
698dcdb6
VZ
17741ac_lib_var=`echo shl_load'_'dld | sed 'y%./+-%__p_%'`
17742if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17743 echo $ac_n "(cached) $ac_c" 1>&6
f6bcfd97 17744else
698dcdb6 17745 ac_save_LIBS="$LIBS"
f6bcfd97 17746LIBS="-lshl_load $LIBS"
698dcdb6 17747cat > conftest.$ac_ext <<EOF
0b9ab0bd 17748#line 17749 "configure"
f6bcfd97
BP
17749#include "confdefs.h"
17750/* Override any gcc2 internal prototype to avoid an error. */
17751/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
17752 builtin and then its argument prototype would still apply. */
17753char dld();
17754
17755int main() {
17756dld()
17757; return 0; }
17758EOF
0b9ab0bd 17759if { (eval echo configure:17760: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
17760 rm -rf conftest*
17761 eval "ac_cv_lib_$ac_lib_var=yes"
17762else
17763 echo "configure: failed program was:" >&5
17764 cat conftest.$ac_ext >&5
17765 rm -rf conftest*
17766 eval "ac_cv_lib_$ac_lib_var=no"
17767fi
17768rm -f conftest*
17769LIBS="$ac_save_LIBS"
f6bcfd97 17770
698dcdb6
VZ
17771fi
17772if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17773 echo "$ac_t""yes" 1>&6
17774
3a922bb4 17775 HAVE_SHL_FUNCS=1
3d63bc3a 17776 DL_LINK=" -ldld$DL_LINK"
3a922bb4 17777
698dcdb6
VZ
17778else
17779 echo "$ac_t""no" 1>&6
f6bcfd97
BP
17780fi
17781
3a922bb4 17782
10f2d63a
VZ
17783fi
17784done
17785
3a922bb4 17786
10f2d63a
VZ
17787fi
17788
3a922bb4 17789
10f2d63a
VZ
17790fi
17791done
17792
1e487827 17793
3a922bb4
RL
17794 if test "$HAVE_DL_FUNCS" = 1; then
17795 for ac_func in dlerror
f6bcfd97 17796do
698dcdb6 17797echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
0b9ab0bd 17798echo "configure:17799: checking for $ac_func" >&5
698dcdb6
VZ
17799if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17800 echo $ac_n "(cached) $ac_c" 1>&6
17801else
17802 cat > conftest.$ac_ext <<EOF
0b9ab0bd 17803#line 17804 "configure"
f6bcfd97
BP
17804#include "confdefs.h"
17805/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 17806 which can conflict with char $ac_func(); below. */
f6bcfd97
BP
17807#include <assert.h>
17808/* Override any gcc2 internal prototype to avoid an error. */
17809/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
17810 builtin and then its argument prototype would still apply. */
17811char $ac_func();
17812
17813int main() {
f6bcfd97
BP
17814
17815/* The GNU C library defines this for functions which it implements
17816 to always fail with ENOSYS. Some functions are actually named
17817 something starting with __ and the normal name is an alias. */
17818#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17819choke me
17820#else
698dcdb6 17821$ac_func();
f6bcfd97
BP
17822#endif
17823
698dcdb6
VZ
17824; return 0; }
17825EOF
0b9ab0bd 17826if { (eval echo configure:17827: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
17827 rm -rf conftest*
17828 eval "ac_cv_func_$ac_func=yes"
17829else
17830 echo "configure: failed program was:" >&5
17831 cat conftest.$ac_ext >&5
17832 rm -rf conftest*
17833 eval "ac_cv_func_$ac_func=no"
17834fi
17835rm -f conftest*
17836fi
17837
17838if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17839 echo "$ac_t""yes" 1>&6
17840 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17841 cat >> confdefs.h <<EOF
17842#define $ac_tr_func 1
17843EOF
17844 cat >> confdefs.h <<\EOF
f6bcfd97
BP
17845#define HAVE_DLERROR 1
17846EOF
17847
17848else
698dcdb6
VZ
17849 echo "$ac_t""no" 1>&6
17850echo $ac_n "checking for dlerror in -ldl""... $ac_c" 1>&6
0b9ab0bd 17851echo "configure:17852: checking for dlerror in -ldl" >&5
698dcdb6
VZ
17852ac_lib_var=`echo dl'_'dlerror | sed 'y%./+-%__p_%'`
17853if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17854 echo $ac_n "(cached) $ac_c" 1>&6
f6bcfd97 17855else
698dcdb6 17856 ac_save_LIBS="$LIBS"
f6bcfd97 17857LIBS="-ldl $LIBS"
698dcdb6 17858cat > conftest.$ac_ext <<EOF
0b9ab0bd 17859#line 17860 "configure"
f6bcfd97
BP
17860#include "confdefs.h"
17861/* Override any gcc2 internal prototype to avoid an error. */
17862/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
17863 builtin and then its argument prototype would still apply. */
17864char dlerror();
17865
17866int main() {
17867dlerror()
17868; return 0; }
17869EOF
0b9ab0bd 17870if { (eval echo configure:17871: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
17871 rm -rf conftest*
17872 eval "ac_cv_lib_$ac_lib_var=yes"
17873else
17874 echo "configure: failed program was:" >&5
17875 cat conftest.$ac_ext >&5
17876 rm -rf conftest*
17877 eval "ac_cv_lib_$ac_lib_var=no"
17878fi
17879rm -f conftest*
17880LIBS="$ac_save_LIBS"
17881
17882fi
17883if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17884 echo "$ac_t""yes" 1>&6
17885 cat >> confdefs.h <<\EOF
f6bcfd97
BP
17886#define HAVE_DLERROR 1
17887EOF
17888
698dcdb6
VZ
17889else
17890 echo "$ac_t""no" 1>&6
f6bcfd97
BP
17891fi
17892
17893fi
17894done
17895
3a922bb4
RL
17896 fi
17897 fi
f6bcfd97 17898
3a922bb4
RL
17899 if test "$HAVE_DL_FUNCS" = 0; then
17900 if test "$HAVE_SHL_FUNCS" = 0; then
17901 if test "$USE_UNIX" = 1; then
17902 echo "configure: warning: Missing dynamic loading support, several features will be disabled" 1>&2
0b9ab0bd 17903 wxUSE_DYNAMIC_LOADER=no
3a922bb4
RL
17904 wxUSE_DYNLIB_CLASS=no
17905 else
17906 echo "configure: warning: Assuming wxLibrary class works on this platform" 1>&2
17907 fi
17908 fi
10f2d63a
VZ
17909 fi
17910 fi
17911fi
17912
0b9ab0bd
RL
17913if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
17914 cat >> confdefs.h <<\EOF
17915#define wxUSE_DYNAMIC_LOADER 1
17916EOF
17917
17918elif test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
698dcdb6 17919 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17920#define wxUSE_DYNLIB_CLASS 1
17921EOF
17922
17923fi
17924
698dcdb6 17925
1e6feb95
VZ
17926if test "$wxUSE_FONTMAP" = "yes" ; then
17927 cat >> confdefs.h <<\EOF
17928#define wxUSE_FONTMAP 1
17929EOF
17930
17931fi
17932
10f2d63a 17933if test "$wxUSE_UNICODE" = "yes" ; then
698dcdb6 17934 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17935#define wxUSE_UNICODE 1
17936EOF
17937
17938fi
17939
10f2d63a 17940if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
698dcdb6 17941 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17942#define wxUSE_EXPERIMENTAL_PRINTF 1
17943EOF
17944
17945fi
17946
698dcdb6 17947
698dcdb6 17948
10f2d63a
VZ
17949IODBC_C_SRC=""
17950if test "$wxUSE_ODBC" = "yes" ; then
698dcdb6 17951 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17952#define wxUSE_ODBC 1
17953EOF
17954
17955 WXODBCFLAG="-D_IODBC_"
17956 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
10f2d63a
VZ
17957fi
17958
698dcdb6 17959
10f2d63a 17960if test "$wxUSE_POSTSCRIPT" = "yes" ; then
698dcdb6 17961 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17962#define wxUSE_POSTSCRIPT 1
17963EOF
17964
17965fi
17966
698dcdb6 17967cat >> confdefs.h <<\EOF
10f2d63a
VZ
17968#define wxUSE_AFM_FOR_POSTSCRIPT 1
17969EOF
17970
698dcdb6
VZ
17971
17972cat >> confdefs.h <<\EOF
10f2d63a
VZ
17973#define wxUSE_NORMALIZED_PS_FONTS 1
17974EOF
17975
698dcdb6
VZ
17976
17977
10f2d63a 17978if test "$wxUSE_CONSTRAINTS" = "yes"; then
698dcdb6 17979 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17980#define wxUSE_CONSTRAINTS 1
17981EOF
17982
17983 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
17984fi
17985
17986if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
fc26f4ab 17987 if test "$wxUSE_UNIVERSAL" = "yes"; then
156b2523 17988 echo "configure: warning: MDI not yet supported for wxUNIVERSAL... disabled" 1>&2
fc26f4ab
RL
17989 wxUSE_MDI_ARCHITECTURE=no
17990 fi
17991
17992 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
17993 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17994#define wxUSE_MDI_ARCHITECTURE 1
17995EOF
17996
fc26f4ab
RL
17997 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
17998 fi
10f2d63a
VZ
17999fi
18000
18001if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
698dcdb6 18002 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18003#define wxUSE_DOC_VIEW_ARCHITECTURE 1
18004EOF
18005
18006 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
18007 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
18008 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
18009 fi
18010fi
18011
18012if test "$wxUSE_HELP" = "yes"; then
698dcdb6 18013 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18014#define wxUSE_HELP 1
18015EOF
18016
18017 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
3379ed37 18018
77e13408 18019 if test "$wxUSE_MSW" = 1; then
031d8228 18020 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
29fd3c0c
VS
18021 ac_safe=`echo "htmlhelp.h" | sed 'y%./+-%__p_%'`
18022echo $ac_n "checking for htmlhelp.h""... $ac_c" 1>&6
0b9ab0bd 18023echo "configure:18024: checking for htmlhelp.h" >&5
29fd3c0c
VS
18024if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
18025 echo $ac_n "(cached) $ac_c" 1>&6
18026else
18027 cat > conftest.$ac_ext <<EOF
0b9ab0bd 18028#line 18029 "configure"
29fd3c0c
VS
18029#include "confdefs.h"
18030#include <htmlhelp.h>
18031EOF
18032ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
0b9ab0bd 18033{ (eval echo configure:18034: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
29fd3c0c
VS
18034ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
18035if test -z "$ac_err"; then
18036 rm -rf conftest*
18037 eval "ac_cv_header_$ac_safe=yes"
18038else
18039 echo "$ac_err" >&5
18040 echo "configure: failed program was:" >&5
18041 cat conftest.$ac_ext >&5
18042 rm -rf conftest*
18043 eval "ac_cv_header_$ac_safe=no"
18044fi
18045rm -f conftest*
18046fi
18047if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
18048 echo "$ac_t""yes" 1>&6
18049
18050 cat >> confdefs.h <<\EOF
18051#define wxUSE_MS_HTML_HELP 1
18052EOF
18053
18054
18055else
18056 echo "$ac_t""no" 1>&6
18057
fc26f4ab 18058 echo "configure: warning: MS HTML Help cannot be used without htmlhelp.h... disabled" 1>&2
29fd3c0c
VS
18059 wxUSE_MS_HTML_HELP=no
18060
18061fi
18062
3e44f09d 18063 fi
3379ed37 18064 fi
031d8228
VS
18065
18066 if test "$wxUSE_WXHTML_HELP" = "yes"; then
18067 if test "$wxUSE_HTML" = "yes"; then
18068 cat >> confdefs.h <<\EOF
18069#define wxUSE_WXHTML_HELP 1
18070EOF
18071
18072 else
18073 echo "configure: warning: Cannot use wxHTML-based help without wxHTML so it won't be compiled" 1>&2
18074 wxUSE_WXHTML_HELP=no
18075 fi
18076 fi
10f2d63a
VZ
18077fi
18078
18079if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
18080 if test "$wxUSE_CONSTRAINTS" != "yes"; then
698dcdb6 18081 echo "configure: warning: Printing support cannot be used without constraints so it won't be compiled without it" 1>&2
10f2d63a 18082 else
698dcdb6 18083 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18084#define wxUSE_PRINTING_ARCHITECTURE 1
18085EOF
18086
18087 fi
18088 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
18089fi
18090
18091if test "$wxUSE_PROLOGIO" = "yes" ; then
698dcdb6 18092 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18093#define wxUSE_PROLOGIO 1
18094EOF
18095
18096fi
18097
18098if test "$wxUSE_RESOURCES" = "yes" ; then
3379ed37 18099 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18100#define wxUSE_RESOURCES 1
18101EOF
18102
3379ed37 18103 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS resource"
10f2d63a
VZ
18104fi
18105
18106if test "$wxUSE_X_RESOURCES" = "yes"; then
698dcdb6 18107 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18108#define wxUSE_X_RESOURCES 1
18109EOF
18110
18111fi
18112
698dcdb6 18113
77e13408
RL
18114if test "$wxUSE_MSW" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
18115 -o "$wxUSE_CLIPBOARD" = "yes" \
18116 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
2b9bdf71 18117 for ac_hdr in ole2.h
10f2d63a 18118do
698dcdb6
VZ
18119ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
18120echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
0b9ab0bd 18121echo "configure:18122: checking for $ac_hdr" >&5
698dcdb6
VZ
18122if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
18123 echo $ac_n "(cached) $ac_c" 1>&6
18124else
18125 cat > conftest.$ac_ext <<EOF
0b9ab0bd 18126#line 18127 "configure"
10f2d63a 18127#include "confdefs.h"
698dcdb6
VZ
18128#include <$ac_hdr>
18129EOF
18130ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
0b9ab0bd 18131{ (eval echo configure:18132: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
18132ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
18133if test -z "$ac_err"; then
18134 rm -rf conftest*
18135 eval "ac_cv_header_$ac_safe=yes"
1e487827 18136else
698dcdb6
VZ
18137 echo "$ac_err" >&5
18138 echo "configure: failed program was:" >&5
10f2d63a 18139 cat conftest.$ac_ext >&5
698dcdb6
VZ
18140 rm -rf conftest*
18141 eval "ac_cv_header_$ac_safe=no"
10f2d63a 18142fi
698dcdb6 18143rm -f conftest*
10f2d63a 18144fi
698dcdb6
VZ
18145if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
18146 echo "$ac_t""yes" 1>&6
18147 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
18148 cat >> confdefs.h <<EOF
18149#define $ac_tr_hdr 1
10f2d63a 18150EOF
698dcdb6
VZ
18151
18152else
18153 echo "$ac_t""no" 1>&6
10f2d63a
VZ
18154fi
18155done
18156
698dcdb6 18157
2b9bdf71
VZ
18158 if test "$ac_cv_header_ole2_h" = "yes" ; then
18159 if test "$GCC" = yes ; then
18160 ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)"
2b9bdf71 18161 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
3d63bc3a 18162 LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
2b9bdf71 18163 cat >> confdefs.h <<\EOF
4f11a343
VS
18164#define wxUSE_OLE 1
18165EOF
18166
b64f0a5f 18167
2b9bdf71
VZ
18168 fi
18169
18170 cat >> confdefs.h <<\EOF
18171#define wxUSE_DATAOBJ 1
18172EOF
18173
18174 else
18175 echo "configure: warning: Some features disabled because OLE headers not found" 1>&2
18176
18177 wxUSE_CLIPBOARD=no
18178 wxUSE_DRAG_AND_DROP=no
18179 wxUSE_DATAOBJ=no
18180 fi
18181
77e13408 18182 if test "$wxUSE_METAFILE" = "yes"; then
2b9bdf71 18183 cat >> confdefs.h <<\EOF
b64f0a5f
RL
18184#define wxUSE_METAFILE 1
18185EOF
18186
2b9bdf71
VZ
18187
18188 cat >> confdefs.h <<\EOF
b64f0a5f
RL
18189#define wxUSE_ENH_METAFILE 1
18190EOF
18191
2b9bdf71
VZ
18192 fi
18193fi
18194
18195if test "$wxUSE_IPC" = "yes"; then
18196 if test "$wxUSE_SOCKETS" != "yes"; then
156b2523 18197 echo "configure: warning: wxWindows IPC classes require sockets... disabled" 1>&2
2b9bdf71
VZ
18198 fi
18199
18200 cat >> confdefs.h <<\EOF
18201#define wxUSE_IPC 1
18202EOF
18203
18204fi
18205
18206if test "$wxUSE_CLIPBOARD" = "yes"; then
18207 cat >> confdefs.h <<\EOF
18208#define wxUSE_CLIPBOARD 1
18209EOF
18210
673f4220 18211
e33ef661 18212 cat >> confdefs.h <<\EOF
673f4220
VZ
18213#define wxUSE_DATAOBJ 1
18214EOF
18215
2b9bdf71
VZ
18216fi
18217
18218if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
18219 if test "$wxUSE_GTK" = 1; then
18220 if test "$WXGTK12" != 1; then
156b2523 18221 echo "configure: warning: Drag and drop is only supported under GTK+ 1.2... disabled" 1>&2
10f2d63a
VZ
18222 wxUSE_DRAG_AND_DROP=no
18223 fi
18224 fi
18225
2b9bdf71 18226 if test "$wxUSE_MOTIF" = 1; then
156b2523 18227 echo "configure: warning: Drag and drop not yet supported under Motif... disabled" 1>&2
2b9bdf71
VZ
18228 wxUSE_DRAG_AND_DROP=no
18229 fi
18230
18231 if test "$wxUSE_MAC" = 1; then
156b2523 18232 echo "configure: warning: Drag and drop not yet supported under Mac OS X... disabled" 1>&2
2b9bdf71
VZ
18233 wxUSE_DRAG_AND_DROP=no
18234 fi
18235
10f2d63a 18236 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
698dcdb6 18237 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18238#define wxUSE_DRAG_AND_DROP 1
18239EOF
18240
18241 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
18242 fi
18243
18244fi
18245
18246if test "$wxUSE_SPLINES" = "yes" ; then
698dcdb6 18247 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18248#define wxUSE_SPLINES 1
18249EOF
18250
18251fi
18252
698dcdb6 18253
1e6feb95
VZ
18254USES_CONTROLS=0
18255if test "$wxUSE_CONTROLS" = "yes"; then
18256 USES_CONTROLS=1
18257fi
18258
10f2d63a 18259if test "$wxUSE_ACCEL" = "yes"; then
698dcdb6 18260 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18261#define wxUSE_ACCEL 1
18262EOF
18263
1e6feb95
VZ
18264 USES_CONTROLS=1
18265fi
18266
18267if test "$wxUSE_BUTTON" = "yes"; then
18268 cat >> confdefs.h <<\EOF
18269#define wxUSE_BUTTON 1
18270EOF
18271
18272 USES_CONTROLS=1
18273fi
18274
18275if test "$wxUSE_BMPBUTTON" = "yes"; then
18276 cat >> confdefs.h <<\EOF
18277#define wxUSE_BMPBUTTON 1
18278EOF
18279
18280 USES_CONTROLS=1
18281fi
18282
18283if test "$wxUSE_CALCTRL" = "yes"; then
18284 cat >> confdefs.h <<\EOF
18285#define wxUSE_CALENDARCTRL 1
18286EOF
18287
18288 USES_CONTROLS=1
18289 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
10f2d63a
VZ
18290fi
18291
18292if test "$wxUSE_CARET" = "yes"; then
698dcdb6 18293 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18294#define wxUSE_CARET 1
18295EOF
18296
1e6feb95 18297 USES_CONTROLS=1
10f2d63a
VZ
18298 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
18299fi
18300
18301if test "$wxUSE_COMBOBOX" = "yes"; then
698dcdb6 18302 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18303#define wxUSE_COMBOBOX 1
18304EOF
18305
1e6feb95 18306 USES_CONTROLS=1
10f2d63a
VZ
18307fi
18308
18309if test "$wxUSE_CHOICE" = "yes"; then
698dcdb6 18310 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18311#define wxUSE_CHOICE 1
18312EOF
18313
1e6feb95 18314 USES_CONTROLS=1
10f2d63a
VZ
18315fi
18316
18317if test "$wxUSE_CHECKBOX" = "yes"; then
698dcdb6 18318 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18319#define wxUSE_CHECKBOX 1
18320EOF
18321
1e6feb95 18322 USES_CONTROLS=1
10f2d63a
VZ
18323fi
18324
18325if test "$wxUSE_CHECKLST" = "yes"; then
698dcdb6 18326 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18327#define wxUSE_CHECKLISTBOX 1
18328EOF
18329
1e6feb95 18330 USES_CONTROLS=1
10f2d63a
VZ
18331 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
18332fi
18333
18334if test "$wxUSE_GAUGE" = "yes"; then
698dcdb6 18335 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18336#define wxUSE_GAUGE 1
18337EOF
18338
1e6feb95 18339 USES_CONTROLS=1
10f2d63a
VZ
18340fi
18341
d6a55c4b
VZ
18342if test "$wxUSE_NEW_GRID" = "yes"; then
18343 wxUSE_GRID="yes"
698dcdb6 18344 cat >> confdefs.h <<\EOF
d6a55c4b 18345#define wxUSE_NEW_GRID 1
10f2d63a
VZ
18346EOF
18347
1e6feb95 18348 USES_CONTROLS=1
d6a55c4b 18349 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS newgrid"
10f2d63a
VZ
18350fi
18351
d6a55c4b 18352if test "$wxUSE_GRID" = "yes"; then
698dcdb6 18353 cat >> confdefs.h <<\EOF
d6a55c4b 18354#define wxUSE_GRID 1
10f2d63a
VZ
18355EOF
18356
1e6feb95 18357 USES_CONTROLS=1
d6a55c4b 18358 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
10f2d63a
VZ
18359fi
18360
18361if test "$wxUSE_IMAGLIST" = "yes"; then
698dcdb6 18362 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18363#define wxUSE_IMAGLIST 1
18364EOF
18365
18366fi
18367
18368if test "$wxUSE_LISTBOX" = "yes"; then
698dcdb6 18369 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18370#define wxUSE_LISTBOX 1
18371EOF
18372
1e6feb95 18373 USES_CONTROLS=1
10f2d63a
VZ
18374fi
18375
18376if test "$wxUSE_LISTCTRL" = "yes"; then
18377 if test "$wxUSE_IMAGLIST" = "yes"; then
698dcdb6 18378 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18379#define wxUSE_LISTCTRL 1
18380EOF
18381
1e6feb95 18382 USES_CONTROLS=1
10f2d63a
VZ
18383 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
18384 else
698dcdb6 18385 echo "configure: warning: wxListCtrl requires wxImageList and won't be compiled without it" 1>&2
10f2d63a
VZ
18386 fi
18387fi
18388
18389if test "$wxUSE_NOTEBOOK" = "yes"; then
698dcdb6 18390 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18391#define wxUSE_NOTEBOOK 1
18392EOF
18393
1e6feb95 18394 USES_CONTROLS=1
10f2d63a
VZ
18395 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
18396fi
18397
24176f2c
GD
18398if test "$wxUSE_PROPSHEET" = "yes"; then
18399 cat >> confdefs.h <<\EOF
18400#define wxUSE_PROPSHEET 1
18401EOF
18402
18403 USES_CONTROLS=1
18404 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS proplist"
18405fi
18406
10f2d63a 18407if test "$wxUSE_RADIOBOX" = "yes"; then
698dcdb6 18408 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18409#define wxUSE_RADIOBOX 1
18410EOF
18411
1e6feb95 18412 USES_CONTROLS=1
10f2d63a
VZ
18413fi
18414
18415if test "$wxUSE_RADIOBTN" = "yes"; then
698dcdb6 18416 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18417#define wxUSE_RADIOBTN 1
18418EOF
18419
1e6feb95 18420 USES_CONTROLS=1
10f2d63a
VZ
18421fi
18422
18423if test "$wxUSE_SASH" = "yes"; then
698dcdb6 18424 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18425#define wxUSE_SASH 1
18426EOF
18427
18428 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
18429fi
18430
18431if test "$wxUSE_SCROLLBAR" = "yes"; then
698dcdb6 18432 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18433#define wxUSE_SCROLLBAR 1
18434EOF
18435
1e6feb95 18436 USES_CONTROLS=1
741a9306 18437 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
10f2d63a
VZ
18438fi
18439
18440if test "$wxUSE_SLIDER" = "yes"; then
698dcdb6 18441 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18442#define wxUSE_SLIDER 1
18443EOF
18444
1e6feb95 18445 USES_CONTROLS=1
10f2d63a
VZ
18446fi
18447
18448if test "$wxUSE_SPINBTN" = "yes"; then
698dcdb6 18449 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18450#define wxUSE_SPINBTN 1
18451EOF
18452
1e6feb95 18453 USES_CONTROLS=1
10f2d63a
VZ
18454fi
18455
56cfaa52 18456if test "$wxUSE_SPINCTRL" = "yes"; then
698dcdb6 18457 cat >> confdefs.h <<\EOF
56cfaa52
RR
18458#define wxUSE_SPINCTRL 1
18459EOF
18460
1e6feb95 18461 USES_CONTROLS=1
56cfaa52
RR
18462fi
18463
10f2d63a 18464if test "$wxUSE_SPLITTER" = "yes"; then
698dcdb6 18465 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18466#define wxUSE_SPLITTER 1
18467EOF
18468
18469 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
18470fi
18471
18472if test "$wxUSE_STATBMP" = "yes"; then
698dcdb6 18473 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18474#define wxUSE_STATBMP 1
18475EOF
18476
1e6feb95 18477 USES_CONTROLS=1
10f2d63a
VZ
18478fi
18479
18480if test "$wxUSE_STATBOX" = "yes"; then
698dcdb6 18481 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18482#define wxUSE_STATBOX 1
18483EOF
18484
1e6feb95
VZ
18485 USES_CONTROLS=1
18486fi
18487
18488if test "$wxUSE_STATTEXT" = "yes"; then
18489 cat >> confdefs.h <<\EOF
18490#define wxUSE_STATTEXT 1
18491EOF
18492
18493 USES_CONTROLS=1
10f2d63a
VZ
18494fi
18495
18496if test "$wxUSE_STATLINE" = "yes"; then
18497 if test "$wxUSE_WINE" = 1 ; then
698dcdb6 18498 echo "configure: warning: wxStaticLine is not supported under WINE" 1>&2
10f2d63a 18499 else
698dcdb6 18500 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18501#define wxUSE_STATLINE 1
18502EOF
18503
1e6feb95 18504 USES_CONTROLS=1
10f2d63a
VZ
18505 fi
18506fi
18507
18508if test "$wxUSE_STATUSBAR" = "yes"; then
698dcdb6 18509 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18510#define wxUSE_STATUSBAR 1
18511EOF
18512
1e6feb95 18513 USES_CONTROLS=1
698dcdb6 18514
2286341c 18515 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
10f2d63a
VZ
18516fi
18517
18518if test "$wxUSE_TABDIALOG" = "yes"; then
698dcdb6 18519 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18520#define wxUSE_TAB_DIALOG 1
18521EOF
18522
18523 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
18524fi
18525
1e6feb95
VZ
18526if test "$wxUSE_TEXTCTRL" = "yes"; then
18527 cat >> confdefs.h <<\EOF
18528#define wxUSE_TEXTCTRL 1
18529EOF
18530
18531 USES_CONTROLS=1
18532 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
18533fi
18534
1db8dc4a 18535if test "$wxUSE_TOGGLEBTN" = "yes"; then
156b2523
GD
18536 if test "$wxUSE_MAC" = 1; then
18537 echo "configure: warning: Toggle button not yet supported under Mac OS X... disabled" 1>&2
18538 wxUSE_TOGGLEBTN=no
18539 fi
18540 if test "$wxUSE_UNIVERSAL" = "yes"; then
18541 echo "configure: warning: Toggle button not yet supported under wxUNIVERSAL... disabled" 1>&2
a45d7ab7
GD
18542 wxUSE_TOGGLEBTN=no
18543 fi
18544
18545 if test "$wxUSE_TOGGLEBTN" = "yes"; then
18546 cat >> confdefs.h <<\EOF
1db8dc4a
VZ
18547#define wxUSE_TOGGLEBTN 1
18548EOF
18549
1e6feb95 18550 USES_CONTROLS=1
a45d7ab7 18551 fi
1db8dc4a
VZ
18552fi
18553
360d6699 18554if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
698dcdb6 18555 cat >> confdefs.h <<\EOF
360d6699
VZ
18556#define wxUSE_TOOLBAR_SIMPLE 1
18557EOF
18558
18559 wxUSE_TOOLBAR="yes"
1e6feb95 18560 USES_CONTROLS=1
360d6699
VZ
18561fi
18562
10f2d63a 18563if test "$wxUSE_TOOLBAR" = "yes"; then
698dcdb6 18564 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18565#define wxUSE_TOOLBAR 1
18566EOF
18567
1e6feb95 18568 USES_CONTROLS=1
698dcdb6 18569
360d6699
VZ
18570 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
18571 wxUSE_TOOLBAR_NATIVE="yes"
18572 fi
18573
1e6feb95
VZ
18574 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
18575 cat >> confdefs.h <<\EOF
360d6699
VZ
18576#define wxUSE_TOOLBAR_NATIVE 1
18577EOF
18578
1e6feb95
VZ
18579 USES_CONTROLS=1
18580 fi
18581
18582 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
360d6699
VZ
18583fi
18584
10f2d63a
VZ
18585if test "$wxUSE_TOOLTIPS" = "yes"; then
18586 if test "$wxUSE_MOTIF" = 1; then
156b2523 18587 echo "configure: warning: wxTooltip not supported yet under Motif... disabled" 1>&2
10f2d63a
VZ
18588 else
18589 if test "$wxUSE_WINE" = 1; then
156b2523 18590 echo "configure: warning: wxTooltip not supported under WINE... disabled" 1>&2
10f2d63a 18591 else
69d27ff7 18592 if test "$wxUSE_UNIVERSAL" = "yes"; then
156b2523 18593 echo "configure: warning: wxTooltip not supported yet in wxUNIVERSAL... disabled" 1>&2
69d27ff7
MB
18594 else
18595 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18596#define wxUSE_TOOLTIPS 1
18597EOF
18598
69d27ff7 18599 fi
10f2d63a
VZ
18600 fi
18601 fi
18602fi
18603
18604if test "$wxUSE_TREECTRL" = "yes"; then
18605 if test "$wxUSE_IMAGLIST" = "yes"; then
698dcdb6 18606 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18607#define wxUSE_TREECTRL 1
18608EOF
18609
1e6feb95 18610 USES_CONTROLS=1
10f2d63a
VZ
18611 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
18612 else
698dcdb6 18613 echo "configure: warning: wxTreeCtrl requires wxImageList and won't be compiled without it" 1>&2
10f2d63a
VZ
18614 fi
18615fi
18616
9f41d601 18617if test "$wxUSE_POPUPWIN" = "yes"; then
6abe4b65 18618 if test "$wxUSE_MAC" = 1; then
156b2523 18619 echo "configure: warning: Popup window not yet supported under Mac OS X... disabled" 1>&2
6abe4b65 18620 else
485cf710
VZ
18621 if test "$wxUSE_MOTIF" = 1; then
18622 echo "configure: warning: wxPopupWindow not yet supported under Motif... disabled" 1>&2
18623 else
18624 cat >> confdefs.h <<\EOF
9f41d601
RR
18625#define wxUSE_POPUPWIN 1
18626EOF
18627
9926e4a4 18628
485cf710
VZ
18629 USES_CONTROLS=1
18630 fi
6abe4b65 18631 fi
9f41d601
RR
18632fi
18633
dd964dcc
VZ
18634if test "$wxUSE_TIPWINDOW" = "yes"; then
18635 cat >> confdefs.h <<\EOF
18636#define wxUSE_TIPWINDOW 1
18637EOF
18638
18639fi
18640
1e6feb95
VZ
18641if test "$USES_CONTROLS" = 1; then
18642 cat >> confdefs.h <<\EOF
18643#define wxUSE_CONTROLS 1
10f2d63a
VZ
18644EOF
18645
10f2d63a
VZ
18646fi
18647
1e6feb95 18648
24176f2c
GD
18649if test "$wxUSE_TREELAYOUT" = "yes"; then
18650 cat >> confdefs.h <<\EOF
18651#define wxUSE_TREELAYOUT 1
18652EOF
18653
18654 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treelay"
18655fi
1e6feb95 18656
24fd6d87
VZ
18657if test "$wxUSE_DRAGIMAGE" = "yes"; then
18658 cat >> confdefs.h <<\EOF
18659#define wxUSE_DRAGIMAGE 1
18660EOF
18661
18662 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
18663fi
18664
1e6feb95 18665if test "$wxUSE_MENUS" = "yes"; then
698dcdb6 18666 cat >> confdefs.h <<\EOF
1e6feb95 18667#define wxUSE_MENUS 1
10f2d63a
VZ
18668EOF
18669
1e6feb95 18670 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
10f2d63a
VZ
18671fi
18672
1e6feb95
VZ
18673if test "$wxUSE_METAFILE" = "yes"; then
18674 cat >> confdefs.h <<\EOF
18675#define wxUSE_METAFILE 1
10f2d63a
VZ
18676EOF
18677
10f2d63a
VZ
18678fi
18679
1e6feb95
VZ
18680if test "$wxUSE_MIMETYPE" = "yes"; then
18681 cat >> confdefs.h <<\EOF
18682#define wxUSE_MIMETYPE 1
10f2d63a
VZ
18683EOF
18684
10f2d63a
VZ
18685fi
18686
3e44f09d
VZ
18687if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
18688 cat >> confdefs.h <<\EOF
18689#define wxUSE_SYSTEM_OPTIONS 1
18690EOF
18691
18692fi
18693
10f2d63a 18694if test "$wxUSE_MINIFRAME" = "yes"; then
698dcdb6 18695 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18696#define wxUSE_MINIFRAME 1
18697EOF
18698
18699 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
18700fi
18701
18702if test "$wxUSE_HTML" = "yes"; then
698dcdb6 18703 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18704#define wxUSE_HTML 1
18705EOF
18706
18707 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html"
10f2d63a
VZ
18708fi
18709
18710if test "$wxUSE_VALIDATORS" = "yes"; then
698dcdb6 18711 cat >> confdefs.h <<\EOF
1e487827
VS
18712#define wxUSE_VALIDATORS 1
18713EOF
703e0a69 18714
698dcdb6
VZ
18715 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
18716fi
18717
edae8572
VZ
18718if test "$wxUSE_PALETTE" = "yes" ; then
18719 cat >> confdefs.h <<\EOF
18720#define wxUSE_PALETTE 1
18721EOF
18722
18723fi
18724
698dcdb6
VZ
18725if test "$wxUSE_IMAGE" = "yes" ; then
18726 cat >> confdefs.h <<\EOF
18727#define wxUSE_IMAGE 1
18728EOF
18729
18730fi
18731
18732if test "$wxUSE_GIF" = "yes" ; then
18733 cat >> confdefs.h <<\EOF
18734#define wxUSE_GIF 1
18735EOF
18736
18737fi
18738
18739if test "$wxUSE_PCX" = "yes" ; then
18740 cat >> confdefs.h <<\EOF
18741#define wxUSE_PCX 1
18742EOF
18743
18744fi
18745
18746if test "$wxUSE_PNM" = "yes" ; then
18747 cat >> confdefs.h <<\EOF
18748#define wxUSE_PNM 1
18749EOF
18750
18751fi
18752
18753if test "$wxUSE_XPM" = "yes" ; then
18754 cat >> confdefs.h <<\EOF
18755#define wxUSE_XPM 1
18756EOF
18757
18758fi
18759
18760
1e6feb95
VZ
18761if test "$wxUSE_CHOICEDLG" = "yes"; then
18762 cat >> confdefs.h <<\EOF
18763#define wxUSE_CHOICEDLG 1
18764EOF
18765
18766fi
18767
18768if test "$wxUSE_COLOURDLG" = "yes"; then
18769 cat >> confdefs.h <<\EOF
18770#define wxUSE_COLOURDLG 1
18771EOF
18772
18773fi
18774
18775if test "$wxUSE_FILEDLG" = "yes"; then
18776 cat >> confdefs.h <<\EOF
18777#define wxUSE_FILEDLG 1
18778EOF
18779
18780fi
18781
8db37e06
VZ
18782if test "$wxUSE_FINDREPLDLG" = "yes"; then
18783 cat >> confdefs.h <<\EOF
18784#define wxUSE_FINDREPLDLG 1
18785EOF
18786
18787fi
18788
1e6feb95
VZ
18789if test "$wxUSE_FONTDLG" = "yes"; then
18790 cat >> confdefs.h <<\EOF
18791#define wxUSE_FONTDLG 1
18792EOF
18793
18794fi
18795
18796if test "$wxUSE_DIRDLG" = "yes"; then
18797 if test "$wxUSE_CONSTRAINTS" != "yes"; then
18798 echo "configure: warning: wxDirDialog requires constraints so it won't be compiled without them" 1>&2
18799 else
18800 if test "$wxUSE_TREECTRL" != "yes"; then
18801 echo "configure: warning: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" 1>&2
18802 else
18803 cat >> confdefs.h <<\EOF
18804#define wxUSE_DIRDLG 1
18805EOF
18806
18807 fi
18808 fi
18809fi
18810
18811if test "$wxUSE_MSGDLG" = "yes"; then
18812 cat >> confdefs.h <<\EOF
18813#define wxUSE_MSGDLG 1
18814EOF
18815
18816fi
18817
18818if test "$wxUSE_NUMBERDLG" = "yes"; then
18819 cat >> confdefs.h <<\EOF
18820#define wxUSE_NUMBERDLG 1
18821EOF
18822
18823fi
18824
18825if test "$wxUSE_PROGRESSDLG" = "yes"; then
18826 if test "$wxUSE_CONSTRAINTS" != "yes"; then
18827 echo "configure: warning: wxProgressDialog requires constraints so it won't be compiled without them" 1>&2
18828 else
18829 cat >> confdefs.h <<\EOF
18830#define wxUSE_PROGRESSDLG 1
18831EOF
18832
18833 fi
18834fi
18835
cbca9943
VZ
18836if test "$wxUSE_SPLASH" = "yes"; then
18837 cat >> confdefs.h <<\EOF
18838#define wxUSE_SPLASH 1
18839EOF
18840
18841fi
18842
1e6feb95
VZ
18843if test "$wxUSE_STARTUP_TIPS" = "yes"; then
18844 if test "$wxUSE_CONSTRAINTS" != "yes"; then
18845 echo "configure: warning: Startup tips requires constraints and won't be compiled without them" 1>&2
18846 else
18847 cat >> confdefs.h <<\EOF
18848#define wxUSE_STARTUP_TIPS 1
18849EOF
18850
18851 fi
18852fi
18853
18854if test "$wxUSE_TEXTDLG" = "yes"; then
18855 cat >> confdefs.h <<\EOF
18856#define wxUSE_TEXTDLG 1
18857EOF
18858
18859fi
18860
b1f5d087
VZ
18861if test "$wxUSE_WIZARDDLG" = "yes"; then
18862 cat >> confdefs.h <<\EOF
18863#define wxUSE_WIZARDDLG 1
18864EOF
18865
18866 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
18867fi
18868
1e6feb95 18869
698dcdb6
VZ
18870if test "$cross_compiling" = "yes"; then
18871 OSINFO="\"$host\""
18872else
18873 OSINFO=`uname -s -r -m`
18874 OSINFO="\"$OSINFO\""
18875fi
18876
18877cat >> confdefs.h <<EOF
18878#define WXWIN_OS_DESCRIPTION $OSINFO
18879EOF
18880
18881
18882
06dda230
VZ
18883if test "x$prefix" != "xNONE"; then
18884 wxPREFIX=$prefix
18885else
18886 wxPREFIX=$ac_default_prefix
18887fi
18888
7e67ed0d 18889cat >> confdefs.h <<EOF
06dda230 18890#define wxINSTALL_PREFIX "$wxPREFIX"
7e67ed0d
VZ
18891EOF
18892
18893
18894
698dcdb6 18895
3a922bb4 18896
f11bdd03 18897if test "$wxUSE_MAC" = 1 ; then
3d63bc3a 18898 LDFLAGS="$LDFLAGS -framework Carbon -framework System"
698dcdb6 18899fi
3a922bb4 18900
3d63bc3a
RL
18901
18902LIBS="$ZLIB_LINK$POSIX4_LINK$INET_LINK$WCHAR_LINK$THREADS_LINK$DL_LINK -lm$LIBS"
18903
698dcdb6 18904if test "$wxUSE_GUI" = "yes"; then
3d63bc3a
RL
18905
18906 LIBS=" $GUI_TK_LIBRARY$PNG_LINK$JPEG_LINK$TIFF_LINK$FREETYPE_LINK$LIBS"
3a922bb4
RL
18907
18908
18909 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS controls dialogs \
18910 drawing dynamic erase event exec font image \
18911 minimal richedit rotate widgets"
18912
3a922bb4
RL
18913 CPPFLAGS="$CPPFLAGS \$(EXTRADEFS) \$(APPEXTRADEFS)"
18914else
18915 SAMPLES_SUBDIRS="console"
698dcdb6
VZ
18916fi
18917
698dcdb6 18918
d714471b 18919INCLUDES="-I\${top_builddir}/lib/wx/include/${TOOLCHAIN_NAME} -I\${top_srcdir}/include \
3e44f09d
VZ
18920$REGEX_INCLUDE $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE \
18921$FREETYPE_INCLUDE $TOOLKIT_INCLUDE"
698dcdb6 18922
63e7762e 18923if test "$wxUSE_GTK" = 1; then
3d63bc3a 18924 WXCONFIG_INCLUDE=
698dcdb6
VZ
18925else
18926 WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
18927fi
18928
18929if test "$GXX" = yes ; then
18930 CXXWARNINGS="-Wall"
88e30f2b
RL
18931
18932 if test "$wxUSE_NO_DEPS" = "no" ; then
18933 CFLAGS="-MMD $CFLAGS"
18934 CXXFLAGS="-MMD $CXXFLAGS"
18935 fi
18936fi
18937
3d63bc3a 18938EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG$PROFILE $OPTIMISE $INCLUDES"
698dcdb6
VZ
18939
18940CFLAGS=`echo $CFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'`
18941CXXFLAGS=`echo $CXXFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \+/ /g'`
18942
3d63bc3a 18943LDFLAGS="$LDFLAGS$PROFILE"
698dcdb6 18944
698dcdb6
VZ
18945SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
18946
18947
18948
18949
18950
18951
18952
18953
18954
18955
18956
18957
18958
18959
18960
18961
18962
18963
18964
18965
18966
18967
18968
18969
18970
18971
18972
18973
18974
18975
18976
18977
18978
18979
18980
18981
18982
18983
18984
18985
18986
18987
18988
18989
18990
18991
18992
18993
18994
18995
18996
18997
18998
18999
19000
19001
19002
19003
19004
19005
19006
19007
19008
19009
19010
19011
19012
32832908 19013
2f51a9ec
GD
19014
19015
19016
19017
f6bcfd97 19018
dad6c0ea 19019
caa2c79b 19020
3711412e 19021
1e6feb95
VZ
19022
19023
885d4bf5
VS
19024
19025
19026
19027
62d0491b 19028
10f2d63a
VZ
19029
19030
698dcdb6 19031echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
0b9ab0bd 19032echo "configure:19033: checking whether ${MAKE-make} sets \${MAKE}" >&5
698dcdb6
VZ
19033set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
19034if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
19035 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 19036else
698dcdb6 19037 cat > conftestmake <<\EOF
10f2d63a
VZ
19038all:
19039 @echo 'ac_maketemp="${MAKE}"'
19040EOF
19041# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
698dcdb6 19042eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
10f2d63a
VZ
19043if test -n "$ac_maketemp"; then
19044 eval ac_cv_prog_make_${ac_make}_set=yes
19045else
19046 eval ac_cv_prog_make_${ac_make}_set=no
19047fi
698dcdb6 19048rm -f conftestmake
10f2d63a
VZ
19049fi
19050if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
698dcdb6 19051 echo "$ac_t""yes" 1>&6
10f2d63a
VZ
19052 SET_MAKE=
19053else
698dcdb6 19054 echo "$ac_t""no" 1>&6
10f2d63a
VZ
19055 SET_MAKE="MAKE=${MAKE-make}"
19056fi
19057
698dcdb6 19058
3a922bb4
RL
19059if test -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h; then
19060 mv -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h setup.h
00cf1208 19061fi
665bbe97 19062
698dcdb6 19063
10f2d63a 19064
2224580a 19065if test "$wxUSE_GUI" = "yes"; then
ec90f5e5 19066 wx_cv_path_samplesubdirs=$SAMPLES_SUBDIRS
e8482f24
GL
19067 wx_cv_path_ifs=$PATH_IFS
19068 wx_cv_program_ext=$PROGRAM_EXT
19069 wx_cv_target_library=$WX_TARGET_LIBRARY
7b6058cd 19070 wx_cv_target_library_gl=$WX_TARGET_LIBRARY_GL
3711412e 19071 wx_cv_target_libtype=$WX_TARGET_LIBRARY_TYPE
93a20a27 19072 export wx_cv_path_samplesubdirs wx_cv_path_ifs wx_cv_program_ext \
7b6058cd 19073 wx_cv_target_library wx_cv_target_library_gl wx_cv_target_libtype
698dcdb6 19074 subdirs="demos samples utils contrib"
2224580a
VZ
19075
19076fi
10f2d63a 19077
698dcdb6
VZ
19078trap '' 1 2 15
19079cat > confcache <<\EOF
10f2d63a
VZ
19080# This file is a shell script that caches the results of configure
19081# tests run on this system so they can be shared between configure
698dcdb6
VZ
19082# scripts and configure runs. It is not useful on other systems.
19083# If it contains results you don't want to keep, you may remove or edit it.
10f2d63a 19084#
698dcdb6
VZ
19085# By default, configure uses ./config.cache as the cache file,
19086# creating it if it does not exist already. You can give configure
19087# the --cache-file=FILE option to use a different cache file; that is
19088# what configure does when it calls configure scripts in
19089# subdirectories, so they share the cache.
19090# Giving --cache-file=/dev/null disables caching, for debugging configure.
19091# config.status only pays attention to the cache file if you give it the
19092# --recheck option to rerun configure.
10f2d63a 19093#
698dcdb6 19094EOF
10f2d63a
VZ
19095# The following way of writing the cache mishandles newlines in values,
19096# but we know of no workaround that is simple, portable, and efficient.
19097# So, don't put newlines in cache variables' values.
19098# Ultrix sh set writes to stderr and can't be redirected directly,
19099# and sets the high bit in the cache file unless we assign to the vars.
698dcdb6
VZ
19100(set) 2>&1 |
19101 case `(ac_space=' '; set | grep ac_space) 2>&1` in
19102 *ac_space=\ *)
19103 # `set' does not quote correctly, so add quotes (double-quote substitution
19104 # turns \\\\ into \\, and sed turns \\ into \).
19105 sed -n \
19106 -e "s/'/'\\\\''/g" \
19107 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
19108 ;;
19109 *)
19110 # `set' quotes correctly as required by POSIX, so do not add quotes.
19111 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
19112 ;;
19113 esac >> confcache
19114if cmp -s $cache_file confcache; then
19115 :
19116else
10f2d63a 19117 if test -w $cache_file; then
698dcdb6
VZ
19118 echo "updating cache $cache_file"
19119 cat confcache > $cache_file
10f2d63a
VZ
19120 else
19121 echo "not updating unwritable cache $cache_file"
19122 fi
19123fi
19124rm -f confcache
19125
698dcdb6
VZ
19126trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
19127
10f2d63a
VZ
19128test "x$prefix" = xNONE && prefix=$ac_default_prefix
19129# Let make expand exec_prefix.
19130test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19131
698dcdb6
VZ
19132# Any assignment to VPATH causes Sun make to only execute
19133# the first set of double-colon rules, so remove it if not needed.
19134# If there is a colon in the path, we need to keep it.
10f2d63a 19135if test "x$srcdir" = x.; then
698dcdb6 19136 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
10f2d63a
VZ
19137fi
19138
698dcdb6
VZ
19139trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
19140
10f2d63a
VZ
19141DEFS=-DHAVE_CONFIG_H
19142
698dcdb6 19143# Without the "./", some shells look in PATH for config.status.
10f2d63a 19144: ${CONFIG_STATUS=./config.status}
698dcdb6
VZ
19145
19146echo creating $CONFIG_STATUS
19147rm -f $CONFIG_STATUS
19148cat > $CONFIG_STATUS <<EOF
19149#! /bin/sh
10f2d63a
VZ
19150# Generated automatically by configure.
19151# Run this file to recreate the current configuration.
698dcdb6
VZ
19152# This directory was configured as follows,
19153# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19154#
19155# $0 $ac_configure_args
19156#
10f2d63a 19157# Compiler output produced by configure, useful for debugging
698dcdb6 19158# configure, is in ./config.log if it exists.
1e487827 19159
698dcdb6
VZ
19160ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
19161for ac_option
10f2d63a 19162do
698dcdb6 19163 case "\$ac_option" in
10f2d63a 19164 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
698dcdb6
VZ
19165 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
19166 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
19167 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
19168 echo "$CONFIG_STATUS generated by autoconf version 2.13"
19169 exit 0 ;;
19170 -help | --help | --hel | --he | --h)
19171 echo "\$ac_cs_usage"; exit 0 ;;
19172 *) echo "\$ac_cs_usage"; exit 1 ;;
10f2d63a
VZ
19173 esac
19174done
19175
698dcdb6
VZ
19176ac_given_srcdir=$srcdir
19177ac_given_INSTALL="$INSTALL"
703e0a69 19178
698dcdb6
VZ
19179trap 'rm -fr `echo "
19180 wx-config
19181 src/make.env
19182 src/makeprog.env
19183 src/makelib.env
19184 Makefile
19185 setup.h:setup.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1e487827 19186EOF
698dcdb6 19187cat >> $CONFIG_STATUS <<EOF
1e487827 19188
698dcdb6
VZ
19189# Protect against being on the right side of a sed subst in config.status.
19190sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
19191 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
19192$ac_vpsub
19193$extrasub
19194s%@SHELL@%$SHELL%g
19195s%@CFLAGS@%$CFLAGS%g
19196s%@CPPFLAGS@%$CPPFLAGS%g
19197s%@CXXFLAGS@%$CXXFLAGS%g
19198s%@FFLAGS@%$FFLAGS%g
19199s%@DEFS@%$DEFS%g
19200s%@LDFLAGS@%$LDFLAGS%g
19201s%@LIBS@%$LIBS%g
19202s%@exec_prefix@%$exec_prefix%g
19203s%@prefix@%$prefix%g
19204s%@program_transform_name@%$program_transform_name%g
19205s%@bindir@%$bindir%g
19206s%@sbindir@%$sbindir%g
19207s%@libexecdir@%$libexecdir%g
19208s%@datadir@%$datadir%g
19209s%@sysconfdir@%$sysconfdir%g
19210s%@sharedstatedir@%$sharedstatedir%g
19211s%@localstatedir@%$localstatedir%g
19212s%@libdir@%$libdir%g
19213s%@includedir@%$includedir%g
19214s%@oldincludedir@%$oldincludedir%g
19215s%@infodir@%$infodir%g
19216s%@mandir@%$mandir%g
19217s%@host@%$host%g
19218s%@host_alias@%$host_alias%g
19219s%@host_cpu@%$host_cpu%g
19220s%@host_vendor@%$host_vendor%g
19221s%@host_os@%$host_os%g
19222s%@target@%$target%g
19223s%@target_alias@%$target_alias%g
19224s%@target_cpu@%$target_cpu%g
19225s%@target_vendor@%$target_vendor%g
19226s%@target_os@%$target_os%g
19227s%@build@%$build%g
19228s%@build_alias@%$build_alias%g
19229s%@build_cpu@%$build_cpu%g
19230s%@build_vendor@%$build_vendor%g
19231s%@build_os@%$build_os%g
19232s%@CC@%$CC%g
19233s%@CPP@%$CPP%g
19234s%@CXX@%$CXX%g
698dcdb6
VZ
19235s%@RANLIB@%$RANLIB%g
19236s%@AR@%$AR%g
19237s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
d6853540 19238s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
6054113a 19239s%@INSTALL_DATA@%$INSTALL_DATA%g
698dcdb6
VZ
19240s%@STRIP@%$STRIP%g
19241s%@YACC@%$YACC%g
19242s%@LEX@%$LEX%g
19243s%@LEXLIB@%$LEXLIB%g
19244s%@LN_S@%$LN_S%g
19245s%@GTK_CONFIG_2_0@%$GTK_CONFIG_2_0%g
698dcdb6
VZ
19246s%@GTK_CFLAGS@%$GTK_CFLAGS%g
19247s%@GTK_LIBS@%$GTK_LIBS%g
8168de4c 19248s%@GTK_CONFIG@%$GTK_CONFIG%g
698dcdb6
VZ
19249s%@X_CFLAGS@%$X_CFLAGS%g
19250s%@X_PRE_LIBS@%$X_PRE_LIBS%g
19251s%@X_LIBS@%$X_LIBS%g
19252s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
3a922bb4 19253s%@RESCOMP@%$RESCOMP%g
698dcdb6 19254s%@DEREZ@%$DEREZ%g
3a922bb4 19255s%@CXXCPP@%$CXXCPP%g
698dcdb6
VZ
19256s%@LEX_STEM@%$LEX_STEM%g
19257s%@PATH_IFS@%$PATH_IFS%g
19258s%@WX_MAJOR_VERSION_NUMBER@%$WX_MAJOR_VERSION_NUMBER%g
19259s%@WX_MINOR_VERSION_NUMBER@%$WX_MINOR_VERSION_NUMBER%g
19260s%@WX_RELEASE_NUMBER@%$WX_RELEASE_NUMBER%g
698dcdb6
VZ
19261s%@WX_LIBRARY_NAME_STATIC@%$WX_LIBRARY_NAME_STATIC%g
19262s%@WX_LIBRARY_NAME_SHARED@%$WX_LIBRARY_NAME_SHARED%g
77e13408 19263s%@WX_LIBRARY_IMPORTLIB@%$WX_LIBRARY_IMPORTLIB%g
698dcdb6
VZ
19264s%@WX_TARGET_LIBRARY@%$WX_TARGET_LIBRARY%g
19265s%@WX_LIBRARY_LINK1@%$WX_LIBRARY_LINK1%g
19266s%@WX_LIBRARY_LINK2@%$WX_LIBRARY_LINK2%g
698dcdb6 19267s%@PROGRAM_EXT@%$PROGRAM_EXT%g
698dcdb6
VZ
19268s%@WX_LIBRARY_NAME_STATIC_GL@%$WX_LIBRARY_NAME_STATIC_GL%g
19269s%@WX_LIBRARY_NAME_SHARED_GL@%$WX_LIBRARY_NAME_SHARED_GL%g
698dcdb6
VZ
19270s%@WX_TARGET_LIBRARY_GL@%$WX_TARGET_LIBRARY_GL%g
19271s%@WX_LIBRARY_LINK1_GL@%$WX_LIBRARY_LINK1_GL%g
19272s%@WX_LIBRARY_LINK2_GL@%$WX_LIBRARY_LINK2_GL%g
698dcdb6
VZ
19273s%@WX_ALL@%$WX_ALL%g
19274s%@WX_ALL_INSTALLED@%$WX_ALL_INSTALLED%g
19275s%@SHARED_LD@%$SHARED_LD%g
19276s%@PIC_FLAG@%$PIC_FLAG%g
698dcdb6
VZ
19277s%@CODE_GEN_FLAGS@%$CODE_GEN_FLAGS%g
19278s%@CODE_GEN_FLAGS_CXX@%$CODE_GEN_FLAGS_CXX%g
3a922bb4
RL
19279s%@SONAME_FLAGS@%$SONAME_FLAGS%g
19280s%@SONAME_FLAGS_GL@%$SONAME_FLAGS_GL%g
698dcdb6
VZ
19281s%@WX_TARGET_LIBRARY_SONAME@%$WX_TARGET_LIBRARY_SONAME%g
19282s%@WX_TARGET_LIBRARY_TYPE@%$WX_TARGET_LIBRARY_TYPE%g
19283s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g
19284s%@USE_GUI@%$USE_GUI%g
19285s%@AFMINSTALL@%$AFMINSTALL%g
19286s%@TOOLKIT@%$TOOLKIT%g
698dcdb6 19287s%@TOOLKIT_DIR@%$TOOLKIT_DIR%g
1e6feb95 19288s%@TOOLKIT_VPATH@%$TOOLKIT_VPATH%g
3a922bb4
RL
19289s%@TOOLCHAIN_NAME@%$TOOLCHAIN_NAME%g
19290s%@TOOLCHAIN_DEFS@%$TOOLCHAIN_DEFS%g
00c81359 19291s%@TOOLCHAIN_DLL_DEFS@%$TOOLCHAIN_DLL_DEFS%g
3a922bb4
RL
19292s%@cross_compiling@%$cross_compiling%g
19293s%@WXCONFIG_LIBS@%$WXCONFIG_LIBS%g
19294s%@WXCONFIG_LIBS_GL@%$WXCONFIG_LIBS_GL%g
885d4bf5
VS
19295s%@WXCONFIG_LIBS_STATIC@%$WXCONFIG_LIBS_STATIC%g
19296s%@WXCONFIG_LIBS_STATIC_GL@%$WXCONFIG_LIBS_STATIC_GL%g
698dcdb6
VZ
19297s%@WXCONFIG_INCLUDE@%$WXCONFIG_INCLUDE%g
19298s%@ALL_OBJECTS@%$ALL_OBJECTS%g
698dcdb6
VZ
19299s%@GUIDIST@%$GUIDIST%g
19300s%@PORT_FILES@%$PORT_FILES%g
19301s%@DISTDIR@%$DISTDIR%g
698dcdb6 19302s%@SAMPLES_SUBDIRS@%$SAMPLES_SUBDIRS%g
62d0491b 19303s%@LDFLAGS_GL@%$LDFLAGS_GL%g
698dcdb6 19304s%@OPENGL_LIBS@%$OPENGL_LIBS%g
3d63bc3a 19305s%@DMALLOC_LIBS@%$DMALLOC_LIBS%g
698dcdb6 19306s%@EXTRADEFS@%$EXTRADEFS%g
698dcdb6 19307s%@RESFLAGS@%$RESFLAGS%g
3a922bb4 19308s%@RESPROGRAMOBJ@%$RESPROGRAMOBJ%g
d08b457b 19309s%@WX_RESOURCES_MACOSX@%$WX_RESOURCES_MACOSX%g
e23081de 19310s%@WX_RESOURCES_MACOSX_COMPILED@%$WX_RESOURCES_MACOSX_COMPILED%g
698dcdb6
VZ
19311s%@LIBWXMACRES@%$LIBWXMACRES%g
19312s%@LIBWXMACRESCOMP@%$LIBWXMACRESCOMP%g
2baaf735 19313s%@LIBWXMACRESWXCONFIG@%$LIBWXMACRESWXCONFIG%g
698dcdb6
VZ
19314s%@DLLTOOL@%$DLLTOOL%g
19315s%@AS@%$AS%g
19316s%@NM@%$NM%g
19317s%@LD@%$LD%g
19318s%@MAKEINFO@%$MAKEINFO%g
885d4bf5 19319s%@INSTALL_LIBRARY@%$INSTALL_LIBRARY%g
698dcdb6
VZ
19320s%@SET_MAKE@%$SET_MAKE%g
19321s%@subdirs@%$subdirs%g
1e487827 19322
1e487827 19323CEOF
1e487827
VS
19324EOF
19325
698dcdb6
VZ
19326cat >> $CONFIG_STATUS <<\EOF
19327
19328# Split the substitutions into bite-sized pieces for seds with
19329# small command number limits, like on Digital OSF/1 and HP-UX.
19330ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
19331ac_file=1 # Number of current file.
19332ac_beg=1 # First line for current file.
19333ac_end=$ac_max_sed_cmds # Line after last line for current file.
19334ac_more_lines=:
19335ac_sed_cmds=""
19336while $ac_more_lines; do
19337 if test $ac_beg -gt 1; then
19338 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
19339 else
19340 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
19341 fi
19342 if test ! -s conftest.s$ac_file; then
19343 ac_more_lines=false
19344 rm -f conftest.s$ac_file
19345 else
19346 if test -z "$ac_sed_cmds"; then
19347 ac_sed_cmds="sed -f conftest.s$ac_file"
10f2d63a 19348 else
698dcdb6 19349 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
10f2d63a 19350 fi
698dcdb6
VZ
19351 ac_file=`expr $ac_file + 1`
19352 ac_beg=$ac_end
19353 ac_end=`expr $ac_end + $ac_max_sed_cmds`
10f2d63a 19354 fi
698dcdb6
VZ
19355done
19356if test -z "$ac_sed_cmds"; then
19357 ac_sed_cmds=cat
19358fi
19359EOF
10f2d63a 19360
698dcdb6
VZ
19361cat >> $CONFIG_STATUS <<EOF
19362
19363CONFIG_FILES=\${CONFIG_FILES-"wx-config
19364 src/make.env
19365 src/makeprog.env
19366 src/makelib.env
19367 Makefile
19368 "}
10f2d63a 19369EOF
698dcdb6
VZ
19370cat >> $CONFIG_STATUS <<\EOF
19371for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
10f2d63a 19372 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
698dcdb6
VZ
19373 case "$ac_file" in
19374 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
19375 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
19376 *) ac_file_in="${ac_file}.in" ;;
10f2d63a
VZ
19377 esac
19378
698dcdb6 19379 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
1e487827 19380
698dcdb6
VZ
19381 # Remove last slash and all that follows it. Not all systems have dirname.
19382 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
19383 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
19384 # The file is in a subdirectory.
19385 test ! -d "$ac_dir" && mkdir "$ac_dir"
19386 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
10f2d63a 19387 # A "../" for each directory in $ac_dir_suffix.
698dcdb6 19388 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
10f2d63a
VZ
19389 else
19390 ac_dir_suffix= ac_dots=
19391 fi
19392
698dcdb6
VZ
19393 case "$ac_given_srcdir" in
19394 .) srcdir=.
19395 if test -z "$ac_dots"; then top_srcdir=.
19396 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
19397 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
10f2d63a 19398 *) # Relative path.
698dcdb6
VZ
19399 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
19400 top_srcdir="$ac_dots$ac_given_srcdir" ;;
10f2d63a
VZ
19401 esac
19402
698dcdb6
VZ
19403 case "$ac_given_INSTALL" in
19404 [/$]*) INSTALL="$ac_given_INSTALL" ;;
19405 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
10f2d63a
VZ
19406 esac
19407
698dcdb6
VZ
19408 echo creating "$ac_file"
19409 rm -f "$ac_file"
19410 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
19411 case "$ac_file" in
19412 *Makefile*) ac_comsub="1i\\
19413# $configure_input" ;;
19414 *) ac_comsub= ;;
19415 esac
10f2d63a 19416
698dcdb6
VZ
19417 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
19418 sed -e "$ac_comsub
19419s%@configure_input@%$configure_input%g
19420s%@srcdir@%$srcdir%g
19421s%@top_srcdir@%$top_srcdir%g
19422s%@INSTALL@%$INSTALL%g
19423" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
19424fi; done
19425rm -f conftest.s*
10f2d63a
VZ
19426
19427# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
19428# NAME is the cpp macro being defined and VALUE is the value it is being given.
19429#
19430# ac_d sets the value in "#define NAME VALUE" lines.
698dcdb6
VZ
19431ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
19432ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
19433ac_dC='\3'
19434ac_dD='%g'
19435# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
19436ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
19437ac_uB='\([ ]\)%\1#\2define\3'
10f2d63a 19438ac_uC=' '
698dcdb6
VZ
19439ac_uD='\4%g'
19440# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
19441ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
19442ac_eB='$%\1#\2define\3'
19443ac_eC=' '
19444ac_eD='%g'
10f2d63a 19445
698dcdb6
VZ
19446if test "${CONFIG_HEADERS+set}" != set; then
19447EOF
19448cat >> $CONFIG_STATUS <<EOF
19449 CONFIG_HEADERS="setup.h:setup.h.in"
19450EOF
19451cat >> $CONFIG_STATUS <<\EOF
19452fi
19453for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
10f2d63a 19454 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
698dcdb6
VZ
19455 case "$ac_file" in
19456 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
19457 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
19458 *) ac_file_in="${ac_file}.in" ;;
10f2d63a
VZ
19459 esac
19460
698dcdb6
VZ
19461 echo creating $ac_file
19462
19463 rm -f conftest.frag conftest.in conftest.out
19464 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
19465 cat $ac_file_inputs > conftest.in
19466
19467EOF
19468
19469# Transform confdefs.h into a sed script conftest.vals that substitutes
19470# the proper values into config.h.in to produce config.h. And first:
19471# Protect against being on the right side of a sed subst in config.status.
19472# Protect against being in an unquoted here document in config.status.
19473rm -f conftest.vals
19474cat > conftest.hdr <<\EOF
19475s/[\\&%]/\\&/g
19476s%[\\$`]%\\&%g
19477s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
19478s%ac_d%ac_u%gp
19479s%ac_u%ac_e%gp
19480EOF
19481sed -n -f conftest.hdr confdefs.h > conftest.vals
19482rm -f conftest.hdr
10f2d63a
VZ
19483
19484# This sed command replaces #undef with comments. This is necessary, for
19485# example, in the case of _POSIX_SOURCE, which is predefined and required
19486# on some systems where configure will not decide to define it.
698dcdb6
VZ
19487cat >> conftest.vals <<\EOF
19488s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
10f2d63a
VZ
19489EOF
19490
698dcdb6
VZ
19491# Break up conftest.vals because some shells have a limit on
19492# the size of here documents, and old seds have small limits too.
10f2d63a
VZ
19493
19494rm -f conftest.tail
698dcdb6 19495while :
10f2d63a 19496do
698dcdb6
VZ
19497 ac_lines=`grep -c . conftest.vals`
19498 # grep -c gives empty output for an empty file on some AIX systems.
19499 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
19500 # Write a limited-size here document to conftest.frag.
19501 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
19502 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
10f2d63a 19503 echo 'CEOF
698dcdb6
VZ
19504 sed -f conftest.frag conftest.in > conftest.out
19505 rm -f conftest.in
19506 mv conftest.out conftest.in
19507' >> $CONFIG_STATUS
19508 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
19509 rm -f conftest.vals
19510 mv conftest.tail conftest.vals
10f2d63a 19511done
698dcdb6
VZ
19512rm -f conftest.vals
19513
19514cat >> $CONFIG_STATUS <<\EOF
19515 rm -f conftest.frag conftest.h
19516 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
19517 cat conftest.in >> conftest.h
19518 rm -f conftest.in
19519 if cmp -s $ac_file conftest.h 2>/dev/null; then
19520 echo "$ac_file is unchanged"
19521 rm -f conftest.h
10f2d63a 19522 else
698dcdb6
VZ
19523 # Remove last slash and all that follows it. Not all systems have dirname.
19524 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
10f2d63a 19525 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
698dcdb6
VZ
19526 # The file is in a subdirectory.
19527 test ! -d "$ac_dir" && mkdir "$ac_dir"
10f2d63a 19528 fi
698dcdb6
VZ
19529 rm -f $ac_file
19530 mv conftest.h $ac_file
10f2d63a 19531 fi
698dcdb6
VZ
19532fi; done
19533
10f2d63a 19534EOF
698dcdb6 19535cat >> $CONFIG_STATUS <<EOF
10f2d63a 19536
3a922bb4 19537 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}"
698dcdb6
VZ
19538 LN_S="${LN_S}"
19539
19540
19541EOF
19542cat >> $CONFIG_STATUS <<\EOF
10f2d63a 19543
652d930d 19544 if test ! -h wx-config; then
991a5759 19545 chmod +x wx-config
3a922bb4
RL
19546 mv wx-config wx${TOOLCHAIN_NAME}-config
19547 ${LN_S} wx${TOOLCHAIN_NAME}-config wx-config
991a5759 19548 fi
665bbe97 19549
00cf1208
RR
19550 if test ! -d lib; then
19551 mkdir lib
19552 fi
19553 if test ! -d lib/wx; then
19554 mkdir lib/wx
19555 fi
19556 if test ! -d lib/wx/include; then
19557 mkdir lib/wx/include
19558 fi
3a922bb4
RL
19559 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}; then
19560 mkdir lib/wx/include/${TOOLCHAIN_NAME}
00cf1208 19561 fi
3a922bb4
RL
19562 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}/wx; then
19563 mkdir lib/wx/include/${TOOLCHAIN_NAME}/wx
00cf1208
RR
19564 fi
19565 if test -f setup.h; then
3a922bb4 19566 mv -f setup.h lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h
00cf1208 19567 fi
698dcdb6
VZ
19568
19569exit 0
10f2d63a
VZ
19570EOF
19571chmod +x $CONFIG_STATUS
698dcdb6
VZ
19572rm -fr confdefs* $ac_clean_files
19573test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
10f2d63a 19574
2224580a
VZ
19575if test "$no_recursion" != yes; then
19576
19577 # Remove --cache-file and --srcdir arguments so they do not pile up.
19578 ac_sub_configure_args=
19579 ac_prev=
19580 for ac_arg in $ac_configure_args; do
19581 if test -n "$ac_prev"; then
19582 ac_prev=
19583 continue
19584 fi
698dcdb6 19585 case "$ac_arg" in
2224580a
VZ
19586 -cache-file | --cache-file | --cache-fil | --cache-fi \
19587 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
19588 ac_prev=cache_file ;;
19589 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
698dcdb6 19590 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
2224580a
VZ
19591 ;;
19592 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
19593 ac_prev=srcdir ;;
19594 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
19595 ;;
19596 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
19597 esac
19598 done
19599
698dcdb6 19600 for ac_config_dir in demos samples utils contrib; do
2224580a
VZ
19601
19602 # Do not complain, so a configure script can configure whichever
19603 # parts of a large source tree are present.
698dcdb6
VZ
19604 if test ! -d $srcdir/$ac_config_dir; then
19605 continue
19606 fi
19607
19608 echo configuring in $ac_config_dir
2224580a 19609
698dcdb6 19610 case "$srcdir" in
2224580a
VZ
19611 .) ;;
19612 *)
698dcdb6
VZ
19613 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
19614 else
19615 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
19616 fi
19617 ;;
2224580a
VZ
19618 esac
19619
19620 ac_popdir=`pwd`
698dcdb6 19621 cd $ac_config_dir
2224580a 19622
698dcdb6
VZ
19623 # A "../" for each directory in /$ac_config_dir.
19624 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
2224580a 19625
698dcdb6 19626 case "$srcdir" in
2224580a
VZ
19627 .) # No --srcdir option. We are building in place.
19628 ac_sub_srcdir=$srcdir ;;
698dcdb6
VZ
19629 /*) # Absolute path.
19630 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
2224580a 19631 *) # Relative path.
698dcdb6 19632 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
2224580a
VZ
19633 esac
19634
19635 # Check for guested configure; otherwise get Cygnus style configure.
698dcdb6
VZ
19636 if test -f $ac_sub_srcdir/configure; then
19637 ac_sub_configure=$ac_sub_srcdir/configure
2224580a
VZ
19638 elif test -f $ac_sub_srcdir/configure.in; then
19639 ac_sub_configure=$ac_configure
19640 else
698dcdb6 19641 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
2224580a
VZ
19642 ac_sub_configure=
19643 fi
19644
19645 # The recursion is here.
19646 if test -n "$ac_sub_configure"; then
698dcdb6 19647
2224580a 19648 # Make the cache file name correct relative to the subdirectory.
698dcdb6
VZ
19649 case "$cache_file" in
19650 /*) ac_sub_cache_file=$cache_file ;;
2224580a 19651 *) # Relative path.
698dcdb6 19652 ac_sub_cache_file="$ac_dots$cache_file" ;;
2224580a 19653 esac
698dcdb6
VZ
19654 case "$ac_given_INSTALL" in
19655 [/$]*) INSTALL="$ac_given_INSTALL" ;;
19656 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
19657 esac
2224580a 19658
698dcdb6 19659 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
2224580a 19660 # The eval makes quoting arguments work.
698dcdb6
VZ
19661 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
19662 then :
19663 else
19664 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
19665 fi
2224580a
VZ
19666 fi
19667
19668 cd $ac_popdir
19669 done
19670fi
19671
698dcdb6 19672