]> git.saurik.com Git - wxWidgets.git/blame - configure
define wxUSE_LOGGUI/WINDOW by default
[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
8168de4c
VZ
38
39# Configure paths for GTK+
40# Owen Taylor 97-11-3
698dcdb6
VZ
41
42
43
44
698dcdb6
VZ
45
46
47# Guess values for system-dependent variables and create Makefiles.
48# Generated automatically using autoconf version 2.13
49# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
50#
51# This configure script is free software; the Free Software Foundation
52# gives unlimited permission to copy, distribute and modify it.
53
54# Defaults:
55ac_help=
56ac_default_prefix=/usr/local
57# Any additions from configure.in:
58ac_help="$ac_help
8168de4c 59 --enable-gui use GUI classes"
1e6feb95 60ac_help="$ac_help
8168de4c 61 --enable-universal use wxWindows GUI controls instead of native ones"
698dcdb6
VZ
62ac_help="$ac_help
63 --with-gtk use GTK+"
64ac_help="$ac_help
65 --with-motif use Motif/Lesstif"
66ac_help="$ac_help
67 --with-mac use Mac OS X"
68ac_help="$ac_help
69 --with-wine use WINE"
70ac_help="$ac_help
71 --with-cygwin use Cygwin for MS-Windows"
72ac_help="$ac_help
73 --with-mingw use GCC Minimal MS-Windows"
74ac_help="$ac_help
75 --with-pm use OS/2 Presentation Manager"
1e6feb95
VZ
76ac_help="$ac_help
77 --with-mgl use MGL"
698dcdb6 78ac_help="$ac_help
8168de4c 79 --enable-gtk2 use GTK+ 2.0 if available (EXPERIMENTAL)"
698dcdb6 80ac_help="$ac_help
8168de4c 81 --with-libpng use libpng (PNG image format)"
698dcdb6 82ac_help="$ac_help
8168de4c 83 --with-libjpeg use libjpeg (JPEG file format)"
698dcdb6 84ac_help="$ac_help
8168de4c 85 --with-libtiff use libtiff (TIFF file format)"
698dcdb6 86ac_help="$ac_help
8168de4c 87 --with-freetype use freetype (font rasterizer)"
698dcdb6 88ac_help="$ac_help
8168de4c 89 --with-opengl use OpenGL (or Mesa)"
698dcdb6 90ac_help="$ac_help
8168de4c 91 --with-dmalloc use dmalloc library (www.letters.com/dmalloc)"
698dcdb6 92ac_help="$ac_help
8168de4c 93 --with-zlib use zlib for LZW compression"
698dcdb6 94ac_help="$ac_help
8168de4c 95 --with-odbc use the IODBC and wxODBC classes"
698dcdb6 96ac_help="$ac_help
8168de4c 97 --enable-shared create shared library code"
698dcdb6 98ac_help="$ac_help
8168de4c 99 --enable-burnt_name create set name in shared library "
698dcdb6 100ac_help="$ac_help
8168de4c 101 --enable-optimise create optimised code"
698dcdb6 102ac_help="$ac_help
8168de4c 103 --enable-debug same as debug_flag and debug_info"
698dcdb6 104ac_help="$ac_help
8168de4c 105 --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)"
698dcdb6 106ac_help="$ac_help
8168de4c 107 --enable-debug_info create code with debugging information"
698dcdb6 108ac_help="$ac_help
8168de4c 109 --enable-debug_gdb create code with extra GDB debugging information"
698dcdb6 110ac_help="$ac_help
8168de4c 111 --enable-debug_cntxt use wxDebugContext"
698dcdb6 112ac_help="$ac_help
8168de4c 113 --enable-mem_tracing create code with memory tracing"
698dcdb6 114ac_help="$ac_help
8168de4c 115 --enable-profile create code with profiling information"
698dcdb6 116ac_help="$ac_help
8168de4c 117 --enable-no_rtti create code without RTTI information"
698dcdb6 118ac_help="$ac_help
8168de4c 119 --enable-no_exceptions create code without exceptions information"
698dcdb6 120ac_help="$ac_help
8168de4c 121 --enable-permissive compile code disregarding strict ANSI"
698dcdb6 122ac_help="$ac_help
8168de4c 123 --enable-no_deps create code without dependency information"
54276ccf
VZ
124ac_help="$ac_help
125 --enable-compat20 enable wxWin 2.0 compatibility"
126ac_help="$ac_help
127 --enable-compat22 enable wxWin 2.2 compatibility"
698dcdb6 128ac_help="$ac_help
8168de4c 129 --enable-intl use internationalization system"
698dcdb6 130ac_help="$ac_help
8168de4c 131 --enable-config use wxConfig (and derived) classes"
698dcdb6 132ac_help="$ac_help
8168de4c 133 --enable-sockets use socket/network classes"
698dcdb6 134ac_help="$ac_help
8168de4c 135 --enable-ipc use interprocess communication (wxSocket etc.)"
698dcdb6 136ac_help="$ac_help
8168de4c 137 --enable-cmdline use wxCmdLineParser class"
1e6feb95 138ac_help="$ac_help
8168de4c 139 --enable-datetime use wxDateTime class"
1e6feb95 140ac_help="$ac_help
8168de4c 141 --enable-timedate use obsolete wxDate/wxTime classes"
1e6feb95 142ac_help="$ac_help
8168de4c 143 --enable-stopwatch use wxStopWatch class"
1e6feb95 144ac_help="$ac_help
8168de4c 145 --enable-dialupman use dialup network classes"
698dcdb6 146ac_help="$ac_help
8168de4c 147 --enable-apple_ieee use the Apple IEEE codec"
698dcdb6 148ac_help="$ac_help
8168de4c 149 --enable-timer use wxTimer class"
698dcdb6 150ac_help="$ac_help
8168de4c 151 --enable-wave use wxWave class"
698dcdb6 152ac_help="$ac_help
8168de4c 153 --enable-fraction use wxFraction class"
698dcdb6 154ac_help="$ac_help
8168de4c 155 --enable-dynlib use wxLibrary class for DLL loading"
698dcdb6 156ac_help="$ac_help
8168de4c 157 --enable-longlong use wxLongLong class"
698dcdb6 158ac_help="$ac_help
8168de4c 159 --enable-geometry use geometry class"
698dcdb6 160ac_help="$ac_help
8168de4c 161 --enable-log use logging system"
698dcdb6 162ac_help="$ac_help
8168de4c 163 --enable-streams use wxStream etc classes"
698dcdb6 164ac_help="$ac_help
8168de4c 165 --enable-file use wxFile classes"
698dcdb6 166ac_help="$ac_help
8168de4c 167 --enable-ffile use wxFFile classes"
1e6feb95 168ac_help="$ac_help
8168de4c 169 --enable-textfile use wxTextFile classes"
698dcdb6 170ac_help="$ac_help
8168de4c 171 --enable-fontmap use font encodings conversion classes"
1e6feb95 172ac_help="$ac_help
8168de4c 173 --enable-unicode compile wxString with Unicode support"
698dcdb6 174ac_help="$ac_help
8168de4c 175 --enable-wcsrtombs use wcsrtombs instead of buggy (GNU libc1/Linux libc5) wcstombs"
698dcdb6 176ac_help="$ac_help
8168de4c 177 --enable-wxprintfv use wxWindows implementation of vprintf()"
698dcdb6 178ac_help="$ac_help
8168de4c 179 --enable-std_iostreams use standard C++ stream classes"
698dcdb6 180ac_help="$ac_help
8168de4c 181 --enable-filesystem use virtual file systems classes"
698dcdb6 182ac_help="$ac_help
8168de4c 183 --enable-fs_inet use virtual HTTP/FTP filesystems"
698dcdb6 184ac_help="$ac_help
8168de4c 185 --enable-fs_zip use virtual ZIP filesystems"
698dcdb6 186ac_help="$ac_help
8168de4c 187 --enable-zipstream use wxZipInputStream"
698dcdb6 188ac_help="$ac_help
8168de4c 189 --enable-catch_segvs catch signals and pass them to wxApp::OnFatalException"
698dcdb6 190ac_help="$ac_help
8168de4c 191 --enable-snglinst use wxSingleInstanceChecker class"
698dcdb6 192ac_help="$ac_help
8168de4c 193 --enable-mimetypes use wxMimeTypesManager"
1e6feb95 194ac_help="$ac_help
8168de4c 195 --enable-threads use threads"
698dcdb6 196ac_help="$ac_help
8168de4c 197 --enable-serial use class serialization"
698dcdb6 198ac_help="$ac_help
8168de4c 199 --enable-docview use document view architecture"
698dcdb6 200ac_help="$ac_help
8168de4c 201 --enable-help use help (using external browser at present)"
698dcdb6 202ac_help="$ac_help
8168de4c 203 --enable-constraints use layout-constraints system"
698dcdb6 204ac_help="$ac_help
8168de4c 205 --enable-printarch use printing architecture"
698dcdb6 206ac_help="$ac_help
8168de4c 207 --enable-mdi use multiple document interface architecture"
698dcdb6 208ac_help="$ac_help
8168de4c 209 --enable-loggui use standard GUI logger"
1e6feb95 210ac_help="$ac_help
8168de4c 211 --enable-logwin use wxLogWindow"
1e6feb95 212ac_help="$ac_help
8168de4c 213 --enable-postscript use wxPostscriptDC device context (default for gtk+)"
698dcdb6 214ac_help="$ac_help
8168de4c 215 --enable-prologio use Prolog IO library"
698dcdb6 216ac_help="$ac_help
8168de4c 217 --enable-resources use wxWindows resources"
698dcdb6 218ac_help="$ac_help
8168de4c 219 --enable-xresources use X resources for save (default for gtk+)"
698dcdb6 220ac_help="$ac_help
8168de4c 221 --enable-clipboard use wxClipboard classes"
698dcdb6 222ac_help="$ac_help
8168de4c 223 --enable-dnd use Drag'n'Drop classes"
698dcdb6 224ac_help="$ac_help
8168de4c 225 --enable-metafile use win32 metafiles"
698dcdb6 226ac_help="$ac_help
8168de4c 227 --enable-wxtree make wxTree library"
698dcdb6 228ac_help="$ac_help
8168de4c 229 --enable-controls use all usual controls"
698dcdb6 230ac_help="$ac_help
8168de4c 231 --enable-accel use accelerators"
698dcdb6 232ac_help="$ac_help
8168de4c 233 --enable-button use wxButton class"
698dcdb6 234ac_help="$ac_help
8168de4c 235 --enable-bmpbutton use wxBitmapButton class"
698dcdb6 236ac_help="$ac_help
8168de4c 237 --enable-calendar use wxCalendarCtrl class"
1e6feb95 238ac_help="$ac_help
8168de4c 239 --enable-caret use wxCaret class"
1e6feb95 240ac_help="$ac_help
8168de4c 241 --enable-checkbox use wxCheckBox class"
698dcdb6 242ac_help="$ac_help
8168de4c 243 --enable-checklst use wxCheckListBox (listbox with checkboxes) class"
698dcdb6 244ac_help="$ac_help
8168de4c 245 --enable-choice use wxChoice class"
698dcdb6 246ac_help="$ac_help
8168de4c 247 --enable-combobox use wxComboBox classes"
698dcdb6 248ac_help="$ac_help
8168de4c 249 --enable-gauge use wxGauge class"
698dcdb6 250ac_help="$ac_help
8168de4c 251 --enable-grid use wxGrid class"
698dcdb6 252ac_help="$ac_help
8168de4c 253 --enable-newgrid use new wxGrid class"
698dcdb6 254ac_help="$ac_help
8168de4c 255 --enable-imaglist use wxImageList class"
698dcdb6 256ac_help="$ac_help
8168de4c 257 --enable-listbox use wxListBox class"
698dcdb6 258ac_help="$ac_help
8168de4c 259 --enable-listctrl use wxListCtrl class"
698dcdb6 260ac_help="$ac_help
8168de4c 261 --enable-notebook use wxNotebook class"
698dcdb6 262ac_help="$ac_help
8168de4c 263 --enable-radiobox use wxRadioBox class"
698dcdb6 264ac_help="$ac_help
8168de4c 265 --enable-radiobtn use wxRadioButton class"
698dcdb6 266ac_help="$ac_help
8168de4c 267 --enable-sash use wxSashWindow class"
698dcdb6 268ac_help="$ac_help
8168de4c 269 --enable-scrollbar use wxScrollBar class and scrollable windows"
698dcdb6 270ac_help="$ac_help
8168de4c 271 --enable-slider use wxSlider class"
698dcdb6 272ac_help="$ac_help
8168de4c 273 --enable-spinbtn use wxSpinButton class"
698dcdb6 274ac_help="$ac_help
8168de4c 275 --enable-spinctrl use wxSpinCtrl class"
698dcdb6 276ac_help="$ac_help
8168de4c 277 --enable-splitter use wxSplitterWindow class"
698dcdb6 278ac_help="$ac_help
8168de4c 279 --enable-statbmp use wxStaticBitmap class"
698dcdb6 280ac_help="$ac_help
8168de4c 281 --enable-statbox use wxStaticBox class"
698dcdb6 282ac_help="$ac_help
8168de4c 283 --enable-statline use wxStaticLine class"
698dcdb6 284ac_help="$ac_help
8168de4c 285 --enable-stattext use wxStaticText class"
1e6feb95 286ac_help="$ac_help
8168de4c 287 --enable-statusbar use wxStatusBar class"
698dcdb6 288ac_help="$ac_help
8168de4c 289 --enable-tabdialog use wxTabControl class"
698dcdb6 290ac_help="$ac_help
8168de4c 291 --enable-textctrl use wxTextCtrl class"
1e6feb95 292ac_help="$ac_help
8168de4c 293 --enable-togglebtn use wxToggleButton class"
698dcdb6 294ac_help="$ac_help
8168de4c 295 --enable-toolbar use wxToolBar class"
698dcdb6 296ac_help="$ac_help
8168de4c 297 --enable-tbarnative use native wxToolBar class"
698dcdb6 298ac_help="$ac_help
8168de4c 299 --enable-tbarsmpl use wxToolBarSimple class"
698dcdb6 300ac_help="$ac_help
8168de4c 301 --enable-treectrl use wxTreeCtrl class"
698dcdb6 302ac_help="$ac_help
8168de4c 303 --enable-commondlg use common dialogs (wxDirDialog, wxProgressDialog, wxTextDialog, ...)"
698dcdb6 304ac_help="$ac_help
8168de4c 305 --enable-choicedlg use wxChoiceDialog"
1e6feb95 306ac_help="$ac_help
8168de4c 307 --enable-coldlg use wxColourDialog"
1e6feb95 308ac_help="$ac_help
8168de4c 309 --enable-filedlg use wxFileDialog"
1e6feb95 310ac_help="$ac_help
8168de4c 311 --enable-fontdlg use wxFontDialog"
1e6feb95 312ac_help="$ac_help
8168de4c 313 --enable-dirdlg use wxDirDialog"
698dcdb6 314ac_help="$ac_help
8168de4c 315 --enable-msgdlg use wxMessageDialog"
1e6feb95 316ac_help="$ac_help
8168de4c 317 --enable-numberdlg use wxNumberEntryDialog"
1e6feb95 318ac_help="$ac_help
8168de4c 319 --enable-textdlg use wxTextDialog"
698dcdb6 320ac_help="$ac_help
8168de4c 321 --enable-tipdlg use startup tips"
698dcdb6 322ac_help="$ac_help
8168de4c 323 --enable-progressdlg use wxProgressDialog"
698dcdb6 324ac_help="$ac_help
8168de4c 325 --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes"
1e6feb95 326ac_help="$ac_help
8168de4c 327 --enable-miniframe use wxMiniFrame class"
698dcdb6 328ac_help="$ac_help
8168de4c 329 --enable-html use wxHTML sub-library"
698dcdb6 330ac_help="$ac_help
8168de4c 331 --enable-tooltips use wxToolTip class"
698dcdb6 332ac_help="$ac_help
8168de4c 333 --enable-splines use spline drawing code"
698dcdb6 334ac_help="$ac_help
8168de4c 335 --enable-validators use wxValidator and derived classes"
698dcdb6 336ac_help="$ac_help
8168de4c 337 --enable-busyinfo use wxBusyInfo"
698dcdb6 338ac_help="$ac_help
8168de4c 339 --enable-joystick compile in joystick support (Linux only)"
698dcdb6 340ac_help="$ac_help
8168de4c 341 --enable-metafiles use wxMetaFile (Windows only)"
1e6feb95 342ac_help="$ac_help
8168de4c 343 --enable-image use wxImage class"
698dcdb6 344ac_help="$ac_help
8168de4c 345 --enable-gif use gif images (GIF file format)"
698dcdb6 346ac_help="$ac_help
8168de4c 347 --enable-pcx use pcx images (PCX file format)"
698dcdb6 348ac_help="$ac_help
8168de4c 349 --enable-pnm use pnm images (PNM file format)"
698dcdb6 350ac_help="$ac_help
8168de4c 351 --enable-xpm use xpm images (XPM file format)"
698dcdb6
VZ
352ac_help="$ac_help
353 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)"
354ac_help="$ac_help
355 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)"
356ac_help="$ac_help
357 --disable-gtktest Do not try to compile and run a test GTK program"
358ac_help="$ac_help
359 --with-x use the X Window System"
10f2d63a
VZ
360
361# Initialize some variables set by options.
362# The variables have the same names as the options, with
363# dashes changed to underlines.
698dcdb6
VZ
364build=NONE
365cache_file=./config.cache
10f2d63a 366exec_prefix=NONE
698dcdb6 367host=NONE
10f2d63a 368no_create=
698dcdb6 369nonopt=NONE
10f2d63a
VZ
370no_recursion=
371prefix=NONE
372program_prefix=NONE
373program_suffix=NONE
374program_transform_name=s,x,x,
375silent=
376site=
377srcdir=
698dcdb6 378target=NONE
10f2d63a
VZ
379verbose=
380x_includes=NONE
381x_libraries=NONE
382bindir='${exec_prefix}/bin'
383sbindir='${exec_prefix}/sbin'
384libexecdir='${exec_prefix}/libexec'
385datadir='${prefix}/share'
386sysconfdir='${prefix}/etc'
387sharedstatedir='${prefix}/com'
388localstatedir='${prefix}/var'
389libdir='${exec_prefix}/lib'
390includedir='${prefix}/include'
391oldincludedir='/usr/include'
392infodir='${prefix}/info'
393mandir='${prefix}/man'
394
698dcdb6
VZ
395# Initialize some other variables.
396subdirs=
397MFLAGS= MAKEFLAGS=
398SHELL=${CONFIG_SHELL-/bin/sh}
399# Maximum number of lines to put in a shell here document.
400ac_max_here_lines=12
10f2d63a
VZ
401
402ac_prev=
403for ac_option
404do
698dcdb6 405
10f2d63a
VZ
406 # If the previous option needs an argument, assign it.
407 if test -n "$ac_prev"; then
408 eval "$ac_prev=\$ac_option"
409 ac_prev=
410 continue
411 fi
412
698dcdb6
VZ
413 case "$ac_option" in
414 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
415 *) ac_optarg= ;;
416 esac
10f2d63a
VZ
417
418 # Accept the important Cygnus configure options, so we can diagnose typos.
419
698dcdb6 420 case "$ac_option" in
10f2d63a
VZ
421
422 -bindir | --bindir | --bindi | --bind | --bin | --bi)
423 ac_prev=bindir ;;
424 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
698dcdb6 425 bindir="$ac_optarg" ;;
10f2d63a
VZ
426
427 -build | --build | --buil | --bui | --bu)
698dcdb6 428 ac_prev=build ;;
10f2d63a 429 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
698dcdb6 430 build="$ac_optarg" ;;
10f2d63a
VZ
431
432 -cache-file | --cache-file | --cache-fil | --cache-fi \
433 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
434 ac_prev=cache_file ;;
435 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
436 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
698dcdb6 437 cache_file="$ac_optarg" ;;
10f2d63a
VZ
438
439 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
440 ac_prev=datadir ;;
441 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
442 | --da=*)
698dcdb6 443 datadir="$ac_optarg" ;;
10f2d63a
VZ
444
445 -disable-* | --disable-*)
698dcdb6 446 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
10f2d63a 447 # Reject names that are not valid shell variable names.
698dcdb6
VZ
448 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
449 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
450 fi
451 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
452 eval "enable_${ac_feature}=no" ;;
10f2d63a
VZ
453
454 -enable-* | --enable-*)
698dcdb6 455 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
10f2d63a 456 # Reject names that are not valid shell variable names.
698dcdb6
VZ
457 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
458 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
459 fi
460 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
461 case "$ac_option" in
462 *=*) ;;
10f2d63a
VZ
463 *) ac_optarg=yes ;;
464 esac
698dcdb6 465 eval "enable_${ac_feature}='$ac_optarg'" ;;
10f2d63a
VZ
466
467 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
468 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
469 | --exec | --exe | --ex)
470 ac_prev=exec_prefix ;;
471 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
472 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
473 | --exec=* | --exe=* | --ex=*)
698dcdb6 474 exec_prefix="$ac_optarg" ;;
10f2d63a
VZ
475
476 -gas | --gas | --ga | --g)
477 # Obsolete; use --with-gas.
478 with_gas=yes ;;
479
698dcdb6
VZ
480 -help | --help | --hel | --he)
481 # Omit some internal or obsolete options to make the list less imposing.
482 # This message is too long to be a string in the A/UX 3.1 sh.
483 cat << EOF
484Usage: configure [options] [host]
485Options: [defaults in brackets after descriptions]
486Configuration:
487 --cache-file=FILE cache test results in FILE
488 --help print this message
489 --no-create do not create output files
490 --quiet, --silent do not print \`checking...' messages
491 --version print the version of autoconf that created configure
492Directory and file names:
493 --prefix=PREFIX install architecture-independent files in PREFIX
494 [$ac_default_prefix]
495 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
496 [same as prefix]
497 --bindir=DIR user executables in DIR [EPREFIX/bin]
498 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
499 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
500 --datadir=DIR read-only architecture-independent data in DIR
501 [PREFIX/share]
502 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
503 --sharedstatedir=DIR modifiable architecture-independent data in DIR
504 [PREFIX/com]
505 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
506 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
507 --includedir=DIR C header files in DIR [PREFIX/include]
508 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
509 --infodir=DIR info documentation in DIR [PREFIX/info]
510 --mandir=DIR man documentation in DIR [PREFIX/man]
511 --srcdir=DIR find the sources in DIR [configure dir or ..]
512 --program-prefix=PREFIX prepend PREFIX to installed program names
513 --program-suffix=SUFFIX append SUFFIX to installed program names
514 --program-transform-name=PROGRAM
515 run sed PROGRAM on installed program names
516EOF
517 cat << EOF
518Host type:
519 --build=BUILD configure for building on BUILD [BUILD=HOST]
520 --host=HOST configure for HOST [guessed]
521 --target=TARGET configure for TARGET [TARGET=HOST]
522Features and packages:
523 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
524 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
525 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
526 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
527 --x-includes=DIR X include files are in DIR
528 --x-libraries=DIR X library files are in DIR
529EOF
530 if test -n "$ac_help"; then
531 echo "--enable and --with options recognized:$ac_help"
532 fi
533 exit 0 ;;
10f2d63a
VZ
534
535 -host | --host | --hos | --ho)
698dcdb6 536 ac_prev=host ;;
10f2d63a 537 -host=* | --host=* | --hos=* | --ho=*)
698dcdb6 538 host="$ac_optarg" ;;
10f2d63a
VZ
539
540 -includedir | --includedir | --includedi | --included | --include \
541 | --includ | --inclu | --incl | --inc)
542 ac_prev=includedir ;;
543 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
544 | --includ=* | --inclu=* | --incl=* | --inc=*)
698dcdb6 545 includedir="$ac_optarg" ;;
10f2d63a
VZ
546
547 -infodir | --infodir | --infodi | --infod | --info | --inf)
548 ac_prev=infodir ;;
549 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
698dcdb6 550 infodir="$ac_optarg" ;;
10f2d63a
VZ
551
552 -libdir | --libdir | --libdi | --libd)
553 ac_prev=libdir ;;
554 -libdir=* | --libdir=* | --libdi=* | --libd=*)
698dcdb6 555 libdir="$ac_optarg" ;;
10f2d63a
VZ
556
557 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
558 | --libexe | --libex | --libe)
559 ac_prev=libexecdir ;;
560 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
561 | --libexe=* | --libex=* | --libe=*)
698dcdb6 562 libexecdir="$ac_optarg" ;;
10f2d63a
VZ
563
564 -localstatedir | --localstatedir | --localstatedi | --localstated \
565 | --localstate | --localstat | --localsta | --localst \
566 | --locals | --local | --loca | --loc | --lo)
567 ac_prev=localstatedir ;;
568 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
569 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
570 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
698dcdb6 571 localstatedir="$ac_optarg" ;;
10f2d63a
VZ
572
573 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
574 ac_prev=mandir ;;
575 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
698dcdb6 576 mandir="$ac_optarg" ;;
10f2d63a
VZ
577
578 -nfp | --nfp | --nf)
579 # Obsolete; use --without-fp.
580 with_fp=no ;;
581
582 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
583 | --no-cr | --no-c)
584 no_create=yes ;;
585
586 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
587 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
588 no_recursion=yes ;;
589
590 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
591 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
592 | --oldin | --oldi | --old | --ol | --o)
593 ac_prev=oldincludedir ;;
594 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
595 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
596 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
698dcdb6 597 oldincludedir="$ac_optarg" ;;
10f2d63a
VZ
598
599 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
600 ac_prev=prefix ;;
601 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
698dcdb6 602 prefix="$ac_optarg" ;;
10f2d63a
VZ
603
604 -program-prefix | --program-prefix | --program-prefi | --program-pref \
605 | --program-pre | --program-pr | --program-p)
606 ac_prev=program_prefix ;;
607 -program-prefix=* | --program-prefix=* | --program-prefi=* \
608 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
698dcdb6 609 program_prefix="$ac_optarg" ;;
10f2d63a
VZ
610
611 -program-suffix | --program-suffix | --program-suffi | --program-suff \
612 | --program-suf | --program-su | --program-s)
613 ac_prev=program_suffix ;;
614 -program-suffix=* | --program-suffix=* | --program-suffi=* \
615 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
698dcdb6 616 program_suffix="$ac_optarg" ;;
10f2d63a
VZ
617
618 -program-transform-name | --program-transform-name \
619 | --program-transform-nam | --program-transform-na \
620 | --program-transform-n | --program-transform- \
621 | --program-transform | --program-transfor \
622 | --program-transfo | --program-transf \
623 | --program-trans | --program-tran \
624 | --progr-tra | --program-tr | --program-t)
625 ac_prev=program_transform_name ;;
626 -program-transform-name=* | --program-transform-name=* \
627 | --program-transform-nam=* | --program-transform-na=* \
628 | --program-transform-n=* | --program-transform-=* \
629 | --program-transform=* | --program-transfor=* \
630 | --program-transfo=* | --program-transf=* \
631 | --program-trans=* | --program-tran=* \
632 | --progr-tra=* | --program-tr=* | --program-t=*)
698dcdb6 633 program_transform_name="$ac_optarg" ;;
10f2d63a
VZ
634
635 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
636 | -silent | --silent | --silen | --sile | --sil)
637 silent=yes ;;
638
639 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
640 ac_prev=sbindir ;;
641 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
642 | --sbi=* | --sb=*)
698dcdb6 643 sbindir="$ac_optarg" ;;
10f2d63a
VZ
644
645 -sharedstatedir | --sharedstatedir | --sharedstatedi \
646 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
647 | --sharedst | --shareds | --shared | --share | --shar \
648 | --sha | --sh)
649 ac_prev=sharedstatedir ;;
650 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
651 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
652 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
653 | --sha=* | --sh=*)
698dcdb6 654 sharedstatedir="$ac_optarg" ;;
10f2d63a
VZ
655
656 -site | --site | --sit)
657 ac_prev=site ;;
658 -site=* | --site=* | --sit=*)
698dcdb6 659 site="$ac_optarg" ;;
10f2d63a
VZ
660
661 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
662 ac_prev=srcdir ;;
663 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
698dcdb6 664 srcdir="$ac_optarg" ;;
10f2d63a
VZ
665
666 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
667 | --syscon | --sysco | --sysc | --sys | --sy)
668 ac_prev=sysconfdir ;;
669 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
670 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
698dcdb6 671 sysconfdir="$ac_optarg" ;;
10f2d63a
VZ
672
673 -target | --target | --targe | --targ | --tar | --ta | --t)
698dcdb6 674 ac_prev=target ;;
10f2d63a 675 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
698dcdb6 676 target="$ac_optarg" ;;
10f2d63a
VZ
677
678 -v | -verbose | --verbose | --verbos | --verbo | --verb)
679 verbose=yes ;;
680
698dcdb6
VZ
681 -version | --version | --versio | --versi | --vers)
682 echo "configure generated by autoconf version 2.13"
683 exit 0 ;;
10f2d63a
VZ
684
685 -with-* | --with-*)
698dcdb6 686 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
10f2d63a 687 # Reject names that are not valid shell variable names.
698dcdb6
VZ
688 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
689 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
690 fi
10f2d63a 691 ac_package=`echo $ac_package| sed 's/-/_/g'`
698dcdb6
VZ
692 case "$ac_option" in
693 *=*) ;;
10f2d63a
VZ
694 *) ac_optarg=yes ;;
695 esac
698dcdb6 696 eval "with_${ac_package}='$ac_optarg'" ;;
10f2d63a
VZ
697
698 -without-* | --without-*)
698dcdb6 699 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
10f2d63a 700 # Reject names that are not valid shell variable names.
698dcdb6
VZ
701 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
702 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
703 fi
704 ac_package=`echo $ac_package| sed 's/-/_/g'`
705 eval "with_${ac_package}=no" ;;
10f2d63a
VZ
706
707 --x)
708 # Obsolete; use --with-x.
709 with_x=yes ;;
710
711 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
712 | --x-incl | --x-inc | --x-in | --x-i)
713 ac_prev=x_includes ;;
714 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
715 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
698dcdb6 716 x_includes="$ac_optarg" ;;
10f2d63a
VZ
717
718 -x-libraries | --x-libraries | --x-librarie | --x-librari \
719 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
720 ac_prev=x_libraries ;;
721 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
722 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
698dcdb6 723 x_libraries="$ac_optarg" ;;
10f2d63a 724
698dcdb6 725 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
10f2d63a
VZ
726 ;;
727
728 *)
698dcdb6
VZ
729 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
730 echo "configure: warning: $ac_option: invalid host type" 1>&2
731 fi
732 if test "x$nonopt" != xNONE; then
733 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
734 fi
735 nonopt="$ac_option"
10f2d63a
VZ
736 ;;
737
738 esac
739done
740
741if test -n "$ac_prev"; then
698dcdb6
VZ
742 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
743fi
744
745trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
746
747# File descriptor usage:
748# 0 standard input
749# 1 file creation
750# 2 errors and warnings
751# 3 some systems may open it to /dev/tty
752# 4 used on the Kubota Titan
753# 6 checking for... messages and results
754# 5 compiler messages saved in config.log
755if test "$silent" = yes; then
756 exec 6>/dev/null
757else
758 exec 6>&1
10f2d63a 759fi
698dcdb6
VZ
760exec 5>./config.log
761
762echo "\
763This file contains any messages produced by compilers while
764running configure, to aid debugging if configure makes a mistake.
765" 1>&5
10f2d63a 766
698dcdb6
VZ
767# Strip out --no-create and --no-recursion so they do not pile up.
768# Also quote any args containing shell metacharacters.
769ac_configure_args=
770for ac_arg
10f2d63a 771do
698dcdb6
VZ
772 case "$ac_arg" in
773 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
774 | --no-cr | --no-c) ;;
775 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
776 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
777 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
778 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
779 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
10f2d63a
VZ
780 esac
781done
782
698dcdb6
VZ
783# NLS nuisances.
784# Only set these to C if already set. These must not be set unconditionally
785# because not all systems understand e.g. LANG=C (notably SCO).
786# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
787# Non-C LC_CTYPE values break the ctype check.
788if test "${LANG+set}" = set; then LANG=C; export LANG; fi
789if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
790if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
791if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
10f2d63a 792
698dcdb6
VZ
793# confdefs.h avoids OS command line length limits that DEFS can exceed.
794rm -rf conftest* confdefs.h
795# AIX cpp loses on an empty file, so make sure it contains at least a newline.
796echo > confdefs.h
10f2d63a 797
698dcdb6
VZ
798# A filename unique to this package, relative to the directory that
799# configure is in, which we can look for to find out if srcdir is correct.
800ac_unique_file=wx-config.in
10f2d63a
VZ
801
802# Find the source files, if location was not specified.
803if test -z "$srcdir"; then
804 ac_srcdir_defaulted=yes
805 # Try the directory containing this script, then its parent.
806 ac_prog=$0
698dcdb6 807 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
10f2d63a
VZ
808 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
809 srcdir=$ac_confdir
810 if test ! -r $srcdir/$ac_unique_file; then
811 srcdir=..
812 fi
813else
814 ac_srcdir_defaulted=no
815fi
816if test ! -r $srcdir/$ac_unique_file; then
817 if test "$ac_srcdir_defaulted" = yes; then
698dcdb6 818 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
10f2d63a 819 else
698dcdb6 820 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
10f2d63a
VZ
821 fi
822fi
698dcdb6 823srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
10f2d63a
VZ
824
825# Prefer explicitly selected file to automatically selected ones.
826if test -z "$CONFIG_SITE"; then
827 if test "x$prefix" != xNONE; then
828 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
829 else
830 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
831 fi
832fi
833for ac_site_file in $CONFIG_SITE; do
834 if test -r "$ac_site_file"; then
698dcdb6 835 echo "loading site script $ac_site_file"
10f2d63a
VZ
836 . "$ac_site_file"
837 fi
838done
839
840if test -r "$cache_file"; then
698dcdb6
VZ
841 echo "loading cache $cache_file"
842 . $cache_file
10f2d63a 843else
698dcdb6
VZ
844 echo "creating cache $cache_file"
845 > $cache_file
10f2d63a
VZ
846fi
847
848ac_ext=c
698dcdb6 849# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10f2d63a 850ac_cpp='$CPP $CPPFLAGS'
698dcdb6
VZ
851ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
852ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
853cross_compiling=$ac_cv_prog_cc_cross
854
855ac_exeext=
856ac_objext=o
857if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
858 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
859 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
860 ac_n= ac_c='
861' ac_t=' '
862 else
863 ac_n=-n ac_c= ac_t=
864 fi
10f2d63a 865else
698dcdb6 866 ac_n= ac_c='\c' ac_t=
10f2d63a 867fi
698dcdb6
VZ
868
869
10f2d63a 870
7c66a493
VZ
871ac_aux_dir=
872for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
873 if test -f $ac_dir/install-sh; then
874 ac_aux_dir=$ac_dir
875 ac_install_sh="$ac_aux_dir/install-sh -c"
876 break
877 elif test -f $ac_dir/install.sh; then
878 ac_aux_dir=$ac_dir
879 ac_install_sh="$ac_aux_dir/install.sh -c"
880 break
881 fi
882done
883if test -z "$ac_aux_dir"; then
698dcdb6 884 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
7c66a493 885fi
698dcdb6
VZ
886ac_config_guess=$ac_aux_dir/config.guess
887ac_config_sub=$ac_aux_dir/config.sub
888ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
703e0a69 889
698dcdb6
VZ
890
891# Do some error checking and defaulting for the host and target type.
892# The inputs are:
893# configure --host=HOST --target=TARGET --build=BUILD NONOPT
894#
895# The rules are:
896# 1. You are not allowed to specify --host, --target, and nonopt at the
897# same time.
898# 2. Host defaults to nonopt.
899# 3. If nonopt is not specified, then host defaults to the current host,
900# as determined by config.guess.
901# 4. Target and build default to nonopt.
902# 5. If nonopt is not specified, then target and build default to host.
7c66a493
VZ
903
904# The aliases save the names the user supplied, while $host etc.
905# will get canonicalized.
698dcdb6
VZ
906case $host---$target---$nonopt in
907NONE---*---* | *---NONE---* | *---*---NONE) ;;
908*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
909esac
910
911
912# Make sure we can run config.sub.
913if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
914else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
915fi
916
917echo $ac_n "checking host system type""... $ac_c" 1>&6
54276ccf 918echo "configure:919: checking host system type" >&5
698dcdb6
VZ
919
920host_alias=$host
921case "$host_alias" in
922NONE)
923 case $nonopt in
924 NONE)
925 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
926 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
927 fi ;;
928 *) host_alias=$nonopt ;;
929 esac ;;
930esac
931
932host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
933host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
934host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
935host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
936echo "$ac_t""$host" 1>&6
937
938echo $ac_n "checking target system type""... $ac_c" 1>&6
54276ccf 939echo "configure:940: checking target system type" >&5
698dcdb6
VZ
940
941target_alias=$target
942case "$target_alias" in
943NONE)
944 case $nonopt in
945 NONE) target_alias=$host_alias ;;
946 *) target_alias=$nonopt ;;
947 esac ;;
948esac
949
950target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
951target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
952target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
953target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
954echo "$ac_t""$target" 1>&6
955
956echo $ac_n "checking build system type""... $ac_c" 1>&6
54276ccf 957echo "configure:958: checking build system type" >&5
698dcdb6
VZ
958
959build_alias=$build
960case "$build_alias" in
961NONE)
962 case $nonopt in
963 NONE) build_alias=$host_alias ;;
964 *) build_alias=$nonopt ;;
965 esac ;;
966esac
967
968build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
969build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
970build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
971build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
972echo "$ac_t""$build" 1>&6
973
974test "$host_alias" != "$target_alias" &&
7c66a493
VZ
975 test "$program_prefix$program_suffix$program_transform_name" = \
976 NONENONEs,x,x, &&
977 program_prefix=${target_alias}-
978
698dcdb6
VZ
979
980
10f2d63a 981WX_MAJOR_VERSION_NUMBER=2
37d403aa 982WX_MINOR_VERSION_NUMBER=3
665bbe97 983WX_RELEASE_NUMBER=1
10f2d63a 984
10f2d63a 985WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER
10f2d63a 986WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER
6426998c
RL
987
988WX_CURRENT=0
989WX_REVISION=0
990WX_AGE=0
991
698dcdb6
VZ
992
993
10f2d63a
VZ
994USE_UNIX=1
995USE_WIN32=0
b12915c1 996USE_BEOS=0
1216f52d 997USE_MAC=0
b12915c1 998
10f2d63a
VZ
999USE_LINUX=
1000USE_SGI=
1001USE_HPUX=
1002USE_SYSV=
1003USE_SVR4=
1004USE_AIX=
1005USE_SUN=
1006USE_SOLARIS=
1007USE_SUNOS=
1008USE_ALPHA=
1009USE_OSF=
1010USE_BSD=
1011USE_FREEBSD=
95c8801c 1012USE_OPENBSD=
f6bcfd97 1013USE_NETBSD=
10f2d63a
VZ
1014USE_VMS=
1015USE_ULTRIX=
1016USE_CYGWIN=
1017USE_MINGW=
1018USE_DATA_GENERAL=
1019
ab9b9eab
VZ
1020NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1021
1e6feb95 1022ALL_TOOLKITS="CYGWIN GTK MAC MGL MINGW MOTIF PM WINE"
10f2d63a
VZ
1023
1024DEFAULT_wxUSE_GTK=0
1e6feb95
VZ
1025DEFAULT_wxUSE_MAC=0
1026DEFAULT_wxUSE_MGL=0
10f2d63a
VZ
1027DEFAULT_wxUSE_MOTIF=0
1028DEFAULT_wxUSE_MSW=0
e07802fc 1029DEFAULT_wxUSE_PM=0
1e6feb95 1030DEFAULT_wxUSE_WINE=0
10f2d63a
VZ
1031
1032DEFAULT_DEFAULT_wxUSE_GTK=0
1e6feb95
VZ
1033DEFAULT_DEFAULT_wxUSE_MAC=0
1034DEFAULT_DEFAULT_wxUSE_MGL=0
10f2d63a
VZ
1035DEFAULT_DEFAULT_wxUSE_MOTIF=0
1036DEFAULT_DEFAULT_wxUSE_MSW=0
e07802fc 1037DEFAULT_DEFAULT_wxUSE_PM=0
1e6feb95 1038DEFAULT_DEFAULT_wxUSE_WINE=0
10f2d63a 1039
d6a55c4b
VZ
1040PROGRAM_EXT=
1041
10f2d63a
VZ
1042case "${host}" in
1043 *-hp-hpux* )
1044 USE_HPUX=1
1045 DEFAULT_DEFAULT_wxUSE_MOTIF=1
ab9b9eab 1046 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
698dcdb6 1047 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1048#define __HPUX__ 1
1049EOF
1050
1051 ;;
1052 *-*-linux* )
1053 USE_LINUX=1
698dcdb6 1054 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1055#define __LINUX__ 1
1056EOF
1057
1058 TMP=`uname -m`
1059 if test "x$TMP" = "xalpha"; then
1060 USE_ALPHA=1
698dcdb6 1061 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1062#define __ALPHA__ 1
1063EOF
1064
1065 fi
1066 DEFAULT_DEFAULT_wxUSE_GTK=1
1067 ;;
1068 *-*-irix5* | *-*-irix6* )
1069 USE_SGI=1
1070 USE_SVR4=1
698dcdb6 1071 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1072#define __SGI__ 1
1073EOF
1074
698dcdb6 1075 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1076#define __SVR4__ 1
1077EOF
1078
1079 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1080 ;;
1081 *-*-solaris2* )
1082 USE_SUN=1
1083 USE_SOLARIS=1
1084 USE_SVR4=1
698dcdb6 1085 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1086#define __SUN__ 1
1087EOF
1088
698dcdb6 1089 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1090#define __SOLARIS__ 1
1091EOF
1092
698dcdb6 1093 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1094#define __SVR4__ 1
1095EOF
1096
1097 DEFAULT_DEFAULT_wxUSE_MOTIF=1
ab9b9eab 1098 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
10f2d63a
VZ
1099 ;;
1100 *-*-sunos4* )
1101 USE_SUN=1
1102 USE_SUNOS=1
1103 USE_BSD=1
698dcdb6 1104 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1105#define __SUN__ 1
1106EOF
1107
698dcdb6 1108 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1109#define __SUNOS__ 1
1110EOF
1111
698dcdb6 1112 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1113#define __BSD__ 1
1114EOF
1115
1116 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1117 ;;
f6bcfd97 1118 *-*-freebsd*)
10f2d63a
VZ
1119 USE_BSD=1
1120 USE_FREEBSD=1
698dcdb6 1121 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1122#define __FREEBSD__ 1
1123EOF
1124
698dcdb6 1125 cat >> confdefs.h <<\EOF
10f2d63a 1126#define __BSD__ 1
95c8801c
VS
1127EOF
1128
1129 DEFAULT_DEFAULT_wxUSE_GTK=1
1130 ;;
1131 *-*-openbsd*)
1132 USE_BSD=1
1133 USE_OPENBSD=1
698dcdb6 1134 cat >> confdefs.h <<\EOF
95c8801c
VS
1135#define __FREEBSD__ 1
1136EOF
1137
698dcdb6 1138 cat >> confdefs.h <<\EOF
95c8801c 1139#define __OPENBSD__ 1
f6bcfd97
BP
1140EOF
1141
1142 DEFAULT_DEFAULT_wxUSE_GTK=1
1143 ;;
1144 *-*-netbsd*)
1145 USE_BSD=1
1146 USE_NETBSD=1
698dcdb6 1147 cat >> confdefs.h <<\EOF
f6bcfd97
BP
1148#define __FREEBSD__ 1
1149EOF
1150
698dcdb6 1151 cat >> confdefs.h <<\EOF
f6bcfd97 1152#define __NETBSD__ 1
10f2d63a
VZ
1153EOF
1154
1155 DEFAULT_DEFAULT_wxUSE_GTK=1
1156 ;;
1157 *-*-osf* )
1158 USE_ALPHA=1
1159 USE_OSF=1
698dcdb6 1160 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1161#define __ALPHA__ 1
1162EOF
1163
698dcdb6 1164 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1165#define __OSF__ 1
1166EOF
1167
1168 DEFAULT_DEFAULT_wxUSE_MOTIF=1
f6bcfd97 1169 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
10f2d63a
VZ
1170 ;;
1171 *-*-dgux5* )
1172 USE_ALPHA=1
1173 USE_SVR4=1
698dcdb6 1174 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1175#define __ALPHA__ 1
1176EOF
1177
698dcdb6 1178 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1179#define __SVR4__ 1
1180EOF
1181
1182 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1183 ;;
1184 *-*-sysv5* )
1185 USE_SYSV=1
1186 USE_SVR4=1
698dcdb6 1187 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1188#define __SYSV__ 1
1189EOF
1190
698dcdb6 1191 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1192#define __SVR4__ 1
1193EOF
1194
1195 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1196 ;;
1197 *-*-aix* )
1198 USE_AIX=1
1199 USE_SYSV=1
1200 USE_SVR4=1
698dcdb6 1201 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1202#define __AIX__ 1
1203EOF
1204
698dcdb6 1205 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1206#define __SYSV__ 1
1207EOF
1208
698dcdb6 1209 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1210#define __SVR4__ 1
1211EOF
1212
1213 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1214 ;;
1215
1c8183e2 1216 *-*-cygwin* | *-*-mingw32* )
10f2d63a
VZ
1217 USE_UNIX=0
1218 USE_WIN32=1
698dcdb6 1219 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1220#define __WIN32__ 1
1221EOF
1222
698dcdb6 1223 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1224#define __WIN95__ 1
1225EOF
1226
698dcdb6 1227 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1228#define __WINDOWS__ 1
1229EOF
1230
698dcdb6 1231 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1232#define __GNUWIN32__ 1
1233EOF
1234
698dcdb6 1235 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1236#define STRICT 1
1237EOF
1238
698dcdb6 1239 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1240#define WINVER 0x0400
1241EOF
1242
cf27ef00 1243 PROGRAM_EXT=".exe"
10f2d63a
VZ
1244 DEFAULT_DEFAULT_wxUSE_MSW=1
1245 ;;
1246
1247 *-pc-os2_emx )
698dcdb6 1248 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1249#define __EMX__ 1
1250EOF
1251
cf27ef00 1252 PROGRAM_EXT=".exe"
e07802fc 1253 DEFAULT_DEFAULT_wxUSE_PM=1
10f2d63a
VZ
1254 ;;
1255
b4085ce6
GD
1256 *-*-darwin* )
1257 USE_BSD=1
1258 USE_MAC=1
698dcdb6 1259 cat >> confdefs.h <<\EOF
b4085ce6
GD
1260#define __MAC__ 1
1261EOF
1262
698dcdb6 1263 cat >> confdefs.h <<\EOF
b4085ce6
GD
1264#define __BSD__ 1
1265EOF
1266
698dcdb6 1267 cat >> confdefs.h <<\EOF
b4085ce6
GD
1268#define __UNIX__ 1
1269EOF
1270
1271 DEFAULT_DEFAULT_wxUSE_MAC=1
1272 ;;
1273
b12915c1
VZ
1274 *-*-beos* )
1275 USE_BEOS=1
698dcdb6 1276 cat >> confdefs.h <<\EOF
b12915c1
VZ
1277#define __BEOS__ 1
1278EOF
1279
1280 ;;
1281
10f2d63a 1282 *)
698dcdb6 1283 { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; }
10f2d63a
VZ
1284esac
1285
1286if test "$USE_UNIX" = 1 ; then
b12915c1 1287 wxUSE_UNIX=yes
698dcdb6 1288 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1289#define __UNIX__ 1
1290EOF
1291
698dcdb6 1292
b12915c1
VZ
1293 SRC_SUBDIRS="$SRC_SUBDIRS unix"
1294 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS unix"
1295fi
1296
1297if test "$USE_BEOS" = 1; then
1298 SRC_SUBDIRS="$SRC_SUBDIRS be"
1299 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS be"
10f2d63a
VZ
1300fi
1301
1302if test "$USE_LINUX" = 1; then
698dcdb6 1303 echo $ac_n "checking for gettext in -lc""... $ac_c" 1>&6
54276ccf 1304echo "configure:1305: checking for gettext in -lc" >&5
698dcdb6
VZ
1305ac_lib_var=`echo c'_'gettext | sed 'y%./+-%__p_%'`
1306if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1307 echo $ac_n "(cached) $ac_c" 1>&6
1e487827 1308else
698dcdb6
VZ
1309 ac_save_LIBS="$LIBS"
1310LIBS="-lc $LIBS"
1311cat > conftest.$ac_ext <<EOF
54276ccf 1312#line 1313 "configure"
698dcdb6
VZ
1313#include "confdefs.h"
1314/* Override any gcc2 internal prototype to avoid an error. */
1315/* We use char because int might match the return type of a gcc2
1316 builtin and then its argument prototype would still apply. */
1317char gettext();
10f2d63a 1318
698dcdb6
VZ
1319int main() {
1320gettext()
1321; return 0; }
1322EOF
54276ccf 1323if { (eval echo configure:1324: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
1324 rm -rf conftest*
1325 eval "ac_cv_lib_$ac_lib_var=yes"
10f2d63a 1326else
698dcdb6
VZ
1327 echo "configure: failed program was:" >&5
1328 cat conftest.$ac_ext >&5
1329 rm -rf conftest*
1330 eval "ac_cv_lib_$ac_lib_var=no"
10f2d63a 1331fi
698dcdb6
VZ
1332rm -f conftest*
1333LIBS="$ac_save_LIBS"
10f2d63a
VZ
1334
1335fi
698dcdb6
VZ
1336if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1337 echo "$ac_t""yes" 1>&6
1338 cat >> confdefs.h <<\EOF
1339#define wxHAVE_GLIBC2 1
1340EOF
10f2d63a
VZ
1341
1342else
698dcdb6 1343 echo "$ac_t""no" 1>&6
10f2d63a
VZ
1344fi
1345
1346fi
1347
1e487827 1348
1e487827 1349
6232543b 1350
10f2d63a
VZ
1351 wx_arg_cache_file="configarg.cache"
1352 echo "loading argument cache $wx_arg_cache_file"
1353 rm -f ${wx_arg_cache_file}.tmp
1354 touch ${wx_arg_cache_file}.tmp
1355 touch ${wx_arg_cache_file}
698dcdb6 1356
10f2d63a
VZ
1357
1358DEBUG_CONFIGURE=0
1359if test $DEBUG_CONFIGURE = 1; then
1e6feb95
VZ
1360 DEFAULT_wxUSE_UNIVERSAL=no
1361
10f2d63a
VZ
1362 DEFAULT_wxUSE_THREADS=yes
1363
1364 DEFAULT_wxUSE_SHARED=yes
00cf1208 1365 DEFAULT_wxUSE_BURNT_NAME=no
1e6feb95 1366 DEFAULT_wxUSE_OPTIMISE=no
10f2d63a
VZ
1367 DEFAULT_wxUSE_PROFILE=no
1368 DEFAULT_wxUSE_NO_DEPS=no
1369 DEFAULT_wxUSE_NO_RTTI=no
1370 DEFAULT_wxUSE_NO_EXCEPTIONS=no
1371 DEFAULT_wxUSE_PERMISSIVE=no
1372 DEFAULT_wxUSE_DEBUG_FLAG=yes
1373 DEFAULT_wxUSE_DEBUG_INFO=yes
1374 DEFAULT_wxUSE_DEBUG_GDB=yes
1375 DEFAULT_wxUSE_MEM_TRACING=no
1376 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1377 DEFAULT_wxUSE_DMALLOC=no
1378 DEFAULT_wxUSE_APPLE_IEEE=no
1379
1380 DEFAULT_wxUSE_LOG=yes
1e6feb95
VZ
1381 DEFAULT_wxUSE_LOGWINDOW=no
1382 DEFAULT_wxUSE_LOGGUI=no
10f2d63a
VZ
1383
1384 DEFAULT_wxUSE_GUI=yes
1e6feb95 1385 DEFAULT_wxUSE_CONTROLS=no
10f2d63a
VZ
1386
1387 DEFAULT_wxUSE_ZLIB=no
1388 DEFAULT_wxUSE_LIBPNG=no
1389 DEFAULT_wxUSE_LIBJPEG=no
c7a2bf27 1390 DEFAULT_wxUSE_LIBTIFF=no
10f2d63a 1391 DEFAULT_wxUSE_ODBC=no
3fed1840 1392 DEFAULT_wxUSE_FREETYPE=no
bdad4e7e 1393 DEFAULT_wxUSE_OPENGL=no
10f2d63a 1394
eb4efbdc 1395 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
4f3c5f06 1396 DEFAULT_wxUSE_SNGLINST_CHECKER=no
10f2d63a 1397 DEFAULT_wxUSE_STD_IOSTREAM=no
1e6feb95
VZ
1398 DEFAULT_wxUSE_CMDLINE_PARSER=no
1399 DEFAULT_wxUSE_DATETIME=no
1400 DEFAULT_wxUSE_TIMEDATE=no
1401 DEFAULT_wxUSE_TIMER=no
1402 DEFAULT_wxUSE_STOPWATCH=no
10f2d63a 1403 DEFAULT_wxUSE_FILE=no
1e6feb95 1404 DEFAULT_wxUSE_FFILE=no
10f2d63a 1405 DEFAULT_wxUSE_TEXTFILE=no
10f2d63a
VZ
1406 DEFAULT_wxUSE_WAVE=no
1407 DEFAULT_wxUSE_INTL=no
1408 DEFAULT_wxUSE_CONFIG=no
1e6feb95 1409 DEFAULT_wxUSE_FONTMAP=no
10f2d63a
VZ
1410 DEFAULT_wxUSE_STREAMS=no
1411 DEFAULT_wxUSE_SOCKETS=no
1412 DEFAULT_wxUSE_DIALUP_MANAGER=no
1413 DEFAULT_wxUSE_SERIAL=no
1414 DEFAULT_wxUSE_JOYSTICK=no
1415 DEFAULT_wxUSE_DYNLIB_CLASS=no
1416 DEFAULT_wxUSE_LONGLONG=no
e8f65ba6 1417 DEFAULT_wxUSE_GEOMETRY=no
10f2d63a
VZ
1418
1419 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
1420 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
1421 DEFAULT_wxUSE_POSTSCRIPT=no
1422
1423 DEFAULT_wxUSE_X_RESOURCES=no
1424 DEFAULT_wxUSE_CLIPBOARD=no
1425 DEFAULT_wxUSE_TOOLTIPS=no
1426 DEFAULT_wxUSE_DRAG_AND_DROP=no
1427 DEFAULT_wxUSE_SPLINES=no
1428
1429 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
1430 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
1431 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
1432
1433 DEFAULT_wxUSE_PROLOGIO=no
1434 DEFAULT_wxUSE_RESOURCES=no
1435 DEFAULT_wxUSE_CONSTRAINTS=no
1436 DEFAULT_wxUSE_IPC=no
1437 DEFAULT_wxUSE_HELP=no
1438 DEFAULT_wxUSE_WXTREE=no
1439 DEFAULT_wxUSE_METAFILE=no
1e6feb95 1440 DEFAULT_wxUSE_MIMETYPE=no
10f2d63a
VZ
1441
1442 DEFAULT_wxUSE_COMMONDLGS=no
1e6feb95
VZ
1443 DEFAULT_wxUSE_CHOICEDLG=no
1444 DEFAULT_wxUSE_COLOURDLG=no
10f2d63a 1445 DEFAULT_wxUSE_DIRDLG=no
1e6feb95
VZ
1446 DEFAULT_wxUSE_FILEDLG=no
1447 DEFAULT_wxUSE_FONTDLG=no
1448 DEFAULT_wxUSE_MSGDLG=no
1449 DEFAULT_wxUSE_NUMBERDLG=no
10f2d63a
VZ
1450 DEFAULT_wxUSE_TEXTDLG=no
1451 DEFAULT_wxUSE_STARTUP_TIPS=no
1452 DEFAULT_wxUSE_PROGRESSDLG=no
1e6feb95 1453 DEFAULT_wxUSE_MENUS=no
10f2d63a
VZ
1454 DEFAULT_wxUSE_MINIFRAME=no
1455 DEFAULT_wxUSE_HTML=no
24528b0c 1456 DEFAULT_wxUSE_FILESYSTEM=no
10f2d63a
VZ
1457 DEFAULT_wxUSE_FS_INET=no
1458 DEFAULT_wxUSE_FS_ZIP=no
1459 DEFAULT_wxUSE_BUSYINFO=no
1460 DEFAULT_wxUSE_ZIPSTREAM=no
1e6feb95 1461 DEFAULT_wxUSE_VALIDATORS=no
10f2d63a
VZ
1462
1463 DEFAULT_wxUSE_ACCEL=no
1e6feb95 1464 DEFAULT_wxUSE_BUTTON=no
10f2d63a 1465 DEFAULT_wxUSE_BMPBUTTON=no
1e6feb95
VZ
1466 DEFAULT_wxUSE_CALCTRL=no
1467 DEFAULT_wxUSE_CARET=no
10f2d63a
VZ
1468 DEFAULT_wxUSE_CHECKBOX=no
1469 DEFAULT_wxUSE_CHECKLST=no
1e6feb95 1470 DEFAULT_wxUSE_CHOICE=no
10f2d63a
VZ
1471 DEFAULT_wxUSE_COMBOBOX=no
1472 DEFAULT_wxUSE_GAUGE=no
1473 DEFAULT_wxUSE_GRID=no
1474 DEFAULT_wxUSE_NEW_GRID=no
1475 DEFAULT_wxUSE_IMAGLIST=no
1476 DEFAULT_wxUSE_LISTBOX=no
1477 DEFAULT_wxUSE_LISTCTRL=no
1478 DEFAULT_wxUSE_NOTEBOOK=no
1479 DEFAULT_wxUSE_RADIOBOX=no
1480 DEFAULT_wxUSE_RADIOBTN=no
1481 DEFAULT_wxUSE_SASH=no
1482 DEFAULT_wxUSE_SCROLLBAR=no
1483 DEFAULT_wxUSE_SLIDER=no
1484 DEFAULT_wxUSE_SPINBTN=no
56cfaa52 1485 DEFAULT_wxUSE_SPINCTRL=no
10f2d63a
VZ
1486 DEFAULT_wxUSE_SPLITTER=no
1487 DEFAULT_wxUSE_STATBMP=no
1488 DEFAULT_wxUSE_STATBOX=no
1489 DEFAULT_wxUSE_STATLINE=no
1e6feb95 1490 DEFAULT_wxUSE_STATTEXT=no
10f2d63a
VZ
1491 DEFAULT_wxUSE_STATUSBAR=yes
1492 DEFAULT_wxUSE_TABDIALOG=no
1e6feb95 1493 DEFAULT_wxUSE_TEXTCTRL=no
1db8dc4a 1494 DEFAULT_wxUSE_TOGGLEBTN=no
10f2d63a 1495 DEFAULT_wxUSE_TOOLBAR=no
360d6699
VZ
1496 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
1497 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
10f2d63a
VZ
1498 DEFAULT_wxUSE_TREECTRL=no
1499
1500 DEFAULT_wxUSE_UNICODE=no
1501 DEFAULT_wxUSE_WCSRTOMBS=no
1502
0046ff7c 1503 DEFAULT_wxUSE_IMAGE=no
10f2d63a
VZ
1504 DEFAULT_wxUSE_GIF=no
1505 DEFAULT_wxUSE_PCX=no
1506 DEFAULT_wxUSE_PNM=no
0046ff7c 1507 DEFAULT_wxUSE_XPM=no
10f2d63a 1508else
1e6feb95
VZ
1509 DEFAULT_wxUSE_UNIVERSAL=no
1510
10f2d63a
VZ
1511 DEFAULT_wxUSE_THREADS=yes
1512
1513 DEFAULT_wxUSE_SHARED=yes
00cf1208 1514 DEFAULT_wxUSE_BURNT_NAME=no
10f2d63a
VZ
1515 DEFAULT_wxUSE_OPTIMISE=yes
1516 DEFAULT_wxUSE_PROFILE=no
1517 DEFAULT_wxUSE_NO_DEPS=no
1518 DEFAULT_wxUSE_NO_RTTI=no
1519 DEFAULT_wxUSE_NO_EXCEPTIONS=no
1520 DEFAULT_wxUSE_PERMISSIVE=no
1521 DEFAULT_wxUSE_DEBUG_FLAG=no
1522 DEFAULT_wxUSE_DEBUG_INFO=no
1523 DEFAULT_wxUSE_DEBUG_GDB=no
1524 DEFAULT_wxUSE_MEM_TRACING=no
1525 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1526 DEFAULT_wxUSE_DMALLOC=no
1527 DEFAULT_wxUSE_APPLE_IEEE=yes
1528
1529 DEFAULT_wxUSE_LOG=yes
d73be714
VZ
1530 DEFAULT_wxUSE_LOGWINDOW=yes
1531 DEFAULT_wxUSE_LOGGUI=yes
10f2d63a
VZ
1532
1533 DEFAULT_wxUSE_GUI=yes
1534
1535 DEFAULT_wxUSE_ZLIB=yes
1536 DEFAULT_wxUSE_LIBPNG=yes
1537 DEFAULT_wxUSE_LIBJPEG=yes
b47c832e 1538 DEFAULT_wxUSE_LIBTIFF=yes
16b52fa1 1539 DEFAULT_wxUSE_ODBC=no
3fed1840 1540 DEFAULT_wxUSE_FREETYPE=no
bdad4e7e 1541 DEFAULT_wxUSE_OPENGL=no
10f2d63a 1542
eb4efbdc 1543 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
4f3c5f06 1544 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
10f2d63a 1545 DEFAULT_wxUSE_STD_IOSTREAM=no
1e6feb95
VZ
1546 DEFAULT_wxUSE_CMDLINE_PARSER=yes
1547 DEFAULT_wxUSE_DATETIME=yes
1548 DEFAULT_wxUSE_TIMEDATE=no
1549 DEFAULT_wxUSE_TIMER=yes
1550 DEFAULT_wxUSE_STOPWATCH=yes
10f2d63a 1551 DEFAULT_wxUSE_FILE=yes
1e6feb95 1552 DEFAULT_wxUSE_FFILE=yes
10f2d63a 1553 DEFAULT_wxUSE_TEXTFILE=yes
10f2d63a
VZ
1554 DEFAULT_wxUSE_WAVE=no
1555 DEFAULT_wxUSE_INTL=yes
1556 DEFAULT_wxUSE_CONFIG=yes
1e6feb95 1557 DEFAULT_wxUSE_FONTMAP=yes
10f2d63a
VZ
1558 DEFAULT_wxUSE_STREAMS=yes
1559 DEFAULT_wxUSE_SOCKETS=yes
1560 DEFAULT_wxUSE_DIALUP_MANAGER=yes
1561 DEFAULT_wxUSE_SERIAL=yes
1562 DEFAULT_wxUSE_JOYSTICK=yes
1563 DEFAULT_wxUSE_DYNLIB_CLASS=yes
b685cd9b 1564 DEFAULT_wxUSE_LONGLONG=yes
e8f65ba6 1565 DEFAULT_wxUSE_GEOMETRY=yes
10f2d63a
VZ
1566
1567 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
1568 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
1569 DEFAULT_wxUSE_POSTSCRIPT=yes
1570
1571 DEFAULT_wxUSE_X_RESOURCES=no
1572 DEFAULT_wxUSE_CLIPBOARD=yes
1573 DEFAULT_wxUSE_TOOLTIPS=yes
1574 DEFAULT_wxUSE_DRAG_AND_DROP=yes
1575 DEFAULT_wxUSE_SPLINES=yes
1576
1577 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
1578 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
1579 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
1580
1581 DEFAULT_wxUSE_PROLOGIO=yes
1582 DEFAULT_wxUSE_RESOURCES=yes
1583 DEFAULT_wxUSE_CONSTRAINTS=yes
1584 DEFAULT_wxUSE_IPC=yes
1585 DEFAULT_wxUSE_HELP=yes
1586 DEFAULT_wxUSE_WXTREE=yes
1587 DEFAULT_wxUSE_METAFILE=yes
1e6feb95 1588 DEFAULT_wxUSE_MIMETYPE=yes
10f2d63a
VZ
1589
1590 DEFAULT_wxUSE_COMMONDLGS=yes
1e6feb95
VZ
1591 DEFAULT_wxUSE_CHOICEDLG=yes
1592 DEFAULT_wxUSE_COLOURDLG=yes
10f2d63a 1593 DEFAULT_wxUSE_DIRDLG=yes
1e6feb95
VZ
1594 DEFAULT_wxUSE_FILEDLG=yes
1595 DEFAULT_wxUSE_FONTDLG=yes
1596 DEFAULT_wxUSE_MSGDLG=yes
1597 DEFAULT_wxUSE_NUMBERDLG=yes
10f2d63a
VZ
1598 DEFAULT_wxUSE_TEXTDLG=yes
1599 DEFAULT_wxUSE_STARTUP_TIPS=yes
1600 DEFAULT_wxUSE_PROGRESSDLG=yes
1e6feb95 1601 DEFAULT_wxUSE_MENUS=yes
10f2d63a
VZ
1602 DEFAULT_wxUSE_MINIFRAME=yes
1603 DEFAULT_wxUSE_HTML=yes
24528b0c 1604 DEFAULT_wxUSE_FILESYSTEM=yes
10f2d63a
VZ
1605 DEFAULT_wxUSE_FS_INET=yes
1606 DEFAULT_wxUSE_FS_ZIP=yes
1607 DEFAULT_wxUSE_BUSYINFO=yes
1608 DEFAULT_wxUSE_ZIPSTREAM=yes
1609 DEFAULT_wxUSE_VALIDATORS=yes
1610
1611 DEFAULT_wxUSE_ACCEL=yes
1e6feb95 1612 DEFAULT_wxUSE_BUTTON=yes
10f2d63a 1613 DEFAULT_wxUSE_BMPBUTTON=yes
1e6feb95
VZ
1614 DEFAULT_wxUSE_CALCTRL=yes
1615 DEFAULT_wxUSE_CARET=yes
10f2d63a
VZ
1616 DEFAULT_wxUSE_CHECKBOX=yes
1617 DEFAULT_wxUSE_CHECKLST=yes
1618 DEFAULT_wxUSE_CHOICE=yes
1619 DEFAULT_wxUSE_COMBOBOX=yes
1620 DEFAULT_wxUSE_GAUGE=yes
1621 DEFAULT_wxUSE_GRID=yes
cc977e5f 1622 DEFAULT_wxUSE_NEW_GRID=yes
10f2d63a
VZ
1623 DEFAULT_wxUSE_IMAGLIST=yes
1624 DEFAULT_wxUSE_LISTBOX=yes
1625 DEFAULT_wxUSE_LISTCTRL=yes
1626 DEFAULT_wxUSE_NOTEBOOK=yes
1627 DEFAULT_wxUSE_RADIOBOX=yes
1628 DEFAULT_wxUSE_RADIOBTN=yes
1629 DEFAULT_wxUSE_SASH=yes
1630 DEFAULT_wxUSE_SCROLLBAR=yes
1631 DEFAULT_wxUSE_SLIDER=yes
1632 DEFAULT_wxUSE_SPINBTN=yes
56cfaa52 1633 DEFAULT_wxUSE_SPINCTRL=yes
10f2d63a
VZ
1634 DEFAULT_wxUSE_SPLITTER=yes
1635 DEFAULT_wxUSE_STATBMP=yes
1636 DEFAULT_wxUSE_STATBOX=yes
1637 DEFAULT_wxUSE_STATLINE=yes
1e6feb95 1638 DEFAULT_wxUSE_STATTEXT=yes
10f2d63a
VZ
1639 DEFAULT_wxUSE_STATUSBAR=yes
1640 DEFAULT_wxUSE_TABDIALOG=no
1e6feb95 1641 DEFAULT_wxUSE_TEXTCTRL=yes
1db8dc4a 1642 DEFAULT_wxUSE_TOGGLEBTN=yes
10f2d63a 1643 DEFAULT_wxUSE_TOOLBAR=yes
360d6699
VZ
1644 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
1645 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
10f2d63a
VZ
1646 DEFAULT_wxUSE_TREECTRL=yes
1647
1648 DEFAULT_wxUSE_UNICODE=no
1649 DEFAULT_wxUSE_WCSRTOMBS=no
1650
0046ff7c 1651 DEFAULT_wxUSE_IMAGE=yes
10f2d63a
VZ
1652 DEFAULT_wxUSE_GIF=yes
1653 DEFAULT_wxUSE_PCX=yes
1654 DEFAULT_wxUSE_PNM=yes
0046ff7c 1655 DEFAULT_wxUSE_XPM=yes
10f2d63a
VZ
1656fi
1657
698dcdb6
VZ
1658
1659
10f2d63a
VZ
1660for toolkit in `echo $ALL_TOOLKITS`; do
1661 LINE=`grep "wxUSE_$toolkit" ${wx_arg_cache_file}`
1662 if test "x$LINE" != x ; then
1663 has_toolkit_in_cache=1
1664 eval "DEFAULT_$LINE"
1665 eval "CACHE_$toolkit=1"
1666 fi
1667done
1668
698dcdb6
VZ
1669
1670
1671 echo $ac_n "checking for --enable-gui""... $ac_c" 1>&6
d73be714 1672echo "configure:1673: checking for --enable-gui" >&5
10f2d63a
VZ
1673 no_cache=0
1674 # Check whether --enable-gui or --disable-gui was given.
1675if test "${enable_gui+set}" = set; then
1676 enableval="$enable_gui"
698dcdb6 1677
10f2d63a
VZ
1678 if test "$enableval" = yes; then
1679 ac_cv_use_gui='wxUSE_GUI=yes'
1680 else
1681 ac_cv_use_gui='wxUSE_GUI=no'
1682 fi
698dcdb6 1683
10f2d63a 1684else
698dcdb6 1685
10f2d63a
VZ
1686 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
1687 if test "x$LINE" != x ; then
1688 eval "DEFAULT_$LINE"
1689 else
1690 no_cache=1
1691 fi
1692
1693 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
698dcdb6
VZ
1694
1695fi
10f2d63a
VZ
1696
1697
1698 eval "$ac_cv_use_gui"
1699 if test "$no_cache" != 1; then
1700 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
1701 fi
1702
1703 if test "$wxUSE_GUI" = yes; then
698dcdb6 1704 echo "$ac_t""yes" 1>&6
10f2d63a 1705 else
698dcdb6 1706 echo "$ac_t""no" 1>&6
10f2d63a 1707 fi
698dcdb6 1708
10f2d63a 1709
b12915c1 1710if test "$wxUSE_GUI" = "yes"; then
10f2d63a 1711
1e6feb95
VZ
1712
1713 echo $ac_n "checking for --enable-universal""... $ac_c" 1>&6
d73be714 1714echo "configure:1715: checking for --enable-universal" >&5
1e6feb95
VZ
1715 no_cache=0
1716 # Check whether --enable-universal or --disable-universal was given.
1717if test "${enable_universal+set}" = set; then
1718 enableval="$enable_universal"
1719
1720 if test "$enableval" = yes; then
1721 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
1722 else
1723 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
1724 fi
1725
1726else
1727
1728 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
1729 if test "x$LINE" != x ; then
1730 eval "DEFAULT_$LINE"
1731 else
1732 no_cache=1
1733 fi
1734
1735 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
1736
1737fi
1738
1739
1740 eval "$ac_cv_use_universal"
1741 if test "$no_cache" != 1; then
1742 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
1743 fi
1744
1745 if test "$wxUSE_UNIVERSAL" = yes; then
1746 echo "$ac_t""yes" 1>&6
1747 else
1748 echo "$ac_t""no" 1>&6
1749 fi
1750
10f2d63a
VZ
1751# Check whether --with-gtk or --without-gtk was given.
1752if test "${with_gtk+set}" = set; then
1753 withval="$with_gtk"
1754 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
698dcdb6 1755fi
10f2d63a
VZ
1756
1757# Check whether --with-motif or --without-motif was given.
1758if test "${with_motif+set}" = set; then
1759 withval="$with_motif"
1760 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
698dcdb6 1761fi
10f2d63a 1762
b4085ce6
GD
1763# Check whether --with-mac or --without-mac was given.
1764if test "${with_mac+set}" = set; then
1765 withval="$with_mac"
1766 wxUSE_MAC="$withval" TOOLKIT_GIVEN=1
698dcdb6 1767fi
b4085ce6 1768
10f2d63a
VZ
1769# Check whether --with-wine or --without-wine was given.
1770if test "${with_wine+set}" = set; then
1771 withval="$with_wine"
1772 wxUSE_WINE="$withval" CACHE_WINE=1 TOOLKIT_GIVEN=1
698dcdb6 1773fi
10f2d63a
VZ
1774
1775# Check whether --with-cygwin or --without-cygwin was given.
1776if test "${with_cygwin+set}" = set; then
1777 withval="$with_cygwin"
1778 wxUSE_CYGWIN="$withval" CACHE_CYGWIN=1 TOOLKIT_GIVEN=1
698dcdb6 1779fi
10f2d63a
VZ
1780
1781# Check whether --with-mingw or --without-mingw was given.
1782if test "${with_mingw+set}" = set; then
1783 withval="$with_mingw"
1784 wxUSE_MINGW="$withval" CACHE_MINGW=1 TOOLKIT_GIVEN=1
698dcdb6 1785fi
10f2d63a 1786
e07802fc
VZ
1787# Check whether --with-pm or --without-pm was given.
1788if test "${with_pm+set}" = set; then
1789 withval="$with_pm"
1790 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
698dcdb6
VZ
1791fi
1792
1e6feb95
VZ
1793# Check whether --with-mgl or --without-mgl was given.
1794if test "${with_mgl+set}" = set; then
1795 withval="$with_mgl"
1796 wxUSE_MGL="$withval" CACHE_MGL=1 TOOLKIT_GIVEN=1
1797fi
1798
10f2d63a 1799
8168de4c
VZ
1800# Check whether --enable-gtk2 or --disable-gtk2 was given.
1801if test "${enable_gtk2+set}" = set; then
1802 enableval="$enable_gtk2"
1803 wxUSE_GTK2=1
10f2d63a 1804else
8168de4c 1805 wxUSE_GTK2=0
698dcdb6
VZ
1806fi
1807
703e0a69 1808
1e487827 1809
698dcdb6 1810 echo $ac_n "checking for --with-libpng""... $ac_c" 1>&6
d73be714 1811echo "configure:1812: checking for --with-libpng" >&5
698dcdb6
VZ
1812 no_cache=0
1813 # Check whether --with-libpng or --without-libpng was given.
b12915c1
VZ
1814if test "${with_libpng+set}" = set; then
1815 withval="$with_libpng"
698dcdb6 1816
10f2d63a 1817 if test "$withval" = yes; then
b12915c1 1818 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
422107f9 1819 elif test "$withval" = no; then
b12915c1 1820 ac_cv_use_libpng='wxUSE_LIBPNG=no'
422107f9
VZ
1821 elif test "$withval" = sys; then
1822 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
1823 else
698dcdb6 1824 { echo "configure: error: Invalid value for --with-libpng: should be yes, no or sys" 1>&2; exit 1; }
10f2d63a 1825 fi
698dcdb6 1826
10f2d63a 1827else
698dcdb6 1828
b12915c1 1829 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
10f2d63a
VZ
1830 if test "x$LINE" != x ; then
1831 eval "DEFAULT_$LINE"
1832 else
1833 no_cache=1
1834 fi
1835
b12915c1 1836 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
698dcdb6
VZ
1837
1838fi
10f2d63a
VZ
1839
1840
b12915c1 1841 eval "$ac_cv_use_libpng"
10f2d63a 1842 if test "$no_cache" != 1; then
b12915c1 1843 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
1844 fi
1845
b12915c1 1846 if test "$wxUSE_LIBPNG" = yes; then
698dcdb6 1847 echo "$ac_t""yes" 1>&6
422107f9 1848 elif test "$wxUSE_LIBPNG" = no; then
698dcdb6 1849 echo "$ac_t""no" 1>&6
422107f9 1850 elif test "$wxUSE_LIBPNG" = sys; then
698dcdb6 1851 echo "$ac_t""system version" 1>&6
422107f9 1852 else
698dcdb6 1853 { echo "configure: error: Invalid value for --with-libpng: should be yes, no or sys" 1>&2; exit 1; }
10f2d63a 1854 fi
698dcdb6 1855
10f2d63a 1856
698dcdb6 1857 echo $ac_n "checking for --with-libjpeg""... $ac_c" 1>&6
d73be714 1858echo "configure:1859: checking for --with-libjpeg" >&5
10f2d63a 1859 no_cache=0
698dcdb6 1860 # Check whether --with-libjpeg or --without-libjpeg was given.
b12915c1
VZ
1861if test "${with_libjpeg+set}" = set; then
1862 withval="$with_libjpeg"
698dcdb6 1863
10f2d63a 1864 if test "$withval" = yes; then
b12915c1 1865 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
422107f9 1866 elif test "$withval" = no; then
b12915c1 1867 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
422107f9
VZ
1868 elif test "$withval" = sys; then
1869 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
1870 else
698dcdb6 1871 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no or sys" 1>&2; exit 1; }
10f2d63a 1872 fi
698dcdb6 1873
10f2d63a 1874else
698dcdb6 1875
b12915c1 1876 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
10f2d63a
VZ
1877 if test "x$LINE" != x ; then
1878 eval "DEFAULT_$LINE"
1879 else
1880 no_cache=1
1881 fi
1882
b12915c1 1883 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
698dcdb6
VZ
1884
1885fi
10f2d63a
VZ
1886
1887
b12915c1 1888 eval "$ac_cv_use_libjpeg"
10f2d63a 1889 if test "$no_cache" != 1; then
b12915c1 1890 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
1891 fi
1892
b12915c1 1893 if test "$wxUSE_LIBJPEG" = yes; then
698dcdb6 1894 echo "$ac_t""yes" 1>&6
422107f9 1895 elif test "$wxUSE_LIBJPEG" = no; then
698dcdb6 1896 echo "$ac_t""no" 1>&6
422107f9 1897 elif test "$wxUSE_LIBJPEG" = sys; then
698dcdb6 1898 echo "$ac_t""system version" 1>&6
422107f9 1899 else
698dcdb6 1900 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no or sys" 1>&2; exit 1; }
10f2d63a 1901 fi
698dcdb6 1902
10f2d63a 1903
698dcdb6 1904 echo $ac_n "checking for --with-libtiff""... $ac_c" 1>&6
d73be714 1905echo "configure:1906: checking for --with-libtiff" >&5
10f2d63a 1906 no_cache=0
698dcdb6 1907 # Check whether --with-libtiff or --without-libtiff was given.
b12915c1
VZ
1908if test "${with_libtiff+set}" = set; then
1909 withval="$with_libtiff"
698dcdb6 1910
10f2d63a 1911 if test "$withval" = yes; then
b12915c1 1912 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
0dcf9893 1913 elif test "$withval" = no; then
b12915c1 1914 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
0dcf9893
VZ
1915 elif test "$withval" = sys; then
1916 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
1917 else
698dcdb6 1918 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no or sys" 1>&2; exit 1; }
10f2d63a 1919 fi
698dcdb6 1920
10f2d63a 1921else
698dcdb6 1922
b12915c1 1923 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
10f2d63a
VZ
1924 if test "x$LINE" != x ; then
1925 eval "DEFAULT_$LINE"
1926 else
1927 no_cache=1
1928 fi
1929
b12915c1 1930 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
698dcdb6
VZ
1931
1932fi
10f2d63a
VZ
1933
1934
b12915c1 1935 eval "$ac_cv_use_libtiff"
10f2d63a 1936 if test "$no_cache" != 1; then
b12915c1 1937 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
1938 fi
1939
b12915c1 1940 if test "$wxUSE_LIBTIFF" = yes; then
698dcdb6 1941 echo "$ac_t""yes" 1>&6
0dcf9893 1942 elif test "$wxUSE_LIBTIFF" = no; then
698dcdb6 1943 echo "$ac_t""no" 1>&6
0dcf9893 1944 elif test "$wxUSE_LIBTIFF" = sys; then
698dcdb6 1945 echo "$ac_t""system version" 1>&6
0dcf9893 1946 else
698dcdb6 1947 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no or sys" 1>&2; exit 1; }
10f2d63a 1948 fi
698dcdb6 1949
10f2d63a 1950
698dcdb6 1951 echo $ac_n "checking for --with-freetype""... $ac_c" 1>&6
d73be714 1952echo "configure:1953: checking for --with-freetype" >&5
3fed1840 1953 no_cache=0
698dcdb6 1954 # Check whether --with-freetype or --without-freetype was given.
3fed1840
RR
1955if test "${with_freetype+set}" = set; then
1956 withval="$with_freetype"
698dcdb6 1957
3fed1840
RR
1958 if test "$withval" = yes; then
1959 ac_cv_use_freetype='wxUSE_FREETYPE=yes'
1960 elif test "$withval" = no; then
1961 ac_cv_use_freetype='wxUSE_FREETYPE=no'
1962 elif test "$withval" = sys; then
1963 ac_cv_use_freetype='wxUSE_FREETYPE=sys'
1964 else
698dcdb6 1965 { echo "configure: error: Invalid value for --with-freetype: should be yes, no or sys" 1>&2; exit 1; }
3fed1840 1966 fi
698dcdb6 1967
3fed1840 1968else
698dcdb6 1969
3fed1840
RR
1970 LINE=`grep "wxUSE_FREETYPE" ${wx_arg_cache_file}`
1971 if test "x$LINE" != x ; then
1972 eval "DEFAULT_$LINE"
1973 else
1974 no_cache=1
1975 fi
1976
1977 ac_cv_use_freetype='wxUSE_FREETYPE='$DEFAULT_wxUSE_FREETYPE
698dcdb6
VZ
1978
1979fi
3fed1840
RR
1980
1981
1982 eval "$ac_cv_use_freetype"
1983 if test "$no_cache" != 1; then
1984 echo $ac_cv_use_freetype >> ${wx_arg_cache_file}.tmp
1985 fi
1986
1987 if test "$wxUSE_FREETYPE" = yes; then
698dcdb6 1988 echo "$ac_t""yes" 1>&6
3fed1840 1989 elif test "$wxUSE_FREETYPE" = no; then
698dcdb6 1990 echo "$ac_t""no" 1>&6
3fed1840 1991 elif test "$wxUSE_FREETYPE" = sys; then
698dcdb6 1992 echo "$ac_t""system version" 1>&6
3fed1840 1993 else
698dcdb6 1994 { echo "configure: error: Invalid value for --with-freetype: should be yes, no or sys" 1>&2; exit 1; }
3fed1840 1995 fi
698dcdb6 1996
3fed1840 1997
698dcdb6 1998 echo $ac_n "checking for --with-opengl""... $ac_c" 1>&6
d73be714 1999echo "configure:2000: checking for --with-opengl" >&5
10f2d63a 2000 no_cache=0
698dcdb6 2001 # Check whether --with-opengl or --without-opengl was given.
b12915c1
VZ
2002if test "${with_opengl+set}" = set; then
2003 withval="$with_opengl"
698dcdb6 2004
10f2d63a 2005 if test "$withval" = yes; then
b12915c1 2006 ac_cv_use_opengl='wxUSE_OPENGL=yes'
10f2d63a 2007 else
b12915c1 2008 ac_cv_use_opengl='wxUSE_OPENGL=no'
10f2d63a 2009 fi
698dcdb6 2010
10f2d63a 2011else
698dcdb6 2012
b12915c1 2013 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
10f2d63a
VZ
2014 if test "x$LINE" != x ; then
2015 eval "DEFAULT_$LINE"
2016 else
2017 no_cache=1
2018 fi
2019
b12915c1 2020 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
698dcdb6
VZ
2021
2022fi
10f2d63a
VZ
2023
2024
b12915c1 2025 eval "$ac_cv_use_opengl"
10f2d63a 2026 if test "$no_cache" != 1; then
b12915c1 2027 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2028 fi
2029
b12915c1 2030 if test "$wxUSE_OPENGL" = yes; then
698dcdb6 2031 echo "$ac_t""yes" 1>&6
10f2d63a 2032 else
698dcdb6 2033 echo "$ac_t""no" 1>&6
10f2d63a 2034 fi
698dcdb6 2035
10f2d63a 2036
b12915c1
VZ
2037fi
2038
1e487827 2039
698dcdb6 2040 echo $ac_n "checking for --with-dmalloc""... $ac_c" 1>&6
d73be714 2041echo "configure:2042: checking for --with-dmalloc" >&5
698dcdb6
VZ
2042 no_cache=0
2043 # Check whether --with-dmalloc or --without-dmalloc was given.
b12915c1
VZ
2044if test "${with_dmalloc+set}" = set; then
2045 withval="$with_dmalloc"
698dcdb6 2046
c7a2bf27 2047 if test "$withval" = yes; then
b12915c1 2048 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
c7a2bf27 2049 else
b12915c1 2050 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
c7a2bf27 2051 fi
698dcdb6 2052
c7a2bf27 2053else
698dcdb6 2054
b12915c1 2055 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
c7a2bf27
RR
2056 if test "x$LINE" != x ; then
2057 eval "DEFAULT_$LINE"
2058 else
2059 no_cache=1
2060 fi
2061
b12915c1 2062 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
698dcdb6
VZ
2063
2064fi
c7a2bf27
RR
2065
2066
b12915c1 2067 eval "$ac_cv_use_dmalloc"
c7a2bf27 2068 if test "$no_cache" != 1; then
b12915c1 2069 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
c7a2bf27
RR
2070 fi
2071
b12915c1 2072 if test "$wxUSE_DMALLOC" = yes; then
698dcdb6 2073 echo "$ac_t""yes" 1>&6
c7a2bf27 2074 else
698dcdb6 2075 echo "$ac_t""no" 1>&6
c7a2bf27 2076 fi
698dcdb6 2077
c7a2bf27 2078
698dcdb6 2079 echo $ac_n "checking for --with-zlib""... $ac_c" 1>&6
d73be714 2080echo "configure:2081: checking for --with-zlib" >&5
10f2d63a 2081 no_cache=0
698dcdb6 2082 # Check whether --with-zlib or --without-zlib was given.
b12915c1
VZ
2083if test "${with_zlib+set}" = set; then
2084 withval="$with_zlib"
698dcdb6 2085
10f2d63a 2086 if test "$withval" = yes; then
b12915c1 2087 ac_cv_use_zlib='wxUSE_ZLIB=yes'
422107f9 2088 elif test "$withval" = no; then
b12915c1 2089 ac_cv_use_zlib='wxUSE_ZLIB=no'
422107f9
VZ
2090 elif test "$withval" = sys; then
2091 ac_cv_use_zlib='wxUSE_ZLIB=sys'
2092 else
698dcdb6 2093 { echo "configure: error: Invalid value for --with-zlib: should be yes, no or sys" 1>&2; exit 1; }
10f2d63a 2094 fi
698dcdb6 2095
10f2d63a 2096else
698dcdb6 2097
b12915c1 2098 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
10f2d63a
VZ
2099 if test "x$LINE" != x ; then
2100 eval "DEFAULT_$LINE"
2101 else
2102 no_cache=1
2103 fi
2104
b12915c1 2105 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
698dcdb6
VZ
2106
2107fi
10f2d63a
VZ
2108
2109
b12915c1 2110 eval "$ac_cv_use_zlib"
10f2d63a 2111 if test "$no_cache" != 1; then
b12915c1 2112 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2113 fi
2114
b12915c1 2115 if test "$wxUSE_ZLIB" = yes; then
698dcdb6 2116 echo "$ac_t""yes" 1>&6
422107f9 2117 elif test "$wxUSE_ZLIB" = no; then
698dcdb6 2118 echo "$ac_t""no" 1>&6
422107f9 2119 elif test "$wxUSE_ZLIB" = sys; then
698dcdb6 2120 echo "$ac_t""system version" 1>&6
422107f9 2121 else
698dcdb6 2122 { echo "configure: error: Invalid value for --with-zlib: should be yes, no or sys" 1>&2; exit 1; }
10f2d63a 2123 fi
698dcdb6 2124
10f2d63a 2125
698dcdb6 2126 echo $ac_n "checking for --with-odbc""... $ac_c" 1>&6
d73be714 2127echo "configure:2128: checking for --with-odbc" >&5
10f2d63a 2128 no_cache=0
698dcdb6 2129 # Check whether --with-odbc or --without-odbc was given.
10f2d63a
VZ
2130if test "${with_odbc+set}" = set; then
2131 withval="$with_odbc"
698dcdb6 2132
10f2d63a
VZ
2133 if test "$withval" = yes; then
2134 ac_cv_use_odbc='wxUSE_ODBC=yes'
2135 else
2136 ac_cv_use_odbc='wxUSE_ODBC=no'
2137 fi
698dcdb6 2138
10f2d63a 2139else
698dcdb6 2140
10f2d63a
VZ
2141 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
2142 if test "x$LINE" != x ; then
2143 eval "DEFAULT_$LINE"
2144 else
2145 no_cache=1
2146 fi
2147
2148 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
698dcdb6
VZ
2149
2150fi
10f2d63a
VZ
2151
2152
2153 eval "$ac_cv_use_odbc"
2154 if test "$no_cache" != 1; then
2155 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
2156 fi
2157
2158 if test "$wxUSE_ODBC" = yes; then
698dcdb6 2159 echo "$ac_t""yes" 1>&6
10f2d63a 2160 else
698dcdb6 2161 echo "$ac_t""no" 1>&6
10f2d63a 2162 fi
698dcdb6
VZ
2163
2164
10f2d63a 2165
698dcdb6
VZ
2166
2167
2168 echo $ac_n "checking for --enable-shared""... $ac_c" 1>&6
d73be714 2169echo "configure:2170: checking for --enable-shared" >&5
10f2d63a
VZ
2170 no_cache=0
2171 # Check whether --enable-shared or --disable-shared was given.
2172if test "${enable_shared+set}" = set; then
2173 enableval="$enable_shared"
698dcdb6 2174
10f2d63a
VZ
2175 if test "$enableval" = yes; then
2176 ac_cv_use_shared='wxUSE_SHARED=yes'
2177 else
2178 ac_cv_use_shared='wxUSE_SHARED=no'
2179 fi
698dcdb6 2180
10f2d63a 2181else
698dcdb6 2182
10f2d63a
VZ
2183 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
2184 if test "x$LINE" != x ; then
2185 eval "DEFAULT_$LINE"
2186 else
2187 no_cache=1
2188 fi
2189
2190 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
698dcdb6
VZ
2191
2192fi
10f2d63a
VZ
2193
2194
2195 eval "$ac_cv_use_shared"
2196 if test "$no_cache" != 1; then
2197 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
2198 fi
2199
2200 if test "$wxUSE_SHARED" = yes; then
698dcdb6 2201 echo "$ac_t""yes" 1>&6
10f2d63a 2202 else
698dcdb6 2203 echo "$ac_t""no" 1>&6
10f2d63a 2204 fi
698dcdb6 2205
10f2d63a 2206
698dcdb6 2207 echo $ac_n "checking for --enable-burnt_name""... $ac_c" 1>&6
d73be714 2208echo "configure:2209: checking for --enable-burnt_name" >&5
00cf1208
RR
2209 no_cache=0
2210 # Check whether --enable-burnt_name or --disable-burnt_name was given.
2211if test "${enable_burnt_name+set}" = set; then
2212 enableval="$enable_burnt_name"
698dcdb6 2213
00cf1208
RR
2214 if test "$enableval" = yes; then
2215 ac_cv_use_burnt_name='wxUSE_BURNT_NAME=yes'
2216 else
2217 ac_cv_use_burnt_name='wxUSE_BURNT_NAME=no'
2218 fi
698dcdb6 2219
00cf1208 2220else
698dcdb6 2221
00cf1208
RR
2222 LINE=`grep "wxUSE_BURNT_NAME" ${wx_arg_cache_file}`
2223 if test "x$LINE" != x ; then
2224 eval "DEFAULT_$LINE"
2225 else
2226 no_cache=1
2227 fi
2228
2229 ac_cv_use_burnt_name='wxUSE_BURNT_NAME='$DEFAULT_wxUSE_BURNT_NAME
698dcdb6
VZ
2230
2231fi
00cf1208
RR
2232
2233
2234 eval "$ac_cv_use_burnt_name"
2235 if test "$no_cache" != 1; then
2236 echo $ac_cv_use_burnt_name >> ${wx_arg_cache_file}.tmp
2237 fi
2238
2239 if test "$wxUSE_BURNT_NAME" = yes; then
698dcdb6 2240 echo "$ac_t""yes" 1>&6
00cf1208 2241 else
698dcdb6 2242 echo "$ac_t""no" 1>&6
00cf1208 2243 fi
698dcdb6 2244
00cf1208 2245
698dcdb6 2246 echo $ac_n "checking for --enable-optimise""... $ac_c" 1>&6
d73be714 2247echo "configure:2248: checking for --enable-optimise" >&5
10f2d63a
VZ
2248 no_cache=0
2249 # Check whether --enable-optimise or --disable-optimise was given.
2250if test "${enable_optimise+set}" = set; then
2251 enableval="$enable_optimise"
698dcdb6 2252
10f2d63a
VZ
2253 if test "$enableval" = yes; then
2254 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
2255 else
2256 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
2257 fi
698dcdb6 2258
10f2d63a 2259else
698dcdb6 2260
10f2d63a
VZ
2261 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
2262 if test "x$LINE" != x ; then
2263 eval "DEFAULT_$LINE"
2264 else
2265 no_cache=1
2266 fi
2267
2268 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
698dcdb6
VZ
2269
2270fi
10f2d63a
VZ
2271
2272
2273 eval "$ac_cv_use_optimise"
2274 if test "$no_cache" != 1; then
2275 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
2276 fi
2277
2278 if test "$wxUSE_OPTIMISE" = yes; then
698dcdb6 2279 echo "$ac_t""yes" 1>&6
10f2d63a 2280 else
698dcdb6 2281 echo "$ac_t""no" 1>&6
10f2d63a 2282 fi
698dcdb6 2283
10f2d63a 2284
698dcdb6 2285 echo $ac_n "checking for --enable-debug""... $ac_c" 1>&6
d73be714 2286echo "configure:2287: checking for --enable-debug" >&5
10f2d63a
VZ
2287 no_cache=0
2288 # Check whether --enable-debug or --disable-debug was given.
2289if test "${enable_debug+set}" = set; then
2290 enableval="$enable_debug"
698dcdb6 2291
10f2d63a
VZ
2292 if test "$enableval" = yes; then
2293 ac_cv_use_debug='wxUSE_DEBUG=yes'
2294 else
2295 ac_cv_use_debug='wxUSE_DEBUG=no'
2296 fi
698dcdb6 2297
10f2d63a 2298else
698dcdb6 2299
10f2d63a
VZ
2300 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
2301 if test "x$LINE" != x ; then
2302 eval "DEFAULT_$LINE"
2303 else
2304 no_cache=1
2305 fi
2306
2307 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
698dcdb6
VZ
2308
2309fi
10f2d63a
VZ
2310
2311
2312 eval "$ac_cv_use_debug"
2313 if test "$no_cache" != 1; then
2314 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
2315 fi
2316
2317 if test "$wxUSE_DEBUG" = yes; then
698dcdb6 2318 echo "$ac_t""yes" 1>&6
10f2d63a 2319 else
698dcdb6 2320 echo "$ac_t""no" 1>&6
10f2d63a 2321 fi
698dcdb6 2322
10f2d63a
VZ
2323
2324if test "$wxUSE_DEBUG" = "yes"; then
2325 DEFAULT_wxUSE_DEBUG_FLAG=yes
2326 DEFAULT_wxUSE_DEBUG_INFO=yes
2327elif test "$wxUSE_DEBUG" = "no"; then
2328 DEFAULT_wxUSE_DEBUG_FLAG=no
2329 DEFAULT_wxUSE_DEBUG_INFO=no
2330fi
2331
698dcdb6
VZ
2332
2333 echo $ac_n "checking for --enable-debug_flag""... $ac_c" 1>&6
d73be714 2334echo "configure:2335: checking for --enable-debug_flag" >&5
10f2d63a
VZ
2335 no_cache=0
2336 # Check whether --enable-debug_flag or --disable-debug_flag was given.
2337if test "${enable_debug_flag+set}" = set; then
2338 enableval="$enable_debug_flag"
698dcdb6 2339
10f2d63a
VZ
2340 if test "$enableval" = yes; then
2341 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
2342 else
2343 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
2344 fi
698dcdb6 2345
10f2d63a 2346else
698dcdb6 2347
10f2d63a
VZ
2348 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
2349 if test "x$LINE" != x ; then
2350 eval "DEFAULT_$LINE"
2351 else
2352 no_cache=1
2353 fi
2354
2355 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
698dcdb6
VZ
2356
2357fi
10f2d63a
VZ
2358
2359
2360 eval "$ac_cv_use_debug_flag"
2361 if test "$no_cache" != 1; then
2362 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
2363 fi
2364
2365 if test "$wxUSE_DEBUG_FLAG" = yes; then
698dcdb6 2366 echo "$ac_t""yes" 1>&6
10f2d63a 2367 else
698dcdb6 2368 echo "$ac_t""no" 1>&6
10f2d63a 2369 fi
698dcdb6 2370
10f2d63a 2371
698dcdb6 2372 echo $ac_n "checking for --enable-debug_info""... $ac_c" 1>&6
d73be714 2373echo "configure:2374: checking for --enable-debug_info" >&5
10f2d63a
VZ
2374 no_cache=0
2375 # Check whether --enable-debug_info or --disable-debug_info was given.
2376if test "${enable_debug_info+set}" = set; then
2377 enableval="$enable_debug_info"
698dcdb6 2378
10f2d63a
VZ
2379 if test "$enableval" = yes; then
2380 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
2381 else
2382 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
2383 fi
698dcdb6 2384
10f2d63a 2385else
698dcdb6 2386
10f2d63a
VZ
2387 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
2388 if test "x$LINE" != x ; then
2389 eval "DEFAULT_$LINE"
2390 else
2391 no_cache=1
2392 fi
2393
2394 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
698dcdb6
VZ
2395
2396fi
10f2d63a
VZ
2397
2398
2399 eval "$ac_cv_use_debug_info"
2400 if test "$no_cache" != 1; then
2401 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
2402 fi
2403
2404 if test "$wxUSE_DEBUG_INFO" = yes; then
698dcdb6 2405 echo "$ac_t""yes" 1>&6
10f2d63a 2406 else
698dcdb6 2407 echo "$ac_t""no" 1>&6
10f2d63a 2408 fi
698dcdb6 2409
10f2d63a 2410
698dcdb6 2411 echo $ac_n "checking for --enable-debug_gdb""... $ac_c" 1>&6
d73be714 2412echo "configure:2413: checking for --enable-debug_gdb" >&5
10f2d63a
VZ
2413 no_cache=0
2414 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
2415if test "${enable_debug_gdb+set}" = set; then
2416 enableval="$enable_debug_gdb"
698dcdb6 2417
10f2d63a
VZ
2418 if test "$enableval" = yes; then
2419 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
2420 else
2421 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
2422 fi
698dcdb6 2423
10f2d63a 2424else
698dcdb6 2425
10f2d63a
VZ
2426 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
2427 if test "x$LINE" != x ; then
2428 eval "DEFAULT_$LINE"
2429 else
2430 no_cache=1
2431 fi
2432
2433 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
698dcdb6
VZ
2434
2435fi
10f2d63a
VZ
2436
2437
2438 eval "$ac_cv_use_debug_gdb"
2439 if test "$no_cache" != 1; then
2440 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
2441 fi
2442
2443 if test "$wxUSE_DEBUG_GDB" = yes; then
698dcdb6 2444 echo "$ac_t""yes" 1>&6
10f2d63a 2445 else
698dcdb6 2446 echo "$ac_t""no" 1>&6
10f2d63a 2447 fi
698dcdb6 2448
10f2d63a 2449
698dcdb6 2450 echo $ac_n "checking for --enable-debug_cntxt""... $ac_c" 1>&6
d73be714 2451echo "configure:2452: checking for --enable-debug_cntxt" >&5
10f2d63a
VZ
2452 no_cache=0
2453 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
2454if test "${enable_debug_cntxt+set}" = set; then
2455 enableval="$enable_debug_cntxt"
698dcdb6 2456
10f2d63a
VZ
2457 if test "$enableval" = yes; then
2458 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
2459 else
2460 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
2461 fi
698dcdb6 2462
10f2d63a 2463else
698dcdb6 2464
10f2d63a
VZ
2465 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
2466 if test "x$LINE" != x ; then
2467 eval "DEFAULT_$LINE"
2468 else
2469 no_cache=1
2470 fi
2471
2472 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
698dcdb6
VZ
2473
2474fi
10f2d63a
VZ
2475
2476
2477 eval "$ac_cv_use_debug_cntxt"
2478 if test "$no_cache" != 1; then
2479 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
2480 fi
2481
2482 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
698dcdb6 2483 echo "$ac_t""yes" 1>&6
10f2d63a 2484 else
698dcdb6 2485 echo "$ac_t""no" 1>&6
10f2d63a 2486 fi
698dcdb6 2487
10f2d63a 2488
698dcdb6 2489 echo $ac_n "checking for --enable-mem_tracing""... $ac_c" 1>&6
d73be714 2490echo "configure:2491: checking for --enable-mem_tracing" >&5
10f2d63a
VZ
2491 no_cache=0
2492 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
2493if test "${enable_mem_tracing+set}" = set; then
2494 enableval="$enable_mem_tracing"
698dcdb6 2495
10f2d63a
VZ
2496 if test "$enableval" = yes; then
2497 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
2498 else
2499 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
2500 fi
698dcdb6 2501
10f2d63a 2502else
698dcdb6 2503
10f2d63a
VZ
2504 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
2505 if test "x$LINE" != x ; then
2506 eval "DEFAULT_$LINE"
2507 else
2508 no_cache=1
2509 fi
2510
2511 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
698dcdb6
VZ
2512
2513fi
10f2d63a
VZ
2514
2515
2516 eval "$ac_cv_use_mem_tracing"
2517 if test "$no_cache" != 1; then
2518 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
2519 fi
2520
2521 if test "$wxUSE_MEM_TRACING" = yes; then
698dcdb6 2522 echo "$ac_t""yes" 1>&6
10f2d63a 2523 else
698dcdb6 2524 echo "$ac_t""no" 1>&6
10f2d63a 2525 fi
698dcdb6 2526
10f2d63a 2527
698dcdb6 2528 echo $ac_n "checking for --enable-profile""... $ac_c" 1>&6
d73be714 2529echo "configure:2530: checking for --enable-profile" >&5
10f2d63a
VZ
2530 no_cache=0
2531 # Check whether --enable-profile or --disable-profile was given.
2532if test "${enable_profile+set}" = set; then
2533 enableval="$enable_profile"
698dcdb6 2534
10f2d63a
VZ
2535 if test "$enableval" = yes; then
2536 ac_cv_use_profile='wxUSE_PROFILE=yes'
2537 else
2538 ac_cv_use_profile='wxUSE_PROFILE=no'
2539 fi
698dcdb6 2540
10f2d63a 2541else
698dcdb6 2542
10f2d63a
VZ
2543 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
2544 if test "x$LINE" != x ; then
2545 eval "DEFAULT_$LINE"
2546 else
2547 no_cache=1
2548 fi
2549
2550 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
698dcdb6
VZ
2551
2552fi
10f2d63a
VZ
2553
2554
2555 eval "$ac_cv_use_profile"
2556 if test "$no_cache" != 1; then
2557 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
2558 fi
2559
2560 if test "$wxUSE_PROFILE" = yes; then
698dcdb6 2561 echo "$ac_t""yes" 1>&6
10f2d63a 2562 else
698dcdb6 2563 echo "$ac_t""no" 1>&6
10f2d63a 2564 fi
698dcdb6 2565
10f2d63a 2566
698dcdb6 2567 echo $ac_n "checking for --enable-no_rtti""... $ac_c" 1>&6
d73be714 2568echo "configure:2569: checking for --enable-no_rtti" >&5
10f2d63a
VZ
2569 no_cache=0
2570 # Check whether --enable-no_rtti or --disable-no_rtti was given.
2571if test "${enable_no_rtti+set}" = set; then
2572 enableval="$enable_no_rtti"
698dcdb6 2573
10f2d63a
VZ
2574 if test "$enableval" = yes; then
2575 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
2576 else
2577 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
2578 fi
698dcdb6 2579
10f2d63a 2580else
698dcdb6 2581
10f2d63a
VZ
2582 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
2583 if test "x$LINE" != x ; then
2584 eval "DEFAULT_$LINE"
2585 else
2586 no_cache=1
2587 fi
2588
2589 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
698dcdb6
VZ
2590
2591fi
10f2d63a
VZ
2592
2593
2594 eval "$ac_cv_use_no_rtti"
2595 if test "$no_cache" != 1; then
2596 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
2597 fi
2598
2599 if test "$wxUSE_NO_RTTI" = yes; then
698dcdb6 2600 echo "$ac_t""yes" 1>&6
10f2d63a 2601 else
698dcdb6 2602 echo "$ac_t""no" 1>&6
10f2d63a 2603 fi
698dcdb6 2604
10f2d63a 2605
698dcdb6 2606 echo $ac_n "checking for --enable-no_exceptions""... $ac_c" 1>&6
d73be714 2607echo "configure:2608: checking for --enable-no_exceptions" >&5
10f2d63a
VZ
2608 no_cache=0
2609 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
2610if test "${enable_no_exceptions+set}" = set; then
2611 enableval="$enable_no_exceptions"
698dcdb6 2612
10f2d63a
VZ
2613 if test "$enableval" = yes; then
2614 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
2615 else
2616 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
2617 fi
698dcdb6 2618
10f2d63a 2619else
698dcdb6 2620
10f2d63a
VZ
2621 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
2622 if test "x$LINE" != x ; then
2623 eval "DEFAULT_$LINE"
2624 else
2625 no_cache=1
2626 fi
2627
2628 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
698dcdb6
VZ
2629
2630fi
10f2d63a
VZ
2631
2632
2633 eval "$ac_cv_use_no_exceptions"
2634 if test "$no_cache" != 1; then
2635 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
2636 fi
2637
2638 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
698dcdb6 2639 echo "$ac_t""yes" 1>&6
10f2d63a 2640 else
698dcdb6 2641 echo "$ac_t""no" 1>&6
10f2d63a 2642 fi
698dcdb6 2643
10f2d63a 2644
698dcdb6 2645 echo $ac_n "checking for --enable-permissive""... $ac_c" 1>&6
d73be714 2646echo "configure:2647: checking for --enable-permissive" >&5
10f2d63a
VZ
2647 no_cache=0
2648 # Check whether --enable-permissive or --disable-permissive was given.
2649if test "${enable_permissive+set}" = set; then
2650 enableval="$enable_permissive"
698dcdb6 2651
10f2d63a
VZ
2652 if test "$enableval" = yes; then
2653 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
2654 else
2655 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
2656 fi
698dcdb6 2657
10f2d63a 2658else
698dcdb6 2659
10f2d63a
VZ
2660 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
2661 if test "x$LINE" != x ; then
2662 eval "DEFAULT_$LINE"
2663 else
2664 no_cache=1
2665 fi
2666
2667 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
698dcdb6
VZ
2668
2669fi
10f2d63a
VZ
2670
2671
2672 eval "$ac_cv_use_permissive"
2673 if test "$no_cache" != 1; then
2674 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
2675 fi
2676
2677 if test "$wxUSE_PERMISSIVE" = yes; then
698dcdb6 2678 echo "$ac_t""yes" 1>&6
10f2d63a 2679 else
698dcdb6 2680 echo "$ac_t""no" 1>&6
10f2d63a 2681 fi
698dcdb6 2682
10f2d63a 2683
698dcdb6 2684 echo $ac_n "checking for --enable-no_deps""... $ac_c" 1>&6
d73be714 2685echo "configure:2686: checking for --enable-no_deps" >&5
10f2d63a
VZ
2686 no_cache=0
2687 # Check whether --enable-no_deps or --disable-no_deps was given.
2688if test "${enable_no_deps+set}" = set; then
2689 enableval="$enable_no_deps"
698dcdb6 2690
10f2d63a
VZ
2691 if test "$enableval" = yes; then
2692 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
2693 else
2694 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
2695 fi
698dcdb6 2696
10f2d63a 2697else
698dcdb6 2698
10f2d63a
VZ
2699 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
2700 if test "x$LINE" != x ; then
2701 eval "DEFAULT_$LINE"
2702 else
2703 no_cache=1
2704 fi
2705
2706 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
698dcdb6
VZ
2707
2708fi
10f2d63a
VZ
2709
2710
2711 eval "$ac_cv_use_no_deps"
2712 if test "$no_cache" != 1; then
2713 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
2714 fi
2715
2716 if test "$wxUSE_NO_DEPS" = yes; then
698dcdb6 2717 echo "$ac_t""yes" 1>&6
10f2d63a 2718 else
698dcdb6 2719 echo "$ac_t""no" 1>&6
10f2d63a 2720 fi
698dcdb6
VZ
2721
2722
10f2d63a 2723
54276ccf 2724 echo $ac_n "checking for --enable-compat20""... $ac_c" 1>&6
d73be714 2725echo "configure:2726: checking for --enable-compat20" >&5
54276ccf
VZ
2726 no_cache=0
2727 # Check whether --enable-compat20 or --disable-compat20 was given.
2728if test "${enable_compat20+set}" = set; then
2729 enableval="$enable_compat20"
2730
2731 if test "$enableval" = yes; then
2732 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=yes'
2733 else
2734 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=no'
2735 fi
2736
2737else
2738
2739 LINE=`grep "WXWIN_COMPATIBILITY_2" ${wx_arg_cache_file}`
2740 if test "x$LINE" != x ; then
2741 eval "DEFAULT_$LINE"
2742 else
2743 no_cache=1
2744 fi
2745
2746 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2='$DEFAULT_WXWIN_COMPATIBILITY_2
2747
2748fi
2749
2750
2751 eval "$ac_cv_use_compat20"
2752 if test "$no_cache" != 1; then
2753 echo $ac_cv_use_compat20 >> ${wx_arg_cache_file}.tmp
2754 fi
2755
2756 if test "$WXWIN_COMPATIBILITY_2" = yes; then
2757 echo "$ac_t""yes" 1>&6
2758 else
2759 echo "$ac_t""no" 1>&6
2760 fi
2761
2762
2763 echo $ac_n "checking for --enable-compat22""... $ac_c" 1>&6
d73be714 2764echo "configure:2765: checking for --enable-compat22" >&5
54276ccf
VZ
2765 no_cache=0
2766 # Check whether --enable-compat22 or --disable-compat22 was given.
2767if test "${enable_compat22+set}" = set; then
2768 enableval="$enable_compat22"
2769
2770 if test "$enableval" = yes; then
2771 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes'
2772 else
2773 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no'
2774 fi
2775
2776else
2777
2778 LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}`
2779 if test "x$LINE" != x ; then
2780 eval "DEFAULT_$LINE"
2781 else
2782 no_cache=1
2783 fi
2784
2785 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2
2786
2787fi
2788
2789
2790 eval "$ac_cv_use_compat22"
2791 if test "$no_cache" != 1; then
2792 echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp
2793 fi
2794
2795 if test "$WXWIN_COMPATIBILITY_2_2" = yes; then
2796 echo "$ac_t""yes" 1>&6
2797 else
2798 echo "$ac_t""no" 1>&6
2799 fi
2800
2801
2802
698dcdb6
VZ
2803
2804 echo $ac_n "checking for --enable-intl""... $ac_c" 1>&6
d73be714 2805echo "configure:2806: checking for --enable-intl" >&5
10f2d63a
VZ
2806 no_cache=0
2807 # Check whether --enable-intl or --disable-intl was given.
2808if test "${enable_intl+set}" = set; then
2809 enableval="$enable_intl"
698dcdb6 2810
10f2d63a
VZ
2811 if test "$enableval" = yes; then
2812 ac_cv_use_intl='wxUSE_INTL=yes'
2813 else
2814 ac_cv_use_intl='wxUSE_INTL=no'
2815 fi
698dcdb6 2816
10f2d63a 2817else
698dcdb6 2818
10f2d63a
VZ
2819 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
2820 if test "x$LINE" != x ; then
2821 eval "DEFAULT_$LINE"
2822 else
2823 no_cache=1
2824 fi
2825
2826 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
698dcdb6
VZ
2827
2828fi
10f2d63a
VZ
2829
2830
2831 eval "$ac_cv_use_intl"
2832 if test "$no_cache" != 1; then
2833 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
2834 fi
2835
2836 if test "$wxUSE_INTL" = yes; then
698dcdb6 2837 echo "$ac_t""yes" 1>&6
10f2d63a 2838 else
698dcdb6 2839 echo "$ac_t""no" 1>&6
10f2d63a 2840 fi
698dcdb6 2841
10f2d63a 2842
698dcdb6 2843 echo $ac_n "checking for --enable-config""... $ac_c" 1>&6
d73be714 2844echo "configure:2845: checking for --enable-config" >&5
10f2d63a
VZ
2845 no_cache=0
2846 # Check whether --enable-config or --disable-config was given.
2847if test "${enable_config+set}" = set; then
2848 enableval="$enable_config"
698dcdb6 2849
10f2d63a
VZ
2850 if test "$enableval" = yes; then
2851 ac_cv_use_config='wxUSE_CONFIG=yes'
2852 else
2853 ac_cv_use_config='wxUSE_CONFIG=no'
2854 fi
698dcdb6 2855
10f2d63a 2856else
698dcdb6 2857
10f2d63a
VZ
2858 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
2859 if test "x$LINE" != x ; then
2860 eval "DEFAULT_$LINE"
2861 else
2862 no_cache=1
2863 fi
2864
2865 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
698dcdb6
VZ
2866
2867fi
10f2d63a
VZ
2868
2869
2870 eval "$ac_cv_use_config"
2871 if test "$no_cache" != 1; then
2872 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
2873 fi
2874
2875 if test "$wxUSE_CONFIG" = yes; then
698dcdb6 2876 echo "$ac_t""yes" 1>&6
10f2d63a 2877 else
698dcdb6 2878 echo "$ac_t""no" 1>&6
10f2d63a 2879 fi
698dcdb6
VZ
2880
2881
b12915c1 2882
698dcdb6 2883 echo $ac_n "checking for --enable-sockets""... $ac_c" 1>&6
d73be714 2884echo "configure:2885: checking for --enable-sockets" >&5
10f2d63a
VZ
2885 no_cache=0
2886 # Check whether --enable-sockets or --disable-sockets was given.
2887if test "${enable_sockets+set}" = set; then
2888 enableval="$enable_sockets"
698dcdb6 2889
10f2d63a
VZ
2890 if test "$enableval" = yes; then
2891 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
2892 else
2893 ac_cv_use_sockets='wxUSE_SOCKETS=no'
2894 fi
698dcdb6 2895
10f2d63a 2896else
698dcdb6 2897
10f2d63a
VZ
2898 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
2899 if test "x$LINE" != x ; then
2900 eval "DEFAULT_$LINE"
2901 else
2902 no_cache=1
2903 fi
2904
2905 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
698dcdb6
VZ
2906
2907fi
10f2d63a
VZ
2908
2909
2910 eval "$ac_cv_use_sockets"
2911 if test "$no_cache" != 1; then
2912 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
2913 fi
2914
2915 if test "$wxUSE_SOCKETS" = yes; then
698dcdb6 2916 echo "$ac_t""yes" 1>&6
10f2d63a 2917 else
698dcdb6 2918 echo "$ac_t""no" 1>&6
10f2d63a 2919 fi
698dcdb6 2920
b12915c1 2921
698dcdb6
VZ
2922
2923 echo $ac_n "checking for --enable-ipc""... $ac_c" 1>&6
d73be714 2924echo "configure:2925: checking for --enable-ipc" >&5
10f2d63a 2925 no_cache=0
eb4efbdc
VZ
2926 # Check whether --enable-ipc or --disable-ipc was given.
2927if test "${enable_ipc+set}" = set; then
2928 enableval="$enable_ipc"
698dcdb6 2929
10f2d63a 2930 if test "$enableval" = yes; then
eb4efbdc 2931 ac_cv_use_ipc='wxUSE_IPC=yes'
10f2d63a 2932 else
eb4efbdc 2933 ac_cv_use_ipc='wxUSE_IPC=no'
10f2d63a 2934 fi
698dcdb6 2935
10f2d63a 2936else
698dcdb6 2937
eb4efbdc 2938 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
10f2d63a
VZ
2939 if test "x$LINE" != x ; then
2940 eval "DEFAULT_$LINE"
2941 else
2942 no_cache=1
2943 fi
2944
eb4efbdc 2945 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
698dcdb6
VZ
2946
2947fi
10f2d63a
VZ
2948
2949
eb4efbdc 2950 eval "$ac_cv_use_ipc"
10f2d63a 2951 if test "$no_cache" != 1; then
eb4efbdc 2952 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2953 fi
2954
eb4efbdc 2955 if test "$wxUSE_IPC" = yes; then
698dcdb6 2956 echo "$ac_t""yes" 1>&6
10f2d63a 2957 else
698dcdb6 2958 echo "$ac_t""no" 1>&6
10f2d63a 2959 fi
698dcdb6
VZ
2960
2961
eb4efbdc 2962
1e6feb95 2963 echo $ac_n "checking for --enable-cmdline""... $ac_c" 1>&6
d73be714 2964echo "configure:2965: checking for --enable-cmdline" >&5
1e6feb95
VZ
2965 no_cache=0
2966 # Check whether --enable-cmdline or --disable-cmdline was given.
2967if test "${enable_cmdline+set}" = set; then
2968 enableval="$enable_cmdline"
2969
2970 if test "$enableval" = yes; then
2971 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
2972 else
2973 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
2974 fi
2975
2976else
2977
2978 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
2979 if test "x$LINE" != x ; then
2980 eval "DEFAULT_$LINE"
2981 else
2982 no_cache=1
2983 fi
2984
2985 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
2986
2987fi
2988
2989
2990 eval "$ac_cv_use_cmdline"
2991 if test "$no_cache" != 1; then
2992 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
2993 fi
2994
2995 if test "$wxUSE_CMDLINE_PARSER" = yes; then
2996 echo "$ac_t""yes" 1>&6
2997 else
2998 echo "$ac_t""no" 1>&6
2999 fi
3000
3001
3002 echo $ac_n "checking for --enable-datetime""... $ac_c" 1>&6
d73be714 3003echo "configure:3004: checking for --enable-datetime" >&5
1e6feb95
VZ
3004 no_cache=0
3005 # Check whether --enable-datetime or --disable-datetime was given.
3006if test "${enable_datetime+set}" = set; then
3007 enableval="$enable_datetime"
3008
3009 if test "$enableval" = yes; then
3010 ac_cv_use_datetime='wxUSE_DATETIME=yes'
3011 else
3012 ac_cv_use_datetime='wxUSE_DATETIME=no'
3013 fi
3014
3015else
3016
3017 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
3018 if test "x$LINE" != x ; then
3019 eval "DEFAULT_$LINE"
3020 else
3021 no_cache=1
3022 fi
3023
3024 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
3025
3026fi
3027
3028
3029 eval "$ac_cv_use_datetime"
3030 if test "$no_cache" != 1; then
3031 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
3032 fi
3033
3034 if test "$wxUSE_DATETIME" = yes; then
3035 echo "$ac_t""yes" 1>&6
3036 else
3037 echo "$ac_t""no" 1>&6
3038 fi
3039
3040
3041 echo $ac_n "checking for --enable-timedate""... $ac_c" 1>&6
d73be714 3042echo "configure:3043: checking for --enable-timedate" >&5
1e6feb95
VZ
3043 no_cache=0
3044 # Check whether --enable-timedate or --disable-timedate was given.
3045if test "${enable_timedate+set}" = set; then
3046 enableval="$enable_timedate"
3047
3048 if test "$enableval" = yes; then
3049 ac_cv_use_timedate='wxUSE_TIMEDATE=yes'
3050 else
3051 ac_cv_use_timedate='wxUSE_TIMEDATE=no'
3052 fi
3053
3054else
3055
3056 LINE=`grep "wxUSE_TIMEDATE" ${wx_arg_cache_file}`
3057 if test "x$LINE" != x ; then
3058 eval "DEFAULT_$LINE"
3059 else
3060 no_cache=1
3061 fi
3062
3063 ac_cv_use_timedate='wxUSE_TIMEDATE='$DEFAULT_wxUSE_TIMEDATE
3064
3065fi
3066
3067
3068 eval "$ac_cv_use_timedate"
3069 if test "$no_cache" != 1; then
3070 echo $ac_cv_use_timedate >> ${wx_arg_cache_file}.tmp
3071 fi
3072
3073 if test "$wxUSE_TIMEDATE" = yes; then
3074 echo "$ac_t""yes" 1>&6
3075 else
3076 echo "$ac_t""no" 1>&6
3077 fi
3078
3079
3080 echo $ac_n "checking for --enable-stopwatch""... $ac_c" 1>&6
d73be714 3081echo "configure:3082: checking for --enable-stopwatch" >&5
1e6feb95
VZ
3082 no_cache=0
3083 # Check whether --enable-stopwatch or --disable-stopwatch was given.
3084if test "${enable_stopwatch+set}" = set; then
3085 enableval="$enable_stopwatch"
3086
3087 if test "$enableval" = yes; then
3088 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
3089 else
3090 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
3091 fi
3092
3093else
3094
3095 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
3096 if test "x$LINE" != x ; then
3097 eval "DEFAULT_$LINE"
3098 else
3099 no_cache=1
3100 fi
3101
3102 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
3103
3104fi
3105
3106
3107 eval "$ac_cv_use_stopwatch"
3108 if test "$no_cache" != 1; then
3109 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
3110 fi
3111
3112 if test "$wxUSE_STOPWATCH" = yes; then
3113 echo "$ac_t""yes" 1>&6
3114 else
3115 echo "$ac_t""no" 1>&6
3116 fi
3117
3118
698dcdb6 3119 echo $ac_n "checking for --enable-dialupman""... $ac_c" 1>&6
d73be714 3120echo "configure:3121: checking for --enable-dialupman" >&5
10f2d63a 3121 no_cache=0
eb4efbdc
VZ
3122 # Check whether --enable-dialupman or --disable-dialupman was given.
3123if test "${enable_dialupman+set}" = set; then
3124 enableval="$enable_dialupman"
698dcdb6 3125
10f2d63a 3126 if test "$enableval" = yes; then
eb4efbdc 3127 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
10f2d63a 3128 else
eb4efbdc 3129 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
10f2d63a 3130 fi
698dcdb6 3131
10f2d63a 3132else
698dcdb6 3133
eb4efbdc 3134 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
10f2d63a
VZ
3135 if test "x$LINE" != x ; then
3136 eval "DEFAULT_$LINE"
3137 else
3138 no_cache=1
3139 fi
3140
eb4efbdc 3141 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
698dcdb6
VZ
3142
3143fi
10f2d63a
VZ
3144
3145
eb4efbdc 3146 eval "$ac_cv_use_dialupman"
10f2d63a 3147 if test "$no_cache" != 1; then
eb4efbdc 3148 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
3149 fi
3150
eb4efbdc 3151 if test "$wxUSE_DIALUP_MANAGER" = yes; then
698dcdb6 3152 echo "$ac_t""yes" 1>&6
10f2d63a 3153 else
698dcdb6 3154 echo "$ac_t""no" 1>&6
10f2d63a 3155 fi
698dcdb6 3156
10f2d63a 3157
698dcdb6 3158 echo $ac_n "checking for --enable-apple_ieee""... $ac_c" 1>&6
d73be714 3159echo "configure:3160: checking for --enable-apple_ieee" >&5
10f2d63a
VZ
3160 no_cache=0
3161 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
3162if test "${enable_apple_ieee+set}" = set; then
3163 enableval="$enable_apple_ieee"
698dcdb6 3164
10f2d63a
VZ
3165 if test "$enableval" = yes; then
3166 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
3167 else
3168 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
3169 fi
698dcdb6 3170
10f2d63a 3171else
698dcdb6 3172
10f2d63a
VZ
3173 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
3174 if test "x$LINE" != x ; then
3175 eval "DEFAULT_$LINE"
3176 else
3177 no_cache=1
3178 fi
3179
3180 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
698dcdb6
VZ
3181
3182fi
10f2d63a
VZ
3183
3184
3185 eval "$ac_cv_use_apple_ieee"
3186 if test "$no_cache" != 1; then
3187 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
3188 fi
3189
3190 if test "$wxUSE_APPLE_IEEE" = yes; then
698dcdb6 3191 echo "$ac_t""yes" 1>&6
10f2d63a 3192 else
698dcdb6 3193 echo "$ac_t""no" 1>&6
10f2d63a 3194 fi
698dcdb6 3195
10f2d63a 3196
1e6feb95 3197 echo $ac_n "checking for --enable-timer""... $ac_c" 1>&6
d73be714 3198echo "configure:3199: checking for --enable-timer" >&5
10f2d63a 3199 no_cache=0
1e6feb95
VZ
3200 # Check whether --enable-timer or --disable-timer was given.
3201if test "${enable_timer+set}" = set; then
3202 enableval="$enable_timer"
698dcdb6 3203
10f2d63a 3204 if test "$enableval" = yes; then
1e6feb95 3205 ac_cv_use_timer='wxUSE_TIMER=yes'
10f2d63a 3206 else
1e6feb95 3207 ac_cv_use_timer='wxUSE_TIMER=no'
10f2d63a 3208 fi
698dcdb6 3209
10f2d63a 3210else
698dcdb6 3211
1e6feb95 3212 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
10f2d63a
VZ
3213 if test "x$LINE" != x ; then
3214 eval "DEFAULT_$LINE"
3215 else
3216 no_cache=1
3217 fi
3218
1e6feb95 3219 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
698dcdb6
VZ
3220
3221fi
10f2d63a
VZ
3222
3223
1e6feb95 3224 eval "$ac_cv_use_timer"
10f2d63a 3225 if test "$no_cache" != 1; then
1e6feb95 3226 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
3227 fi
3228
1e6feb95 3229 if test "$wxUSE_TIMER" = yes; then
698dcdb6 3230 echo "$ac_t""yes" 1>&6
10f2d63a 3231 else
698dcdb6 3232 echo "$ac_t""no" 1>&6
10f2d63a 3233 fi
698dcdb6 3234
10f2d63a 3235
698dcdb6 3236 echo $ac_n "checking for --enable-wave""... $ac_c" 1>&6
d73be714 3237echo "configure:3238: checking for --enable-wave" >&5
10f2d63a
VZ
3238 no_cache=0
3239 # Check whether --enable-wave or --disable-wave was given.
3240if test "${enable_wave+set}" = set; then
3241 enableval="$enable_wave"
698dcdb6 3242
10f2d63a
VZ
3243 if test "$enableval" = yes; then
3244 ac_cv_use_wave='wxUSE_WAVE=yes'
3245 else
3246 ac_cv_use_wave='wxUSE_WAVE=no'
3247 fi
698dcdb6 3248
10f2d63a 3249else
698dcdb6 3250
10f2d63a
VZ
3251 LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}`
3252 if test "x$LINE" != x ; then
3253 eval "DEFAULT_$LINE"
3254 else
3255 no_cache=1
3256 fi
3257
3258 ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE
698dcdb6
VZ
3259
3260fi
10f2d63a
VZ
3261
3262
3263 eval "$ac_cv_use_wave"
3264 if test "$no_cache" != 1; then
3265 echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp
3266 fi
3267
3268 if test "$wxUSE_WAVE" = yes; then
698dcdb6 3269 echo "$ac_t""yes" 1>&6
10f2d63a 3270 else
698dcdb6 3271 echo "$ac_t""no" 1>&6
10f2d63a 3272 fi
698dcdb6 3273
10f2d63a 3274
698dcdb6 3275 echo $ac_n "checking for --enable-fraction""... $ac_c" 1>&6
d73be714 3276echo "configure:3277: checking for --enable-fraction" >&5
10f2d63a
VZ
3277 no_cache=0
3278 # Check whether --enable-fraction or --disable-fraction was given.
3279if test "${enable_fraction+set}" = set; then
3280 enableval="$enable_fraction"
698dcdb6 3281
10f2d63a
VZ
3282 if test "$enableval" = yes; then
3283 ac_cv_use_fraction='wxUSE_FRACTION=yes'
3284 else
3285 ac_cv_use_fraction='wxUSE_FRACTION=no'
3286 fi
698dcdb6 3287
10f2d63a 3288else
698dcdb6 3289
10f2d63a
VZ
3290 LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}`
3291 if test "x$LINE" != x ; then
3292 eval "DEFAULT_$LINE"
3293 else
3294 no_cache=1
3295 fi
3296
3297 ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION
698dcdb6
VZ
3298
3299fi
10f2d63a
VZ
3300
3301
3302 eval "$ac_cv_use_fraction"
3303 if test "$no_cache" != 1; then
3304 echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp
3305 fi
3306
3307 if test "$wxUSE_FRACTION" = yes; then
698dcdb6 3308 echo "$ac_t""yes" 1>&6
10f2d63a 3309 else
698dcdb6 3310 echo "$ac_t""no" 1>&6
10f2d63a 3311 fi
698dcdb6 3312
10f2d63a 3313
698dcdb6 3314 echo $ac_n "checking for --enable-dynlib""... $ac_c" 1>&6
d73be714 3315echo "configure:3316: checking for --enable-dynlib" >&5
10f2d63a
VZ
3316 no_cache=0
3317 # Check whether --enable-dynlib or --disable-dynlib was given.
3318if test "${enable_dynlib+set}" = set; then
3319 enableval="$enable_dynlib"
698dcdb6 3320
10f2d63a
VZ
3321 if test "$enableval" = yes; then
3322 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
3323 else
3324 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
3325 fi
698dcdb6 3326
10f2d63a 3327else
698dcdb6 3328
10f2d63a
VZ
3329 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
3330 if test "x$LINE" != x ; then
3331 eval "DEFAULT_$LINE"
3332 else
3333 no_cache=1
3334 fi
3335
3336 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
698dcdb6
VZ
3337
3338fi
10f2d63a
VZ
3339
3340
3341 eval "$ac_cv_use_dynlib"
3342 if test "$no_cache" != 1; then
3343 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
3344 fi
3345
3346 if test "$wxUSE_DYNLIB_CLASS" = yes; then
698dcdb6 3347 echo "$ac_t""yes" 1>&6
10f2d63a 3348 else
698dcdb6 3349 echo "$ac_t""no" 1>&6
10f2d63a 3350 fi
698dcdb6 3351
10f2d63a 3352
698dcdb6 3353 echo $ac_n "checking for --enable-longlong""... $ac_c" 1>&6
d73be714 3354echo "configure:3355: checking for --enable-longlong" >&5
10f2d63a
VZ
3355 no_cache=0
3356 # Check whether --enable-longlong or --disable-longlong was given.
3357if test "${enable_longlong+set}" = set; then
3358 enableval="$enable_longlong"
698dcdb6 3359
10f2d63a
VZ
3360 if test "$enableval" = yes; then
3361 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
3362 else
3363 ac_cv_use_longlong='wxUSE_LONGLONG=no'
3364 fi
698dcdb6 3365
10f2d63a 3366else
698dcdb6 3367
10f2d63a
VZ
3368 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
3369 if test "x$LINE" != x ; then
3370 eval "DEFAULT_$LINE"
3371 else
3372 no_cache=1
3373 fi
3374
3375 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
698dcdb6
VZ
3376
3377fi
10f2d63a
VZ
3378
3379
3380 eval "$ac_cv_use_longlong"
3381 if test "$no_cache" != 1; then
3382 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
3383 fi
3384
3385 if test "$wxUSE_LONGLONG" = yes; then
698dcdb6 3386 echo "$ac_t""yes" 1>&6
10f2d63a 3387 else
698dcdb6 3388 echo "$ac_t""no" 1>&6
10f2d63a 3389 fi
698dcdb6 3390
10f2d63a 3391
698dcdb6 3392 echo $ac_n "checking for --enable-geometry""... $ac_c" 1>&6
d73be714 3393echo "configure:3394: checking for --enable-geometry" >&5
e8f65ba6
RR
3394 no_cache=0
3395 # Check whether --enable-geometry or --disable-geometry was given.
3396if test "${enable_geometry+set}" = set; then
3397 enableval="$enable_geometry"
698dcdb6 3398
e8f65ba6
RR
3399 if test "$enableval" = yes; then
3400 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
3401 else
3402 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
3403 fi
698dcdb6 3404
e8f65ba6 3405else
698dcdb6 3406
e8f65ba6
RR
3407 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
3408 if test "x$LINE" != x ; then
3409 eval "DEFAULT_$LINE"
3410 else
3411 no_cache=1
3412 fi
3413
3414 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
698dcdb6
VZ
3415
3416fi
e8f65ba6
RR
3417
3418
3419 eval "$ac_cv_use_geometry"
3420 if test "$no_cache" != 1; then
3421 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
3422 fi
3423
3424 if test "$wxUSE_GEOMETRY" = yes; then
698dcdb6 3425 echo "$ac_t""yes" 1>&6
e8f65ba6 3426 else
698dcdb6 3427 echo "$ac_t""no" 1>&6
e8f65ba6 3428 fi
698dcdb6 3429
e8f65ba6 3430
698dcdb6 3431 echo $ac_n "checking for --enable-log""... $ac_c" 1>&6
d73be714 3432echo "configure:3433: checking for --enable-log" >&5
10f2d63a
VZ
3433 no_cache=0
3434 # Check whether --enable-log or --disable-log was given.
3435if test "${enable_log+set}" = set; then
3436 enableval="$enable_log"
698dcdb6 3437
10f2d63a
VZ
3438 if test "$enableval" = yes; then
3439 ac_cv_use_log='wxUSE_LOG=yes'
3440 else
3441 ac_cv_use_log='wxUSE_LOG=no'
3442 fi
698dcdb6 3443
10f2d63a 3444else
698dcdb6 3445
10f2d63a
VZ
3446 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
3447 if test "x$LINE" != x ; then
3448 eval "DEFAULT_$LINE"
3449 else
3450 no_cache=1
3451 fi
3452
3453 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
698dcdb6
VZ
3454
3455fi
10f2d63a
VZ
3456
3457
3458 eval "$ac_cv_use_log"
3459 if test "$no_cache" != 1; then
3460 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
3461 fi
3462
3463 if test "$wxUSE_LOG" = yes; then
698dcdb6 3464 echo "$ac_t""yes" 1>&6
10f2d63a 3465 else
698dcdb6 3466 echo "$ac_t""no" 1>&6
10f2d63a 3467 fi
698dcdb6 3468
10f2d63a 3469
698dcdb6 3470 echo $ac_n "checking for --enable-streams""... $ac_c" 1>&6
d73be714 3471echo "configure:3472: checking for --enable-streams" >&5
10f2d63a
VZ
3472 no_cache=0
3473 # Check whether --enable-streams or --disable-streams was given.
3474if test "${enable_streams+set}" = set; then
3475 enableval="$enable_streams"
698dcdb6 3476
10f2d63a
VZ
3477 if test "$enableval" = yes; then
3478 ac_cv_use_streams='wxUSE_STREAMS=yes'
3479 else
3480 ac_cv_use_streams='wxUSE_STREAMS=no'
3481 fi
698dcdb6 3482
10f2d63a 3483else
698dcdb6 3484
10f2d63a
VZ
3485 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
3486 if test "x$LINE" != x ; then
3487 eval "DEFAULT_$LINE"
3488 else
3489 no_cache=1
3490 fi
3491
3492 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
698dcdb6
VZ
3493
3494fi
10f2d63a
VZ
3495
3496
3497 eval "$ac_cv_use_streams"
3498 if test "$no_cache" != 1; then
3499 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
3500 fi
3501
3502 if test "$wxUSE_STREAMS" = yes; then
698dcdb6 3503 echo "$ac_t""yes" 1>&6
10f2d63a 3504 else
698dcdb6 3505 echo "$ac_t""no" 1>&6
10f2d63a 3506 fi
698dcdb6 3507
10f2d63a 3508
698dcdb6 3509 echo $ac_n "checking for --enable-file""... $ac_c" 1>&6
d73be714 3510echo "configure:3511: checking for --enable-file" >&5
10f2d63a
VZ
3511 no_cache=0
3512 # Check whether --enable-file or --disable-file was given.
3513if test "${enable_file+set}" = set; then
3514 enableval="$enable_file"
698dcdb6 3515
10f2d63a
VZ
3516 if test "$enableval" = yes; then
3517 ac_cv_use_file='wxUSE_FILE=yes'
3518 else
3519 ac_cv_use_file='wxUSE_FILE=no'
3520 fi
698dcdb6 3521
10f2d63a 3522else
698dcdb6 3523
10f2d63a
VZ
3524 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
3525 if test "x$LINE" != x ; then
3526 eval "DEFAULT_$LINE"
3527 else
3528 no_cache=1
3529 fi
3530
3531 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
698dcdb6
VZ
3532
3533fi
10f2d63a
VZ
3534
3535
3536 eval "$ac_cv_use_file"
3537 if test "$no_cache" != 1; then
3538 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
3539 fi
3540
3541 if test "$wxUSE_FILE" = yes; then
698dcdb6 3542 echo "$ac_t""yes" 1>&6
10f2d63a 3543 else
698dcdb6 3544 echo "$ac_t""no" 1>&6
10f2d63a 3545 fi
698dcdb6 3546
10f2d63a 3547
1e6feb95 3548 echo $ac_n "checking for --enable-ffile""... $ac_c" 1>&6
d73be714 3549echo "configure:3550: checking for --enable-ffile" >&5
10f2d63a 3550 no_cache=0
1e6feb95
VZ
3551 # Check whether --enable-ffile or --disable-ffile was given.
3552if test "${enable_ffile+set}" = set; then
3553 enableval="$enable_ffile"
698dcdb6 3554
10f2d63a 3555 if test "$enableval" = yes; then
1e6feb95 3556 ac_cv_use_ffile='wxUSE_FFILE=yes'
10f2d63a 3557 else
1e6feb95 3558 ac_cv_use_ffile='wxUSE_FFILE=no'
10f2d63a 3559 fi
698dcdb6 3560
10f2d63a 3561else
698dcdb6 3562
1e6feb95 3563 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
10f2d63a
VZ
3564 if test "x$LINE" != x ; then
3565 eval "DEFAULT_$LINE"
3566 else
3567 no_cache=1
3568 fi
3569
1e6feb95 3570 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
698dcdb6
VZ
3571
3572fi
10f2d63a
VZ
3573
3574
1e6feb95 3575 eval "$ac_cv_use_ffile"
10f2d63a 3576 if test "$no_cache" != 1; then
1e6feb95 3577 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
3578 fi
3579
1e6feb95 3580 if test "$wxUSE_FFILE" = yes; then
698dcdb6 3581 echo "$ac_t""yes" 1>&6
10f2d63a 3582 else
698dcdb6 3583 echo "$ac_t""no" 1>&6
10f2d63a 3584 fi
698dcdb6 3585
10f2d63a 3586
1e6feb95 3587 echo $ac_n "checking for --enable-textfile""... $ac_c" 1>&6
d73be714 3588echo "configure:3589: checking for --enable-textfile" >&5
10f2d63a 3589 no_cache=0
1e6feb95
VZ
3590 # Check whether --enable-textfile or --disable-textfile was given.
3591if test "${enable_textfile+set}" = set; then
3592 enableval="$enable_textfile"
698dcdb6 3593
10f2d63a 3594 if test "$enableval" = yes; then
1e6feb95 3595 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
10f2d63a 3596 else
1e6feb95 3597 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
10f2d63a 3598 fi
698dcdb6 3599
10f2d63a 3600else
698dcdb6 3601
1e6feb95 3602 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
10f2d63a
VZ
3603 if test "x$LINE" != x ; then
3604 eval "DEFAULT_$LINE"
3605 else
3606 no_cache=1
3607 fi
3608
1e6feb95 3609 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
698dcdb6
VZ
3610
3611fi
10f2d63a
VZ
3612
3613
1e6feb95 3614 eval "$ac_cv_use_textfile"
10f2d63a 3615 if test "$no_cache" != 1; then
1e6feb95 3616 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
3617 fi
3618
1e6feb95 3619 if test "$wxUSE_TEXTFILE" = yes; then
698dcdb6 3620 echo "$ac_t""yes" 1>&6
10f2d63a 3621 else
698dcdb6 3622 echo "$ac_t""no" 1>&6
10f2d63a 3623 fi
698dcdb6 3624
10f2d63a 3625
1e6feb95 3626 echo $ac_n "checking for --enable-fontmap""... $ac_c" 1>&6
d73be714 3627echo "configure:3628: checking for --enable-fontmap" >&5
10f2d63a 3628 no_cache=0
1e6feb95
VZ
3629 # Check whether --enable-fontmap or --disable-fontmap was given.
3630if test "${enable_fontmap+set}" = set; then
3631 enableval="$enable_fontmap"
698dcdb6 3632
10f2d63a 3633 if test "$enableval" = yes; then
1e6feb95 3634 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
10f2d63a 3635 else
1e6feb95 3636 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
10f2d63a 3637 fi
698dcdb6 3638
10f2d63a 3639else
698dcdb6 3640
1e6feb95 3641 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
10f2d63a
VZ
3642 if test "x$LINE" != x ; then
3643 eval "DEFAULT_$LINE"
3644 else
3645 no_cache=1
3646 fi
3647
1e6feb95 3648 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
698dcdb6
VZ
3649
3650fi
10f2d63a
VZ
3651
3652
1e6feb95 3653 eval "$ac_cv_use_fontmap"
10f2d63a 3654 if test "$no_cache" != 1; then
1e6feb95 3655 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
3656 fi
3657
1e6feb95 3658 if test "$wxUSE_FONTMAP" = yes; then
698dcdb6 3659 echo "$ac_t""yes" 1>&6
10f2d63a 3660 else
698dcdb6 3661 echo "$ac_t""no" 1>&6
10f2d63a 3662 fi
698dcdb6 3663
10f2d63a 3664
1e6feb95 3665 echo $ac_n "checking for --enable-unicode""... $ac_c" 1>&6
d73be714 3666echo "configure:3667: checking for --enable-unicode" >&5
10f2d63a 3667 no_cache=0
1e6feb95
VZ
3668 # Check whether --enable-unicode or --disable-unicode was given.
3669if test "${enable_unicode+set}" = set; then
3670 enableval="$enable_unicode"
3671
3672 if test "$enableval" = yes; then
3673 ac_cv_use_unicode='wxUSE_UNICODE=yes'
3674 else
3675 ac_cv_use_unicode='wxUSE_UNICODE=no'
3676 fi
3677
3678else
3679
3680 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
3681 if test "x$LINE" != x ; then
3682 eval "DEFAULT_$LINE"
3683 else
3684 no_cache=1
3685 fi
3686
3687 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
3688
3689fi
3690
3691
3692 eval "$ac_cv_use_unicode"
3693 if test "$no_cache" != 1; then
3694 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
3695 fi
3696
3697 if test "$wxUSE_UNICODE" = yes; then
3698 echo "$ac_t""yes" 1>&6
3699 else
3700 echo "$ac_t""no" 1>&6
3701 fi
3702
3703
3704 echo $ac_n "checking for --enable-wcsrtombs""... $ac_c" 1>&6
d73be714 3705echo "configure:3706: checking for --enable-wcsrtombs" >&5
1e6feb95
VZ
3706 no_cache=0
3707 # Check whether --enable-wcsrtombs or --disable-wcsrtombs was given.
3708if test "${enable_wcsrtombs+set}" = set; then
3709 enableval="$enable_wcsrtombs"
3710
3711 if test "$enableval" = yes; then
3712 ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS=yes'
3713 else
3714 ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS=no'
3715 fi
3716
3717else
3718
3719 LINE=`grep "wxUSE_WCSRTOMBS" ${wx_arg_cache_file}`
3720 if test "x$LINE" != x ; then
3721 eval "DEFAULT_$LINE"
3722 else
3723 no_cache=1
3724 fi
3725
3726 ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS='$DEFAULT_wxUSE_WCSRTOMBS
3727
3728fi
3729
3730
3731 eval "$ac_cv_use_wcsrtombs"
3732 if test "$no_cache" != 1; then
3733 echo $ac_cv_use_wcsrtombs >> ${wx_arg_cache_file}.tmp
3734 fi
3735
3736 if test "$wxUSE_WCSRTOMBS" = yes; then
3737 echo "$ac_t""yes" 1>&6
3738 else
3739 echo "$ac_t""no" 1>&6
3740 fi
3741
3742
3743 echo $ac_n "checking for --enable-wxprintfv""... $ac_c" 1>&6
d73be714 3744echo "configure:3745: checking for --enable-wxprintfv" >&5
1e6feb95
VZ
3745 no_cache=0
3746 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
3747if test "${enable_wxprintfv+set}" = set; then
3748 enableval="$enable_wxprintfv"
3749
3750 if test "$enableval" = yes; then
10f2d63a
VZ
3751 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
3752 else
3753 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
3754 fi
698dcdb6 3755
10f2d63a 3756else
698dcdb6 3757
10f2d63a
VZ
3758 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
3759 if test "x$LINE" != x ; then
3760 eval "DEFAULT_$LINE"
3761 else
3762 no_cache=1
3763 fi
3764
3765 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
698dcdb6
VZ
3766
3767fi
10f2d63a
VZ
3768
3769
3770 eval "$ac_cv_use_wxprintfv"
3771 if test "$no_cache" != 1; then
3772 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
3773 fi
3774
3775 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
698dcdb6 3776 echo "$ac_t""yes" 1>&6
10f2d63a 3777 else
698dcdb6 3778 echo "$ac_t""no" 1>&6
10f2d63a 3779 fi
698dcdb6 3780
10f2d63a 3781
698dcdb6 3782 echo $ac_n "checking for --enable-std_iostreams""... $ac_c" 1>&6
d73be714 3783echo "configure:3784: checking for --enable-std_iostreams" >&5
10f2d63a
VZ
3784 no_cache=0
3785 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
3786if test "${enable_std_iostreams+set}" = set; then
3787 enableval="$enable_std_iostreams"
698dcdb6 3788
10f2d63a
VZ
3789 if test "$enableval" = yes; then
3790 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
3791 else
3792 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
3793 fi
698dcdb6 3794
10f2d63a 3795else
698dcdb6 3796
10f2d63a
VZ
3797 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
3798 if test "x$LINE" != x ; then
3799 eval "DEFAULT_$LINE"
3800 else
3801 no_cache=1
3802 fi
3803
3804 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
698dcdb6
VZ
3805
3806fi
10f2d63a
VZ
3807
3808
3809 eval "$ac_cv_use_std_iostreams"
3810 if test "$no_cache" != 1; then
3811 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
3812 fi
3813
3814 if test "$wxUSE_STD_IOSTREAM" = yes; then
698dcdb6 3815 echo "$ac_t""yes" 1>&6
10f2d63a 3816 else
698dcdb6 3817 echo "$ac_t""no" 1>&6
10f2d63a 3818 fi
698dcdb6 3819
10f2d63a 3820
698dcdb6 3821 echo $ac_n "checking for --enable-filesystem""... $ac_c" 1>&6
d73be714 3822echo "configure:3823: checking for --enable-filesystem" >&5
24528b0c
VS
3823 no_cache=0
3824 # Check whether --enable-filesystem or --disable-filesystem was given.
3825if test "${enable_filesystem+set}" = set; then
3826 enableval="$enable_filesystem"
698dcdb6 3827
24528b0c
VS
3828 if test "$enableval" = yes; then
3829 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
3830 else
3831 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
3832 fi
698dcdb6 3833
24528b0c 3834else
698dcdb6 3835
24528b0c
VS
3836 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
3837 if test "x$LINE" != x ; then
3838 eval "DEFAULT_$LINE"
3839 else
3840 no_cache=1
3841 fi
3842
3843 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
698dcdb6
VZ
3844
3845fi
24528b0c
VS
3846
3847
3848 eval "$ac_cv_use_filesystem"
3849 if test "$no_cache" != 1; then
3850 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
3851 fi
3852
3853 if test "$wxUSE_FILESYSTEM" = yes; then
698dcdb6 3854 echo "$ac_t""yes" 1>&6
24528b0c 3855 else
698dcdb6 3856 echo "$ac_t""no" 1>&6
24528b0c 3857 fi
698dcdb6 3858
24528b0c 3859
698dcdb6 3860 echo $ac_n "checking for --enable-fs_inet""... $ac_c" 1>&6
d73be714 3861echo "configure:3862: checking for --enable-fs_inet" >&5
10f2d63a
VZ
3862 no_cache=0
3863 # Check whether --enable-fs_inet or --disable-fs_inet was given.
3864if test "${enable_fs_inet+set}" = set; then
3865 enableval="$enable_fs_inet"
698dcdb6 3866
10f2d63a
VZ
3867 if test "$enableval" = yes; then
3868 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
3869 else
3870 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
3871 fi
698dcdb6 3872
10f2d63a 3873else
698dcdb6 3874
10f2d63a
VZ
3875 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
3876 if test "x$LINE" != x ; then
3877 eval "DEFAULT_$LINE"
3878 else
3879 no_cache=1
3880 fi
3881
3882 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
698dcdb6
VZ
3883
3884fi
10f2d63a
VZ
3885
3886
3887 eval "$ac_cv_use_fs_inet"
3888 if test "$no_cache" != 1; then
3889 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
3890 fi
3891
3892 if test "$wxUSE_FS_INET" = yes; then
698dcdb6 3893 echo "$ac_t""yes" 1>&6
10f2d63a 3894 else
698dcdb6 3895 echo "$ac_t""no" 1>&6
10f2d63a 3896 fi
698dcdb6 3897
10f2d63a 3898
698dcdb6 3899 echo $ac_n "checking for --enable-fs_zip""... $ac_c" 1>&6
d73be714 3900echo "configure:3901: checking for --enable-fs_zip" >&5
10f2d63a
VZ
3901 no_cache=0
3902 # Check whether --enable-fs_zip or --disable-fs_zip was given.
3903if test "${enable_fs_zip+set}" = set; then
3904 enableval="$enable_fs_zip"
698dcdb6 3905
10f2d63a
VZ
3906 if test "$enableval" = yes; then
3907 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
3908 else
3909 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
3910 fi
698dcdb6 3911
10f2d63a 3912else
698dcdb6 3913
10f2d63a
VZ
3914 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
3915 if test "x$LINE" != x ; then
3916 eval "DEFAULT_$LINE"
3917 else
3918 no_cache=1
3919 fi
3920
3921 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
698dcdb6
VZ
3922
3923fi
10f2d63a
VZ
3924
3925
3926 eval "$ac_cv_use_fs_zip"
3927 if test "$no_cache" != 1; then
3928 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
3929 fi
3930
3931 if test "$wxUSE_FS_ZIP" = yes; then
698dcdb6 3932 echo "$ac_t""yes" 1>&6
10f2d63a 3933 else
698dcdb6 3934 echo "$ac_t""no" 1>&6
10f2d63a 3935 fi
698dcdb6 3936
10f2d63a 3937
698dcdb6 3938 echo $ac_n "checking for --enable-zipstream""... $ac_c" 1>&6
d73be714 3939echo "configure:3940: checking for --enable-zipstream" >&5
10f2d63a
VZ
3940 no_cache=0
3941 # Check whether --enable-zipstream or --disable-zipstream was given.
3942if test "${enable_zipstream+set}" = set; then
3943 enableval="$enable_zipstream"
698dcdb6 3944
10f2d63a
VZ
3945 if test "$enableval" = yes; then
3946 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
3947 else
3948 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
3949 fi
698dcdb6 3950
10f2d63a 3951else
698dcdb6 3952
10f2d63a
VZ
3953 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
3954 if test "x$LINE" != x ; then
3955 eval "DEFAULT_$LINE"
3956 else
3957 no_cache=1
3958 fi
3959
3960 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
698dcdb6
VZ
3961
3962fi
10f2d63a
VZ
3963
3964
3965 eval "$ac_cv_use_zipstream"
3966 if test "$no_cache" != 1; then
3967 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
3968 fi
3969
3970 if test "$wxUSE_ZIPSTREAM" = yes; then
698dcdb6 3971 echo "$ac_t""yes" 1>&6
10f2d63a 3972 else
698dcdb6 3973 echo "$ac_t""no" 1>&6
10f2d63a 3974 fi
698dcdb6 3975
10f2d63a 3976
698dcdb6
VZ
3977
3978 echo $ac_n "checking for --enable-catch_segvs""... $ac_c" 1>&6
d73be714 3979echo "configure:3980: checking for --enable-catch_segvs" >&5
eb4efbdc
VZ
3980 no_cache=0
3981 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
3982if test "${enable_catch_segvs+set}" = set; then
3983 enableval="$enable_catch_segvs"
698dcdb6 3984
eb4efbdc
VZ
3985 if test "$enableval" = yes; then
3986 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
3987 else
3988 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
3989 fi
698dcdb6 3990
eb4efbdc 3991else
698dcdb6 3992
eb4efbdc
VZ
3993 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
3994 if test "x$LINE" != x ; then
3995 eval "DEFAULT_$LINE"
3996 else
3997 no_cache=1
3998 fi
3999
4000 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
698dcdb6
VZ
4001
4002fi
eb4efbdc
VZ
4003
4004
4005 eval "$ac_cv_use_catch_segvs"
4006 if test "$no_cache" != 1; then
4007 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
4008 fi
4009
4010 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
698dcdb6 4011 echo "$ac_t""yes" 1>&6
eb4efbdc 4012 else
698dcdb6 4013 echo "$ac_t""no" 1>&6
eb4efbdc 4014 fi
698dcdb6 4015
eb4efbdc 4016
698dcdb6 4017 echo $ac_n "checking for --enable-snglinst""... $ac_c" 1>&6
d73be714 4018echo "configure:4019: checking for --enable-snglinst" >&5
4f3c5f06
VZ
4019 no_cache=0
4020 # Check whether --enable-snglinst or --disable-snglinst was given.
4021if test "${enable_snglinst+set}" = set; then
4022 enableval="$enable_snglinst"
698dcdb6 4023
4f3c5f06
VZ
4024 if test "$enableval" = yes; then
4025 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
4026 else
4027 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
4028 fi
698dcdb6 4029
4f3c5f06 4030else
698dcdb6 4031
4f3c5f06
VZ
4032 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
4033 if test "x$LINE" != x ; then
4034 eval "DEFAULT_$LINE"
4035 else
4036 no_cache=1
4037 fi
4038
4039 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
698dcdb6
VZ
4040
4041fi
4f3c5f06
VZ
4042
4043
4044 eval "$ac_cv_use_snglinst"
4045 if test "$no_cache" != 1; then
4046 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
4047 fi
4048
4049 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
698dcdb6 4050 echo "$ac_t""yes" 1>&6
4f3c5f06 4051 else
698dcdb6 4052 echo "$ac_t""no" 1>&6
4f3c5f06 4053 fi
698dcdb6
VZ
4054
4055
eb4efbdc 4056
1e6feb95 4057 echo $ac_n "checking for --enable-mimetype""... $ac_c" 1>&6
d73be714 4058echo "configure:4059: checking for --enable-mimetype" >&5
1e6feb95
VZ
4059 no_cache=0
4060 # Check whether --enable-mimetype or --disable-mimetype was given.
4061if test "${enable_mimetype+set}" = set; then
4062 enableval="$enable_mimetype"
4063
4064 if test "$enableval" = yes; then
4065 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
4066 else
4067 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
4068 fi
4069
4070else
4071
4072 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
4073 if test "x$LINE" != x ; then
4074 eval "DEFAULT_$LINE"
4075 else
4076 no_cache=1
4077 fi
4078
4079 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
4080
4081fi
4082
4083
4084 eval "$ac_cv_use_mimetype"
4085 if test "$no_cache" != 1; then
4086 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
4087 fi
4088
4089 if test "$wxUSE_MIMETYPE" = yes; then
4090 echo "$ac_t""yes" 1>&6
4091 else
4092 echo "$ac_t""no" 1>&6
4093 fi
4094
4095
4096
698dcdb6
VZ
4097
4098 echo $ac_n "checking for --enable-threads""... $ac_c" 1>&6
d73be714 4099echo "configure:4100: checking for --enable-threads" >&5
10f2d63a
VZ
4100 no_cache=0
4101 # Check whether --enable-threads or --disable-threads was given.
4102if test "${enable_threads+set}" = set; then
4103 enableval="$enable_threads"
698dcdb6 4104
10f2d63a
VZ
4105 if test "$enableval" = yes; then
4106 ac_cv_use_threads='wxUSE_THREADS=yes'
4107 else
4108 ac_cv_use_threads='wxUSE_THREADS=no'
4109 fi
698dcdb6 4110
10f2d63a 4111else
698dcdb6 4112
10f2d63a
VZ
4113 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
4114 if test "x$LINE" != x ; then
4115 eval "DEFAULT_$LINE"
4116 else
4117 no_cache=1
4118 fi
4119
4120 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
698dcdb6
VZ
4121
4122fi
10f2d63a
VZ
4123
4124
4125 eval "$ac_cv_use_threads"
4126 if test "$no_cache" != 1; then
4127 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
4128 fi
4129
4130 if test "$wxUSE_THREADS" = yes; then
698dcdb6 4131 echo "$ac_t""yes" 1>&6
10f2d63a 4132 else
698dcdb6 4133 echo "$ac_t""no" 1>&6
10f2d63a 4134 fi
698dcdb6 4135
10f2d63a 4136
698dcdb6 4137 echo $ac_n "checking for --enable-serial""... $ac_c" 1>&6
d73be714 4138echo "configure:4139: checking for --enable-serial" >&5
10f2d63a
VZ
4139 no_cache=0
4140 # Check whether --enable-serial or --disable-serial was given.
4141if test "${enable_serial+set}" = set; then
4142 enableval="$enable_serial"
698dcdb6 4143
10f2d63a
VZ
4144 if test "$enableval" = yes; then
4145 ac_cv_use_serial='wxUSE_SERIAL=yes'
4146 else
4147 ac_cv_use_serial='wxUSE_SERIAL=no'
4148 fi
698dcdb6 4149
10f2d63a 4150else
698dcdb6 4151
10f2d63a
VZ
4152 LINE=`grep "wxUSE_SERIAL" ${wx_arg_cache_file}`
4153 if test "x$LINE" != x ; then
4154 eval "DEFAULT_$LINE"
4155 else
4156 no_cache=1
4157 fi
4158
4159 ac_cv_use_serial='wxUSE_SERIAL='$DEFAULT_wxUSE_SERIAL
698dcdb6
VZ
4160
4161fi
10f2d63a
VZ
4162
4163
4164 eval "$ac_cv_use_serial"
4165 if test "$no_cache" != 1; then
4166 echo $ac_cv_use_serial >> ${wx_arg_cache_file}.tmp
4167 fi
4168
4169 if test "$wxUSE_SERIAL" = yes; then
698dcdb6 4170 echo "$ac_t""yes" 1>&6
10f2d63a 4171 else
698dcdb6 4172 echo "$ac_t""no" 1>&6
10f2d63a 4173 fi
698dcdb6 4174
10f2d63a 4175
b12915c1
VZ
4176if test "$wxUSE_GUI" = "yes"; then
4177
698dcdb6
VZ
4178
4179
4180 echo $ac_n "checking for --enable-docview""... $ac_c" 1>&6
d73be714 4181echo "configure:4182: checking for --enable-docview" >&5
10f2d63a
VZ
4182 no_cache=0
4183 # Check whether --enable-docview or --disable-docview was given.
4184if test "${enable_docview+set}" = set; then
4185 enableval="$enable_docview"
698dcdb6 4186
10f2d63a
VZ
4187 if test "$enableval" = yes; then
4188 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
4189 else
4190 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
4191 fi
698dcdb6 4192
10f2d63a 4193else
698dcdb6 4194
10f2d63a
VZ
4195 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
4196 if test "x$LINE" != x ; then
4197 eval "DEFAULT_$LINE"
4198 else
4199 no_cache=1
4200 fi
4201
4202 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
698dcdb6
VZ
4203
4204fi
10f2d63a
VZ
4205
4206
4207 eval "$ac_cv_use_docview"
4208 if test "$no_cache" != 1; then
4209 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
4210 fi
4211
4212 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
698dcdb6 4213 echo "$ac_t""yes" 1>&6
10f2d63a 4214 else
698dcdb6 4215 echo "$ac_t""no" 1>&6
10f2d63a 4216 fi
698dcdb6 4217
10f2d63a 4218
698dcdb6 4219 echo $ac_n "checking for --enable-help""... $ac_c" 1>&6
d73be714 4220echo "configure:4221: checking for --enable-help" >&5
10f2d63a
VZ
4221 no_cache=0
4222 # Check whether --enable-help or --disable-help was given.
4223if test "${enable_help+set}" = set; then
4224 enableval="$enable_help"
698dcdb6 4225
10f2d63a
VZ
4226 if test "$enableval" = yes; then
4227 ac_cv_use_help='wxUSE_HELP=yes'
4228 else
4229 ac_cv_use_help='wxUSE_HELP=no'
4230 fi
698dcdb6 4231
10f2d63a 4232else
698dcdb6 4233
10f2d63a
VZ
4234 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
4235 if test "x$LINE" != x ; then
4236 eval "DEFAULT_$LINE"
4237 else
4238 no_cache=1
4239 fi
4240
4241 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
698dcdb6
VZ
4242
4243fi
10f2d63a
VZ
4244
4245
4246 eval "$ac_cv_use_help"
4247 if test "$no_cache" != 1; then
4248 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
4249 fi
4250
4251 if test "$wxUSE_HELP" = yes; then
698dcdb6 4252 echo "$ac_t""yes" 1>&6
10f2d63a 4253 else
698dcdb6 4254 echo "$ac_t""no" 1>&6
10f2d63a 4255 fi
698dcdb6 4256
10f2d63a 4257
698dcdb6 4258 echo $ac_n "checking for --enable-constraints""... $ac_c" 1>&6
d73be714 4259echo "configure:4260: checking for --enable-constraints" >&5
10f2d63a
VZ
4260 no_cache=0
4261 # Check whether --enable-constraints or --disable-constraints was given.
4262if test "${enable_constraints+set}" = set; then
4263 enableval="$enable_constraints"
698dcdb6 4264
10f2d63a
VZ
4265 if test "$enableval" = yes; then
4266 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
4267 else
4268 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
4269 fi
698dcdb6 4270
10f2d63a 4271else
698dcdb6 4272
10f2d63a
VZ
4273 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
4274 if test "x$LINE" != x ; then
4275 eval "DEFAULT_$LINE"
4276 else
4277 no_cache=1
4278 fi
4279
4280 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
698dcdb6
VZ
4281
4282fi
10f2d63a
VZ
4283
4284
4285 eval "$ac_cv_use_constraints"
4286 if test "$no_cache" != 1; then
4287 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
4288 fi
4289
4290 if test "$wxUSE_CONSTRAINTS" = yes; then
698dcdb6 4291 echo "$ac_t""yes" 1>&6
10f2d63a 4292 else
698dcdb6 4293 echo "$ac_t""no" 1>&6
10f2d63a 4294 fi
698dcdb6 4295
10f2d63a 4296
698dcdb6 4297 echo $ac_n "checking for --enable-printarch""... $ac_c" 1>&6
d73be714 4298echo "configure:4299: checking for --enable-printarch" >&5
10f2d63a
VZ
4299 no_cache=0
4300 # Check whether --enable-printarch or --disable-printarch was given.
4301if test "${enable_printarch+set}" = set; then
4302 enableval="$enable_printarch"
698dcdb6 4303
10f2d63a
VZ
4304 if test "$enableval" = yes; then
4305 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
4306 else
4307 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
4308 fi
698dcdb6 4309
10f2d63a 4310else
698dcdb6 4311
10f2d63a
VZ
4312 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
4313 if test "x$LINE" != x ; then
4314 eval "DEFAULT_$LINE"
4315 else
4316 no_cache=1
4317 fi
4318
4319 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
698dcdb6
VZ
4320
4321fi
10f2d63a
VZ
4322
4323
4324 eval "$ac_cv_use_printarch"
4325 if test "$no_cache" != 1; then
4326 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
4327 fi
4328
4329 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
698dcdb6 4330 echo "$ac_t""yes" 1>&6
10f2d63a 4331 else
698dcdb6 4332 echo "$ac_t""no" 1>&6
10f2d63a 4333 fi
698dcdb6 4334
10f2d63a 4335
698dcdb6 4336 echo $ac_n "checking for --enable-mdi""... $ac_c" 1>&6
d73be714 4337echo "configure:4338: checking for --enable-mdi" >&5
10f2d63a
VZ
4338 no_cache=0
4339 # Check whether --enable-mdi or --disable-mdi was given.
4340if test "${enable_mdi+set}" = set; then
4341 enableval="$enable_mdi"
698dcdb6 4342
10f2d63a
VZ
4343 if test "$enableval" = yes; then
4344 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes'
4345 else
4346 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no'
4347 fi
698dcdb6 4348
10f2d63a 4349else
698dcdb6 4350
10f2d63a
VZ
4351 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
4352 if test "x$LINE" != x ; then
4353 eval "DEFAULT_$LINE"
4354 else
4355 no_cache=1
4356 fi
4357
4358 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
698dcdb6
VZ
4359
4360fi
10f2d63a
VZ
4361
4362
4363 eval "$ac_cv_use_mdi"
4364 if test "$no_cache" != 1; then
4365 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
4366 fi
4367
4368 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
698dcdb6 4369 echo "$ac_t""yes" 1>&6
10f2d63a 4370 else
698dcdb6 4371 echo "$ac_t""no" 1>&6
10f2d63a 4372 fi
698dcdb6
VZ
4373
4374
1e6feb95 4375 echo $ac_n "checking for --enable-loggui""... $ac_c" 1>&6
d73be714 4376echo "configure:4377: checking for --enable-loggui" >&5
1e6feb95
VZ
4377 no_cache=0
4378 # Check whether --enable-loggui or --disable-loggui was given.
4379if test "${enable_loggui+set}" = set; then
4380 enableval="$enable_loggui"
4381
4382 if test "$enableval" = yes; then
4383 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
4384 else
4385 ac_cv_use_loggui='wxUSE_LOGGUI=no'
4386 fi
4387
4388else
4389
4390 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
4391 if test "x$LINE" != x ; then
4392 eval "DEFAULT_$LINE"
4393 else
4394 no_cache=1
4395 fi
4396
4397 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
4398
4399fi
4400
4401
4402 eval "$ac_cv_use_loggui"
4403 if test "$no_cache" != 1; then
4404 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
4405 fi
4406
4407 if test "$wxUSE_LOGGUI" = yes; then
4408 echo "$ac_t""yes" 1>&6
4409 else
4410 echo "$ac_t""no" 1>&6
4411 fi
4412
4413
4414 echo $ac_n "checking for --enable-logwin""... $ac_c" 1>&6
d73be714 4415echo "configure:4416: checking for --enable-logwin" >&5
1e6feb95
VZ
4416 no_cache=0
4417 # Check whether --enable-logwin or --disable-logwin was given.
4418if test "${enable_logwin+set}" = set; then
4419 enableval="$enable_logwin"
4420
4421 if test "$enableval" = yes; then
4422 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
4423 else
4424 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
4425 fi
4426
4427else
4428
4429 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
4430 if test "x$LINE" != x ; then
4431 eval "DEFAULT_$LINE"
4432 else
4433 no_cache=1
4434 fi
4435
4436 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
4437
4438fi
4439
4440
4441 eval "$ac_cv_use_logwin"
4442 if test "$no_cache" != 1; then
4443 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
4444 fi
4445
4446 if test "$wxUSE_LOGWINDOW" = yes; then
4447 echo "$ac_t""yes" 1>&6
4448 else
4449 echo "$ac_t""no" 1>&6
4450 fi
4451
4452
10f2d63a 4453
698dcdb6 4454 echo $ac_n "checking for --enable-postscript""... $ac_c" 1>&6
d73be714 4455echo "configure:4456: checking for --enable-postscript" >&5
10f2d63a
VZ
4456 no_cache=0
4457 # Check whether --enable-postscript or --disable-postscript was given.
4458if test "${enable_postscript+set}" = set; then
4459 enableval="$enable_postscript"
698dcdb6 4460
10f2d63a
VZ
4461 if test "$enableval" = yes; then
4462 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
4463 else
4464 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
4465 fi
698dcdb6 4466
10f2d63a 4467else
698dcdb6 4468
10f2d63a
VZ
4469 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
4470 if test "x$LINE" != x ; then
4471 eval "DEFAULT_$LINE"
4472 else
4473 no_cache=1
4474 fi
4475
4476 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
698dcdb6
VZ
4477
4478fi
10f2d63a
VZ
4479
4480
4481 eval "$ac_cv_use_postscript"
4482 if test "$no_cache" != 1; then
4483 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
4484 fi
4485
4486 if test "$wxUSE_POSTSCRIPT" = yes; then
698dcdb6 4487 echo "$ac_t""yes" 1>&6
10f2d63a 4488 else
698dcdb6 4489 echo "$ac_t""no" 1>&6
10f2d63a 4490 fi
698dcdb6
VZ
4491
4492
4493
10f2d63a 4494
1e6feb95 4495
698dcdb6 4496 echo $ac_n "checking for --enable-prologio""... $ac_c" 1>&6
d73be714 4497echo "configure:4498: checking for --enable-prologio" >&5
10f2d63a
VZ
4498 no_cache=0
4499 # Check whether --enable-prologio or --disable-prologio was given.
4500if test "${enable_prologio+set}" = set; then
4501 enableval="$enable_prologio"
698dcdb6 4502
10f2d63a
VZ
4503 if test "$enableval" = yes; then
4504 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
4505 else
4506 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
4507 fi
698dcdb6 4508
10f2d63a 4509else
698dcdb6 4510
10f2d63a
VZ
4511 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
4512 if test "x$LINE" != x ; then
4513 eval "DEFAULT_$LINE"
4514 else
4515 no_cache=1
4516 fi
4517
4518 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
698dcdb6
VZ
4519
4520fi
10f2d63a
VZ
4521
4522
4523 eval "$ac_cv_use_prologio"
4524 if test "$no_cache" != 1; then
4525 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
4526 fi
4527
4528 if test "$wxUSE_PROLOGIO" = yes; then
698dcdb6 4529 echo "$ac_t""yes" 1>&6
10f2d63a 4530 else
698dcdb6 4531 echo "$ac_t""no" 1>&6
10f2d63a 4532 fi
698dcdb6 4533
10f2d63a 4534
698dcdb6 4535 echo $ac_n "checking for --enable-resources""... $ac_c" 1>&6
d73be714 4536echo "configure:4537: checking for --enable-resources" >&5
10f2d63a
VZ
4537 no_cache=0
4538 # Check whether --enable-resources or --disable-resources was given.
4539if test "${enable_resources+set}" = set; then
4540 enableval="$enable_resources"
698dcdb6 4541
10f2d63a
VZ
4542 if test "$enableval" = yes; then
4543 ac_cv_use_resources='wxUSE_RESOURCES=yes'
4544 else
4545 ac_cv_use_resources='wxUSE_RESOURCES=no'
4546 fi
698dcdb6 4547
10f2d63a 4548else
698dcdb6 4549
10f2d63a
VZ
4550 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
4551 if test "x$LINE" != x ; then
4552 eval "DEFAULT_$LINE"
4553 else
4554 no_cache=1
4555 fi
4556
4557 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
698dcdb6
VZ
4558
4559fi
10f2d63a
VZ
4560
4561
4562 eval "$ac_cv_use_resources"
4563 if test "$no_cache" != 1; then
4564 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
4565 fi
4566
4567 if test "$wxUSE_RESOURCES" = yes; then
698dcdb6 4568 echo "$ac_t""yes" 1>&6
10f2d63a 4569 else
698dcdb6 4570 echo "$ac_t""no" 1>&6
10f2d63a 4571 fi
698dcdb6 4572
10f2d63a 4573
698dcdb6
VZ
4574
4575 echo $ac_n "checking for --enable-xresources""... $ac_c" 1>&6
d73be714 4576echo "configure:4577: checking for --enable-xresources" >&5
10f2d63a
VZ
4577 no_cache=0
4578 # Check whether --enable-xresources or --disable-xresources was given.
4579if test "${enable_xresources+set}" = set; then
4580 enableval="$enable_xresources"
698dcdb6 4581
10f2d63a
VZ
4582 if test "$enableval" = yes; then
4583 ac_cv_use_xresources='wxUSE_X_RESOURCES=yes'
4584 else
4585 ac_cv_use_xresources='wxUSE_X_RESOURCES=no'
4586 fi
698dcdb6 4587
10f2d63a 4588else
698dcdb6 4589
10f2d63a
VZ
4590 LINE=`grep "wxUSE_X_RESOURCES" ${wx_arg_cache_file}`
4591 if test "x$LINE" != x ; then
4592 eval "DEFAULT_$LINE"
4593 else
4594 no_cache=1
4595 fi
4596
4597 ac_cv_use_xresources='wxUSE_X_RESOURCES='$DEFAULT_wxUSE_X_RESOURCES
698dcdb6
VZ
4598
4599fi
10f2d63a
VZ
4600
4601
4602 eval "$ac_cv_use_xresources"
4603 if test "$no_cache" != 1; then
4604 echo $ac_cv_use_xresources >> ${wx_arg_cache_file}.tmp
4605 fi
4606
4607 if test "$wxUSE_X_RESOURCES" = yes; then
698dcdb6 4608 echo "$ac_t""yes" 1>&6
10f2d63a 4609 else
698dcdb6 4610 echo "$ac_t""no" 1>&6
10f2d63a 4611 fi
698dcdb6
VZ
4612
4613
10f2d63a 4614
698dcdb6
VZ
4615
4616 echo $ac_n "checking for --enable-clipboard""... $ac_c" 1>&6
d73be714 4617echo "configure:4618: checking for --enable-clipboard" >&5
10f2d63a
VZ
4618 no_cache=0
4619 # Check whether --enable-clipboard or --disable-clipboard was given.
4620if test "${enable_clipboard+set}" = set; then
4621 enableval="$enable_clipboard"
698dcdb6 4622
10f2d63a
VZ
4623 if test "$enableval" = yes; then
4624 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
4625 else
4626 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
4627 fi
698dcdb6 4628
10f2d63a 4629else
698dcdb6 4630
10f2d63a
VZ
4631 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
4632 if test "x$LINE" != x ; then
4633 eval "DEFAULT_$LINE"
4634 else
4635 no_cache=1
4636 fi
4637
4638 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
698dcdb6
VZ
4639
4640fi
10f2d63a
VZ
4641
4642
4643 eval "$ac_cv_use_clipboard"
4644 if test "$no_cache" != 1; then
4645 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
4646 fi
4647
4648 if test "$wxUSE_CLIPBOARD" = yes; then
698dcdb6 4649 echo "$ac_t""yes" 1>&6
10f2d63a 4650 else
698dcdb6 4651 echo "$ac_t""no" 1>&6
10f2d63a 4652 fi
698dcdb6 4653
10f2d63a 4654
698dcdb6 4655 echo $ac_n "checking for --enable-dnd""... $ac_c" 1>&6
d73be714 4656echo "configure:4657: checking for --enable-dnd" >&5
10f2d63a
VZ
4657 no_cache=0
4658 # Check whether --enable-dnd or --disable-dnd was given.
4659if test "${enable_dnd+set}" = set; then
4660 enableval="$enable_dnd"
698dcdb6 4661
10f2d63a
VZ
4662 if test "$enableval" = yes; then
4663 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
4664 else
4665 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
4666 fi
698dcdb6 4667
10f2d63a 4668else
698dcdb6 4669
10f2d63a
VZ
4670 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
4671 if test "x$LINE" != x ; then
4672 eval "DEFAULT_$LINE"
4673 else
4674 no_cache=1
4675 fi
4676
4677 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
698dcdb6
VZ
4678
4679fi
10f2d63a
VZ
4680
4681
4682 eval "$ac_cv_use_dnd"
4683 if test "$no_cache" != 1; then
4684 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
4685 fi
4686
4687 if test "$wxUSE_DRAG_AND_DROP" = yes; then
698dcdb6 4688 echo "$ac_t""yes" 1>&6
10f2d63a 4689 else
698dcdb6 4690 echo "$ac_t""no" 1>&6
10f2d63a 4691 fi
698dcdb6 4692
10f2d63a 4693
698dcdb6 4694 echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6
d73be714 4695echo "configure:4696: checking for --enable-metafile" >&5
b64f0a5f
RL
4696 no_cache=0
4697 # Check whether --enable-metafile or --disable-metafile was given.
4698if test "${enable_metafile+set}" = set; then
4699 enableval="$enable_metafile"
698dcdb6 4700
b64f0a5f
RL
4701 if test "$enableval" = yes; then
4702 ac_cv_use_metafile='wxUSE_METAFILE=yes'
4703 else
4704 ac_cv_use_metafile='wxUSE_METAFILE=no'
4705 fi
698dcdb6 4706
b64f0a5f 4707else
698dcdb6 4708
b64f0a5f
RL
4709 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
4710 if test "x$LINE" != x ; then
4711 eval "DEFAULT_$LINE"
4712 else
4713 no_cache=1
4714 fi
4715
4716 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
698dcdb6
VZ
4717
4718fi
b64f0a5f
RL
4719
4720
4721 eval "$ac_cv_use_metafile"
4722 if test "$no_cache" != 1; then
4723 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
4724 fi
4725
4726 if test "$wxUSE_METAFILE" = yes; then
698dcdb6 4727 echo "$ac_t""yes" 1>&6
b64f0a5f 4728 else
698dcdb6 4729 echo "$ac_t""no" 1>&6
b64f0a5f 4730 fi
698dcdb6
VZ
4731
4732
10f2d63a 4733
698dcdb6 4734 echo $ac_n "checking for --enable-wxtree""... $ac_c" 1>&6
d73be714 4735echo "configure:4736: checking for --enable-wxtree" >&5
10f2d63a
VZ
4736 no_cache=0
4737 # Check whether --enable-wxtree or --disable-wxtree was given.
4738if test "${enable_wxtree+set}" = set; then
4739 enableval="$enable_wxtree"
698dcdb6 4740
10f2d63a
VZ
4741 if test "$enableval" = yes; then
4742 ac_cv_use_wxtree='wxUSE_WXTREE=yes'
4743 else
4744 ac_cv_use_wxtree='wxUSE_WXTREE=no'
4745 fi
698dcdb6 4746
10f2d63a 4747else
698dcdb6 4748
10f2d63a
VZ
4749 LINE=`grep "wxUSE_WXTREE" ${wx_arg_cache_file}`
4750 if test "x$LINE" != x ; then
4751 eval "DEFAULT_$LINE"
4752 else
4753 no_cache=1
4754 fi
4755
4756 ac_cv_use_wxtree='wxUSE_WXTREE='$DEFAULT_wxUSE_WXTREE
698dcdb6
VZ
4757
4758fi
10f2d63a
VZ
4759
4760
4761 eval "$ac_cv_use_wxtree"
4762 if test "$no_cache" != 1; then
4763 echo $ac_cv_use_wxtree >> ${wx_arg_cache_file}.tmp
4764 fi
4765
4766 if test "$wxUSE_WXTREE" = yes; then
698dcdb6 4767 echo "$ac_t""yes" 1>&6
10f2d63a 4768 else
698dcdb6 4769 echo "$ac_t""no" 1>&6
10f2d63a 4770 fi
698dcdb6 4771
10f2d63a 4772
698dcdb6
VZ
4773
4774
4775 echo $ac_n "checking for --enable-controls""... $ac_c" 1>&6
d73be714 4776echo "configure:4777: checking for --enable-controls" >&5
10f2d63a
VZ
4777 no_cache=0
4778 # Check whether --enable-controls or --disable-controls was given.
4779if test "${enable_controls+set}" = set; then
4780 enableval="$enable_controls"
698dcdb6 4781
10f2d63a
VZ
4782 if test "$enableval" = yes; then
4783 ac_cv_use_controls='wxUSE_CONTROLS=yes'
4784 else
4785 ac_cv_use_controls='wxUSE_CONTROLS=no'
4786 fi
698dcdb6 4787
10f2d63a 4788else
698dcdb6 4789
10f2d63a
VZ
4790 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
4791 if test "x$LINE" != x ; then
4792 eval "DEFAULT_$LINE"
4793 else
4794 no_cache=1
4795 fi
4796
4797 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
698dcdb6
VZ
4798
4799fi
10f2d63a
VZ
4800
4801
4802 eval "$ac_cv_use_controls"
4803 if test "$no_cache" != 1; then
4804 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
4805 fi
4806
4807 if test "$wxUSE_CONTROLS" = yes; then
698dcdb6 4808 echo "$ac_t""yes" 1>&6
10f2d63a 4809 else
698dcdb6 4810 echo "$ac_t""no" 1>&6
10f2d63a 4811 fi
698dcdb6 4812
10f2d63a
VZ
4813
4814if test "$wxUSE_CONTROLS" = "yes"; then
4815 DEFAULT_wxUSE_ACCEL=yes
1e6feb95
VZ
4816 DEFAULT_wxUSE_BMPBUTTON=yes
4817 DEFAULT_wxUSE_BUTTON=yes
4818 DEFAULT_wxUSE_CALCTRL=no
10f2d63a
VZ
4819 DEFAULT_wxUSE_CARET=yes
4820 DEFAULT_wxUSE_COMBOBOX=yes
10f2d63a
VZ
4821 DEFAULT_wxUSE_CHECKBOX=yes
4822 DEFAULT_wxUSE_CHECKLISTBOX=yes
4823 DEFAULT_wxUSE_CHOICE=yes
4824 DEFAULT_wxUSE_GAUGE=yes
4825 DEFAULT_wxUSE_GRID=yes
cc977e5f 4826 DEFAULT_wxUSE_NEW_GRID=yes
10f2d63a
VZ
4827 DEFAULT_wxUSE_IMAGLIST=yes
4828 DEFAULT_wxUSE_LISTBOX=yes
4829 DEFAULT_wxUSE_LISTCTRL=yes
4830 DEFAULT_wxUSE_NOTEBOOK=yes
4831 DEFAULT_wxUSE_RADIOBOX=yes
4832 DEFAULT_wxUSE_RADIOBTN=yes
4833 DEFAULT_wxUSE_SASH=yes
4834 DEFAULT_wxUSE_SCROLLBAR=yes
4835 DEFAULT_wxUSE_SLIDER=yes
4836 DEFAULT_wxUSE_SPINBTN=yes
56cfaa52 4837 DEFAULT_wxUSE_SPINCTRL=yes
10f2d63a
VZ
4838 DEFAULT_wxUSE_SPLITTER=yes
4839 DEFAULT_wxUSE_STATBMP=yes
4840 DEFAULT_wxUSE_STATBOX=yes
4841 DEFAULT_wxUSE_STATLINE=yes
4842 DEFAULT_wxUSE_STATUSBAR=yes
4843 DEFAULT_wxUSE_TAB_DIALOG=yes
1db8dc4a 4844 DEFAULT_wxUSE_TOGGLEBTN=yes
10f2d63a 4845 DEFAULT_wxUSE_TOOLBAR=yes
360d6699
VZ
4846 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
4847 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
10f2d63a
VZ
4848 DEFAULT_wxUSE_TOOLTIPS=yes
4849 DEFAULT_wxUSE_TREECTRL=yes
4850elif test "$wxUSE_CONTROLS" = "no"; then
4851 DEFAULT_wxUSE_ACCEL=no
1e6feb95
VZ
4852 DEFAULT_wxUSE_BMPBUTTON=no
4853 DEFAULT_wxUSE_BUTTON=no
4854 DEFAULT_wxUSE_CALCTRL=no
10f2d63a
VZ
4855 DEFAULT_wxUSE_CARET=no
4856 DEFAULT_wxUSE_COMBOBOX=no
10f2d63a
VZ
4857 DEFAULT_wxUSE_CHECKBOX=no
4858 DEFAULT_wxUSE_CHECKLISTBOX=no
4859 DEFAULT_wxUSE_CHOICE=no
4860 DEFAULT_wxUSE_GAUGE=no
4861 DEFAULT_wxUSE_GRID=no
4862 DEFAULT_wxUSE_NEW_GRID=no
4863 DEFAULT_wxUSE_IMAGLIST=no
4864 DEFAULT_wxUSE_LISTBOX=no
4865 DEFAULT_wxUSE_LISTCTRL=no
4866 DEFAULT_wxUSE_NOTEBOOK=no
4867 DEFAULT_wxUSE_RADIOBOX=no
4868 DEFAULT_wxUSE_RADIOBTN=no
4869 DEFAULT_wxUSE_SASH=no
4870 DEFAULT_wxUSE_SCROLLBAR=no
4871 DEFAULT_wxUSE_SLIDER=no
4872 DEFAULT_wxUSE_SPINBTN=no
56cfaa52 4873 DEFAULT_wxUSE_SPINCTRL=no
10f2d63a
VZ
4874 DEFAULT_wxUSE_SPLITTER=no
4875 DEFAULT_wxUSE_STATBMP=no
4876 DEFAULT_wxUSE_STATBOX=no
4877 DEFAULT_wxUSE_STATLINE=no
4878 DEFAULT_wxUSE_STATUSBAR=no
4879 DEFAULT_wxUSE_TAB_DIALOG=no
1db8dc4a 4880 DEFAULT_wxUSE_TOGGLEBTN=no
10f2d63a 4881 DEFAULT_wxUSE_TOOLBAR=no
360d6699
VZ
4882 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
4883 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
10f2d63a
VZ
4884 DEFAULT_wxUSE_TOOLTIPS=no
4885 DEFAULT_wxUSE_TREECTRL=no
4886fi
4887
698dcdb6
VZ
4888
4889 echo $ac_n "checking for --enable-accel""... $ac_c" 1>&6
d73be714 4890echo "configure:4891: checking for --enable-accel" >&5
10f2d63a
VZ
4891 no_cache=0
4892 # Check whether --enable-accel or --disable-accel was given.
4893if test "${enable_accel+set}" = set; then
4894 enableval="$enable_accel"
698dcdb6 4895
10f2d63a
VZ
4896 if test "$enableval" = yes; then
4897 ac_cv_use_accel='wxUSE_ACCEL=yes'
4898 else
4899 ac_cv_use_accel='wxUSE_ACCEL=no'
4900 fi
698dcdb6 4901
10f2d63a 4902else
698dcdb6 4903
10f2d63a
VZ
4904 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
4905 if test "x$LINE" != x ; then
4906 eval "DEFAULT_$LINE"
4907 else
4908 no_cache=1
4909 fi
4910
4911 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
698dcdb6
VZ
4912
4913fi
10f2d63a
VZ
4914
4915
4916 eval "$ac_cv_use_accel"
4917 if test "$no_cache" != 1; then
4918 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
4919 fi
4920
4921 if test "$wxUSE_ACCEL" = yes; then
698dcdb6 4922 echo "$ac_t""yes" 1>&6
10f2d63a 4923 else
698dcdb6 4924 echo "$ac_t""no" 1>&6
10f2d63a 4925 fi
698dcdb6 4926
10f2d63a 4927
1e6feb95 4928 echo $ac_n "checking for --enable-button""... $ac_c" 1>&6
d73be714 4929echo "configure:4930: checking for --enable-button" >&5
10f2d63a 4930 no_cache=0
1e6feb95
VZ
4931 # Check whether --enable-button or --disable-button was given.
4932if test "${enable_button+set}" = set; then
4933 enableval="$enable_button"
698dcdb6 4934
10f2d63a 4935 if test "$enableval" = yes; then
1e6feb95 4936 ac_cv_use_button='wxUSE_BUTTON=yes'
10f2d63a 4937 else
1e6feb95 4938 ac_cv_use_button='wxUSE_BUTTON=no'
10f2d63a 4939 fi
698dcdb6 4940
10f2d63a 4941else
698dcdb6 4942
1e6feb95 4943 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
10f2d63a
VZ
4944 if test "x$LINE" != x ; then
4945 eval "DEFAULT_$LINE"
4946 else
4947 no_cache=1
4948 fi
4949
1e6feb95 4950 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
698dcdb6
VZ
4951
4952fi
10f2d63a
VZ
4953
4954
1e6feb95 4955 eval "$ac_cv_use_button"
10f2d63a 4956 if test "$no_cache" != 1; then
1e6feb95 4957 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4958 fi
4959
1e6feb95 4960 if test "$wxUSE_BUTTON" = yes; then
698dcdb6 4961 echo "$ac_t""yes" 1>&6
10f2d63a 4962 else
698dcdb6 4963 echo "$ac_t""no" 1>&6
10f2d63a 4964 fi
698dcdb6 4965
10f2d63a 4966
698dcdb6 4967 echo $ac_n "checking for --enable-bmpbutton""... $ac_c" 1>&6
d73be714 4968echo "configure:4969: checking for --enable-bmpbutton" >&5
10f2d63a
VZ
4969 no_cache=0
4970 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
4971if test "${enable_bmpbutton+set}" = set; then
4972 enableval="$enable_bmpbutton"
698dcdb6 4973
10f2d63a
VZ
4974 if test "$enableval" = yes; then
4975 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
4976 else
4977 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
4978 fi
698dcdb6 4979
10f2d63a 4980else
698dcdb6 4981
10f2d63a
VZ
4982 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
4983 if test "x$LINE" != x ; then
4984 eval "DEFAULT_$LINE"
4985 else
4986 no_cache=1
4987 fi
4988
4989 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
698dcdb6
VZ
4990
4991fi
10f2d63a
VZ
4992
4993
4994 eval "$ac_cv_use_bmpbutton"
4995 if test "$no_cache" != 1; then
4996 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
4997 fi
4998
4999 if test "$wxUSE_BMPBUTTON" = yes; then
698dcdb6 5000 echo "$ac_t""yes" 1>&6
10f2d63a 5001 else
698dcdb6 5002 echo "$ac_t""no" 1>&6
10f2d63a 5003 fi
698dcdb6 5004
10f2d63a 5005
1e6feb95 5006 echo $ac_n "checking for --enable-calendar""... $ac_c" 1>&6
d73be714 5007echo "configure:5008: checking for --enable-calendar" >&5
1e6feb95
VZ
5008 no_cache=0
5009 # Check whether --enable-calendar or --disable-calendar was given.
5010if test "${enable_calendar+set}" = set; then
5011 enableval="$enable_calendar"
5012
5013 if test "$enableval" = yes; then
5014 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
5015 else
5016 ac_cv_use_calendar='wxUSE_CALCTRL=no'
5017 fi
5018
5019else
5020
5021 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
5022 if test "x$LINE" != x ; then
5023 eval "DEFAULT_$LINE"
5024 else
5025 no_cache=1
5026 fi
5027
5028 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
5029
5030fi
5031
5032
5033 eval "$ac_cv_use_calendar"
5034 if test "$no_cache" != 1; then
5035 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
5036 fi
5037
5038 if test "$wxUSE_CALCTRL" = yes; then
5039 echo "$ac_t""yes" 1>&6
5040 else
5041 echo "$ac_t""no" 1>&6
5042 fi
5043
5044
5045 echo $ac_n "checking for --enable-caret""... $ac_c" 1>&6
d73be714 5046echo "configure:5047: checking for --enable-caret" >&5
1e6feb95
VZ
5047 no_cache=0
5048 # Check whether --enable-caret or --disable-caret was given.
5049if test "${enable_caret+set}" = set; then
5050 enableval="$enable_caret"
5051
5052 if test "$enableval" = yes; then
5053 ac_cv_use_caret='wxUSE_CARET=yes'
5054 else
5055 ac_cv_use_caret='wxUSE_CARET=no'
5056 fi
5057
5058else
5059
5060 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
5061 if test "x$LINE" != x ; then
5062 eval "DEFAULT_$LINE"
5063 else
5064 no_cache=1
5065 fi
5066
5067 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
5068
5069fi
5070
5071
5072 eval "$ac_cv_use_caret"
5073 if test "$no_cache" != 1; then
5074 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
5075 fi
5076
5077 if test "$wxUSE_CARET" = yes; then
5078 echo "$ac_t""yes" 1>&6
5079 else
5080 echo "$ac_t""no" 1>&6
5081 fi
5082
5083
698dcdb6 5084 echo $ac_n "checking for --enable-checkbox""... $ac_c" 1>&6
d73be714 5085echo "configure:5086: checking for --enable-checkbox" >&5
10f2d63a
VZ
5086 no_cache=0
5087 # Check whether --enable-checkbox or --disable-checkbox was given.
5088if test "${enable_checkbox+set}" = set; then
5089 enableval="$enable_checkbox"
698dcdb6 5090
10f2d63a
VZ
5091 if test "$enableval" = yes; then
5092 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
5093 else
5094 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
5095 fi
698dcdb6 5096
10f2d63a 5097else
698dcdb6 5098
10f2d63a
VZ
5099 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
5100 if test "x$LINE" != x ; then
5101 eval "DEFAULT_$LINE"
5102 else
5103 no_cache=1
5104 fi
5105
5106 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
698dcdb6
VZ
5107
5108fi
10f2d63a
VZ
5109
5110
5111 eval "$ac_cv_use_checkbox"
5112 if test "$no_cache" != 1; then
5113 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
5114 fi
5115
5116 if test "$wxUSE_CHECKBOX" = yes; then
698dcdb6 5117 echo "$ac_t""yes" 1>&6
10f2d63a 5118 else
698dcdb6 5119 echo "$ac_t""no" 1>&6
10f2d63a 5120 fi
698dcdb6 5121
10f2d63a 5122
698dcdb6 5123 echo $ac_n "checking for --enable-checklst""... $ac_c" 1>&6
d73be714 5124echo "configure:5125: checking for --enable-checklst" >&5
10f2d63a
VZ
5125 no_cache=0
5126 # Check whether --enable-checklst or --disable-checklst was given.
5127if test "${enable_checklst+set}" = set; then
5128 enableval="$enable_checklst"
698dcdb6 5129
10f2d63a
VZ
5130 if test "$enableval" = yes; then
5131 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
5132 else
5133 ac_cv_use_checklst='wxUSE_CHECKLST=no'
5134 fi
698dcdb6 5135
10f2d63a 5136else
698dcdb6 5137
10f2d63a
VZ
5138 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
5139 if test "x$LINE" != x ; then
5140 eval "DEFAULT_$LINE"
5141 else
5142 no_cache=1
5143 fi
5144
5145 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
698dcdb6
VZ
5146
5147fi
10f2d63a
VZ
5148
5149
5150 eval "$ac_cv_use_checklst"
5151 if test "$no_cache" != 1; then
5152 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
5153 fi
5154
5155 if test "$wxUSE_CHECKLST" = yes; then
698dcdb6 5156 echo "$ac_t""yes" 1>&6
10f2d63a 5157 else
698dcdb6 5158 echo "$ac_t""no" 1>&6
10f2d63a 5159 fi
698dcdb6 5160
10f2d63a 5161
698dcdb6 5162 echo $ac_n "checking for --enable-choice""... $ac_c" 1>&6
d73be714 5163echo "configure:5164: checking for --enable-choice" >&5
10f2d63a
VZ
5164 no_cache=0
5165 # Check whether --enable-choice or --disable-choice was given.
5166if test "${enable_choice+set}" = set; then
5167 enableval="$enable_choice"
698dcdb6 5168
10f2d63a
VZ
5169 if test "$enableval" = yes; then
5170 ac_cv_use_choice='wxUSE_CHOICE=yes'
5171 else
5172 ac_cv_use_choice='wxUSE_CHOICE=no'
5173 fi
698dcdb6 5174
10f2d63a 5175else
698dcdb6 5176
10f2d63a
VZ
5177 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
5178 if test "x$LINE" != x ; then
5179 eval "DEFAULT_$LINE"
5180 else
5181 no_cache=1
5182 fi
5183
5184 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
698dcdb6
VZ
5185
5186fi
10f2d63a
VZ
5187
5188
5189 eval "$ac_cv_use_choice"
5190 if test "$no_cache" != 1; then
5191 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
5192 fi
5193
5194 if test "$wxUSE_CHOICE" = yes; then
698dcdb6 5195 echo "$ac_t""yes" 1>&6
10f2d63a 5196 else
698dcdb6 5197 echo "$ac_t""no" 1>&6
10f2d63a 5198 fi
698dcdb6 5199
10f2d63a 5200
698dcdb6 5201 echo $ac_n "checking for --enable-combobox""... $ac_c" 1>&6
d73be714 5202echo "configure:5203: checking for --enable-combobox" >&5
10f2d63a
VZ
5203 no_cache=0
5204 # Check whether --enable-combobox or --disable-combobox was given.
5205if test "${enable_combobox+set}" = set; then
5206 enableval="$enable_combobox"
698dcdb6 5207
10f2d63a
VZ
5208 if test "$enableval" = yes; then
5209 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
5210 else
5211 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
5212 fi
698dcdb6 5213
10f2d63a 5214else
698dcdb6 5215
10f2d63a
VZ
5216 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
5217 if test "x$LINE" != x ; then
5218 eval "DEFAULT_$LINE"
5219 else
5220 no_cache=1
5221 fi
5222
5223 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
698dcdb6
VZ
5224
5225fi
10f2d63a
VZ
5226
5227
5228 eval "$ac_cv_use_combobox"
5229 if test "$no_cache" != 1; then
5230 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
5231 fi
5232
5233 if test "$wxUSE_COMBOBOX" = yes; then
698dcdb6 5234 echo "$ac_t""yes" 1>&6
10f2d63a 5235 else
698dcdb6 5236 echo "$ac_t""no" 1>&6
10f2d63a 5237 fi
698dcdb6 5238
10f2d63a 5239
698dcdb6 5240 echo $ac_n "checking for --enable-gauge""... $ac_c" 1>&6
d73be714 5241echo "configure:5242: checking for --enable-gauge" >&5
10f2d63a
VZ
5242 no_cache=0
5243 # Check whether --enable-gauge or --disable-gauge was given.
5244if test "${enable_gauge+set}" = set; then
5245 enableval="$enable_gauge"
698dcdb6 5246
10f2d63a
VZ
5247 if test "$enableval" = yes; then
5248 ac_cv_use_gauge='wxUSE_GAUGE=yes'
5249 else
5250 ac_cv_use_gauge='wxUSE_GAUGE=no'
5251 fi
698dcdb6 5252
10f2d63a 5253else
698dcdb6 5254
10f2d63a
VZ
5255 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
5256 if test "x$LINE" != x ; then
5257 eval "DEFAULT_$LINE"
5258 else
5259 no_cache=1
5260 fi
5261
5262 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
698dcdb6
VZ
5263
5264fi
10f2d63a
VZ
5265
5266
5267 eval "$ac_cv_use_gauge"
5268 if test "$no_cache" != 1; then
5269 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
5270 fi
5271
5272 if test "$wxUSE_GAUGE" = yes; then
698dcdb6 5273 echo "$ac_t""yes" 1>&6
10f2d63a 5274 else
698dcdb6 5275 echo "$ac_t""no" 1>&6
10f2d63a 5276 fi
698dcdb6 5277
10f2d63a 5278
698dcdb6 5279 echo $ac_n "checking for --enable-grid""... $ac_c" 1>&6
d73be714 5280echo "configure:5281: checking for --enable-grid" >&5
10f2d63a
VZ
5281 no_cache=0
5282 # Check whether --enable-grid or --disable-grid was given.
5283if test "${enable_grid+set}" = set; then
5284 enableval="$enable_grid"
698dcdb6 5285
10f2d63a
VZ
5286 if test "$enableval" = yes; then
5287 ac_cv_use_grid='wxUSE_GRID=yes'
5288 else
5289 ac_cv_use_grid='wxUSE_GRID=no'
5290 fi
698dcdb6 5291
10f2d63a 5292else
698dcdb6 5293
10f2d63a
VZ
5294 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
5295 if test "x$LINE" != x ; then
5296 eval "DEFAULT_$LINE"
5297 else
5298 no_cache=1
5299 fi
5300
5301 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
698dcdb6
VZ
5302
5303fi
10f2d63a
VZ
5304
5305
5306 eval "$ac_cv_use_grid"
5307 if test "$no_cache" != 1; then
5308 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
5309 fi
5310
5311 if test "$wxUSE_GRID" = yes; then
698dcdb6 5312 echo "$ac_t""yes" 1>&6
10f2d63a 5313 else
698dcdb6 5314 echo "$ac_t""no" 1>&6
10f2d63a 5315 fi
698dcdb6 5316
10f2d63a 5317
698dcdb6 5318 echo $ac_n "checking for --enable-newgrid""... $ac_c" 1>&6
d73be714 5319echo "configure:5320: checking for --enable-newgrid" >&5
10f2d63a
VZ
5320 no_cache=0
5321 # Check whether --enable-newgrid or --disable-newgrid was given.
5322if test "${enable_newgrid+set}" = set; then
5323 enableval="$enable_newgrid"
698dcdb6 5324
10f2d63a
VZ
5325 if test "$enableval" = yes; then
5326 ac_cv_use_newgrid='wxUSE_NEW_GRID=yes'
5327 else
5328 ac_cv_use_newgrid='wxUSE_NEW_GRID=no'
5329 fi
698dcdb6 5330
10f2d63a 5331else
698dcdb6 5332
10f2d63a
VZ
5333 LINE=`grep "wxUSE_NEW_GRID" ${wx_arg_cache_file}`
5334 if test "x$LINE" != x ; then
5335 eval "DEFAULT_$LINE"
5336 else
5337 no_cache=1
5338 fi
5339
5340 ac_cv_use_newgrid='wxUSE_NEW_GRID='$DEFAULT_wxUSE_NEW_GRID
698dcdb6
VZ
5341
5342fi
10f2d63a
VZ
5343
5344
5345 eval "$ac_cv_use_newgrid"
5346 if test "$no_cache" != 1; then
5347 echo $ac_cv_use_newgrid >> ${wx_arg_cache_file}.tmp
5348 fi
5349
5350 if test "$wxUSE_NEW_GRID" = yes; then
698dcdb6 5351 echo "$ac_t""yes" 1>&6
10f2d63a 5352 else
698dcdb6 5353 echo "$ac_t""no" 1>&6
10f2d63a 5354 fi
698dcdb6 5355
10f2d63a 5356
698dcdb6 5357 echo $ac_n "checking for --enable-imaglist""... $ac_c" 1>&6
d73be714 5358echo "configure:5359: checking for --enable-imaglist" >&5
10f2d63a
VZ
5359 no_cache=0
5360 # Check whether --enable-imaglist or --disable-imaglist was given.
5361if test "${enable_imaglist+set}" = set; then
5362 enableval="$enable_imaglist"
698dcdb6 5363
10f2d63a
VZ
5364 if test "$enableval" = yes; then
5365 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
5366 else
5367 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
5368 fi
698dcdb6 5369
10f2d63a 5370else
698dcdb6 5371
10f2d63a
VZ
5372 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
5373 if test "x$LINE" != x ; then
5374 eval "DEFAULT_$LINE"
5375 else
5376 no_cache=1
5377 fi
5378
5379 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
698dcdb6
VZ
5380
5381fi
10f2d63a
VZ
5382
5383
5384 eval "$ac_cv_use_imaglist"
5385 if test "$no_cache" != 1; then
5386 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
5387 fi
5388
5389 if test "$wxUSE_IMAGLIST" = yes; then
698dcdb6 5390 echo "$ac_t""yes" 1>&6
10f2d63a 5391 else
698dcdb6 5392 echo "$ac_t""no" 1>&6
10f2d63a 5393 fi
698dcdb6 5394
10f2d63a 5395
698dcdb6 5396 echo $ac_n "checking for --enable-listbox""... $ac_c" 1>&6
d73be714 5397echo "configure:5398: checking for --enable-listbox" >&5
10f2d63a
VZ
5398 no_cache=0
5399 # Check whether --enable-listbox or --disable-listbox was given.
5400if test "${enable_listbox+set}" = set; then
5401 enableval="$enable_listbox"
698dcdb6 5402
10f2d63a
VZ
5403 if test "$enableval" = yes; then
5404 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
5405 else
5406 ac_cv_use_listbox='wxUSE_LISTBOX=no'
5407 fi
698dcdb6 5408
10f2d63a 5409else
698dcdb6 5410
10f2d63a
VZ
5411 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
5412 if test "x$LINE" != x ; then
5413 eval "DEFAULT_$LINE"
5414 else
5415 no_cache=1
5416 fi
5417
5418 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
698dcdb6
VZ
5419
5420fi
10f2d63a
VZ
5421
5422
5423 eval "$ac_cv_use_listbox"
5424 if test "$no_cache" != 1; then
5425 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
5426 fi
5427
5428 if test "$wxUSE_LISTBOX" = yes; then
698dcdb6 5429 echo "$ac_t""yes" 1>&6
10f2d63a 5430 else
698dcdb6 5431 echo "$ac_t""no" 1>&6
10f2d63a 5432 fi
698dcdb6 5433
10f2d63a 5434
698dcdb6 5435 echo $ac_n "checking for --enable-listctrl""... $ac_c" 1>&6
d73be714 5436echo "configure:5437: checking for --enable-listctrl" >&5
10f2d63a
VZ
5437 no_cache=0
5438 # Check whether --enable-listctrl or --disable-listctrl was given.
5439if test "${enable_listctrl+set}" = set; then
5440 enableval="$enable_listctrl"
698dcdb6 5441
10f2d63a
VZ
5442 if test "$enableval" = yes; then
5443 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
5444 else
5445 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
5446 fi
698dcdb6 5447
10f2d63a 5448else
698dcdb6 5449
10f2d63a
VZ
5450 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
5451 if test "x$LINE" != x ; then
5452 eval "DEFAULT_$LINE"
5453 else
5454 no_cache=1
5455 fi
5456
5457 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
698dcdb6
VZ
5458
5459fi
10f2d63a
VZ
5460
5461
5462 eval "$ac_cv_use_listctrl"
5463 if test "$no_cache" != 1; then
5464 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
5465 fi
5466
5467 if test "$wxUSE_LISTCTRL" = yes; then
698dcdb6 5468 echo "$ac_t""yes" 1>&6
10f2d63a 5469 else
698dcdb6 5470 echo "$ac_t""no" 1>&6
10f2d63a 5471 fi
698dcdb6 5472
10f2d63a 5473
698dcdb6 5474 echo $ac_n "checking for --enable-notebook""... $ac_c" 1>&6
d73be714 5475echo "configure:5476: checking for --enable-notebook" >&5
10f2d63a
VZ
5476 no_cache=0
5477 # Check whether --enable-notebook or --disable-notebook was given.
5478if test "${enable_notebook+set}" = set; then
5479 enableval="$enable_notebook"
698dcdb6 5480
10f2d63a
VZ
5481 if test "$enableval" = yes; then
5482 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
5483 else
5484 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
5485 fi
698dcdb6 5486
10f2d63a 5487else
698dcdb6 5488
10f2d63a
VZ
5489 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
5490 if test "x$LINE" != x ; then
5491 eval "DEFAULT_$LINE"
5492 else
5493 no_cache=1
5494 fi
5495
5496 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
698dcdb6
VZ
5497
5498fi
10f2d63a
VZ
5499
5500
5501 eval "$ac_cv_use_notebook"
5502 if test "$no_cache" != 1; then
5503 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
5504 fi
5505
5506 if test "$wxUSE_NOTEBOOK" = yes; then
698dcdb6 5507 echo "$ac_t""yes" 1>&6
10f2d63a 5508 else
698dcdb6 5509 echo "$ac_t""no" 1>&6
10f2d63a 5510 fi
698dcdb6 5511
10f2d63a 5512
698dcdb6 5513 echo $ac_n "checking for --enable-radiobox""... $ac_c" 1>&6
d73be714 5514echo "configure:5515: checking for --enable-radiobox" >&5
10f2d63a
VZ
5515 no_cache=0
5516 # Check whether --enable-radiobox or --disable-radiobox was given.
5517if test "${enable_radiobox+set}" = set; then
5518 enableval="$enable_radiobox"
698dcdb6 5519
10f2d63a
VZ
5520 if test "$enableval" = yes; then
5521 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
5522 else
5523 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
5524 fi
698dcdb6 5525
10f2d63a 5526else
698dcdb6 5527
10f2d63a
VZ
5528 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
5529 if test "x$LINE" != x ; then
5530 eval "DEFAULT_$LINE"
5531 else
5532 no_cache=1
5533 fi
5534
5535 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
698dcdb6
VZ
5536
5537fi
10f2d63a
VZ
5538
5539
5540 eval "$ac_cv_use_radiobox"
5541 if test "$no_cache" != 1; then
5542 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
5543 fi
5544
5545 if test "$wxUSE_RADIOBOX" = yes; then
698dcdb6 5546 echo "$ac_t""yes" 1>&6
10f2d63a 5547 else
698dcdb6 5548 echo "$ac_t""no" 1>&6
10f2d63a 5549 fi
698dcdb6 5550
10f2d63a 5551
698dcdb6 5552 echo $ac_n "checking for --enable-radiobtn""... $ac_c" 1>&6
d73be714 5553echo "configure:5554: checking for --enable-radiobtn" >&5
10f2d63a
VZ
5554 no_cache=0
5555 # Check whether --enable-radiobtn or --disable-radiobtn was given.
5556if test "${enable_radiobtn+set}" = set; then
5557 enableval="$enable_radiobtn"
698dcdb6 5558
10f2d63a
VZ
5559 if test "$enableval" = yes; then
5560 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
5561 else
5562 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
5563 fi
698dcdb6 5564
10f2d63a 5565else
698dcdb6 5566
10f2d63a
VZ
5567 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
5568 if test "x$LINE" != x ; then
5569 eval "DEFAULT_$LINE"
5570 else
5571 no_cache=1
5572 fi
5573
5574 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
698dcdb6
VZ
5575
5576fi
10f2d63a
VZ
5577
5578
5579 eval "$ac_cv_use_radiobtn"
5580 if test "$no_cache" != 1; then
5581 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
5582 fi
5583
5584 if test "$wxUSE_RADIOBTN" = yes; then
698dcdb6 5585 echo "$ac_t""yes" 1>&6
10f2d63a 5586 else
698dcdb6 5587 echo "$ac_t""no" 1>&6
10f2d63a 5588 fi
698dcdb6 5589
10f2d63a 5590
698dcdb6 5591 echo $ac_n "checking for --enable-sash""... $ac_c" 1>&6
d73be714 5592echo "configure:5593: checking for --enable-sash" >&5
10f2d63a
VZ
5593 no_cache=0
5594 # Check whether --enable-sash or --disable-sash was given.
5595if test "${enable_sash+set}" = set; then
5596 enableval="$enable_sash"
698dcdb6 5597
10f2d63a
VZ
5598 if test "$enableval" = yes; then
5599 ac_cv_use_sash='wxUSE_SASH=yes'
5600 else
5601 ac_cv_use_sash='wxUSE_SASH=no'
5602 fi
698dcdb6 5603
10f2d63a 5604else
698dcdb6 5605
10f2d63a
VZ
5606 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
5607 if test "x$LINE" != x ; then
5608 eval "DEFAULT_$LINE"
5609 else
5610 no_cache=1
5611 fi
5612
5613 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
698dcdb6
VZ
5614
5615fi
10f2d63a
VZ
5616
5617
5618 eval "$ac_cv_use_sash"
5619 if test "$no_cache" != 1; then
5620 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
5621 fi
5622
5623 if test "$wxUSE_SASH" = yes; then
698dcdb6 5624 echo "$ac_t""yes" 1>&6
10f2d63a 5625 else
698dcdb6 5626 echo "$ac_t""no" 1>&6
10f2d63a 5627 fi
698dcdb6 5628
10f2d63a 5629
698dcdb6 5630 echo $ac_n "checking for --enable-scrollbar""... $ac_c" 1>&6
d73be714 5631echo "configure:5632: checking for --enable-scrollbar" >&5
10f2d63a
VZ
5632 no_cache=0
5633 # Check whether --enable-scrollbar or --disable-scrollbar was given.
5634if test "${enable_scrollbar+set}" = set; then
5635 enableval="$enable_scrollbar"
698dcdb6 5636
10f2d63a
VZ
5637 if test "$enableval" = yes; then
5638 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
5639 else
5640 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
5641 fi
698dcdb6 5642
10f2d63a 5643else
698dcdb6 5644
10f2d63a
VZ
5645 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
5646 if test "x$LINE" != x ; then
5647 eval "DEFAULT_$LINE"
5648 else
5649 no_cache=1
5650 fi
5651
5652 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
698dcdb6
VZ
5653
5654fi
10f2d63a
VZ
5655
5656
5657 eval "$ac_cv_use_scrollbar"
5658 if test "$no_cache" != 1; then
5659 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
5660 fi
5661
5662 if test "$wxUSE_SCROLLBAR" = yes; then
698dcdb6 5663 echo "$ac_t""yes" 1>&6
10f2d63a 5664 else
698dcdb6 5665 echo "$ac_t""no" 1>&6
10f2d63a 5666 fi
698dcdb6 5667
10f2d63a 5668
698dcdb6 5669 echo $ac_n "checking for --enable-slider""... $ac_c" 1>&6
d73be714 5670echo "configure:5671: checking for --enable-slider" >&5
10f2d63a
VZ
5671 no_cache=0
5672 # Check whether --enable-slider or --disable-slider was given.
5673if test "${enable_slider+set}" = set; then
5674 enableval="$enable_slider"
698dcdb6 5675
10f2d63a
VZ
5676 if test "$enableval" = yes; then
5677 ac_cv_use_slider='wxUSE_SLIDER=yes'
5678 else
5679 ac_cv_use_slider='wxUSE_SLIDER=no'
5680 fi
698dcdb6 5681
10f2d63a 5682else
698dcdb6 5683
10f2d63a
VZ
5684 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
5685 if test "x$LINE" != x ; then
5686 eval "DEFAULT_$LINE"
5687 else
5688 no_cache=1
5689 fi
5690
5691 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
698dcdb6
VZ
5692
5693fi
10f2d63a
VZ
5694
5695
5696 eval "$ac_cv_use_slider"
5697 if test "$no_cache" != 1; then
5698 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
5699 fi
5700
5701 if test "$wxUSE_SLIDER" = yes; then
698dcdb6 5702 echo "$ac_t""yes" 1>&6
10f2d63a 5703 else
698dcdb6 5704 echo "$ac_t""no" 1>&6
10f2d63a 5705 fi
698dcdb6 5706
10f2d63a 5707
698dcdb6 5708 echo $ac_n "checking for --enable-spinbtn""... $ac_c" 1>&6
d73be714 5709echo "configure:5710: checking for --enable-spinbtn" >&5
10f2d63a
VZ
5710 no_cache=0
5711 # Check whether --enable-spinbtn or --disable-spinbtn was given.
5712if test "${enable_spinbtn+set}" = set; then
5713 enableval="$enable_spinbtn"
698dcdb6 5714
10f2d63a
VZ
5715 if test "$enableval" = yes; then
5716 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
5717 else
5718 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
5719 fi
698dcdb6 5720
10f2d63a 5721else
698dcdb6 5722
10f2d63a
VZ
5723 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
5724 if test "x$LINE" != x ; then
5725 eval "DEFAULT_$LINE"
5726 else
5727 no_cache=1
5728 fi
5729
5730 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
698dcdb6
VZ
5731
5732fi
10f2d63a
VZ
5733
5734
5735 eval "$ac_cv_use_spinbtn"
5736 if test "$no_cache" != 1; then
5737 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
5738 fi
5739
5740 if test "$wxUSE_SPINBTN" = yes; then
698dcdb6 5741 echo "$ac_t""yes" 1>&6
10f2d63a 5742 else
698dcdb6 5743 echo "$ac_t""no" 1>&6
10f2d63a 5744 fi
698dcdb6 5745
10f2d63a 5746
698dcdb6 5747 echo $ac_n "checking for --enable-spinctrl""... $ac_c" 1>&6
d73be714 5748echo "configure:5749: checking for --enable-spinctrl" >&5
56cfaa52
RR
5749 no_cache=0
5750 # Check whether --enable-spinctrl or --disable-spinctrl was given.
5751if test "${enable_spinctrl+set}" = set; then
5752 enableval="$enable_spinctrl"
698dcdb6 5753
56cfaa52
RR
5754 if test "$enableval" = yes; then
5755 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
5756 else
5757 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
5758 fi
698dcdb6 5759
56cfaa52 5760else
698dcdb6 5761
56cfaa52
RR
5762 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
5763 if test "x$LINE" != x ; then
5764 eval "DEFAULT_$LINE"
5765 else
5766 no_cache=1
5767 fi
5768
5769 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
698dcdb6
VZ
5770
5771fi
56cfaa52
RR
5772
5773
5774 eval "$ac_cv_use_spinctrl"
5775 if test "$no_cache" != 1; then
5776 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
5777 fi
5778
5779 if test "$wxUSE_SPINCTRL" = yes; then
698dcdb6 5780 echo "$ac_t""yes" 1>&6
56cfaa52 5781 else
698dcdb6 5782 echo "$ac_t""no" 1>&6
56cfaa52 5783 fi
698dcdb6 5784
56cfaa52 5785
698dcdb6 5786 echo $ac_n "checking for --enable-splitter""... $ac_c" 1>&6
d73be714 5787echo "configure:5788: checking for --enable-splitter" >&5
10f2d63a
VZ
5788 no_cache=0
5789 # Check whether --enable-splitter or --disable-splitter was given.
5790if test "${enable_splitter+set}" = set; then
5791 enableval="$enable_splitter"
698dcdb6 5792
10f2d63a
VZ
5793 if test "$enableval" = yes; then
5794 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
5795 else
5796 ac_cv_use_splitter='wxUSE_SPLITTER=no'
5797 fi
698dcdb6 5798
10f2d63a 5799else
698dcdb6 5800
10f2d63a
VZ
5801 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
5802 if test "x$LINE" != x ; then
5803 eval "DEFAULT_$LINE"
5804 else
5805 no_cache=1
5806 fi
5807
5808 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
698dcdb6
VZ
5809
5810fi
10f2d63a
VZ
5811
5812
5813 eval "$ac_cv_use_splitter"
5814 if test "$no_cache" != 1; then
5815 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
5816 fi
5817
5818 if test "$wxUSE_SPLITTER" = yes; then
698dcdb6 5819 echo "$ac_t""yes" 1>&6
10f2d63a 5820 else
698dcdb6 5821 echo "$ac_t""no" 1>&6
10f2d63a 5822 fi
698dcdb6 5823
10f2d63a 5824
698dcdb6 5825 echo $ac_n "checking for --enable-statbmp""... $ac_c" 1>&6
d73be714 5826echo "configure:5827: checking for --enable-statbmp" >&5
10f2d63a
VZ
5827 no_cache=0
5828 # Check whether --enable-statbmp or --disable-statbmp was given.
5829if test "${enable_statbmp+set}" = set; then
5830 enableval="$enable_statbmp"
698dcdb6 5831
10f2d63a
VZ
5832 if test "$enableval" = yes; then
5833 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
5834 else
5835 ac_cv_use_statbmp='wxUSE_STATBMP=no'
5836 fi
698dcdb6 5837
10f2d63a 5838else
698dcdb6 5839
10f2d63a
VZ
5840 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
5841 if test "x$LINE" != x ; then
5842 eval "DEFAULT_$LINE"
5843 else
5844 no_cache=1
5845 fi
5846
5847 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
698dcdb6
VZ
5848
5849fi
10f2d63a
VZ
5850
5851
5852 eval "$ac_cv_use_statbmp"
5853 if test "$no_cache" != 1; then
5854 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
5855 fi
5856
5857 if test "$wxUSE_STATBMP" = yes; then
698dcdb6 5858 echo "$ac_t""yes" 1>&6
10f2d63a 5859 else
698dcdb6 5860 echo "$ac_t""no" 1>&6
10f2d63a 5861 fi
698dcdb6 5862
10f2d63a 5863
698dcdb6 5864 echo $ac_n "checking for --enable-statbox""... $ac_c" 1>&6
d73be714 5865echo "configure:5866: checking for --enable-statbox" >&5
10f2d63a
VZ
5866 no_cache=0
5867 # Check whether --enable-statbox or --disable-statbox was given.
5868if test "${enable_statbox+set}" = set; then
5869 enableval="$enable_statbox"
698dcdb6 5870
10f2d63a
VZ
5871 if test "$enableval" = yes; then
5872 ac_cv_use_statbox='wxUSE_STATBOX=yes'
5873 else
5874 ac_cv_use_statbox='wxUSE_STATBOX=no'
5875 fi
698dcdb6 5876
10f2d63a 5877else
698dcdb6 5878
10f2d63a
VZ
5879 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
5880 if test "x$LINE" != x ; then
5881 eval "DEFAULT_$LINE"
5882 else
5883 no_cache=1
5884 fi
5885
5886 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
698dcdb6
VZ
5887
5888fi
10f2d63a
VZ
5889
5890
5891 eval "$ac_cv_use_statbox"
5892 if test "$no_cache" != 1; then
5893 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
5894 fi
5895
5896 if test "$wxUSE_STATBOX" = yes; then
698dcdb6 5897 echo "$ac_t""yes" 1>&6
10f2d63a 5898 else
698dcdb6 5899 echo "$ac_t""no" 1>&6
10f2d63a 5900 fi
698dcdb6 5901
10f2d63a 5902
698dcdb6 5903 echo $ac_n "checking for --enable-statline""... $ac_c" 1>&6
d73be714 5904echo "configure:5905: checking for --enable-statline" >&5
10f2d63a
VZ
5905 no_cache=0
5906 # Check whether --enable-statline or --disable-statline was given.
5907if test "${enable_statline+set}" = set; then
5908 enableval="$enable_statline"
698dcdb6 5909
10f2d63a
VZ
5910 if test "$enableval" = yes; then
5911 ac_cv_use_statline='wxUSE_STATLINE=yes'
5912 else
5913 ac_cv_use_statline='wxUSE_STATLINE=no'
5914 fi
698dcdb6 5915
10f2d63a 5916else
698dcdb6 5917
10f2d63a
VZ
5918 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
5919 if test "x$LINE" != x ; then
5920 eval "DEFAULT_$LINE"
5921 else
5922 no_cache=1
5923 fi
5924
5925 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
698dcdb6
VZ
5926
5927fi
10f2d63a
VZ
5928
5929
5930 eval "$ac_cv_use_statline"
5931 if test "$no_cache" != 1; then
5932 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
5933 fi
5934
5935 if test "$wxUSE_STATLINE" = yes; then
698dcdb6 5936 echo "$ac_t""yes" 1>&6
10f2d63a 5937 else
698dcdb6 5938 echo "$ac_t""no" 1>&6
10f2d63a 5939 fi
698dcdb6 5940
10f2d63a 5941
1e6feb95 5942 echo $ac_n "checking for --enable-stattext""... $ac_c" 1>&6
d73be714 5943echo "configure:5944: checking for --enable-stattext" >&5
1e6feb95
VZ
5944 no_cache=0
5945 # Check whether --enable-stattext or --disable-stattext was given.
5946if test "${enable_stattext+set}" = set; then
5947 enableval="$enable_stattext"
5948
5949 if test "$enableval" = yes; then
5950 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
5951 else
5952 ac_cv_use_stattext='wxUSE_STATTEXT=no'
5953 fi
5954
5955else
5956
5957 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
5958 if test "x$LINE" != x ; then
5959 eval "DEFAULT_$LINE"
5960 else
5961 no_cache=1
5962 fi
5963
5964 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
5965
5966fi
5967
5968
5969 eval "$ac_cv_use_stattext"
5970 if test "$no_cache" != 1; then
5971 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
5972 fi
5973
5974 if test "$wxUSE_STATTEXT" = yes; then
5975 echo "$ac_t""yes" 1>&6
5976 else
5977 echo "$ac_t""no" 1>&6
5978 fi
5979
5980
698dcdb6 5981 echo $ac_n "checking for --enable-statusbar""... $ac_c" 1>&6
d73be714 5982echo "configure:5983: checking for --enable-statusbar" >&5
10f2d63a
VZ
5983 no_cache=0
5984 # Check whether --enable-statusbar or --disable-statusbar was given.
5985if test "${enable_statusbar+set}" = set; then
5986 enableval="$enable_statusbar"
698dcdb6 5987
10f2d63a
VZ
5988 if test "$enableval" = yes; then
5989 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
5990 else
5991 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
5992 fi
698dcdb6 5993
10f2d63a 5994else
698dcdb6 5995
10f2d63a
VZ
5996 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
5997 if test "x$LINE" != x ; then
5998 eval "DEFAULT_$LINE"
5999 else
6000 no_cache=1
6001 fi
6002
6003 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
698dcdb6
VZ
6004
6005fi
10f2d63a
VZ
6006
6007
6008 eval "$ac_cv_use_statusbar"
6009 if test "$no_cache" != 1; then
6010 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
6011 fi
6012
6013 if test "$wxUSE_STATUSBAR" = yes; then
698dcdb6 6014 echo "$ac_t""yes" 1>&6
10f2d63a 6015 else
698dcdb6 6016 echo "$ac_t""no" 1>&6
10f2d63a 6017 fi
698dcdb6 6018
10f2d63a 6019
698dcdb6 6020 echo $ac_n "checking for --enable-tabdialog""... $ac_c" 1>&6
d73be714 6021echo "configure:6022: checking for --enable-tabdialog" >&5
10f2d63a
VZ
6022 no_cache=0
6023 # Check whether --enable-tabdialog or --disable-tabdialog was given.
6024if test "${enable_tabdialog+set}" = set; then
6025 enableval="$enable_tabdialog"
698dcdb6 6026
10f2d63a
VZ
6027 if test "$enableval" = yes; then
6028 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
6029 else
6030 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
6031 fi
698dcdb6 6032
10f2d63a 6033else
698dcdb6 6034
10f2d63a
VZ
6035 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
6036 if test "x$LINE" != x ; then
6037 eval "DEFAULT_$LINE"
6038 else
6039 no_cache=1
6040 fi
6041
6042 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
698dcdb6
VZ
6043
6044fi
10f2d63a
VZ
6045
6046
6047 eval "$ac_cv_use_tabdialog"
6048 if test "$no_cache" != 1; then
6049 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
6050 fi
6051
6052 if test "$wxUSE_TABDIALOG" = yes; then
698dcdb6 6053 echo "$ac_t""yes" 1>&6
10f2d63a 6054 else
698dcdb6 6055 echo "$ac_t""no" 1>&6
10f2d63a 6056 fi
698dcdb6 6057
10f2d63a 6058
1e6feb95 6059 echo $ac_n "checking for --enable-textctrl""... $ac_c" 1>&6
d73be714 6060echo "configure:6061: checking for --enable-textctrl" >&5
1e6feb95
VZ
6061 no_cache=0
6062 # Check whether --enable-textctrl or --disable-textctrl was given.
6063if test "${enable_textctrl+set}" = set; then
6064 enableval="$enable_textctrl"
6065
6066 if test "$enableval" = yes; then
6067 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
6068 else
6069 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
6070 fi
6071
6072else
6073
6074 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
6075 if test "x$LINE" != x ; then
6076 eval "DEFAULT_$LINE"
6077 else
6078 no_cache=1
6079 fi
6080
6081 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
6082
6083fi
6084
6085
6086 eval "$ac_cv_use_textctrl"
6087 if test "$no_cache" != 1; then
6088 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
6089 fi
6090
6091 if test "$wxUSE_TEXTCTRL" = yes; then
6092 echo "$ac_t""yes" 1>&6
6093 else
6094 echo "$ac_t""no" 1>&6
6095 fi
6096
6097
698dcdb6 6098 echo $ac_n "checking for --enable-togglebtn""... $ac_c" 1>&6
d73be714 6099echo "configure:6100: checking for --enable-togglebtn" >&5
1db8dc4a
VZ
6100 no_cache=0
6101 # Check whether --enable-togglebtn or --disable-togglebtn was given.
6102if test "${enable_togglebtn+set}" = set; then
6103 enableval="$enable_togglebtn"
698dcdb6 6104
1db8dc4a
VZ
6105 if test "$enableval" = yes; then
6106 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
6107 else
6108 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
6109 fi
698dcdb6 6110
1db8dc4a 6111else
698dcdb6 6112
1db8dc4a
VZ
6113 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
6114 if test "x$LINE" != x ; then
6115 eval "DEFAULT_$LINE"
6116 else
6117 no_cache=1
6118 fi
6119
6120 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
698dcdb6
VZ
6121
6122fi
1db8dc4a
VZ
6123
6124
6125 eval "$ac_cv_use_togglebtn"
6126 if test "$no_cache" != 1; then
6127 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
6128 fi
6129
6130 if test "$wxUSE_TOGGLEBTN" = yes; then
698dcdb6 6131 echo "$ac_t""yes" 1>&6
1db8dc4a 6132 else
698dcdb6 6133 echo "$ac_t""no" 1>&6
1db8dc4a 6134 fi
698dcdb6 6135
1db8dc4a 6136
698dcdb6 6137 echo $ac_n "checking for --enable-toolbar""... $ac_c" 1>&6
d73be714 6138echo "configure:6139: checking for --enable-toolbar" >&5
10f2d63a
VZ
6139 no_cache=0
6140 # Check whether --enable-toolbar or --disable-toolbar was given.
6141if test "${enable_toolbar+set}" = set; then
6142 enableval="$enable_toolbar"
698dcdb6 6143
10f2d63a
VZ
6144 if test "$enableval" = yes; then
6145 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
6146 else
6147 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
6148 fi
698dcdb6 6149
10f2d63a 6150else
698dcdb6 6151
10f2d63a
VZ
6152 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
6153 if test "x$LINE" != x ; then
6154 eval "DEFAULT_$LINE"
6155 else
6156 no_cache=1
6157 fi
6158
6159 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
698dcdb6
VZ
6160
6161fi
10f2d63a
VZ
6162
6163
6164 eval "$ac_cv_use_toolbar"
6165 if test "$no_cache" != 1; then
6166 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
6167 fi
6168
6169 if test "$wxUSE_TOOLBAR" = yes; then
698dcdb6 6170 echo "$ac_t""yes" 1>&6
10f2d63a 6171 else
698dcdb6 6172 echo "$ac_t""no" 1>&6
10f2d63a 6173 fi
698dcdb6 6174
10f2d63a 6175
698dcdb6 6176 echo $ac_n "checking for --enable-tbarnative""... $ac_c" 1>&6
d73be714 6177echo "configure:6178: checking for --enable-tbarnative" >&5
360d6699
VZ
6178 no_cache=0
6179 # Check whether --enable-tbarnative or --disable-tbarnative was given.
6180if test "${enable_tbarnative+set}" = set; then
6181 enableval="$enable_tbarnative"
698dcdb6 6182
360d6699
VZ
6183 if test "$enableval" = yes; then
6184 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
6185 else
6186 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
6187 fi
698dcdb6 6188
360d6699 6189else
698dcdb6 6190
360d6699
VZ
6191 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
6192 if test "x$LINE" != x ; then
6193 eval "DEFAULT_$LINE"
6194 else
6195 no_cache=1
6196 fi
6197
6198 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
698dcdb6
VZ
6199
6200fi
360d6699
VZ
6201
6202
6203 eval "$ac_cv_use_tbarnative"
6204 if test "$no_cache" != 1; then
6205 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
6206 fi
6207
6208 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
698dcdb6 6209 echo "$ac_t""yes" 1>&6
360d6699 6210 else
698dcdb6 6211 echo "$ac_t""no" 1>&6
360d6699 6212 fi
698dcdb6 6213
360d6699 6214
698dcdb6 6215 echo $ac_n "checking for --enable-tbarsmpl""... $ac_c" 1>&6
d73be714 6216echo "configure:6217: checking for --enable-tbarsmpl" >&5
360d6699
VZ
6217 no_cache=0
6218 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
6219if test "${enable_tbarsmpl+set}" = set; then
6220 enableval="$enable_tbarsmpl"
698dcdb6 6221
360d6699
VZ
6222 if test "$enableval" = yes; then
6223 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
6224 else
6225 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
6226 fi
698dcdb6 6227
360d6699 6228else
698dcdb6 6229
360d6699
VZ
6230 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
6231 if test "x$LINE" != x ; then
6232 eval "DEFAULT_$LINE"
6233 else
6234 no_cache=1
6235 fi
6236
6237 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
698dcdb6
VZ
6238
6239fi
360d6699
VZ
6240
6241
6242 eval "$ac_cv_use_tbarsmpl"
6243 if test "$no_cache" != 1; then
6244 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
6245 fi
6246
6247 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
698dcdb6 6248 echo "$ac_t""yes" 1>&6
360d6699 6249 else
698dcdb6 6250 echo "$ac_t""no" 1>&6
360d6699 6251 fi
698dcdb6 6252
360d6699 6253
698dcdb6 6254 echo $ac_n "checking for --enable-treectrl""... $ac_c" 1>&6
d73be714 6255echo "configure:6256: checking for --enable-treectrl" >&5
10f2d63a
VZ
6256 no_cache=0
6257 # Check whether --enable-treectrl or --disable-treectrl was given.
6258if test "${enable_treectrl+set}" = set; then
6259 enableval="$enable_treectrl"
698dcdb6 6260
10f2d63a
VZ
6261 if test "$enableval" = yes; then
6262 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
6263 else
6264 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
6265 fi
698dcdb6 6266
10f2d63a 6267else
698dcdb6 6268
10f2d63a
VZ
6269 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
6270 if test "x$LINE" != x ; then
6271 eval "DEFAULT_$LINE"
6272 else
6273 no_cache=1
6274 fi
6275
6276 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
698dcdb6
VZ
6277
6278fi
10f2d63a
VZ
6279
6280
1e6feb95
VZ
6281 eval "$ac_cv_use_treectrl"
6282 if test "$no_cache" != 1; then
6283 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
6284 fi
6285
6286 if test "$wxUSE_TREECTRL" = yes; then
6287 echo "$ac_t""yes" 1>&6
6288 else
6289 echo "$ac_t""no" 1>&6
6290 fi
6291
6292
6293
6294
6295 echo $ac_n "checking for --enable-commondlg""... $ac_c" 1>&6
d73be714 6296echo "configure:6297: checking for --enable-commondlg" >&5
1e6feb95
VZ
6297 no_cache=0
6298 # Check whether --enable-commondlg or --disable-commondlg was given.
6299if test "${enable_commondlg+set}" = set; then
6300 enableval="$enable_commondlg"
6301
6302 if test "$enableval" = yes; then
6303 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
6304 else
6305 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
6306 fi
6307
6308else
6309
6310 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
6311 if test "x$LINE" != x ; then
6312 eval "DEFAULT_$LINE"
6313 else
6314 no_cache=1
6315 fi
6316
6317 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
6318
6319fi
6320
6321
6322 eval "$ac_cv_use_commondlg"
6323 if test "$no_cache" != 1; then
6324 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
6325 fi
6326
6327 if test "$wxUSE_COMMONDLGS" = yes; then
6328 echo "$ac_t""yes" 1>&6
6329 else
6330 echo "$ac_t""no" 1>&6
6331 fi
6332
6333
6334 echo $ac_n "checking for --enable-choicedlg""... $ac_c" 1>&6
d73be714 6335echo "configure:6336: checking for --enable-choicedlg" >&5
1e6feb95
VZ
6336 no_cache=0
6337 # Check whether --enable-choicedlg or --disable-choicedlg was given.
6338if test "${enable_choicedlg+set}" = set; then
6339 enableval="$enable_choicedlg"
6340
6341 if test "$enableval" = yes; then
6342 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
6343 else
6344 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
6345 fi
6346
6347else
6348
6349 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
6350 if test "x$LINE" != x ; then
6351 eval "DEFAULT_$LINE"
6352 else
6353 no_cache=1
6354 fi
6355
6356 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
6357
6358fi
6359
6360
6361 eval "$ac_cv_use_choicedlg"
6362 if test "$no_cache" != 1; then
6363 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
6364 fi
6365
6366 if test "$wxUSE_CHOICEDLG" = yes; then
6367 echo "$ac_t""yes" 1>&6
6368 else
6369 echo "$ac_t""no" 1>&6
6370 fi
6371
6372
6373 echo $ac_n "checking for --enable-coldlg""... $ac_c" 1>&6
d73be714 6374echo "configure:6375: checking for --enable-coldlg" >&5
1e6feb95
VZ
6375 no_cache=0
6376 # Check whether --enable-coldlg or --disable-coldlg was given.
6377if test "${enable_coldlg+set}" = set; then
6378 enableval="$enable_coldlg"
6379
6380 if test "$enableval" = yes; then
6381 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
6382 else
6383 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
6384 fi
6385
6386else
6387
6388 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
6389 if test "x$LINE" != x ; then
6390 eval "DEFAULT_$LINE"
6391 else
6392 no_cache=1
6393 fi
6394
6395 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
6396
6397fi
6398
6399
6400 eval "$ac_cv_use_coldlg"
6401 if test "$no_cache" != 1; then
6402 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
6403 fi
6404
6405 if test "$wxUSE_COLOURDLG" = yes; then
6406 echo "$ac_t""yes" 1>&6
6407 else
6408 echo "$ac_t""no" 1>&6
6409 fi
6410
6411
6412 echo $ac_n "checking for --enable-filedlg""... $ac_c" 1>&6
d73be714 6413echo "configure:6414: checking for --enable-filedlg" >&5
1e6feb95
VZ
6414 no_cache=0
6415 # Check whether --enable-filedlg or --disable-filedlg was given.
6416if test "${enable_filedlg+set}" = set; then
6417 enableval="$enable_filedlg"
6418
6419 if test "$enableval" = yes; then
6420 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
6421 else
6422 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
6423 fi
6424
6425else
6426
6427 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
6428 if test "x$LINE" != x ; then
6429 eval "DEFAULT_$LINE"
6430 else
6431 no_cache=1
6432 fi
6433
6434 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
6435
6436fi
6437
6438
6439 eval "$ac_cv_use_filedlg"
6440 if test "$no_cache" != 1; then
6441 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
6442 fi
6443
6444 if test "$wxUSE_FILEDLG" = yes; then
6445 echo "$ac_t""yes" 1>&6
6446 else
6447 echo "$ac_t""no" 1>&6
6448 fi
6449
6450
6451 echo $ac_n "checking for --enable-fontdlg""... $ac_c" 1>&6
d73be714 6452echo "configure:6453: checking for --enable-fontdlg" >&5
1e6feb95
VZ
6453 no_cache=0
6454 # Check whether --enable-fontdlg or --disable-fontdlg was given.
6455if test "${enable_fontdlg+set}" = set; then
6456 enableval="$enable_fontdlg"
6457
6458 if test "$enableval" = yes; then
6459 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
6460 else
6461 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
6462 fi
6463
6464else
6465
6466 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
6467 if test "x$LINE" != x ; then
6468 eval "DEFAULT_$LINE"
6469 else
6470 no_cache=1
6471 fi
6472
6473 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
6474
6475fi
6476
6477
6478 eval "$ac_cv_use_fontdlg"
6479 if test "$no_cache" != 1; then
6480 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
6481 fi
6482
6483 if test "$wxUSE_FONTDLG" = yes; then
6484 echo "$ac_t""yes" 1>&6
6485 else
6486 echo "$ac_t""no" 1>&6
6487 fi
6488
6489
6490 echo $ac_n "checking for --enable-dirdlg""... $ac_c" 1>&6
d73be714 6491echo "configure:6492: checking for --enable-dirdlg" >&5
1e6feb95
VZ
6492 no_cache=0
6493 # Check whether --enable-dirdlg or --disable-dirdlg was given.
6494if test "${enable_dirdlg+set}" = set; then
6495 enableval="$enable_dirdlg"
6496
6497 if test "$enableval" = yes; then
6498 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
6499 else
6500 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
6501 fi
6502
6503else
6504
6505 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
6506 if test "x$LINE" != x ; then
6507 eval "DEFAULT_$LINE"
6508 else
6509 no_cache=1
6510 fi
6511
6512 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
6513
6514fi
6515
6516
6517 eval "$ac_cv_use_dirdlg"
10f2d63a 6518 if test "$no_cache" != 1; then
1e6feb95 6519 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
6520 fi
6521
1e6feb95 6522 if test "$wxUSE_DIRDLG" = yes; then
698dcdb6 6523 echo "$ac_t""yes" 1>&6
10f2d63a 6524 else
698dcdb6 6525 echo "$ac_t""no" 1>&6
10f2d63a 6526 fi
698dcdb6
VZ
6527
6528
1e6feb95 6529 echo $ac_n "checking for --enable-msgdlg""... $ac_c" 1>&6
d73be714 6530echo "configure:6531: checking for --enable-msgdlg" >&5
10f2d63a 6531 no_cache=0
1e6feb95
VZ
6532 # Check whether --enable-msgdlg or --disable-msgdlg was given.
6533if test "${enable_msgdlg+set}" = set; then
6534 enableval="$enable_msgdlg"
698dcdb6 6535
10f2d63a 6536 if test "$enableval" = yes; then
1e6feb95 6537 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
10f2d63a 6538 else
1e6feb95 6539 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
10f2d63a 6540 fi
698dcdb6 6541
10f2d63a 6542else
698dcdb6 6543
1e6feb95 6544 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
10f2d63a
VZ
6545 if test "x$LINE" != x ; then
6546 eval "DEFAULT_$LINE"
6547 else
6548 no_cache=1
6549 fi
6550
1e6feb95 6551 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
698dcdb6
VZ
6552
6553fi
10f2d63a
VZ
6554
6555
1e6feb95 6556 eval "$ac_cv_use_msgdlg"
10f2d63a 6557 if test "$no_cache" != 1; then
1e6feb95 6558 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
6559 fi
6560
1e6feb95 6561 if test "$wxUSE_MSGDLG" = yes; then
698dcdb6 6562 echo "$ac_t""yes" 1>&6
10f2d63a 6563 else
698dcdb6 6564 echo "$ac_t""no" 1>&6
10f2d63a 6565 fi
698dcdb6 6566
10f2d63a 6567
1e6feb95 6568 echo $ac_n "checking for --enable-numberdlg""... $ac_c" 1>&6
d73be714 6569echo "configure:6570: checking for --enable-numberdlg" >&5
10f2d63a 6570 no_cache=0
1e6feb95
VZ
6571 # Check whether --enable-numberdlg or --disable-numberdlg was given.
6572if test "${enable_numberdlg+set}" = set; then
6573 enableval="$enable_numberdlg"
698dcdb6 6574
10f2d63a 6575 if test "$enableval" = yes; then
1e6feb95 6576 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
10f2d63a 6577 else
1e6feb95 6578 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
10f2d63a 6579 fi
698dcdb6 6580
10f2d63a 6581else
698dcdb6 6582
1e6feb95 6583 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
10f2d63a
VZ
6584 if test "x$LINE" != x ; then
6585 eval "DEFAULT_$LINE"
6586 else
6587 no_cache=1
6588 fi
6589
1e6feb95 6590 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
698dcdb6
VZ
6591
6592fi
10f2d63a
VZ
6593
6594
1e6feb95 6595 eval "$ac_cv_use_numberdlg"
10f2d63a 6596 if test "$no_cache" != 1; then
1e6feb95 6597 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
6598 fi
6599
1e6feb95 6600 if test "$wxUSE_NUMBERDLG" = yes; then
698dcdb6 6601 echo "$ac_t""yes" 1>&6
10f2d63a 6602 else
698dcdb6 6603 echo "$ac_t""no" 1>&6
10f2d63a 6604 fi
698dcdb6 6605
10f2d63a 6606
698dcdb6 6607 echo $ac_n "checking for --enable-textdlg""... $ac_c" 1>&6
d73be714 6608echo "configure:6609: checking for --enable-textdlg" >&5
10f2d63a
VZ
6609 no_cache=0
6610 # Check whether --enable-textdlg or --disable-textdlg was given.
6611if test "${enable_textdlg+set}" = set; then
6612 enableval="$enable_textdlg"
698dcdb6 6613
10f2d63a
VZ
6614 if test "$enableval" = yes; then
6615 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
6616 else
6617 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
6618 fi
698dcdb6 6619
10f2d63a 6620else
698dcdb6 6621
10f2d63a
VZ
6622 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
6623 if test "x$LINE" != x ; then
6624 eval "DEFAULT_$LINE"
6625 else
6626 no_cache=1
6627 fi
6628
6629 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
698dcdb6
VZ
6630
6631fi
10f2d63a
VZ
6632
6633
6634 eval "$ac_cv_use_textdlg"
6635 if test "$no_cache" != 1; then
6636 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
6637 fi
6638
6639 if test "$wxUSE_TEXTDLG" = yes; then
698dcdb6 6640 echo "$ac_t""yes" 1>&6
10f2d63a 6641 else
698dcdb6 6642 echo "$ac_t""no" 1>&6
10f2d63a 6643 fi
698dcdb6 6644
10f2d63a 6645
698dcdb6 6646 echo $ac_n "checking for --enable-tipdlg""... $ac_c" 1>&6
d73be714 6647echo "configure:6648: checking for --enable-tipdlg" >&5
10f2d63a
VZ
6648 no_cache=0
6649 # Check whether --enable-tipdlg or --disable-tipdlg was given.
6650if test "${enable_tipdlg+set}" = set; then
6651 enableval="$enable_tipdlg"
698dcdb6 6652
10f2d63a
VZ
6653 if test "$enableval" = yes; then
6654 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
6655 else
6656 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
6657 fi
698dcdb6 6658
10f2d63a 6659else
698dcdb6 6660
10f2d63a
VZ
6661 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
6662 if test "x$LINE" != x ; then
6663 eval "DEFAULT_$LINE"
6664 else
6665 no_cache=1
6666 fi
6667
6668 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
698dcdb6
VZ
6669
6670fi
10f2d63a
VZ
6671
6672
6673 eval "$ac_cv_use_tipdlg"
6674 if test "$no_cache" != 1; then
6675 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
6676 fi
6677
6678 if test "$wxUSE_STARTUP_TIPS" = yes; then
698dcdb6 6679 echo "$ac_t""yes" 1>&6
10f2d63a 6680 else
698dcdb6 6681 echo "$ac_t""no" 1>&6
10f2d63a 6682 fi
698dcdb6 6683
10f2d63a 6684
698dcdb6 6685 echo $ac_n "checking for --enable-progressdlg""... $ac_c" 1>&6
d73be714 6686echo "configure:6687: checking for --enable-progressdlg" >&5
10f2d63a
VZ
6687 no_cache=0
6688 # Check whether --enable-progressdlg or --disable-progressdlg was given.
6689if test "${enable_progressdlg+set}" = set; then
6690 enableval="$enable_progressdlg"
698dcdb6 6691
10f2d63a
VZ
6692 if test "$enableval" = yes; then
6693 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
6694 else
6695 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
6696 fi
698dcdb6 6697
10f2d63a 6698else
698dcdb6 6699
10f2d63a
VZ
6700 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
6701 if test "x$LINE" != x ; then
6702 eval "DEFAULT_$LINE"
6703 else
6704 no_cache=1
6705 fi
6706
6707 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
698dcdb6
VZ
6708
6709fi
10f2d63a
VZ
6710
6711
6712 eval "$ac_cv_use_progressdlg"
6713 if test "$no_cache" != 1; then
6714 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
6715 fi
6716
6717 if test "$wxUSE_PROGRESSDLG" = yes; then
698dcdb6 6718 echo "$ac_t""yes" 1>&6
10f2d63a 6719 else
698dcdb6 6720 echo "$ac_t""no" 1>&6
10f2d63a 6721 fi
698dcdb6 6722
10f2d63a 6723
1e6feb95 6724 echo $ac_n "checking for --enable-menus""... $ac_c" 1>&6
d73be714 6725echo "configure:6726: checking for --enable-menus" >&5
1e6feb95
VZ
6726 no_cache=0
6727 # Check whether --enable-menus or --disable-menus was given.
6728if test "${enable_menus+set}" = set; then
6729 enableval="$enable_menus"
6730
6731 if test "$enableval" = yes; then
6732 ac_cv_use_menus='wxUSE_MENUS=yes'
6733 else
6734 ac_cv_use_menus='wxUSE_MENUS=no'
6735 fi
6736
6737else
6738
6739 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
6740 if test "x$LINE" != x ; then
6741 eval "DEFAULT_$LINE"
6742 else
6743 no_cache=1
6744 fi
6745
6746 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
6747
6748fi
6749
6750
6751 eval "$ac_cv_use_menus"
6752 if test "$no_cache" != 1; then
6753 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
6754 fi
6755
6756 if test "$wxUSE_MENUS" = yes; then
6757 echo "$ac_t""yes" 1>&6
6758 else
6759 echo "$ac_t""no" 1>&6
6760 fi
6761
6762
698dcdb6 6763 echo $ac_n "checking for --enable-miniframe""... $ac_c" 1>&6
d73be714 6764echo "configure:6765: checking for --enable-miniframe" >&5
10f2d63a
VZ
6765 no_cache=0
6766 # Check whether --enable-miniframe or --disable-miniframe was given.
6767if test "${enable_miniframe+set}" = set; then
6768 enableval="$enable_miniframe"
698dcdb6 6769
10f2d63a
VZ
6770 if test "$enableval" = yes; then
6771 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
6772 else
6773 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
6774 fi
698dcdb6 6775
10f2d63a 6776else
698dcdb6 6777
10f2d63a
VZ
6778 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
6779 if test "x$LINE" != x ; then
6780 eval "DEFAULT_$LINE"
6781 else
6782 no_cache=1
6783 fi
6784
6785 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
698dcdb6
VZ
6786
6787fi
10f2d63a
VZ
6788
6789
6790 eval "$ac_cv_use_miniframe"
6791 if test "$no_cache" != 1; then
6792 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
6793 fi
6794
6795 if test "$wxUSE_MINIFRAME" = yes; then
698dcdb6 6796 echo "$ac_t""yes" 1>&6
10f2d63a 6797 else
698dcdb6 6798 echo "$ac_t""no" 1>&6
10f2d63a 6799 fi
698dcdb6 6800
10f2d63a 6801
698dcdb6 6802 echo $ac_n "checking for --enable-html""... $ac_c" 1>&6
d73be714 6803echo "configure:6804: checking for --enable-html" >&5
10f2d63a
VZ
6804 no_cache=0
6805 # Check whether --enable-html or --disable-html was given.
6806if test "${enable_html+set}" = set; then
6807 enableval="$enable_html"
698dcdb6 6808
10f2d63a
VZ
6809 if test "$enableval" = yes; then
6810 ac_cv_use_html='wxUSE_HTML=yes'
6811 else
6812 ac_cv_use_html='wxUSE_HTML=no'
6813 fi
698dcdb6 6814
10f2d63a 6815else
698dcdb6 6816
10f2d63a
VZ
6817 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
6818 if test "x$LINE" != x ; then
6819 eval "DEFAULT_$LINE"
6820 else
6821 no_cache=1
6822 fi
6823
6824 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
698dcdb6
VZ
6825
6826fi
10f2d63a
VZ
6827
6828
6829 eval "$ac_cv_use_html"
6830 if test "$no_cache" != 1; then
6831 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
6832 fi
6833
6834 if test "$wxUSE_HTML" = yes; then
698dcdb6 6835 echo "$ac_t""yes" 1>&6
10f2d63a 6836 else
698dcdb6 6837 echo "$ac_t""no" 1>&6
10f2d63a 6838 fi
698dcdb6 6839
10f2d63a 6840
698dcdb6 6841 echo $ac_n "checking for --enable-tooltips""... $ac_c" 1>&6
d73be714 6842echo "configure:6843: checking for --enable-tooltips" >&5
10f2d63a
VZ
6843 no_cache=0
6844 # Check whether --enable-tooltips or --disable-tooltips was given.
6845if test "${enable_tooltips+set}" = set; then
6846 enableval="$enable_tooltips"
698dcdb6 6847
10f2d63a
VZ
6848 if test "$enableval" = yes; then
6849 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
6850 else
6851 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
6852 fi
698dcdb6 6853
10f2d63a 6854else
698dcdb6 6855
10f2d63a
VZ
6856 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
6857 if test "x$LINE" != x ; then
6858 eval "DEFAULT_$LINE"
6859 else
6860 no_cache=1
6861 fi
6862
6863 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
698dcdb6
VZ
6864
6865fi
10f2d63a
VZ
6866
6867
6868 eval "$ac_cv_use_tooltips"
6869 if test "$no_cache" != 1; then
6870 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
6871 fi
6872
6873 if test "$wxUSE_TOOLTIPS" = yes; then
698dcdb6 6874 echo "$ac_t""yes" 1>&6
10f2d63a 6875 else
698dcdb6 6876 echo "$ac_t""no" 1>&6
10f2d63a 6877 fi
698dcdb6 6878
10f2d63a 6879
698dcdb6 6880 echo $ac_n "checking for --enable-splines""... $ac_c" 1>&6
d73be714 6881echo "configure:6882: checking for --enable-splines" >&5
10f2d63a
VZ
6882 no_cache=0
6883 # Check whether --enable-splines or --disable-splines was given.
6884if test "${enable_splines+set}" = set; then
6885 enableval="$enable_splines"
698dcdb6 6886
10f2d63a
VZ
6887 if test "$enableval" = yes; then
6888 ac_cv_use_splines='wxUSE_SPLINES=yes'
6889 else
6890 ac_cv_use_splines='wxUSE_SPLINES=no'
6891 fi
698dcdb6 6892
10f2d63a 6893else
698dcdb6 6894
10f2d63a
VZ
6895 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
6896 if test "x$LINE" != x ; then
6897 eval "DEFAULT_$LINE"
6898 else
6899 no_cache=1
6900 fi
6901
6902 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
698dcdb6
VZ
6903
6904fi
10f2d63a
VZ
6905
6906
6907 eval "$ac_cv_use_splines"
6908 if test "$no_cache" != 1; then
6909 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
6910 fi
6911
6912 if test "$wxUSE_SPLINES" = yes; then
698dcdb6 6913 echo "$ac_t""yes" 1>&6
10f2d63a 6914 else
698dcdb6 6915 echo "$ac_t""no" 1>&6
10f2d63a 6916 fi
698dcdb6 6917
10f2d63a 6918
698dcdb6 6919 echo $ac_n "checking for --enable-validators""... $ac_c" 1>&6
d73be714 6920echo "configure:6921: checking for --enable-validators" >&5
10f2d63a
VZ
6921 no_cache=0
6922 # Check whether --enable-validators or --disable-validators was given.
6923if test "${enable_validators+set}" = set; then
6924 enableval="$enable_validators"
698dcdb6 6925
10f2d63a
VZ
6926 if test "$enableval" = yes; then
6927 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
6928 else
6929 ac_cv_use_validators='wxUSE_VALIDATORS=no'
6930 fi
698dcdb6 6931
10f2d63a 6932else
698dcdb6 6933
10f2d63a
VZ
6934 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
6935 if test "x$LINE" != x ; then
6936 eval "DEFAULT_$LINE"
6937 else
6938 no_cache=1
6939 fi
6940
6941 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
698dcdb6
VZ
6942
6943fi
10f2d63a
VZ
6944
6945
6946 eval "$ac_cv_use_validators"
6947 if test "$no_cache" != 1; then
6948 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
6949 fi
6950
6951 if test "$wxUSE_VALIDATORS" = yes; then
698dcdb6 6952 echo "$ac_t""yes" 1>&6
10f2d63a 6953 else
698dcdb6 6954 echo "$ac_t""no" 1>&6
10f2d63a 6955 fi
698dcdb6 6956
10f2d63a 6957
698dcdb6 6958 echo $ac_n "checking for --enable-busyinfo""... $ac_c" 1>&6
d73be714 6959echo "configure:6960: checking for --enable-busyinfo" >&5
10f2d63a
VZ
6960 no_cache=0
6961 # Check whether --enable-busyinfo or --disable-busyinfo was given.
6962if test "${enable_busyinfo+set}" = set; then
6963 enableval="$enable_busyinfo"
698dcdb6 6964
10f2d63a
VZ
6965 if test "$enableval" = yes; then
6966 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
6967 else
6968 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
6969 fi
698dcdb6 6970
10f2d63a 6971else
698dcdb6 6972
10f2d63a
VZ
6973 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
6974 if test "x$LINE" != x ; then
6975 eval "DEFAULT_$LINE"
6976 else
6977 no_cache=1
6978 fi
6979
6980 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
698dcdb6
VZ
6981
6982fi
10f2d63a
VZ
6983
6984
6985 eval "$ac_cv_use_busyinfo"
6986 if test "$no_cache" != 1; then
6987 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
6988 fi
6989
6990 if test "$wxUSE_BUSYINFO" = yes; then
698dcdb6 6991 echo "$ac_t""yes" 1>&6
10f2d63a 6992 else
698dcdb6 6993 echo "$ac_t""no" 1>&6
10f2d63a 6994 fi
698dcdb6 6995
10f2d63a 6996
698dcdb6 6997 echo $ac_n "checking for --enable-joystick""... $ac_c" 1>&6
d73be714 6998echo "configure:6999: checking for --enable-joystick" >&5
f6bcfd97
BP
6999 no_cache=0
7000 # Check whether --enable-joystick or --disable-joystick was given.
7001if test "${enable_joystick+set}" = set; then
7002 enableval="$enable_joystick"
698dcdb6 7003
f6bcfd97
BP
7004 if test "$enableval" = yes; then
7005 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
7006 else
7007 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
7008 fi
698dcdb6 7009
f6bcfd97 7010else
698dcdb6 7011
f6bcfd97
BP
7012 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
7013 if test "x$LINE" != x ; then
7014 eval "DEFAULT_$LINE"
7015 else
7016 no_cache=1
7017 fi
7018
7019 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
698dcdb6
VZ
7020
7021fi
f6bcfd97
BP
7022
7023
7024 eval "$ac_cv_use_joystick"
7025 if test "$no_cache" != 1; then
7026 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
7027 fi
7028
7029 if test "$wxUSE_JOYSTICK" = yes; then
698dcdb6 7030 echo "$ac_t""yes" 1>&6
f6bcfd97 7031 else
698dcdb6 7032 echo "$ac_t""no" 1>&6
f6bcfd97 7033 fi
698dcdb6
VZ
7034
7035
1e6feb95 7036 echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6
d73be714 7037echo "configure:7038: checking for --enable-metafile" >&5
1e6feb95
VZ
7038 no_cache=0
7039 # Check whether --enable-metafile or --disable-metafile was given.
7040if test "${enable_metafile+set}" = set; then
7041 enableval="$enable_metafile"
7042
7043 if test "$enableval" = yes; then
7044 ac_cv_use_metafile='wxUSE_METAFILE=yes'
7045 else
7046 ac_cv_use_metafile='wxUSE_METAFILE=no'
7047 fi
7048
7049else
7050
7051 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
7052 if test "x$LINE" != x ; then
7053 eval "DEFAULT_$LINE"
7054 else
7055 no_cache=1
7056 fi
7057
7058 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
7059
7060fi
7061
7062
7063 eval "$ac_cv_use_metafile"
7064 if test "$no_cache" != 1; then
7065 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
7066 fi
7067
7068 if test "$wxUSE_METAFILE" = yes; then
7069 echo "$ac_t""yes" 1>&6
7070 else
7071 echo "$ac_t""no" 1>&6
7072 fi
7073
7074
10f2d63a 7075
698dcdb6
VZ
7076
7077 echo $ac_n "checking for --enable-image""... $ac_c" 1>&6
d73be714 7078echo "configure:7079: checking for --enable-image" >&5
0046ff7c
VS
7079 no_cache=0
7080 # Check whether --enable-image or --disable-image was given.
7081if test "${enable_image+set}" = set; then
7082 enableval="$enable_image"
698dcdb6 7083
0046ff7c
VS
7084 if test "$enableval" = yes; then
7085 ac_cv_use_image='wxUSE_IMAGE=yes'
7086 else
7087 ac_cv_use_image='wxUSE_IMAGE=no'
7088 fi
698dcdb6 7089
0046ff7c 7090else
698dcdb6 7091
0046ff7c
VS
7092 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
7093 if test "x$LINE" != x ; then
7094 eval "DEFAULT_$LINE"
7095 else
7096 no_cache=1
7097 fi
7098
7099 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
698dcdb6
VZ
7100
7101fi
0046ff7c
VS
7102
7103
7104 eval "$ac_cv_use_image"
7105 if test "$no_cache" != 1; then
7106 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
7107 fi
7108
7109 if test "$wxUSE_IMAGE" = yes; then
698dcdb6 7110 echo "$ac_t""yes" 1>&6
0046ff7c 7111 else
698dcdb6 7112 echo "$ac_t""no" 1>&6
0046ff7c 7113 fi
698dcdb6 7114
0046ff7c 7115
698dcdb6 7116 echo $ac_n "checking for --enable-gif""... $ac_c" 1>&6
d73be714 7117echo "configure:7118: checking for --enable-gif" >&5
10f2d63a
VZ
7118 no_cache=0
7119 # Check whether --enable-gif or --disable-gif was given.
7120if test "${enable_gif+set}" = set; then
7121 enableval="$enable_gif"
698dcdb6 7122
10f2d63a
VZ
7123 if test "$enableval" = yes; then
7124 ac_cv_use_gif='wxUSE_GIF=yes'
7125 else
7126 ac_cv_use_gif='wxUSE_GIF=no'
7127 fi
698dcdb6 7128
10f2d63a 7129else
698dcdb6 7130
10f2d63a
VZ
7131 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
7132 if test "x$LINE" != x ; then
7133 eval "DEFAULT_$LINE"
7134 else
7135 no_cache=1
7136 fi
7137
7138 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
698dcdb6
VZ
7139
7140fi
10f2d63a
VZ
7141
7142
7143 eval "$ac_cv_use_gif"
7144 if test "$no_cache" != 1; then
7145 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
7146 fi
7147
7148 if test "$wxUSE_GIF" = yes; then
698dcdb6 7149 echo "$ac_t""yes" 1>&6
10f2d63a 7150 else
698dcdb6 7151 echo "$ac_t""no" 1>&6
10f2d63a 7152 fi
698dcdb6 7153
10f2d63a 7154
698dcdb6 7155 echo $ac_n "checking for --enable-pcx""... $ac_c" 1>&6
d73be714 7156echo "configure:7157: checking for --enable-pcx" >&5
10f2d63a
VZ
7157 no_cache=0
7158 # Check whether --enable-pcx or --disable-pcx was given.
7159if test "${enable_pcx+set}" = set; then
7160 enableval="$enable_pcx"
698dcdb6 7161
10f2d63a
VZ
7162 if test "$enableval" = yes; then
7163 ac_cv_use_pcx='wxUSE_PCX=yes'
7164 else
7165 ac_cv_use_pcx='wxUSE_PCX=no'
7166 fi
698dcdb6 7167
10f2d63a 7168else
698dcdb6 7169
10f2d63a
VZ
7170 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
7171 if test "x$LINE" != x ; then
7172 eval "DEFAULT_$LINE"
7173 else
7174 no_cache=1
7175 fi
7176
7177 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
698dcdb6
VZ
7178
7179fi
10f2d63a
VZ
7180
7181
7182 eval "$ac_cv_use_pcx"
7183 if test "$no_cache" != 1; then
7184 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
7185 fi
7186
7187 if test "$wxUSE_PCX" = yes; then
698dcdb6 7188 echo "$ac_t""yes" 1>&6
10f2d63a 7189 else
698dcdb6 7190 echo "$ac_t""no" 1>&6
10f2d63a 7191 fi
698dcdb6 7192
10f2d63a 7193
698dcdb6 7194 echo $ac_n "checking for --enable-pnm""... $ac_c" 1>&6
d73be714 7195echo "configure:7196: checking for --enable-pnm" >&5
10f2d63a
VZ
7196 no_cache=0
7197 # Check whether --enable-pnm or --disable-pnm was given.
7198if test "${enable_pnm+set}" = set; then
7199 enableval="$enable_pnm"
698dcdb6 7200
10f2d63a
VZ
7201 if test "$enableval" = yes; then
7202 ac_cv_use_pnm='wxUSE_PNM=yes'
7203 else
7204 ac_cv_use_pnm='wxUSE_PNM=no'
7205 fi
698dcdb6 7206
10f2d63a 7207else
698dcdb6 7208
10f2d63a
VZ
7209 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
7210 if test "x$LINE" != x ; then
7211 eval "DEFAULT_$LINE"
7212 else
7213 no_cache=1
7214 fi
7215
7216 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
698dcdb6
VZ
7217
7218fi
10f2d63a
VZ
7219
7220
7221 eval "$ac_cv_use_pnm"
7222 if test "$no_cache" != 1; then
7223 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
7224 fi
7225
7226 if test "$wxUSE_PNM" = yes; then
698dcdb6 7227 echo "$ac_t""yes" 1>&6
10f2d63a 7228 else
698dcdb6 7229 echo "$ac_t""no" 1>&6
10f2d63a 7230 fi
698dcdb6 7231
10f2d63a 7232
698dcdb6 7233 echo $ac_n "checking for --enable-pnm""... $ac_c" 1>&6
d73be714 7234echo "configure:7235: checking for --enable-pnm" >&5
0046ff7c
VS
7235 no_cache=0
7236 # Check whether --enable-pnm or --disable-pnm was given.
7237if test "${enable_pnm+set}" = set; then
7238 enableval="$enable_pnm"
698dcdb6 7239
0046ff7c
VS
7240 if test "$enableval" = yes; then
7241 ac_cv_use_pnm='wxUSE_XPM=yes'
7242 else
7243 ac_cv_use_pnm='wxUSE_XPM=no'
7244 fi
698dcdb6 7245
0046ff7c 7246else
698dcdb6 7247
0046ff7c
VS
7248 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
7249 if test "x$LINE" != x ; then
7250 eval "DEFAULT_$LINE"
7251 else
7252 no_cache=1
7253 fi
7254
7255 ac_cv_use_pnm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
698dcdb6
VZ
7256
7257fi
0046ff7c
VS
7258
7259
7260 eval "$ac_cv_use_pnm"
7261 if test "$no_cache" != 1; then
7262 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
7263 fi
7264
7265 if test "$wxUSE_XPM" = yes; then
698dcdb6 7266 echo "$ac_t""yes" 1>&6
0046ff7c 7267 else
698dcdb6 7268 echo "$ac_t""no" 1>&6
0046ff7c 7269 fi
698dcdb6 7270
0046ff7c 7271
b12915c1
VZ
7272fi
7273
698dcdb6 7274
10f2d63a
VZ
7275 echo "saving argument cache $wx_arg_cache_file"
7276 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
698dcdb6 7277
10f2d63a 7278
698dcdb6
VZ
7279
7280echo $ac_n "checking for toolkit""... $ac_c" 1>&6
d73be714 7281echo "configure:7282: checking for toolkit" >&5
10f2d63a
VZ
7282
7283if test "$wxUSE_GUI" = "yes"; then
7284
b12915c1 7285if test "$USE_BEOS" = 1; then
698dcdb6 7286 { echo "configure: error: BeOS GUI is not supported yet, use --disable-gui" 1>&2; exit 1; }
b12915c1
VZ
7287fi
7288
10f2d63a
VZ
7289if test "$TOOLKIT_GIVEN" = 1; then
7290 for toolkit in `echo $ALL_TOOLKITS`; do
7291 var=wxUSE_$toolkit
7292 eval "value=\$${var}"
7293 eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
7294 done
7295else
7296 for toolkit in `echo $ALL_TOOLKITS`; do
7297 if test "$has_toolkit_in_cache" != 1; then
7298 var=DEFAULT_DEFAULT_wxUSE_$toolkit
7299 else
7300 var=DEFAULT_wxUSE_$toolkit
7301 fi
7302 eval "wxUSE_$toolkit=\$${var}"
7303 done
7304fi
7305
1e6feb95 7306NUM_TOOLKITS=`expr ${wxUSE_GTK:-0} + ${wxUSE_MOTIF:-0} + ${wxUSE_MAC:-0} + ${wxUSE_WINE:-0} + ${wxUSE_MINGW:-0} + ${wxUSE_CYGWIN:-0} + ${wxUSE_MGL:-0}`
cf27ef00 7307
ec14dd32
VZ
7308case "${host}" in
7309 *-pc-os2_emx )
7310 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
7311 # PATH_IFS is autodetected by OS/2's configure (usually ';')
7312 LEX_STEM="lexyy"
7313 ;;
7314 *)
7315 PATH_IFS=':'
7316 LEX_STEM="lex.yy"
7317 ;;
7318esac
10f2d63a
VZ
7319
7320case "$NUM_TOOLKITS" in
7321 1)
7322 ;;
7323 0)
698dcdb6 7324 { echo "configure: error: Please specify a toolkit - cannot determine the default for ${host}" 1>&2; exit 1; }
10f2d63a
VZ
7325 ;;
7326 *)
698dcdb6 7327 { echo "configure: error: Please specify at most one toolkit (may be some are cached?)" 1>&2; exit 1; }
10f2d63a
VZ
7328esac
7329
7330for toolkit in `echo $ALL_TOOLKITS`; do
7331 var=wxUSE_$toolkit
7332 eval "value=\$${var}"
7333 if test "x$value" != x; then
7334 cache_var=CACHE_$toolkit
7335 eval "cache=\$${cache_var}"
7336 if test "$cache" = 1; then
7337 echo "$var=$value" >> ${wx_arg_cache_file}
7338 fi
7339 if test "$value" = 1; then
8168de4c
VZ
7340 toolkit_echo=`echo $toolkit | tr [A-Z] [a-z]`
7341 echo "$ac_t""$toolkit_echo" 1>&6
10f2d63a
VZ
7342 fi
7343 fi
7344done
7345
7346else
cf27ef00 7347 PATH_IFS=':'
698dcdb6 7348 echo "$ac_t""base only" 1>&6
10f2d63a
VZ
7349fi
7350
698dcdb6
VZ
7351
7352cat > confcache <<\EOF
10f2d63a
VZ
7353# This file is a shell script that caches the results of configure
7354# tests run on this system so they can be shared between configure
698dcdb6
VZ
7355# scripts and configure runs. It is not useful on other systems.
7356# If it contains results you don't want to keep, you may remove or edit it.
10f2d63a 7357#
698dcdb6
VZ
7358# By default, configure uses ./config.cache as the cache file,
7359# creating it if it does not exist already. You can give configure
7360# the --cache-file=FILE option to use a different cache file; that is
7361# what configure does when it calls configure scripts in
7362# subdirectories, so they share the cache.
7363# Giving --cache-file=/dev/null disables caching, for debugging configure.
7364# config.status only pays attention to the cache file if you give it the
7365# --recheck option to rerun configure.
10f2d63a 7366#
698dcdb6 7367EOF
10f2d63a
VZ
7368# The following way of writing the cache mishandles newlines in values,
7369# but we know of no workaround that is simple, portable, and efficient.
7370# So, don't put newlines in cache variables' values.
7371# Ultrix sh set writes to stderr and can't be redirected directly,
7372# and sets the high bit in the cache file unless we assign to the vars.
698dcdb6
VZ
7373(set) 2>&1 |
7374 case `(ac_space=' '; set | grep ac_space) 2>&1` in
7375 *ac_space=\ *)
7376 # `set' does not quote correctly, so add quotes (double-quote substitution
7377 # turns \\\\ into \\, and sed turns \\ into \).
7378 sed -n \
7379 -e "s/'/'\\\\''/g" \
7380 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
7381 ;;
7382 *)
7383 # `set' quotes correctly as required by POSIX, so do not add quotes.
7384 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
7385 ;;
7386 esac >> confcache
7387if cmp -s $cache_file confcache; then
7388 :
7389else
10f2d63a 7390 if test -w $cache_file; then
698dcdb6
VZ
7391 echo "updating cache $cache_file"
7392 cat confcache > $cache_file
10f2d63a
VZ
7393 else
7394 echo "not updating unwritable cache $cache_file"
7395 fi
7396fi
7397rm -f confcache
7398
698dcdb6 7399
e59890c3 7400if test "$build" != "$host" ; then
10f2d63a
VZ
7401 CC=$host_alias-gcc
7402 CXX=$host_alias-c++
7403 AR=$host_alias-ar
7404 RANLIB=$host_alias-ranlib
7405 DLLTOOL=$host_alias-dlltool
32832908 7406 RESCOMP=$host_alias-windres
10f2d63a
VZ
7407 LD=$host_alias-ld
7408 NM=$host_alias-nm
7409 STRIP=$host_alias-strip
10f2d63a
VZ
7410fi
7411
698dcdb6 7412# Extract the first word of "gcc", so it can be a program name with args.
1e487827 7413set dummy gcc; ac_word=$2
698dcdb6 7414echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
d73be714 7415echo "configure:7416: checking for $ac_word" >&5
698dcdb6
VZ
7416if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
7417 echo $ac_n "(cached) $ac_c" 1>&6
6232543b
VS
7418else
7419 if test -n "$CC"; then
7420 ac_cv_prog_CC="$CC" # Let the user override the test.
10f2d63a 7421else
698dcdb6
VZ
7422 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7423 ac_dummy="$PATH"
7424 for ac_dir in $ac_dummy; do
7425 test -z "$ac_dir" && ac_dir=.
7426 if test -f $ac_dir/$ac_word; then
7427 ac_cv_prog_CC="gcc"
7428 break
7429 fi
7430 done
7431 IFS="$ac_save_ifs"
10f2d63a 7432fi
6232543b 7433fi
698dcdb6 7434CC="$ac_cv_prog_CC"
6232543b 7435if test -n "$CC"; then
698dcdb6 7436 echo "$ac_t""$CC" 1>&6
1e487827 7437else
698dcdb6 7438 echo "$ac_t""no" 1>&6
1e487827 7439fi
6232543b 7440
1e487827
VS
7441if test -z "$CC"; then
7442 # Extract the first word of "cc", so it can be a program name with args.
7443set dummy cc; ac_word=$2
698dcdb6 7444echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
d73be714 7445echo "configure:7446: checking for $ac_word" >&5
698dcdb6
VZ
7446if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
7447 echo $ac_n "(cached) $ac_c" 1>&6
1e487827
VS
7448else
7449 if test -n "$CC"; then
7450 ac_cv_prog_CC="$CC" # Let the user override the test.
7451else
698dcdb6 7452 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1e487827 7453 ac_prog_rejected=no
698dcdb6
VZ
7454 ac_dummy="$PATH"
7455 for ac_dir in $ac_dummy; do
7456 test -z "$ac_dir" && ac_dir=.
7457 if test -f $ac_dir/$ac_word; then
7458 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
7459 ac_prog_rejected=yes
7460 continue
7461 fi
7462 ac_cv_prog_CC="cc"
7463 break
7464 fi
7465 done
7466 IFS="$ac_save_ifs"
1e487827
VS
7467if test $ac_prog_rejected = yes; then
7468 # We found a bogon in the path, so make sure we never use it.
7469 set dummy $ac_cv_prog_CC
7470 shift
698dcdb6 7471 if test $# -gt 0; then
1e487827
VS
7472 # We chose a different compiler from the bogus one.
7473 # However, it has the same basename, so the bogon will be chosen
7474 # first if we set CC to just the basename; use the full file name.
7475 shift
698dcdb6 7476 set dummy "$ac_dir/$ac_word" "$@"
1e487827
VS
7477 shift
7478 ac_cv_prog_CC="$@"
703e0a69 7479 fi
1e487827
VS
7480fi
7481fi
7482fi
698dcdb6 7483CC="$ac_cv_prog_CC"
1e487827 7484if test -n "$CC"; then
698dcdb6 7485 echo "$ac_t""$CC" 1>&6
703e0a69 7486else
698dcdb6 7487 echo "$ac_t""no" 1>&6
703e0a69 7488fi
1e487827 7489
698dcdb6
VZ
7490 if test -z "$CC"; then
7491 case "`uname -s`" in
7492 *win32* | *WIN32*)
7493 # Extract the first word of "cl", so it can be a program name with args.
7494set dummy cl; ac_word=$2
7495echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
d73be714 7496echo "configure:7497: checking for $ac_word" >&5
698dcdb6
VZ
7497if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
7498 echo $ac_n "(cached) $ac_c" 1>&6
1e487827
VS
7499else
7500 if test -n "$CC"; then
7501 ac_cv_prog_CC="$CC" # Let the user override the test.
703e0a69 7502else
698dcdb6
VZ
7503 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7504 ac_dummy="$PATH"
7505 for ac_dir in $ac_dummy; do
7506 test -z "$ac_dir" && ac_dir=.
7507 if test -f $ac_dir/$ac_word; then
7508 ac_cv_prog_CC="cl"
7509 break
7510 fi
7511 done
7512 IFS="$ac_save_ifs"
703e0a69 7513fi
1e487827 7514fi
698dcdb6 7515CC="$ac_cv_prog_CC"
1e487827 7516if test -n "$CC"; then
698dcdb6 7517 echo "$ac_t""$CC" 1>&6
1e487827 7518else
698dcdb6 7519 echo "$ac_t""no" 1>&6
1e487827 7520fi
698dcdb6
VZ
7521 ;;
7522 esac
7523 fi
7524 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1e487827
VS
7525fi
7526
698dcdb6 7527echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
d73be714 7528echo "configure:7529: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1e487827 7529
698dcdb6
VZ
7530ac_ext=c
7531# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7532ac_cpp='$CPP $CPPFLAGS'
7533ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7534ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7535cross_compiling=$ac_cv_prog_cc_cross
6232543b 7536
698dcdb6 7537cat > conftest.$ac_ext << EOF
1e487827 7538
d73be714 7539#line 7540 "configure"
1e487827
VS
7540#include "confdefs.h"
7541
698dcdb6
VZ
7542main(){return(0);}
7543EOF
d73be714 7544if { (eval echo configure:7545: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
7545 ac_cv_prog_cc_works=yes
7546 # If we can't run a trivial program, we are probably using a cross compiler.
7547 if (./conftest; exit) 2>/dev/null; then
7548 ac_cv_prog_cc_cross=no
7549 else
7550 ac_cv_prog_cc_cross=yes
7551 fi
7552else
7553 echo "configure: failed program was:" >&5
7554 cat conftest.$ac_ext >&5
7555 ac_cv_prog_cc_works=no
7556fi
7557rm -fr conftest*
7558ac_ext=c
7559# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7560ac_cpp='$CPP $CPPFLAGS'
7561ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7562ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7563cross_compiling=$ac_cv_prog_cc_cross
7564
7565echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
7566if test $ac_cv_prog_cc_works = no; then
7567 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
7568fi
7569echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
d73be714 7570echo "configure:7571: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
698dcdb6
VZ
7571echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
7572cross_compiling=$ac_cv_prog_cc_cross
7573
7574echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
d73be714 7575echo "configure:7576: checking whether we are using GNU C" >&5
698dcdb6
VZ
7576if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
7577 echo $ac_n "(cached) $ac_c" 1>&6
7578else
7579 cat > conftest.c <<EOF
7580#ifdef __GNUC__
7581 yes;
1e487827 7582#endif
698dcdb6 7583EOF
d73be714 7584if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:7585: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
698dcdb6
VZ
7585 ac_cv_prog_gcc=yes
7586else
7587 ac_cv_prog_gcc=no
7588fi
7589fi
1e487827 7590
698dcdb6 7591echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1e487827 7592
698dcdb6
VZ
7593if test $ac_cv_prog_gcc = yes; then
7594 GCC=yes
7595else
7596 GCC=
7597fi
1e487827 7598
698dcdb6
VZ
7599ac_test_CFLAGS="${CFLAGS+set}"
7600ac_save_CFLAGS="$CFLAGS"
7601CFLAGS=
7602echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
d73be714 7603echo "configure:7604: checking whether ${CC-cc} accepts -g" >&5
698dcdb6
VZ
7604if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
7605 echo $ac_n "(cached) $ac_c" 1>&6
7606else
7607 echo 'void f(){}' > conftest.c
7608if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
10f2d63a
VZ
7609 ac_cv_prog_cc_g=yes
7610else
698dcdb6 7611 ac_cv_prog_cc_g=no
10f2d63a 7612fi
698dcdb6
VZ
7613rm -f conftest*
7614
10f2d63a 7615fi
698dcdb6
VZ
7616
7617echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
10f2d63a 7618if test "$ac_test_CFLAGS" = set; then
698dcdb6 7619 CFLAGS="$ac_save_CFLAGS"
10f2d63a
VZ
7620elif test $ac_cv_prog_cc_g = yes; then
7621 if test "$GCC" = yes; then
7622 CFLAGS="-g -O2"
7623 else
7624 CFLAGS="-g"
7625 fi
7626else
7627 if test "$GCC" = yes; then
7628 CFLAGS="-O2"
7629 else
7630 CFLAGS=
7631 fi
7632fi
7633
7634
7635CFLAGS=`echo "$CFLAGS" | sed 's/-g//g'`
7636
698dcdb6 7637echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
d73be714 7638echo "configure:7639: checking how to run the C preprocessor" >&5
10f2d63a
VZ
7639# On Suns, sometimes $CPP names a directory.
7640if test -n "$CPP" && test -d "$CPP"; then
7641 CPP=
7642fi
7643if test -z "$CPP"; then
698dcdb6
VZ
7644if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
7645 echo $ac_n "(cached) $ac_c" 1>&6
7646else
7647 # This must be in double quotes, not single quotes, because CPP may get
7648 # substituted into the Makefile and "${CC-cc}" will confuse make.
7649 CPP="${CC-cc} -E"
10f2d63a 7650 # On the NeXT, cc -E runs the code through the compiler's parser,
698dcdb6
VZ
7651 # not just through cpp.
7652 cat > conftest.$ac_ext <<EOF
d73be714 7653#line 7654 "configure"
10f2d63a
VZ
7654#include "confdefs.h"
7655#include <assert.h>
698dcdb6
VZ
7656Syntax Error
7657EOF
7658ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
d73be714 7659{ (eval echo configure:7660: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
7660ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7661if test -z "$ac_err"; then
10f2d63a
VZ
7662 :
7663else
698dcdb6
VZ
7664 echo "$ac_err" >&5
7665 echo "configure: failed program was:" >&5
10f2d63a 7666 cat conftest.$ac_ext >&5
698dcdb6
VZ
7667 rm -rf conftest*
7668 CPP="${CC-cc} -E -traditional-cpp"
7669 cat > conftest.$ac_ext <<EOF
d73be714 7670#line 7671 "configure"
10f2d63a 7671#include "confdefs.h"
698dcdb6
VZ
7672#include <assert.h>
7673Syntax Error
7674EOF
7675ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
d73be714 7676{ (eval echo configure:7677: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
7677ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7678if test -z "$ac_err"; then
7679 :
10f2d63a 7680else
698dcdb6
VZ
7681 echo "$ac_err" >&5
7682 echo "configure: failed program was:" >&5
10f2d63a 7683 cat conftest.$ac_ext >&5
698dcdb6
VZ
7684 rm -rf conftest*
7685 CPP="${CC-cc} -nologo -E"
7686 cat > conftest.$ac_ext <<EOF
d73be714 7687#line 7688 "configure"
10f2d63a
VZ
7688#include "confdefs.h"
7689#include <assert.h>
698dcdb6
VZ
7690Syntax Error
7691EOF
7692ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
d73be714 7693{ (eval echo configure:7694: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
7694ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7695if test -z "$ac_err"; then
10f2d63a
VZ
7696 :
7697else
698dcdb6
VZ
7698 echo "$ac_err" >&5
7699 echo "configure: failed program was:" >&5
10f2d63a 7700 cat conftest.$ac_ext >&5
698dcdb6
VZ
7701 rm -rf conftest*
7702 CPP=/lib/cpp
10f2d63a 7703fi
698dcdb6 7704rm -f conftest*
10f2d63a 7705fi
698dcdb6 7706rm -f conftest*
703e0a69 7707fi
698dcdb6
VZ
7708rm -f conftest*
7709 ac_cv_prog_CPP="$CPP"
7710fi
7711 CPP="$ac_cv_prog_CPP"
10f2d63a 7712else
698dcdb6 7713 ac_cv_prog_CPP="$CPP"
10f2d63a 7714fi
698dcdb6 7715echo "$ac_t""$CPP" 1>&6
10f2d63a
VZ
7716
7717
698dcdb6
VZ
7718if test $ac_cv_prog_gcc = yes; then
7719 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
d73be714 7720echo "configure:7721: checking whether ${CC-cc} needs -traditional" >&5
698dcdb6
VZ
7721if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
7722 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
7723else
7724 ac_pattern="Autoconf.*'x'"
698dcdb6 7725 cat > conftest.$ac_ext <<EOF
d73be714 7726#line 7727 "configure"
10f2d63a
VZ
7727#include "confdefs.h"
7728#include <sgtty.h>
7729Autoconf TIOCGETP
698dcdb6 7730EOF
10f2d63a
VZ
7731if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7732 egrep "$ac_pattern" >/dev/null 2>&1; then
698dcdb6 7733 rm -rf conftest*
10f2d63a
VZ
7734 ac_cv_prog_gcc_traditional=yes
7735else
698dcdb6 7736 rm -rf conftest*
10f2d63a
VZ
7737 ac_cv_prog_gcc_traditional=no
7738fi
7739rm -f conftest*
7740
698dcdb6 7741
10f2d63a 7742 if test $ac_cv_prog_gcc_traditional = no; then
698dcdb6 7743 cat > conftest.$ac_ext <<EOF
d73be714 7744#line 7745 "configure"
10f2d63a
VZ
7745#include "confdefs.h"
7746#include <termio.h>
7747Autoconf TCGETA
698dcdb6 7748EOF
10f2d63a
VZ
7749if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7750 egrep "$ac_pattern" >/dev/null 2>&1; then
698dcdb6 7751 rm -rf conftest*
10f2d63a
VZ
7752 ac_cv_prog_gcc_traditional=yes
7753fi
7754rm -f conftest*
7755
7756 fi
7757fi
698dcdb6
VZ
7758
7759echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
10f2d63a
VZ
7760 if test $ac_cv_prog_gcc_traditional = yes; then
7761 CC="$CC -traditional"
7762 fi
7763fi
7764
703e0a69 7765
698dcdb6
VZ
7766
7767ac_ext=C
7768# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1e487827 7769ac_cpp='$CXXCPP $CPPFLAGS'
698dcdb6
VZ
7770ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7771ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7772cross_compiling=$ac_cv_prog_cxx_cross
7773
7774
7775for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
7776do
7777# Extract the first word of "$ac_prog", so it can be a program name with args.
7778set dummy $ac_prog; ac_word=$2
7779echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
d73be714 7780echo "configure:7781: checking for $ac_word" >&5
698dcdb6
VZ
7781if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
7782 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
7783else
7784 if test -n "$CXX"; then
7785 ac_cv_prog_CXX="$CXX" # Let the user override the test.
7786else
698dcdb6
VZ
7787 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7788 ac_dummy="$PATH"
7789 for ac_dir in $ac_dummy; do
7790 test -z "$ac_dir" && ac_dir=.
7791 if test -f $ac_dir/$ac_word; then
7792 ac_cv_prog_CXX="$ac_prog"
7793 break
7794 fi
7795 done
7796 IFS="$ac_save_ifs"
10f2d63a
VZ
7797fi
7798fi
698dcdb6 7799CXX="$ac_cv_prog_CXX"
10f2d63a 7800if test -n "$CXX"; then
698dcdb6 7801 echo "$ac_t""$CXX" 1>&6
10f2d63a 7802else
698dcdb6 7803 echo "$ac_t""no" 1>&6
10f2d63a
VZ
7804fi
7805
698dcdb6 7806test -n "$CXX" && break
10f2d63a 7807done
698dcdb6 7808test -n "$CXX" || CXX="gcc"
10f2d63a
VZ
7809
7810
698dcdb6 7811echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
d73be714 7812echo "configure:7813: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
10f2d63a 7813
698dcdb6
VZ
7814ac_ext=C
7815# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7816ac_cpp='$CXXCPP $CPPFLAGS'
7817ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7818ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7819cross_compiling=$ac_cv_prog_cxx_cross
703e0a69 7820
698dcdb6
VZ
7821cat > conftest.$ac_ext << EOF
7822
d73be714 7823#line 7824 "configure"
10f2d63a
VZ
7824#include "confdefs.h"
7825
698dcdb6
VZ
7826int main(){return(0);}
7827EOF
d73be714 7828if { (eval echo configure:7829: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
7829 ac_cv_prog_cxx_works=yes
7830 # If we can't run a trivial program, we are probably using a cross compiler.
7831 if (./conftest; exit) 2>/dev/null; then
7832 ac_cv_prog_cxx_cross=no
7833 else
7834 ac_cv_prog_cxx_cross=yes
7835 fi
7836else
7837 echo "configure: failed program was:" >&5
7838 cat conftest.$ac_ext >&5
7839 ac_cv_prog_cxx_works=no
7840fi
7841rm -fr conftest*
7842ac_ext=C
7843# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7844ac_cpp='$CXXCPP $CPPFLAGS'
7845ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7846ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7847cross_compiling=$ac_cv_prog_cxx_cross
7848
7849echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
7850if test $ac_cv_prog_cxx_works = no; then
7851 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
7852fi
7853echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
d73be714 7854echo "configure:7855: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
698dcdb6
VZ
7855echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
7856cross_compiling=$ac_cv_prog_cxx_cross
7857
7858echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
d73be714 7859echo "configure:7860: checking whether we are using GNU C++" >&5
698dcdb6
VZ
7860if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
7861 echo $ac_n "(cached) $ac_c" 1>&6
7862else
7863 cat > conftest.C <<EOF
7864#ifdef __GNUC__
7865 yes;
10f2d63a 7866#endif
698dcdb6 7867EOF
d73be714 7868if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:7869: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
698dcdb6
VZ
7869 ac_cv_prog_gxx=yes
7870else
7871 ac_cv_prog_gxx=no
7872fi
7873fi
10f2d63a 7874
698dcdb6 7875echo "$ac_t""$ac_cv_prog_gxx" 1>&6
10f2d63a 7876
698dcdb6
VZ
7877if test $ac_cv_prog_gxx = yes; then
7878 GXX=yes
7879else
7880 GXX=
7881fi
10f2d63a 7882
698dcdb6
VZ
7883ac_test_CXXFLAGS="${CXXFLAGS+set}"
7884ac_save_CXXFLAGS="$CXXFLAGS"
7885CXXFLAGS=
7886echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
d73be714 7887echo "configure:7888: checking whether ${CXX-g++} accepts -g" >&5
698dcdb6
VZ
7888if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
7889 echo $ac_n "(cached) $ac_c" 1>&6
7890else
7891 echo 'void f(){}' > conftest.cc
7892if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
10f2d63a
VZ
7893 ac_cv_prog_cxx_g=yes
7894else
698dcdb6 7895 ac_cv_prog_cxx_g=no
10f2d63a 7896fi
698dcdb6
VZ
7897rm -f conftest*
7898
10f2d63a 7899fi
698dcdb6
VZ
7900
7901echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
10f2d63a 7902if test "$ac_test_CXXFLAGS" = set; then
698dcdb6 7903 CXXFLAGS="$ac_save_CXXFLAGS"
10f2d63a
VZ
7904elif test $ac_cv_prog_cxx_g = yes; then
7905 if test "$GXX" = yes; then
7906 CXXFLAGS="-g -O2"
7907 else
7908 CXXFLAGS="-g"
7909 fi
7910else
7911 if test "$GXX" = yes; then
7912 CXXFLAGS="-O2"
7913 else
7914 CXXFLAGS=
7915 fi
7916fi
7917
7918
698dcdb6 7919echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
d73be714 7920echo "configure:7921: checking how to run the C++ preprocessor" >&5
1e487827 7921if test -z "$CXXCPP"; then
698dcdb6
VZ
7922if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
7923 echo $ac_n "(cached) $ac_c" 1>&6
1e487827 7924else
698dcdb6
VZ
7925 ac_ext=C
7926# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7927ac_cpp='$CXXCPP $CPPFLAGS'
7928ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7929ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7930cross_compiling=$ac_cv_prog_cxx_cross
7931 CXXCPP="${CXX-g++} -E"
7932 cat > conftest.$ac_ext <<EOF
d73be714 7933#line 7934 "configure"
1e487827 7934#include "confdefs.h"
698dcdb6
VZ
7935#include <stdlib.h>
7936EOF
7937ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
d73be714 7938{ (eval echo configure:7939: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
7939ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7940if test -z "$ac_err"; then
1e487827
VS
7941 :
7942else
698dcdb6
VZ
7943 echo "$ac_err" >&5
7944 echo "configure: failed program was:" >&5
1e487827 7945 cat conftest.$ac_ext >&5
698dcdb6
VZ
7946 rm -rf conftest*
7947 CXXCPP=/lib/cpp
1e487827 7948fi
698dcdb6
VZ
7949rm -f conftest*
7950 ac_cv_prog_CXXCPP="$CXXCPP"
7951ac_ext=C
7952# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7953ac_cpp='$CXXCPP $CPPFLAGS'
7954ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7955ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7956cross_compiling=$ac_cv_prog_cxx_cross
1e487827 7957fi
1e487827 7958fi
698dcdb6
VZ
7959CXXCPP="$ac_cv_prog_CXXCPP"
7960echo "$ac_t""$CXXCPP" 1>&6
1e487827 7961
10f2d63a
VZ
7962
7963CXXFLAGS=`echo "$CXXFLAGS" | sed 's/-g//g'`
7964
7965ac_ext=c
698dcdb6 7966# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10f2d63a 7967ac_cpp='$CPP $CPPFLAGS'
698dcdb6
VZ
7968ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7969ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7970cross_compiling=$ac_cv_prog_cc_cross
7971
7972
7973# Extract the first word of "ranlib", so it can be a program name with args.
7974set dummy ranlib; ac_word=$2
7975echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
d73be714 7976echo "configure:7977: checking for $ac_word" >&5
698dcdb6
VZ
7977if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
7978 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
7979else
7980 if test -n "$RANLIB"; then
7981 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7982else
698dcdb6
VZ
7983 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7984 ac_dummy="$PATH"
7985 for ac_dir in $ac_dummy; do
7986 test -z "$ac_dir" && ac_dir=.
7987 if test -f $ac_dir/$ac_word; then
7988 ac_cv_prog_RANLIB="ranlib"
7989 break
7990 fi
7991 done
7992 IFS="$ac_save_ifs"
7993 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
10f2d63a
VZ
7994fi
7995fi
698dcdb6 7996RANLIB="$ac_cv_prog_RANLIB"
10f2d63a 7997if test -n "$RANLIB"; then
698dcdb6 7998 echo "$ac_t""$RANLIB" 1>&6
10f2d63a 7999else
698dcdb6 8000 echo "$ac_t""no" 1>&6
10f2d63a
VZ
8001fi
8002
8003
8004# Extract the first word of "ar", so it can be a program name with args.
8005set dummy ar; ac_word=$2
698dcdb6 8006echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
d73be714 8007echo "configure:8008: checking for $ac_word" >&5
698dcdb6
VZ
8008if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
8009 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
8010else
8011 if test -n "$AR"; then
8012 ac_cv_prog_AR="$AR" # Let the user override the test.
8013else
698dcdb6
VZ
8014 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8015 ac_dummy="$PATH"
8016 for ac_dir in $ac_dummy; do
8017 test -z "$ac_dir" && ac_dir=.
8018 if test -f $ac_dir/$ac_word; then
8019 ac_cv_prog_AR="ar"
8020 break
8021 fi
8022 done
8023 IFS="$ac_save_ifs"
10f2d63a
VZ
8024 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
8025fi
8026fi
698dcdb6 8027AR="$ac_cv_prog_AR"
10f2d63a 8028if test -n "$AR"; then
698dcdb6 8029 echo "$ac_t""$AR" 1>&6
10f2d63a 8030else
698dcdb6 8031 echo "$ac_t""no" 1>&6
10f2d63a
VZ
8032fi
8033
698dcdb6 8034
10f2d63a
VZ
8035# Find a good install program. We prefer a C program (faster),
8036# so one script is as good as another. But avoid the broken or
8037# incompatible versions:
8038# SysV /etc/install, /usr/sbin/install
8039# SunOS /usr/etc/install
8040# IRIX /sbin/install
8041# AIX /bin/install
8042# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
8043# AFS /usr/afsws/bin/install, which mishandles nonexistent args
8044# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8045# ./install, which can be erroneously created by make from ./install.sh.
698dcdb6 8046echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
d73be714 8047echo "configure:8048: checking for a BSD compatible install" >&5
10f2d63a 8048if test -z "$INSTALL"; then
698dcdb6
VZ
8049if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
8050 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 8051else
698dcdb6 8052 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
10f2d63a
VZ
8053 for ac_dir in $PATH; do
8054 # Account for people who put trailing slashes in PATH elements.
698dcdb6
VZ
8055 case "$ac_dir/" in
8056 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
10f2d63a
VZ
8057 *)
8058 # OSF1 and SCO ODT 3.0 have their own names for install.
8059 # Don't use installbsd from OSF since it installs stuff as root
8060 # by default.
8061 for ac_prog in ginstall scoinst install; do
698dcdb6 8062 if test -f $ac_dir/$ac_prog; then
10f2d63a 8063 if test $ac_prog = install &&
698dcdb6 8064 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
10f2d63a
VZ
8065 # AIX install. It has an incompatible calling convention.
8066 :
8067 else
8068 ac_cv_path_install="$ac_dir/$ac_prog -c"
8069 break 2
8070 fi
8071 fi
8072 done
8073 ;;
8074 esac
8075 done
698dcdb6 8076 IFS="$ac_save_IFS"
10f2d63a
VZ
8077
8078fi
8079 if test "${ac_cv_path_install+set}" = set; then
698dcdb6 8080 INSTALL="$ac_cv_path_install"
10f2d63a
VZ
8081 else
8082 # As a last resort, use the slow shell script. We don't cache a
8083 # path for INSTALL within a source directory, because that will
8084 # break other packages using the cache if that directory is
8085 # removed, or if the path is relative.
698dcdb6 8086 INSTALL="$ac_install_sh"
10f2d63a
VZ
8087 fi
8088fi
698dcdb6 8089echo "$ac_t""$INSTALL" 1>&6
10f2d63a
VZ
8090
8091# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8092# It thinks the first close brace ends the variable substitution.
8093test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8094
698dcdb6 8095test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
10f2d63a
VZ
8096
8097test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8098
698dcdb6 8099
10f2d63a
VZ
8100# Extract the first word of "strip", so it can be a program name with args.
8101set dummy strip; ac_word=$2
698dcdb6 8102echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
d73be714 8103echo "configure:8104: checking for $ac_word" >&5
698dcdb6
VZ
8104if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
8105 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
8106else
8107 if test -n "$STRIP"; then
8108 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8109else
698dcdb6
VZ
8110 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8111 ac_dummy="$PATH"
8112 for ac_dir in $ac_dummy; do
8113 test -z "$ac_dir" && ac_dir=.
8114 if test -f $ac_dir/$ac_word; then
8115 ac_cv_prog_STRIP="strip"
8116 break
8117 fi
8118 done
8119 IFS="$ac_save_ifs"
10f2d63a
VZ
8120 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
8121fi
8122fi
698dcdb6 8123STRIP="$ac_cv_prog_STRIP"
10f2d63a 8124if test -n "$STRIP"; then
698dcdb6 8125 echo "$ac_t""$STRIP" 1>&6
10f2d63a 8126else
698dcdb6 8127 echo "$ac_t""no" 1>&6
10f2d63a
VZ
8128fi
8129
698dcdb6
VZ
8130
8131echo $ac_n "checking make for VPATH support""... $ac_c" 1>&6
d73be714 8132echo "configure:8133: checking make for VPATH support" >&5
10f2d63a
VZ
8133cat - << EOF > confMake
8134check : file
8135 cp \$? \$@
8136 cp \$? final_file
8137EOF
8138
8139if test ! -d sub ; then
8140 mkdir sub
8141fi
8142echo dummy > sub/file
f6bcfd97 8143${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
10f2d63a
VZ
8144RESULT=$?
8145rm -f sub/file check final_file confMake
8146rmdir sub
8147if test "$RESULT" = 0; then
698dcdb6 8148 echo "$ac_t""yes" 1>&6
10f2d63a 8149else
698dcdb6
VZ
8150 echo "$ac_t""no" 1>&6
8151 { echo "configure: error:
1e487827
VS
8152You need a make-utility that is able to use the variable
8153VPATH correctly.
8154If your version of make does not support VPATH correctly,
8155please install GNU-make (possibly as gmake), and start
8156configure with the following command:
8157export MAKE=gmake; ./configure for sh-type shells
8158setenv MAKE gmake; ./configure for csh-type shells
8159Also please do remember to use gmake in this case every time
8160you are trying to compile.
698dcdb6 8161" 1>&2; exit 1; }
10f2d63a
VZ
8162fi
8163
8164for ac_prog in 'bison -y' byacc
8165do
698dcdb6 8166# Extract the first word of "$ac_prog", so it can be a program name with args.
10f2d63a 8167set dummy $ac_prog; ac_word=$2
698dcdb6 8168echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
d73be714 8169echo "configure:8170: checking for $ac_word" >&5
698dcdb6
VZ
8170if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
8171 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
8172else
8173 if test -n "$YACC"; then
8174 ac_cv_prog_YACC="$YACC" # Let the user override the test.
8175else
698dcdb6
VZ
8176 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8177 ac_dummy="$PATH"
8178 for ac_dir in $ac_dummy; do
8179 test -z "$ac_dir" && ac_dir=.
8180 if test -f $ac_dir/$ac_word; then
8181 ac_cv_prog_YACC="$ac_prog"
8182 break
8183 fi
8184 done
8185 IFS="$ac_save_ifs"
10f2d63a
VZ
8186fi
8187fi
698dcdb6 8188YACC="$ac_cv_prog_YACC"
10f2d63a 8189if test -n "$YACC"; then
698dcdb6 8190 echo "$ac_t""$YACC" 1>&6
10f2d63a 8191else
698dcdb6 8192 echo "$ac_t""no" 1>&6
10f2d63a
VZ
8193fi
8194
698dcdb6 8195test -n "$YACC" && break
10f2d63a
VZ
8196done
8197test -n "$YACC" || YACC="yacc"
8198
698dcdb6
VZ
8199
8200# Extract the first word of "flex", so it can be a program name with args.
8201set dummy flex; ac_word=$2
8202echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
d73be714 8203echo "configure:8204: checking for $ac_word" >&5
698dcdb6
VZ
8204if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
8205 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
8206else
8207 if test -n "$LEX"; then
8208 ac_cv_prog_LEX="$LEX" # Let the user override the test.
8209else
698dcdb6
VZ
8210 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8211 ac_dummy="$PATH"
8212 for ac_dir in $ac_dummy; do
8213 test -z "$ac_dir" && ac_dir=.
8214 if test -f $ac_dir/$ac_word; then
8215 ac_cv_prog_LEX="flex"
8216 break
8217 fi
8218 done
8219 IFS="$ac_save_ifs"
8220 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
10f2d63a
VZ
8221fi
8222fi
698dcdb6 8223LEX="$ac_cv_prog_LEX"
10f2d63a 8224if test -n "$LEX"; then
698dcdb6 8225 echo "$ac_t""$LEX" 1>&6
10f2d63a 8226else
698dcdb6 8227 echo "$ac_t""no" 1>&6
10f2d63a
VZ
8228fi
8229
8230if test -z "$LEXLIB"
8231then
698dcdb6
VZ
8232 case "$LEX" in
8233 flex*) ac_lib=fl ;;
8234 *) ac_lib=l ;;
8235 esac
8236 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
d73be714 8237echo "configure:8238: checking for yywrap in -l$ac_lib" >&5
698dcdb6
VZ
8238ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
8239if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8240 echo $ac_n "(cached) $ac_c" 1>&6
8241else
8242 ac_save_LIBS="$LIBS"
8243LIBS="-l$ac_lib $LIBS"
8244cat > conftest.$ac_ext <<EOF
d73be714 8245#line 8246 "configure"
10f2d63a
VZ
8246#include "confdefs.h"
8247/* Override any gcc2 internal prototype to avoid an error. */
8248/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
8249 builtin and then its argument prototype would still apply. */
8250char yywrap();
10f2d63a 8251
698dcdb6
VZ
8252int main() {
8253yywrap()
8254; return 0; }
8255EOF
d73be714 8256if { (eval echo configure:8257: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
8257 rm -rf conftest*
8258 eval "ac_cv_lib_$ac_lib_var=yes"
10f2d63a 8259else
698dcdb6
VZ
8260 echo "configure: failed program was:" >&5
8261 cat conftest.$ac_ext >&5
8262 rm -rf conftest*
8263 eval "ac_cv_lib_$ac_lib_var=no"
10f2d63a 8264fi
698dcdb6
VZ
8265rm -f conftest*
8266LIBS="$ac_save_LIBS"
8267
10f2d63a 8268fi
698dcdb6
VZ
8269if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8270 echo "$ac_t""yes" 1>&6
8271 LEXLIB="-l$ac_lib"
8272else
8273 echo "$ac_t""no" 1>&6
10f2d63a
VZ
8274fi
8275
8276fi
8277
8278
698dcdb6 8279echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
d73be714 8280echo "configure:8281: checking whether ln -s works" >&5
698dcdb6
VZ
8281if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
8282 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 8283else
698dcdb6
VZ
8284 rm -f conftestdata
8285if ln -s X conftestdata 2>/dev/null
8286then
8287 rm -f conftestdata
8288 ac_cv_prog_LN_S="ln -s"
10f2d63a 8289else
698dcdb6 8290 ac_cv_prog_LN_S=ln
10f2d63a
VZ
8291fi
8292fi
698dcdb6
VZ
8293LN_S="$ac_cv_prog_LN_S"
8294if test "$ac_cv_prog_LN_S" = "ln -s"; then
8295 echo "$ac_t""yes" 1>&6
10f2d63a 8296else
698dcdb6 8297 echo "$ac_t""no" 1>&6
10f2d63a
VZ
8298fi
8299
8300
8301
8302SEARCH_INCLUDE="\
8303 /usr/local/include \
8304 \
8305 /usr/Motif-1.2/include \
8306 /usr/Motif-2.1/include \
8307 \
8308 /usr/include/Motif1.2 \
8309 /opt/xpm/include/X11 \
8310 /opt/GBxpm/include/ \
8311 /opt/GBxpm/X11/include/ \
8312 \
8313 /usr/Motif1.2/include \
8314 /usr/dt/include \
afc31813
VZ
8315 /usr/openwin/include \
8316 \
10f2d63a
VZ
8317 /usr/include/Xm \
8318 \
8319 /usr/X11R6/include \
afc31813 8320 /usr/X11R6.4/include \
10f2d63a
VZ
8321 /usr/X11R5/include \
8322 /usr/X11R4/include \
8323 \
10f2d63a
VZ
8324 /usr/include/X11R6 \
8325 /usr/include/X11R5 \
8326 /usr/include/X11R4 \
8327 \
8328 /usr/local/X11R6/include \
8329 /usr/local/X11R5/include \
8330 /usr/local/X11R4/include \
8331 \
8332 /usr/local/include/X11R6 \
8333 /usr/local/include/X11R5 \
8334 /usr/local/include/X11R4 \
8335 \
8336 /usr/X11/include \
8337 /usr/include/X11 \
8338 /usr/local/X11/include \
8339 /usr/local/include/X11 \
8340 \
8341 /usr/X386/include \
8342 /usr/x386/include \
8343 /usr/XFree86/include/X11 \
8344 \
cf27ef00 8345 X:/XFree86/include \
ec14dd32
VZ
8346 X:/XFree86/include/X11 \
8347 \
10f2d63a
VZ
8348 /usr/include/gtk \
8349 /usr/local/include/gtk \
8350 /usr/include/glib \
8351 /usr/local/include/glib \
8352 \
8353 /usr/include/qt \
8354 /usr/local/include/qt \
8355 \
8356 /usr/include/windows \
8357 /usr/include/wine \
8358 /usr/local/include/wine \
8359 \
8360 /usr/unsupported/include \
8361 /usr/athena/include \
8362 /usr/local/x11r5/include \
8363 /usr/lpp/Xamples/include \
8364 \
10f2d63a 8365 /usr/openwin/share/include \
928b5c08
VZ
8366 \
8367 /usr/include"
10f2d63a
VZ
8368
8369SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` "
8370
698dcdb6
VZ
8371
8372cat > confcache <<\EOF
10f2d63a
VZ
8373# This file is a shell script that caches the results of configure
8374# tests run on this system so they can be shared between configure
698dcdb6
VZ
8375# scripts and configure runs. It is not useful on other systems.
8376# If it contains results you don't want to keep, you may remove or edit it.
10f2d63a 8377#
698dcdb6
VZ
8378# By default, configure uses ./config.cache as the cache file,
8379# creating it if it does not exist already. You can give configure
8380# the --cache-file=FILE option to use a different cache file; that is
8381# what configure does when it calls configure scripts in
8382# subdirectories, so they share the cache.
8383# Giving --cache-file=/dev/null disables caching, for debugging configure.
8384# config.status only pays attention to the cache file if you give it the
8385# --recheck option to rerun configure.
10f2d63a 8386#
698dcdb6 8387EOF
10f2d63a
VZ
8388# The following way of writing the cache mishandles newlines in values,
8389# but we know of no workaround that is simple, portable, and efficient.
8390# So, don't put newlines in cache variables' values.
8391# Ultrix sh set writes to stderr and can't be redirected directly,
8392# and sets the high bit in the cache file unless we assign to the vars.
698dcdb6
VZ
8393(set) 2>&1 |
8394 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8395 *ac_space=\ *)
8396 # `set' does not quote correctly, so add quotes (double-quote substitution
8397 # turns \\\\ into \\, and sed turns \\ into \).
8398 sed -n \
8399 -e "s/'/'\\\\''/g" \
8400 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
8401 ;;
8402 *)
8403 # `set' quotes correctly as required by POSIX, so do not add quotes.
8404 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8405 ;;
8406 esac >> confcache
8407if cmp -s $cache_file confcache; then
8408 :
8409else
10f2d63a 8410 if test -w $cache_file; then
698dcdb6
VZ
8411 echo "updating cache $cache_file"
8412 cat confcache > $cache_file
10f2d63a
VZ
8413 else
8414 echo "not updating unwritable cache $cache_file"
8415 fi
8416fi
8417rm -f confcache
8418
698dcdb6
VZ
8419
8420
dad6c0ea
VZ
8421AFMINSTALL=
8422
10f2d63a 8423if test "$wxUSE_GUI" = "yes"; then
1e6feb95 8424 USE_GUI=1
10f2d63a 8425
1e6feb95
VZ
8426 TOOLKIT=
8427 TOOLKIT_INCLUDE=
10f2d63a 8428
1e6feb95
VZ
8429 GUI_TK_LIBRARY=
8430 GUI_TK_LINK=
10f2d63a 8431
1e6feb95
VZ
8432 WXGTK12=
8433 WXGTK127=
8434 WXGTK20=
10f2d63a 8435
1e6feb95 8436 WXWINE=
10f2d63a 8437
1e6feb95
VZ
8438 if test "$wxUSE_CYGWIN" = 1 || test "$wxUSE_MINGW" = 1 ; then
8439 if test "$cross_compiling" = "yes" ; then
8440 echo "configure: warning: skipping windows.h check for cross-compilation" 1>&2
8441 else
8442 echo $ac_n "checking for Windows headers""... $ac_c" 1>&6
d73be714 8443echo "configure:8444: checking for Windows headers" >&5
1e6feb95 8444
10f2d63a
VZ
8445ac_find_includes=
8446for ac_dir in $SEARCH_INCLUDE;
8447 do
8448 if test -f "$ac_dir/windows.h"; then
8449 ac_find_includes=$ac_dir
8450 break
8451 fi
8452 done
8453
1e6feb95
VZ
8454 if test "$ac_find_includes" != "" ; then
8455 echo "$ac_t""found $ac_find_includes" 1>&6
8456 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE -I$ac_find_includes"
8457 else
8458 echo "$ac_t""no" 1>&6
8459 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
8460 fi
10f2d63a 8461 fi
10f2d63a 8462
1e6feb95
VZ
8463 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS msw"
8464 LIBS="$LIBS -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -lcrtdll -ladvapi32 -lwsock32"
f6bcfd97 8465
1e6feb95
VZ
8466 if test "$wxUSE_ODBC" = "yes" ; then
8467 LIBS="$LIBS -lodbc32 -lole32 -loleaut32"
8468 fi
10f2d63a 8469
1e6feb95
VZ
8470 if test "$wxUSE_MINGW" = 1; then
8471 LDFLAGS="$LDFLAGS -mwindows"
8472 fi
32832908 8473
1e6feb95
VZ
8474 TOOLKIT=MSW
8475 GUIDIST=MSW_DIST
32832908 8476
1e6feb95
VZ
8477 RCINCSWITCH="--include-dir"
8478 RCDEFSWITCH="--define"
8479 RCPREPROCESSOR="--preprocessor \"\$(CC) -c -E -xc-header -DRC_INVOKED\""
8480 RCINPUTSWITCH="-i"
8481 RCOUTPUTSWITCH="-o"
8482 RESFLAGS="$RCPREPROCESSOR $RCINCSWITCH \$(top_srcdir)/include $RCINCSWITCH \$(top_srcdir)/\$(program_dir) $RCDEFSWITCH __WIN32__ $RCDEFSWITCH __WIN95__ $RCDEFSWITCH __GNUWIN32__"
32832908 8483
1e6feb95
VZ
8484 RESPROGRAM="\$(RES_PROGRAM)"
8485 fi
10f2d63a 8486
1e6feb95 8487 if test "$wxUSE_GTK" = 1; then
8168de4c 8488 echo $ac_n "checking for GTK+ version""... $ac_c" 1>&6
d73be714 8489echo "configure:8490: checking for GTK+ version" >&5
8168de4c
VZ
8490
8491 gtk_version_cached=1
8492 if eval "test \"`echo '$''{'wx_cv_lib_gtk'+set}'`\" = set"; then
8493 echo $ac_n "(cached) $ac_c" 1>&6
8494else
8495
8496 gtk_version_cached=0
8497 echo "$ac_t""""" 1>&6
8498
8499 wx_cv_lib_gtk=
8500 if test "x$wxUSE_GTK2" = "xyes"; then
8501 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
6f72b082
OK
8502if test "${with_gtk_prefix+set}" = set; then
8503 withval="$with_gtk_prefix"
8504 gtk_config_prefix="$withval"
8505else
8506 gtk_config_prefix=""
698dcdb6 8507fi
6f72b082
OK
8508
8509# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
8510if test "${with_gtk_exec_prefix+set}" = set; then
8511 withval="$with_gtk_exec_prefix"
8512 gtk_config_exec_prefix="$withval"
8513else
8514 gtk_config_exec_prefix=""
698dcdb6
VZ
8515fi
8516
6f72b082
OK
8517# Check whether --enable-gtktest or --disable-gtktest was given.
8518if test "${enable_gtktest+set}" = set; then
8519 enableval="$enable_gtktest"
698dcdb6 8520 :
6f72b082
OK
8521else
8522 enable_gtktest=yes
698dcdb6
VZ
8523fi
8524
6f72b082 8525
8168de4c 8526 for module in .
6f72b082
OK
8527 do
8528 case "$module" in
8168de4c 8529 gthread)
6f72b082
OK
8530 gtk_config_args="$gtk_config_args gthread"
8531 ;;
8532 esac
8533 done
8534
8535 if test x$gtk_config_exec_prefix != x ; then
8536 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
8537 if test x${GTK_CONFIG_2_0+set} != xset ; then
8538 GTK_CONFIG_2_0=$gtk_config_exec_prefix/bin/gtk-config-2.0
8539 fi
8540 fi
8541 if test x$gtk_config_prefix != x ; then
8542 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
8543 if test x${GTK_CONFIG_2_0+set} != xset ; then
8544 GTK_CONFIG_2_0=$gtk_config_prefix/bin/gtk-config-2.0
8545 fi
8546 fi
8547
8548 # Extract the first word of "gtk-config-2.0", so it can be a program name with args.
8549set dummy gtk-config-2.0; ac_word=$2
698dcdb6 8550echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
d73be714 8551echo "configure:8552: checking for $ac_word" >&5
698dcdb6
VZ
8552if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG_2_0'+set}'`\" = set"; then
8553 echo $ac_n "(cached) $ac_c" 1>&6
6f72b082 8554else
698dcdb6
VZ
8555 case "$GTK_CONFIG_2_0" in
8556 /*)
6f72b082
OK
8557 ac_cv_path_GTK_CONFIG_2_0="$GTK_CONFIG_2_0" # Let the user override the test with a path.
8558 ;;
698dcdb6
VZ
8559 ?:/*)
8560 ac_cv_path_GTK_CONFIG_2_0="$GTK_CONFIG_2_0" # Let the user override the test with a dos path.
8561 ;;
6f72b082 8562 *)
698dcdb6
VZ
8563 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8564 ac_dummy="$PATH"
8565 for ac_dir in $ac_dummy; do
8566 test -z "$ac_dir" && ac_dir=.
8567 if test -f $ac_dir/$ac_word; then
8568 ac_cv_path_GTK_CONFIG_2_0="$ac_dir/$ac_word"
8569 break
8570 fi
8571 done
8572 IFS="$ac_save_ifs"
6f72b082
OK
8573 test -z "$ac_cv_path_GTK_CONFIG_2_0" && ac_cv_path_GTK_CONFIG_2_0="no"
8574 ;;
8575esac
8576fi
698dcdb6 8577GTK_CONFIG_2_0="$ac_cv_path_GTK_CONFIG_2_0"
6f72b082 8578if test -n "$GTK_CONFIG_2_0"; then
698dcdb6 8579 echo "$ac_t""$GTK_CONFIG_2_0" 1>&6
6f72b082 8580else
698dcdb6 8581 echo "$ac_t""no" 1>&6
6f72b082
OK
8582fi
8583
8584 min_gtk_version=1.3.1
698dcdb6 8585 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
d73be714 8586echo "configure:8587: checking for GTK - version >= $min_gtk_version" >&5
6f72b082
OK
8587 no_gtk=""
8588 if test "$GTK_CONFIG_2_0" = "no" ; then
8589 no_gtk=yes
8590 else
8591 GTK_CFLAGS=`$GTK_CONFIG_2_0 $gtk_config_args --cflags`
8592 GTK_LIBS=`$GTK_CONFIG_2_0 $gtk_config_args --libs`
8593 gtk_config_major_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \
8594 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
8595 gtk_config_minor_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \
8596 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
8597 gtk_config_micro_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \
8598 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
8599 if test "x$enable_gtktest" = "xyes" ; then
8600 ac_save_CFLAGS="$CFLAGS"
8601 ac_save_LIBS="$LIBS"
8602 CFLAGS="$CFLAGS $GTK_CFLAGS"
8603 LIBS="$GTK_LIBS $LIBS"
8604 rm -f conf.gtktest
8605 if test "$cross_compiling" = yes; then
8606 echo $ac_n "cross compiling; assumed OK... $ac_c"
8607else
698dcdb6 8608 cat > conftest.$ac_ext <<EOF
d73be714 8609#line 8610 "configure"
6f72b082
OK
8610#include "confdefs.h"
8611
8612#include <gtk/gtk.h>
8613#include <stdio.h>
8614#include <stdlib.h>
8615
8168de4c 8616int
6f72b082
OK
8617main ()
8618{
8619 int major, minor, micro;
8620 char *tmp_version;
8621
8622 system ("touch conf.gtktest");
8623
8624 /* HP/UX 9 (%@#!) writes to sscanf strings */
8625 tmp_version = g_strdup("$min_gtk_version");
8626 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
8627 printf("%s, bad version string\n", "$min_gtk_version");
8628 exit(1);
8629 }
8630
8631 if ((gtk_major_version != $gtk_config_major_version) ||
8632 (gtk_minor_version != $gtk_config_minor_version) ||
8633 (gtk_micro_version != $gtk_config_micro_version))
8634 {
8168de4c 8635 printf("\n*** 'gtk-config-2.0 --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
6f72b082
OK
8636 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
8637 gtk_major_version, gtk_minor_version, gtk_micro_version);
8638 printf ("*** was found! If gtk-config-2.0 was correct, then it is best\n");
8639 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
8640 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
8641 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
8642 printf("*** required on your system.\n");
8643 printf("*** If gtk-config-2.0 was wrong, set the environment variable GTK_CONFIG_2_0\n");
8644 printf("*** to point to the correct copy of gtk-config-2.0, and remove the file config.cache\n");
8645 printf("*** before re-running configure\n");
8168de4c 8646 }
6f72b082
OK
8647#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
8648 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
8168de4c 8649 (gtk_minor_version != GTK_MINOR_VERSION) ||
6f72b082
OK
8650 (gtk_micro_version != GTK_MICRO_VERSION))
8651 {
8652 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
8168de4c 8653 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
6f72b082 8654 printf("*** library (version %d.%d.%d)\n",
8168de4c 8655 gtk_major_version, gtk_minor_version, gtk_micro_version);
6f72b082
OK
8656 }
8657#endif /* defined (GTK_MAJOR_VERSION) ... */
8658 else
8659 {
8660 if ((gtk_major_version > major) ||
8661 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
8662 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
8663 {
8664 return 0;
8665 }
8666 else
8667 {
8668 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
8669 gtk_major_version, gtk_minor_version, gtk_micro_version);
8670 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
8168de4c 8671 major, minor, micro);
6f72b082
OK
8672 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
8673 printf("***\n");
8674 printf("*** If you have already installed a sufficiently new version, this error\n");
8675 printf("*** probably means that the wrong copy of the gtk-config-2.0 shell script is\n");
8676 printf("*** being found. The easiest way to fix this is to remove the old version\n");
8677 printf("*** of GTK+, but you can also set the GTK_CONFIG_2_0 environment to point to the\n");
8678 printf("*** correct copy of gtk-config-2.0. (In this case, you will have to\n");
8679 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
8680 printf("*** so that the correct libraries are found at run-time))\n");
8681 }
8682 }
8683 return 1;
8684}
8685
698dcdb6 8686EOF
d73be714 8687if { (eval echo configure:8688: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6 8688then
6f72b082
OK
8689 :
8690else
698dcdb6
VZ
8691 echo "configure: failed program was:" >&5
8692 cat conftest.$ac_ext >&5
8693 rm -fr conftest*
8694 no_gtk=yes
6f72b082 8695fi
698dcdb6 8696rm -fr conftest*
6f72b082 8697fi
698dcdb6 8698
6f72b082
OK
8699 CFLAGS="$ac_save_CFLAGS"
8700 LIBS="$ac_save_LIBS"
8701 fi
8702 fi
8703 if test "x$no_gtk" = x ; then
698dcdb6 8704 echo "$ac_t""yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" 1>&6
8168de4c 8705 wx_cv_lib_gtk=2.0
6f72b082 8706 else
698dcdb6 8707 echo "$ac_t""no" 1>&6
6f72b082
OK
8708 if test "$GTK_CONFIG_2_0" = "no" ; then
8709 echo "*** The gtk-config-2.0 script installed by GTK could not be found"
8710 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
8711 echo "*** your path, or set the GTK_CONFIG_2_0 environment variable to the"
8712 echo "*** full path to gtk-config-2.0."
8713 else
8714 if test -f conf.gtktest ; then
8715 :
8716 else
8717 echo "*** Could not run GTK test program, checking why..."
8718 CFLAGS="$CFLAGS $GTK_CFLAGS"
8719 LIBS="$LIBS $GTK_LIBS"
698dcdb6 8720 cat > conftest.$ac_ext <<EOF
d73be714 8721#line 8722 "configure"
6f72b082
OK
8722#include "confdefs.h"
8723
8724#include <gtk/gtk.h>
8725#include <stdio.h>
8726
698dcdb6
VZ
8727int main() {
8728 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
8729; return 0; }
8730EOF
d73be714 8731if { (eval echo configure:8732: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 8732 rm -rf conftest*
6f72b082
OK
8733 echo "*** The test program compiled, but did not run. This usually means"
8734 echo "*** that the run-time linker is not finding GTK or finding the wrong"
8735 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
8736 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
8737 echo "*** to the installed location Also, make sure you have run ldconfig if that"
8738 echo "*** is required on your system"
8168de4c 8739 echo "***"
6f72b082
OK
8740 echo "*** If you have an old version installed, it is best to remove it, although"
8741 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
8742 echo "***"
8743 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
8744 echo "*** came with the system with the command"
8745 echo "***"
698dcdb6 8746 echo "*** rpm --erase --nodeps gtk gtk-devel"
6f72b082 8747else
698dcdb6
VZ
8748 echo "configure: failed program was:" >&5
8749 cat conftest.$ac_ext >&5
8750 rm -rf conftest*
8751 echo "*** The test program failed to compile or link. See the file config.log for the"
6f72b082
OK
8752 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
8753 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
698dcdb6 8754 echo "*** may want to edit the gtk-config-2.0 script: $GTK_CONFIG_2_0"
6f72b082 8755fi
698dcdb6 8756rm -f conftest*
6f72b082
OK
8757 CFLAGS="$ac_save_CFLAGS"
8758 LIBS="$ac_save_LIBS"
8759 fi
8760 fi
8761 GTK_CFLAGS=""
8762 GTK_LIBS=""
8168de4c
VZ
8763 gthread
8764 fi
8765
8766
8767 rm -f conf.gtktest
8768
8769 fi
8770
8771 if test -z "$wx_cv_lib_gtk"; then
8772
10f2d63a
VZ
8773 if test x$gtk_config_exec_prefix != x ; then
8774 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
8775 if test x${GTK_CONFIG+set} != xset ; then
8776 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
8777 fi
8778 fi
8779 if test x$gtk_config_prefix != x ; then
8780 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
8781 if test x${GTK_CONFIG+set} != xset ; then
8782 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
8783 fi
8784 fi
8785
8786 # Extract the first word of "gtk-config", so it can be a program name with args.
8787set dummy gtk-config; ac_word=$2
698dcdb6 8788echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
d73be714 8789echo "configure:8790: checking for $ac_word" >&5
698dcdb6
VZ
8790if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
8791 echo $ac_n "(cached) $ac_c" 1>&6
f6bcfd97 8792else
698dcdb6
VZ
8793 case "$GTK_CONFIG" in
8794 /*)
f6bcfd97
BP
8795 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
8796 ;;
698dcdb6
VZ
8797 ?:/*)
8798 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
8799 ;;
f6bcfd97 8800 *)
698dcdb6
VZ
8801 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8802 ac_dummy="$PATH"
8803 for ac_dir in $ac_dummy; do
8804 test -z "$ac_dir" && ac_dir=.
8805 if test -f $ac_dir/$ac_word; then
8806 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
8807 break
8808 fi
8809 done
8810 IFS="$ac_save_ifs"
f6bcfd97
BP
8811 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
8812 ;;
8813esac
8814fi
698dcdb6 8815GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
f6bcfd97 8816if test -n "$GTK_CONFIG"; then
698dcdb6 8817 echo "$ac_t""$GTK_CONFIG" 1>&6
f6bcfd97 8818else
698dcdb6 8819 echo "$ac_t""no" 1>&6
f6bcfd97
BP
8820fi
8821
8822 min_gtk_version=1.2.7
698dcdb6 8823 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
d73be714 8824echo "configure:8825: checking for GTK - version >= $min_gtk_version" >&5
f6bcfd97
BP
8825 no_gtk=""
8826 if test "$GTK_CONFIG" != "no" ; then
8827 GTK_CFLAGS=`$GTK_CONFIG --cflags`
8828 GTK_LIBS=`$GTK_CONFIG --libs gthread`
8829 ac_save_CFLAGS="$CFLAGS"
8830 ac_save_LIBS="$LIBS"
8831 CFLAGS="$CFLAGS $GTK_CFLAGS"
8832 LIBS="$LIBS $GTK_LIBS"
8833 if test "$cross_compiling" = yes; then
8834 echo $ac_n "cross compiling; assumed OK... $ac_c"
8835else
698dcdb6 8836 cat > conftest.$ac_ext <<EOF
d73be714 8837#line 8838 "configure"
f6bcfd97
BP
8838#include "confdefs.h"
8839
8840#include <gtk/gtk.h>
8841#include <gtk/gtkfeatures.h>
8842#include <stdio.h>
8843#include <stdlib.h>
8844
8845int
8846main ()
8847{
8848 int major, minor, micro;
8849
8850 if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, &micro) != 3) {
8851 printf("%s, bad version string\n", "$min_gtk_version");
8852 exit(1);
8853 }
8854
8855 if ((GTK_MAJOR_VERSION != gtk_major_version) ||
8856 (GTK_MINOR_VERSION != gtk_minor_version) ||
8857 (GTK_MICRO_VERSION != gtk_micro_version)) {
8858 printf("Headers vs. library version mismatch!\n");
8859 exit(1);
8860 }
8861
8862 if (gtk_minor_version == 1) return FALSE;
8863
8864 return !((gtk_major_version > major) ||
8865 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
8866 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)));
8867}
8868
698dcdb6 8869EOF
d73be714 8870if { (eval echo configure:8871: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6 8871then
f6bcfd97
BP
8872 :
8873else
698dcdb6
VZ
8874 echo "configure: failed program was:" >&5
8875 cat conftest.$ac_ext >&5
8876 rm -fr conftest*
8877 no_gtk=yes
f6bcfd97 8878fi
698dcdb6 8879rm -fr conftest*
f6bcfd97 8880fi
698dcdb6 8881
f6bcfd97
BP
8882 CFLAGS="$ac_save_CFLAGS"
8883 LIBS="$ac_save_LIBS"
8884 else
8885 no_gtk=yes
8886 fi
8887 if test "x$no_gtk" = x ; then
698dcdb6 8888 echo "$ac_t""yes" 1>&6
8168de4c 8889 wx_cv_lib_gtk=1.2.7
f6bcfd97 8890 else
698dcdb6 8891 echo "$ac_t""no" 1>&6
f6bcfd97
BP
8892 GTK_CFLAGS=""
8893 GTK_LIBS=""
8894 :
8895 fi
698dcdb6
VZ
8896
8897
f6bcfd97 8898
8168de4c
VZ
8899 fi
8900
8901 if test -z "$wx_cv_lib_gtk"; then
8902
f6bcfd97
BP
8903 if test x$gtk_config_exec_prefix != x ; then
8904 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
8905 if test x${GTK_CONFIG+set} != xset ; then
8906 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
8907 fi
8908 fi
8909 if test x$gtk_config_prefix != x ; then
8910 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
8911 if test x${GTK_CONFIG+set} != xset ; then
8912 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
8913 fi
8914 fi
8915
8916 # Extract the first word of "gtk-config", so it can be a program name with args.
8917set dummy gtk-config; ac_word=$2
698dcdb6 8918echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
d73be714 8919echo "configure:8920: checking for $ac_word" >&5
698dcdb6
VZ
8920if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
8921 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 8922else
698dcdb6
VZ
8923 case "$GTK_CONFIG" in
8924 /*)
10f2d63a
VZ
8925 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
8926 ;;
698dcdb6
VZ
8927 ?:/*)
8928 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
8929 ;;
10f2d63a 8930 *)
698dcdb6
VZ
8931 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8932 ac_dummy="$PATH"
8933 for ac_dir in $ac_dummy; do
8934 test -z "$ac_dir" && ac_dir=.
8935 if test -f $ac_dir/$ac_word; then
8936 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
8937 break
8938 fi
8939 done
8940 IFS="$ac_save_ifs"
10f2d63a
VZ
8941 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
8942 ;;
8943esac
8944fi
698dcdb6 8945GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
10f2d63a 8946if test -n "$GTK_CONFIG"; then
698dcdb6 8947 echo "$ac_t""$GTK_CONFIG" 1>&6
10f2d63a 8948else
698dcdb6 8949 echo "$ac_t""no" 1>&6
10f2d63a
VZ
8950fi
8951
04165bec 8952 min_gtk_version=1.2.3
698dcdb6 8953 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
d73be714 8954echo "configure:8955: checking for GTK - version >= $min_gtk_version" >&5
10f2d63a
VZ
8955 no_gtk=""
8956 if test "$GTK_CONFIG" != "no" ; then
8957 GTK_CFLAGS=`$GTK_CONFIG --cflags`
2224580a 8958 GTK_LIBS=`$GTK_CONFIG --libs gthread`
10f2d63a
VZ
8959 ac_save_CFLAGS="$CFLAGS"
8960 ac_save_LIBS="$LIBS"
8961 CFLAGS="$CFLAGS $GTK_CFLAGS"
8962 LIBS="$LIBS $GTK_LIBS"
8963 if test "$cross_compiling" = yes; then
8964 echo $ac_n "cross compiling; assumed OK... $ac_c"
8965else
698dcdb6 8966 cat > conftest.$ac_ext <<EOF
d73be714 8967#line 8968 "configure"
10f2d63a
VZ
8968#include "confdefs.h"
8969
8970#include <gtk/gtk.h>
f49f2b0c 8971#include <gtk/gtkfeatures.h>
10f2d63a 8972#include <stdio.h>
32832908 8973#include <stdlib.h>
10f2d63a
VZ
8974
8975int
8976main ()
8977{
8978 int major, minor, micro;
8979
8980 if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, &micro) != 3) {
8981 printf("%s, bad version string\n", "$min_gtk_version");
8982 exit(1);
8983 }
8984
f49f2b0c
RR
8985 if ((GTK_MAJOR_VERSION != gtk_major_version) ||
8986 (GTK_MINOR_VERSION != gtk_minor_version) ||
8987 (GTK_MICRO_VERSION != gtk_micro_version)) {
8988 printf("Headers vs. library version mismatch!\n");
8989 exit(1);
8990 }
8991
10f2d63a
VZ
8992 if (gtk_minor_version == 1) return FALSE;
8993
8994 return !((gtk_major_version > major) ||
8995 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
8996 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)));
8997}
8998
698dcdb6 8999EOF
d73be714 9000if { (eval echo configure:9001: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6 9001then
10f2d63a
VZ
9002 :
9003else
698dcdb6
VZ
9004 echo "configure: failed program was:" >&5
9005 cat conftest.$ac_ext >&5
9006 rm -fr conftest*
9007 no_gtk=yes
10f2d63a 9008fi
698dcdb6 9009rm -fr conftest*
10f2d63a 9010fi
698dcdb6 9011
10f2d63a
VZ
9012 CFLAGS="$ac_save_CFLAGS"
9013 LIBS="$ac_save_LIBS"
9014 else
9015 no_gtk=yes
9016 fi
9017 if test "x$no_gtk" = x ; then
698dcdb6 9018 echo "$ac_t""yes" 1>&6
8168de4c 9019 wx_cv_lib_gtk=1.2.3
10f2d63a 9020 else
698dcdb6 9021 echo "$ac_t""no" 1>&6
10f2d63a
VZ
9022 GTK_CFLAGS=""
9023 GTK_LIBS=""
7e99ad86 9024 :
10f2d63a 9025 fi
698dcdb6
VZ
9026
9027
10f2d63a 9028
8168de4c
VZ
9029 fi
9030
9031 if test -z "$wx_cv_lib_gtk"; then
9032 wx_cv_lib_gtk=none
138be253
VZ
9033 else
9034 wx_cv_cflags_gtk=$GTK_CFLAGS
9035 wx_cv_libs_gtk=$GTK_LIBS
8168de4c
VZ
9036 fi
9037
1e6feb95 9038
8168de4c 9039fi
703e0a69 9040
698dcdb6 9041
8168de4c
VZ
9042 if test "$gtk_version_cached" = 1; then
9043 echo "$ac_t""$wx_cv_lib_gtk" 1>&6
1e6feb95 9044 fi
698dcdb6 9045
8168de4c
VZ
9046 case "$wx_cv_lib_gtk" in
9047 2.0) WXGTK20=1
9048 ;;
9049 1.2.7) WXGTK127=1
9050 ;;
9051 1.2.3) WXGTK12=1
9052 ;;
9053 *) { echo "configure: error:
9054Please check that gtk-config is in path, the directory
9055where GTK+ libraries are installed (returned by
9056'gtk-config --libs' command) is in LD_LIBRARY_PATH or
9057equivalent variable and GTK+ is version 1.2.3 or above.
9058 " 1>&2; exit 1; }
9059 ;;
9060 esac
2224580a 9061
138be253 9062 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
11dfaa5f 9063 GUI_TK_LIBRARY="$wx_cv_libs_gtk"
698dcdb6 9064
1e6feb95
VZ
9065 AFMINSTALL=afminstall
9066 TOOLKIT=GTK
9067 GUIDIST=GTK_DIST
7ec2881a 9068
1e6feb95 9069 echo $ac_n "checking for gdk_im_open in -lgdk""... $ac_c" 1>&6
d73be714 9070echo "configure:9071: checking for gdk_im_open in -lgdk" >&5
698dcdb6
VZ
9071ac_lib_var=`echo gdk'_'gdk_im_open | sed 'y%./+-%__p_%'`
9072if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9073 echo $ac_n "(cached) $ac_c" 1>&6
7ec2881a 9074else
698dcdb6 9075 ac_save_LIBS="$LIBS"
7ec2881a 9076LIBS="-lgdk $LIBS"
698dcdb6 9077cat > conftest.$ac_ext <<EOF
d73be714 9078#line 9079 "configure"
7ec2881a
RR
9079#include "confdefs.h"
9080/* Override any gcc2 internal prototype to avoid an error. */
9081/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
9082 builtin and then its argument prototype would still apply. */
9083char gdk_im_open();
9084
9085int main() {
9086gdk_im_open()
9087; return 0; }
9088EOF
d73be714 9089if { (eval echo configure:9090: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
9090 rm -rf conftest*
9091 eval "ac_cv_lib_$ac_lib_var=yes"
9092else
9093 echo "configure: failed program was:" >&5
9094 cat conftest.$ac_ext >&5
9095 rm -rf conftest*
9096 eval "ac_cv_lib_$ac_lib_var=no"
9097fi
9098rm -f conftest*
9099LIBS="$ac_save_LIBS"
9100
9101fi
9102if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9103 echo "$ac_t""yes" 1>&6
9104 cat >> confdefs.h <<\EOF
7ec2881a
RR
9105#define HAVE_XIM 1
9106EOF
9107
698dcdb6
VZ
9108else
9109 echo "$ac_t""no" 1>&6
7ec2881a
RR
9110fi
9111
1e6feb95 9112 fi
10f2d63a 9113
1e6feb95
VZ
9114 if test "$wxUSE_MGL" = 1; then
9115
9116 echo $ac_n "checking for SciTech MGL library""... $ac_c" 1>&6
d73be714 9117echo "configure:9118: checking for SciTech MGL library" >&5
1e6feb95
VZ
9118 if test "x$MGL_ROOT" = x ; then
9119 echo "$ac_t""not found" 1>&6
9120 { echo "configure: error: Cannot find MGL library. Make sure MGL_ROOT is set." 1>&2; exit 1; }
9121 else
9122 echo "$ac_t""$MGL_ROOT" 1>&6
9123 fi
9124
9125 MGL_OS=linux/gcc/glibc
9126 MGL_LIB_TYPE=""
9127
9128 if test "$wxUSE_DEBUG_FLAG" = yes ; then
9129 if test -f $MGL_ROOT/lib/debug/$MGL_OS/libmgl.a ; then
9130 MGL_LIB_TYPE=debug
9131 fi
9132 fi
9133 if test "x$MGL_LIB_TYPE" = x ; then
9134 if test -f $MGL_ROOT/lib/release/$MGL_OS/libmgl.a ; then
9135 MGL_LIB_TYPE=release
9136 else
9137 { echo "configure: error: Cannot find MGL libraries, make sure they are compiled." 1>&2; exit 1; }
9138 fi
9139 fi
9140
9141 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
9142 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$MGL_LIB_TYPE/$MGL_OS -lmgl -lmglcpp -lpm"
9143
9144 AFMINSTALL=afminstall
9145 TOOLKIT=MGL
9146 GUIDIST=MGL_DIST
9147 fi
9148
9149 if test "$wxUSE_WINE" = 1; then
9150 echo $ac_n "checking for WINE includes""... $ac_c" 1>&6
d73be714 9151echo "configure:9152: checking for WINE includes" >&5
1e6feb95 9152
10f2d63a
VZ
9153ac_find_includes=
9154for ac_dir in $SEARCH_INCLUDE;
9155 do
9156 if test -f "$ac_dir/windows.h"; then
9157 ac_find_includes=$ac_dir
9158 break
9159 fi
9160 done
9161
1e6feb95
VZ
9162 if test "$ac_find_includes" != "" ; then
9163 echo "$ac_t""found $ac_find_includes" 1>&6
9164 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE -I$ac_find_includes"
9165 else
9166 echo "$ac_t""no" 1>&6
9167 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
9168 fi
10f2d63a 9169
1e6feb95
VZ
9170 XPM_LINK=""
9171 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
d73be714 9172echo "configure:9173: checking for Xpm library" >&5
1e6feb95 9173
10f2d63a
VZ
9174ac_find_libraries=
9175for ac_dir in $SEARCH_LIB;
9176 do
9177 for ac_extension in a so sl; do
9178 if test -f "$ac_dir/libXpm.$ac_extension"; then
9179 ac_find_libraries=$ac_dir
9180 break 2
9181 fi
9182 done
9183 done
9184
1e6feb95
VZ
9185 if test "$ac_find_libraries" != "" ; then
9186 GUI_TK_LIBRARY="-L$ac_find_libraries"
9187 XPM_LINK="-lXpm"
9188 cat >> confdefs.h <<\EOF
10f2d63a
VZ
9189#define wxHAVE_LIB_XPM 1
9190EOF
9191
1e6feb95
VZ
9192 echo "$ac_t""found at $ac_find_libraries" 1>&6
9193 else
9194 echo "$ac_t""no" 1>&6
9195 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
9196 fi
10f2d63a 9197
1e6feb95
VZ
9198 MESA_LINK=""
9199 echo $ac_n "checking for Mesa library""... $ac_c" 1>&6
d73be714 9200echo "configure:9201: checking for Mesa library" >&5
1e6feb95 9201
10f2d63a
VZ
9202ac_find_libraries=
9203for ac_dir in $SEARCH_LIB;
9204 do
9205 for ac_extension in a so sl; do
9206 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
9207 ac_find_libraries=$ac_dir
9208 break 2
9209 fi
9210 done
9211 done
9212
1e6feb95
VZ
9213 if test "$ac_find_libraries" != "" ; then
9214 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -L$ac_find_libraries"
9215 MESA_LINK="-lMesaGL"
9216 echo "$ac_t""found at $ac_find_libraries" 1>&6
9217 else
9218 { echo "configure: error: no" 1>&2; exit 1; }
9219 fi
10f2d63a 9220
1e6feb95
VZ
9221 GUI_TK_LINK="-lwine $MESA_LINK $XPM_LINK -lXxf86dga -lXxf86vm -lSM -lICE -lXext -lXmu -lX11 -lncurses"
9222 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $GUI_TK_LINK"
9223 WXWINE=1
9224 TOOLKIT=MSW
9225 GUIDIST=MSW_DIST
9226 fi
698dcdb6 9227
1e6feb95
VZ
9228
9229 # If we find X, set shell vars x_includes and x_libraries to the
698dcdb6
VZ
9230# paths, otherwise set no_x=yes.
9231# Uses ac_ vars as temps to allow command line to override cache and checks.
9232# --without-x overrides everything else, but does not touch the cache.
9233echo $ac_n "checking for X""... $ac_c" 1>&6
d73be714 9234echo "configure:9235: checking for X" >&5
ab9b9eab
VZ
9235
9236# Check whether --with-x or --without-x was given.
9237if test "${with_x+set}" = set; then
9238 withval="$with_x"
698dcdb6
VZ
9239 :
9240fi
ba337fe7 9241
ab9b9eab
VZ
9242# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9243if test "x$with_x" = xno; then
9244 # The user explicitly disabled X.
9245 have_x=disabled
9246else
9247 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
9248 # Both variables are already set.
9249 have_x=yes
9250 else
698dcdb6
VZ
9251if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
9252 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab
VZ
9253else
9254 # One or both of the vars are not set, and there is no cached value.
698dcdb6
VZ
9255ac_x_includes=NO ac_x_libraries=NO
9256rm -fr conftestdir
9257if mkdir conftestdir; then
9258 cd conftestdir
ab9b9eab 9259 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
698dcdb6 9260 cat > Imakefile <<'EOF'
ab9b9eab
VZ
9261acfindx:
9262 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
9263EOF
9264 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
9265 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9266 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
9267 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
10f2d63a 9268 for ac_extension in a so sl; do
ab9b9eab 9269 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
698dcdb6 9270 test -f $ac_im_libdir/libX11.$ac_extension; then
ab9b9eab 9271 ac_im_usrlibdir=$ac_im_libdir; break
10f2d63a
VZ
9272 fi
9273 done
ab9b9eab
VZ
9274 # Screen out bogus values from the imake configuration. They are
9275 # bogus both because they are the default anyway, and because
9276 # using them would break gcc on systems where it needs fixed includes.
698dcdb6 9277 case "$ac_im_incroot" in
ab9b9eab 9278 /usr/include) ;;
698dcdb6 9279 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
ab9b9eab 9280 esac
698dcdb6 9281 case "$ac_im_usrlibdir" in
ab9b9eab 9282 /usr/lib | /lib) ;;
698dcdb6 9283 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
ab9b9eab 9284 esac
ba337fe7 9285 fi
ab9b9eab 9286 cd ..
698dcdb6 9287 rm -fr conftestdir
ab9b9eab 9288fi
10f2d63a 9289
698dcdb6
VZ
9290if test "$ac_x_includes" = NO; then
9291 # Guess where to find include files, by looking for this one X11 .h file.
9292 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
9293
ab9b9eab 9294 # First, try using that file with no special directory specified.
698dcdb6 9295cat > conftest.$ac_ext <<EOF
d73be714 9296#line 9297 "configure"
ab9b9eab 9297#include "confdefs.h"
698dcdb6
VZ
9298#include <$x_direct_test_include>
9299EOF
9300ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
d73be714 9301{ (eval echo configure:9302: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
9302ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9303if test -z "$ac_err"; then
9304 rm -rf conftest*
ab9b9eab
VZ
9305 # We can compile using X headers with no special include directory.
9306ac_x_includes=
9307else
698dcdb6
VZ
9308 echo "$ac_err" >&5
9309 echo "configure: failed program was:" >&5
ab9b9eab 9310 cat conftest.$ac_ext >&5
698dcdb6
VZ
9311 rm -rf conftest*
9312 # Look for the header file in a standard set of common directories.
9313# Check X11 before X11Rn because it is often a symlink to the current release.
9314 for ac_dir in \
9315 /usr/X11/include \
9316 /usr/X11R6/include \
9317 /usr/X11R5/include \
9318 /usr/X11R4/include \
9319 \
9320 /usr/include/X11 \
9321 /usr/include/X11R6 \
9322 /usr/include/X11R5 \
9323 /usr/include/X11R4 \
9324 \
9325 /usr/local/X11/include \
9326 /usr/local/X11R6/include \
9327 /usr/local/X11R5/include \
9328 /usr/local/X11R4/include \
9329 \
9330 /usr/local/include/X11 \
9331 /usr/local/include/X11R6 \
9332 /usr/local/include/X11R5 \
9333 /usr/local/include/X11R4 \
9334 \
9335 /usr/X386/include \
9336 /usr/x386/include \
9337 /usr/XFree86/include/X11 \
9338 \
9339 /usr/include \
9340 /usr/local/include \
9341 /usr/unsupported/include \
9342 /usr/athena/include \
9343 /usr/local/x11r5/include \
9344 /usr/lpp/Xamples/include \
9345 \
9346 /usr/openwin/include \
9347 /usr/openwin/share/include \
9348 ; \
9349 do
9350 if test -r "$ac_dir/$x_direct_test_include"; then
9351 ac_x_includes=$ac_dir
9352 break
9353 fi
9354 done
ab9b9eab 9355fi
698dcdb6
VZ
9356rm -f conftest*
9357fi # $ac_x_includes = NO
10f2d63a 9358
698dcdb6 9359if test "$ac_x_libraries" = NO; then
ab9b9eab 9360 # Check for the libraries.
698dcdb6
VZ
9361
9362 test -z "$x_direct_test_library" && x_direct_test_library=Xt
9363 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
9364
ab9b9eab
VZ
9365 # See if we find them without any special options.
9366 # Don't add to $LIBS permanently.
698dcdb6
VZ
9367 ac_save_LIBS="$LIBS"
9368 LIBS="-l$x_direct_test_library $LIBS"
9369cat > conftest.$ac_ext <<EOF
d73be714 9370#line 9371 "configure"
ab9b9eab 9371#include "confdefs.h"
698dcdb6
VZ
9372
9373int main() {
9374${x_direct_test_function}()
9375; return 0; }
9376EOF
d73be714 9377if { (eval echo configure:9378: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
9378 rm -rf conftest*
9379 LIBS="$ac_save_LIBS"
ab9b9eab
VZ
9380# We can link X programs with no special library path.
9381ac_x_libraries=
9382else
698dcdb6
VZ
9383 echo "configure: failed program was:" >&5
9384 cat conftest.$ac_ext >&5
9385 rm -rf conftest*
9386 LIBS="$ac_save_LIBS"
9387# First see if replacing the include by lib works.
9388# Check X11 before X11Rn because it is often a symlink to the current release.
9389for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
9390 /usr/X11/lib \
9391 /usr/X11R6/lib \
9392 /usr/X11R5/lib \
9393 /usr/X11R4/lib \
9394 \
9395 /usr/lib/X11 \
9396 /usr/lib/X11R6 \
9397 /usr/lib/X11R5 \
9398 /usr/lib/X11R4 \
9399 \
9400 /usr/local/X11/lib \
9401 /usr/local/X11R6/lib \
9402 /usr/local/X11R5/lib \
9403 /usr/local/X11R4/lib \
9404 \
9405 /usr/local/lib/X11 \
9406 /usr/local/lib/X11R6 \
9407 /usr/local/lib/X11R5 \
9408 /usr/local/lib/X11R4 \
9409 \
9410 /usr/X386/lib \
9411 /usr/x386/lib \
9412 /usr/XFree86/lib/X11 \
9413 \
9414 /usr/lib \
9415 /usr/local/lib \
9416 /usr/unsupported/lib \
9417 /usr/athena/lib \
9418 /usr/local/x11r5/lib \
9419 /usr/lpp/Xamples/lib \
9420 /lib/usr/lib/X11 \
9421 \
9422 /usr/openwin/lib \
9423 /usr/openwin/share/lib \
9424 ; \
ab9b9eab
VZ
9425do
9426 for ac_extension in a so sl; do
698dcdb6 9427 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
ab9b9eab
VZ
9428 ac_x_libraries=$ac_dir
9429 break 2
10f2d63a 9430 fi
10f2d63a 9431 done
ab9b9eab
VZ
9432done
9433fi
698dcdb6
VZ
9434rm -f conftest*
9435fi # $ac_x_libraries = NO
10f2d63a 9436
698dcdb6 9437if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
ab9b9eab
VZ
9438 # Didn't find X anywhere. Cache the known absence of X.
9439 ac_cv_have_x="have_x=no"
9440else
9441 # Record where we found X for the cache.
9442 ac_cv_have_x="have_x=yes \
9443 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
9444fi
9445fi
10f2d63a 9446 fi
ab9b9eab
VZ
9447 eval "$ac_cv_have_x"
9448fi # $with_x != no
10f2d63a 9449
ab9b9eab 9450if test "$have_x" != yes; then
698dcdb6 9451 echo "$ac_t""$have_x" 1>&6
ab9b9eab
VZ
9452 no_x=yes
9453else
9454 # If each of the values was on the command line, it overrides each guess.
9455 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9456 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9457 # Update the cache value to reflect the command line values.
9458 ac_cv_have_x="have_x=yes \
9459 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
698dcdb6 9460 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
ab9b9eab 9461fi
10f2d63a 9462
ab9b9eab
VZ
9463if test "$no_x" = yes; then
9464 # Not all programs may use this symbol, but it does not hurt to define it.
698dcdb6 9465 cat >> confdefs.h <<\EOF
ab9b9eab
VZ
9466#define X_DISPLAY_MISSING 1
9467EOF
10f2d63a 9468
ab9b9eab
VZ
9469 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
9470else
9471 if test -n "$x_includes"; then
9472 X_CFLAGS="$X_CFLAGS -I$x_includes"
10f2d63a
VZ
9473 fi
9474
ab9b9eab
VZ
9475 # It would also be nice to do this for all -L options, not just this one.
9476 if test -n "$x_libraries"; then
9477 X_LIBS="$X_LIBS -L$x_libraries"
9478 # For Solaris; some versions of Sun CC require a space after -R and
9479 # others require no space. Words are not sufficient . . . .
698dcdb6 9480 case "`(uname -sr) 2>/dev/null`" in
ab9b9eab 9481 "SunOS 5"*)
698dcdb6 9482 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
d73be714 9483echo "configure:9484: checking whether -R must be followed by a space" >&5
698dcdb6
VZ
9484 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
9485 cat > conftest.$ac_ext <<EOF
d73be714 9486#line 9487 "configure"
ab9b9eab 9487#include "confdefs.h"
10f2d63a 9488
698dcdb6 9489int main() {
788deba1 9490
698dcdb6
VZ
9491; return 0; }
9492EOF
d73be714 9493if { (eval echo configure:9494: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 9494 rm -rf conftest*
ab9b9eab
VZ
9495 ac_R_nospace=yes
9496else
698dcdb6
VZ
9497 echo "configure: failed program was:" >&5
9498 cat conftest.$ac_ext >&5
9499 rm -rf conftest*
9500 ac_R_nospace=no
ab9b9eab 9501fi
698dcdb6 9502rm -f conftest*
ab9b9eab 9503 if test $ac_R_nospace = yes; then
698dcdb6 9504 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
9505 X_LIBS="$X_LIBS -R$x_libraries"
9506 else
9507 LIBS="$ac_xsave_LIBS -R $x_libraries"
698dcdb6 9508 cat > conftest.$ac_ext <<EOF
d73be714 9509#line 9510 "configure"
ab9b9eab 9510#include "confdefs.h"
788deba1 9511
698dcdb6 9512int main() {
ab9b9eab 9513
698dcdb6
VZ
9514; return 0; }
9515EOF
d73be714 9516if { (eval echo configure:9517: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 9517 rm -rf conftest*
ab9b9eab
VZ
9518 ac_R_space=yes
9519else
698dcdb6
VZ
9520 echo "configure: failed program was:" >&5
9521 cat conftest.$ac_ext >&5
9522 rm -rf conftest*
9523 ac_R_space=no
ab9b9eab 9524fi
698dcdb6 9525rm -f conftest*
ab9b9eab 9526 if test $ac_R_space = yes; then
698dcdb6 9527 echo "$ac_t""yes" 1>&6
ab9b9eab
VZ
9528 X_LIBS="$X_LIBS -R $x_libraries"
9529 else
698dcdb6 9530 echo "$ac_t""neither works" 1>&6
ab9b9eab
VZ
9531 fi
9532 fi
698dcdb6 9533 LIBS="$ac_xsave_LIBS"
ab9b9eab
VZ
9534 esac
9535 fi
9536
9537 # Check for system-dependent libraries X programs must link with.
9538 # Do this before checking for the system-independent R6 libraries
9539 # (-lICE), since we may need -lsocket or whatever for X linking.
9540
9541 if test "$ISC" = yes; then
9542 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
9543 else
698dcdb6
VZ
9544 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
9545 # libraries were built with DECnet support. And karl@cs.umb.edu says
ab9b9eab 9546 # the Alpha needs dnet_stub (dnet does not exist).
698dcdb6 9547 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
d73be714 9548echo "configure:9549: checking for dnet_ntoa in -ldnet" >&5
698dcdb6
VZ
9549ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
9550if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9551 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 9552else
698dcdb6 9553 ac_save_LIBS="$LIBS"
ab9b9eab 9554LIBS="-ldnet $LIBS"
698dcdb6 9555cat > conftest.$ac_ext <<EOF
d73be714 9556#line 9557 "configure"
ab9b9eab
VZ
9557#include "confdefs.h"
9558/* Override any gcc2 internal prototype to avoid an error. */
9559/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
9560 builtin and then its argument prototype would still apply. */
9561char dnet_ntoa();
9562
9563int main() {
9564dnet_ntoa()
9565; return 0; }
9566EOF
d73be714 9567if { (eval echo configure:9568: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
9568 rm -rf conftest*
9569 eval "ac_cv_lib_$ac_lib_var=yes"
9570else
9571 echo "configure: failed program was:" >&5
9572 cat conftest.$ac_ext >&5
9573 rm -rf conftest*
9574 eval "ac_cv_lib_$ac_lib_var=no"
9575fi
9576rm -f conftest*
9577LIBS="$ac_save_LIBS"
9578
9579fi
9580if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9581 echo "$ac_t""yes" 1>&6
ab9b9eab 9582 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
698dcdb6
VZ
9583else
9584 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
9585fi
9586
9587 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
698dcdb6 9588 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
d73be714 9589echo "configure:9590: checking for dnet_ntoa in -ldnet_stub" >&5
698dcdb6
VZ
9590ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
9591if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9592 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 9593else
698dcdb6 9594 ac_save_LIBS="$LIBS"
ab9b9eab 9595LIBS="-ldnet_stub $LIBS"
698dcdb6 9596cat > conftest.$ac_ext <<EOF
d73be714 9597#line 9598 "configure"
ab9b9eab
VZ
9598#include "confdefs.h"
9599/* Override any gcc2 internal prototype to avoid an error. */
9600/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
9601 builtin and then its argument prototype would still apply. */
9602char dnet_ntoa();
9603
9604int main() {
9605dnet_ntoa()
9606; return 0; }
9607EOF
d73be714 9608if { (eval echo configure:9609: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
9609 rm -rf conftest*
9610 eval "ac_cv_lib_$ac_lib_var=yes"
9611else
9612 echo "configure: failed program was:" >&5
9613 cat conftest.$ac_ext >&5
9614 rm -rf conftest*
9615 eval "ac_cv_lib_$ac_lib_var=no"
9616fi
9617rm -f conftest*
9618LIBS="$ac_save_LIBS"
9619
9620fi
9621if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9622 echo "$ac_t""yes" 1>&6
ab9b9eab 9623 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
698dcdb6
VZ
9624else
9625 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
9626fi
9627
9628 fi
9629
9630 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
9631 # to get the SysV transport functions.
698dcdb6 9632 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
ab9b9eab
VZ
9633 # needs -lnsl.
9634 # The nsl library prevents programs from opening the X display
698dcdb6
VZ
9635 # on Irix 5.2, according to dickey@clark.net.
9636 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
d73be714 9637echo "configure:9638: checking for gethostbyname" >&5
698dcdb6
VZ
9638if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
9639 echo $ac_n "(cached) $ac_c" 1>&6
9640else
9641 cat > conftest.$ac_ext <<EOF
d73be714 9642#line 9643 "configure"
ab9b9eab
VZ
9643#include "confdefs.h"
9644/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 9645 which can conflict with char gethostbyname(); below. */
ab9b9eab
VZ
9646#include <assert.h>
9647/* Override any gcc2 internal prototype to avoid an error. */
9648/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
9649 builtin and then its argument prototype would still apply. */
9650char gethostbyname();
9651
9652int main() {
ab9b9eab
VZ
9653
9654/* The GNU C library defines this for functions which it implements
9655 to always fail with ENOSYS. Some functions are actually named
9656 something starting with __ and the normal name is an alias. */
9657#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
9658choke me
9659#else
698dcdb6 9660gethostbyname();
ab9b9eab
VZ
9661#endif
9662
698dcdb6
VZ
9663; return 0; }
9664EOF
d73be714 9665if { (eval echo configure:9666: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
9666 rm -rf conftest*
9667 eval "ac_cv_func_gethostbyname=yes"
9668else
9669 echo "configure: failed program was:" >&5
9670 cat conftest.$ac_ext >&5
9671 rm -rf conftest*
9672 eval "ac_cv_func_gethostbyname=no"
9673fi
9674rm -f conftest*
9675fi
9676
9677if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
9678 echo "$ac_t""yes" 1>&6
9679 :
9680else
9681 echo "$ac_t""no" 1>&6
9682fi
ab9b9eab
VZ
9683
9684 if test $ac_cv_func_gethostbyname = no; then
698dcdb6 9685 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
d73be714 9686echo "configure:9687: checking for gethostbyname in -lnsl" >&5
698dcdb6
VZ
9687ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
9688if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9689 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 9690else
698dcdb6 9691 ac_save_LIBS="$LIBS"
ab9b9eab 9692LIBS="-lnsl $LIBS"
698dcdb6 9693cat > conftest.$ac_ext <<EOF
d73be714 9694#line 9695 "configure"
ab9b9eab
VZ
9695#include "confdefs.h"
9696/* Override any gcc2 internal prototype to avoid an error. */
9697/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
9698 builtin and then its argument prototype would still apply. */
9699char gethostbyname();
6232543b 9700
698dcdb6
VZ
9701int main() {
9702gethostbyname()
9703; return 0; }
9704EOF
d73be714 9705if { (eval echo configure:9706: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
9706 rm -rf conftest*
9707 eval "ac_cv_lib_$ac_lib_var=yes"
703e0a69 9708else
698dcdb6
VZ
9709 echo "configure: failed program was:" >&5
9710 cat conftest.$ac_ext >&5
9711 rm -rf conftest*
9712 eval "ac_cv_lib_$ac_lib_var=no"
9713fi
9714rm -f conftest*
9715LIBS="$ac_save_LIBS"
1e487827 9716
698dcdb6
VZ
9717fi
9718if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9719 echo "$ac_t""yes" 1>&6
9720 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
9721else
9722 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
9723fi
9724
9725 fi
9726
9727 # lieder@skyler.mavd.honeywell.com says without -lsocket,
9728 # socket/setsockopt and other routines are undefined under SCO ODT
9729 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
698dcdb6
VZ
9730 # on later versions), says simon@lia.di.epfl.ch: it contains
9731 # gethostby* variants that don't use the nameserver (or something).
9732 # -lsocket must be given before -lnsl if both are needed.
9733 # We assume that if connect needs -lnsl, so does gethostbyname.
9734 echo $ac_n "checking for connect""... $ac_c" 1>&6
d73be714 9735echo "configure:9736: checking for connect" >&5
698dcdb6
VZ
9736if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
9737 echo $ac_n "(cached) $ac_c" 1>&6
9738else
9739 cat > conftest.$ac_ext <<EOF
d73be714 9740#line 9741 "configure"
ab9b9eab
VZ
9741#include "confdefs.h"
9742/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 9743 which can conflict with char connect(); below. */
ab9b9eab
VZ
9744#include <assert.h>
9745/* Override any gcc2 internal prototype to avoid an error. */
9746/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
9747 builtin and then its argument prototype would still apply. */
9748char connect();
9749
9750int main() {
ab9b9eab
VZ
9751
9752/* The GNU C library defines this for functions which it implements
9753 to always fail with ENOSYS. Some functions are actually named
9754 something starting with __ and the normal name is an alias. */
9755#if defined (__stub_connect) || defined (__stub___connect)
9756choke me
9757#else
698dcdb6 9758connect();
ab9b9eab
VZ
9759#endif
9760
698dcdb6
VZ
9761; return 0; }
9762EOF
d73be714 9763if { (eval echo configure:9764: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
9764 rm -rf conftest*
9765 eval "ac_cv_func_connect=yes"
9766else
9767 echo "configure: failed program was:" >&5
9768 cat conftest.$ac_ext >&5
9769 rm -rf conftest*
9770 eval "ac_cv_func_connect=no"
9771fi
9772rm -f conftest*
9773fi
9774
9775if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
9776 echo "$ac_t""yes" 1>&6
9777 :
9778else
9779 echo "$ac_t""no" 1>&6
9780fi
ab9b9eab
VZ
9781
9782 if test $ac_cv_func_connect = no; then
698dcdb6 9783 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
d73be714 9784echo "configure:9785: checking for connect in -lsocket" >&5
698dcdb6
VZ
9785ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
9786if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9787 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 9788else
698dcdb6 9789 ac_save_LIBS="$LIBS"
ab9b9eab 9790LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
698dcdb6 9791cat > conftest.$ac_ext <<EOF
d73be714 9792#line 9793 "configure"
ab9b9eab
VZ
9793#include "confdefs.h"
9794/* Override any gcc2 internal prototype to avoid an error. */
9795/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
9796 builtin and then its argument prototype would still apply. */
9797char connect();
9798
9799int main() {
9800connect()
9801; return 0; }
9802EOF
d73be714 9803if { (eval echo configure:9804: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
9804 rm -rf conftest*
9805 eval "ac_cv_lib_$ac_lib_var=yes"
9806else
9807 echo "configure: failed program was:" >&5
9808 cat conftest.$ac_ext >&5
9809 rm -rf conftest*
9810 eval "ac_cv_lib_$ac_lib_var=no"
9811fi
9812rm -f conftest*
9813LIBS="$ac_save_LIBS"
9814
9815fi
9816if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9817 echo "$ac_t""yes" 1>&6
ab9b9eab 9818 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
698dcdb6
VZ
9819else
9820 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
9821fi
9822
9823 fi
9824
698dcdb6
VZ
9825 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
9826 echo $ac_n "checking for remove""... $ac_c" 1>&6
d73be714 9827echo "configure:9828: checking for remove" >&5
698dcdb6
VZ
9828if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
9829 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 9830else
698dcdb6 9831 cat > conftest.$ac_ext <<EOF
d73be714 9832#line 9833 "configure"
ab9b9eab
VZ
9833#include "confdefs.h"
9834/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 9835 which can conflict with char remove(); below. */
ab9b9eab
VZ
9836#include <assert.h>
9837/* Override any gcc2 internal prototype to avoid an error. */
9838/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
9839 builtin and then its argument prototype would still apply. */
9840char remove();
9841
9842int main() {
ab9b9eab
VZ
9843
9844/* The GNU C library defines this for functions which it implements
9845 to always fail with ENOSYS. Some functions are actually named
9846 something starting with __ and the normal name is an alias. */
9847#if defined (__stub_remove) || defined (__stub___remove)
9848choke me
9849#else
698dcdb6 9850remove();
ab9b9eab
VZ
9851#endif
9852
698dcdb6
VZ
9853; return 0; }
9854EOF
d73be714 9855if { (eval echo configure:9856: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
9856 rm -rf conftest*
9857 eval "ac_cv_func_remove=yes"
9858else
9859 echo "configure: failed program was:" >&5
9860 cat conftest.$ac_ext >&5
9861 rm -rf conftest*
9862 eval "ac_cv_func_remove=no"
9863fi
9864rm -f conftest*
9865fi
9866
9867if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
9868 echo "$ac_t""yes" 1>&6
9869 :
9870else
9871 echo "$ac_t""no" 1>&6
9872fi
ab9b9eab
VZ
9873
9874 if test $ac_cv_func_remove = no; then
698dcdb6 9875 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
d73be714 9876echo "configure:9877: checking for remove in -lposix" >&5
698dcdb6
VZ
9877ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
9878if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9879 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 9880else
698dcdb6 9881 ac_save_LIBS="$LIBS"
ab9b9eab 9882LIBS="-lposix $LIBS"
698dcdb6 9883cat > conftest.$ac_ext <<EOF
d73be714 9884#line 9885 "configure"
ab9b9eab
VZ
9885#include "confdefs.h"
9886/* Override any gcc2 internal prototype to avoid an error. */
9887/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
9888 builtin and then its argument prototype would still apply. */
9889char remove();
9890
9891int main() {
9892remove()
9893; return 0; }
9894EOF
d73be714 9895if { (eval echo configure:9896: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
9896 rm -rf conftest*
9897 eval "ac_cv_lib_$ac_lib_var=yes"
9898else
9899 echo "configure: failed program was:" >&5
9900 cat conftest.$ac_ext >&5
9901 rm -rf conftest*
9902 eval "ac_cv_lib_$ac_lib_var=no"
9903fi
9904rm -f conftest*
9905LIBS="$ac_save_LIBS"
9906
9907fi
9908if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9909 echo "$ac_t""yes" 1>&6
ab9b9eab 9910 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
698dcdb6
VZ
9911else
9912 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
9913fi
9914
9915 fi
9916
9917 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
698dcdb6 9918 echo $ac_n "checking for shmat""... $ac_c" 1>&6
d73be714 9919echo "configure:9920: checking for shmat" >&5
698dcdb6
VZ
9920if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
9921 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 9922else
698dcdb6 9923 cat > conftest.$ac_ext <<EOF
d73be714 9924#line 9925 "configure"
ab9b9eab
VZ
9925#include "confdefs.h"
9926/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 9927 which can conflict with char shmat(); below. */
ab9b9eab
VZ
9928#include <assert.h>
9929/* Override any gcc2 internal prototype to avoid an error. */
9930/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
9931 builtin and then its argument prototype would still apply. */
9932char shmat();
9933
9934int main() {
ab9b9eab
VZ
9935
9936/* The GNU C library defines this for functions which it implements
9937 to always fail with ENOSYS. Some functions are actually named
9938 something starting with __ and the normal name is an alias. */
9939#if defined (__stub_shmat) || defined (__stub___shmat)
9940choke me
9941#else
698dcdb6 9942shmat();
ab9b9eab
VZ
9943#endif
9944
698dcdb6
VZ
9945; return 0; }
9946EOF
d73be714 9947if { (eval echo configure:9948: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
9948 rm -rf conftest*
9949 eval "ac_cv_func_shmat=yes"
9950else
9951 echo "configure: failed program was:" >&5
9952 cat conftest.$ac_ext >&5
9953 rm -rf conftest*
9954 eval "ac_cv_func_shmat=no"
9955fi
9956rm -f conftest*
9957fi
9958
9959if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
9960 echo "$ac_t""yes" 1>&6
9961 :
9962else
9963 echo "$ac_t""no" 1>&6
9964fi
ab9b9eab
VZ
9965
9966 if test $ac_cv_func_shmat = no; then
698dcdb6 9967 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
d73be714 9968echo "configure:9969: checking for shmat in -lipc" >&5
698dcdb6
VZ
9969ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
9970if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9971 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 9972else
698dcdb6 9973 ac_save_LIBS="$LIBS"
ab9b9eab 9974LIBS="-lipc $LIBS"
698dcdb6 9975cat > conftest.$ac_ext <<EOF
d73be714 9976#line 9977 "configure"
ab9b9eab
VZ
9977#include "confdefs.h"
9978/* Override any gcc2 internal prototype to avoid an error. */
9979/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
9980 builtin and then its argument prototype would still apply. */
9981char shmat();
9982
9983int main() {
9984shmat()
9985; return 0; }
9986EOF
d73be714 9987if { (eval echo configure:9988: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
9988 rm -rf conftest*
9989 eval "ac_cv_lib_$ac_lib_var=yes"
9990else
9991 echo "configure: failed program was:" >&5
9992 cat conftest.$ac_ext >&5
9993 rm -rf conftest*
9994 eval "ac_cv_lib_$ac_lib_var=no"
9995fi
9996rm -f conftest*
9997LIBS="$ac_save_LIBS"
9998
9999fi
10000if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10001 echo "$ac_t""yes" 1>&6
ab9b9eab 10002 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
698dcdb6
VZ
10003else
10004 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
10005fi
10006
10007 fi
10008 fi
10009
10010 # Check for libraries that X11R6 Xt/Xaw programs need.
698dcdb6 10011 ac_save_LDFLAGS="$LDFLAGS"
ab9b9eab
VZ
10012 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
10013 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
10014 # check for ICE first), but we must link in the order -lSM -lICE or
10015 # we get undefined symbols. So assume we have SM if we have ICE.
10016 # These have to be linked with before -lX11, unlike the other
10017 # libraries we check for below, so use a different variable.
698dcdb6
VZ
10018 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
10019 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
d73be714 10020echo "configure:10021: checking for IceConnectionNumber in -lICE" >&5
698dcdb6
VZ
10021ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
10022if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10023 echo $ac_n "(cached) $ac_c" 1>&6
10024else
10025 ac_save_LIBS="$LIBS"
ab9b9eab 10026LIBS="-lICE $X_EXTRA_LIBS $LIBS"
698dcdb6 10027cat > conftest.$ac_ext <<EOF
d73be714 10028#line 10029 "configure"
ab9b9eab
VZ
10029#include "confdefs.h"
10030/* Override any gcc2 internal prototype to avoid an error. */
10031/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
10032 builtin and then its argument prototype would still apply. */
10033char IceConnectionNumber();
10034
10035int main() {
10036IceConnectionNumber()
10037; return 0; }
10038EOF
d73be714 10039if { (eval echo configure:10040: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
10040 rm -rf conftest*
10041 eval "ac_cv_lib_$ac_lib_var=yes"
10042else
10043 echo "configure: failed program was:" >&5
10044 cat conftest.$ac_ext >&5
10045 rm -rf conftest*
10046 eval "ac_cv_lib_$ac_lib_var=no"
10047fi
10048rm -f conftest*
10049LIBS="$ac_save_LIBS"
10050
10051fi
10052if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10053 echo "$ac_t""yes" 1>&6
ab9b9eab 10054 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
698dcdb6
VZ
10055else
10056 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
10057fi
10058
698dcdb6 10059 LDFLAGS="$ac_save_LDFLAGS"
ab9b9eab
VZ
10060
10061fi
10062
1e6feb95
VZ
10063 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10064 LDFLAGS="$LDFLAGS $X_LIBS"
ab9b9eab 10065
1e6feb95
VZ
10066 if test "$wxUSE_MOTIF" = 1; then
10067 if test "$no_x" = "yes"; then
10068 { echo "configure: error: X11 not found" 1>&2; exit 1; }
10069 fi
ab9b9eab 10070
1e6feb95
VZ
10071 GUI_TK_LIBRARY="$X_LIBS"
10072 TOOLKIT_INCLUDE="$X_CFLAGS"
ab9b9eab 10073
1e6feb95 10074 AFMINSTALL=afminstall
dad6c0ea 10075
1e6feb95
VZ
10076
10077 COMPILED_X_PROGRAM=0
cd6d6d5b 10078
1e6feb95 10079 echo $ac_n "checking for Motif/Lesstif headers""... $ac_c" 1>&6
d73be714 10080echo "configure:10081: checking for Motif/Lesstif headers" >&5
1e6feb95 10081
ab9b9eab
VZ
10082ac_find_includes=
10083for ac_dir in $SEARCH_INCLUDE;
10084 do
10085 if test -f "$ac_dir/Xm/Xm.h"; then
10086 ac_find_includes=$ac_dir
10087 break
10088 fi
10089 done
10090
1e6feb95
VZ
10091 if test "$ac_find_includes" != "" ; then
10092 echo "$ac_t""found $ac_find_includes" 1>&6
10093 else
10094 cat > conftest.$ac_ext <<EOF
d73be714 10095#line 10096 "configure"
cd6d6d5b
VZ
10096#include "confdefs.h"
10097
1e6feb95
VZ
10098 #include <Xm/Xm.h>
10099
698dcdb6 10100int main() {
cd6d6d5b 10101
1e6feb95 10102 int version;
cd6d6d5b 10103
1e6feb95
VZ
10104 version = xmUseVersion;
10105
698dcdb6
VZ
10106; return 0; }
10107EOF
d73be714 10108if { (eval echo configure:10109: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
10109 rm -rf conftest*
10110
1e6feb95
VZ
10111 echo "$ac_t""found in default search path" 1>&6
10112 COMPILED_X_PROGRAM=1
10113
cd6d6d5b 10114else
698dcdb6
VZ
10115 echo "configure: failed program was:" >&5
10116 cat conftest.$ac_ext >&5
10117 rm -rf conftest*
10118
1e6feb95
VZ
10119 echo "$ac_t""no" 1>&6
10120 { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; }
10121
698dcdb6 10122
cd6d6d5b 10123fi
698dcdb6 10124rm -f conftest*
1e6feb95 10125 fi
ab9b9eab 10126
1e6feb95
VZ
10127 if test "$COMPILED_X_PROGRAM" = 0; then
10128 echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6
d73be714 10129echo "configure:10130: checking for Motif/Lesstif library" >&5
1e6feb95 10130
ab9b9eab
VZ
10131ac_find_libraries=
10132for ac_dir in $SEARCH_LIB;
10133 do
10134 for ac_extension in a so sl; do
10135 if test -f "$ac_dir/libXm.$ac_extension"; then
10136 ac_find_libraries=$ac_dir
10137 break 2
10138 fi
10139 done
10140 done
10141
1e6feb95
VZ
10142 if test "$ac_find_libraries" != "" ; then
10143
ab9b9eab
VZ
10144 ac_path_to_include=$ac_find_includes
10145 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
10146 result=$?
10147 if test $result = 0; then
10148 ac_path_to_include=""
10149 else
10150 ac_path_to_include="-I$ac_find_includes"
10151 fi
10152
1e6feb95 10153
ab9b9eab
VZ
10154 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
10155 result=$?
10156 if test $result = 0; then
10157 ac_path_to_link=""
10158 else
10159 ac_path_to_link="-L$ac_find_libraries"
10160 fi
10161
698dcdb6 10162
1e6feb95
VZ
10163 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link"
10164 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE $ac_path_to_include"
10165 echo "$ac_t""found at $ac_find_libraries" 1>&6
10166 else
10167 cat > conftest.$ac_ext <<EOF
d73be714 10168#line 10169 "configure"
cd6d6d5b 10169#include "confdefs.h"
ab9b9eab 10170
1e6feb95
VZ
10171 #include <Xm/Xm.h>
10172
698dcdb6 10173int main() {
ab9b9eab 10174
1e6feb95 10175 int version;
ab9b9eab 10176
1e6feb95
VZ
10177 version = xmUseVersion;
10178
698dcdb6
VZ
10179; return 0; }
10180EOF
d73be714 10181if { (eval echo configure:10182: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
10182 rm -rf conftest*
10183
1e6feb95
VZ
10184 echo "$ac_t""found in default search path" 1>&6
10185 COMPILED_X_PROGRAM=1
10186
cd6d6d5b 10187else
698dcdb6
VZ
10188 echo "configure: failed program was:" >&5
10189 cat conftest.$ac_ext >&5
10190 rm -rf conftest*
10191
1e6feb95
VZ
10192 echo "$ac_t""no" 1>&6
10193 { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; }
10194
698dcdb6 10195
cd6d6d5b 10196fi
698dcdb6 10197rm -f conftest*
1e6feb95 10198 fi
cd6d6d5b 10199 fi
ab9b9eab 10200
1e6feb95
VZ
10201
10202 XPM_LINK=""
10203 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
d73be714 10204echo "configure:10205: checking for Xpm library" >&5
1e6feb95 10205
ab9b9eab
VZ
10206ac_find_libraries=
10207for ac_dir in $SEARCH_LIB;
10208 do
10209 for ac_extension in a so sl; do
10210 if test -f "$ac_dir/libXpm.$ac_extension"; then
10211 ac_find_libraries=$ac_dir
10212 break 2
10213 fi
10214 done
10215 done
10216
1e6feb95
VZ
10217 if test "$ac_find_libraries" != "" ; then
10218
ab9b9eab
VZ
10219 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
10220 result=$?
10221 if test $result = 0; then
10222 ac_path_to_link=""
10223 else
10224 ac_path_to_link="-L$ac_find_libraries"
10225 fi
10226
1e6feb95
VZ
10227 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link"
10228 XPM_LINK="-lXpm "
10229 cat >> confdefs.h <<\EOF
ab9b9eab
VZ
10230#define wxHAVE_LIB_XPM 1
10231EOF
10232
1e6feb95
VZ
10233 echo "$ac_t""found at $ac_find_libraries" 1>&6
10234 else
10235 cat > conftest.$ac_ext <<EOF
d73be714 10236#line 10237 "configure"
cd6d6d5b
VZ
10237#include "confdefs.h"
10238
1e6feb95
VZ
10239 #include <X11/xpm.h>
10240
698dcdb6 10241int main() {
cd6d6d5b 10242
1e6feb95 10243 int version;
cd6d6d5b 10244
1e6feb95
VZ
10245 version = XpmLibraryVersion();
10246
698dcdb6
VZ
10247; return 0; }
10248EOF
d73be714 10249if { (eval echo configure:10250: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
10250 rm -rf conftest*
10251
1e6feb95
VZ
10252 XPM_LINK="-lXpm "
10253 cat >> confdefs.h <<\EOF
3ace2e6d
SN
10254#define wxHAVE_LIB_XPM 1
10255EOF
10256
1e6feb95
VZ
10257 echo "$ac_t""found in default search path" 1>&6
10258 COMPILED_X_PROGRAM=0
10259
cd6d6d5b 10260else
698dcdb6
VZ
10261 echo "configure: failed program was:" >&5
10262 cat conftest.$ac_ext >&5
10263 rm -rf conftest*
10264
1e6feb95
VZ
10265 echo "$ac_t""no" 1>&6
10266 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
10267
698dcdb6 10268
cd6d6d5b 10269fi
698dcdb6 10270rm -f conftest*
1e6feb95
VZ
10271 fi
10272
10273 GUI_TK_LINK="-lXm $XPM_LINK -lXmu -lXext -lXt -lX11"
10274 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $GUI_TK_LINK"
10275 TOOLKIT=MOTIF
10276 GUIDIST=MOTIF_DIST
ab9b9eab
VZ
10277 fi
10278
1e6feb95
VZ
10279 if test "$wxUSE_MAC" = 1; then
10280 TOOLKIT=MAC
10281 GUIDIST=MACX_DIST
10282 fi
10f2d63a 10283
1e6feb95
VZ
10284 if test "$wxUSE_PM" = 1; then
10285 TOOLKIT=PM
10286 GUIDIST=GTK_DIST
10287 fi
b4085ce6 10288
1e6feb95
VZ
10289 if test "$TOOLKIT" != "PM" ; then
10290 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
10291 else
10292 TOOLKIT_DIR="os2"
10293 fi
e07802fc 10294
1e6feb95 10295 TOOLKIT_NAME="${TOOLKIT_DIR}"
10f2d63a 10296
1e6feb95
VZ
10297 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}"
10298
10299 if test "$TOOLKIT_NAME" = "motif"; then
10300 TOOLKIT_VPATH="${TOOLKIT_VPATH}${PATH_IFS}\${top_srcdir}/src/motif/xmcombo"
10301 fi
10302
10303 if test "$wxUSE_UNIVERSAL" = "yes"; then
10304 TOOLKIT_NAME="${TOOLKIT_NAME}univ"
10305 UNIV_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes"
10306 TOOLKIT_VPATH="${UNIV_VPATH}${PATH_IFS}${TOOLKIT_VPATH}"
10307 SETUPH_DIR="univ"
f6bcfd97 10308 else
1e6feb95
VZ
10309 SETUPH_DIR="${TOOLKIT_DIR}"
10310 fi
10311
10312 if test "$wxUSE_DEBUG_FLAG" = "yes"; then
10313 TOOLKIT_NAME="${TOOLKIT_NAME}d"
f6bcfd97
BP
10314 fi
10315
2224580a 10316 TOOLKIT_DEF="-D__WX${TOOLKIT}__"
1e6feb95
VZ
10317 if test "$wxUSE_UNIVERSAL" = "yes"; then
10318 TOOLKIT_DEF="${TOOLKIT_DEF} -D__WXUNIVERSAL__"
10319 fi
10f2d63a 10320
f6bcfd97 10321 WX_LIBRARY="wx_${TOOLKIT_NAME}"
10f2d63a 10322
1e6feb95
VZ
10323 if test "$wxUSE_UNIVERSAL" = "yes"; then
10324 ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}"
10325 else
10326 ALL_OBJECTS="\$(GUIOBJS)"
10327 fi
10328
10329 ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)"
10330
10331 if test "$TOOLKIT" != "MSW"; then
10332 ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)"
10333 fi
10334
10335 if test "$wxUSE_HTML" = "yes"; then
10336 ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)"
10337 fi
3fcdd07b 10338
1e6feb95
VZ
10339 if test "$TOOLKIT" != "MSW"; then
10340 if test "$wxUSE_ODBC" = "yes" ; then
10341 ALL_OBJECTS="${ALL_OBJECTS} \$(IODBCOBJS)"
10342 fi
3fcdd07b
VZ
10343 fi
10344
d9d8273d 10345 if test "$wxUSE_LIBJPEG" = "yes" ; then
2224580a 10346 ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)"
d9d8273d
RR
10347 fi
10348 if test "$wxUSE_LIBTIFF" = "yes" ; then
10349 ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)"
10350 fi
10351 if test "$wxUSE_LIBPNG" = "yes" ; then
10352 ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)"
10353 fi
10354 if test "$wxUSE_ZLIB" = "yes" ; then
10355 ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
10356 fi
3fed1840
RR
10357 if test "$wxUSE_FREETYPE" = "yes" ; then
10358 ALL_OBJECTS="${ALL_OBJECTS} \$(FREETYPEOBJS)"
10359 fi
2224580a 10360
1e6feb95
VZ
10361 if test "$wxUSE_UNIVERSAL" = "yes"; then
10362 ALL_DEPFILES="\$(GUI_LOWLEVEL_DEPS) \$(UNIVDEPS)"
10363 else
10364 ALL_DEPFILES="\$(GUIDEPS)"
10365 fi
10366
10367 ALL_DEPFILES="${ALL_DEPFILES} \$(COMMONDEPS) \$(GENERICDEPS)"
10368
10369 if test "$TOOLKIT" != "MSW"; then
10370 ALL_DEPFILES="${ALL_DEPFILES} \$(UNIXDEPS)"
10371 fi
10372
10373 if test "$wxUSE_HTML" = "yes"; then
10374 ALL_DEPFILES="${ALL_DEPFILES} \$(HTMLDEPS)"
10375 fi
10376
10377 PORT_FILES="src/\$(TOOLKITDIR)/files.lst"
10378 if test "$wxUSE_UNIVERSAL" = "yes"; then
10379 PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst"
10380 fi
2224580a
VZ
10381 RPM_FILES="src/\$(TOOLKITDIR)/rpmfiles.lst"
10382 RPM_SPEC="wx\$(TOOLKIT).spec"
10383
10384 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
10385 DISTDIR="wx\$(TOOLKIT)"
10f2d63a 10386else
dad6c0ea
VZ
10387 USE_GUI=0
10388
f6bcfd97
BP
10389 TOOLKIT_DIR="base"
10390
10391 if test "$wxUSE_DEBUG_FLAG" = "yes"; then
10392 TOOLKIT_NAME="${TOOLKIT_DIR}d"
10393 else
10394 TOOLKIT_NAME="${TOOLKIT_DIR}"
10395 fi
10396
07eb77a6
RL
10397 TOOLKIT_DEF="-D__WXBASE__"
10398
b4085ce6
GD
10399 ALL_OBJECTS="\$(BASE_OBJS) \$(BASE_UNIX_OBJS)"
10400 ALL_DEPFILES="\$(BASE_DEPS) \$(BASE_UNIX_DEPS)"
10f2d63a 10401
a20b6d3a
VZ
10402 if test "$wxUSE_ZLIB" = "yes" ; then
10403 ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
10404 fi
10405
f6bcfd97 10406 WX_LIBRARY="wx_${TOOLKIT_NAME}"
2224580a
VZ
10407
10408 PORT_FILES="src/files.lst"
10409 RPM_FILES="src/rpmfiles.lst"
10410 RPM_SPEC="wxBase.spec"
10411
10412 GUIDIST="BASE_DIST"
10413 DISTDIR="wxBase"
10f2d63a
VZ
10414fi
10415
10416WX_LIBRARY_NAME="lib${WX_LIBRARY}.la"
bdad4e7e 10417WX_LIBRARY_NAME_GL="lib${WX_LIBRARY}_gl.la"
10f2d63a
VZ
10418
10419WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a"
bdad4e7e 10420WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY}_gl.a"
10f2d63a
VZ
10421
10422WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}-${WX_RELEASE}.so.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
bdad4e7e 10423WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.so.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
10f2d63a
VZ
10424
10425WX_LIBRARY_LINK1="lib${WX_LIBRARY}-${WX_RELEASE}.so.${WX_CURRENT}"
10426WX_LIBRARY_LINK2="lib${WX_LIBRARY}-${WX_RELEASE}.so"
10427WX_LIBRARY_LINK3="lib${WX_LIBRARY}.so"
bdad4e7e
RR
10428WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.so.${WX_CURRENT}"
10429WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.so"
10430WX_LIBRARY_LINK3_GL="lib${WX_LIBRARY}_gl.so"
10f2d63a
VZ
10431
10432SHARED_LD=
10433PIC_FLAG=
10434WX_ALL=
10435WX_ALL_INSTALLED=
1d62a8b4 10436BURNT_LIBRARY_NAME=
f6bcfd97 10437WX_TARGET_LIBRARY_SONAME=
10f2d63a 10438
698dcdb6 10439
10f2d63a
VZ
10440if test "$wxUSE_SHARED" = "yes"; then
10441 case "${host}" in
10442 *-hp-hpux* )
10443 if test "$GCC" = yes ; then
69ffe1d2 10444 SHARED_LD="${CC} -shared -fPIC -o"
10f2d63a
VZ
10445 PIC_FLAG="-fPIC"
10446 else
f6bcfd97
BP
10447 LDFLAGS="-L/usr/lib"
10448
10f2d63a
VZ
10449 SHARED_LD="${CXX} -b -o"
10450 PIC_FLAG="+Z"
10451 fi
f6bcfd97
BP
10452 WX_LIBRARY_NAME_SHARED="libwx_${TOOLKIT_NAME}.sl"
10453 WX_LIBRARY_NAME_SHARED_GL="libwx_${TOOLKIT_NAME}_gl.sl"
c661ecca 10454 if test "$wxUSE_OPENGL" = "yes"; then
f6bcfd97 10455 WX_ALL_INSTALLED="preinstall_gl"
c661ecca
RR
10456 WX_ALL="${WX_LIBRARY_NAME_SHARED} ${WX_LIBRARY_NAME_SHARED_GL}"
10457 else
10458 WX_ALL="${WX_LIBRARY_NAME_SHARED}"
10459 fi
10f2d63a 10460 ;;
b12915c1
VZ
10461
10462 *-*-linux* )
10f2d63a
VZ
10463 SHARED_LD="${CC} -shared -o"
10464 PIC_FLAG="-fPIC"
00cf1208 10465 if test "$wxUSE_BURNT_NAME" = "yes" ; then
05cdfc6f 10466 BURNT_LIBRARY_NAME="-Wl,-soname,${WX_LIBRARY_LINK1}"
bdad4e7e 10467 BURNT_LIBRARY_NAME_GL="-Wl,-soname,${WX_LIBRARY_LINK1_GL}"
f6bcfd97 10468 WX_TARGET_LIBRARY_SONAME="-Wl,-soname,\$(TARGETLIB_LINK1)"
00cf1208 10469 fi
c661ecca
RR
10470 if test "$wxUSE_OPENGL" = "yes"; then
10471 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
10472 WX_ALL="CREATE_LINKS CREATE_LINKS_GL"
10473 else
10474 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
10475 WX_ALL="CREATE_LINKS"
422107f9 10476 fi
00cf1208 10477 ;;
10f2d63a
VZ
10478 *-*-irix5* | *-*-irix6* )
10479 if test "$GCC" = yes ; then
10480 SHARED_LD="${CC} -shared -o"
10481 PIC_FLAG="-fPIC"
10482 else
10483 SHARED_LD="${CXX} -shared -o"
10484 fi
c661ecca
RR
10485 if test "$wxUSE_OPENGL" = "yes"; then
10486 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
10487 WX_ALL="CREATE_LINKS CREATE_LINKS_GL"
10488 else
10489 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
10490 WX_ALL="CREATE_LINKS"
422107f9 10491 fi
10f2d63a
VZ
10492 ;;
10493 *-*-solaris2* )
10494 if test "$GCC" = yes ; then
10495 SHARED_LD="${CC} -shared -o"
10496 PIC_FLAG="-fPIC"
f6bcfd97
BP
10497
10498 CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
10f2d63a
VZ
10499 else
10500 SHARED_LD="${CXX} -G -o"
10501 PIC_FLAG="-KPIC"
10502 fi
c661ecca
RR
10503 if test "$wxUSE_OPENGL" = "yes"; then
10504 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
10505 WX_ALL="CREATE_LINKS CREATE_LINKS_GL"
10506 else
10507 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
10508 WX_ALL="CREATE_LINKS"
10509 fi
10f2d63a
VZ
10510 ;;
10511 *-*-sunos4* )
10512 SHARED_LD="${CC} -shared -o"
10513 PIC_FLAG="-fPIC"
10514 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
10515 WX_ALL="CREATE_LINKS"
10516 ;;
95c8801c 10517 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* )
10f2d63a
VZ
10518 SHARED_LD="${CC} -shared -o"
10519 PIC_FLAG="-fPIC"
37d403aa
JS
10520 if test "$wxUSE_OPENGL" = "yes"; then
10521 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
10522 WX_ALL="CREATE_LINKS CREATE_LINKS_GL"
10523 else
10524 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
10525 WX_ALL="CREATE_LINKS"
10526 fi
10f2d63a 10527 ;;
b4085ce6 10528 *-*-darwin* )
ea5999b9
GD
10529 SHARED_LD="${CXX} -dynamiclib -o"
10530 PIC_FLAG="-dynamic -fPIC"
b4085ce6
GD
10531 if test "$wxUSE_OPENGL" = "yes"; then
10532 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
10533 WX_ALL="CREATE_LINKS CREATE_LINKS_GL"
10534 else
10535 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
10536 WX_ALL="CREATE_LINKS"
10537 fi
1e6feb95
VZ
10538 WX_ALL="${WX_ALL} ./lib/lib${WX_LIBRARY}-${WX_RELEASE}.r"
10539 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}-${WX_RELEASE}.dylib.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
10540 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.dylib.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
10541 WX_LIBRARY_LINK1="lib${WX_LIBRARY}-${WX_RELEASE}.dylib.${WX_CURRENT}"
10542 WX_LIBRARY_LINK2="lib${WX_LIBRARY}-${WX_RELEASE}.dylib"
10543 WX_LIBRARY_LINK3="lib${WX_LIBRARY}.dylib"
10544 WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.dylib.${WX_CURRENT}"
10545 WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.dylib"
10546 WX_LIBRARY_LINK3_GL="lib${WX_LIBRARY}_gl.dylib"
b4085ce6 10547 ;;
10f2d63a
VZ
10548 *-*-osf* )
10549 SHARED_LD="${CXX} -shared -o"
10550 PIC_FLAG="-fPIC"
10551 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
10552 WX_ALL="CREATE_LINKS"
10553 ;;
10554 *-*-dgux5* )
10555 SHARED_LD="${CXX} -shared -o"
10556 PIC_FLAG="-fPIC"
10557 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
10558 WX_ALL="CREATE_LINKS"
10559 ;;
10560 *-*-sysv5* )
10561 SHARED_LD="${CC} -shared -o"
10562 PIC_FLAG="-fPIC"
10563 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
10564 WX_ALL="CREATE_LINKS"
10565 ;;
10566 *-*-aix* )
10567 SHARED_LD="/usr/lpp/xlC/bin/makeC++SharedLib -p 0 -o"
10568 WX_ALL=${WX_LIBRARY_NAME_SHARED}
10569 ;;
1c8183e2 10570 *-*-cygwin* )
10f2d63a 10571 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
bdad4e7e 10572 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
f6bcfd97
BP
10573 if test "$wxUSE_OPENGL" = "yes"; then
10574 WX_ALL_INSTALLED="preinstall_gl"
10575 WX_ALL="${WX_LIBRARY_NAME_STATIC} ${WX_LIBRARY_NAME_STATIC_GL}"
10576 else
10577 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
10578 fi
10f2d63a 10579 ;;
b12915c1 10580 *-*-mingw32* )
10f2d63a 10581 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
bdad4e7e 10582 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
f6bcfd97
BP
10583 if test "$wxUSE_OPENGL" = "yes"; then
10584 WX_ALL_INSTALLED="preinstall_gl"
10585 WX_ALL="${WX_LIBRARY_NAME_STATIC} ${WX_LIBRARY_NAME_STATIC_GL}"
10586 else
10587 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
10588 fi
10f2d63a
VZ
10589 ;;
10590 *-pc-os2_emx )
e07802fc
VZ
10591 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
10592 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
10f2d63a 10593 ;;
b12915c1 10594 *-*-beos* )
e2b8b066 10595 SHARED_LD="${LD} -shared -o"
b12915c1
VZ
10596 PIC_FLAG="-fPIC"
10597 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
10598 WX_ALL="CREATE_LINKS"
10599 ;;
10f2d63a 10600 *)
698dcdb6 10601 { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; }
10f2d63a
VZ
10602 esac
10603
10604 if test "x$WX_TARGET_LIBRARY" = "x"; then
10605 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
bdad4e7e 10606 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}"
10f2d63a 10607 fi
3711412e 10608 WX_TARGET_LIBRARY_TYPE="so"
10f2d63a
VZ
10609else
10610 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
bdad4e7e 10611 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
f6bcfd97
BP
10612
10613 if test "$wxUSE_OPENGL" = "yes"; then
10614 WX_ALL_INSTALLED="preinstall_gl"
10615 WX_ALL="${WX_LIBRARY_NAME_STATIC} ${WX_LIBRARY_NAME_STATIC_GL}"
10616 else
10617 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
10618 fi
10619
10620 if test "$wxUSE_GUI" = "no"; then
10621 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
10622 fi
10623
3711412e 10624 WX_TARGET_LIBRARY_TYPE="a"
10f2d63a
VZ
10625fi
10626
698dcdb6
VZ
10627
10628for ac_hdr in strings.h
10f2d63a 10629do
698dcdb6
VZ
10630ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10631echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
d73be714 10632echo "configure:10633: checking for $ac_hdr" >&5
698dcdb6
VZ
10633if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10634 echo $ac_n "(cached) $ac_c" 1>&6
10635else
10636 cat > conftest.$ac_ext <<EOF
d73be714 10637#line 10638 "configure"
10f2d63a 10638#include "confdefs.h"
698dcdb6
VZ
10639#include <$ac_hdr>
10640EOF
10641ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
d73be714 10642{ (eval echo configure:10643: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
10643ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10644if test -z "$ac_err"; then
10645 rm -rf conftest*
10646 eval "ac_cv_header_$ac_safe=yes"
10f2d63a 10647else
698dcdb6
VZ
10648 echo "$ac_err" >&5
10649 echo "configure: failed program was:" >&5
10f2d63a 10650 cat conftest.$ac_ext >&5
698dcdb6
VZ
10651 rm -rf conftest*
10652 eval "ac_cv_header_$ac_safe=no"
10f2d63a 10653fi
698dcdb6 10654rm -f conftest*
10f2d63a 10655fi
698dcdb6
VZ
10656if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10657 echo "$ac_t""yes" 1>&6
10658 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10659 cat >> confdefs.h <<EOF
10660#define $ac_tr_hdr 1
10f2d63a 10661EOF
698dcdb6
VZ
10662
10663else
10664 echo "$ac_t""no" 1>&6
10f2d63a
VZ
10665fi
10666done
10667
698dcdb6 10668for ac_hdr in stdlib.h
9cfadba2 10669do
698dcdb6
VZ
10670ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10671echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
d73be714 10672echo "configure:10673: checking for $ac_hdr" >&5
698dcdb6
VZ
10673if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10674 echo $ac_n "(cached) $ac_c" 1>&6
10675else
10676 cat > conftest.$ac_ext <<EOF
d73be714 10677#line 10678 "configure"
9cfadba2 10678#include "confdefs.h"
698dcdb6
VZ
10679#include <$ac_hdr>
10680EOF
10681ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
d73be714 10682{ (eval echo configure:10683: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
10683ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10684if test -z "$ac_err"; then
10685 rm -rf conftest*
10686 eval "ac_cv_header_$ac_safe=yes"
6232543b 10687else
698dcdb6
VZ
10688 echo "$ac_err" >&5
10689 echo "configure: failed program was:" >&5
9cfadba2 10690 cat conftest.$ac_ext >&5
698dcdb6
VZ
10691 rm -rf conftest*
10692 eval "ac_cv_header_$ac_safe=no"
9cfadba2 10693fi
698dcdb6 10694rm -f conftest*
9cfadba2 10695fi
698dcdb6
VZ
10696if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10697 echo "$ac_t""yes" 1>&6
10698 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10699 cat >> confdefs.h <<EOF
10700#define $ac_tr_hdr 1
9cfadba2 10701EOF
698dcdb6
VZ
10702
10703else
10704 echo "$ac_t""no" 1>&6
9cfadba2
VZ
10705fi
10706done
10f2d63a 10707
698dcdb6 10708for ac_hdr in unistd.h
10f2d63a 10709do
698dcdb6
VZ
10710ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10711echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
d73be714 10712echo "configure:10713: checking for $ac_hdr" >&5
698dcdb6
VZ
10713if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10714 echo $ac_n "(cached) $ac_c" 1>&6
10715else
10716 cat > conftest.$ac_ext <<EOF
d73be714 10717#line 10718 "configure"
10f2d63a 10718#include "confdefs.h"
698dcdb6
VZ
10719#include <$ac_hdr>
10720EOF
10721ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
d73be714 10722{ (eval echo configure:10723: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
10723ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10724if test -z "$ac_err"; then
10725 rm -rf conftest*
10726 eval "ac_cv_header_$ac_safe=yes"
6232543b 10727else
698dcdb6
VZ
10728 echo "$ac_err" >&5
10729 echo "configure: failed program was:" >&5
10f2d63a 10730 cat conftest.$ac_ext >&5
698dcdb6
VZ
10731 rm -rf conftest*
10732 eval "ac_cv_header_$ac_safe=no"
10f2d63a 10733fi
698dcdb6 10734rm -f conftest*
10f2d63a 10735fi
698dcdb6
VZ
10736if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10737 echo "$ac_t""yes" 1>&6
10738 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10739 cat >> confdefs.h <<EOF
10740#define $ac_tr_hdr 1
10f2d63a 10741EOF
698dcdb6
VZ
10742
10743else
10744 echo "$ac_t""no" 1>&6
10f2d63a
VZ
10745fi
10746done
10747
698dcdb6 10748for ac_hdr in wchar.h
10f2d63a 10749do
698dcdb6
VZ
10750ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10751echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
d73be714 10752echo "configure:10753: checking for $ac_hdr" >&5
698dcdb6
VZ
10753if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10754 echo $ac_n "(cached) $ac_c" 1>&6
10755else
10756 cat > conftest.$ac_ext <<EOF
d73be714 10757#line 10758 "configure"
10f2d63a 10758#include "confdefs.h"
698dcdb6
VZ
10759#include <$ac_hdr>
10760EOF
10761ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
d73be714 10762{ (eval echo configure:10763: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
10763ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10764if test -z "$ac_err"; then
10765 rm -rf conftest*
10766 eval "ac_cv_header_$ac_safe=yes"
6f72b082 10767else
698dcdb6
VZ
10768 echo "$ac_err" >&5
10769 echo "configure: failed program was:" >&5
6f72b082 10770 cat conftest.$ac_ext >&5
698dcdb6
VZ
10771 rm -rf conftest*
10772 eval "ac_cv_header_$ac_safe=no"
6f72b082 10773fi
698dcdb6 10774rm -f conftest*
6f72b082 10775fi
698dcdb6
VZ
10776if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10777 echo "$ac_t""yes" 1>&6
10778 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10779 cat >> confdefs.h <<EOF
10780#define $ac_tr_hdr 1
6f72b082 10781EOF
698dcdb6
VZ
10782
10783else
10784 echo "$ac_t""no" 1>&6
6f72b082
OK
10785fi
10786done
10787
698dcdb6 10788for ac_hdr in wcstr.h
6f72b082 10789do
698dcdb6
VZ
10790ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10791echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
d73be714 10792echo "configure:10793: checking for $ac_hdr" >&5
698dcdb6
VZ
10793if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10794 echo $ac_n "(cached) $ac_c" 1>&6
10795else
10796 cat > conftest.$ac_ext <<EOF
d73be714 10797#line 10798 "configure"
6f72b082 10798#include "confdefs.h"
698dcdb6
VZ
10799#include <$ac_hdr>
10800EOF
10801ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
d73be714 10802{ (eval echo configure:10803: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
10803ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10804if test -z "$ac_err"; then
10805 rm -rf conftest*
10806 eval "ac_cv_header_$ac_safe=yes"
6f72b082 10807else
698dcdb6
VZ
10808 echo "$ac_err" >&5
10809 echo "configure: failed program was:" >&5
6f72b082 10810 cat conftest.$ac_ext >&5
698dcdb6
VZ
10811 rm -rf conftest*
10812 eval "ac_cv_header_$ac_safe=no"
6f72b082 10813fi
698dcdb6 10814rm -f conftest*
6f72b082 10815fi
698dcdb6
VZ
10816if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10817 echo "$ac_t""yes" 1>&6
10818 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10819 cat >> confdefs.h <<EOF
10820#define $ac_tr_hdr 1
6f72b082 10821EOF
698dcdb6
VZ
10822
10823else
10824 echo "$ac_t""no" 1>&6
6f72b082
OK
10825fi
10826done
10827
698dcdb6 10828for ac_hdr in fnmatch.h
6f72b082 10829do
698dcdb6
VZ
10830ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10831echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
d73be714 10832echo "configure:10833: checking for $ac_hdr" >&5
698dcdb6
VZ
10833if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10834 echo $ac_n "(cached) $ac_c" 1>&6
10835else
10836 cat > conftest.$ac_ext <<EOF
d73be714 10837#line 10838 "configure"
6f72b082 10838#include "confdefs.h"
698dcdb6
VZ
10839#include <$ac_hdr>
10840EOF
10841ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
d73be714 10842{ (eval echo configure:10843: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
10843ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10844if test -z "$ac_err"; then
10845 rm -rf conftest*
10846 eval "ac_cv_header_$ac_safe=yes"
10f2d63a 10847else
698dcdb6
VZ
10848 echo "$ac_err" >&5
10849 echo "configure: failed program was:" >&5
10f2d63a 10850 cat conftest.$ac_ext >&5
698dcdb6
VZ
10851 rm -rf conftest*
10852 eval "ac_cv_header_$ac_safe=no"
10f2d63a 10853fi
698dcdb6 10854rm -f conftest*
10f2d63a 10855fi
698dcdb6
VZ
10856if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10857 echo "$ac_t""yes" 1>&6
10858 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10859 cat >> confdefs.h <<EOF
10860#define $ac_tr_hdr 1
10f2d63a 10861EOF
698dcdb6
VZ
10862
10863else
10864 echo "$ac_t""no" 1>&6
10f2d63a
VZ
10865fi
10866done
10867
698dcdb6 10868for ac_hdr in iconv.h
0fb0dd83 10869do
698dcdb6
VZ
10870ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10871echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
d73be714 10872echo "configure:10873: checking for $ac_hdr" >&5
698dcdb6
VZ
10873if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10874 echo $ac_n "(cached) $ac_c" 1>&6
10875else
10876 cat > conftest.$ac_ext <<EOF
d73be714 10877#line 10878 "configure"
0fb0dd83 10878#include "confdefs.h"
698dcdb6
VZ
10879#include <$ac_hdr>
10880EOF
10881ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
d73be714 10882{ (eval echo configure:10883: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
10883ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10884if test -z "$ac_err"; then
10885 rm -rf conftest*
10886 eval "ac_cv_header_$ac_safe=yes"
0fb0dd83 10887else
698dcdb6
VZ
10888 echo "$ac_err" >&5
10889 echo "configure: failed program was:" >&5
0fb0dd83 10890 cat conftest.$ac_ext >&5
698dcdb6
VZ
10891 rm -rf conftest*
10892 eval "ac_cv_header_$ac_safe=no"
0fb0dd83 10893fi
698dcdb6 10894rm -f conftest*
0fb0dd83 10895fi
698dcdb6
VZ
10896if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10897 echo "$ac_t""yes" 1>&6
10898 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10899 cat >> confdefs.h <<EOF
10900#define $ac_tr_hdr 1
0fb0dd83 10901EOF
698dcdb6
VZ
10902
10903else
10904 echo "$ac_t""no" 1>&6
0fb0dd83
RR
10905fi
10906done
10907
698dcdb6 10908for ac_hdr in langinfo.h
1f8ae82f 10909do
698dcdb6
VZ
10910ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10911echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
d73be714 10912echo "configure:10913: checking for $ac_hdr" >&5
698dcdb6
VZ
10913if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10914 echo $ac_n "(cached) $ac_c" 1>&6
10915else
10916 cat > conftest.$ac_ext <<EOF
d73be714 10917#line 10918 "configure"
1f8ae82f 10918#include "confdefs.h"
698dcdb6
VZ
10919#include <$ac_hdr>
10920EOF
10921ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
d73be714 10922{ (eval echo configure:10923: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
10923ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10924if test -z "$ac_err"; then
10925 rm -rf conftest*
10926 eval "ac_cv_header_$ac_safe=yes"
1f8ae82f 10927else
698dcdb6
VZ
10928 echo "$ac_err" >&5
10929 echo "configure: failed program was:" >&5
1f8ae82f 10930 cat conftest.$ac_ext >&5
698dcdb6
VZ
10931 rm -rf conftest*
10932 eval "ac_cv_header_$ac_safe=no"
1f8ae82f 10933fi
698dcdb6 10934rm -f conftest*
1f8ae82f 10935fi
698dcdb6
VZ
10936if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10937 echo "$ac_t""yes" 1>&6
10938 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10939 cat >> confdefs.h <<EOF
10940#define $ac_tr_hdr 1
1f8ae82f 10941EOF
698dcdb6
VZ
10942
10943else
10944 echo "$ac_t""no" 1>&6
1f8ae82f
GD
10945fi
10946done
10947
698dcdb6 10948
73fd4a60
VZ
10949if test "$wxUSE_GUI" = "yes"; then
10950 if test "$wxUSE_UNIX" = "yes"; then
698dcdb6 10951 for ac_hdr in X11/XKBlib.h
10f2d63a 10952do
698dcdb6
VZ
10953ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10954echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
d73be714 10955echo "configure:10956: checking for $ac_hdr" >&5
698dcdb6
VZ
10956if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10957 echo $ac_n "(cached) $ac_c" 1>&6
10958else
10959 cat > conftest.$ac_ext <<EOF
d73be714 10960#line 10961 "configure"
10f2d63a 10961#include "confdefs.h"
698dcdb6
VZ
10962#include <$ac_hdr>
10963EOF
10964ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
d73be714 10965{ (eval echo configure:10966: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
10966ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10967if test -z "$ac_err"; then
10968 rm -rf conftest*
10969 eval "ac_cv_header_$ac_safe=yes"
10f2d63a 10970else
698dcdb6
VZ
10971 echo "$ac_err" >&5
10972 echo "configure: failed program was:" >&5
10f2d63a 10973 cat conftest.$ac_ext >&5
698dcdb6
VZ
10974 rm -rf conftest*
10975 eval "ac_cv_header_$ac_safe=no"
10f2d63a 10976fi
698dcdb6 10977rm -f conftest*
10f2d63a 10978fi
698dcdb6
VZ
10979if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10980 echo "$ac_t""yes" 1>&6
10981 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10982 cat >> confdefs.h <<EOF
10983#define $ac_tr_hdr 1
10f2d63a 10984EOF
698dcdb6
VZ
10985
10986else
10987 echo "$ac_t""no" 1>&6
10f2d63a
VZ
10988fi
10989done
10990
73fd4a60 10991 fi
10f2d63a
VZ
10992fi
10993
698dcdb6
VZ
10994
10995echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
d73be714 10996echo "configure:10997: checking for ANSI C header files" >&5
698dcdb6
VZ
10997if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
10998 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 10999else
698dcdb6 11000 cat > conftest.$ac_ext <<EOF
d73be714 11001#line 11002 "configure"
10f2d63a
VZ
11002#include "confdefs.h"
11003#include <stdlib.h>
11004#include <stdarg.h>
11005#include <string.h>
11006#include <float.h>
698dcdb6
VZ
11007EOF
11008ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
d73be714 11009{ (eval echo configure:11010: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
11010ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11011if test -z "$ac_err"; then
11012 rm -rf conftest*
10f2d63a
VZ
11013 ac_cv_header_stdc=yes
11014else
698dcdb6
VZ
11015 echo "$ac_err" >&5
11016 echo "configure: failed program was:" >&5
10f2d63a 11017 cat conftest.$ac_ext >&5
698dcdb6 11018 rm -rf conftest*
10f2d63a
VZ
11019 ac_cv_header_stdc=no
11020fi
698dcdb6 11021rm -f conftest*
10f2d63a
VZ
11022
11023if test $ac_cv_header_stdc = yes; then
11024 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
698dcdb6 11025cat > conftest.$ac_ext <<EOF
d73be714 11026#line 11027 "configure"
10f2d63a
VZ
11027#include "confdefs.h"
11028#include <string.h>
698dcdb6 11029EOF
10f2d63a
VZ
11030if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11031 egrep "memchr" >/dev/null 2>&1; then
11032 :
11033else
698dcdb6 11034 rm -rf conftest*
10f2d63a
VZ
11035 ac_cv_header_stdc=no
11036fi
11037rm -f conftest*
11038
11039fi
11040
11041if test $ac_cv_header_stdc = yes; then
11042 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
698dcdb6 11043cat > conftest.$ac_ext <<EOF
d73be714 11044#line 11045 "configure"
10f2d63a
VZ
11045#include "confdefs.h"
11046#include <stdlib.h>
698dcdb6 11047EOF
10f2d63a
VZ
11048if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11049 egrep "free" >/dev/null 2>&1; then
11050 :
11051else
698dcdb6 11052 rm -rf conftest*
10f2d63a
VZ
11053 ac_cv_header_stdc=no
11054fi
11055rm -f conftest*
11056
11057fi
11058
11059if test $ac_cv_header_stdc = yes; then
11060 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
698dcdb6 11061if test "$cross_compiling" = yes; then
10f2d63a
VZ
11062 :
11063else
698dcdb6 11064 cat > conftest.$ac_ext <<EOF
d73be714 11065#line 11066 "configure"
10f2d63a
VZ
11066#include "confdefs.h"
11067#include <ctype.h>
698dcdb6
VZ
11068#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11069#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1e487827 11070#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
698dcdb6
VZ
11071int main () { int i; for (i = 0; i < 256; i++)
11072if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
11073exit (0); }
11074
11075EOF
d73be714 11076if { (eval echo configure:11077: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6 11077then
10f2d63a
VZ
11078 :
11079else
698dcdb6
VZ
11080 echo "configure: failed program was:" >&5
11081 cat conftest.$ac_ext >&5
11082 rm -fr conftest*
11083 ac_cv_header_stdc=no
10f2d63a 11084fi
698dcdb6 11085rm -fr conftest*
10f2d63a 11086fi
698dcdb6 11087
10f2d63a
VZ
11088fi
11089fi
1e487827 11090
698dcdb6
VZ
11091echo "$ac_t""$ac_cv_header_stdc" 1>&6
11092if test $ac_cv_header_stdc = yes; then
11093 cat >> confdefs.h <<\EOF
10f2d63a
VZ
11094#define STDC_HEADERS 1
11095EOF
11096
11097fi
11098
698dcdb6 11099echo $ac_n "checking for mode_t""... $ac_c" 1>&6
d73be714 11100echo "configure:11101: checking for mode_t" >&5
698dcdb6
VZ
11101if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
11102 echo $ac_n "(cached) $ac_c" 1>&6
1e487827 11103else
698dcdb6 11104 cat > conftest.$ac_ext <<EOF
d73be714 11105#line 11106 "configure"
1e487827 11106#include "confdefs.h"
698dcdb6
VZ
11107#include <sys/types.h>
11108#if STDC_HEADERS
11109#include <stdlib.h>
11110#include <stddef.h>
11111#endif
11112EOF
11113if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11114 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
11115 rm -rf conftest*
10f2d63a
VZ
11116 ac_cv_type_mode_t=yes
11117else
698dcdb6
VZ
11118 rm -rf conftest*
11119 ac_cv_type_mode_t=no
703e0a69 11120fi
698dcdb6 11121rm -f conftest*
1e487827 11122
698dcdb6
VZ
11123fi
11124echo "$ac_t""$ac_cv_type_mode_t" 1>&6
11125if test $ac_cv_type_mode_t = no; then
11126 cat >> confdefs.h <<\EOF
10f2d63a
VZ
11127#define mode_t int
11128EOF
11129
11130fi
11131
698dcdb6 11132echo $ac_n "checking for off_t""... $ac_c" 1>&6
d73be714 11133echo "configure:11134: checking for off_t" >&5
698dcdb6
VZ
11134if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
11135 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 11136else
698dcdb6 11137 cat > conftest.$ac_ext <<EOF
d73be714 11138#line 11139 "configure"
10f2d63a 11139#include "confdefs.h"
698dcdb6
VZ
11140#include <sys/types.h>
11141#if STDC_HEADERS
11142#include <stdlib.h>
11143#include <stddef.h>
11144#endif
11145EOF
11146if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11147 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
11148 rm -rf conftest*
10f2d63a
VZ
11149 ac_cv_type_off_t=yes
11150else
698dcdb6
VZ
11151 rm -rf conftest*
11152 ac_cv_type_off_t=no
703e0a69 11153fi
698dcdb6 11154rm -f conftest*
1e487827 11155
698dcdb6
VZ
11156fi
11157echo "$ac_t""$ac_cv_type_off_t" 1>&6
11158if test $ac_cv_type_off_t = no; then
11159 cat >> confdefs.h <<\EOF
10f2d63a
VZ
11160#define off_t long
11161EOF
11162
11163fi
11164
698dcdb6 11165echo $ac_n "checking for pid_t""... $ac_c" 1>&6
d73be714 11166echo "configure:11167: checking for pid_t" >&5
698dcdb6
VZ
11167if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
11168 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 11169else
698dcdb6 11170 cat > conftest.$ac_ext <<EOF
d73be714 11171#line 11172 "configure"
10f2d63a 11172#include "confdefs.h"
698dcdb6
VZ
11173#include <sys/types.h>
11174#if STDC_HEADERS
11175#include <stdlib.h>
11176#include <stddef.h>
11177#endif
11178EOF
11179if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11180 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
11181 rm -rf conftest*
10f2d63a
VZ
11182 ac_cv_type_pid_t=yes
11183else
698dcdb6
VZ
11184 rm -rf conftest*
11185 ac_cv_type_pid_t=no
703e0a69 11186fi
698dcdb6 11187rm -f conftest*
1e487827 11188
698dcdb6
VZ
11189fi
11190echo "$ac_t""$ac_cv_type_pid_t" 1>&6
11191if test $ac_cv_type_pid_t = no; then
11192 cat >> confdefs.h <<\EOF
10f2d63a
VZ
11193#define pid_t int
11194EOF
11195
11196fi
11197
698dcdb6 11198echo $ac_n "checking for size_t""... $ac_c" 1>&6
d73be714 11199echo "configure:11200: checking for size_t" >&5
698dcdb6
VZ
11200if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
11201 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 11202else
698dcdb6 11203 cat > conftest.$ac_ext <<EOF
d73be714 11204#line 11205 "configure"
10f2d63a 11205#include "confdefs.h"
698dcdb6
VZ
11206#include <sys/types.h>
11207#if STDC_HEADERS
11208#include <stdlib.h>
11209#include <stddef.h>
11210#endif
11211EOF
11212if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11213 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
11214 rm -rf conftest*
10f2d63a
VZ
11215 ac_cv_type_size_t=yes
11216else
698dcdb6
VZ
11217 rm -rf conftest*
11218 ac_cv_type_size_t=no
703e0a69 11219fi
698dcdb6 11220rm -f conftest*
1e487827 11221
698dcdb6
VZ
11222fi
11223echo "$ac_t""$ac_cv_type_size_t" 1>&6
11224if test $ac_cv_type_size_t = no; then
11225 cat >> confdefs.h <<\EOF
10f2d63a
VZ
11226#define size_t unsigned
11227EOF
11228
11229fi
11230
698dcdb6 11231echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
d73be714 11232echo "configure:11233: checking for uid_t in sys/types.h" >&5
698dcdb6
VZ
11233if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
11234 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 11235else
698dcdb6 11236 cat > conftest.$ac_ext <<EOF
d73be714 11237#line 11238 "configure"
10f2d63a
VZ
11238#include "confdefs.h"
11239#include <sys/types.h>
698dcdb6 11240EOF
10f2d63a
VZ
11241if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11242 egrep "uid_t" >/dev/null 2>&1; then
698dcdb6 11243 rm -rf conftest*
10f2d63a
VZ
11244 ac_cv_type_uid_t=yes
11245else
698dcdb6 11246 rm -rf conftest*
10f2d63a
VZ
11247 ac_cv_type_uid_t=no
11248fi
11249rm -f conftest*
11250
11251fi
1e487827 11252
698dcdb6
VZ
11253echo "$ac_t""$ac_cv_type_uid_t" 1>&6
11254if test $ac_cv_type_uid_t = no; then
11255 cat >> confdefs.h <<\EOF
10f2d63a
VZ
11256#define uid_t int
11257EOF
11258
698dcdb6 11259 cat >> confdefs.h <<\EOF
10f2d63a
VZ
11260#define gid_t int
11261EOF
11262
11263fi
11264
1e487827 11265
698dcdb6 11266echo $ac_n "checking for wchar_t""... $ac_c" 1>&6
d73be714 11267echo "configure:11268: checking for wchar_t" >&5
698dcdb6
VZ
11268if eval "test \"`echo '$''{'wx_cv_type_wchar_t'+set}'`\" = set"; then
11269 echo $ac_n "(cached) $ac_c" 1>&6
11270else
11271
11272 cat > conftest.$ac_ext <<EOF
d73be714 11273#line 11274 "configure"
0046ff7c
VS
11274#include "confdefs.h"
11275#include <wchar.h>
698dcdb6 11276int main() {
0046ff7c 11277
d836ee96
VZ
11278 wchar_t wc, *ws;
11279 wc = L'a';
11280 ws = L"Hello, world!";
698dcdb6
VZ
11281
11282; return 0; }
11283EOF
d73be714 11284if { (eval echo configure:11285: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 11285 rm -rf conftest*
1f8ae82f
GD
11286 wx_cv_type_wchar_t=yes
11287else
698dcdb6
VZ
11288 echo "configure: failed program was:" >&5
11289 cat conftest.$ac_ext >&5
11290 rm -rf conftest*
11291 cat > conftest.$ac_ext <<EOF
d73be714 11292#line 11293 "configure"
1f8ae82f
GD
11293#include "confdefs.h"
11294#include <stdlib.h>
698dcdb6 11295int main() {
1f8ae82f 11296
d836ee96
VZ
11297 wchar_t wc, *ws;
11298 wc = L'a';
11299 ws = L"Hello, world!";
698dcdb6
VZ
11300
11301; return 0; }
11302EOF
d73be714 11303if { (eval echo configure:11304: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 11304 rm -rf conftest*
0046ff7c
VS
11305 wx_cv_type_wchar_t=yes
11306else
698dcdb6
VZ
11307 echo "configure: failed program was:" >&5
11308 cat conftest.$ac_ext >&5
11309 rm -rf conftest*
11310 wx_cv_type_wchar_t=no
0046ff7c 11311fi
698dcdb6 11312rm -f conftest*
d836ee96 11313
6232543b 11314fi
698dcdb6 11315rm -f conftest*
703e0a69 11316
1e487827 11317fi
698dcdb6
VZ
11318
11319echo "$ac_t""$wx_cv_type_wchar_t" 1>&6
d836ee96
VZ
11320
11321if test "$wx_cv_type_wchar_t" = "yes"; then
698dcdb6 11322 cat >> confdefs.h <<\EOF
0046ff7c
VS
11323#define wxUSE_WCHAR_T 1
11324EOF
11325
11326fi
11327
19af3b06
VZ
11328
11329ac_ext=C
11330# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11331ac_cpp='$CXXCPP $CPPFLAGS'
11332ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11333ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11334cross_compiling=$ac_cv_prog_cxx_cross
11335
d836ee96 11336echo $ac_n "checking if size_t is unsigned int""... $ac_c" 1>&6
d73be714 11337echo "configure:11338: checking if size_t is unsigned int" >&5
d836ee96
VZ
11338if eval "test \"`echo '$''{'wx_cv_size_t_is_uint'+set}'`\" = set"; then
11339 echo $ac_n "(cached) $ac_c" 1>&6
11340else
dd2c8b7c 11341 cat > conftest.$ac_ext <<EOF
d73be714 11342#line 11343 "configure"
d836ee96
VZ
11343#include "confdefs.h"
11344#include <stddef.h>
11345int main() {
11346
dd2c8b7c
VZ
11347 return 0; }
11348
d836ee96 11349 struct Foo { void foo(size_t); void foo(unsigned int); };
dd2c8b7c
VZ
11350
11351 int bar() {
d836ee96
VZ
11352
11353; return 0; }
11354EOF
d73be714 11355if { (eval echo configure:11356: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d836ee96
VZ
11356 rm -rf conftest*
11357 wx_cv_size_t_is_uint=no
11358else
11359 echo "configure: failed program was:" >&5
11360 cat conftest.$ac_ext >&5
11361 rm -rf conftest*
11362 wx_cv_size_t_is_uint=yes
11363
11364fi
11365rm -f conftest*
11366
11367fi
11368
11369echo "$ac_t""$wx_cv_size_t_is_uint" 1>&6
11370
11371if test "$wx_cv_size_t_is_uint" = "yes"; then
11372 cat >> confdefs.h <<\EOF
11373#define wxSIZE_T_IS_UINT 1
11374EOF
11375
11376else
11377 echo $ac_n "checking if size_t is unsigned long""... $ac_c" 1>&6
d73be714 11378echo "configure:11379: checking if size_t is unsigned long" >&5
d836ee96
VZ
11379if eval "test \"`echo '$''{'wx_cv_size_t_is_ulong'+set}'`\" = set"; then
11380 echo $ac_n "(cached) $ac_c" 1>&6
11381else
11382 cat > conftest.$ac_ext <<EOF
d73be714 11383#line 11384 "configure"
d836ee96
VZ
11384#include "confdefs.h"
11385#include <stddef.h>
11386int main() {
11387
dd2c8b7c
VZ
11388 return 0; }
11389
d836ee96 11390 struct Foo { void foo(size_t); void foo(unsigned long); };
dd2c8b7c
VZ
11391
11392 int bar() {
d836ee96
VZ
11393
11394; return 0; }
11395EOF
d73be714 11396if { (eval echo configure:11397: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d836ee96
VZ
11397 rm -rf conftest*
11398 wx_cv_size_t_is_ulong=no
11399else
11400 echo "configure: failed program was:" >&5
11401 cat conftest.$ac_ext >&5
11402 rm -rf conftest*
11403 wx_cv_size_t_is_ulong=yes
11404
11405fi
11406rm -f conftest*
11407
11408fi
11409
11410echo "$ac_t""$wx_cv_size_t_is_ulong" 1>&6
11411
11412 if test "$wx_cv_size_t_is_ulong" = "yes"; then
11413 cat >> confdefs.h <<\EOF
11414#define wxSIZE_T_IS_ULONG 1
11415EOF
11416
11417 fi
11418fi
11419
19af3b06
VZ
11420ac_ext=c
11421# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11422ac_cpp='$CPP $CPPFLAGS'
11423ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11424ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11425cross_compiling=$ac_cv_prog_cc_cross
11426
11427
1e487827 11428
698dcdb6 11429echo $ac_n "checking for pw_gecos in struct passwd""... $ac_c" 1>&6
d73be714 11430echo "configure:11431: checking for pw_gecos in struct passwd" >&5
698dcdb6
VZ
11431if eval "test \"`echo '$''{'wx_cv_struct_pw_gecos'+set}'`\" = set"; then
11432 echo $ac_n "(cached) $ac_c" 1>&6
11433else
11434
11435 cat > conftest.$ac_ext <<EOF
d73be714 11436#line 11437 "configure"
b12915c1
VZ
11437#include "confdefs.h"
11438#include <pwd.h>
698dcdb6 11439int main() {
b12915c1
VZ
11440
11441 char *p;
11442 struct passwd *pw;
11443 p = pw->pw_gecos;
698dcdb6
VZ
11444
11445; return 0; }
11446EOF
d73be714 11447if { (eval echo configure:11448: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
11448 rm -rf conftest*
11449
b12915c1 11450 wx_cv_struct_pw_gecos=yes
698dcdb6 11451
b12915c1 11452else
698dcdb6
VZ
11453 echo "configure: failed program was:" >&5
11454 cat conftest.$ac_ext >&5
11455 rm -rf conftest*
11456
b12915c1 11457 wx_cv_struct_pw_gecos=no
698dcdb6
VZ
11458
11459
6232543b 11460fi
698dcdb6
VZ
11461rm -f conftest*
11462
703e0a69 11463
1e487827 11464fi
698dcdb6
VZ
11465
11466echo "$ac_t""$wx_cv_struct_pw_gecos" 1>&6
b12915c1 11467
bd3277fe 11468if test "$wx_cv_struct_pw_gecos" = "yes"; then
698dcdb6 11469 cat >> confdefs.h <<\EOF
bd3277fe
VZ
11470#define HAVE_PW_GECOS 1
11471EOF
11472
11473fi
11474
698dcdb6
VZ
11475
11476echo $ac_n "checking for working const""... $ac_c" 1>&6
d73be714 11477echo "configure:11478: checking for working const" >&5
698dcdb6
VZ
11478if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
11479 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 11480else
698dcdb6 11481 cat > conftest.$ac_ext <<EOF
d73be714 11482#line 11483 "configure"
10f2d63a 11483#include "confdefs.h"
698dcdb6
VZ
11484
11485int main() {
11486
11487/* Ultrix mips cc rejects this. */
11488typedef int charset[2]; const charset x;
11489/* SunOS 4.1.1 cc rejects this. */
11490char const *const *ccp;
11491char **p;
11492/* NEC SVR4.0.2 mips cc rejects this. */
11493struct point {int x, y;};
11494static struct point const zero = {0,0};
11495/* AIX XL C 1.02.0.0 rejects this.
11496 It does not let you subtract one const X* pointer from another in an arm
11497 of an if-expression whose if-part is not a constant expression */
11498const char *g = "string";
11499ccp = &g + (g ? g-g : 0);
11500/* HPUX 7.0 cc rejects these. */
11501++ccp;
11502p = (char**) ccp;
11503ccp = (char const *const *) p;
11504{ /* SCO 3.2v4 cc rejects this. */
11505 char *t;
11506 char const *s = 0 ? (char *) 0 : (char const *) 0;
11507
11508 *t++ = 0;
10f2d63a 11509}
698dcdb6
VZ
11510{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
11511 int x[] = {25, 17};
11512 const int *foo = &x[0];
11513 ++foo;
703e0a69 11514}
698dcdb6
VZ
11515{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11516 typedef const int *iptr;
11517 iptr p = 0;
11518 ++p;
6232543b 11519}
698dcdb6
VZ
11520{ /* AIX XL C 1.02.0.0 rejects this saying
11521 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11522 struct s { int j; const int *ap[3]; };
11523 struct s *b; b->j = 5;
1e487827 11524}
698dcdb6
VZ
11525{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11526 const int foo = 10;
11527}
11528
11529; return 0; }
11530EOF
d73be714 11531if { (eval echo configure:11532: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 11532 rm -rf conftest*
10f2d63a
VZ
11533 ac_cv_c_const=yes
11534else
698dcdb6
VZ
11535 echo "configure: failed program was:" >&5
11536 cat conftest.$ac_ext >&5
11537 rm -rf conftest*
11538 ac_cv_c_const=no
10f2d63a 11539fi
698dcdb6 11540rm -f conftest*
10f2d63a 11541fi
1e487827 11542
698dcdb6
VZ
11543echo "$ac_t""$ac_cv_c_const" 1>&6
11544if test $ac_cv_c_const = no; then
11545 cat >> confdefs.h <<\EOF
11546#define const
10f2d63a
VZ
11547EOF
11548
11549fi
11550
698dcdb6 11551echo $ac_n "checking for inline""... $ac_c" 1>&6
d73be714 11552echo "configure:11553: checking for inline" >&5
698dcdb6
VZ
11553if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
11554 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
11555else
11556 ac_cv_c_inline=no
11557for ac_kw in inline __inline__ __inline; do
698dcdb6 11558 cat > conftest.$ac_ext <<EOF
d73be714 11559#line 11560 "configure"
10f2d63a
VZ
11560#include "confdefs.h"
11561
698dcdb6
VZ
11562int main() {
11563} $ac_kw foo() {
11564; return 0; }
11565EOF
d73be714 11566if { (eval echo configure:11567: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 11567 rm -rf conftest*
10f2d63a
VZ
11568 ac_cv_c_inline=$ac_kw; break
11569else
698dcdb6
VZ
11570 echo "configure: failed program was:" >&5
11571 cat conftest.$ac_ext >&5
10f2d63a 11572fi
698dcdb6 11573rm -f conftest*
10f2d63a
VZ
11574done
11575
11576fi
698dcdb6
VZ
11577
11578echo "$ac_t""$ac_cv_c_inline" 1>&6
11579case "$ac_cv_c_inline" in
10f2d63a 11580 inline | yes) ;;
698dcdb6
VZ
11581 no) cat >> confdefs.h <<\EOF
11582#define inline
10f2d63a
VZ
11583EOF
11584 ;;
698dcdb6 11585 *) cat >> confdefs.h <<EOF
10f2d63a
VZ
11586#define inline $ac_cv_c_inline
11587EOF
11588 ;;
11589esac
11590
698dcdb6
VZ
11591
11592echo $ac_n "checking size of char""... $ac_c" 1>&6
d73be714 11593echo "configure:11594: checking size of char" >&5
698dcdb6
VZ
11594if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
11595 echo $ac_n "(cached) $ac_c" 1>&6
6232543b 11596else
1e487827 11597 if test "$cross_compiling" = yes; then
698dcdb6 11598 ac_cv_sizeof_char=1
1e487827 11599else
698dcdb6 11600 cat > conftest.$ac_ext <<EOF
d73be714 11601#line 11602 "configure"
1e487827 11602#include "confdefs.h"
698dcdb6
VZ
11603#include <stdio.h>
11604main()
1e487827 11605{
698dcdb6
VZ
11606 FILE *f=fopen("conftestval", "w");
11607 if (!f) exit(1);
11608 fprintf(f, "%d\n", sizeof(char));
11609 exit(0);
1e487827 11610}
698dcdb6 11611EOF
d73be714 11612if { (eval echo configure:11613: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6
VZ
11613then
11614 ac_cv_sizeof_char=`cat conftestval`
1e487827 11615else
698dcdb6
VZ
11616 echo "configure: failed program was:" >&5
11617 cat conftest.$ac_ext >&5
11618 rm -fr conftest*
1e487827
VS
11619 ac_cv_sizeof_char=0
11620fi
698dcdb6 11621rm -fr conftest*
1e487827 11622fi
10f2d63a 11623
1e487827 11624fi
698dcdb6
VZ
11625echo "$ac_t""$ac_cv_sizeof_char" 1>&6
11626cat >> confdefs.h <<EOF
11627#define SIZEOF_CHAR $ac_cv_sizeof_char
1e487827 11628EOF
6232543b 11629
703e0a69 11630
698dcdb6 11631echo $ac_n "checking size of short""... $ac_c" 1>&6
d73be714 11632echo "configure:11633: checking size of short" >&5
698dcdb6
VZ
11633if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
11634 echo $ac_n "(cached) $ac_c" 1>&6
1e487827 11635else
1e487827 11636 if test "$cross_compiling" = yes; then
698dcdb6 11637 ac_cv_sizeof_short=2
1e487827 11638else
698dcdb6 11639 cat > conftest.$ac_ext <<EOF
d73be714 11640#line 11641 "configure"
1e487827 11641#include "confdefs.h"
698dcdb6
VZ
11642#include <stdio.h>
11643main()
1e487827 11644{
698dcdb6
VZ
11645 FILE *f=fopen("conftestval", "w");
11646 if (!f) exit(1);
11647 fprintf(f, "%d\n", sizeof(short));
11648 exit(0);
1e487827 11649}
698dcdb6 11650EOF
d73be714 11651if { (eval echo configure:11652: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6
VZ
11652then
11653 ac_cv_sizeof_short=`cat conftestval`
1e487827 11654else
698dcdb6
VZ
11655 echo "configure: failed program was:" >&5
11656 cat conftest.$ac_ext >&5
11657 rm -fr conftest*
11658 ac_cv_sizeof_short=0
1e487827 11659fi
698dcdb6 11660rm -fr conftest*
1e487827 11661fi
698dcdb6 11662
1e487827 11663fi
698dcdb6
VZ
11664echo "$ac_t""$ac_cv_sizeof_short" 1>&6
11665cat >> confdefs.h <<EOF
11666#define SIZEOF_SHORT $ac_cv_sizeof_short
11667EOF
11668
11669
11670echo $ac_n "checking size of int *""... $ac_c" 1>&6
d73be714 11671echo "configure:11672: checking size of int *" >&5
698dcdb6
VZ
11672if eval "test \"`echo '$''{'ac_cv_sizeof_int_p'+set}'`\" = set"; then
11673 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
11674else
11675 if test "$cross_compiling" = yes; then
698dcdb6 11676 ac_cv_sizeof_int_p=4
10f2d63a 11677else
698dcdb6 11678 cat > conftest.$ac_ext <<EOF
d73be714 11679#line 11680 "configure"
10f2d63a 11680#include "confdefs.h"
698dcdb6
VZ
11681#include <stdio.h>
11682main()
10f2d63a 11683{
698dcdb6
VZ
11684 FILE *f=fopen("conftestval", "w");
11685 if (!f) exit(1);
11686 fprintf(f, "%d\n", sizeof(int *));
11687 exit(0);
10f2d63a 11688}
698dcdb6 11689EOF
d73be714 11690if { (eval echo configure:11691: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6
VZ
11691then
11692 ac_cv_sizeof_int_p=`cat conftestval`
10f2d63a 11693else
698dcdb6
VZ
11694 echo "configure: failed program was:" >&5
11695 cat conftest.$ac_ext >&5
11696 rm -fr conftest*
11697 ac_cv_sizeof_int_p=0
6232543b 11698fi
698dcdb6 11699rm -fr conftest*
1e487827 11700fi
698dcdb6 11701
1e487827 11702fi
698dcdb6
VZ
11703echo "$ac_t""$ac_cv_sizeof_int_p" 1>&6
11704cat >> confdefs.h <<EOF
11705#define SIZEOF_INT_P $ac_cv_sizeof_int_p
10f2d63a
VZ
11706EOF
11707
698dcdb6
VZ
11708
11709echo $ac_n "checking size of int""... $ac_c" 1>&6
d73be714 11710echo "configure:11711: checking size of int" >&5
698dcdb6
VZ
11711if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
11712 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
11713else
11714 if test "$cross_compiling" = yes; then
698dcdb6 11715 ac_cv_sizeof_int=4
703e0a69 11716else
698dcdb6 11717 cat > conftest.$ac_ext <<EOF
d73be714 11718#line 11719 "configure"
1e487827 11719#include "confdefs.h"
698dcdb6
VZ
11720#include <stdio.h>
11721main()
1e487827 11722{
698dcdb6
VZ
11723 FILE *f=fopen("conftestval", "w");
11724 if (!f) exit(1);
11725 fprintf(f, "%d\n", sizeof(int));
11726 exit(0);
1e487827 11727}
698dcdb6 11728EOF
d73be714 11729if { (eval echo configure:11730: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6
VZ
11730then
11731 ac_cv_sizeof_int=`cat conftestval`
11732else
11733 echo "configure: failed program was:" >&5
11734 cat conftest.$ac_ext >&5
11735 rm -fr conftest*
11736 ac_cv_sizeof_int=0
703e0a69 11737fi
698dcdb6
VZ
11738rm -fr conftest*
11739fi
11740
11741fi
11742echo "$ac_t""$ac_cv_sizeof_int" 1>&6
11743cat >> confdefs.h <<EOF
11744#define SIZEOF_INT $ac_cv_sizeof_int
11745EOF
11746
11747
11748echo $ac_n "checking size of long""... $ac_c" 1>&6
d73be714 11749echo "configure:11750: checking size of long" >&5
698dcdb6
VZ
11750if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
11751 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
11752else
11753 if test "$cross_compiling" = yes; then
698dcdb6 11754 ac_cv_sizeof_long=4
10f2d63a 11755else
698dcdb6 11756 cat > conftest.$ac_ext <<EOF
d73be714 11757#line 11758 "configure"
10f2d63a 11758#include "confdefs.h"
698dcdb6
VZ
11759#include <stdio.h>
11760main()
10f2d63a 11761{
698dcdb6
VZ
11762 FILE *f=fopen("conftestval", "w");
11763 if (!f) exit(1);
11764 fprintf(f, "%d\n", sizeof(long));
11765 exit(0);
10f2d63a 11766}
698dcdb6 11767EOF
d73be714 11768if { (eval echo configure:11769: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6
VZ
11769then
11770 ac_cv_sizeof_long=`cat conftestval`
10f2d63a 11771else
698dcdb6
VZ
11772 echo "configure: failed program was:" >&5
11773 cat conftest.$ac_ext >&5
11774 rm -fr conftest*
11775 ac_cv_sizeof_long=0
10f2d63a 11776fi
698dcdb6 11777rm -fr conftest*
10f2d63a 11778fi
698dcdb6 11779
10f2d63a 11780fi
698dcdb6
VZ
11781echo "$ac_t""$ac_cv_sizeof_long" 1>&6
11782cat >> confdefs.h <<EOF
11783#define SIZEOF_LONG $ac_cv_sizeof_long
11784EOF
11785
11786
11787echo $ac_n "checking size of long long""... $ac_c" 1>&6
d73be714 11788echo "configure:11789: checking size of long long" >&5
698dcdb6
VZ
11789if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
11790 echo $ac_n "(cached) $ac_c" 1>&6
11791else
11792 if test "$cross_compiling" = yes; then
11793 ac_cv_sizeof_long_long=0
11794else
11795 cat > conftest.$ac_ext <<EOF
d73be714 11796#line 11797 "configure"
698dcdb6
VZ
11797#include "confdefs.h"
11798#include <stdio.h>
11799main()
11800{
11801 FILE *f=fopen("conftestval", "w");
11802 if (!f) exit(1);
11803 fprintf(f, "%d\n", sizeof(long long));
11804 exit(0);
11805}
11806EOF
d73be714 11807if { (eval echo configure:11808: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6
VZ
11808then
11809 ac_cv_sizeof_long_long=`cat conftestval`
6232543b 11810else
698dcdb6
VZ
11811 echo "configure: failed program was:" >&5
11812 cat conftest.$ac_ext >&5
11813 rm -fr conftest*
6232543b
VS
11814 ac_cv_sizeof_long_long=0
11815fi
698dcdb6
VZ
11816rm -fr conftest*
11817fi
11818
703e0a69 11819fi
698dcdb6
VZ
11820echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
11821cat >> confdefs.h <<EOF
10f2d63a
VZ
11822#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
11823EOF
11824
1e487827 11825
698dcdb6
VZ
11826
11827echo $ac_n "checking size of wchar_t""... $ac_c" 1>&6
d73be714 11828echo "configure:11829: checking size of wchar_t" >&5
698dcdb6
VZ
11829if eval "test \"`echo '$''{'wx_cv_sizeof_wchar_t'+set}'`\" = set"; then
11830 echo $ac_n "(cached) $ac_c" 1>&6
11831else
11832
b93d0d08
VS
11833 if test "$cross_compiling" = yes; then
11834 wx_cv_sizeof_wchar_t=4
1e6feb95 11835
b93d0d08 11836else
698dcdb6 11837 cat > conftest.$ac_ext <<EOF
d73be714 11838#line 11839 "configure"
b93d0d08
VS
11839#include "confdefs.h"
11840
1e6feb95
VZ
11841 #ifdef HAVE_WCHAR_H
11842 # include <wchar.h>
11843 #endif
11844 #ifdef HAVE_STDLIB_H
11845 # include <stdlib.h>
11846 #endif
11847 #include <stdio.h>
11848 int main()
11849 {
11850 FILE *f=fopen("conftestval", "w");
11851 if (!f) exit(1);
11852 fprintf(f, "%i", sizeof(wchar_t));
11853 exit(0);
11854 }
698dcdb6
VZ
11855
11856EOF
d73be714 11857if { (eval echo configure:11858: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6 11858then
b93d0d08
VS
11859 wx_cv_sizeof_wchar_t=`cat conftestval`
11860else
698dcdb6
VZ
11861 echo "configure: failed program was:" >&5
11862 cat conftest.$ac_ext >&5
11863 rm -fr conftest*
11864 wx_cv_sizeof_wchar_t=0
b93d0d08 11865fi
698dcdb6 11866rm -fr conftest*
b93d0d08
VS
11867fi
11868
698dcdb6 11869
b93d0d08
VS
11870fi
11871
698dcdb6
VZ
11872echo "$ac_t""$wx_cv_sizeof_wchar_t" 1>&6
11873
11874cat >> confdefs.h <<EOF
28c6addc 11875#define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t
b93d0d08
VS
11876EOF
11877
698dcdb6 11878
698dcdb6 11879echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
d73be714 11880echo "configure:11881: checking whether byte ordering is bigendian" >&5
698dcdb6
VZ
11881if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
11882 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
11883else
11884 ac_cv_c_bigendian=unknown
11885# See if sys/param.h defines the BYTE_ORDER macro.
698dcdb6 11886cat > conftest.$ac_ext <<EOF
d73be714 11887#line 11888 "configure"
10f2d63a
VZ
11888#include "confdefs.h"
11889#include <sys/types.h>
11890#include <sys/param.h>
698dcdb6 11891int main() {
10f2d63a
VZ
11892
11893#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
11894 bogus endian macros
11895#endif
698dcdb6
VZ
11896; return 0; }
11897EOF
d73be714 11898if { (eval echo configure:11899: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 11899 rm -rf conftest*
10f2d63a 11900 # It does; now see whether it defined to BIG_ENDIAN or not.
698dcdb6 11901cat > conftest.$ac_ext <<EOF
d73be714 11902#line 11903 "configure"
10f2d63a
VZ
11903#include "confdefs.h"
11904#include <sys/types.h>
11905#include <sys/param.h>
698dcdb6 11906int main() {
10f2d63a
VZ
11907
11908#if BYTE_ORDER != BIG_ENDIAN
11909 not big endian
11910#endif
698dcdb6
VZ
11911; return 0; }
11912EOF
d73be714 11913if { (eval echo configure:11914: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 11914 rm -rf conftest*
10f2d63a
VZ
11915 ac_cv_c_bigendian=yes
11916else
698dcdb6
VZ
11917 echo "configure: failed program was:" >&5
11918 cat conftest.$ac_ext >&5
11919 rm -rf conftest*
11920 ac_cv_c_bigendian=no
10f2d63a 11921fi
698dcdb6 11922rm -f conftest*
10f2d63a 11923else
698dcdb6
VZ
11924 echo "configure: failed program was:" >&5
11925 cat conftest.$ac_ext >&5
10f2d63a 11926fi
698dcdb6 11927rm -f conftest*
10f2d63a
VZ
11928if test $ac_cv_c_bigendian = unknown; then
11929if test "$cross_compiling" = yes; then
11930 ac_cv_c_bigendian=unknown
11931else
698dcdb6 11932 cat > conftest.$ac_ext <<EOF
d73be714 11933#line 11934 "configure"
10f2d63a
VZ
11934#include "confdefs.h"
11935main () {
11936 /* Are we little or big endian? From Harbison&Steele. */
11937 union
11938 {
11939 long l;
11940 char c[sizeof (long)];
11941 } u;
11942 u.l = 1;
11943 exit (u.c[sizeof (long) - 1] == 1);
11944}
698dcdb6 11945EOF
d73be714 11946if { (eval echo configure:11947: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6 11947then
10f2d63a
VZ
11948 ac_cv_c_bigendian=no
11949else
698dcdb6
VZ
11950 echo "configure: failed program was:" >&5
11951 cat conftest.$ac_ext >&5
11952 rm -fr conftest*
11953 ac_cv_c_bigendian=yes
10f2d63a 11954fi
698dcdb6 11955rm -fr conftest*
10f2d63a 11956fi
698dcdb6 11957
10f2d63a
VZ
11958fi
11959fi
698dcdb6
VZ
11960
11961echo "$ac_t""$ac_cv_c_bigendian" 1>&6
10f2d63a 11962if test $ac_cv_c_bigendian = unknown; then
698dcdb6 11963 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
10f2d63a
VZ
11964fi
11965if test $ac_cv_c_bigendian = yes; then
698dcdb6 11966 cat >> confdefs.h <<\EOF
10f2d63a
VZ
11967#define WORDS_BIGENDIAN 1
11968EOF
11969
11970fi
11971
698dcdb6
VZ
11972
11973
10f2d63a 11974 if test "$cross_compiling" = "yes"; then
698dcdb6 11975 cat >> confdefs.h <<\EOF
10f2d63a
VZ
11976#define wxUSE_IOSTREAMH 1
11977EOF
11978
11979 else
698dcdb6
VZ
11980
11981 ac_ext=C
11982# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1e487827 11983ac_cpp='$CXXCPP $CPPFLAGS'
698dcdb6
VZ
11984ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11985ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11986cross_compiling=$ac_cv_prog_cxx_cross
11987
703e0a69 11988
698dcdb6 11989 for ac_hdr in iostream
10f2d63a 11990do
698dcdb6
VZ
11991ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11992echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
d73be714 11993echo "configure:11994: checking for $ac_hdr" >&5
698dcdb6
VZ
11994if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11995 echo $ac_n "(cached) $ac_c" 1>&6
11996else
11997 cat > conftest.$ac_ext <<EOF
d73be714 11998#line 11999 "configure"
10f2d63a 11999#include "confdefs.h"
698dcdb6
VZ
12000#include <$ac_hdr>
12001EOF
12002ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
d73be714 12003{ (eval echo configure:12004: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
12004ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12005if test -z "$ac_err"; then
12006 rm -rf conftest*
12007 eval "ac_cv_header_$ac_safe=yes"
10f2d63a 12008else
698dcdb6
VZ
12009 echo "$ac_err" >&5
12010 echo "configure: failed program was:" >&5
10f2d63a 12011 cat conftest.$ac_ext >&5
698dcdb6
VZ
12012 rm -rf conftest*
12013 eval "ac_cv_header_$ac_safe=no"
10f2d63a 12014fi
698dcdb6 12015rm -f conftest*
10f2d63a 12016fi
698dcdb6
VZ
12017if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12018 echo "$ac_t""yes" 1>&6
12019 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12020 cat >> confdefs.h <<EOF
12021#define $ac_tr_hdr 1
10f2d63a 12022EOF
698dcdb6
VZ
12023
12024else
12025 echo "$ac_t""no" 1>&6
10f2d63a
VZ
12026fi
12027done
12028
698dcdb6 12029
57fe5ed0
VZ
12030 if test "$ac_cv_header_iostream" = "yes" ; then
12031 :
12032 else
698dcdb6 12033 cat >> confdefs.h <<\EOF
10f2d63a
VZ
12034#define wxUSE_IOSTREAMH 1
12035EOF
12036
10f2d63a
VZ
12037 fi
12038
12039 ac_ext=c
698dcdb6 12040# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10f2d63a 12041ac_cpp='$CPP $CPPFLAGS'
698dcdb6
VZ
12042ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12043ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12044cross_compiling=$ac_cv_prog_cc_cross
10f2d63a
VZ
12045
12046 fi
12047
703e0a69 12048
698dcdb6
VZ
12049
12050 echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6
d73be714 12051echo "configure:12052: checking if C++ compiler supports bool" >&5
698dcdb6
VZ
12052if eval "test \"`echo '$''{'wx_cv_cpp_bool'+set}'`\" = set"; then
12053 echo $ac_n "(cached) $ac_c" 1>&6
12054else
12055
12056
12057 ac_ext=C
12058# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1e487827 12059ac_cpp='$CXXCPP $CPPFLAGS'
698dcdb6
VZ
12060ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12061ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12062cross_compiling=$ac_cv_prog_cxx_cross
10f2d63a 12063
698dcdb6
VZ
12064
12065 cat > conftest.$ac_ext <<EOF
d73be714 12066#line 12067 "configure"
10f2d63a
VZ
12067#include "confdefs.h"
12068
698dcdb6
VZ
12069
12070int main() {
10f2d63a
VZ
12071
12072 bool b = true;
12073
12074 return 0;
698dcdb6
VZ
12075
12076; return 0; }
12077EOF
d73be714 12078if { (eval echo configure:12079: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
12079 rm -rf conftest*
12080
10f2d63a 12081 wx_cv_cpp_bool=yes
698dcdb6 12082
10f2d63a 12083else
698dcdb6
VZ
12084 echo "configure: failed program was:" >&5
12085 cat conftest.$ac_ext >&5
12086 rm -rf conftest*
12087
10f2d63a 12088 wx_cv_cpp_bool=no
698dcdb6
VZ
12089
12090
10f2d63a 12091fi
698dcdb6 12092rm -f conftest*
10f2d63a
VZ
12093
12094 ac_ext=c
698dcdb6 12095# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10f2d63a 12096ac_cpp='$CPP $CPPFLAGS'
698dcdb6
VZ
12097ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12098ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12099cross_compiling=$ac_cv_prog_cc_cross
10f2d63a 12100
698dcdb6 12101
10f2d63a 12102fi
698dcdb6
VZ
12103
12104echo "$ac_t""$wx_cv_cpp_bool" 1>&6
10f2d63a
VZ
12105
12106 if test "$wx_cv_cpp_bool" = "yes"; then
698dcdb6 12107 cat >> confdefs.h <<\EOF
10f2d63a
VZ
12108#define HAVE_BOOL 1
12109EOF
12110
12111 fi
12112
1e487827 12113
698dcdb6 12114
698dcdb6 12115echo $ac_n "checking for wcslen in -lc""... $ac_c" 1>&6
d73be714 12116echo "configure:12117: checking for wcslen in -lc" >&5
698dcdb6
VZ
12117ac_lib_var=`echo c'_'wcslen | sed 'y%./+-%__p_%'`
12118if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12119 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 12120else
698dcdb6 12121 ac_save_LIBS="$LIBS"
10f2d63a 12122LIBS="-lc $LIBS"
698dcdb6 12123cat > conftest.$ac_ext <<EOF
d73be714 12124#line 12125 "configure"
10f2d63a
VZ
12125#include "confdefs.h"
12126/* Override any gcc2 internal prototype to avoid an error. */
12127/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
12128 builtin and then its argument prototype would still apply. */
12129char wcslen();
12130
12131int main() {
12132wcslen()
12133; return 0; }
12134EOF
d73be714 12135if { (eval echo configure:12136: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
12136 rm -rf conftest*
12137 eval "ac_cv_lib_$ac_lib_var=yes"
12138else
12139 echo "configure: failed program was:" >&5
12140 cat conftest.$ac_ext >&5
12141 rm -rf conftest*
12142 eval "ac_cv_lib_$ac_lib_var=no"
12143fi
12144rm -f conftest*
12145LIBS="$ac_save_LIBS"
12146
12147fi
12148if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12149 echo "$ac_t""yes" 1>&6
12150
12151 cat >> confdefs.h <<\EOF
10f2d63a
VZ
12152#define HAVE_WCSLEN 1
12153EOF
12154
12155 WCHAR_LINK=""
698dcdb6 12156
10f2d63a 12157else
698dcdb6 12158 echo "$ac_t""no" 1>&6
10f2d63a 12159
698dcdb6 12160 echo $ac_n "checking for wcslen in -lw""... $ac_c" 1>&6
d73be714 12161echo "configure:12162: checking for wcslen in -lw" >&5
698dcdb6
VZ
12162ac_lib_var=`echo w'_'wcslen | sed 'y%./+-%__p_%'`
12163if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12164 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 12165else
698dcdb6 12166 ac_save_LIBS="$LIBS"
10f2d63a 12167LIBS="-lw $LIBS"
698dcdb6 12168cat > conftest.$ac_ext <<EOF
d73be714 12169#line 12170 "configure"
10f2d63a
VZ
12170#include "confdefs.h"
12171/* Override any gcc2 internal prototype to avoid an error. */
12172/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
12173 builtin and then its argument prototype would still apply. */
12174char wcslen();
12175
12176int main() {
12177wcslen()
12178; return 0; }
12179EOF
d73be714 12180if { (eval echo configure:12181: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
12181 rm -rf conftest*
12182 eval "ac_cv_lib_$ac_lib_var=yes"
12183else
12184 echo "configure: failed program was:" >&5
12185 cat conftest.$ac_ext >&5
12186 rm -rf conftest*
12187 eval "ac_cv_lib_$ac_lib_var=no"
12188fi
12189rm -f conftest*
12190LIBS="$ac_save_LIBS"
12191
12192fi
12193if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12194 echo "$ac_t""yes" 1>&6
12195
12196 cat >> confdefs.h <<\EOF
10f2d63a
VZ
12197#define HAVE_WCSLEN 1
12198EOF
12199
12200 WCHAR_LINK="-lw"
698dcdb6
VZ
12201
12202else
12203 echo "$ac_t""no" 1>&6
6232543b 12204fi
10f2d63a 12205
698dcdb6 12206
1e487827 12207fi
703e0a69 12208
698dcdb6
VZ
12209
12210echo $ac_n "checking for vprintf""... $ac_c" 1>&6
d73be714 12211echo "configure:12212: checking for vprintf" >&5
698dcdb6
VZ
12212if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
12213 echo $ac_n "(cached) $ac_c" 1>&6
12214else
12215 cat > conftest.$ac_ext <<EOF
d73be714 12216#line 12217 "configure"
10f2d63a
VZ
12217#include "confdefs.h"
12218/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 12219 which can conflict with char vprintf(); below. */
10f2d63a
VZ
12220#include <assert.h>
12221/* Override any gcc2 internal prototype to avoid an error. */
12222/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
12223 builtin and then its argument prototype would still apply. */
12224char vprintf();
12225
12226int main() {
10f2d63a
VZ
12227
12228/* The GNU C library defines this for functions which it implements
12229 to always fail with ENOSYS. Some functions are actually named
12230 something starting with __ and the normal name is an alias. */
698dcdb6 12231#if defined (__stub_vprintf) || defined (__stub___vprintf)
10f2d63a
VZ
12232choke me
12233#else
698dcdb6 12234vprintf();
10f2d63a
VZ
12235#endif
12236
698dcdb6
VZ
12237; return 0; }
12238EOF
d73be714 12239if { (eval echo configure:12240: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
12240 rm -rf conftest*
12241 eval "ac_cv_func_vprintf=yes"
12242else
12243 echo "configure: failed program was:" >&5
12244 cat conftest.$ac_ext >&5
12245 rm -rf conftest*
12246 eval "ac_cv_func_vprintf=no"
12247fi
12248rm -f conftest*
12249fi
12250
12251if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
12252 echo "$ac_t""yes" 1>&6
12253 cat >> confdefs.h <<\EOF
12254#define HAVE_VPRINTF 1
12255EOF
12256
12257else
12258 echo "$ac_t""no" 1>&6
12259fi
12260
12261if test "$ac_cv_func_vprintf" != yes; then
12262echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
d73be714 12263echo "configure:12264: checking for _doprnt" >&5
698dcdb6
VZ
12264if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
12265 echo $ac_n "(cached) $ac_c" 1>&6
12266else
12267 cat > conftest.$ac_ext <<EOF
d73be714 12268#line 12269 "configure"
10f2d63a
VZ
12269#include "confdefs.h"
12270/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 12271 which can conflict with char _doprnt(); below. */
10f2d63a
VZ
12272#include <assert.h>
12273/* Override any gcc2 internal prototype to avoid an error. */
12274/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
12275 builtin and then its argument prototype would still apply. */
12276char _doprnt();
12277
12278int main() {
10f2d63a
VZ
12279
12280/* The GNU C library defines this for functions which it implements
12281 to always fail with ENOSYS. Some functions are actually named
12282 something starting with __ and the normal name is an alias. */
12283#if defined (__stub__doprnt) || defined (__stub____doprnt)
12284choke me
12285#else
698dcdb6 12286_doprnt();
10f2d63a
VZ
12287#endif
12288
698dcdb6
VZ
12289; return 0; }
12290EOF
d73be714 12291if { (eval echo configure:12292: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
12292 rm -rf conftest*
12293 eval "ac_cv_func__doprnt=yes"
12294else
12295 echo "configure: failed program was:" >&5
12296 cat conftest.$ac_ext >&5
12297 rm -rf conftest*
12298 eval "ac_cv_func__doprnt=no"
12299fi
12300rm -f conftest*
12301fi
12302
12303if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
12304 echo "$ac_t""yes" 1>&6
12305 cat >> confdefs.h <<\EOF
10f2d63a
VZ
12306#define HAVE_DOPRNT 1
12307EOF
12308
698dcdb6
VZ
12309else
12310 echo "$ac_t""no" 1>&6
10f2d63a
VZ
12311fi
12312
12313fi
12314
1e487827 12315
698dcdb6
VZ
12316
12317
12318
12319
12320
12321echo $ac_n "checking for vsnprintf""... $ac_c" 1>&6
d73be714 12322echo "configure:12323: checking for vsnprintf" >&5
698dcdb6
VZ
12323if eval "test \"`echo '$''{'wx_cv_func_vsnprintf'+set}'`\" = set"; then
12324 echo $ac_n "(cached) $ac_c" 1>&6
12325else
12326
12327 cat > conftest.$ac_ext <<EOF
d73be714 12328#line 12329 "configure"
f6bcfd97
BP
12329#include "confdefs.h"
12330
12331 #include <stdio.h>
698dcdb6
VZ
12332 #include <stdarg.h>
12333
12334int main() {
10f2d63a 12335
f6bcfd97 12336 int wx_test_vsnprintf(const char *, ...);
10f2d63a 12337
f6bcfd97
BP
12338 wx_test_vsnprintf("%s");
12339 return 0;
12340 }
12341
12342 int wx_test_vsnprintf(const char *fmt, ...)
12343 {
12344 char *s;
12345
12346 va_list argp;
12347 va_start(argp, fmt);
12348 vsnprintf(s, 42, fmt, argp);
12349 va_end(argp);
698dcdb6
VZ
12350
12351; return 0; }
12352EOF
d73be714 12353if { (eval echo configure:12354: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
12354 rm -rf conftest*
12355
f6bcfd97 12356 wx_cv_func_vsnprintf=yes
698dcdb6 12357
10f2d63a 12358else
698dcdb6
VZ
12359 echo "configure: failed program was:" >&5
12360 cat conftest.$ac_ext >&5
12361 rm -rf conftest*
12362
12363 cat > conftest.$ac_ext <<EOF
d73be714 12364#line 12365 "configure"
c521c494
RL
12365#include "confdefs.h"
12366
12367 #include <stdio.h>
12368 #include <stdarg.h>
698dcdb6
VZ
12369
12370int main() {
c521c494
RL
12371
12372 int wx_test_vsnprintf(const char *, ...);
12373
12374 wx_test_vsnprintf("%s");
12375 return 0;
12376 }
12377
12378 int wx_test_vsnprintf(const char *fmt, ...)
12379 {
12380 char *s;
12381
12382 va_list argp;
12383 va_start(argp, fmt);
12384 _vsnprintf(s, 42, fmt, argp);
12385 va_end(argp);
698dcdb6
VZ
12386
12387; return 0; }
12388EOF
d73be714 12389if { (eval echo configure:12390: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
12390 rm -rf conftest*
12391
c521c494 12392 wx_cv_func_vsnprintf=yes
698dcdb6 12393
c521c494 12394else
698dcdb6
VZ
12395 echo "configure: failed program was:" >&5
12396 cat conftest.$ac_ext >&5
12397 rm -rf conftest*
12398
c521c494 12399 wx_cv_func_vsnprintf=no
698dcdb6 12400
10f2d63a 12401fi
698dcdb6
VZ
12402rm -f conftest*
12403
6232543b 12404fi
698dcdb6 12405rm -f conftest*
703e0a69 12406
1e487827 12407fi
698dcdb6
VZ
12408
12409echo "$ac_t""$wx_cv_func_vsnprintf" 1>&6
10f2d63a 12410
9d8deca0 12411if test "$wx_cv_func_vsnprintf" = yes; then
698dcdb6 12412 cat >> confdefs.h <<\EOF
9d8deca0
VZ
12413#define HAVE_VSNPRINTF 1
12414EOF
12415
12416else
698dcdb6 12417 echo "configure: warning: unsafe function sprintf will be used instead of snprintf" 1>&2
9d8deca0
VZ
12418fi
12419
698dcdb6 12420echo $ac_n "checking for vsscanf""... $ac_c" 1>&6
d73be714 12421echo "configure:12422: checking for vsscanf" >&5
698dcdb6
VZ
12422if eval "test \"`echo '$''{'wx_cv_func_vsscanf'+set}'`\" = set"; then
12423 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 12424else
698dcdb6
VZ
12425
12426 cat > conftest.$ac_ext <<EOF
d73be714 12427#line 12428 "configure"
10f2d63a 12428#include "confdefs.h"
10f2d63a 12429
f6bcfd97
BP
12430 #include <stdio.h>
12431 #include <stdarg.h>
698dcdb6
VZ
12432
12433int main() {
10f2d63a 12434
f6bcfd97 12435 int wx_test_vsscanf(const char *, ...);
10f2d63a 12436
f6bcfd97
BP
12437 wx_test_vsscanf("%d");
12438 return 0;
10f2d63a
VZ
12439 }
12440
f6bcfd97 12441 int wx_test_vsscanf(const char *fmt, ...)
10f2d63a 12442 {
f6bcfd97
BP
12443 va_list argp;
12444 va_start(argp, fmt);
12445 vsscanf("42", fmt, argp);
12446 va_end(argp);
698dcdb6
VZ
12447
12448; return 0; }
12449EOF
d73be714 12450if { (eval echo configure:12451: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
12451 rm -rf conftest*
12452
f6bcfd97 12453 wx_cv_func_vsscanf=yes
698dcdb6 12454
10f2d63a 12455else
698dcdb6
VZ
12456 echo "configure: failed program was:" >&5
12457 cat conftest.$ac_ext >&5
12458 rm -rf conftest*
12459
f6bcfd97 12460 wx_cv_func_vsscanf=no
698dcdb6 12461
6232543b 12462fi
698dcdb6 12463rm -f conftest*
703e0a69 12464
1e487827 12465fi
698dcdb6
VZ
12466
12467echo "$ac_t""$wx_cv_func_vsscanf" 1>&6
10f2d63a 12468
9d8deca0 12469if test "$wx_cv_func_vsscanf" = yes; then
698dcdb6 12470 cat >> confdefs.h <<\EOF
9d8deca0
VZ
12471#define HAVE_VSSCANF 1
12472EOF
12473
12474fi
12475
95c8801c
VS
12476if test "$TOOLKIT" != "MSW"; then
12477
12478
12479
698dcdb6
VZ
12480ac_ext=C
12481# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12482ac_cpp='$CXXCPP $CPPFLAGS'
12483ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12484ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12485cross_compiling=$ac_cv_prog_cxx_cross
12486
12487echo $ac_n "checking if iconv() takes char**""... $ac_c" 1>&6
d73be714 12488echo "configure:12489: checking if iconv() takes char**" >&5
698dcdb6
VZ
12489if eval "test \"`echo '$''{'wx_cv_iconv_takes_char'+set}'`\" = set"; then
12490 echo $ac_n "(cached) $ac_c" 1>&6
12491else
12492
12493 cat > conftest.$ac_ext <<EOF
d73be714 12494#line 12495 "configure"
95c8801c
VS
12495#include "confdefs.h"
12496#include <iconv.h>
698dcdb6 12497int main() {
95c8801c
VS
12498
12499 char **inbuf, **outbuf;
19af3b06
VZ
12500 iconv_t cd;
12501 size_t insz, outsz;
12502 iconv(cd, inbuf, &insz, outbuf, &outsz);
698dcdb6
VZ
12503
12504; return 0; }
12505EOF
d73be714 12506if { (eval echo configure:12507: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 12507 rm -rf conftest*
95c8801c
VS
12508 wx_cv_iconv_takes_char=yes
12509else
698dcdb6
VZ
12510 echo "configure: failed program was:" >&5
12511 cat conftest.$ac_ext >&5
12512 rm -rf conftest*
12513 wx_cv_iconv_takes_char=no
95c8801c 12514fi
698dcdb6 12515rm -f conftest*
95c8801c
VS
12516
12517fi
698dcdb6
VZ
12518
12519echo "$ac_t""$wx_cv_iconv_takes_char" 1>&6
10f2d63a 12520ac_ext=c
698dcdb6 12521# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10f2d63a 12522ac_cpp='$CPP $CPPFLAGS'
698dcdb6
VZ
12523ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12524ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12525cross_compiling=$ac_cv_prog_cc_cross
10f2d63a 12526
95c8801c 12527if test "$wx_cv_iconv_takes_char" = yes ; then
698dcdb6 12528 cat >> confdefs.h <<\EOF
95c8801c
VS
12529#define WX_ICONV_TAKES_CHAR 1
12530EOF
12531
12532fi
10f2d63a 12533
1e487827 12534
698dcdb6
VZ
12535if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
12536 for ac_func in sigaction
eb4efbdc 12537do
698dcdb6 12538echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
d73be714 12539echo "configure:12540: checking for $ac_func" >&5
698dcdb6
VZ
12540if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12541 echo $ac_n "(cached) $ac_c" 1>&6
12542else
12543 cat > conftest.$ac_ext <<EOF
d73be714 12544#line 12545 "configure"
eb4efbdc
VZ
12545#include "confdefs.h"
12546/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 12547 which can conflict with char $ac_func(); below. */
eb4efbdc
VZ
12548#include <assert.h>
12549/* Override any gcc2 internal prototype to avoid an error. */
12550/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
12551 builtin and then its argument prototype would still apply. */
12552char $ac_func();
12553
12554int main() {
eb4efbdc
VZ
12555
12556/* The GNU C library defines this for functions which it implements
12557 to always fail with ENOSYS. Some functions are actually named
12558 something starting with __ and the normal name is an alias. */
12559#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12560choke me
12561#else
698dcdb6 12562$ac_func();
eb4efbdc
VZ
12563#endif
12564
698dcdb6 12565; return 0; }
eb4efbdc 12566EOF
d73be714 12567if { (eval echo configure:12568: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
12568 rm -rf conftest*
12569 eval "ac_cv_func_$ac_func=yes"
12570else
12571 echo "configure: failed program was:" >&5
12572 cat conftest.$ac_ext >&5
12573 rm -rf conftest*
12574 eval "ac_cv_func_$ac_func=no"
12575fi
12576rm -f conftest*
12577fi
eb4efbdc 12578
698dcdb6
VZ
12579if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12580 echo "$ac_t""yes" 1>&6
12581 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12582 cat >> confdefs.h <<EOF
12583#define $ac_tr_func 1
12584EOF
12585
12586else
12587 echo "$ac_t""no" 1>&6
eb4efbdc
VZ
12588fi
12589done
12590
698dcdb6 12591
eb4efbdc 12592 if test "$ac_cv_func_sigaction" = "no"; then
698dcdb6 12593 echo "configure: warning: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" 1>&2
eb4efbdc
VZ
12594 wxUSE_ON_FATAL_EXCEPTION=no
12595 fi
f6bcfd97
BP
12596
12597 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
698dcdb6
VZ
12598
12599 ac_ext=C
12600# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1e487827 12601ac_cpp='$CXXCPP $CPPFLAGS'
698dcdb6
VZ
12602ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12603ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12604cross_compiling=$ac_cv_prog_cxx_cross
6232543b 12605
1e487827 12606
698dcdb6 12607 echo $ac_n "checking for sa_handler type""... $ac_c" 1>&6
d73be714 12608echo "configure:12609: checking for sa_handler type" >&5
698dcdb6
VZ
12609if eval "test \"`echo '$''{'wx_cv_type_sa_handler'+set}'`\" = set"; then
12610 echo $ac_n "(cached) $ac_c" 1>&6
12611else
12612
12613 cat > conftest.$ac_ext <<EOF
d73be714 12614#line 12615 "configure"
f6bcfd97
BP
12615#include "confdefs.h"
12616#include <signal.h>
698dcdb6 12617int main() {
f6bcfd97
BP
12618
12619 extern void testSigHandler(int);
12620
12621 struct sigaction sa;
12622 sa.sa_handler = testSigHandler;
698dcdb6
VZ
12623
12624; return 0; }
12625EOF
d73be714 12626if { (eval echo configure:12627: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
12627 rm -rf conftest*
12628
f6bcfd97 12629 wx_cv_type_sa_handler=int
698dcdb6 12630
f6bcfd97 12631else
698dcdb6
VZ
12632 echo "configure: failed program was:" >&5
12633 cat conftest.$ac_ext >&5
12634 rm -rf conftest*
12635
f6bcfd97 12636 wx_cv_type_sa_handler=void
698dcdb6 12637
6232543b 12638fi
698dcdb6
VZ
12639rm -f conftest*
12640
1e487827 12641fi
698dcdb6
VZ
12642
12643echo "$ac_t""$wx_cv_type_sa_handler" 1>&6
f6bcfd97
BP
12644
12645 ac_ext=c
698dcdb6 12646# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
f6bcfd97 12647ac_cpp='$CPP $CPPFLAGS'
698dcdb6
VZ
12648ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12649ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12650cross_compiling=$ac_cv_prog_cc_cross
12651
703e0a69 12652
698dcdb6 12653 cat >> confdefs.h <<EOF
f6bcfd97
BP
12654#define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
12655EOF
12656
12657 fi
eb4efbdc
VZ
12658fi
12659
10f2d63a
VZ
12660for ac_func in vfork
12661do
698dcdb6 12662echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
d73be714 12663echo "configure:12664: checking for $ac_func" >&5
698dcdb6
VZ
12664if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12665 echo $ac_n "(cached) $ac_c" 1>&6
12666else
12667 cat > conftest.$ac_ext <<EOF
d73be714 12668#line 12669 "configure"
10f2d63a
VZ
12669#include "confdefs.h"
12670/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 12671 which can conflict with char $ac_func(); below. */
10f2d63a
VZ
12672#include <assert.h>
12673/* Override any gcc2 internal prototype to avoid an error. */
12674/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
12675 builtin and then its argument prototype would still apply. */
12676char $ac_func();
12677
12678int main() {
10f2d63a
VZ
12679
12680/* The GNU C library defines this for functions which it implements
12681 to always fail with ENOSYS. Some functions are actually named
12682 something starting with __ and the normal name is an alias. */
12683#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12684choke me
12685#else
698dcdb6 12686$ac_func();
10f2d63a
VZ
12687#endif
12688
698dcdb6 12689; return 0; }
10f2d63a 12690EOF
d73be714 12691if { (eval echo configure:12692: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
12692 rm -rf conftest*
12693 eval "ac_cv_func_$ac_func=yes"
12694else
12695 echo "configure: failed program was:" >&5
12696 cat conftest.$ac_ext >&5
12697 rm -rf conftest*
12698 eval "ac_cv_func_$ac_func=no"
12699fi
12700rm -f conftest*
12701fi
270a909e 12702
698dcdb6
VZ
12703if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12704 echo "$ac_t""yes" 1>&6
12705 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12706 cat >> confdefs.h <<EOF
12707#define $ac_tr_func 1
12708EOF
12709
12710else
12711 echo "$ac_t""no" 1>&6
270a909e
VZ
12712fi
12713done
12714
1e487827 12715
698dcdb6
VZ
12716if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
12717 for ac_func in fcntl flock
4f3c5f06 12718do
698dcdb6 12719echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
d73be714 12720echo "configure:12721: checking for $ac_func" >&5
698dcdb6
VZ
12721if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12722 echo $ac_n "(cached) $ac_c" 1>&6
12723else
12724 cat > conftest.$ac_ext <<EOF
d73be714 12725#line 12726 "configure"
4f3c5f06
VZ
12726#include "confdefs.h"
12727/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 12728 which can conflict with char $ac_func(); below. */
4f3c5f06
VZ
12729#include <assert.h>
12730/* Override any gcc2 internal prototype to avoid an error. */
12731/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
12732 builtin and then its argument prototype would still apply. */
12733char $ac_func();
12734
12735int main() {
4f3c5f06
VZ
12736
12737/* The GNU C library defines this for functions which it implements
12738 to always fail with ENOSYS. Some functions are actually named
12739 something starting with __ and the normal name is an alias. */
12740#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12741choke me
12742#else
698dcdb6 12743$ac_func();
4f3c5f06
VZ
12744#endif
12745
698dcdb6
VZ
12746; return 0; }
12747EOF
d73be714 12748if { (eval echo configure:12749: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
12749 rm -rf conftest*
12750 eval "ac_cv_func_$ac_func=yes"
12751else
12752 echo "configure: failed program was:" >&5
12753 cat conftest.$ac_ext >&5
12754 rm -rf conftest*
12755 eval "ac_cv_func_$ac_func=no"
12756fi
12757rm -f conftest*
12758fi
12759
12760if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12761 echo "$ac_t""yes" 1>&6
12762 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12763 cat >> confdefs.h <<EOF
12764#define $ac_tr_func 1
4f3c5f06
VZ
12765EOF
12766 break
698dcdb6
VZ
12767else
12768 echo "$ac_t""no" 1>&6
4f3c5f06
VZ
12769fi
12770done
12771
698dcdb6 12772
4f3c5f06 12773 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
698dcdb6 12774 echo "configure: warning: wxSingleInstanceChecker not available" 1>&2
4f3c5f06
VZ
12775 wxUSE_SNGLINST_CHECKER=no
12776 fi
12777fi
12778
270a909e
VZ
12779for ac_func in timegm
12780do
698dcdb6 12781echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
d73be714 12782echo "configure:12783: checking for $ac_func" >&5
698dcdb6
VZ
12783if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12784 echo $ac_n "(cached) $ac_c" 1>&6
12785else
12786 cat > conftest.$ac_ext <<EOF
d73be714 12787#line 12788 "configure"
270a909e
VZ
12788#include "confdefs.h"
12789/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 12790 which can conflict with char $ac_func(); below. */
270a909e
VZ
12791#include <assert.h>
12792/* Override any gcc2 internal prototype to avoid an error. */
12793/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
12794 builtin and then its argument prototype would still apply. */
12795char $ac_func();
12796
12797int main() {
270a909e
VZ
12798
12799/* The GNU C library defines this for functions which it implements
12800 to always fail with ENOSYS. Some functions are actually named
12801 something starting with __ and the normal name is an alias. */
12802#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12803choke me
12804#else
698dcdb6 12805$ac_func();
270a909e
VZ
12806#endif
12807
698dcdb6 12808; return 0; }
270a909e 12809EOF
d73be714 12810if { (eval echo configure:12811: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
12811 rm -rf conftest*
12812 eval "ac_cv_func_$ac_func=yes"
12813else
12814 echo "configure: failed program was:" >&5
12815 cat conftest.$ac_ext >&5
12816 rm -rf conftest*
12817 eval "ac_cv_func_$ac_func=no"
12818fi
12819rm -f conftest*
12820fi
10f2d63a 12821
698dcdb6
VZ
12822if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12823 echo "$ac_t""yes" 1>&6
12824 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12825 cat >> confdefs.h <<EOF
12826#define $ac_tr_func 1
12827EOF
12828
12829else
12830 echo "$ac_t""no" 1>&6
10f2d63a
VZ
12831fi
12832done
12833
698dcdb6 12834
8fd0d89b
VZ
12835for ac_func in putenv setenv
12836do
698dcdb6 12837echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
d73be714 12838echo "configure:12839: checking for $ac_func" >&5
698dcdb6
VZ
12839if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12840 echo $ac_n "(cached) $ac_c" 1>&6
12841else
12842 cat > conftest.$ac_ext <<EOF
d73be714 12843#line 12844 "configure"
8fd0d89b
VZ
12844#include "confdefs.h"
12845/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 12846 which can conflict with char $ac_func(); below. */
8fd0d89b
VZ
12847#include <assert.h>
12848/* Override any gcc2 internal prototype to avoid an error. */
12849/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
12850 builtin and then its argument prototype would still apply. */
12851char $ac_func();
12852
12853int main() {
8fd0d89b
VZ
12854
12855/* The GNU C library defines this for functions which it implements
12856 to always fail with ENOSYS. Some functions are actually named
12857 something starting with __ and the normal name is an alias. */
12858#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12859choke me
12860#else
698dcdb6 12861$ac_func();
8fd0d89b
VZ
12862#endif
12863
698dcdb6
VZ
12864; return 0; }
12865EOF
d73be714 12866if { (eval echo configure:12867: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
12867 rm -rf conftest*
12868 eval "ac_cv_func_$ac_func=yes"
12869else
12870 echo "configure: failed program was:" >&5
12871 cat conftest.$ac_ext >&5
12872 rm -rf conftest*
12873 eval "ac_cv_func_$ac_func=no"
12874fi
12875rm -f conftest*
12876fi
12877
12878if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12879 echo "$ac_t""yes" 1>&6
12880 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12881 cat >> confdefs.h <<EOF
12882#define $ac_tr_func 1
8fd0d89b
VZ
12883EOF
12884 break
698dcdb6
VZ
12885else
12886 echo "$ac_t""no" 1>&6
8fd0d89b
VZ
12887fi
12888done
12889
698dcdb6 12890
b12915c1
VZ
12891HAVE_SOME_SLEEP_FUNC=0
12892if test "$USE_BEOS" = 1; then
698dcdb6 12893 cat >> confdefs.h <<\EOF
b12915c1
VZ
12894#define HAVE_SLEEP 1
12895EOF
12896
12897 HAVE_SOME_SLEEP_FUNC=1
12898fi
12899
b4085ce6 12900if test "$USE_MAC" = 1; then
698dcdb6 12901 cat >> confdefs.h <<\EOF
b4085ce6
GD
12902#define HAVE_USLEEP 1
12903EOF
12904
12905 HAVE_SOME_SLEEP_FUNC=1
12906fi
12907
b12915c1
VZ
12908if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
12909 POSIX4_LINK=
698dcdb6 12910 for ac_func in nanosleep
10f2d63a 12911do
698dcdb6 12912echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
d73be714 12913echo "configure:12914: checking for $ac_func" >&5
698dcdb6
VZ
12914if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12915 echo $ac_n "(cached) $ac_c" 1>&6
12916else
12917 cat > conftest.$ac_ext <<EOF
d73be714 12918#line 12919 "configure"
10f2d63a
VZ
12919#include "confdefs.h"
12920/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 12921 which can conflict with char $ac_func(); below. */
10f2d63a
VZ
12922#include <assert.h>
12923/* Override any gcc2 internal prototype to avoid an error. */
12924/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
12925 builtin and then its argument prototype would still apply. */
12926char $ac_func();
12927
12928int main() {
10f2d63a
VZ
12929
12930/* The GNU C library defines this for functions which it implements
12931 to always fail with ENOSYS. Some functions are actually named
12932 something starting with __ and the normal name is an alias. */
12933#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12934choke me
12935#else
698dcdb6 12936$ac_func();
10f2d63a
VZ
12937#endif
12938
698dcdb6
VZ
12939; return 0; }
12940EOF
d73be714 12941if { (eval echo configure:12942: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
12942 rm -rf conftest*
12943 eval "ac_cv_func_$ac_func=yes"
12944else
12945 echo "configure: failed program was:" >&5
12946 cat conftest.$ac_ext >&5
12947 rm -rf conftest*
12948 eval "ac_cv_func_$ac_func=no"
12949fi
12950rm -f conftest*
12951fi
12952
12953if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12954 echo "$ac_t""yes" 1>&6
12955 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12956 cat >> confdefs.h <<EOF
12957#define $ac_tr_func 1
12958EOF
12959 cat >> confdefs.h <<\EOF
10f2d63a
VZ
12960#define HAVE_NANOSLEEP 1
12961EOF
12962
12963else
698dcdb6
VZ
12964 echo "$ac_t""no" 1>&6
12965echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
d73be714 12966echo "configure:12967: checking for nanosleep in -lposix4" >&5
698dcdb6
VZ
12967ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
12968if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12969 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 12970else
698dcdb6 12971 ac_save_LIBS="$LIBS"
10f2d63a 12972LIBS="-lposix4 $LIBS"
698dcdb6 12973cat > conftest.$ac_ext <<EOF
d73be714 12974#line 12975 "configure"
10f2d63a
VZ
12975#include "confdefs.h"
12976/* Override any gcc2 internal prototype to avoid an error. */
12977/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
12978 builtin and then its argument prototype would still apply. */
12979char nanosleep();
12980
12981int main() {
12982nanosleep()
12983; return 0; }
12984EOF
d73be714 12985if { (eval echo configure:12986: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
12986 rm -rf conftest*
12987 eval "ac_cv_lib_$ac_lib_var=yes"
12988else
12989 echo "configure: failed program was:" >&5
12990 cat conftest.$ac_ext >&5
12991 rm -rf conftest*
12992 eval "ac_cv_lib_$ac_lib_var=no"
12993fi
12994rm -f conftest*
12995LIBS="$ac_save_LIBS"
12996
12997fi
12998if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12999 echo "$ac_t""yes" 1>&6
13000
13001 cat >> confdefs.h <<\EOF
10f2d63a
VZ
13002#define HAVE_NANOSLEEP 1
13003EOF
13004
b12915c1 13005 POSIX4_LINK="-lposix4"
698dcdb6 13006
10f2d63a 13007else
698dcdb6 13008 echo "$ac_t""no" 1>&6
10f2d63a 13009
698dcdb6 13010 for ac_func in usleep
10f2d63a 13011do
698dcdb6 13012echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
d73be714 13013echo "configure:13014: checking for $ac_func" >&5
698dcdb6
VZ
13014if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13015 echo $ac_n "(cached) $ac_c" 1>&6
13016else
13017 cat > conftest.$ac_ext <<EOF
d73be714 13018#line 13019 "configure"
10f2d63a
VZ
13019#include "confdefs.h"
13020/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 13021 which can conflict with char $ac_func(); below. */
10f2d63a
VZ
13022#include <assert.h>
13023/* Override any gcc2 internal prototype to avoid an error. */
13024/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
13025 builtin and then its argument prototype would still apply. */
13026char $ac_func();
13027
13028int main() {
10f2d63a
VZ
13029
13030/* The GNU C library defines this for functions which it implements
13031 to always fail with ENOSYS. Some functions are actually named
13032 something starting with __ and the normal name is an alias. */
13033#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13034choke me
13035#else
698dcdb6 13036$ac_func();
10f2d63a
VZ
13037#endif
13038
698dcdb6
VZ
13039; return 0; }
13040EOF
d73be714 13041if { (eval echo configure:13042: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
13042 rm -rf conftest*
13043 eval "ac_cv_func_$ac_func=yes"
13044else
13045 echo "configure: failed program was:" >&5
13046 cat conftest.$ac_ext >&5
13047 rm -rf conftest*
13048 eval "ac_cv_func_$ac_func=no"
13049fi
13050rm -f conftest*
13051fi
13052
13053if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13054 echo "$ac_t""yes" 1>&6
13055 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13056 cat >> confdefs.h <<EOF
13057#define $ac_tr_func 1
13058EOF
13059 cat >> confdefs.h <<\EOF
b4085ce6
GD
13060#define HAVE_USLEEP 1
13061EOF
13062
10f2d63a 13063else
698dcdb6
VZ
13064 echo "$ac_t""no" 1>&6
13065echo "configure: warning: wxSleep() function will not work" 1>&2
13066
10f2d63a
VZ
13067fi
13068done
13069
698dcdb6
VZ
13070
13071
10f2d63a
VZ
13072fi
13073
698dcdb6
VZ
13074
13075
10f2d63a
VZ
13076fi
13077done
13078
b12915c1 13079fi
10f2d63a
VZ
13080
13081for ac_func in uname gethostname
13082do
698dcdb6 13083echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
d73be714 13084echo "configure:13085: checking for $ac_func" >&5
698dcdb6
VZ
13085if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13086 echo $ac_n "(cached) $ac_c" 1>&6
13087else
13088 cat > conftest.$ac_ext <<EOF
d73be714 13089#line 13090 "configure"
10f2d63a
VZ
13090#include "confdefs.h"
13091/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 13092 which can conflict with char $ac_func(); below. */
10f2d63a
VZ
13093#include <assert.h>
13094/* Override any gcc2 internal prototype to avoid an error. */
13095/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
13096 builtin and then its argument prototype would still apply. */
13097char $ac_func();
13098
13099int main() {
10f2d63a
VZ
13100
13101/* The GNU C library defines this for functions which it implements
13102 to always fail with ENOSYS. Some functions are actually named
13103 something starting with __ and the normal name is an alias. */
13104#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13105choke me
13106#else
698dcdb6 13107$ac_func();
10f2d63a
VZ
13108#endif
13109
698dcdb6
VZ
13110; return 0; }
13111EOF
d73be714 13112if { (eval echo configure:13113: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
13113 rm -rf conftest*
13114 eval "ac_cv_func_$ac_func=yes"
13115else
13116 echo "configure: failed program was:" >&5
13117 cat conftest.$ac_ext >&5
13118 rm -rf conftest*
13119 eval "ac_cv_func_$ac_func=no"
13120fi
13121rm -f conftest*
13122fi
13123
13124if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13125 echo "$ac_t""yes" 1>&6
13126 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13127 cat >> confdefs.h <<EOF
13128#define $ac_tr_func 1
10f2d63a
VZ
13129EOF
13130 break
698dcdb6
VZ
13131else
13132 echo "$ac_t""no" 1>&6
10f2d63a
VZ
13133fi
13134done
13135
698dcdb6
VZ
13136
13137
13138ac_ext=C
13139# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6098c7f9 13140ac_cpp='$CXXCPP $CPPFLAGS'
698dcdb6
VZ
13141ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13142ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13143cross_compiling=$ac_cv_prog_cxx_cross
13144
6098c7f9 13145
10f2d63a
VZ
13146for ac_func in strtok_r
13147do
698dcdb6 13148echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
d73be714 13149echo "configure:13150: checking for $ac_func" >&5
698dcdb6
VZ
13150if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13151 echo $ac_n "(cached) $ac_c" 1>&6
13152else
13153 cat > conftest.$ac_ext <<EOF
d73be714 13154#line 13155 "configure"
10f2d63a
VZ
13155#include "confdefs.h"
13156/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 13157 which can conflict with char $ac_func(); below. */
10f2d63a
VZ
13158#include <assert.h>
13159/* Override any gcc2 internal prototype to avoid an error. */
6098c7f9
VZ
13160#ifdef __cplusplus
13161extern "C"
13162#endif
10f2d63a 13163/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
13164 builtin and then its argument prototype would still apply. */
13165char $ac_func();
13166
13167int main() {
10f2d63a
VZ
13168
13169/* The GNU C library defines this for functions which it implements
13170 to always fail with ENOSYS. Some functions are actually named
13171 something starting with __ and the normal name is an alias. */
13172#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13173choke me
13174#else
698dcdb6 13175$ac_func();
10f2d63a
VZ
13176#endif
13177
698dcdb6 13178; return 0; }
10f2d63a 13179EOF
d73be714 13180if { (eval echo configure:13181: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
13181 rm -rf conftest*
13182 eval "ac_cv_func_$ac_func=yes"
13183else
13184 echo "configure: failed program was:" >&5
13185 cat conftest.$ac_ext >&5
13186 rm -rf conftest*
13187 eval "ac_cv_func_$ac_func=no"
13188fi
13189rm -f conftest*
13190fi
10f2d63a 13191
698dcdb6
VZ
13192if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13193 echo "$ac_t""yes" 1>&6
13194 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13195 cat >> confdefs.h <<EOF
13196#define $ac_tr_func 1
13197EOF
13198
13199else
13200 echo "$ac_t""no" 1>&6
10f2d63a
VZ
13201fi
13202done
13203
698dcdb6 13204
6098c7f9 13205ac_ext=c
698dcdb6 13206# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6098c7f9 13207ac_cpp='$CPP $CPPFLAGS'
698dcdb6
VZ
13208ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13209ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13210cross_compiling=$ac_cv_prog_cc_cross
6232543b 13211
1e487827 13212
698dcdb6 13213INET_LINK=
10f2d63a
VZ
13214for ac_func in inet_addr
13215do
698dcdb6 13216echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
d73be714 13217echo "configure:13218: checking for $ac_func" >&5
698dcdb6
VZ
13218if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13219 echo $ac_n "(cached) $ac_c" 1>&6
13220else
13221 cat > conftest.$ac_ext <<EOF
d73be714 13222#line 13223 "configure"
10f2d63a
VZ
13223#include "confdefs.h"
13224/* System header to define __stub macros and hopefully few prototypes,
698dcdb6
VZ
13225 which can conflict with char $ac_func(); below. */
13226#include <assert.h>
13227/* Override any gcc2 internal prototype to avoid an error. */
10f2d63a 13228/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
13229 builtin and then its argument prototype would still apply. */
13230char $ac_func();
13231
13232int main() {
10f2d63a
VZ
13233
13234/* The GNU C library defines this for functions which it implements
13235 to always fail with ENOSYS. Some functions are actually named
1e487827
VS
13236 something starting with __ and the normal name is an alias. */
13237#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13238choke me
13239#else
698dcdb6 13240$ac_func();
1e487827 13241#endif
703e0a69 13242
698dcdb6
VZ
13243; return 0; }
13244EOF
d73be714 13245if { (eval echo configure:13246: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
13246 rm -rf conftest*
13247 eval "ac_cv_func_$ac_func=yes"
13248else
13249 echo "configure: failed program was:" >&5
13250 cat conftest.$ac_ext >&5
13251 rm -rf conftest*
13252 eval "ac_cv_func_$ac_func=no"
13253fi
13254rm -f conftest*
13255fi
13256
13257if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13258 echo "$ac_t""yes" 1>&6
13259 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13260 cat >> confdefs.h <<EOF
13261#define $ac_tr_func 1
13262EOF
13263 cat >> confdefs.h <<\EOF
c63c7106
VZ
13264#define HAVE_INET_ADDR 1
13265EOF
13266
10f2d63a 13267else
698dcdb6
VZ
13268 echo "$ac_t""no" 1>&6
13269echo $ac_n "checking for inet_addr in -lnsl""... $ac_c" 1>&6
d73be714 13270echo "configure:13271: checking for inet_addr in -lnsl" >&5
698dcdb6
VZ
13271ac_lib_var=`echo nsl'_'inet_addr | sed 'y%./+-%__p_%'`
13272if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13273 echo $ac_n "(cached) $ac_c" 1>&6
c63c7106 13274else
698dcdb6 13275 ac_save_LIBS="$LIBS"
c63c7106 13276LIBS="-lnsl $LIBS"
698dcdb6 13277cat > conftest.$ac_ext <<EOF
d73be714 13278#line 13279 "configure"
c63c7106
VZ
13279#include "confdefs.h"
13280/* Override any gcc2 internal prototype to avoid an error. */
13281/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
13282 builtin and then its argument prototype would still apply. */
13283char inet_addr();
13284
13285int main() {
13286inet_addr()
13287; return 0; }
13288EOF
d73be714 13289if { (eval echo configure:13290: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
13290 rm -rf conftest*
13291 eval "ac_cv_lib_$ac_lib_var=yes"
13292else
13293 echo "configure: failed program was:" >&5
13294 cat conftest.$ac_ext >&5
13295 rm -rf conftest*
13296 eval "ac_cv_lib_$ac_lib_var=no"
13297fi
13298rm -f conftest*
13299LIBS="$ac_save_LIBS"
13300
13301fi
13302if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13303 echo "$ac_t""yes" 1>&6
c63c7106
VZ
13304 INET_LINK="nsl"
13305else
698dcdb6
VZ
13306 echo "$ac_t""no" 1>&6
13307echo $ac_n "checking for inet_addr in -lresolv""... $ac_c" 1>&6
d73be714 13308echo "configure:13309: checking for inet_addr in -lresolv" >&5
698dcdb6
VZ
13309ac_lib_var=`echo resolv'_'inet_addr | sed 'y%./+-%__p_%'`
13310if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13311 echo $ac_n "(cached) $ac_c" 1>&6
c63c7106 13312else
698dcdb6 13313 ac_save_LIBS="$LIBS"
c63c7106 13314LIBS="-lresolv $LIBS"
698dcdb6 13315cat > conftest.$ac_ext <<EOF
d73be714 13316#line 13317 "configure"
c63c7106
VZ
13317#include "confdefs.h"
13318/* Override any gcc2 internal prototype to avoid an error. */
13319/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
13320 builtin and then its argument prototype would still apply. */
13321char inet_addr();
13322
13323int main() {
13324inet_addr()
13325; return 0; }
13326EOF
d73be714 13327if { (eval echo configure:13328: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
13328 rm -rf conftest*
13329 eval "ac_cv_lib_$ac_lib_var=yes"
13330else
13331 echo "configure: failed program was:" >&5
13332 cat conftest.$ac_ext >&5
13333 rm -rf conftest*
13334 eval "ac_cv_lib_$ac_lib_var=no"
13335fi
13336rm -f conftest*
13337LIBS="$ac_save_LIBS"
c63c7106 13338
6232543b 13339fi
698dcdb6
VZ
13340if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13341 echo "$ac_t""yes" 1>&6
13342 INET_LINK="resolv"
13343
13344else
13345 echo "$ac_t""no" 1>&6
13346fi
c63c7106 13347
698dcdb6 13348
1e487827 13349fi
703e0a69 13350
698dcdb6
VZ
13351
13352
10f2d63a
VZ
13353fi
13354done
13355
698dcdb6 13356
10f2d63a
VZ
13357for ac_func in inet_aton
13358do
698dcdb6 13359echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
d73be714 13360echo "configure:13361: checking for $ac_func" >&5
698dcdb6
VZ
13361if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13362 echo $ac_n "(cached) $ac_c" 1>&6
13363else
13364 cat > conftest.$ac_ext <<EOF
d73be714 13365#line 13366 "configure"
10f2d63a
VZ
13366#include "confdefs.h"
13367/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 13368 which can conflict with char $ac_func(); below. */
10f2d63a
VZ
13369#include <assert.h>
13370/* Override any gcc2 internal prototype to avoid an error. */
13371/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
13372 builtin and then its argument prototype would still apply. */
13373char $ac_func();
13374
13375int main() {
10f2d63a
VZ
13376
13377/* The GNU C library defines this for functions which it implements
13378 to always fail with ENOSYS. Some functions are actually named
13379 something starting with __ and the normal name is an alias. */
13380#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13381choke me
13382#else
698dcdb6 13383$ac_func();
10f2d63a
VZ
13384#endif
13385
698dcdb6
VZ
13386; return 0; }
13387EOF
d73be714 13388if { (eval echo configure:13389: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
13389 rm -rf conftest*
13390 eval "ac_cv_func_$ac_func=yes"
13391else
13392 echo "configure: failed program was:" >&5
13393 cat conftest.$ac_ext >&5
13394 rm -rf conftest*
13395 eval "ac_cv_func_$ac_func=no"
13396fi
13397rm -f conftest*
13398fi
13399
13400if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13401 echo "$ac_t""yes" 1>&6
13402 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13403 cat >> confdefs.h <<EOF
13404#define $ac_tr_func 1
13405EOF
13406 cat >> confdefs.h <<\EOF
c63c7106
VZ
13407#define HAVE_INET_ATON 1
13408EOF
13409
10f2d63a 13410else
698dcdb6
VZ
13411 echo "$ac_t""no" 1>&6
13412 echo $ac_n "checking for inet_aton in -l$INET_LINK""... $ac_c" 1>&6
d73be714 13413echo "configure:13414: checking for inet_aton in -l$INET_LINK" >&5
698dcdb6
VZ
13414ac_lib_var=`echo $INET_LINK'_'inet_aton | sed 'y%./+-%__p_%'`
13415if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13416 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 13417else
698dcdb6 13418 ac_save_LIBS="$LIBS"
c63c7106 13419LIBS="-l$INET_LINK $LIBS"
698dcdb6 13420cat > conftest.$ac_ext <<EOF
d73be714 13421#line 13422 "configure"
10f2d63a
VZ
13422#include "confdefs.h"
13423/* Override any gcc2 internal prototype to avoid an error. */
13424/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
13425 builtin and then its argument prototype would still apply. */
13426char inet_aton();
13427
13428int main() {
13429inet_aton()
13430; return 0; }
13431EOF
d73be714 13432if { (eval echo configure:13433: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
13433 rm -rf conftest*
13434 eval "ac_cv_lib_$ac_lib_var=yes"
13435else
13436 echo "configure: failed program was:" >&5
13437 cat conftest.$ac_ext >&5
13438 rm -rf conftest*
13439 eval "ac_cv_lib_$ac_lib_var=no"
13440fi
13441rm -f conftest*
13442LIBS="$ac_save_LIBS"
13443
13444fi
13445if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13446 echo "$ac_t""yes" 1>&6
13447 cat >> confdefs.h <<\EOF
c63c7106 13448#define HAVE_INET_ATON 1
10f2d63a
VZ
13449EOF
13450
698dcdb6
VZ
13451else
13452 echo "$ac_t""no" 1>&6
10f2d63a
VZ
13453fi
13454
698dcdb6 13455
c63c7106
VZ
13456fi
13457done
13458
698dcdb6 13459
c63c7106 13460if test "x$INET_LINK" != "x"; then
698dcdb6 13461 cat >> confdefs.h <<\EOF
c63c7106
VZ
13462#define HAVE_INET_ADDR 1
13463EOF
13464
13465 INET_LINK="-l$INET_LINK"
13466fi
10f2d63a
VZ
13467
13468fi
13469
698dcdb6
VZ
13470
13471cat > confcache <<\EOF
10f2d63a
VZ
13472# This file is a shell script that caches the results of configure
13473# tests run on this system so they can be shared between configure
698dcdb6
VZ
13474# scripts and configure runs. It is not useful on other systems.
13475# If it contains results you don't want to keep, you may remove or edit it.
10f2d63a 13476#
698dcdb6
VZ
13477# By default, configure uses ./config.cache as the cache file,
13478# creating it if it does not exist already. You can give configure
13479# the --cache-file=FILE option to use a different cache file; that is
13480# what configure does when it calls configure scripts in
13481# subdirectories, so they share the cache.
13482# Giving --cache-file=/dev/null disables caching, for debugging configure.
13483# config.status only pays attention to the cache file if you give it the
13484# --recheck option to rerun configure.
10f2d63a 13485#
698dcdb6 13486EOF
10f2d63a
VZ
13487# The following way of writing the cache mishandles newlines in values,
13488# but we know of no workaround that is simple, portable, and efficient.
13489# So, don't put newlines in cache variables' values.
13490# Ultrix sh set writes to stderr and can't be redirected directly,
13491# and sets the high bit in the cache file unless we assign to the vars.
698dcdb6
VZ
13492(set) 2>&1 |
13493 case `(ac_space=' '; set | grep ac_space) 2>&1` in
13494 *ac_space=\ *)
13495 # `set' does not quote correctly, so add quotes (double-quote substitution
13496 # turns \\\\ into \\, and sed turns \\ into \).
13497 sed -n \
13498 -e "s/'/'\\\\''/g" \
13499 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
13500 ;;
13501 *)
13502 # `set' quotes correctly as required by POSIX, so do not add quotes.
13503 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
13504 ;;
13505 esac >> confcache
13506if cmp -s $cache_file confcache; then
13507 :
13508else
10f2d63a 13509 if test -w $cache_file; then
698dcdb6
VZ
13510 echo "updating cache $cache_file"
13511 cat confcache > $cache_file
10f2d63a
VZ
13512 else
13513 echo "not updating unwritable cache $cache_file"
13514 fi
13515fi
13516rm -f confcache
13517
698dcdb6
VZ
13518
13519
b089607b 13520if test "$TOOLKIT" != "MSW"; then
10f2d63a 13521
698dcdb6 13522
10f2d63a
VZ
13523THREADS_LINK=""
13524THREADS_OBJ=""
13525
13526if test "$wxUSE_THREADS" = "yes" ; then
13527 if test "$wxUSE_WINE" = 1 ; then
698dcdb6 13528 echo "configure: warning: Threads are not supported under WINE" 1>&2
10f2d63a 13529 wxUSE_THREADS="no"
b12915c1 13530 elif test "$USE_BEOS" = 1; then
698dcdb6 13531 echo "configure: warning: BeOS threads are not yet supported" 1>&2
b12915c1 13532 wxUSE_THREADS="no"
10f2d63a
VZ
13533 fi
13534fi
13535
13536if test "$wxUSE_THREADS" = "yes" ; then
698dcdb6 13537
186837b0 13538 if test "$USE_AIX" = 1; then
f6bcfd97
BP
13539 THREADS_LIB=pthreads
13540 else
13541 THREADS_LIB=pthread
13542 fi
13543
698dcdb6 13544 echo $ac_n "checking for pthread_create in -l$THREADS_LIB""... $ac_c" 1>&6
d73be714 13545echo "configure:13546: checking for pthread_create in -l$THREADS_LIB" >&5
698dcdb6
VZ
13546ac_lib_var=`echo $THREADS_LIB'_'pthread_create | sed 'y%./+-%__p_%'`
13547if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13548 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 13549else
698dcdb6 13550 ac_save_LIBS="$LIBS"
f6bcfd97 13551LIBS="-l$THREADS_LIB $LIBS"
698dcdb6 13552cat > conftest.$ac_ext <<EOF
d73be714 13553#line 13554 "configure"
10f2d63a
VZ
13554#include "confdefs.h"
13555/* Override any gcc2 internal prototype to avoid an error. */
13556/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
13557 builtin and then its argument prototype would still apply. */
13558char pthread_create();
13559
13560int main() {
13561pthread_create()
13562; return 0; }
13563EOF
d73be714 13564if { (eval echo configure:13565: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
13565 rm -rf conftest*
13566 eval "ac_cv_lib_$ac_lib_var=yes"
13567else
13568 echo "configure: failed program was:" >&5
13569 cat conftest.$ac_ext >&5
13570 rm -rf conftest*
13571 eval "ac_cv_lib_$ac_lib_var=no"
13572fi
13573rm -f conftest*
13574LIBS="$ac_save_LIBS"
10f2d63a 13575
698dcdb6
VZ
13576fi
13577if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13578 echo "$ac_t""yes" 1>&6
13579
10f2d63a 13580 THREADS_OBJ="threadpsx.lo"
f6bcfd97 13581 THREADS_LINK=$THREADS_LIB
698dcdb6 13582
10f2d63a 13583else
698dcdb6 13584 echo "$ac_t""no" 1>&6
10f2d63a 13585
698dcdb6 13586 echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6
d73be714 13587echo "configure:13588: checking for pthread_create in -lc_r" >&5
698dcdb6
VZ
13588ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'`
13589if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13590 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 13591else
698dcdb6 13592 ac_save_LIBS="$LIBS"
10f2d63a 13593LIBS="-lc_r $LIBS"
698dcdb6 13594cat > conftest.$ac_ext <<EOF
d73be714 13595#line 13596 "configure"
10f2d63a
VZ
13596#include "confdefs.h"
13597/* Override any gcc2 internal prototype to avoid an error. */
13598/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
13599 builtin and then its argument prototype would still apply. */
13600char pthread_create();
13601
13602int main() {
13603pthread_create()
13604; return 0; }
13605EOF
d73be714 13606if { (eval echo configure:13607: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
13607 rm -rf conftest*
13608 eval "ac_cv_lib_$ac_lib_var=yes"
13609else
13610 echo "configure: failed program was:" >&5
13611 cat conftest.$ac_ext >&5
13612 rm -rf conftest*
13613 eval "ac_cv_lib_$ac_lib_var=no"
13614fi
13615rm -f conftest*
13616LIBS="$ac_save_LIBS"
10f2d63a 13617
698dcdb6
VZ
13618fi
13619if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13620 echo "$ac_t""yes" 1>&6
13621
10f2d63a
VZ
13622 THREADS_OBJ="threadpsx.lo"
13623 THREADS_LINK="c_r"
698dcdb6 13624
10f2d63a 13625else
698dcdb6 13626 echo "$ac_t""no" 1>&6
10f2d63a 13627
698dcdb6
VZ
13628 ac_safe=`echo "sys/prctl.h" | sed 'y%./+-%__p_%'`
13629echo $ac_n "checking for sys/prctl.h""... $ac_c" 1>&6
d73be714 13630echo "configure:13631: checking for sys/prctl.h" >&5
698dcdb6
VZ
13631if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13632 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 13633else
698dcdb6 13634 cat > conftest.$ac_ext <<EOF
d73be714 13635#line 13636 "configure"
10f2d63a
VZ
13636#include "confdefs.h"
13637#include <sys/prctl.h>
698dcdb6
VZ
13638EOF
13639ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
d73be714 13640{ (eval echo configure:13641: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
13641ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13642if test -z "$ac_err"; then
13643 rm -rf conftest*
13644 eval "ac_cv_header_$ac_safe=yes"
1e487827 13645else
698dcdb6
VZ
13646 echo "$ac_err" >&5
13647 echo "configure: failed program was:" >&5
10f2d63a 13648 cat conftest.$ac_ext >&5
698dcdb6
VZ
13649 rm -rf conftest*
13650 eval "ac_cv_header_$ac_safe=no"
10f2d63a 13651fi
698dcdb6 13652rm -f conftest*
10f2d63a 13653fi
698dcdb6
VZ
13654if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13655 echo "$ac_t""yes" 1>&6
13656
1f8ae82f 13657 THREADS_OBJ="threadsgi.lo"
698dcdb6
VZ
13658
13659else
13660 echo "$ac_t""no" 1>&6
10f2d63a
VZ
13661fi
13662
698dcdb6 13663
6232543b 13664fi
10f2d63a 13665
698dcdb6 13666
1e487827 13667fi
703e0a69 13668
698dcdb6 13669
10f2d63a
VZ
13670 if test -z "$THREADS_OBJ" ; then
13671 wxUSE_THREADS=no
698dcdb6 13672 echo "configure: warning: No thread support on this system" 1>&2
10f2d63a
VZ
13673 fi
13674fi
13675
13676if test "$wxUSE_THREADS" = "yes" ; then
698dcdb6 13677 for ac_func in thr_setconcurrency
70846f0a 13678do
698dcdb6 13679echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
d73be714 13680echo "configure:13681: checking for $ac_func" >&5
698dcdb6
VZ
13681if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13682 echo $ac_n "(cached) $ac_c" 1>&6
13683else
13684 cat > conftest.$ac_ext <<EOF
d73be714 13685#line 13686 "configure"
70846f0a
VZ
13686#include "confdefs.h"
13687/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 13688 which can conflict with char $ac_func(); below. */
70846f0a
VZ
13689#include <assert.h>
13690/* Override any gcc2 internal prototype to avoid an error. */
13691/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
13692 builtin and then its argument prototype would still apply. */
13693char $ac_func();
13694
13695int main() {
70846f0a
VZ
13696
13697/* The GNU C library defines this for functions which it implements
13698 to always fail with ENOSYS. Some functions are actually named
13699 something starting with __ and the normal name is an alias. */
13700#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13701choke me
13702#else
698dcdb6 13703$ac_func();
70846f0a
VZ
13704#endif
13705
698dcdb6 13706; return 0; }
70846f0a 13707EOF
d73be714 13708if { (eval echo configure:13709: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
13709 rm -rf conftest*
13710 eval "ac_cv_func_$ac_func=yes"
13711else
13712 echo "configure: failed program was:" >&5
13713 cat conftest.$ac_ext >&5
13714 rm -rf conftest*
13715 eval "ac_cv_func_$ac_func=no"
13716fi
13717rm -f conftest*
13718fi
70846f0a 13719
698dcdb6
VZ
13720if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13721 echo "$ac_t""yes" 1>&6
13722 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13723 cat >> confdefs.h <<EOF
13724#define $ac_tr_func 1
13725EOF
13726
13727else
13728 echo "$ac_t""no" 1>&6
70846f0a
VZ
13729fi
13730done
13731
698dcdb6
VZ
13732
13733
13734 for ac_hdr in sched.h
10f2d63a 13735do
698dcdb6
VZ
13736ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13737echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
d73be714 13738echo "configure:13739: checking for $ac_hdr" >&5
698dcdb6
VZ
13739if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13740 echo $ac_n "(cached) $ac_c" 1>&6
13741else
13742 cat > conftest.$ac_ext <<EOF
d73be714 13743#line 13744 "configure"
10f2d63a 13744#include "confdefs.h"
698dcdb6
VZ
13745#include <$ac_hdr>
13746EOF
13747ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
d73be714 13748{ (eval echo configure:13749: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
13749ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13750if test -z "$ac_err"; then
13751 rm -rf conftest*
13752 eval "ac_cv_header_$ac_safe=yes"
1e487827 13753else
698dcdb6
VZ
13754 echo "$ac_err" >&5
13755 echo "configure: failed program was:" >&5
10f2d63a 13756 cat conftest.$ac_ext >&5
698dcdb6
VZ
13757 rm -rf conftest*
13758 eval "ac_cv_header_$ac_safe=no"
10f2d63a 13759fi
698dcdb6 13760rm -f conftest*
10f2d63a 13761fi
698dcdb6
VZ
13762if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13763 echo "$ac_t""yes" 1>&6
13764 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13765 cat >> confdefs.h <<EOF
13766#define $ac_tr_hdr 1
10f2d63a 13767EOF
698dcdb6
VZ
13768
13769else
13770 echo "$ac_t""no" 1>&6
10f2d63a
VZ
13771fi
13772done
13773
698dcdb6
VZ
13774
13775 echo $ac_n "checking for sched_yield in -l$THREADS_LINK""... $ac_c" 1>&6
d73be714 13776echo "configure:13777: checking for sched_yield in -l$THREADS_LINK" >&5
698dcdb6
VZ
13777ac_lib_var=`echo $THREADS_LINK'_'sched_yield | sed 'y%./+-%__p_%'`
13778if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13779 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 13780else
698dcdb6 13781 ac_save_LIBS="$LIBS"
10f2d63a 13782LIBS="-l$THREADS_LINK $LIBS"
698dcdb6 13783cat > conftest.$ac_ext <<EOF
d73be714 13784#line 13785 "configure"
10f2d63a
VZ
13785#include "confdefs.h"
13786/* Override any gcc2 internal prototype to avoid an error. */
13787/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
13788 builtin and then its argument prototype would still apply. */
13789char sched_yield();
13790
13791int main() {
13792sched_yield()
13793; return 0; }
13794EOF
d73be714 13795if { (eval echo configure:13796: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
13796 rm -rf conftest*
13797 eval "ac_cv_lib_$ac_lib_var=yes"
13798else
13799 echo "configure: failed program was:" >&5
13800 cat conftest.$ac_ext >&5
13801 rm -rf conftest*
13802 eval "ac_cv_lib_$ac_lib_var=no"
13803fi
13804rm -f conftest*
13805LIBS="$ac_save_LIBS"
13806
13807fi
13808if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13809 echo "$ac_t""yes" 1>&6
13810 cat >> confdefs.h <<\EOF
10f2d63a
VZ
13811#define HAVE_SCHED_YIELD 1
13812EOF
13813
13814else
698dcdb6
VZ
13815 echo "$ac_t""no" 1>&6
13816echo $ac_n "checking for sched_yield in -lposix4""... $ac_c" 1>&6
d73be714 13817echo "configure:13818: checking for sched_yield in -lposix4" >&5
698dcdb6
VZ
13818ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'`
13819if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13820 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 13821else
698dcdb6 13822 ac_save_LIBS="$LIBS"
1e487827 13823LIBS="-lposix4 $LIBS"
698dcdb6 13824cat > conftest.$ac_ext <<EOF
d73be714 13825#line 13826 "configure"
10f2d63a
VZ
13826#include "confdefs.h"
13827/* Override any gcc2 internal prototype to avoid an error. */
13828/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
13829 builtin and then its argument prototype would still apply. */
13830char sched_yield();
13831
13832int main() {
13833sched_yield()
13834; return 0; }
13835EOF
d73be714 13836if { (eval echo configure:13837: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
13837 rm -rf conftest*
13838 eval "ac_cv_lib_$ac_lib_var=yes"
13839else
13840 echo "configure: failed program was:" >&5
13841 cat conftest.$ac_ext >&5
13842 rm -rf conftest*
13843 eval "ac_cv_lib_$ac_lib_var=no"
13844fi
13845rm -f conftest*
13846LIBS="$ac_save_LIBS"
13847
13848fi
13849if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13850 echo "$ac_t""yes" 1>&6
13851 cat >> confdefs.h <<\EOF
10f2d63a
VZ
13852#define HAVE_SCHED_YIELD 1
13853EOF
13854 POSIX4_LINK="-lposix4"
13855else
698dcdb6
VZ
13856 echo "$ac_t""no" 1>&6
13857echo "configure: warning: wxThread::Yield will not work properly" 1>&2
13858
6232543b 13859fi
10f2d63a 13860
698dcdb6 13861
1e487827 13862fi
703e0a69 13863
698dcdb6 13864
f6bcfd97 13865 HAVE_PRIOR_FUNCS=0
698dcdb6 13866 echo $ac_n "checking for pthread_attr_getschedpolicy in -l$THREADS_LINK""... $ac_c" 1>&6
d73be714 13867echo "configure:13868: checking for pthread_attr_getschedpolicy in -l$THREADS_LINK" >&5
698dcdb6
VZ
13868ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_getschedpolicy | sed 'y%./+-%__p_%'`
13869if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13870 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 13871else
698dcdb6 13872 ac_save_LIBS="$LIBS"
10f2d63a 13873LIBS="-l$THREADS_LINK $LIBS"
698dcdb6 13874cat > conftest.$ac_ext <<EOF
d73be714 13875#line 13876 "configure"
10f2d63a
VZ
13876#include "confdefs.h"
13877/* Override any gcc2 internal prototype to avoid an error. */
13878/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
13879 builtin and then its argument prototype would still apply. */
13880char pthread_attr_getschedpolicy();
13881
13882int main() {
13883pthread_attr_getschedpolicy()
13884; return 0; }
13885EOF
d73be714 13886if { (eval echo configure:13887: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
13887 rm -rf conftest*
13888 eval "ac_cv_lib_$ac_lib_var=yes"
13889else
13890 echo "configure: failed program was:" >&5
13891 cat conftest.$ac_ext >&5
13892 rm -rf conftest*
13893 eval "ac_cv_lib_$ac_lib_var=no"
13894fi
13895rm -f conftest*
13896LIBS="$ac_save_LIBS"
13897
13898fi
13899if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13900 echo "$ac_t""yes" 1>&6
13901 echo $ac_n "checking for pthread_attr_setschedparam in -l$THREADS_LINK""... $ac_c" 1>&6
d73be714 13902echo "configure:13903: checking for pthread_attr_setschedparam in -l$THREADS_LINK" >&5
698dcdb6
VZ
13903ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_setschedparam | sed 'y%./+-%__p_%'`
13904if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13905 echo $ac_n "(cached) $ac_c" 1>&6
13906else
13907 ac_save_LIBS="$LIBS"
f6bcfd97 13908LIBS="-l$THREADS_LINK $LIBS"
698dcdb6 13909cat > conftest.$ac_ext <<EOF
d73be714 13910#line 13911 "configure"
f6bcfd97
BP
13911#include "confdefs.h"
13912/* Override any gcc2 internal prototype to avoid an error. */
13913/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
13914 builtin and then its argument prototype would still apply. */
13915char pthread_attr_setschedparam();
13916
13917int main() {
13918pthread_attr_setschedparam()
13919; return 0; }
13920EOF
d73be714 13921if { (eval echo configure:13922: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
13922 rm -rf conftest*
13923 eval "ac_cv_lib_$ac_lib_var=yes"
13924else
13925 echo "configure: failed program was:" >&5
13926 cat conftest.$ac_ext >&5
13927 rm -rf conftest*
13928 eval "ac_cv_lib_$ac_lib_var=no"
13929fi
13930rm -f conftest*
13931LIBS="$ac_save_LIBS"
13932
13933fi
13934if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13935 echo "$ac_t""yes" 1>&6
13936 echo $ac_n "checking for sched_get_priority_max in -l$THREADS_LINK""... $ac_c" 1>&6
d73be714 13937echo "configure:13938: checking for sched_get_priority_max in -l$THREADS_LINK" >&5
698dcdb6
VZ
13938ac_lib_var=`echo $THREADS_LINK'_'sched_get_priority_max | sed 'y%./+-%__p_%'`
13939if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13940 echo $ac_n "(cached) $ac_c" 1>&6
13941else
13942 ac_save_LIBS="$LIBS"
f6bcfd97 13943LIBS="-l$THREADS_LINK $LIBS"
698dcdb6 13944cat > conftest.$ac_ext <<EOF
d73be714 13945#line 13946 "configure"
f6bcfd97
BP
13946#include "confdefs.h"
13947/* Override any gcc2 internal prototype to avoid an error. */
13948/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
13949 builtin and then its argument prototype would still apply. */
13950char sched_get_priority_max();
13951
13952int main() {
13953sched_get_priority_max()
13954; return 0; }
13955EOF
d73be714 13956if { (eval echo configure:13957: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
13957 rm -rf conftest*
13958 eval "ac_cv_lib_$ac_lib_var=yes"
13959else
13960 echo "configure: failed program was:" >&5
13961 cat conftest.$ac_ext >&5
13962 rm -rf conftest*
13963 eval "ac_cv_lib_$ac_lib_var=no"
13964fi
13965rm -f conftest*
13966LIBS="$ac_save_LIBS"
13967
13968fi
13969if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13970 echo "$ac_t""yes" 1>&6
f6bcfd97 13971 HAVE_PRIOR_FUNCS=1
10f2d63a 13972else
698dcdb6
VZ
13973 echo "$ac_t""no" 1>&6
13974echo $ac_n "checking for sched_get_priority_max in -lposix4""... $ac_c" 1>&6
d73be714 13975echo "configure:13976: checking for sched_get_priority_max in -lposix4" >&5
698dcdb6
VZ
13976ac_lib_var=`echo posix4'_'sched_get_priority_max | sed 'y%./+-%__p_%'`
13977if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13978 echo $ac_n "(cached) $ac_c" 1>&6
1e487827 13979else
698dcdb6 13980 ac_save_LIBS="$LIBS"
1e487827 13981LIBS="-lposix4 $LIBS"
698dcdb6 13982cat > conftest.$ac_ext <<EOF
d73be714 13983#line 13984 "configure"
10f2d63a 13984#include "confdefs.h"
6232543b 13985/* Override any gcc2 internal prototype to avoid an error. */
6232543b 13986/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
13987 builtin and then its argument prototype would still apply. */
13988char sched_get_priority_max();
13989
13990int main() {
13991sched_get_priority_max()
13992; return 0; }
13993EOF
d73be714 13994if { (eval echo configure:13995: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
13995 rm -rf conftest*
13996 eval "ac_cv_lib_$ac_lib_var=yes"
13997else
13998 echo "configure: failed program was:" >&5
13999 cat conftest.$ac_ext >&5
14000 rm -rf conftest*
14001 eval "ac_cv_lib_$ac_lib_var=no"
14002fi
14003rm -f conftest*
14004LIBS="$ac_save_LIBS"
10f2d63a 14005
698dcdb6
VZ
14006fi
14007if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14008 echo "$ac_t""yes" 1>&6
14009
f6bcfd97
BP
14010 HAVE_PRIOR_FUNCS=1
14011 POSIX4_LINK="-lposix4"
698dcdb6
VZ
14012
14013else
14014 echo "$ac_t""no" 1>&6
10f2d63a
VZ
14015fi
14016
698dcdb6 14017
10f2d63a
VZ
14018fi
14019
698dcdb6
VZ
14020
14021else
14022 echo "$ac_t""no" 1>&6
6232543b 14023fi
10f2d63a 14024
698dcdb6
VZ
14025
14026else
14027 echo "$ac_t""no" 1>&6
1e487827 14028fi
703e0a69 14029
698dcdb6 14030
f6bcfd97 14031 if test "$HAVE_PRIOR_FUNCS" = 1; then
698dcdb6 14032 cat >> confdefs.h <<\EOF
f6bcfd97
BP
14033#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
14034EOF
14035
14036 else
698dcdb6 14037 echo "configure: warning: Setting thread priority will not work" 1>&2
f6bcfd97
BP
14038 fi
14039
698dcdb6 14040 echo $ac_n "checking for pthread_cancel in -l$THREADS_LINK""... $ac_c" 1>&6
d73be714 14041echo "configure:14042: checking for pthread_cancel in -l$THREADS_LINK" >&5
698dcdb6
VZ
14042ac_lib_var=`echo $THREADS_LINK'_'pthread_cancel | sed 'y%./+-%__p_%'`
14043if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14044 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 14045else
698dcdb6 14046 ac_save_LIBS="$LIBS"
10f2d63a 14047LIBS="-l$THREADS_LINK $LIBS"
698dcdb6 14048cat > conftest.$ac_ext <<EOF
d73be714 14049#line 14050 "configure"
10f2d63a
VZ
14050#include "confdefs.h"
14051/* Override any gcc2 internal prototype to avoid an error. */
14052/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
14053 builtin and then its argument prototype would still apply. */
14054char pthread_cancel();
14055
14056int main() {
14057pthread_cancel()
14058; return 0; }
14059EOF
d73be714 14060if { (eval echo configure:14061: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
14061 rm -rf conftest*
14062 eval "ac_cv_lib_$ac_lib_var=yes"
14063else
14064 echo "configure: failed program was:" >&5
14065 cat conftest.$ac_ext >&5
14066 rm -rf conftest*
14067 eval "ac_cv_lib_$ac_lib_var=no"
14068fi
14069rm -f conftest*
14070LIBS="$ac_save_LIBS"
14071
14072fi
14073if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14074 echo "$ac_t""yes" 1>&6
14075 cat >> confdefs.h <<\EOF
10f2d63a
VZ
14076#define HAVE_PTHREAD_CANCEL 1
14077EOF
14078
14079else
698dcdb6
VZ
14080 echo "$ac_t""no" 1>&6
14081echo "configure: warning: wxThread::Kill() will not work properly" 1>&2
10f2d63a
VZ
14082fi
14083
1e487827 14084
698dcdb6 14085 echo $ac_n "checking for pthread_cleanup_push/pop""... $ac_c" 1>&6
d73be714 14086echo "configure:14087: checking for pthread_cleanup_push/pop" >&5
698dcdb6
VZ
14087if eval "test \"`echo '$''{'wx_cv_func_pthread_cleanup_push'+set}'`\" = set"; then
14088 echo $ac_n "(cached) $ac_c" 1>&6
14089else
14090
14091 cat > conftest.$ac_ext <<EOF
d73be714 14092#line 14093 "configure"
10f2d63a
VZ
14093#include "confdefs.h"
14094#include <pthread.h>
698dcdb6 14095int main() {
10f2d63a
VZ
14096
14097 pthread_cleanup_push(NULL, NULL);
14098 pthread_cleanup_pop(0);
698dcdb6
VZ
14099
14100; return 0; }
14101EOF
d73be714 14102if { (eval echo configure:14103: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
14103 rm -rf conftest*
14104
10f2d63a 14105 wx_cv_func_pthread_cleanup_push=yes
698dcdb6 14106
10f2d63a 14107else
698dcdb6
VZ
14108 echo "configure: failed program was:" >&5
14109 cat conftest.$ac_ext >&5
14110 rm -rf conftest*
14111
10f2d63a 14112 wx_cv_func_pthread_cleanup_push=no
698dcdb6 14113
6232543b 14114fi
698dcdb6
VZ
14115rm -f conftest*
14116
1e487827 14117fi
698dcdb6
VZ
14118
14119echo "$ac_t""$wx_cv_func_pthread_cleanup_push" 1>&6
10f2d63a 14120
d9b9876f 14121 if test "$wx_cv_func_pthread_cleanup_push" = "yes"; then
698dcdb6 14122 cat >> confdefs.h <<\EOF
d9b9876f
VZ
14123#define HAVE_THREAD_CLEANUP_FUNCTIONS 1
14124EOF
14125
14126 fi
14127
698dcdb6
VZ
14128
14129 echo $ac_n "checking for pthread_mutexattr_t""... $ac_c" 1>&6
d73be714 14130echo "configure:14131: checking for pthread_mutexattr_t" >&5
698dcdb6
VZ
14131if eval "test \"`echo '$''{'wx_cv_type_pthread_mutexattr_t'+set}'`\" = set"; then
14132 echo $ac_n "(cached) $ac_c" 1>&6
d9b9876f 14133else
698dcdb6
VZ
14134
14135 cat > conftest.$ac_ext <<EOF
d73be714 14136#line 14137 "configure"
d9b9876f
VZ
14137#include "confdefs.h"
14138#include <pthread.h>
698dcdb6 14139int main() {
d9b9876f
VZ
14140
14141 pthread_mutexattr_t attr;
14142 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
698dcdb6
VZ
14143
14144; return 0; }
14145EOF
d73be714 14146if { (eval echo configure:14147: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
14147 rm -rf conftest*
14148
d9b9876f 14149 wx_cv_type_pthread_mutexattr_t=yes
698dcdb6 14150
d9b9876f 14151else
698dcdb6
VZ
14152 echo "configure: failed program was:" >&5
14153 cat conftest.$ac_ext >&5
14154 rm -rf conftest*
14155
d9b9876f 14156 wx_cv_type_pthread_mutexattr_t=no
698dcdb6
VZ
14157
14158
6232543b 14159fi
698dcdb6
VZ
14160rm -f conftest*
14161
1e487827 14162fi
698dcdb6
VZ
14163
14164echo "$ac_t""$wx_cv_type_pthread_mutexattr_t" 1>&6
d9b9876f
VZ
14165
14166 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
698dcdb6 14167 cat >> confdefs.h <<\EOF
d9b9876f
VZ
14168#define HAVE_PTHREAD_MUTEXATTR_T 1
14169EOF
14170
14171 else
698dcdb6 14172 echo $ac_n "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER""... $ac_c" 1>&6
d73be714 14173echo "configure:14174: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
698dcdb6
VZ
14174if eval "test \"`echo '$''{'wx_cv_type_pthread_rec_mutex_init'+set}'`\" = set"; then
14175 echo $ac_n "(cached) $ac_c" 1>&6
14176else
14177
14178 cat > conftest.$ac_ext <<EOF
d73be714 14179#line 14180 "configure"
d9b9876f
VZ
14180#include "confdefs.h"
14181#include <pthread.h>
698dcdb6 14182int main() {
d9b9876f
VZ
14183
14184 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
698dcdb6
VZ
14185
14186; return 0; }
14187EOF
d73be714 14188if { (eval echo configure:14189: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
14189 rm -rf conftest*
14190
d9b9876f 14191 wx_cv_type_pthread_rec_mutex_init=yes
698dcdb6 14192
d9b9876f 14193else
698dcdb6
VZ
14194 echo "configure: failed program was:" >&5
14195 cat conftest.$ac_ext >&5
14196 rm -rf conftest*
14197
d9b9876f 14198 wx_cv_type_pthread_rec_mutex_init=no
698dcdb6
VZ
14199
14200
6232543b 14201fi
698dcdb6
VZ
14202rm -f conftest*
14203
1e487827 14204fi
698dcdb6
VZ
14205
14206echo "$ac_t""$wx_cv_type_pthread_rec_mutex_init" 1>&6
3765e936 14207 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
698dcdb6 14208 cat >> confdefs.h <<\EOF
d9b9876f
VZ
14209#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
14210EOF
14211
14212 else
698dcdb6 14213 echo "configure: warning: wxMutex won't be recursive on this platform" 1>&2
d9b9876f
VZ
14214 fi
14215 fi
14216
10f2d63a 14217 THREADS_LINK="-l$THREADS_LINK"
186837b0
VZ
14218
14219 if test "$USE_SOLARIS" = "yes" -a "$GCC" != "yes"; then
14220 CFLAGS="${CFLAGS} -mt"
14221 CXXFLAGS="${CXXFLAGS} -mt"
14222 LDFLAGS="${LDFLAGS} -mt"
14223 fi
10f2d63a
VZ
14224fi
14225
14226fi
14227
14228if test "$wxUSE_THREADS" = "yes"; then
698dcdb6 14229 cat >> confdefs.h <<\EOF
10f2d63a
VZ
14230#define wxUSE_THREADS 1
14231EOF
14232
698dcdb6 14233
2c6025bc 14234 if test "$wxUSE_MAC" = "0"; then
10f2d63a 14235 CFLAGS="${CFLAGS} -D_REENTRANT"
2c6025bc
GD
14236 CXXFLAGS="${CXXFLAGS} -D_REENTRANT"
14237 fi
10f2d63a
VZ
14238
14239 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
14240else
14241 if test "$ac_cv_func_strtok_r" = "yes"; then
698dcdb6 14242 echo $ac_n "checking if -D_REENTRANT is needed""... $ac_c" 1>&6
d73be714 14243echo "configure:14244: checking if -D_REENTRANT is needed" >&5
ab9b9eab
VZ
14244 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
14245 CFLAGS="${CFLAGS} -D_REENTRANT"
14246 CXXFLAGS="${CXXFLAGS} -D_REENTRANT"
698dcdb6 14247 echo "$ac_t""yes" 1>&6
ab9b9eab 14248 else
698dcdb6 14249 echo "$ac_t""no" 1>&6
10f2d63a
VZ
14250 fi
14251 fi
14252fi
14253
6f72b082 14254if test "$WXGTK20" = 1 ; then
698dcdb6 14255 cat >> confdefs.h <<EOF
6f72b082 14256#define __WXGTK20__ $WXGTK20
13111b2a
VZ
14257EOF
14258
14259 WXGTK12=1
14260fi
14261
10f2d63a 14262if test "$WXGTK12" = 1 ; then
698dcdb6 14263 cat >> confdefs.h <<EOF
10f2d63a
VZ
14264#define __WXGTK12__ $WXGTK12
14265EOF
14266
14267fi
14268
f6bcfd97 14269if test "$WXGTK127" = 1 ; then
698dcdb6 14270 cat >> confdefs.h <<EOF
f6bcfd97
BP
14271#define __WXGTK127__ $WXGTK127
14272EOF
14273
14274fi
14275
10f2d63a
VZ
14276if test "$WXWINE" = 1 ; then
14277 TOOLKIT_DEF="${TOOLKIT_DEF} -D__WXWINE__"
14278fi
14279
b4085ce6 14280if test "$wxUSE_MAC" = 1 ; then
2c6025bc 14281 TOOLKIT_DEF="${TOOLKIT_DEF} -D__UNIX__ -D__POWERPC__ -DTARGET_CARBON"
ea5999b9 14282 CFLAGS="${CFLAGS} -fno-common -fpascal-strings"
0c451ef3 14283 CPPFLAGS="${CPPFLAGS} -cpp-precomp -fno-common -fpascal-strings"
2f51a9ec
GD
14284 # Extract the first word of "Rez", so it can be a program name with args.
14285set dummy Rez; ac_word=$2
698dcdb6 14286echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
d73be714 14287echo "configure:14288: checking for $ac_word" >&5
698dcdb6
VZ
14288if eval "test \"`echo '$''{'ac_cv_prog_REZ'+set}'`\" = set"; then
14289 echo $ac_n "(cached) $ac_c" 1>&6
2f51a9ec
GD
14290else
14291 if test -n "$REZ"; then
14292 ac_cv_prog_REZ="$REZ" # Let the user override the test.
14293else
698dcdb6
VZ
14294 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
14295 ac_dummy="$PATH"
14296 for ac_dir in $ac_dummy; do
14297 test -z "$ac_dir" && ac_dir=.
14298 if test -f $ac_dir/$ac_word; then
14299 ac_cv_prog_REZ="Rez"
14300 break
14301 fi
14302 done
14303 IFS="$ac_save_ifs"
2f51a9ec
GD
14304 test -z "$ac_cv_prog_REZ" && ac_cv_prog_REZ="/Developer/Tools/Rez"
14305fi
14306fi
698dcdb6 14307REZ="$ac_cv_prog_REZ"
2f51a9ec 14308if test -n "$REZ"; then
698dcdb6 14309 echo "$ac_t""$REZ" 1>&6
2f51a9ec 14310else
698dcdb6 14311 echo "$ac_t""no" 1>&6
2f51a9ec
GD
14312fi
14313
14314 # Extract the first word of "Derez", so it can be a program name with args.
14315set dummy Derez; ac_word=$2
698dcdb6 14316echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
d73be714 14317echo "configure:14318: checking for $ac_word" >&5
698dcdb6
VZ
14318if eval "test \"`echo '$''{'ac_cv_prog_DEREZ'+set}'`\" = set"; then
14319 echo $ac_n "(cached) $ac_c" 1>&6
2f51a9ec
GD
14320else
14321 if test -n "$DEREZ"; then
14322 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
14323else
698dcdb6
VZ
14324 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
14325 ac_dummy="$PATH"
14326 for ac_dir in $ac_dummy; do
14327 test -z "$ac_dir" && ac_dir=.
14328 if test -f $ac_dir/$ac_word; then
14329 ac_cv_prog_DEREZ="Derez"
14330 break
14331 fi
14332 done
14333 IFS="$ac_save_ifs"
2f51a9ec
GD
14334 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/Derez"
14335fi
14336fi
698dcdb6 14337DEREZ="$ac_cv_prog_DEREZ"
2f51a9ec 14338if test -n "$DEREZ"; then
698dcdb6 14339 echo "$ac_t""$DEREZ" 1>&6
2f51a9ec 14340else
698dcdb6 14341 echo "$ac_t""no" 1>&6
2f51a9ec
GD
14342fi
14343
14344 RESCOMP=${REZ}
14345 REZFLAGS="-d __UNIX__ -useDF"
14346 DEREZFLAGS="Carbon.r -useDF"
14347 RESFLAGS="Carbon.r -t APPL"
14348 LIBWXMACRES="\$(LIBWX_MACRES)"
14349 LIBWXMACRESCOMP="\$(LIBWX_MACRESCOMP)"
b4085ce6
GD
14350fi
14351
10f2d63a
VZ
14352if test "$wxUSE_CYGWIN" = 1 ; then
14353 TOOLKIT_DEF="${TOOLKIT_DEF} -D__WIN95__"
14354fi
14355
14356WXDEBUG=
14357
14358if test "$wxUSE_DEBUG_INFO" = "yes" ; then
14359 WXDEBUG="-g"
14360 wxUSE_OPTIMISE=no
14361fi
14362
14363if test "$wxUSE_DEBUG_GDB" = "yes" ; then
14364 wxUSE_DEBUG_INFO=yes
14365 WXDEBUG="-ggdb"
14366fi
14367
14368if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
698dcdb6 14369 cat >> confdefs.h <<\EOF
10f2d63a
VZ
14370#define WXDEBUG 1
14371EOF
14372
14373 WXDEBUG_DEFINE="-D__WXDEBUG__"
14374else
14375 if test "$wxUSE_GTK" = 1 ; then
14376 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
14377 fi
14378fi
14379
14380if test "$wxUSE_MEM_TRACING" = "yes" ; then
698dcdb6 14381 cat >> confdefs.h <<\EOF
10f2d63a
VZ
14382#define wxUSE_MEMORY_TRACING 1
14383EOF
14384
698dcdb6 14385 cat >> confdefs.h <<\EOF
10f2d63a 14386#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
47c13eb7
VS
14387EOF
14388
698dcdb6 14389 cat >> confdefs.h <<\EOF
47c13eb7 14390#define wxUSE_DEBUG_NEW_ALWAYS 1
10f2d63a
VZ
14391EOF
14392
14393 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
14394fi
14395
14396if test "$wxUSE_DMALLOC" = "yes" ; then
14397 DMALLOC_LINK="-ldmalloc"
14398fi
14399
14400PROFILE=
14401if test "$wxUSE_PROFILE" = "yes" ; then
14402 PROFILE="-pg"
14403fi
14404
14405DEP_INFO_FLAGS=
caa2c79b 14406CODE_GEN_FLAGS=
0f3f1cbc 14407CODE_GEN_FLAGS_CXX=
10f2d63a
VZ
14408if test "$GCC" = yes ; then
14409 if test "$wxUSE_NO_RTTI" = "yes" ; then
0f3f1cbc 14410 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS -fno-rtti"
10f2d63a
VZ
14411 fi
14412 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
0f3f1cbc 14413 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS -fno-exceptions"
10f2d63a
VZ
14414 fi
14415 if test "$wxUSE_PERMISSIVE" = "yes" ; then
caa2c79b 14416 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
10f2d63a
VZ
14417 fi
14418 if test "$wxUSE_NO_DEPS" = "no" ; then
14419 DEP_INFO_FLAGS="-MMD"
14420 fi
14421fi
14422
698dcdb6 14423
10f2d63a
VZ
14424CXXFLAGS=`echo "${CXXFLAGS}" | sed "s/\-O.//g" `
14425CFLAGS=`echo "${CFLAGS}" | sed "s/\-O.//g" `
14426if test "$wxUSE_OPTIMISE" = "no" ; then
14427 OPTIMISE=
14428else
14429 if test "$GCC" = yes ; then
14430 OPTIMISE="-O2"
14431 case "${host}" in
14432 i586-*-*|i686-*-* )
14433 OPTIMISE="${OPTIMISE} "
14434 ;;
14435 esac
14436 else
14437 OPTIMISE="-O"
14438 fi
14439fi
14440
54276ccf
VZ
14441if test "$WXWIN_COMPATIBILITY_2" = "yes"; then
14442 cat >> confdefs.h <<\EOF
14443#define WXWIN_COMPATIBILITY_2 1
14444EOF
14445
14446
14447 WXWIN_COMPATIBILITY_2_2="yes"
14448fi
14449
14450if test "$WXWIN_COMPATIBILITY_2_2" = "yes"; then
14451 cat >> confdefs.h <<\EOF
14452#define WXWIN_COMPATIBILITY_2_2 1
14453EOF
14454
14455fi
14456
698dcdb6 14457
10f2d63a 14458ZLIB_INCLUDE=
422107f9 14459if test "$wxUSE_ZLIB" = "yes" -o "$wxUSE_ZLIB" = "sys" ; then
698dcdb6 14460 cat >> confdefs.h <<\EOF
10f2d63a
VZ
14461#define wxUSE_ZLIB 1
14462EOF
14463
422107f9
VZ
14464 if test "$wxUSE_ZLIB" = "yes" ; then
14465 ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib"
14466 else
14467 ZLIB_LINK=
698dcdb6
VZ
14468 ac_safe=`echo "zlib.h" | sed 'y%./+-%__p_%'`
14469echo $ac_n "checking for zlib.h""... $ac_c" 1>&6
d73be714 14470echo "configure:14471: checking for zlib.h" >&5
698dcdb6
VZ
14471if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
14472 echo $ac_n "(cached) $ac_c" 1>&6
14473else
14474 cat > conftest.$ac_ext <<EOF
d73be714 14475#line 14476 "configure"
422107f9
VZ
14476#include "confdefs.h"
14477#include <zlib.h>
698dcdb6
VZ
14478EOF
14479ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
d73be714 14480{ (eval echo configure:14481: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
14481ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14482if test -z "$ac_err"; then
14483 rm -rf conftest*
14484 eval "ac_cv_header_$ac_safe=yes"
422107f9 14485else
698dcdb6
VZ
14486 echo "$ac_err" >&5
14487 echo "configure: failed program was:" >&5
422107f9 14488 cat conftest.$ac_ext >&5
698dcdb6
VZ
14489 rm -rf conftest*
14490 eval "ac_cv_header_$ac_safe=no"
422107f9 14491fi
698dcdb6 14492rm -f conftest*
422107f9 14493fi
698dcdb6
VZ
14494if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14495 echo "$ac_t""yes" 1>&6
14496 echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
d73be714 14497echo "configure:14498: checking for deflate in -lz" >&5
698dcdb6
VZ
14498ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
14499if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14500 echo $ac_n "(cached) $ac_c" 1>&6
422107f9 14501else
698dcdb6 14502 ac_save_LIBS="$LIBS"
422107f9 14503LIBS="-lz $LIBS"
698dcdb6 14504cat > conftest.$ac_ext <<EOF
d73be714 14505#line 14506 "configure"
422107f9
VZ
14506#include "confdefs.h"
14507/* Override any gcc2 internal prototype to avoid an error. */
14508/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
14509 builtin and then its argument prototype would still apply. */
14510char deflate();
14511
14512int main() {
14513deflate()
14514; return 0; }
14515EOF
d73be714 14516if { (eval echo configure:14517: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
14517 rm -rf conftest*
14518 eval "ac_cv_lib_$ac_lib_var=yes"
14519else
14520 echo "configure: failed program was:" >&5
14521 cat conftest.$ac_ext >&5
14522 rm -rf conftest*
14523 eval "ac_cv_lib_$ac_lib_var=no"
14524fi
14525rm -f conftest*
14526LIBS="$ac_save_LIBS"
14527
14528fi
14529if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14530 echo "$ac_t""yes" 1>&6
422107f9 14531 ZLIB_LINK="-lz"
698dcdb6
VZ
14532else
14533 echo "$ac_t""no" 1>&6
422107f9
VZ
14534fi
14535
698dcdb6
VZ
14536else
14537 echo "$ac_t""no" 1>&6
422107f9
VZ
14538fi
14539
14540 if test "x$ZLIB_LINK" = "x" ; then
698dcdb6 14541 { echo "configure: error: system zlib compression library not found! Use --with-zlib=yes to use built-in zlib" 1>&2; exit 1; }
422107f9
VZ
14542 fi
14543 fi
10f2d63a
VZ
14544fi
14545
14546PNG_INCLUDE=
422107f9 14547if test "$wxUSE_LIBPNG" = "yes" -o "$wxUSE_LIBPNG" = "sys" ; then
698dcdb6 14548 cat >> confdefs.h <<\EOF
10f2d63a
VZ
14549#define wxUSE_LIBPNG 1
14550EOF
14551
41fd4136 14552 if test "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
698dcdb6 14553 echo "configure: warning: --with-libpng=sys doesn't work without --with-zlib=sys, will compile the built-in libpng instead" 1>&2
422107f9
VZ
14554 wxUSE_LIBPNG=yes
14555 fi
14556
14557 if test "$wxUSE_LIBPNG" = "yes" ; then
14558 PNG_INCLUDE="-I\${top_srcdir}/src/png"
14559 else
14560 PNG_LINK=
698dcdb6
VZ
14561 ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
14562echo $ac_n "checking for png.h""... $ac_c" 1>&6
d73be714 14563echo "configure:14564: checking for png.h" >&5
698dcdb6
VZ
14564if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
14565 echo $ac_n "(cached) $ac_c" 1>&6
14566else
14567 cat > conftest.$ac_ext <<EOF
d73be714 14568#line 14569 "configure"
422107f9
VZ
14569#include "confdefs.h"
14570#include <png.h>
698dcdb6
VZ
14571EOF
14572ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
d73be714 14573{ (eval echo configure:14574: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
14574ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14575if test -z "$ac_err"; then
14576 rm -rf conftest*
14577 eval "ac_cv_header_$ac_safe=yes"
422107f9 14578else
698dcdb6
VZ
14579 echo "$ac_err" >&5
14580 echo "configure: failed program was:" >&5
422107f9 14581 cat conftest.$ac_ext >&5
698dcdb6
VZ
14582 rm -rf conftest*
14583 eval "ac_cv_header_$ac_safe=no"
422107f9 14584fi
698dcdb6 14585rm -f conftest*
422107f9 14586fi
698dcdb6
VZ
14587if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14588 echo "$ac_t""yes" 1>&6
14589 echo $ac_n "checking for png_check_sig in -lpng""... $ac_c" 1>&6
d73be714 14590echo "configure:14591: checking for png_check_sig in -lpng" >&5
698dcdb6
VZ
14591ac_lib_var=`echo png'_'png_check_sig | sed 'y%./+-%__p_%'`
14592if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14593 echo $ac_n "(cached) $ac_c" 1>&6
422107f9 14594else
698dcdb6 14595 ac_save_LIBS="$LIBS"
422107f9 14596LIBS="-lpng -lz -lm $LIBS"
698dcdb6 14597cat > conftest.$ac_ext <<EOF
d73be714 14598#line 14599 "configure"
422107f9
VZ
14599#include "confdefs.h"
14600/* Override any gcc2 internal prototype to avoid an error. */
14601/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
14602 builtin and then its argument prototype would still apply. */
14603char png_check_sig();
14604
14605int main() {
14606png_check_sig()
14607; return 0; }
14608EOF
d73be714 14609if { (eval echo configure:14610: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
14610 rm -rf conftest*
14611 eval "ac_cv_lib_$ac_lib_var=yes"
14612else
14613 echo "configure: failed program was:" >&5
14614 cat conftest.$ac_ext >&5
14615 rm -rf conftest*
14616 eval "ac_cv_lib_$ac_lib_var=no"
14617fi
14618rm -f conftest*
14619LIBS="$ac_save_LIBS"
14620
14621fi
14622if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14623 echo "$ac_t""yes" 1>&6
422107f9 14624 PNG_LINK="-lpng"
698dcdb6
VZ
14625else
14626 echo "$ac_t""no" 1>&6
422107f9
VZ
14627fi
14628
698dcdb6
VZ
14629
14630else
14631 echo "$ac_t""no" 1>&6
422107f9
VZ
14632fi
14633
14634 if test "x$PNG_LINK" = "x" ; then
698dcdb6 14635 { echo "configure: error: system png library not found! Use --with-libpng=yes to use the built-in libpng" 1>&2; exit 1; }
422107f9
VZ
14636 fi
14637 fi
14638
10f2d63a
VZ
14639 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
14640fi
14641
14642JPEG_INCLUDE=
422107f9 14643if test "$wxUSE_LIBJPEG" = "yes" -o "$wxUSE_LIBJPEG" = "sys" ; then
698dcdb6 14644 cat >> confdefs.h <<\EOF
10f2d63a
VZ
14645#define wxUSE_LIBJPEG 1
14646EOF
14647
422107f9
VZ
14648 if test "$wxUSE_LIBJPEG" = "yes" ; then
14649 JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg"
14650 else
14651 JPEG_LINK=
463abc64 14652 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
d73be714 14653echo "configure:14654: checking for jpeglib.h" >&5
463abc64 14654 if eval "test \"`echo '$''{'ac_cv_header_jpeglib_h'+set}'`\" = set"; then
698dcdb6
VZ
14655 echo $ac_n "(cached) $ac_c" 1>&6
14656else
14657 cat > conftest.$ac_ext <<EOF
d73be714 14658#line 14659 "configure"
422107f9 14659#include "confdefs.h"
463abc64
VZ
14660
14661 #undef HAVE_STDLIB_H
14662 #include <stdio.h>
14663 #include <jpeglib.h>
14664
14665int main() {
14666
14667
14668; return 0; }
698dcdb6 14669EOF
d73be714 14670if { (eval echo configure:14671: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 14671 rm -rf conftest*
463abc64 14672 ac_cv_header_jpeglib_h=yes
6232543b 14673else
698dcdb6 14674 echo "configure: failed program was:" >&5
422107f9 14675 cat conftest.$ac_ext >&5
698dcdb6 14676 rm -rf conftest*
463abc64
VZ
14677 ac_cv_header_jpeglib_h=no
14678
422107f9 14679fi
698dcdb6 14680rm -f conftest*
463abc64 14681
422107f9 14682fi
463abc64
VZ
14683
14684 echo "$ac_t""$ac_cv_header_jpeglib_h" 1>&6
14685
14686 if test "$ac_cv_header_jpeglib_h" = "yes"; then
14687 echo $ac_n "checking for jpeg_read_header in -ljpeg""... $ac_c" 1>&6
d73be714 14688echo "configure:14689: checking for jpeg_read_header in -ljpeg" >&5
698dcdb6
VZ
14689ac_lib_var=`echo jpeg'_'jpeg_read_header | sed 'y%./+-%__p_%'`
14690if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14691 echo $ac_n "(cached) $ac_c" 1>&6
422107f9 14692else
698dcdb6 14693 ac_save_LIBS="$LIBS"
422107f9 14694LIBS="-ljpeg $LIBS"
698dcdb6 14695cat > conftest.$ac_ext <<EOF
d73be714 14696#line 14697 "configure"
422107f9
VZ
14697#include "confdefs.h"
14698/* Override any gcc2 internal prototype to avoid an error. */
14699/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
14700 builtin and then its argument prototype would still apply. */
14701char jpeg_read_header();
14702
14703int main() {
14704jpeg_read_header()
14705; return 0; }
14706EOF
d73be714 14707if { (eval echo configure:14708: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
14708 rm -rf conftest*
14709 eval "ac_cv_lib_$ac_lib_var=yes"
14710else
14711 echo "configure: failed program was:" >&5
14712 cat conftest.$ac_ext >&5
14713 rm -rf conftest*
14714 eval "ac_cv_lib_$ac_lib_var=no"
14715fi
14716rm -f conftest*
14717LIBS="$ac_save_LIBS"
14718
14719fi
14720if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14721 echo "$ac_t""yes" 1>&6
422107f9 14722 JPEG_LINK="-ljpeg"
698dcdb6
VZ
14723else
14724 echo "$ac_t""no" 1>&6
422107f9
VZ
14725fi
14726
463abc64 14727 fi
422107f9
VZ
14728
14729 if test "x$JPEG_LINK" = "x" ; then
698dcdb6 14730 { echo "configure: error: system jpeg library not found! Use --with-libjpeg=yes to use the built-in one" 1>&2; exit 1; }
422107f9
VZ
14731 fi
14732 fi
10f2d63a
VZ
14733fi
14734
c7a2bf27 14735TIFF_INCLUDE=
0dcf9893 14736if test "$wxUSE_LIBTIFF" = "yes" -o "$wxUSE_LIBTIFF" = "sys" ; then
698dcdb6 14737 cat >> confdefs.h <<\EOF
c7a2bf27
RR
14738#define wxUSE_LIBTIFF 1
14739EOF
14740
665bbe97 14741 if test "$wxUSE_LIBTIFF" = "yes" ; then
0dcf9893
VZ
14742 TIFF_INCLUDE="-I\${top_srcdir}/src/tiff"
14743 else
14744 TIFF_LINK=
698dcdb6
VZ
14745 ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
14746echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
d73be714 14747echo "configure:14748: checking for tiffio.h" >&5
698dcdb6
VZ
14748if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
14749 echo $ac_n "(cached) $ac_c" 1>&6
14750else
14751 cat > conftest.$ac_ext <<EOF
d73be714 14752#line 14753 "configure"
0dcf9893
VZ
14753#include "confdefs.h"
14754#include <tiffio.h>
698dcdb6
VZ
14755EOF
14756ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
d73be714 14757{ (eval echo configure:14758: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
14758ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14759if test -z "$ac_err"; then
14760 rm -rf conftest*
14761 eval "ac_cv_header_$ac_safe=yes"
1e487827 14762else
698dcdb6
VZ
14763 echo "$ac_err" >&5
14764 echo "configure: failed program was:" >&5
0dcf9893 14765 cat conftest.$ac_ext >&5
698dcdb6
VZ
14766 rm -rf conftest*
14767 eval "ac_cv_header_$ac_safe=no"
0dcf9893 14768fi
698dcdb6 14769rm -f conftest*
0dcf9893 14770fi
698dcdb6
VZ
14771if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14772 echo "$ac_t""yes" 1>&6
14773 echo $ac_n "checking for TIFFError in -ltiff""... $ac_c" 1>&6
d73be714 14774echo "configure:14775: checking for TIFFError in -ltiff" >&5
698dcdb6
VZ
14775ac_lib_var=`echo tiff'_'TIFFError | sed 'y%./+-%__p_%'`
14776if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14777 echo $ac_n "(cached) $ac_c" 1>&6
0dcf9893 14778else
698dcdb6 14779 ac_save_LIBS="$LIBS"
0dcf9893 14780LIBS="-ltiff -lm $LIBS"
698dcdb6 14781cat > conftest.$ac_ext <<EOF
d73be714 14782#line 14783 "configure"
0dcf9893
VZ
14783#include "confdefs.h"
14784/* Override any gcc2 internal prototype to avoid an error. */
14785/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
14786 builtin and then its argument prototype would still apply. */
14787char TIFFError();
14788
14789int main() {
14790TIFFError()
14791; return 0; }
14792EOF
d73be714 14793if { (eval echo configure:14794: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
14794 rm -rf conftest*
14795 eval "ac_cv_lib_$ac_lib_var=yes"
14796else
14797 echo "configure: failed program was:" >&5
14798 cat conftest.$ac_ext >&5
14799 rm -rf conftest*
14800 eval "ac_cv_lib_$ac_lib_var=no"
14801fi
14802rm -f conftest*
14803LIBS="$ac_save_LIBS"
14804
14805fi
14806if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14807 echo "$ac_t""yes" 1>&6
0dcf9893 14808 TIFF_LINK="-ltiff"
698dcdb6
VZ
14809else
14810 echo "$ac_t""no" 1>&6
0dcf9893
VZ
14811fi
14812
698dcdb6
VZ
14813else
14814 echo "$ac_t""no" 1>&6
0dcf9893
VZ
14815fi
14816
14817 if test "x$TIFF_LINK" = "x" ; then
698dcdb6 14818 { echo "configure: error: system tiff library not found! Use --with-libtiff=yes to use the built-in one" 1>&2; exit 1; }
0dcf9893
VZ
14819 fi
14820 fi
c7a2bf27
RR
14821fi
14822
3fed1840
RR
14823FREETYPE_INCLUDE=
14824if test "$wxUSE_FREETYPE" = "yes" -o "$wxUSE_FREETYPE" = "sys" ; then
698dcdb6 14825 cat >> confdefs.h <<\EOF
3fed1840
RR
14826#define wxUSE_FREETYPE 1
14827EOF
14828
14829 if test "$wxUSE_FREETYPE" = "yes" ; then
14830 FREETYPE_INCLUDE="-I\${top_srcdir}/src/freetype"
14831 else
14832 FREETYPE_LINK=
698dcdb6
VZ
14833 ac_safe=`echo "freetype.h" | sed 'y%./+-%__p_%'`
14834echo $ac_n "checking for freetype.h""... $ac_c" 1>&6
d73be714 14835echo "configure:14836: checking for freetype.h" >&5
698dcdb6
VZ
14836if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
14837 echo $ac_n "(cached) $ac_c" 1>&6
14838else
14839 cat > conftest.$ac_ext <<EOF
d73be714 14840#line 14841 "configure"
3fed1840
RR
14841#include "confdefs.h"
14842#include <freetype.h>
698dcdb6
VZ
14843EOF
14844ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
d73be714 14845{ (eval echo configure:14846: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
14846ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14847if test -z "$ac_err"; then
14848 rm -rf conftest*
14849 eval "ac_cv_header_$ac_safe=yes"
3fed1840 14850else
698dcdb6
VZ
14851 echo "$ac_err" >&5
14852 echo "configure: failed program was:" >&5
3fed1840 14853 cat conftest.$ac_ext >&5
698dcdb6
VZ
14854 rm -rf conftest*
14855 eval "ac_cv_header_$ac_safe=no"
3fed1840 14856fi
698dcdb6 14857rm -f conftest*
3fed1840 14858fi
698dcdb6
VZ
14859if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14860 echo "$ac_t""yes" 1>&6
14861 echo $ac_n "checking for FT_Render_Glyph in -lfreetype""... $ac_c" 1>&6
d73be714 14862echo "configure:14863: checking for FT_Render_Glyph in -lfreetype" >&5
698dcdb6
VZ
14863ac_lib_var=`echo freetype'_'FT_Render_Glyph | sed 'y%./+-%__p_%'`
14864if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14865 echo $ac_n "(cached) $ac_c" 1>&6
3fed1840 14866else
698dcdb6 14867 ac_save_LIBS="$LIBS"
3fed1840 14868LIBS="-lfreetype -lm $LIBS"
698dcdb6 14869cat > conftest.$ac_ext <<EOF
d73be714 14870#line 14871 "configure"
3fed1840
RR
14871#include "confdefs.h"
14872/* Override any gcc2 internal prototype to avoid an error. */
14873/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
14874 builtin and then its argument prototype would still apply. */
14875char FT_Render_Glyph();
14876
14877int main() {
14878FT_Render_Glyph()
14879; return 0; }
14880EOF
d73be714 14881if { (eval echo configure:14882: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
14882 rm -rf conftest*
14883 eval "ac_cv_lib_$ac_lib_var=yes"
14884else
14885 echo "configure: failed program was:" >&5
14886 cat conftest.$ac_ext >&5
14887 rm -rf conftest*
14888 eval "ac_cv_lib_$ac_lib_var=no"
14889fi
14890rm -f conftest*
14891LIBS="$ac_save_LIBS"
14892
14893fi
14894if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14895 echo "$ac_t""yes" 1>&6
3fed1840 14896 FREETYPE_LINK="-lfreetype"
698dcdb6
VZ
14897else
14898 echo "$ac_t""no" 1>&6
3fed1840
RR
14899fi
14900
698dcdb6
VZ
14901
14902else
14903 echo "$ac_t""no" 1>&6
3fed1840
RR
14904fi
14905
14906 if test "x$FREETYPE_LINK" = "x" ; then
698dcdb6 14907 { echo "configure: error: system freetype library not found! Use --with-freetype=yes to use the built-in freetype" 1>&2; exit 1; }
3fed1840
RR
14908 fi
14909 fi
14910fi
14911
10f2d63a 14912if test "$wxUSE_OPENGL" = "yes"; then
698dcdb6
VZ
14913 ac_safe=`echo "GL/gl.h" | sed 'y%./+-%__p_%'`
14914echo $ac_n "checking for GL/gl.h""... $ac_c" 1>&6
d73be714 14915echo "configure:14916: checking for GL/gl.h" >&5
698dcdb6
VZ
14916if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
14917 echo $ac_n "(cached) $ac_c" 1>&6
14918else
14919 cat > conftest.$ac_ext <<EOF
d73be714 14920#line 14921 "configure"
10f2d63a
VZ
14921#include "confdefs.h"
14922#include <GL/gl.h>
698dcdb6
VZ
14923EOF
14924ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
d73be714 14925{ (eval echo configure:14926: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
14926ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14927if test -z "$ac_err"; then
14928 rm -rf conftest*
14929 eval "ac_cv_header_$ac_safe=yes"
10f2d63a 14930else
698dcdb6
VZ
14931 echo "$ac_err" >&5
14932 echo "configure: failed program was:" >&5
10f2d63a 14933 cat conftest.$ac_ext >&5
698dcdb6
VZ
14934 rm -rf conftest*
14935 eval "ac_cv_header_$ac_safe=no"
10f2d63a 14936fi
698dcdb6 14937rm -f conftest*
10f2d63a 14938fi
698dcdb6
VZ
14939if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14940 echo "$ac_t""yes" 1>&6
14941
14942 cat >> confdefs.h <<\EOF
bdad4e7e
RR
14943#define wxUSE_OPENGL 1
14944EOF
14945
698dcdb6 14946 cat >> confdefs.h <<\EOF
bdad4e7e
RR
14947#define wxUSE_GLCANVAS 1
14948EOF
14949
698dcdb6 14950 echo $ac_n "checking for glFlush in -lGL""... $ac_c" 1>&6
d73be714 14951echo "configure:14952: checking for glFlush in -lGL" >&5
698dcdb6
VZ
14952ac_lib_var=`echo GL'_'glFlush | sed 'y%./+-%__p_%'`
14953if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14954 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 14955else
698dcdb6 14956 ac_save_LIBS="$LIBS"
bdad4e7e 14957LIBS="-lGL $LIBS"
698dcdb6 14958cat > conftest.$ac_ext <<EOF
d73be714 14959#line 14960 "configure"
10f2d63a
VZ
14960#include "confdefs.h"
14961/* Override any gcc2 internal prototype to avoid an error. */
14962/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
14963 builtin and then its argument prototype would still apply. */
14964char glFlush();
6232543b 14965
698dcdb6
VZ
14966int main() {
14967glFlush()
14968; return 0; }
14969EOF
d73be714 14970if { (eval echo configure:14971: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
14971 rm -rf conftest*
14972 eval "ac_cv_lib_$ac_lib_var=yes"
14973else
14974 echo "configure: failed program was:" >&5
14975 cat conftest.$ac_ext >&5
14976 rm -rf conftest*
14977 eval "ac_cv_lib_$ac_lib_var=no"
14978fi
14979rm -f conftest*
14980LIBS="$ac_save_LIBS"
1e487827 14981
698dcdb6
VZ
14982fi
14983if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14984 echo "$ac_t""yes" 1>&6
14985
14986 OPENGL_LINK="-lGL -lGLU"
14987
10f2d63a 14988else
698dcdb6 14989 echo "$ac_t""no" 1>&6
10f2d63a 14990
698dcdb6 14991 echo $ac_n "checking for glFlush in -lMesaGL""... $ac_c" 1>&6
d73be714 14992echo "configure:14993: checking for glFlush in -lMesaGL" >&5
698dcdb6
VZ
14993ac_lib_var=`echo MesaGL'_'glFlush | sed 'y%./+-%__p_%'`
14994if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14995 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 14996else
698dcdb6 14997 ac_save_LIBS="$LIBS"
10f2d63a 14998LIBS="-lMesaGL $LIBS"
698dcdb6 14999cat > conftest.$ac_ext <<EOF
d73be714 15000#line 15001 "configure"
10f2d63a
VZ
15001#include "confdefs.h"
15002/* Override any gcc2 internal prototype to avoid an error. */
15003/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
15004 builtin and then its argument prototype would still apply. */
15005char glFlush();
15006
15007int main() {
15008glFlush()
15009; return 0; }
15010EOF
d73be714 15011if { (eval echo configure:15012: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
15012 rm -rf conftest*
15013 eval "ac_cv_lib_$ac_lib_var=yes"
15014else
15015 echo "configure: failed program was:" >&5
15016 cat conftest.$ac_ext >&5
15017 rm -rf conftest*
15018 eval "ac_cv_lib_$ac_lib_var=no"
15019fi
15020rm -f conftest*
15021LIBS="$ac_save_LIBS"
10f2d63a 15022
698dcdb6
VZ
15023fi
15024if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15025 echo "$ac_t""yes" 1>&6
15026
f6bcfd97 15027 OPENGL_LINK="-lMesaGL -lMesaGLU"
698dcdb6
VZ
15028
15029else
15030 echo "$ac_t""no" 1>&6
10f2d63a
VZ
15031fi
15032
698dcdb6 15033
10f2d63a
VZ
15034fi
15035
698dcdb6 15036
10f2d63a 15037else
698dcdb6
VZ
15038 echo "$ac_t""no" 1>&6
15039wxUSE_OPENGL=0
10f2d63a
VZ
15040fi
15041
15042fi
15043
698dcdb6 15044
10f2d63a 15045if test "$wxUSE_GUI" = "yes"; then
698dcdb6 15046 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15047#define wxUSE_GUI 1
15048EOF
15049
698dcdb6 15050
10f2d63a 15051 else
698dcdb6 15052 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15053#define wxUSE_NOGUI 1
15054EOF
15055
15056fi
15057
698dcdb6 15058
10f2d63a 15059if test "$wxUSE_UNIX" = "yes"; then
698dcdb6 15060 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15061#define wxUSE_UNIX 1
15062EOF
15063
15064fi
15065
698dcdb6 15066
10f2d63a 15067if test "$wxUSE_APPLE_IEEE" = "yes"; then
698dcdb6 15068 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15069#define wxUSE_APPLE_IEEE 1
15070EOF
15071
15072fi
15073
1e6feb95
VZ
15074if test "$wxUSE_TIMER" = "yes"; then
15075 cat >> confdefs.h <<\EOF
15076#define wxUSE_TIMER 1
15077EOF
15078
15079fi
15080
10f2d63a 15081if test "$wxUSE_WAVE" = "yes"; then
698dcdb6 15082 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15083#define wxUSE_WAVE 1
15084EOF
15085
15086fi
15087
1e6feb95
VZ
15088if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
15089 cat >> confdefs.h <<\EOF
15090#define wxUSE_CMDLINE_PARSER 1
15091EOF
15092
15093fi
15094
15095if test "$wxUSE_STOPWATCH" = "yes"; then
15096 cat >> confdefs.h <<\EOF
15097#define wxUSE_STOPWATCH 1
15098EOF
15099
15100fi
15101
15102if test "$wxUSE_DATETIME" = "yes"; then
15103 cat >> confdefs.h <<\EOF
15104#define wxUSE_DATETIME 1
15105EOF
15106
15107fi
15108
15109if test "$wxUSE_TIMEDATE" = "yes"; then
15110 cat >> confdefs.h <<\EOF
15111#define wxUSE_TIMEDATE 1
15112EOF
15113
15114fi
15115
10f2d63a 15116if test "$wxUSE_FILE" = "yes"; then
698dcdb6 15117 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15118#define wxUSE_FILE 1
15119EOF
15120
15121fi
15122
1e6feb95
VZ
15123if test "$wxUSE_FFILE" = "yes"; then
15124 cat >> confdefs.h <<\EOF
15125#define wxUSE_FFILE 1
15126EOF
15127
15128fi
15129
24528b0c 15130if test "$wxUSE_FILESYSTEM" = "yes"; then
698dcdb6 15131 cat >> confdefs.h <<\EOF
24528b0c
VS
15132#define wxUSE_FILESYSTEM 1
15133EOF
15134
15135fi
15136
10f2d63a 15137if test "$wxUSE_FS_INET" = "yes"; then
698dcdb6 15138 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15139#define wxUSE_FS_INET 1
15140EOF
15141
15142fi
15143
15144if test "$wxUSE_FS_ZIP" = "yes"; then
698dcdb6 15145 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15146#define wxUSE_FS_ZIP 1
15147EOF
15148
15149fi
15150
15151if test "$wxUSE_ZIPSTREAM" = "yes"; then
698dcdb6 15152 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15153#define wxUSE_ZIPSTREAM 1
15154EOF
15155
15156fi
15157
eb4efbdc 15158if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
698dcdb6 15159 cat >> confdefs.h <<\EOF
eb4efbdc
VZ
15160#define wxUSE_ON_FATAL_EXCEPTION 1
15161EOF
15162
15163fi
15164
4f3c5f06 15165if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
698dcdb6 15166 cat >> confdefs.h <<\EOF
4f3c5f06
VZ
15167#define wxUSE_SNGLINST_CHECKER 1
15168EOF
15169
15170fi
15171
10f2d63a 15172if test "$wxUSE_BUSYINFO" = "yes"; then
698dcdb6 15173 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15174#define wxUSE_BUSYINFO 1
15175EOF
15176
15177fi
15178
15179if test "$wxUSE_STD_IOSTREAM" = "yes"; then
698dcdb6 15180 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15181#define wxUSE_STD_IOSTREAM 1
15182EOF
15183
15184fi
15185
15186if test "$wxUSE_TEXTFILE" = "yes"; then
15187 if test "$wxUSE_FILE" != "yes"; then
698dcdb6 15188 echo "configure: warning: wxTextFile requires wxFile and it won't be compiled without it" 1>&2
10f2d63a 15189 else
698dcdb6 15190 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15191#define wxUSE_TEXTFILE 1
15192EOF
15193
15194 fi
15195fi
15196
15197if test "$wxUSE_CONFIG" = "yes" ; then
15198 if test "$wxUSE_TEXTFILE" != "yes"; then
698dcdb6 15199 echo "configure: warning: wxConfig requires wxTextFile and it won't be compiled without it" 1>&2
10f2d63a 15200 else
698dcdb6 15201 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15202#define wxUSE_CONFIG 1
15203EOF
15204
15205 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
15206 fi
15207fi
15208
15209if test "$wxUSE_INTL" = "yes" ; then
15210 if test "$wxUSE_FILE" != "yes"; then
698dcdb6 15211 echo "configure: warning: I18n code requires wxFile and it won't be compiled without it" 1>&2
10f2d63a 15212 else
698dcdb6 15213 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15214#define wxUSE_INTL 1
15215EOF
15216
15217 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
f6bcfd97 15218 GUIDIST="$GUIDIST INTL_DIST"
10f2d63a
VZ
15219 fi
15220fi
15221
15222if test "$wxUSE_LOG" = "yes"; then
698dcdb6 15223 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15224#define wxUSE_LOG 1
15225EOF
15226
d73be714
VZ
15227
15228 if test "$wxUSE_LOGGUI" = "yes"; then
15229 cat >> confdefs.h <<\EOF
15230#define wxUSE_LOGGUI 1
15231EOF
15232
15233 fi
15234
15235 if test "$wxUSE_LOGWINDOW" = "yes"; then
15236 cat >> confdefs.h <<\EOF
15237#define wxUSE_LOGWINDOW 1
15238EOF
15239
15240 fi
10f2d63a
VZ
15241fi
15242
15243if test "$wxUSE_LONGLONG" = "yes"; then
698dcdb6 15244 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15245#define wxUSE_LONGLONG 1
15246EOF
15247
15248fi
15249
e8f65ba6 15250if test "$wxUSE_GEOMETRY" = "yes"; then
698dcdb6 15251 cat >> confdefs.h <<\EOF
e8f65ba6
RR
15252#define wxUSE_GEOMETRY 1
15253EOF
15254
15255fi
15256
10f2d63a 15257if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
698dcdb6 15258 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15259#define wxUSE_DIALUP_MANAGER 1
15260EOF
15261
70f7a477 15262 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
10f2d63a
VZ
15263fi
15264
15265if test "$wxUSE_STREAMS" = "yes" ; then
698dcdb6 15266 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15267#define wxUSE_STREAMS 1
15268EOF
15269
15270fi
15271
1e487827 15272
1e6feb95 15273if test "$wxUSE_DATETIME" = "yes"; then
698dcdb6 15274 for ac_func in strptime
83307f33 15275do
698dcdb6 15276echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
d73be714 15277echo "configure:15278: checking for $ac_func" >&5
698dcdb6
VZ
15278if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15279 echo $ac_n "(cached) $ac_c" 1>&6
15280else
15281 cat > conftest.$ac_ext <<EOF
d73be714 15282#line 15283 "configure"
83307f33
VZ
15283#include "confdefs.h"
15284/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 15285 which can conflict with char $ac_func(); below. */
83307f33
VZ
15286#include <assert.h>
15287/* Override any gcc2 internal prototype to avoid an error. */
15288/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
15289 builtin and then its argument prototype would still apply. */
15290char $ac_func();
15291
15292int main() {
83307f33
VZ
15293
15294/* The GNU C library defines this for functions which it implements
15295 to always fail with ENOSYS. Some functions are actually named
15296 something starting with __ and the normal name is an alias. */
15297#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15298choke me
15299#else
698dcdb6 15300$ac_func();
83307f33
VZ
15301#endif
15302
698dcdb6 15303; return 0; }
83307f33 15304EOF
d73be714 15305if { (eval echo configure:15306: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
15306 rm -rf conftest*
15307 eval "ac_cv_func_$ac_func=yes"
15308else
15309 echo "configure: failed program was:" >&5
15310 cat conftest.$ac_ext >&5
15311 rm -rf conftest*
15312 eval "ac_cv_func_$ac_func=no"
15313fi
15314rm -f conftest*
15315fi
83307f33 15316
698dcdb6
VZ
15317if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15318 echo "$ac_t""yes" 1>&6
15319 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15320 cat >> confdefs.h <<EOF
15321#define $ac_tr_func 1
15322EOF
15323
15324else
15325 echo "$ac_t""no" 1>&6
83307f33
VZ
15326fi
15327done
15328
1e487827 15329
698dcdb6 15330 echo $ac_n "checking for timezone variable in <time.h>""... $ac_c" 1>&6
d73be714 15331echo "configure:15332: checking for timezone variable in <time.h>" >&5
698dcdb6
VZ
15332if eval "test \"`echo '$''{'wx_cv_var_timezone'+set}'`\" = set"; then
15333 echo $ac_n "(cached) $ac_c" 1>&6
15334else
15335
15336 cat > conftest.$ac_ext <<EOF
d73be714 15337#line 15338 "configure"
360d6699
VZ
15338#include "confdefs.h"
15339
b4085ce6 15340 #include <time.h>
698dcdb6
VZ
15341
15342int main() {
360d6699
VZ
15343
15344 int tz;
15345 tz = __timezone;
698dcdb6
VZ
15346
15347; return 0; }
15348EOF
d73be714 15349if { (eval echo configure:15350: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
15350 rm -rf conftest*
15351
360d6699 15352 wx_cv_var_timezone=__timezone
698dcdb6 15353
360d6699 15354else
698dcdb6
VZ
15355 echo "configure: failed program was:" >&5
15356 cat conftest.$ac_ext >&5
15357 rm -rf conftest*
15358
15359 cat > conftest.$ac_ext <<EOF
d73be714 15360#line 15361 "configure"
360d6699
VZ
15361#include "confdefs.h"
15362
b4085ce6 15363 #include <time.h>
698dcdb6
VZ
15364
15365int main() {
360d6699
VZ
15366
15367 int tz;
15368 tz = _timezone;
698dcdb6
VZ
15369
15370; return 0; }
15371EOF
d73be714 15372if { (eval echo configure:15373: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
15373 rm -rf conftest*
15374
360d6699 15375 wx_cv_var_timezone=_timezone
698dcdb6 15376
5357c8e8 15377else
698dcdb6
VZ
15378 echo "configure: failed program was:" >&5
15379 cat conftest.$ac_ext >&5
15380 rm -rf conftest*
15381
15382 cat > conftest.$ac_ext <<EOF
d73be714 15383#line 15384 "configure"
5357c8e8
VZ
15384#include "confdefs.h"
15385
b4085ce6 15386 #include <time.h>
698dcdb6
VZ
15387
15388int main() {
5357c8e8
VZ
15389
15390 int tz;
15391 tz = timezone;
698dcdb6
VZ
15392
15393; return 0; }
15394EOF
d73be714 15395if { (eval echo configure:15396: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
15396 rm -rf conftest*
15397
5357c8e8 15398 wx_cv_var_timezone=timezone
698dcdb6 15399
360d6699 15400else
698dcdb6
VZ
15401 echo "configure: failed program was:" >&5
15402 cat conftest.$ac_ext >&5
15403 rm -rf conftest*
15404 { echo "configure: error: no timezone variable" 1>&2; exit 1; }
15405
360d6699 15406fi
698dcdb6
VZ
15407rm -f conftest*
15408
15409
360d6699 15410fi
698dcdb6
VZ
15411rm -f conftest*
15412
15413
6232543b 15414fi
698dcdb6
VZ
15415rm -f conftest*
15416
15417
1e487827 15418fi
703e0a69 15419
698dcdb6
VZ
15420echo "$ac_t""$wx_cv_var_timezone" 1>&6
15421
15422 cat >> confdefs.h <<EOF
360d6699
VZ
15423#define WX_TIMEZONE $wx_cv_var_timezone
15424EOF
15425
698dcdb6
VZ
15426
15427 for ac_func in localtime
afc31813 15428do
698dcdb6 15429echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
d73be714 15430echo "configure:15431: checking for $ac_func" >&5
698dcdb6
VZ
15431if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15432 echo $ac_n "(cached) $ac_c" 1>&6
15433else
15434 cat > conftest.$ac_ext <<EOF
d73be714 15435#line 15436 "configure"
10f2d63a 15436#include "confdefs.h"
afc31813 15437/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 15438 which can conflict with char $ac_func(); below. */
afc31813
VZ
15439#include <assert.h>
15440/* Override any gcc2 internal prototype to avoid an error. */
15441/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
15442 builtin and then its argument prototype would still apply. */
15443char $ac_func();
15444
15445int main() {
afc31813
VZ
15446
15447/* The GNU C library defines this for functions which it implements
15448 to always fail with ENOSYS. Some functions are actually named
15449 something starting with __ and the normal name is an alias. */
15450#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15451choke me
15452#else
698dcdb6 15453$ac_func();
afc31813
VZ
15454#endif
15455
698dcdb6 15456; return 0; }
10f2d63a 15457EOF
d73be714 15458if { (eval echo configure:15459: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
15459 rm -rf conftest*
15460 eval "ac_cv_func_$ac_func=yes"
15461else
15462 echo "configure: failed program was:" >&5
15463 cat conftest.$ac_ext >&5
15464 rm -rf conftest*
15465 eval "ac_cv_func_$ac_func=no"
15466fi
15467rm -f conftest*
15468fi
afc31813 15469
698dcdb6
VZ
15470if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15471 echo "$ac_t""yes" 1>&6
15472 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15473 cat >> confdefs.h <<EOF
15474#define $ac_tr_func 1
15475EOF
15476
15477else
15478 echo "$ac_t""no" 1>&6
afc31813
VZ
15479fi
15480done
15481
1e487827 15482
698dcdb6
VZ
15483 if test "$ac_cv_func_localtime" = "yes"; then
15484 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
d73be714 15485echo "configure:15486: checking for tm_gmtoff in struct tm" >&5
698dcdb6
VZ
15486if eval "test \"`echo '$''{'wx_cv_struct_tm_has_gmtoff'+set}'`\" = set"; then
15487 echo $ac_n "(cached) $ac_c" 1>&6
15488else
15489
15490 cat > conftest.$ac_ext <<EOF
d73be714 15491#line 15492 "configure"
0470b1e6
VZ
15492#include "confdefs.h"
15493
b4085ce6 15494 #include <time.h>
698dcdb6
VZ
15495
15496int main() {
0470b1e6
VZ
15497
15498 struct tm tm;
15499 tm.tm_gmtoff++;
698dcdb6
VZ
15500
15501; return 0; }
15502EOF
d73be714 15503if { (eval echo configure:15504: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
15504 rm -rf conftest*
15505
f03a98d8 15506 wx_cv_struct_tm_has_gmtoff=yes
698dcdb6 15507
0470b1e6 15508else
698dcdb6
VZ
15509 echo "configure: failed program was:" >&5
15510 cat conftest.$ac_ext >&5
15511 rm -rf conftest*
15512 wx_cv_struct_tm_has_gmtoff=no
15513
0470b1e6 15514fi
698dcdb6
VZ
15515rm -f conftest*
15516
1e487827 15517fi
698dcdb6
VZ
15518
15519echo "$ac_t""$wx_cv_struct_tm_has_gmtoff" 1>&6
6232543b
VS
15520 fi
15521
15522 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
698dcdb6 15523 cat >> confdefs.h <<\EOF
6232543b
VS
15524#define WX_GMTOFF_IN_TM 1
15525EOF
0470b1e6 15526
3fcdd07b
VZ
15527 fi
15528
698dcdb6 15529 for ac_func in gettimeofday ftime
3fcdd07b 15530do
698dcdb6 15531echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
d73be714 15532echo "configure:15533: checking for $ac_func" >&5
698dcdb6
VZ
15533if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15534 echo $ac_n "(cached) $ac_c" 1>&6
15535else
15536 cat > conftest.$ac_ext <<EOF
d73be714 15537#line 15538 "configure"
3fcdd07b
VZ
15538#include "confdefs.h"
15539/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 15540 which can conflict with char $ac_func(); below. */
3fcdd07b
VZ
15541#include <assert.h>
15542/* Override any gcc2 internal prototype to avoid an error. */
15543/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
15544 builtin and then its argument prototype would still apply. */
15545char $ac_func();
15546
15547int main() {
3fcdd07b
VZ
15548
15549/* The GNU C library defines this for functions which it implements
15550 to always fail with ENOSYS. Some functions are actually named
15551 something starting with __ and the normal name is an alias. */
15552#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15553choke me
15554#else
698dcdb6 15555$ac_func();
3fcdd07b
VZ
15556#endif
15557
698dcdb6
VZ
15558; return 0; }
15559EOF
d73be714 15560if { (eval echo configure:15561: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
15561 rm -rf conftest*
15562 eval "ac_cv_func_$ac_func=yes"
15563else
15564 echo "configure: failed program was:" >&5
15565 cat conftest.$ac_ext >&5
15566 rm -rf conftest*
15567 eval "ac_cv_func_$ac_func=no"
15568fi
15569rm -f conftest*
15570fi
15571
15572if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15573 echo "$ac_t""yes" 1>&6
15574 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15575 cat >> confdefs.h <<EOF
15576#define $ac_tr_func 1
3fcdd07b
VZ
15577EOF
15578 break
698dcdb6
VZ
15579else
15580 echo "$ac_t""no" 1>&6
3fcdd07b
VZ
15581fi
15582done
15583
afc31813 15584
698dcdb6
VZ
15585 if test "$ac_cv_func_gettimeofday" = "yes"; then
15586 echo $ac_n "checking whether gettimeofday takes two arguments""... $ac_c" 1>&6
d73be714 15587echo "configure:15588: checking whether gettimeofday takes two arguments" >&5
698dcdb6
VZ
15588if eval "test \"`echo '$''{'wx_cv_func_gettimeofday_has_2_args'+set}'`\" = set"; then
15589 echo $ac_n "(cached) $ac_c" 1>&6
15590else
15591
15592
15593 ac_ext=C
15594# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1e487827 15595ac_cpp='$CXXCPP $CPPFLAGS'
698dcdb6
VZ
15596ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15597ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15598cross_compiling=$ac_cv_prog_cxx_cross
703e0a69 15599
698dcdb6
VZ
15600
15601 cat > conftest.$ac_ext <<EOF
d73be714 15602#line 15603 "configure"
10f2d63a 15603#include "confdefs.h"
afc31813
VZ
15604
15605 #include <sys/time.h>
15606 #include <unistd.h>
698dcdb6
VZ
15607
15608int main() {
afc31813
VZ
15609
15610 struct timeval tv;
15611 struct timezone tz;
15612 gettimeofday(&tv, &tz);
698dcdb6
VZ
15613
15614; return 0; }
15615EOF
d73be714 15616if { (eval echo configure:15617: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 15617 rm -rf conftest*
afc31813 15618 wx_cv_func_gettimeofday_has_2_args=yes
10f2d63a 15619else
698dcdb6
VZ
15620 echo "configure: failed program was:" >&5
15621 cat conftest.$ac_ext >&5
15622 rm -rf conftest*
15623 cat > conftest.$ac_ext <<EOF
d73be714 15624#line 15625 "configure"
10f2d63a 15625#include "confdefs.h"
afc31813
VZ
15626
15627 #include <sys/time.h>
15628 #include <unistd.h>
698dcdb6
VZ
15629
15630int main() {
afc31813
VZ
15631
15632 struct timeval tv;
15633 gettimeofday(&tv);
698dcdb6
VZ
15634
15635; return 0; }
15636EOF
d73be714 15637if { (eval echo configure:15638: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 15638 rm -rf conftest*
afc31813 15639 wx_cv_func_gettimeofday_has_2_args=no
10f2d63a 15640else
698dcdb6
VZ
15641 echo "configure: failed program was:" >&5
15642 cat conftest.$ac_ext >&5
15643 rm -rf conftest*
15644 wx_cv_func_gettimeofday_has_2_args=unknown
15645
10f2d63a 15646fi
698dcdb6
VZ
15647rm -f conftest*
15648
10f2d63a 15649fi
698dcdb6 15650rm -f conftest*
afc31813 15651 ac_ext=c
698dcdb6 15652# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10f2d63a 15653ac_cpp='$CPP $CPPFLAGS'
698dcdb6
VZ
15654ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15655ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15656cross_compiling=$ac_cv_prog_cc_cross
10f2d63a 15657
698dcdb6 15658
afc31813 15659fi
698dcdb6
VZ
15660
15661echo "$ac_t""$wx_cv_func_gettimeofday_has_2_args" 1>&6
c63c7106 15662
afc31813 15663 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
698dcdb6 15664 cat >> confdefs.h <<\EOF
afc31813
VZ
15665#define WX_GETTIMEOFDAY_NO_TZ 1
15666EOF
15667
15668 fi
15669 fi
15670
698dcdb6 15671 cat >> confdefs.h <<\EOF
afc31813
VZ
15672#define wxUSE_TIMEDATE 1
15673EOF
15674
15675 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
15676fi
15677
698dcdb6 15678
b089607b
VZ
15679if test "$TOOLKIT" != "MSW"; then
15680
afc31813 15681if test "$wxUSE_SOCKETS" = "yes"; then
698dcdb6 15682 echo $ac_n "checking for socket""... $ac_c" 1>&6
d73be714 15683echo "configure:15684: checking for socket" >&5
698dcdb6
VZ
15684if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
15685 echo $ac_n "(cached) $ac_c" 1>&6
c63c7106 15686else
698dcdb6 15687 cat > conftest.$ac_ext <<EOF
d73be714 15688#line 15689 "configure"
c63c7106
VZ
15689#include "confdefs.h"
15690/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 15691 which can conflict with char socket(); below. */
c63c7106
VZ
15692#include <assert.h>
15693/* Override any gcc2 internal prototype to avoid an error. */
15694/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
15695 builtin and then its argument prototype would still apply. */
15696char socket();
15697
15698int main() {
c63c7106
VZ
15699
15700/* The GNU C library defines this for functions which it implements
15701 to always fail with ENOSYS. Some functions are actually named
15702 something starting with __ and the normal name is an alias. */
15703#if defined (__stub_socket) || defined (__stub___socket)
15704choke me
15705#else
698dcdb6 15706socket();
c63c7106
VZ
15707#endif
15708
698dcdb6
VZ
15709; return 0; }
15710EOF
d73be714 15711if { (eval echo configure:15712: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
15712 rm -rf conftest*
15713 eval "ac_cv_func_socket=yes"
15714else
15715 echo "configure: failed program was:" >&5
15716 cat conftest.$ac_ext >&5
15717 rm -rf conftest*
15718 eval "ac_cv_func_socket=no"
15719fi
15720rm -f conftest*
15721fi
15722
15723if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
15724 echo "$ac_t""yes" 1>&6
c63c7106
VZ
15725 :
15726else
698dcdb6
VZ
15727 echo "$ac_t""no" 1>&6
15728echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
d73be714 15729echo "configure:15730: checking for socket in -lsocket" >&5
698dcdb6
VZ
15730ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
15731if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15732 echo $ac_n "(cached) $ac_c" 1>&6
c63c7106 15733else
698dcdb6 15734 ac_save_LIBS="$LIBS"
c63c7106 15735LIBS="-lsocket $LIBS"
698dcdb6 15736cat > conftest.$ac_ext <<EOF
d73be714 15737#line 15738 "configure"
c63c7106
VZ
15738#include "confdefs.h"
15739/* Override any gcc2 internal prototype to avoid an error. */
15740/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
15741 builtin and then its argument prototype would still apply. */
15742char socket();
15743
15744int main() {
15745socket()
15746; return 0; }
15747EOF
d73be714 15748if { (eval echo configure:15749: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
15749 rm -rf conftest*
15750 eval "ac_cv_lib_$ac_lib_var=yes"
15751else
15752 echo "configure: failed program was:" >&5
15753 cat conftest.$ac_ext >&5
15754 rm -rf conftest*
15755 eval "ac_cv_lib_$ac_lib_var=no"
15756fi
15757rm -f conftest*
15758LIBS="$ac_save_LIBS"
15759
15760fi
15761if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15762 echo "$ac_t""yes" 1>&6
c63c7106 15763 INET_LINK="$INET_LINK -lsocket"
c63c7106 15764else
698dcdb6 15765 echo "$ac_t""no" 1>&6
afc31813 15766
698dcdb6 15767 echo "configure: warning: socket library not found - sockets will be disabled" 1>&2
afc31813 15768 wxUSE_SOCKETS=no
698dcdb6
VZ
15769
15770
10f2d63a
VZ
15771fi
15772
698dcdb6 15773
6232543b 15774fi
b089607b 15775
1e487827 15776fi
afc31813 15777
51a9faba 15778
698dcdb6
VZ
15779if test "$wxUSE_SOCKETS" = "yes" ; then
15780 echo $ac_n "checking what is the type of the third argument of getsockname""... $ac_c" 1>&6
d73be714 15781echo "configure:15782: checking what is the type of the third argument of getsockname" >&5
698dcdb6
VZ
15782if eval "test \"`echo '$''{'wx_cv_type_getsockname3'+set}'`\" = set"; then
15783 echo $ac_n "(cached) $ac_c" 1>&6
15784else
15785
15786
15787 ac_ext=C
15788# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1e487827 15789ac_cpp='$CXXCPP $CPPFLAGS'
698dcdb6
VZ
15790ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15791ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15792cross_compiling=$ac_cv_prog_cxx_cross
703e0a69 15793
698dcdb6
VZ
15794
15795 cat > conftest.$ac_ext <<EOF
d73be714 15796#line 15797 "configure"
afc31813 15797#include "confdefs.h"
51a9faba 15798
3ace2e6d 15799 #include <sys/types.h>
51a9faba 15800 #include <sys/socket.h>
698dcdb6
VZ
15801
15802int main() {
51a9faba
VZ
15803
15804 socklen_t len;
15805 getsockname(0, 0, &len);
698dcdb6
VZ
15806
15807; return 0; }
15808EOF
d73be714 15809if { (eval echo configure:15810: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 15810 rm -rf conftest*
51a9faba 15811 wx_cv_type_getsockname3=socklen_t
afc31813 15812else
698dcdb6
VZ
15813 echo "configure: failed program was:" >&5
15814 cat conftest.$ac_ext >&5
15815 rm -rf conftest*
15816 cat > conftest.$ac_ext <<EOF
d73be714 15817#line 15818 "configure"
afc31813 15818#include "confdefs.h"
51a9faba 15819
3ace2e6d 15820 #include <sys/types.h>
51a9faba 15821 #include <sys/socket.h>
698dcdb6
VZ
15822
15823int main() {
51a9faba
VZ
15824
15825 size_t len;
15826 getsockname(0, 0, &len);
698dcdb6
VZ
15827
15828; return 0; }
15829EOF
d73be714 15830if { (eval echo configure:15831: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 15831 rm -rf conftest*
51a9faba 15832 wx_cv_type_getsockname3=size_t
afc31813 15833else
698dcdb6
VZ
15834 echo "configure: failed program was:" >&5
15835 cat conftest.$ac_ext >&5
15836 rm -rf conftest*
15837 cat > conftest.$ac_ext <<EOF
d73be714 15838#line 15839 "configure"
afc31813 15839#include "confdefs.h"
51a9faba 15840
3ace2e6d 15841 #include <sys/types.h>
51a9faba 15842 #include <sys/socket.h>
698dcdb6
VZ
15843
15844int main() {
51a9faba
VZ
15845
15846 int len;
15847 getsockname(0, 0, &len);
698dcdb6
VZ
15848
15849; return 0; }
15850EOF
d73be714 15851if { (eval echo configure:15852: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 15852 rm -rf conftest*
51a9faba 15853 wx_cv_type_getsockname3=int
afc31813 15854else
698dcdb6
VZ
15855 echo "configure: failed program was:" >&5
15856 cat conftest.$ac_ext >&5
15857 rm -rf conftest*
15858 wx_cv_type_getsockname3=unknown
15859
afc31813 15860fi
698dcdb6
VZ
15861rm -f conftest*
15862
afc31813 15863fi
698dcdb6
VZ
15864rm -f conftest*
15865
afc31813 15866fi
698dcdb6 15867rm -f conftest*
51a9faba
VZ
15868
15869 ac_ext=c
698dcdb6 15870# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
afc31813 15871ac_cpp='$CPP $CPPFLAGS'
698dcdb6
VZ
15872ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15873ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15874cross_compiling=$ac_cv_prog_cc_cross
afc31813 15875
698dcdb6 15876
51a9faba 15877fi
698dcdb6
VZ
15878
15879echo "$ac_t""$wx_cv_type_getsockname3" 1>&6
51a9faba
VZ
15880
15881 if test "$wx_cv_type_getsockname3" = "unknown"; then
15882 wxUSE_SOCKETS=no
698dcdb6 15883 echo "configure: warning: Couldn't find socklen_t synonym for this system" 1>&2
51a9faba 15884 else
698dcdb6 15885 cat >> confdefs.h <<EOF
51a9faba
VZ
15886#define SOCKLEN_T $wx_cv_type_getsockname3
15887EOF
15888
15889 fi
15890fi
afc31813 15891
c521c494
RL
15892fi
15893
51a9faba 15894if test "$wxUSE_SOCKETS" = "yes" ; then
698dcdb6 15895 cat >> confdefs.h <<\EOF
afc31813
VZ
15896#define wxUSE_SOCKETS 1
15897EOF
15898
70f7a477 15899 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
afc31813
VZ
15900 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS protocol"
15901fi
15902
698dcdb6 15903
dc3d889d
VZ
15904if test "$wxUSE_GUI" = "yes"; then
15905
b089607b
VZ
15906if test "$TOOLKIT" != "MSW"; then
15907
ceded8b9 15908if test "$wxUSE_JOYSTICK" = "yes"; then
698dcdb6 15909 for ac_hdr in linux/joystick.h
10f2d63a 15910do
698dcdb6
VZ
15911ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15912echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
d73be714 15913echo "configure:15914: checking for $ac_hdr" >&5
698dcdb6
VZ
15914if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15915 echo $ac_n "(cached) $ac_c" 1>&6
15916else
15917 cat > conftest.$ac_ext <<EOF
d73be714 15918#line 15919 "configure"
10f2d63a 15919#include "confdefs.h"
698dcdb6
VZ
15920#include <$ac_hdr>
15921EOF
15922ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
d73be714 15923{ (eval echo configure:15924: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
15924ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15925if test -z "$ac_err"; then
15926 rm -rf conftest*
15927 eval "ac_cv_header_$ac_safe=yes"
10f2d63a 15928else
698dcdb6
VZ
15929 echo "$ac_err" >&5
15930 echo "configure: failed program was:" >&5
10f2d63a 15931 cat conftest.$ac_ext >&5
698dcdb6
VZ
15932 rm -rf conftest*
15933 eval "ac_cv_header_$ac_safe=no"
10f2d63a 15934fi
698dcdb6 15935rm -f conftest*
10f2d63a 15936fi
698dcdb6
VZ
15937if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15938 echo "$ac_t""yes" 1>&6
15939 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15940 cat >> confdefs.h <<EOF
15941#define $ac_tr_hdr 1
10f2d63a 15942EOF
698dcdb6
VZ
15943
15944else
15945 echo "$ac_t""no" 1>&6
10f2d63a
VZ
15946fi
15947done
15948
b089607b 15949 if test "$ac_cv_header_linux_joystick_h" != "yes"; then
ceded8b9 15950 wxUSE_JOYSTICK=no
698dcdb6 15951 echo "configure: warning: Joystick not supported by this system" 1>&2
b089607b
VZ
15952 fi
15953fi
15954
15955fi
15956
ceded8b9 15957if test "$wxUSE_JOYSTICK" = "yes"; then
698dcdb6 15958 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15959#define wxUSE_JOYSTICK 1
15960EOF
15961
15962 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
10f2d63a
VZ
15963fi
15964
dc3d889d
VZ
15965fi
15966
698dcdb6 15967
b089607b
VZ
15968if test "$TOOLKIT" != "MSW"; then
15969
10f2d63a
VZ
15970HAVE_DL_FUNCS=0
15971HAVE_SHL_FUNCS=0
15972if test "$wxUSE_DYNLIB_CLASS" = "yes"; then
b4085ce6
GD
15973 if test "$USE_MAC" = 1; then
15974 HAVE_DL_FUNCS=1
15975 else
698dcdb6 15976 for ac_func in dlopen
10f2d63a 15977do
698dcdb6 15978echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
d73be714 15979echo "configure:15980: checking for $ac_func" >&5
698dcdb6
VZ
15980if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15981 echo $ac_n "(cached) $ac_c" 1>&6
15982else
15983 cat > conftest.$ac_ext <<EOF
d73be714 15984#line 15985 "configure"
10f2d63a
VZ
15985#include "confdefs.h"
15986/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 15987 which can conflict with char $ac_func(); below. */
10f2d63a
VZ
15988#include <assert.h>
15989/* Override any gcc2 internal prototype to avoid an error. */
15990/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
15991 builtin and then its argument prototype would still apply. */
15992char $ac_func();
15993
15994int main() {
10f2d63a
VZ
15995
15996/* The GNU C library defines this for functions which it implements
15997 to always fail with ENOSYS. Some functions are actually named
15998 something starting with __ and the normal name is an alias. */
15999#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16000choke me
16001#else
698dcdb6 16002$ac_func();
10f2d63a
VZ
16003#endif
16004
698dcdb6
VZ
16005; return 0; }
16006EOF
d73be714 16007if { (eval echo configure:16008: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
16008 rm -rf conftest*
16009 eval "ac_cv_func_$ac_func=yes"
16010else
16011 echo "configure: failed program was:" >&5
16012 cat conftest.$ac_ext >&5
16013 rm -rf conftest*
16014 eval "ac_cv_func_$ac_func=no"
16015fi
16016rm -f conftest*
16017fi
16018
16019if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16020 echo "$ac_t""yes" 1>&6
16021 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16022 cat >> confdefs.h <<EOF
16023#define $ac_tr_func 1
16024EOF
16025
16026 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16027#define HAVE_DLOPEN 1
16028EOF
16029
16030 HAVE_DL_FUNCS=1
698dcdb6 16031
10f2d63a 16032else
698dcdb6
VZ
16033 echo "$ac_t""no" 1>&6
16034echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
d73be714 16035echo "configure:16036: checking for dlopen in -ldl" >&5
698dcdb6
VZ
16036ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
16037if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16038 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 16039else
698dcdb6 16040 ac_save_LIBS="$LIBS"
10f2d63a 16041LIBS="-ldl $LIBS"
698dcdb6 16042cat > conftest.$ac_ext <<EOF
d73be714 16043#line 16044 "configure"
10f2d63a
VZ
16044#include "confdefs.h"
16045/* Override any gcc2 internal prototype to avoid an error. */
16046/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
16047 builtin and then its argument prototype would still apply. */
16048char dlopen();
16049
16050int main() {
16051dlopen()
16052; return 0; }
16053EOF
d73be714 16054if { (eval echo configure:16055: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
16055 rm -rf conftest*
16056 eval "ac_cv_lib_$ac_lib_var=yes"
16057else
16058 echo "configure: failed program was:" >&5
16059 cat conftest.$ac_ext >&5
16060 rm -rf conftest*
16061 eval "ac_cv_lib_$ac_lib_var=no"
16062fi
16063rm -f conftest*
16064LIBS="$ac_save_LIBS"
16065
16066fi
16067if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16068 echo "$ac_t""yes" 1>&6
16069
16070 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16071#define HAVE_DLOPEN 1
16072EOF
16073
16074 HAVE_DL_FUNCS=1
16075 LIBS="$LIBS -ldl"
698dcdb6 16076
10f2d63a 16077else
698dcdb6 16078 echo "$ac_t""no" 1>&6
10f2d63a 16079
698dcdb6 16080 for ac_func in shl_load
10f2d63a 16081do
698dcdb6 16082echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
d73be714 16083echo "configure:16084: checking for $ac_func" >&5
698dcdb6
VZ
16084if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16085 echo $ac_n "(cached) $ac_c" 1>&6
16086else
16087 cat > conftest.$ac_ext <<EOF
d73be714 16088#line 16089 "configure"
10f2d63a
VZ
16089#include "confdefs.h"
16090/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 16091 which can conflict with char $ac_func(); below. */
10f2d63a
VZ
16092#include <assert.h>
16093/* Override any gcc2 internal prototype to avoid an error. */
16094/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
16095 builtin and then its argument prototype would still apply. */
16096char $ac_func();
16097
16098int main() {
10f2d63a
VZ
16099
16100/* The GNU C library defines this for functions which it implements
16101 to always fail with ENOSYS. Some functions are actually named
16102 something starting with __ and the normal name is an alias. */
16103#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16104choke me
16105#else
698dcdb6 16106$ac_func();
10f2d63a
VZ
16107#endif
16108
698dcdb6
VZ
16109; return 0; }
16110EOF
d73be714 16111if { (eval echo configure:16112: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
16112 rm -rf conftest*
16113 eval "ac_cv_func_$ac_func=yes"
16114else
16115 echo "configure: failed program was:" >&5
16116 cat conftest.$ac_ext >&5
16117 rm -rf conftest*
16118 eval "ac_cv_func_$ac_func=no"
16119fi
16120rm -f conftest*
16121fi
16122
16123if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16124 echo "$ac_t""yes" 1>&6
16125 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16126 cat >> confdefs.h <<EOF
16127#define $ac_tr_func 1
16128EOF
16129
16130 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16131#define HAVE_SHL_LOAD 1
16132EOF
16133
16134 HAVE_SHL_FUNCS=1
698dcdb6 16135
10f2d63a 16136else
698dcdb6
VZ
16137 echo "$ac_t""no" 1>&6
16138echo $ac_n "checking for dld in -lshl_load""... $ac_c" 1>&6
d73be714 16139echo "configure:16140: checking for dld in -lshl_load" >&5
698dcdb6
VZ
16140ac_lib_var=`echo shl_load'_'dld | sed 'y%./+-%__p_%'`
16141if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16142 echo $ac_n "(cached) $ac_c" 1>&6
f6bcfd97 16143else
698dcdb6 16144 ac_save_LIBS="$LIBS"
f6bcfd97 16145LIBS="-lshl_load $LIBS"
698dcdb6 16146cat > conftest.$ac_ext <<EOF
d73be714 16147#line 16148 "configure"
f6bcfd97
BP
16148#include "confdefs.h"
16149/* Override any gcc2 internal prototype to avoid an error. */
16150/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
16151 builtin and then its argument prototype would still apply. */
16152char dld();
16153
16154int main() {
16155dld()
16156; return 0; }
16157EOF
d73be714 16158if { (eval echo configure:16159: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
16159 rm -rf conftest*
16160 eval "ac_cv_lib_$ac_lib_var=yes"
16161else
16162 echo "configure: failed program was:" >&5
16163 cat conftest.$ac_ext >&5
16164 rm -rf conftest*
16165 eval "ac_cv_lib_$ac_lib_var=no"
16166fi
16167rm -f conftest*
16168LIBS="$ac_save_LIBS"
f6bcfd97 16169
698dcdb6
VZ
16170fi
16171if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16172 echo "$ac_t""yes" 1>&6
16173
f6bcfd97
BP
16174 HAVE_SHL_FUNCS=1
16175 LIBS="$LIBS -ldld"
698dcdb6
VZ
16176
16177else
16178 echo "$ac_t""no" 1>&6
f6bcfd97
BP
16179fi
16180
698dcdb6 16181
10f2d63a
VZ
16182fi
16183done
16184
698dcdb6 16185
10f2d63a
VZ
16186fi
16187
698dcdb6 16188
10f2d63a
VZ
16189fi
16190done
16191
1e487827 16192
698dcdb6
VZ
16193 if test "$HAVE_DL_FUNCS" = 1; then
16194 for ac_func in dlerror
f6bcfd97 16195do
698dcdb6 16196echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
d73be714 16197echo "configure:16198: checking for $ac_func" >&5
698dcdb6
VZ
16198if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16199 echo $ac_n "(cached) $ac_c" 1>&6
16200else
16201 cat > conftest.$ac_ext <<EOF
d73be714 16202#line 16203 "configure"
f6bcfd97
BP
16203#include "confdefs.h"
16204/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 16205 which can conflict with char $ac_func(); below. */
f6bcfd97
BP
16206#include <assert.h>
16207/* Override any gcc2 internal prototype to avoid an error. */
16208/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
16209 builtin and then its argument prototype would still apply. */
16210char $ac_func();
16211
16212int main() {
f6bcfd97
BP
16213
16214/* The GNU C library defines this for functions which it implements
16215 to always fail with ENOSYS. Some functions are actually named
16216 something starting with __ and the normal name is an alias. */
16217#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16218choke me
16219#else
698dcdb6 16220$ac_func();
f6bcfd97
BP
16221#endif
16222
698dcdb6
VZ
16223; return 0; }
16224EOF
d73be714 16225if { (eval echo configure:16226: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
16226 rm -rf conftest*
16227 eval "ac_cv_func_$ac_func=yes"
16228else
16229 echo "configure: failed program was:" >&5
16230 cat conftest.$ac_ext >&5
16231 rm -rf conftest*
16232 eval "ac_cv_func_$ac_func=no"
16233fi
16234rm -f conftest*
16235fi
16236
16237if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16238 echo "$ac_t""yes" 1>&6
16239 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16240 cat >> confdefs.h <<EOF
16241#define $ac_tr_func 1
16242EOF
16243 cat >> confdefs.h <<\EOF
f6bcfd97
BP
16244#define HAVE_DLERROR 1
16245EOF
16246
16247else
698dcdb6
VZ
16248 echo "$ac_t""no" 1>&6
16249echo $ac_n "checking for dlerror in -ldl""... $ac_c" 1>&6
d73be714 16250echo "configure:16251: checking for dlerror in -ldl" >&5
698dcdb6
VZ
16251ac_lib_var=`echo dl'_'dlerror | sed 'y%./+-%__p_%'`
16252if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16253 echo $ac_n "(cached) $ac_c" 1>&6
f6bcfd97 16254else
698dcdb6 16255 ac_save_LIBS="$LIBS"
f6bcfd97 16256LIBS="-ldl $LIBS"
698dcdb6 16257cat > conftest.$ac_ext <<EOF
d73be714 16258#line 16259 "configure"
f6bcfd97
BP
16259#include "confdefs.h"
16260/* Override any gcc2 internal prototype to avoid an error. */
16261/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
16262 builtin and then its argument prototype would still apply. */
16263char dlerror();
16264
16265int main() {
16266dlerror()
16267; return 0; }
16268EOF
d73be714 16269if { (eval echo configure:16270: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
16270 rm -rf conftest*
16271 eval "ac_cv_lib_$ac_lib_var=yes"
16272else
16273 echo "configure: failed program was:" >&5
16274 cat conftest.$ac_ext >&5
16275 rm -rf conftest*
16276 eval "ac_cv_lib_$ac_lib_var=no"
16277fi
16278rm -f conftest*
16279LIBS="$ac_save_LIBS"
16280
16281fi
16282if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16283 echo "$ac_t""yes" 1>&6
16284 cat >> confdefs.h <<\EOF
f6bcfd97
BP
16285#define HAVE_DLERROR 1
16286EOF
16287
698dcdb6
VZ
16288else
16289 echo "$ac_t""no" 1>&6
f6bcfd97
BP
16290fi
16291
16292fi
16293done
16294
16295 fi
b4085ce6 16296 fi
f6bcfd97 16297
10f2d63a
VZ
16298 if test "$HAVE_DL_FUNCS" = 0; then
16299 if test "$HAVE_SHL_FUNCS" = 0; then
16300 if test "$USE_UNIX" = 1; then
698dcdb6 16301 echo "configure: warning: Missing dynamic loading support, several features will be disabled" 1>&2
10f2d63a
VZ
16302 wxUSE_DYNLIB_CLASS=no
16303 else
698dcdb6 16304 echo "configure: warning: Assuming wxLibrary class works on this platform" 1>&2
10f2d63a
VZ
16305 fi
16306 fi
16307 fi
16308fi
16309
b089607b
VZ
16310fi
16311
10f2d63a 16312if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
698dcdb6 16313 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16314#define wxUSE_DYNLIB_CLASS 1
16315EOF
16316
b12915c1
VZ
16317else
16318 wxUSE_ODBC=no
16319 wxUSE_SERIAL=no
10f2d63a
VZ
16320fi
16321
698dcdb6 16322
1e6feb95
VZ
16323if test "$wxUSE_FONTMAP" = "yes" ; then
16324 cat >> confdefs.h <<\EOF
16325#define wxUSE_FONTMAP 1
16326EOF
16327
16328fi
16329
10f2d63a 16330if test "$wxUSE_UNICODE" = "yes" ; then
698dcdb6 16331 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16332#define wxUSE_UNICODE 1
16333EOF
16334
16335fi
16336
16337if test "$wxUSE_WCSRTOMBS" = "yes" ; then
698dcdb6 16338 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16339#define wxUSE_WCSRTOMBS 1
16340EOF
16341
16342fi
16343
16344if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
698dcdb6 16345 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16346#define wxUSE_EXPERIMENTAL_PRINTF 1
16347EOF
16348
16349fi
16350
698dcdb6 16351
b12915c1 16352if test "$wxUSE_SERIAL" = "yes" ; then
698dcdb6 16353 cat >> confdefs.h <<\EOF
b12915c1
VZ
16354#define wxUSE_SERIAL 1
16355EOF
16356
16357fi
16358
698dcdb6 16359
10f2d63a
VZ
16360IODBC_C_SRC=""
16361if test "$wxUSE_ODBC" = "yes" ; then
698dcdb6 16362 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16363#define wxUSE_ODBC 1
16364EOF
16365
16366 WXODBCFLAG="-D_IODBC_"
16367 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
10f2d63a
VZ
16368fi
16369
698dcdb6 16370
10f2d63a 16371if test "$wxUSE_POSTSCRIPT" = "yes" ; then
698dcdb6 16372 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16373#define wxUSE_POSTSCRIPT 1
16374EOF
16375
16376fi
16377
698dcdb6 16378cat >> confdefs.h <<\EOF
10f2d63a
VZ
16379#define wxUSE_AFM_FOR_POSTSCRIPT 1
16380EOF
16381
698dcdb6
VZ
16382
16383cat >> confdefs.h <<\EOF
10f2d63a
VZ
16384#define wxUSE_NORMALIZED_PS_FONTS 1
16385EOF
16386
698dcdb6
VZ
16387
16388
10f2d63a 16389if test "$wxUSE_CONSTRAINTS" = "yes"; then
698dcdb6 16390 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16391#define wxUSE_CONSTRAINTS 1
16392EOF
16393
16394 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
16395fi
16396
16397if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
698dcdb6 16398 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16399#define wxUSE_MDI_ARCHITECTURE 1
16400EOF
16401
16402 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
16403fi
16404
16405if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
698dcdb6 16406 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16407#define wxUSE_DOC_VIEW_ARCHITECTURE 1
16408EOF
16409
16410 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
16411 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
16412 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
16413 fi
16414fi
16415
16416if test "$wxUSE_HELP" = "yes"; then
698dcdb6 16417 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16418#define wxUSE_HELP 1
16419EOF
16420
16421 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
16422fi
16423
16424if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
16425 if test "$wxUSE_CONSTRAINTS" != "yes"; then
698dcdb6 16426 echo "configure: warning: Printing support cannot be used without constraints so it won't be compiled without it" 1>&2
10f2d63a 16427 else
698dcdb6 16428 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16429#define wxUSE_PRINTING_ARCHITECTURE 1
16430EOF
16431
16432 fi
16433 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
16434fi
16435
16436if test "$wxUSE_PROLOGIO" = "yes" ; then
698dcdb6 16437 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16438#define wxUSE_PROLOGIO 1
16439EOF
16440
16441fi
16442
16443if test "$wxUSE_RESOURCES" = "yes" ; then
16444 if test "$wxUSE_PROLOGIO" = "yes" ; then
698dcdb6 16445 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16446#define wxUSE_RESOURCES 1
16447EOF
16448
16449 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS resource"
16450 else
698dcdb6 16451 echo "configure: warning: wxWindows ressource system requires PrologIO and can't be compiled without it." 1>&2
10f2d63a
VZ
16452 fi
16453fi
16454
16455if test "$wxUSE_X_RESOURCES" = "yes"; then
698dcdb6 16456 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16457#define wxUSE_X_RESOURCES 1
16458EOF
16459
16460fi
16461
698dcdb6 16462
10f2d63a 16463if test "$wxUSE_IPC" = "yes"; then
eb4efbdc 16464 if test "$wxUSE_SOCKETS" != "yes"; then
698dcdb6 16465 echo "configure: warning: wxWindows IPC classes require sockets" 1>&2
eb4efbdc
VZ
16466 fi
16467
698dcdb6 16468 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16469#define wxUSE_IPC 1
16470EOF
16471
16472fi
16473
16474if test "$wxUSE_CLIPBOARD" = "yes"; then
698dcdb6 16475 cat >> confdefs.h <<\EOF
10f2d63a 16476#define wxUSE_CLIPBOARD 1
1e6feb95
VZ
16477EOF
16478
16479 cat >> confdefs.h <<\EOF
16480#define wxUSE_DATAOBJ 1
10f2d63a
VZ
16481EOF
16482
16483fi
16484
16485if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
16486 if test "$wxUSE_GTK" = 1; then
16487 if test "$WXGTK12" != 1; then
698dcdb6 16488 echo "configure: warning: Drag and drop is only supported under GTK+ 1.2" 1>&2
10f2d63a
VZ
16489 wxUSE_DRAG_AND_DROP=no
16490 fi
16491 fi
16492
16493 if test "$wxUSE_MOTIF" = 1; then
698dcdb6 16494 echo "configure: warning: Drag and drop is not yet supported under Motif" 1>&2
10f2d63a
VZ
16495 wxUSE_DRAG_AND_DROP=no
16496 fi
16497
2c6025bc 16498 if test "$wxUSE_MAC" = 1; then
698dcdb6 16499 echo "configure: warning: Drag and drop is not yet supported under Mac OS X" 1>&2
2c6025bc
GD
16500 wxUSE_DRAG_AND_DROP=no
16501 fi
16502
10f2d63a 16503 if test "$USE_WIN32" = 1; then
698dcdb6
VZ
16504
16505 for ac_hdr in ole2.h
10f2d63a 16506do
698dcdb6
VZ
16507ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16508echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
d73be714 16509echo "configure:16510: checking for $ac_hdr" >&5
698dcdb6
VZ
16510if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
16511 echo $ac_n "(cached) $ac_c" 1>&6
16512else
16513 cat > conftest.$ac_ext <<EOF
d73be714 16514#line 16515 "configure"
10f2d63a 16515#include "confdefs.h"
698dcdb6
VZ
16516#include <$ac_hdr>
16517EOF
16518ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
d73be714 16519{ (eval echo configure:16520: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
16520ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16521if test -z "$ac_err"; then
16522 rm -rf conftest*
16523 eval "ac_cv_header_$ac_safe=yes"
1e487827 16524else
698dcdb6
VZ
16525 echo "$ac_err" >&5
16526 echo "configure: failed program was:" >&5
10f2d63a 16527 cat conftest.$ac_ext >&5
698dcdb6
VZ
16528 rm -rf conftest*
16529 eval "ac_cv_header_$ac_safe=no"
10f2d63a 16530fi
698dcdb6 16531rm -f conftest*
10f2d63a 16532fi
698dcdb6
VZ
16533if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16534 echo "$ac_t""yes" 1>&6
16535 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16536 cat >> confdefs.h <<EOF
16537#define $ac_tr_hdr 1
10f2d63a 16538EOF
698dcdb6
VZ
16539
16540else
16541 echo "$ac_t""no" 1>&6
10f2d63a
VZ
16542fi
16543done
16544
698dcdb6 16545
57fe5ed0 16546 if test "$ac_cv_header_ole2_h" = "yes" ; then
c521c494 16547 if test "$GCC" = yes ; then
b64f0a5f
RL
16548 ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)"
16549 ALL_DEPFILES="$ALL_DEPFILES \$(OLEDEPS)"
c521c494 16550 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
b64f0a5f
RL
16551 LIBS="$LIBS -lole32 -luuid"
16552
16553 if test "$wxUSE_METAFILE" = "yes"; then
698dcdb6 16554 cat >> confdefs.h <<\EOF
b64f0a5f
RL
16555#define wxUSE_METAFILE 1
16556EOF
16557
698dcdb6 16558 cat >> confdefs.h <<\EOF
b64f0a5f
RL
16559#define wxUSE_ENH_METAFILE 1
16560EOF
16561
16562 fi
c521c494
RL
16563 fi
16564 else
698dcdb6 16565 echo "configure: warning: Drag and drop disabled because OLE headers not found" 1>&2
10f2d63a
VZ
16566 wxUSE_DRAG_AND_DROP=no
16567 fi
16568 fi
16569
16570 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
698dcdb6 16571 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16572#define wxUSE_DRAG_AND_DROP 1
16573EOF
16574
16575 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
16576 fi
16577
16578fi
16579
16580if test "$wxUSE_SPLINES" = "yes" ; then
698dcdb6 16581 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16582#define wxUSE_SPLINES 1
16583EOF
16584
16585fi
16586
698dcdb6 16587
1e6feb95
VZ
16588USES_CONTROLS=0
16589if test "$wxUSE_CONTROLS" = "yes"; then
16590 USES_CONTROLS=1
16591fi
16592
10f2d63a 16593if test "$wxUSE_ACCEL" = "yes"; then
698dcdb6 16594 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16595#define wxUSE_ACCEL 1
16596EOF
16597
1e6feb95
VZ
16598 USES_CONTROLS=1
16599fi
16600
16601if test "$wxUSE_BUTTON" = "yes"; then
16602 cat >> confdefs.h <<\EOF
16603#define wxUSE_BUTTON 1
16604EOF
16605
16606 USES_CONTROLS=1
16607fi
16608
16609if test "$wxUSE_BMPBUTTON" = "yes"; then
16610 cat >> confdefs.h <<\EOF
16611#define wxUSE_BMPBUTTON 1
16612EOF
16613
16614 USES_CONTROLS=1
16615fi
16616
16617if test "$wxUSE_CALCTRL" = "yes"; then
16618 cat >> confdefs.h <<\EOF
16619#define wxUSE_CALENDARCTRL 1
16620EOF
16621
16622 USES_CONTROLS=1
16623 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
10f2d63a
VZ
16624fi
16625
16626if test "$wxUSE_CARET" = "yes"; then
698dcdb6 16627 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16628#define wxUSE_CARET 1
16629EOF
16630
1e6feb95 16631 USES_CONTROLS=1
10f2d63a
VZ
16632 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
16633fi
16634
16635if test "$wxUSE_COMBOBOX" = "yes"; then
698dcdb6 16636 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16637#define wxUSE_COMBOBOX 1
16638EOF
16639
1e6feb95 16640 USES_CONTROLS=1
10f2d63a
VZ
16641fi
16642
16643if test "$wxUSE_CHOICE" = "yes"; then
698dcdb6 16644 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16645#define wxUSE_CHOICE 1
16646EOF
16647
1e6feb95 16648 USES_CONTROLS=1
10f2d63a
VZ
16649fi
16650
16651if test "$wxUSE_CHECKBOX" = "yes"; then
698dcdb6 16652 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16653#define wxUSE_CHECKBOX 1
16654EOF
16655
1e6feb95 16656 USES_CONTROLS=1
10f2d63a
VZ
16657fi
16658
16659if test "$wxUSE_CHECKLST" = "yes"; then
698dcdb6 16660 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16661#define wxUSE_CHECKLISTBOX 1
16662EOF
16663
1e6feb95 16664 USES_CONTROLS=1
10f2d63a
VZ
16665 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
16666fi
16667
16668if test "$wxUSE_GAUGE" = "yes"; then
698dcdb6 16669 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16670#define wxUSE_GAUGE 1
16671EOF
16672
1e6feb95 16673 USES_CONTROLS=1
10f2d63a
VZ
16674fi
16675
d6a55c4b
VZ
16676if test "$wxUSE_NEW_GRID" = "yes"; then
16677 wxUSE_GRID="yes"
698dcdb6 16678 cat >> confdefs.h <<\EOF
d6a55c4b 16679#define wxUSE_NEW_GRID 1
10f2d63a
VZ
16680EOF
16681
1e6feb95 16682 USES_CONTROLS=1
d6a55c4b 16683 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS newgrid"
10f2d63a
VZ
16684fi
16685
d6a55c4b 16686if test "$wxUSE_GRID" = "yes"; then
698dcdb6 16687 cat >> confdefs.h <<\EOF
d6a55c4b 16688#define wxUSE_GRID 1
10f2d63a
VZ
16689EOF
16690
1e6feb95 16691 USES_CONTROLS=1
d6a55c4b 16692 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
10f2d63a
VZ
16693fi
16694
16695if test "$wxUSE_IMAGLIST" = "yes"; then
698dcdb6 16696 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16697#define wxUSE_IMAGLIST 1
16698EOF
16699
16700fi
16701
16702if test "$wxUSE_LISTBOX" = "yes"; then
698dcdb6 16703 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16704#define wxUSE_LISTBOX 1
16705EOF
16706
1e6feb95 16707 USES_CONTROLS=1
10f2d63a
VZ
16708fi
16709
16710if test "$wxUSE_LISTCTRL" = "yes"; then
16711 if test "$wxUSE_IMAGLIST" = "yes"; then
698dcdb6 16712 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16713#define wxUSE_LISTCTRL 1
16714EOF
16715
1e6feb95 16716 USES_CONTROLS=1
10f2d63a
VZ
16717 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
16718 else
698dcdb6 16719 echo "configure: warning: wxListCtrl requires wxImageList and won't be compiled without it" 1>&2
10f2d63a
VZ
16720 fi
16721fi
16722
16723if test "$wxUSE_NOTEBOOK" = "yes"; then
698dcdb6 16724 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16725#define wxUSE_NOTEBOOK 1
16726EOF
16727
1e6feb95 16728 USES_CONTROLS=1
10f2d63a
VZ
16729 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
16730fi
16731
16732if test "$wxUSE_RADIOBOX" = "yes"; then
698dcdb6 16733 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16734#define wxUSE_RADIOBOX 1
16735EOF
16736
1e6feb95 16737 USES_CONTROLS=1
10f2d63a
VZ
16738fi
16739
16740if test "$wxUSE_RADIOBTN" = "yes"; then
698dcdb6 16741 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16742#define wxUSE_RADIOBTN 1
16743EOF
16744
1e6feb95 16745 USES_CONTROLS=1
10f2d63a
VZ
16746fi
16747
16748if test "$wxUSE_SASH" = "yes"; then
698dcdb6 16749 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16750#define wxUSE_SASH 1
16751EOF
16752
16753 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
16754fi
16755
16756if test "$wxUSE_SCROLLBAR" = "yes"; then
698dcdb6 16757 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16758#define wxUSE_SCROLLBAR 1
16759EOF
16760
1e6feb95 16761 USES_CONTROLS=1
741a9306 16762 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
10f2d63a
VZ
16763fi
16764
16765if test "$wxUSE_SLIDER" = "yes"; then
698dcdb6 16766 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16767#define wxUSE_SLIDER 1
16768EOF
16769
1e6feb95 16770 USES_CONTROLS=1
10f2d63a
VZ
16771fi
16772
16773if test "$wxUSE_SPINBTN" = "yes"; then
698dcdb6 16774 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16775#define wxUSE_SPINBTN 1
16776EOF
16777
1e6feb95 16778 USES_CONTROLS=1
10f2d63a
VZ
16779fi
16780
56cfaa52 16781if test "$wxUSE_SPINCTRL" = "yes"; then
698dcdb6 16782 cat >> confdefs.h <<\EOF
56cfaa52
RR
16783#define wxUSE_SPINCTRL 1
16784EOF
16785
1e6feb95 16786 USES_CONTROLS=1
56cfaa52
RR
16787fi
16788
10f2d63a 16789if test "$wxUSE_SPLITTER" = "yes"; then
698dcdb6 16790 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16791#define wxUSE_SPLITTER 1
16792EOF
16793
16794 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
16795fi
16796
16797if test "$wxUSE_STATBMP" = "yes"; then
698dcdb6 16798 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16799#define wxUSE_STATBMP 1
16800EOF
16801
1e6feb95 16802 USES_CONTROLS=1
10f2d63a
VZ
16803fi
16804
16805if test "$wxUSE_STATBOX" = "yes"; then
698dcdb6 16806 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16807#define wxUSE_STATBOX 1
16808EOF
16809
1e6feb95
VZ
16810 USES_CONTROLS=1
16811fi
16812
16813if test "$wxUSE_STATTEXT" = "yes"; then
16814 cat >> confdefs.h <<\EOF
16815#define wxUSE_STATTEXT 1
16816EOF
16817
16818 USES_CONTROLS=1
10f2d63a
VZ
16819fi
16820
16821if test "$wxUSE_STATLINE" = "yes"; then
16822 if test "$wxUSE_WINE" = 1 ; then
698dcdb6 16823 echo "configure: warning: wxStaticLine is not supported under WINE" 1>&2
10f2d63a 16824 else
698dcdb6 16825 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16826#define wxUSE_STATLINE 1
16827EOF
16828
1e6feb95 16829 USES_CONTROLS=1
10f2d63a
VZ
16830 fi
16831fi
16832
16833if test "$wxUSE_STATUSBAR" = "yes"; then
698dcdb6 16834 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16835#define wxUSE_STATUSBAR 1
16836EOF
16837
1e6feb95 16838 USES_CONTROLS=1
698dcdb6 16839
2286341c 16840 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
10f2d63a
VZ
16841fi
16842
16843if test "$wxUSE_TABDIALOG" = "yes"; then
698dcdb6 16844 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16845#define wxUSE_TAB_DIALOG 1
16846EOF
16847
16848 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
16849fi
16850
1e6feb95
VZ
16851if test "$wxUSE_TEXTCTRL" = "yes"; then
16852 cat >> confdefs.h <<\EOF
16853#define wxUSE_TEXTCTRL 1
16854EOF
16855
16856 USES_CONTROLS=1
16857 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
16858fi
16859
1db8dc4a 16860if test "$wxUSE_TOGGLEBTN" = "yes"; then
a45d7ab7
GD
16861 if test "$wxUSE_MAC" = 1; then
16862 echo "configure: warning: Toggle button is not yet supported under Mac OS X" 1>&2
16863 wxUSE_TOGGLEBTN=no
16864 fi
16865
16866 if test "$wxUSE_TOGGLEBTN" = "yes"; then
16867 cat >> confdefs.h <<\EOF
1db8dc4a
VZ
16868#define wxUSE_TOGGLEBTN 1
16869EOF
16870
1e6feb95 16871 USES_CONTROLS=1
a45d7ab7 16872 fi
1db8dc4a
VZ
16873fi
16874
360d6699 16875if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
698dcdb6 16876 cat >> confdefs.h <<\EOF
360d6699
VZ
16877#define wxUSE_TOOLBAR_SIMPLE 1
16878EOF
16879
16880 wxUSE_TOOLBAR="yes"
1e6feb95 16881 USES_CONTROLS=1
360d6699
VZ
16882fi
16883
10f2d63a 16884if test "$wxUSE_TOOLBAR" = "yes"; then
698dcdb6 16885 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16886#define wxUSE_TOOLBAR 1
16887EOF
16888
1e6feb95 16889 USES_CONTROLS=1
698dcdb6 16890
360d6699
VZ
16891 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
16892 wxUSE_TOOLBAR_NATIVE="yes"
16893 fi
16894
1e6feb95
VZ
16895 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
16896 cat >> confdefs.h <<\EOF
360d6699
VZ
16897#define wxUSE_TOOLBAR_NATIVE 1
16898EOF
16899
1e6feb95
VZ
16900 USES_CONTROLS=1
16901 fi
16902
16903 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
360d6699
VZ
16904fi
16905
10f2d63a
VZ
16906if test "$wxUSE_TOOLTIPS" = "yes"; then
16907 if test "$wxUSE_MOTIF" = 1; then
698dcdb6 16908 echo "configure: warning: wxTooltip not supported yet under Motif" 1>&2
10f2d63a
VZ
16909 else
16910 if test "$wxUSE_WINE" = 1; then
698dcdb6 16911 echo "configure: warning: wxTooltip not supported under WINE" 1>&2
10f2d63a 16912 else
698dcdb6 16913 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16914#define wxUSE_TOOLTIPS 1
16915EOF
16916
16917 fi
16918 fi
16919fi
16920
16921if test "$wxUSE_TREECTRL" = "yes"; then
16922 if test "$wxUSE_IMAGLIST" = "yes"; then
698dcdb6 16923 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16924#define wxUSE_TREECTRL 1
16925EOF
16926
1e6feb95 16927 USES_CONTROLS=1
10f2d63a
VZ
16928 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
16929 else
698dcdb6 16930 echo "configure: warning: wxTreeCtrl requires wxImageList and won't be compiled without it" 1>&2
10f2d63a
VZ
16931 fi
16932fi
16933
1e6feb95
VZ
16934if test "$USES_CONTROLS" = 1; then
16935 cat >> confdefs.h <<\EOF
16936#define wxUSE_CONTROLS 1
10f2d63a
VZ
16937EOF
16938
10f2d63a
VZ
16939fi
16940
1e6feb95
VZ
16941
16942
16943if test "$wxUSE_MENUS" = "yes"; then
698dcdb6 16944 cat >> confdefs.h <<\EOF
1e6feb95 16945#define wxUSE_MENUS 1
10f2d63a
VZ
16946EOF
16947
1e6feb95 16948 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
10f2d63a
VZ
16949fi
16950
1e6feb95
VZ
16951if test "$wxUSE_METAFILE" = "yes"; then
16952 cat >> confdefs.h <<\EOF
16953#define wxUSE_METAFILE 1
10f2d63a
VZ
16954EOF
16955
10f2d63a
VZ
16956fi
16957
1e6feb95
VZ
16958if test "$wxUSE_MIMETYPE" = "yes"; then
16959 cat >> confdefs.h <<\EOF
16960#define wxUSE_MIMETYPE 1
10f2d63a
VZ
16961EOF
16962
10f2d63a
VZ
16963fi
16964
16965if test "$wxUSE_MINIFRAME" = "yes"; then
698dcdb6 16966 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16967#define wxUSE_MINIFRAME 1
16968EOF
16969
16970 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
16971fi
16972
16973if test "$wxUSE_HTML" = "yes"; then
698dcdb6 16974 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16975#define wxUSE_HTML 1
16976EOF
16977
16978 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html"
16979 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS html"
16980fi
16981
16982if test "$wxUSE_VALIDATORS" = "yes"; then
698dcdb6 16983 cat >> confdefs.h <<\EOF
1e487827
VS
16984#define wxUSE_VALIDATORS 1
16985EOF
703e0a69 16986
698dcdb6
VZ
16987 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
16988fi
16989
16990if test "$wxUSE_IMAGE" = "yes" ; then
16991 cat >> confdefs.h <<\EOF
16992#define wxUSE_IMAGE 1
16993EOF
16994
16995fi
16996
16997if test "$wxUSE_GIF" = "yes" ; then
16998 cat >> confdefs.h <<\EOF
16999#define wxUSE_GIF 1
17000EOF
17001
17002fi
17003
17004if test "$wxUSE_PCX" = "yes" ; then
17005 cat >> confdefs.h <<\EOF
17006#define wxUSE_PCX 1
17007EOF
17008
17009fi
17010
17011if test "$wxUSE_PNM" = "yes" ; then
17012 cat >> confdefs.h <<\EOF
17013#define wxUSE_PNM 1
17014EOF
17015
17016fi
17017
17018if test "$wxUSE_XPM" = "yes" ; then
17019 cat >> confdefs.h <<\EOF
17020#define wxUSE_XPM 1
17021EOF
17022
17023fi
17024
17025
1e6feb95
VZ
17026if test "$wxUSE_CHOICEDLG" = "yes"; then
17027 cat >> confdefs.h <<\EOF
17028#define wxUSE_CHOICEDLG 1
17029EOF
17030
17031fi
17032
17033if test "$wxUSE_COLOURDLG" = "yes"; then
17034 cat >> confdefs.h <<\EOF
17035#define wxUSE_COLOURDLG 1
17036EOF
17037
17038fi
17039
17040if test "$wxUSE_FILEDLG" = "yes"; then
17041 cat >> confdefs.h <<\EOF
17042#define wxUSE_FILEDLG 1
17043EOF
17044
17045fi
17046
17047if test "$wxUSE_FONTDLG" = "yes"; then
17048 cat >> confdefs.h <<\EOF
17049#define wxUSE_FONTDLG 1
17050EOF
17051
17052fi
17053
17054if test "$wxUSE_DIRDLG" = "yes"; then
17055 if test "$wxUSE_CONSTRAINTS" != "yes"; then
17056 echo "configure: warning: wxDirDialog requires constraints so it won't be compiled without them" 1>&2
17057 else
17058 if test "$wxUSE_TREECTRL" != "yes"; then
17059 echo "configure: warning: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" 1>&2
17060 else
17061 cat >> confdefs.h <<\EOF
17062#define wxUSE_DIRDLG 1
17063EOF
17064
17065 fi
17066 fi
17067fi
17068
17069if test "$wxUSE_MSGDLG" = "yes"; then
17070 cat >> confdefs.h <<\EOF
17071#define wxUSE_MSGDLG 1
17072EOF
17073
17074fi
17075
17076if test "$wxUSE_NUMBERDLG" = "yes"; then
17077 cat >> confdefs.h <<\EOF
17078#define wxUSE_NUMBERDLG 1
17079EOF
17080
17081fi
17082
17083if test "$wxUSE_PROGRESSDLG" = "yes"; then
17084 if test "$wxUSE_CONSTRAINTS" != "yes"; then
17085 echo "configure: warning: wxProgressDialog requires constraints so it won't be compiled without them" 1>&2
17086 else
17087 cat >> confdefs.h <<\EOF
17088#define wxUSE_PROGRESSDLG 1
17089EOF
17090
17091 fi
17092fi
17093
17094if test "$wxUSE_STARTUP_TIPS" = "yes"; then
17095 if test "$wxUSE_CONSTRAINTS" != "yes"; then
17096 echo "configure: warning: Startup tips requires constraints and won't be compiled without them" 1>&2
17097 else
17098 cat >> confdefs.h <<\EOF
17099#define wxUSE_STARTUP_TIPS 1
17100EOF
17101
17102 fi
17103fi
17104
17105if test "$wxUSE_TEXTDLG" = "yes"; then
17106 cat >> confdefs.h <<\EOF
17107#define wxUSE_TEXTDLG 1
17108EOF
17109
17110fi
17111
17112
698dcdb6
VZ
17113if test "$cross_compiling" = "yes"; then
17114 OSINFO="\"$host\""
17115else
17116 OSINFO=`uname -s -r -m`
17117 OSINFO="\"$OSINFO\""
17118fi
17119
17120cat >> confdefs.h <<EOF
17121#define WXWIN_OS_DESCRIPTION $OSINFO
17122EOF
17123
17124
17125
17126GUILIBS="$GUI_TK_LIBRARY $TOOLKIT_LINK"
17127OPENGL_LIBS="$OPENGL_LINK"
17128
17129EXTRA_LIBS="$LIBS $POSIX4_LINK $INET_LINK $WCHAR_LINK $THREADS_LINK $DMALLOC_LINK $DL_LINK $ZLIB_LINK -lm"
17130if test "$USE_MAC" = 1 ; then
17131 EXTRA_LIBS="$EXTRA_LIBS -framework Carbon -framework System"
17132fi
17133if test "$wxUSE_GUI" = "yes"; then
17134 EXTRA_LIBS="$GUILIBS $PNG_LINK $JPEG_LINK $TIFF_LINK $FREETYPE_LINK $EXTRA_LIBS"
17135fi
17136
17137LD_LIBS="\${top_builddir}/lib/${WX_LIBRARY_NAME_STATIC} $EXTRA_LIBS"
17138
17139INCLUDES="-I. -I\${top_builddir}/include -I\${top_srcdir}/include $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE $FREETYPE_INCLUDE $TOOLKIT_INCLUDE"
17140
17141if test "$wxUSE_GTK" = 1; then
17142 WXCONFIG_INCLUDE=""
17143else
17144 WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
17145fi
17146
17147if test "$GXX" = yes ; then
17148 CXXWARNINGS="-Wall"
17149 fi
17150EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE $INCLUDES"
17151
17152CFLAGS=`echo $CFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'`
17153CXXFLAGS=`echo $CXXFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \+/ /g'`
17154
17155LDFLAGS="$LDFLAGS $PROFILE"
17156
17157if test "$wxUSE_GUI" = "yes"; then
17158
17159 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS controls dialogs dragimag \
1e6feb95
VZ
17160 drawing dynamic event font fractal image \
17161 minimal richedit widgets"
17162
17163 if test "$wxUSE_UNIVERSAL" = "yes" ; then
17164 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS univ"
17165 fi
698dcdb6
VZ
17166
17167 CPPFLAGS="$CPPFLAGS \$(EXTRADEFS) \$(APPEXTRADEFS)"
17168else
17169 SAMPLES_SUBDIRS=""
17170fi
17171
17172SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
17173
17174
17175
17176
17177
17178
17179
17180
17181
17182
17183
17184
17185
17186
17187
17188
17189
17190
17191
17192
17193
17194
17195
17196
17197
17198
17199
17200
17201
17202
17203
17204
17205
17206
17207
17208
17209
17210
17211
17212
17213
17214
17215
17216
17217
17218
17219
17220
17221
17222
17223
17224
17225
17226
17227
17228
17229
17230
17231
17232
17233
17234
17235
17236
17237
17238
17239
32832908
VZ
17240
17241
17242
17243
17244
17245
17246
2224580a 17247
dad6c0ea 17248
f6bcfd97
BP
17249
17250
17251
2f51a9ec
GD
17252
17253
17254
17255
17256
17257
f6bcfd97 17258
dad6c0ea 17259
caa2c79b 17260
3711412e 17261
1e6feb95
VZ
17262
17263
0f3f1cbc 17264
10f2d63a
VZ
17265
17266
698dcdb6 17267echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
d73be714 17268echo "configure:17269: checking whether ${MAKE-make} sets \${MAKE}" >&5
698dcdb6
VZ
17269set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
17270if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
17271 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 17272else
698dcdb6 17273 cat > conftestmake <<\EOF
10f2d63a
VZ
17274all:
17275 @echo 'ac_maketemp="${MAKE}"'
17276EOF
17277# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
698dcdb6 17278eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
10f2d63a
VZ
17279if test -n "$ac_maketemp"; then
17280 eval ac_cv_prog_make_${ac_make}_set=yes
17281else
17282 eval ac_cv_prog_make_${ac_make}_set=no
17283fi
698dcdb6 17284rm -f conftestmake
10f2d63a
VZ
17285fi
17286if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
698dcdb6 17287 echo "$ac_t""yes" 1>&6
10f2d63a
VZ
17288 SET_MAKE=
17289else
698dcdb6 17290 echo "$ac_t""no" 1>&6
10f2d63a
VZ
17291 SET_MAKE="MAKE=${MAKE-make}"
17292fi
17293
698dcdb6 17294
00cf1208
RR
17295if test -d include; then
17296 if test -d include/wx; then
1e6feb95
VZ
17297 if test -d include/wx/${SETUPH_DIR}; then
17298 if test -f include/wx/${SETUPH_DIR}/setup.h; then
17299 mv -f include/wx/${SETUPH_DIR}/setup.h setup.h
00cf1208
RR
17300 fi
17301 fi
17302 fi
17303fi
665bbe97 17304
698dcdb6 17305
10f2d63a 17306
2224580a 17307if test "$wxUSE_GUI" = "yes"; then
ec90f5e5 17308 wx_cv_path_samplesubdirs=$SAMPLES_SUBDIRS
e8482f24
GL
17309 wx_cv_path_ifs=$PATH_IFS
17310 wx_cv_program_ext=$PROGRAM_EXT
17311 wx_cv_target_library=$WX_TARGET_LIBRARY
3711412e 17312 wx_cv_target_libtype=$WX_TARGET_LIBRARY_TYPE
93a20a27
VS
17313 export wx_cv_path_samplesubdirs wx_cv_path_ifs wx_cv_program_ext \
17314 wx_cv_target_library wx_cv_target_libtype
698dcdb6 17315 subdirs="demos samples utils contrib"
2224580a
VZ
17316
17317fi
10f2d63a 17318
698dcdb6
VZ
17319trap '' 1 2 15
17320cat > confcache <<\EOF
10f2d63a
VZ
17321# This file is a shell script that caches the results of configure
17322# tests run on this system so they can be shared between configure
698dcdb6
VZ
17323# scripts and configure runs. It is not useful on other systems.
17324# If it contains results you don't want to keep, you may remove or edit it.
10f2d63a 17325#
698dcdb6
VZ
17326# By default, configure uses ./config.cache as the cache file,
17327# creating it if it does not exist already. You can give configure
17328# the --cache-file=FILE option to use a different cache file; that is
17329# what configure does when it calls configure scripts in
17330# subdirectories, so they share the cache.
17331# Giving --cache-file=/dev/null disables caching, for debugging configure.
17332# config.status only pays attention to the cache file if you give it the
17333# --recheck option to rerun configure.
10f2d63a 17334#
698dcdb6 17335EOF
10f2d63a
VZ
17336# The following way of writing the cache mishandles newlines in values,
17337# but we know of no workaround that is simple, portable, and efficient.
17338# So, don't put newlines in cache variables' values.
17339# Ultrix sh set writes to stderr and can't be redirected directly,
17340# and sets the high bit in the cache file unless we assign to the vars.
698dcdb6
VZ
17341(set) 2>&1 |
17342 case `(ac_space=' '; set | grep ac_space) 2>&1` in
17343 *ac_space=\ *)
17344 # `set' does not quote correctly, so add quotes (double-quote substitution
17345 # turns \\\\ into \\, and sed turns \\ into \).
17346 sed -n \
17347 -e "s/'/'\\\\''/g" \
17348 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
17349 ;;
17350 *)
17351 # `set' quotes correctly as required by POSIX, so do not add quotes.
17352 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
17353 ;;
17354 esac >> confcache
17355if cmp -s $cache_file confcache; then
17356 :
17357else
10f2d63a 17358 if test -w $cache_file; then
698dcdb6
VZ
17359 echo "updating cache $cache_file"
17360 cat confcache > $cache_file
10f2d63a
VZ
17361 else
17362 echo "not updating unwritable cache $cache_file"
17363 fi
17364fi
17365rm -f confcache
17366
698dcdb6
VZ
17367trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
17368
10f2d63a
VZ
17369test "x$prefix" = xNONE && prefix=$ac_default_prefix
17370# Let make expand exec_prefix.
17371test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17372
698dcdb6
VZ
17373# Any assignment to VPATH causes Sun make to only execute
17374# the first set of double-colon rules, so remove it if not needed.
17375# If there is a colon in the path, we need to keep it.
10f2d63a 17376if test "x$srcdir" = x.; then
698dcdb6 17377 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
10f2d63a
VZ
17378fi
17379
698dcdb6
VZ
17380trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
17381
10f2d63a
VZ
17382DEFS=-DHAVE_CONFIG_H
17383
698dcdb6 17384# Without the "./", some shells look in PATH for config.status.
10f2d63a 17385: ${CONFIG_STATUS=./config.status}
698dcdb6
VZ
17386
17387echo creating $CONFIG_STATUS
17388rm -f $CONFIG_STATUS
17389cat > $CONFIG_STATUS <<EOF
17390#! /bin/sh
10f2d63a
VZ
17391# Generated automatically by configure.
17392# Run this file to recreate the current configuration.
698dcdb6
VZ
17393# This directory was configured as follows,
17394# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17395#
17396# $0 $ac_configure_args
17397#
10f2d63a 17398# Compiler output produced by configure, useful for debugging
698dcdb6 17399# configure, is in ./config.log if it exists.
1e487827 17400
698dcdb6
VZ
17401ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
17402for ac_option
10f2d63a 17403do
698dcdb6 17404 case "\$ac_option" in
10f2d63a 17405 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
698dcdb6
VZ
17406 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
17407 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
17408 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
17409 echo "$CONFIG_STATUS generated by autoconf version 2.13"
17410 exit 0 ;;
17411 -help | --help | --hel | --he | --h)
17412 echo "\$ac_cs_usage"; exit 0 ;;
17413 *) echo "\$ac_cs_usage"; exit 1 ;;
10f2d63a
VZ
17414 esac
17415done
17416
698dcdb6
VZ
17417ac_given_srcdir=$srcdir
17418ac_given_INSTALL="$INSTALL"
703e0a69 17419
698dcdb6
VZ
17420trap 'rm -fr `echo "
17421 wx-config
17422 src/make.env
17423 src/makeprog.env
17424 src/makelib.env
17425 Makefile
17426 setup.h:setup.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1e487827 17427EOF
698dcdb6 17428cat >> $CONFIG_STATUS <<EOF
1e487827 17429
698dcdb6
VZ
17430# Protect against being on the right side of a sed subst in config.status.
17431sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
17432 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
17433$ac_vpsub
17434$extrasub
17435s%@SHELL@%$SHELL%g
17436s%@CFLAGS@%$CFLAGS%g
17437s%@CPPFLAGS@%$CPPFLAGS%g
17438s%@CXXFLAGS@%$CXXFLAGS%g
17439s%@FFLAGS@%$FFLAGS%g
17440s%@DEFS@%$DEFS%g
17441s%@LDFLAGS@%$LDFLAGS%g
17442s%@LIBS@%$LIBS%g
17443s%@exec_prefix@%$exec_prefix%g
17444s%@prefix@%$prefix%g
17445s%@program_transform_name@%$program_transform_name%g
17446s%@bindir@%$bindir%g
17447s%@sbindir@%$sbindir%g
17448s%@libexecdir@%$libexecdir%g
17449s%@datadir@%$datadir%g
17450s%@sysconfdir@%$sysconfdir%g
17451s%@sharedstatedir@%$sharedstatedir%g
17452s%@localstatedir@%$localstatedir%g
17453s%@libdir@%$libdir%g
17454s%@includedir@%$includedir%g
17455s%@oldincludedir@%$oldincludedir%g
17456s%@infodir@%$infodir%g
17457s%@mandir@%$mandir%g
17458s%@host@%$host%g
17459s%@host_alias@%$host_alias%g
17460s%@host_cpu@%$host_cpu%g
17461s%@host_vendor@%$host_vendor%g
17462s%@host_os@%$host_os%g
17463s%@target@%$target%g
17464s%@target_alias@%$target_alias%g
17465s%@target_cpu@%$target_cpu%g
17466s%@target_vendor@%$target_vendor%g
17467s%@target_os@%$target_os%g
17468s%@build@%$build%g
17469s%@build_alias@%$build_alias%g
17470s%@build_cpu@%$build_cpu%g
17471s%@build_vendor@%$build_vendor%g
17472s%@build_os@%$build_os%g
17473s%@CC@%$CC%g
17474s%@CPP@%$CPP%g
17475s%@CXX@%$CXX%g
17476s%@CXXCPP@%$CXXCPP%g
17477s%@RANLIB@%$RANLIB%g
17478s%@AR@%$AR%g
17479s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
17480s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
17481s%@INSTALL_DATA@%$INSTALL_DATA%g
17482s%@STRIP@%$STRIP%g
17483s%@YACC@%$YACC%g
17484s%@LEX@%$LEX%g
17485s%@LEXLIB@%$LEXLIB%g
17486s%@LN_S@%$LN_S%g
17487s%@GTK_CONFIG_2_0@%$GTK_CONFIG_2_0%g
698dcdb6
VZ
17488s%@GTK_CFLAGS@%$GTK_CFLAGS%g
17489s%@GTK_LIBS@%$GTK_LIBS%g
8168de4c 17490s%@GTK_CONFIG@%$GTK_CONFIG%g
698dcdb6
VZ
17491s%@X_CFLAGS@%$X_CFLAGS%g
17492s%@X_PRE_LIBS@%$X_PRE_LIBS%g
17493s%@X_LIBS@%$X_LIBS%g
17494s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
17495s%@REZ@%$REZ%g
17496s%@DEREZ@%$DEREZ%g
17497s%@LEX_STEM@%$LEX_STEM%g
17498s%@PATH_IFS@%$PATH_IFS%g
17499s%@WX_MAJOR_VERSION_NUMBER@%$WX_MAJOR_VERSION_NUMBER%g
17500s%@WX_MINOR_VERSION_NUMBER@%$WX_MINOR_VERSION_NUMBER%g
17501s%@WX_RELEASE_NUMBER@%$WX_RELEASE_NUMBER%g
17502s%@WX_LIBRARY_NAME@%$WX_LIBRARY_NAME%g
17503s%@WX_LIBRARY_NAME_STATIC@%$WX_LIBRARY_NAME_STATIC%g
17504s%@WX_LIBRARY_NAME_SHARED@%$WX_LIBRARY_NAME_SHARED%g
17505s%@WX_LIBRARY@%$WX_LIBRARY%g
17506s%@WX_TARGET_LIBRARY@%$WX_TARGET_LIBRARY%g
17507s%@WX_LIBRARY_LINK1@%$WX_LIBRARY_LINK1%g
17508s%@WX_LIBRARY_LINK2@%$WX_LIBRARY_LINK2%g
17509s%@WX_LIBRARY_LINK3@%$WX_LIBRARY_LINK3%g
17510s%@PROGRAM_EXT@%$PROGRAM_EXT%g
17511s%@WX_LIBRARY_NAME_GL@%$WX_LIBRARY_NAME_GL%g
17512s%@WX_LIBRARY_NAME_STATIC_GL@%$WX_LIBRARY_NAME_STATIC_GL%g
17513s%@WX_LIBRARY_NAME_SHARED_GL@%$WX_LIBRARY_NAME_SHARED_GL%g
17514s%@WX_LIBRARY_GL@%$WX_LIBRARY_GL%g
17515s%@WX_TARGET_LIBRARY_GL@%$WX_TARGET_LIBRARY_GL%g
17516s%@WX_LIBRARY_LINK1_GL@%$WX_LIBRARY_LINK1_GL%g
17517s%@WX_LIBRARY_LINK2_GL@%$WX_LIBRARY_LINK2_GL%g
17518s%@WX_LIBRARY_LINK3_GL@%$WX_LIBRARY_LINK3_GL%g
17519s%@WX_ALL@%$WX_ALL%g
17520s%@WX_ALL_INSTALLED@%$WX_ALL_INSTALLED%g
17521s%@SHARED_LD@%$SHARED_LD%g
17522s%@PIC_FLAG@%$PIC_FLAG%g
17523s%@DEP_INFO_FLAGS@%$DEP_INFO_FLAGS%g
17524s%@CODE_GEN_FLAGS@%$CODE_GEN_FLAGS%g
17525s%@CODE_GEN_FLAGS_CXX@%$CODE_GEN_FLAGS_CXX%g
17526s%@BURNT_LIBRARY_NAME@%$BURNT_LIBRARY_NAME%g
17527s%@BURNT_LIBRARY_NAME_GL@%$BURNT_LIBRARY_NAME_GL%g
17528s%@WX_TARGET_LIBRARY_SONAME@%$WX_TARGET_LIBRARY_SONAME%g
17529s%@WX_TARGET_LIBRARY_TYPE@%$WX_TARGET_LIBRARY_TYPE%g
17530s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g
17531s%@USE_GUI@%$USE_GUI%g
17532s%@AFMINSTALL@%$AFMINSTALL%g
1e6feb95 17533s%@SETUPH_DIR@%$SETUPH_DIR%g
698dcdb6
VZ
17534s%@TOOLKIT@%$TOOLKIT%g
17535s%@TOOLKIT_DEF@%$TOOLKIT_DEF%g
17536s%@TOOLKIT_DIR@%$TOOLKIT_DIR%g
17537s%@TOOLKIT_NAME@%$TOOLKIT_NAME%g
17538s%@TOOLKIT_INCLUDE@%$TOOLKIT_INCLUDE%g
1e6feb95 17539s%@TOOLKIT_VPATH@%$TOOLKIT_VPATH%g
698dcdb6
VZ
17540s%@WXCONFIG_INCLUDE@%$WXCONFIG_INCLUDE%g
17541s%@ALL_OBJECTS@%$ALL_OBJECTS%g
17542s%@ALL_DEPFILES@%$ALL_DEPFILES%g
17543s%@GUIDIST@%$GUIDIST%g
17544s%@PORT_FILES@%$PORT_FILES%g
17545s%@DISTDIR@%$DISTDIR%g
17546s%@RPM_SPEC@%$RPM_SPEC%g
17547s%@RPM_FILES@%$RPM_FILES%g
17548s%@SRC_SUBDIRS@%$SRC_SUBDIRS%g
17549s%@INCLUDE_SUBDIRS@%$INCLUDE_SUBDIRS%g
17550s%@UTILS_SUBDIRS@%$UTILS_SUBDIRS%g
17551s%@DOCS_SUBDIRS@%$DOCS_SUBDIRS%g
17552s%@SAMPLES_SUBDIRS@%$SAMPLES_SUBDIRS%g
17553s%@USER_SUBDIRS@%$USER_SUBDIRS%g
17554s%@EXTRA_LIBS@%$EXTRA_LIBS%g
17555s%@OPENGL_LIBS@%$OPENGL_LIBS%g
17556s%@EXTRADEFS@%$EXTRADEFS%g
17557s%@LD_LIBS@%$LD_LIBS%g
17558s%@RCINPUTSWITCH@%$RCINPUTSWITCH%g
17559s%@RCOUTPUTSWITCH@%$RCOUTPUTSWITCH%g
17560s%@RESPROGRAM@%$RESPROGRAM%g
17561s%@RESCOMP@%$RESCOMP%g
17562s%@RESFLAGS@%$RESFLAGS%g
17563s%@REZFLAGS@%$REZFLAGS%g
17564s%@DEREZFLAGS@%$DEREZFLAGS%g
17565s%@LIBWXMACRES@%$LIBWXMACRES%g
17566s%@LIBWXMACRESCOMP@%$LIBWXMACRESCOMP%g
17567s%@DLLTOOL@%$DLLTOOL%g
17568s%@AS@%$AS%g
17569s%@NM@%$NM%g
17570s%@LD@%$LD%g
17571s%@MAKEINFO@%$MAKEINFO%g
17572s%@SET_MAKE@%$SET_MAKE%g
17573s%@subdirs@%$subdirs%g
1e487827 17574
1e487827 17575CEOF
1e487827
VS
17576EOF
17577
698dcdb6
VZ
17578cat >> $CONFIG_STATUS <<\EOF
17579
17580# Split the substitutions into bite-sized pieces for seds with
17581# small command number limits, like on Digital OSF/1 and HP-UX.
17582ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
17583ac_file=1 # Number of current file.
17584ac_beg=1 # First line for current file.
17585ac_end=$ac_max_sed_cmds # Line after last line for current file.
17586ac_more_lines=:
17587ac_sed_cmds=""
17588while $ac_more_lines; do
17589 if test $ac_beg -gt 1; then
17590 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
17591 else
17592 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
17593 fi
17594 if test ! -s conftest.s$ac_file; then
17595 ac_more_lines=false
17596 rm -f conftest.s$ac_file
17597 else
17598 if test -z "$ac_sed_cmds"; then
17599 ac_sed_cmds="sed -f conftest.s$ac_file"
10f2d63a 17600 else
698dcdb6 17601 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
10f2d63a 17602 fi
698dcdb6
VZ
17603 ac_file=`expr $ac_file + 1`
17604 ac_beg=$ac_end
17605 ac_end=`expr $ac_end + $ac_max_sed_cmds`
10f2d63a 17606 fi
698dcdb6
VZ
17607done
17608if test -z "$ac_sed_cmds"; then
17609 ac_sed_cmds=cat
17610fi
17611EOF
10f2d63a 17612
698dcdb6
VZ
17613cat >> $CONFIG_STATUS <<EOF
17614
17615CONFIG_FILES=\${CONFIG_FILES-"wx-config
17616 src/make.env
17617 src/makeprog.env
17618 src/makelib.env
17619 Makefile
17620 "}
10f2d63a 17621EOF
698dcdb6
VZ
17622cat >> $CONFIG_STATUS <<\EOF
17623for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
10f2d63a 17624 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
698dcdb6
VZ
17625 case "$ac_file" in
17626 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
17627 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
17628 *) ac_file_in="${ac_file}.in" ;;
10f2d63a
VZ
17629 esac
17630
698dcdb6 17631 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
1e487827 17632
698dcdb6
VZ
17633 # Remove last slash and all that follows it. Not all systems have dirname.
17634 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
17635 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
17636 # The file is in a subdirectory.
17637 test ! -d "$ac_dir" && mkdir "$ac_dir"
17638 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
10f2d63a 17639 # A "../" for each directory in $ac_dir_suffix.
698dcdb6 17640 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
10f2d63a
VZ
17641 else
17642 ac_dir_suffix= ac_dots=
17643 fi
17644
698dcdb6
VZ
17645 case "$ac_given_srcdir" in
17646 .) srcdir=.
17647 if test -z "$ac_dots"; then top_srcdir=.
17648 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
17649 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
10f2d63a 17650 *) # Relative path.
698dcdb6
VZ
17651 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
17652 top_srcdir="$ac_dots$ac_given_srcdir" ;;
10f2d63a
VZ
17653 esac
17654
698dcdb6
VZ
17655 case "$ac_given_INSTALL" in
17656 [/$]*) INSTALL="$ac_given_INSTALL" ;;
17657 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
10f2d63a
VZ
17658 esac
17659
698dcdb6
VZ
17660 echo creating "$ac_file"
17661 rm -f "$ac_file"
17662 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
17663 case "$ac_file" in
17664 *Makefile*) ac_comsub="1i\\
17665# $configure_input" ;;
17666 *) ac_comsub= ;;
17667 esac
10f2d63a 17668
698dcdb6
VZ
17669 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
17670 sed -e "$ac_comsub
17671s%@configure_input@%$configure_input%g
17672s%@srcdir@%$srcdir%g
17673s%@top_srcdir@%$top_srcdir%g
17674s%@INSTALL@%$INSTALL%g
17675" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
17676fi; done
17677rm -f conftest.s*
10f2d63a
VZ
17678
17679# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
17680# NAME is the cpp macro being defined and VALUE is the value it is being given.
17681#
17682# ac_d sets the value in "#define NAME VALUE" lines.
698dcdb6
VZ
17683ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
17684ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
17685ac_dC='\3'
17686ac_dD='%g'
17687# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
17688ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
17689ac_uB='\([ ]\)%\1#\2define\3'
10f2d63a 17690ac_uC=' '
698dcdb6
VZ
17691ac_uD='\4%g'
17692# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
17693ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
17694ac_eB='$%\1#\2define\3'
17695ac_eC=' '
17696ac_eD='%g'
10f2d63a 17697
698dcdb6
VZ
17698if test "${CONFIG_HEADERS+set}" != set; then
17699EOF
17700cat >> $CONFIG_STATUS <<EOF
17701 CONFIG_HEADERS="setup.h:setup.h.in"
17702EOF
17703cat >> $CONFIG_STATUS <<\EOF
17704fi
17705for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
10f2d63a 17706 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
698dcdb6
VZ
17707 case "$ac_file" in
17708 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
17709 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
17710 *) ac_file_in="${ac_file}.in" ;;
10f2d63a
VZ
17711 esac
17712
698dcdb6
VZ
17713 echo creating $ac_file
17714
17715 rm -f conftest.frag conftest.in conftest.out
17716 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
17717 cat $ac_file_inputs > conftest.in
17718
17719EOF
17720
17721# Transform confdefs.h into a sed script conftest.vals that substitutes
17722# the proper values into config.h.in to produce config.h. And first:
17723# Protect against being on the right side of a sed subst in config.status.
17724# Protect against being in an unquoted here document in config.status.
17725rm -f conftest.vals
17726cat > conftest.hdr <<\EOF
17727s/[\\&%]/\\&/g
17728s%[\\$`]%\\&%g
17729s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
17730s%ac_d%ac_u%gp
17731s%ac_u%ac_e%gp
17732EOF
17733sed -n -f conftest.hdr confdefs.h > conftest.vals
17734rm -f conftest.hdr
10f2d63a
VZ
17735
17736# This sed command replaces #undef with comments. This is necessary, for
17737# example, in the case of _POSIX_SOURCE, which is predefined and required
17738# on some systems where configure will not decide to define it.
698dcdb6
VZ
17739cat >> conftest.vals <<\EOF
17740s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
10f2d63a
VZ
17741EOF
17742
698dcdb6
VZ
17743# Break up conftest.vals because some shells have a limit on
17744# the size of here documents, and old seds have small limits too.
10f2d63a
VZ
17745
17746rm -f conftest.tail
698dcdb6 17747while :
10f2d63a 17748do
698dcdb6
VZ
17749 ac_lines=`grep -c . conftest.vals`
17750 # grep -c gives empty output for an empty file on some AIX systems.
17751 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
17752 # Write a limited-size here document to conftest.frag.
17753 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
17754 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
10f2d63a 17755 echo 'CEOF
698dcdb6
VZ
17756 sed -f conftest.frag conftest.in > conftest.out
17757 rm -f conftest.in
17758 mv conftest.out conftest.in
17759' >> $CONFIG_STATUS
17760 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
17761 rm -f conftest.vals
17762 mv conftest.tail conftest.vals
10f2d63a 17763done
698dcdb6
VZ
17764rm -f conftest.vals
17765
17766cat >> $CONFIG_STATUS <<\EOF
17767 rm -f conftest.frag conftest.h
17768 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
17769 cat conftest.in >> conftest.h
17770 rm -f conftest.in
17771 if cmp -s $ac_file conftest.h 2>/dev/null; then
17772 echo "$ac_file is unchanged"
17773 rm -f conftest.h
10f2d63a 17774 else
698dcdb6
VZ
17775 # Remove last slash and all that follows it. Not all systems have dirname.
17776 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
10f2d63a 17777 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
698dcdb6
VZ
17778 # The file is in a subdirectory.
17779 test ! -d "$ac_dir" && mkdir "$ac_dir"
10f2d63a 17780 fi
698dcdb6
VZ
17781 rm -f $ac_file
17782 mv conftest.h $ac_file
10f2d63a 17783 fi
698dcdb6
VZ
17784fi; done
17785
10f2d63a 17786EOF
698dcdb6 17787cat >> $CONFIG_STATUS <<EOF
10f2d63a 17788
1e6feb95 17789 SETUPH_DIR="${SETUPH_DIR}"
698dcdb6
VZ
17790 TOOLKIT_NAME="${TOOLKIT_NAME}"
17791 LN_S="${LN_S}"
17792
17793
17794EOF
17795cat >> $CONFIG_STATUS <<\EOF
10f2d63a 17796
6ef41520 17797 if test ! -f wx${TOOLKIT_NAME}-config; then
991a5759
VZ
17798 chmod +x wx-config
17799 mv wx-config wx${TOOLKIT_NAME}-config
17800 ${LN_S} wx${TOOLKIT_NAME}-config wx-config
17801 fi
665bbe97 17802
698dcdb6 17803
00cf1208
RR
17804 if test ! -d lib; then
17805 mkdir lib
17806 fi
17807 if test ! -d lib/wx; then
17808 mkdir lib/wx
17809 fi
17810 if test ! -d lib/wx/include; then
17811 mkdir lib/wx/include
17812 fi
17813 if test ! -d lib/wx/include/wx; then
17814 mkdir lib/wx/include/wx
17815 fi
f6bcfd97
BP
17816 if test ! -d lib/wx/include/wx/${TOOLKIT_NAME}; then
17817 mkdir lib/wx/include/wx/${TOOLKIT_NAME}
00cf1208
RR
17818 fi
17819 if test -f setup.h; then
066b00aa 17820 cp -fp setup.h lib/wx/include/wx/${TOOLKIT_NAME}/setup.h
00cf1208 17821 fi
07eb77a6 17822
698dcdb6 17823
10f2d63a
VZ
17824 if test ! -d include; then
17825 mkdir include
17826 fi
17827 if test ! -d include/wx; then
17828 mkdir include/wx
17829 fi
1e6feb95
VZ
17830 if test ! -d include/wx/${SETUPH_DIR}; then
17831 mkdir include/wx/${SETUPH_DIR}
10f2d63a 17832 fi
afc31813 17833 if test -f setup.h; then
1e6feb95 17834 cp -fp setup.h include/wx/${SETUPH_DIR}/setup.h
afc31813 17835 fi
665bbe97 17836
698dcdb6
VZ
17837
17838exit 0
10f2d63a
VZ
17839EOF
17840chmod +x $CONFIG_STATUS
698dcdb6
VZ
17841rm -fr confdefs* $ac_clean_files
17842test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
10f2d63a 17843
2224580a
VZ
17844if test "$no_recursion" != yes; then
17845
17846 # Remove --cache-file and --srcdir arguments so they do not pile up.
17847 ac_sub_configure_args=
17848 ac_prev=
17849 for ac_arg in $ac_configure_args; do
17850 if test -n "$ac_prev"; then
17851 ac_prev=
17852 continue
17853 fi
698dcdb6 17854 case "$ac_arg" in
2224580a
VZ
17855 -cache-file | --cache-file | --cache-fil | --cache-fi \
17856 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
17857 ac_prev=cache_file ;;
17858 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
698dcdb6 17859 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
2224580a
VZ
17860 ;;
17861 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
17862 ac_prev=srcdir ;;
17863 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
17864 ;;
17865 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
17866 esac
17867 done
17868
698dcdb6 17869 for ac_config_dir in demos samples utils contrib; do
2224580a
VZ
17870
17871 # Do not complain, so a configure script can configure whichever
17872 # parts of a large source tree are present.
698dcdb6
VZ
17873 if test ! -d $srcdir/$ac_config_dir; then
17874 continue
17875 fi
17876
17877 echo configuring in $ac_config_dir
2224580a 17878
698dcdb6 17879 case "$srcdir" in
2224580a
VZ
17880 .) ;;
17881 *)
698dcdb6
VZ
17882 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
17883 else
17884 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
17885 fi
17886 ;;
2224580a
VZ
17887 esac
17888
17889 ac_popdir=`pwd`
698dcdb6 17890 cd $ac_config_dir
2224580a 17891
698dcdb6
VZ
17892 # A "../" for each directory in /$ac_config_dir.
17893 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
2224580a 17894
698dcdb6 17895 case "$srcdir" in
2224580a
VZ
17896 .) # No --srcdir option. We are building in place.
17897 ac_sub_srcdir=$srcdir ;;
698dcdb6
VZ
17898 /*) # Absolute path.
17899 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
2224580a 17900 *) # Relative path.
698dcdb6 17901 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
2224580a
VZ
17902 esac
17903
17904 # Check for guested configure; otherwise get Cygnus style configure.
698dcdb6
VZ
17905 if test -f $ac_sub_srcdir/configure; then
17906 ac_sub_configure=$ac_sub_srcdir/configure
2224580a
VZ
17907 elif test -f $ac_sub_srcdir/configure.in; then
17908 ac_sub_configure=$ac_configure
17909 else
698dcdb6 17910 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
2224580a
VZ
17911 ac_sub_configure=
17912 fi
17913
17914 # The recursion is here.
17915 if test -n "$ac_sub_configure"; then
698dcdb6 17916
2224580a 17917 # Make the cache file name correct relative to the subdirectory.
698dcdb6
VZ
17918 case "$cache_file" in
17919 /*) ac_sub_cache_file=$cache_file ;;
2224580a 17920 *) # Relative path.
698dcdb6 17921 ac_sub_cache_file="$ac_dots$cache_file" ;;
2224580a 17922 esac
698dcdb6
VZ
17923 case "$ac_given_INSTALL" in
17924 [/$]*) INSTALL="$ac_given_INSTALL" ;;
17925 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
17926 esac
2224580a 17927
698dcdb6 17928 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
2224580a 17929 # The eval makes quoting arguments work.
698dcdb6
VZ
17930 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
17931 then :
17932 else
17933 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
17934 fi
2224580a
VZ
17935 fi
17936
17937 cd $ac_popdir
17938 done
17939fi
17940
698dcdb6 17941