]> git.saurik.com Git - wxWidgets.git/blame - configure
added WXWIN_COMPATIBILITY_2_2 option (disabled 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
1530
1531 DEFAULT_wxUSE_GUI=yes
1532
1533 DEFAULT_wxUSE_ZLIB=yes
1534 DEFAULT_wxUSE_LIBPNG=yes
1535 DEFAULT_wxUSE_LIBJPEG=yes
b47c832e 1536 DEFAULT_wxUSE_LIBTIFF=yes
16b52fa1 1537 DEFAULT_wxUSE_ODBC=no
3fed1840 1538 DEFAULT_wxUSE_FREETYPE=no
bdad4e7e 1539 DEFAULT_wxUSE_OPENGL=no
10f2d63a 1540
eb4efbdc 1541 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
4f3c5f06 1542 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
10f2d63a 1543 DEFAULT_wxUSE_STD_IOSTREAM=no
1e6feb95
VZ
1544 DEFAULT_wxUSE_CMDLINE_PARSER=yes
1545 DEFAULT_wxUSE_DATETIME=yes
1546 DEFAULT_wxUSE_TIMEDATE=no
1547 DEFAULT_wxUSE_TIMER=yes
1548 DEFAULT_wxUSE_STOPWATCH=yes
10f2d63a 1549 DEFAULT_wxUSE_FILE=yes
1e6feb95 1550 DEFAULT_wxUSE_FFILE=yes
10f2d63a 1551 DEFAULT_wxUSE_TEXTFILE=yes
10f2d63a
VZ
1552 DEFAULT_wxUSE_WAVE=no
1553 DEFAULT_wxUSE_INTL=yes
1554 DEFAULT_wxUSE_CONFIG=yes
1e6feb95 1555 DEFAULT_wxUSE_FONTMAP=yes
10f2d63a
VZ
1556 DEFAULT_wxUSE_STREAMS=yes
1557 DEFAULT_wxUSE_SOCKETS=yes
1558 DEFAULT_wxUSE_DIALUP_MANAGER=yes
1559 DEFAULT_wxUSE_SERIAL=yes
1560 DEFAULT_wxUSE_JOYSTICK=yes
1561 DEFAULT_wxUSE_DYNLIB_CLASS=yes
b685cd9b 1562 DEFAULT_wxUSE_LONGLONG=yes
e8f65ba6 1563 DEFAULT_wxUSE_GEOMETRY=yes
10f2d63a
VZ
1564
1565 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
1566 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
1567 DEFAULT_wxUSE_POSTSCRIPT=yes
1568
1569 DEFAULT_wxUSE_X_RESOURCES=no
1570 DEFAULT_wxUSE_CLIPBOARD=yes
1571 DEFAULT_wxUSE_TOOLTIPS=yes
1572 DEFAULT_wxUSE_DRAG_AND_DROP=yes
1573 DEFAULT_wxUSE_SPLINES=yes
1574
1575 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
1576 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
1577 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
1578
1579 DEFAULT_wxUSE_PROLOGIO=yes
1580 DEFAULT_wxUSE_RESOURCES=yes
1581 DEFAULT_wxUSE_CONSTRAINTS=yes
1582 DEFAULT_wxUSE_IPC=yes
1583 DEFAULT_wxUSE_HELP=yes
1584 DEFAULT_wxUSE_WXTREE=yes
1585 DEFAULT_wxUSE_METAFILE=yes
1e6feb95 1586 DEFAULT_wxUSE_MIMETYPE=yes
10f2d63a
VZ
1587
1588 DEFAULT_wxUSE_COMMONDLGS=yes
1e6feb95
VZ
1589 DEFAULT_wxUSE_CHOICEDLG=yes
1590 DEFAULT_wxUSE_COLOURDLG=yes
10f2d63a 1591 DEFAULT_wxUSE_DIRDLG=yes
1e6feb95
VZ
1592 DEFAULT_wxUSE_FILEDLG=yes
1593 DEFAULT_wxUSE_FONTDLG=yes
1594 DEFAULT_wxUSE_MSGDLG=yes
1595 DEFAULT_wxUSE_NUMBERDLG=yes
10f2d63a
VZ
1596 DEFAULT_wxUSE_TEXTDLG=yes
1597 DEFAULT_wxUSE_STARTUP_TIPS=yes
1598 DEFAULT_wxUSE_PROGRESSDLG=yes
1e6feb95 1599 DEFAULT_wxUSE_MENUS=yes
10f2d63a
VZ
1600 DEFAULT_wxUSE_MINIFRAME=yes
1601 DEFAULT_wxUSE_HTML=yes
24528b0c 1602 DEFAULT_wxUSE_FILESYSTEM=yes
10f2d63a
VZ
1603 DEFAULT_wxUSE_FS_INET=yes
1604 DEFAULT_wxUSE_FS_ZIP=yes
1605 DEFAULT_wxUSE_BUSYINFO=yes
1606 DEFAULT_wxUSE_ZIPSTREAM=yes
1607 DEFAULT_wxUSE_VALIDATORS=yes
1608
1609 DEFAULT_wxUSE_ACCEL=yes
1e6feb95 1610 DEFAULT_wxUSE_BUTTON=yes
10f2d63a 1611 DEFAULT_wxUSE_BMPBUTTON=yes
1e6feb95
VZ
1612 DEFAULT_wxUSE_CALCTRL=yes
1613 DEFAULT_wxUSE_CARET=yes
10f2d63a
VZ
1614 DEFAULT_wxUSE_CHECKBOX=yes
1615 DEFAULT_wxUSE_CHECKLST=yes
1616 DEFAULT_wxUSE_CHOICE=yes
1617 DEFAULT_wxUSE_COMBOBOX=yes
1618 DEFAULT_wxUSE_GAUGE=yes
1619 DEFAULT_wxUSE_GRID=yes
cc977e5f 1620 DEFAULT_wxUSE_NEW_GRID=yes
10f2d63a
VZ
1621 DEFAULT_wxUSE_IMAGLIST=yes
1622 DEFAULT_wxUSE_LISTBOX=yes
1623 DEFAULT_wxUSE_LISTCTRL=yes
1624 DEFAULT_wxUSE_NOTEBOOK=yes
1625 DEFAULT_wxUSE_RADIOBOX=yes
1626 DEFAULT_wxUSE_RADIOBTN=yes
1627 DEFAULT_wxUSE_SASH=yes
1628 DEFAULT_wxUSE_SCROLLBAR=yes
1629 DEFAULT_wxUSE_SLIDER=yes
1630 DEFAULT_wxUSE_SPINBTN=yes
56cfaa52 1631 DEFAULT_wxUSE_SPINCTRL=yes
10f2d63a
VZ
1632 DEFAULT_wxUSE_SPLITTER=yes
1633 DEFAULT_wxUSE_STATBMP=yes
1634 DEFAULT_wxUSE_STATBOX=yes
1635 DEFAULT_wxUSE_STATLINE=yes
1e6feb95 1636 DEFAULT_wxUSE_STATTEXT=yes
10f2d63a
VZ
1637 DEFAULT_wxUSE_STATUSBAR=yes
1638 DEFAULT_wxUSE_TABDIALOG=no
1e6feb95 1639 DEFAULT_wxUSE_TEXTCTRL=yes
1db8dc4a 1640 DEFAULT_wxUSE_TOGGLEBTN=yes
10f2d63a 1641 DEFAULT_wxUSE_TOOLBAR=yes
360d6699
VZ
1642 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
1643 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
10f2d63a
VZ
1644 DEFAULT_wxUSE_TREECTRL=yes
1645
1646 DEFAULT_wxUSE_UNICODE=no
1647 DEFAULT_wxUSE_WCSRTOMBS=no
1648
0046ff7c 1649 DEFAULT_wxUSE_IMAGE=yes
10f2d63a
VZ
1650 DEFAULT_wxUSE_GIF=yes
1651 DEFAULT_wxUSE_PCX=yes
1652 DEFAULT_wxUSE_PNM=yes
0046ff7c 1653 DEFAULT_wxUSE_XPM=yes
10f2d63a
VZ
1654fi
1655
698dcdb6
VZ
1656
1657
10f2d63a
VZ
1658for toolkit in `echo $ALL_TOOLKITS`; do
1659 LINE=`grep "wxUSE_$toolkit" ${wx_arg_cache_file}`
1660 if test "x$LINE" != x ; then
1661 has_toolkit_in_cache=1
1662 eval "DEFAULT_$LINE"
1663 eval "CACHE_$toolkit=1"
1664 fi
1665done
1666
698dcdb6
VZ
1667
1668
1669 echo $ac_n "checking for --enable-gui""... $ac_c" 1>&6
54276ccf 1670echo "configure:1671: checking for --enable-gui" >&5
10f2d63a
VZ
1671 no_cache=0
1672 # Check whether --enable-gui or --disable-gui was given.
1673if test "${enable_gui+set}" = set; then
1674 enableval="$enable_gui"
698dcdb6 1675
10f2d63a
VZ
1676 if test "$enableval" = yes; then
1677 ac_cv_use_gui='wxUSE_GUI=yes'
1678 else
1679 ac_cv_use_gui='wxUSE_GUI=no'
1680 fi
698dcdb6 1681
10f2d63a 1682else
698dcdb6 1683
10f2d63a
VZ
1684 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
1685 if test "x$LINE" != x ; then
1686 eval "DEFAULT_$LINE"
1687 else
1688 no_cache=1
1689 fi
1690
1691 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
698dcdb6
VZ
1692
1693fi
10f2d63a
VZ
1694
1695
1696 eval "$ac_cv_use_gui"
1697 if test "$no_cache" != 1; then
1698 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
1699 fi
1700
1701 if test "$wxUSE_GUI" = yes; then
698dcdb6 1702 echo "$ac_t""yes" 1>&6
10f2d63a 1703 else
698dcdb6 1704 echo "$ac_t""no" 1>&6
10f2d63a 1705 fi
698dcdb6 1706
10f2d63a 1707
b12915c1 1708if test "$wxUSE_GUI" = "yes"; then
10f2d63a 1709
1e6feb95
VZ
1710
1711 echo $ac_n "checking for --enable-universal""... $ac_c" 1>&6
54276ccf 1712echo "configure:1713: checking for --enable-universal" >&5
1e6feb95
VZ
1713 no_cache=0
1714 # Check whether --enable-universal or --disable-universal was given.
1715if test "${enable_universal+set}" = set; then
1716 enableval="$enable_universal"
1717
1718 if test "$enableval" = yes; then
1719 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
1720 else
1721 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
1722 fi
1723
1724else
1725
1726 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
1727 if test "x$LINE" != x ; then
1728 eval "DEFAULT_$LINE"
1729 else
1730 no_cache=1
1731 fi
1732
1733 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
1734
1735fi
1736
1737
1738 eval "$ac_cv_use_universal"
1739 if test "$no_cache" != 1; then
1740 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
1741 fi
1742
1743 if test "$wxUSE_UNIVERSAL" = yes; then
1744 echo "$ac_t""yes" 1>&6
1745 else
1746 echo "$ac_t""no" 1>&6
1747 fi
1748
10f2d63a
VZ
1749# Check whether --with-gtk or --without-gtk was given.
1750if test "${with_gtk+set}" = set; then
1751 withval="$with_gtk"
1752 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
698dcdb6 1753fi
10f2d63a
VZ
1754
1755# Check whether --with-motif or --without-motif was given.
1756if test "${with_motif+set}" = set; then
1757 withval="$with_motif"
1758 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
698dcdb6 1759fi
10f2d63a 1760
b4085ce6
GD
1761# Check whether --with-mac or --without-mac was given.
1762if test "${with_mac+set}" = set; then
1763 withval="$with_mac"
1764 wxUSE_MAC="$withval" TOOLKIT_GIVEN=1
698dcdb6 1765fi
b4085ce6 1766
10f2d63a
VZ
1767# Check whether --with-wine or --without-wine was given.
1768if test "${with_wine+set}" = set; then
1769 withval="$with_wine"
1770 wxUSE_WINE="$withval" CACHE_WINE=1 TOOLKIT_GIVEN=1
698dcdb6 1771fi
10f2d63a
VZ
1772
1773# Check whether --with-cygwin or --without-cygwin was given.
1774if test "${with_cygwin+set}" = set; then
1775 withval="$with_cygwin"
1776 wxUSE_CYGWIN="$withval" CACHE_CYGWIN=1 TOOLKIT_GIVEN=1
698dcdb6 1777fi
10f2d63a
VZ
1778
1779# Check whether --with-mingw or --without-mingw was given.
1780if test "${with_mingw+set}" = set; then
1781 withval="$with_mingw"
1782 wxUSE_MINGW="$withval" CACHE_MINGW=1 TOOLKIT_GIVEN=1
698dcdb6 1783fi
10f2d63a 1784
e07802fc
VZ
1785# Check whether --with-pm or --without-pm was given.
1786if test "${with_pm+set}" = set; then
1787 withval="$with_pm"
1788 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
698dcdb6
VZ
1789fi
1790
1e6feb95
VZ
1791# Check whether --with-mgl or --without-mgl was given.
1792if test "${with_mgl+set}" = set; then
1793 withval="$with_mgl"
1794 wxUSE_MGL="$withval" CACHE_MGL=1 TOOLKIT_GIVEN=1
1795fi
1796
10f2d63a 1797
8168de4c
VZ
1798# Check whether --enable-gtk2 or --disable-gtk2 was given.
1799if test "${enable_gtk2+set}" = set; then
1800 enableval="$enable_gtk2"
1801 wxUSE_GTK2=1
10f2d63a 1802else
8168de4c 1803 wxUSE_GTK2=0
698dcdb6
VZ
1804fi
1805
703e0a69 1806
1e487827 1807
698dcdb6 1808 echo $ac_n "checking for --with-libpng""... $ac_c" 1>&6
54276ccf 1809echo "configure:1810: checking for --with-libpng" >&5
698dcdb6
VZ
1810 no_cache=0
1811 # Check whether --with-libpng or --without-libpng was given.
b12915c1
VZ
1812if test "${with_libpng+set}" = set; then
1813 withval="$with_libpng"
698dcdb6 1814
10f2d63a 1815 if test "$withval" = yes; then
b12915c1 1816 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
422107f9 1817 elif test "$withval" = no; then
b12915c1 1818 ac_cv_use_libpng='wxUSE_LIBPNG=no'
422107f9
VZ
1819 elif test "$withval" = sys; then
1820 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
1821 else
698dcdb6 1822 { echo "configure: error: Invalid value for --with-libpng: should be yes, no or sys" 1>&2; exit 1; }
10f2d63a 1823 fi
698dcdb6 1824
10f2d63a 1825else
698dcdb6 1826
b12915c1 1827 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
10f2d63a
VZ
1828 if test "x$LINE" != x ; then
1829 eval "DEFAULT_$LINE"
1830 else
1831 no_cache=1
1832 fi
1833
b12915c1 1834 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
698dcdb6
VZ
1835
1836fi
10f2d63a
VZ
1837
1838
b12915c1 1839 eval "$ac_cv_use_libpng"
10f2d63a 1840 if test "$no_cache" != 1; then
b12915c1 1841 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
1842 fi
1843
b12915c1 1844 if test "$wxUSE_LIBPNG" = yes; then
698dcdb6 1845 echo "$ac_t""yes" 1>&6
422107f9 1846 elif test "$wxUSE_LIBPNG" = no; then
698dcdb6 1847 echo "$ac_t""no" 1>&6
422107f9 1848 elif test "$wxUSE_LIBPNG" = sys; then
698dcdb6 1849 echo "$ac_t""system version" 1>&6
422107f9 1850 else
698dcdb6 1851 { echo "configure: error: Invalid value for --with-libpng: should be yes, no or sys" 1>&2; exit 1; }
10f2d63a 1852 fi
698dcdb6 1853
10f2d63a 1854
698dcdb6 1855 echo $ac_n "checking for --with-libjpeg""... $ac_c" 1>&6
54276ccf 1856echo "configure:1857: checking for --with-libjpeg" >&5
10f2d63a 1857 no_cache=0
698dcdb6 1858 # Check whether --with-libjpeg or --without-libjpeg was given.
b12915c1
VZ
1859if test "${with_libjpeg+set}" = set; then
1860 withval="$with_libjpeg"
698dcdb6 1861
10f2d63a 1862 if test "$withval" = yes; then
b12915c1 1863 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
422107f9 1864 elif test "$withval" = no; then
b12915c1 1865 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
422107f9
VZ
1866 elif test "$withval" = sys; then
1867 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
1868 else
698dcdb6 1869 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no or sys" 1>&2; exit 1; }
10f2d63a 1870 fi
698dcdb6 1871
10f2d63a 1872else
698dcdb6 1873
b12915c1 1874 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
10f2d63a
VZ
1875 if test "x$LINE" != x ; then
1876 eval "DEFAULT_$LINE"
1877 else
1878 no_cache=1
1879 fi
1880
b12915c1 1881 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
698dcdb6
VZ
1882
1883fi
10f2d63a
VZ
1884
1885
b12915c1 1886 eval "$ac_cv_use_libjpeg"
10f2d63a 1887 if test "$no_cache" != 1; then
b12915c1 1888 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
1889 fi
1890
b12915c1 1891 if test "$wxUSE_LIBJPEG" = yes; then
698dcdb6 1892 echo "$ac_t""yes" 1>&6
422107f9 1893 elif test "$wxUSE_LIBJPEG" = no; then
698dcdb6 1894 echo "$ac_t""no" 1>&6
422107f9 1895 elif test "$wxUSE_LIBJPEG" = sys; then
698dcdb6 1896 echo "$ac_t""system version" 1>&6
422107f9 1897 else
698dcdb6 1898 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no or sys" 1>&2; exit 1; }
10f2d63a 1899 fi
698dcdb6 1900
10f2d63a 1901
698dcdb6 1902 echo $ac_n "checking for --with-libtiff""... $ac_c" 1>&6
54276ccf 1903echo "configure:1904: checking for --with-libtiff" >&5
10f2d63a 1904 no_cache=0
698dcdb6 1905 # Check whether --with-libtiff or --without-libtiff was given.
b12915c1
VZ
1906if test "${with_libtiff+set}" = set; then
1907 withval="$with_libtiff"
698dcdb6 1908
10f2d63a 1909 if test "$withval" = yes; then
b12915c1 1910 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
0dcf9893 1911 elif test "$withval" = no; then
b12915c1 1912 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
0dcf9893
VZ
1913 elif test "$withval" = sys; then
1914 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
1915 else
698dcdb6 1916 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no or sys" 1>&2; exit 1; }
10f2d63a 1917 fi
698dcdb6 1918
10f2d63a 1919else
698dcdb6 1920
b12915c1 1921 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
10f2d63a
VZ
1922 if test "x$LINE" != x ; then
1923 eval "DEFAULT_$LINE"
1924 else
1925 no_cache=1
1926 fi
1927
b12915c1 1928 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
698dcdb6
VZ
1929
1930fi
10f2d63a
VZ
1931
1932
b12915c1 1933 eval "$ac_cv_use_libtiff"
10f2d63a 1934 if test "$no_cache" != 1; then
b12915c1 1935 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
1936 fi
1937
b12915c1 1938 if test "$wxUSE_LIBTIFF" = yes; then
698dcdb6 1939 echo "$ac_t""yes" 1>&6
0dcf9893 1940 elif test "$wxUSE_LIBTIFF" = no; then
698dcdb6 1941 echo "$ac_t""no" 1>&6
0dcf9893 1942 elif test "$wxUSE_LIBTIFF" = sys; then
698dcdb6 1943 echo "$ac_t""system version" 1>&6
0dcf9893 1944 else
698dcdb6 1945 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no or sys" 1>&2; exit 1; }
10f2d63a 1946 fi
698dcdb6 1947
10f2d63a 1948
698dcdb6 1949 echo $ac_n "checking for --with-freetype""... $ac_c" 1>&6
54276ccf 1950echo "configure:1951: checking for --with-freetype" >&5
3fed1840 1951 no_cache=0
698dcdb6 1952 # Check whether --with-freetype or --without-freetype was given.
3fed1840
RR
1953if test "${with_freetype+set}" = set; then
1954 withval="$with_freetype"
698dcdb6 1955
3fed1840
RR
1956 if test "$withval" = yes; then
1957 ac_cv_use_freetype='wxUSE_FREETYPE=yes'
1958 elif test "$withval" = no; then
1959 ac_cv_use_freetype='wxUSE_FREETYPE=no'
1960 elif test "$withval" = sys; then
1961 ac_cv_use_freetype='wxUSE_FREETYPE=sys'
1962 else
698dcdb6 1963 { echo "configure: error: Invalid value for --with-freetype: should be yes, no or sys" 1>&2; exit 1; }
3fed1840 1964 fi
698dcdb6 1965
3fed1840 1966else
698dcdb6 1967
3fed1840
RR
1968 LINE=`grep "wxUSE_FREETYPE" ${wx_arg_cache_file}`
1969 if test "x$LINE" != x ; then
1970 eval "DEFAULT_$LINE"
1971 else
1972 no_cache=1
1973 fi
1974
1975 ac_cv_use_freetype='wxUSE_FREETYPE='$DEFAULT_wxUSE_FREETYPE
698dcdb6
VZ
1976
1977fi
3fed1840
RR
1978
1979
1980 eval "$ac_cv_use_freetype"
1981 if test "$no_cache" != 1; then
1982 echo $ac_cv_use_freetype >> ${wx_arg_cache_file}.tmp
1983 fi
1984
1985 if test "$wxUSE_FREETYPE" = yes; then
698dcdb6 1986 echo "$ac_t""yes" 1>&6
3fed1840 1987 elif test "$wxUSE_FREETYPE" = no; then
698dcdb6 1988 echo "$ac_t""no" 1>&6
3fed1840 1989 elif test "$wxUSE_FREETYPE" = sys; then
698dcdb6 1990 echo "$ac_t""system version" 1>&6
3fed1840 1991 else
698dcdb6 1992 { echo "configure: error: Invalid value for --with-freetype: should be yes, no or sys" 1>&2; exit 1; }
3fed1840 1993 fi
698dcdb6 1994
3fed1840 1995
698dcdb6 1996 echo $ac_n "checking for --with-opengl""... $ac_c" 1>&6
54276ccf 1997echo "configure:1998: checking for --with-opengl" >&5
10f2d63a 1998 no_cache=0
698dcdb6 1999 # Check whether --with-opengl or --without-opengl was given.
b12915c1
VZ
2000if test "${with_opengl+set}" = set; then
2001 withval="$with_opengl"
698dcdb6 2002
10f2d63a 2003 if test "$withval" = yes; then
b12915c1 2004 ac_cv_use_opengl='wxUSE_OPENGL=yes'
10f2d63a 2005 else
b12915c1 2006 ac_cv_use_opengl='wxUSE_OPENGL=no'
10f2d63a 2007 fi
698dcdb6 2008
10f2d63a 2009else
698dcdb6 2010
b12915c1 2011 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
10f2d63a
VZ
2012 if test "x$LINE" != x ; then
2013 eval "DEFAULT_$LINE"
2014 else
2015 no_cache=1
2016 fi
2017
b12915c1 2018 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
698dcdb6
VZ
2019
2020fi
10f2d63a
VZ
2021
2022
b12915c1 2023 eval "$ac_cv_use_opengl"
10f2d63a 2024 if test "$no_cache" != 1; then
b12915c1 2025 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2026 fi
2027
b12915c1 2028 if test "$wxUSE_OPENGL" = yes; then
698dcdb6 2029 echo "$ac_t""yes" 1>&6
10f2d63a 2030 else
698dcdb6 2031 echo "$ac_t""no" 1>&6
10f2d63a 2032 fi
698dcdb6 2033
10f2d63a 2034
b12915c1
VZ
2035fi
2036
1e487827 2037
698dcdb6 2038 echo $ac_n "checking for --with-dmalloc""... $ac_c" 1>&6
54276ccf 2039echo "configure:2040: checking for --with-dmalloc" >&5
698dcdb6
VZ
2040 no_cache=0
2041 # Check whether --with-dmalloc or --without-dmalloc was given.
b12915c1
VZ
2042if test "${with_dmalloc+set}" = set; then
2043 withval="$with_dmalloc"
698dcdb6 2044
c7a2bf27 2045 if test "$withval" = yes; then
b12915c1 2046 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
c7a2bf27 2047 else
b12915c1 2048 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
c7a2bf27 2049 fi
698dcdb6 2050
c7a2bf27 2051else
698dcdb6 2052
b12915c1 2053 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
c7a2bf27
RR
2054 if test "x$LINE" != x ; then
2055 eval "DEFAULT_$LINE"
2056 else
2057 no_cache=1
2058 fi
2059
b12915c1 2060 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
698dcdb6
VZ
2061
2062fi
c7a2bf27
RR
2063
2064
b12915c1 2065 eval "$ac_cv_use_dmalloc"
c7a2bf27 2066 if test "$no_cache" != 1; then
b12915c1 2067 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
c7a2bf27
RR
2068 fi
2069
b12915c1 2070 if test "$wxUSE_DMALLOC" = yes; then
698dcdb6 2071 echo "$ac_t""yes" 1>&6
c7a2bf27 2072 else
698dcdb6 2073 echo "$ac_t""no" 1>&6
c7a2bf27 2074 fi
698dcdb6 2075
c7a2bf27 2076
698dcdb6 2077 echo $ac_n "checking for --with-zlib""... $ac_c" 1>&6
54276ccf 2078echo "configure:2079: checking for --with-zlib" >&5
10f2d63a 2079 no_cache=0
698dcdb6 2080 # Check whether --with-zlib or --without-zlib was given.
b12915c1
VZ
2081if test "${with_zlib+set}" = set; then
2082 withval="$with_zlib"
698dcdb6 2083
10f2d63a 2084 if test "$withval" = yes; then
b12915c1 2085 ac_cv_use_zlib='wxUSE_ZLIB=yes'
422107f9 2086 elif test "$withval" = no; then
b12915c1 2087 ac_cv_use_zlib='wxUSE_ZLIB=no'
422107f9
VZ
2088 elif test "$withval" = sys; then
2089 ac_cv_use_zlib='wxUSE_ZLIB=sys'
2090 else
698dcdb6 2091 { echo "configure: error: Invalid value for --with-zlib: should be yes, no or sys" 1>&2; exit 1; }
10f2d63a 2092 fi
698dcdb6 2093
10f2d63a 2094else
698dcdb6 2095
b12915c1 2096 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
10f2d63a
VZ
2097 if test "x$LINE" != x ; then
2098 eval "DEFAULT_$LINE"
2099 else
2100 no_cache=1
2101 fi
2102
b12915c1 2103 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
698dcdb6
VZ
2104
2105fi
10f2d63a
VZ
2106
2107
b12915c1 2108 eval "$ac_cv_use_zlib"
10f2d63a 2109 if test "$no_cache" != 1; then
b12915c1 2110 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2111 fi
2112
b12915c1 2113 if test "$wxUSE_ZLIB" = yes; then
698dcdb6 2114 echo "$ac_t""yes" 1>&6
422107f9 2115 elif test "$wxUSE_ZLIB" = no; then
698dcdb6 2116 echo "$ac_t""no" 1>&6
422107f9 2117 elif test "$wxUSE_ZLIB" = sys; then
698dcdb6 2118 echo "$ac_t""system version" 1>&6
422107f9 2119 else
698dcdb6 2120 { echo "configure: error: Invalid value for --with-zlib: should be yes, no or sys" 1>&2; exit 1; }
10f2d63a 2121 fi
698dcdb6 2122
10f2d63a 2123
698dcdb6 2124 echo $ac_n "checking for --with-odbc""... $ac_c" 1>&6
54276ccf 2125echo "configure:2126: checking for --with-odbc" >&5
10f2d63a 2126 no_cache=0
698dcdb6 2127 # Check whether --with-odbc or --without-odbc was given.
10f2d63a
VZ
2128if test "${with_odbc+set}" = set; then
2129 withval="$with_odbc"
698dcdb6 2130
10f2d63a
VZ
2131 if test "$withval" = yes; then
2132 ac_cv_use_odbc='wxUSE_ODBC=yes'
2133 else
2134 ac_cv_use_odbc='wxUSE_ODBC=no'
2135 fi
698dcdb6 2136
10f2d63a 2137else
698dcdb6 2138
10f2d63a
VZ
2139 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
2140 if test "x$LINE" != x ; then
2141 eval "DEFAULT_$LINE"
2142 else
2143 no_cache=1
2144 fi
2145
2146 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
698dcdb6
VZ
2147
2148fi
10f2d63a
VZ
2149
2150
2151 eval "$ac_cv_use_odbc"
2152 if test "$no_cache" != 1; then
2153 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
2154 fi
2155
2156 if test "$wxUSE_ODBC" = yes; then
698dcdb6 2157 echo "$ac_t""yes" 1>&6
10f2d63a 2158 else
698dcdb6 2159 echo "$ac_t""no" 1>&6
10f2d63a 2160 fi
698dcdb6
VZ
2161
2162
10f2d63a 2163
698dcdb6
VZ
2164
2165
2166 echo $ac_n "checking for --enable-shared""... $ac_c" 1>&6
54276ccf 2167echo "configure:2168: checking for --enable-shared" >&5
10f2d63a
VZ
2168 no_cache=0
2169 # Check whether --enable-shared or --disable-shared was given.
2170if test "${enable_shared+set}" = set; then
2171 enableval="$enable_shared"
698dcdb6 2172
10f2d63a
VZ
2173 if test "$enableval" = yes; then
2174 ac_cv_use_shared='wxUSE_SHARED=yes'
2175 else
2176 ac_cv_use_shared='wxUSE_SHARED=no'
2177 fi
698dcdb6 2178
10f2d63a 2179else
698dcdb6 2180
10f2d63a
VZ
2181 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
2182 if test "x$LINE" != x ; then
2183 eval "DEFAULT_$LINE"
2184 else
2185 no_cache=1
2186 fi
2187
2188 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
698dcdb6
VZ
2189
2190fi
10f2d63a
VZ
2191
2192
2193 eval "$ac_cv_use_shared"
2194 if test "$no_cache" != 1; then
2195 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
2196 fi
2197
2198 if test "$wxUSE_SHARED" = yes; then
698dcdb6 2199 echo "$ac_t""yes" 1>&6
10f2d63a 2200 else
698dcdb6 2201 echo "$ac_t""no" 1>&6
10f2d63a 2202 fi
698dcdb6 2203
10f2d63a 2204
698dcdb6 2205 echo $ac_n "checking for --enable-burnt_name""... $ac_c" 1>&6
54276ccf 2206echo "configure:2207: checking for --enable-burnt_name" >&5
00cf1208
RR
2207 no_cache=0
2208 # Check whether --enable-burnt_name or --disable-burnt_name was given.
2209if test "${enable_burnt_name+set}" = set; then
2210 enableval="$enable_burnt_name"
698dcdb6 2211
00cf1208
RR
2212 if test "$enableval" = yes; then
2213 ac_cv_use_burnt_name='wxUSE_BURNT_NAME=yes'
2214 else
2215 ac_cv_use_burnt_name='wxUSE_BURNT_NAME=no'
2216 fi
698dcdb6 2217
00cf1208 2218else
698dcdb6 2219
00cf1208
RR
2220 LINE=`grep "wxUSE_BURNT_NAME" ${wx_arg_cache_file}`
2221 if test "x$LINE" != x ; then
2222 eval "DEFAULT_$LINE"
2223 else
2224 no_cache=1
2225 fi
2226
2227 ac_cv_use_burnt_name='wxUSE_BURNT_NAME='$DEFAULT_wxUSE_BURNT_NAME
698dcdb6
VZ
2228
2229fi
00cf1208
RR
2230
2231
2232 eval "$ac_cv_use_burnt_name"
2233 if test "$no_cache" != 1; then
2234 echo $ac_cv_use_burnt_name >> ${wx_arg_cache_file}.tmp
2235 fi
2236
2237 if test "$wxUSE_BURNT_NAME" = yes; then
698dcdb6 2238 echo "$ac_t""yes" 1>&6
00cf1208 2239 else
698dcdb6 2240 echo "$ac_t""no" 1>&6
00cf1208 2241 fi
698dcdb6 2242
00cf1208 2243
698dcdb6 2244 echo $ac_n "checking for --enable-optimise""... $ac_c" 1>&6
54276ccf 2245echo "configure:2246: checking for --enable-optimise" >&5
10f2d63a
VZ
2246 no_cache=0
2247 # Check whether --enable-optimise or --disable-optimise was given.
2248if test "${enable_optimise+set}" = set; then
2249 enableval="$enable_optimise"
698dcdb6 2250
10f2d63a
VZ
2251 if test "$enableval" = yes; then
2252 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
2253 else
2254 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
2255 fi
698dcdb6 2256
10f2d63a 2257else
698dcdb6 2258
10f2d63a
VZ
2259 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
2260 if test "x$LINE" != x ; then
2261 eval "DEFAULT_$LINE"
2262 else
2263 no_cache=1
2264 fi
2265
2266 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
698dcdb6
VZ
2267
2268fi
10f2d63a
VZ
2269
2270
2271 eval "$ac_cv_use_optimise"
2272 if test "$no_cache" != 1; then
2273 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
2274 fi
2275
2276 if test "$wxUSE_OPTIMISE" = yes; then
698dcdb6 2277 echo "$ac_t""yes" 1>&6
10f2d63a 2278 else
698dcdb6 2279 echo "$ac_t""no" 1>&6
10f2d63a 2280 fi
698dcdb6 2281
10f2d63a 2282
698dcdb6 2283 echo $ac_n "checking for --enable-debug""... $ac_c" 1>&6
54276ccf 2284echo "configure:2285: checking for --enable-debug" >&5
10f2d63a
VZ
2285 no_cache=0
2286 # Check whether --enable-debug or --disable-debug was given.
2287if test "${enable_debug+set}" = set; then
2288 enableval="$enable_debug"
698dcdb6 2289
10f2d63a
VZ
2290 if test "$enableval" = yes; then
2291 ac_cv_use_debug='wxUSE_DEBUG=yes'
2292 else
2293 ac_cv_use_debug='wxUSE_DEBUG=no'
2294 fi
698dcdb6 2295
10f2d63a 2296else
698dcdb6 2297
10f2d63a
VZ
2298 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
2299 if test "x$LINE" != x ; then
2300 eval "DEFAULT_$LINE"
2301 else
2302 no_cache=1
2303 fi
2304
2305 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
698dcdb6
VZ
2306
2307fi
10f2d63a
VZ
2308
2309
2310 eval "$ac_cv_use_debug"
2311 if test "$no_cache" != 1; then
2312 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
2313 fi
2314
2315 if test "$wxUSE_DEBUG" = yes; then
698dcdb6 2316 echo "$ac_t""yes" 1>&6
10f2d63a 2317 else
698dcdb6 2318 echo "$ac_t""no" 1>&6
10f2d63a 2319 fi
698dcdb6 2320
10f2d63a
VZ
2321
2322if test "$wxUSE_DEBUG" = "yes"; then
2323 DEFAULT_wxUSE_DEBUG_FLAG=yes
2324 DEFAULT_wxUSE_DEBUG_INFO=yes
2325elif test "$wxUSE_DEBUG" = "no"; then
2326 DEFAULT_wxUSE_DEBUG_FLAG=no
2327 DEFAULT_wxUSE_DEBUG_INFO=no
2328fi
2329
698dcdb6
VZ
2330
2331 echo $ac_n "checking for --enable-debug_flag""... $ac_c" 1>&6
54276ccf 2332echo "configure:2333: checking for --enable-debug_flag" >&5
10f2d63a
VZ
2333 no_cache=0
2334 # Check whether --enable-debug_flag or --disable-debug_flag was given.
2335if test "${enable_debug_flag+set}" = set; then
2336 enableval="$enable_debug_flag"
698dcdb6 2337
10f2d63a
VZ
2338 if test "$enableval" = yes; then
2339 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
2340 else
2341 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
2342 fi
698dcdb6 2343
10f2d63a 2344else
698dcdb6 2345
10f2d63a
VZ
2346 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
2347 if test "x$LINE" != x ; then
2348 eval "DEFAULT_$LINE"
2349 else
2350 no_cache=1
2351 fi
2352
2353 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
698dcdb6
VZ
2354
2355fi
10f2d63a
VZ
2356
2357
2358 eval "$ac_cv_use_debug_flag"
2359 if test "$no_cache" != 1; then
2360 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
2361 fi
2362
2363 if test "$wxUSE_DEBUG_FLAG" = yes; then
698dcdb6 2364 echo "$ac_t""yes" 1>&6
10f2d63a 2365 else
698dcdb6 2366 echo "$ac_t""no" 1>&6
10f2d63a 2367 fi
698dcdb6 2368
10f2d63a 2369
698dcdb6 2370 echo $ac_n "checking for --enable-debug_info""... $ac_c" 1>&6
54276ccf 2371echo "configure:2372: checking for --enable-debug_info" >&5
10f2d63a
VZ
2372 no_cache=0
2373 # Check whether --enable-debug_info or --disable-debug_info was given.
2374if test "${enable_debug_info+set}" = set; then
2375 enableval="$enable_debug_info"
698dcdb6 2376
10f2d63a
VZ
2377 if test "$enableval" = yes; then
2378 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
2379 else
2380 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
2381 fi
698dcdb6 2382
10f2d63a 2383else
698dcdb6 2384
10f2d63a
VZ
2385 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
2386 if test "x$LINE" != x ; then
2387 eval "DEFAULT_$LINE"
2388 else
2389 no_cache=1
2390 fi
2391
2392 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
698dcdb6
VZ
2393
2394fi
10f2d63a
VZ
2395
2396
2397 eval "$ac_cv_use_debug_info"
2398 if test "$no_cache" != 1; then
2399 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
2400 fi
2401
2402 if test "$wxUSE_DEBUG_INFO" = yes; then
698dcdb6 2403 echo "$ac_t""yes" 1>&6
10f2d63a 2404 else
698dcdb6 2405 echo "$ac_t""no" 1>&6
10f2d63a 2406 fi
698dcdb6 2407
10f2d63a 2408
698dcdb6 2409 echo $ac_n "checking for --enable-debug_gdb""... $ac_c" 1>&6
54276ccf 2410echo "configure:2411: checking for --enable-debug_gdb" >&5
10f2d63a
VZ
2411 no_cache=0
2412 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
2413if test "${enable_debug_gdb+set}" = set; then
2414 enableval="$enable_debug_gdb"
698dcdb6 2415
10f2d63a
VZ
2416 if test "$enableval" = yes; then
2417 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
2418 else
2419 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
2420 fi
698dcdb6 2421
10f2d63a 2422else
698dcdb6 2423
10f2d63a
VZ
2424 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
2425 if test "x$LINE" != x ; then
2426 eval "DEFAULT_$LINE"
2427 else
2428 no_cache=1
2429 fi
2430
2431 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
698dcdb6
VZ
2432
2433fi
10f2d63a
VZ
2434
2435
2436 eval "$ac_cv_use_debug_gdb"
2437 if test "$no_cache" != 1; then
2438 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
2439 fi
2440
2441 if test "$wxUSE_DEBUG_GDB" = yes; then
698dcdb6 2442 echo "$ac_t""yes" 1>&6
10f2d63a 2443 else
698dcdb6 2444 echo "$ac_t""no" 1>&6
10f2d63a 2445 fi
698dcdb6 2446
10f2d63a 2447
698dcdb6 2448 echo $ac_n "checking for --enable-debug_cntxt""... $ac_c" 1>&6
54276ccf 2449echo "configure:2450: checking for --enable-debug_cntxt" >&5
10f2d63a
VZ
2450 no_cache=0
2451 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
2452if test "${enable_debug_cntxt+set}" = set; then
2453 enableval="$enable_debug_cntxt"
698dcdb6 2454
10f2d63a
VZ
2455 if test "$enableval" = yes; then
2456 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
2457 else
2458 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
2459 fi
698dcdb6 2460
10f2d63a 2461else
698dcdb6 2462
10f2d63a
VZ
2463 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
2464 if test "x$LINE" != x ; then
2465 eval "DEFAULT_$LINE"
2466 else
2467 no_cache=1
2468 fi
2469
2470 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
698dcdb6
VZ
2471
2472fi
10f2d63a
VZ
2473
2474
2475 eval "$ac_cv_use_debug_cntxt"
2476 if test "$no_cache" != 1; then
2477 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
2478 fi
2479
2480 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
698dcdb6 2481 echo "$ac_t""yes" 1>&6
10f2d63a 2482 else
698dcdb6 2483 echo "$ac_t""no" 1>&6
10f2d63a 2484 fi
698dcdb6 2485
10f2d63a 2486
698dcdb6 2487 echo $ac_n "checking for --enable-mem_tracing""... $ac_c" 1>&6
54276ccf 2488echo "configure:2489: checking for --enable-mem_tracing" >&5
10f2d63a
VZ
2489 no_cache=0
2490 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
2491if test "${enable_mem_tracing+set}" = set; then
2492 enableval="$enable_mem_tracing"
698dcdb6 2493
10f2d63a
VZ
2494 if test "$enableval" = yes; then
2495 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
2496 else
2497 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
2498 fi
698dcdb6 2499
10f2d63a 2500else
698dcdb6 2501
10f2d63a
VZ
2502 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
2503 if test "x$LINE" != x ; then
2504 eval "DEFAULT_$LINE"
2505 else
2506 no_cache=1
2507 fi
2508
2509 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
698dcdb6
VZ
2510
2511fi
10f2d63a
VZ
2512
2513
2514 eval "$ac_cv_use_mem_tracing"
2515 if test "$no_cache" != 1; then
2516 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
2517 fi
2518
2519 if test "$wxUSE_MEM_TRACING" = yes; then
698dcdb6 2520 echo "$ac_t""yes" 1>&6
10f2d63a 2521 else
698dcdb6 2522 echo "$ac_t""no" 1>&6
10f2d63a 2523 fi
698dcdb6 2524
10f2d63a 2525
698dcdb6 2526 echo $ac_n "checking for --enable-profile""... $ac_c" 1>&6
54276ccf 2527echo "configure:2528: checking for --enable-profile" >&5
10f2d63a
VZ
2528 no_cache=0
2529 # Check whether --enable-profile or --disable-profile was given.
2530if test "${enable_profile+set}" = set; then
2531 enableval="$enable_profile"
698dcdb6 2532
10f2d63a
VZ
2533 if test "$enableval" = yes; then
2534 ac_cv_use_profile='wxUSE_PROFILE=yes'
2535 else
2536 ac_cv_use_profile='wxUSE_PROFILE=no'
2537 fi
698dcdb6 2538
10f2d63a 2539else
698dcdb6 2540
10f2d63a
VZ
2541 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
2542 if test "x$LINE" != x ; then
2543 eval "DEFAULT_$LINE"
2544 else
2545 no_cache=1
2546 fi
2547
2548 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
698dcdb6
VZ
2549
2550fi
10f2d63a
VZ
2551
2552
2553 eval "$ac_cv_use_profile"
2554 if test "$no_cache" != 1; then
2555 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
2556 fi
2557
2558 if test "$wxUSE_PROFILE" = yes; then
698dcdb6 2559 echo "$ac_t""yes" 1>&6
10f2d63a 2560 else
698dcdb6 2561 echo "$ac_t""no" 1>&6
10f2d63a 2562 fi
698dcdb6 2563
10f2d63a 2564
698dcdb6 2565 echo $ac_n "checking for --enable-no_rtti""... $ac_c" 1>&6
54276ccf 2566echo "configure:2567: checking for --enable-no_rtti" >&5
10f2d63a
VZ
2567 no_cache=0
2568 # Check whether --enable-no_rtti or --disable-no_rtti was given.
2569if test "${enable_no_rtti+set}" = set; then
2570 enableval="$enable_no_rtti"
698dcdb6 2571
10f2d63a
VZ
2572 if test "$enableval" = yes; then
2573 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
2574 else
2575 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
2576 fi
698dcdb6 2577
10f2d63a 2578else
698dcdb6 2579
10f2d63a
VZ
2580 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
2581 if test "x$LINE" != x ; then
2582 eval "DEFAULT_$LINE"
2583 else
2584 no_cache=1
2585 fi
2586
2587 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
698dcdb6
VZ
2588
2589fi
10f2d63a
VZ
2590
2591
2592 eval "$ac_cv_use_no_rtti"
2593 if test "$no_cache" != 1; then
2594 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
2595 fi
2596
2597 if test "$wxUSE_NO_RTTI" = yes; then
698dcdb6 2598 echo "$ac_t""yes" 1>&6
10f2d63a 2599 else
698dcdb6 2600 echo "$ac_t""no" 1>&6
10f2d63a 2601 fi
698dcdb6 2602
10f2d63a 2603
698dcdb6 2604 echo $ac_n "checking for --enable-no_exceptions""... $ac_c" 1>&6
54276ccf 2605echo "configure:2606: checking for --enable-no_exceptions" >&5
10f2d63a
VZ
2606 no_cache=0
2607 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
2608if test "${enable_no_exceptions+set}" = set; then
2609 enableval="$enable_no_exceptions"
698dcdb6 2610
10f2d63a
VZ
2611 if test "$enableval" = yes; then
2612 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
2613 else
2614 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
2615 fi
698dcdb6 2616
10f2d63a 2617else
698dcdb6 2618
10f2d63a
VZ
2619 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
2620 if test "x$LINE" != x ; then
2621 eval "DEFAULT_$LINE"
2622 else
2623 no_cache=1
2624 fi
2625
2626 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
698dcdb6
VZ
2627
2628fi
10f2d63a
VZ
2629
2630
2631 eval "$ac_cv_use_no_exceptions"
2632 if test "$no_cache" != 1; then
2633 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
2634 fi
2635
2636 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
698dcdb6 2637 echo "$ac_t""yes" 1>&6
10f2d63a 2638 else
698dcdb6 2639 echo "$ac_t""no" 1>&6
10f2d63a 2640 fi
698dcdb6 2641
10f2d63a 2642
698dcdb6 2643 echo $ac_n "checking for --enable-permissive""... $ac_c" 1>&6
54276ccf 2644echo "configure:2645: checking for --enable-permissive" >&5
10f2d63a
VZ
2645 no_cache=0
2646 # Check whether --enable-permissive or --disable-permissive was given.
2647if test "${enable_permissive+set}" = set; then
2648 enableval="$enable_permissive"
698dcdb6 2649
10f2d63a
VZ
2650 if test "$enableval" = yes; then
2651 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
2652 else
2653 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
2654 fi
698dcdb6 2655
10f2d63a 2656else
698dcdb6 2657
10f2d63a
VZ
2658 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
2659 if test "x$LINE" != x ; then
2660 eval "DEFAULT_$LINE"
2661 else
2662 no_cache=1
2663 fi
2664
2665 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
698dcdb6
VZ
2666
2667fi
10f2d63a
VZ
2668
2669
2670 eval "$ac_cv_use_permissive"
2671 if test "$no_cache" != 1; then
2672 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
2673 fi
2674
2675 if test "$wxUSE_PERMISSIVE" = yes; then
698dcdb6 2676 echo "$ac_t""yes" 1>&6
10f2d63a 2677 else
698dcdb6 2678 echo "$ac_t""no" 1>&6
10f2d63a 2679 fi
698dcdb6 2680
10f2d63a 2681
698dcdb6 2682 echo $ac_n "checking for --enable-no_deps""... $ac_c" 1>&6
54276ccf 2683echo "configure:2684: checking for --enable-no_deps" >&5
10f2d63a
VZ
2684 no_cache=0
2685 # Check whether --enable-no_deps or --disable-no_deps was given.
2686if test "${enable_no_deps+set}" = set; then
2687 enableval="$enable_no_deps"
698dcdb6 2688
10f2d63a
VZ
2689 if test "$enableval" = yes; then
2690 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
2691 else
2692 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
2693 fi
698dcdb6 2694
10f2d63a 2695else
698dcdb6 2696
10f2d63a
VZ
2697 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
2698 if test "x$LINE" != x ; then
2699 eval "DEFAULT_$LINE"
2700 else
2701 no_cache=1
2702 fi
2703
2704 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
698dcdb6
VZ
2705
2706fi
10f2d63a
VZ
2707
2708
2709 eval "$ac_cv_use_no_deps"
2710 if test "$no_cache" != 1; then
2711 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
2712 fi
2713
2714 if test "$wxUSE_NO_DEPS" = yes; then
698dcdb6 2715 echo "$ac_t""yes" 1>&6
10f2d63a 2716 else
698dcdb6 2717 echo "$ac_t""no" 1>&6
10f2d63a 2718 fi
698dcdb6
VZ
2719
2720
10f2d63a 2721
54276ccf
VZ
2722 echo $ac_n "checking for --enable-compat20""... $ac_c" 1>&6
2723echo "configure:2724: checking for --enable-compat20" >&5
2724 no_cache=0
2725 # Check whether --enable-compat20 or --disable-compat20 was given.
2726if test "${enable_compat20+set}" = set; then
2727 enableval="$enable_compat20"
2728
2729 if test "$enableval" = yes; then
2730 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=yes'
2731 else
2732 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=no'
2733 fi
2734
2735else
2736
2737 LINE=`grep "WXWIN_COMPATIBILITY_2" ${wx_arg_cache_file}`
2738 if test "x$LINE" != x ; then
2739 eval "DEFAULT_$LINE"
2740 else
2741 no_cache=1
2742 fi
2743
2744 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2='$DEFAULT_WXWIN_COMPATIBILITY_2
2745
2746fi
2747
2748
2749 eval "$ac_cv_use_compat20"
2750 if test "$no_cache" != 1; then
2751 echo $ac_cv_use_compat20 >> ${wx_arg_cache_file}.tmp
2752 fi
2753
2754 if test "$WXWIN_COMPATIBILITY_2" = yes; then
2755 echo "$ac_t""yes" 1>&6
2756 else
2757 echo "$ac_t""no" 1>&6
2758 fi
2759
2760
2761 echo $ac_n "checking for --enable-compat22""... $ac_c" 1>&6
2762echo "configure:2763: checking for --enable-compat22" >&5
2763 no_cache=0
2764 # Check whether --enable-compat22 or --disable-compat22 was given.
2765if test "${enable_compat22+set}" = set; then
2766 enableval="$enable_compat22"
2767
2768 if test "$enableval" = yes; then
2769 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes'
2770 else
2771 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no'
2772 fi
2773
2774else
2775
2776 LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}`
2777 if test "x$LINE" != x ; then
2778 eval "DEFAULT_$LINE"
2779 else
2780 no_cache=1
2781 fi
2782
2783 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2
2784
2785fi
2786
2787
2788 eval "$ac_cv_use_compat22"
2789 if test "$no_cache" != 1; then
2790 echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp
2791 fi
2792
2793 if test "$WXWIN_COMPATIBILITY_2_2" = yes; then
2794 echo "$ac_t""yes" 1>&6
2795 else
2796 echo "$ac_t""no" 1>&6
2797 fi
2798
2799
2800
698dcdb6
VZ
2801
2802 echo $ac_n "checking for --enable-intl""... $ac_c" 1>&6
54276ccf 2803echo "configure:2804: checking for --enable-intl" >&5
10f2d63a
VZ
2804 no_cache=0
2805 # Check whether --enable-intl or --disable-intl was given.
2806if test "${enable_intl+set}" = set; then
2807 enableval="$enable_intl"
698dcdb6 2808
10f2d63a
VZ
2809 if test "$enableval" = yes; then
2810 ac_cv_use_intl='wxUSE_INTL=yes'
2811 else
2812 ac_cv_use_intl='wxUSE_INTL=no'
2813 fi
698dcdb6 2814
10f2d63a 2815else
698dcdb6 2816
10f2d63a
VZ
2817 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
2818 if test "x$LINE" != x ; then
2819 eval "DEFAULT_$LINE"
2820 else
2821 no_cache=1
2822 fi
2823
2824 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
698dcdb6
VZ
2825
2826fi
10f2d63a
VZ
2827
2828
2829 eval "$ac_cv_use_intl"
2830 if test "$no_cache" != 1; then
2831 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
2832 fi
2833
2834 if test "$wxUSE_INTL" = yes; then
698dcdb6 2835 echo "$ac_t""yes" 1>&6
10f2d63a 2836 else
698dcdb6 2837 echo "$ac_t""no" 1>&6
10f2d63a 2838 fi
698dcdb6 2839
10f2d63a 2840
698dcdb6 2841 echo $ac_n "checking for --enable-config""... $ac_c" 1>&6
54276ccf 2842echo "configure:2843: checking for --enable-config" >&5
10f2d63a
VZ
2843 no_cache=0
2844 # Check whether --enable-config or --disable-config was given.
2845if test "${enable_config+set}" = set; then
2846 enableval="$enable_config"
698dcdb6 2847
10f2d63a
VZ
2848 if test "$enableval" = yes; then
2849 ac_cv_use_config='wxUSE_CONFIG=yes'
2850 else
2851 ac_cv_use_config='wxUSE_CONFIG=no'
2852 fi
698dcdb6 2853
10f2d63a 2854else
698dcdb6 2855
10f2d63a
VZ
2856 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
2857 if test "x$LINE" != x ; then
2858 eval "DEFAULT_$LINE"
2859 else
2860 no_cache=1
2861 fi
2862
2863 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
698dcdb6
VZ
2864
2865fi
10f2d63a
VZ
2866
2867
2868 eval "$ac_cv_use_config"
2869 if test "$no_cache" != 1; then
2870 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
2871 fi
2872
2873 if test "$wxUSE_CONFIG" = yes; then
698dcdb6 2874 echo "$ac_t""yes" 1>&6
10f2d63a 2875 else
698dcdb6 2876 echo "$ac_t""no" 1>&6
10f2d63a 2877 fi
698dcdb6
VZ
2878
2879
b12915c1 2880
698dcdb6 2881 echo $ac_n "checking for --enable-sockets""... $ac_c" 1>&6
54276ccf 2882echo "configure:2883: checking for --enable-sockets" >&5
10f2d63a
VZ
2883 no_cache=0
2884 # Check whether --enable-sockets or --disable-sockets was given.
2885if test "${enable_sockets+set}" = set; then
2886 enableval="$enable_sockets"
698dcdb6 2887
10f2d63a
VZ
2888 if test "$enableval" = yes; then
2889 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
2890 else
2891 ac_cv_use_sockets='wxUSE_SOCKETS=no'
2892 fi
698dcdb6 2893
10f2d63a 2894else
698dcdb6 2895
10f2d63a
VZ
2896 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
2897 if test "x$LINE" != x ; then
2898 eval "DEFAULT_$LINE"
2899 else
2900 no_cache=1
2901 fi
2902
2903 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
698dcdb6
VZ
2904
2905fi
10f2d63a
VZ
2906
2907
2908 eval "$ac_cv_use_sockets"
2909 if test "$no_cache" != 1; then
2910 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
2911 fi
2912
2913 if test "$wxUSE_SOCKETS" = yes; then
698dcdb6 2914 echo "$ac_t""yes" 1>&6
10f2d63a 2915 else
698dcdb6 2916 echo "$ac_t""no" 1>&6
10f2d63a 2917 fi
698dcdb6 2918
b12915c1 2919
698dcdb6
VZ
2920
2921 echo $ac_n "checking for --enable-ipc""... $ac_c" 1>&6
54276ccf 2922echo "configure:2923: checking for --enable-ipc" >&5
10f2d63a 2923 no_cache=0
eb4efbdc
VZ
2924 # Check whether --enable-ipc or --disable-ipc was given.
2925if test "${enable_ipc+set}" = set; then
2926 enableval="$enable_ipc"
698dcdb6 2927
10f2d63a 2928 if test "$enableval" = yes; then
eb4efbdc 2929 ac_cv_use_ipc='wxUSE_IPC=yes'
10f2d63a 2930 else
eb4efbdc 2931 ac_cv_use_ipc='wxUSE_IPC=no'
10f2d63a 2932 fi
698dcdb6 2933
10f2d63a 2934else
698dcdb6 2935
eb4efbdc 2936 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
10f2d63a
VZ
2937 if test "x$LINE" != x ; then
2938 eval "DEFAULT_$LINE"
2939 else
2940 no_cache=1
2941 fi
2942
eb4efbdc 2943 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
698dcdb6
VZ
2944
2945fi
10f2d63a
VZ
2946
2947
eb4efbdc 2948 eval "$ac_cv_use_ipc"
10f2d63a 2949 if test "$no_cache" != 1; then
eb4efbdc 2950 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2951 fi
2952
eb4efbdc 2953 if test "$wxUSE_IPC" = yes; then
698dcdb6 2954 echo "$ac_t""yes" 1>&6
10f2d63a 2955 else
698dcdb6 2956 echo "$ac_t""no" 1>&6
10f2d63a 2957 fi
698dcdb6
VZ
2958
2959
eb4efbdc 2960
1e6feb95 2961 echo $ac_n "checking for --enable-cmdline""... $ac_c" 1>&6
54276ccf 2962echo "configure:2963: checking for --enable-cmdline" >&5
1e6feb95
VZ
2963 no_cache=0
2964 # Check whether --enable-cmdline or --disable-cmdline was given.
2965if test "${enable_cmdline+set}" = set; then
2966 enableval="$enable_cmdline"
2967
2968 if test "$enableval" = yes; then
2969 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
2970 else
2971 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
2972 fi
2973
2974else
2975
2976 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
2977 if test "x$LINE" != x ; then
2978 eval "DEFAULT_$LINE"
2979 else
2980 no_cache=1
2981 fi
2982
2983 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
2984
2985fi
2986
2987
2988 eval "$ac_cv_use_cmdline"
2989 if test "$no_cache" != 1; then
2990 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
2991 fi
2992
2993 if test "$wxUSE_CMDLINE_PARSER" = yes; then
2994 echo "$ac_t""yes" 1>&6
2995 else
2996 echo "$ac_t""no" 1>&6
2997 fi
2998
2999
3000 echo $ac_n "checking for --enable-datetime""... $ac_c" 1>&6
54276ccf 3001echo "configure:3002: checking for --enable-datetime" >&5
1e6feb95
VZ
3002 no_cache=0
3003 # Check whether --enable-datetime or --disable-datetime was given.
3004if test "${enable_datetime+set}" = set; then
3005 enableval="$enable_datetime"
3006
3007 if test "$enableval" = yes; then
3008 ac_cv_use_datetime='wxUSE_DATETIME=yes'
3009 else
3010 ac_cv_use_datetime='wxUSE_DATETIME=no'
3011 fi
3012
3013else
3014
3015 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
3016 if test "x$LINE" != x ; then
3017 eval "DEFAULT_$LINE"
3018 else
3019 no_cache=1
3020 fi
3021
3022 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
3023
3024fi
3025
3026
3027 eval "$ac_cv_use_datetime"
3028 if test "$no_cache" != 1; then
3029 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
3030 fi
3031
3032 if test "$wxUSE_DATETIME" = yes; then
3033 echo "$ac_t""yes" 1>&6
3034 else
3035 echo "$ac_t""no" 1>&6
3036 fi
3037
3038
3039 echo $ac_n "checking for --enable-timedate""... $ac_c" 1>&6
54276ccf 3040echo "configure:3041: checking for --enable-timedate" >&5
1e6feb95
VZ
3041 no_cache=0
3042 # Check whether --enable-timedate or --disable-timedate was given.
3043if test "${enable_timedate+set}" = set; then
3044 enableval="$enable_timedate"
3045
3046 if test "$enableval" = yes; then
3047 ac_cv_use_timedate='wxUSE_TIMEDATE=yes'
3048 else
3049 ac_cv_use_timedate='wxUSE_TIMEDATE=no'
3050 fi
3051
3052else
3053
3054 LINE=`grep "wxUSE_TIMEDATE" ${wx_arg_cache_file}`
3055 if test "x$LINE" != x ; then
3056 eval "DEFAULT_$LINE"
3057 else
3058 no_cache=1
3059 fi
3060
3061 ac_cv_use_timedate='wxUSE_TIMEDATE='$DEFAULT_wxUSE_TIMEDATE
3062
3063fi
3064
3065
3066 eval "$ac_cv_use_timedate"
3067 if test "$no_cache" != 1; then
3068 echo $ac_cv_use_timedate >> ${wx_arg_cache_file}.tmp
3069 fi
3070
3071 if test "$wxUSE_TIMEDATE" = yes; then
3072 echo "$ac_t""yes" 1>&6
3073 else
3074 echo "$ac_t""no" 1>&6
3075 fi
3076
3077
3078 echo $ac_n "checking for --enable-stopwatch""... $ac_c" 1>&6
54276ccf 3079echo "configure:3080: checking for --enable-stopwatch" >&5
1e6feb95
VZ
3080 no_cache=0
3081 # Check whether --enable-stopwatch or --disable-stopwatch was given.
3082if test "${enable_stopwatch+set}" = set; then
3083 enableval="$enable_stopwatch"
3084
3085 if test "$enableval" = yes; then
3086 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
3087 else
3088 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
3089 fi
3090
3091else
3092
3093 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
3094 if test "x$LINE" != x ; then
3095 eval "DEFAULT_$LINE"
3096 else
3097 no_cache=1
3098 fi
3099
3100 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
3101
3102fi
3103
3104
3105 eval "$ac_cv_use_stopwatch"
3106 if test "$no_cache" != 1; then
3107 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
3108 fi
3109
3110 if test "$wxUSE_STOPWATCH" = yes; then
3111 echo "$ac_t""yes" 1>&6
3112 else
3113 echo "$ac_t""no" 1>&6
3114 fi
3115
3116
698dcdb6 3117 echo $ac_n "checking for --enable-dialupman""... $ac_c" 1>&6
54276ccf 3118echo "configure:3119: checking for --enable-dialupman" >&5
10f2d63a 3119 no_cache=0
eb4efbdc
VZ
3120 # Check whether --enable-dialupman or --disable-dialupman was given.
3121if test "${enable_dialupman+set}" = set; then
3122 enableval="$enable_dialupman"
698dcdb6 3123
10f2d63a 3124 if test "$enableval" = yes; then
eb4efbdc 3125 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
10f2d63a 3126 else
eb4efbdc 3127 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
10f2d63a 3128 fi
698dcdb6 3129
10f2d63a 3130else
698dcdb6 3131
eb4efbdc 3132 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
10f2d63a
VZ
3133 if test "x$LINE" != x ; then
3134 eval "DEFAULT_$LINE"
3135 else
3136 no_cache=1
3137 fi
3138
eb4efbdc 3139 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
698dcdb6
VZ
3140
3141fi
10f2d63a
VZ
3142
3143
eb4efbdc 3144 eval "$ac_cv_use_dialupman"
10f2d63a 3145 if test "$no_cache" != 1; then
eb4efbdc 3146 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
3147 fi
3148
eb4efbdc 3149 if test "$wxUSE_DIALUP_MANAGER" = yes; then
698dcdb6 3150 echo "$ac_t""yes" 1>&6
10f2d63a 3151 else
698dcdb6 3152 echo "$ac_t""no" 1>&6
10f2d63a 3153 fi
698dcdb6 3154
10f2d63a 3155
698dcdb6 3156 echo $ac_n "checking for --enable-apple_ieee""... $ac_c" 1>&6
54276ccf 3157echo "configure:3158: checking for --enable-apple_ieee" >&5
10f2d63a
VZ
3158 no_cache=0
3159 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
3160if test "${enable_apple_ieee+set}" = set; then
3161 enableval="$enable_apple_ieee"
698dcdb6 3162
10f2d63a
VZ
3163 if test "$enableval" = yes; then
3164 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
3165 else
3166 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
3167 fi
698dcdb6 3168
10f2d63a 3169else
698dcdb6 3170
10f2d63a
VZ
3171 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
3172 if test "x$LINE" != x ; then
3173 eval "DEFAULT_$LINE"
3174 else
3175 no_cache=1
3176 fi
3177
3178 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
698dcdb6
VZ
3179
3180fi
10f2d63a
VZ
3181
3182
3183 eval "$ac_cv_use_apple_ieee"
3184 if test "$no_cache" != 1; then
3185 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
3186 fi
3187
3188 if test "$wxUSE_APPLE_IEEE" = yes; then
698dcdb6 3189 echo "$ac_t""yes" 1>&6
10f2d63a 3190 else
698dcdb6 3191 echo "$ac_t""no" 1>&6
10f2d63a 3192 fi
698dcdb6 3193
10f2d63a 3194
1e6feb95 3195 echo $ac_n "checking for --enable-timer""... $ac_c" 1>&6
54276ccf 3196echo "configure:3197: checking for --enable-timer" >&5
10f2d63a 3197 no_cache=0
1e6feb95
VZ
3198 # Check whether --enable-timer or --disable-timer was given.
3199if test "${enable_timer+set}" = set; then
3200 enableval="$enable_timer"
698dcdb6 3201
10f2d63a 3202 if test "$enableval" = yes; then
1e6feb95 3203 ac_cv_use_timer='wxUSE_TIMER=yes'
10f2d63a 3204 else
1e6feb95 3205 ac_cv_use_timer='wxUSE_TIMER=no'
10f2d63a 3206 fi
698dcdb6 3207
10f2d63a 3208else
698dcdb6 3209
1e6feb95 3210 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
10f2d63a
VZ
3211 if test "x$LINE" != x ; then
3212 eval "DEFAULT_$LINE"
3213 else
3214 no_cache=1
3215 fi
3216
1e6feb95 3217 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
698dcdb6
VZ
3218
3219fi
10f2d63a
VZ
3220
3221
1e6feb95 3222 eval "$ac_cv_use_timer"
10f2d63a 3223 if test "$no_cache" != 1; then
1e6feb95 3224 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
3225 fi
3226
1e6feb95 3227 if test "$wxUSE_TIMER" = yes; then
698dcdb6 3228 echo "$ac_t""yes" 1>&6
10f2d63a 3229 else
698dcdb6 3230 echo "$ac_t""no" 1>&6
10f2d63a 3231 fi
698dcdb6 3232
10f2d63a 3233
698dcdb6 3234 echo $ac_n "checking for --enable-wave""... $ac_c" 1>&6
54276ccf 3235echo "configure:3236: checking for --enable-wave" >&5
10f2d63a
VZ
3236 no_cache=0
3237 # Check whether --enable-wave or --disable-wave was given.
3238if test "${enable_wave+set}" = set; then
3239 enableval="$enable_wave"
698dcdb6 3240
10f2d63a
VZ
3241 if test "$enableval" = yes; then
3242 ac_cv_use_wave='wxUSE_WAVE=yes'
3243 else
3244 ac_cv_use_wave='wxUSE_WAVE=no'
3245 fi
698dcdb6 3246
10f2d63a 3247else
698dcdb6 3248
10f2d63a
VZ
3249 LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}`
3250 if test "x$LINE" != x ; then
3251 eval "DEFAULT_$LINE"
3252 else
3253 no_cache=1
3254 fi
3255
3256 ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE
698dcdb6
VZ
3257
3258fi
10f2d63a
VZ
3259
3260
3261 eval "$ac_cv_use_wave"
3262 if test "$no_cache" != 1; then
3263 echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp
3264 fi
3265
3266 if test "$wxUSE_WAVE" = yes; then
698dcdb6 3267 echo "$ac_t""yes" 1>&6
10f2d63a 3268 else
698dcdb6 3269 echo "$ac_t""no" 1>&6
10f2d63a 3270 fi
698dcdb6 3271
10f2d63a 3272
698dcdb6 3273 echo $ac_n "checking for --enable-fraction""... $ac_c" 1>&6
54276ccf 3274echo "configure:3275: checking for --enable-fraction" >&5
10f2d63a
VZ
3275 no_cache=0
3276 # Check whether --enable-fraction or --disable-fraction was given.
3277if test "${enable_fraction+set}" = set; then
3278 enableval="$enable_fraction"
698dcdb6 3279
10f2d63a
VZ
3280 if test "$enableval" = yes; then
3281 ac_cv_use_fraction='wxUSE_FRACTION=yes'
3282 else
3283 ac_cv_use_fraction='wxUSE_FRACTION=no'
3284 fi
698dcdb6 3285
10f2d63a 3286else
698dcdb6 3287
10f2d63a
VZ
3288 LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}`
3289 if test "x$LINE" != x ; then
3290 eval "DEFAULT_$LINE"
3291 else
3292 no_cache=1
3293 fi
3294
3295 ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION
698dcdb6
VZ
3296
3297fi
10f2d63a
VZ
3298
3299
3300 eval "$ac_cv_use_fraction"
3301 if test "$no_cache" != 1; then
3302 echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp
3303 fi
3304
3305 if test "$wxUSE_FRACTION" = yes; then
698dcdb6 3306 echo "$ac_t""yes" 1>&6
10f2d63a 3307 else
698dcdb6 3308 echo "$ac_t""no" 1>&6
10f2d63a 3309 fi
698dcdb6 3310
10f2d63a 3311
698dcdb6 3312 echo $ac_n "checking for --enable-dynlib""... $ac_c" 1>&6
54276ccf 3313echo "configure:3314: checking for --enable-dynlib" >&5
10f2d63a
VZ
3314 no_cache=0
3315 # Check whether --enable-dynlib or --disable-dynlib was given.
3316if test "${enable_dynlib+set}" = set; then
3317 enableval="$enable_dynlib"
698dcdb6 3318
10f2d63a
VZ
3319 if test "$enableval" = yes; then
3320 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
3321 else
3322 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
3323 fi
698dcdb6 3324
10f2d63a 3325else
698dcdb6 3326
10f2d63a
VZ
3327 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
3328 if test "x$LINE" != x ; then
3329 eval "DEFAULT_$LINE"
3330 else
3331 no_cache=1
3332 fi
3333
3334 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
698dcdb6
VZ
3335
3336fi
10f2d63a
VZ
3337
3338
3339 eval "$ac_cv_use_dynlib"
3340 if test "$no_cache" != 1; then
3341 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
3342 fi
3343
3344 if test "$wxUSE_DYNLIB_CLASS" = yes; then
698dcdb6 3345 echo "$ac_t""yes" 1>&6
10f2d63a 3346 else
698dcdb6 3347 echo "$ac_t""no" 1>&6
10f2d63a 3348 fi
698dcdb6 3349
10f2d63a 3350
698dcdb6 3351 echo $ac_n "checking for --enable-longlong""... $ac_c" 1>&6
54276ccf 3352echo "configure:3353: checking for --enable-longlong" >&5
10f2d63a
VZ
3353 no_cache=0
3354 # Check whether --enable-longlong or --disable-longlong was given.
3355if test "${enable_longlong+set}" = set; then
3356 enableval="$enable_longlong"
698dcdb6 3357
10f2d63a
VZ
3358 if test "$enableval" = yes; then
3359 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
3360 else
3361 ac_cv_use_longlong='wxUSE_LONGLONG=no'
3362 fi
698dcdb6 3363
10f2d63a 3364else
698dcdb6 3365
10f2d63a
VZ
3366 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
3367 if test "x$LINE" != x ; then
3368 eval "DEFAULT_$LINE"
3369 else
3370 no_cache=1
3371 fi
3372
3373 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
698dcdb6
VZ
3374
3375fi
10f2d63a
VZ
3376
3377
3378 eval "$ac_cv_use_longlong"
3379 if test "$no_cache" != 1; then
3380 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
3381 fi
3382
3383 if test "$wxUSE_LONGLONG" = yes; then
698dcdb6 3384 echo "$ac_t""yes" 1>&6
10f2d63a 3385 else
698dcdb6 3386 echo "$ac_t""no" 1>&6
10f2d63a 3387 fi
698dcdb6 3388
10f2d63a 3389
698dcdb6 3390 echo $ac_n "checking for --enable-geometry""... $ac_c" 1>&6
54276ccf 3391echo "configure:3392: checking for --enable-geometry" >&5
e8f65ba6
RR
3392 no_cache=0
3393 # Check whether --enable-geometry or --disable-geometry was given.
3394if test "${enable_geometry+set}" = set; then
3395 enableval="$enable_geometry"
698dcdb6 3396
e8f65ba6
RR
3397 if test "$enableval" = yes; then
3398 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
3399 else
3400 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
3401 fi
698dcdb6 3402
e8f65ba6 3403else
698dcdb6 3404
e8f65ba6
RR
3405 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
3406 if test "x$LINE" != x ; then
3407 eval "DEFAULT_$LINE"
3408 else
3409 no_cache=1
3410 fi
3411
3412 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
698dcdb6
VZ
3413
3414fi
e8f65ba6
RR
3415
3416
3417 eval "$ac_cv_use_geometry"
3418 if test "$no_cache" != 1; then
3419 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
3420 fi
3421
3422 if test "$wxUSE_GEOMETRY" = yes; then
698dcdb6 3423 echo "$ac_t""yes" 1>&6
e8f65ba6 3424 else
698dcdb6 3425 echo "$ac_t""no" 1>&6
e8f65ba6 3426 fi
698dcdb6 3427
e8f65ba6 3428
698dcdb6 3429 echo $ac_n "checking for --enable-log""... $ac_c" 1>&6
54276ccf 3430echo "configure:3431: checking for --enable-log" >&5
10f2d63a
VZ
3431 no_cache=0
3432 # Check whether --enable-log or --disable-log was given.
3433if test "${enable_log+set}" = set; then
3434 enableval="$enable_log"
698dcdb6 3435
10f2d63a
VZ
3436 if test "$enableval" = yes; then
3437 ac_cv_use_log='wxUSE_LOG=yes'
3438 else
3439 ac_cv_use_log='wxUSE_LOG=no'
3440 fi
698dcdb6 3441
10f2d63a 3442else
698dcdb6 3443
10f2d63a
VZ
3444 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
3445 if test "x$LINE" != x ; then
3446 eval "DEFAULT_$LINE"
3447 else
3448 no_cache=1
3449 fi
3450
3451 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
698dcdb6
VZ
3452
3453fi
10f2d63a
VZ
3454
3455
3456 eval "$ac_cv_use_log"
3457 if test "$no_cache" != 1; then
3458 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
3459 fi
3460
3461 if test "$wxUSE_LOG" = yes; then
698dcdb6 3462 echo "$ac_t""yes" 1>&6
10f2d63a 3463 else
698dcdb6 3464 echo "$ac_t""no" 1>&6
10f2d63a 3465 fi
698dcdb6 3466
10f2d63a 3467
698dcdb6 3468 echo $ac_n "checking for --enable-streams""... $ac_c" 1>&6
54276ccf 3469echo "configure:3470: checking for --enable-streams" >&5
10f2d63a
VZ
3470 no_cache=0
3471 # Check whether --enable-streams or --disable-streams was given.
3472if test "${enable_streams+set}" = set; then
3473 enableval="$enable_streams"
698dcdb6 3474
10f2d63a
VZ
3475 if test "$enableval" = yes; then
3476 ac_cv_use_streams='wxUSE_STREAMS=yes'
3477 else
3478 ac_cv_use_streams='wxUSE_STREAMS=no'
3479 fi
698dcdb6 3480
10f2d63a 3481else
698dcdb6 3482
10f2d63a
VZ
3483 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
3484 if test "x$LINE" != x ; then
3485 eval "DEFAULT_$LINE"
3486 else
3487 no_cache=1
3488 fi
3489
3490 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
698dcdb6
VZ
3491
3492fi
10f2d63a
VZ
3493
3494
3495 eval "$ac_cv_use_streams"
3496 if test "$no_cache" != 1; then
3497 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
3498 fi
3499
3500 if test "$wxUSE_STREAMS" = yes; then
698dcdb6 3501 echo "$ac_t""yes" 1>&6
10f2d63a 3502 else
698dcdb6 3503 echo "$ac_t""no" 1>&6
10f2d63a 3504 fi
698dcdb6 3505
10f2d63a 3506
698dcdb6 3507 echo $ac_n "checking for --enable-file""... $ac_c" 1>&6
54276ccf 3508echo "configure:3509: checking for --enable-file" >&5
10f2d63a
VZ
3509 no_cache=0
3510 # Check whether --enable-file or --disable-file was given.
3511if test "${enable_file+set}" = set; then
3512 enableval="$enable_file"
698dcdb6 3513
10f2d63a
VZ
3514 if test "$enableval" = yes; then
3515 ac_cv_use_file='wxUSE_FILE=yes'
3516 else
3517 ac_cv_use_file='wxUSE_FILE=no'
3518 fi
698dcdb6 3519
10f2d63a 3520else
698dcdb6 3521
10f2d63a
VZ
3522 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
3523 if test "x$LINE" != x ; then
3524 eval "DEFAULT_$LINE"
3525 else
3526 no_cache=1
3527 fi
3528
3529 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
698dcdb6
VZ
3530
3531fi
10f2d63a
VZ
3532
3533
3534 eval "$ac_cv_use_file"
3535 if test "$no_cache" != 1; then
3536 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
3537 fi
3538
3539 if test "$wxUSE_FILE" = yes; then
698dcdb6 3540 echo "$ac_t""yes" 1>&6
10f2d63a 3541 else
698dcdb6 3542 echo "$ac_t""no" 1>&6
10f2d63a 3543 fi
698dcdb6 3544
10f2d63a 3545
1e6feb95 3546 echo $ac_n "checking for --enable-ffile""... $ac_c" 1>&6
54276ccf 3547echo "configure:3548: checking for --enable-ffile" >&5
10f2d63a 3548 no_cache=0
1e6feb95
VZ
3549 # Check whether --enable-ffile or --disable-ffile was given.
3550if test "${enable_ffile+set}" = set; then
3551 enableval="$enable_ffile"
698dcdb6 3552
10f2d63a 3553 if test "$enableval" = yes; then
1e6feb95 3554 ac_cv_use_ffile='wxUSE_FFILE=yes'
10f2d63a 3555 else
1e6feb95 3556 ac_cv_use_ffile='wxUSE_FFILE=no'
10f2d63a 3557 fi
698dcdb6 3558
10f2d63a 3559else
698dcdb6 3560
1e6feb95 3561 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
10f2d63a
VZ
3562 if test "x$LINE" != x ; then
3563 eval "DEFAULT_$LINE"
3564 else
3565 no_cache=1
3566 fi
3567
1e6feb95 3568 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
698dcdb6
VZ
3569
3570fi
10f2d63a
VZ
3571
3572
1e6feb95 3573 eval "$ac_cv_use_ffile"
10f2d63a 3574 if test "$no_cache" != 1; then
1e6feb95 3575 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
3576 fi
3577
1e6feb95 3578 if test "$wxUSE_FFILE" = yes; then
698dcdb6 3579 echo "$ac_t""yes" 1>&6
10f2d63a 3580 else
698dcdb6 3581 echo "$ac_t""no" 1>&6
10f2d63a 3582 fi
698dcdb6 3583
10f2d63a 3584
1e6feb95 3585 echo $ac_n "checking for --enable-textfile""... $ac_c" 1>&6
54276ccf 3586echo "configure:3587: checking for --enable-textfile" >&5
10f2d63a 3587 no_cache=0
1e6feb95
VZ
3588 # Check whether --enable-textfile or --disable-textfile was given.
3589if test "${enable_textfile+set}" = set; then
3590 enableval="$enable_textfile"
698dcdb6 3591
10f2d63a 3592 if test "$enableval" = yes; then
1e6feb95 3593 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
10f2d63a 3594 else
1e6feb95 3595 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
10f2d63a 3596 fi
698dcdb6 3597
10f2d63a 3598else
698dcdb6 3599
1e6feb95 3600 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
10f2d63a
VZ
3601 if test "x$LINE" != x ; then
3602 eval "DEFAULT_$LINE"
3603 else
3604 no_cache=1
3605 fi
3606
1e6feb95 3607 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
698dcdb6
VZ
3608
3609fi
10f2d63a
VZ
3610
3611
1e6feb95 3612 eval "$ac_cv_use_textfile"
10f2d63a 3613 if test "$no_cache" != 1; then
1e6feb95 3614 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
3615 fi
3616
1e6feb95 3617 if test "$wxUSE_TEXTFILE" = yes; then
698dcdb6 3618 echo "$ac_t""yes" 1>&6
10f2d63a 3619 else
698dcdb6 3620 echo "$ac_t""no" 1>&6
10f2d63a 3621 fi
698dcdb6 3622
10f2d63a 3623
1e6feb95 3624 echo $ac_n "checking for --enable-fontmap""... $ac_c" 1>&6
54276ccf 3625echo "configure:3626: checking for --enable-fontmap" >&5
10f2d63a 3626 no_cache=0
1e6feb95
VZ
3627 # Check whether --enable-fontmap or --disable-fontmap was given.
3628if test "${enable_fontmap+set}" = set; then
3629 enableval="$enable_fontmap"
698dcdb6 3630
10f2d63a 3631 if test "$enableval" = yes; then
1e6feb95 3632 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
10f2d63a 3633 else
1e6feb95 3634 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
10f2d63a 3635 fi
698dcdb6 3636
10f2d63a 3637else
698dcdb6 3638
1e6feb95 3639 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
10f2d63a
VZ
3640 if test "x$LINE" != x ; then
3641 eval "DEFAULT_$LINE"
3642 else
3643 no_cache=1
3644 fi
3645
1e6feb95 3646 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
698dcdb6
VZ
3647
3648fi
10f2d63a
VZ
3649
3650
1e6feb95 3651 eval "$ac_cv_use_fontmap"
10f2d63a 3652 if test "$no_cache" != 1; then
1e6feb95 3653 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
3654 fi
3655
1e6feb95 3656 if test "$wxUSE_FONTMAP" = yes; then
698dcdb6 3657 echo "$ac_t""yes" 1>&6
10f2d63a 3658 else
698dcdb6 3659 echo "$ac_t""no" 1>&6
10f2d63a 3660 fi
698dcdb6 3661
10f2d63a 3662
1e6feb95 3663 echo $ac_n "checking for --enable-unicode""... $ac_c" 1>&6
54276ccf 3664echo "configure:3665: checking for --enable-unicode" >&5
10f2d63a 3665 no_cache=0
1e6feb95
VZ
3666 # Check whether --enable-unicode or --disable-unicode was given.
3667if test "${enable_unicode+set}" = set; then
3668 enableval="$enable_unicode"
3669
3670 if test "$enableval" = yes; then
3671 ac_cv_use_unicode='wxUSE_UNICODE=yes'
3672 else
3673 ac_cv_use_unicode='wxUSE_UNICODE=no'
3674 fi
3675
3676else
3677
3678 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
3679 if test "x$LINE" != x ; then
3680 eval "DEFAULT_$LINE"
3681 else
3682 no_cache=1
3683 fi
3684
3685 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
3686
3687fi
3688
3689
3690 eval "$ac_cv_use_unicode"
3691 if test "$no_cache" != 1; then
3692 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
3693 fi
3694
3695 if test "$wxUSE_UNICODE" = yes; then
3696 echo "$ac_t""yes" 1>&6
3697 else
3698 echo "$ac_t""no" 1>&6
3699 fi
3700
3701
3702 echo $ac_n "checking for --enable-wcsrtombs""... $ac_c" 1>&6
54276ccf 3703echo "configure:3704: checking for --enable-wcsrtombs" >&5
1e6feb95
VZ
3704 no_cache=0
3705 # Check whether --enable-wcsrtombs or --disable-wcsrtombs was given.
3706if test "${enable_wcsrtombs+set}" = set; then
3707 enableval="$enable_wcsrtombs"
3708
3709 if test "$enableval" = yes; then
3710 ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS=yes'
3711 else
3712 ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS=no'
3713 fi
3714
3715else
3716
3717 LINE=`grep "wxUSE_WCSRTOMBS" ${wx_arg_cache_file}`
3718 if test "x$LINE" != x ; then
3719 eval "DEFAULT_$LINE"
3720 else
3721 no_cache=1
3722 fi
3723
3724 ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS='$DEFAULT_wxUSE_WCSRTOMBS
3725
3726fi
3727
3728
3729 eval "$ac_cv_use_wcsrtombs"
3730 if test "$no_cache" != 1; then
3731 echo $ac_cv_use_wcsrtombs >> ${wx_arg_cache_file}.tmp
3732 fi
3733
3734 if test "$wxUSE_WCSRTOMBS" = yes; then
3735 echo "$ac_t""yes" 1>&6
3736 else
3737 echo "$ac_t""no" 1>&6
3738 fi
3739
3740
3741 echo $ac_n "checking for --enable-wxprintfv""... $ac_c" 1>&6
54276ccf 3742echo "configure:3743: checking for --enable-wxprintfv" >&5
1e6feb95
VZ
3743 no_cache=0
3744 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
3745if test "${enable_wxprintfv+set}" = set; then
3746 enableval="$enable_wxprintfv"
3747
3748 if test "$enableval" = yes; then
10f2d63a
VZ
3749 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
3750 else
3751 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
3752 fi
698dcdb6 3753
10f2d63a 3754else
698dcdb6 3755
10f2d63a
VZ
3756 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
3757 if test "x$LINE" != x ; then
3758 eval "DEFAULT_$LINE"
3759 else
3760 no_cache=1
3761 fi
3762
3763 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
698dcdb6
VZ
3764
3765fi
10f2d63a
VZ
3766
3767
3768 eval "$ac_cv_use_wxprintfv"
3769 if test "$no_cache" != 1; then
3770 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
3771 fi
3772
3773 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
698dcdb6 3774 echo "$ac_t""yes" 1>&6
10f2d63a 3775 else
698dcdb6 3776 echo "$ac_t""no" 1>&6
10f2d63a 3777 fi
698dcdb6 3778
10f2d63a 3779
698dcdb6 3780 echo $ac_n "checking for --enable-std_iostreams""... $ac_c" 1>&6
54276ccf 3781echo "configure:3782: checking for --enable-std_iostreams" >&5
10f2d63a
VZ
3782 no_cache=0
3783 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
3784if test "${enable_std_iostreams+set}" = set; then
3785 enableval="$enable_std_iostreams"
698dcdb6 3786
10f2d63a
VZ
3787 if test "$enableval" = yes; then
3788 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
3789 else
3790 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
3791 fi
698dcdb6 3792
10f2d63a 3793else
698dcdb6 3794
10f2d63a
VZ
3795 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
3796 if test "x$LINE" != x ; then
3797 eval "DEFAULT_$LINE"
3798 else
3799 no_cache=1
3800 fi
3801
3802 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
698dcdb6
VZ
3803
3804fi
10f2d63a
VZ
3805
3806
3807 eval "$ac_cv_use_std_iostreams"
3808 if test "$no_cache" != 1; then
3809 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
3810 fi
3811
3812 if test "$wxUSE_STD_IOSTREAM" = yes; then
698dcdb6 3813 echo "$ac_t""yes" 1>&6
10f2d63a 3814 else
698dcdb6 3815 echo "$ac_t""no" 1>&6
10f2d63a 3816 fi
698dcdb6 3817
10f2d63a 3818
698dcdb6 3819 echo $ac_n "checking for --enable-filesystem""... $ac_c" 1>&6
54276ccf 3820echo "configure:3821: checking for --enable-filesystem" >&5
24528b0c
VS
3821 no_cache=0
3822 # Check whether --enable-filesystem or --disable-filesystem was given.
3823if test "${enable_filesystem+set}" = set; then
3824 enableval="$enable_filesystem"
698dcdb6 3825
24528b0c
VS
3826 if test "$enableval" = yes; then
3827 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
3828 else
3829 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
3830 fi
698dcdb6 3831
24528b0c 3832else
698dcdb6 3833
24528b0c
VS
3834 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
3835 if test "x$LINE" != x ; then
3836 eval "DEFAULT_$LINE"
3837 else
3838 no_cache=1
3839 fi
3840
3841 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
698dcdb6
VZ
3842
3843fi
24528b0c
VS
3844
3845
3846 eval "$ac_cv_use_filesystem"
3847 if test "$no_cache" != 1; then
3848 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
3849 fi
3850
3851 if test "$wxUSE_FILESYSTEM" = yes; then
698dcdb6 3852 echo "$ac_t""yes" 1>&6
24528b0c 3853 else
698dcdb6 3854 echo "$ac_t""no" 1>&6
24528b0c 3855 fi
698dcdb6 3856
24528b0c 3857
698dcdb6 3858 echo $ac_n "checking for --enable-fs_inet""... $ac_c" 1>&6
54276ccf 3859echo "configure:3860: checking for --enable-fs_inet" >&5
10f2d63a
VZ
3860 no_cache=0
3861 # Check whether --enable-fs_inet or --disable-fs_inet was given.
3862if test "${enable_fs_inet+set}" = set; then
3863 enableval="$enable_fs_inet"
698dcdb6 3864
10f2d63a
VZ
3865 if test "$enableval" = yes; then
3866 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
3867 else
3868 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
3869 fi
698dcdb6 3870
10f2d63a 3871else
698dcdb6 3872
10f2d63a
VZ
3873 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
3874 if test "x$LINE" != x ; then
3875 eval "DEFAULT_$LINE"
3876 else
3877 no_cache=1
3878 fi
3879
3880 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
698dcdb6
VZ
3881
3882fi
10f2d63a
VZ
3883
3884
3885 eval "$ac_cv_use_fs_inet"
3886 if test "$no_cache" != 1; then
3887 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
3888 fi
3889
3890 if test "$wxUSE_FS_INET" = yes; then
698dcdb6 3891 echo "$ac_t""yes" 1>&6
10f2d63a 3892 else
698dcdb6 3893 echo "$ac_t""no" 1>&6
10f2d63a 3894 fi
698dcdb6 3895
10f2d63a 3896
698dcdb6 3897 echo $ac_n "checking for --enable-fs_zip""... $ac_c" 1>&6
54276ccf 3898echo "configure:3899: checking for --enable-fs_zip" >&5
10f2d63a
VZ
3899 no_cache=0
3900 # Check whether --enable-fs_zip or --disable-fs_zip was given.
3901if test "${enable_fs_zip+set}" = set; then
3902 enableval="$enable_fs_zip"
698dcdb6 3903
10f2d63a
VZ
3904 if test "$enableval" = yes; then
3905 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
3906 else
3907 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
3908 fi
698dcdb6 3909
10f2d63a 3910else
698dcdb6 3911
10f2d63a
VZ
3912 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
3913 if test "x$LINE" != x ; then
3914 eval "DEFAULT_$LINE"
3915 else
3916 no_cache=1
3917 fi
3918
3919 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
698dcdb6
VZ
3920
3921fi
10f2d63a
VZ
3922
3923
3924 eval "$ac_cv_use_fs_zip"
3925 if test "$no_cache" != 1; then
3926 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
3927 fi
3928
3929 if test "$wxUSE_FS_ZIP" = yes; then
698dcdb6 3930 echo "$ac_t""yes" 1>&6
10f2d63a 3931 else
698dcdb6 3932 echo "$ac_t""no" 1>&6
10f2d63a 3933 fi
698dcdb6 3934
10f2d63a 3935
698dcdb6 3936 echo $ac_n "checking for --enable-zipstream""... $ac_c" 1>&6
54276ccf 3937echo "configure:3938: checking for --enable-zipstream" >&5
10f2d63a
VZ
3938 no_cache=0
3939 # Check whether --enable-zipstream or --disable-zipstream was given.
3940if test "${enable_zipstream+set}" = set; then
3941 enableval="$enable_zipstream"
698dcdb6 3942
10f2d63a
VZ
3943 if test "$enableval" = yes; then
3944 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
3945 else
3946 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
3947 fi
698dcdb6 3948
10f2d63a 3949else
698dcdb6 3950
10f2d63a
VZ
3951 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
3952 if test "x$LINE" != x ; then
3953 eval "DEFAULT_$LINE"
3954 else
3955 no_cache=1
3956 fi
3957
3958 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
698dcdb6
VZ
3959
3960fi
10f2d63a
VZ
3961
3962
3963 eval "$ac_cv_use_zipstream"
3964 if test "$no_cache" != 1; then
3965 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
3966 fi
3967
3968 if test "$wxUSE_ZIPSTREAM" = yes; then
698dcdb6 3969 echo "$ac_t""yes" 1>&6
10f2d63a 3970 else
698dcdb6 3971 echo "$ac_t""no" 1>&6
10f2d63a 3972 fi
698dcdb6 3973
10f2d63a 3974
698dcdb6
VZ
3975
3976 echo $ac_n "checking for --enable-catch_segvs""... $ac_c" 1>&6
54276ccf 3977echo "configure:3978: checking for --enable-catch_segvs" >&5
eb4efbdc
VZ
3978 no_cache=0
3979 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
3980if test "${enable_catch_segvs+set}" = set; then
3981 enableval="$enable_catch_segvs"
698dcdb6 3982
eb4efbdc
VZ
3983 if test "$enableval" = yes; then
3984 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
3985 else
3986 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
3987 fi
698dcdb6 3988
eb4efbdc 3989else
698dcdb6 3990
eb4efbdc
VZ
3991 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
3992 if test "x$LINE" != x ; then
3993 eval "DEFAULT_$LINE"
3994 else
3995 no_cache=1
3996 fi
3997
3998 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
698dcdb6
VZ
3999
4000fi
eb4efbdc
VZ
4001
4002
4003 eval "$ac_cv_use_catch_segvs"
4004 if test "$no_cache" != 1; then
4005 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
4006 fi
4007
4008 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
698dcdb6 4009 echo "$ac_t""yes" 1>&6
eb4efbdc 4010 else
698dcdb6 4011 echo "$ac_t""no" 1>&6
eb4efbdc 4012 fi
698dcdb6 4013
eb4efbdc 4014
698dcdb6 4015 echo $ac_n "checking for --enable-snglinst""... $ac_c" 1>&6
54276ccf 4016echo "configure:4017: checking for --enable-snglinst" >&5
4f3c5f06
VZ
4017 no_cache=0
4018 # Check whether --enable-snglinst or --disable-snglinst was given.
4019if test "${enable_snglinst+set}" = set; then
4020 enableval="$enable_snglinst"
698dcdb6 4021
4f3c5f06
VZ
4022 if test "$enableval" = yes; then
4023 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
4024 else
4025 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
4026 fi
698dcdb6 4027
4f3c5f06 4028else
698dcdb6 4029
4f3c5f06
VZ
4030 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
4031 if test "x$LINE" != x ; then
4032 eval "DEFAULT_$LINE"
4033 else
4034 no_cache=1
4035 fi
4036
4037 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
698dcdb6
VZ
4038
4039fi
4f3c5f06
VZ
4040
4041
4042 eval "$ac_cv_use_snglinst"
4043 if test "$no_cache" != 1; then
4044 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
4045 fi
4046
4047 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
698dcdb6 4048 echo "$ac_t""yes" 1>&6
4f3c5f06 4049 else
698dcdb6 4050 echo "$ac_t""no" 1>&6
4f3c5f06 4051 fi
698dcdb6
VZ
4052
4053
eb4efbdc 4054
1e6feb95 4055 echo $ac_n "checking for --enable-mimetype""... $ac_c" 1>&6
54276ccf 4056echo "configure:4057: checking for --enable-mimetype" >&5
1e6feb95
VZ
4057 no_cache=0
4058 # Check whether --enable-mimetype or --disable-mimetype was given.
4059if test "${enable_mimetype+set}" = set; then
4060 enableval="$enable_mimetype"
4061
4062 if test "$enableval" = yes; then
4063 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
4064 else
4065 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
4066 fi
4067
4068else
4069
4070 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
4071 if test "x$LINE" != x ; then
4072 eval "DEFAULT_$LINE"
4073 else
4074 no_cache=1
4075 fi
4076
4077 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
4078
4079fi
4080
4081
4082 eval "$ac_cv_use_mimetype"
4083 if test "$no_cache" != 1; then
4084 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
4085 fi
4086
4087 if test "$wxUSE_MIMETYPE" = yes; then
4088 echo "$ac_t""yes" 1>&6
4089 else
4090 echo "$ac_t""no" 1>&6
4091 fi
4092
4093
4094
698dcdb6
VZ
4095
4096 echo $ac_n "checking for --enable-threads""... $ac_c" 1>&6
54276ccf 4097echo "configure:4098: checking for --enable-threads" >&5
10f2d63a
VZ
4098 no_cache=0
4099 # Check whether --enable-threads or --disable-threads was given.
4100if test "${enable_threads+set}" = set; then
4101 enableval="$enable_threads"
698dcdb6 4102
10f2d63a
VZ
4103 if test "$enableval" = yes; then
4104 ac_cv_use_threads='wxUSE_THREADS=yes'
4105 else
4106 ac_cv_use_threads='wxUSE_THREADS=no'
4107 fi
698dcdb6 4108
10f2d63a 4109else
698dcdb6 4110
10f2d63a
VZ
4111 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
4112 if test "x$LINE" != x ; then
4113 eval "DEFAULT_$LINE"
4114 else
4115 no_cache=1
4116 fi
4117
4118 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
698dcdb6
VZ
4119
4120fi
10f2d63a
VZ
4121
4122
4123 eval "$ac_cv_use_threads"
4124 if test "$no_cache" != 1; then
4125 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
4126 fi
4127
4128 if test "$wxUSE_THREADS" = yes; then
698dcdb6 4129 echo "$ac_t""yes" 1>&6
10f2d63a 4130 else
698dcdb6 4131 echo "$ac_t""no" 1>&6
10f2d63a 4132 fi
698dcdb6 4133
10f2d63a 4134
698dcdb6 4135 echo $ac_n "checking for --enable-serial""... $ac_c" 1>&6
54276ccf 4136echo "configure:4137: checking for --enable-serial" >&5
10f2d63a
VZ
4137 no_cache=0
4138 # Check whether --enable-serial or --disable-serial was given.
4139if test "${enable_serial+set}" = set; then
4140 enableval="$enable_serial"
698dcdb6 4141
10f2d63a
VZ
4142 if test "$enableval" = yes; then
4143 ac_cv_use_serial='wxUSE_SERIAL=yes'
4144 else
4145 ac_cv_use_serial='wxUSE_SERIAL=no'
4146 fi
698dcdb6 4147
10f2d63a 4148else
698dcdb6 4149
10f2d63a
VZ
4150 LINE=`grep "wxUSE_SERIAL" ${wx_arg_cache_file}`
4151 if test "x$LINE" != x ; then
4152 eval "DEFAULT_$LINE"
4153 else
4154 no_cache=1
4155 fi
4156
4157 ac_cv_use_serial='wxUSE_SERIAL='$DEFAULT_wxUSE_SERIAL
698dcdb6
VZ
4158
4159fi
10f2d63a
VZ
4160
4161
4162 eval "$ac_cv_use_serial"
4163 if test "$no_cache" != 1; then
4164 echo $ac_cv_use_serial >> ${wx_arg_cache_file}.tmp
4165 fi
4166
4167 if test "$wxUSE_SERIAL" = yes; then
698dcdb6 4168 echo "$ac_t""yes" 1>&6
10f2d63a 4169 else
698dcdb6 4170 echo "$ac_t""no" 1>&6
10f2d63a 4171 fi
698dcdb6 4172
10f2d63a 4173
b12915c1
VZ
4174if test "$wxUSE_GUI" = "yes"; then
4175
698dcdb6
VZ
4176
4177
4178 echo $ac_n "checking for --enable-docview""... $ac_c" 1>&6
54276ccf 4179echo "configure:4180: checking for --enable-docview" >&5
10f2d63a
VZ
4180 no_cache=0
4181 # Check whether --enable-docview or --disable-docview was given.
4182if test "${enable_docview+set}" = set; then
4183 enableval="$enable_docview"
698dcdb6 4184
10f2d63a
VZ
4185 if test "$enableval" = yes; then
4186 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
4187 else
4188 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
4189 fi
698dcdb6 4190
10f2d63a 4191else
698dcdb6 4192
10f2d63a
VZ
4193 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
4194 if test "x$LINE" != x ; then
4195 eval "DEFAULT_$LINE"
4196 else
4197 no_cache=1
4198 fi
4199
4200 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
698dcdb6
VZ
4201
4202fi
10f2d63a
VZ
4203
4204
4205 eval "$ac_cv_use_docview"
4206 if test "$no_cache" != 1; then
4207 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
4208 fi
4209
4210 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
698dcdb6 4211 echo "$ac_t""yes" 1>&6
10f2d63a 4212 else
698dcdb6 4213 echo "$ac_t""no" 1>&6
10f2d63a 4214 fi
698dcdb6 4215
10f2d63a 4216
698dcdb6 4217 echo $ac_n "checking for --enable-help""... $ac_c" 1>&6
54276ccf 4218echo "configure:4219: checking for --enable-help" >&5
10f2d63a
VZ
4219 no_cache=0
4220 # Check whether --enable-help or --disable-help was given.
4221if test "${enable_help+set}" = set; then
4222 enableval="$enable_help"
698dcdb6 4223
10f2d63a
VZ
4224 if test "$enableval" = yes; then
4225 ac_cv_use_help='wxUSE_HELP=yes'
4226 else
4227 ac_cv_use_help='wxUSE_HELP=no'
4228 fi
698dcdb6 4229
10f2d63a 4230else
698dcdb6 4231
10f2d63a
VZ
4232 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
4233 if test "x$LINE" != x ; then
4234 eval "DEFAULT_$LINE"
4235 else
4236 no_cache=1
4237 fi
4238
4239 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
698dcdb6
VZ
4240
4241fi
10f2d63a
VZ
4242
4243
4244 eval "$ac_cv_use_help"
4245 if test "$no_cache" != 1; then
4246 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
4247 fi
4248
4249 if test "$wxUSE_HELP" = yes; then
698dcdb6 4250 echo "$ac_t""yes" 1>&6
10f2d63a 4251 else
698dcdb6 4252 echo "$ac_t""no" 1>&6
10f2d63a 4253 fi
698dcdb6 4254
10f2d63a 4255
698dcdb6 4256 echo $ac_n "checking for --enable-constraints""... $ac_c" 1>&6
54276ccf 4257echo "configure:4258: checking for --enable-constraints" >&5
10f2d63a
VZ
4258 no_cache=0
4259 # Check whether --enable-constraints or --disable-constraints was given.
4260if test "${enable_constraints+set}" = set; then
4261 enableval="$enable_constraints"
698dcdb6 4262
10f2d63a
VZ
4263 if test "$enableval" = yes; then
4264 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
4265 else
4266 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
4267 fi
698dcdb6 4268
10f2d63a 4269else
698dcdb6 4270
10f2d63a
VZ
4271 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
4272 if test "x$LINE" != x ; then
4273 eval "DEFAULT_$LINE"
4274 else
4275 no_cache=1
4276 fi
4277
4278 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
698dcdb6
VZ
4279
4280fi
10f2d63a
VZ
4281
4282
4283 eval "$ac_cv_use_constraints"
4284 if test "$no_cache" != 1; then
4285 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
4286 fi
4287
4288 if test "$wxUSE_CONSTRAINTS" = yes; then
698dcdb6 4289 echo "$ac_t""yes" 1>&6
10f2d63a 4290 else
698dcdb6 4291 echo "$ac_t""no" 1>&6
10f2d63a 4292 fi
698dcdb6 4293
10f2d63a 4294
698dcdb6 4295 echo $ac_n "checking for --enable-printarch""... $ac_c" 1>&6
54276ccf 4296echo "configure:4297: checking for --enable-printarch" >&5
10f2d63a
VZ
4297 no_cache=0
4298 # Check whether --enable-printarch or --disable-printarch was given.
4299if test "${enable_printarch+set}" = set; then
4300 enableval="$enable_printarch"
698dcdb6 4301
10f2d63a
VZ
4302 if test "$enableval" = yes; then
4303 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
4304 else
4305 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
4306 fi
698dcdb6 4307
10f2d63a 4308else
698dcdb6 4309
10f2d63a
VZ
4310 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
4311 if test "x$LINE" != x ; then
4312 eval "DEFAULT_$LINE"
4313 else
4314 no_cache=1
4315 fi
4316
4317 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
698dcdb6
VZ
4318
4319fi
10f2d63a
VZ
4320
4321
4322 eval "$ac_cv_use_printarch"
4323 if test "$no_cache" != 1; then
4324 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
4325 fi
4326
4327 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
698dcdb6 4328 echo "$ac_t""yes" 1>&6
10f2d63a 4329 else
698dcdb6 4330 echo "$ac_t""no" 1>&6
10f2d63a 4331 fi
698dcdb6 4332
10f2d63a 4333
698dcdb6 4334 echo $ac_n "checking for --enable-mdi""... $ac_c" 1>&6
54276ccf 4335echo "configure:4336: checking for --enable-mdi" >&5
10f2d63a
VZ
4336 no_cache=0
4337 # Check whether --enable-mdi or --disable-mdi was given.
4338if test "${enable_mdi+set}" = set; then
4339 enableval="$enable_mdi"
698dcdb6 4340
10f2d63a
VZ
4341 if test "$enableval" = yes; then
4342 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes'
4343 else
4344 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no'
4345 fi
698dcdb6 4346
10f2d63a 4347else
698dcdb6 4348
10f2d63a
VZ
4349 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
4350 if test "x$LINE" != x ; then
4351 eval "DEFAULT_$LINE"
4352 else
4353 no_cache=1
4354 fi
4355
4356 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
698dcdb6
VZ
4357
4358fi
10f2d63a
VZ
4359
4360
4361 eval "$ac_cv_use_mdi"
4362 if test "$no_cache" != 1; then
4363 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
4364 fi
4365
4366 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
698dcdb6 4367 echo "$ac_t""yes" 1>&6
10f2d63a 4368 else
698dcdb6 4369 echo "$ac_t""no" 1>&6
10f2d63a 4370 fi
698dcdb6
VZ
4371
4372
1e6feb95 4373 echo $ac_n "checking for --enable-loggui""... $ac_c" 1>&6
54276ccf 4374echo "configure:4375: checking for --enable-loggui" >&5
1e6feb95
VZ
4375 no_cache=0
4376 # Check whether --enable-loggui or --disable-loggui was given.
4377if test "${enable_loggui+set}" = set; then
4378 enableval="$enable_loggui"
4379
4380 if test "$enableval" = yes; then
4381 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
4382 else
4383 ac_cv_use_loggui='wxUSE_LOGGUI=no'
4384 fi
4385
4386else
4387
4388 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
4389 if test "x$LINE" != x ; then
4390 eval "DEFAULT_$LINE"
4391 else
4392 no_cache=1
4393 fi
4394
4395 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
4396
4397fi
4398
4399
4400 eval "$ac_cv_use_loggui"
4401 if test "$no_cache" != 1; then
4402 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
4403 fi
4404
4405 if test "$wxUSE_LOGGUI" = yes; then
4406 echo "$ac_t""yes" 1>&6
4407 else
4408 echo "$ac_t""no" 1>&6
4409 fi
4410
4411
4412 echo $ac_n "checking for --enable-logwin""... $ac_c" 1>&6
54276ccf 4413echo "configure:4414: checking for --enable-logwin" >&5
1e6feb95
VZ
4414 no_cache=0
4415 # Check whether --enable-logwin or --disable-logwin was given.
4416if test "${enable_logwin+set}" = set; then
4417 enableval="$enable_logwin"
4418
4419 if test "$enableval" = yes; then
4420 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
4421 else
4422 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
4423 fi
4424
4425else
4426
4427 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
4428 if test "x$LINE" != x ; then
4429 eval "DEFAULT_$LINE"
4430 else
4431 no_cache=1
4432 fi
4433
4434 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
4435
4436fi
4437
4438
4439 eval "$ac_cv_use_logwin"
4440 if test "$no_cache" != 1; then
4441 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
4442 fi
4443
4444 if test "$wxUSE_LOGWINDOW" = yes; then
4445 echo "$ac_t""yes" 1>&6
4446 else
4447 echo "$ac_t""no" 1>&6
4448 fi
4449
4450
10f2d63a 4451
698dcdb6 4452 echo $ac_n "checking for --enable-postscript""... $ac_c" 1>&6
54276ccf 4453echo "configure:4454: checking for --enable-postscript" >&5
10f2d63a
VZ
4454 no_cache=0
4455 # Check whether --enable-postscript or --disable-postscript was given.
4456if test "${enable_postscript+set}" = set; then
4457 enableval="$enable_postscript"
698dcdb6 4458
10f2d63a
VZ
4459 if test "$enableval" = yes; then
4460 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
4461 else
4462 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
4463 fi
698dcdb6 4464
10f2d63a 4465else
698dcdb6 4466
10f2d63a
VZ
4467 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
4468 if test "x$LINE" != x ; then
4469 eval "DEFAULT_$LINE"
4470 else
4471 no_cache=1
4472 fi
4473
4474 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
698dcdb6
VZ
4475
4476fi
10f2d63a
VZ
4477
4478
4479 eval "$ac_cv_use_postscript"
4480 if test "$no_cache" != 1; then
4481 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
4482 fi
4483
4484 if test "$wxUSE_POSTSCRIPT" = yes; then
698dcdb6 4485 echo "$ac_t""yes" 1>&6
10f2d63a 4486 else
698dcdb6 4487 echo "$ac_t""no" 1>&6
10f2d63a 4488 fi
698dcdb6
VZ
4489
4490
4491
10f2d63a 4492
1e6feb95 4493
698dcdb6 4494 echo $ac_n "checking for --enable-prologio""... $ac_c" 1>&6
54276ccf 4495echo "configure:4496: checking for --enable-prologio" >&5
10f2d63a
VZ
4496 no_cache=0
4497 # Check whether --enable-prologio or --disable-prologio was given.
4498if test "${enable_prologio+set}" = set; then
4499 enableval="$enable_prologio"
698dcdb6 4500
10f2d63a
VZ
4501 if test "$enableval" = yes; then
4502 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
4503 else
4504 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
4505 fi
698dcdb6 4506
10f2d63a 4507else
698dcdb6 4508
10f2d63a
VZ
4509 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
4510 if test "x$LINE" != x ; then
4511 eval "DEFAULT_$LINE"
4512 else
4513 no_cache=1
4514 fi
4515
4516 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
698dcdb6
VZ
4517
4518fi
10f2d63a
VZ
4519
4520
4521 eval "$ac_cv_use_prologio"
4522 if test "$no_cache" != 1; then
4523 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
4524 fi
4525
4526 if test "$wxUSE_PROLOGIO" = yes; then
698dcdb6 4527 echo "$ac_t""yes" 1>&6
10f2d63a 4528 else
698dcdb6 4529 echo "$ac_t""no" 1>&6
10f2d63a 4530 fi
698dcdb6 4531
10f2d63a 4532
698dcdb6 4533 echo $ac_n "checking for --enable-resources""... $ac_c" 1>&6
54276ccf 4534echo "configure:4535: checking for --enable-resources" >&5
10f2d63a
VZ
4535 no_cache=0
4536 # Check whether --enable-resources or --disable-resources was given.
4537if test "${enable_resources+set}" = set; then
4538 enableval="$enable_resources"
698dcdb6 4539
10f2d63a
VZ
4540 if test "$enableval" = yes; then
4541 ac_cv_use_resources='wxUSE_RESOURCES=yes'
4542 else
4543 ac_cv_use_resources='wxUSE_RESOURCES=no'
4544 fi
698dcdb6 4545
10f2d63a 4546else
698dcdb6 4547
10f2d63a
VZ
4548 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
4549 if test "x$LINE" != x ; then
4550 eval "DEFAULT_$LINE"
4551 else
4552 no_cache=1
4553 fi
4554
4555 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
698dcdb6
VZ
4556
4557fi
10f2d63a
VZ
4558
4559
4560 eval "$ac_cv_use_resources"
4561 if test "$no_cache" != 1; then
4562 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
4563 fi
4564
4565 if test "$wxUSE_RESOURCES" = yes; then
698dcdb6 4566 echo "$ac_t""yes" 1>&6
10f2d63a 4567 else
698dcdb6 4568 echo "$ac_t""no" 1>&6
10f2d63a 4569 fi
698dcdb6 4570
10f2d63a 4571
698dcdb6
VZ
4572
4573 echo $ac_n "checking for --enable-xresources""... $ac_c" 1>&6
54276ccf 4574echo "configure:4575: checking for --enable-xresources" >&5
10f2d63a
VZ
4575 no_cache=0
4576 # Check whether --enable-xresources or --disable-xresources was given.
4577if test "${enable_xresources+set}" = set; then
4578 enableval="$enable_xresources"
698dcdb6 4579
10f2d63a
VZ
4580 if test "$enableval" = yes; then
4581 ac_cv_use_xresources='wxUSE_X_RESOURCES=yes'
4582 else
4583 ac_cv_use_xresources='wxUSE_X_RESOURCES=no'
4584 fi
698dcdb6 4585
10f2d63a 4586else
698dcdb6 4587
10f2d63a
VZ
4588 LINE=`grep "wxUSE_X_RESOURCES" ${wx_arg_cache_file}`
4589 if test "x$LINE" != x ; then
4590 eval "DEFAULT_$LINE"
4591 else
4592 no_cache=1
4593 fi
4594
4595 ac_cv_use_xresources='wxUSE_X_RESOURCES='$DEFAULT_wxUSE_X_RESOURCES
698dcdb6
VZ
4596
4597fi
10f2d63a
VZ
4598
4599
4600 eval "$ac_cv_use_xresources"
4601 if test "$no_cache" != 1; then
4602 echo $ac_cv_use_xresources >> ${wx_arg_cache_file}.tmp
4603 fi
4604
4605 if test "$wxUSE_X_RESOURCES" = yes; then
698dcdb6 4606 echo "$ac_t""yes" 1>&6
10f2d63a 4607 else
698dcdb6 4608 echo "$ac_t""no" 1>&6
10f2d63a 4609 fi
698dcdb6
VZ
4610
4611
10f2d63a 4612
698dcdb6
VZ
4613
4614 echo $ac_n "checking for --enable-clipboard""... $ac_c" 1>&6
54276ccf 4615echo "configure:4616: checking for --enable-clipboard" >&5
10f2d63a
VZ
4616 no_cache=0
4617 # Check whether --enable-clipboard or --disable-clipboard was given.
4618if test "${enable_clipboard+set}" = set; then
4619 enableval="$enable_clipboard"
698dcdb6 4620
10f2d63a
VZ
4621 if test "$enableval" = yes; then
4622 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
4623 else
4624 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
4625 fi
698dcdb6 4626
10f2d63a 4627else
698dcdb6 4628
10f2d63a
VZ
4629 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
4630 if test "x$LINE" != x ; then
4631 eval "DEFAULT_$LINE"
4632 else
4633 no_cache=1
4634 fi
4635
4636 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
698dcdb6
VZ
4637
4638fi
10f2d63a
VZ
4639
4640
4641 eval "$ac_cv_use_clipboard"
4642 if test "$no_cache" != 1; then
4643 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
4644 fi
4645
4646 if test "$wxUSE_CLIPBOARD" = yes; then
698dcdb6 4647 echo "$ac_t""yes" 1>&6
10f2d63a 4648 else
698dcdb6 4649 echo "$ac_t""no" 1>&6
10f2d63a 4650 fi
698dcdb6 4651
10f2d63a 4652
698dcdb6 4653 echo $ac_n "checking for --enable-dnd""... $ac_c" 1>&6
54276ccf 4654echo "configure:4655: checking for --enable-dnd" >&5
10f2d63a
VZ
4655 no_cache=0
4656 # Check whether --enable-dnd or --disable-dnd was given.
4657if test "${enable_dnd+set}" = set; then
4658 enableval="$enable_dnd"
698dcdb6 4659
10f2d63a
VZ
4660 if test "$enableval" = yes; then
4661 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
4662 else
4663 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
4664 fi
698dcdb6 4665
10f2d63a 4666else
698dcdb6 4667
10f2d63a
VZ
4668 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
4669 if test "x$LINE" != x ; then
4670 eval "DEFAULT_$LINE"
4671 else
4672 no_cache=1
4673 fi
4674
4675 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
698dcdb6
VZ
4676
4677fi
10f2d63a
VZ
4678
4679
4680 eval "$ac_cv_use_dnd"
4681 if test "$no_cache" != 1; then
4682 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
4683 fi
4684
4685 if test "$wxUSE_DRAG_AND_DROP" = yes; then
698dcdb6 4686 echo "$ac_t""yes" 1>&6
10f2d63a 4687 else
698dcdb6 4688 echo "$ac_t""no" 1>&6
10f2d63a 4689 fi
698dcdb6 4690
10f2d63a 4691
698dcdb6 4692 echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6
54276ccf 4693echo "configure:4694: checking for --enable-metafile" >&5
b64f0a5f
RL
4694 no_cache=0
4695 # Check whether --enable-metafile or --disable-metafile was given.
4696if test "${enable_metafile+set}" = set; then
4697 enableval="$enable_metafile"
698dcdb6 4698
b64f0a5f
RL
4699 if test "$enableval" = yes; then
4700 ac_cv_use_metafile='wxUSE_METAFILE=yes'
4701 else
4702 ac_cv_use_metafile='wxUSE_METAFILE=no'
4703 fi
698dcdb6 4704
b64f0a5f 4705else
698dcdb6 4706
b64f0a5f
RL
4707 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
4708 if test "x$LINE" != x ; then
4709 eval "DEFAULT_$LINE"
4710 else
4711 no_cache=1
4712 fi
4713
4714 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
698dcdb6
VZ
4715
4716fi
b64f0a5f
RL
4717
4718
4719 eval "$ac_cv_use_metafile"
4720 if test "$no_cache" != 1; then
4721 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
4722 fi
4723
4724 if test "$wxUSE_METAFILE" = yes; then
698dcdb6 4725 echo "$ac_t""yes" 1>&6
b64f0a5f 4726 else
698dcdb6 4727 echo "$ac_t""no" 1>&6
b64f0a5f 4728 fi
698dcdb6
VZ
4729
4730
10f2d63a 4731
698dcdb6 4732 echo $ac_n "checking for --enable-wxtree""... $ac_c" 1>&6
54276ccf 4733echo "configure:4734: checking for --enable-wxtree" >&5
10f2d63a
VZ
4734 no_cache=0
4735 # Check whether --enable-wxtree or --disable-wxtree was given.
4736if test "${enable_wxtree+set}" = set; then
4737 enableval="$enable_wxtree"
698dcdb6 4738
10f2d63a
VZ
4739 if test "$enableval" = yes; then
4740 ac_cv_use_wxtree='wxUSE_WXTREE=yes'
4741 else
4742 ac_cv_use_wxtree='wxUSE_WXTREE=no'
4743 fi
698dcdb6 4744
10f2d63a 4745else
698dcdb6 4746
10f2d63a
VZ
4747 LINE=`grep "wxUSE_WXTREE" ${wx_arg_cache_file}`
4748 if test "x$LINE" != x ; then
4749 eval "DEFAULT_$LINE"
4750 else
4751 no_cache=1
4752 fi
4753
4754 ac_cv_use_wxtree='wxUSE_WXTREE='$DEFAULT_wxUSE_WXTREE
698dcdb6
VZ
4755
4756fi
10f2d63a
VZ
4757
4758
4759 eval "$ac_cv_use_wxtree"
4760 if test "$no_cache" != 1; then
4761 echo $ac_cv_use_wxtree >> ${wx_arg_cache_file}.tmp
4762 fi
4763
4764 if test "$wxUSE_WXTREE" = yes; then
698dcdb6 4765 echo "$ac_t""yes" 1>&6
10f2d63a 4766 else
698dcdb6 4767 echo "$ac_t""no" 1>&6
10f2d63a 4768 fi
698dcdb6 4769
10f2d63a 4770
698dcdb6
VZ
4771
4772
4773 echo $ac_n "checking for --enable-controls""... $ac_c" 1>&6
54276ccf 4774echo "configure:4775: checking for --enable-controls" >&5
10f2d63a
VZ
4775 no_cache=0
4776 # Check whether --enable-controls or --disable-controls was given.
4777if test "${enable_controls+set}" = set; then
4778 enableval="$enable_controls"
698dcdb6 4779
10f2d63a
VZ
4780 if test "$enableval" = yes; then
4781 ac_cv_use_controls='wxUSE_CONTROLS=yes'
4782 else
4783 ac_cv_use_controls='wxUSE_CONTROLS=no'
4784 fi
698dcdb6 4785
10f2d63a 4786else
698dcdb6 4787
10f2d63a
VZ
4788 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
4789 if test "x$LINE" != x ; then
4790 eval "DEFAULT_$LINE"
4791 else
4792 no_cache=1
4793 fi
4794
4795 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
698dcdb6
VZ
4796
4797fi
10f2d63a
VZ
4798
4799
4800 eval "$ac_cv_use_controls"
4801 if test "$no_cache" != 1; then
4802 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
4803 fi
4804
4805 if test "$wxUSE_CONTROLS" = yes; then
698dcdb6 4806 echo "$ac_t""yes" 1>&6
10f2d63a 4807 else
698dcdb6 4808 echo "$ac_t""no" 1>&6
10f2d63a 4809 fi
698dcdb6 4810
10f2d63a
VZ
4811
4812if test "$wxUSE_CONTROLS" = "yes"; then
4813 DEFAULT_wxUSE_ACCEL=yes
1e6feb95
VZ
4814 DEFAULT_wxUSE_BMPBUTTON=yes
4815 DEFAULT_wxUSE_BUTTON=yes
4816 DEFAULT_wxUSE_CALCTRL=no
10f2d63a
VZ
4817 DEFAULT_wxUSE_CARET=yes
4818 DEFAULT_wxUSE_COMBOBOX=yes
10f2d63a
VZ
4819 DEFAULT_wxUSE_CHECKBOX=yes
4820 DEFAULT_wxUSE_CHECKLISTBOX=yes
4821 DEFAULT_wxUSE_CHOICE=yes
4822 DEFAULT_wxUSE_GAUGE=yes
4823 DEFAULT_wxUSE_GRID=yes
cc977e5f 4824 DEFAULT_wxUSE_NEW_GRID=yes
10f2d63a
VZ
4825 DEFAULT_wxUSE_IMAGLIST=yes
4826 DEFAULT_wxUSE_LISTBOX=yes
4827 DEFAULT_wxUSE_LISTCTRL=yes
4828 DEFAULT_wxUSE_NOTEBOOK=yes
4829 DEFAULT_wxUSE_RADIOBOX=yes
4830 DEFAULT_wxUSE_RADIOBTN=yes
4831 DEFAULT_wxUSE_SASH=yes
4832 DEFAULT_wxUSE_SCROLLBAR=yes
4833 DEFAULT_wxUSE_SLIDER=yes
4834 DEFAULT_wxUSE_SPINBTN=yes
56cfaa52 4835 DEFAULT_wxUSE_SPINCTRL=yes
10f2d63a
VZ
4836 DEFAULT_wxUSE_SPLITTER=yes
4837 DEFAULT_wxUSE_STATBMP=yes
4838 DEFAULT_wxUSE_STATBOX=yes
4839 DEFAULT_wxUSE_STATLINE=yes
4840 DEFAULT_wxUSE_STATUSBAR=yes
4841 DEFAULT_wxUSE_TAB_DIALOG=yes
1db8dc4a 4842 DEFAULT_wxUSE_TOGGLEBTN=yes
10f2d63a 4843 DEFAULT_wxUSE_TOOLBAR=yes
360d6699
VZ
4844 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
4845 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
10f2d63a
VZ
4846 DEFAULT_wxUSE_TOOLTIPS=yes
4847 DEFAULT_wxUSE_TREECTRL=yes
4848elif test "$wxUSE_CONTROLS" = "no"; then
4849 DEFAULT_wxUSE_ACCEL=no
1e6feb95
VZ
4850 DEFAULT_wxUSE_BMPBUTTON=no
4851 DEFAULT_wxUSE_BUTTON=no
4852 DEFAULT_wxUSE_CALCTRL=no
10f2d63a
VZ
4853 DEFAULT_wxUSE_CARET=no
4854 DEFAULT_wxUSE_COMBOBOX=no
10f2d63a
VZ
4855 DEFAULT_wxUSE_CHECKBOX=no
4856 DEFAULT_wxUSE_CHECKLISTBOX=no
4857 DEFAULT_wxUSE_CHOICE=no
4858 DEFAULT_wxUSE_GAUGE=no
4859 DEFAULT_wxUSE_GRID=no
4860 DEFAULT_wxUSE_NEW_GRID=no
4861 DEFAULT_wxUSE_IMAGLIST=no
4862 DEFAULT_wxUSE_LISTBOX=no
4863 DEFAULT_wxUSE_LISTCTRL=no
4864 DEFAULT_wxUSE_NOTEBOOK=no
4865 DEFAULT_wxUSE_RADIOBOX=no
4866 DEFAULT_wxUSE_RADIOBTN=no
4867 DEFAULT_wxUSE_SASH=no
4868 DEFAULT_wxUSE_SCROLLBAR=no
4869 DEFAULT_wxUSE_SLIDER=no
4870 DEFAULT_wxUSE_SPINBTN=no
56cfaa52 4871 DEFAULT_wxUSE_SPINCTRL=no
10f2d63a
VZ
4872 DEFAULT_wxUSE_SPLITTER=no
4873 DEFAULT_wxUSE_STATBMP=no
4874 DEFAULT_wxUSE_STATBOX=no
4875 DEFAULT_wxUSE_STATLINE=no
4876 DEFAULT_wxUSE_STATUSBAR=no
4877 DEFAULT_wxUSE_TAB_DIALOG=no
1db8dc4a 4878 DEFAULT_wxUSE_TOGGLEBTN=no
10f2d63a 4879 DEFAULT_wxUSE_TOOLBAR=no
360d6699
VZ
4880 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
4881 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
10f2d63a
VZ
4882 DEFAULT_wxUSE_TOOLTIPS=no
4883 DEFAULT_wxUSE_TREECTRL=no
4884fi
4885
698dcdb6
VZ
4886
4887 echo $ac_n "checking for --enable-accel""... $ac_c" 1>&6
54276ccf 4888echo "configure:4889: checking for --enable-accel" >&5
10f2d63a
VZ
4889 no_cache=0
4890 # Check whether --enable-accel or --disable-accel was given.
4891if test "${enable_accel+set}" = set; then
4892 enableval="$enable_accel"
698dcdb6 4893
10f2d63a
VZ
4894 if test "$enableval" = yes; then
4895 ac_cv_use_accel='wxUSE_ACCEL=yes'
4896 else
4897 ac_cv_use_accel='wxUSE_ACCEL=no'
4898 fi
698dcdb6 4899
10f2d63a 4900else
698dcdb6 4901
10f2d63a
VZ
4902 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
4903 if test "x$LINE" != x ; then
4904 eval "DEFAULT_$LINE"
4905 else
4906 no_cache=1
4907 fi
4908
4909 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
698dcdb6
VZ
4910
4911fi
10f2d63a
VZ
4912
4913
4914 eval "$ac_cv_use_accel"
4915 if test "$no_cache" != 1; then
4916 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
4917 fi
4918
4919 if test "$wxUSE_ACCEL" = yes; then
698dcdb6 4920 echo "$ac_t""yes" 1>&6
10f2d63a 4921 else
698dcdb6 4922 echo "$ac_t""no" 1>&6
10f2d63a 4923 fi
698dcdb6 4924
10f2d63a 4925
1e6feb95 4926 echo $ac_n "checking for --enable-button""... $ac_c" 1>&6
54276ccf 4927echo "configure:4928: checking for --enable-button" >&5
10f2d63a 4928 no_cache=0
1e6feb95
VZ
4929 # Check whether --enable-button or --disable-button was given.
4930if test "${enable_button+set}" = set; then
4931 enableval="$enable_button"
698dcdb6 4932
10f2d63a 4933 if test "$enableval" = yes; then
1e6feb95 4934 ac_cv_use_button='wxUSE_BUTTON=yes'
10f2d63a 4935 else
1e6feb95 4936 ac_cv_use_button='wxUSE_BUTTON=no'
10f2d63a 4937 fi
698dcdb6 4938
10f2d63a 4939else
698dcdb6 4940
1e6feb95 4941 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
10f2d63a
VZ
4942 if test "x$LINE" != x ; then
4943 eval "DEFAULT_$LINE"
4944 else
4945 no_cache=1
4946 fi
4947
1e6feb95 4948 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
698dcdb6
VZ
4949
4950fi
10f2d63a
VZ
4951
4952
1e6feb95 4953 eval "$ac_cv_use_button"
10f2d63a 4954 if test "$no_cache" != 1; then
1e6feb95 4955 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4956 fi
4957
1e6feb95 4958 if test "$wxUSE_BUTTON" = yes; then
698dcdb6 4959 echo "$ac_t""yes" 1>&6
10f2d63a 4960 else
698dcdb6 4961 echo "$ac_t""no" 1>&6
10f2d63a 4962 fi
698dcdb6 4963
10f2d63a 4964
698dcdb6 4965 echo $ac_n "checking for --enable-bmpbutton""... $ac_c" 1>&6
54276ccf 4966echo "configure:4967: checking for --enable-bmpbutton" >&5
10f2d63a
VZ
4967 no_cache=0
4968 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
4969if test "${enable_bmpbutton+set}" = set; then
4970 enableval="$enable_bmpbutton"
698dcdb6 4971
10f2d63a
VZ
4972 if test "$enableval" = yes; then
4973 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
4974 else
4975 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
4976 fi
698dcdb6 4977
10f2d63a 4978else
698dcdb6 4979
10f2d63a
VZ
4980 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
4981 if test "x$LINE" != x ; then
4982 eval "DEFAULT_$LINE"
4983 else
4984 no_cache=1
4985 fi
4986
4987 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
698dcdb6
VZ
4988
4989fi
10f2d63a
VZ
4990
4991
4992 eval "$ac_cv_use_bmpbutton"
4993 if test "$no_cache" != 1; then
4994 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
4995 fi
4996
4997 if test "$wxUSE_BMPBUTTON" = yes; then
698dcdb6 4998 echo "$ac_t""yes" 1>&6
10f2d63a 4999 else
698dcdb6 5000 echo "$ac_t""no" 1>&6
10f2d63a 5001 fi
698dcdb6 5002
10f2d63a 5003
1e6feb95 5004 echo $ac_n "checking for --enable-calendar""... $ac_c" 1>&6
54276ccf 5005echo "configure:5006: checking for --enable-calendar" >&5
1e6feb95
VZ
5006 no_cache=0
5007 # Check whether --enable-calendar or --disable-calendar was given.
5008if test "${enable_calendar+set}" = set; then
5009 enableval="$enable_calendar"
5010
5011 if test "$enableval" = yes; then
5012 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
5013 else
5014 ac_cv_use_calendar='wxUSE_CALCTRL=no'
5015 fi
5016
5017else
5018
5019 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
5020 if test "x$LINE" != x ; then
5021 eval "DEFAULT_$LINE"
5022 else
5023 no_cache=1
5024 fi
5025
5026 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
5027
5028fi
5029
5030
5031 eval "$ac_cv_use_calendar"
5032 if test "$no_cache" != 1; then
5033 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
5034 fi
5035
5036 if test "$wxUSE_CALCTRL" = yes; then
5037 echo "$ac_t""yes" 1>&6
5038 else
5039 echo "$ac_t""no" 1>&6
5040 fi
5041
5042
5043 echo $ac_n "checking for --enable-caret""... $ac_c" 1>&6
54276ccf 5044echo "configure:5045: checking for --enable-caret" >&5
1e6feb95
VZ
5045 no_cache=0
5046 # Check whether --enable-caret or --disable-caret was given.
5047if test "${enable_caret+set}" = set; then
5048 enableval="$enable_caret"
5049
5050 if test "$enableval" = yes; then
5051 ac_cv_use_caret='wxUSE_CARET=yes'
5052 else
5053 ac_cv_use_caret='wxUSE_CARET=no'
5054 fi
5055
5056else
5057
5058 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
5059 if test "x$LINE" != x ; then
5060 eval "DEFAULT_$LINE"
5061 else
5062 no_cache=1
5063 fi
5064
5065 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
5066
5067fi
5068
5069
5070 eval "$ac_cv_use_caret"
5071 if test "$no_cache" != 1; then
5072 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
5073 fi
5074
5075 if test "$wxUSE_CARET" = yes; then
5076 echo "$ac_t""yes" 1>&6
5077 else
5078 echo "$ac_t""no" 1>&6
5079 fi
5080
5081
698dcdb6 5082 echo $ac_n "checking for --enable-checkbox""... $ac_c" 1>&6
54276ccf 5083echo "configure:5084: checking for --enable-checkbox" >&5
10f2d63a
VZ
5084 no_cache=0
5085 # Check whether --enable-checkbox or --disable-checkbox was given.
5086if test "${enable_checkbox+set}" = set; then
5087 enableval="$enable_checkbox"
698dcdb6 5088
10f2d63a
VZ
5089 if test "$enableval" = yes; then
5090 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
5091 else
5092 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
5093 fi
698dcdb6 5094
10f2d63a 5095else
698dcdb6 5096
10f2d63a
VZ
5097 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
5098 if test "x$LINE" != x ; then
5099 eval "DEFAULT_$LINE"
5100 else
5101 no_cache=1
5102 fi
5103
5104 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
698dcdb6
VZ
5105
5106fi
10f2d63a
VZ
5107
5108
5109 eval "$ac_cv_use_checkbox"
5110 if test "$no_cache" != 1; then
5111 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
5112 fi
5113
5114 if test "$wxUSE_CHECKBOX" = yes; then
698dcdb6 5115 echo "$ac_t""yes" 1>&6
10f2d63a 5116 else
698dcdb6 5117 echo "$ac_t""no" 1>&6
10f2d63a 5118 fi
698dcdb6 5119
10f2d63a 5120
698dcdb6 5121 echo $ac_n "checking for --enable-checklst""... $ac_c" 1>&6
54276ccf 5122echo "configure:5123: checking for --enable-checklst" >&5
10f2d63a
VZ
5123 no_cache=0
5124 # Check whether --enable-checklst or --disable-checklst was given.
5125if test "${enable_checklst+set}" = set; then
5126 enableval="$enable_checklst"
698dcdb6 5127
10f2d63a
VZ
5128 if test "$enableval" = yes; then
5129 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
5130 else
5131 ac_cv_use_checklst='wxUSE_CHECKLST=no'
5132 fi
698dcdb6 5133
10f2d63a 5134else
698dcdb6 5135
10f2d63a
VZ
5136 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
5137 if test "x$LINE" != x ; then
5138 eval "DEFAULT_$LINE"
5139 else
5140 no_cache=1
5141 fi
5142
5143 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
698dcdb6
VZ
5144
5145fi
10f2d63a
VZ
5146
5147
5148 eval "$ac_cv_use_checklst"
5149 if test "$no_cache" != 1; then
5150 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
5151 fi
5152
5153 if test "$wxUSE_CHECKLST" = yes; then
698dcdb6 5154 echo "$ac_t""yes" 1>&6
10f2d63a 5155 else
698dcdb6 5156 echo "$ac_t""no" 1>&6
10f2d63a 5157 fi
698dcdb6 5158
10f2d63a 5159
698dcdb6 5160 echo $ac_n "checking for --enable-choice""... $ac_c" 1>&6
54276ccf 5161echo "configure:5162: checking for --enable-choice" >&5
10f2d63a
VZ
5162 no_cache=0
5163 # Check whether --enable-choice or --disable-choice was given.
5164if test "${enable_choice+set}" = set; then
5165 enableval="$enable_choice"
698dcdb6 5166
10f2d63a
VZ
5167 if test "$enableval" = yes; then
5168 ac_cv_use_choice='wxUSE_CHOICE=yes'
5169 else
5170 ac_cv_use_choice='wxUSE_CHOICE=no'
5171 fi
698dcdb6 5172
10f2d63a 5173else
698dcdb6 5174
10f2d63a
VZ
5175 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
5176 if test "x$LINE" != x ; then
5177 eval "DEFAULT_$LINE"
5178 else
5179 no_cache=1
5180 fi
5181
5182 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
698dcdb6
VZ
5183
5184fi
10f2d63a
VZ
5185
5186
5187 eval "$ac_cv_use_choice"
5188 if test "$no_cache" != 1; then
5189 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
5190 fi
5191
5192 if test "$wxUSE_CHOICE" = yes; then
698dcdb6 5193 echo "$ac_t""yes" 1>&6
10f2d63a 5194 else
698dcdb6 5195 echo "$ac_t""no" 1>&6
10f2d63a 5196 fi
698dcdb6 5197
10f2d63a 5198
698dcdb6 5199 echo $ac_n "checking for --enable-combobox""... $ac_c" 1>&6
54276ccf 5200echo "configure:5201: checking for --enable-combobox" >&5
10f2d63a
VZ
5201 no_cache=0
5202 # Check whether --enable-combobox or --disable-combobox was given.
5203if test "${enable_combobox+set}" = set; then
5204 enableval="$enable_combobox"
698dcdb6 5205
10f2d63a
VZ
5206 if test "$enableval" = yes; then
5207 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
5208 else
5209 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
5210 fi
698dcdb6 5211
10f2d63a 5212else
698dcdb6 5213
10f2d63a
VZ
5214 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
5215 if test "x$LINE" != x ; then
5216 eval "DEFAULT_$LINE"
5217 else
5218 no_cache=1
5219 fi
5220
5221 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
698dcdb6
VZ
5222
5223fi
10f2d63a
VZ
5224
5225
5226 eval "$ac_cv_use_combobox"
5227 if test "$no_cache" != 1; then
5228 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
5229 fi
5230
5231 if test "$wxUSE_COMBOBOX" = yes; then
698dcdb6 5232 echo "$ac_t""yes" 1>&6
10f2d63a 5233 else
698dcdb6 5234 echo "$ac_t""no" 1>&6
10f2d63a 5235 fi
698dcdb6 5236
10f2d63a 5237
698dcdb6 5238 echo $ac_n "checking for --enable-gauge""... $ac_c" 1>&6
54276ccf 5239echo "configure:5240: checking for --enable-gauge" >&5
10f2d63a
VZ
5240 no_cache=0
5241 # Check whether --enable-gauge or --disable-gauge was given.
5242if test "${enable_gauge+set}" = set; then
5243 enableval="$enable_gauge"
698dcdb6 5244
10f2d63a
VZ
5245 if test "$enableval" = yes; then
5246 ac_cv_use_gauge='wxUSE_GAUGE=yes'
5247 else
5248 ac_cv_use_gauge='wxUSE_GAUGE=no'
5249 fi
698dcdb6 5250
10f2d63a 5251else
698dcdb6 5252
10f2d63a
VZ
5253 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
5254 if test "x$LINE" != x ; then
5255 eval "DEFAULT_$LINE"
5256 else
5257 no_cache=1
5258 fi
5259
5260 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
698dcdb6
VZ
5261
5262fi
10f2d63a
VZ
5263
5264
5265 eval "$ac_cv_use_gauge"
5266 if test "$no_cache" != 1; then
5267 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
5268 fi
5269
5270 if test "$wxUSE_GAUGE" = yes; then
698dcdb6 5271 echo "$ac_t""yes" 1>&6
10f2d63a 5272 else
698dcdb6 5273 echo "$ac_t""no" 1>&6
10f2d63a 5274 fi
698dcdb6 5275
10f2d63a 5276
698dcdb6 5277 echo $ac_n "checking for --enable-grid""... $ac_c" 1>&6
54276ccf 5278echo "configure:5279: checking for --enable-grid" >&5
10f2d63a
VZ
5279 no_cache=0
5280 # Check whether --enable-grid or --disable-grid was given.
5281if test "${enable_grid+set}" = set; then
5282 enableval="$enable_grid"
698dcdb6 5283
10f2d63a
VZ
5284 if test "$enableval" = yes; then
5285 ac_cv_use_grid='wxUSE_GRID=yes'
5286 else
5287 ac_cv_use_grid='wxUSE_GRID=no'
5288 fi
698dcdb6 5289
10f2d63a 5290else
698dcdb6 5291
10f2d63a
VZ
5292 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
5293 if test "x$LINE" != x ; then
5294 eval "DEFAULT_$LINE"
5295 else
5296 no_cache=1
5297 fi
5298
5299 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
698dcdb6
VZ
5300
5301fi
10f2d63a
VZ
5302
5303
5304 eval "$ac_cv_use_grid"
5305 if test "$no_cache" != 1; then
5306 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
5307 fi
5308
5309 if test "$wxUSE_GRID" = yes; then
698dcdb6 5310 echo "$ac_t""yes" 1>&6
10f2d63a 5311 else
698dcdb6 5312 echo "$ac_t""no" 1>&6
10f2d63a 5313 fi
698dcdb6 5314
10f2d63a 5315
698dcdb6 5316 echo $ac_n "checking for --enable-newgrid""... $ac_c" 1>&6
54276ccf 5317echo "configure:5318: checking for --enable-newgrid" >&5
10f2d63a
VZ
5318 no_cache=0
5319 # Check whether --enable-newgrid or --disable-newgrid was given.
5320if test "${enable_newgrid+set}" = set; then
5321 enableval="$enable_newgrid"
698dcdb6 5322
10f2d63a
VZ
5323 if test "$enableval" = yes; then
5324 ac_cv_use_newgrid='wxUSE_NEW_GRID=yes'
5325 else
5326 ac_cv_use_newgrid='wxUSE_NEW_GRID=no'
5327 fi
698dcdb6 5328
10f2d63a 5329else
698dcdb6 5330
10f2d63a
VZ
5331 LINE=`grep "wxUSE_NEW_GRID" ${wx_arg_cache_file}`
5332 if test "x$LINE" != x ; then
5333 eval "DEFAULT_$LINE"
5334 else
5335 no_cache=1
5336 fi
5337
5338 ac_cv_use_newgrid='wxUSE_NEW_GRID='$DEFAULT_wxUSE_NEW_GRID
698dcdb6
VZ
5339
5340fi
10f2d63a
VZ
5341
5342
5343 eval "$ac_cv_use_newgrid"
5344 if test "$no_cache" != 1; then
5345 echo $ac_cv_use_newgrid >> ${wx_arg_cache_file}.tmp
5346 fi
5347
5348 if test "$wxUSE_NEW_GRID" = yes; then
698dcdb6 5349 echo "$ac_t""yes" 1>&6
10f2d63a 5350 else
698dcdb6 5351 echo "$ac_t""no" 1>&6
10f2d63a 5352 fi
698dcdb6 5353
10f2d63a 5354
698dcdb6 5355 echo $ac_n "checking for --enable-imaglist""... $ac_c" 1>&6
54276ccf 5356echo "configure:5357: checking for --enable-imaglist" >&5
10f2d63a
VZ
5357 no_cache=0
5358 # Check whether --enable-imaglist or --disable-imaglist was given.
5359if test "${enable_imaglist+set}" = set; then
5360 enableval="$enable_imaglist"
698dcdb6 5361
10f2d63a
VZ
5362 if test "$enableval" = yes; then
5363 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
5364 else
5365 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
5366 fi
698dcdb6 5367
10f2d63a 5368else
698dcdb6 5369
10f2d63a
VZ
5370 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
5371 if test "x$LINE" != x ; then
5372 eval "DEFAULT_$LINE"
5373 else
5374 no_cache=1
5375 fi
5376
5377 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
698dcdb6
VZ
5378
5379fi
10f2d63a
VZ
5380
5381
5382 eval "$ac_cv_use_imaglist"
5383 if test "$no_cache" != 1; then
5384 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
5385 fi
5386
5387 if test "$wxUSE_IMAGLIST" = yes; then
698dcdb6 5388 echo "$ac_t""yes" 1>&6
10f2d63a 5389 else
698dcdb6 5390 echo "$ac_t""no" 1>&6
10f2d63a 5391 fi
698dcdb6 5392
10f2d63a 5393
698dcdb6 5394 echo $ac_n "checking for --enable-listbox""... $ac_c" 1>&6
54276ccf 5395echo "configure:5396: checking for --enable-listbox" >&5
10f2d63a
VZ
5396 no_cache=0
5397 # Check whether --enable-listbox or --disable-listbox was given.
5398if test "${enable_listbox+set}" = set; then
5399 enableval="$enable_listbox"
698dcdb6 5400
10f2d63a
VZ
5401 if test "$enableval" = yes; then
5402 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
5403 else
5404 ac_cv_use_listbox='wxUSE_LISTBOX=no'
5405 fi
698dcdb6 5406
10f2d63a 5407else
698dcdb6 5408
10f2d63a
VZ
5409 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
5410 if test "x$LINE" != x ; then
5411 eval "DEFAULT_$LINE"
5412 else
5413 no_cache=1
5414 fi
5415
5416 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
698dcdb6
VZ
5417
5418fi
10f2d63a
VZ
5419
5420
5421 eval "$ac_cv_use_listbox"
5422 if test "$no_cache" != 1; then
5423 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
5424 fi
5425
5426 if test "$wxUSE_LISTBOX" = yes; then
698dcdb6 5427 echo "$ac_t""yes" 1>&6
10f2d63a 5428 else
698dcdb6 5429 echo "$ac_t""no" 1>&6
10f2d63a 5430 fi
698dcdb6 5431
10f2d63a 5432
698dcdb6 5433 echo $ac_n "checking for --enable-listctrl""... $ac_c" 1>&6
54276ccf 5434echo "configure:5435: checking for --enable-listctrl" >&5
10f2d63a
VZ
5435 no_cache=0
5436 # Check whether --enable-listctrl or --disable-listctrl was given.
5437if test "${enable_listctrl+set}" = set; then
5438 enableval="$enable_listctrl"
698dcdb6 5439
10f2d63a
VZ
5440 if test "$enableval" = yes; then
5441 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
5442 else
5443 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
5444 fi
698dcdb6 5445
10f2d63a 5446else
698dcdb6 5447
10f2d63a
VZ
5448 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
5449 if test "x$LINE" != x ; then
5450 eval "DEFAULT_$LINE"
5451 else
5452 no_cache=1
5453 fi
5454
5455 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
698dcdb6
VZ
5456
5457fi
10f2d63a
VZ
5458
5459
5460 eval "$ac_cv_use_listctrl"
5461 if test "$no_cache" != 1; then
5462 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
5463 fi
5464
5465 if test "$wxUSE_LISTCTRL" = yes; then
698dcdb6 5466 echo "$ac_t""yes" 1>&6
10f2d63a 5467 else
698dcdb6 5468 echo "$ac_t""no" 1>&6
10f2d63a 5469 fi
698dcdb6 5470
10f2d63a 5471
698dcdb6 5472 echo $ac_n "checking for --enable-notebook""... $ac_c" 1>&6
54276ccf 5473echo "configure:5474: checking for --enable-notebook" >&5
10f2d63a
VZ
5474 no_cache=0
5475 # Check whether --enable-notebook or --disable-notebook was given.
5476if test "${enable_notebook+set}" = set; then
5477 enableval="$enable_notebook"
698dcdb6 5478
10f2d63a
VZ
5479 if test "$enableval" = yes; then
5480 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
5481 else
5482 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
5483 fi
698dcdb6 5484
10f2d63a 5485else
698dcdb6 5486
10f2d63a
VZ
5487 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
5488 if test "x$LINE" != x ; then
5489 eval "DEFAULT_$LINE"
5490 else
5491 no_cache=1
5492 fi
5493
5494 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
698dcdb6
VZ
5495
5496fi
10f2d63a
VZ
5497
5498
5499 eval "$ac_cv_use_notebook"
5500 if test "$no_cache" != 1; then
5501 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
5502 fi
5503
5504 if test "$wxUSE_NOTEBOOK" = yes; then
698dcdb6 5505 echo "$ac_t""yes" 1>&6
10f2d63a 5506 else
698dcdb6 5507 echo "$ac_t""no" 1>&6
10f2d63a 5508 fi
698dcdb6 5509
10f2d63a 5510
698dcdb6 5511 echo $ac_n "checking for --enable-radiobox""... $ac_c" 1>&6
54276ccf 5512echo "configure:5513: checking for --enable-radiobox" >&5
10f2d63a
VZ
5513 no_cache=0
5514 # Check whether --enable-radiobox or --disable-radiobox was given.
5515if test "${enable_radiobox+set}" = set; then
5516 enableval="$enable_radiobox"
698dcdb6 5517
10f2d63a
VZ
5518 if test "$enableval" = yes; then
5519 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
5520 else
5521 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
5522 fi
698dcdb6 5523
10f2d63a 5524else
698dcdb6 5525
10f2d63a
VZ
5526 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
5527 if test "x$LINE" != x ; then
5528 eval "DEFAULT_$LINE"
5529 else
5530 no_cache=1
5531 fi
5532
5533 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
698dcdb6
VZ
5534
5535fi
10f2d63a
VZ
5536
5537
5538 eval "$ac_cv_use_radiobox"
5539 if test "$no_cache" != 1; then
5540 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
5541 fi
5542
5543 if test "$wxUSE_RADIOBOX" = yes; then
698dcdb6 5544 echo "$ac_t""yes" 1>&6
10f2d63a 5545 else
698dcdb6 5546 echo "$ac_t""no" 1>&6
10f2d63a 5547 fi
698dcdb6 5548
10f2d63a 5549
698dcdb6 5550 echo $ac_n "checking for --enable-radiobtn""... $ac_c" 1>&6
54276ccf 5551echo "configure:5552: checking for --enable-radiobtn" >&5
10f2d63a
VZ
5552 no_cache=0
5553 # Check whether --enable-radiobtn or --disable-radiobtn was given.
5554if test "${enable_radiobtn+set}" = set; then
5555 enableval="$enable_radiobtn"
698dcdb6 5556
10f2d63a
VZ
5557 if test "$enableval" = yes; then
5558 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
5559 else
5560 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
5561 fi
698dcdb6 5562
10f2d63a 5563else
698dcdb6 5564
10f2d63a
VZ
5565 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
5566 if test "x$LINE" != x ; then
5567 eval "DEFAULT_$LINE"
5568 else
5569 no_cache=1
5570 fi
5571
5572 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
698dcdb6
VZ
5573
5574fi
10f2d63a
VZ
5575
5576
5577 eval "$ac_cv_use_radiobtn"
5578 if test "$no_cache" != 1; then
5579 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
5580 fi
5581
5582 if test "$wxUSE_RADIOBTN" = yes; then
698dcdb6 5583 echo "$ac_t""yes" 1>&6
10f2d63a 5584 else
698dcdb6 5585 echo "$ac_t""no" 1>&6
10f2d63a 5586 fi
698dcdb6 5587
10f2d63a 5588
698dcdb6 5589 echo $ac_n "checking for --enable-sash""... $ac_c" 1>&6
54276ccf 5590echo "configure:5591: checking for --enable-sash" >&5
10f2d63a
VZ
5591 no_cache=0
5592 # Check whether --enable-sash or --disable-sash was given.
5593if test "${enable_sash+set}" = set; then
5594 enableval="$enable_sash"
698dcdb6 5595
10f2d63a
VZ
5596 if test "$enableval" = yes; then
5597 ac_cv_use_sash='wxUSE_SASH=yes'
5598 else
5599 ac_cv_use_sash='wxUSE_SASH=no'
5600 fi
698dcdb6 5601
10f2d63a 5602else
698dcdb6 5603
10f2d63a
VZ
5604 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
5605 if test "x$LINE" != x ; then
5606 eval "DEFAULT_$LINE"
5607 else
5608 no_cache=1
5609 fi
5610
5611 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
698dcdb6
VZ
5612
5613fi
10f2d63a
VZ
5614
5615
5616 eval "$ac_cv_use_sash"
5617 if test "$no_cache" != 1; then
5618 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
5619 fi
5620
5621 if test "$wxUSE_SASH" = yes; then
698dcdb6 5622 echo "$ac_t""yes" 1>&6
10f2d63a 5623 else
698dcdb6 5624 echo "$ac_t""no" 1>&6
10f2d63a 5625 fi
698dcdb6 5626
10f2d63a 5627
698dcdb6 5628 echo $ac_n "checking for --enable-scrollbar""... $ac_c" 1>&6
54276ccf 5629echo "configure:5630: checking for --enable-scrollbar" >&5
10f2d63a
VZ
5630 no_cache=0
5631 # Check whether --enable-scrollbar or --disable-scrollbar was given.
5632if test "${enable_scrollbar+set}" = set; then
5633 enableval="$enable_scrollbar"
698dcdb6 5634
10f2d63a
VZ
5635 if test "$enableval" = yes; then
5636 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
5637 else
5638 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
5639 fi
698dcdb6 5640
10f2d63a 5641else
698dcdb6 5642
10f2d63a
VZ
5643 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
5644 if test "x$LINE" != x ; then
5645 eval "DEFAULT_$LINE"
5646 else
5647 no_cache=1
5648 fi
5649
5650 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
698dcdb6
VZ
5651
5652fi
10f2d63a
VZ
5653
5654
5655 eval "$ac_cv_use_scrollbar"
5656 if test "$no_cache" != 1; then
5657 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
5658 fi
5659
5660 if test "$wxUSE_SCROLLBAR" = yes; then
698dcdb6 5661 echo "$ac_t""yes" 1>&6
10f2d63a 5662 else
698dcdb6 5663 echo "$ac_t""no" 1>&6
10f2d63a 5664 fi
698dcdb6 5665
10f2d63a 5666
698dcdb6 5667 echo $ac_n "checking for --enable-slider""... $ac_c" 1>&6
54276ccf 5668echo "configure:5669: checking for --enable-slider" >&5
10f2d63a
VZ
5669 no_cache=0
5670 # Check whether --enable-slider or --disable-slider was given.
5671if test "${enable_slider+set}" = set; then
5672 enableval="$enable_slider"
698dcdb6 5673
10f2d63a
VZ
5674 if test "$enableval" = yes; then
5675 ac_cv_use_slider='wxUSE_SLIDER=yes'
5676 else
5677 ac_cv_use_slider='wxUSE_SLIDER=no'
5678 fi
698dcdb6 5679
10f2d63a 5680else
698dcdb6 5681
10f2d63a
VZ
5682 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
5683 if test "x$LINE" != x ; then
5684 eval "DEFAULT_$LINE"
5685 else
5686 no_cache=1
5687 fi
5688
5689 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
698dcdb6
VZ
5690
5691fi
10f2d63a
VZ
5692
5693
5694 eval "$ac_cv_use_slider"
5695 if test "$no_cache" != 1; then
5696 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
5697 fi
5698
5699 if test "$wxUSE_SLIDER" = yes; then
698dcdb6 5700 echo "$ac_t""yes" 1>&6
10f2d63a 5701 else
698dcdb6 5702 echo "$ac_t""no" 1>&6
10f2d63a 5703 fi
698dcdb6 5704
10f2d63a 5705
698dcdb6 5706 echo $ac_n "checking for --enable-spinbtn""... $ac_c" 1>&6
54276ccf 5707echo "configure:5708: checking for --enable-spinbtn" >&5
10f2d63a
VZ
5708 no_cache=0
5709 # Check whether --enable-spinbtn or --disable-spinbtn was given.
5710if test "${enable_spinbtn+set}" = set; then
5711 enableval="$enable_spinbtn"
698dcdb6 5712
10f2d63a
VZ
5713 if test "$enableval" = yes; then
5714 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
5715 else
5716 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
5717 fi
698dcdb6 5718
10f2d63a 5719else
698dcdb6 5720
10f2d63a
VZ
5721 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
5722 if test "x$LINE" != x ; then
5723 eval "DEFAULT_$LINE"
5724 else
5725 no_cache=1
5726 fi
5727
5728 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
698dcdb6
VZ
5729
5730fi
10f2d63a
VZ
5731
5732
5733 eval "$ac_cv_use_spinbtn"
5734 if test "$no_cache" != 1; then
5735 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
5736 fi
5737
5738 if test "$wxUSE_SPINBTN" = yes; then
698dcdb6 5739 echo "$ac_t""yes" 1>&6
10f2d63a 5740 else
698dcdb6 5741 echo "$ac_t""no" 1>&6
10f2d63a 5742 fi
698dcdb6 5743
10f2d63a 5744
698dcdb6 5745 echo $ac_n "checking for --enable-spinctrl""... $ac_c" 1>&6
54276ccf 5746echo "configure:5747: checking for --enable-spinctrl" >&5
56cfaa52
RR
5747 no_cache=0
5748 # Check whether --enable-spinctrl or --disable-spinctrl was given.
5749if test "${enable_spinctrl+set}" = set; then
5750 enableval="$enable_spinctrl"
698dcdb6 5751
56cfaa52
RR
5752 if test "$enableval" = yes; then
5753 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
5754 else
5755 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
5756 fi
698dcdb6 5757
56cfaa52 5758else
698dcdb6 5759
56cfaa52
RR
5760 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
5761 if test "x$LINE" != x ; then
5762 eval "DEFAULT_$LINE"
5763 else
5764 no_cache=1
5765 fi
5766
5767 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
698dcdb6
VZ
5768
5769fi
56cfaa52
RR
5770
5771
5772 eval "$ac_cv_use_spinctrl"
5773 if test "$no_cache" != 1; then
5774 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
5775 fi
5776
5777 if test "$wxUSE_SPINCTRL" = yes; then
698dcdb6 5778 echo "$ac_t""yes" 1>&6
56cfaa52 5779 else
698dcdb6 5780 echo "$ac_t""no" 1>&6
56cfaa52 5781 fi
698dcdb6 5782
56cfaa52 5783
698dcdb6 5784 echo $ac_n "checking for --enable-splitter""... $ac_c" 1>&6
54276ccf 5785echo "configure:5786: checking for --enable-splitter" >&5
10f2d63a
VZ
5786 no_cache=0
5787 # Check whether --enable-splitter or --disable-splitter was given.
5788if test "${enable_splitter+set}" = set; then
5789 enableval="$enable_splitter"
698dcdb6 5790
10f2d63a
VZ
5791 if test "$enableval" = yes; then
5792 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
5793 else
5794 ac_cv_use_splitter='wxUSE_SPLITTER=no'
5795 fi
698dcdb6 5796
10f2d63a 5797else
698dcdb6 5798
10f2d63a
VZ
5799 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
5800 if test "x$LINE" != x ; then
5801 eval "DEFAULT_$LINE"
5802 else
5803 no_cache=1
5804 fi
5805
5806 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
698dcdb6
VZ
5807
5808fi
10f2d63a
VZ
5809
5810
5811 eval "$ac_cv_use_splitter"
5812 if test "$no_cache" != 1; then
5813 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
5814 fi
5815
5816 if test "$wxUSE_SPLITTER" = yes; then
698dcdb6 5817 echo "$ac_t""yes" 1>&6
10f2d63a 5818 else
698dcdb6 5819 echo "$ac_t""no" 1>&6
10f2d63a 5820 fi
698dcdb6 5821
10f2d63a 5822
698dcdb6 5823 echo $ac_n "checking for --enable-statbmp""... $ac_c" 1>&6
54276ccf 5824echo "configure:5825: checking for --enable-statbmp" >&5
10f2d63a
VZ
5825 no_cache=0
5826 # Check whether --enable-statbmp or --disable-statbmp was given.
5827if test "${enable_statbmp+set}" = set; then
5828 enableval="$enable_statbmp"
698dcdb6 5829
10f2d63a
VZ
5830 if test "$enableval" = yes; then
5831 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
5832 else
5833 ac_cv_use_statbmp='wxUSE_STATBMP=no'
5834 fi
698dcdb6 5835
10f2d63a 5836else
698dcdb6 5837
10f2d63a
VZ
5838 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
5839 if test "x$LINE" != x ; then
5840 eval "DEFAULT_$LINE"
5841 else
5842 no_cache=1
5843 fi
5844
5845 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
698dcdb6
VZ
5846
5847fi
10f2d63a
VZ
5848
5849
5850 eval "$ac_cv_use_statbmp"
5851 if test "$no_cache" != 1; then
5852 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
5853 fi
5854
5855 if test "$wxUSE_STATBMP" = yes; then
698dcdb6 5856 echo "$ac_t""yes" 1>&6
10f2d63a 5857 else
698dcdb6 5858 echo "$ac_t""no" 1>&6
10f2d63a 5859 fi
698dcdb6 5860
10f2d63a 5861
698dcdb6 5862 echo $ac_n "checking for --enable-statbox""... $ac_c" 1>&6
54276ccf 5863echo "configure:5864: checking for --enable-statbox" >&5
10f2d63a
VZ
5864 no_cache=0
5865 # Check whether --enable-statbox or --disable-statbox was given.
5866if test "${enable_statbox+set}" = set; then
5867 enableval="$enable_statbox"
698dcdb6 5868
10f2d63a
VZ
5869 if test "$enableval" = yes; then
5870 ac_cv_use_statbox='wxUSE_STATBOX=yes'
5871 else
5872 ac_cv_use_statbox='wxUSE_STATBOX=no'
5873 fi
698dcdb6 5874
10f2d63a 5875else
698dcdb6 5876
10f2d63a
VZ
5877 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
5878 if test "x$LINE" != x ; then
5879 eval "DEFAULT_$LINE"
5880 else
5881 no_cache=1
5882 fi
5883
5884 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
698dcdb6
VZ
5885
5886fi
10f2d63a
VZ
5887
5888
5889 eval "$ac_cv_use_statbox"
5890 if test "$no_cache" != 1; then
5891 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
5892 fi
5893
5894 if test "$wxUSE_STATBOX" = yes; then
698dcdb6 5895 echo "$ac_t""yes" 1>&6
10f2d63a 5896 else
698dcdb6 5897 echo "$ac_t""no" 1>&6
10f2d63a 5898 fi
698dcdb6 5899
10f2d63a 5900
698dcdb6 5901 echo $ac_n "checking for --enable-statline""... $ac_c" 1>&6
54276ccf 5902echo "configure:5903: checking for --enable-statline" >&5
10f2d63a
VZ
5903 no_cache=0
5904 # Check whether --enable-statline or --disable-statline was given.
5905if test "${enable_statline+set}" = set; then
5906 enableval="$enable_statline"
698dcdb6 5907
10f2d63a
VZ
5908 if test "$enableval" = yes; then
5909 ac_cv_use_statline='wxUSE_STATLINE=yes'
5910 else
5911 ac_cv_use_statline='wxUSE_STATLINE=no'
5912 fi
698dcdb6 5913
10f2d63a 5914else
698dcdb6 5915
10f2d63a
VZ
5916 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
5917 if test "x$LINE" != x ; then
5918 eval "DEFAULT_$LINE"
5919 else
5920 no_cache=1
5921 fi
5922
5923 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
698dcdb6
VZ
5924
5925fi
10f2d63a
VZ
5926
5927
5928 eval "$ac_cv_use_statline"
5929 if test "$no_cache" != 1; then
5930 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
5931 fi
5932
5933 if test "$wxUSE_STATLINE" = yes; then
698dcdb6 5934 echo "$ac_t""yes" 1>&6
10f2d63a 5935 else
698dcdb6 5936 echo "$ac_t""no" 1>&6
10f2d63a 5937 fi
698dcdb6 5938
10f2d63a 5939
1e6feb95 5940 echo $ac_n "checking for --enable-stattext""... $ac_c" 1>&6
54276ccf 5941echo "configure:5942: checking for --enable-stattext" >&5
1e6feb95
VZ
5942 no_cache=0
5943 # Check whether --enable-stattext or --disable-stattext was given.
5944if test "${enable_stattext+set}" = set; then
5945 enableval="$enable_stattext"
5946
5947 if test "$enableval" = yes; then
5948 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
5949 else
5950 ac_cv_use_stattext='wxUSE_STATTEXT=no'
5951 fi
5952
5953else
5954
5955 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
5956 if test "x$LINE" != x ; then
5957 eval "DEFAULT_$LINE"
5958 else
5959 no_cache=1
5960 fi
5961
5962 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
5963
5964fi
5965
5966
5967 eval "$ac_cv_use_stattext"
5968 if test "$no_cache" != 1; then
5969 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
5970 fi
5971
5972 if test "$wxUSE_STATTEXT" = yes; then
5973 echo "$ac_t""yes" 1>&6
5974 else
5975 echo "$ac_t""no" 1>&6
5976 fi
5977
5978
698dcdb6 5979 echo $ac_n "checking for --enable-statusbar""... $ac_c" 1>&6
54276ccf 5980echo "configure:5981: checking for --enable-statusbar" >&5
10f2d63a
VZ
5981 no_cache=0
5982 # Check whether --enable-statusbar or --disable-statusbar was given.
5983if test "${enable_statusbar+set}" = set; then
5984 enableval="$enable_statusbar"
698dcdb6 5985
10f2d63a
VZ
5986 if test "$enableval" = yes; then
5987 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
5988 else
5989 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
5990 fi
698dcdb6 5991
10f2d63a 5992else
698dcdb6 5993
10f2d63a
VZ
5994 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
5995 if test "x$LINE" != x ; then
5996 eval "DEFAULT_$LINE"
5997 else
5998 no_cache=1
5999 fi
6000
6001 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
698dcdb6
VZ
6002
6003fi
10f2d63a
VZ
6004
6005
6006 eval "$ac_cv_use_statusbar"
6007 if test "$no_cache" != 1; then
6008 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
6009 fi
6010
6011 if test "$wxUSE_STATUSBAR" = yes; then
698dcdb6 6012 echo "$ac_t""yes" 1>&6
10f2d63a 6013 else
698dcdb6 6014 echo "$ac_t""no" 1>&6
10f2d63a 6015 fi
698dcdb6 6016
10f2d63a 6017
698dcdb6 6018 echo $ac_n "checking for --enable-tabdialog""... $ac_c" 1>&6
54276ccf 6019echo "configure:6020: checking for --enable-tabdialog" >&5
10f2d63a
VZ
6020 no_cache=0
6021 # Check whether --enable-tabdialog or --disable-tabdialog was given.
6022if test "${enable_tabdialog+set}" = set; then
6023 enableval="$enable_tabdialog"
698dcdb6 6024
10f2d63a
VZ
6025 if test "$enableval" = yes; then
6026 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
6027 else
6028 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
6029 fi
698dcdb6 6030
10f2d63a 6031else
698dcdb6 6032
10f2d63a
VZ
6033 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
6034 if test "x$LINE" != x ; then
6035 eval "DEFAULT_$LINE"
6036 else
6037 no_cache=1
6038 fi
6039
6040 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
698dcdb6
VZ
6041
6042fi
10f2d63a
VZ
6043
6044
6045 eval "$ac_cv_use_tabdialog"
6046 if test "$no_cache" != 1; then
6047 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
6048 fi
6049
6050 if test "$wxUSE_TABDIALOG" = yes; then
698dcdb6 6051 echo "$ac_t""yes" 1>&6
10f2d63a 6052 else
698dcdb6 6053 echo "$ac_t""no" 1>&6
10f2d63a 6054 fi
698dcdb6 6055
10f2d63a 6056
1e6feb95 6057 echo $ac_n "checking for --enable-textctrl""... $ac_c" 1>&6
54276ccf 6058echo "configure:6059: checking for --enable-textctrl" >&5
1e6feb95
VZ
6059 no_cache=0
6060 # Check whether --enable-textctrl or --disable-textctrl was given.
6061if test "${enable_textctrl+set}" = set; then
6062 enableval="$enable_textctrl"
6063
6064 if test "$enableval" = yes; then
6065 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
6066 else
6067 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
6068 fi
6069
6070else
6071
6072 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
6073 if test "x$LINE" != x ; then
6074 eval "DEFAULT_$LINE"
6075 else
6076 no_cache=1
6077 fi
6078
6079 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
6080
6081fi
6082
6083
6084 eval "$ac_cv_use_textctrl"
6085 if test "$no_cache" != 1; then
6086 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
6087 fi
6088
6089 if test "$wxUSE_TEXTCTRL" = yes; then
6090 echo "$ac_t""yes" 1>&6
6091 else
6092 echo "$ac_t""no" 1>&6
6093 fi
6094
6095
698dcdb6 6096 echo $ac_n "checking for --enable-togglebtn""... $ac_c" 1>&6
54276ccf 6097echo "configure:6098: checking for --enable-togglebtn" >&5
1db8dc4a
VZ
6098 no_cache=0
6099 # Check whether --enable-togglebtn or --disable-togglebtn was given.
6100if test "${enable_togglebtn+set}" = set; then
6101 enableval="$enable_togglebtn"
698dcdb6 6102
1db8dc4a
VZ
6103 if test "$enableval" = yes; then
6104 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
6105 else
6106 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
6107 fi
698dcdb6 6108
1db8dc4a 6109else
698dcdb6 6110
1db8dc4a
VZ
6111 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
6112 if test "x$LINE" != x ; then
6113 eval "DEFAULT_$LINE"
6114 else
6115 no_cache=1
6116 fi
6117
6118 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
698dcdb6
VZ
6119
6120fi
1db8dc4a
VZ
6121
6122
6123 eval "$ac_cv_use_togglebtn"
6124 if test "$no_cache" != 1; then
6125 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
6126 fi
6127
6128 if test "$wxUSE_TOGGLEBTN" = yes; then
698dcdb6 6129 echo "$ac_t""yes" 1>&6
1db8dc4a 6130 else
698dcdb6 6131 echo "$ac_t""no" 1>&6
1db8dc4a 6132 fi
698dcdb6 6133
1db8dc4a 6134
698dcdb6 6135 echo $ac_n "checking for --enable-toolbar""... $ac_c" 1>&6
54276ccf 6136echo "configure:6137: checking for --enable-toolbar" >&5
10f2d63a
VZ
6137 no_cache=0
6138 # Check whether --enable-toolbar or --disable-toolbar was given.
6139if test "${enable_toolbar+set}" = set; then
6140 enableval="$enable_toolbar"
698dcdb6 6141
10f2d63a
VZ
6142 if test "$enableval" = yes; then
6143 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
6144 else
6145 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
6146 fi
698dcdb6 6147
10f2d63a 6148else
698dcdb6 6149
10f2d63a
VZ
6150 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
6151 if test "x$LINE" != x ; then
6152 eval "DEFAULT_$LINE"
6153 else
6154 no_cache=1
6155 fi
6156
6157 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
698dcdb6
VZ
6158
6159fi
10f2d63a
VZ
6160
6161
6162 eval "$ac_cv_use_toolbar"
6163 if test "$no_cache" != 1; then
6164 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
6165 fi
6166
6167 if test "$wxUSE_TOOLBAR" = yes; then
698dcdb6 6168 echo "$ac_t""yes" 1>&6
10f2d63a 6169 else
698dcdb6 6170 echo "$ac_t""no" 1>&6
10f2d63a 6171 fi
698dcdb6 6172
10f2d63a 6173
698dcdb6 6174 echo $ac_n "checking for --enable-tbarnative""... $ac_c" 1>&6
54276ccf 6175echo "configure:6176: checking for --enable-tbarnative" >&5
360d6699
VZ
6176 no_cache=0
6177 # Check whether --enable-tbarnative or --disable-tbarnative was given.
6178if test "${enable_tbarnative+set}" = set; then
6179 enableval="$enable_tbarnative"
698dcdb6 6180
360d6699
VZ
6181 if test "$enableval" = yes; then
6182 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
6183 else
6184 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
6185 fi
698dcdb6 6186
360d6699 6187else
698dcdb6 6188
360d6699
VZ
6189 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
6190 if test "x$LINE" != x ; then
6191 eval "DEFAULT_$LINE"
6192 else
6193 no_cache=1
6194 fi
6195
6196 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
698dcdb6
VZ
6197
6198fi
360d6699
VZ
6199
6200
6201 eval "$ac_cv_use_tbarnative"
6202 if test "$no_cache" != 1; then
6203 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
6204 fi
6205
6206 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
698dcdb6 6207 echo "$ac_t""yes" 1>&6
360d6699 6208 else
698dcdb6 6209 echo "$ac_t""no" 1>&6
360d6699 6210 fi
698dcdb6 6211
360d6699 6212
698dcdb6 6213 echo $ac_n "checking for --enable-tbarsmpl""... $ac_c" 1>&6
54276ccf 6214echo "configure:6215: checking for --enable-tbarsmpl" >&5
360d6699
VZ
6215 no_cache=0
6216 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
6217if test "${enable_tbarsmpl+set}" = set; then
6218 enableval="$enable_tbarsmpl"
698dcdb6 6219
360d6699
VZ
6220 if test "$enableval" = yes; then
6221 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
6222 else
6223 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
6224 fi
698dcdb6 6225
360d6699 6226else
698dcdb6 6227
360d6699
VZ
6228 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
6229 if test "x$LINE" != x ; then
6230 eval "DEFAULT_$LINE"
6231 else
6232 no_cache=1
6233 fi
6234
6235 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
698dcdb6
VZ
6236
6237fi
360d6699
VZ
6238
6239
6240 eval "$ac_cv_use_tbarsmpl"
6241 if test "$no_cache" != 1; then
6242 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
6243 fi
6244
6245 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
698dcdb6 6246 echo "$ac_t""yes" 1>&6
360d6699 6247 else
698dcdb6 6248 echo "$ac_t""no" 1>&6
360d6699 6249 fi
698dcdb6 6250
360d6699 6251
698dcdb6 6252 echo $ac_n "checking for --enable-treectrl""... $ac_c" 1>&6
54276ccf 6253echo "configure:6254: checking for --enable-treectrl" >&5
10f2d63a
VZ
6254 no_cache=0
6255 # Check whether --enable-treectrl or --disable-treectrl was given.
6256if test "${enable_treectrl+set}" = set; then
6257 enableval="$enable_treectrl"
698dcdb6 6258
10f2d63a
VZ
6259 if test "$enableval" = yes; then
6260 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
6261 else
6262 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
6263 fi
698dcdb6 6264
10f2d63a 6265else
698dcdb6 6266
10f2d63a
VZ
6267 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
6268 if test "x$LINE" != x ; then
6269 eval "DEFAULT_$LINE"
6270 else
6271 no_cache=1
6272 fi
6273
6274 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
698dcdb6
VZ
6275
6276fi
10f2d63a
VZ
6277
6278
1e6feb95
VZ
6279 eval "$ac_cv_use_treectrl"
6280 if test "$no_cache" != 1; then
6281 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
6282 fi
6283
6284 if test "$wxUSE_TREECTRL" = yes; then
6285 echo "$ac_t""yes" 1>&6
6286 else
6287 echo "$ac_t""no" 1>&6
6288 fi
6289
6290
6291
6292
6293 echo $ac_n "checking for --enable-commondlg""... $ac_c" 1>&6
54276ccf 6294echo "configure:6295: checking for --enable-commondlg" >&5
1e6feb95
VZ
6295 no_cache=0
6296 # Check whether --enable-commondlg or --disable-commondlg was given.
6297if test "${enable_commondlg+set}" = set; then
6298 enableval="$enable_commondlg"
6299
6300 if test "$enableval" = yes; then
6301 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
6302 else
6303 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
6304 fi
6305
6306else
6307
6308 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
6309 if test "x$LINE" != x ; then
6310 eval "DEFAULT_$LINE"
6311 else
6312 no_cache=1
6313 fi
6314
6315 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
6316
6317fi
6318
6319
6320 eval "$ac_cv_use_commondlg"
6321 if test "$no_cache" != 1; then
6322 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
6323 fi
6324
6325 if test "$wxUSE_COMMONDLGS" = yes; then
6326 echo "$ac_t""yes" 1>&6
6327 else
6328 echo "$ac_t""no" 1>&6
6329 fi
6330
6331
6332 echo $ac_n "checking for --enable-choicedlg""... $ac_c" 1>&6
54276ccf 6333echo "configure:6334: checking for --enable-choicedlg" >&5
1e6feb95
VZ
6334 no_cache=0
6335 # Check whether --enable-choicedlg or --disable-choicedlg was given.
6336if test "${enable_choicedlg+set}" = set; then
6337 enableval="$enable_choicedlg"
6338
6339 if test "$enableval" = yes; then
6340 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
6341 else
6342 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
6343 fi
6344
6345else
6346
6347 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
6348 if test "x$LINE" != x ; then
6349 eval "DEFAULT_$LINE"
6350 else
6351 no_cache=1
6352 fi
6353
6354 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
6355
6356fi
6357
6358
6359 eval "$ac_cv_use_choicedlg"
6360 if test "$no_cache" != 1; then
6361 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
6362 fi
6363
6364 if test "$wxUSE_CHOICEDLG" = yes; then
6365 echo "$ac_t""yes" 1>&6
6366 else
6367 echo "$ac_t""no" 1>&6
6368 fi
6369
6370
6371 echo $ac_n "checking for --enable-coldlg""... $ac_c" 1>&6
54276ccf 6372echo "configure:6373: checking for --enable-coldlg" >&5
1e6feb95
VZ
6373 no_cache=0
6374 # Check whether --enable-coldlg or --disable-coldlg was given.
6375if test "${enable_coldlg+set}" = set; then
6376 enableval="$enable_coldlg"
6377
6378 if test "$enableval" = yes; then
6379 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
6380 else
6381 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
6382 fi
6383
6384else
6385
6386 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
6387 if test "x$LINE" != x ; then
6388 eval "DEFAULT_$LINE"
6389 else
6390 no_cache=1
6391 fi
6392
6393 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
6394
6395fi
6396
6397
6398 eval "$ac_cv_use_coldlg"
6399 if test "$no_cache" != 1; then
6400 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
6401 fi
6402
6403 if test "$wxUSE_COLOURDLG" = yes; then
6404 echo "$ac_t""yes" 1>&6
6405 else
6406 echo "$ac_t""no" 1>&6
6407 fi
6408
6409
6410 echo $ac_n "checking for --enable-filedlg""... $ac_c" 1>&6
54276ccf 6411echo "configure:6412: checking for --enable-filedlg" >&5
1e6feb95
VZ
6412 no_cache=0
6413 # Check whether --enable-filedlg or --disable-filedlg was given.
6414if test "${enable_filedlg+set}" = set; then
6415 enableval="$enable_filedlg"
6416
6417 if test "$enableval" = yes; then
6418 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
6419 else
6420 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
6421 fi
6422
6423else
6424
6425 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
6426 if test "x$LINE" != x ; then
6427 eval "DEFAULT_$LINE"
6428 else
6429 no_cache=1
6430 fi
6431
6432 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
6433
6434fi
6435
6436
6437 eval "$ac_cv_use_filedlg"
6438 if test "$no_cache" != 1; then
6439 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
6440 fi
6441
6442 if test "$wxUSE_FILEDLG" = yes; then
6443 echo "$ac_t""yes" 1>&6
6444 else
6445 echo "$ac_t""no" 1>&6
6446 fi
6447
6448
6449 echo $ac_n "checking for --enable-fontdlg""... $ac_c" 1>&6
54276ccf 6450echo "configure:6451: checking for --enable-fontdlg" >&5
1e6feb95
VZ
6451 no_cache=0
6452 # Check whether --enable-fontdlg or --disable-fontdlg was given.
6453if test "${enable_fontdlg+set}" = set; then
6454 enableval="$enable_fontdlg"
6455
6456 if test "$enableval" = yes; then
6457 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
6458 else
6459 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
6460 fi
6461
6462else
6463
6464 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
6465 if test "x$LINE" != x ; then
6466 eval "DEFAULT_$LINE"
6467 else
6468 no_cache=1
6469 fi
6470
6471 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
6472
6473fi
6474
6475
6476 eval "$ac_cv_use_fontdlg"
6477 if test "$no_cache" != 1; then
6478 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
6479 fi
6480
6481 if test "$wxUSE_FONTDLG" = yes; then
6482 echo "$ac_t""yes" 1>&6
6483 else
6484 echo "$ac_t""no" 1>&6
6485 fi
6486
6487
6488 echo $ac_n "checking for --enable-dirdlg""... $ac_c" 1>&6
54276ccf 6489echo "configure:6490: checking for --enable-dirdlg" >&5
1e6feb95
VZ
6490 no_cache=0
6491 # Check whether --enable-dirdlg or --disable-dirdlg was given.
6492if test "${enable_dirdlg+set}" = set; then
6493 enableval="$enable_dirdlg"
6494
6495 if test "$enableval" = yes; then
6496 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
6497 else
6498 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
6499 fi
6500
6501else
6502
6503 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
6504 if test "x$LINE" != x ; then
6505 eval "DEFAULT_$LINE"
6506 else
6507 no_cache=1
6508 fi
6509
6510 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
6511
6512fi
6513
6514
6515 eval "$ac_cv_use_dirdlg"
10f2d63a 6516 if test "$no_cache" != 1; then
1e6feb95 6517 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
6518 fi
6519
1e6feb95 6520 if test "$wxUSE_DIRDLG" = yes; then
698dcdb6 6521 echo "$ac_t""yes" 1>&6
10f2d63a 6522 else
698dcdb6 6523 echo "$ac_t""no" 1>&6
10f2d63a 6524 fi
698dcdb6
VZ
6525
6526
1e6feb95 6527 echo $ac_n "checking for --enable-msgdlg""... $ac_c" 1>&6
54276ccf 6528echo "configure:6529: checking for --enable-msgdlg" >&5
10f2d63a 6529 no_cache=0
1e6feb95
VZ
6530 # Check whether --enable-msgdlg or --disable-msgdlg was given.
6531if test "${enable_msgdlg+set}" = set; then
6532 enableval="$enable_msgdlg"
698dcdb6 6533
10f2d63a 6534 if test "$enableval" = yes; then
1e6feb95 6535 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
10f2d63a 6536 else
1e6feb95 6537 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
10f2d63a 6538 fi
698dcdb6 6539
10f2d63a 6540else
698dcdb6 6541
1e6feb95 6542 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
10f2d63a
VZ
6543 if test "x$LINE" != x ; then
6544 eval "DEFAULT_$LINE"
6545 else
6546 no_cache=1
6547 fi
6548
1e6feb95 6549 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
698dcdb6
VZ
6550
6551fi
10f2d63a
VZ
6552
6553
1e6feb95 6554 eval "$ac_cv_use_msgdlg"
10f2d63a 6555 if test "$no_cache" != 1; then
1e6feb95 6556 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
6557 fi
6558
1e6feb95 6559 if test "$wxUSE_MSGDLG" = yes; then
698dcdb6 6560 echo "$ac_t""yes" 1>&6
10f2d63a 6561 else
698dcdb6 6562 echo "$ac_t""no" 1>&6
10f2d63a 6563 fi
698dcdb6 6564
10f2d63a 6565
1e6feb95 6566 echo $ac_n "checking for --enable-numberdlg""... $ac_c" 1>&6
54276ccf 6567echo "configure:6568: checking for --enable-numberdlg" >&5
10f2d63a 6568 no_cache=0
1e6feb95
VZ
6569 # Check whether --enable-numberdlg or --disable-numberdlg was given.
6570if test "${enable_numberdlg+set}" = set; then
6571 enableval="$enable_numberdlg"
698dcdb6 6572
10f2d63a 6573 if test "$enableval" = yes; then
1e6feb95 6574 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
10f2d63a 6575 else
1e6feb95 6576 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
10f2d63a 6577 fi
698dcdb6 6578
10f2d63a 6579else
698dcdb6 6580
1e6feb95 6581 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
10f2d63a
VZ
6582 if test "x$LINE" != x ; then
6583 eval "DEFAULT_$LINE"
6584 else
6585 no_cache=1
6586 fi
6587
1e6feb95 6588 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
698dcdb6
VZ
6589
6590fi
10f2d63a
VZ
6591
6592
1e6feb95 6593 eval "$ac_cv_use_numberdlg"
10f2d63a 6594 if test "$no_cache" != 1; then
1e6feb95 6595 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
6596 fi
6597
1e6feb95 6598 if test "$wxUSE_NUMBERDLG" = yes; then
698dcdb6 6599 echo "$ac_t""yes" 1>&6
10f2d63a 6600 else
698dcdb6 6601 echo "$ac_t""no" 1>&6
10f2d63a 6602 fi
698dcdb6 6603
10f2d63a 6604
698dcdb6 6605 echo $ac_n "checking for --enable-textdlg""... $ac_c" 1>&6
54276ccf 6606echo "configure:6607: checking for --enable-textdlg" >&5
10f2d63a
VZ
6607 no_cache=0
6608 # Check whether --enable-textdlg or --disable-textdlg was given.
6609if test "${enable_textdlg+set}" = set; then
6610 enableval="$enable_textdlg"
698dcdb6 6611
10f2d63a
VZ
6612 if test "$enableval" = yes; then
6613 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
6614 else
6615 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
6616 fi
698dcdb6 6617
10f2d63a 6618else
698dcdb6 6619
10f2d63a
VZ
6620 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
6621 if test "x$LINE" != x ; then
6622 eval "DEFAULT_$LINE"
6623 else
6624 no_cache=1
6625 fi
6626
6627 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
698dcdb6
VZ
6628
6629fi
10f2d63a
VZ
6630
6631
6632 eval "$ac_cv_use_textdlg"
6633 if test "$no_cache" != 1; then
6634 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
6635 fi
6636
6637 if test "$wxUSE_TEXTDLG" = yes; then
698dcdb6 6638 echo "$ac_t""yes" 1>&6
10f2d63a 6639 else
698dcdb6 6640 echo "$ac_t""no" 1>&6
10f2d63a 6641 fi
698dcdb6 6642
10f2d63a 6643
698dcdb6 6644 echo $ac_n "checking for --enable-tipdlg""... $ac_c" 1>&6
54276ccf 6645echo "configure:6646: checking for --enable-tipdlg" >&5
10f2d63a
VZ
6646 no_cache=0
6647 # Check whether --enable-tipdlg or --disable-tipdlg was given.
6648if test "${enable_tipdlg+set}" = set; then
6649 enableval="$enable_tipdlg"
698dcdb6 6650
10f2d63a
VZ
6651 if test "$enableval" = yes; then
6652 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
6653 else
6654 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
6655 fi
698dcdb6 6656
10f2d63a 6657else
698dcdb6 6658
10f2d63a
VZ
6659 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
6660 if test "x$LINE" != x ; then
6661 eval "DEFAULT_$LINE"
6662 else
6663 no_cache=1
6664 fi
6665
6666 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
698dcdb6
VZ
6667
6668fi
10f2d63a
VZ
6669
6670
6671 eval "$ac_cv_use_tipdlg"
6672 if test "$no_cache" != 1; then
6673 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
6674 fi
6675
6676 if test "$wxUSE_STARTUP_TIPS" = yes; then
698dcdb6 6677 echo "$ac_t""yes" 1>&6
10f2d63a 6678 else
698dcdb6 6679 echo "$ac_t""no" 1>&6
10f2d63a 6680 fi
698dcdb6 6681
10f2d63a 6682
698dcdb6 6683 echo $ac_n "checking for --enable-progressdlg""... $ac_c" 1>&6
54276ccf 6684echo "configure:6685: checking for --enable-progressdlg" >&5
10f2d63a
VZ
6685 no_cache=0
6686 # Check whether --enable-progressdlg or --disable-progressdlg was given.
6687if test "${enable_progressdlg+set}" = set; then
6688 enableval="$enable_progressdlg"
698dcdb6 6689
10f2d63a
VZ
6690 if test "$enableval" = yes; then
6691 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
6692 else
6693 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
6694 fi
698dcdb6 6695
10f2d63a 6696else
698dcdb6 6697
10f2d63a
VZ
6698 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
6699 if test "x$LINE" != x ; then
6700 eval "DEFAULT_$LINE"
6701 else
6702 no_cache=1
6703 fi
6704
6705 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
698dcdb6
VZ
6706
6707fi
10f2d63a
VZ
6708
6709
6710 eval "$ac_cv_use_progressdlg"
6711 if test "$no_cache" != 1; then
6712 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
6713 fi
6714
6715 if test "$wxUSE_PROGRESSDLG" = yes; then
698dcdb6 6716 echo "$ac_t""yes" 1>&6
10f2d63a 6717 else
698dcdb6 6718 echo "$ac_t""no" 1>&6
10f2d63a 6719 fi
698dcdb6 6720
10f2d63a 6721
1e6feb95 6722 echo $ac_n "checking for --enable-menus""... $ac_c" 1>&6
54276ccf 6723echo "configure:6724: checking for --enable-menus" >&5
1e6feb95
VZ
6724 no_cache=0
6725 # Check whether --enable-menus or --disable-menus was given.
6726if test "${enable_menus+set}" = set; then
6727 enableval="$enable_menus"
6728
6729 if test "$enableval" = yes; then
6730 ac_cv_use_menus='wxUSE_MENUS=yes'
6731 else
6732 ac_cv_use_menus='wxUSE_MENUS=no'
6733 fi
6734
6735else
6736
6737 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
6738 if test "x$LINE" != x ; then
6739 eval "DEFAULT_$LINE"
6740 else
6741 no_cache=1
6742 fi
6743
6744 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
6745
6746fi
6747
6748
6749 eval "$ac_cv_use_menus"
6750 if test "$no_cache" != 1; then
6751 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
6752 fi
6753
6754 if test "$wxUSE_MENUS" = yes; then
6755 echo "$ac_t""yes" 1>&6
6756 else
6757 echo "$ac_t""no" 1>&6
6758 fi
6759
6760
698dcdb6 6761 echo $ac_n "checking for --enable-miniframe""... $ac_c" 1>&6
54276ccf 6762echo "configure:6763: checking for --enable-miniframe" >&5
10f2d63a
VZ
6763 no_cache=0
6764 # Check whether --enable-miniframe or --disable-miniframe was given.
6765if test "${enable_miniframe+set}" = set; then
6766 enableval="$enable_miniframe"
698dcdb6 6767
10f2d63a
VZ
6768 if test "$enableval" = yes; then
6769 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
6770 else
6771 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
6772 fi
698dcdb6 6773
10f2d63a 6774else
698dcdb6 6775
10f2d63a
VZ
6776 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
6777 if test "x$LINE" != x ; then
6778 eval "DEFAULT_$LINE"
6779 else
6780 no_cache=1
6781 fi
6782
6783 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
698dcdb6
VZ
6784
6785fi
10f2d63a
VZ
6786
6787
6788 eval "$ac_cv_use_miniframe"
6789 if test "$no_cache" != 1; then
6790 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
6791 fi
6792
6793 if test "$wxUSE_MINIFRAME" = yes; then
698dcdb6 6794 echo "$ac_t""yes" 1>&6
10f2d63a 6795 else
698dcdb6 6796 echo "$ac_t""no" 1>&6
10f2d63a 6797 fi
698dcdb6 6798
10f2d63a 6799
698dcdb6 6800 echo $ac_n "checking for --enable-html""... $ac_c" 1>&6
54276ccf 6801echo "configure:6802: checking for --enable-html" >&5
10f2d63a
VZ
6802 no_cache=0
6803 # Check whether --enable-html or --disable-html was given.
6804if test "${enable_html+set}" = set; then
6805 enableval="$enable_html"
698dcdb6 6806
10f2d63a
VZ
6807 if test "$enableval" = yes; then
6808 ac_cv_use_html='wxUSE_HTML=yes'
6809 else
6810 ac_cv_use_html='wxUSE_HTML=no'
6811 fi
698dcdb6 6812
10f2d63a 6813else
698dcdb6 6814
10f2d63a
VZ
6815 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
6816 if test "x$LINE" != x ; then
6817 eval "DEFAULT_$LINE"
6818 else
6819 no_cache=1
6820 fi
6821
6822 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
698dcdb6
VZ
6823
6824fi
10f2d63a
VZ
6825
6826
6827 eval "$ac_cv_use_html"
6828 if test "$no_cache" != 1; then
6829 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
6830 fi
6831
6832 if test "$wxUSE_HTML" = yes; then
698dcdb6 6833 echo "$ac_t""yes" 1>&6
10f2d63a 6834 else
698dcdb6 6835 echo "$ac_t""no" 1>&6
10f2d63a 6836 fi
698dcdb6 6837
10f2d63a 6838
698dcdb6 6839 echo $ac_n "checking for --enable-tooltips""... $ac_c" 1>&6
54276ccf 6840echo "configure:6841: checking for --enable-tooltips" >&5
10f2d63a
VZ
6841 no_cache=0
6842 # Check whether --enable-tooltips or --disable-tooltips was given.
6843if test "${enable_tooltips+set}" = set; then
6844 enableval="$enable_tooltips"
698dcdb6 6845
10f2d63a
VZ
6846 if test "$enableval" = yes; then
6847 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
6848 else
6849 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
6850 fi
698dcdb6 6851
10f2d63a 6852else
698dcdb6 6853
10f2d63a
VZ
6854 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
6855 if test "x$LINE" != x ; then
6856 eval "DEFAULT_$LINE"
6857 else
6858 no_cache=1
6859 fi
6860
6861 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
698dcdb6
VZ
6862
6863fi
10f2d63a
VZ
6864
6865
6866 eval "$ac_cv_use_tooltips"
6867 if test "$no_cache" != 1; then
6868 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
6869 fi
6870
6871 if test "$wxUSE_TOOLTIPS" = yes; then
698dcdb6 6872 echo "$ac_t""yes" 1>&6
10f2d63a 6873 else
698dcdb6 6874 echo "$ac_t""no" 1>&6
10f2d63a 6875 fi
698dcdb6 6876
10f2d63a 6877
698dcdb6 6878 echo $ac_n "checking for --enable-splines""... $ac_c" 1>&6
54276ccf 6879echo "configure:6880: checking for --enable-splines" >&5
10f2d63a
VZ
6880 no_cache=0
6881 # Check whether --enable-splines or --disable-splines was given.
6882if test "${enable_splines+set}" = set; then
6883 enableval="$enable_splines"
698dcdb6 6884
10f2d63a
VZ
6885 if test "$enableval" = yes; then
6886 ac_cv_use_splines='wxUSE_SPLINES=yes'
6887 else
6888 ac_cv_use_splines='wxUSE_SPLINES=no'
6889 fi
698dcdb6 6890
10f2d63a 6891else
698dcdb6 6892
10f2d63a
VZ
6893 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
6894 if test "x$LINE" != x ; then
6895 eval "DEFAULT_$LINE"
6896 else
6897 no_cache=1
6898 fi
6899
6900 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
698dcdb6
VZ
6901
6902fi
10f2d63a
VZ
6903
6904
6905 eval "$ac_cv_use_splines"
6906 if test "$no_cache" != 1; then
6907 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
6908 fi
6909
6910 if test "$wxUSE_SPLINES" = yes; then
698dcdb6 6911 echo "$ac_t""yes" 1>&6
10f2d63a 6912 else
698dcdb6 6913 echo "$ac_t""no" 1>&6
10f2d63a 6914 fi
698dcdb6 6915
10f2d63a 6916
698dcdb6 6917 echo $ac_n "checking for --enable-validators""... $ac_c" 1>&6
54276ccf 6918echo "configure:6919: checking for --enable-validators" >&5
10f2d63a
VZ
6919 no_cache=0
6920 # Check whether --enable-validators or --disable-validators was given.
6921if test "${enable_validators+set}" = set; then
6922 enableval="$enable_validators"
698dcdb6 6923
10f2d63a
VZ
6924 if test "$enableval" = yes; then
6925 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
6926 else
6927 ac_cv_use_validators='wxUSE_VALIDATORS=no'
6928 fi
698dcdb6 6929
10f2d63a 6930else
698dcdb6 6931
10f2d63a
VZ
6932 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
6933 if test "x$LINE" != x ; then
6934 eval "DEFAULT_$LINE"
6935 else
6936 no_cache=1
6937 fi
6938
6939 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
698dcdb6
VZ
6940
6941fi
10f2d63a
VZ
6942
6943
6944 eval "$ac_cv_use_validators"
6945 if test "$no_cache" != 1; then
6946 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
6947 fi
6948
6949 if test "$wxUSE_VALIDATORS" = yes; then
698dcdb6 6950 echo "$ac_t""yes" 1>&6
10f2d63a 6951 else
698dcdb6 6952 echo "$ac_t""no" 1>&6
10f2d63a 6953 fi
698dcdb6 6954
10f2d63a 6955
698dcdb6 6956 echo $ac_n "checking for --enable-busyinfo""... $ac_c" 1>&6
54276ccf 6957echo "configure:6958: checking for --enable-busyinfo" >&5
10f2d63a
VZ
6958 no_cache=0
6959 # Check whether --enable-busyinfo or --disable-busyinfo was given.
6960if test "${enable_busyinfo+set}" = set; then
6961 enableval="$enable_busyinfo"
698dcdb6 6962
10f2d63a
VZ
6963 if test "$enableval" = yes; then
6964 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
6965 else
6966 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
6967 fi
698dcdb6 6968
10f2d63a 6969else
698dcdb6 6970
10f2d63a
VZ
6971 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
6972 if test "x$LINE" != x ; then
6973 eval "DEFAULT_$LINE"
6974 else
6975 no_cache=1
6976 fi
6977
6978 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
698dcdb6
VZ
6979
6980fi
10f2d63a
VZ
6981
6982
6983 eval "$ac_cv_use_busyinfo"
6984 if test "$no_cache" != 1; then
6985 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
6986 fi
6987
6988 if test "$wxUSE_BUSYINFO" = yes; then
698dcdb6 6989 echo "$ac_t""yes" 1>&6
10f2d63a 6990 else
698dcdb6 6991 echo "$ac_t""no" 1>&6
10f2d63a 6992 fi
698dcdb6 6993
10f2d63a 6994
698dcdb6 6995 echo $ac_n "checking for --enable-joystick""... $ac_c" 1>&6
54276ccf 6996echo "configure:6997: checking for --enable-joystick" >&5
f6bcfd97
BP
6997 no_cache=0
6998 # Check whether --enable-joystick or --disable-joystick was given.
6999if test "${enable_joystick+set}" = set; then
7000 enableval="$enable_joystick"
698dcdb6 7001
f6bcfd97
BP
7002 if test "$enableval" = yes; then
7003 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
7004 else
7005 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
7006 fi
698dcdb6 7007
f6bcfd97 7008else
698dcdb6 7009
f6bcfd97
BP
7010 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
7011 if test "x$LINE" != x ; then
7012 eval "DEFAULT_$LINE"
7013 else
7014 no_cache=1
7015 fi
7016
7017 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
698dcdb6
VZ
7018
7019fi
f6bcfd97
BP
7020
7021
7022 eval "$ac_cv_use_joystick"
7023 if test "$no_cache" != 1; then
7024 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
7025 fi
7026
7027 if test "$wxUSE_JOYSTICK" = yes; then
698dcdb6 7028 echo "$ac_t""yes" 1>&6
f6bcfd97 7029 else
698dcdb6 7030 echo "$ac_t""no" 1>&6
f6bcfd97 7031 fi
698dcdb6
VZ
7032
7033
1e6feb95 7034 echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6
54276ccf 7035echo "configure:7036: checking for --enable-metafile" >&5
1e6feb95
VZ
7036 no_cache=0
7037 # Check whether --enable-metafile or --disable-metafile was given.
7038if test "${enable_metafile+set}" = set; then
7039 enableval="$enable_metafile"
7040
7041 if test "$enableval" = yes; then
7042 ac_cv_use_metafile='wxUSE_METAFILE=yes'
7043 else
7044 ac_cv_use_metafile='wxUSE_METAFILE=no'
7045 fi
7046
7047else
7048
7049 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
7050 if test "x$LINE" != x ; then
7051 eval "DEFAULT_$LINE"
7052 else
7053 no_cache=1
7054 fi
7055
7056 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
7057
7058fi
7059
7060
7061 eval "$ac_cv_use_metafile"
7062 if test "$no_cache" != 1; then
7063 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
7064 fi
7065
7066 if test "$wxUSE_METAFILE" = yes; then
7067 echo "$ac_t""yes" 1>&6
7068 else
7069 echo "$ac_t""no" 1>&6
7070 fi
7071
7072
10f2d63a 7073
698dcdb6
VZ
7074
7075 echo $ac_n "checking for --enable-image""... $ac_c" 1>&6
54276ccf 7076echo "configure:7077: checking for --enable-image" >&5
0046ff7c
VS
7077 no_cache=0
7078 # Check whether --enable-image or --disable-image was given.
7079if test "${enable_image+set}" = set; then
7080 enableval="$enable_image"
698dcdb6 7081
0046ff7c
VS
7082 if test "$enableval" = yes; then
7083 ac_cv_use_image='wxUSE_IMAGE=yes'
7084 else
7085 ac_cv_use_image='wxUSE_IMAGE=no'
7086 fi
698dcdb6 7087
0046ff7c 7088else
698dcdb6 7089
0046ff7c
VS
7090 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
7091 if test "x$LINE" != x ; then
7092 eval "DEFAULT_$LINE"
7093 else
7094 no_cache=1
7095 fi
7096
7097 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
698dcdb6
VZ
7098
7099fi
0046ff7c
VS
7100
7101
7102 eval "$ac_cv_use_image"
7103 if test "$no_cache" != 1; then
7104 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
7105 fi
7106
7107 if test "$wxUSE_IMAGE" = yes; then
698dcdb6 7108 echo "$ac_t""yes" 1>&6
0046ff7c 7109 else
698dcdb6 7110 echo "$ac_t""no" 1>&6
0046ff7c 7111 fi
698dcdb6 7112
0046ff7c 7113
698dcdb6 7114 echo $ac_n "checking for --enable-gif""... $ac_c" 1>&6
54276ccf 7115echo "configure:7116: checking for --enable-gif" >&5
10f2d63a
VZ
7116 no_cache=0
7117 # Check whether --enable-gif or --disable-gif was given.
7118if test "${enable_gif+set}" = set; then
7119 enableval="$enable_gif"
698dcdb6 7120
10f2d63a
VZ
7121 if test "$enableval" = yes; then
7122 ac_cv_use_gif='wxUSE_GIF=yes'
7123 else
7124 ac_cv_use_gif='wxUSE_GIF=no'
7125 fi
698dcdb6 7126
10f2d63a 7127else
698dcdb6 7128
10f2d63a
VZ
7129 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
7130 if test "x$LINE" != x ; then
7131 eval "DEFAULT_$LINE"
7132 else
7133 no_cache=1
7134 fi
7135
7136 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
698dcdb6
VZ
7137
7138fi
10f2d63a
VZ
7139
7140
7141 eval "$ac_cv_use_gif"
7142 if test "$no_cache" != 1; then
7143 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
7144 fi
7145
7146 if test "$wxUSE_GIF" = yes; then
698dcdb6 7147 echo "$ac_t""yes" 1>&6
10f2d63a 7148 else
698dcdb6 7149 echo "$ac_t""no" 1>&6
10f2d63a 7150 fi
698dcdb6 7151
10f2d63a 7152
698dcdb6 7153 echo $ac_n "checking for --enable-pcx""... $ac_c" 1>&6
54276ccf 7154echo "configure:7155: checking for --enable-pcx" >&5
10f2d63a
VZ
7155 no_cache=0
7156 # Check whether --enable-pcx or --disable-pcx was given.
7157if test "${enable_pcx+set}" = set; then
7158 enableval="$enable_pcx"
698dcdb6 7159
10f2d63a
VZ
7160 if test "$enableval" = yes; then
7161 ac_cv_use_pcx='wxUSE_PCX=yes'
7162 else
7163 ac_cv_use_pcx='wxUSE_PCX=no'
7164 fi
698dcdb6 7165
10f2d63a 7166else
698dcdb6 7167
10f2d63a
VZ
7168 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
7169 if test "x$LINE" != x ; then
7170 eval "DEFAULT_$LINE"
7171 else
7172 no_cache=1
7173 fi
7174
7175 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
698dcdb6
VZ
7176
7177fi
10f2d63a
VZ
7178
7179
7180 eval "$ac_cv_use_pcx"
7181 if test "$no_cache" != 1; then
7182 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
7183 fi
7184
7185 if test "$wxUSE_PCX" = yes; then
698dcdb6 7186 echo "$ac_t""yes" 1>&6
10f2d63a 7187 else
698dcdb6 7188 echo "$ac_t""no" 1>&6
10f2d63a 7189 fi
698dcdb6 7190
10f2d63a 7191
698dcdb6 7192 echo $ac_n "checking for --enable-pnm""... $ac_c" 1>&6
54276ccf 7193echo "configure:7194: checking for --enable-pnm" >&5
10f2d63a
VZ
7194 no_cache=0
7195 # Check whether --enable-pnm or --disable-pnm was given.
7196if test "${enable_pnm+set}" = set; then
7197 enableval="$enable_pnm"
698dcdb6 7198
10f2d63a
VZ
7199 if test "$enableval" = yes; then
7200 ac_cv_use_pnm='wxUSE_PNM=yes'
7201 else
7202 ac_cv_use_pnm='wxUSE_PNM=no'
7203 fi
698dcdb6 7204
10f2d63a 7205else
698dcdb6 7206
10f2d63a
VZ
7207 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
7208 if test "x$LINE" != x ; then
7209 eval "DEFAULT_$LINE"
7210 else
7211 no_cache=1
7212 fi
7213
7214 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
698dcdb6
VZ
7215
7216fi
10f2d63a
VZ
7217
7218
7219 eval "$ac_cv_use_pnm"
7220 if test "$no_cache" != 1; then
7221 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
7222 fi
7223
7224 if test "$wxUSE_PNM" = yes; then
698dcdb6 7225 echo "$ac_t""yes" 1>&6
10f2d63a 7226 else
698dcdb6 7227 echo "$ac_t""no" 1>&6
10f2d63a 7228 fi
698dcdb6 7229
10f2d63a 7230
698dcdb6 7231 echo $ac_n "checking for --enable-pnm""... $ac_c" 1>&6
54276ccf 7232echo "configure:7233: checking for --enable-pnm" >&5
0046ff7c
VS
7233 no_cache=0
7234 # Check whether --enable-pnm or --disable-pnm was given.
7235if test "${enable_pnm+set}" = set; then
7236 enableval="$enable_pnm"
698dcdb6 7237
0046ff7c
VS
7238 if test "$enableval" = yes; then
7239 ac_cv_use_pnm='wxUSE_XPM=yes'
7240 else
7241 ac_cv_use_pnm='wxUSE_XPM=no'
7242 fi
698dcdb6 7243
0046ff7c 7244else
698dcdb6 7245
0046ff7c
VS
7246 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
7247 if test "x$LINE" != x ; then
7248 eval "DEFAULT_$LINE"
7249 else
7250 no_cache=1
7251 fi
7252
7253 ac_cv_use_pnm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
698dcdb6
VZ
7254
7255fi
0046ff7c
VS
7256
7257
7258 eval "$ac_cv_use_pnm"
7259 if test "$no_cache" != 1; then
7260 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
7261 fi
7262
7263 if test "$wxUSE_XPM" = yes; then
698dcdb6 7264 echo "$ac_t""yes" 1>&6
0046ff7c 7265 else
698dcdb6 7266 echo "$ac_t""no" 1>&6
0046ff7c 7267 fi
698dcdb6 7268
0046ff7c 7269
b12915c1
VZ
7270fi
7271
698dcdb6 7272
10f2d63a
VZ
7273 echo "saving argument cache $wx_arg_cache_file"
7274 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
698dcdb6 7275
10f2d63a 7276
698dcdb6
VZ
7277
7278echo $ac_n "checking for toolkit""... $ac_c" 1>&6
54276ccf 7279echo "configure:7280: checking for toolkit" >&5
10f2d63a
VZ
7280
7281if test "$wxUSE_GUI" = "yes"; then
7282
b12915c1 7283if test "$USE_BEOS" = 1; then
698dcdb6 7284 { echo "configure: error: BeOS GUI is not supported yet, use --disable-gui" 1>&2; exit 1; }
b12915c1
VZ
7285fi
7286
10f2d63a
VZ
7287if test "$TOOLKIT_GIVEN" = 1; then
7288 for toolkit in `echo $ALL_TOOLKITS`; do
7289 var=wxUSE_$toolkit
7290 eval "value=\$${var}"
7291 eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
7292 done
7293else
7294 for toolkit in `echo $ALL_TOOLKITS`; do
7295 if test "$has_toolkit_in_cache" != 1; then
7296 var=DEFAULT_DEFAULT_wxUSE_$toolkit
7297 else
7298 var=DEFAULT_wxUSE_$toolkit
7299 fi
7300 eval "wxUSE_$toolkit=\$${var}"
7301 done
7302fi
7303
1e6feb95 7304NUM_TOOLKITS=`expr ${wxUSE_GTK:-0} + ${wxUSE_MOTIF:-0} + ${wxUSE_MAC:-0} + ${wxUSE_WINE:-0} + ${wxUSE_MINGW:-0} + ${wxUSE_CYGWIN:-0} + ${wxUSE_MGL:-0}`
cf27ef00 7305
ec14dd32
VZ
7306case "${host}" in
7307 *-pc-os2_emx )
7308 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
7309 # PATH_IFS is autodetected by OS/2's configure (usually ';')
7310 LEX_STEM="lexyy"
7311 ;;
7312 *)
7313 PATH_IFS=':'
7314 LEX_STEM="lex.yy"
7315 ;;
7316esac
10f2d63a
VZ
7317
7318case "$NUM_TOOLKITS" in
7319 1)
7320 ;;
7321 0)
698dcdb6 7322 { echo "configure: error: Please specify a toolkit - cannot determine the default for ${host}" 1>&2; exit 1; }
10f2d63a
VZ
7323 ;;
7324 *)
698dcdb6 7325 { echo "configure: error: Please specify at most one toolkit (may be some are cached?)" 1>&2; exit 1; }
10f2d63a
VZ
7326esac
7327
7328for toolkit in `echo $ALL_TOOLKITS`; do
7329 var=wxUSE_$toolkit
7330 eval "value=\$${var}"
7331 if test "x$value" != x; then
7332 cache_var=CACHE_$toolkit
7333 eval "cache=\$${cache_var}"
7334 if test "$cache" = 1; then
7335 echo "$var=$value" >> ${wx_arg_cache_file}
7336 fi
7337 if test "$value" = 1; then
8168de4c
VZ
7338 toolkit_echo=`echo $toolkit | tr [A-Z] [a-z]`
7339 echo "$ac_t""$toolkit_echo" 1>&6
10f2d63a
VZ
7340 fi
7341 fi
7342done
7343
7344else
cf27ef00 7345 PATH_IFS=':'
698dcdb6 7346 echo "$ac_t""base only" 1>&6
10f2d63a
VZ
7347fi
7348
698dcdb6
VZ
7349
7350cat > confcache <<\EOF
10f2d63a
VZ
7351# This file is a shell script that caches the results of configure
7352# tests run on this system so they can be shared between configure
698dcdb6
VZ
7353# scripts and configure runs. It is not useful on other systems.
7354# If it contains results you don't want to keep, you may remove or edit it.
10f2d63a 7355#
698dcdb6
VZ
7356# By default, configure uses ./config.cache as the cache file,
7357# creating it if it does not exist already. You can give configure
7358# the --cache-file=FILE option to use a different cache file; that is
7359# what configure does when it calls configure scripts in
7360# subdirectories, so they share the cache.
7361# Giving --cache-file=/dev/null disables caching, for debugging configure.
7362# config.status only pays attention to the cache file if you give it the
7363# --recheck option to rerun configure.
10f2d63a 7364#
698dcdb6 7365EOF
10f2d63a
VZ
7366# The following way of writing the cache mishandles newlines in values,
7367# but we know of no workaround that is simple, portable, and efficient.
7368# So, don't put newlines in cache variables' values.
7369# Ultrix sh set writes to stderr and can't be redirected directly,
7370# and sets the high bit in the cache file unless we assign to the vars.
698dcdb6
VZ
7371(set) 2>&1 |
7372 case `(ac_space=' '; set | grep ac_space) 2>&1` in
7373 *ac_space=\ *)
7374 # `set' does not quote correctly, so add quotes (double-quote substitution
7375 # turns \\\\ into \\, and sed turns \\ into \).
7376 sed -n \
7377 -e "s/'/'\\\\''/g" \
7378 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
7379 ;;
7380 *)
7381 # `set' quotes correctly as required by POSIX, so do not add quotes.
7382 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
7383 ;;
7384 esac >> confcache
7385if cmp -s $cache_file confcache; then
7386 :
7387else
10f2d63a 7388 if test -w $cache_file; then
698dcdb6
VZ
7389 echo "updating cache $cache_file"
7390 cat confcache > $cache_file
10f2d63a
VZ
7391 else
7392 echo "not updating unwritable cache $cache_file"
7393 fi
7394fi
7395rm -f confcache
7396
698dcdb6 7397
e59890c3 7398if test "$build" != "$host" ; then
10f2d63a
VZ
7399 CC=$host_alias-gcc
7400 CXX=$host_alias-c++
7401 AR=$host_alias-ar
7402 RANLIB=$host_alias-ranlib
7403 DLLTOOL=$host_alias-dlltool
32832908 7404 RESCOMP=$host_alias-windres
10f2d63a
VZ
7405 LD=$host_alias-ld
7406 NM=$host_alias-nm
7407 STRIP=$host_alias-strip
10f2d63a
VZ
7408fi
7409
698dcdb6 7410# Extract the first word of "gcc", so it can be a program name with args.
1e487827 7411set dummy gcc; ac_word=$2
698dcdb6 7412echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
54276ccf 7413echo "configure:7414: checking for $ac_word" >&5
698dcdb6
VZ
7414if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
7415 echo $ac_n "(cached) $ac_c" 1>&6
6232543b
VS
7416else
7417 if test -n "$CC"; then
7418 ac_cv_prog_CC="$CC" # Let the user override the test.
10f2d63a 7419else
698dcdb6
VZ
7420 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7421 ac_dummy="$PATH"
7422 for ac_dir in $ac_dummy; do
7423 test -z "$ac_dir" && ac_dir=.
7424 if test -f $ac_dir/$ac_word; then
7425 ac_cv_prog_CC="gcc"
7426 break
7427 fi
7428 done
7429 IFS="$ac_save_ifs"
10f2d63a 7430fi
6232543b 7431fi
698dcdb6 7432CC="$ac_cv_prog_CC"
6232543b 7433if test -n "$CC"; then
698dcdb6 7434 echo "$ac_t""$CC" 1>&6
1e487827 7435else
698dcdb6 7436 echo "$ac_t""no" 1>&6
1e487827 7437fi
6232543b 7438
1e487827
VS
7439if test -z "$CC"; then
7440 # Extract the first word of "cc", so it can be a program name with args.
7441set dummy cc; ac_word=$2
698dcdb6 7442echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
54276ccf 7443echo "configure:7444: checking for $ac_word" >&5
698dcdb6
VZ
7444if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
7445 echo $ac_n "(cached) $ac_c" 1>&6
1e487827
VS
7446else
7447 if test -n "$CC"; then
7448 ac_cv_prog_CC="$CC" # Let the user override the test.
7449else
698dcdb6 7450 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1e487827 7451 ac_prog_rejected=no
698dcdb6
VZ
7452 ac_dummy="$PATH"
7453 for ac_dir in $ac_dummy; do
7454 test -z "$ac_dir" && ac_dir=.
7455 if test -f $ac_dir/$ac_word; then
7456 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
7457 ac_prog_rejected=yes
7458 continue
7459 fi
7460 ac_cv_prog_CC="cc"
7461 break
7462 fi
7463 done
7464 IFS="$ac_save_ifs"
1e487827
VS
7465if test $ac_prog_rejected = yes; then
7466 # We found a bogon in the path, so make sure we never use it.
7467 set dummy $ac_cv_prog_CC
7468 shift
698dcdb6 7469 if test $# -gt 0; then
1e487827
VS
7470 # We chose a different compiler from the bogus one.
7471 # However, it has the same basename, so the bogon will be chosen
7472 # first if we set CC to just the basename; use the full file name.
7473 shift
698dcdb6 7474 set dummy "$ac_dir/$ac_word" "$@"
1e487827
VS
7475 shift
7476 ac_cv_prog_CC="$@"
703e0a69 7477 fi
1e487827
VS
7478fi
7479fi
7480fi
698dcdb6 7481CC="$ac_cv_prog_CC"
1e487827 7482if test -n "$CC"; then
698dcdb6 7483 echo "$ac_t""$CC" 1>&6
703e0a69 7484else
698dcdb6 7485 echo "$ac_t""no" 1>&6
703e0a69 7486fi
1e487827 7487
698dcdb6
VZ
7488 if test -z "$CC"; then
7489 case "`uname -s`" in
7490 *win32* | *WIN32*)
7491 # Extract the first word of "cl", so it can be a program name with args.
7492set dummy cl; ac_word=$2
7493echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
54276ccf 7494echo "configure:7495: checking for $ac_word" >&5
698dcdb6
VZ
7495if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
7496 echo $ac_n "(cached) $ac_c" 1>&6
1e487827
VS
7497else
7498 if test -n "$CC"; then
7499 ac_cv_prog_CC="$CC" # Let the user override the test.
703e0a69 7500else
698dcdb6
VZ
7501 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7502 ac_dummy="$PATH"
7503 for ac_dir in $ac_dummy; do
7504 test -z "$ac_dir" && ac_dir=.
7505 if test -f $ac_dir/$ac_word; then
7506 ac_cv_prog_CC="cl"
7507 break
7508 fi
7509 done
7510 IFS="$ac_save_ifs"
703e0a69 7511fi
1e487827 7512fi
698dcdb6 7513CC="$ac_cv_prog_CC"
1e487827 7514if test -n "$CC"; then
698dcdb6 7515 echo "$ac_t""$CC" 1>&6
1e487827 7516else
698dcdb6 7517 echo "$ac_t""no" 1>&6
1e487827 7518fi
698dcdb6
VZ
7519 ;;
7520 esac
7521 fi
7522 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1e487827
VS
7523fi
7524
698dcdb6 7525echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
54276ccf 7526echo "configure:7527: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1e487827 7527
698dcdb6
VZ
7528ac_ext=c
7529# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7530ac_cpp='$CPP $CPPFLAGS'
7531ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7532ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7533cross_compiling=$ac_cv_prog_cc_cross
6232543b 7534
698dcdb6 7535cat > conftest.$ac_ext << EOF
1e487827 7536
54276ccf 7537#line 7538 "configure"
1e487827
VS
7538#include "confdefs.h"
7539
698dcdb6
VZ
7540main(){return(0);}
7541EOF
54276ccf 7542if { (eval echo configure:7543: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
7543 ac_cv_prog_cc_works=yes
7544 # If we can't run a trivial program, we are probably using a cross compiler.
7545 if (./conftest; exit) 2>/dev/null; then
7546 ac_cv_prog_cc_cross=no
7547 else
7548 ac_cv_prog_cc_cross=yes
7549 fi
7550else
7551 echo "configure: failed program was:" >&5
7552 cat conftest.$ac_ext >&5
7553 ac_cv_prog_cc_works=no
7554fi
7555rm -fr conftest*
7556ac_ext=c
7557# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7558ac_cpp='$CPP $CPPFLAGS'
7559ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7560ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7561cross_compiling=$ac_cv_prog_cc_cross
7562
7563echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
7564if test $ac_cv_prog_cc_works = no; then
7565 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
7566fi
7567echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
54276ccf 7568echo "configure:7569: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
698dcdb6
VZ
7569echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
7570cross_compiling=$ac_cv_prog_cc_cross
7571
7572echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
54276ccf 7573echo "configure:7574: checking whether we are using GNU C" >&5
698dcdb6
VZ
7574if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
7575 echo $ac_n "(cached) $ac_c" 1>&6
7576else
7577 cat > conftest.c <<EOF
7578#ifdef __GNUC__
7579 yes;
1e487827 7580#endif
698dcdb6 7581EOF
54276ccf 7582if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:7583: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
698dcdb6
VZ
7583 ac_cv_prog_gcc=yes
7584else
7585 ac_cv_prog_gcc=no
7586fi
7587fi
1e487827 7588
698dcdb6 7589echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1e487827 7590
698dcdb6
VZ
7591if test $ac_cv_prog_gcc = yes; then
7592 GCC=yes
7593else
7594 GCC=
7595fi
1e487827 7596
698dcdb6
VZ
7597ac_test_CFLAGS="${CFLAGS+set}"
7598ac_save_CFLAGS="$CFLAGS"
7599CFLAGS=
7600echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
54276ccf 7601echo "configure:7602: checking whether ${CC-cc} accepts -g" >&5
698dcdb6
VZ
7602if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
7603 echo $ac_n "(cached) $ac_c" 1>&6
7604else
7605 echo 'void f(){}' > conftest.c
7606if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
10f2d63a
VZ
7607 ac_cv_prog_cc_g=yes
7608else
698dcdb6 7609 ac_cv_prog_cc_g=no
10f2d63a 7610fi
698dcdb6
VZ
7611rm -f conftest*
7612
10f2d63a 7613fi
698dcdb6
VZ
7614
7615echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
10f2d63a 7616if test "$ac_test_CFLAGS" = set; then
698dcdb6 7617 CFLAGS="$ac_save_CFLAGS"
10f2d63a
VZ
7618elif test $ac_cv_prog_cc_g = yes; then
7619 if test "$GCC" = yes; then
7620 CFLAGS="-g -O2"
7621 else
7622 CFLAGS="-g"
7623 fi
7624else
7625 if test "$GCC" = yes; then
7626 CFLAGS="-O2"
7627 else
7628 CFLAGS=
7629 fi
7630fi
7631
7632
7633CFLAGS=`echo "$CFLAGS" | sed 's/-g//g'`
7634
698dcdb6 7635echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
54276ccf 7636echo "configure:7637: checking how to run the C preprocessor" >&5
10f2d63a
VZ
7637# On Suns, sometimes $CPP names a directory.
7638if test -n "$CPP" && test -d "$CPP"; then
7639 CPP=
7640fi
7641if test -z "$CPP"; then
698dcdb6
VZ
7642if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
7643 echo $ac_n "(cached) $ac_c" 1>&6
7644else
7645 # This must be in double quotes, not single quotes, because CPP may get
7646 # substituted into the Makefile and "${CC-cc}" will confuse make.
7647 CPP="${CC-cc} -E"
10f2d63a 7648 # On the NeXT, cc -E runs the code through the compiler's parser,
698dcdb6
VZ
7649 # not just through cpp.
7650 cat > conftest.$ac_ext <<EOF
54276ccf 7651#line 7652 "configure"
10f2d63a
VZ
7652#include "confdefs.h"
7653#include <assert.h>
698dcdb6
VZ
7654Syntax Error
7655EOF
7656ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
54276ccf 7657{ (eval echo configure:7658: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
7658ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7659if test -z "$ac_err"; then
10f2d63a
VZ
7660 :
7661else
698dcdb6
VZ
7662 echo "$ac_err" >&5
7663 echo "configure: failed program was:" >&5
10f2d63a 7664 cat conftest.$ac_ext >&5
698dcdb6
VZ
7665 rm -rf conftest*
7666 CPP="${CC-cc} -E -traditional-cpp"
7667 cat > conftest.$ac_ext <<EOF
54276ccf 7668#line 7669 "configure"
10f2d63a 7669#include "confdefs.h"
698dcdb6
VZ
7670#include <assert.h>
7671Syntax Error
7672EOF
7673ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
54276ccf 7674{ (eval echo configure:7675: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
7675ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7676if test -z "$ac_err"; then
7677 :
10f2d63a 7678else
698dcdb6
VZ
7679 echo "$ac_err" >&5
7680 echo "configure: failed program was:" >&5
10f2d63a 7681 cat conftest.$ac_ext >&5
698dcdb6
VZ
7682 rm -rf conftest*
7683 CPP="${CC-cc} -nologo -E"
7684 cat > conftest.$ac_ext <<EOF
54276ccf 7685#line 7686 "configure"
10f2d63a
VZ
7686#include "confdefs.h"
7687#include <assert.h>
698dcdb6
VZ
7688Syntax Error
7689EOF
7690ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
54276ccf 7691{ (eval echo configure:7692: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
7692ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7693if test -z "$ac_err"; then
10f2d63a
VZ
7694 :
7695else
698dcdb6
VZ
7696 echo "$ac_err" >&5
7697 echo "configure: failed program was:" >&5
10f2d63a 7698 cat conftest.$ac_ext >&5
698dcdb6
VZ
7699 rm -rf conftest*
7700 CPP=/lib/cpp
10f2d63a 7701fi
698dcdb6 7702rm -f conftest*
10f2d63a 7703fi
698dcdb6 7704rm -f conftest*
703e0a69 7705fi
698dcdb6
VZ
7706rm -f conftest*
7707 ac_cv_prog_CPP="$CPP"
7708fi
7709 CPP="$ac_cv_prog_CPP"
10f2d63a 7710else
698dcdb6 7711 ac_cv_prog_CPP="$CPP"
10f2d63a 7712fi
698dcdb6 7713echo "$ac_t""$CPP" 1>&6
10f2d63a
VZ
7714
7715
698dcdb6
VZ
7716if test $ac_cv_prog_gcc = yes; then
7717 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
54276ccf 7718echo "configure:7719: checking whether ${CC-cc} needs -traditional" >&5
698dcdb6
VZ
7719if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
7720 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
7721else
7722 ac_pattern="Autoconf.*'x'"
698dcdb6 7723 cat > conftest.$ac_ext <<EOF
54276ccf 7724#line 7725 "configure"
10f2d63a
VZ
7725#include "confdefs.h"
7726#include <sgtty.h>
7727Autoconf TIOCGETP
698dcdb6 7728EOF
10f2d63a
VZ
7729if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7730 egrep "$ac_pattern" >/dev/null 2>&1; then
698dcdb6 7731 rm -rf conftest*
10f2d63a
VZ
7732 ac_cv_prog_gcc_traditional=yes
7733else
698dcdb6 7734 rm -rf conftest*
10f2d63a
VZ
7735 ac_cv_prog_gcc_traditional=no
7736fi
7737rm -f conftest*
7738
698dcdb6 7739
10f2d63a 7740 if test $ac_cv_prog_gcc_traditional = no; then
698dcdb6 7741 cat > conftest.$ac_ext <<EOF
54276ccf 7742#line 7743 "configure"
10f2d63a
VZ
7743#include "confdefs.h"
7744#include <termio.h>
7745Autoconf TCGETA
698dcdb6 7746EOF
10f2d63a
VZ
7747if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7748 egrep "$ac_pattern" >/dev/null 2>&1; then
698dcdb6 7749 rm -rf conftest*
10f2d63a
VZ
7750 ac_cv_prog_gcc_traditional=yes
7751fi
7752rm -f conftest*
7753
7754 fi
7755fi
698dcdb6
VZ
7756
7757echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
10f2d63a
VZ
7758 if test $ac_cv_prog_gcc_traditional = yes; then
7759 CC="$CC -traditional"
7760 fi
7761fi
7762
703e0a69 7763
698dcdb6
VZ
7764
7765ac_ext=C
7766# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1e487827 7767ac_cpp='$CXXCPP $CPPFLAGS'
698dcdb6
VZ
7768ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7769ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7770cross_compiling=$ac_cv_prog_cxx_cross
7771
7772
7773for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
7774do
7775# Extract the first word of "$ac_prog", so it can be a program name with args.
7776set dummy $ac_prog; ac_word=$2
7777echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
54276ccf 7778echo "configure:7779: checking for $ac_word" >&5
698dcdb6
VZ
7779if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
7780 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
7781else
7782 if test -n "$CXX"; then
7783 ac_cv_prog_CXX="$CXX" # Let the user override the test.
7784else
698dcdb6
VZ
7785 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7786 ac_dummy="$PATH"
7787 for ac_dir in $ac_dummy; do
7788 test -z "$ac_dir" && ac_dir=.
7789 if test -f $ac_dir/$ac_word; then
7790 ac_cv_prog_CXX="$ac_prog"
7791 break
7792 fi
7793 done
7794 IFS="$ac_save_ifs"
10f2d63a
VZ
7795fi
7796fi
698dcdb6 7797CXX="$ac_cv_prog_CXX"
10f2d63a 7798if test -n "$CXX"; then
698dcdb6 7799 echo "$ac_t""$CXX" 1>&6
10f2d63a 7800else
698dcdb6 7801 echo "$ac_t""no" 1>&6
10f2d63a
VZ
7802fi
7803
698dcdb6 7804test -n "$CXX" && break
10f2d63a 7805done
698dcdb6 7806test -n "$CXX" || CXX="gcc"
10f2d63a
VZ
7807
7808
698dcdb6 7809echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
54276ccf 7810echo "configure:7811: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
10f2d63a 7811
698dcdb6
VZ
7812ac_ext=C
7813# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7814ac_cpp='$CXXCPP $CPPFLAGS'
7815ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7816ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7817cross_compiling=$ac_cv_prog_cxx_cross
703e0a69 7818
698dcdb6
VZ
7819cat > conftest.$ac_ext << EOF
7820
54276ccf 7821#line 7822 "configure"
10f2d63a
VZ
7822#include "confdefs.h"
7823
698dcdb6
VZ
7824int main(){return(0);}
7825EOF
54276ccf 7826if { (eval echo configure:7827: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
7827 ac_cv_prog_cxx_works=yes
7828 # If we can't run a trivial program, we are probably using a cross compiler.
7829 if (./conftest; exit) 2>/dev/null; then
7830 ac_cv_prog_cxx_cross=no
7831 else
7832 ac_cv_prog_cxx_cross=yes
7833 fi
7834else
7835 echo "configure: failed program was:" >&5
7836 cat conftest.$ac_ext >&5
7837 ac_cv_prog_cxx_works=no
7838fi
7839rm -fr conftest*
7840ac_ext=C
7841# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7842ac_cpp='$CXXCPP $CPPFLAGS'
7843ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7844ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7845cross_compiling=$ac_cv_prog_cxx_cross
7846
7847echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
7848if test $ac_cv_prog_cxx_works = no; then
7849 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
7850fi
7851echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
54276ccf 7852echo "configure:7853: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
698dcdb6
VZ
7853echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
7854cross_compiling=$ac_cv_prog_cxx_cross
7855
7856echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
54276ccf 7857echo "configure:7858: checking whether we are using GNU C++" >&5
698dcdb6
VZ
7858if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
7859 echo $ac_n "(cached) $ac_c" 1>&6
7860else
7861 cat > conftest.C <<EOF
7862#ifdef __GNUC__
7863 yes;
10f2d63a 7864#endif
698dcdb6 7865EOF
54276ccf 7866if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:7867: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
698dcdb6
VZ
7867 ac_cv_prog_gxx=yes
7868else
7869 ac_cv_prog_gxx=no
7870fi
7871fi
10f2d63a 7872
698dcdb6 7873echo "$ac_t""$ac_cv_prog_gxx" 1>&6
10f2d63a 7874
698dcdb6
VZ
7875if test $ac_cv_prog_gxx = yes; then
7876 GXX=yes
7877else
7878 GXX=
7879fi
10f2d63a 7880
698dcdb6
VZ
7881ac_test_CXXFLAGS="${CXXFLAGS+set}"
7882ac_save_CXXFLAGS="$CXXFLAGS"
7883CXXFLAGS=
7884echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
54276ccf 7885echo "configure:7886: checking whether ${CXX-g++} accepts -g" >&5
698dcdb6
VZ
7886if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
7887 echo $ac_n "(cached) $ac_c" 1>&6
7888else
7889 echo 'void f(){}' > conftest.cc
7890if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
10f2d63a
VZ
7891 ac_cv_prog_cxx_g=yes
7892else
698dcdb6 7893 ac_cv_prog_cxx_g=no
10f2d63a 7894fi
698dcdb6
VZ
7895rm -f conftest*
7896
10f2d63a 7897fi
698dcdb6
VZ
7898
7899echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
10f2d63a 7900if test "$ac_test_CXXFLAGS" = set; then
698dcdb6 7901 CXXFLAGS="$ac_save_CXXFLAGS"
10f2d63a
VZ
7902elif test $ac_cv_prog_cxx_g = yes; then
7903 if test "$GXX" = yes; then
7904 CXXFLAGS="-g -O2"
7905 else
7906 CXXFLAGS="-g"
7907 fi
7908else
7909 if test "$GXX" = yes; then
7910 CXXFLAGS="-O2"
7911 else
7912 CXXFLAGS=
7913 fi
7914fi
7915
7916
698dcdb6 7917echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
54276ccf 7918echo "configure:7919: checking how to run the C++ preprocessor" >&5
1e487827 7919if test -z "$CXXCPP"; then
698dcdb6
VZ
7920if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
7921 echo $ac_n "(cached) $ac_c" 1>&6
1e487827 7922else
698dcdb6
VZ
7923 ac_ext=C
7924# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7925ac_cpp='$CXXCPP $CPPFLAGS'
7926ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7927ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7928cross_compiling=$ac_cv_prog_cxx_cross
7929 CXXCPP="${CXX-g++} -E"
7930 cat > conftest.$ac_ext <<EOF
54276ccf 7931#line 7932 "configure"
1e487827 7932#include "confdefs.h"
698dcdb6
VZ
7933#include <stdlib.h>
7934EOF
7935ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
54276ccf 7936{ (eval echo configure:7937: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
7937ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7938if test -z "$ac_err"; then
1e487827
VS
7939 :
7940else
698dcdb6
VZ
7941 echo "$ac_err" >&5
7942 echo "configure: failed program was:" >&5
1e487827 7943 cat conftest.$ac_ext >&5
698dcdb6
VZ
7944 rm -rf conftest*
7945 CXXCPP=/lib/cpp
1e487827 7946fi
698dcdb6
VZ
7947rm -f conftest*
7948 ac_cv_prog_CXXCPP="$CXXCPP"
7949ac_ext=C
7950# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7951ac_cpp='$CXXCPP $CPPFLAGS'
7952ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7953ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7954cross_compiling=$ac_cv_prog_cxx_cross
1e487827 7955fi
1e487827 7956fi
698dcdb6
VZ
7957CXXCPP="$ac_cv_prog_CXXCPP"
7958echo "$ac_t""$CXXCPP" 1>&6
1e487827 7959
10f2d63a
VZ
7960
7961CXXFLAGS=`echo "$CXXFLAGS" | sed 's/-g//g'`
7962
7963ac_ext=c
698dcdb6 7964# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10f2d63a 7965ac_cpp='$CPP $CPPFLAGS'
698dcdb6
VZ
7966ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7967ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7968cross_compiling=$ac_cv_prog_cc_cross
7969
7970
7971# Extract the first word of "ranlib", so it can be a program name with args.
7972set dummy ranlib; ac_word=$2
7973echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
54276ccf 7974echo "configure:7975: checking for $ac_word" >&5
698dcdb6
VZ
7975if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
7976 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
7977else
7978 if test -n "$RANLIB"; then
7979 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7980else
698dcdb6
VZ
7981 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7982 ac_dummy="$PATH"
7983 for ac_dir in $ac_dummy; do
7984 test -z "$ac_dir" && ac_dir=.
7985 if test -f $ac_dir/$ac_word; then
7986 ac_cv_prog_RANLIB="ranlib"
7987 break
7988 fi
7989 done
7990 IFS="$ac_save_ifs"
7991 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
10f2d63a
VZ
7992fi
7993fi
698dcdb6 7994RANLIB="$ac_cv_prog_RANLIB"
10f2d63a 7995if test -n "$RANLIB"; then
698dcdb6 7996 echo "$ac_t""$RANLIB" 1>&6
10f2d63a 7997else
698dcdb6 7998 echo "$ac_t""no" 1>&6
10f2d63a
VZ
7999fi
8000
8001
8002# Extract the first word of "ar", so it can be a program name with args.
8003set dummy ar; ac_word=$2
698dcdb6 8004echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
54276ccf 8005echo "configure:8006: checking for $ac_word" >&5
698dcdb6
VZ
8006if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
8007 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
8008else
8009 if test -n "$AR"; then
8010 ac_cv_prog_AR="$AR" # Let the user override the test.
8011else
698dcdb6
VZ
8012 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8013 ac_dummy="$PATH"
8014 for ac_dir in $ac_dummy; do
8015 test -z "$ac_dir" && ac_dir=.
8016 if test -f $ac_dir/$ac_word; then
8017 ac_cv_prog_AR="ar"
8018 break
8019 fi
8020 done
8021 IFS="$ac_save_ifs"
10f2d63a
VZ
8022 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
8023fi
8024fi
698dcdb6 8025AR="$ac_cv_prog_AR"
10f2d63a 8026if test -n "$AR"; then
698dcdb6 8027 echo "$ac_t""$AR" 1>&6
10f2d63a 8028else
698dcdb6 8029 echo "$ac_t""no" 1>&6
10f2d63a
VZ
8030fi
8031
698dcdb6 8032
10f2d63a
VZ
8033# Find a good install program. We prefer a C program (faster),
8034# so one script is as good as another. But avoid the broken or
8035# incompatible versions:
8036# SysV /etc/install, /usr/sbin/install
8037# SunOS /usr/etc/install
8038# IRIX /sbin/install
8039# AIX /bin/install
8040# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
8041# AFS /usr/afsws/bin/install, which mishandles nonexistent args
8042# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8043# ./install, which can be erroneously created by make from ./install.sh.
698dcdb6 8044echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
54276ccf 8045echo "configure:8046: checking for a BSD compatible install" >&5
10f2d63a 8046if test -z "$INSTALL"; then
698dcdb6
VZ
8047if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
8048 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 8049else
698dcdb6 8050 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
10f2d63a
VZ
8051 for ac_dir in $PATH; do
8052 # Account for people who put trailing slashes in PATH elements.
698dcdb6
VZ
8053 case "$ac_dir/" in
8054 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
10f2d63a
VZ
8055 *)
8056 # OSF1 and SCO ODT 3.0 have their own names for install.
8057 # Don't use installbsd from OSF since it installs stuff as root
8058 # by default.
8059 for ac_prog in ginstall scoinst install; do
698dcdb6 8060 if test -f $ac_dir/$ac_prog; then
10f2d63a 8061 if test $ac_prog = install &&
698dcdb6 8062 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
10f2d63a
VZ
8063 # AIX install. It has an incompatible calling convention.
8064 :
8065 else
8066 ac_cv_path_install="$ac_dir/$ac_prog -c"
8067 break 2
8068 fi
8069 fi
8070 done
8071 ;;
8072 esac
8073 done
698dcdb6 8074 IFS="$ac_save_IFS"
10f2d63a
VZ
8075
8076fi
8077 if test "${ac_cv_path_install+set}" = set; then
698dcdb6 8078 INSTALL="$ac_cv_path_install"
10f2d63a
VZ
8079 else
8080 # As a last resort, use the slow shell script. We don't cache a
8081 # path for INSTALL within a source directory, because that will
8082 # break other packages using the cache if that directory is
8083 # removed, or if the path is relative.
698dcdb6 8084 INSTALL="$ac_install_sh"
10f2d63a
VZ
8085 fi
8086fi
698dcdb6 8087echo "$ac_t""$INSTALL" 1>&6
10f2d63a
VZ
8088
8089# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8090# It thinks the first close brace ends the variable substitution.
8091test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8092
698dcdb6 8093test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
10f2d63a
VZ
8094
8095test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8096
698dcdb6 8097
10f2d63a
VZ
8098# Extract the first word of "strip", so it can be a program name with args.
8099set dummy strip; ac_word=$2
698dcdb6 8100echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
54276ccf 8101echo "configure:8102: checking for $ac_word" >&5
698dcdb6
VZ
8102if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
8103 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
8104else
8105 if test -n "$STRIP"; then
8106 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8107else
698dcdb6
VZ
8108 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8109 ac_dummy="$PATH"
8110 for ac_dir in $ac_dummy; do
8111 test -z "$ac_dir" && ac_dir=.
8112 if test -f $ac_dir/$ac_word; then
8113 ac_cv_prog_STRIP="strip"
8114 break
8115 fi
8116 done
8117 IFS="$ac_save_ifs"
10f2d63a
VZ
8118 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
8119fi
8120fi
698dcdb6 8121STRIP="$ac_cv_prog_STRIP"
10f2d63a 8122if test -n "$STRIP"; then
698dcdb6 8123 echo "$ac_t""$STRIP" 1>&6
10f2d63a 8124else
698dcdb6 8125 echo "$ac_t""no" 1>&6
10f2d63a
VZ
8126fi
8127
698dcdb6
VZ
8128
8129echo $ac_n "checking make for VPATH support""... $ac_c" 1>&6
54276ccf 8130echo "configure:8131: checking make for VPATH support" >&5
10f2d63a
VZ
8131cat - << EOF > confMake
8132check : file
8133 cp \$? \$@
8134 cp \$? final_file
8135EOF
8136
8137if test ! -d sub ; then
8138 mkdir sub
8139fi
8140echo dummy > sub/file
f6bcfd97 8141${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
10f2d63a
VZ
8142RESULT=$?
8143rm -f sub/file check final_file confMake
8144rmdir sub
8145if test "$RESULT" = 0; then
698dcdb6 8146 echo "$ac_t""yes" 1>&6
10f2d63a 8147else
698dcdb6
VZ
8148 echo "$ac_t""no" 1>&6
8149 { echo "configure: error:
1e487827
VS
8150You need a make-utility that is able to use the variable
8151VPATH correctly.
8152If your version of make does not support VPATH correctly,
8153please install GNU-make (possibly as gmake), and start
8154configure with the following command:
8155export MAKE=gmake; ./configure for sh-type shells
8156setenv MAKE gmake; ./configure for csh-type shells
8157Also please do remember to use gmake in this case every time
8158you are trying to compile.
698dcdb6 8159" 1>&2; exit 1; }
10f2d63a
VZ
8160fi
8161
8162for ac_prog in 'bison -y' byacc
8163do
698dcdb6 8164# Extract the first word of "$ac_prog", so it can be a program name with args.
10f2d63a 8165set dummy $ac_prog; ac_word=$2
698dcdb6 8166echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
54276ccf 8167echo "configure:8168: checking for $ac_word" >&5
698dcdb6
VZ
8168if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
8169 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
8170else
8171 if test -n "$YACC"; then
8172 ac_cv_prog_YACC="$YACC" # Let the user override the test.
8173else
698dcdb6
VZ
8174 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8175 ac_dummy="$PATH"
8176 for ac_dir in $ac_dummy; do
8177 test -z "$ac_dir" && ac_dir=.
8178 if test -f $ac_dir/$ac_word; then
8179 ac_cv_prog_YACC="$ac_prog"
8180 break
8181 fi
8182 done
8183 IFS="$ac_save_ifs"
10f2d63a
VZ
8184fi
8185fi
698dcdb6 8186YACC="$ac_cv_prog_YACC"
10f2d63a 8187if test -n "$YACC"; then
698dcdb6 8188 echo "$ac_t""$YACC" 1>&6
10f2d63a 8189else
698dcdb6 8190 echo "$ac_t""no" 1>&6
10f2d63a
VZ
8191fi
8192
698dcdb6 8193test -n "$YACC" && break
10f2d63a
VZ
8194done
8195test -n "$YACC" || YACC="yacc"
8196
698dcdb6
VZ
8197
8198# Extract the first word of "flex", so it can be a program name with args.
8199set dummy flex; ac_word=$2
8200echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
54276ccf 8201echo "configure:8202: checking for $ac_word" >&5
698dcdb6
VZ
8202if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
8203 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
8204else
8205 if test -n "$LEX"; then
8206 ac_cv_prog_LEX="$LEX" # Let the user override the test.
8207else
698dcdb6
VZ
8208 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8209 ac_dummy="$PATH"
8210 for ac_dir in $ac_dummy; do
8211 test -z "$ac_dir" && ac_dir=.
8212 if test -f $ac_dir/$ac_word; then
8213 ac_cv_prog_LEX="flex"
8214 break
8215 fi
8216 done
8217 IFS="$ac_save_ifs"
8218 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
10f2d63a
VZ
8219fi
8220fi
698dcdb6 8221LEX="$ac_cv_prog_LEX"
10f2d63a 8222if test -n "$LEX"; then
698dcdb6 8223 echo "$ac_t""$LEX" 1>&6
10f2d63a 8224else
698dcdb6 8225 echo "$ac_t""no" 1>&6
10f2d63a
VZ
8226fi
8227
8228if test -z "$LEXLIB"
8229then
698dcdb6
VZ
8230 case "$LEX" in
8231 flex*) ac_lib=fl ;;
8232 *) ac_lib=l ;;
8233 esac
8234 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
54276ccf 8235echo "configure:8236: checking for yywrap in -l$ac_lib" >&5
698dcdb6
VZ
8236ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
8237if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8238 echo $ac_n "(cached) $ac_c" 1>&6
8239else
8240 ac_save_LIBS="$LIBS"
8241LIBS="-l$ac_lib $LIBS"
8242cat > conftest.$ac_ext <<EOF
54276ccf 8243#line 8244 "configure"
10f2d63a
VZ
8244#include "confdefs.h"
8245/* Override any gcc2 internal prototype to avoid an error. */
8246/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
8247 builtin and then its argument prototype would still apply. */
8248char yywrap();
10f2d63a 8249
698dcdb6
VZ
8250int main() {
8251yywrap()
8252; return 0; }
8253EOF
54276ccf 8254if { (eval echo configure:8255: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
8255 rm -rf conftest*
8256 eval "ac_cv_lib_$ac_lib_var=yes"
10f2d63a 8257else
698dcdb6
VZ
8258 echo "configure: failed program was:" >&5
8259 cat conftest.$ac_ext >&5
8260 rm -rf conftest*
8261 eval "ac_cv_lib_$ac_lib_var=no"
10f2d63a 8262fi
698dcdb6
VZ
8263rm -f conftest*
8264LIBS="$ac_save_LIBS"
8265
10f2d63a 8266fi
698dcdb6
VZ
8267if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8268 echo "$ac_t""yes" 1>&6
8269 LEXLIB="-l$ac_lib"
8270else
8271 echo "$ac_t""no" 1>&6
10f2d63a
VZ
8272fi
8273
8274fi
8275
8276
698dcdb6 8277echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
54276ccf 8278echo "configure:8279: checking whether ln -s works" >&5
698dcdb6
VZ
8279if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
8280 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 8281else
698dcdb6
VZ
8282 rm -f conftestdata
8283if ln -s X conftestdata 2>/dev/null
8284then
8285 rm -f conftestdata
8286 ac_cv_prog_LN_S="ln -s"
10f2d63a 8287else
698dcdb6 8288 ac_cv_prog_LN_S=ln
10f2d63a
VZ
8289fi
8290fi
698dcdb6
VZ
8291LN_S="$ac_cv_prog_LN_S"
8292if test "$ac_cv_prog_LN_S" = "ln -s"; then
8293 echo "$ac_t""yes" 1>&6
10f2d63a 8294else
698dcdb6 8295 echo "$ac_t""no" 1>&6
10f2d63a
VZ
8296fi
8297
8298
8299
8300SEARCH_INCLUDE="\
8301 /usr/local/include \
8302 \
8303 /usr/Motif-1.2/include \
8304 /usr/Motif-2.1/include \
8305 \
8306 /usr/include/Motif1.2 \
8307 /opt/xpm/include/X11 \
8308 /opt/GBxpm/include/ \
8309 /opt/GBxpm/X11/include/ \
8310 \
8311 /usr/Motif1.2/include \
8312 /usr/dt/include \
afc31813
VZ
8313 /usr/openwin/include \
8314 \
10f2d63a
VZ
8315 /usr/include/Xm \
8316 \
8317 /usr/X11R6/include \
afc31813 8318 /usr/X11R6.4/include \
10f2d63a
VZ
8319 /usr/X11R5/include \
8320 /usr/X11R4/include \
8321 \
10f2d63a
VZ
8322 /usr/include/X11R6 \
8323 /usr/include/X11R5 \
8324 /usr/include/X11R4 \
8325 \
8326 /usr/local/X11R6/include \
8327 /usr/local/X11R5/include \
8328 /usr/local/X11R4/include \
8329 \
8330 /usr/local/include/X11R6 \
8331 /usr/local/include/X11R5 \
8332 /usr/local/include/X11R4 \
8333 \
8334 /usr/X11/include \
8335 /usr/include/X11 \
8336 /usr/local/X11/include \
8337 /usr/local/include/X11 \
8338 \
8339 /usr/X386/include \
8340 /usr/x386/include \
8341 /usr/XFree86/include/X11 \
8342 \
cf27ef00 8343 X:/XFree86/include \
ec14dd32
VZ
8344 X:/XFree86/include/X11 \
8345 \
10f2d63a
VZ
8346 /usr/include/gtk \
8347 /usr/local/include/gtk \
8348 /usr/include/glib \
8349 /usr/local/include/glib \
8350 \
8351 /usr/include/qt \
8352 /usr/local/include/qt \
8353 \
8354 /usr/include/windows \
8355 /usr/include/wine \
8356 /usr/local/include/wine \
8357 \
8358 /usr/unsupported/include \
8359 /usr/athena/include \
8360 /usr/local/x11r5/include \
8361 /usr/lpp/Xamples/include \
8362 \
10f2d63a 8363 /usr/openwin/share/include \
928b5c08
VZ
8364 \
8365 /usr/include"
10f2d63a
VZ
8366
8367SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` "
8368
698dcdb6
VZ
8369
8370cat > confcache <<\EOF
10f2d63a
VZ
8371# This file is a shell script that caches the results of configure
8372# tests run on this system so they can be shared between configure
698dcdb6
VZ
8373# scripts and configure runs. It is not useful on other systems.
8374# If it contains results you don't want to keep, you may remove or edit it.
10f2d63a 8375#
698dcdb6
VZ
8376# By default, configure uses ./config.cache as the cache file,
8377# creating it if it does not exist already. You can give configure
8378# the --cache-file=FILE option to use a different cache file; that is
8379# what configure does when it calls configure scripts in
8380# subdirectories, so they share the cache.
8381# Giving --cache-file=/dev/null disables caching, for debugging configure.
8382# config.status only pays attention to the cache file if you give it the
8383# --recheck option to rerun configure.
10f2d63a 8384#
698dcdb6 8385EOF
10f2d63a
VZ
8386# The following way of writing the cache mishandles newlines in values,
8387# but we know of no workaround that is simple, portable, and efficient.
8388# So, don't put newlines in cache variables' values.
8389# Ultrix sh set writes to stderr and can't be redirected directly,
8390# and sets the high bit in the cache file unless we assign to the vars.
698dcdb6
VZ
8391(set) 2>&1 |
8392 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8393 *ac_space=\ *)
8394 # `set' does not quote correctly, so add quotes (double-quote substitution
8395 # turns \\\\ into \\, and sed turns \\ into \).
8396 sed -n \
8397 -e "s/'/'\\\\''/g" \
8398 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
8399 ;;
8400 *)
8401 # `set' quotes correctly as required by POSIX, so do not add quotes.
8402 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8403 ;;
8404 esac >> confcache
8405if cmp -s $cache_file confcache; then
8406 :
8407else
10f2d63a 8408 if test -w $cache_file; then
698dcdb6
VZ
8409 echo "updating cache $cache_file"
8410 cat confcache > $cache_file
10f2d63a
VZ
8411 else
8412 echo "not updating unwritable cache $cache_file"
8413 fi
8414fi
8415rm -f confcache
8416
698dcdb6
VZ
8417
8418
dad6c0ea
VZ
8419AFMINSTALL=
8420
10f2d63a 8421if test "$wxUSE_GUI" = "yes"; then
1e6feb95 8422 USE_GUI=1
10f2d63a 8423
1e6feb95
VZ
8424 TOOLKIT=
8425 TOOLKIT_INCLUDE=
10f2d63a 8426
1e6feb95
VZ
8427 GUI_TK_LIBRARY=
8428 GUI_TK_LINK=
10f2d63a 8429
1e6feb95
VZ
8430 WXGTK12=
8431 WXGTK127=
8432 WXGTK20=
10f2d63a 8433
1e6feb95 8434 WXWINE=
10f2d63a 8435
1e6feb95
VZ
8436 if test "$wxUSE_CYGWIN" = 1 || test "$wxUSE_MINGW" = 1 ; then
8437 if test "$cross_compiling" = "yes" ; then
8438 echo "configure: warning: skipping windows.h check for cross-compilation" 1>&2
8439 else
8440 echo $ac_n "checking for Windows headers""... $ac_c" 1>&6
54276ccf 8441echo "configure:8442: checking for Windows headers" >&5
1e6feb95 8442
10f2d63a
VZ
8443ac_find_includes=
8444for ac_dir in $SEARCH_INCLUDE;
8445 do
8446 if test -f "$ac_dir/windows.h"; then
8447 ac_find_includes=$ac_dir
8448 break
8449 fi
8450 done
8451
1e6feb95
VZ
8452 if test "$ac_find_includes" != "" ; then
8453 echo "$ac_t""found $ac_find_includes" 1>&6
8454 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE -I$ac_find_includes"
8455 else
8456 echo "$ac_t""no" 1>&6
8457 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
8458 fi
10f2d63a 8459 fi
10f2d63a 8460
1e6feb95
VZ
8461 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS msw"
8462 LIBS="$LIBS -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -lcrtdll -ladvapi32 -lwsock32"
f6bcfd97 8463
1e6feb95
VZ
8464 if test "$wxUSE_ODBC" = "yes" ; then
8465 LIBS="$LIBS -lodbc32 -lole32 -loleaut32"
8466 fi
10f2d63a 8467
1e6feb95
VZ
8468 if test "$wxUSE_MINGW" = 1; then
8469 LDFLAGS="$LDFLAGS -mwindows"
8470 fi
32832908 8471
1e6feb95
VZ
8472 TOOLKIT=MSW
8473 GUIDIST=MSW_DIST
32832908 8474
1e6feb95
VZ
8475 RCINCSWITCH="--include-dir"
8476 RCDEFSWITCH="--define"
8477 RCPREPROCESSOR="--preprocessor \"\$(CC) -c -E -xc-header -DRC_INVOKED\""
8478 RCINPUTSWITCH="-i"
8479 RCOUTPUTSWITCH="-o"
8480 RESFLAGS="$RCPREPROCESSOR $RCINCSWITCH \$(top_srcdir)/include $RCINCSWITCH \$(top_srcdir)/\$(program_dir) $RCDEFSWITCH __WIN32__ $RCDEFSWITCH __WIN95__ $RCDEFSWITCH __GNUWIN32__"
32832908 8481
1e6feb95
VZ
8482 RESPROGRAM="\$(RES_PROGRAM)"
8483 fi
10f2d63a 8484
1e6feb95 8485 if test "$wxUSE_GTK" = 1; then
8168de4c 8486 echo $ac_n "checking for GTK+ version""... $ac_c" 1>&6
54276ccf 8487echo "configure:8488: checking for GTK+ version" >&5
8168de4c
VZ
8488
8489 gtk_version_cached=1
8490 if eval "test \"`echo '$''{'wx_cv_lib_gtk'+set}'`\" = set"; then
8491 echo $ac_n "(cached) $ac_c" 1>&6
8492else
8493
8494 gtk_version_cached=0
8495 echo "$ac_t""""" 1>&6
8496
8497 wx_cv_lib_gtk=
8498 if test "x$wxUSE_GTK2" = "xyes"; then
8499 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
6f72b082
OK
8500if test "${with_gtk_prefix+set}" = set; then
8501 withval="$with_gtk_prefix"
8502 gtk_config_prefix="$withval"
8503else
8504 gtk_config_prefix=""
698dcdb6 8505fi
6f72b082
OK
8506
8507# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
8508if test "${with_gtk_exec_prefix+set}" = set; then
8509 withval="$with_gtk_exec_prefix"
8510 gtk_config_exec_prefix="$withval"
8511else
8512 gtk_config_exec_prefix=""
698dcdb6
VZ
8513fi
8514
6f72b082
OK
8515# Check whether --enable-gtktest or --disable-gtktest was given.
8516if test "${enable_gtktest+set}" = set; then
8517 enableval="$enable_gtktest"
698dcdb6 8518 :
6f72b082
OK
8519else
8520 enable_gtktest=yes
698dcdb6
VZ
8521fi
8522
6f72b082 8523
8168de4c 8524 for module in .
6f72b082
OK
8525 do
8526 case "$module" in
8168de4c 8527 gthread)
6f72b082
OK
8528 gtk_config_args="$gtk_config_args gthread"
8529 ;;
8530 esac
8531 done
8532
8533 if test x$gtk_config_exec_prefix != x ; then
8534 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
8535 if test x${GTK_CONFIG_2_0+set} != xset ; then
8536 GTK_CONFIG_2_0=$gtk_config_exec_prefix/bin/gtk-config-2.0
8537 fi
8538 fi
8539 if test x$gtk_config_prefix != x ; then
8540 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
8541 if test x${GTK_CONFIG_2_0+set} != xset ; then
8542 GTK_CONFIG_2_0=$gtk_config_prefix/bin/gtk-config-2.0
8543 fi
8544 fi
8545
8546 # Extract the first word of "gtk-config-2.0", so it can be a program name with args.
8547set dummy gtk-config-2.0; ac_word=$2
698dcdb6 8548echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
54276ccf 8549echo "configure:8550: checking for $ac_word" >&5
698dcdb6
VZ
8550if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG_2_0'+set}'`\" = set"; then
8551 echo $ac_n "(cached) $ac_c" 1>&6
6f72b082 8552else
698dcdb6
VZ
8553 case "$GTK_CONFIG_2_0" in
8554 /*)
6f72b082
OK
8555 ac_cv_path_GTK_CONFIG_2_0="$GTK_CONFIG_2_0" # Let the user override the test with a path.
8556 ;;
698dcdb6
VZ
8557 ?:/*)
8558 ac_cv_path_GTK_CONFIG_2_0="$GTK_CONFIG_2_0" # Let the user override the test with a dos path.
8559 ;;
6f72b082 8560 *)
698dcdb6
VZ
8561 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8562 ac_dummy="$PATH"
8563 for ac_dir in $ac_dummy; do
8564 test -z "$ac_dir" && ac_dir=.
8565 if test -f $ac_dir/$ac_word; then
8566 ac_cv_path_GTK_CONFIG_2_0="$ac_dir/$ac_word"
8567 break
8568 fi
8569 done
8570 IFS="$ac_save_ifs"
6f72b082
OK
8571 test -z "$ac_cv_path_GTK_CONFIG_2_0" && ac_cv_path_GTK_CONFIG_2_0="no"
8572 ;;
8573esac
8574fi
698dcdb6 8575GTK_CONFIG_2_0="$ac_cv_path_GTK_CONFIG_2_0"
6f72b082 8576if test -n "$GTK_CONFIG_2_0"; then
698dcdb6 8577 echo "$ac_t""$GTK_CONFIG_2_0" 1>&6
6f72b082 8578else
698dcdb6 8579 echo "$ac_t""no" 1>&6
6f72b082
OK
8580fi
8581
8582 min_gtk_version=1.3.1
698dcdb6 8583 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
54276ccf 8584echo "configure:8585: checking for GTK - version >= $min_gtk_version" >&5
6f72b082
OK
8585 no_gtk=""
8586 if test "$GTK_CONFIG_2_0" = "no" ; then
8587 no_gtk=yes
8588 else
8589 GTK_CFLAGS=`$GTK_CONFIG_2_0 $gtk_config_args --cflags`
8590 GTK_LIBS=`$GTK_CONFIG_2_0 $gtk_config_args --libs`
8591 gtk_config_major_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \
8592 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
8593 gtk_config_minor_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \
8594 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
8595 gtk_config_micro_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \
8596 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
8597 if test "x$enable_gtktest" = "xyes" ; then
8598 ac_save_CFLAGS="$CFLAGS"
8599 ac_save_LIBS="$LIBS"
8600 CFLAGS="$CFLAGS $GTK_CFLAGS"
8601 LIBS="$GTK_LIBS $LIBS"
8602 rm -f conf.gtktest
8603 if test "$cross_compiling" = yes; then
8604 echo $ac_n "cross compiling; assumed OK... $ac_c"
8605else
698dcdb6 8606 cat > conftest.$ac_ext <<EOF
54276ccf 8607#line 8608 "configure"
6f72b082
OK
8608#include "confdefs.h"
8609
8610#include <gtk/gtk.h>
8611#include <stdio.h>
8612#include <stdlib.h>
8613
8168de4c 8614int
6f72b082
OK
8615main ()
8616{
8617 int major, minor, micro;
8618 char *tmp_version;
8619
8620 system ("touch conf.gtktest");
8621
8622 /* HP/UX 9 (%@#!) writes to sscanf strings */
8623 tmp_version = g_strdup("$min_gtk_version");
8624 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
8625 printf("%s, bad version string\n", "$min_gtk_version");
8626 exit(1);
8627 }
8628
8629 if ((gtk_major_version != $gtk_config_major_version) ||
8630 (gtk_minor_version != $gtk_config_minor_version) ||
8631 (gtk_micro_version != $gtk_config_micro_version))
8632 {
8168de4c 8633 printf("\n*** 'gtk-config-2.0 --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
6f72b082
OK
8634 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
8635 gtk_major_version, gtk_minor_version, gtk_micro_version);
8636 printf ("*** was found! If gtk-config-2.0 was correct, then it is best\n");
8637 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
8638 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
8639 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
8640 printf("*** required on your system.\n");
8641 printf("*** If gtk-config-2.0 was wrong, set the environment variable GTK_CONFIG_2_0\n");
8642 printf("*** to point to the correct copy of gtk-config-2.0, and remove the file config.cache\n");
8643 printf("*** before re-running configure\n");
8168de4c 8644 }
6f72b082
OK
8645#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
8646 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
8168de4c 8647 (gtk_minor_version != GTK_MINOR_VERSION) ||
6f72b082
OK
8648 (gtk_micro_version != GTK_MICRO_VERSION))
8649 {
8650 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
8168de4c 8651 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
6f72b082 8652 printf("*** library (version %d.%d.%d)\n",
8168de4c 8653 gtk_major_version, gtk_minor_version, gtk_micro_version);
6f72b082
OK
8654 }
8655#endif /* defined (GTK_MAJOR_VERSION) ... */
8656 else
8657 {
8658 if ((gtk_major_version > major) ||
8659 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
8660 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
8661 {
8662 return 0;
8663 }
8664 else
8665 {
8666 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
8667 gtk_major_version, gtk_minor_version, gtk_micro_version);
8668 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
8168de4c 8669 major, minor, micro);
6f72b082
OK
8670 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
8671 printf("***\n");
8672 printf("*** If you have already installed a sufficiently new version, this error\n");
8673 printf("*** probably means that the wrong copy of the gtk-config-2.0 shell script is\n");
8674 printf("*** being found. The easiest way to fix this is to remove the old version\n");
8675 printf("*** of GTK+, but you can also set the GTK_CONFIG_2_0 environment to point to the\n");
8676 printf("*** correct copy of gtk-config-2.0. (In this case, you will have to\n");
8677 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
8678 printf("*** so that the correct libraries are found at run-time))\n");
8679 }
8680 }
8681 return 1;
8682}
8683
698dcdb6 8684EOF
54276ccf 8685if { (eval echo configure:8686: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6 8686then
6f72b082
OK
8687 :
8688else
698dcdb6
VZ
8689 echo "configure: failed program was:" >&5
8690 cat conftest.$ac_ext >&5
8691 rm -fr conftest*
8692 no_gtk=yes
6f72b082 8693fi
698dcdb6 8694rm -fr conftest*
6f72b082 8695fi
698dcdb6 8696
6f72b082
OK
8697 CFLAGS="$ac_save_CFLAGS"
8698 LIBS="$ac_save_LIBS"
8699 fi
8700 fi
8701 if test "x$no_gtk" = x ; then
698dcdb6 8702 echo "$ac_t""yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" 1>&6
8168de4c 8703 wx_cv_lib_gtk=2.0
6f72b082 8704 else
698dcdb6 8705 echo "$ac_t""no" 1>&6
6f72b082
OK
8706 if test "$GTK_CONFIG_2_0" = "no" ; then
8707 echo "*** The gtk-config-2.0 script installed by GTK could not be found"
8708 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
8709 echo "*** your path, or set the GTK_CONFIG_2_0 environment variable to the"
8710 echo "*** full path to gtk-config-2.0."
8711 else
8712 if test -f conf.gtktest ; then
8713 :
8714 else
8715 echo "*** Could not run GTK test program, checking why..."
8716 CFLAGS="$CFLAGS $GTK_CFLAGS"
8717 LIBS="$LIBS $GTK_LIBS"
698dcdb6 8718 cat > conftest.$ac_ext <<EOF
54276ccf 8719#line 8720 "configure"
6f72b082
OK
8720#include "confdefs.h"
8721
8722#include <gtk/gtk.h>
8723#include <stdio.h>
8724
698dcdb6
VZ
8725int main() {
8726 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
8727; return 0; }
8728EOF
54276ccf 8729if { (eval echo configure:8730: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 8730 rm -rf conftest*
6f72b082
OK
8731 echo "*** The test program compiled, but did not run. This usually means"
8732 echo "*** that the run-time linker is not finding GTK or finding the wrong"
8733 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
8734 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
8735 echo "*** to the installed location Also, make sure you have run ldconfig if that"
8736 echo "*** is required on your system"
8168de4c 8737 echo "***"
6f72b082
OK
8738 echo "*** If you have an old version installed, it is best to remove it, although"
8739 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
8740 echo "***"
8741 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
8742 echo "*** came with the system with the command"
8743 echo "***"
698dcdb6 8744 echo "*** rpm --erase --nodeps gtk gtk-devel"
6f72b082 8745else
698dcdb6
VZ
8746 echo "configure: failed program was:" >&5
8747 cat conftest.$ac_ext >&5
8748 rm -rf conftest*
8749 echo "*** The test program failed to compile or link. See the file config.log for the"
6f72b082
OK
8750 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
8751 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
698dcdb6 8752 echo "*** may want to edit the gtk-config-2.0 script: $GTK_CONFIG_2_0"
6f72b082 8753fi
698dcdb6 8754rm -f conftest*
6f72b082
OK
8755 CFLAGS="$ac_save_CFLAGS"
8756 LIBS="$ac_save_LIBS"
8757 fi
8758 fi
8759 GTK_CFLAGS=""
8760 GTK_LIBS=""
8168de4c
VZ
8761 gthread
8762 fi
8763
8764
8765 rm -f conf.gtktest
8766
8767 fi
8768
8769 if test -z "$wx_cv_lib_gtk"; then
8770
10f2d63a
VZ
8771 if test x$gtk_config_exec_prefix != x ; then
8772 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
8773 if test x${GTK_CONFIG+set} != xset ; then
8774 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
8775 fi
8776 fi
8777 if test x$gtk_config_prefix != x ; then
8778 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
8779 if test x${GTK_CONFIG+set} != xset ; then
8780 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
8781 fi
8782 fi
8783
8784 # Extract the first word of "gtk-config", so it can be a program name with args.
8785set dummy gtk-config; ac_word=$2
698dcdb6 8786echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
54276ccf 8787echo "configure:8788: checking for $ac_word" >&5
698dcdb6
VZ
8788if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
8789 echo $ac_n "(cached) $ac_c" 1>&6
f6bcfd97 8790else
698dcdb6
VZ
8791 case "$GTK_CONFIG" in
8792 /*)
f6bcfd97
BP
8793 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
8794 ;;
698dcdb6
VZ
8795 ?:/*)
8796 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
8797 ;;
f6bcfd97 8798 *)
698dcdb6
VZ
8799 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8800 ac_dummy="$PATH"
8801 for ac_dir in $ac_dummy; do
8802 test -z "$ac_dir" && ac_dir=.
8803 if test -f $ac_dir/$ac_word; then
8804 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
8805 break
8806 fi
8807 done
8808 IFS="$ac_save_ifs"
f6bcfd97
BP
8809 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
8810 ;;
8811esac
8812fi
698dcdb6 8813GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
f6bcfd97 8814if test -n "$GTK_CONFIG"; then
698dcdb6 8815 echo "$ac_t""$GTK_CONFIG" 1>&6
f6bcfd97 8816else
698dcdb6 8817 echo "$ac_t""no" 1>&6
f6bcfd97
BP
8818fi
8819
8820 min_gtk_version=1.2.7
698dcdb6 8821 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
54276ccf 8822echo "configure:8823: checking for GTK - version >= $min_gtk_version" >&5
f6bcfd97
BP
8823 no_gtk=""
8824 if test "$GTK_CONFIG" != "no" ; then
8825 GTK_CFLAGS=`$GTK_CONFIG --cflags`
8826 GTK_LIBS=`$GTK_CONFIG --libs gthread`
8827 ac_save_CFLAGS="$CFLAGS"
8828 ac_save_LIBS="$LIBS"
8829 CFLAGS="$CFLAGS $GTK_CFLAGS"
8830 LIBS="$LIBS $GTK_LIBS"
8831 if test "$cross_compiling" = yes; then
8832 echo $ac_n "cross compiling; assumed OK... $ac_c"
8833else
698dcdb6 8834 cat > conftest.$ac_ext <<EOF
54276ccf 8835#line 8836 "configure"
f6bcfd97
BP
8836#include "confdefs.h"
8837
8838#include <gtk/gtk.h>
8839#include <gtk/gtkfeatures.h>
8840#include <stdio.h>
8841#include <stdlib.h>
8842
8843int
8844main ()
8845{
8846 int major, minor, micro;
8847
8848 if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, &micro) != 3) {
8849 printf("%s, bad version string\n", "$min_gtk_version");
8850 exit(1);
8851 }
8852
8853 if ((GTK_MAJOR_VERSION != gtk_major_version) ||
8854 (GTK_MINOR_VERSION != gtk_minor_version) ||
8855 (GTK_MICRO_VERSION != gtk_micro_version)) {
8856 printf("Headers vs. library version mismatch!\n");
8857 exit(1);
8858 }
8859
8860 if (gtk_minor_version == 1) return FALSE;
8861
8862 return !((gtk_major_version > major) ||
8863 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
8864 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)));
8865}
8866
698dcdb6 8867EOF
54276ccf 8868if { (eval echo configure:8869: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6 8869then
f6bcfd97
BP
8870 :
8871else
698dcdb6
VZ
8872 echo "configure: failed program was:" >&5
8873 cat conftest.$ac_ext >&5
8874 rm -fr conftest*
8875 no_gtk=yes
f6bcfd97 8876fi
698dcdb6 8877rm -fr conftest*
f6bcfd97 8878fi
698dcdb6 8879
f6bcfd97
BP
8880 CFLAGS="$ac_save_CFLAGS"
8881 LIBS="$ac_save_LIBS"
8882 else
8883 no_gtk=yes
8884 fi
8885 if test "x$no_gtk" = x ; then
698dcdb6 8886 echo "$ac_t""yes" 1>&6
8168de4c 8887 wx_cv_lib_gtk=1.2.7
f6bcfd97 8888 else
698dcdb6 8889 echo "$ac_t""no" 1>&6
f6bcfd97
BP
8890 GTK_CFLAGS=""
8891 GTK_LIBS=""
8892 :
8893 fi
698dcdb6
VZ
8894
8895
f6bcfd97 8896
8168de4c
VZ
8897 fi
8898
8899 if test -z "$wx_cv_lib_gtk"; then
8900
f6bcfd97
BP
8901 if test x$gtk_config_exec_prefix != x ; then
8902 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
8903 if test x${GTK_CONFIG+set} != xset ; then
8904 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
8905 fi
8906 fi
8907 if test x$gtk_config_prefix != x ; then
8908 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
8909 if test x${GTK_CONFIG+set} != xset ; then
8910 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
8911 fi
8912 fi
8913
8914 # Extract the first word of "gtk-config", so it can be a program name with args.
8915set dummy gtk-config; ac_word=$2
698dcdb6 8916echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
54276ccf 8917echo "configure:8918: checking for $ac_word" >&5
698dcdb6
VZ
8918if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
8919 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 8920else
698dcdb6
VZ
8921 case "$GTK_CONFIG" in
8922 /*)
10f2d63a
VZ
8923 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
8924 ;;
698dcdb6
VZ
8925 ?:/*)
8926 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
8927 ;;
10f2d63a 8928 *)
698dcdb6
VZ
8929 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8930 ac_dummy="$PATH"
8931 for ac_dir in $ac_dummy; do
8932 test -z "$ac_dir" && ac_dir=.
8933 if test -f $ac_dir/$ac_word; then
8934 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
8935 break
8936 fi
8937 done
8938 IFS="$ac_save_ifs"
10f2d63a
VZ
8939 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
8940 ;;
8941esac
8942fi
698dcdb6 8943GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
10f2d63a 8944if test -n "$GTK_CONFIG"; then
698dcdb6 8945 echo "$ac_t""$GTK_CONFIG" 1>&6
10f2d63a 8946else
698dcdb6 8947 echo "$ac_t""no" 1>&6
10f2d63a
VZ
8948fi
8949
04165bec 8950 min_gtk_version=1.2.3
698dcdb6 8951 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
54276ccf 8952echo "configure:8953: checking for GTK - version >= $min_gtk_version" >&5
10f2d63a
VZ
8953 no_gtk=""
8954 if test "$GTK_CONFIG" != "no" ; then
8955 GTK_CFLAGS=`$GTK_CONFIG --cflags`
2224580a 8956 GTK_LIBS=`$GTK_CONFIG --libs gthread`
10f2d63a
VZ
8957 ac_save_CFLAGS="$CFLAGS"
8958 ac_save_LIBS="$LIBS"
8959 CFLAGS="$CFLAGS $GTK_CFLAGS"
8960 LIBS="$LIBS $GTK_LIBS"
8961 if test "$cross_compiling" = yes; then
8962 echo $ac_n "cross compiling; assumed OK... $ac_c"
8963else
698dcdb6 8964 cat > conftest.$ac_ext <<EOF
54276ccf 8965#line 8966 "configure"
10f2d63a
VZ
8966#include "confdefs.h"
8967
8968#include <gtk/gtk.h>
f49f2b0c 8969#include <gtk/gtkfeatures.h>
10f2d63a 8970#include <stdio.h>
32832908 8971#include <stdlib.h>
10f2d63a
VZ
8972
8973int
8974main ()
8975{
8976 int major, minor, micro;
8977
8978 if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, &micro) != 3) {
8979 printf("%s, bad version string\n", "$min_gtk_version");
8980 exit(1);
8981 }
8982
f49f2b0c
RR
8983 if ((GTK_MAJOR_VERSION != gtk_major_version) ||
8984 (GTK_MINOR_VERSION != gtk_minor_version) ||
8985 (GTK_MICRO_VERSION != gtk_micro_version)) {
8986 printf("Headers vs. library version mismatch!\n");
8987 exit(1);
8988 }
8989
10f2d63a
VZ
8990 if (gtk_minor_version == 1) return FALSE;
8991
8992 return !((gtk_major_version > major) ||
8993 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
8994 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)));
8995}
8996
698dcdb6 8997EOF
54276ccf 8998if { (eval echo configure:8999: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6 8999then
10f2d63a
VZ
9000 :
9001else
698dcdb6
VZ
9002 echo "configure: failed program was:" >&5
9003 cat conftest.$ac_ext >&5
9004 rm -fr conftest*
9005 no_gtk=yes
10f2d63a 9006fi
698dcdb6 9007rm -fr conftest*
10f2d63a 9008fi
698dcdb6 9009
10f2d63a
VZ
9010 CFLAGS="$ac_save_CFLAGS"
9011 LIBS="$ac_save_LIBS"
9012 else
9013 no_gtk=yes
9014 fi
9015 if test "x$no_gtk" = x ; then
698dcdb6 9016 echo "$ac_t""yes" 1>&6
8168de4c 9017 wx_cv_lib_gtk=1.2.3
10f2d63a 9018 else
698dcdb6 9019 echo "$ac_t""no" 1>&6
10f2d63a
VZ
9020 GTK_CFLAGS=""
9021 GTK_LIBS=""
7e99ad86 9022 :
10f2d63a 9023 fi
698dcdb6
VZ
9024
9025
10f2d63a 9026
8168de4c
VZ
9027 fi
9028
9029 if test -z "$wx_cv_lib_gtk"; then
9030 wx_cv_lib_gtk=none
9031 fi
9032
1e6feb95 9033
8168de4c 9034fi
703e0a69 9035
698dcdb6 9036
8168de4c
VZ
9037 if test "$gtk_version_cached" = 1; then
9038 echo "$ac_t""$wx_cv_lib_gtk" 1>&6
1e6feb95 9039 fi
698dcdb6 9040
8168de4c
VZ
9041 case "$wx_cv_lib_gtk" in
9042 2.0) WXGTK20=1
9043 ;;
9044 1.2.7) WXGTK127=1
9045 ;;
9046 1.2.3) WXGTK12=1
9047 ;;
9048 *) { echo "configure: error:
9049Please check that gtk-config is in path, the directory
9050where GTK+ libraries are installed (returned by
9051'gtk-config --libs' command) is in LD_LIBRARY_PATH or
9052equivalent variable and GTK+ is version 1.2.3 or above.
9053 " 1>&2; exit 1; }
9054 ;;
9055 esac
2224580a 9056
8168de4c 9057 TOOLKIT_INCLUDE="$GTK_CFLAGS"
1e6feb95 9058 GUI_TK_LIBRARY="$GTK_LIBS"
698dcdb6 9059
1e6feb95
VZ
9060 AFMINSTALL=afminstall
9061 TOOLKIT=GTK
9062 GUIDIST=GTK_DIST
7ec2881a 9063
1e6feb95 9064 echo $ac_n "checking for gdk_im_open in -lgdk""... $ac_c" 1>&6
54276ccf 9065echo "configure:9066: checking for gdk_im_open in -lgdk" >&5
698dcdb6
VZ
9066ac_lib_var=`echo gdk'_'gdk_im_open | sed 'y%./+-%__p_%'`
9067if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9068 echo $ac_n "(cached) $ac_c" 1>&6
7ec2881a 9069else
698dcdb6 9070 ac_save_LIBS="$LIBS"
7ec2881a 9071LIBS="-lgdk $LIBS"
698dcdb6 9072cat > conftest.$ac_ext <<EOF
54276ccf 9073#line 9074 "configure"
7ec2881a
RR
9074#include "confdefs.h"
9075/* Override any gcc2 internal prototype to avoid an error. */
9076/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
9077 builtin and then its argument prototype would still apply. */
9078char gdk_im_open();
9079
9080int main() {
9081gdk_im_open()
9082; return 0; }
9083EOF
54276ccf 9084if { (eval echo configure:9085: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
9085 rm -rf conftest*
9086 eval "ac_cv_lib_$ac_lib_var=yes"
9087else
9088 echo "configure: failed program was:" >&5
9089 cat conftest.$ac_ext >&5
9090 rm -rf conftest*
9091 eval "ac_cv_lib_$ac_lib_var=no"
9092fi
9093rm -f conftest*
9094LIBS="$ac_save_LIBS"
9095
9096fi
9097if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9098 echo "$ac_t""yes" 1>&6
9099 cat >> confdefs.h <<\EOF
7ec2881a
RR
9100#define HAVE_XIM 1
9101EOF
9102
698dcdb6
VZ
9103else
9104 echo "$ac_t""no" 1>&6
7ec2881a
RR
9105fi
9106
1e6feb95 9107 fi
10f2d63a 9108
1e6feb95
VZ
9109 if test "$wxUSE_MGL" = 1; then
9110
9111 echo $ac_n "checking for SciTech MGL library""... $ac_c" 1>&6
54276ccf 9112echo "configure:9113: checking for SciTech MGL library" >&5
1e6feb95
VZ
9113 if test "x$MGL_ROOT" = x ; then
9114 echo "$ac_t""not found" 1>&6
9115 { echo "configure: error: Cannot find MGL library. Make sure MGL_ROOT is set." 1>&2; exit 1; }
9116 else
9117 echo "$ac_t""$MGL_ROOT" 1>&6
9118 fi
9119
9120 MGL_OS=linux/gcc/glibc
9121 MGL_LIB_TYPE=""
9122
9123 if test "$wxUSE_DEBUG_FLAG" = yes ; then
9124 if test -f $MGL_ROOT/lib/debug/$MGL_OS/libmgl.a ; then
9125 MGL_LIB_TYPE=debug
9126 fi
9127 fi
9128 if test "x$MGL_LIB_TYPE" = x ; then
9129 if test -f $MGL_ROOT/lib/release/$MGL_OS/libmgl.a ; then
9130 MGL_LIB_TYPE=release
9131 else
9132 { echo "configure: error: Cannot find MGL libraries, make sure they are compiled." 1>&2; exit 1; }
9133 fi
9134 fi
9135
9136 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
9137 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$MGL_LIB_TYPE/$MGL_OS -lmgl -lmglcpp -lpm"
9138
9139 AFMINSTALL=afminstall
9140 TOOLKIT=MGL
9141 GUIDIST=MGL_DIST
9142 fi
9143
9144 if test "$wxUSE_WINE" = 1; then
9145 echo $ac_n "checking for WINE includes""... $ac_c" 1>&6
54276ccf 9146echo "configure:9147: checking for WINE includes" >&5
1e6feb95 9147
10f2d63a
VZ
9148ac_find_includes=
9149for ac_dir in $SEARCH_INCLUDE;
9150 do
9151 if test -f "$ac_dir/windows.h"; then
9152 ac_find_includes=$ac_dir
9153 break
9154 fi
9155 done
9156
1e6feb95
VZ
9157 if test "$ac_find_includes" != "" ; then
9158 echo "$ac_t""found $ac_find_includes" 1>&6
9159 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE -I$ac_find_includes"
9160 else
9161 echo "$ac_t""no" 1>&6
9162 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
9163 fi
10f2d63a 9164
1e6feb95
VZ
9165 XPM_LINK=""
9166 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
54276ccf 9167echo "configure:9168: checking for Xpm library" >&5
1e6feb95 9168
10f2d63a
VZ
9169ac_find_libraries=
9170for ac_dir in $SEARCH_LIB;
9171 do
9172 for ac_extension in a so sl; do
9173 if test -f "$ac_dir/libXpm.$ac_extension"; then
9174 ac_find_libraries=$ac_dir
9175 break 2
9176 fi
9177 done
9178 done
9179
1e6feb95
VZ
9180 if test "$ac_find_libraries" != "" ; then
9181 GUI_TK_LIBRARY="-L$ac_find_libraries"
9182 XPM_LINK="-lXpm"
9183 cat >> confdefs.h <<\EOF
10f2d63a
VZ
9184#define wxHAVE_LIB_XPM 1
9185EOF
9186
1e6feb95
VZ
9187 echo "$ac_t""found at $ac_find_libraries" 1>&6
9188 else
9189 echo "$ac_t""no" 1>&6
9190 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
9191 fi
10f2d63a 9192
1e6feb95
VZ
9193 MESA_LINK=""
9194 echo $ac_n "checking for Mesa library""... $ac_c" 1>&6
54276ccf 9195echo "configure:9196: checking for Mesa library" >&5
1e6feb95 9196
10f2d63a
VZ
9197ac_find_libraries=
9198for ac_dir in $SEARCH_LIB;
9199 do
9200 for ac_extension in a so sl; do
9201 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
9202 ac_find_libraries=$ac_dir
9203 break 2
9204 fi
9205 done
9206 done
9207
1e6feb95
VZ
9208 if test "$ac_find_libraries" != "" ; then
9209 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -L$ac_find_libraries"
9210 MESA_LINK="-lMesaGL"
9211 echo "$ac_t""found at $ac_find_libraries" 1>&6
9212 else
9213 { echo "configure: error: no" 1>&2; exit 1; }
9214 fi
10f2d63a 9215
1e6feb95
VZ
9216 GUI_TK_LINK="-lwine $MESA_LINK $XPM_LINK -lXxf86dga -lXxf86vm -lSM -lICE -lXext -lXmu -lX11 -lncurses"
9217 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $GUI_TK_LINK"
9218 WXWINE=1
9219 TOOLKIT=MSW
9220 GUIDIST=MSW_DIST
9221 fi
698dcdb6 9222
1e6feb95
VZ
9223
9224 # If we find X, set shell vars x_includes and x_libraries to the
698dcdb6
VZ
9225# paths, otherwise set no_x=yes.
9226# Uses ac_ vars as temps to allow command line to override cache and checks.
9227# --without-x overrides everything else, but does not touch the cache.
9228echo $ac_n "checking for X""... $ac_c" 1>&6
54276ccf 9229echo "configure:9230: checking for X" >&5
ab9b9eab
VZ
9230
9231# Check whether --with-x or --without-x was given.
9232if test "${with_x+set}" = set; then
9233 withval="$with_x"
698dcdb6
VZ
9234 :
9235fi
ba337fe7 9236
ab9b9eab
VZ
9237# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9238if test "x$with_x" = xno; then
9239 # The user explicitly disabled X.
9240 have_x=disabled
9241else
9242 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
9243 # Both variables are already set.
9244 have_x=yes
9245 else
698dcdb6
VZ
9246if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
9247 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab
VZ
9248else
9249 # One or both of the vars are not set, and there is no cached value.
698dcdb6
VZ
9250ac_x_includes=NO ac_x_libraries=NO
9251rm -fr conftestdir
9252if mkdir conftestdir; then
9253 cd conftestdir
ab9b9eab 9254 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
698dcdb6 9255 cat > Imakefile <<'EOF'
ab9b9eab
VZ
9256acfindx:
9257 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
9258EOF
9259 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
9260 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9261 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
9262 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
10f2d63a 9263 for ac_extension in a so sl; do
ab9b9eab 9264 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
698dcdb6 9265 test -f $ac_im_libdir/libX11.$ac_extension; then
ab9b9eab 9266 ac_im_usrlibdir=$ac_im_libdir; break
10f2d63a
VZ
9267 fi
9268 done
ab9b9eab
VZ
9269 # Screen out bogus values from the imake configuration. They are
9270 # bogus both because they are the default anyway, and because
9271 # using them would break gcc on systems where it needs fixed includes.
698dcdb6 9272 case "$ac_im_incroot" in
ab9b9eab 9273 /usr/include) ;;
698dcdb6 9274 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
ab9b9eab 9275 esac
698dcdb6 9276 case "$ac_im_usrlibdir" in
ab9b9eab 9277 /usr/lib | /lib) ;;
698dcdb6 9278 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
ab9b9eab 9279 esac
ba337fe7 9280 fi
ab9b9eab 9281 cd ..
698dcdb6 9282 rm -fr conftestdir
ab9b9eab 9283fi
10f2d63a 9284
698dcdb6
VZ
9285if test "$ac_x_includes" = NO; then
9286 # Guess where to find include files, by looking for this one X11 .h file.
9287 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
9288
ab9b9eab 9289 # First, try using that file with no special directory specified.
698dcdb6 9290cat > conftest.$ac_ext <<EOF
54276ccf 9291#line 9292 "configure"
ab9b9eab 9292#include "confdefs.h"
698dcdb6
VZ
9293#include <$x_direct_test_include>
9294EOF
9295ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
54276ccf 9296{ (eval echo configure:9297: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
9297ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9298if test -z "$ac_err"; then
9299 rm -rf conftest*
ab9b9eab
VZ
9300 # We can compile using X headers with no special include directory.
9301ac_x_includes=
9302else
698dcdb6
VZ
9303 echo "$ac_err" >&5
9304 echo "configure: failed program was:" >&5
ab9b9eab 9305 cat conftest.$ac_ext >&5
698dcdb6
VZ
9306 rm -rf conftest*
9307 # Look for the header file in a standard set of common directories.
9308# Check X11 before X11Rn because it is often a symlink to the current release.
9309 for ac_dir in \
9310 /usr/X11/include \
9311 /usr/X11R6/include \
9312 /usr/X11R5/include \
9313 /usr/X11R4/include \
9314 \
9315 /usr/include/X11 \
9316 /usr/include/X11R6 \
9317 /usr/include/X11R5 \
9318 /usr/include/X11R4 \
9319 \
9320 /usr/local/X11/include \
9321 /usr/local/X11R6/include \
9322 /usr/local/X11R5/include \
9323 /usr/local/X11R4/include \
9324 \
9325 /usr/local/include/X11 \
9326 /usr/local/include/X11R6 \
9327 /usr/local/include/X11R5 \
9328 /usr/local/include/X11R4 \
9329 \
9330 /usr/X386/include \
9331 /usr/x386/include \
9332 /usr/XFree86/include/X11 \
9333 \
9334 /usr/include \
9335 /usr/local/include \
9336 /usr/unsupported/include \
9337 /usr/athena/include \
9338 /usr/local/x11r5/include \
9339 /usr/lpp/Xamples/include \
9340 \
9341 /usr/openwin/include \
9342 /usr/openwin/share/include \
9343 ; \
9344 do
9345 if test -r "$ac_dir/$x_direct_test_include"; then
9346 ac_x_includes=$ac_dir
9347 break
9348 fi
9349 done
ab9b9eab 9350fi
698dcdb6
VZ
9351rm -f conftest*
9352fi # $ac_x_includes = NO
10f2d63a 9353
698dcdb6 9354if test "$ac_x_libraries" = NO; then
ab9b9eab 9355 # Check for the libraries.
698dcdb6
VZ
9356
9357 test -z "$x_direct_test_library" && x_direct_test_library=Xt
9358 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
9359
ab9b9eab
VZ
9360 # See if we find them without any special options.
9361 # Don't add to $LIBS permanently.
698dcdb6
VZ
9362 ac_save_LIBS="$LIBS"
9363 LIBS="-l$x_direct_test_library $LIBS"
9364cat > conftest.$ac_ext <<EOF
54276ccf 9365#line 9366 "configure"
ab9b9eab 9366#include "confdefs.h"
698dcdb6
VZ
9367
9368int main() {
9369${x_direct_test_function}()
9370; return 0; }
9371EOF
54276ccf 9372if { (eval echo configure:9373: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
9373 rm -rf conftest*
9374 LIBS="$ac_save_LIBS"
ab9b9eab
VZ
9375# We can link X programs with no special library path.
9376ac_x_libraries=
9377else
698dcdb6
VZ
9378 echo "configure: failed program was:" >&5
9379 cat conftest.$ac_ext >&5
9380 rm -rf conftest*
9381 LIBS="$ac_save_LIBS"
9382# First see if replacing the include by lib works.
9383# Check X11 before X11Rn because it is often a symlink to the current release.
9384for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
9385 /usr/X11/lib \
9386 /usr/X11R6/lib \
9387 /usr/X11R5/lib \
9388 /usr/X11R4/lib \
9389 \
9390 /usr/lib/X11 \
9391 /usr/lib/X11R6 \
9392 /usr/lib/X11R5 \
9393 /usr/lib/X11R4 \
9394 \
9395 /usr/local/X11/lib \
9396 /usr/local/X11R6/lib \
9397 /usr/local/X11R5/lib \
9398 /usr/local/X11R4/lib \
9399 \
9400 /usr/local/lib/X11 \
9401 /usr/local/lib/X11R6 \
9402 /usr/local/lib/X11R5 \
9403 /usr/local/lib/X11R4 \
9404 \
9405 /usr/X386/lib \
9406 /usr/x386/lib \
9407 /usr/XFree86/lib/X11 \
9408 \
9409 /usr/lib \
9410 /usr/local/lib \
9411 /usr/unsupported/lib \
9412 /usr/athena/lib \
9413 /usr/local/x11r5/lib \
9414 /usr/lpp/Xamples/lib \
9415 /lib/usr/lib/X11 \
9416 \
9417 /usr/openwin/lib \
9418 /usr/openwin/share/lib \
9419 ; \
ab9b9eab
VZ
9420do
9421 for ac_extension in a so sl; do
698dcdb6 9422 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
ab9b9eab
VZ
9423 ac_x_libraries=$ac_dir
9424 break 2
10f2d63a 9425 fi
10f2d63a 9426 done
ab9b9eab
VZ
9427done
9428fi
698dcdb6
VZ
9429rm -f conftest*
9430fi # $ac_x_libraries = NO
10f2d63a 9431
698dcdb6 9432if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
ab9b9eab
VZ
9433 # Didn't find X anywhere. Cache the known absence of X.
9434 ac_cv_have_x="have_x=no"
9435else
9436 # Record where we found X for the cache.
9437 ac_cv_have_x="have_x=yes \
9438 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
9439fi
9440fi
10f2d63a 9441 fi
ab9b9eab
VZ
9442 eval "$ac_cv_have_x"
9443fi # $with_x != no
10f2d63a 9444
ab9b9eab 9445if test "$have_x" != yes; then
698dcdb6 9446 echo "$ac_t""$have_x" 1>&6
ab9b9eab
VZ
9447 no_x=yes
9448else
9449 # If each of the values was on the command line, it overrides each guess.
9450 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9451 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9452 # Update the cache value to reflect the command line values.
9453 ac_cv_have_x="have_x=yes \
9454 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
698dcdb6 9455 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
ab9b9eab 9456fi
10f2d63a 9457
ab9b9eab
VZ
9458if test "$no_x" = yes; then
9459 # Not all programs may use this symbol, but it does not hurt to define it.
698dcdb6 9460 cat >> confdefs.h <<\EOF
ab9b9eab
VZ
9461#define X_DISPLAY_MISSING 1
9462EOF
10f2d63a 9463
ab9b9eab
VZ
9464 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
9465else
9466 if test -n "$x_includes"; then
9467 X_CFLAGS="$X_CFLAGS -I$x_includes"
10f2d63a
VZ
9468 fi
9469
ab9b9eab
VZ
9470 # It would also be nice to do this for all -L options, not just this one.
9471 if test -n "$x_libraries"; then
9472 X_LIBS="$X_LIBS -L$x_libraries"
9473 # For Solaris; some versions of Sun CC require a space after -R and
9474 # others require no space. Words are not sufficient . . . .
698dcdb6 9475 case "`(uname -sr) 2>/dev/null`" in
ab9b9eab 9476 "SunOS 5"*)
698dcdb6 9477 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
54276ccf 9478echo "configure:9479: checking whether -R must be followed by a space" >&5
698dcdb6
VZ
9479 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
9480 cat > conftest.$ac_ext <<EOF
54276ccf 9481#line 9482 "configure"
ab9b9eab 9482#include "confdefs.h"
10f2d63a 9483
698dcdb6 9484int main() {
788deba1 9485
698dcdb6
VZ
9486; return 0; }
9487EOF
54276ccf 9488if { (eval echo configure:9489: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 9489 rm -rf conftest*
ab9b9eab
VZ
9490 ac_R_nospace=yes
9491else
698dcdb6
VZ
9492 echo "configure: failed program was:" >&5
9493 cat conftest.$ac_ext >&5
9494 rm -rf conftest*
9495 ac_R_nospace=no
ab9b9eab 9496fi
698dcdb6 9497rm -f conftest*
ab9b9eab 9498 if test $ac_R_nospace = yes; then
698dcdb6 9499 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
9500 X_LIBS="$X_LIBS -R$x_libraries"
9501 else
9502 LIBS="$ac_xsave_LIBS -R $x_libraries"
698dcdb6 9503 cat > conftest.$ac_ext <<EOF
54276ccf 9504#line 9505 "configure"
ab9b9eab 9505#include "confdefs.h"
788deba1 9506
698dcdb6 9507int main() {
ab9b9eab 9508
698dcdb6
VZ
9509; return 0; }
9510EOF
54276ccf 9511if { (eval echo configure:9512: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 9512 rm -rf conftest*
ab9b9eab
VZ
9513 ac_R_space=yes
9514else
698dcdb6
VZ
9515 echo "configure: failed program was:" >&5
9516 cat conftest.$ac_ext >&5
9517 rm -rf conftest*
9518 ac_R_space=no
ab9b9eab 9519fi
698dcdb6 9520rm -f conftest*
ab9b9eab 9521 if test $ac_R_space = yes; then
698dcdb6 9522 echo "$ac_t""yes" 1>&6
ab9b9eab
VZ
9523 X_LIBS="$X_LIBS -R $x_libraries"
9524 else
698dcdb6 9525 echo "$ac_t""neither works" 1>&6
ab9b9eab
VZ
9526 fi
9527 fi
698dcdb6 9528 LIBS="$ac_xsave_LIBS"
ab9b9eab
VZ
9529 esac
9530 fi
9531
9532 # Check for system-dependent libraries X programs must link with.
9533 # Do this before checking for the system-independent R6 libraries
9534 # (-lICE), since we may need -lsocket or whatever for X linking.
9535
9536 if test "$ISC" = yes; then
9537 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
9538 else
698dcdb6
VZ
9539 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
9540 # libraries were built with DECnet support. And karl@cs.umb.edu says
ab9b9eab 9541 # the Alpha needs dnet_stub (dnet does not exist).
698dcdb6 9542 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
54276ccf 9543echo "configure:9544: checking for dnet_ntoa in -ldnet" >&5
698dcdb6
VZ
9544ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
9545if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9546 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 9547else
698dcdb6 9548 ac_save_LIBS="$LIBS"
ab9b9eab 9549LIBS="-ldnet $LIBS"
698dcdb6 9550cat > conftest.$ac_ext <<EOF
54276ccf 9551#line 9552 "configure"
ab9b9eab
VZ
9552#include "confdefs.h"
9553/* Override any gcc2 internal prototype to avoid an error. */
9554/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
9555 builtin and then its argument prototype would still apply. */
9556char dnet_ntoa();
9557
9558int main() {
9559dnet_ntoa()
9560; return 0; }
9561EOF
54276ccf 9562if { (eval echo configure:9563: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
9563 rm -rf conftest*
9564 eval "ac_cv_lib_$ac_lib_var=yes"
9565else
9566 echo "configure: failed program was:" >&5
9567 cat conftest.$ac_ext >&5
9568 rm -rf conftest*
9569 eval "ac_cv_lib_$ac_lib_var=no"
9570fi
9571rm -f conftest*
9572LIBS="$ac_save_LIBS"
9573
9574fi
9575if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9576 echo "$ac_t""yes" 1>&6
ab9b9eab 9577 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
698dcdb6
VZ
9578else
9579 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
9580fi
9581
9582 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
698dcdb6 9583 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
54276ccf 9584echo "configure:9585: checking for dnet_ntoa in -ldnet_stub" >&5
698dcdb6
VZ
9585ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
9586if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9587 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 9588else
698dcdb6 9589 ac_save_LIBS="$LIBS"
ab9b9eab 9590LIBS="-ldnet_stub $LIBS"
698dcdb6 9591cat > conftest.$ac_ext <<EOF
54276ccf 9592#line 9593 "configure"
ab9b9eab
VZ
9593#include "confdefs.h"
9594/* Override any gcc2 internal prototype to avoid an error. */
9595/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
9596 builtin and then its argument prototype would still apply. */
9597char dnet_ntoa();
9598
9599int main() {
9600dnet_ntoa()
9601; return 0; }
9602EOF
54276ccf 9603if { (eval echo configure:9604: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
9604 rm -rf conftest*
9605 eval "ac_cv_lib_$ac_lib_var=yes"
9606else
9607 echo "configure: failed program was:" >&5
9608 cat conftest.$ac_ext >&5
9609 rm -rf conftest*
9610 eval "ac_cv_lib_$ac_lib_var=no"
9611fi
9612rm -f conftest*
9613LIBS="$ac_save_LIBS"
9614
9615fi
9616if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9617 echo "$ac_t""yes" 1>&6
ab9b9eab 9618 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
698dcdb6
VZ
9619else
9620 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
9621fi
9622
9623 fi
9624
9625 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
9626 # to get the SysV transport functions.
698dcdb6 9627 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
ab9b9eab
VZ
9628 # needs -lnsl.
9629 # The nsl library prevents programs from opening the X display
698dcdb6
VZ
9630 # on Irix 5.2, according to dickey@clark.net.
9631 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
54276ccf 9632echo "configure:9633: checking for gethostbyname" >&5
698dcdb6
VZ
9633if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
9634 echo $ac_n "(cached) $ac_c" 1>&6
9635else
9636 cat > conftest.$ac_ext <<EOF
54276ccf 9637#line 9638 "configure"
ab9b9eab
VZ
9638#include "confdefs.h"
9639/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 9640 which can conflict with char gethostbyname(); below. */
ab9b9eab
VZ
9641#include <assert.h>
9642/* Override any gcc2 internal prototype to avoid an error. */
9643/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
9644 builtin and then its argument prototype would still apply. */
9645char gethostbyname();
9646
9647int main() {
ab9b9eab
VZ
9648
9649/* The GNU C library defines this for functions which it implements
9650 to always fail with ENOSYS. Some functions are actually named
9651 something starting with __ and the normal name is an alias. */
9652#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
9653choke me
9654#else
698dcdb6 9655gethostbyname();
ab9b9eab
VZ
9656#endif
9657
698dcdb6
VZ
9658; return 0; }
9659EOF
54276ccf 9660if { (eval echo configure:9661: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
9661 rm -rf conftest*
9662 eval "ac_cv_func_gethostbyname=yes"
9663else
9664 echo "configure: failed program was:" >&5
9665 cat conftest.$ac_ext >&5
9666 rm -rf conftest*
9667 eval "ac_cv_func_gethostbyname=no"
9668fi
9669rm -f conftest*
9670fi
9671
9672if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
9673 echo "$ac_t""yes" 1>&6
9674 :
9675else
9676 echo "$ac_t""no" 1>&6
9677fi
ab9b9eab
VZ
9678
9679 if test $ac_cv_func_gethostbyname = no; then
698dcdb6 9680 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
54276ccf 9681echo "configure:9682: checking for gethostbyname in -lnsl" >&5
698dcdb6
VZ
9682ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
9683if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9684 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 9685else
698dcdb6 9686 ac_save_LIBS="$LIBS"
ab9b9eab 9687LIBS="-lnsl $LIBS"
698dcdb6 9688cat > conftest.$ac_ext <<EOF
54276ccf 9689#line 9690 "configure"
ab9b9eab
VZ
9690#include "confdefs.h"
9691/* Override any gcc2 internal prototype to avoid an error. */
9692/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
9693 builtin and then its argument prototype would still apply. */
9694char gethostbyname();
6232543b 9695
698dcdb6
VZ
9696int main() {
9697gethostbyname()
9698; return 0; }
9699EOF
54276ccf 9700if { (eval echo configure:9701: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
9701 rm -rf conftest*
9702 eval "ac_cv_lib_$ac_lib_var=yes"
703e0a69 9703else
698dcdb6
VZ
9704 echo "configure: failed program was:" >&5
9705 cat conftest.$ac_ext >&5
9706 rm -rf conftest*
9707 eval "ac_cv_lib_$ac_lib_var=no"
9708fi
9709rm -f conftest*
9710LIBS="$ac_save_LIBS"
1e487827 9711
698dcdb6
VZ
9712fi
9713if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9714 echo "$ac_t""yes" 1>&6
9715 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
9716else
9717 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
9718fi
9719
9720 fi
9721
9722 # lieder@skyler.mavd.honeywell.com says without -lsocket,
9723 # socket/setsockopt and other routines are undefined under SCO ODT
9724 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
698dcdb6
VZ
9725 # on later versions), says simon@lia.di.epfl.ch: it contains
9726 # gethostby* variants that don't use the nameserver (or something).
9727 # -lsocket must be given before -lnsl if both are needed.
9728 # We assume that if connect needs -lnsl, so does gethostbyname.
9729 echo $ac_n "checking for connect""... $ac_c" 1>&6
54276ccf 9730echo "configure:9731: checking for connect" >&5
698dcdb6
VZ
9731if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
9732 echo $ac_n "(cached) $ac_c" 1>&6
9733else
9734 cat > conftest.$ac_ext <<EOF
54276ccf 9735#line 9736 "configure"
ab9b9eab
VZ
9736#include "confdefs.h"
9737/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 9738 which can conflict with char connect(); below. */
ab9b9eab
VZ
9739#include <assert.h>
9740/* Override any gcc2 internal prototype to avoid an error. */
9741/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
9742 builtin and then its argument prototype would still apply. */
9743char connect();
9744
9745int main() {
ab9b9eab
VZ
9746
9747/* The GNU C library defines this for functions which it implements
9748 to always fail with ENOSYS. Some functions are actually named
9749 something starting with __ and the normal name is an alias. */
9750#if defined (__stub_connect) || defined (__stub___connect)
9751choke me
9752#else
698dcdb6 9753connect();
ab9b9eab
VZ
9754#endif
9755
698dcdb6
VZ
9756; return 0; }
9757EOF
54276ccf 9758if { (eval echo configure:9759: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
9759 rm -rf conftest*
9760 eval "ac_cv_func_connect=yes"
9761else
9762 echo "configure: failed program was:" >&5
9763 cat conftest.$ac_ext >&5
9764 rm -rf conftest*
9765 eval "ac_cv_func_connect=no"
9766fi
9767rm -f conftest*
9768fi
9769
9770if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
9771 echo "$ac_t""yes" 1>&6
9772 :
9773else
9774 echo "$ac_t""no" 1>&6
9775fi
ab9b9eab
VZ
9776
9777 if test $ac_cv_func_connect = no; then
698dcdb6 9778 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
54276ccf 9779echo "configure:9780: checking for connect in -lsocket" >&5
698dcdb6
VZ
9780ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
9781if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9782 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 9783else
698dcdb6 9784 ac_save_LIBS="$LIBS"
ab9b9eab 9785LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
698dcdb6 9786cat > conftest.$ac_ext <<EOF
54276ccf 9787#line 9788 "configure"
ab9b9eab
VZ
9788#include "confdefs.h"
9789/* Override any gcc2 internal prototype to avoid an error. */
9790/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
9791 builtin and then its argument prototype would still apply. */
9792char connect();
9793
9794int main() {
9795connect()
9796; return 0; }
9797EOF
54276ccf 9798if { (eval echo configure:9799: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
9799 rm -rf conftest*
9800 eval "ac_cv_lib_$ac_lib_var=yes"
9801else
9802 echo "configure: failed program was:" >&5
9803 cat conftest.$ac_ext >&5
9804 rm -rf conftest*
9805 eval "ac_cv_lib_$ac_lib_var=no"
9806fi
9807rm -f conftest*
9808LIBS="$ac_save_LIBS"
9809
9810fi
9811if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9812 echo "$ac_t""yes" 1>&6
ab9b9eab 9813 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
698dcdb6
VZ
9814else
9815 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
9816fi
9817
9818 fi
9819
698dcdb6
VZ
9820 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
9821 echo $ac_n "checking for remove""... $ac_c" 1>&6
54276ccf 9822echo "configure:9823: checking for remove" >&5
698dcdb6
VZ
9823if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
9824 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 9825else
698dcdb6 9826 cat > conftest.$ac_ext <<EOF
54276ccf 9827#line 9828 "configure"
ab9b9eab
VZ
9828#include "confdefs.h"
9829/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 9830 which can conflict with char remove(); below. */
ab9b9eab
VZ
9831#include <assert.h>
9832/* Override any gcc2 internal prototype to avoid an error. */
9833/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
9834 builtin and then its argument prototype would still apply. */
9835char remove();
9836
9837int main() {
ab9b9eab
VZ
9838
9839/* The GNU C library defines this for functions which it implements
9840 to always fail with ENOSYS. Some functions are actually named
9841 something starting with __ and the normal name is an alias. */
9842#if defined (__stub_remove) || defined (__stub___remove)
9843choke me
9844#else
698dcdb6 9845remove();
ab9b9eab
VZ
9846#endif
9847
698dcdb6
VZ
9848; return 0; }
9849EOF
54276ccf 9850if { (eval echo configure:9851: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
9851 rm -rf conftest*
9852 eval "ac_cv_func_remove=yes"
9853else
9854 echo "configure: failed program was:" >&5
9855 cat conftest.$ac_ext >&5
9856 rm -rf conftest*
9857 eval "ac_cv_func_remove=no"
9858fi
9859rm -f conftest*
9860fi
9861
9862if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
9863 echo "$ac_t""yes" 1>&6
9864 :
9865else
9866 echo "$ac_t""no" 1>&6
9867fi
ab9b9eab
VZ
9868
9869 if test $ac_cv_func_remove = no; then
698dcdb6 9870 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
54276ccf 9871echo "configure:9872: checking for remove in -lposix" >&5
698dcdb6
VZ
9872ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
9873if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9874 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 9875else
698dcdb6 9876 ac_save_LIBS="$LIBS"
ab9b9eab 9877LIBS="-lposix $LIBS"
698dcdb6 9878cat > conftest.$ac_ext <<EOF
54276ccf 9879#line 9880 "configure"
ab9b9eab
VZ
9880#include "confdefs.h"
9881/* Override any gcc2 internal prototype to avoid an error. */
9882/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
9883 builtin and then its argument prototype would still apply. */
9884char remove();
9885
9886int main() {
9887remove()
9888; return 0; }
9889EOF
54276ccf 9890if { (eval echo configure:9891: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
9891 rm -rf conftest*
9892 eval "ac_cv_lib_$ac_lib_var=yes"
9893else
9894 echo "configure: failed program was:" >&5
9895 cat conftest.$ac_ext >&5
9896 rm -rf conftest*
9897 eval "ac_cv_lib_$ac_lib_var=no"
9898fi
9899rm -f conftest*
9900LIBS="$ac_save_LIBS"
9901
9902fi
9903if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9904 echo "$ac_t""yes" 1>&6
ab9b9eab 9905 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
698dcdb6
VZ
9906else
9907 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
9908fi
9909
9910 fi
9911
9912 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
698dcdb6 9913 echo $ac_n "checking for shmat""... $ac_c" 1>&6
54276ccf 9914echo "configure:9915: checking for shmat" >&5
698dcdb6
VZ
9915if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
9916 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 9917else
698dcdb6 9918 cat > conftest.$ac_ext <<EOF
54276ccf 9919#line 9920 "configure"
ab9b9eab
VZ
9920#include "confdefs.h"
9921/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 9922 which can conflict with char shmat(); below. */
ab9b9eab
VZ
9923#include <assert.h>
9924/* Override any gcc2 internal prototype to avoid an error. */
9925/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
9926 builtin and then its argument prototype would still apply. */
9927char shmat();
9928
9929int main() {
ab9b9eab
VZ
9930
9931/* The GNU C library defines this for functions which it implements
9932 to always fail with ENOSYS. Some functions are actually named
9933 something starting with __ and the normal name is an alias. */
9934#if defined (__stub_shmat) || defined (__stub___shmat)
9935choke me
9936#else
698dcdb6 9937shmat();
ab9b9eab
VZ
9938#endif
9939
698dcdb6
VZ
9940; return 0; }
9941EOF
54276ccf 9942if { (eval echo configure:9943: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
9943 rm -rf conftest*
9944 eval "ac_cv_func_shmat=yes"
9945else
9946 echo "configure: failed program was:" >&5
9947 cat conftest.$ac_ext >&5
9948 rm -rf conftest*
9949 eval "ac_cv_func_shmat=no"
9950fi
9951rm -f conftest*
9952fi
9953
9954if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
9955 echo "$ac_t""yes" 1>&6
9956 :
9957else
9958 echo "$ac_t""no" 1>&6
9959fi
ab9b9eab
VZ
9960
9961 if test $ac_cv_func_shmat = no; then
698dcdb6 9962 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
54276ccf 9963echo "configure:9964: checking for shmat in -lipc" >&5
698dcdb6
VZ
9964ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
9965if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9966 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 9967else
698dcdb6 9968 ac_save_LIBS="$LIBS"
ab9b9eab 9969LIBS="-lipc $LIBS"
698dcdb6 9970cat > conftest.$ac_ext <<EOF
54276ccf 9971#line 9972 "configure"
ab9b9eab
VZ
9972#include "confdefs.h"
9973/* Override any gcc2 internal prototype to avoid an error. */
9974/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
9975 builtin and then its argument prototype would still apply. */
9976char shmat();
9977
9978int main() {
9979shmat()
9980; return 0; }
9981EOF
54276ccf 9982if { (eval echo configure:9983: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
9983 rm -rf conftest*
9984 eval "ac_cv_lib_$ac_lib_var=yes"
9985else
9986 echo "configure: failed program was:" >&5
9987 cat conftest.$ac_ext >&5
9988 rm -rf conftest*
9989 eval "ac_cv_lib_$ac_lib_var=no"
9990fi
9991rm -f conftest*
9992LIBS="$ac_save_LIBS"
9993
9994fi
9995if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9996 echo "$ac_t""yes" 1>&6
ab9b9eab 9997 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
698dcdb6
VZ
9998else
9999 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
10000fi
10001
10002 fi
10003 fi
10004
10005 # Check for libraries that X11R6 Xt/Xaw programs need.
698dcdb6 10006 ac_save_LDFLAGS="$LDFLAGS"
ab9b9eab
VZ
10007 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
10008 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
10009 # check for ICE first), but we must link in the order -lSM -lICE or
10010 # we get undefined symbols. So assume we have SM if we have ICE.
10011 # These have to be linked with before -lX11, unlike the other
10012 # libraries we check for below, so use a different variable.
698dcdb6
VZ
10013 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
10014 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
54276ccf 10015echo "configure:10016: checking for IceConnectionNumber in -lICE" >&5
698dcdb6
VZ
10016ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
10017if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10018 echo $ac_n "(cached) $ac_c" 1>&6
10019else
10020 ac_save_LIBS="$LIBS"
ab9b9eab 10021LIBS="-lICE $X_EXTRA_LIBS $LIBS"
698dcdb6 10022cat > conftest.$ac_ext <<EOF
54276ccf 10023#line 10024 "configure"
ab9b9eab
VZ
10024#include "confdefs.h"
10025/* Override any gcc2 internal prototype to avoid an error. */
10026/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
10027 builtin and then its argument prototype would still apply. */
10028char IceConnectionNumber();
10029
10030int main() {
10031IceConnectionNumber()
10032; return 0; }
10033EOF
54276ccf 10034if { (eval echo configure:10035: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
10035 rm -rf conftest*
10036 eval "ac_cv_lib_$ac_lib_var=yes"
10037else
10038 echo "configure: failed program was:" >&5
10039 cat conftest.$ac_ext >&5
10040 rm -rf conftest*
10041 eval "ac_cv_lib_$ac_lib_var=no"
10042fi
10043rm -f conftest*
10044LIBS="$ac_save_LIBS"
10045
10046fi
10047if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10048 echo "$ac_t""yes" 1>&6
ab9b9eab 10049 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
698dcdb6
VZ
10050else
10051 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
10052fi
10053
698dcdb6 10054 LDFLAGS="$ac_save_LDFLAGS"
ab9b9eab
VZ
10055
10056fi
10057
1e6feb95
VZ
10058 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10059 LDFLAGS="$LDFLAGS $X_LIBS"
ab9b9eab 10060
1e6feb95
VZ
10061 if test "$wxUSE_MOTIF" = 1; then
10062 if test "$no_x" = "yes"; then
10063 { echo "configure: error: X11 not found" 1>&2; exit 1; }
10064 fi
ab9b9eab 10065
1e6feb95
VZ
10066 GUI_TK_LIBRARY="$X_LIBS"
10067 TOOLKIT_INCLUDE="$X_CFLAGS"
ab9b9eab 10068
1e6feb95 10069 AFMINSTALL=afminstall
dad6c0ea 10070
1e6feb95
VZ
10071
10072 COMPILED_X_PROGRAM=0
cd6d6d5b 10073
1e6feb95 10074 echo $ac_n "checking for Motif/Lesstif headers""... $ac_c" 1>&6
54276ccf 10075echo "configure:10076: checking for Motif/Lesstif headers" >&5
1e6feb95 10076
ab9b9eab
VZ
10077ac_find_includes=
10078for ac_dir in $SEARCH_INCLUDE;
10079 do
10080 if test -f "$ac_dir/Xm/Xm.h"; then
10081 ac_find_includes=$ac_dir
10082 break
10083 fi
10084 done
10085
1e6feb95
VZ
10086 if test "$ac_find_includes" != "" ; then
10087 echo "$ac_t""found $ac_find_includes" 1>&6
10088 else
10089 cat > conftest.$ac_ext <<EOF
54276ccf 10090#line 10091 "configure"
cd6d6d5b
VZ
10091#include "confdefs.h"
10092
1e6feb95
VZ
10093 #include <Xm/Xm.h>
10094
698dcdb6 10095int main() {
cd6d6d5b 10096
1e6feb95 10097 int version;
cd6d6d5b 10098
1e6feb95
VZ
10099 version = xmUseVersion;
10100
698dcdb6
VZ
10101; return 0; }
10102EOF
54276ccf 10103if { (eval echo configure:10104: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
10104 rm -rf conftest*
10105
1e6feb95
VZ
10106 echo "$ac_t""found in default search path" 1>&6
10107 COMPILED_X_PROGRAM=1
10108
cd6d6d5b 10109else
698dcdb6
VZ
10110 echo "configure: failed program was:" >&5
10111 cat conftest.$ac_ext >&5
10112 rm -rf conftest*
10113
1e6feb95
VZ
10114 echo "$ac_t""no" 1>&6
10115 { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; }
10116
698dcdb6 10117
cd6d6d5b 10118fi
698dcdb6 10119rm -f conftest*
1e6feb95 10120 fi
ab9b9eab 10121
1e6feb95
VZ
10122 if test "$COMPILED_X_PROGRAM" = 0; then
10123 echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6
54276ccf 10124echo "configure:10125: checking for Motif/Lesstif library" >&5
1e6feb95 10125
ab9b9eab
VZ
10126ac_find_libraries=
10127for ac_dir in $SEARCH_LIB;
10128 do
10129 for ac_extension in a so sl; do
10130 if test -f "$ac_dir/libXm.$ac_extension"; then
10131 ac_find_libraries=$ac_dir
10132 break 2
10133 fi
10134 done
10135 done
10136
1e6feb95
VZ
10137 if test "$ac_find_libraries" != "" ; then
10138
ab9b9eab
VZ
10139 ac_path_to_include=$ac_find_includes
10140 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
10141 result=$?
10142 if test $result = 0; then
10143 ac_path_to_include=""
10144 else
10145 ac_path_to_include="-I$ac_find_includes"
10146 fi
10147
1e6feb95 10148
ab9b9eab
VZ
10149 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
10150 result=$?
10151 if test $result = 0; then
10152 ac_path_to_link=""
10153 else
10154 ac_path_to_link="-L$ac_find_libraries"
10155 fi
10156
698dcdb6 10157
1e6feb95
VZ
10158 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link"
10159 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE $ac_path_to_include"
10160 echo "$ac_t""found at $ac_find_libraries" 1>&6
10161 else
10162 cat > conftest.$ac_ext <<EOF
54276ccf 10163#line 10164 "configure"
cd6d6d5b 10164#include "confdefs.h"
ab9b9eab 10165
1e6feb95
VZ
10166 #include <Xm/Xm.h>
10167
698dcdb6 10168int main() {
ab9b9eab 10169
1e6feb95 10170 int version;
ab9b9eab 10171
1e6feb95
VZ
10172 version = xmUseVersion;
10173
698dcdb6
VZ
10174; return 0; }
10175EOF
54276ccf 10176if { (eval echo configure:10177: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
10177 rm -rf conftest*
10178
1e6feb95
VZ
10179 echo "$ac_t""found in default search path" 1>&6
10180 COMPILED_X_PROGRAM=1
10181
cd6d6d5b 10182else
698dcdb6
VZ
10183 echo "configure: failed program was:" >&5
10184 cat conftest.$ac_ext >&5
10185 rm -rf conftest*
10186
1e6feb95
VZ
10187 echo "$ac_t""no" 1>&6
10188 { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; }
10189
698dcdb6 10190
cd6d6d5b 10191fi
698dcdb6 10192rm -f conftest*
1e6feb95 10193 fi
cd6d6d5b 10194 fi
ab9b9eab 10195
1e6feb95
VZ
10196
10197 XPM_LINK=""
10198 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
54276ccf 10199echo "configure:10200: checking for Xpm library" >&5
1e6feb95 10200
ab9b9eab
VZ
10201ac_find_libraries=
10202for ac_dir in $SEARCH_LIB;
10203 do
10204 for ac_extension in a so sl; do
10205 if test -f "$ac_dir/libXpm.$ac_extension"; then
10206 ac_find_libraries=$ac_dir
10207 break 2
10208 fi
10209 done
10210 done
10211
1e6feb95
VZ
10212 if test "$ac_find_libraries" != "" ; then
10213
ab9b9eab
VZ
10214 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
10215 result=$?
10216 if test $result = 0; then
10217 ac_path_to_link=""
10218 else
10219 ac_path_to_link="-L$ac_find_libraries"
10220 fi
10221
1e6feb95
VZ
10222 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link"
10223 XPM_LINK="-lXpm "
10224 cat >> confdefs.h <<\EOF
ab9b9eab
VZ
10225#define wxHAVE_LIB_XPM 1
10226EOF
10227
1e6feb95
VZ
10228 echo "$ac_t""found at $ac_find_libraries" 1>&6
10229 else
10230 cat > conftest.$ac_ext <<EOF
54276ccf 10231#line 10232 "configure"
cd6d6d5b
VZ
10232#include "confdefs.h"
10233
1e6feb95
VZ
10234 #include <X11/xpm.h>
10235
698dcdb6 10236int main() {
cd6d6d5b 10237
1e6feb95 10238 int version;
cd6d6d5b 10239
1e6feb95
VZ
10240 version = XpmLibraryVersion();
10241
698dcdb6
VZ
10242; return 0; }
10243EOF
54276ccf 10244if { (eval echo configure:10245: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
10245 rm -rf conftest*
10246
1e6feb95
VZ
10247 XPM_LINK="-lXpm "
10248 cat >> confdefs.h <<\EOF
3ace2e6d
SN
10249#define wxHAVE_LIB_XPM 1
10250EOF
10251
1e6feb95
VZ
10252 echo "$ac_t""found in default search path" 1>&6
10253 COMPILED_X_PROGRAM=0
10254
cd6d6d5b 10255else
698dcdb6
VZ
10256 echo "configure: failed program was:" >&5
10257 cat conftest.$ac_ext >&5
10258 rm -rf conftest*
10259
1e6feb95
VZ
10260 echo "$ac_t""no" 1>&6
10261 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
10262
698dcdb6 10263
cd6d6d5b 10264fi
698dcdb6 10265rm -f conftest*
1e6feb95
VZ
10266 fi
10267
10268 GUI_TK_LINK="-lXm $XPM_LINK -lXmu -lXext -lXt -lX11"
10269 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $GUI_TK_LINK"
10270 TOOLKIT=MOTIF
10271 GUIDIST=MOTIF_DIST
ab9b9eab
VZ
10272 fi
10273
1e6feb95
VZ
10274 if test "$wxUSE_MAC" = 1; then
10275 TOOLKIT=MAC
10276 GUIDIST=MACX_DIST
10277 fi
10f2d63a 10278
1e6feb95
VZ
10279 if test "$wxUSE_PM" = 1; then
10280 TOOLKIT=PM
10281 GUIDIST=GTK_DIST
10282 fi
b4085ce6 10283
1e6feb95
VZ
10284 if test "$TOOLKIT" != "PM" ; then
10285 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
10286 else
10287 TOOLKIT_DIR="os2"
10288 fi
e07802fc 10289
1e6feb95 10290 TOOLKIT_NAME="${TOOLKIT_DIR}"
10f2d63a 10291
1e6feb95
VZ
10292 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}"
10293
10294 if test "$TOOLKIT_NAME" = "motif"; then
10295 TOOLKIT_VPATH="${TOOLKIT_VPATH}${PATH_IFS}\${top_srcdir}/src/motif/xmcombo"
10296 fi
10297
10298 if test "$wxUSE_UNIVERSAL" = "yes"; then
10299 TOOLKIT_NAME="${TOOLKIT_NAME}univ"
10300 UNIV_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes"
10301 TOOLKIT_VPATH="${UNIV_VPATH}${PATH_IFS}${TOOLKIT_VPATH}"
10302 SETUPH_DIR="univ"
f6bcfd97 10303 else
1e6feb95
VZ
10304 SETUPH_DIR="${TOOLKIT_DIR}"
10305 fi
10306
10307 if test "$wxUSE_DEBUG_FLAG" = "yes"; then
10308 TOOLKIT_NAME="${TOOLKIT_NAME}d"
f6bcfd97
BP
10309 fi
10310
2224580a 10311 TOOLKIT_DEF="-D__WX${TOOLKIT}__"
1e6feb95
VZ
10312 if test "$wxUSE_UNIVERSAL" = "yes"; then
10313 TOOLKIT_DEF="${TOOLKIT_DEF} -D__WXUNIVERSAL__"
10314 fi
10f2d63a 10315
f6bcfd97 10316 WX_LIBRARY="wx_${TOOLKIT_NAME}"
10f2d63a 10317
1e6feb95
VZ
10318 if test "$wxUSE_UNIVERSAL" = "yes"; then
10319 ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}"
10320 else
10321 ALL_OBJECTS="\$(GUIOBJS)"
10322 fi
10323
10324 ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)"
10325
10326 if test "$TOOLKIT" != "MSW"; then
10327 ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)"
10328 fi
10329
10330 if test "$wxUSE_HTML" = "yes"; then
10331 ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)"
10332 fi
3fcdd07b 10333
1e6feb95
VZ
10334 if test "$TOOLKIT" != "MSW"; then
10335 if test "$wxUSE_ODBC" = "yes" ; then
10336 ALL_OBJECTS="${ALL_OBJECTS} \$(IODBCOBJS)"
10337 fi
3fcdd07b
VZ
10338 fi
10339
d9d8273d 10340 if test "$wxUSE_LIBJPEG" = "yes" ; then
2224580a 10341 ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)"
d9d8273d
RR
10342 fi
10343 if test "$wxUSE_LIBTIFF" = "yes" ; then
10344 ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)"
10345 fi
10346 if test "$wxUSE_LIBPNG" = "yes" ; then
10347 ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)"
10348 fi
10349 if test "$wxUSE_ZLIB" = "yes" ; then
10350 ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
10351 fi
3fed1840
RR
10352 if test "$wxUSE_FREETYPE" = "yes" ; then
10353 ALL_OBJECTS="${ALL_OBJECTS} \$(FREETYPEOBJS)"
10354 fi
2224580a 10355
1e6feb95
VZ
10356 if test "$wxUSE_UNIVERSAL" = "yes"; then
10357 ALL_DEPFILES="\$(GUI_LOWLEVEL_DEPS) \$(UNIVDEPS)"
10358 else
10359 ALL_DEPFILES="\$(GUIDEPS)"
10360 fi
10361
10362 ALL_DEPFILES="${ALL_DEPFILES} \$(COMMONDEPS) \$(GENERICDEPS)"
10363
10364 if test "$TOOLKIT" != "MSW"; then
10365 ALL_DEPFILES="${ALL_DEPFILES} \$(UNIXDEPS)"
10366 fi
10367
10368 if test "$wxUSE_HTML" = "yes"; then
10369 ALL_DEPFILES="${ALL_DEPFILES} \$(HTMLDEPS)"
10370 fi
10371
10372 PORT_FILES="src/\$(TOOLKITDIR)/files.lst"
10373 if test "$wxUSE_UNIVERSAL" = "yes"; then
10374 PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst"
10375 fi
2224580a
VZ
10376 RPM_FILES="src/\$(TOOLKITDIR)/rpmfiles.lst"
10377 RPM_SPEC="wx\$(TOOLKIT).spec"
10378
10379 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
10380 DISTDIR="wx\$(TOOLKIT)"
10f2d63a 10381else
dad6c0ea
VZ
10382 USE_GUI=0
10383
f6bcfd97
BP
10384 TOOLKIT_DIR="base"
10385
10386 if test "$wxUSE_DEBUG_FLAG" = "yes"; then
10387 TOOLKIT_NAME="${TOOLKIT_DIR}d"
10388 else
10389 TOOLKIT_NAME="${TOOLKIT_DIR}"
10390 fi
10391
07eb77a6
RL
10392 TOOLKIT_DEF="-D__WXBASE__"
10393
b4085ce6
GD
10394 ALL_OBJECTS="\$(BASE_OBJS) \$(BASE_UNIX_OBJS)"
10395 ALL_DEPFILES="\$(BASE_DEPS) \$(BASE_UNIX_DEPS)"
10f2d63a 10396
a20b6d3a
VZ
10397 if test "$wxUSE_ZLIB" = "yes" ; then
10398 ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
10399 fi
10400
f6bcfd97 10401 WX_LIBRARY="wx_${TOOLKIT_NAME}"
2224580a
VZ
10402
10403 PORT_FILES="src/files.lst"
10404 RPM_FILES="src/rpmfiles.lst"
10405 RPM_SPEC="wxBase.spec"
10406
10407 GUIDIST="BASE_DIST"
10408 DISTDIR="wxBase"
10f2d63a
VZ
10409fi
10410
10411WX_LIBRARY_NAME="lib${WX_LIBRARY}.la"
bdad4e7e 10412WX_LIBRARY_NAME_GL="lib${WX_LIBRARY}_gl.la"
10f2d63a
VZ
10413
10414WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a"
bdad4e7e 10415WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY}_gl.a"
10f2d63a
VZ
10416
10417WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}-${WX_RELEASE}.so.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
bdad4e7e 10418WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.so.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
10f2d63a
VZ
10419
10420WX_LIBRARY_LINK1="lib${WX_LIBRARY}-${WX_RELEASE}.so.${WX_CURRENT}"
10421WX_LIBRARY_LINK2="lib${WX_LIBRARY}-${WX_RELEASE}.so"
10422WX_LIBRARY_LINK3="lib${WX_LIBRARY}.so"
bdad4e7e
RR
10423WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.so.${WX_CURRENT}"
10424WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.so"
10425WX_LIBRARY_LINK3_GL="lib${WX_LIBRARY}_gl.so"
10f2d63a
VZ
10426
10427SHARED_LD=
10428PIC_FLAG=
10429WX_ALL=
10430WX_ALL_INSTALLED=
1d62a8b4 10431BURNT_LIBRARY_NAME=
f6bcfd97 10432WX_TARGET_LIBRARY_SONAME=
10f2d63a 10433
698dcdb6 10434
10f2d63a
VZ
10435if test "$wxUSE_SHARED" = "yes"; then
10436 case "${host}" in
10437 *-hp-hpux* )
10438 if test "$GCC" = yes ; then
69ffe1d2 10439 SHARED_LD="${CC} -shared -fPIC -o"
10f2d63a
VZ
10440 PIC_FLAG="-fPIC"
10441 else
f6bcfd97
BP
10442 LDFLAGS="-L/usr/lib"
10443
10f2d63a
VZ
10444 SHARED_LD="${CXX} -b -o"
10445 PIC_FLAG="+Z"
10446 fi
f6bcfd97
BP
10447 WX_LIBRARY_NAME_SHARED="libwx_${TOOLKIT_NAME}.sl"
10448 WX_LIBRARY_NAME_SHARED_GL="libwx_${TOOLKIT_NAME}_gl.sl"
c661ecca 10449 if test "$wxUSE_OPENGL" = "yes"; then
f6bcfd97 10450 WX_ALL_INSTALLED="preinstall_gl"
c661ecca
RR
10451 WX_ALL="${WX_LIBRARY_NAME_SHARED} ${WX_LIBRARY_NAME_SHARED_GL}"
10452 else
10453 WX_ALL="${WX_LIBRARY_NAME_SHARED}"
10454 fi
10f2d63a 10455 ;;
b12915c1
VZ
10456
10457 *-*-linux* )
10f2d63a
VZ
10458 SHARED_LD="${CC} -shared -o"
10459 PIC_FLAG="-fPIC"
00cf1208 10460 if test "$wxUSE_BURNT_NAME" = "yes" ; then
05cdfc6f 10461 BURNT_LIBRARY_NAME="-Wl,-soname,${WX_LIBRARY_LINK1}"
bdad4e7e 10462 BURNT_LIBRARY_NAME_GL="-Wl,-soname,${WX_LIBRARY_LINK1_GL}"
f6bcfd97 10463 WX_TARGET_LIBRARY_SONAME="-Wl,-soname,\$(TARGETLIB_LINK1)"
00cf1208 10464 fi
c661ecca
RR
10465 if test "$wxUSE_OPENGL" = "yes"; then
10466 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
10467 WX_ALL="CREATE_LINKS CREATE_LINKS_GL"
10468 else
10469 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
10470 WX_ALL="CREATE_LINKS"
422107f9 10471 fi
00cf1208 10472 ;;
10f2d63a
VZ
10473 *-*-irix5* | *-*-irix6* )
10474 if test "$GCC" = yes ; then
10475 SHARED_LD="${CC} -shared -o"
10476 PIC_FLAG="-fPIC"
10477 else
10478 SHARED_LD="${CXX} -shared -o"
10479 fi
c661ecca
RR
10480 if test "$wxUSE_OPENGL" = "yes"; then
10481 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
10482 WX_ALL="CREATE_LINKS CREATE_LINKS_GL"
10483 else
10484 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
10485 WX_ALL="CREATE_LINKS"
422107f9 10486 fi
10f2d63a
VZ
10487 ;;
10488 *-*-solaris2* )
10489 if test "$GCC" = yes ; then
10490 SHARED_LD="${CC} -shared -o"
10491 PIC_FLAG="-fPIC"
f6bcfd97
BP
10492
10493 CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
10f2d63a
VZ
10494 else
10495 SHARED_LD="${CXX} -G -o"
10496 PIC_FLAG="-KPIC"
10497 fi
c661ecca
RR
10498 if test "$wxUSE_OPENGL" = "yes"; then
10499 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
10500 WX_ALL="CREATE_LINKS CREATE_LINKS_GL"
10501 else
10502 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
10503 WX_ALL="CREATE_LINKS"
10504 fi
10f2d63a
VZ
10505 ;;
10506 *-*-sunos4* )
10507 SHARED_LD="${CC} -shared -o"
10508 PIC_FLAG="-fPIC"
10509 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
10510 WX_ALL="CREATE_LINKS"
10511 ;;
95c8801c 10512 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* )
10f2d63a
VZ
10513 SHARED_LD="${CC} -shared -o"
10514 PIC_FLAG="-fPIC"
37d403aa
JS
10515 if test "$wxUSE_OPENGL" = "yes"; then
10516 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
10517 WX_ALL="CREATE_LINKS CREATE_LINKS_GL"
10518 else
10519 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
10520 WX_ALL="CREATE_LINKS"
10521 fi
10f2d63a 10522 ;;
b4085ce6 10523 *-*-darwin* )
ea5999b9
GD
10524 SHARED_LD="${CXX} -dynamiclib -o"
10525 PIC_FLAG="-dynamic -fPIC"
b4085ce6
GD
10526 if test "$wxUSE_OPENGL" = "yes"; then
10527 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
10528 WX_ALL="CREATE_LINKS CREATE_LINKS_GL"
10529 else
10530 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
10531 WX_ALL="CREATE_LINKS"
10532 fi
1e6feb95
VZ
10533 WX_ALL="${WX_ALL} ./lib/lib${WX_LIBRARY}-${WX_RELEASE}.r"
10534 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}-${WX_RELEASE}.dylib.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
10535 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.dylib.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
10536 WX_LIBRARY_LINK1="lib${WX_LIBRARY}-${WX_RELEASE}.dylib.${WX_CURRENT}"
10537 WX_LIBRARY_LINK2="lib${WX_LIBRARY}-${WX_RELEASE}.dylib"
10538 WX_LIBRARY_LINK3="lib${WX_LIBRARY}.dylib"
10539 WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.dylib.${WX_CURRENT}"
10540 WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.dylib"
10541 WX_LIBRARY_LINK3_GL="lib${WX_LIBRARY}_gl.dylib"
b4085ce6 10542 ;;
10f2d63a
VZ
10543 *-*-osf* )
10544 SHARED_LD="${CXX} -shared -o"
10545 PIC_FLAG="-fPIC"
10546 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
10547 WX_ALL="CREATE_LINKS"
10548 ;;
10549 *-*-dgux5* )
10550 SHARED_LD="${CXX} -shared -o"
10551 PIC_FLAG="-fPIC"
10552 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
10553 WX_ALL="CREATE_LINKS"
10554 ;;
10555 *-*-sysv5* )
10556 SHARED_LD="${CC} -shared -o"
10557 PIC_FLAG="-fPIC"
10558 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
10559 WX_ALL="CREATE_LINKS"
10560 ;;
10561 *-*-aix* )
10562 SHARED_LD="/usr/lpp/xlC/bin/makeC++SharedLib -p 0 -o"
10563 WX_ALL=${WX_LIBRARY_NAME_SHARED}
10564 ;;
1c8183e2 10565 *-*-cygwin* )
10f2d63a 10566 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
bdad4e7e 10567 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
f6bcfd97
BP
10568 if test "$wxUSE_OPENGL" = "yes"; then
10569 WX_ALL_INSTALLED="preinstall_gl"
10570 WX_ALL="${WX_LIBRARY_NAME_STATIC} ${WX_LIBRARY_NAME_STATIC_GL}"
10571 else
10572 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
10573 fi
10f2d63a 10574 ;;
b12915c1 10575 *-*-mingw32* )
10f2d63a 10576 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
bdad4e7e 10577 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
f6bcfd97
BP
10578 if test "$wxUSE_OPENGL" = "yes"; then
10579 WX_ALL_INSTALLED="preinstall_gl"
10580 WX_ALL="${WX_LIBRARY_NAME_STATIC} ${WX_LIBRARY_NAME_STATIC_GL}"
10581 else
10582 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
10583 fi
10f2d63a
VZ
10584 ;;
10585 *-pc-os2_emx )
e07802fc
VZ
10586 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
10587 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
10f2d63a 10588 ;;
b12915c1 10589 *-*-beos* )
e2b8b066 10590 SHARED_LD="${LD} -shared -o"
b12915c1
VZ
10591 PIC_FLAG="-fPIC"
10592 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
10593 WX_ALL="CREATE_LINKS"
10594 ;;
10f2d63a 10595 *)
698dcdb6 10596 { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; }
10f2d63a
VZ
10597 esac
10598
10599 if test "x$WX_TARGET_LIBRARY" = "x"; then
10600 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
bdad4e7e 10601 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}"
10f2d63a 10602 fi
3711412e 10603 WX_TARGET_LIBRARY_TYPE="so"
10f2d63a
VZ
10604else
10605 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
bdad4e7e 10606 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
f6bcfd97
BP
10607
10608 if test "$wxUSE_OPENGL" = "yes"; then
10609 WX_ALL_INSTALLED="preinstall_gl"
10610 WX_ALL="${WX_LIBRARY_NAME_STATIC} ${WX_LIBRARY_NAME_STATIC_GL}"
10611 else
10612 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
10613 fi
10614
10615 if test "$wxUSE_GUI" = "no"; then
10616 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
10617 fi
10618
3711412e 10619 WX_TARGET_LIBRARY_TYPE="a"
10f2d63a
VZ
10620fi
10621
698dcdb6
VZ
10622
10623for ac_hdr in strings.h
10f2d63a 10624do
698dcdb6
VZ
10625ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10626echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
54276ccf 10627echo "configure:10628: checking for $ac_hdr" >&5
698dcdb6
VZ
10628if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10629 echo $ac_n "(cached) $ac_c" 1>&6
10630else
10631 cat > conftest.$ac_ext <<EOF
54276ccf 10632#line 10633 "configure"
10f2d63a 10633#include "confdefs.h"
698dcdb6
VZ
10634#include <$ac_hdr>
10635EOF
10636ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
54276ccf 10637{ (eval echo configure:10638: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
10638ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10639if test -z "$ac_err"; then
10640 rm -rf conftest*
10641 eval "ac_cv_header_$ac_safe=yes"
10f2d63a 10642else
698dcdb6
VZ
10643 echo "$ac_err" >&5
10644 echo "configure: failed program was:" >&5
10f2d63a 10645 cat conftest.$ac_ext >&5
698dcdb6
VZ
10646 rm -rf conftest*
10647 eval "ac_cv_header_$ac_safe=no"
10f2d63a 10648fi
698dcdb6 10649rm -f conftest*
10f2d63a 10650fi
698dcdb6
VZ
10651if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10652 echo "$ac_t""yes" 1>&6
10653 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10654 cat >> confdefs.h <<EOF
10655#define $ac_tr_hdr 1
10f2d63a 10656EOF
698dcdb6
VZ
10657
10658else
10659 echo "$ac_t""no" 1>&6
10f2d63a
VZ
10660fi
10661done
10662
698dcdb6 10663for ac_hdr in stdlib.h
9cfadba2 10664do
698dcdb6
VZ
10665ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10666echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
54276ccf 10667echo "configure:10668: checking for $ac_hdr" >&5
698dcdb6
VZ
10668if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10669 echo $ac_n "(cached) $ac_c" 1>&6
10670else
10671 cat > conftest.$ac_ext <<EOF
54276ccf 10672#line 10673 "configure"
9cfadba2 10673#include "confdefs.h"
698dcdb6
VZ
10674#include <$ac_hdr>
10675EOF
10676ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
54276ccf 10677{ (eval echo configure:10678: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
10678ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10679if test -z "$ac_err"; then
10680 rm -rf conftest*
10681 eval "ac_cv_header_$ac_safe=yes"
6232543b 10682else
698dcdb6
VZ
10683 echo "$ac_err" >&5
10684 echo "configure: failed program was:" >&5
9cfadba2 10685 cat conftest.$ac_ext >&5
698dcdb6
VZ
10686 rm -rf conftest*
10687 eval "ac_cv_header_$ac_safe=no"
9cfadba2 10688fi
698dcdb6 10689rm -f conftest*
9cfadba2 10690fi
698dcdb6
VZ
10691if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10692 echo "$ac_t""yes" 1>&6
10693 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10694 cat >> confdefs.h <<EOF
10695#define $ac_tr_hdr 1
9cfadba2 10696EOF
698dcdb6
VZ
10697
10698else
10699 echo "$ac_t""no" 1>&6
9cfadba2
VZ
10700fi
10701done
10f2d63a 10702
698dcdb6 10703for ac_hdr in unistd.h
10f2d63a 10704do
698dcdb6
VZ
10705ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10706echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
54276ccf 10707echo "configure:10708: checking for $ac_hdr" >&5
698dcdb6
VZ
10708if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10709 echo $ac_n "(cached) $ac_c" 1>&6
10710else
10711 cat > conftest.$ac_ext <<EOF
54276ccf 10712#line 10713 "configure"
10f2d63a 10713#include "confdefs.h"
698dcdb6
VZ
10714#include <$ac_hdr>
10715EOF
10716ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
54276ccf 10717{ (eval echo configure:10718: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
10718ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10719if test -z "$ac_err"; then
10720 rm -rf conftest*
10721 eval "ac_cv_header_$ac_safe=yes"
6232543b 10722else
698dcdb6
VZ
10723 echo "$ac_err" >&5
10724 echo "configure: failed program was:" >&5
10f2d63a 10725 cat conftest.$ac_ext >&5
698dcdb6
VZ
10726 rm -rf conftest*
10727 eval "ac_cv_header_$ac_safe=no"
10f2d63a 10728fi
698dcdb6 10729rm -f conftest*
10f2d63a 10730fi
698dcdb6
VZ
10731if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10732 echo "$ac_t""yes" 1>&6
10733 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10734 cat >> confdefs.h <<EOF
10735#define $ac_tr_hdr 1
10f2d63a 10736EOF
698dcdb6
VZ
10737
10738else
10739 echo "$ac_t""no" 1>&6
10f2d63a
VZ
10740fi
10741done
10742
698dcdb6 10743for ac_hdr in wchar.h
10f2d63a 10744do
698dcdb6
VZ
10745ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10746echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
54276ccf 10747echo "configure:10748: checking for $ac_hdr" >&5
698dcdb6
VZ
10748if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10749 echo $ac_n "(cached) $ac_c" 1>&6
10750else
10751 cat > conftest.$ac_ext <<EOF
54276ccf 10752#line 10753 "configure"
10f2d63a 10753#include "confdefs.h"
698dcdb6
VZ
10754#include <$ac_hdr>
10755EOF
10756ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
54276ccf 10757{ (eval echo configure:10758: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
10758ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10759if test -z "$ac_err"; then
10760 rm -rf conftest*
10761 eval "ac_cv_header_$ac_safe=yes"
6f72b082 10762else
698dcdb6
VZ
10763 echo "$ac_err" >&5
10764 echo "configure: failed program was:" >&5
6f72b082 10765 cat conftest.$ac_ext >&5
698dcdb6
VZ
10766 rm -rf conftest*
10767 eval "ac_cv_header_$ac_safe=no"
6f72b082 10768fi
698dcdb6 10769rm -f conftest*
6f72b082 10770fi
698dcdb6
VZ
10771if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10772 echo "$ac_t""yes" 1>&6
10773 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10774 cat >> confdefs.h <<EOF
10775#define $ac_tr_hdr 1
6f72b082 10776EOF
698dcdb6
VZ
10777
10778else
10779 echo "$ac_t""no" 1>&6
6f72b082
OK
10780fi
10781done
10782
698dcdb6 10783for ac_hdr in wcstr.h
6f72b082 10784do
698dcdb6
VZ
10785ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10786echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
54276ccf 10787echo "configure:10788: checking for $ac_hdr" >&5
698dcdb6
VZ
10788if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10789 echo $ac_n "(cached) $ac_c" 1>&6
10790else
10791 cat > conftest.$ac_ext <<EOF
54276ccf 10792#line 10793 "configure"
6f72b082 10793#include "confdefs.h"
698dcdb6
VZ
10794#include <$ac_hdr>
10795EOF
10796ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
54276ccf 10797{ (eval echo configure:10798: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
10798ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10799if test -z "$ac_err"; then
10800 rm -rf conftest*
10801 eval "ac_cv_header_$ac_safe=yes"
6f72b082 10802else
698dcdb6
VZ
10803 echo "$ac_err" >&5
10804 echo "configure: failed program was:" >&5
6f72b082 10805 cat conftest.$ac_ext >&5
698dcdb6
VZ
10806 rm -rf conftest*
10807 eval "ac_cv_header_$ac_safe=no"
6f72b082 10808fi
698dcdb6 10809rm -f conftest*
6f72b082 10810fi
698dcdb6
VZ
10811if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10812 echo "$ac_t""yes" 1>&6
10813 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10814 cat >> confdefs.h <<EOF
10815#define $ac_tr_hdr 1
6f72b082 10816EOF
698dcdb6
VZ
10817
10818else
10819 echo "$ac_t""no" 1>&6
6f72b082
OK
10820fi
10821done
10822
698dcdb6 10823for ac_hdr in fnmatch.h
6f72b082 10824do
698dcdb6
VZ
10825ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10826echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
54276ccf 10827echo "configure:10828: checking for $ac_hdr" >&5
698dcdb6
VZ
10828if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10829 echo $ac_n "(cached) $ac_c" 1>&6
10830else
10831 cat > conftest.$ac_ext <<EOF
54276ccf 10832#line 10833 "configure"
6f72b082 10833#include "confdefs.h"
698dcdb6
VZ
10834#include <$ac_hdr>
10835EOF
10836ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
54276ccf 10837{ (eval echo configure:10838: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
10838ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10839if test -z "$ac_err"; then
10840 rm -rf conftest*
10841 eval "ac_cv_header_$ac_safe=yes"
10f2d63a 10842else
698dcdb6
VZ
10843 echo "$ac_err" >&5
10844 echo "configure: failed program was:" >&5
10f2d63a 10845 cat conftest.$ac_ext >&5
698dcdb6
VZ
10846 rm -rf conftest*
10847 eval "ac_cv_header_$ac_safe=no"
10f2d63a 10848fi
698dcdb6 10849rm -f conftest*
10f2d63a 10850fi
698dcdb6
VZ
10851if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10852 echo "$ac_t""yes" 1>&6
10853 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10854 cat >> confdefs.h <<EOF
10855#define $ac_tr_hdr 1
10f2d63a 10856EOF
698dcdb6
VZ
10857
10858else
10859 echo "$ac_t""no" 1>&6
10f2d63a
VZ
10860fi
10861done
10862
698dcdb6 10863for ac_hdr in iconv.h
0fb0dd83 10864do
698dcdb6
VZ
10865ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10866echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
54276ccf 10867echo "configure:10868: checking for $ac_hdr" >&5
698dcdb6
VZ
10868if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10869 echo $ac_n "(cached) $ac_c" 1>&6
10870else
10871 cat > conftest.$ac_ext <<EOF
54276ccf 10872#line 10873 "configure"
0fb0dd83 10873#include "confdefs.h"
698dcdb6
VZ
10874#include <$ac_hdr>
10875EOF
10876ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
54276ccf 10877{ (eval echo configure:10878: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
10878ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10879if test -z "$ac_err"; then
10880 rm -rf conftest*
10881 eval "ac_cv_header_$ac_safe=yes"
0fb0dd83 10882else
698dcdb6
VZ
10883 echo "$ac_err" >&5
10884 echo "configure: failed program was:" >&5
0fb0dd83 10885 cat conftest.$ac_ext >&5
698dcdb6
VZ
10886 rm -rf conftest*
10887 eval "ac_cv_header_$ac_safe=no"
0fb0dd83 10888fi
698dcdb6 10889rm -f conftest*
0fb0dd83 10890fi
698dcdb6
VZ
10891if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10892 echo "$ac_t""yes" 1>&6
10893 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10894 cat >> confdefs.h <<EOF
10895#define $ac_tr_hdr 1
0fb0dd83 10896EOF
698dcdb6
VZ
10897
10898else
10899 echo "$ac_t""no" 1>&6
0fb0dd83
RR
10900fi
10901done
10902
698dcdb6 10903for ac_hdr in langinfo.h
1f8ae82f 10904do
698dcdb6
VZ
10905ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10906echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
54276ccf 10907echo "configure:10908: checking for $ac_hdr" >&5
698dcdb6
VZ
10908if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10909 echo $ac_n "(cached) $ac_c" 1>&6
10910else
10911 cat > conftest.$ac_ext <<EOF
54276ccf 10912#line 10913 "configure"
1f8ae82f 10913#include "confdefs.h"
698dcdb6
VZ
10914#include <$ac_hdr>
10915EOF
10916ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
54276ccf 10917{ (eval echo configure:10918: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
10918ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10919if test -z "$ac_err"; then
10920 rm -rf conftest*
10921 eval "ac_cv_header_$ac_safe=yes"
1f8ae82f 10922else
698dcdb6
VZ
10923 echo "$ac_err" >&5
10924 echo "configure: failed program was:" >&5
1f8ae82f 10925 cat conftest.$ac_ext >&5
698dcdb6
VZ
10926 rm -rf conftest*
10927 eval "ac_cv_header_$ac_safe=no"
1f8ae82f 10928fi
698dcdb6 10929rm -f conftest*
1f8ae82f 10930fi
698dcdb6
VZ
10931if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10932 echo "$ac_t""yes" 1>&6
10933 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10934 cat >> confdefs.h <<EOF
10935#define $ac_tr_hdr 1
1f8ae82f 10936EOF
698dcdb6
VZ
10937
10938else
10939 echo "$ac_t""no" 1>&6
1f8ae82f
GD
10940fi
10941done
10942
698dcdb6 10943
73fd4a60
VZ
10944if test "$wxUSE_GUI" = "yes"; then
10945 if test "$wxUSE_UNIX" = "yes"; then
698dcdb6 10946 for ac_hdr in X11/XKBlib.h
10f2d63a 10947do
698dcdb6
VZ
10948ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10949echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
54276ccf 10950echo "configure:10951: checking for $ac_hdr" >&5
698dcdb6
VZ
10951if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10952 echo $ac_n "(cached) $ac_c" 1>&6
10953else
10954 cat > conftest.$ac_ext <<EOF
54276ccf 10955#line 10956 "configure"
10f2d63a 10956#include "confdefs.h"
698dcdb6
VZ
10957#include <$ac_hdr>
10958EOF
10959ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
54276ccf 10960{ (eval echo configure:10961: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
10961ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10962if test -z "$ac_err"; then
10963 rm -rf conftest*
10964 eval "ac_cv_header_$ac_safe=yes"
10f2d63a 10965else
698dcdb6
VZ
10966 echo "$ac_err" >&5
10967 echo "configure: failed program was:" >&5
10f2d63a 10968 cat conftest.$ac_ext >&5
698dcdb6
VZ
10969 rm -rf conftest*
10970 eval "ac_cv_header_$ac_safe=no"
10f2d63a 10971fi
698dcdb6 10972rm -f conftest*
10f2d63a 10973fi
698dcdb6
VZ
10974if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10975 echo "$ac_t""yes" 1>&6
10976 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10977 cat >> confdefs.h <<EOF
10978#define $ac_tr_hdr 1
10f2d63a 10979EOF
698dcdb6
VZ
10980
10981else
10982 echo "$ac_t""no" 1>&6
10f2d63a
VZ
10983fi
10984done
10985
73fd4a60 10986 fi
10f2d63a
VZ
10987fi
10988
698dcdb6
VZ
10989
10990echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
54276ccf 10991echo "configure:10992: checking for ANSI C header files" >&5
698dcdb6
VZ
10992if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
10993 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 10994else
698dcdb6 10995 cat > conftest.$ac_ext <<EOF
54276ccf 10996#line 10997 "configure"
10f2d63a
VZ
10997#include "confdefs.h"
10998#include <stdlib.h>
10999#include <stdarg.h>
11000#include <string.h>
11001#include <float.h>
698dcdb6
VZ
11002EOF
11003ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
54276ccf 11004{ (eval echo configure:11005: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
11005ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11006if test -z "$ac_err"; then
11007 rm -rf conftest*
10f2d63a
VZ
11008 ac_cv_header_stdc=yes
11009else
698dcdb6
VZ
11010 echo "$ac_err" >&5
11011 echo "configure: failed program was:" >&5
10f2d63a 11012 cat conftest.$ac_ext >&5
698dcdb6 11013 rm -rf conftest*
10f2d63a
VZ
11014 ac_cv_header_stdc=no
11015fi
698dcdb6 11016rm -f conftest*
10f2d63a
VZ
11017
11018if test $ac_cv_header_stdc = yes; then
11019 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
698dcdb6 11020cat > conftest.$ac_ext <<EOF
54276ccf 11021#line 11022 "configure"
10f2d63a
VZ
11022#include "confdefs.h"
11023#include <string.h>
698dcdb6 11024EOF
10f2d63a
VZ
11025if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11026 egrep "memchr" >/dev/null 2>&1; then
11027 :
11028else
698dcdb6 11029 rm -rf conftest*
10f2d63a
VZ
11030 ac_cv_header_stdc=no
11031fi
11032rm -f conftest*
11033
11034fi
11035
11036if test $ac_cv_header_stdc = yes; then
11037 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
698dcdb6 11038cat > conftest.$ac_ext <<EOF
54276ccf 11039#line 11040 "configure"
10f2d63a
VZ
11040#include "confdefs.h"
11041#include <stdlib.h>
698dcdb6 11042EOF
10f2d63a
VZ
11043if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11044 egrep "free" >/dev/null 2>&1; then
11045 :
11046else
698dcdb6 11047 rm -rf conftest*
10f2d63a
VZ
11048 ac_cv_header_stdc=no
11049fi
11050rm -f conftest*
11051
11052fi
11053
11054if test $ac_cv_header_stdc = yes; then
11055 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
698dcdb6 11056if test "$cross_compiling" = yes; then
10f2d63a
VZ
11057 :
11058else
698dcdb6 11059 cat > conftest.$ac_ext <<EOF
54276ccf 11060#line 11061 "configure"
10f2d63a
VZ
11061#include "confdefs.h"
11062#include <ctype.h>
698dcdb6
VZ
11063#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11064#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1e487827 11065#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
698dcdb6
VZ
11066int main () { int i; for (i = 0; i < 256; i++)
11067if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
11068exit (0); }
11069
11070EOF
54276ccf 11071if { (eval echo configure:11072: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6 11072then
10f2d63a
VZ
11073 :
11074else
698dcdb6
VZ
11075 echo "configure: failed program was:" >&5
11076 cat conftest.$ac_ext >&5
11077 rm -fr conftest*
11078 ac_cv_header_stdc=no
10f2d63a 11079fi
698dcdb6 11080rm -fr conftest*
10f2d63a 11081fi
698dcdb6 11082
10f2d63a
VZ
11083fi
11084fi
1e487827 11085
698dcdb6
VZ
11086echo "$ac_t""$ac_cv_header_stdc" 1>&6
11087if test $ac_cv_header_stdc = yes; then
11088 cat >> confdefs.h <<\EOF
10f2d63a
VZ
11089#define STDC_HEADERS 1
11090EOF
11091
11092fi
11093
698dcdb6 11094echo $ac_n "checking for mode_t""... $ac_c" 1>&6
54276ccf 11095echo "configure:11096: checking for mode_t" >&5
698dcdb6
VZ
11096if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
11097 echo $ac_n "(cached) $ac_c" 1>&6
1e487827 11098else
698dcdb6 11099 cat > conftest.$ac_ext <<EOF
54276ccf 11100#line 11101 "configure"
1e487827 11101#include "confdefs.h"
698dcdb6
VZ
11102#include <sys/types.h>
11103#if STDC_HEADERS
11104#include <stdlib.h>
11105#include <stddef.h>
11106#endif
11107EOF
11108if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11109 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
11110 rm -rf conftest*
10f2d63a
VZ
11111 ac_cv_type_mode_t=yes
11112else
698dcdb6
VZ
11113 rm -rf conftest*
11114 ac_cv_type_mode_t=no
703e0a69 11115fi
698dcdb6 11116rm -f conftest*
1e487827 11117
698dcdb6
VZ
11118fi
11119echo "$ac_t""$ac_cv_type_mode_t" 1>&6
11120if test $ac_cv_type_mode_t = no; then
11121 cat >> confdefs.h <<\EOF
10f2d63a
VZ
11122#define mode_t int
11123EOF
11124
11125fi
11126
698dcdb6 11127echo $ac_n "checking for off_t""... $ac_c" 1>&6
54276ccf 11128echo "configure:11129: checking for off_t" >&5
698dcdb6
VZ
11129if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
11130 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 11131else
698dcdb6 11132 cat > conftest.$ac_ext <<EOF
54276ccf 11133#line 11134 "configure"
10f2d63a 11134#include "confdefs.h"
698dcdb6
VZ
11135#include <sys/types.h>
11136#if STDC_HEADERS
11137#include <stdlib.h>
11138#include <stddef.h>
11139#endif
11140EOF
11141if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11142 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
11143 rm -rf conftest*
10f2d63a
VZ
11144 ac_cv_type_off_t=yes
11145else
698dcdb6
VZ
11146 rm -rf conftest*
11147 ac_cv_type_off_t=no
703e0a69 11148fi
698dcdb6 11149rm -f conftest*
1e487827 11150
698dcdb6
VZ
11151fi
11152echo "$ac_t""$ac_cv_type_off_t" 1>&6
11153if test $ac_cv_type_off_t = no; then
11154 cat >> confdefs.h <<\EOF
10f2d63a
VZ
11155#define off_t long
11156EOF
11157
11158fi
11159
698dcdb6 11160echo $ac_n "checking for pid_t""... $ac_c" 1>&6
54276ccf 11161echo "configure:11162: checking for pid_t" >&5
698dcdb6
VZ
11162if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
11163 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 11164else
698dcdb6 11165 cat > conftest.$ac_ext <<EOF
54276ccf 11166#line 11167 "configure"
10f2d63a 11167#include "confdefs.h"
698dcdb6
VZ
11168#include <sys/types.h>
11169#if STDC_HEADERS
11170#include <stdlib.h>
11171#include <stddef.h>
11172#endif
11173EOF
11174if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11175 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
11176 rm -rf conftest*
10f2d63a
VZ
11177 ac_cv_type_pid_t=yes
11178else
698dcdb6
VZ
11179 rm -rf conftest*
11180 ac_cv_type_pid_t=no
703e0a69 11181fi
698dcdb6 11182rm -f conftest*
1e487827 11183
698dcdb6
VZ
11184fi
11185echo "$ac_t""$ac_cv_type_pid_t" 1>&6
11186if test $ac_cv_type_pid_t = no; then
11187 cat >> confdefs.h <<\EOF
10f2d63a
VZ
11188#define pid_t int
11189EOF
11190
11191fi
11192
698dcdb6 11193echo $ac_n "checking for size_t""... $ac_c" 1>&6
54276ccf 11194echo "configure:11195: checking for size_t" >&5
698dcdb6
VZ
11195if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
11196 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 11197else
698dcdb6 11198 cat > conftest.$ac_ext <<EOF
54276ccf 11199#line 11200 "configure"
10f2d63a 11200#include "confdefs.h"
698dcdb6
VZ
11201#include <sys/types.h>
11202#if STDC_HEADERS
11203#include <stdlib.h>
11204#include <stddef.h>
11205#endif
11206EOF
11207if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11208 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
11209 rm -rf conftest*
10f2d63a
VZ
11210 ac_cv_type_size_t=yes
11211else
698dcdb6
VZ
11212 rm -rf conftest*
11213 ac_cv_type_size_t=no
703e0a69 11214fi
698dcdb6 11215rm -f conftest*
1e487827 11216
698dcdb6
VZ
11217fi
11218echo "$ac_t""$ac_cv_type_size_t" 1>&6
11219if test $ac_cv_type_size_t = no; then
11220 cat >> confdefs.h <<\EOF
10f2d63a
VZ
11221#define size_t unsigned
11222EOF
11223
11224fi
11225
698dcdb6 11226echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
54276ccf 11227echo "configure:11228: checking for uid_t in sys/types.h" >&5
698dcdb6
VZ
11228if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
11229 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 11230else
698dcdb6 11231 cat > conftest.$ac_ext <<EOF
54276ccf 11232#line 11233 "configure"
10f2d63a
VZ
11233#include "confdefs.h"
11234#include <sys/types.h>
698dcdb6 11235EOF
10f2d63a
VZ
11236if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11237 egrep "uid_t" >/dev/null 2>&1; then
698dcdb6 11238 rm -rf conftest*
10f2d63a
VZ
11239 ac_cv_type_uid_t=yes
11240else
698dcdb6 11241 rm -rf conftest*
10f2d63a
VZ
11242 ac_cv_type_uid_t=no
11243fi
11244rm -f conftest*
11245
11246fi
1e487827 11247
698dcdb6
VZ
11248echo "$ac_t""$ac_cv_type_uid_t" 1>&6
11249if test $ac_cv_type_uid_t = no; then
11250 cat >> confdefs.h <<\EOF
10f2d63a
VZ
11251#define uid_t int
11252EOF
11253
698dcdb6 11254 cat >> confdefs.h <<\EOF
10f2d63a
VZ
11255#define gid_t int
11256EOF
11257
11258fi
11259
1e487827 11260
698dcdb6 11261echo $ac_n "checking for wchar_t""... $ac_c" 1>&6
54276ccf 11262echo "configure:11263: checking for wchar_t" >&5
698dcdb6
VZ
11263if eval "test \"`echo '$''{'wx_cv_type_wchar_t'+set}'`\" = set"; then
11264 echo $ac_n "(cached) $ac_c" 1>&6
11265else
11266
11267 cat > conftest.$ac_ext <<EOF
54276ccf 11268#line 11269 "configure"
0046ff7c
VS
11269#include "confdefs.h"
11270#include <wchar.h>
698dcdb6 11271int main() {
0046ff7c 11272
d836ee96
VZ
11273 wchar_t wc, *ws;
11274 wc = L'a';
11275 ws = L"Hello, world!";
698dcdb6
VZ
11276
11277; return 0; }
11278EOF
54276ccf 11279if { (eval echo configure:11280: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 11280 rm -rf conftest*
1f8ae82f
GD
11281 wx_cv_type_wchar_t=yes
11282else
698dcdb6
VZ
11283 echo "configure: failed program was:" >&5
11284 cat conftest.$ac_ext >&5
11285 rm -rf conftest*
11286 cat > conftest.$ac_ext <<EOF
54276ccf 11287#line 11288 "configure"
1f8ae82f
GD
11288#include "confdefs.h"
11289#include <stdlib.h>
698dcdb6 11290int main() {
1f8ae82f 11291
d836ee96
VZ
11292 wchar_t wc, *ws;
11293 wc = L'a';
11294 ws = L"Hello, world!";
698dcdb6
VZ
11295
11296; return 0; }
11297EOF
54276ccf 11298if { (eval echo configure:11299: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 11299 rm -rf conftest*
0046ff7c
VS
11300 wx_cv_type_wchar_t=yes
11301else
698dcdb6
VZ
11302 echo "configure: failed program was:" >&5
11303 cat conftest.$ac_ext >&5
11304 rm -rf conftest*
11305 wx_cv_type_wchar_t=no
0046ff7c 11306fi
698dcdb6 11307rm -f conftest*
d836ee96 11308
6232543b 11309fi
698dcdb6 11310rm -f conftest*
703e0a69 11311
1e487827 11312fi
698dcdb6
VZ
11313
11314echo "$ac_t""$wx_cv_type_wchar_t" 1>&6
d836ee96
VZ
11315
11316if test "$wx_cv_type_wchar_t" = "yes"; then
698dcdb6 11317 cat >> confdefs.h <<\EOF
0046ff7c
VS
11318#define wxUSE_WCHAR_T 1
11319EOF
11320
11321fi
11322
19af3b06
VZ
11323
11324ac_ext=C
11325# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11326ac_cpp='$CXXCPP $CPPFLAGS'
11327ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11328ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11329cross_compiling=$ac_cv_prog_cxx_cross
11330
d836ee96 11331echo $ac_n "checking if size_t is unsigned int""... $ac_c" 1>&6
54276ccf 11332echo "configure:11333: checking if size_t is unsigned int" >&5
d836ee96
VZ
11333if eval "test \"`echo '$''{'wx_cv_size_t_is_uint'+set}'`\" = set"; then
11334 echo $ac_n "(cached) $ac_c" 1>&6
11335else
dd2c8b7c 11336 cat > conftest.$ac_ext <<EOF
54276ccf 11337#line 11338 "configure"
d836ee96
VZ
11338#include "confdefs.h"
11339#include <stddef.h>
11340int main() {
11341
dd2c8b7c
VZ
11342 return 0; }
11343
d836ee96 11344 struct Foo { void foo(size_t); void foo(unsigned int); };
dd2c8b7c
VZ
11345
11346 int bar() {
d836ee96
VZ
11347
11348; return 0; }
11349EOF
54276ccf 11350if { (eval echo configure:11351: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d836ee96
VZ
11351 rm -rf conftest*
11352 wx_cv_size_t_is_uint=no
11353else
11354 echo "configure: failed program was:" >&5
11355 cat conftest.$ac_ext >&5
11356 rm -rf conftest*
11357 wx_cv_size_t_is_uint=yes
11358
11359fi
11360rm -f conftest*
11361
11362fi
11363
11364echo "$ac_t""$wx_cv_size_t_is_uint" 1>&6
11365
11366if test "$wx_cv_size_t_is_uint" = "yes"; then
11367 cat >> confdefs.h <<\EOF
11368#define wxSIZE_T_IS_UINT 1
11369EOF
11370
11371else
11372 echo $ac_n "checking if size_t is unsigned long""... $ac_c" 1>&6
54276ccf 11373echo "configure:11374: checking if size_t is unsigned long" >&5
d836ee96
VZ
11374if eval "test \"`echo '$''{'wx_cv_size_t_is_ulong'+set}'`\" = set"; then
11375 echo $ac_n "(cached) $ac_c" 1>&6
11376else
11377 cat > conftest.$ac_ext <<EOF
54276ccf 11378#line 11379 "configure"
d836ee96
VZ
11379#include "confdefs.h"
11380#include <stddef.h>
11381int main() {
11382
dd2c8b7c
VZ
11383 return 0; }
11384
d836ee96 11385 struct Foo { void foo(size_t); void foo(unsigned long); };
dd2c8b7c
VZ
11386
11387 int bar() {
d836ee96
VZ
11388
11389; return 0; }
11390EOF
54276ccf 11391if { (eval echo configure:11392: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d836ee96
VZ
11392 rm -rf conftest*
11393 wx_cv_size_t_is_ulong=no
11394else
11395 echo "configure: failed program was:" >&5
11396 cat conftest.$ac_ext >&5
11397 rm -rf conftest*
11398 wx_cv_size_t_is_ulong=yes
11399
11400fi
11401rm -f conftest*
11402
11403fi
11404
11405echo "$ac_t""$wx_cv_size_t_is_ulong" 1>&6
11406
11407 if test "$wx_cv_size_t_is_ulong" = "yes"; then
11408 cat >> confdefs.h <<\EOF
11409#define wxSIZE_T_IS_ULONG 1
11410EOF
11411
11412 fi
11413fi
11414
19af3b06
VZ
11415ac_ext=c
11416# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11417ac_cpp='$CPP $CPPFLAGS'
11418ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11419ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11420cross_compiling=$ac_cv_prog_cc_cross
11421
11422
1e487827 11423
698dcdb6 11424echo $ac_n "checking for pw_gecos in struct passwd""... $ac_c" 1>&6
54276ccf 11425echo "configure:11426: checking for pw_gecos in struct passwd" >&5
698dcdb6
VZ
11426if eval "test \"`echo '$''{'wx_cv_struct_pw_gecos'+set}'`\" = set"; then
11427 echo $ac_n "(cached) $ac_c" 1>&6
11428else
11429
11430 cat > conftest.$ac_ext <<EOF
54276ccf 11431#line 11432 "configure"
b12915c1
VZ
11432#include "confdefs.h"
11433#include <pwd.h>
698dcdb6 11434int main() {
b12915c1
VZ
11435
11436 char *p;
11437 struct passwd *pw;
11438 p = pw->pw_gecos;
698dcdb6
VZ
11439
11440; return 0; }
11441EOF
54276ccf 11442if { (eval echo configure:11443: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
11443 rm -rf conftest*
11444
b12915c1 11445 wx_cv_struct_pw_gecos=yes
698dcdb6 11446
b12915c1 11447else
698dcdb6
VZ
11448 echo "configure: failed program was:" >&5
11449 cat conftest.$ac_ext >&5
11450 rm -rf conftest*
11451
b12915c1 11452 wx_cv_struct_pw_gecos=no
698dcdb6
VZ
11453
11454
6232543b 11455fi
698dcdb6
VZ
11456rm -f conftest*
11457
703e0a69 11458
1e487827 11459fi
698dcdb6
VZ
11460
11461echo "$ac_t""$wx_cv_struct_pw_gecos" 1>&6
b12915c1 11462
bd3277fe 11463if test "$wx_cv_struct_pw_gecos" = "yes"; then
698dcdb6 11464 cat >> confdefs.h <<\EOF
bd3277fe
VZ
11465#define HAVE_PW_GECOS 1
11466EOF
11467
11468fi
11469
698dcdb6
VZ
11470
11471echo $ac_n "checking for working const""... $ac_c" 1>&6
54276ccf 11472echo "configure:11473: checking for working const" >&5
698dcdb6
VZ
11473if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
11474 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 11475else
698dcdb6 11476 cat > conftest.$ac_ext <<EOF
54276ccf 11477#line 11478 "configure"
10f2d63a 11478#include "confdefs.h"
698dcdb6
VZ
11479
11480int main() {
11481
11482/* Ultrix mips cc rejects this. */
11483typedef int charset[2]; const charset x;
11484/* SunOS 4.1.1 cc rejects this. */
11485char const *const *ccp;
11486char **p;
11487/* NEC SVR4.0.2 mips cc rejects this. */
11488struct point {int x, y;};
11489static struct point const zero = {0,0};
11490/* AIX XL C 1.02.0.0 rejects this.
11491 It does not let you subtract one const X* pointer from another in an arm
11492 of an if-expression whose if-part is not a constant expression */
11493const char *g = "string";
11494ccp = &g + (g ? g-g : 0);
11495/* HPUX 7.0 cc rejects these. */
11496++ccp;
11497p = (char**) ccp;
11498ccp = (char const *const *) p;
11499{ /* SCO 3.2v4 cc rejects this. */
11500 char *t;
11501 char const *s = 0 ? (char *) 0 : (char const *) 0;
11502
11503 *t++ = 0;
10f2d63a 11504}
698dcdb6
VZ
11505{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
11506 int x[] = {25, 17};
11507 const int *foo = &x[0];
11508 ++foo;
703e0a69 11509}
698dcdb6
VZ
11510{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11511 typedef const int *iptr;
11512 iptr p = 0;
11513 ++p;
6232543b 11514}
698dcdb6
VZ
11515{ /* AIX XL C 1.02.0.0 rejects this saying
11516 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11517 struct s { int j; const int *ap[3]; };
11518 struct s *b; b->j = 5;
1e487827 11519}
698dcdb6
VZ
11520{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11521 const int foo = 10;
11522}
11523
11524; return 0; }
11525EOF
54276ccf 11526if { (eval echo configure:11527: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 11527 rm -rf conftest*
10f2d63a
VZ
11528 ac_cv_c_const=yes
11529else
698dcdb6
VZ
11530 echo "configure: failed program was:" >&5
11531 cat conftest.$ac_ext >&5
11532 rm -rf conftest*
11533 ac_cv_c_const=no
10f2d63a 11534fi
698dcdb6 11535rm -f conftest*
10f2d63a 11536fi
1e487827 11537
698dcdb6
VZ
11538echo "$ac_t""$ac_cv_c_const" 1>&6
11539if test $ac_cv_c_const = no; then
11540 cat >> confdefs.h <<\EOF
11541#define const
10f2d63a
VZ
11542EOF
11543
11544fi
11545
698dcdb6 11546echo $ac_n "checking for inline""... $ac_c" 1>&6
54276ccf 11547echo "configure:11548: checking for inline" >&5
698dcdb6
VZ
11548if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
11549 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
11550else
11551 ac_cv_c_inline=no
11552for ac_kw in inline __inline__ __inline; do
698dcdb6 11553 cat > conftest.$ac_ext <<EOF
54276ccf 11554#line 11555 "configure"
10f2d63a
VZ
11555#include "confdefs.h"
11556
698dcdb6
VZ
11557int main() {
11558} $ac_kw foo() {
11559; return 0; }
11560EOF
54276ccf 11561if { (eval echo configure:11562: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 11562 rm -rf conftest*
10f2d63a
VZ
11563 ac_cv_c_inline=$ac_kw; break
11564else
698dcdb6
VZ
11565 echo "configure: failed program was:" >&5
11566 cat conftest.$ac_ext >&5
10f2d63a 11567fi
698dcdb6 11568rm -f conftest*
10f2d63a
VZ
11569done
11570
11571fi
698dcdb6
VZ
11572
11573echo "$ac_t""$ac_cv_c_inline" 1>&6
11574case "$ac_cv_c_inline" in
10f2d63a 11575 inline | yes) ;;
698dcdb6
VZ
11576 no) cat >> confdefs.h <<\EOF
11577#define inline
10f2d63a
VZ
11578EOF
11579 ;;
698dcdb6 11580 *) cat >> confdefs.h <<EOF
10f2d63a
VZ
11581#define inline $ac_cv_c_inline
11582EOF
11583 ;;
11584esac
11585
698dcdb6
VZ
11586
11587echo $ac_n "checking size of char""... $ac_c" 1>&6
54276ccf 11588echo "configure:11589: checking size of char" >&5
698dcdb6
VZ
11589if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
11590 echo $ac_n "(cached) $ac_c" 1>&6
6232543b 11591else
1e487827 11592 if test "$cross_compiling" = yes; then
698dcdb6 11593 ac_cv_sizeof_char=1
1e487827 11594else
698dcdb6 11595 cat > conftest.$ac_ext <<EOF
54276ccf 11596#line 11597 "configure"
1e487827 11597#include "confdefs.h"
698dcdb6
VZ
11598#include <stdio.h>
11599main()
1e487827 11600{
698dcdb6
VZ
11601 FILE *f=fopen("conftestval", "w");
11602 if (!f) exit(1);
11603 fprintf(f, "%d\n", sizeof(char));
11604 exit(0);
1e487827 11605}
698dcdb6 11606EOF
54276ccf 11607if { (eval echo configure:11608: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6
VZ
11608then
11609 ac_cv_sizeof_char=`cat conftestval`
1e487827 11610else
698dcdb6
VZ
11611 echo "configure: failed program was:" >&5
11612 cat conftest.$ac_ext >&5
11613 rm -fr conftest*
1e487827
VS
11614 ac_cv_sizeof_char=0
11615fi
698dcdb6 11616rm -fr conftest*
1e487827 11617fi
10f2d63a 11618
1e487827 11619fi
698dcdb6
VZ
11620echo "$ac_t""$ac_cv_sizeof_char" 1>&6
11621cat >> confdefs.h <<EOF
11622#define SIZEOF_CHAR $ac_cv_sizeof_char
1e487827 11623EOF
6232543b 11624
703e0a69 11625
698dcdb6 11626echo $ac_n "checking size of short""... $ac_c" 1>&6
54276ccf 11627echo "configure:11628: checking size of short" >&5
698dcdb6
VZ
11628if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
11629 echo $ac_n "(cached) $ac_c" 1>&6
1e487827 11630else
1e487827 11631 if test "$cross_compiling" = yes; then
698dcdb6 11632 ac_cv_sizeof_short=2
1e487827 11633else
698dcdb6 11634 cat > conftest.$ac_ext <<EOF
54276ccf 11635#line 11636 "configure"
1e487827 11636#include "confdefs.h"
698dcdb6
VZ
11637#include <stdio.h>
11638main()
1e487827 11639{
698dcdb6
VZ
11640 FILE *f=fopen("conftestval", "w");
11641 if (!f) exit(1);
11642 fprintf(f, "%d\n", sizeof(short));
11643 exit(0);
1e487827 11644}
698dcdb6 11645EOF
54276ccf 11646if { (eval echo configure:11647: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6
VZ
11647then
11648 ac_cv_sizeof_short=`cat conftestval`
1e487827 11649else
698dcdb6
VZ
11650 echo "configure: failed program was:" >&5
11651 cat conftest.$ac_ext >&5
11652 rm -fr conftest*
11653 ac_cv_sizeof_short=0
1e487827 11654fi
698dcdb6 11655rm -fr conftest*
1e487827 11656fi
698dcdb6 11657
1e487827 11658fi
698dcdb6
VZ
11659echo "$ac_t""$ac_cv_sizeof_short" 1>&6
11660cat >> confdefs.h <<EOF
11661#define SIZEOF_SHORT $ac_cv_sizeof_short
11662EOF
11663
11664
11665echo $ac_n "checking size of int *""... $ac_c" 1>&6
54276ccf 11666echo "configure:11667: checking size of int *" >&5
698dcdb6
VZ
11667if eval "test \"`echo '$''{'ac_cv_sizeof_int_p'+set}'`\" = set"; then
11668 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
11669else
11670 if test "$cross_compiling" = yes; then
698dcdb6 11671 ac_cv_sizeof_int_p=4
10f2d63a 11672else
698dcdb6 11673 cat > conftest.$ac_ext <<EOF
54276ccf 11674#line 11675 "configure"
10f2d63a 11675#include "confdefs.h"
698dcdb6
VZ
11676#include <stdio.h>
11677main()
10f2d63a 11678{
698dcdb6
VZ
11679 FILE *f=fopen("conftestval", "w");
11680 if (!f) exit(1);
11681 fprintf(f, "%d\n", sizeof(int *));
11682 exit(0);
10f2d63a 11683}
698dcdb6 11684EOF
54276ccf 11685if { (eval echo configure:11686: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6
VZ
11686then
11687 ac_cv_sizeof_int_p=`cat conftestval`
10f2d63a 11688else
698dcdb6
VZ
11689 echo "configure: failed program was:" >&5
11690 cat conftest.$ac_ext >&5
11691 rm -fr conftest*
11692 ac_cv_sizeof_int_p=0
6232543b 11693fi
698dcdb6 11694rm -fr conftest*
1e487827 11695fi
698dcdb6 11696
1e487827 11697fi
698dcdb6
VZ
11698echo "$ac_t""$ac_cv_sizeof_int_p" 1>&6
11699cat >> confdefs.h <<EOF
11700#define SIZEOF_INT_P $ac_cv_sizeof_int_p
10f2d63a
VZ
11701EOF
11702
698dcdb6
VZ
11703
11704echo $ac_n "checking size of int""... $ac_c" 1>&6
54276ccf 11705echo "configure:11706: checking size of int" >&5
698dcdb6
VZ
11706if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
11707 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
11708else
11709 if test "$cross_compiling" = yes; then
698dcdb6 11710 ac_cv_sizeof_int=4
703e0a69 11711else
698dcdb6 11712 cat > conftest.$ac_ext <<EOF
54276ccf 11713#line 11714 "configure"
1e487827 11714#include "confdefs.h"
698dcdb6
VZ
11715#include <stdio.h>
11716main()
1e487827 11717{
698dcdb6
VZ
11718 FILE *f=fopen("conftestval", "w");
11719 if (!f) exit(1);
11720 fprintf(f, "%d\n", sizeof(int));
11721 exit(0);
1e487827 11722}
698dcdb6 11723EOF
54276ccf 11724if { (eval echo configure:11725: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6
VZ
11725then
11726 ac_cv_sizeof_int=`cat conftestval`
11727else
11728 echo "configure: failed program was:" >&5
11729 cat conftest.$ac_ext >&5
11730 rm -fr conftest*
11731 ac_cv_sizeof_int=0
703e0a69 11732fi
698dcdb6
VZ
11733rm -fr conftest*
11734fi
11735
11736fi
11737echo "$ac_t""$ac_cv_sizeof_int" 1>&6
11738cat >> confdefs.h <<EOF
11739#define SIZEOF_INT $ac_cv_sizeof_int
11740EOF
11741
11742
11743echo $ac_n "checking size of long""... $ac_c" 1>&6
54276ccf 11744echo "configure:11745: checking size of long" >&5
698dcdb6
VZ
11745if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
11746 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
11747else
11748 if test "$cross_compiling" = yes; then
698dcdb6 11749 ac_cv_sizeof_long=4
10f2d63a 11750else
698dcdb6 11751 cat > conftest.$ac_ext <<EOF
54276ccf 11752#line 11753 "configure"
10f2d63a 11753#include "confdefs.h"
698dcdb6
VZ
11754#include <stdio.h>
11755main()
10f2d63a 11756{
698dcdb6
VZ
11757 FILE *f=fopen("conftestval", "w");
11758 if (!f) exit(1);
11759 fprintf(f, "%d\n", sizeof(long));
11760 exit(0);
10f2d63a 11761}
698dcdb6 11762EOF
54276ccf 11763if { (eval echo configure:11764: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6
VZ
11764then
11765 ac_cv_sizeof_long=`cat conftestval`
10f2d63a 11766else
698dcdb6
VZ
11767 echo "configure: failed program was:" >&5
11768 cat conftest.$ac_ext >&5
11769 rm -fr conftest*
11770 ac_cv_sizeof_long=0
10f2d63a 11771fi
698dcdb6 11772rm -fr conftest*
10f2d63a 11773fi
698dcdb6 11774
10f2d63a 11775fi
698dcdb6
VZ
11776echo "$ac_t""$ac_cv_sizeof_long" 1>&6
11777cat >> confdefs.h <<EOF
11778#define SIZEOF_LONG $ac_cv_sizeof_long
11779EOF
11780
11781
11782echo $ac_n "checking size of long long""... $ac_c" 1>&6
54276ccf 11783echo "configure:11784: checking size of long long" >&5
698dcdb6
VZ
11784if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
11785 echo $ac_n "(cached) $ac_c" 1>&6
11786else
11787 if test "$cross_compiling" = yes; then
11788 ac_cv_sizeof_long_long=0
11789else
11790 cat > conftest.$ac_ext <<EOF
54276ccf 11791#line 11792 "configure"
698dcdb6
VZ
11792#include "confdefs.h"
11793#include <stdio.h>
11794main()
11795{
11796 FILE *f=fopen("conftestval", "w");
11797 if (!f) exit(1);
11798 fprintf(f, "%d\n", sizeof(long long));
11799 exit(0);
11800}
11801EOF
54276ccf 11802if { (eval echo configure:11803: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6
VZ
11803then
11804 ac_cv_sizeof_long_long=`cat conftestval`
6232543b 11805else
698dcdb6
VZ
11806 echo "configure: failed program was:" >&5
11807 cat conftest.$ac_ext >&5
11808 rm -fr conftest*
6232543b
VS
11809 ac_cv_sizeof_long_long=0
11810fi
698dcdb6
VZ
11811rm -fr conftest*
11812fi
11813
703e0a69 11814fi
698dcdb6
VZ
11815echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
11816cat >> confdefs.h <<EOF
10f2d63a
VZ
11817#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
11818EOF
11819
1e487827 11820
698dcdb6
VZ
11821
11822echo $ac_n "checking size of wchar_t""... $ac_c" 1>&6
54276ccf 11823echo "configure:11824: checking size of wchar_t" >&5
698dcdb6
VZ
11824if eval "test \"`echo '$''{'wx_cv_sizeof_wchar_t'+set}'`\" = set"; then
11825 echo $ac_n "(cached) $ac_c" 1>&6
11826else
11827
b93d0d08
VS
11828 if test "$cross_compiling" = yes; then
11829 wx_cv_sizeof_wchar_t=4
1e6feb95 11830
b93d0d08 11831else
698dcdb6 11832 cat > conftest.$ac_ext <<EOF
54276ccf 11833#line 11834 "configure"
b93d0d08
VS
11834#include "confdefs.h"
11835
1e6feb95
VZ
11836 #ifdef HAVE_WCHAR_H
11837 # include <wchar.h>
11838 #endif
11839 #ifdef HAVE_STDLIB_H
11840 # include <stdlib.h>
11841 #endif
11842 #include <stdio.h>
11843 int main()
11844 {
11845 FILE *f=fopen("conftestval", "w");
11846 if (!f) exit(1);
11847 fprintf(f, "%i", sizeof(wchar_t));
11848 exit(0);
11849 }
698dcdb6
VZ
11850
11851EOF
54276ccf 11852if { (eval echo configure:11853: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6 11853then
b93d0d08
VS
11854 wx_cv_sizeof_wchar_t=`cat conftestval`
11855else
698dcdb6
VZ
11856 echo "configure: failed program was:" >&5
11857 cat conftest.$ac_ext >&5
11858 rm -fr conftest*
11859 wx_cv_sizeof_wchar_t=0
b93d0d08 11860fi
698dcdb6 11861rm -fr conftest*
b93d0d08
VS
11862fi
11863
698dcdb6 11864
b93d0d08
VS
11865fi
11866
698dcdb6
VZ
11867echo "$ac_t""$wx_cv_sizeof_wchar_t" 1>&6
11868
11869cat >> confdefs.h <<EOF
28c6addc 11870#define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t
b93d0d08
VS
11871EOF
11872
698dcdb6 11873
698dcdb6 11874echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
54276ccf 11875echo "configure:11876: checking whether byte ordering is bigendian" >&5
698dcdb6
VZ
11876if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
11877 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
11878else
11879 ac_cv_c_bigendian=unknown
11880# See if sys/param.h defines the BYTE_ORDER macro.
698dcdb6 11881cat > conftest.$ac_ext <<EOF
54276ccf 11882#line 11883 "configure"
10f2d63a
VZ
11883#include "confdefs.h"
11884#include <sys/types.h>
11885#include <sys/param.h>
698dcdb6 11886int main() {
10f2d63a
VZ
11887
11888#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
11889 bogus endian macros
11890#endif
698dcdb6
VZ
11891; return 0; }
11892EOF
54276ccf 11893if { (eval echo configure:11894: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 11894 rm -rf conftest*
10f2d63a 11895 # It does; now see whether it defined to BIG_ENDIAN or not.
698dcdb6 11896cat > conftest.$ac_ext <<EOF
54276ccf 11897#line 11898 "configure"
10f2d63a
VZ
11898#include "confdefs.h"
11899#include <sys/types.h>
11900#include <sys/param.h>
698dcdb6 11901int main() {
10f2d63a
VZ
11902
11903#if BYTE_ORDER != BIG_ENDIAN
11904 not big endian
11905#endif
698dcdb6
VZ
11906; return 0; }
11907EOF
54276ccf 11908if { (eval echo configure:11909: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 11909 rm -rf conftest*
10f2d63a
VZ
11910 ac_cv_c_bigendian=yes
11911else
698dcdb6
VZ
11912 echo "configure: failed program was:" >&5
11913 cat conftest.$ac_ext >&5
11914 rm -rf conftest*
11915 ac_cv_c_bigendian=no
10f2d63a 11916fi
698dcdb6 11917rm -f conftest*
10f2d63a 11918else
698dcdb6
VZ
11919 echo "configure: failed program was:" >&5
11920 cat conftest.$ac_ext >&5
10f2d63a 11921fi
698dcdb6 11922rm -f conftest*
10f2d63a
VZ
11923if test $ac_cv_c_bigendian = unknown; then
11924if test "$cross_compiling" = yes; then
11925 ac_cv_c_bigendian=unknown
11926else
698dcdb6 11927 cat > conftest.$ac_ext <<EOF
54276ccf 11928#line 11929 "configure"
10f2d63a
VZ
11929#include "confdefs.h"
11930main () {
11931 /* Are we little or big endian? From Harbison&Steele. */
11932 union
11933 {
11934 long l;
11935 char c[sizeof (long)];
11936 } u;
11937 u.l = 1;
11938 exit (u.c[sizeof (long) - 1] == 1);
11939}
698dcdb6 11940EOF
54276ccf 11941if { (eval echo configure:11942: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6 11942then
10f2d63a
VZ
11943 ac_cv_c_bigendian=no
11944else
698dcdb6
VZ
11945 echo "configure: failed program was:" >&5
11946 cat conftest.$ac_ext >&5
11947 rm -fr conftest*
11948 ac_cv_c_bigendian=yes
10f2d63a 11949fi
698dcdb6 11950rm -fr conftest*
10f2d63a 11951fi
698dcdb6 11952
10f2d63a
VZ
11953fi
11954fi
698dcdb6
VZ
11955
11956echo "$ac_t""$ac_cv_c_bigendian" 1>&6
10f2d63a 11957if test $ac_cv_c_bigendian = unknown; then
698dcdb6 11958 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
11959fi
11960if test $ac_cv_c_bigendian = yes; then
698dcdb6 11961 cat >> confdefs.h <<\EOF
10f2d63a
VZ
11962#define WORDS_BIGENDIAN 1
11963EOF
11964
11965fi
11966
698dcdb6
VZ
11967
11968
10f2d63a 11969 if test "$cross_compiling" = "yes"; then
698dcdb6 11970 cat >> confdefs.h <<\EOF
10f2d63a
VZ
11971#define wxUSE_IOSTREAMH 1
11972EOF
11973
11974 else
698dcdb6
VZ
11975
11976 ac_ext=C
11977# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1e487827 11978ac_cpp='$CXXCPP $CPPFLAGS'
698dcdb6
VZ
11979ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11980ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11981cross_compiling=$ac_cv_prog_cxx_cross
11982
703e0a69 11983
698dcdb6 11984 for ac_hdr in iostream
10f2d63a 11985do
698dcdb6
VZ
11986ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11987echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
54276ccf 11988echo "configure:11989: checking for $ac_hdr" >&5
698dcdb6
VZ
11989if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11990 echo $ac_n "(cached) $ac_c" 1>&6
11991else
11992 cat > conftest.$ac_ext <<EOF
54276ccf 11993#line 11994 "configure"
10f2d63a 11994#include "confdefs.h"
698dcdb6
VZ
11995#include <$ac_hdr>
11996EOF
11997ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
54276ccf 11998{ (eval echo configure:11999: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
11999ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12000if test -z "$ac_err"; then
12001 rm -rf conftest*
12002 eval "ac_cv_header_$ac_safe=yes"
10f2d63a 12003else
698dcdb6
VZ
12004 echo "$ac_err" >&5
12005 echo "configure: failed program was:" >&5
10f2d63a 12006 cat conftest.$ac_ext >&5
698dcdb6
VZ
12007 rm -rf conftest*
12008 eval "ac_cv_header_$ac_safe=no"
10f2d63a 12009fi
698dcdb6 12010rm -f conftest*
10f2d63a 12011fi
698dcdb6
VZ
12012if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12013 echo "$ac_t""yes" 1>&6
12014 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12015 cat >> confdefs.h <<EOF
12016#define $ac_tr_hdr 1
10f2d63a 12017EOF
698dcdb6
VZ
12018
12019else
12020 echo "$ac_t""no" 1>&6
10f2d63a
VZ
12021fi
12022done
12023
698dcdb6 12024
57fe5ed0
VZ
12025 if test "$ac_cv_header_iostream" = "yes" ; then
12026 :
12027 else
698dcdb6 12028 cat >> confdefs.h <<\EOF
10f2d63a
VZ
12029#define wxUSE_IOSTREAMH 1
12030EOF
12031
10f2d63a
VZ
12032 fi
12033
12034 ac_ext=c
698dcdb6 12035# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10f2d63a 12036ac_cpp='$CPP $CPPFLAGS'
698dcdb6
VZ
12037ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12038ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12039cross_compiling=$ac_cv_prog_cc_cross
10f2d63a
VZ
12040
12041 fi
12042
703e0a69 12043
698dcdb6
VZ
12044
12045 echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6
54276ccf 12046echo "configure:12047: checking if C++ compiler supports bool" >&5
698dcdb6
VZ
12047if eval "test \"`echo '$''{'wx_cv_cpp_bool'+set}'`\" = set"; then
12048 echo $ac_n "(cached) $ac_c" 1>&6
12049else
12050
12051
12052 ac_ext=C
12053# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1e487827 12054ac_cpp='$CXXCPP $CPPFLAGS'
698dcdb6
VZ
12055ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12056ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12057cross_compiling=$ac_cv_prog_cxx_cross
10f2d63a 12058
698dcdb6
VZ
12059
12060 cat > conftest.$ac_ext <<EOF
54276ccf 12061#line 12062 "configure"
10f2d63a
VZ
12062#include "confdefs.h"
12063
698dcdb6
VZ
12064
12065int main() {
10f2d63a
VZ
12066
12067 bool b = true;
12068
12069 return 0;
698dcdb6
VZ
12070
12071; return 0; }
12072EOF
54276ccf 12073if { (eval echo configure:12074: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
12074 rm -rf conftest*
12075
10f2d63a 12076 wx_cv_cpp_bool=yes
698dcdb6 12077
10f2d63a 12078else
698dcdb6
VZ
12079 echo "configure: failed program was:" >&5
12080 cat conftest.$ac_ext >&5
12081 rm -rf conftest*
12082
10f2d63a 12083 wx_cv_cpp_bool=no
698dcdb6
VZ
12084
12085
10f2d63a 12086fi
698dcdb6 12087rm -f conftest*
10f2d63a
VZ
12088
12089 ac_ext=c
698dcdb6 12090# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10f2d63a 12091ac_cpp='$CPP $CPPFLAGS'
698dcdb6
VZ
12092ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12093ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12094cross_compiling=$ac_cv_prog_cc_cross
10f2d63a 12095
698dcdb6 12096
10f2d63a 12097fi
698dcdb6
VZ
12098
12099echo "$ac_t""$wx_cv_cpp_bool" 1>&6
10f2d63a
VZ
12100
12101 if test "$wx_cv_cpp_bool" = "yes"; then
698dcdb6 12102 cat >> confdefs.h <<\EOF
10f2d63a
VZ
12103#define HAVE_BOOL 1
12104EOF
12105
12106 fi
12107
1e487827 12108
698dcdb6 12109
698dcdb6 12110echo $ac_n "checking for wcslen in -lc""... $ac_c" 1>&6
54276ccf 12111echo "configure:12112: checking for wcslen in -lc" >&5
698dcdb6
VZ
12112ac_lib_var=`echo c'_'wcslen | sed 'y%./+-%__p_%'`
12113if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12114 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 12115else
698dcdb6 12116 ac_save_LIBS="$LIBS"
10f2d63a 12117LIBS="-lc $LIBS"
698dcdb6 12118cat > conftest.$ac_ext <<EOF
54276ccf 12119#line 12120 "configure"
10f2d63a
VZ
12120#include "confdefs.h"
12121/* Override any gcc2 internal prototype to avoid an error. */
12122/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
12123 builtin and then its argument prototype would still apply. */
12124char wcslen();
12125
12126int main() {
12127wcslen()
12128; return 0; }
12129EOF
54276ccf 12130if { (eval echo configure:12131: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
12131 rm -rf conftest*
12132 eval "ac_cv_lib_$ac_lib_var=yes"
12133else
12134 echo "configure: failed program was:" >&5
12135 cat conftest.$ac_ext >&5
12136 rm -rf conftest*
12137 eval "ac_cv_lib_$ac_lib_var=no"
12138fi
12139rm -f conftest*
12140LIBS="$ac_save_LIBS"
12141
12142fi
12143if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12144 echo "$ac_t""yes" 1>&6
12145
12146 cat >> confdefs.h <<\EOF
10f2d63a
VZ
12147#define HAVE_WCSLEN 1
12148EOF
12149
12150 WCHAR_LINK=""
698dcdb6 12151
10f2d63a 12152else
698dcdb6 12153 echo "$ac_t""no" 1>&6
10f2d63a 12154
698dcdb6 12155 echo $ac_n "checking for wcslen in -lw""... $ac_c" 1>&6
54276ccf 12156echo "configure:12157: checking for wcslen in -lw" >&5
698dcdb6
VZ
12157ac_lib_var=`echo w'_'wcslen | sed 'y%./+-%__p_%'`
12158if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12159 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 12160else
698dcdb6 12161 ac_save_LIBS="$LIBS"
10f2d63a 12162LIBS="-lw $LIBS"
698dcdb6 12163cat > conftest.$ac_ext <<EOF
54276ccf 12164#line 12165 "configure"
10f2d63a
VZ
12165#include "confdefs.h"
12166/* Override any gcc2 internal prototype to avoid an error. */
12167/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
12168 builtin and then its argument prototype would still apply. */
12169char wcslen();
12170
12171int main() {
12172wcslen()
12173; return 0; }
12174EOF
54276ccf 12175if { (eval echo configure:12176: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
12176 rm -rf conftest*
12177 eval "ac_cv_lib_$ac_lib_var=yes"
12178else
12179 echo "configure: failed program was:" >&5
12180 cat conftest.$ac_ext >&5
12181 rm -rf conftest*
12182 eval "ac_cv_lib_$ac_lib_var=no"
12183fi
12184rm -f conftest*
12185LIBS="$ac_save_LIBS"
12186
12187fi
12188if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12189 echo "$ac_t""yes" 1>&6
12190
12191 cat >> confdefs.h <<\EOF
10f2d63a
VZ
12192#define HAVE_WCSLEN 1
12193EOF
12194
12195 WCHAR_LINK="-lw"
698dcdb6
VZ
12196
12197else
12198 echo "$ac_t""no" 1>&6
6232543b 12199fi
10f2d63a 12200
698dcdb6 12201
1e487827 12202fi
703e0a69 12203
698dcdb6
VZ
12204
12205echo $ac_n "checking for vprintf""... $ac_c" 1>&6
54276ccf 12206echo "configure:12207: checking for vprintf" >&5
698dcdb6
VZ
12207if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
12208 echo $ac_n "(cached) $ac_c" 1>&6
12209else
12210 cat > conftest.$ac_ext <<EOF
54276ccf 12211#line 12212 "configure"
10f2d63a
VZ
12212#include "confdefs.h"
12213/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 12214 which can conflict with char vprintf(); below. */
10f2d63a
VZ
12215#include <assert.h>
12216/* Override any gcc2 internal prototype to avoid an error. */
12217/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
12218 builtin and then its argument prototype would still apply. */
12219char vprintf();
12220
12221int main() {
10f2d63a
VZ
12222
12223/* The GNU C library defines this for functions which it implements
12224 to always fail with ENOSYS. Some functions are actually named
12225 something starting with __ and the normal name is an alias. */
698dcdb6 12226#if defined (__stub_vprintf) || defined (__stub___vprintf)
10f2d63a
VZ
12227choke me
12228#else
698dcdb6 12229vprintf();
10f2d63a
VZ
12230#endif
12231
698dcdb6
VZ
12232; return 0; }
12233EOF
54276ccf 12234if { (eval echo configure:12235: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
12235 rm -rf conftest*
12236 eval "ac_cv_func_vprintf=yes"
12237else
12238 echo "configure: failed program was:" >&5
12239 cat conftest.$ac_ext >&5
12240 rm -rf conftest*
12241 eval "ac_cv_func_vprintf=no"
12242fi
12243rm -f conftest*
12244fi
12245
12246if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
12247 echo "$ac_t""yes" 1>&6
12248 cat >> confdefs.h <<\EOF
12249#define HAVE_VPRINTF 1
12250EOF
12251
12252else
12253 echo "$ac_t""no" 1>&6
12254fi
12255
12256if test "$ac_cv_func_vprintf" != yes; then
12257echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
54276ccf 12258echo "configure:12259: checking for _doprnt" >&5
698dcdb6
VZ
12259if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
12260 echo $ac_n "(cached) $ac_c" 1>&6
12261else
12262 cat > conftest.$ac_ext <<EOF
54276ccf 12263#line 12264 "configure"
10f2d63a
VZ
12264#include "confdefs.h"
12265/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 12266 which can conflict with char _doprnt(); below. */
10f2d63a
VZ
12267#include <assert.h>
12268/* Override any gcc2 internal prototype to avoid an error. */
12269/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
12270 builtin and then its argument prototype would still apply. */
12271char _doprnt();
12272
12273int main() {
10f2d63a
VZ
12274
12275/* The GNU C library defines this for functions which it implements
12276 to always fail with ENOSYS. Some functions are actually named
12277 something starting with __ and the normal name is an alias. */
12278#if defined (__stub__doprnt) || defined (__stub____doprnt)
12279choke me
12280#else
698dcdb6 12281_doprnt();
10f2d63a
VZ
12282#endif
12283
698dcdb6
VZ
12284; return 0; }
12285EOF
54276ccf 12286if { (eval echo configure:12287: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
12287 rm -rf conftest*
12288 eval "ac_cv_func__doprnt=yes"
12289else
12290 echo "configure: failed program was:" >&5
12291 cat conftest.$ac_ext >&5
12292 rm -rf conftest*
12293 eval "ac_cv_func__doprnt=no"
12294fi
12295rm -f conftest*
12296fi
12297
12298if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
12299 echo "$ac_t""yes" 1>&6
12300 cat >> confdefs.h <<\EOF
10f2d63a
VZ
12301#define HAVE_DOPRNT 1
12302EOF
12303
698dcdb6
VZ
12304else
12305 echo "$ac_t""no" 1>&6
10f2d63a
VZ
12306fi
12307
12308fi
12309
1e487827 12310
698dcdb6
VZ
12311
12312
12313
12314
12315
12316echo $ac_n "checking for vsnprintf""... $ac_c" 1>&6
54276ccf 12317echo "configure:12318: checking for vsnprintf" >&5
698dcdb6
VZ
12318if eval "test \"`echo '$''{'wx_cv_func_vsnprintf'+set}'`\" = set"; then
12319 echo $ac_n "(cached) $ac_c" 1>&6
12320else
12321
12322 cat > conftest.$ac_ext <<EOF
54276ccf 12323#line 12324 "configure"
f6bcfd97
BP
12324#include "confdefs.h"
12325
12326 #include <stdio.h>
698dcdb6
VZ
12327 #include <stdarg.h>
12328
12329int main() {
10f2d63a 12330
f6bcfd97 12331 int wx_test_vsnprintf(const char *, ...);
10f2d63a 12332
f6bcfd97
BP
12333 wx_test_vsnprintf("%s");
12334 return 0;
12335 }
12336
12337 int wx_test_vsnprintf(const char *fmt, ...)
12338 {
12339 char *s;
12340
12341 va_list argp;
12342 va_start(argp, fmt);
12343 vsnprintf(s, 42, fmt, argp);
12344 va_end(argp);
698dcdb6
VZ
12345
12346; return 0; }
12347EOF
54276ccf 12348if { (eval echo configure:12349: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
12349 rm -rf conftest*
12350
f6bcfd97 12351 wx_cv_func_vsnprintf=yes
698dcdb6 12352
10f2d63a 12353else
698dcdb6
VZ
12354 echo "configure: failed program was:" >&5
12355 cat conftest.$ac_ext >&5
12356 rm -rf conftest*
12357
12358 cat > conftest.$ac_ext <<EOF
54276ccf 12359#line 12360 "configure"
c521c494
RL
12360#include "confdefs.h"
12361
12362 #include <stdio.h>
12363 #include <stdarg.h>
698dcdb6
VZ
12364
12365int main() {
c521c494
RL
12366
12367 int wx_test_vsnprintf(const char *, ...);
12368
12369 wx_test_vsnprintf("%s");
12370 return 0;
12371 }
12372
12373 int wx_test_vsnprintf(const char *fmt, ...)
12374 {
12375 char *s;
12376
12377 va_list argp;
12378 va_start(argp, fmt);
12379 _vsnprintf(s, 42, fmt, argp);
12380 va_end(argp);
698dcdb6
VZ
12381
12382; return 0; }
12383EOF
54276ccf 12384if { (eval echo configure:12385: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
12385 rm -rf conftest*
12386
c521c494 12387 wx_cv_func_vsnprintf=yes
698dcdb6 12388
c521c494 12389else
698dcdb6
VZ
12390 echo "configure: failed program was:" >&5
12391 cat conftest.$ac_ext >&5
12392 rm -rf conftest*
12393
c521c494 12394 wx_cv_func_vsnprintf=no
698dcdb6 12395
10f2d63a 12396fi
698dcdb6
VZ
12397rm -f conftest*
12398
6232543b 12399fi
698dcdb6 12400rm -f conftest*
703e0a69 12401
1e487827 12402fi
698dcdb6
VZ
12403
12404echo "$ac_t""$wx_cv_func_vsnprintf" 1>&6
10f2d63a 12405
9d8deca0 12406if test "$wx_cv_func_vsnprintf" = yes; then
698dcdb6 12407 cat >> confdefs.h <<\EOF
9d8deca0
VZ
12408#define HAVE_VSNPRINTF 1
12409EOF
12410
12411else
698dcdb6 12412 echo "configure: warning: unsafe function sprintf will be used instead of snprintf" 1>&2
9d8deca0
VZ
12413fi
12414
698dcdb6 12415echo $ac_n "checking for vsscanf""... $ac_c" 1>&6
54276ccf 12416echo "configure:12417: checking for vsscanf" >&5
698dcdb6
VZ
12417if eval "test \"`echo '$''{'wx_cv_func_vsscanf'+set}'`\" = set"; then
12418 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 12419else
698dcdb6
VZ
12420
12421 cat > conftest.$ac_ext <<EOF
54276ccf 12422#line 12423 "configure"
10f2d63a 12423#include "confdefs.h"
10f2d63a 12424
f6bcfd97
BP
12425 #include <stdio.h>
12426 #include <stdarg.h>
698dcdb6
VZ
12427
12428int main() {
10f2d63a 12429
f6bcfd97 12430 int wx_test_vsscanf(const char *, ...);
10f2d63a 12431
f6bcfd97
BP
12432 wx_test_vsscanf("%d");
12433 return 0;
10f2d63a
VZ
12434 }
12435
f6bcfd97 12436 int wx_test_vsscanf(const char *fmt, ...)
10f2d63a 12437 {
f6bcfd97
BP
12438 va_list argp;
12439 va_start(argp, fmt);
12440 vsscanf("42", fmt, argp);
12441 va_end(argp);
698dcdb6
VZ
12442
12443; return 0; }
12444EOF
54276ccf 12445if { (eval echo configure:12446: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
12446 rm -rf conftest*
12447
f6bcfd97 12448 wx_cv_func_vsscanf=yes
698dcdb6 12449
10f2d63a 12450else
698dcdb6
VZ
12451 echo "configure: failed program was:" >&5
12452 cat conftest.$ac_ext >&5
12453 rm -rf conftest*
12454
f6bcfd97 12455 wx_cv_func_vsscanf=no
698dcdb6 12456
6232543b 12457fi
698dcdb6 12458rm -f conftest*
703e0a69 12459
1e487827 12460fi
698dcdb6
VZ
12461
12462echo "$ac_t""$wx_cv_func_vsscanf" 1>&6
10f2d63a 12463
9d8deca0 12464if test "$wx_cv_func_vsscanf" = yes; then
698dcdb6 12465 cat >> confdefs.h <<\EOF
9d8deca0
VZ
12466#define HAVE_VSSCANF 1
12467EOF
12468
12469fi
12470
95c8801c
VS
12471if test "$TOOLKIT" != "MSW"; then
12472
12473
12474
698dcdb6
VZ
12475ac_ext=C
12476# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12477ac_cpp='$CXXCPP $CPPFLAGS'
12478ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12479ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12480cross_compiling=$ac_cv_prog_cxx_cross
12481
12482echo $ac_n "checking if iconv() takes char**""... $ac_c" 1>&6
54276ccf 12483echo "configure:12484: checking if iconv() takes char**" >&5
698dcdb6
VZ
12484if eval "test \"`echo '$''{'wx_cv_iconv_takes_char'+set}'`\" = set"; then
12485 echo $ac_n "(cached) $ac_c" 1>&6
12486else
12487
12488 cat > conftest.$ac_ext <<EOF
54276ccf 12489#line 12490 "configure"
95c8801c
VS
12490#include "confdefs.h"
12491#include <iconv.h>
698dcdb6 12492int main() {
95c8801c
VS
12493
12494 char **inbuf, **outbuf;
19af3b06
VZ
12495 iconv_t cd;
12496 size_t insz, outsz;
12497 iconv(cd, inbuf, &insz, outbuf, &outsz);
698dcdb6
VZ
12498
12499; return 0; }
12500EOF
54276ccf 12501if { (eval echo configure:12502: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 12502 rm -rf conftest*
95c8801c
VS
12503 wx_cv_iconv_takes_char=yes
12504else
698dcdb6
VZ
12505 echo "configure: failed program was:" >&5
12506 cat conftest.$ac_ext >&5
12507 rm -rf conftest*
12508 wx_cv_iconv_takes_char=no
95c8801c 12509fi
698dcdb6 12510rm -f conftest*
95c8801c
VS
12511
12512fi
698dcdb6
VZ
12513
12514echo "$ac_t""$wx_cv_iconv_takes_char" 1>&6
10f2d63a 12515ac_ext=c
698dcdb6 12516# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10f2d63a 12517ac_cpp='$CPP $CPPFLAGS'
698dcdb6
VZ
12518ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12519ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12520cross_compiling=$ac_cv_prog_cc_cross
10f2d63a 12521
95c8801c 12522if test "$wx_cv_iconv_takes_char" = yes ; then
698dcdb6 12523 cat >> confdefs.h <<\EOF
95c8801c
VS
12524#define WX_ICONV_TAKES_CHAR 1
12525EOF
12526
12527fi
10f2d63a 12528
1e487827 12529
698dcdb6
VZ
12530if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
12531 for ac_func in sigaction
eb4efbdc 12532do
698dcdb6 12533echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
54276ccf 12534echo "configure:12535: checking for $ac_func" >&5
698dcdb6
VZ
12535if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12536 echo $ac_n "(cached) $ac_c" 1>&6
12537else
12538 cat > conftest.$ac_ext <<EOF
54276ccf 12539#line 12540 "configure"
eb4efbdc
VZ
12540#include "confdefs.h"
12541/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 12542 which can conflict with char $ac_func(); below. */
eb4efbdc
VZ
12543#include <assert.h>
12544/* Override any gcc2 internal prototype to avoid an error. */
12545/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
12546 builtin and then its argument prototype would still apply. */
12547char $ac_func();
12548
12549int main() {
eb4efbdc
VZ
12550
12551/* The GNU C library defines this for functions which it implements
12552 to always fail with ENOSYS. Some functions are actually named
12553 something starting with __ and the normal name is an alias. */
12554#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12555choke me
12556#else
698dcdb6 12557$ac_func();
eb4efbdc
VZ
12558#endif
12559
698dcdb6 12560; return 0; }
eb4efbdc 12561EOF
54276ccf 12562if { (eval echo configure:12563: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
12563 rm -rf conftest*
12564 eval "ac_cv_func_$ac_func=yes"
12565else
12566 echo "configure: failed program was:" >&5
12567 cat conftest.$ac_ext >&5
12568 rm -rf conftest*
12569 eval "ac_cv_func_$ac_func=no"
12570fi
12571rm -f conftest*
12572fi
eb4efbdc 12573
698dcdb6
VZ
12574if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12575 echo "$ac_t""yes" 1>&6
12576 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12577 cat >> confdefs.h <<EOF
12578#define $ac_tr_func 1
12579EOF
12580
12581else
12582 echo "$ac_t""no" 1>&6
eb4efbdc
VZ
12583fi
12584done
12585
698dcdb6 12586
eb4efbdc 12587 if test "$ac_cv_func_sigaction" = "no"; then
698dcdb6 12588 echo "configure: warning: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" 1>&2
eb4efbdc
VZ
12589 wxUSE_ON_FATAL_EXCEPTION=no
12590 fi
f6bcfd97
BP
12591
12592 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
698dcdb6
VZ
12593
12594 ac_ext=C
12595# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1e487827 12596ac_cpp='$CXXCPP $CPPFLAGS'
698dcdb6
VZ
12597ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12598ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12599cross_compiling=$ac_cv_prog_cxx_cross
6232543b 12600
1e487827 12601
698dcdb6 12602 echo $ac_n "checking for sa_handler type""... $ac_c" 1>&6
54276ccf 12603echo "configure:12604: checking for sa_handler type" >&5
698dcdb6
VZ
12604if eval "test \"`echo '$''{'wx_cv_type_sa_handler'+set}'`\" = set"; then
12605 echo $ac_n "(cached) $ac_c" 1>&6
12606else
12607
12608 cat > conftest.$ac_ext <<EOF
54276ccf 12609#line 12610 "configure"
f6bcfd97
BP
12610#include "confdefs.h"
12611#include <signal.h>
698dcdb6 12612int main() {
f6bcfd97
BP
12613
12614 extern void testSigHandler(int);
12615
12616 struct sigaction sa;
12617 sa.sa_handler = testSigHandler;
698dcdb6
VZ
12618
12619; return 0; }
12620EOF
54276ccf 12621if { (eval echo configure:12622: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
12622 rm -rf conftest*
12623
f6bcfd97 12624 wx_cv_type_sa_handler=int
698dcdb6 12625
f6bcfd97 12626else
698dcdb6
VZ
12627 echo "configure: failed program was:" >&5
12628 cat conftest.$ac_ext >&5
12629 rm -rf conftest*
12630
f6bcfd97 12631 wx_cv_type_sa_handler=void
698dcdb6 12632
6232543b 12633fi
698dcdb6
VZ
12634rm -f conftest*
12635
1e487827 12636fi
698dcdb6
VZ
12637
12638echo "$ac_t""$wx_cv_type_sa_handler" 1>&6
f6bcfd97
BP
12639
12640 ac_ext=c
698dcdb6 12641# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
f6bcfd97 12642ac_cpp='$CPP $CPPFLAGS'
698dcdb6
VZ
12643ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12644ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12645cross_compiling=$ac_cv_prog_cc_cross
12646
703e0a69 12647
698dcdb6 12648 cat >> confdefs.h <<EOF
f6bcfd97
BP
12649#define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
12650EOF
12651
12652 fi
eb4efbdc
VZ
12653fi
12654
10f2d63a
VZ
12655for ac_func in vfork
12656do
698dcdb6 12657echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
54276ccf 12658echo "configure:12659: checking for $ac_func" >&5
698dcdb6
VZ
12659if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12660 echo $ac_n "(cached) $ac_c" 1>&6
12661else
12662 cat > conftest.$ac_ext <<EOF
54276ccf 12663#line 12664 "configure"
10f2d63a
VZ
12664#include "confdefs.h"
12665/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 12666 which can conflict with char $ac_func(); below. */
10f2d63a
VZ
12667#include <assert.h>
12668/* Override any gcc2 internal prototype to avoid an error. */
12669/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
12670 builtin and then its argument prototype would still apply. */
12671char $ac_func();
12672
12673int main() {
10f2d63a
VZ
12674
12675/* The GNU C library defines this for functions which it implements
12676 to always fail with ENOSYS. Some functions are actually named
12677 something starting with __ and the normal name is an alias. */
12678#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12679choke me
12680#else
698dcdb6 12681$ac_func();
10f2d63a
VZ
12682#endif
12683
698dcdb6 12684; return 0; }
10f2d63a 12685EOF
54276ccf 12686if { (eval echo configure:12687: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
12687 rm -rf conftest*
12688 eval "ac_cv_func_$ac_func=yes"
12689else
12690 echo "configure: failed program was:" >&5
12691 cat conftest.$ac_ext >&5
12692 rm -rf conftest*
12693 eval "ac_cv_func_$ac_func=no"
12694fi
12695rm -f conftest*
12696fi
270a909e 12697
698dcdb6
VZ
12698if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12699 echo "$ac_t""yes" 1>&6
12700 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12701 cat >> confdefs.h <<EOF
12702#define $ac_tr_func 1
12703EOF
12704
12705else
12706 echo "$ac_t""no" 1>&6
270a909e
VZ
12707fi
12708done
12709
1e487827 12710
698dcdb6
VZ
12711if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
12712 for ac_func in fcntl flock
4f3c5f06 12713do
698dcdb6 12714echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
54276ccf 12715echo "configure:12716: checking for $ac_func" >&5
698dcdb6
VZ
12716if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12717 echo $ac_n "(cached) $ac_c" 1>&6
12718else
12719 cat > conftest.$ac_ext <<EOF
54276ccf 12720#line 12721 "configure"
4f3c5f06
VZ
12721#include "confdefs.h"
12722/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 12723 which can conflict with char $ac_func(); below. */
4f3c5f06
VZ
12724#include <assert.h>
12725/* Override any gcc2 internal prototype to avoid an error. */
12726/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
12727 builtin and then its argument prototype would still apply. */
12728char $ac_func();
12729
12730int main() {
4f3c5f06
VZ
12731
12732/* The GNU C library defines this for functions which it implements
12733 to always fail with ENOSYS. Some functions are actually named
12734 something starting with __ and the normal name is an alias. */
12735#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12736choke me
12737#else
698dcdb6 12738$ac_func();
4f3c5f06
VZ
12739#endif
12740
698dcdb6
VZ
12741; return 0; }
12742EOF
54276ccf 12743if { (eval echo configure:12744: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
12744 rm -rf conftest*
12745 eval "ac_cv_func_$ac_func=yes"
12746else
12747 echo "configure: failed program was:" >&5
12748 cat conftest.$ac_ext >&5
12749 rm -rf conftest*
12750 eval "ac_cv_func_$ac_func=no"
12751fi
12752rm -f conftest*
12753fi
12754
12755if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12756 echo "$ac_t""yes" 1>&6
12757 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12758 cat >> confdefs.h <<EOF
12759#define $ac_tr_func 1
4f3c5f06
VZ
12760EOF
12761 break
698dcdb6
VZ
12762else
12763 echo "$ac_t""no" 1>&6
4f3c5f06
VZ
12764fi
12765done
12766
698dcdb6 12767
4f3c5f06 12768 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
698dcdb6 12769 echo "configure: warning: wxSingleInstanceChecker not available" 1>&2
4f3c5f06
VZ
12770 wxUSE_SNGLINST_CHECKER=no
12771 fi
12772fi
12773
270a909e
VZ
12774for ac_func in timegm
12775do
698dcdb6 12776echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
54276ccf 12777echo "configure:12778: checking for $ac_func" >&5
698dcdb6
VZ
12778if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12779 echo $ac_n "(cached) $ac_c" 1>&6
12780else
12781 cat > conftest.$ac_ext <<EOF
54276ccf 12782#line 12783 "configure"
270a909e
VZ
12783#include "confdefs.h"
12784/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 12785 which can conflict with char $ac_func(); below. */
270a909e
VZ
12786#include <assert.h>
12787/* Override any gcc2 internal prototype to avoid an error. */
12788/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
12789 builtin and then its argument prototype would still apply. */
12790char $ac_func();
12791
12792int main() {
270a909e
VZ
12793
12794/* The GNU C library defines this for functions which it implements
12795 to always fail with ENOSYS. Some functions are actually named
12796 something starting with __ and the normal name is an alias. */
12797#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12798choke me
12799#else
698dcdb6 12800$ac_func();
270a909e
VZ
12801#endif
12802
698dcdb6 12803; return 0; }
270a909e 12804EOF
54276ccf 12805if { (eval echo configure:12806: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
12806 rm -rf conftest*
12807 eval "ac_cv_func_$ac_func=yes"
12808else
12809 echo "configure: failed program was:" >&5
12810 cat conftest.$ac_ext >&5
12811 rm -rf conftest*
12812 eval "ac_cv_func_$ac_func=no"
12813fi
12814rm -f conftest*
12815fi
10f2d63a 12816
698dcdb6
VZ
12817if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12818 echo "$ac_t""yes" 1>&6
12819 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12820 cat >> confdefs.h <<EOF
12821#define $ac_tr_func 1
12822EOF
12823
12824else
12825 echo "$ac_t""no" 1>&6
10f2d63a
VZ
12826fi
12827done
12828
698dcdb6 12829
8fd0d89b
VZ
12830for ac_func in putenv setenv
12831do
698dcdb6 12832echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
54276ccf 12833echo "configure:12834: checking for $ac_func" >&5
698dcdb6
VZ
12834if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12835 echo $ac_n "(cached) $ac_c" 1>&6
12836else
12837 cat > conftest.$ac_ext <<EOF
54276ccf 12838#line 12839 "configure"
8fd0d89b
VZ
12839#include "confdefs.h"
12840/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 12841 which can conflict with char $ac_func(); below. */
8fd0d89b
VZ
12842#include <assert.h>
12843/* Override any gcc2 internal prototype to avoid an error. */
12844/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
12845 builtin and then its argument prototype would still apply. */
12846char $ac_func();
12847
12848int main() {
8fd0d89b
VZ
12849
12850/* The GNU C library defines this for functions which it implements
12851 to always fail with ENOSYS. Some functions are actually named
12852 something starting with __ and the normal name is an alias. */
12853#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12854choke me
12855#else
698dcdb6 12856$ac_func();
8fd0d89b
VZ
12857#endif
12858
698dcdb6
VZ
12859; return 0; }
12860EOF
54276ccf 12861if { (eval echo configure:12862: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
12862 rm -rf conftest*
12863 eval "ac_cv_func_$ac_func=yes"
12864else
12865 echo "configure: failed program was:" >&5
12866 cat conftest.$ac_ext >&5
12867 rm -rf conftest*
12868 eval "ac_cv_func_$ac_func=no"
12869fi
12870rm -f conftest*
12871fi
12872
12873if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12874 echo "$ac_t""yes" 1>&6
12875 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12876 cat >> confdefs.h <<EOF
12877#define $ac_tr_func 1
8fd0d89b
VZ
12878EOF
12879 break
698dcdb6
VZ
12880else
12881 echo "$ac_t""no" 1>&6
8fd0d89b
VZ
12882fi
12883done
12884
698dcdb6 12885
b12915c1
VZ
12886HAVE_SOME_SLEEP_FUNC=0
12887if test "$USE_BEOS" = 1; then
698dcdb6 12888 cat >> confdefs.h <<\EOF
b12915c1
VZ
12889#define HAVE_SLEEP 1
12890EOF
12891
12892 HAVE_SOME_SLEEP_FUNC=1
12893fi
12894
b4085ce6 12895if test "$USE_MAC" = 1; then
698dcdb6 12896 cat >> confdefs.h <<\EOF
b4085ce6
GD
12897#define HAVE_USLEEP 1
12898EOF
12899
12900 HAVE_SOME_SLEEP_FUNC=1
12901fi
12902
b12915c1
VZ
12903if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
12904 POSIX4_LINK=
698dcdb6 12905 for ac_func in nanosleep
10f2d63a 12906do
698dcdb6 12907echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
54276ccf 12908echo "configure:12909: checking for $ac_func" >&5
698dcdb6
VZ
12909if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12910 echo $ac_n "(cached) $ac_c" 1>&6
12911else
12912 cat > conftest.$ac_ext <<EOF
54276ccf 12913#line 12914 "configure"
10f2d63a
VZ
12914#include "confdefs.h"
12915/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 12916 which can conflict with char $ac_func(); below. */
10f2d63a
VZ
12917#include <assert.h>
12918/* Override any gcc2 internal prototype to avoid an error. */
12919/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
12920 builtin and then its argument prototype would still apply. */
12921char $ac_func();
12922
12923int main() {
10f2d63a
VZ
12924
12925/* The GNU C library defines this for functions which it implements
12926 to always fail with ENOSYS. Some functions are actually named
12927 something starting with __ and the normal name is an alias. */
12928#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12929choke me
12930#else
698dcdb6 12931$ac_func();
10f2d63a
VZ
12932#endif
12933
698dcdb6
VZ
12934; return 0; }
12935EOF
54276ccf 12936if { (eval echo configure:12937: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
12937 rm -rf conftest*
12938 eval "ac_cv_func_$ac_func=yes"
12939else
12940 echo "configure: failed program was:" >&5
12941 cat conftest.$ac_ext >&5
12942 rm -rf conftest*
12943 eval "ac_cv_func_$ac_func=no"
12944fi
12945rm -f conftest*
12946fi
12947
12948if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12949 echo "$ac_t""yes" 1>&6
12950 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12951 cat >> confdefs.h <<EOF
12952#define $ac_tr_func 1
12953EOF
12954 cat >> confdefs.h <<\EOF
10f2d63a
VZ
12955#define HAVE_NANOSLEEP 1
12956EOF
12957
12958else
698dcdb6
VZ
12959 echo "$ac_t""no" 1>&6
12960echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
54276ccf 12961echo "configure:12962: checking for nanosleep in -lposix4" >&5
698dcdb6
VZ
12962ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
12963if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12964 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 12965else
698dcdb6 12966 ac_save_LIBS="$LIBS"
10f2d63a 12967LIBS="-lposix4 $LIBS"
698dcdb6 12968cat > conftest.$ac_ext <<EOF
54276ccf 12969#line 12970 "configure"
10f2d63a
VZ
12970#include "confdefs.h"
12971/* Override any gcc2 internal prototype to avoid an error. */
12972/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
12973 builtin and then its argument prototype would still apply. */
12974char nanosleep();
12975
12976int main() {
12977nanosleep()
12978; return 0; }
12979EOF
54276ccf 12980if { (eval echo configure:12981: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
12981 rm -rf conftest*
12982 eval "ac_cv_lib_$ac_lib_var=yes"
12983else
12984 echo "configure: failed program was:" >&5
12985 cat conftest.$ac_ext >&5
12986 rm -rf conftest*
12987 eval "ac_cv_lib_$ac_lib_var=no"
12988fi
12989rm -f conftest*
12990LIBS="$ac_save_LIBS"
12991
12992fi
12993if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12994 echo "$ac_t""yes" 1>&6
12995
12996 cat >> confdefs.h <<\EOF
10f2d63a
VZ
12997#define HAVE_NANOSLEEP 1
12998EOF
12999
b12915c1 13000 POSIX4_LINK="-lposix4"
698dcdb6 13001
10f2d63a 13002else
698dcdb6 13003 echo "$ac_t""no" 1>&6
10f2d63a 13004
698dcdb6 13005 for ac_func in usleep
10f2d63a 13006do
698dcdb6 13007echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
54276ccf 13008echo "configure:13009: checking for $ac_func" >&5
698dcdb6
VZ
13009if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13010 echo $ac_n "(cached) $ac_c" 1>&6
13011else
13012 cat > conftest.$ac_ext <<EOF
54276ccf 13013#line 13014 "configure"
10f2d63a
VZ
13014#include "confdefs.h"
13015/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 13016 which can conflict with char $ac_func(); below. */
10f2d63a
VZ
13017#include <assert.h>
13018/* Override any gcc2 internal prototype to avoid an error. */
13019/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
13020 builtin and then its argument prototype would still apply. */
13021char $ac_func();
13022
13023int main() {
10f2d63a
VZ
13024
13025/* The GNU C library defines this for functions which it implements
13026 to always fail with ENOSYS. Some functions are actually named
13027 something starting with __ and the normal name is an alias. */
13028#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13029choke me
13030#else
698dcdb6 13031$ac_func();
10f2d63a
VZ
13032#endif
13033
698dcdb6
VZ
13034; return 0; }
13035EOF
54276ccf 13036if { (eval echo configure:13037: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
13037 rm -rf conftest*
13038 eval "ac_cv_func_$ac_func=yes"
13039else
13040 echo "configure: failed program was:" >&5
13041 cat conftest.$ac_ext >&5
13042 rm -rf conftest*
13043 eval "ac_cv_func_$ac_func=no"
13044fi
13045rm -f conftest*
13046fi
13047
13048if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13049 echo "$ac_t""yes" 1>&6
13050 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13051 cat >> confdefs.h <<EOF
13052#define $ac_tr_func 1
13053EOF
13054 cat >> confdefs.h <<\EOF
b4085ce6
GD
13055#define HAVE_USLEEP 1
13056EOF
13057
10f2d63a 13058else
698dcdb6
VZ
13059 echo "$ac_t""no" 1>&6
13060echo "configure: warning: wxSleep() function will not work" 1>&2
13061
10f2d63a
VZ
13062fi
13063done
13064
698dcdb6
VZ
13065
13066
10f2d63a
VZ
13067fi
13068
698dcdb6
VZ
13069
13070
10f2d63a
VZ
13071fi
13072done
13073
b12915c1 13074fi
10f2d63a
VZ
13075
13076for ac_func in uname gethostname
13077do
698dcdb6 13078echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
54276ccf 13079echo "configure:13080: checking for $ac_func" >&5
698dcdb6
VZ
13080if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13081 echo $ac_n "(cached) $ac_c" 1>&6
13082else
13083 cat > conftest.$ac_ext <<EOF
54276ccf 13084#line 13085 "configure"
10f2d63a
VZ
13085#include "confdefs.h"
13086/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 13087 which can conflict with char $ac_func(); below. */
10f2d63a
VZ
13088#include <assert.h>
13089/* Override any gcc2 internal prototype to avoid an error. */
13090/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
13091 builtin and then its argument prototype would still apply. */
13092char $ac_func();
13093
13094int main() {
10f2d63a
VZ
13095
13096/* The GNU C library defines this for functions which it implements
13097 to always fail with ENOSYS. Some functions are actually named
13098 something starting with __ and the normal name is an alias. */
13099#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13100choke me
13101#else
698dcdb6 13102$ac_func();
10f2d63a
VZ
13103#endif
13104
698dcdb6
VZ
13105; return 0; }
13106EOF
54276ccf 13107if { (eval echo configure:13108: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
13108 rm -rf conftest*
13109 eval "ac_cv_func_$ac_func=yes"
13110else
13111 echo "configure: failed program was:" >&5
13112 cat conftest.$ac_ext >&5
13113 rm -rf conftest*
13114 eval "ac_cv_func_$ac_func=no"
13115fi
13116rm -f conftest*
13117fi
13118
13119if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13120 echo "$ac_t""yes" 1>&6
13121 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13122 cat >> confdefs.h <<EOF
13123#define $ac_tr_func 1
10f2d63a
VZ
13124EOF
13125 break
698dcdb6
VZ
13126else
13127 echo "$ac_t""no" 1>&6
10f2d63a
VZ
13128fi
13129done
13130
698dcdb6
VZ
13131
13132
13133ac_ext=C
13134# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6098c7f9 13135ac_cpp='$CXXCPP $CPPFLAGS'
698dcdb6
VZ
13136ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13137ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13138cross_compiling=$ac_cv_prog_cxx_cross
13139
6098c7f9 13140
10f2d63a
VZ
13141for ac_func in strtok_r
13142do
698dcdb6 13143echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
54276ccf 13144echo "configure:13145: checking for $ac_func" >&5
698dcdb6
VZ
13145if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13146 echo $ac_n "(cached) $ac_c" 1>&6
13147else
13148 cat > conftest.$ac_ext <<EOF
54276ccf 13149#line 13150 "configure"
10f2d63a
VZ
13150#include "confdefs.h"
13151/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 13152 which can conflict with char $ac_func(); below. */
10f2d63a
VZ
13153#include <assert.h>
13154/* Override any gcc2 internal prototype to avoid an error. */
6098c7f9
VZ
13155#ifdef __cplusplus
13156extern "C"
13157#endif
10f2d63a 13158/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
13159 builtin and then its argument prototype would still apply. */
13160char $ac_func();
13161
13162int main() {
10f2d63a
VZ
13163
13164/* The GNU C library defines this for functions which it implements
13165 to always fail with ENOSYS. Some functions are actually named
13166 something starting with __ and the normal name is an alias. */
13167#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13168choke me
13169#else
698dcdb6 13170$ac_func();
10f2d63a
VZ
13171#endif
13172
698dcdb6 13173; return 0; }
10f2d63a 13174EOF
54276ccf 13175if { (eval echo configure:13176: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
13176 rm -rf conftest*
13177 eval "ac_cv_func_$ac_func=yes"
13178else
13179 echo "configure: failed program was:" >&5
13180 cat conftest.$ac_ext >&5
13181 rm -rf conftest*
13182 eval "ac_cv_func_$ac_func=no"
13183fi
13184rm -f conftest*
13185fi
10f2d63a 13186
698dcdb6
VZ
13187if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13188 echo "$ac_t""yes" 1>&6
13189 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13190 cat >> confdefs.h <<EOF
13191#define $ac_tr_func 1
13192EOF
13193
13194else
13195 echo "$ac_t""no" 1>&6
10f2d63a
VZ
13196fi
13197done
13198
698dcdb6 13199
6098c7f9 13200ac_ext=c
698dcdb6 13201# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6098c7f9 13202ac_cpp='$CPP $CPPFLAGS'
698dcdb6
VZ
13203ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13204ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13205cross_compiling=$ac_cv_prog_cc_cross
6232543b 13206
1e487827 13207
698dcdb6 13208INET_LINK=
10f2d63a
VZ
13209for ac_func in inet_addr
13210do
698dcdb6 13211echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
54276ccf 13212echo "configure:13213: checking for $ac_func" >&5
698dcdb6
VZ
13213if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13214 echo $ac_n "(cached) $ac_c" 1>&6
13215else
13216 cat > conftest.$ac_ext <<EOF
54276ccf 13217#line 13218 "configure"
10f2d63a
VZ
13218#include "confdefs.h"
13219/* System header to define __stub macros and hopefully few prototypes,
698dcdb6
VZ
13220 which can conflict with char $ac_func(); below. */
13221#include <assert.h>
13222/* Override any gcc2 internal prototype to avoid an error. */
10f2d63a 13223/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
13224 builtin and then its argument prototype would still apply. */
13225char $ac_func();
13226
13227int main() {
10f2d63a
VZ
13228
13229/* The GNU C library defines this for functions which it implements
13230 to always fail with ENOSYS. Some functions are actually named
1e487827
VS
13231 something starting with __ and the normal name is an alias. */
13232#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13233choke me
13234#else
698dcdb6 13235$ac_func();
1e487827 13236#endif
703e0a69 13237
698dcdb6
VZ
13238; return 0; }
13239EOF
54276ccf 13240if { (eval echo configure:13241: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
13241 rm -rf conftest*
13242 eval "ac_cv_func_$ac_func=yes"
13243else
13244 echo "configure: failed program was:" >&5
13245 cat conftest.$ac_ext >&5
13246 rm -rf conftest*
13247 eval "ac_cv_func_$ac_func=no"
13248fi
13249rm -f conftest*
13250fi
13251
13252if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13253 echo "$ac_t""yes" 1>&6
13254 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13255 cat >> confdefs.h <<EOF
13256#define $ac_tr_func 1
13257EOF
13258 cat >> confdefs.h <<\EOF
c63c7106
VZ
13259#define HAVE_INET_ADDR 1
13260EOF
13261
10f2d63a 13262else
698dcdb6
VZ
13263 echo "$ac_t""no" 1>&6
13264echo $ac_n "checking for inet_addr in -lnsl""... $ac_c" 1>&6
54276ccf 13265echo "configure:13266: checking for inet_addr in -lnsl" >&5
698dcdb6
VZ
13266ac_lib_var=`echo nsl'_'inet_addr | sed 'y%./+-%__p_%'`
13267if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13268 echo $ac_n "(cached) $ac_c" 1>&6
c63c7106 13269else
698dcdb6 13270 ac_save_LIBS="$LIBS"
c63c7106 13271LIBS="-lnsl $LIBS"
698dcdb6 13272cat > conftest.$ac_ext <<EOF
54276ccf 13273#line 13274 "configure"
c63c7106
VZ
13274#include "confdefs.h"
13275/* Override any gcc2 internal prototype to avoid an error. */
13276/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
13277 builtin and then its argument prototype would still apply. */
13278char inet_addr();
13279
13280int main() {
13281inet_addr()
13282; return 0; }
13283EOF
54276ccf 13284if { (eval echo configure:13285: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
13285 rm -rf conftest*
13286 eval "ac_cv_lib_$ac_lib_var=yes"
13287else
13288 echo "configure: failed program was:" >&5
13289 cat conftest.$ac_ext >&5
13290 rm -rf conftest*
13291 eval "ac_cv_lib_$ac_lib_var=no"
13292fi
13293rm -f conftest*
13294LIBS="$ac_save_LIBS"
13295
13296fi
13297if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13298 echo "$ac_t""yes" 1>&6
c63c7106
VZ
13299 INET_LINK="nsl"
13300else
698dcdb6
VZ
13301 echo "$ac_t""no" 1>&6
13302echo $ac_n "checking for inet_addr in -lresolv""... $ac_c" 1>&6
54276ccf 13303echo "configure:13304: checking for inet_addr in -lresolv" >&5
698dcdb6
VZ
13304ac_lib_var=`echo resolv'_'inet_addr | sed 'y%./+-%__p_%'`
13305if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13306 echo $ac_n "(cached) $ac_c" 1>&6
c63c7106 13307else
698dcdb6 13308 ac_save_LIBS="$LIBS"
c63c7106 13309LIBS="-lresolv $LIBS"
698dcdb6 13310cat > conftest.$ac_ext <<EOF
54276ccf 13311#line 13312 "configure"
c63c7106
VZ
13312#include "confdefs.h"
13313/* Override any gcc2 internal prototype to avoid an error. */
13314/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
13315 builtin and then its argument prototype would still apply. */
13316char inet_addr();
13317
13318int main() {
13319inet_addr()
13320; return 0; }
13321EOF
54276ccf 13322if { (eval echo configure:13323: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
13323 rm -rf conftest*
13324 eval "ac_cv_lib_$ac_lib_var=yes"
13325else
13326 echo "configure: failed program was:" >&5
13327 cat conftest.$ac_ext >&5
13328 rm -rf conftest*
13329 eval "ac_cv_lib_$ac_lib_var=no"
13330fi
13331rm -f conftest*
13332LIBS="$ac_save_LIBS"
c63c7106 13333
6232543b 13334fi
698dcdb6
VZ
13335if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13336 echo "$ac_t""yes" 1>&6
13337 INET_LINK="resolv"
13338
13339else
13340 echo "$ac_t""no" 1>&6
13341fi
c63c7106 13342
698dcdb6 13343
1e487827 13344fi
703e0a69 13345
698dcdb6
VZ
13346
13347
10f2d63a
VZ
13348fi
13349done
13350
698dcdb6 13351
10f2d63a
VZ
13352for ac_func in inet_aton
13353do
698dcdb6 13354echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
54276ccf 13355echo "configure:13356: checking for $ac_func" >&5
698dcdb6
VZ
13356if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13357 echo $ac_n "(cached) $ac_c" 1>&6
13358else
13359 cat > conftest.$ac_ext <<EOF
54276ccf 13360#line 13361 "configure"
10f2d63a
VZ
13361#include "confdefs.h"
13362/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 13363 which can conflict with char $ac_func(); below. */
10f2d63a
VZ
13364#include <assert.h>
13365/* Override any gcc2 internal prototype to avoid an error. */
13366/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
13367 builtin and then its argument prototype would still apply. */
13368char $ac_func();
13369
13370int main() {
10f2d63a
VZ
13371
13372/* The GNU C library defines this for functions which it implements
13373 to always fail with ENOSYS. Some functions are actually named
13374 something starting with __ and the normal name is an alias. */
13375#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13376choke me
13377#else
698dcdb6 13378$ac_func();
10f2d63a
VZ
13379#endif
13380
698dcdb6
VZ
13381; return 0; }
13382EOF
54276ccf 13383if { (eval echo configure:13384: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
13384 rm -rf conftest*
13385 eval "ac_cv_func_$ac_func=yes"
13386else
13387 echo "configure: failed program was:" >&5
13388 cat conftest.$ac_ext >&5
13389 rm -rf conftest*
13390 eval "ac_cv_func_$ac_func=no"
13391fi
13392rm -f conftest*
13393fi
13394
13395if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13396 echo "$ac_t""yes" 1>&6
13397 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13398 cat >> confdefs.h <<EOF
13399#define $ac_tr_func 1
13400EOF
13401 cat >> confdefs.h <<\EOF
c63c7106
VZ
13402#define HAVE_INET_ATON 1
13403EOF
13404
10f2d63a 13405else
698dcdb6
VZ
13406 echo "$ac_t""no" 1>&6
13407 echo $ac_n "checking for inet_aton in -l$INET_LINK""... $ac_c" 1>&6
54276ccf 13408echo "configure:13409: checking for inet_aton in -l$INET_LINK" >&5
698dcdb6
VZ
13409ac_lib_var=`echo $INET_LINK'_'inet_aton | sed 'y%./+-%__p_%'`
13410if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13411 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 13412else
698dcdb6 13413 ac_save_LIBS="$LIBS"
c63c7106 13414LIBS="-l$INET_LINK $LIBS"
698dcdb6 13415cat > conftest.$ac_ext <<EOF
54276ccf 13416#line 13417 "configure"
10f2d63a
VZ
13417#include "confdefs.h"
13418/* Override any gcc2 internal prototype to avoid an error. */
13419/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
13420 builtin and then its argument prototype would still apply. */
13421char inet_aton();
13422
13423int main() {
13424inet_aton()
13425; return 0; }
13426EOF
54276ccf 13427if { (eval echo configure:13428: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
13428 rm -rf conftest*
13429 eval "ac_cv_lib_$ac_lib_var=yes"
13430else
13431 echo "configure: failed program was:" >&5
13432 cat conftest.$ac_ext >&5
13433 rm -rf conftest*
13434 eval "ac_cv_lib_$ac_lib_var=no"
13435fi
13436rm -f conftest*
13437LIBS="$ac_save_LIBS"
13438
13439fi
13440if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13441 echo "$ac_t""yes" 1>&6
13442 cat >> confdefs.h <<\EOF
c63c7106 13443#define HAVE_INET_ATON 1
10f2d63a
VZ
13444EOF
13445
698dcdb6
VZ
13446else
13447 echo "$ac_t""no" 1>&6
10f2d63a
VZ
13448fi
13449
698dcdb6 13450
c63c7106
VZ
13451fi
13452done
13453
698dcdb6 13454
c63c7106 13455if test "x$INET_LINK" != "x"; then
698dcdb6 13456 cat >> confdefs.h <<\EOF
c63c7106
VZ
13457#define HAVE_INET_ADDR 1
13458EOF
13459
13460 INET_LINK="-l$INET_LINK"
13461fi
10f2d63a
VZ
13462
13463fi
13464
698dcdb6
VZ
13465
13466cat > confcache <<\EOF
10f2d63a
VZ
13467# This file is a shell script that caches the results of configure
13468# tests run on this system so they can be shared between configure
698dcdb6
VZ
13469# scripts and configure runs. It is not useful on other systems.
13470# If it contains results you don't want to keep, you may remove or edit it.
10f2d63a 13471#
698dcdb6
VZ
13472# By default, configure uses ./config.cache as the cache file,
13473# creating it if it does not exist already. You can give configure
13474# the --cache-file=FILE option to use a different cache file; that is
13475# what configure does when it calls configure scripts in
13476# subdirectories, so they share the cache.
13477# Giving --cache-file=/dev/null disables caching, for debugging configure.
13478# config.status only pays attention to the cache file if you give it the
13479# --recheck option to rerun configure.
10f2d63a 13480#
698dcdb6 13481EOF
10f2d63a
VZ
13482# The following way of writing the cache mishandles newlines in values,
13483# but we know of no workaround that is simple, portable, and efficient.
13484# So, don't put newlines in cache variables' values.
13485# Ultrix sh set writes to stderr and can't be redirected directly,
13486# and sets the high bit in the cache file unless we assign to the vars.
698dcdb6
VZ
13487(set) 2>&1 |
13488 case `(ac_space=' '; set | grep ac_space) 2>&1` in
13489 *ac_space=\ *)
13490 # `set' does not quote correctly, so add quotes (double-quote substitution
13491 # turns \\\\ into \\, and sed turns \\ into \).
13492 sed -n \
13493 -e "s/'/'\\\\''/g" \
13494 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
13495 ;;
13496 *)
13497 # `set' quotes correctly as required by POSIX, so do not add quotes.
13498 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
13499 ;;
13500 esac >> confcache
13501if cmp -s $cache_file confcache; then
13502 :
13503else
10f2d63a 13504 if test -w $cache_file; then
698dcdb6
VZ
13505 echo "updating cache $cache_file"
13506 cat confcache > $cache_file
10f2d63a
VZ
13507 else
13508 echo "not updating unwritable cache $cache_file"
13509 fi
13510fi
13511rm -f confcache
13512
698dcdb6
VZ
13513
13514
b089607b 13515if test "$TOOLKIT" != "MSW"; then
10f2d63a 13516
698dcdb6 13517
10f2d63a
VZ
13518THREADS_LINK=""
13519THREADS_OBJ=""
13520
13521if test "$wxUSE_THREADS" = "yes" ; then
13522 if test "$wxUSE_WINE" = 1 ; then
698dcdb6 13523 echo "configure: warning: Threads are not supported under WINE" 1>&2
10f2d63a 13524 wxUSE_THREADS="no"
b12915c1 13525 elif test "$USE_BEOS" = 1; then
698dcdb6 13526 echo "configure: warning: BeOS threads are not yet supported" 1>&2
b12915c1 13527 wxUSE_THREADS="no"
10f2d63a
VZ
13528 fi
13529fi
13530
13531if test "$wxUSE_THREADS" = "yes" ; then
698dcdb6 13532
186837b0 13533 if test "$USE_AIX" = 1; then
f6bcfd97
BP
13534 THREADS_LIB=pthreads
13535 else
13536 THREADS_LIB=pthread
13537 fi
13538
698dcdb6 13539 echo $ac_n "checking for pthread_create in -l$THREADS_LIB""... $ac_c" 1>&6
54276ccf 13540echo "configure:13541: checking for pthread_create in -l$THREADS_LIB" >&5
698dcdb6
VZ
13541ac_lib_var=`echo $THREADS_LIB'_'pthread_create | sed 'y%./+-%__p_%'`
13542if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13543 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 13544else
698dcdb6 13545 ac_save_LIBS="$LIBS"
f6bcfd97 13546LIBS="-l$THREADS_LIB $LIBS"
698dcdb6 13547cat > conftest.$ac_ext <<EOF
54276ccf 13548#line 13549 "configure"
10f2d63a
VZ
13549#include "confdefs.h"
13550/* Override any gcc2 internal prototype to avoid an error. */
13551/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
13552 builtin and then its argument prototype would still apply. */
13553char pthread_create();
13554
13555int main() {
13556pthread_create()
13557; return 0; }
13558EOF
54276ccf 13559if { (eval echo configure:13560: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
13560 rm -rf conftest*
13561 eval "ac_cv_lib_$ac_lib_var=yes"
13562else
13563 echo "configure: failed program was:" >&5
13564 cat conftest.$ac_ext >&5
13565 rm -rf conftest*
13566 eval "ac_cv_lib_$ac_lib_var=no"
13567fi
13568rm -f conftest*
13569LIBS="$ac_save_LIBS"
10f2d63a 13570
698dcdb6
VZ
13571fi
13572if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13573 echo "$ac_t""yes" 1>&6
13574
10f2d63a 13575 THREADS_OBJ="threadpsx.lo"
f6bcfd97 13576 THREADS_LINK=$THREADS_LIB
698dcdb6 13577
10f2d63a 13578else
698dcdb6 13579 echo "$ac_t""no" 1>&6
10f2d63a 13580
698dcdb6 13581 echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6
54276ccf 13582echo "configure:13583: checking for pthread_create in -lc_r" >&5
698dcdb6
VZ
13583ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'`
13584if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13585 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 13586else
698dcdb6 13587 ac_save_LIBS="$LIBS"
10f2d63a 13588LIBS="-lc_r $LIBS"
698dcdb6 13589cat > conftest.$ac_ext <<EOF
54276ccf 13590#line 13591 "configure"
10f2d63a
VZ
13591#include "confdefs.h"
13592/* Override any gcc2 internal prototype to avoid an error. */
13593/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
13594 builtin and then its argument prototype would still apply. */
13595char pthread_create();
13596
13597int main() {
13598pthread_create()
13599; return 0; }
13600EOF
54276ccf 13601if { (eval echo configure:13602: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
13602 rm -rf conftest*
13603 eval "ac_cv_lib_$ac_lib_var=yes"
13604else
13605 echo "configure: failed program was:" >&5
13606 cat conftest.$ac_ext >&5
13607 rm -rf conftest*
13608 eval "ac_cv_lib_$ac_lib_var=no"
13609fi
13610rm -f conftest*
13611LIBS="$ac_save_LIBS"
10f2d63a 13612
698dcdb6
VZ
13613fi
13614if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13615 echo "$ac_t""yes" 1>&6
13616
10f2d63a
VZ
13617 THREADS_OBJ="threadpsx.lo"
13618 THREADS_LINK="c_r"
698dcdb6 13619
10f2d63a 13620else
698dcdb6 13621 echo "$ac_t""no" 1>&6
10f2d63a 13622
698dcdb6
VZ
13623 ac_safe=`echo "sys/prctl.h" | sed 'y%./+-%__p_%'`
13624echo $ac_n "checking for sys/prctl.h""... $ac_c" 1>&6
54276ccf 13625echo "configure:13626: checking for sys/prctl.h" >&5
698dcdb6
VZ
13626if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13627 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 13628else
698dcdb6 13629 cat > conftest.$ac_ext <<EOF
54276ccf 13630#line 13631 "configure"
10f2d63a
VZ
13631#include "confdefs.h"
13632#include <sys/prctl.h>
698dcdb6
VZ
13633EOF
13634ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
54276ccf 13635{ (eval echo configure:13636: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
13636ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13637if test -z "$ac_err"; then
13638 rm -rf conftest*
13639 eval "ac_cv_header_$ac_safe=yes"
1e487827 13640else
698dcdb6
VZ
13641 echo "$ac_err" >&5
13642 echo "configure: failed program was:" >&5
10f2d63a 13643 cat conftest.$ac_ext >&5
698dcdb6
VZ
13644 rm -rf conftest*
13645 eval "ac_cv_header_$ac_safe=no"
10f2d63a 13646fi
698dcdb6 13647rm -f conftest*
10f2d63a 13648fi
698dcdb6
VZ
13649if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13650 echo "$ac_t""yes" 1>&6
13651
1f8ae82f 13652 THREADS_OBJ="threadsgi.lo"
698dcdb6
VZ
13653
13654else
13655 echo "$ac_t""no" 1>&6
10f2d63a
VZ
13656fi
13657
698dcdb6 13658
6232543b 13659fi
10f2d63a 13660
698dcdb6 13661
1e487827 13662fi
703e0a69 13663
698dcdb6 13664
10f2d63a
VZ
13665 if test -z "$THREADS_OBJ" ; then
13666 wxUSE_THREADS=no
698dcdb6 13667 echo "configure: warning: No thread support on this system" 1>&2
10f2d63a
VZ
13668 fi
13669fi
13670
13671if test "$wxUSE_THREADS" = "yes" ; then
698dcdb6 13672 for ac_func in thr_setconcurrency
70846f0a 13673do
698dcdb6 13674echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
54276ccf 13675echo "configure:13676: checking for $ac_func" >&5
698dcdb6
VZ
13676if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13677 echo $ac_n "(cached) $ac_c" 1>&6
13678else
13679 cat > conftest.$ac_ext <<EOF
54276ccf 13680#line 13681 "configure"
70846f0a
VZ
13681#include "confdefs.h"
13682/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 13683 which can conflict with char $ac_func(); below. */
70846f0a
VZ
13684#include <assert.h>
13685/* Override any gcc2 internal prototype to avoid an error. */
13686/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
13687 builtin and then its argument prototype would still apply. */
13688char $ac_func();
13689
13690int main() {
70846f0a
VZ
13691
13692/* The GNU C library defines this for functions which it implements
13693 to always fail with ENOSYS. Some functions are actually named
13694 something starting with __ and the normal name is an alias. */
13695#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13696choke me
13697#else
698dcdb6 13698$ac_func();
70846f0a
VZ
13699#endif
13700
698dcdb6 13701; return 0; }
70846f0a 13702EOF
54276ccf 13703if { (eval echo configure:13704: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
13704 rm -rf conftest*
13705 eval "ac_cv_func_$ac_func=yes"
13706else
13707 echo "configure: failed program was:" >&5
13708 cat conftest.$ac_ext >&5
13709 rm -rf conftest*
13710 eval "ac_cv_func_$ac_func=no"
13711fi
13712rm -f conftest*
13713fi
70846f0a 13714
698dcdb6
VZ
13715if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13716 echo "$ac_t""yes" 1>&6
13717 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13718 cat >> confdefs.h <<EOF
13719#define $ac_tr_func 1
13720EOF
13721
13722else
13723 echo "$ac_t""no" 1>&6
70846f0a
VZ
13724fi
13725done
13726
698dcdb6
VZ
13727
13728
13729 for ac_hdr in sched.h
10f2d63a 13730do
698dcdb6
VZ
13731ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13732echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
54276ccf 13733echo "configure:13734: checking for $ac_hdr" >&5
698dcdb6
VZ
13734if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13735 echo $ac_n "(cached) $ac_c" 1>&6
13736else
13737 cat > conftest.$ac_ext <<EOF
54276ccf 13738#line 13739 "configure"
10f2d63a 13739#include "confdefs.h"
698dcdb6
VZ
13740#include <$ac_hdr>
13741EOF
13742ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
54276ccf 13743{ (eval echo configure:13744: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
13744ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13745if test -z "$ac_err"; then
13746 rm -rf conftest*
13747 eval "ac_cv_header_$ac_safe=yes"
1e487827 13748else
698dcdb6
VZ
13749 echo "$ac_err" >&5
13750 echo "configure: failed program was:" >&5
10f2d63a 13751 cat conftest.$ac_ext >&5
698dcdb6
VZ
13752 rm -rf conftest*
13753 eval "ac_cv_header_$ac_safe=no"
10f2d63a 13754fi
698dcdb6 13755rm -f conftest*
10f2d63a 13756fi
698dcdb6
VZ
13757if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13758 echo "$ac_t""yes" 1>&6
13759 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13760 cat >> confdefs.h <<EOF
13761#define $ac_tr_hdr 1
10f2d63a 13762EOF
698dcdb6
VZ
13763
13764else
13765 echo "$ac_t""no" 1>&6
10f2d63a
VZ
13766fi
13767done
13768
698dcdb6
VZ
13769
13770 echo $ac_n "checking for sched_yield in -l$THREADS_LINK""... $ac_c" 1>&6
54276ccf 13771echo "configure:13772: checking for sched_yield in -l$THREADS_LINK" >&5
698dcdb6
VZ
13772ac_lib_var=`echo $THREADS_LINK'_'sched_yield | sed 'y%./+-%__p_%'`
13773if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13774 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 13775else
698dcdb6 13776 ac_save_LIBS="$LIBS"
10f2d63a 13777LIBS="-l$THREADS_LINK $LIBS"
698dcdb6 13778cat > conftest.$ac_ext <<EOF
54276ccf 13779#line 13780 "configure"
10f2d63a
VZ
13780#include "confdefs.h"
13781/* Override any gcc2 internal prototype to avoid an error. */
13782/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
13783 builtin and then its argument prototype would still apply. */
13784char sched_yield();
13785
13786int main() {
13787sched_yield()
13788; return 0; }
13789EOF
54276ccf 13790if { (eval echo configure:13791: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
13791 rm -rf conftest*
13792 eval "ac_cv_lib_$ac_lib_var=yes"
13793else
13794 echo "configure: failed program was:" >&5
13795 cat conftest.$ac_ext >&5
13796 rm -rf conftest*
13797 eval "ac_cv_lib_$ac_lib_var=no"
13798fi
13799rm -f conftest*
13800LIBS="$ac_save_LIBS"
13801
13802fi
13803if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13804 echo "$ac_t""yes" 1>&6
13805 cat >> confdefs.h <<\EOF
10f2d63a
VZ
13806#define HAVE_SCHED_YIELD 1
13807EOF
13808
13809else
698dcdb6
VZ
13810 echo "$ac_t""no" 1>&6
13811echo $ac_n "checking for sched_yield in -lposix4""... $ac_c" 1>&6
54276ccf 13812echo "configure:13813: checking for sched_yield in -lposix4" >&5
698dcdb6
VZ
13813ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'`
13814if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13815 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 13816else
698dcdb6 13817 ac_save_LIBS="$LIBS"
1e487827 13818LIBS="-lposix4 $LIBS"
698dcdb6 13819cat > conftest.$ac_ext <<EOF
54276ccf 13820#line 13821 "configure"
10f2d63a
VZ
13821#include "confdefs.h"
13822/* Override any gcc2 internal prototype to avoid an error. */
13823/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
13824 builtin and then its argument prototype would still apply. */
13825char sched_yield();
13826
13827int main() {
13828sched_yield()
13829; return 0; }
13830EOF
54276ccf 13831if { (eval echo configure:13832: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
13832 rm -rf conftest*
13833 eval "ac_cv_lib_$ac_lib_var=yes"
13834else
13835 echo "configure: failed program was:" >&5
13836 cat conftest.$ac_ext >&5
13837 rm -rf conftest*
13838 eval "ac_cv_lib_$ac_lib_var=no"
13839fi
13840rm -f conftest*
13841LIBS="$ac_save_LIBS"
13842
13843fi
13844if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13845 echo "$ac_t""yes" 1>&6
13846 cat >> confdefs.h <<\EOF
10f2d63a
VZ
13847#define HAVE_SCHED_YIELD 1
13848EOF
13849 POSIX4_LINK="-lposix4"
13850else
698dcdb6
VZ
13851 echo "$ac_t""no" 1>&6
13852echo "configure: warning: wxThread::Yield will not work properly" 1>&2
13853
6232543b 13854fi
10f2d63a 13855
698dcdb6 13856
1e487827 13857fi
703e0a69 13858
698dcdb6 13859
f6bcfd97 13860 HAVE_PRIOR_FUNCS=0
698dcdb6 13861 echo $ac_n "checking for pthread_attr_getschedpolicy in -l$THREADS_LINK""... $ac_c" 1>&6
54276ccf 13862echo "configure:13863: checking for pthread_attr_getschedpolicy in -l$THREADS_LINK" >&5
698dcdb6
VZ
13863ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_getschedpolicy | sed 'y%./+-%__p_%'`
13864if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13865 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 13866else
698dcdb6 13867 ac_save_LIBS="$LIBS"
10f2d63a 13868LIBS="-l$THREADS_LINK $LIBS"
698dcdb6 13869cat > conftest.$ac_ext <<EOF
54276ccf 13870#line 13871 "configure"
10f2d63a
VZ
13871#include "confdefs.h"
13872/* Override any gcc2 internal prototype to avoid an error. */
13873/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
13874 builtin and then its argument prototype would still apply. */
13875char pthread_attr_getschedpolicy();
13876
13877int main() {
13878pthread_attr_getschedpolicy()
13879; return 0; }
13880EOF
54276ccf 13881if { (eval echo configure:13882: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
13882 rm -rf conftest*
13883 eval "ac_cv_lib_$ac_lib_var=yes"
13884else
13885 echo "configure: failed program was:" >&5
13886 cat conftest.$ac_ext >&5
13887 rm -rf conftest*
13888 eval "ac_cv_lib_$ac_lib_var=no"
13889fi
13890rm -f conftest*
13891LIBS="$ac_save_LIBS"
13892
13893fi
13894if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13895 echo "$ac_t""yes" 1>&6
13896 echo $ac_n "checking for pthread_attr_setschedparam in -l$THREADS_LINK""... $ac_c" 1>&6
54276ccf 13897echo "configure:13898: checking for pthread_attr_setschedparam in -l$THREADS_LINK" >&5
698dcdb6
VZ
13898ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_setschedparam | sed 'y%./+-%__p_%'`
13899if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13900 echo $ac_n "(cached) $ac_c" 1>&6
13901else
13902 ac_save_LIBS="$LIBS"
f6bcfd97 13903LIBS="-l$THREADS_LINK $LIBS"
698dcdb6 13904cat > conftest.$ac_ext <<EOF
54276ccf 13905#line 13906 "configure"
f6bcfd97
BP
13906#include "confdefs.h"
13907/* Override any gcc2 internal prototype to avoid an error. */
13908/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
13909 builtin and then its argument prototype would still apply. */
13910char pthread_attr_setschedparam();
13911
13912int main() {
13913pthread_attr_setschedparam()
13914; return 0; }
13915EOF
54276ccf 13916if { (eval echo configure:13917: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
13917 rm -rf conftest*
13918 eval "ac_cv_lib_$ac_lib_var=yes"
13919else
13920 echo "configure: failed program was:" >&5
13921 cat conftest.$ac_ext >&5
13922 rm -rf conftest*
13923 eval "ac_cv_lib_$ac_lib_var=no"
13924fi
13925rm -f conftest*
13926LIBS="$ac_save_LIBS"
13927
13928fi
13929if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13930 echo "$ac_t""yes" 1>&6
13931 echo $ac_n "checking for sched_get_priority_max in -l$THREADS_LINK""... $ac_c" 1>&6
54276ccf 13932echo "configure:13933: checking for sched_get_priority_max in -l$THREADS_LINK" >&5
698dcdb6
VZ
13933ac_lib_var=`echo $THREADS_LINK'_'sched_get_priority_max | sed 'y%./+-%__p_%'`
13934if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13935 echo $ac_n "(cached) $ac_c" 1>&6
13936else
13937 ac_save_LIBS="$LIBS"
f6bcfd97 13938LIBS="-l$THREADS_LINK $LIBS"
698dcdb6 13939cat > conftest.$ac_ext <<EOF
54276ccf 13940#line 13941 "configure"
f6bcfd97
BP
13941#include "confdefs.h"
13942/* Override any gcc2 internal prototype to avoid an error. */
13943/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
13944 builtin and then its argument prototype would still apply. */
13945char sched_get_priority_max();
13946
13947int main() {
13948sched_get_priority_max()
13949; return 0; }
13950EOF
54276ccf 13951if { (eval echo configure:13952: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
13952 rm -rf conftest*
13953 eval "ac_cv_lib_$ac_lib_var=yes"
13954else
13955 echo "configure: failed program was:" >&5
13956 cat conftest.$ac_ext >&5
13957 rm -rf conftest*
13958 eval "ac_cv_lib_$ac_lib_var=no"
13959fi
13960rm -f conftest*
13961LIBS="$ac_save_LIBS"
13962
13963fi
13964if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13965 echo "$ac_t""yes" 1>&6
f6bcfd97 13966 HAVE_PRIOR_FUNCS=1
10f2d63a 13967else
698dcdb6
VZ
13968 echo "$ac_t""no" 1>&6
13969echo $ac_n "checking for sched_get_priority_max in -lposix4""... $ac_c" 1>&6
54276ccf 13970echo "configure:13971: checking for sched_get_priority_max in -lposix4" >&5
698dcdb6
VZ
13971ac_lib_var=`echo posix4'_'sched_get_priority_max | sed 'y%./+-%__p_%'`
13972if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13973 echo $ac_n "(cached) $ac_c" 1>&6
1e487827 13974else
698dcdb6 13975 ac_save_LIBS="$LIBS"
1e487827 13976LIBS="-lposix4 $LIBS"
698dcdb6 13977cat > conftest.$ac_ext <<EOF
54276ccf 13978#line 13979 "configure"
10f2d63a 13979#include "confdefs.h"
6232543b 13980/* Override any gcc2 internal prototype to avoid an error. */
6232543b 13981/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
13982 builtin and then its argument prototype would still apply. */
13983char sched_get_priority_max();
13984
13985int main() {
13986sched_get_priority_max()
13987; return 0; }
13988EOF
54276ccf 13989if { (eval echo configure:13990: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
13990 rm -rf conftest*
13991 eval "ac_cv_lib_$ac_lib_var=yes"
13992else
13993 echo "configure: failed program was:" >&5
13994 cat conftest.$ac_ext >&5
13995 rm -rf conftest*
13996 eval "ac_cv_lib_$ac_lib_var=no"
13997fi
13998rm -f conftest*
13999LIBS="$ac_save_LIBS"
10f2d63a 14000
698dcdb6
VZ
14001fi
14002if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14003 echo "$ac_t""yes" 1>&6
14004
f6bcfd97
BP
14005 HAVE_PRIOR_FUNCS=1
14006 POSIX4_LINK="-lposix4"
698dcdb6
VZ
14007
14008else
14009 echo "$ac_t""no" 1>&6
10f2d63a
VZ
14010fi
14011
698dcdb6 14012
10f2d63a
VZ
14013fi
14014
698dcdb6
VZ
14015
14016else
14017 echo "$ac_t""no" 1>&6
6232543b 14018fi
10f2d63a 14019
698dcdb6
VZ
14020
14021else
14022 echo "$ac_t""no" 1>&6
1e487827 14023fi
703e0a69 14024
698dcdb6 14025
f6bcfd97 14026 if test "$HAVE_PRIOR_FUNCS" = 1; then
698dcdb6 14027 cat >> confdefs.h <<\EOF
f6bcfd97
BP
14028#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
14029EOF
14030
14031 else
698dcdb6 14032 echo "configure: warning: Setting thread priority will not work" 1>&2
f6bcfd97
BP
14033 fi
14034
698dcdb6 14035 echo $ac_n "checking for pthread_cancel in -l$THREADS_LINK""... $ac_c" 1>&6
54276ccf 14036echo "configure:14037: checking for pthread_cancel in -l$THREADS_LINK" >&5
698dcdb6
VZ
14037ac_lib_var=`echo $THREADS_LINK'_'pthread_cancel | sed 'y%./+-%__p_%'`
14038if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14039 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 14040else
698dcdb6 14041 ac_save_LIBS="$LIBS"
10f2d63a 14042LIBS="-l$THREADS_LINK $LIBS"
698dcdb6 14043cat > conftest.$ac_ext <<EOF
54276ccf 14044#line 14045 "configure"
10f2d63a
VZ
14045#include "confdefs.h"
14046/* Override any gcc2 internal prototype to avoid an error. */
14047/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
14048 builtin and then its argument prototype would still apply. */
14049char pthread_cancel();
14050
14051int main() {
14052pthread_cancel()
14053; return 0; }
14054EOF
54276ccf 14055if { (eval echo configure:14056: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
14056 rm -rf conftest*
14057 eval "ac_cv_lib_$ac_lib_var=yes"
14058else
14059 echo "configure: failed program was:" >&5
14060 cat conftest.$ac_ext >&5
14061 rm -rf conftest*
14062 eval "ac_cv_lib_$ac_lib_var=no"
14063fi
14064rm -f conftest*
14065LIBS="$ac_save_LIBS"
14066
14067fi
14068if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14069 echo "$ac_t""yes" 1>&6
14070 cat >> confdefs.h <<\EOF
10f2d63a
VZ
14071#define HAVE_PTHREAD_CANCEL 1
14072EOF
14073
14074else
698dcdb6
VZ
14075 echo "$ac_t""no" 1>&6
14076echo "configure: warning: wxThread::Kill() will not work properly" 1>&2
10f2d63a
VZ
14077fi
14078
1e487827 14079
698dcdb6 14080 echo $ac_n "checking for pthread_cleanup_push/pop""... $ac_c" 1>&6
54276ccf 14081echo "configure:14082: checking for pthread_cleanup_push/pop" >&5
698dcdb6
VZ
14082if eval "test \"`echo '$''{'wx_cv_func_pthread_cleanup_push'+set}'`\" = set"; then
14083 echo $ac_n "(cached) $ac_c" 1>&6
14084else
14085
14086 cat > conftest.$ac_ext <<EOF
54276ccf 14087#line 14088 "configure"
10f2d63a
VZ
14088#include "confdefs.h"
14089#include <pthread.h>
698dcdb6 14090int main() {
10f2d63a
VZ
14091
14092 pthread_cleanup_push(NULL, NULL);
14093 pthread_cleanup_pop(0);
698dcdb6
VZ
14094
14095; return 0; }
14096EOF
54276ccf 14097if { (eval echo configure:14098: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
14098 rm -rf conftest*
14099
10f2d63a 14100 wx_cv_func_pthread_cleanup_push=yes
698dcdb6 14101
10f2d63a 14102else
698dcdb6
VZ
14103 echo "configure: failed program was:" >&5
14104 cat conftest.$ac_ext >&5
14105 rm -rf conftest*
14106
10f2d63a 14107 wx_cv_func_pthread_cleanup_push=no
698dcdb6 14108
6232543b 14109fi
698dcdb6
VZ
14110rm -f conftest*
14111
1e487827 14112fi
698dcdb6
VZ
14113
14114echo "$ac_t""$wx_cv_func_pthread_cleanup_push" 1>&6
10f2d63a 14115
d9b9876f 14116 if test "$wx_cv_func_pthread_cleanup_push" = "yes"; then
698dcdb6 14117 cat >> confdefs.h <<\EOF
d9b9876f
VZ
14118#define HAVE_THREAD_CLEANUP_FUNCTIONS 1
14119EOF
14120
14121 fi
14122
698dcdb6
VZ
14123
14124 echo $ac_n "checking for pthread_mutexattr_t""... $ac_c" 1>&6
54276ccf 14125echo "configure:14126: checking for pthread_mutexattr_t" >&5
698dcdb6
VZ
14126if eval "test \"`echo '$''{'wx_cv_type_pthread_mutexattr_t'+set}'`\" = set"; then
14127 echo $ac_n "(cached) $ac_c" 1>&6
d9b9876f 14128else
698dcdb6
VZ
14129
14130 cat > conftest.$ac_ext <<EOF
54276ccf 14131#line 14132 "configure"
d9b9876f
VZ
14132#include "confdefs.h"
14133#include <pthread.h>
698dcdb6 14134int main() {
d9b9876f
VZ
14135
14136 pthread_mutexattr_t attr;
14137 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
698dcdb6
VZ
14138
14139; return 0; }
14140EOF
54276ccf 14141if { (eval echo configure:14142: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
14142 rm -rf conftest*
14143
d9b9876f 14144 wx_cv_type_pthread_mutexattr_t=yes
698dcdb6 14145
d9b9876f 14146else
698dcdb6
VZ
14147 echo "configure: failed program was:" >&5
14148 cat conftest.$ac_ext >&5
14149 rm -rf conftest*
14150
d9b9876f 14151 wx_cv_type_pthread_mutexattr_t=no
698dcdb6
VZ
14152
14153
6232543b 14154fi
698dcdb6
VZ
14155rm -f conftest*
14156
1e487827 14157fi
698dcdb6
VZ
14158
14159echo "$ac_t""$wx_cv_type_pthread_mutexattr_t" 1>&6
d9b9876f
VZ
14160
14161 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
698dcdb6 14162 cat >> confdefs.h <<\EOF
d9b9876f
VZ
14163#define HAVE_PTHREAD_MUTEXATTR_T 1
14164EOF
14165
14166 else
698dcdb6 14167 echo $ac_n "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER""... $ac_c" 1>&6
54276ccf 14168echo "configure:14169: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
698dcdb6
VZ
14169if eval "test \"`echo '$''{'wx_cv_type_pthread_rec_mutex_init'+set}'`\" = set"; then
14170 echo $ac_n "(cached) $ac_c" 1>&6
14171else
14172
14173 cat > conftest.$ac_ext <<EOF
54276ccf 14174#line 14175 "configure"
d9b9876f
VZ
14175#include "confdefs.h"
14176#include <pthread.h>
698dcdb6 14177int main() {
d9b9876f
VZ
14178
14179 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
698dcdb6
VZ
14180
14181; return 0; }
14182EOF
54276ccf 14183if { (eval echo configure:14184: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
14184 rm -rf conftest*
14185
d9b9876f 14186 wx_cv_type_pthread_rec_mutex_init=yes
698dcdb6 14187
d9b9876f 14188else
698dcdb6
VZ
14189 echo "configure: failed program was:" >&5
14190 cat conftest.$ac_ext >&5
14191 rm -rf conftest*
14192
d9b9876f 14193 wx_cv_type_pthread_rec_mutex_init=no
698dcdb6
VZ
14194
14195
6232543b 14196fi
698dcdb6
VZ
14197rm -f conftest*
14198
1e487827 14199fi
698dcdb6
VZ
14200
14201echo "$ac_t""$wx_cv_type_pthread_rec_mutex_init" 1>&6
3765e936 14202 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
698dcdb6 14203 cat >> confdefs.h <<\EOF
d9b9876f
VZ
14204#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
14205EOF
14206
14207 else
698dcdb6 14208 echo "configure: warning: wxMutex won't be recursive on this platform" 1>&2
d9b9876f
VZ
14209 fi
14210 fi
14211
10f2d63a 14212 THREADS_LINK="-l$THREADS_LINK"
186837b0
VZ
14213
14214 if test "$USE_SOLARIS" = "yes" -a "$GCC" != "yes"; then
14215 CFLAGS="${CFLAGS} -mt"
14216 CXXFLAGS="${CXXFLAGS} -mt"
14217 LDFLAGS="${LDFLAGS} -mt"
14218 fi
10f2d63a
VZ
14219fi
14220
14221fi
14222
14223if test "$wxUSE_THREADS" = "yes"; then
698dcdb6 14224 cat >> confdefs.h <<\EOF
10f2d63a
VZ
14225#define wxUSE_THREADS 1
14226EOF
14227
698dcdb6 14228
2c6025bc 14229 if test "$wxUSE_MAC" = "0"; then
10f2d63a 14230 CFLAGS="${CFLAGS} -D_REENTRANT"
2c6025bc
GD
14231 CXXFLAGS="${CXXFLAGS} -D_REENTRANT"
14232 fi
10f2d63a
VZ
14233
14234 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
14235else
14236 if test "$ac_cv_func_strtok_r" = "yes"; then
698dcdb6 14237 echo $ac_n "checking if -D_REENTRANT is needed""... $ac_c" 1>&6
54276ccf 14238echo "configure:14239: checking if -D_REENTRANT is needed" >&5
ab9b9eab
VZ
14239 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
14240 CFLAGS="${CFLAGS} -D_REENTRANT"
14241 CXXFLAGS="${CXXFLAGS} -D_REENTRANT"
698dcdb6 14242 echo "$ac_t""yes" 1>&6
ab9b9eab 14243 else
698dcdb6 14244 echo "$ac_t""no" 1>&6
10f2d63a
VZ
14245 fi
14246 fi
14247fi
14248
6f72b082 14249if test "$WXGTK20" = 1 ; then
698dcdb6 14250 cat >> confdefs.h <<EOF
6f72b082 14251#define __WXGTK20__ $WXGTK20
13111b2a
VZ
14252EOF
14253
14254 WXGTK12=1
14255fi
14256
10f2d63a 14257if test "$WXGTK12" = 1 ; then
698dcdb6 14258 cat >> confdefs.h <<EOF
10f2d63a
VZ
14259#define __WXGTK12__ $WXGTK12
14260EOF
14261
14262fi
14263
f6bcfd97 14264if test "$WXGTK127" = 1 ; then
698dcdb6 14265 cat >> confdefs.h <<EOF
f6bcfd97
BP
14266#define __WXGTK127__ $WXGTK127
14267EOF
14268
14269fi
14270
10f2d63a
VZ
14271if test "$WXWINE" = 1 ; then
14272 TOOLKIT_DEF="${TOOLKIT_DEF} -D__WXWINE__"
14273fi
14274
b4085ce6 14275if test "$wxUSE_MAC" = 1 ; then
2c6025bc 14276 TOOLKIT_DEF="${TOOLKIT_DEF} -D__UNIX__ -D__POWERPC__ -DTARGET_CARBON"
ea5999b9 14277 CFLAGS="${CFLAGS} -fno-common -fpascal-strings"
0c451ef3 14278 CPPFLAGS="${CPPFLAGS} -cpp-precomp -fno-common -fpascal-strings"
2f51a9ec
GD
14279 # Extract the first word of "Rez", so it can be a program name with args.
14280set dummy Rez; ac_word=$2
698dcdb6 14281echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
54276ccf 14282echo "configure:14283: checking for $ac_word" >&5
698dcdb6
VZ
14283if eval "test \"`echo '$''{'ac_cv_prog_REZ'+set}'`\" = set"; then
14284 echo $ac_n "(cached) $ac_c" 1>&6
2f51a9ec
GD
14285else
14286 if test -n "$REZ"; then
14287 ac_cv_prog_REZ="$REZ" # Let the user override the test.
14288else
698dcdb6
VZ
14289 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
14290 ac_dummy="$PATH"
14291 for ac_dir in $ac_dummy; do
14292 test -z "$ac_dir" && ac_dir=.
14293 if test -f $ac_dir/$ac_word; then
14294 ac_cv_prog_REZ="Rez"
14295 break
14296 fi
14297 done
14298 IFS="$ac_save_ifs"
2f51a9ec
GD
14299 test -z "$ac_cv_prog_REZ" && ac_cv_prog_REZ="/Developer/Tools/Rez"
14300fi
14301fi
698dcdb6 14302REZ="$ac_cv_prog_REZ"
2f51a9ec 14303if test -n "$REZ"; then
698dcdb6 14304 echo "$ac_t""$REZ" 1>&6
2f51a9ec 14305else
698dcdb6 14306 echo "$ac_t""no" 1>&6
2f51a9ec
GD
14307fi
14308
14309 # Extract the first word of "Derez", so it can be a program name with args.
14310set dummy Derez; ac_word=$2
698dcdb6 14311echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
54276ccf 14312echo "configure:14313: checking for $ac_word" >&5
698dcdb6
VZ
14313if eval "test \"`echo '$''{'ac_cv_prog_DEREZ'+set}'`\" = set"; then
14314 echo $ac_n "(cached) $ac_c" 1>&6
2f51a9ec
GD
14315else
14316 if test -n "$DEREZ"; then
14317 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
14318else
698dcdb6
VZ
14319 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
14320 ac_dummy="$PATH"
14321 for ac_dir in $ac_dummy; do
14322 test -z "$ac_dir" && ac_dir=.
14323 if test -f $ac_dir/$ac_word; then
14324 ac_cv_prog_DEREZ="Derez"
14325 break
14326 fi
14327 done
14328 IFS="$ac_save_ifs"
2f51a9ec
GD
14329 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/Derez"
14330fi
14331fi
698dcdb6 14332DEREZ="$ac_cv_prog_DEREZ"
2f51a9ec 14333if test -n "$DEREZ"; then
698dcdb6 14334 echo "$ac_t""$DEREZ" 1>&6
2f51a9ec 14335else
698dcdb6 14336 echo "$ac_t""no" 1>&6
2f51a9ec
GD
14337fi
14338
14339 RESCOMP=${REZ}
14340 REZFLAGS="-d __UNIX__ -useDF"
14341 DEREZFLAGS="Carbon.r -useDF"
14342 RESFLAGS="Carbon.r -t APPL"
14343 LIBWXMACRES="\$(LIBWX_MACRES)"
14344 LIBWXMACRESCOMP="\$(LIBWX_MACRESCOMP)"
b4085ce6
GD
14345fi
14346
10f2d63a
VZ
14347if test "$wxUSE_CYGWIN" = 1 ; then
14348 TOOLKIT_DEF="${TOOLKIT_DEF} -D__WIN95__"
14349fi
14350
14351WXDEBUG=
14352
14353if test "$wxUSE_DEBUG_INFO" = "yes" ; then
14354 WXDEBUG="-g"
14355 wxUSE_OPTIMISE=no
14356fi
14357
14358if test "$wxUSE_DEBUG_GDB" = "yes" ; then
14359 wxUSE_DEBUG_INFO=yes
14360 WXDEBUG="-ggdb"
14361fi
14362
14363if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
698dcdb6 14364 cat >> confdefs.h <<\EOF
10f2d63a
VZ
14365#define WXDEBUG 1
14366EOF
14367
14368 WXDEBUG_DEFINE="-D__WXDEBUG__"
14369else
14370 if test "$wxUSE_GTK" = 1 ; then
14371 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
14372 fi
14373fi
14374
14375if test "$wxUSE_MEM_TRACING" = "yes" ; then
698dcdb6 14376 cat >> confdefs.h <<\EOF
10f2d63a
VZ
14377#define wxUSE_MEMORY_TRACING 1
14378EOF
14379
698dcdb6 14380 cat >> confdefs.h <<\EOF
10f2d63a 14381#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
47c13eb7
VS
14382EOF
14383
698dcdb6 14384 cat >> confdefs.h <<\EOF
47c13eb7 14385#define wxUSE_DEBUG_NEW_ALWAYS 1
10f2d63a
VZ
14386EOF
14387
14388 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
14389fi
14390
14391if test "$wxUSE_DMALLOC" = "yes" ; then
14392 DMALLOC_LINK="-ldmalloc"
14393fi
14394
14395PROFILE=
14396if test "$wxUSE_PROFILE" = "yes" ; then
14397 PROFILE="-pg"
14398fi
14399
14400DEP_INFO_FLAGS=
caa2c79b 14401CODE_GEN_FLAGS=
0f3f1cbc 14402CODE_GEN_FLAGS_CXX=
10f2d63a
VZ
14403if test "$GCC" = yes ; then
14404 if test "$wxUSE_NO_RTTI" = "yes" ; then
0f3f1cbc 14405 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS -fno-rtti"
10f2d63a
VZ
14406 fi
14407 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
0f3f1cbc 14408 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS -fno-exceptions"
10f2d63a
VZ
14409 fi
14410 if test "$wxUSE_PERMISSIVE" = "yes" ; then
caa2c79b 14411 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
10f2d63a
VZ
14412 fi
14413 if test "$wxUSE_NO_DEPS" = "no" ; then
14414 DEP_INFO_FLAGS="-MMD"
14415 fi
14416fi
14417
698dcdb6 14418
10f2d63a
VZ
14419CXXFLAGS=`echo "${CXXFLAGS}" | sed "s/\-O.//g" `
14420CFLAGS=`echo "${CFLAGS}" | sed "s/\-O.//g" `
14421if test "$wxUSE_OPTIMISE" = "no" ; then
14422 OPTIMISE=
14423else
14424 if test "$GCC" = yes ; then
14425 OPTIMISE="-O2"
14426 case "${host}" in
14427 i586-*-*|i686-*-* )
14428 OPTIMISE="${OPTIMISE} "
14429 ;;
14430 esac
14431 else
14432 OPTIMISE="-O"
14433 fi
14434fi
14435
54276ccf
VZ
14436if test "$WXWIN_COMPATIBILITY_2" = "yes"; then
14437 cat >> confdefs.h <<\EOF
14438#define WXWIN_COMPATIBILITY_2 1
14439EOF
14440
14441
14442 WXWIN_COMPATIBILITY_2_2="yes"
14443fi
14444
14445if test "$WXWIN_COMPATIBILITY_2_2" = "yes"; then
14446 cat >> confdefs.h <<\EOF
14447#define WXWIN_COMPATIBILITY_2_2 1
14448EOF
14449
14450fi
14451
698dcdb6 14452
10f2d63a 14453ZLIB_INCLUDE=
422107f9 14454if test "$wxUSE_ZLIB" = "yes" -o "$wxUSE_ZLIB" = "sys" ; then
698dcdb6 14455 cat >> confdefs.h <<\EOF
10f2d63a
VZ
14456#define wxUSE_ZLIB 1
14457EOF
14458
422107f9
VZ
14459 if test "$wxUSE_ZLIB" = "yes" ; then
14460 ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib"
14461 else
14462 ZLIB_LINK=
698dcdb6
VZ
14463 ac_safe=`echo "zlib.h" | sed 'y%./+-%__p_%'`
14464echo $ac_n "checking for zlib.h""... $ac_c" 1>&6
54276ccf 14465echo "configure:14466: checking for zlib.h" >&5
698dcdb6
VZ
14466if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
14467 echo $ac_n "(cached) $ac_c" 1>&6
14468else
14469 cat > conftest.$ac_ext <<EOF
54276ccf 14470#line 14471 "configure"
422107f9
VZ
14471#include "confdefs.h"
14472#include <zlib.h>
698dcdb6
VZ
14473EOF
14474ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
54276ccf 14475{ (eval echo configure:14476: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
14476ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14477if test -z "$ac_err"; then
14478 rm -rf conftest*
14479 eval "ac_cv_header_$ac_safe=yes"
422107f9 14480else
698dcdb6
VZ
14481 echo "$ac_err" >&5
14482 echo "configure: failed program was:" >&5
422107f9 14483 cat conftest.$ac_ext >&5
698dcdb6
VZ
14484 rm -rf conftest*
14485 eval "ac_cv_header_$ac_safe=no"
422107f9 14486fi
698dcdb6 14487rm -f conftest*
422107f9 14488fi
698dcdb6
VZ
14489if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14490 echo "$ac_t""yes" 1>&6
14491 echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
54276ccf 14492echo "configure:14493: checking for deflate in -lz" >&5
698dcdb6
VZ
14493ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
14494if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14495 echo $ac_n "(cached) $ac_c" 1>&6
422107f9 14496else
698dcdb6 14497 ac_save_LIBS="$LIBS"
422107f9 14498LIBS="-lz $LIBS"
698dcdb6 14499cat > conftest.$ac_ext <<EOF
54276ccf 14500#line 14501 "configure"
422107f9
VZ
14501#include "confdefs.h"
14502/* Override any gcc2 internal prototype to avoid an error. */
14503/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
14504 builtin and then its argument prototype would still apply. */
14505char deflate();
14506
14507int main() {
14508deflate()
14509; return 0; }
14510EOF
54276ccf 14511if { (eval echo configure:14512: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
14512 rm -rf conftest*
14513 eval "ac_cv_lib_$ac_lib_var=yes"
14514else
14515 echo "configure: failed program was:" >&5
14516 cat conftest.$ac_ext >&5
14517 rm -rf conftest*
14518 eval "ac_cv_lib_$ac_lib_var=no"
14519fi
14520rm -f conftest*
14521LIBS="$ac_save_LIBS"
14522
14523fi
14524if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14525 echo "$ac_t""yes" 1>&6
422107f9 14526 ZLIB_LINK="-lz"
698dcdb6
VZ
14527else
14528 echo "$ac_t""no" 1>&6
422107f9
VZ
14529fi
14530
698dcdb6
VZ
14531else
14532 echo "$ac_t""no" 1>&6
422107f9
VZ
14533fi
14534
14535 if test "x$ZLIB_LINK" = "x" ; then
698dcdb6 14536 { echo "configure: error: system zlib compression library not found! Use --with-zlib=yes to use built-in zlib" 1>&2; exit 1; }
422107f9
VZ
14537 fi
14538 fi
10f2d63a
VZ
14539fi
14540
14541PNG_INCLUDE=
422107f9 14542if test "$wxUSE_LIBPNG" = "yes" -o "$wxUSE_LIBPNG" = "sys" ; then
698dcdb6 14543 cat >> confdefs.h <<\EOF
10f2d63a
VZ
14544#define wxUSE_LIBPNG 1
14545EOF
14546
41fd4136 14547 if test "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
698dcdb6 14548 echo "configure: warning: --with-libpng=sys doesn't work without --with-zlib=sys, will compile the built-in libpng instead" 1>&2
422107f9
VZ
14549 wxUSE_LIBPNG=yes
14550 fi
14551
14552 if test "$wxUSE_LIBPNG" = "yes" ; then
14553 PNG_INCLUDE="-I\${top_srcdir}/src/png"
14554 else
14555 PNG_LINK=
698dcdb6
VZ
14556 ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
14557echo $ac_n "checking for png.h""... $ac_c" 1>&6
54276ccf 14558echo "configure:14559: checking for png.h" >&5
698dcdb6
VZ
14559if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
14560 echo $ac_n "(cached) $ac_c" 1>&6
14561else
14562 cat > conftest.$ac_ext <<EOF
54276ccf 14563#line 14564 "configure"
422107f9
VZ
14564#include "confdefs.h"
14565#include <png.h>
698dcdb6
VZ
14566EOF
14567ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
54276ccf 14568{ (eval echo configure:14569: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
14569ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14570if test -z "$ac_err"; then
14571 rm -rf conftest*
14572 eval "ac_cv_header_$ac_safe=yes"
422107f9 14573else
698dcdb6
VZ
14574 echo "$ac_err" >&5
14575 echo "configure: failed program was:" >&5
422107f9 14576 cat conftest.$ac_ext >&5
698dcdb6
VZ
14577 rm -rf conftest*
14578 eval "ac_cv_header_$ac_safe=no"
422107f9 14579fi
698dcdb6 14580rm -f conftest*
422107f9 14581fi
698dcdb6
VZ
14582if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14583 echo "$ac_t""yes" 1>&6
14584 echo $ac_n "checking for png_check_sig in -lpng""... $ac_c" 1>&6
54276ccf 14585echo "configure:14586: checking for png_check_sig in -lpng" >&5
698dcdb6
VZ
14586ac_lib_var=`echo png'_'png_check_sig | sed 'y%./+-%__p_%'`
14587if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14588 echo $ac_n "(cached) $ac_c" 1>&6
422107f9 14589else
698dcdb6 14590 ac_save_LIBS="$LIBS"
422107f9 14591LIBS="-lpng -lz -lm $LIBS"
698dcdb6 14592cat > conftest.$ac_ext <<EOF
54276ccf 14593#line 14594 "configure"
422107f9
VZ
14594#include "confdefs.h"
14595/* Override any gcc2 internal prototype to avoid an error. */
14596/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
14597 builtin and then its argument prototype would still apply. */
14598char png_check_sig();
14599
14600int main() {
14601png_check_sig()
14602; return 0; }
14603EOF
54276ccf 14604if { (eval echo configure:14605: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
14605 rm -rf conftest*
14606 eval "ac_cv_lib_$ac_lib_var=yes"
14607else
14608 echo "configure: failed program was:" >&5
14609 cat conftest.$ac_ext >&5
14610 rm -rf conftest*
14611 eval "ac_cv_lib_$ac_lib_var=no"
14612fi
14613rm -f conftest*
14614LIBS="$ac_save_LIBS"
14615
14616fi
14617if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14618 echo "$ac_t""yes" 1>&6
422107f9 14619 PNG_LINK="-lpng"
698dcdb6
VZ
14620else
14621 echo "$ac_t""no" 1>&6
422107f9
VZ
14622fi
14623
698dcdb6
VZ
14624
14625else
14626 echo "$ac_t""no" 1>&6
422107f9
VZ
14627fi
14628
14629 if test "x$PNG_LINK" = "x" ; then
698dcdb6 14630 { echo "configure: error: system png library not found! Use --with-libpng=yes to use the built-in libpng" 1>&2; exit 1; }
422107f9
VZ
14631 fi
14632 fi
14633
10f2d63a
VZ
14634 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
14635fi
14636
14637JPEG_INCLUDE=
422107f9 14638if test "$wxUSE_LIBJPEG" = "yes" -o "$wxUSE_LIBJPEG" = "sys" ; then
698dcdb6 14639 cat >> confdefs.h <<\EOF
10f2d63a
VZ
14640#define wxUSE_LIBJPEG 1
14641EOF
14642
422107f9
VZ
14643 if test "$wxUSE_LIBJPEG" = "yes" ; then
14644 JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg"
14645 else
14646 JPEG_LINK=
698dcdb6
VZ
14647 ac_safe=`echo "jpeglib.h" | sed 'y%./+-%__p_%'`
14648echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
54276ccf 14649echo "configure:14650: checking for jpeglib.h" >&5
698dcdb6
VZ
14650if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
14651 echo $ac_n "(cached) $ac_c" 1>&6
14652else
14653 cat > conftest.$ac_ext <<EOF
54276ccf 14654#line 14655 "configure"
422107f9
VZ
14655#include "confdefs.h"
14656#include <jpeglib.h>
698dcdb6
VZ
14657EOF
14658ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
54276ccf 14659{ (eval echo configure:14660: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
14660ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14661if test -z "$ac_err"; then
14662 rm -rf conftest*
14663 eval "ac_cv_header_$ac_safe=yes"
6232543b 14664else
698dcdb6
VZ
14665 echo "$ac_err" >&5
14666 echo "configure: failed program was:" >&5
422107f9 14667 cat conftest.$ac_ext >&5
698dcdb6
VZ
14668 rm -rf conftest*
14669 eval "ac_cv_header_$ac_safe=no"
422107f9 14670fi
698dcdb6 14671rm -f conftest*
422107f9 14672fi
698dcdb6
VZ
14673if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14674 echo "$ac_t""yes" 1>&6
14675 echo $ac_n "checking for jpeg_read_header in -ljpeg""... $ac_c" 1>&6
54276ccf 14676echo "configure:14677: checking for jpeg_read_header in -ljpeg" >&5
698dcdb6
VZ
14677ac_lib_var=`echo jpeg'_'jpeg_read_header | sed 'y%./+-%__p_%'`
14678if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14679 echo $ac_n "(cached) $ac_c" 1>&6
422107f9 14680else
698dcdb6 14681 ac_save_LIBS="$LIBS"
422107f9 14682LIBS="-ljpeg $LIBS"
698dcdb6 14683cat > conftest.$ac_ext <<EOF
54276ccf 14684#line 14685 "configure"
422107f9
VZ
14685#include "confdefs.h"
14686/* Override any gcc2 internal prototype to avoid an error. */
14687/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
14688 builtin and then its argument prototype would still apply. */
14689char jpeg_read_header();
14690
14691int main() {
14692jpeg_read_header()
14693; return 0; }
14694EOF
54276ccf 14695if { (eval echo configure:14696: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
14696 rm -rf conftest*
14697 eval "ac_cv_lib_$ac_lib_var=yes"
14698else
14699 echo "configure: failed program was:" >&5
14700 cat conftest.$ac_ext >&5
14701 rm -rf conftest*
14702 eval "ac_cv_lib_$ac_lib_var=no"
14703fi
14704rm -f conftest*
14705LIBS="$ac_save_LIBS"
14706
14707fi
14708if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14709 echo "$ac_t""yes" 1>&6
422107f9 14710 JPEG_LINK="-ljpeg"
698dcdb6
VZ
14711else
14712 echo "$ac_t""no" 1>&6
422107f9
VZ
14713fi
14714
698dcdb6
VZ
14715else
14716 echo "$ac_t""no" 1>&6
422107f9
VZ
14717fi
14718
14719 if test "x$JPEG_LINK" = "x" ; then
698dcdb6 14720 { echo "configure: error: system jpeg library not found! Use --with-libjpeg=yes to use the built-in one" 1>&2; exit 1; }
422107f9
VZ
14721 fi
14722 fi
10f2d63a
VZ
14723fi
14724
c7a2bf27 14725TIFF_INCLUDE=
0dcf9893 14726if test "$wxUSE_LIBTIFF" = "yes" -o "$wxUSE_LIBTIFF" = "sys" ; then
698dcdb6 14727 cat >> confdefs.h <<\EOF
c7a2bf27
RR
14728#define wxUSE_LIBTIFF 1
14729EOF
14730
665bbe97 14731 if test "$wxUSE_LIBTIFF" = "yes" ; then
0dcf9893
VZ
14732 TIFF_INCLUDE="-I\${top_srcdir}/src/tiff"
14733 else
14734 TIFF_LINK=
698dcdb6
VZ
14735 ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
14736echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
54276ccf 14737echo "configure:14738: checking for tiffio.h" >&5
698dcdb6
VZ
14738if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
14739 echo $ac_n "(cached) $ac_c" 1>&6
14740else
14741 cat > conftest.$ac_ext <<EOF
54276ccf 14742#line 14743 "configure"
0dcf9893
VZ
14743#include "confdefs.h"
14744#include <tiffio.h>
698dcdb6
VZ
14745EOF
14746ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
54276ccf 14747{ (eval echo configure:14748: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
14748ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14749if test -z "$ac_err"; then
14750 rm -rf conftest*
14751 eval "ac_cv_header_$ac_safe=yes"
1e487827 14752else
698dcdb6
VZ
14753 echo "$ac_err" >&5
14754 echo "configure: failed program was:" >&5
0dcf9893 14755 cat conftest.$ac_ext >&5
698dcdb6
VZ
14756 rm -rf conftest*
14757 eval "ac_cv_header_$ac_safe=no"
0dcf9893 14758fi
698dcdb6 14759rm -f conftest*
0dcf9893 14760fi
698dcdb6
VZ
14761if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14762 echo "$ac_t""yes" 1>&6
14763 echo $ac_n "checking for TIFFError in -ltiff""... $ac_c" 1>&6
54276ccf 14764echo "configure:14765: checking for TIFFError in -ltiff" >&5
698dcdb6
VZ
14765ac_lib_var=`echo tiff'_'TIFFError | sed 'y%./+-%__p_%'`
14766if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14767 echo $ac_n "(cached) $ac_c" 1>&6
0dcf9893 14768else
698dcdb6 14769 ac_save_LIBS="$LIBS"
0dcf9893 14770LIBS="-ltiff -lm $LIBS"
698dcdb6 14771cat > conftest.$ac_ext <<EOF
54276ccf 14772#line 14773 "configure"
0dcf9893
VZ
14773#include "confdefs.h"
14774/* Override any gcc2 internal prototype to avoid an error. */
14775/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
14776 builtin and then its argument prototype would still apply. */
14777char TIFFError();
14778
14779int main() {
14780TIFFError()
14781; return 0; }
14782EOF
54276ccf 14783if { (eval echo configure:14784: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
14784 rm -rf conftest*
14785 eval "ac_cv_lib_$ac_lib_var=yes"
14786else
14787 echo "configure: failed program was:" >&5
14788 cat conftest.$ac_ext >&5
14789 rm -rf conftest*
14790 eval "ac_cv_lib_$ac_lib_var=no"
14791fi
14792rm -f conftest*
14793LIBS="$ac_save_LIBS"
14794
14795fi
14796if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14797 echo "$ac_t""yes" 1>&6
0dcf9893 14798 TIFF_LINK="-ltiff"
698dcdb6
VZ
14799else
14800 echo "$ac_t""no" 1>&6
0dcf9893
VZ
14801fi
14802
698dcdb6
VZ
14803else
14804 echo "$ac_t""no" 1>&6
0dcf9893
VZ
14805fi
14806
14807 if test "x$TIFF_LINK" = "x" ; then
698dcdb6 14808 { echo "configure: error: system tiff library not found! Use --with-libtiff=yes to use the built-in one" 1>&2; exit 1; }
0dcf9893
VZ
14809 fi
14810 fi
c7a2bf27
RR
14811fi
14812
3fed1840
RR
14813FREETYPE_INCLUDE=
14814if test "$wxUSE_FREETYPE" = "yes" -o "$wxUSE_FREETYPE" = "sys" ; then
698dcdb6 14815 cat >> confdefs.h <<\EOF
3fed1840
RR
14816#define wxUSE_FREETYPE 1
14817EOF
14818
14819 if test "$wxUSE_FREETYPE" = "yes" ; then
14820 FREETYPE_INCLUDE="-I\${top_srcdir}/src/freetype"
14821 else
14822 FREETYPE_LINK=
698dcdb6
VZ
14823 ac_safe=`echo "freetype.h" | sed 'y%./+-%__p_%'`
14824echo $ac_n "checking for freetype.h""... $ac_c" 1>&6
54276ccf 14825echo "configure:14826: checking for freetype.h" >&5
698dcdb6
VZ
14826if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
14827 echo $ac_n "(cached) $ac_c" 1>&6
14828else
14829 cat > conftest.$ac_ext <<EOF
54276ccf 14830#line 14831 "configure"
3fed1840
RR
14831#include "confdefs.h"
14832#include <freetype.h>
698dcdb6
VZ
14833EOF
14834ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
54276ccf 14835{ (eval echo configure:14836: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
14836ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14837if test -z "$ac_err"; then
14838 rm -rf conftest*
14839 eval "ac_cv_header_$ac_safe=yes"
3fed1840 14840else
698dcdb6
VZ
14841 echo "$ac_err" >&5
14842 echo "configure: failed program was:" >&5
3fed1840 14843 cat conftest.$ac_ext >&5
698dcdb6
VZ
14844 rm -rf conftest*
14845 eval "ac_cv_header_$ac_safe=no"
3fed1840 14846fi
698dcdb6 14847rm -f conftest*
3fed1840 14848fi
698dcdb6
VZ
14849if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14850 echo "$ac_t""yes" 1>&6
14851 echo $ac_n "checking for FT_Render_Glyph in -lfreetype""... $ac_c" 1>&6
54276ccf 14852echo "configure:14853: checking for FT_Render_Glyph in -lfreetype" >&5
698dcdb6
VZ
14853ac_lib_var=`echo freetype'_'FT_Render_Glyph | sed 'y%./+-%__p_%'`
14854if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14855 echo $ac_n "(cached) $ac_c" 1>&6
3fed1840 14856else
698dcdb6 14857 ac_save_LIBS="$LIBS"
3fed1840 14858LIBS="-lfreetype -lm $LIBS"
698dcdb6 14859cat > conftest.$ac_ext <<EOF
54276ccf 14860#line 14861 "configure"
3fed1840
RR
14861#include "confdefs.h"
14862/* Override any gcc2 internal prototype to avoid an error. */
14863/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
14864 builtin and then its argument prototype would still apply. */
14865char FT_Render_Glyph();
14866
14867int main() {
14868FT_Render_Glyph()
14869; return 0; }
14870EOF
54276ccf 14871if { (eval echo configure:14872: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
14872 rm -rf conftest*
14873 eval "ac_cv_lib_$ac_lib_var=yes"
14874else
14875 echo "configure: failed program was:" >&5
14876 cat conftest.$ac_ext >&5
14877 rm -rf conftest*
14878 eval "ac_cv_lib_$ac_lib_var=no"
14879fi
14880rm -f conftest*
14881LIBS="$ac_save_LIBS"
14882
14883fi
14884if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14885 echo "$ac_t""yes" 1>&6
3fed1840 14886 FREETYPE_LINK="-lfreetype"
698dcdb6
VZ
14887else
14888 echo "$ac_t""no" 1>&6
3fed1840
RR
14889fi
14890
698dcdb6
VZ
14891
14892else
14893 echo "$ac_t""no" 1>&6
3fed1840
RR
14894fi
14895
14896 if test "x$FREETYPE_LINK" = "x" ; then
698dcdb6 14897 { echo "configure: error: system freetype library not found! Use --with-freetype=yes to use the built-in freetype" 1>&2; exit 1; }
3fed1840
RR
14898 fi
14899 fi
14900fi
14901
10f2d63a 14902if test "$wxUSE_OPENGL" = "yes"; then
698dcdb6
VZ
14903 ac_safe=`echo "GL/gl.h" | sed 'y%./+-%__p_%'`
14904echo $ac_n "checking for GL/gl.h""... $ac_c" 1>&6
54276ccf 14905echo "configure:14906: checking for GL/gl.h" >&5
698dcdb6
VZ
14906if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
14907 echo $ac_n "(cached) $ac_c" 1>&6
14908else
14909 cat > conftest.$ac_ext <<EOF
54276ccf 14910#line 14911 "configure"
10f2d63a
VZ
14911#include "confdefs.h"
14912#include <GL/gl.h>
698dcdb6
VZ
14913EOF
14914ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
54276ccf 14915{ (eval echo configure:14916: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
14916ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14917if test -z "$ac_err"; then
14918 rm -rf conftest*
14919 eval "ac_cv_header_$ac_safe=yes"
10f2d63a 14920else
698dcdb6
VZ
14921 echo "$ac_err" >&5
14922 echo "configure: failed program was:" >&5
10f2d63a 14923 cat conftest.$ac_ext >&5
698dcdb6
VZ
14924 rm -rf conftest*
14925 eval "ac_cv_header_$ac_safe=no"
10f2d63a 14926fi
698dcdb6 14927rm -f conftest*
10f2d63a 14928fi
698dcdb6
VZ
14929if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14930 echo "$ac_t""yes" 1>&6
14931
14932 cat >> confdefs.h <<\EOF
bdad4e7e
RR
14933#define wxUSE_OPENGL 1
14934EOF
14935
698dcdb6 14936 cat >> confdefs.h <<\EOF
bdad4e7e
RR
14937#define wxUSE_GLCANVAS 1
14938EOF
14939
698dcdb6 14940 echo $ac_n "checking for glFlush in -lGL""... $ac_c" 1>&6
54276ccf 14941echo "configure:14942: checking for glFlush in -lGL" >&5
698dcdb6
VZ
14942ac_lib_var=`echo GL'_'glFlush | sed 'y%./+-%__p_%'`
14943if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14944 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 14945else
698dcdb6 14946 ac_save_LIBS="$LIBS"
bdad4e7e 14947LIBS="-lGL $LIBS"
698dcdb6 14948cat > conftest.$ac_ext <<EOF
54276ccf 14949#line 14950 "configure"
10f2d63a
VZ
14950#include "confdefs.h"
14951/* Override any gcc2 internal prototype to avoid an error. */
14952/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
14953 builtin and then its argument prototype would still apply. */
14954char glFlush();
6232543b 14955
698dcdb6
VZ
14956int main() {
14957glFlush()
14958; return 0; }
14959EOF
54276ccf 14960if { (eval echo configure:14961: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
14961 rm -rf conftest*
14962 eval "ac_cv_lib_$ac_lib_var=yes"
14963else
14964 echo "configure: failed program was:" >&5
14965 cat conftest.$ac_ext >&5
14966 rm -rf conftest*
14967 eval "ac_cv_lib_$ac_lib_var=no"
14968fi
14969rm -f conftest*
14970LIBS="$ac_save_LIBS"
1e487827 14971
698dcdb6
VZ
14972fi
14973if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14974 echo "$ac_t""yes" 1>&6
14975
14976 OPENGL_LINK="-lGL -lGLU"
14977
10f2d63a 14978else
698dcdb6 14979 echo "$ac_t""no" 1>&6
10f2d63a 14980
698dcdb6 14981 echo $ac_n "checking for glFlush in -lMesaGL""... $ac_c" 1>&6
54276ccf 14982echo "configure:14983: checking for glFlush in -lMesaGL" >&5
698dcdb6
VZ
14983ac_lib_var=`echo MesaGL'_'glFlush | sed 'y%./+-%__p_%'`
14984if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14985 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 14986else
698dcdb6 14987 ac_save_LIBS="$LIBS"
10f2d63a 14988LIBS="-lMesaGL $LIBS"
698dcdb6 14989cat > conftest.$ac_ext <<EOF
54276ccf 14990#line 14991 "configure"
10f2d63a
VZ
14991#include "confdefs.h"
14992/* Override any gcc2 internal prototype to avoid an error. */
14993/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
14994 builtin and then its argument prototype would still apply. */
14995char glFlush();
14996
14997int main() {
14998glFlush()
14999; return 0; }
15000EOF
54276ccf 15001if { (eval echo configure:15002: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
15002 rm -rf conftest*
15003 eval "ac_cv_lib_$ac_lib_var=yes"
15004else
15005 echo "configure: failed program was:" >&5
15006 cat conftest.$ac_ext >&5
15007 rm -rf conftest*
15008 eval "ac_cv_lib_$ac_lib_var=no"
15009fi
15010rm -f conftest*
15011LIBS="$ac_save_LIBS"
10f2d63a 15012
698dcdb6
VZ
15013fi
15014if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15015 echo "$ac_t""yes" 1>&6
15016
f6bcfd97 15017 OPENGL_LINK="-lMesaGL -lMesaGLU"
698dcdb6
VZ
15018
15019else
15020 echo "$ac_t""no" 1>&6
10f2d63a
VZ
15021fi
15022
698dcdb6 15023
10f2d63a
VZ
15024fi
15025
698dcdb6 15026
10f2d63a 15027else
698dcdb6
VZ
15028 echo "$ac_t""no" 1>&6
15029wxUSE_OPENGL=0
10f2d63a
VZ
15030fi
15031
15032fi
15033
698dcdb6 15034
10f2d63a 15035if test "$wxUSE_GUI" = "yes"; then
698dcdb6 15036 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15037#define wxUSE_GUI 1
15038EOF
15039
698dcdb6 15040
10f2d63a 15041 else
698dcdb6 15042 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15043#define wxUSE_NOGUI 1
15044EOF
15045
15046fi
15047
698dcdb6 15048
10f2d63a 15049if test "$wxUSE_UNIX" = "yes"; then
698dcdb6 15050 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15051#define wxUSE_UNIX 1
15052EOF
15053
15054fi
15055
698dcdb6 15056
10f2d63a 15057if test "$wxUSE_APPLE_IEEE" = "yes"; then
698dcdb6 15058 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15059#define wxUSE_APPLE_IEEE 1
15060EOF
15061
15062fi
15063
1e6feb95
VZ
15064if test "$wxUSE_TIMER" = "yes"; then
15065 cat >> confdefs.h <<\EOF
15066#define wxUSE_TIMER 1
15067EOF
15068
15069fi
15070
10f2d63a 15071if test "$wxUSE_WAVE" = "yes"; then
698dcdb6 15072 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15073#define wxUSE_WAVE 1
15074EOF
15075
15076fi
15077
1e6feb95
VZ
15078if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
15079 cat >> confdefs.h <<\EOF
15080#define wxUSE_CMDLINE_PARSER 1
15081EOF
15082
15083fi
15084
15085if test "$wxUSE_STOPWATCH" = "yes"; then
15086 cat >> confdefs.h <<\EOF
15087#define wxUSE_STOPWATCH 1
15088EOF
15089
15090fi
15091
15092if test "$wxUSE_DATETIME" = "yes"; then
15093 cat >> confdefs.h <<\EOF
15094#define wxUSE_DATETIME 1
15095EOF
15096
15097fi
15098
15099if test "$wxUSE_TIMEDATE" = "yes"; then
15100 cat >> confdefs.h <<\EOF
15101#define wxUSE_TIMEDATE 1
15102EOF
15103
15104fi
15105
10f2d63a 15106if test "$wxUSE_FILE" = "yes"; then
698dcdb6 15107 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15108#define wxUSE_FILE 1
15109EOF
15110
15111fi
15112
1e6feb95
VZ
15113if test "$wxUSE_FFILE" = "yes"; then
15114 cat >> confdefs.h <<\EOF
15115#define wxUSE_FFILE 1
15116EOF
15117
15118fi
15119
24528b0c 15120if test "$wxUSE_FILESYSTEM" = "yes"; then
698dcdb6 15121 cat >> confdefs.h <<\EOF
24528b0c
VS
15122#define wxUSE_FILESYSTEM 1
15123EOF
15124
15125fi
15126
10f2d63a 15127if test "$wxUSE_FS_INET" = "yes"; then
698dcdb6 15128 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15129#define wxUSE_FS_INET 1
15130EOF
15131
15132fi
15133
15134if test "$wxUSE_FS_ZIP" = "yes"; then
698dcdb6 15135 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15136#define wxUSE_FS_ZIP 1
15137EOF
15138
15139fi
15140
15141if test "$wxUSE_ZIPSTREAM" = "yes"; then
698dcdb6 15142 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15143#define wxUSE_ZIPSTREAM 1
15144EOF
15145
15146fi
15147
eb4efbdc 15148if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
698dcdb6 15149 cat >> confdefs.h <<\EOF
eb4efbdc
VZ
15150#define wxUSE_ON_FATAL_EXCEPTION 1
15151EOF
15152
15153fi
15154
4f3c5f06 15155if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
698dcdb6 15156 cat >> confdefs.h <<\EOF
4f3c5f06
VZ
15157#define wxUSE_SNGLINST_CHECKER 1
15158EOF
15159
15160fi
15161
10f2d63a 15162if test "$wxUSE_BUSYINFO" = "yes"; then
698dcdb6 15163 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15164#define wxUSE_BUSYINFO 1
15165EOF
15166
15167fi
15168
15169if test "$wxUSE_STD_IOSTREAM" = "yes"; then
698dcdb6 15170 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15171#define wxUSE_STD_IOSTREAM 1
15172EOF
15173
15174fi
15175
15176if test "$wxUSE_TEXTFILE" = "yes"; then
15177 if test "$wxUSE_FILE" != "yes"; then
698dcdb6 15178 echo "configure: warning: wxTextFile requires wxFile and it won't be compiled without it" 1>&2
10f2d63a 15179 else
698dcdb6 15180 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15181#define wxUSE_TEXTFILE 1
15182EOF
15183
15184 fi
15185fi
15186
15187if test "$wxUSE_CONFIG" = "yes" ; then
15188 if test "$wxUSE_TEXTFILE" != "yes"; then
698dcdb6 15189 echo "configure: warning: wxConfig requires wxTextFile and it won't be compiled without it" 1>&2
10f2d63a 15190 else
698dcdb6 15191 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15192#define wxUSE_CONFIG 1
15193EOF
15194
15195 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
15196 fi
15197fi
15198
15199if test "$wxUSE_INTL" = "yes" ; then
15200 if test "$wxUSE_FILE" != "yes"; then
698dcdb6 15201 echo "configure: warning: I18n code requires wxFile and it won't be compiled without it" 1>&2
10f2d63a 15202 else
698dcdb6 15203 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15204#define wxUSE_INTL 1
15205EOF
15206
15207 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
f6bcfd97 15208 GUIDIST="$GUIDIST INTL_DIST"
10f2d63a
VZ
15209 fi
15210fi
15211
15212if test "$wxUSE_LOG" = "yes"; then
698dcdb6 15213 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15214#define wxUSE_LOG 1
15215EOF
15216
15217fi
15218
15219if test "$wxUSE_LONGLONG" = "yes"; then
698dcdb6 15220 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15221#define wxUSE_LONGLONG 1
15222EOF
15223
15224fi
15225
e8f65ba6 15226if test "$wxUSE_GEOMETRY" = "yes"; then
698dcdb6 15227 cat >> confdefs.h <<\EOF
e8f65ba6
RR
15228#define wxUSE_GEOMETRY 1
15229EOF
15230
15231fi
15232
10f2d63a 15233if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
698dcdb6 15234 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15235#define wxUSE_DIALUP_MANAGER 1
15236EOF
15237
70f7a477 15238 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
10f2d63a
VZ
15239fi
15240
15241if test "$wxUSE_STREAMS" = "yes" ; then
698dcdb6 15242 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15243#define wxUSE_STREAMS 1
15244EOF
15245
15246fi
15247
1e487827 15248
1e6feb95 15249if test "$wxUSE_DATETIME" = "yes"; then
698dcdb6 15250 for ac_func in strptime
83307f33 15251do
698dcdb6 15252echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
54276ccf 15253echo "configure:15254: checking for $ac_func" >&5
698dcdb6
VZ
15254if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15255 echo $ac_n "(cached) $ac_c" 1>&6
15256else
15257 cat > conftest.$ac_ext <<EOF
54276ccf 15258#line 15259 "configure"
83307f33
VZ
15259#include "confdefs.h"
15260/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 15261 which can conflict with char $ac_func(); below. */
83307f33
VZ
15262#include <assert.h>
15263/* Override any gcc2 internal prototype to avoid an error. */
15264/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
15265 builtin and then its argument prototype would still apply. */
15266char $ac_func();
15267
15268int main() {
83307f33
VZ
15269
15270/* The GNU C library defines this for functions which it implements
15271 to always fail with ENOSYS. Some functions are actually named
15272 something starting with __ and the normal name is an alias. */
15273#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15274choke me
15275#else
698dcdb6 15276$ac_func();
83307f33
VZ
15277#endif
15278
698dcdb6 15279; return 0; }
83307f33 15280EOF
54276ccf 15281if { (eval echo configure:15282: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
15282 rm -rf conftest*
15283 eval "ac_cv_func_$ac_func=yes"
15284else
15285 echo "configure: failed program was:" >&5
15286 cat conftest.$ac_ext >&5
15287 rm -rf conftest*
15288 eval "ac_cv_func_$ac_func=no"
15289fi
15290rm -f conftest*
15291fi
83307f33 15292
698dcdb6
VZ
15293if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15294 echo "$ac_t""yes" 1>&6
15295 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15296 cat >> confdefs.h <<EOF
15297#define $ac_tr_func 1
15298EOF
15299
15300else
15301 echo "$ac_t""no" 1>&6
83307f33
VZ
15302fi
15303done
15304
1e487827 15305
698dcdb6 15306 echo $ac_n "checking for timezone variable in <time.h>""... $ac_c" 1>&6
54276ccf 15307echo "configure:15308: checking for timezone variable in <time.h>" >&5
698dcdb6
VZ
15308if eval "test \"`echo '$''{'wx_cv_var_timezone'+set}'`\" = set"; then
15309 echo $ac_n "(cached) $ac_c" 1>&6
15310else
15311
15312 cat > conftest.$ac_ext <<EOF
54276ccf 15313#line 15314 "configure"
360d6699
VZ
15314#include "confdefs.h"
15315
b4085ce6 15316 #include <time.h>
698dcdb6
VZ
15317
15318int main() {
360d6699
VZ
15319
15320 int tz;
15321 tz = __timezone;
698dcdb6
VZ
15322
15323; return 0; }
15324EOF
54276ccf 15325if { (eval echo configure:15326: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
15326 rm -rf conftest*
15327
360d6699 15328 wx_cv_var_timezone=__timezone
698dcdb6 15329
360d6699 15330else
698dcdb6
VZ
15331 echo "configure: failed program was:" >&5
15332 cat conftest.$ac_ext >&5
15333 rm -rf conftest*
15334
15335 cat > conftest.$ac_ext <<EOF
54276ccf 15336#line 15337 "configure"
360d6699
VZ
15337#include "confdefs.h"
15338
b4085ce6 15339 #include <time.h>
698dcdb6
VZ
15340
15341int main() {
360d6699
VZ
15342
15343 int tz;
15344 tz = _timezone;
698dcdb6
VZ
15345
15346; return 0; }
15347EOF
54276ccf 15348if { (eval echo configure:15349: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
15349 rm -rf conftest*
15350
360d6699 15351 wx_cv_var_timezone=_timezone
698dcdb6 15352
5357c8e8 15353else
698dcdb6
VZ
15354 echo "configure: failed program was:" >&5
15355 cat conftest.$ac_ext >&5
15356 rm -rf conftest*
15357
15358 cat > conftest.$ac_ext <<EOF
54276ccf 15359#line 15360 "configure"
5357c8e8
VZ
15360#include "confdefs.h"
15361
b4085ce6 15362 #include <time.h>
698dcdb6
VZ
15363
15364int main() {
5357c8e8
VZ
15365
15366 int tz;
15367 tz = timezone;
698dcdb6
VZ
15368
15369; return 0; }
15370EOF
54276ccf 15371if { (eval echo configure:15372: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
15372 rm -rf conftest*
15373
5357c8e8 15374 wx_cv_var_timezone=timezone
698dcdb6 15375
360d6699 15376else
698dcdb6
VZ
15377 echo "configure: failed program was:" >&5
15378 cat conftest.$ac_ext >&5
15379 rm -rf conftest*
15380 { echo "configure: error: no timezone variable" 1>&2; exit 1; }
15381
360d6699 15382fi
698dcdb6
VZ
15383rm -f conftest*
15384
15385
360d6699 15386fi
698dcdb6
VZ
15387rm -f conftest*
15388
15389
6232543b 15390fi
698dcdb6
VZ
15391rm -f conftest*
15392
15393
1e487827 15394fi
703e0a69 15395
698dcdb6
VZ
15396echo "$ac_t""$wx_cv_var_timezone" 1>&6
15397
15398 cat >> confdefs.h <<EOF
360d6699
VZ
15399#define WX_TIMEZONE $wx_cv_var_timezone
15400EOF
15401
698dcdb6
VZ
15402
15403 for ac_func in localtime
afc31813 15404do
698dcdb6 15405echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
54276ccf 15406echo "configure:15407: checking for $ac_func" >&5
698dcdb6
VZ
15407if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15408 echo $ac_n "(cached) $ac_c" 1>&6
15409else
15410 cat > conftest.$ac_ext <<EOF
54276ccf 15411#line 15412 "configure"
10f2d63a 15412#include "confdefs.h"
afc31813 15413/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 15414 which can conflict with char $ac_func(); below. */
afc31813
VZ
15415#include <assert.h>
15416/* Override any gcc2 internal prototype to avoid an error. */
15417/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
15418 builtin and then its argument prototype would still apply. */
15419char $ac_func();
15420
15421int main() {
afc31813
VZ
15422
15423/* The GNU C library defines this for functions which it implements
15424 to always fail with ENOSYS. Some functions are actually named
15425 something starting with __ and the normal name is an alias. */
15426#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15427choke me
15428#else
698dcdb6 15429$ac_func();
afc31813
VZ
15430#endif
15431
698dcdb6 15432; return 0; }
10f2d63a 15433EOF
54276ccf 15434if { (eval echo configure:15435: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
15435 rm -rf conftest*
15436 eval "ac_cv_func_$ac_func=yes"
15437else
15438 echo "configure: failed program was:" >&5
15439 cat conftest.$ac_ext >&5
15440 rm -rf conftest*
15441 eval "ac_cv_func_$ac_func=no"
15442fi
15443rm -f conftest*
15444fi
afc31813 15445
698dcdb6
VZ
15446if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15447 echo "$ac_t""yes" 1>&6
15448 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15449 cat >> confdefs.h <<EOF
15450#define $ac_tr_func 1
15451EOF
15452
15453else
15454 echo "$ac_t""no" 1>&6
afc31813
VZ
15455fi
15456done
15457
1e487827 15458
698dcdb6
VZ
15459 if test "$ac_cv_func_localtime" = "yes"; then
15460 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
54276ccf 15461echo "configure:15462: checking for tm_gmtoff in struct tm" >&5
698dcdb6
VZ
15462if eval "test \"`echo '$''{'wx_cv_struct_tm_has_gmtoff'+set}'`\" = set"; then
15463 echo $ac_n "(cached) $ac_c" 1>&6
15464else
15465
15466 cat > conftest.$ac_ext <<EOF
54276ccf 15467#line 15468 "configure"
0470b1e6
VZ
15468#include "confdefs.h"
15469
b4085ce6 15470 #include <time.h>
698dcdb6
VZ
15471
15472int main() {
0470b1e6
VZ
15473
15474 struct tm tm;
15475 tm.tm_gmtoff++;
698dcdb6
VZ
15476
15477; return 0; }
15478EOF
54276ccf 15479if { (eval echo configure:15480: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
15480 rm -rf conftest*
15481
f03a98d8 15482 wx_cv_struct_tm_has_gmtoff=yes
698dcdb6 15483
0470b1e6 15484else
698dcdb6
VZ
15485 echo "configure: failed program was:" >&5
15486 cat conftest.$ac_ext >&5
15487 rm -rf conftest*
15488 wx_cv_struct_tm_has_gmtoff=no
15489
0470b1e6 15490fi
698dcdb6
VZ
15491rm -f conftest*
15492
1e487827 15493fi
698dcdb6
VZ
15494
15495echo "$ac_t""$wx_cv_struct_tm_has_gmtoff" 1>&6
6232543b
VS
15496 fi
15497
15498 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
698dcdb6 15499 cat >> confdefs.h <<\EOF
6232543b
VS
15500#define WX_GMTOFF_IN_TM 1
15501EOF
0470b1e6 15502
3fcdd07b
VZ
15503 fi
15504
698dcdb6 15505 for ac_func in gettimeofday ftime
3fcdd07b 15506do
698dcdb6 15507echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
54276ccf 15508echo "configure:15509: checking for $ac_func" >&5
698dcdb6
VZ
15509if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15510 echo $ac_n "(cached) $ac_c" 1>&6
15511else
15512 cat > conftest.$ac_ext <<EOF
54276ccf 15513#line 15514 "configure"
3fcdd07b
VZ
15514#include "confdefs.h"
15515/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 15516 which can conflict with char $ac_func(); below. */
3fcdd07b
VZ
15517#include <assert.h>
15518/* Override any gcc2 internal prototype to avoid an error. */
15519/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
15520 builtin and then its argument prototype would still apply. */
15521char $ac_func();
15522
15523int main() {
3fcdd07b
VZ
15524
15525/* The GNU C library defines this for functions which it implements
15526 to always fail with ENOSYS. Some functions are actually named
15527 something starting with __ and the normal name is an alias. */
15528#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15529choke me
15530#else
698dcdb6 15531$ac_func();
3fcdd07b
VZ
15532#endif
15533
698dcdb6
VZ
15534; return 0; }
15535EOF
54276ccf 15536if { (eval echo configure:15537: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
15537 rm -rf conftest*
15538 eval "ac_cv_func_$ac_func=yes"
15539else
15540 echo "configure: failed program was:" >&5
15541 cat conftest.$ac_ext >&5
15542 rm -rf conftest*
15543 eval "ac_cv_func_$ac_func=no"
15544fi
15545rm -f conftest*
15546fi
15547
15548if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15549 echo "$ac_t""yes" 1>&6
15550 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15551 cat >> confdefs.h <<EOF
15552#define $ac_tr_func 1
3fcdd07b
VZ
15553EOF
15554 break
698dcdb6
VZ
15555else
15556 echo "$ac_t""no" 1>&6
3fcdd07b
VZ
15557fi
15558done
15559
afc31813 15560
698dcdb6
VZ
15561 if test "$ac_cv_func_gettimeofday" = "yes"; then
15562 echo $ac_n "checking whether gettimeofday takes two arguments""... $ac_c" 1>&6
54276ccf 15563echo "configure:15564: checking whether gettimeofday takes two arguments" >&5
698dcdb6
VZ
15564if eval "test \"`echo '$''{'wx_cv_func_gettimeofday_has_2_args'+set}'`\" = set"; then
15565 echo $ac_n "(cached) $ac_c" 1>&6
15566else
15567
15568
15569 ac_ext=C
15570# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1e487827 15571ac_cpp='$CXXCPP $CPPFLAGS'
698dcdb6
VZ
15572ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15573ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15574cross_compiling=$ac_cv_prog_cxx_cross
703e0a69 15575
698dcdb6
VZ
15576
15577 cat > conftest.$ac_ext <<EOF
54276ccf 15578#line 15579 "configure"
10f2d63a 15579#include "confdefs.h"
afc31813
VZ
15580
15581 #include <sys/time.h>
15582 #include <unistd.h>
698dcdb6
VZ
15583
15584int main() {
afc31813
VZ
15585
15586 struct timeval tv;
15587 struct timezone tz;
15588 gettimeofday(&tv, &tz);
698dcdb6
VZ
15589
15590; return 0; }
15591EOF
54276ccf 15592if { (eval echo configure:15593: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 15593 rm -rf conftest*
afc31813 15594 wx_cv_func_gettimeofday_has_2_args=yes
10f2d63a 15595else
698dcdb6
VZ
15596 echo "configure: failed program was:" >&5
15597 cat conftest.$ac_ext >&5
15598 rm -rf conftest*
15599 cat > conftest.$ac_ext <<EOF
54276ccf 15600#line 15601 "configure"
10f2d63a 15601#include "confdefs.h"
afc31813
VZ
15602
15603 #include <sys/time.h>
15604 #include <unistd.h>
698dcdb6
VZ
15605
15606int main() {
afc31813
VZ
15607
15608 struct timeval tv;
15609 gettimeofday(&tv);
698dcdb6
VZ
15610
15611; return 0; }
15612EOF
54276ccf 15613if { (eval echo configure:15614: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 15614 rm -rf conftest*
afc31813 15615 wx_cv_func_gettimeofday_has_2_args=no
10f2d63a 15616else
698dcdb6
VZ
15617 echo "configure: failed program was:" >&5
15618 cat conftest.$ac_ext >&5
15619 rm -rf conftest*
15620 wx_cv_func_gettimeofday_has_2_args=unknown
15621
10f2d63a 15622fi
698dcdb6
VZ
15623rm -f conftest*
15624
10f2d63a 15625fi
698dcdb6 15626rm -f conftest*
afc31813 15627 ac_ext=c
698dcdb6 15628# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10f2d63a 15629ac_cpp='$CPP $CPPFLAGS'
698dcdb6
VZ
15630ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15631ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15632cross_compiling=$ac_cv_prog_cc_cross
10f2d63a 15633
698dcdb6 15634
afc31813 15635fi
698dcdb6
VZ
15636
15637echo "$ac_t""$wx_cv_func_gettimeofday_has_2_args" 1>&6
c63c7106 15638
afc31813 15639 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
698dcdb6 15640 cat >> confdefs.h <<\EOF
afc31813
VZ
15641#define WX_GETTIMEOFDAY_NO_TZ 1
15642EOF
15643
15644 fi
15645 fi
15646
698dcdb6 15647 cat >> confdefs.h <<\EOF
afc31813
VZ
15648#define wxUSE_TIMEDATE 1
15649EOF
15650
15651 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
15652fi
15653
698dcdb6 15654
b089607b
VZ
15655if test "$TOOLKIT" != "MSW"; then
15656
afc31813 15657if test "$wxUSE_SOCKETS" = "yes"; then
698dcdb6 15658 echo $ac_n "checking for socket""... $ac_c" 1>&6
54276ccf 15659echo "configure:15660: checking for socket" >&5
698dcdb6
VZ
15660if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
15661 echo $ac_n "(cached) $ac_c" 1>&6
c63c7106 15662else
698dcdb6 15663 cat > conftest.$ac_ext <<EOF
54276ccf 15664#line 15665 "configure"
c63c7106
VZ
15665#include "confdefs.h"
15666/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 15667 which can conflict with char socket(); below. */
c63c7106
VZ
15668#include <assert.h>
15669/* Override any gcc2 internal prototype to avoid an error. */
15670/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
15671 builtin and then its argument prototype would still apply. */
15672char socket();
15673
15674int main() {
c63c7106
VZ
15675
15676/* The GNU C library defines this for functions which it implements
15677 to always fail with ENOSYS. Some functions are actually named
15678 something starting with __ and the normal name is an alias. */
15679#if defined (__stub_socket) || defined (__stub___socket)
15680choke me
15681#else
698dcdb6 15682socket();
c63c7106
VZ
15683#endif
15684
698dcdb6
VZ
15685; return 0; }
15686EOF
54276ccf 15687if { (eval echo configure:15688: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
15688 rm -rf conftest*
15689 eval "ac_cv_func_socket=yes"
15690else
15691 echo "configure: failed program was:" >&5
15692 cat conftest.$ac_ext >&5
15693 rm -rf conftest*
15694 eval "ac_cv_func_socket=no"
15695fi
15696rm -f conftest*
15697fi
15698
15699if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
15700 echo "$ac_t""yes" 1>&6
c63c7106
VZ
15701 :
15702else
698dcdb6
VZ
15703 echo "$ac_t""no" 1>&6
15704echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
54276ccf 15705echo "configure:15706: checking for socket in -lsocket" >&5
698dcdb6
VZ
15706ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
15707if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15708 echo $ac_n "(cached) $ac_c" 1>&6
c63c7106 15709else
698dcdb6 15710 ac_save_LIBS="$LIBS"
c63c7106 15711LIBS="-lsocket $LIBS"
698dcdb6 15712cat > conftest.$ac_ext <<EOF
54276ccf 15713#line 15714 "configure"
c63c7106
VZ
15714#include "confdefs.h"
15715/* Override any gcc2 internal prototype to avoid an error. */
15716/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
15717 builtin and then its argument prototype would still apply. */
15718char socket();
15719
15720int main() {
15721socket()
15722; return 0; }
15723EOF
54276ccf 15724if { (eval echo configure:15725: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
15725 rm -rf conftest*
15726 eval "ac_cv_lib_$ac_lib_var=yes"
15727else
15728 echo "configure: failed program was:" >&5
15729 cat conftest.$ac_ext >&5
15730 rm -rf conftest*
15731 eval "ac_cv_lib_$ac_lib_var=no"
15732fi
15733rm -f conftest*
15734LIBS="$ac_save_LIBS"
15735
15736fi
15737if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15738 echo "$ac_t""yes" 1>&6
c63c7106 15739 INET_LINK="$INET_LINK -lsocket"
c63c7106 15740else
698dcdb6 15741 echo "$ac_t""no" 1>&6
afc31813 15742
698dcdb6 15743 echo "configure: warning: socket library not found - sockets will be disabled" 1>&2
afc31813 15744 wxUSE_SOCKETS=no
698dcdb6
VZ
15745
15746
10f2d63a
VZ
15747fi
15748
698dcdb6 15749
6232543b 15750fi
b089607b 15751
1e487827 15752fi
afc31813 15753
51a9faba 15754
698dcdb6
VZ
15755if test "$wxUSE_SOCKETS" = "yes" ; then
15756 echo $ac_n "checking what is the type of the third argument of getsockname""... $ac_c" 1>&6
54276ccf 15757echo "configure:15758: checking what is the type of the third argument of getsockname" >&5
698dcdb6
VZ
15758if eval "test \"`echo '$''{'wx_cv_type_getsockname3'+set}'`\" = set"; then
15759 echo $ac_n "(cached) $ac_c" 1>&6
15760else
15761
15762
15763 ac_ext=C
15764# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1e487827 15765ac_cpp='$CXXCPP $CPPFLAGS'
698dcdb6
VZ
15766ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15767ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15768cross_compiling=$ac_cv_prog_cxx_cross
703e0a69 15769
698dcdb6
VZ
15770
15771 cat > conftest.$ac_ext <<EOF
54276ccf 15772#line 15773 "configure"
afc31813 15773#include "confdefs.h"
51a9faba 15774
3ace2e6d 15775 #include <sys/types.h>
51a9faba 15776 #include <sys/socket.h>
698dcdb6
VZ
15777
15778int main() {
51a9faba
VZ
15779
15780 socklen_t len;
15781 getsockname(0, 0, &len);
698dcdb6
VZ
15782
15783; return 0; }
15784EOF
54276ccf 15785if { (eval echo configure:15786: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 15786 rm -rf conftest*
51a9faba 15787 wx_cv_type_getsockname3=socklen_t
afc31813 15788else
698dcdb6
VZ
15789 echo "configure: failed program was:" >&5
15790 cat conftest.$ac_ext >&5
15791 rm -rf conftest*
15792 cat > conftest.$ac_ext <<EOF
54276ccf 15793#line 15794 "configure"
afc31813 15794#include "confdefs.h"
51a9faba 15795
3ace2e6d 15796 #include <sys/types.h>
51a9faba 15797 #include <sys/socket.h>
698dcdb6
VZ
15798
15799int main() {
51a9faba
VZ
15800
15801 size_t len;
15802 getsockname(0, 0, &len);
698dcdb6
VZ
15803
15804; return 0; }
15805EOF
54276ccf 15806if { (eval echo configure:15807: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 15807 rm -rf conftest*
51a9faba 15808 wx_cv_type_getsockname3=size_t
afc31813 15809else
698dcdb6
VZ
15810 echo "configure: failed program was:" >&5
15811 cat conftest.$ac_ext >&5
15812 rm -rf conftest*
15813 cat > conftest.$ac_ext <<EOF
54276ccf 15814#line 15815 "configure"
afc31813 15815#include "confdefs.h"
51a9faba 15816
3ace2e6d 15817 #include <sys/types.h>
51a9faba 15818 #include <sys/socket.h>
698dcdb6
VZ
15819
15820int main() {
51a9faba
VZ
15821
15822 int len;
15823 getsockname(0, 0, &len);
698dcdb6
VZ
15824
15825; return 0; }
15826EOF
54276ccf 15827if { (eval echo configure:15828: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 15828 rm -rf conftest*
51a9faba 15829 wx_cv_type_getsockname3=int
afc31813 15830else
698dcdb6
VZ
15831 echo "configure: failed program was:" >&5
15832 cat conftest.$ac_ext >&5
15833 rm -rf conftest*
15834 wx_cv_type_getsockname3=unknown
15835
afc31813 15836fi
698dcdb6
VZ
15837rm -f conftest*
15838
afc31813 15839fi
698dcdb6
VZ
15840rm -f conftest*
15841
afc31813 15842fi
698dcdb6 15843rm -f conftest*
51a9faba
VZ
15844
15845 ac_ext=c
698dcdb6 15846# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
afc31813 15847ac_cpp='$CPP $CPPFLAGS'
698dcdb6
VZ
15848ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15849ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15850cross_compiling=$ac_cv_prog_cc_cross
afc31813 15851
698dcdb6 15852
51a9faba 15853fi
698dcdb6
VZ
15854
15855echo "$ac_t""$wx_cv_type_getsockname3" 1>&6
51a9faba
VZ
15856
15857 if test "$wx_cv_type_getsockname3" = "unknown"; then
15858 wxUSE_SOCKETS=no
698dcdb6 15859 echo "configure: warning: Couldn't find socklen_t synonym for this system" 1>&2
51a9faba 15860 else
698dcdb6 15861 cat >> confdefs.h <<EOF
51a9faba
VZ
15862#define SOCKLEN_T $wx_cv_type_getsockname3
15863EOF
15864
15865 fi
15866fi
afc31813 15867
c521c494
RL
15868fi
15869
51a9faba 15870if test "$wxUSE_SOCKETS" = "yes" ; then
698dcdb6 15871 cat >> confdefs.h <<\EOF
afc31813
VZ
15872#define wxUSE_SOCKETS 1
15873EOF
15874
70f7a477 15875 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
afc31813
VZ
15876 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS protocol"
15877fi
15878
698dcdb6 15879
dc3d889d
VZ
15880if test "$wxUSE_GUI" = "yes"; then
15881
b089607b
VZ
15882if test "$TOOLKIT" != "MSW"; then
15883
ceded8b9 15884if test "$wxUSE_JOYSTICK" = "yes"; then
698dcdb6 15885 for ac_hdr in linux/joystick.h
10f2d63a 15886do
698dcdb6
VZ
15887ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15888echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
54276ccf 15889echo "configure:15890: checking for $ac_hdr" >&5
698dcdb6
VZ
15890if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15891 echo $ac_n "(cached) $ac_c" 1>&6
15892else
15893 cat > conftest.$ac_ext <<EOF
54276ccf 15894#line 15895 "configure"
10f2d63a 15895#include "confdefs.h"
698dcdb6
VZ
15896#include <$ac_hdr>
15897EOF
15898ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
54276ccf 15899{ (eval echo configure:15900: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
15900ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15901if test -z "$ac_err"; then
15902 rm -rf conftest*
15903 eval "ac_cv_header_$ac_safe=yes"
10f2d63a 15904else
698dcdb6
VZ
15905 echo "$ac_err" >&5
15906 echo "configure: failed program was:" >&5
10f2d63a 15907 cat conftest.$ac_ext >&5
698dcdb6
VZ
15908 rm -rf conftest*
15909 eval "ac_cv_header_$ac_safe=no"
10f2d63a 15910fi
698dcdb6 15911rm -f conftest*
10f2d63a 15912fi
698dcdb6
VZ
15913if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15914 echo "$ac_t""yes" 1>&6
15915 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15916 cat >> confdefs.h <<EOF
15917#define $ac_tr_hdr 1
10f2d63a 15918EOF
698dcdb6
VZ
15919
15920else
15921 echo "$ac_t""no" 1>&6
10f2d63a
VZ
15922fi
15923done
15924
b089607b 15925 if test "$ac_cv_header_linux_joystick_h" != "yes"; then
ceded8b9 15926 wxUSE_JOYSTICK=no
698dcdb6 15927 echo "configure: warning: Joystick not supported by this system" 1>&2
b089607b
VZ
15928 fi
15929fi
15930
15931fi
15932
ceded8b9 15933if test "$wxUSE_JOYSTICK" = "yes"; then
698dcdb6 15934 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15935#define wxUSE_JOYSTICK 1
15936EOF
15937
15938 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
10f2d63a
VZ
15939fi
15940
dc3d889d
VZ
15941fi
15942
698dcdb6 15943
b089607b
VZ
15944if test "$TOOLKIT" != "MSW"; then
15945
10f2d63a
VZ
15946HAVE_DL_FUNCS=0
15947HAVE_SHL_FUNCS=0
15948if test "$wxUSE_DYNLIB_CLASS" = "yes"; then
b4085ce6
GD
15949 if test "$USE_MAC" = 1; then
15950 HAVE_DL_FUNCS=1
15951 else
698dcdb6 15952 for ac_func in dlopen
10f2d63a 15953do
698dcdb6 15954echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
54276ccf 15955echo "configure:15956: checking for $ac_func" >&5
698dcdb6
VZ
15956if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15957 echo $ac_n "(cached) $ac_c" 1>&6
15958else
15959 cat > conftest.$ac_ext <<EOF
54276ccf 15960#line 15961 "configure"
10f2d63a
VZ
15961#include "confdefs.h"
15962/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 15963 which can conflict with char $ac_func(); below. */
10f2d63a
VZ
15964#include <assert.h>
15965/* Override any gcc2 internal prototype to avoid an error. */
15966/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
15967 builtin and then its argument prototype would still apply. */
15968char $ac_func();
15969
15970int main() {
10f2d63a
VZ
15971
15972/* The GNU C library defines this for functions which it implements
15973 to always fail with ENOSYS. Some functions are actually named
15974 something starting with __ and the normal name is an alias. */
15975#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15976choke me
15977#else
698dcdb6 15978$ac_func();
10f2d63a
VZ
15979#endif
15980
698dcdb6
VZ
15981; return 0; }
15982EOF
54276ccf 15983if { (eval echo configure:15984: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
15984 rm -rf conftest*
15985 eval "ac_cv_func_$ac_func=yes"
15986else
15987 echo "configure: failed program was:" >&5
15988 cat conftest.$ac_ext >&5
15989 rm -rf conftest*
15990 eval "ac_cv_func_$ac_func=no"
15991fi
15992rm -f conftest*
15993fi
15994
15995if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15996 echo "$ac_t""yes" 1>&6
15997 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15998 cat >> confdefs.h <<EOF
15999#define $ac_tr_func 1
16000EOF
16001
16002 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16003#define HAVE_DLOPEN 1
16004EOF
16005
16006 HAVE_DL_FUNCS=1
698dcdb6 16007
10f2d63a 16008else
698dcdb6
VZ
16009 echo "$ac_t""no" 1>&6
16010echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
54276ccf 16011echo "configure:16012: checking for dlopen in -ldl" >&5
698dcdb6
VZ
16012ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
16013if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16014 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 16015else
698dcdb6 16016 ac_save_LIBS="$LIBS"
10f2d63a 16017LIBS="-ldl $LIBS"
698dcdb6 16018cat > conftest.$ac_ext <<EOF
54276ccf 16019#line 16020 "configure"
10f2d63a
VZ
16020#include "confdefs.h"
16021/* Override any gcc2 internal prototype to avoid an error. */
16022/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
16023 builtin and then its argument prototype would still apply. */
16024char dlopen();
16025
16026int main() {
16027dlopen()
16028; return 0; }
16029EOF
54276ccf 16030if { (eval echo configure:16031: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
16031 rm -rf conftest*
16032 eval "ac_cv_lib_$ac_lib_var=yes"
16033else
16034 echo "configure: failed program was:" >&5
16035 cat conftest.$ac_ext >&5
16036 rm -rf conftest*
16037 eval "ac_cv_lib_$ac_lib_var=no"
16038fi
16039rm -f conftest*
16040LIBS="$ac_save_LIBS"
16041
16042fi
16043if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16044 echo "$ac_t""yes" 1>&6
16045
16046 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16047#define HAVE_DLOPEN 1
16048EOF
16049
16050 HAVE_DL_FUNCS=1
16051 LIBS="$LIBS -ldl"
698dcdb6 16052
10f2d63a 16053else
698dcdb6 16054 echo "$ac_t""no" 1>&6
10f2d63a 16055
698dcdb6 16056 for ac_func in shl_load
10f2d63a 16057do
698dcdb6 16058echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
54276ccf 16059echo "configure:16060: checking for $ac_func" >&5
698dcdb6
VZ
16060if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16061 echo $ac_n "(cached) $ac_c" 1>&6
16062else
16063 cat > conftest.$ac_ext <<EOF
54276ccf 16064#line 16065 "configure"
10f2d63a
VZ
16065#include "confdefs.h"
16066/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 16067 which can conflict with char $ac_func(); below. */
10f2d63a
VZ
16068#include <assert.h>
16069/* Override any gcc2 internal prototype to avoid an error. */
16070/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
16071 builtin and then its argument prototype would still apply. */
16072char $ac_func();
16073
16074int main() {
10f2d63a
VZ
16075
16076/* The GNU C library defines this for functions which it implements
16077 to always fail with ENOSYS. Some functions are actually named
16078 something starting with __ and the normal name is an alias. */
16079#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16080choke me
16081#else
698dcdb6 16082$ac_func();
10f2d63a
VZ
16083#endif
16084
698dcdb6
VZ
16085; return 0; }
16086EOF
54276ccf 16087if { (eval echo configure:16088: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
16088 rm -rf conftest*
16089 eval "ac_cv_func_$ac_func=yes"
16090else
16091 echo "configure: failed program was:" >&5
16092 cat conftest.$ac_ext >&5
16093 rm -rf conftest*
16094 eval "ac_cv_func_$ac_func=no"
16095fi
16096rm -f conftest*
16097fi
16098
16099if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16100 echo "$ac_t""yes" 1>&6
16101 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16102 cat >> confdefs.h <<EOF
16103#define $ac_tr_func 1
16104EOF
16105
16106 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16107#define HAVE_SHL_LOAD 1
16108EOF
16109
16110 HAVE_SHL_FUNCS=1
698dcdb6 16111
10f2d63a 16112else
698dcdb6
VZ
16113 echo "$ac_t""no" 1>&6
16114echo $ac_n "checking for dld in -lshl_load""... $ac_c" 1>&6
54276ccf 16115echo "configure:16116: checking for dld in -lshl_load" >&5
698dcdb6
VZ
16116ac_lib_var=`echo shl_load'_'dld | sed 'y%./+-%__p_%'`
16117if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16118 echo $ac_n "(cached) $ac_c" 1>&6
f6bcfd97 16119else
698dcdb6 16120 ac_save_LIBS="$LIBS"
f6bcfd97 16121LIBS="-lshl_load $LIBS"
698dcdb6 16122cat > conftest.$ac_ext <<EOF
54276ccf 16123#line 16124 "configure"
f6bcfd97
BP
16124#include "confdefs.h"
16125/* Override any gcc2 internal prototype to avoid an error. */
16126/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
16127 builtin and then its argument prototype would still apply. */
16128char dld();
16129
16130int main() {
16131dld()
16132; return 0; }
16133EOF
54276ccf 16134if { (eval echo configure:16135: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
16135 rm -rf conftest*
16136 eval "ac_cv_lib_$ac_lib_var=yes"
16137else
16138 echo "configure: failed program was:" >&5
16139 cat conftest.$ac_ext >&5
16140 rm -rf conftest*
16141 eval "ac_cv_lib_$ac_lib_var=no"
16142fi
16143rm -f conftest*
16144LIBS="$ac_save_LIBS"
f6bcfd97 16145
698dcdb6
VZ
16146fi
16147if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16148 echo "$ac_t""yes" 1>&6
16149
f6bcfd97
BP
16150 HAVE_SHL_FUNCS=1
16151 LIBS="$LIBS -ldld"
698dcdb6
VZ
16152
16153else
16154 echo "$ac_t""no" 1>&6
f6bcfd97
BP
16155fi
16156
698dcdb6 16157
10f2d63a
VZ
16158fi
16159done
16160
698dcdb6 16161
10f2d63a
VZ
16162fi
16163
698dcdb6 16164
10f2d63a
VZ
16165fi
16166done
16167
1e487827 16168
698dcdb6
VZ
16169 if test "$HAVE_DL_FUNCS" = 1; then
16170 for ac_func in dlerror
f6bcfd97 16171do
698dcdb6 16172echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
54276ccf 16173echo "configure:16174: checking for $ac_func" >&5
698dcdb6
VZ
16174if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16175 echo $ac_n "(cached) $ac_c" 1>&6
16176else
16177 cat > conftest.$ac_ext <<EOF
54276ccf 16178#line 16179 "configure"
f6bcfd97
BP
16179#include "confdefs.h"
16180/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 16181 which can conflict with char $ac_func(); below. */
f6bcfd97
BP
16182#include <assert.h>
16183/* Override any gcc2 internal prototype to avoid an error. */
16184/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
16185 builtin and then its argument prototype would still apply. */
16186char $ac_func();
16187
16188int main() {
f6bcfd97
BP
16189
16190/* The GNU C library defines this for functions which it implements
16191 to always fail with ENOSYS. Some functions are actually named
16192 something starting with __ and the normal name is an alias. */
16193#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16194choke me
16195#else
698dcdb6 16196$ac_func();
f6bcfd97
BP
16197#endif
16198
698dcdb6
VZ
16199; return 0; }
16200EOF
54276ccf 16201if { (eval echo configure:16202: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
16202 rm -rf conftest*
16203 eval "ac_cv_func_$ac_func=yes"
16204else
16205 echo "configure: failed program was:" >&5
16206 cat conftest.$ac_ext >&5
16207 rm -rf conftest*
16208 eval "ac_cv_func_$ac_func=no"
16209fi
16210rm -f conftest*
16211fi
16212
16213if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16214 echo "$ac_t""yes" 1>&6
16215 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16216 cat >> confdefs.h <<EOF
16217#define $ac_tr_func 1
16218EOF
16219 cat >> confdefs.h <<\EOF
f6bcfd97
BP
16220#define HAVE_DLERROR 1
16221EOF
16222
16223else
698dcdb6
VZ
16224 echo "$ac_t""no" 1>&6
16225echo $ac_n "checking for dlerror in -ldl""... $ac_c" 1>&6
54276ccf 16226echo "configure:16227: checking for dlerror in -ldl" >&5
698dcdb6
VZ
16227ac_lib_var=`echo dl'_'dlerror | sed 'y%./+-%__p_%'`
16228if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16229 echo $ac_n "(cached) $ac_c" 1>&6
f6bcfd97 16230else
698dcdb6 16231 ac_save_LIBS="$LIBS"
f6bcfd97 16232LIBS="-ldl $LIBS"
698dcdb6 16233cat > conftest.$ac_ext <<EOF
54276ccf 16234#line 16235 "configure"
f6bcfd97
BP
16235#include "confdefs.h"
16236/* Override any gcc2 internal prototype to avoid an error. */
16237/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
16238 builtin and then its argument prototype would still apply. */
16239char dlerror();
16240
16241int main() {
16242dlerror()
16243; return 0; }
16244EOF
54276ccf 16245if { (eval echo configure:16246: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
16246 rm -rf conftest*
16247 eval "ac_cv_lib_$ac_lib_var=yes"
16248else
16249 echo "configure: failed program was:" >&5
16250 cat conftest.$ac_ext >&5
16251 rm -rf conftest*
16252 eval "ac_cv_lib_$ac_lib_var=no"
16253fi
16254rm -f conftest*
16255LIBS="$ac_save_LIBS"
16256
16257fi
16258if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16259 echo "$ac_t""yes" 1>&6
16260 cat >> confdefs.h <<\EOF
f6bcfd97
BP
16261#define HAVE_DLERROR 1
16262EOF
16263
698dcdb6
VZ
16264else
16265 echo "$ac_t""no" 1>&6
f6bcfd97
BP
16266fi
16267
16268fi
16269done
16270
16271 fi
b4085ce6 16272 fi
f6bcfd97 16273
10f2d63a
VZ
16274 if test "$HAVE_DL_FUNCS" = 0; then
16275 if test "$HAVE_SHL_FUNCS" = 0; then
16276 if test "$USE_UNIX" = 1; then
698dcdb6 16277 echo "configure: warning: Missing dynamic loading support, several features will be disabled" 1>&2
10f2d63a
VZ
16278 wxUSE_DYNLIB_CLASS=no
16279 else
698dcdb6 16280 echo "configure: warning: Assuming wxLibrary class works on this platform" 1>&2
10f2d63a
VZ
16281 fi
16282 fi
16283 fi
16284fi
16285
b089607b
VZ
16286fi
16287
10f2d63a 16288if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
698dcdb6 16289 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16290#define wxUSE_DYNLIB_CLASS 1
16291EOF
16292
b12915c1
VZ
16293else
16294 wxUSE_ODBC=no
16295 wxUSE_SERIAL=no
10f2d63a
VZ
16296fi
16297
698dcdb6 16298
1e6feb95
VZ
16299if test "$wxUSE_FONTMAP" = "yes" ; then
16300 cat >> confdefs.h <<\EOF
16301#define wxUSE_FONTMAP 1
16302EOF
16303
16304fi
16305
10f2d63a 16306if test "$wxUSE_UNICODE" = "yes" ; then
698dcdb6 16307 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16308#define wxUSE_UNICODE 1
16309EOF
16310
16311fi
16312
16313if test "$wxUSE_WCSRTOMBS" = "yes" ; then
698dcdb6 16314 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16315#define wxUSE_WCSRTOMBS 1
16316EOF
16317
16318fi
16319
16320if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
698dcdb6 16321 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16322#define wxUSE_EXPERIMENTAL_PRINTF 1
16323EOF
16324
16325fi
16326
698dcdb6 16327
b12915c1 16328if test "$wxUSE_SERIAL" = "yes" ; then
698dcdb6 16329 cat >> confdefs.h <<\EOF
b12915c1
VZ
16330#define wxUSE_SERIAL 1
16331EOF
16332
16333fi
16334
698dcdb6 16335
10f2d63a
VZ
16336IODBC_C_SRC=""
16337if test "$wxUSE_ODBC" = "yes" ; then
698dcdb6 16338 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16339#define wxUSE_ODBC 1
16340EOF
16341
16342 WXODBCFLAG="-D_IODBC_"
16343 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
10f2d63a
VZ
16344fi
16345
698dcdb6 16346
10f2d63a 16347if test "$wxUSE_POSTSCRIPT" = "yes" ; then
698dcdb6 16348 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16349#define wxUSE_POSTSCRIPT 1
16350EOF
16351
16352fi
16353
698dcdb6 16354cat >> confdefs.h <<\EOF
10f2d63a
VZ
16355#define wxUSE_AFM_FOR_POSTSCRIPT 1
16356EOF
16357
698dcdb6
VZ
16358
16359cat >> confdefs.h <<\EOF
10f2d63a
VZ
16360#define wxUSE_NORMALIZED_PS_FONTS 1
16361EOF
16362
698dcdb6
VZ
16363
16364
10f2d63a 16365if test "$wxUSE_CONSTRAINTS" = "yes"; then
698dcdb6 16366 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16367#define wxUSE_CONSTRAINTS 1
16368EOF
16369
16370 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
16371fi
16372
16373if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
698dcdb6 16374 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16375#define wxUSE_MDI_ARCHITECTURE 1
16376EOF
16377
16378 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
16379fi
16380
16381if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
698dcdb6 16382 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16383#define wxUSE_DOC_VIEW_ARCHITECTURE 1
16384EOF
16385
16386 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
16387 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
16388 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
16389 fi
16390fi
16391
16392if test "$wxUSE_HELP" = "yes"; then
698dcdb6 16393 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16394#define wxUSE_HELP 1
16395EOF
16396
16397 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
16398fi
16399
16400if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
16401 if test "$wxUSE_CONSTRAINTS" != "yes"; then
698dcdb6 16402 echo "configure: warning: Printing support cannot be used without constraints so it won't be compiled without it" 1>&2
10f2d63a 16403 else
698dcdb6 16404 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16405#define wxUSE_PRINTING_ARCHITECTURE 1
16406EOF
16407
16408 fi
16409 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
16410fi
16411
16412if test "$wxUSE_PROLOGIO" = "yes" ; then
698dcdb6 16413 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16414#define wxUSE_PROLOGIO 1
16415EOF
16416
16417fi
16418
16419if test "$wxUSE_RESOURCES" = "yes" ; then
16420 if test "$wxUSE_PROLOGIO" = "yes" ; then
698dcdb6 16421 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16422#define wxUSE_RESOURCES 1
16423EOF
16424
16425 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS resource"
16426 else
698dcdb6 16427 echo "configure: warning: wxWindows ressource system requires PrologIO and can't be compiled without it." 1>&2
10f2d63a
VZ
16428 fi
16429fi
16430
16431if test "$wxUSE_X_RESOURCES" = "yes"; then
698dcdb6 16432 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16433#define wxUSE_X_RESOURCES 1
16434EOF
16435
16436fi
16437
698dcdb6 16438
10f2d63a 16439if test "$wxUSE_IPC" = "yes"; then
eb4efbdc 16440 if test "$wxUSE_SOCKETS" != "yes"; then
698dcdb6 16441 echo "configure: warning: wxWindows IPC classes require sockets" 1>&2
eb4efbdc
VZ
16442 fi
16443
698dcdb6 16444 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16445#define wxUSE_IPC 1
16446EOF
16447
16448fi
16449
16450if test "$wxUSE_CLIPBOARD" = "yes"; then
698dcdb6 16451 cat >> confdefs.h <<\EOF
10f2d63a 16452#define wxUSE_CLIPBOARD 1
1e6feb95
VZ
16453EOF
16454
16455 cat >> confdefs.h <<\EOF
16456#define wxUSE_DATAOBJ 1
10f2d63a
VZ
16457EOF
16458
16459fi
16460
16461if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
16462 if test "$wxUSE_GTK" = 1; then
16463 if test "$WXGTK12" != 1; then
698dcdb6 16464 echo "configure: warning: Drag and drop is only supported under GTK+ 1.2" 1>&2
10f2d63a
VZ
16465 wxUSE_DRAG_AND_DROP=no
16466 fi
16467 fi
16468
16469 if test "$wxUSE_MOTIF" = 1; then
698dcdb6 16470 echo "configure: warning: Drag and drop is not yet supported under Motif" 1>&2
10f2d63a
VZ
16471 wxUSE_DRAG_AND_DROP=no
16472 fi
16473
2c6025bc 16474 if test "$wxUSE_MAC" = 1; then
698dcdb6 16475 echo "configure: warning: Drag and drop is not yet supported under Mac OS X" 1>&2
2c6025bc
GD
16476 wxUSE_DRAG_AND_DROP=no
16477 fi
16478
10f2d63a 16479 if test "$USE_WIN32" = 1; then
698dcdb6
VZ
16480
16481 for ac_hdr in ole2.h
10f2d63a 16482do
698dcdb6
VZ
16483ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16484echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
54276ccf 16485echo "configure:16486: checking for $ac_hdr" >&5
698dcdb6
VZ
16486if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
16487 echo $ac_n "(cached) $ac_c" 1>&6
16488else
16489 cat > conftest.$ac_ext <<EOF
54276ccf 16490#line 16491 "configure"
10f2d63a 16491#include "confdefs.h"
698dcdb6
VZ
16492#include <$ac_hdr>
16493EOF
16494ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
54276ccf 16495{ (eval echo configure:16496: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
16496ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16497if test -z "$ac_err"; then
16498 rm -rf conftest*
16499 eval "ac_cv_header_$ac_safe=yes"
1e487827 16500else
698dcdb6
VZ
16501 echo "$ac_err" >&5
16502 echo "configure: failed program was:" >&5
10f2d63a 16503 cat conftest.$ac_ext >&5
698dcdb6
VZ
16504 rm -rf conftest*
16505 eval "ac_cv_header_$ac_safe=no"
10f2d63a 16506fi
698dcdb6 16507rm -f conftest*
10f2d63a 16508fi
698dcdb6
VZ
16509if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16510 echo "$ac_t""yes" 1>&6
16511 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16512 cat >> confdefs.h <<EOF
16513#define $ac_tr_hdr 1
10f2d63a 16514EOF
698dcdb6
VZ
16515
16516else
16517 echo "$ac_t""no" 1>&6
10f2d63a
VZ
16518fi
16519done
16520
698dcdb6 16521
57fe5ed0 16522 if test "$ac_cv_header_ole2_h" = "yes" ; then
c521c494 16523 if test "$GCC" = yes ; then
b64f0a5f
RL
16524 ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)"
16525 ALL_DEPFILES="$ALL_DEPFILES \$(OLEDEPS)"
c521c494 16526 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
b64f0a5f
RL
16527 LIBS="$LIBS -lole32 -luuid"
16528
16529 if test "$wxUSE_METAFILE" = "yes"; then
698dcdb6 16530 cat >> confdefs.h <<\EOF
b64f0a5f
RL
16531#define wxUSE_METAFILE 1
16532EOF
16533
698dcdb6 16534 cat >> confdefs.h <<\EOF
b64f0a5f
RL
16535#define wxUSE_ENH_METAFILE 1
16536EOF
16537
16538 fi
c521c494
RL
16539 fi
16540 else
698dcdb6 16541 echo "configure: warning: Drag and drop disabled because OLE headers not found" 1>&2
10f2d63a
VZ
16542 wxUSE_DRAG_AND_DROP=no
16543 fi
16544 fi
16545
16546 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
698dcdb6 16547 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16548#define wxUSE_DRAG_AND_DROP 1
16549EOF
16550
16551 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
16552 fi
16553
16554fi
16555
16556if test "$wxUSE_SPLINES" = "yes" ; then
698dcdb6 16557 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16558#define wxUSE_SPLINES 1
16559EOF
16560
16561fi
16562
698dcdb6 16563
1e6feb95
VZ
16564USES_CONTROLS=0
16565if test "$wxUSE_CONTROLS" = "yes"; then
16566 USES_CONTROLS=1
16567fi
16568
10f2d63a 16569if test "$wxUSE_ACCEL" = "yes"; then
698dcdb6 16570 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16571#define wxUSE_ACCEL 1
16572EOF
16573
1e6feb95
VZ
16574 USES_CONTROLS=1
16575fi
16576
16577if test "$wxUSE_BUTTON" = "yes"; then
16578 cat >> confdefs.h <<\EOF
16579#define wxUSE_BUTTON 1
16580EOF
16581
16582 USES_CONTROLS=1
16583fi
16584
16585if test "$wxUSE_BMPBUTTON" = "yes"; then
16586 cat >> confdefs.h <<\EOF
16587#define wxUSE_BMPBUTTON 1
16588EOF
16589
16590 USES_CONTROLS=1
16591fi
16592
16593if test "$wxUSE_CALCTRL" = "yes"; then
16594 cat >> confdefs.h <<\EOF
16595#define wxUSE_CALENDARCTRL 1
16596EOF
16597
16598 USES_CONTROLS=1
16599 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
10f2d63a
VZ
16600fi
16601
16602if test "$wxUSE_CARET" = "yes"; then
698dcdb6 16603 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16604#define wxUSE_CARET 1
16605EOF
16606
1e6feb95 16607 USES_CONTROLS=1
10f2d63a
VZ
16608 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
16609fi
16610
16611if test "$wxUSE_COMBOBOX" = "yes"; then
698dcdb6 16612 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16613#define wxUSE_COMBOBOX 1
16614EOF
16615
1e6feb95 16616 USES_CONTROLS=1
10f2d63a
VZ
16617fi
16618
16619if test "$wxUSE_CHOICE" = "yes"; then
698dcdb6 16620 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16621#define wxUSE_CHOICE 1
16622EOF
16623
1e6feb95 16624 USES_CONTROLS=1
10f2d63a
VZ
16625fi
16626
16627if test "$wxUSE_CHECKBOX" = "yes"; then
698dcdb6 16628 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16629#define wxUSE_CHECKBOX 1
16630EOF
16631
1e6feb95 16632 USES_CONTROLS=1
10f2d63a
VZ
16633fi
16634
16635if test "$wxUSE_CHECKLST" = "yes"; then
698dcdb6 16636 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16637#define wxUSE_CHECKLISTBOX 1
16638EOF
16639
1e6feb95 16640 USES_CONTROLS=1
10f2d63a
VZ
16641 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
16642fi
16643
16644if test "$wxUSE_GAUGE" = "yes"; then
698dcdb6 16645 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16646#define wxUSE_GAUGE 1
16647EOF
16648
1e6feb95 16649 USES_CONTROLS=1
10f2d63a
VZ
16650fi
16651
d6a55c4b
VZ
16652if test "$wxUSE_NEW_GRID" = "yes"; then
16653 wxUSE_GRID="yes"
698dcdb6 16654 cat >> confdefs.h <<\EOF
d6a55c4b 16655#define wxUSE_NEW_GRID 1
10f2d63a
VZ
16656EOF
16657
1e6feb95 16658 USES_CONTROLS=1
d6a55c4b 16659 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS newgrid"
10f2d63a
VZ
16660fi
16661
d6a55c4b 16662if test "$wxUSE_GRID" = "yes"; then
698dcdb6 16663 cat >> confdefs.h <<\EOF
d6a55c4b 16664#define wxUSE_GRID 1
10f2d63a
VZ
16665EOF
16666
1e6feb95 16667 USES_CONTROLS=1
d6a55c4b 16668 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
10f2d63a
VZ
16669fi
16670
16671if test "$wxUSE_IMAGLIST" = "yes"; then
698dcdb6 16672 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16673#define wxUSE_IMAGLIST 1
16674EOF
16675
16676fi
16677
16678if test "$wxUSE_LISTBOX" = "yes"; then
698dcdb6 16679 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16680#define wxUSE_LISTBOX 1
16681EOF
16682
1e6feb95 16683 USES_CONTROLS=1
10f2d63a
VZ
16684fi
16685
16686if test "$wxUSE_LISTCTRL" = "yes"; then
16687 if test "$wxUSE_IMAGLIST" = "yes"; then
698dcdb6 16688 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16689#define wxUSE_LISTCTRL 1
16690EOF
16691
1e6feb95 16692 USES_CONTROLS=1
10f2d63a
VZ
16693 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
16694 else
698dcdb6 16695 echo "configure: warning: wxListCtrl requires wxImageList and won't be compiled without it" 1>&2
10f2d63a
VZ
16696 fi
16697fi
16698
16699if test "$wxUSE_NOTEBOOK" = "yes"; then
698dcdb6 16700 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16701#define wxUSE_NOTEBOOK 1
16702EOF
16703
1e6feb95 16704 USES_CONTROLS=1
10f2d63a
VZ
16705 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
16706fi
16707
16708if test "$wxUSE_RADIOBOX" = "yes"; then
698dcdb6 16709 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16710#define wxUSE_RADIOBOX 1
16711EOF
16712
1e6feb95 16713 USES_CONTROLS=1
10f2d63a
VZ
16714fi
16715
16716if test "$wxUSE_RADIOBTN" = "yes"; then
698dcdb6 16717 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16718#define wxUSE_RADIOBTN 1
16719EOF
16720
1e6feb95 16721 USES_CONTROLS=1
10f2d63a
VZ
16722fi
16723
16724if test "$wxUSE_SASH" = "yes"; then
698dcdb6 16725 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16726#define wxUSE_SASH 1
16727EOF
16728
16729 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
16730fi
16731
16732if test "$wxUSE_SCROLLBAR" = "yes"; then
698dcdb6 16733 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16734#define wxUSE_SCROLLBAR 1
16735EOF
16736
1e6feb95 16737 USES_CONTROLS=1
741a9306 16738 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
10f2d63a
VZ
16739fi
16740
16741if test "$wxUSE_SLIDER" = "yes"; then
698dcdb6 16742 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16743#define wxUSE_SLIDER 1
16744EOF
16745
1e6feb95 16746 USES_CONTROLS=1
10f2d63a
VZ
16747fi
16748
16749if test "$wxUSE_SPINBTN" = "yes"; then
698dcdb6 16750 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16751#define wxUSE_SPINBTN 1
16752EOF
16753
1e6feb95 16754 USES_CONTROLS=1
10f2d63a
VZ
16755fi
16756
56cfaa52 16757if test "$wxUSE_SPINCTRL" = "yes"; then
698dcdb6 16758 cat >> confdefs.h <<\EOF
56cfaa52
RR
16759#define wxUSE_SPINCTRL 1
16760EOF
16761
1e6feb95 16762 USES_CONTROLS=1
56cfaa52
RR
16763fi
16764
10f2d63a 16765if test "$wxUSE_SPLITTER" = "yes"; then
698dcdb6 16766 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16767#define wxUSE_SPLITTER 1
16768EOF
16769
16770 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
16771fi
16772
16773if test "$wxUSE_STATBMP" = "yes"; then
698dcdb6 16774 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16775#define wxUSE_STATBMP 1
16776EOF
16777
1e6feb95 16778 USES_CONTROLS=1
10f2d63a
VZ
16779fi
16780
16781if test "$wxUSE_STATBOX" = "yes"; then
698dcdb6 16782 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16783#define wxUSE_STATBOX 1
16784EOF
16785
1e6feb95
VZ
16786 USES_CONTROLS=1
16787fi
16788
16789if test "$wxUSE_STATTEXT" = "yes"; then
16790 cat >> confdefs.h <<\EOF
16791#define wxUSE_STATTEXT 1
16792EOF
16793
16794 USES_CONTROLS=1
10f2d63a
VZ
16795fi
16796
16797if test "$wxUSE_STATLINE" = "yes"; then
16798 if test "$wxUSE_WINE" = 1 ; then
698dcdb6 16799 echo "configure: warning: wxStaticLine is not supported under WINE" 1>&2
10f2d63a 16800 else
698dcdb6 16801 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16802#define wxUSE_STATLINE 1
16803EOF
16804
1e6feb95 16805 USES_CONTROLS=1
10f2d63a
VZ
16806 fi
16807fi
16808
16809if test "$wxUSE_STATUSBAR" = "yes"; then
698dcdb6 16810 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16811#define wxUSE_STATUSBAR 1
16812EOF
16813
1e6feb95 16814 USES_CONTROLS=1
698dcdb6 16815
2286341c 16816 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
10f2d63a
VZ
16817fi
16818
16819if test "$wxUSE_TABDIALOG" = "yes"; then
698dcdb6 16820 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16821#define wxUSE_TAB_DIALOG 1
16822EOF
16823
16824 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
16825fi
16826
1e6feb95
VZ
16827if test "$wxUSE_TEXTCTRL" = "yes"; then
16828 cat >> confdefs.h <<\EOF
16829#define wxUSE_TEXTCTRL 1
16830EOF
16831
16832 USES_CONTROLS=1
16833 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
16834fi
16835
1db8dc4a 16836if test "$wxUSE_TOGGLEBTN" = "yes"; then
a45d7ab7
GD
16837 if test "$wxUSE_MAC" = 1; then
16838 echo "configure: warning: Toggle button is not yet supported under Mac OS X" 1>&2
16839 wxUSE_TOGGLEBTN=no
16840 fi
16841
16842 if test "$wxUSE_TOGGLEBTN" = "yes"; then
16843 cat >> confdefs.h <<\EOF
1db8dc4a
VZ
16844#define wxUSE_TOGGLEBTN 1
16845EOF
16846
1e6feb95 16847 USES_CONTROLS=1
a45d7ab7 16848 fi
1db8dc4a
VZ
16849fi
16850
360d6699 16851if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
698dcdb6 16852 cat >> confdefs.h <<\EOF
360d6699
VZ
16853#define wxUSE_TOOLBAR_SIMPLE 1
16854EOF
16855
16856 wxUSE_TOOLBAR="yes"
1e6feb95 16857 USES_CONTROLS=1
360d6699
VZ
16858fi
16859
10f2d63a 16860if test "$wxUSE_TOOLBAR" = "yes"; then
698dcdb6 16861 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16862#define wxUSE_TOOLBAR 1
16863EOF
16864
1e6feb95 16865 USES_CONTROLS=1
698dcdb6 16866
360d6699
VZ
16867 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
16868 wxUSE_TOOLBAR_NATIVE="yes"
16869 fi
16870
1e6feb95
VZ
16871 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
16872 cat >> confdefs.h <<\EOF
360d6699
VZ
16873#define wxUSE_TOOLBAR_NATIVE 1
16874EOF
16875
1e6feb95
VZ
16876 USES_CONTROLS=1
16877 fi
16878
16879 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
360d6699
VZ
16880fi
16881
10f2d63a
VZ
16882if test "$wxUSE_TOOLTIPS" = "yes"; then
16883 if test "$wxUSE_MOTIF" = 1; then
698dcdb6 16884 echo "configure: warning: wxTooltip not supported yet under Motif" 1>&2
10f2d63a
VZ
16885 else
16886 if test "$wxUSE_WINE" = 1; then
698dcdb6 16887 echo "configure: warning: wxTooltip not supported under WINE" 1>&2
10f2d63a 16888 else
698dcdb6 16889 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16890#define wxUSE_TOOLTIPS 1
16891EOF
16892
16893 fi
16894 fi
16895fi
16896
16897if test "$wxUSE_TREECTRL" = "yes"; then
16898 if test "$wxUSE_IMAGLIST" = "yes"; then
698dcdb6 16899 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16900#define wxUSE_TREECTRL 1
16901EOF
16902
1e6feb95 16903 USES_CONTROLS=1
10f2d63a
VZ
16904 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
16905 else
698dcdb6 16906 echo "configure: warning: wxTreeCtrl requires wxImageList and won't be compiled without it" 1>&2
10f2d63a
VZ
16907 fi
16908fi
16909
1e6feb95
VZ
16910if test "$USES_CONTROLS" = 1; then
16911 cat >> confdefs.h <<\EOF
16912#define wxUSE_CONTROLS 1
10f2d63a
VZ
16913EOF
16914
10f2d63a
VZ
16915fi
16916
1e6feb95
VZ
16917
16918
16919if test "$wxUSE_MENUS" = "yes"; then
698dcdb6 16920 cat >> confdefs.h <<\EOF
1e6feb95 16921#define wxUSE_MENUS 1
10f2d63a
VZ
16922EOF
16923
1e6feb95 16924 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
10f2d63a
VZ
16925fi
16926
1e6feb95
VZ
16927if test "$wxUSE_METAFILE" = "yes"; then
16928 cat >> confdefs.h <<\EOF
16929#define wxUSE_METAFILE 1
10f2d63a
VZ
16930EOF
16931
10f2d63a
VZ
16932fi
16933
1e6feb95
VZ
16934if test "$wxUSE_MIMETYPE" = "yes"; then
16935 cat >> confdefs.h <<\EOF
16936#define wxUSE_MIMETYPE 1
10f2d63a
VZ
16937EOF
16938
10f2d63a
VZ
16939fi
16940
16941if test "$wxUSE_MINIFRAME" = "yes"; then
698dcdb6 16942 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16943#define wxUSE_MINIFRAME 1
16944EOF
16945
16946 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
16947fi
16948
16949if test "$wxUSE_HTML" = "yes"; then
698dcdb6 16950 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16951#define wxUSE_HTML 1
16952EOF
16953
16954 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html"
16955 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS html"
16956fi
16957
16958if test "$wxUSE_VALIDATORS" = "yes"; then
698dcdb6 16959 cat >> confdefs.h <<\EOF
1e487827
VS
16960#define wxUSE_VALIDATORS 1
16961EOF
703e0a69 16962
698dcdb6
VZ
16963 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
16964fi
16965
16966if test "$wxUSE_IMAGE" = "yes" ; then
16967 cat >> confdefs.h <<\EOF
16968#define wxUSE_IMAGE 1
16969EOF
16970
16971fi
16972
16973if test "$wxUSE_GIF" = "yes" ; then
16974 cat >> confdefs.h <<\EOF
16975#define wxUSE_GIF 1
16976EOF
16977
16978fi
16979
16980if test "$wxUSE_PCX" = "yes" ; then
16981 cat >> confdefs.h <<\EOF
16982#define wxUSE_PCX 1
16983EOF
16984
16985fi
16986
16987if test "$wxUSE_PNM" = "yes" ; then
16988 cat >> confdefs.h <<\EOF
16989#define wxUSE_PNM 1
16990EOF
16991
16992fi
16993
16994if test "$wxUSE_XPM" = "yes" ; then
16995 cat >> confdefs.h <<\EOF
16996#define wxUSE_XPM 1
16997EOF
16998
16999fi
17000
17001
1e6feb95
VZ
17002if test "$wxUSE_CHOICEDLG" = "yes"; then
17003 cat >> confdefs.h <<\EOF
17004#define wxUSE_CHOICEDLG 1
17005EOF
17006
17007fi
17008
17009if test "$wxUSE_COLOURDLG" = "yes"; then
17010 cat >> confdefs.h <<\EOF
17011#define wxUSE_COLOURDLG 1
17012EOF
17013
17014fi
17015
17016if test "$wxUSE_FILEDLG" = "yes"; then
17017 cat >> confdefs.h <<\EOF
17018#define wxUSE_FILEDLG 1
17019EOF
17020
17021fi
17022
17023if test "$wxUSE_FONTDLG" = "yes"; then
17024 cat >> confdefs.h <<\EOF
17025#define wxUSE_FONTDLG 1
17026EOF
17027
17028fi
17029
17030if test "$wxUSE_DIRDLG" = "yes"; then
17031 if test "$wxUSE_CONSTRAINTS" != "yes"; then
17032 echo "configure: warning: wxDirDialog requires constraints so it won't be compiled without them" 1>&2
17033 else
17034 if test "$wxUSE_TREECTRL" != "yes"; then
17035 echo "configure: warning: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" 1>&2
17036 else
17037 cat >> confdefs.h <<\EOF
17038#define wxUSE_DIRDLG 1
17039EOF
17040
17041 fi
17042 fi
17043fi
17044
17045if test "$wxUSE_MSGDLG" = "yes"; then
17046 cat >> confdefs.h <<\EOF
17047#define wxUSE_MSGDLG 1
17048EOF
17049
17050fi
17051
17052if test "$wxUSE_NUMBERDLG" = "yes"; then
17053 cat >> confdefs.h <<\EOF
17054#define wxUSE_NUMBERDLG 1
17055EOF
17056
17057fi
17058
17059if test "$wxUSE_PROGRESSDLG" = "yes"; then
17060 if test "$wxUSE_CONSTRAINTS" != "yes"; then
17061 echo "configure: warning: wxProgressDialog requires constraints so it won't be compiled without them" 1>&2
17062 else
17063 cat >> confdefs.h <<\EOF
17064#define wxUSE_PROGRESSDLG 1
17065EOF
17066
17067 fi
17068fi
17069
17070if test "$wxUSE_STARTUP_TIPS" = "yes"; then
17071 if test "$wxUSE_CONSTRAINTS" != "yes"; then
17072 echo "configure: warning: Startup tips requires constraints and won't be compiled without them" 1>&2
17073 else
17074 cat >> confdefs.h <<\EOF
17075#define wxUSE_STARTUP_TIPS 1
17076EOF
17077
17078 fi
17079fi
17080
17081if test "$wxUSE_TEXTDLG" = "yes"; then
17082 cat >> confdefs.h <<\EOF
17083#define wxUSE_TEXTDLG 1
17084EOF
17085
17086fi
17087
17088
698dcdb6
VZ
17089if test "$cross_compiling" = "yes"; then
17090 OSINFO="\"$host\""
17091else
17092 OSINFO=`uname -s -r -m`
17093 OSINFO="\"$OSINFO\""
17094fi
17095
17096cat >> confdefs.h <<EOF
17097#define WXWIN_OS_DESCRIPTION $OSINFO
17098EOF
17099
17100
17101
17102GUILIBS="$GUI_TK_LIBRARY $TOOLKIT_LINK"
17103OPENGL_LIBS="$OPENGL_LINK"
17104
17105EXTRA_LIBS="$LIBS $POSIX4_LINK $INET_LINK $WCHAR_LINK $THREADS_LINK $DMALLOC_LINK $DL_LINK $ZLIB_LINK -lm"
17106if test "$USE_MAC" = 1 ; then
17107 EXTRA_LIBS="$EXTRA_LIBS -framework Carbon -framework System"
17108fi
17109if test "$wxUSE_GUI" = "yes"; then
17110 EXTRA_LIBS="$GUILIBS $PNG_LINK $JPEG_LINK $TIFF_LINK $FREETYPE_LINK $EXTRA_LIBS"
17111fi
17112
17113LD_LIBS="\${top_builddir}/lib/${WX_LIBRARY_NAME_STATIC} $EXTRA_LIBS"
17114
17115INCLUDES="-I. -I\${top_builddir}/include -I\${top_srcdir}/include $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE $FREETYPE_INCLUDE $TOOLKIT_INCLUDE"
17116
17117if test "$wxUSE_GTK" = 1; then
17118 WXCONFIG_INCLUDE=""
17119else
17120 WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
17121fi
17122
17123if test "$GXX" = yes ; then
17124 CXXWARNINGS="-Wall"
17125 fi
17126EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE $INCLUDES"
17127
17128CFLAGS=`echo $CFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'`
17129CXXFLAGS=`echo $CXXFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \+/ /g'`
17130
17131LDFLAGS="$LDFLAGS $PROFILE"
17132
17133if test "$wxUSE_GUI" = "yes"; then
17134
17135 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS controls dialogs dragimag \
1e6feb95
VZ
17136 drawing dynamic event font fractal image \
17137 minimal richedit widgets"
17138
17139 if test "$wxUSE_UNIVERSAL" = "yes" ; then
17140 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS univ"
17141 fi
698dcdb6
VZ
17142
17143 CPPFLAGS="$CPPFLAGS \$(EXTRADEFS) \$(APPEXTRADEFS)"
17144else
17145 SAMPLES_SUBDIRS=""
17146fi
17147
17148SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
17149
17150
17151
17152
17153
17154
17155
17156
17157
17158
17159
17160
17161
17162
17163
17164
17165
17166
17167
17168
17169
17170
17171
17172
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
32832908
VZ
17216
17217
17218
17219
17220
17221
17222
2224580a 17223
dad6c0ea 17224
f6bcfd97
BP
17225
17226
17227
2f51a9ec
GD
17228
17229
17230
17231
17232
17233
f6bcfd97 17234
dad6c0ea 17235
caa2c79b 17236
3711412e 17237
1e6feb95
VZ
17238
17239
0f3f1cbc 17240
10f2d63a
VZ
17241
17242
698dcdb6 17243echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
54276ccf 17244echo "configure:17245: checking whether ${MAKE-make} sets \${MAKE}" >&5
698dcdb6
VZ
17245set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
17246if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
17247 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 17248else
698dcdb6 17249 cat > conftestmake <<\EOF
10f2d63a
VZ
17250all:
17251 @echo 'ac_maketemp="${MAKE}"'
17252EOF
17253# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
698dcdb6 17254eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
10f2d63a
VZ
17255if test -n "$ac_maketemp"; then
17256 eval ac_cv_prog_make_${ac_make}_set=yes
17257else
17258 eval ac_cv_prog_make_${ac_make}_set=no
17259fi
698dcdb6 17260rm -f conftestmake
10f2d63a
VZ
17261fi
17262if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
698dcdb6 17263 echo "$ac_t""yes" 1>&6
10f2d63a
VZ
17264 SET_MAKE=
17265else
698dcdb6 17266 echo "$ac_t""no" 1>&6
10f2d63a
VZ
17267 SET_MAKE="MAKE=${MAKE-make}"
17268fi
17269
698dcdb6 17270
00cf1208
RR
17271if test -d include; then
17272 if test -d include/wx; then
1e6feb95
VZ
17273 if test -d include/wx/${SETUPH_DIR}; then
17274 if test -f include/wx/${SETUPH_DIR}/setup.h; then
17275 mv -f include/wx/${SETUPH_DIR}/setup.h setup.h
00cf1208
RR
17276 fi
17277 fi
17278 fi
17279fi
665bbe97 17280
698dcdb6 17281
10f2d63a 17282
2224580a 17283if test "$wxUSE_GUI" = "yes"; then
ec90f5e5 17284 wx_cv_path_samplesubdirs=$SAMPLES_SUBDIRS
e8482f24
GL
17285 wx_cv_path_ifs=$PATH_IFS
17286 wx_cv_program_ext=$PROGRAM_EXT
17287 wx_cv_target_library=$WX_TARGET_LIBRARY
3711412e 17288 wx_cv_target_libtype=$WX_TARGET_LIBRARY_TYPE
93a20a27
VS
17289 export wx_cv_path_samplesubdirs wx_cv_path_ifs wx_cv_program_ext \
17290 wx_cv_target_library wx_cv_target_libtype
698dcdb6 17291 subdirs="demos samples utils contrib"
2224580a
VZ
17292
17293fi
10f2d63a 17294
698dcdb6
VZ
17295trap '' 1 2 15
17296cat > confcache <<\EOF
10f2d63a
VZ
17297# This file is a shell script that caches the results of configure
17298# tests run on this system so they can be shared between configure
698dcdb6
VZ
17299# scripts and configure runs. It is not useful on other systems.
17300# If it contains results you don't want to keep, you may remove or edit it.
10f2d63a 17301#
698dcdb6
VZ
17302# By default, configure uses ./config.cache as the cache file,
17303# creating it if it does not exist already. You can give configure
17304# the --cache-file=FILE option to use a different cache file; that is
17305# what configure does when it calls configure scripts in
17306# subdirectories, so they share the cache.
17307# Giving --cache-file=/dev/null disables caching, for debugging configure.
17308# config.status only pays attention to the cache file if you give it the
17309# --recheck option to rerun configure.
10f2d63a 17310#
698dcdb6 17311EOF
10f2d63a
VZ
17312# The following way of writing the cache mishandles newlines in values,
17313# but we know of no workaround that is simple, portable, and efficient.
17314# So, don't put newlines in cache variables' values.
17315# Ultrix sh set writes to stderr and can't be redirected directly,
17316# and sets the high bit in the cache file unless we assign to the vars.
698dcdb6
VZ
17317(set) 2>&1 |
17318 case `(ac_space=' '; set | grep ac_space) 2>&1` in
17319 *ac_space=\ *)
17320 # `set' does not quote correctly, so add quotes (double-quote substitution
17321 # turns \\\\ into \\, and sed turns \\ into \).
17322 sed -n \
17323 -e "s/'/'\\\\''/g" \
17324 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
17325 ;;
17326 *)
17327 # `set' quotes correctly as required by POSIX, so do not add quotes.
17328 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
17329 ;;
17330 esac >> confcache
17331if cmp -s $cache_file confcache; then
17332 :
17333else
10f2d63a 17334 if test -w $cache_file; then
698dcdb6
VZ
17335 echo "updating cache $cache_file"
17336 cat confcache > $cache_file
10f2d63a
VZ
17337 else
17338 echo "not updating unwritable cache $cache_file"
17339 fi
17340fi
17341rm -f confcache
17342
698dcdb6
VZ
17343trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
17344
10f2d63a
VZ
17345test "x$prefix" = xNONE && prefix=$ac_default_prefix
17346# Let make expand exec_prefix.
17347test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17348
698dcdb6
VZ
17349# Any assignment to VPATH causes Sun make to only execute
17350# the first set of double-colon rules, so remove it if not needed.
17351# If there is a colon in the path, we need to keep it.
10f2d63a 17352if test "x$srcdir" = x.; then
698dcdb6 17353 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
10f2d63a
VZ
17354fi
17355
698dcdb6
VZ
17356trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
17357
10f2d63a
VZ
17358DEFS=-DHAVE_CONFIG_H
17359
698dcdb6 17360# Without the "./", some shells look in PATH for config.status.
10f2d63a 17361: ${CONFIG_STATUS=./config.status}
698dcdb6
VZ
17362
17363echo creating $CONFIG_STATUS
17364rm -f $CONFIG_STATUS
17365cat > $CONFIG_STATUS <<EOF
17366#! /bin/sh
10f2d63a
VZ
17367# Generated automatically by configure.
17368# Run this file to recreate the current configuration.
698dcdb6
VZ
17369# This directory was configured as follows,
17370# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17371#
17372# $0 $ac_configure_args
17373#
10f2d63a 17374# Compiler output produced by configure, useful for debugging
698dcdb6 17375# configure, is in ./config.log if it exists.
1e487827 17376
698dcdb6
VZ
17377ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
17378for ac_option
10f2d63a 17379do
698dcdb6 17380 case "\$ac_option" in
10f2d63a 17381 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
698dcdb6
VZ
17382 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
17383 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
17384 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
17385 echo "$CONFIG_STATUS generated by autoconf version 2.13"
17386 exit 0 ;;
17387 -help | --help | --hel | --he | --h)
17388 echo "\$ac_cs_usage"; exit 0 ;;
17389 *) echo "\$ac_cs_usage"; exit 1 ;;
10f2d63a
VZ
17390 esac
17391done
17392
698dcdb6
VZ
17393ac_given_srcdir=$srcdir
17394ac_given_INSTALL="$INSTALL"
703e0a69 17395
698dcdb6
VZ
17396trap 'rm -fr `echo "
17397 wx-config
17398 src/make.env
17399 src/makeprog.env
17400 src/makelib.env
17401 Makefile
17402 setup.h:setup.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1e487827 17403EOF
698dcdb6 17404cat >> $CONFIG_STATUS <<EOF
1e487827 17405
698dcdb6
VZ
17406# Protect against being on the right side of a sed subst in config.status.
17407sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
17408 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
17409$ac_vpsub
17410$extrasub
17411s%@SHELL@%$SHELL%g
17412s%@CFLAGS@%$CFLAGS%g
17413s%@CPPFLAGS@%$CPPFLAGS%g
17414s%@CXXFLAGS@%$CXXFLAGS%g
17415s%@FFLAGS@%$FFLAGS%g
17416s%@DEFS@%$DEFS%g
17417s%@LDFLAGS@%$LDFLAGS%g
17418s%@LIBS@%$LIBS%g
17419s%@exec_prefix@%$exec_prefix%g
17420s%@prefix@%$prefix%g
17421s%@program_transform_name@%$program_transform_name%g
17422s%@bindir@%$bindir%g
17423s%@sbindir@%$sbindir%g
17424s%@libexecdir@%$libexecdir%g
17425s%@datadir@%$datadir%g
17426s%@sysconfdir@%$sysconfdir%g
17427s%@sharedstatedir@%$sharedstatedir%g
17428s%@localstatedir@%$localstatedir%g
17429s%@libdir@%$libdir%g
17430s%@includedir@%$includedir%g
17431s%@oldincludedir@%$oldincludedir%g
17432s%@infodir@%$infodir%g
17433s%@mandir@%$mandir%g
17434s%@host@%$host%g
17435s%@host_alias@%$host_alias%g
17436s%@host_cpu@%$host_cpu%g
17437s%@host_vendor@%$host_vendor%g
17438s%@host_os@%$host_os%g
17439s%@target@%$target%g
17440s%@target_alias@%$target_alias%g
17441s%@target_cpu@%$target_cpu%g
17442s%@target_vendor@%$target_vendor%g
17443s%@target_os@%$target_os%g
17444s%@build@%$build%g
17445s%@build_alias@%$build_alias%g
17446s%@build_cpu@%$build_cpu%g
17447s%@build_vendor@%$build_vendor%g
17448s%@build_os@%$build_os%g
17449s%@CC@%$CC%g
17450s%@CPP@%$CPP%g
17451s%@CXX@%$CXX%g
17452s%@CXXCPP@%$CXXCPP%g
17453s%@RANLIB@%$RANLIB%g
17454s%@AR@%$AR%g
17455s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
17456s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
17457s%@INSTALL_DATA@%$INSTALL_DATA%g
17458s%@STRIP@%$STRIP%g
17459s%@YACC@%$YACC%g
17460s%@LEX@%$LEX%g
17461s%@LEXLIB@%$LEXLIB%g
17462s%@LN_S@%$LN_S%g
17463s%@GTK_CONFIG_2_0@%$GTK_CONFIG_2_0%g
698dcdb6
VZ
17464s%@GTK_CFLAGS@%$GTK_CFLAGS%g
17465s%@GTK_LIBS@%$GTK_LIBS%g
8168de4c 17466s%@GTK_CONFIG@%$GTK_CONFIG%g
698dcdb6
VZ
17467s%@X_CFLAGS@%$X_CFLAGS%g
17468s%@X_PRE_LIBS@%$X_PRE_LIBS%g
17469s%@X_LIBS@%$X_LIBS%g
17470s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
17471s%@REZ@%$REZ%g
17472s%@DEREZ@%$DEREZ%g
17473s%@LEX_STEM@%$LEX_STEM%g
17474s%@PATH_IFS@%$PATH_IFS%g
17475s%@WX_MAJOR_VERSION_NUMBER@%$WX_MAJOR_VERSION_NUMBER%g
17476s%@WX_MINOR_VERSION_NUMBER@%$WX_MINOR_VERSION_NUMBER%g
17477s%@WX_RELEASE_NUMBER@%$WX_RELEASE_NUMBER%g
17478s%@WX_LIBRARY_NAME@%$WX_LIBRARY_NAME%g
17479s%@WX_LIBRARY_NAME_STATIC@%$WX_LIBRARY_NAME_STATIC%g
17480s%@WX_LIBRARY_NAME_SHARED@%$WX_LIBRARY_NAME_SHARED%g
17481s%@WX_LIBRARY@%$WX_LIBRARY%g
17482s%@WX_TARGET_LIBRARY@%$WX_TARGET_LIBRARY%g
17483s%@WX_LIBRARY_LINK1@%$WX_LIBRARY_LINK1%g
17484s%@WX_LIBRARY_LINK2@%$WX_LIBRARY_LINK2%g
17485s%@WX_LIBRARY_LINK3@%$WX_LIBRARY_LINK3%g
17486s%@PROGRAM_EXT@%$PROGRAM_EXT%g
17487s%@WX_LIBRARY_NAME_GL@%$WX_LIBRARY_NAME_GL%g
17488s%@WX_LIBRARY_NAME_STATIC_GL@%$WX_LIBRARY_NAME_STATIC_GL%g
17489s%@WX_LIBRARY_NAME_SHARED_GL@%$WX_LIBRARY_NAME_SHARED_GL%g
17490s%@WX_LIBRARY_GL@%$WX_LIBRARY_GL%g
17491s%@WX_TARGET_LIBRARY_GL@%$WX_TARGET_LIBRARY_GL%g
17492s%@WX_LIBRARY_LINK1_GL@%$WX_LIBRARY_LINK1_GL%g
17493s%@WX_LIBRARY_LINK2_GL@%$WX_LIBRARY_LINK2_GL%g
17494s%@WX_LIBRARY_LINK3_GL@%$WX_LIBRARY_LINK3_GL%g
17495s%@WX_ALL@%$WX_ALL%g
17496s%@WX_ALL_INSTALLED@%$WX_ALL_INSTALLED%g
17497s%@SHARED_LD@%$SHARED_LD%g
17498s%@PIC_FLAG@%$PIC_FLAG%g
17499s%@DEP_INFO_FLAGS@%$DEP_INFO_FLAGS%g
17500s%@CODE_GEN_FLAGS@%$CODE_GEN_FLAGS%g
17501s%@CODE_GEN_FLAGS_CXX@%$CODE_GEN_FLAGS_CXX%g
17502s%@BURNT_LIBRARY_NAME@%$BURNT_LIBRARY_NAME%g
17503s%@BURNT_LIBRARY_NAME_GL@%$BURNT_LIBRARY_NAME_GL%g
17504s%@WX_TARGET_LIBRARY_SONAME@%$WX_TARGET_LIBRARY_SONAME%g
17505s%@WX_TARGET_LIBRARY_TYPE@%$WX_TARGET_LIBRARY_TYPE%g
17506s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g
17507s%@USE_GUI@%$USE_GUI%g
17508s%@AFMINSTALL@%$AFMINSTALL%g
1e6feb95 17509s%@SETUPH_DIR@%$SETUPH_DIR%g
698dcdb6
VZ
17510s%@TOOLKIT@%$TOOLKIT%g
17511s%@TOOLKIT_DEF@%$TOOLKIT_DEF%g
17512s%@TOOLKIT_DIR@%$TOOLKIT_DIR%g
17513s%@TOOLKIT_NAME@%$TOOLKIT_NAME%g
17514s%@TOOLKIT_INCLUDE@%$TOOLKIT_INCLUDE%g
1e6feb95 17515s%@TOOLKIT_VPATH@%$TOOLKIT_VPATH%g
698dcdb6
VZ
17516s%@WXCONFIG_INCLUDE@%$WXCONFIG_INCLUDE%g
17517s%@ALL_OBJECTS@%$ALL_OBJECTS%g
17518s%@ALL_DEPFILES@%$ALL_DEPFILES%g
17519s%@GUIDIST@%$GUIDIST%g
17520s%@PORT_FILES@%$PORT_FILES%g
17521s%@DISTDIR@%$DISTDIR%g
17522s%@RPM_SPEC@%$RPM_SPEC%g
17523s%@RPM_FILES@%$RPM_FILES%g
17524s%@SRC_SUBDIRS@%$SRC_SUBDIRS%g
17525s%@INCLUDE_SUBDIRS@%$INCLUDE_SUBDIRS%g
17526s%@UTILS_SUBDIRS@%$UTILS_SUBDIRS%g
17527s%@DOCS_SUBDIRS@%$DOCS_SUBDIRS%g
17528s%@SAMPLES_SUBDIRS@%$SAMPLES_SUBDIRS%g
17529s%@USER_SUBDIRS@%$USER_SUBDIRS%g
17530s%@EXTRA_LIBS@%$EXTRA_LIBS%g
17531s%@OPENGL_LIBS@%$OPENGL_LIBS%g
17532s%@EXTRADEFS@%$EXTRADEFS%g
17533s%@LD_LIBS@%$LD_LIBS%g
17534s%@RCINPUTSWITCH@%$RCINPUTSWITCH%g
17535s%@RCOUTPUTSWITCH@%$RCOUTPUTSWITCH%g
17536s%@RESPROGRAM@%$RESPROGRAM%g
17537s%@RESCOMP@%$RESCOMP%g
17538s%@RESFLAGS@%$RESFLAGS%g
17539s%@REZFLAGS@%$REZFLAGS%g
17540s%@DEREZFLAGS@%$DEREZFLAGS%g
17541s%@LIBWXMACRES@%$LIBWXMACRES%g
17542s%@LIBWXMACRESCOMP@%$LIBWXMACRESCOMP%g
17543s%@DLLTOOL@%$DLLTOOL%g
17544s%@AS@%$AS%g
17545s%@NM@%$NM%g
17546s%@LD@%$LD%g
17547s%@MAKEINFO@%$MAKEINFO%g
17548s%@SET_MAKE@%$SET_MAKE%g
17549s%@subdirs@%$subdirs%g
1e487827 17550
1e487827 17551CEOF
1e487827
VS
17552EOF
17553
698dcdb6
VZ
17554cat >> $CONFIG_STATUS <<\EOF
17555
17556# Split the substitutions into bite-sized pieces for seds with
17557# small command number limits, like on Digital OSF/1 and HP-UX.
17558ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
17559ac_file=1 # Number of current file.
17560ac_beg=1 # First line for current file.
17561ac_end=$ac_max_sed_cmds # Line after last line for current file.
17562ac_more_lines=:
17563ac_sed_cmds=""
17564while $ac_more_lines; do
17565 if test $ac_beg -gt 1; then
17566 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
17567 else
17568 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
17569 fi
17570 if test ! -s conftest.s$ac_file; then
17571 ac_more_lines=false
17572 rm -f conftest.s$ac_file
17573 else
17574 if test -z "$ac_sed_cmds"; then
17575 ac_sed_cmds="sed -f conftest.s$ac_file"
10f2d63a 17576 else
698dcdb6 17577 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
10f2d63a 17578 fi
698dcdb6
VZ
17579 ac_file=`expr $ac_file + 1`
17580 ac_beg=$ac_end
17581 ac_end=`expr $ac_end + $ac_max_sed_cmds`
10f2d63a 17582 fi
698dcdb6
VZ
17583done
17584if test -z "$ac_sed_cmds"; then
17585 ac_sed_cmds=cat
17586fi
17587EOF
10f2d63a 17588
698dcdb6
VZ
17589cat >> $CONFIG_STATUS <<EOF
17590
17591CONFIG_FILES=\${CONFIG_FILES-"wx-config
17592 src/make.env
17593 src/makeprog.env
17594 src/makelib.env
17595 Makefile
17596 "}
10f2d63a 17597EOF
698dcdb6
VZ
17598cat >> $CONFIG_STATUS <<\EOF
17599for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
10f2d63a 17600 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
698dcdb6
VZ
17601 case "$ac_file" in
17602 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
17603 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
17604 *) ac_file_in="${ac_file}.in" ;;
10f2d63a
VZ
17605 esac
17606
698dcdb6 17607 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
1e487827 17608
698dcdb6
VZ
17609 # Remove last slash and all that follows it. Not all systems have dirname.
17610 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
17611 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
17612 # The file is in a subdirectory.
17613 test ! -d "$ac_dir" && mkdir "$ac_dir"
17614 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
10f2d63a 17615 # A "../" for each directory in $ac_dir_suffix.
698dcdb6 17616 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
10f2d63a
VZ
17617 else
17618 ac_dir_suffix= ac_dots=
17619 fi
17620
698dcdb6
VZ
17621 case "$ac_given_srcdir" in
17622 .) srcdir=.
17623 if test -z "$ac_dots"; then top_srcdir=.
17624 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
17625 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
10f2d63a 17626 *) # Relative path.
698dcdb6
VZ
17627 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
17628 top_srcdir="$ac_dots$ac_given_srcdir" ;;
10f2d63a
VZ
17629 esac
17630
698dcdb6
VZ
17631 case "$ac_given_INSTALL" in
17632 [/$]*) INSTALL="$ac_given_INSTALL" ;;
17633 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
10f2d63a
VZ
17634 esac
17635
698dcdb6
VZ
17636 echo creating "$ac_file"
17637 rm -f "$ac_file"
17638 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
17639 case "$ac_file" in
17640 *Makefile*) ac_comsub="1i\\
17641# $configure_input" ;;
17642 *) ac_comsub= ;;
17643 esac
10f2d63a 17644
698dcdb6
VZ
17645 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
17646 sed -e "$ac_comsub
17647s%@configure_input@%$configure_input%g
17648s%@srcdir@%$srcdir%g
17649s%@top_srcdir@%$top_srcdir%g
17650s%@INSTALL@%$INSTALL%g
17651" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
17652fi; done
17653rm -f conftest.s*
10f2d63a
VZ
17654
17655# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
17656# NAME is the cpp macro being defined and VALUE is the value it is being given.
17657#
17658# ac_d sets the value in "#define NAME VALUE" lines.
698dcdb6
VZ
17659ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
17660ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
17661ac_dC='\3'
17662ac_dD='%g'
17663# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
17664ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
17665ac_uB='\([ ]\)%\1#\2define\3'
10f2d63a 17666ac_uC=' '
698dcdb6
VZ
17667ac_uD='\4%g'
17668# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
17669ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
17670ac_eB='$%\1#\2define\3'
17671ac_eC=' '
17672ac_eD='%g'
10f2d63a 17673
698dcdb6
VZ
17674if test "${CONFIG_HEADERS+set}" != set; then
17675EOF
17676cat >> $CONFIG_STATUS <<EOF
17677 CONFIG_HEADERS="setup.h:setup.h.in"
17678EOF
17679cat >> $CONFIG_STATUS <<\EOF
17680fi
17681for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
10f2d63a 17682 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
698dcdb6
VZ
17683 case "$ac_file" in
17684 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
17685 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
17686 *) ac_file_in="${ac_file}.in" ;;
10f2d63a
VZ
17687 esac
17688
698dcdb6
VZ
17689 echo creating $ac_file
17690
17691 rm -f conftest.frag conftest.in conftest.out
17692 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
17693 cat $ac_file_inputs > conftest.in
17694
17695EOF
17696
17697# Transform confdefs.h into a sed script conftest.vals that substitutes
17698# the proper values into config.h.in to produce config.h. And first:
17699# Protect against being on the right side of a sed subst in config.status.
17700# Protect against being in an unquoted here document in config.status.
17701rm -f conftest.vals
17702cat > conftest.hdr <<\EOF
17703s/[\\&%]/\\&/g
17704s%[\\$`]%\\&%g
17705s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
17706s%ac_d%ac_u%gp
17707s%ac_u%ac_e%gp
17708EOF
17709sed -n -f conftest.hdr confdefs.h > conftest.vals
17710rm -f conftest.hdr
10f2d63a
VZ
17711
17712# This sed command replaces #undef with comments. This is necessary, for
17713# example, in the case of _POSIX_SOURCE, which is predefined and required
17714# on some systems where configure will not decide to define it.
698dcdb6
VZ
17715cat >> conftest.vals <<\EOF
17716s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
10f2d63a
VZ
17717EOF
17718
698dcdb6
VZ
17719# Break up conftest.vals because some shells have a limit on
17720# the size of here documents, and old seds have small limits too.
10f2d63a
VZ
17721
17722rm -f conftest.tail
698dcdb6 17723while :
10f2d63a 17724do
698dcdb6
VZ
17725 ac_lines=`grep -c . conftest.vals`
17726 # grep -c gives empty output for an empty file on some AIX systems.
17727 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
17728 # Write a limited-size here document to conftest.frag.
17729 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
17730 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
10f2d63a 17731 echo 'CEOF
698dcdb6
VZ
17732 sed -f conftest.frag conftest.in > conftest.out
17733 rm -f conftest.in
17734 mv conftest.out conftest.in
17735' >> $CONFIG_STATUS
17736 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
17737 rm -f conftest.vals
17738 mv conftest.tail conftest.vals
10f2d63a 17739done
698dcdb6
VZ
17740rm -f conftest.vals
17741
17742cat >> $CONFIG_STATUS <<\EOF
17743 rm -f conftest.frag conftest.h
17744 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
17745 cat conftest.in >> conftest.h
17746 rm -f conftest.in
17747 if cmp -s $ac_file conftest.h 2>/dev/null; then
17748 echo "$ac_file is unchanged"
17749 rm -f conftest.h
10f2d63a 17750 else
698dcdb6
VZ
17751 # Remove last slash and all that follows it. Not all systems have dirname.
17752 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
10f2d63a 17753 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
698dcdb6
VZ
17754 # The file is in a subdirectory.
17755 test ! -d "$ac_dir" && mkdir "$ac_dir"
10f2d63a 17756 fi
698dcdb6
VZ
17757 rm -f $ac_file
17758 mv conftest.h $ac_file
10f2d63a 17759 fi
698dcdb6
VZ
17760fi; done
17761
10f2d63a 17762EOF
698dcdb6 17763cat >> $CONFIG_STATUS <<EOF
10f2d63a 17764
1e6feb95 17765 SETUPH_DIR="${SETUPH_DIR}"
698dcdb6
VZ
17766 TOOLKIT_NAME="${TOOLKIT_NAME}"
17767 LN_S="${LN_S}"
17768
17769
17770EOF
17771cat >> $CONFIG_STATUS <<\EOF
10f2d63a 17772
6ef41520 17773 if test ! -f wx${TOOLKIT_NAME}-config; then
991a5759
VZ
17774 chmod +x wx-config
17775 mv wx-config wx${TOOLKIT_NAME}-config
17776 ${LN_S} wx${TOOLKIT_NAME}-config wx-config
17777 fi
665bbe97 17778
698dcdb6 17779
00cf1208
RR
17780 if test ! -d lib; then
17781 mkdir lib
17782 fi
17783 if test ! -d lib/wx; then
17784 mkdir lib/wx
17785 fi
17786 if test ! -d lib/wx/include; then
17787 mkdir lib/wx/include
17788 fi
17789 if test ! -d lib/wx/include/wx; then
17790 mkdir lib/wx/include/wx
17791 fi
f6bcfd97
BP
17792 if test ! -d lib/wx/include/wx/${TOOLKIT_NAME}; then
17793 mkdir lib/wx/include/wx/${TOOLKIT_NAME}
00cf1208
RR
17794 fi
17795 if test -f setup.h; then
066b00aa 17796 cp -fp setup.h lib/wx/include/wx/${TOOLKIT_NAME}/setup.h
00cf1208 17797 fi
07eb77a6 17798
698dcdb6 17799
10f2d63a
VZ
17800 if test ! -d include; then
17801 mkdir include
17802 fi
17803 if test ! -d include/wx; then
17804 mkdir include/wx
17805 fi
1e6feb95
VZ
17806 if test ! -d include/wx/${SETUPH_DIR}; then
17807 mkdir include/wx/${SETUPH_DIR}
10f2d63a 17808 fi
afc31813 17809 if test -f setup.h; then
1e6feb95 17810 cp -fp setup.h include/wx/${SETUPH_DIR}/setup.h
afc31813 17811 fi
665bbe97 17812
698dcdb6
VZ
17813
17814exit 0
10f2d63a
VZ
17815EOF
17816chmod +x $CONFIG_STATUS
698dcdb6
VZ
17817rm -fr confdefs* $ac_clean_files
17818test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
10f2d63a 17819
2224580a
VZ
17820if test "$no_recursion" != yes; then
17821
17822 # Remove --cache-file and --srcdir arguments so they do not pile up.
17823 ac_sub_configure_args=
17824 ac_prev=
17825 for ac_arg in $ac_configure_args; do
17826 if test -n "$ac_prev"; then
17827 ac_prev=
17828 continue
17829 fi
698dcdb6 17830 case "$ac_arg" in
2224580a
VZ
17831 -cache-file | --cache-file | --cache-fil | --cache-fi \
17832 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
17833 ac_prev=cache_file ;;
17834 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
698dcdb6 17835 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
2224580a
VZ
17836 ;;
17837 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
17838 ac_prev=srcdir ;;
17839 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
17840 ;;
17841 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
17842 esac
17843 done
17844
698dcdb6 17845 for ac_config_dir in demos samples utils contrib; do
2224580a
VZ
17846
17847 # Do not complain, so a configure script can configure whichever
17848 # parts of a large source tree are present.
698dcdb6
VZ
17849 if test ! -d $srcdir/$ac_config_dir; then
17850 continue
17851 fi
17852
17853 echo configuring in $ac_config_dir
2224580a 17854
698dcdb6 17855 case "$srcdir" in
2224580a
VZ
17856 .) ;;
17857 *)
698dcdb6
VZ
17858 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
17859 else
17860 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
17861 fi
17862 ;;
2224580a
VZ
17863 esac
17864
17865 ac_popdir=`pwd`
698dcdb6 17866 cd $ac_config_dir
2224580a 17867
698dcdb6
VZ
17868 # A "../" for each directory in /$ac_config_dir.
17869 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
2224580a 17870
698dcdb6 17871 case "$srcdir" in
2224580a
VZ
17872 .) # No --srcdir option. We are building in place.
17873 ac_sub_srcdir=$srcdir ;;
698dcdb6
VZ
17874 /*) # Absolute path.
17875 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
2224580a 17876 *) # Relative path.
698dcdb6 17877 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
2224580a
VZ
17878 esac
17879
17880 # Check for guested configure; otherwise get Cygnus style configure.
698dcdb6
VZ
17881 if test -f $ac_sub_srcdir/configure; then
17882 ac_sub_configure=$ac_sub_srcdir/configure
2224580a
VZ
17883 elif test -f $ac_sub_srcdir/configure.in; then
17884 ac_sub_configure=$ac_configure
17885 else
698dcdb6 17886 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
2224580a
VZ
17887 ac_sub_configure=
17888 fi
17889
17890 # The recursion is here.
17891 if test -n "$ac_sub_configure"; then
698dcdb6 17892
2224580a 17893 # Make the cache file name correct relative to the subdirectory.
698dcdb6
VZ
17894 case "$cache_file" in
17895 /*) ac_sub_cache_file=$cache_file ;;
2224580a 17896 *) # Relative path.
698dcdb6 17897 ac_sub_cache_file="$ac_dots$cache_file" ;;
2224580a 17898 esac
698dcdb6
VZ
17899 case "$ac_given_INSTALL" in
17900 [/$]*) INSTALL="$ac_given_INSTALL" ;;
17901 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
17902 esac
2224580a 17903
698dcdb6 17904 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
2224580a 17905 # The eval makes quoting arguments work.
698dcdb6
VZ
17906 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
17907 then :
17908 else
17909 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
17910 fi
2224580a
VZ
17911 fi
17912
17913 cd $ac_popdir
17914 done
17915fi
17916
698dcdb6 17917