]> git.saurik.com Git - wxWidgets.git/blame - configure
Fixed some "\_"s in verbatim blocks so they are no longer quoted with backslashes
[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)"
3e44f09d
VZ
92ac_help="$ac_help
93 --with-regex enable support for wxRegEx class"
698dcdb6 94ac_help="$ac_help
8168de4c 95 --with-zlib use zlib for LZW compression"
698dcdb6 96ac_help="$ac_help
8168de4c 97 --with-odbc use the IODBC and wxODBC classes"
698dcdb6 98ac_help="$ac_help
8168de4c 99 --enable-shared create shared library code"
698dcdb6 100ac_help="$ac_help
8168de4c 101 --enable-burnt_name create set name in shared library "
698dcdb6 102ac_help="$ac_help
8168de4c 103 --enable-optimise create optimised code"
698dcdb6 104ac_help="$ac_help
8168de4c 105 --enable-debug same as debug_flag and debug_info"
698dcdb6 106ac_help="$ac_help
8168de4c 107 --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)"
698dcdb6 108ac_help="$ac_help
8168de4c 109 --enable-debug_info create code with debugging information"
698dcdb6 110ac_help="$ac_help
8168de4c 111 --enable-debug_gdb create code with extra GDB debugging information"
698dcdb6 112ac_help="$ac_help
8168de4c 113 --enable-debug_cntxt use wxDebugContext"
698dcdb6 114ac_help="$ac_help
8168de4c 115 --enable-mem_tracing create code with memory tracing"
698dcdb6 116ac_help="$ac_help
8168de4c 117 --enable-profile create code with profiling information"
698dcdb6 118ac_help="$ac_help
8168de4c 119 --enable-no_rtti create code without RTTI information"
698dcdb6 120ac_help="$ac_help
8168de4c 121 --enable-no_exceptions create code without exceptions information"
698dcdb6 122ac_help="$ac_help
8168de4c 123 --enable-permissive compile code disregarding strict ANSI"
698dcdb6 124ac_help="$ac_help
8168de4c 125 --enable-no_deps create code without dependency information"
54276ccf
VZ
126ac_help="$ac_help
127 --enable-compat20 enable wxWin 2.0 compatibility"
128ac_help="$ac_help
129 --enable-compat22 enable wxWin 2.2 compatibility"
698dcdb6 130ac_help="$ac_help
8168de4c 131 --enable-intl use internationalization system"
698dcdb6 132ac_help="$ac_help
8168de4c 133 --enable-config use wxConfig (and derived) classes"
698dcdb6 134ac_help="$ac_help
8168de4c 135 --enable-sockets use socket/network classes"
698dcdb6 136ac_help="$ac_help
8168de4c 137 --enable-ipc use interprocess communication (wxSocket etc.)"
698dcdb6 138ac_help="$ac_help
8168de4c 139 --enable-cmdline use wxCmdLineParser class"
1e6feb95 140ac_help="$ac_help
8168de4c 141 --enable-datetime use wxDateTime class"
1e6feb95 142ac_help="$ac_help
8168de4c 143 --enable-timedate use obsolete wxDate/wxTime classes"
1e6feb95 144ac_help="$ac_help
8168de4c 145 --enable-stopwatch use wxStopWatch class"
1e6feb95 146ac_help="$ac_help
8168de4c 147 --enable-dialupman use dialup network classes"
698dcdb6 148ac_help="$ac_help
8168de4c 149 --enable-apple_ieee use the Apple IEEE codec"
698dcdb6 150ac_help="$ac_help
8168de4c 151 --enable-timer use wxTimer class"
698dcdb6 152ac_help="$ac_help
8168de4c 153 --enable-wave use wxWave class"
698dcdb6 154ac_help="$ac_help
8168de4c 155 --enable-fraction use wxFraction class"
698dcdb6 156ac_help="$ac_help
8168de4c 157 --enable-dynlib use wxLibrary class for DLL loading"
698dcdb6 158ac_help="$ac_help
8168de4c 159 --enable-longlong use wxLongLong class"
698dcdb6 160ac_help="$ac_help
8168de4c 161 --enable-geometry use geometry class"
698dcdb6 162ac_help="$ac_help
8168de4c 163 --enable-log use logging system"
698dcdb6 164ac_help="$ac_help
8168de4c 165 --enable-streams use wxStream etc classes"
698dcdb6 166ac_help="$ac_help
8168de4c 167 --enable-file use wxFile classes"
698dcdb6 168ac_help="$ac_help
8168de4c 169 --enable-ffile use wxFFile classes"
1e6feb95 170ac_help="$ac_help
8168de4c 171 --enable-textfile use wxTextFile classes"
698dcdb6 172ac_help="$ac_help
8168de4c 173 --enable-fontmap use font encodings conversion classes"
1e6feb95 174ac_help="$ac_help
8168de4c 175 --enable-unicode compile wxString with Unicode support"
698dcdb6 176ac_help="$ac_help
8168de4c 177 --enable-wcsrtombs use wcsrtombs instead of buggy (GNU libc1/Linux libc5) wcstombs"
698dcdb6 178ac_help="$ac_help
8168de4c 179 --enable-wxprintfv use wxWindows implementation of vprintf()"
698dcdb6 180ac_help="$ac_help
8168de4c 181 --enable-std_iostreams use standard C++ stream classes"
698dcdb6 182ac_help="$ac_help
8168de4c 183 --enable-filesystem use virtual file systems classes"
698dcdb6 184ac_help="$ac_help
8168de4c 185 --enable-fs_inet use virtual HTTP/FTP filesystems"
698dcdb6 186ac_help="$ac_help
8168de4c 187 --enable-fs_zip use virtual ZIP filesystems"
698dcdb6 188ac_help="$ac_help
8168de4c 189 --enable-zipstream use wxZipInputStream"
698dcdb6 190ac_help="$ac_help
8168de4c 191 --enable-catch_segvs catch signals and pass them to wxApp::OnFatalException"
698dcdb6 192ac_help="$ac_help
8168de4c 193 --enable-snglinst use wxSingleInstanceChecker class"
698dcdb6 194ac_help="$ac_help
8168de4c 195 --enable-mimetypes use wxMimeTypesManager"
3e44f09d
VZ
196ac_help="$ac_help
197 --enable-sysoptions use wxSystemOptions"
1e6feb95 198ac_help="$ac_help
8168de4c 199 --enable-threads use threads"
698dcdb6 200ac_help="$ac_help
8168de4c 201 --enable-serial use class serialization"
698dcdb6 202ac_help="$ac_help
8168de4c 203 --enable-docview use document view architecture"
698dcdb6 204ac_help="$ac_help
3379ed37 205 --enable-help use help subsystem"
29fd3c0c
VS
206ac_help="$ac_help
207 --enable-mshtmlhelp use MS HTML Help (win32)"
3379ed37
VZ
208ac_help="$ac_help
209 --enable-html use wxHTML sub-library"
210ac_help="$ac_help
211 --enable-htmlhelp use wxHTML-based help"
698dcdb6 212ac_help="$ac_help
8168de4c 213 --enable-constraints use layout-constraints system"
698dcdb6 214ac_help="$ac_help
8168de4c 215 --enable-printarch use printing architecture"
698dcdb6 216ac_help="$ac_help
8168de4c 217 --enable-mdi use multiple document interface architecture"
698dcdb6 218ac_help="$ac_help
8168de4c 219 --enable-loggui use standard GUI logger"
1e6feb95 220ac_help="$ac_help
8168de4c 221 --enable-logwin use wxLogWindow"
1e6feb95 222ac_help="$ac_help
8168de4c 223 --enable-postscript use wxPostscriptDC device context (default for gtk+)"
698dcdb6 224ac_help="$ac_help
8168de4c 225 --enable-prologio use Prolog IO library"
698dcdb6 226ac_help="$ac_help
8168de4c 227 --enable-resources use wxWindows resources"
698dcdb6 228ac_help="$ac_help
8168de4c 229 --enable-xresources use X resources for save (default for gtk+)"
698dcdb6 230ac_help="$ac_help
8168de4c 231 --enable-clipboard use wxClipboard classes"
698dcdb6 232ac_help="$ac_help
8168de4c 233 --enable-dnd use Drag'n'Drop classes"
698dcdb6 234ac_help="$ac_help
8168de4c 235 --enable-metafile use win32 metafiles"
698dcdb6 236ac_help="$ac_help
8168de4c 237 --enable-wxtree make wxTree library"
698dcdb6 238ac_help="$ac_help
8168de4c 239 --enable-controls use all usual controls"
698dcdb6 240ac_help="$ac_help
8168de4c 241 --enable-accel use accelerators"
698dcdb6 242ac_help="$ac_help
8168de4c 243 --enable-button use wxButton class"
698dcdb6 244ac_help="$ac_help
8168de4c 245 --enable-bmpbutton use wxBitmapButton class"
698dcdb6 246ac_help="$ac_help
8168de4c 247 --enable-calendar use wxCalendarCtrl class"
1e6feb95 248ac_help="$ac_help
8168de4c 249 --enable-caret use wxCaret class"
1e6feb95 250ac_help="$ac_help
8168de4c 251 --enable-checkbox use wxCheckBox class"
698dcdb6 252ac_help="$ac_help
8168de4c 253 --enable-checklst use wxCheckListBox (listbox with checkboxes) class"
698dcdb6 254ac_help="$ac_help
8168de4c 255 --enable-choice use wxChoice class"
698dcdb6 256ac_help="$ac_help
8168de4c 257 --enable-combobox use wxComboBox classes"
698dcdb6 258ac_help="$ac_help
8168de4c 259 --enable-gauge use wxGauge class"
698dcdb6 260ac_help="$ac_help
8168de4c 261 --enable-grid use wxGrid class"
698dcdb6 262ac_help="$ac_help
8168de4c 263 --enable-newgrid use new wxGrid class"
698dcdb6 264ac_help="$ac_help
8168de4c 265 --enable-imaglist use wxImageList class"
698dcdb6 266ac_help="$ac_help
8168de4c 267 --enable-listbox use wxListBox class"
698dcdb6 268ac_help="$ac_help
8168de4c 269 --enable-listctrl use wxListCtrl class"
698dcdb6 270ac_help="$ac_help
8168de4c 271 --enable-notebook use wxNotebook class"
698dcdb6 272ac_help="$ac_help
8168de4c 273 --enable-radiobox use wxRadioBox class"
698dcdb6 274ac_help="$ac_help
8168de4c 275 --enable-radiobtn use wxRadioButton class"
698dcdb6 276ac_help="$ac_help
8168de4c 277 --enable-sash use wxSashWindow class"
698dcdb6 278ac_help="$ac_help
8168de4c 279 --enable-scrollbar use wxScrollBar class and scrollable windows"
698dcdb6 280ac_help="$ac_help
8168de4c 281 --enable-slider use wxSlider class"
698dcdb6 282ac_help="$ac_help
8168de4c 283 --enable-spinbtn use wxSpinButton class"
698dcdb6 284ac_help="$ac_help
8168de4c 285 --enable-spinctrl use wxSpinCtrl class"
698dcdb6 286ac_help="$ac_help
8168de4c 287 --enable-splitter use wxSplitterWindow class"
698dcdb6 288ac_help="$ac_help
8168de4c 289 --enable-statbmp use wxStaticBitmap class"
698dcdb6 290ac_help="$ac_help
8168de4c 291 --enable-statbox use wxStaticBox class"
698dcdb6 292ac_help="$ac_help
8168de4c 293 --enable-statline use wxStaticLine class"
698dcdb6 294ac_help="$ac_help
8168de4c 295 --enable-stattext use wxStaticText class"
1e6feb95 296ac_help="$ac_help
8168de4c 297 --enable-statusbar use wxStatusBar class"
698dcdb6 298ac_help="$ac_help
8168de4c 299 --enable-tabdialog use wxTabControl class"
698dcdb6 300ac_help="$ac_help
8168de4c 301 --enable-textctrl use wxTextCtrl class"
1e6feb95 302ac_help="$ac_help
8168de4c 303 --enable-togglebtn use wxToggleButton class"
698dcdb6 304ac_help="$ac_help
8168de4c 305 --enable-toolbar use wxToolBar class"
698dcdb6 306ac_help="$ac_help
8168de4c 307 --enable-tbarnative use native wxToolBar class"
698dcdb6 308ac_help="$ac_help
8168de4c 309 --enable-tbarsmpl use wxToolBarSimple class"
698dcdb6 310ac_help="$ac_help
8168de4c 311 --enable-treectrl use wxTreeCtrl class"
9f41d601
RR
312ac_help="$ac_help
313 --enable-popupwin use wxPopUpWindow class"
698dcdb6 314ac_help="$ac_help
8168de4c 315 --enable-commondlg use common dialogs (wxDirDialog, wxProgressDialog, wxTextDialog, ...)"
698dcdb6 316ac_help="$ac_help
8168de4c 317 --enable-choicedlg use wxChoiceDialog"
1e6feb95 318ac_help="$ac_help
8168de4c 319 --enable-coldlg use wxColourDialog"
1e6feb95 320ac_help="$ac_help
8168de4c 321 --enable-filedlg use wxFileDialog"
1e6feb95 322ac_help="$ac_help
8168de4c 323 --enable-fontdlg use wxFontDialog"
1e6feb95 324ac_help="$ac_help
8168de4c 325 --enable-dirdlg use wxDirDialog"
698dcdb6 326ac_help="$ac_help
8168de4c 327 --enable-msgdlg use wxMessageDialog"
1e6feb95 328ac_help="$ac_help
8168de4c 329 --enable-numberdlg use wxNumberEntryDialog"
1e6feb95 330ac_help="$ac_help
8168de4c 331 --enable-textdlg use wxTextDialog"
698dcdb6 332ac_help="$ac_help
8168de4c 333 --enable-tipdlg use startup tips"
698dcdb6 334ac_help="$ac_help
8168de4c 335 --enable-progressdlg use wxProgressDialog"
b1f5d087
VZ
336ac_help="$ac_help
337 --enable-wizarddlg use wxWizard"
698dcdb6 338ac_help="$ac_help
8168de4c 339 --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes"
1e6feb95 340ac_help="$ac_help
8168de4c 341 --enable-miniframe use wxMiniFrame class"
698dcdb6 342ac_help="$ac_help
8168de4c 343 --enable-tooltips use wxToolTip class"
698dcdb6 344ac_help="$ac_help
8168de4c 345 --enable-splines use spline drawing code"
698dcdb6 346ac_help="$ac_help
8168de4c 347 --enable-validators use wxValidator and derived classes"
698dcdb6 348ac_help="$ac_help
8168de4c 349 --enable-busyinfo use wxBusyInfo"
698dcdb6 350ac_help="$ac_help
8168de4c 351 --enable-joystick compile in joystick support (Linux only)"
698dcdb6 352ac_help="$ac_help
8168de4c 353 --enable-metafiles use wxMetaFile (Windows only)"
24fd6d87
VZ
354ac_help="$ac_help
355 --enable-dragimage use wxDragImage"
1e6feb95 356ac_help="$ac_help
8168de4c 357 --enable-image use wxImage class"
698dcdb6 358ac_help="$ac_help
8168de4c 359 --enable-gif use gif images (GIF file format)"
698dcdb6 360ac_help="$ac_help
8168de4c 361 --enable-pcx use pcx images (PCX file format)"
698dcdb6 362ac_help="$ac_help
8168de4c 363 --enable-pnm use pnm images (PNM file format)"
698dcdb6 364ac_help="$ac_help
8168de4c 365 --enable-xpm use xpm images (XPM file format)"
698dcdb6
VZ
366ac_help="$ac_help
367 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)"
368ac_help="$ac_help
369 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)"
370ac_help="$ac_help
371 --disable-gtktest Do not try to compile and run a test GTK program"
372ac_help="$ac_help
373 --with-x use the X Window System"
10f2d63a
VZ
374
375# Initialize some variables set by options.
376# The variables have the same names as the options, with
377# dashes changed to underlines.
698dcdb6
VZ
378build=NONE
379cache_file=./config.cache
10f2d63a 380exec_prefix=NONE
698dcdb6 381host=NONE
10f2d63a 382no_create=
698dcdb6 383nonopt=NONE
10f2d63a
VZ
384no_recursion=
385prefix=NONE
386program_prefix=NONE
387program_suffix=NONE
388program_transform_name=s,x,x,
389silent=
390site=
391srcdir=
698dcdb6 392target=NONE
10f2d63a
VZ
393verbose=
394x_includes=NONE
395x_libraries=NONE
396bindir='${exec_prefix}/bin'
397sbindir='${exec_prefix}/sbin'
398libexecdir='${exec_prefix}/libexec'
399datadir='${prefix}/share'
400sysconfdir='${prefix}/etc'
401sharedstatedir='${prefix}/com'
402localstatedir='${prefix}/var'
403libdir='${exec_prefix}/lib'
404includedir='${prefix}/include'
405oldincludedir='/usr/include'
406infodir='${prefix}/info'
407mandir='${prefix}/man'
408
698dcdb6
VZ
409# Initialize some other variables.
410subdirs=
411MFLAGS= MAKEFLAGS=
412SHELL=${CONFIG_SHELL-/bin/sh}
413# Maximum number of lines to put in a shell here document.
414ac_max_here_lines=12
10f2d63a
VZ
415
416ac_prev=
417for ac_option
418do
698dcdb6 419
10f2d63a
VZ
420 # If the previous option needs an argument, assign it.
421 if test -n "$ac_prev"; then
422 eval "$ac_prev=\$ac_option"
423 ac_prev=
424 continue
425 fi
426
698dcdb6
VZ
427 case "$ac_option" in
428 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
429 *) ac_optarg= ;;
430 esac
10f2d63a
VZ
431
432 # Accept the important Cygnus configure options, so we can diagnose typos.
433
698dcdb6 434 case "$ac_option" in
10f2d63a
VZ
435
436 -bindir | --bindir | --bindi | --bind | --bin | --bi)
437 ac_prev=bindir ;;
438 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
698dcdb6 439 bindir="$ac_optarg" ;;
10f2d63a
VZ
440
441 -build | --build | --buil | --bui | --bu)
698dcdb6 442 ac_prev=build ;;
10f2d63a 443 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
698dcdb6 444 build="$ac_optarg" ;;
10f2d63a
VZ
445
446 -cache-file | --cache-file | --cache-fil | --cache-fi \
447 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
448 ac_prev=cache_file ;;
449 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
450 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
698dcdb6 451 cache_file="$ac_optarg" ;;
10f2d63a
VZ
452
453 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
454 ac_prev=datadir ;;
455 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
456 | --da=*)
698dcdb6 457 datadir="$ac_optarg" ;;
10f2d63a
VZ
458
459 -disable-* | --disable-*)
698dcdb6 460 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
10f2d63a 461 # Reject names that are not valid shell variable names.
698dcdb6
VZ
462 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
463 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
464 fi
465 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
466 eval "enable_${ac_feature}=no" ;;
10f2d63a
VZ
467
468 -enable-* | --enable-*)
698dcdb6 469 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
10f2d63a 470 # Reject names that are not valid shell variable names.
698dcdb6
VZ
471 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
472 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
473 fi
474 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
475 case "$ac_option" in
476 *=*) ;;
10f2d63a
VZ
477 *) ac_optarg=yes ;;
478 esac
698dcdb6 479 eval "enable_${ac_feature}='$ac_optarg'" ;;
10f2d63a
VZ
480
481 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
482 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
483 | --exec | --exe | --ex)
484 ac_prev=exec_prefix ;;
485 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
486 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
487 | --exec=* | --exe=* | --ex=*)
698dcdb6 488 exec_prefix="$ac_optarg" ;;
10f2d63a
VZ
489
490 -gas | --gas | --ga | --g)
491 # Obsolete; use --with-gas.
492 with_gas=yes ;;
493
698dcdb6
VZ
494 -help | --help | --hel | --he)
495 # Omit some internal or obsolete options to make the list less imposing.
496 # This message is too long to be a string in the A/UX 3.1 sh.
497 cat << EOF
498Usage: configure [options] [host]
499Options: [defaults in brackets after descriptions]
500Configuration:
501 --cache-file=FILE cache test results in FILE
502 --help print this message
503 --no-create do not create output files
504 --quiet, --silent do not print \`checking...' messages
505 --version print the version of autoconf that created configure
506Directory and file names:
507 --prefix=PREFIX install architecture-independent files in PREFIX
508 [$ac_default_prefix]
509 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
510 [same as prefix]
511 --bindir=DIR user executables in DIR [EPREFIX/bin]
512 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
513 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
514 --datadir=DIR read-only architecture-independent data in DIR
515 [PREFIX/share]
516 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
517 --sharedstatedir=DIR modifiable architecture-independent data in DIR
518 [PREFIX/com]
519 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
520 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
521 --includedir=DIR C header files in DIR [PREFIX/include]
522 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
523 --infodir=DIR info documentation in DIR [PREFIX/info]
524 --mandir=DIR man documentation in DIR [PREFIX/man]
525 --srcdir=DIR find the sources in DIR [configure dir or ..]
526 --program-prefix=PREFIX prepend PREFIX to installed program names
527 --program-suffix=SUFFIX append SUFFIX to installed program names
528 --program-transform-name=PROGRAM
529 run sed PROGRAM on installed program names
530EOF
531 cat << EOF
532Host type:
533 --build=BUILD configure for building on BUILD [BUILD=HOST]
534 --host=HOST configure for HOST [guessed]
535 --target=TARGET configure for TARGET [TARGET=HOST]
536Features and packages:
537 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
538 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
539 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
540 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
541 --x-includes=DIR X include files are in DIR
542 --x-libraries=DIR X library files are in DIR
543EOF
544 if test -n "$ac_help"; then
545 echo "--enable and --with options recognized:$ac_help"
546 fi
547 exit 0 ;;
10f2d63a
VZ
548
549 -host | --host | --hos | --ho)
698dcdb6 550 ac_prev=host ;;
10f2d63a 551 -host=* | --host=* | --hos=* | --ho=*)
698dcdb6 552 host="$ac_optarg" ;;
10f2d63a
VZ
553
554 -includedir | --includedir | --includedi | --included | --include \
555 | --includ | --inclu | --incl | --inc)
556 ac_prev=includedir ;;
557 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
558 | --includ=* | --inclu=* | --incl=* | --inc=*)
698dcdb6 559 includedir="$ac_optarg" ;;
10f2d63a
VZ
560
561 -infodir | --infodir | --infodi | --infod | --info | --inf)
562 ac_prev=infodir ;;
563 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
698dcdb6 564 infodir="$ac_optarg" ;;
10f2d63a
VZ
565
566 -libdir | --libdir | --libdi | --libd)
567 ac_prev=libdir ;;
568 -libdir=* | --libdir=* | --libdi=* | --libd=*)
698dcdb6 569 libdir="$ac_optarg" ;;
10f2d63a
VZ
570
571 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
572 | --libexe | --libex | --libe)
573 ac_prev=libexecdir ;;
574 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
575 | --libexe=* | --libex=* | --libe=*)
698dcdb6 576 libexecdir="$ac_optarg" ;;
10f2d63a
VZ
577
578 -localstatedir | --localstatedir | --localstatedi | --localstated \
579 | --localstate | --localstat | --localsta | --localst \
580 | --locals | --local | --loca | --loc | --lo)
581 ac_prev=localstatedir ;;
582 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
583 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
584 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
698dcdb6 585 localstatedir="$ac_optarg" ;;
10f2d63a
VZ
586
587 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
588 ac_prev=mandir ;;
589 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
698dcdb6 590 mandir="$ac_optarg" ;;
10f2d63a
VZ
591
592 -nfp | --nfp | --nf)
593 # Obsolete; use --without-fp.
594 with_fp=no ;;
595
596 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
597 | --no-cr | --no-c)
598 no_create=yes ;;
599
600 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
601 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
602 no_recursion=yes ;;
603
604 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
605 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
606 | --oldin | --oldi | --old | --ol | --o)
607 ac_prev=oldincludedir ;;
608 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
609 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
610 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
698dcdb6 611 oldincludedir="$ac_optarg" ;;
10f2d63a
VZ
612
613 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
614 ac_prev=prefix ;;
615 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
698dcdb6 616 prefix="$ac_optarg" ;;
10f2d63a
VZ
617
618 -program-prefix | --program-prefix | --program-prefi | --program-pref \
619 | --program-pre | --program-pr | --program-p)
620 ac_prev=program_prefix ;;
621 -program-prefix=* | --program-prefix=* | --program-prefi=* \
622 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
698dcdb6 623 program_prefix="$ac_optarg" ;;
10f2d63a
VZ
624
625 -program-suffix | --program-suffix | --program-suffi | --program-suff \
626 | --program-suf | --program-su | --program-s)
627 ac_prev=program_suffix ;;
628 -program-suffix=* | --program-suffix=* | --program-suffi=* \
629 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
698dcdb6 630 program_suffix="$ac_optarg" ;;
10f2d63a
VZ
631
632 -program-transform-name | --program-transform-name \
633 | --program-transform-nam | --program-transform-na \
634 | --program-transform-n | --program-transform- \
635 | --program-transform | --program-transfor \
636 | --program-transfo | --program-transf \
637 | --program-trans | --program-tran \
638 | --progr-tra | --program-tr | --program-t)
639 ac_prev=program_transform_name ;;
640 -program-transform-name=* | --program-transform-name=* \
641 | --program-transform-nam=* | --program-transform-na=* \
642 | --program-transform-n=* | --program-transform-=* \
643 | --program-transform=* | --program-transfor=* \
644 | --program-transfo=* | --program-transf=* \
645 | --program-trans=* | --program-tran=* \
646 | --progr-tra=* | --program-tr=* | --program-t=*)
698dcdb6 647 program_transform_name="$ac_optarg" ;;
10f2d63a
VZ
648
649 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
650 | -silent | --silent | --silen | --sile | --sil)
651 silent=yes ;;
652
653 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
654 ac_prev=sbindir ;;
655 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
656 | --sbi=* | --sb=*)
698dcdb6 657 sbindir="$ac_optarg" ;;
10f2d63a
VZ
658
659 -sharedstatedir | --sharedstatedir | --sharedstatedi \
660 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
661 | --sharedst | --shareds | --shared | --share | --shar \
662 | --sha | --sh)
663 ac_prev=sharedstatedir ;;
664 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
665 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
666 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
667 | --sha=* | --sh=*)
698dcdb6 668 sharedstatedir="$ac_optarg" ;;
10f2d63a
VZ
669
670 -site | --site | --sit)
671 ac_prev=site ;;
672 -site=* | --site=* | --sit=*)
698dcdb6 673 site="$ac_optarg" ;;
10f2d63a
VZ
674
675 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
676 ac_prev=srcdir ;;
677 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
698dcdb6 678 srcdir="$ac_optarg" ;;
10f2d63a
VZ
679
680 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
681 | --syscon | --sysco | --sysc | --sys | --sy)
682 ac_prev=sysconfdir ;;
683 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
684 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
698dcdb6 685 sysconfdir="$ac_optarg" ;;
10f2d63a
VZ
686
687 -target | --target | --targe | --targ | --tar | --ta | --t)
698dcdb6 688 ac_prev=target ;;
10f2d63a 689 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
698dcdb6 690 target="$ac_optarg" ;;
10f2d63a
VZ
691
692 -v | -verbose | --verbose | --verbos | --verbo | --verb)
693 verbose=yes ;;
694
698dcdb6
VZ
695 -version | --version | --versio | --versi | --vers)
696 echo "configure generated by autoconf version 2.13"
697 exit 0 ;;
10f2d63a
VZ
698
699 -with-* | --with-*)
698dcdb6 700 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
10f2d63a 701 # Reject names that are not valid shell variable names.
698dcdb6
VZ
702 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
703 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
704 fi
10f2d63a 705 ac_package=`echo $ac_package| sed 's/-/_/g'`
698dcdb6
VZ
706 case "$ac_option" in
707 *=*) ;;
10f2d63a
VZ
708 *) ac_optarg=yes ;;
709 esac
698dcdb6 710 eval "with_${ac_package}='$ac_optarg'" ;;
10f2d63a
VZ
711
712 -without-* | --without-*)
698dcdb6 713 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
10f2d63a 714 # Reject names that are not valid shell variable names.
698dcdb6
VZ
715 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
716 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
717 fi
718 ac_package=`echo $ac_package| sed 's/-/_/g'`
719 eval "with_${ac_package}=no" ;;
10f2d63a
VZ
720
721 --x)
722 # Obsolete; use --with-x.
723 with_x=yes ;;
724
725 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
726 | --x-incl | --x-inc | --x-in | --x-i)
727 ac_prev=x_includes ;;
728 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
729 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
698dcdb6 730 x_includes="$ac_optarg" ;;
10f2d63a
VZ
731
732 -x-libraries | --x-libraries | --x-librarie | --x-librari \
733 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
734 ac_prev=x_libraries ;;
735 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
736 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
698dcdb6 737 x_libraries="$ac_optarg" ;;
10f2d63a 738
698dcdb6 739 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
10f2d63a
VZ
740 ;;
741
742 *)
698dcdb6
VZ
743 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
744 echo "configure: warning: $ac_option: invalid host type" 1>&2
745 fi
746 if test "x$nonopt" != xNONE; then
747 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
748 fi
749 nonopt="$ac_option"
10f2d63a
VZ
750 ;;
751
752 esac
753done
754
755if test -n "$ac_prev"; then
698dcdb6
VZ
756 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
757fi
758
759trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
760
761# File descriptor usage:
762# 0 standard input
763# 1 file creation
764# 2 errors and warnings
765# 3 some systems may open it to /dev/tty
766# 4 used on the Kubota Titan
767# 6 checking for... messages and results
768# 5 compiler messages saved in config.log
769if test "$silent" = yes; then
770 exec 6>/dev/null
771else
772 exec 6>&1
10f2d63a 773fi
698dcdb6
VZ
774exec 5>./config.log
775
776echo "\
777This file contains any messages produced by compilers while
778running configure, to aid debugging if configure makes a mistake.
779" 1>&5
10f2d63a 780
698dcdb6
VZ
781# Strip out --no-create and --no-recursion so they do not pile up.
782# Also quote any args containing shell metacharacters.
783ac_configure_args=
784for ac_arg
10f2d63a 785do
698dcdb6
VZ
786 case "$ac_arg" in
787 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
788 | --no-cr | --no-c) ;;
789 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
790 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
791 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
792 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
793 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
10f2d63a
VZ
794 esac
795done
796
698dcdb6
VZ
797# NLS nuisances.
798# Only set these to C if already set. These must not be set unconditionally
799# because not all systems understand e.g. LANG=C (notably SCO).
800# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
801# Non-C LC_CTYPE values break the ctype check.
802if test "${LANG+set}" = set; then LANG=C; export LANG; fi
803if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
804if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
805if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
10f2d63a 806
698dcdb6
VZ
807# confdefs.h avoids OS command line length limits that DEFS can exceed.
808rm -rf conftest* confdefs.h
809# AIX cpp loses on an empty file, so make sure it contains at least a newline.
810echo > confdefs.h
10f2d63a 811
698dcdb6
VZ
812# A filename unique to this package, relative to the directory that
813# configure is in, which we can look for to find out if srcdir is correct.
814ac_unique_file=wx-config.in
10f2d63a
VZ
815
816# Find the source files, if location was not specified.
817if test -z "$srcdir"; then
818 ac_srcdir_defaulted=yes
819 # Try the directory containing this script, then its parent.
820 ac_prog=$0
698dcdb6 821 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
10f2d63a
VZ
822 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
823 srcdir=$ac_confdir
824 if test ! -r $srcdir/$ac_unique_file; then
825 srcdir=..
826 fi
827else
828 ac_srcdir_defaulted=no
829fi
830if test ! -r $srcdir/$ac_unique_file; then
831 if test "$ac_srcdir_defaulted" = yes; then
698dcdb6 832 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
10f2d63a 833 else
698dcdb6 834 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
10f2d63a
VZ
835 fi
836fi
698dcdb6 837srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
10f2d63a
VZ
838
839# Prefer explicitly selected file to automatically selected ones.
840if test -z "$CONFIG_SITE"; then
841 if test "x$prefix" != xNONE; then
842 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
843 else
844 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
845 fi
846fi
847for ac_site_file in $CONFIG_SITE; do
848 if test -r "$ac_site_file"; then
698dcdb6 849 echo "loading site script $ac_site_file"
10f2d63a
VZ
850 . "$ac_site_file"
851 fi
852done
853
854if test -r "$cache_file"; then
698dcdb6
VZ
855 echo "loading cache $cache_file"
856 . $cache_file
10f2d63a 857else
698dcdb6
VZ
858 echo "creating cache $cache_file"
859 > $cache_file
10f2d63a
VZ
860fi
861
862ac_ext=c
698dcdb6 863# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10f2d63a 864ac_cpp='$CPP $CPPFLAGS'
698dcdb6
VZ
865ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
866ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
867cross_compiling=$ac_cv_prog_cc_cross
868
869ac_exeext=
870ac_objext=o
871if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
872 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
873 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
874 ac_n= ac_c='
875' ac_t=' '
876 else
877 ac_n=-n ac_c= ac_t=
878 fi
10f2d63a 879else
698dcdb6 880 ac_n= ac_c='\c' ac_t=
10f2d63a 881fi
698dcdb6
VZ
882
883
10f2d63a 884
7c66a493
VZ
885ac_aux_dir=
886for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
887 if test -f $ac_dir/install-sh; then
888 ac_aux_dir=$ac_dir
889 ac_install_sh="$ac_aux_dir/install-sh -c"
890 break
891 elif test -f $ac_dir/install.sh; then
892 ac_aux_dir=$ac_dir
893 ac_install_sh="$ac_aux_dir/install.sh -c"
894 break
895 fi
896done
897if test -z "$ac_aux_dir"; then
698dcdb6 898 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
7c66a493 899fi
698dcdb6
VZ
900ac_config_guess=$ac_aux_dir/config.guess
901ac_config_sub=$ac_aux_dir/config.sub
902ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
703e0a69 903
698dcdb6
VZ
904
905# Do some error checking and defaulting for the host and target type.
906# The inputs are:
907# configure --host=HOST --target=TARGET --build=BUILD NONOPT
908#
909# The rules are:
910# 1. You are not allowed to specify --host, --target, and nonopt at the
911# same time.
912# 2. Host defaults to nonopt.
913# 3. If nonopt is not specified, then host defaults to the current host,
914# as determined by config.guess.
915# 4. Target and build default to nonopt.
916# 5. If nonopt is not specified, then target and build default to host.
7c66a493
VZ
917
918# The aliases save the names the user supplied, while $host etc.
919# will get canonicalized.
698dcdb6
VZ
920case $host---$target---$nonopt in
921NONE---*---* | *---NONE---* | *---*---NONE) ;;
922*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
923esac
924
925
926# Make sure we can run config.sub.
927if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
928else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
929fi
930
931echo $ac_n "checking host system type""... $ac_c" 1>&6
3e44f09d 932echo "configure:933: checking host system type" >&5
698dcdb6
VZ
933
934host_alias=$host
935case "$host_alias" in
936NONE)
937 case $nonopt in
938 NONE)
939 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
940 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
941 fi ;;
942 *) host_alias=$nonopt ;;
943 esac ;;
944esac
945
946host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
947host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
948host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
949host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
950echo "$ac_t""$host" 1>&6
951
952echo $ac_n "checking target system type""... $ac_c" 1>&6
3e44f09d 953echo "configure:954: checking target system type" >&5
698dcdb6
VZ
954
955target_alias=$target
956case "$target_alias" in
957NONE)
958 case $nonopt in
959 NONE) target_alias=$host_alias ;;
960 *) target_alias=$nonopt ;;
961 esac ;;
962esac
963
964target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
965target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
966target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
967target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
968echo "$ac_t""$target" 1>&6
969
970echo $ac_n "checking build system type""... $ac_c" 1>&6
3e44f09d 971echo "configure:972: checking build system type" >&5
698dcdb6
VZ
972
973build_alias=$build
974case "$build_alias" in
975NONE)
976 case $nonopt in
977 NONE) build_alias=$host_alias ;;
978 *) build_alias=$nonopt ;;
979 esac ;;
980esac
981
982build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
983build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
984build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
985build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
986echo "$ac_t""$build" 1>&6
987
988test "$host_alias" != "$target_alias" &&
7c66a493
VZ
989 test "$program_prefix$program_suffix$program_transform_name" = \
990 NONENONEs,x,x, &&
991 program_prefix=${target_alias}-
992
698dcdb6
VZ
993
994
10f2d63a 995WX_MAJOR_VERSION_NUMBER=2
37d403aa 996WX_MINOR_VERSION_NUMBER=3
6c01ec02 997WX_RELEASE_NUMBER=2
10f2d63a 998
10f2d63a 999WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER
10f2d63a 1000WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER
6426998c 1001
6c01ec02 1002WX_CURRENT=1
6426998c
RL
1003WX_REVISION=0
1004WX_AGE=0
1005
698dcdb6
VZ
1006
1007
10f2d63a
VZ
1008USE_UNIX=1
1009USE_WIN32=0
b12915c1 1010USE_BEOS=0
1216f52d 1011USE_MAC=0
b12915c1 1012
10f2d63a
VZ
1013USE_LINUX=
1014USE_SGI=
1015USE_HPUX=
1016USE_SYSV=
1017USE_SVR4=
1018USE_AIX=
1019USE_SUN=
1020USE_SOLARIS=
1021USE_SUNOS=
1022USE_ALPHA=
1023USE_OSF=
1024USE_BSD=
f11bdd03 1025USE_DARWIN=
10f2d63a 1026USE_FREEBSD=
95c8801c 1027USE_OPENBSD=
f6bcfd97 1028USE_NETBSD=
10f2d63a
VZ
1029USE_VMS=
1030USE_ULTRIX=
1031USE_CYGWIN=
1032USE_MINGW=
1033USE_DATA_GENERAL=
1034
ab9b9eab
VZ
1035NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1036
1e6feb95 1037ALL_TOOLKITS="CYGWIN GTK MAC MGL MINGW MOTIF PM WINE"
10f2d63a
VZ
1038
1039DEFAULT_wxUSE_GTK=0
1e6feb95
VZ
1040DEFAULT_wxUSE_MAC=0
1041DEFAULT_wxUSE_MGL=0
10f2d63a
VZ
1042DEFAULT_wxUSE_MOTIF=0
1043DEFAULT_wxUSE_MSW=0
e07802fc 1044DEFAULT_wxUSE_PM=0
1e6feb95 1045DEFAULT_wxUSE_WINE=0
10f2d63a
VZ
1046
1047DEFAULT_DEFAULT_wxUSE_GTK=0
1e6feb95
VZ
1048DEFAULT_DEFAULT_wxUSE_MAC=0
1049DEFAULT_DEFAULT_wxUSE_MGL=0
10f2d63a
VZ
1050DEFAULT_DEFAULT_wxUSE_MOTIF=0
1051DEFAULT_DEFAULT_wxUSE_MSW=0
e07802fc 1052DEFAULT_DEFAULT_wxUSE_PM=0
1e6feb95 1053DEFAULT_DEFAULT_wxUSE_WINE=0
10f2d63a 1054
d6a55c4b
VZ
1055PROGRAM_EXT=
1056
10f2d63a
VZ
1057case "${host}" in
1058 *-hp-hpux* )
1059 USE_HPUX=1
1060 DEFAULT_DEFAULT_wxUSE_MOTIF=1
ab9b9eab 1061 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
698dcdb6 1062 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1063#define __HPUX__ 1
1064EOF
1065
1066 ;;
1067 *-*-linux* )
1068 USE_LINUX=1
698dcdb6 1069 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1070#define __LINUX__ 1
1071EOF
1072
1073 TMP=`uname -m`
1074 if test "x$TMP" = "xalpha"; then
1075 USE_ALPHA=1
698dcdb6 1076 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1077#define __ALPHA__ 1
1078EOF
1079
1080 fi
1081 DEFAULT_DEFAULT_wxUSE_GTK=1
1082 ;;
1083 *-*-irix5* | *-*-irix6* )
1084 USE_SGI=1
1085 USE_SVR4=1
698dcdb6 1086 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1087#define __SGI__ 1
1088EOF
1089
698dcdb6 1090 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1091#define __SVR4__ 1
1092EOF
1093
1094 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1095 ;;
1096 *-*-solaris2* )
1097 USE_SUN=1
1098 USE_SOLARIS=1
1099 USE_SVR4=1
698dcdb6 1100 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1101#define __SUN__ 1
1102EOF
1103
698dcdb6 1104 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1105#define __SOLARIS__ 1
1106EOF
1107
698dcdb6 1108 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1109#define __SVR4__ 1
1110EOF
1111
1112 DEFAULT_DEFAULT_wxUSE_MOTIF=1
ab9b9eab 1113 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
10f2d63a
VZ
1114 ;;
1115 *-*-sunos4* )
1116 USE_SUN=1
1117 USE_SUNOS=1
1118 USE_BSD=1
698dcdb6 1119 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1120#define __SUN__ 1
1121EOF
1122
698dcdb6 1123 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1124#define __SUNOS__ 1
1125EOF
1126
698dcdb6 1127 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1128#define __BSD__ 1
1129EOF
1130
1131 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1132 ;;
f6bcfd97 1133 *-*-freebsd*)
10f2d63a
VZ
1134 USE_BSD=1
1135 USE_FREEBSD=1
698dcdb6 1136 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1137#define __FREEBSD__ 1
1138EOF
1139
698dcdb6 1140 cat >> confdefs.h <<\EOF
10f2d63a 1141#define __BSD__ 1
95c8801c
VS
1142EOF
1143
1144 DEFAULT_DEFAULT_wxUSE_GTK=1
1145 ;;
1146 *-*-openbsd*)
1147 USE_BSD=1
1148 USE_OPENBSD=1
698dcdb6 1149 cat >> confdefs.h <<\EOF
95c8801c
VS
1150#define __FREEBSD__ 1
1151EOF
1152
698dcdb6 1153 cat >> confdefs.h <<\EOF
95c8801c 1154#define __OPENBSD__ 1
f6bcfd97
BP
1155EOF
1156
1157 DEFAULT_DEFAULT_wxUSE_GTK=1
1158 ;;
1159 *-*-netbsd*)
1160 USE_BSD=1
1161 USE_NETBSD=1
698dcdb6 1162 cat >> confdefs.h <<\EOF
f6bcfd97
BP
1163#define __FREEBSD__ 1
1164EOF
1165
698dcdb6 1166 cat >> confdefs.h <<\EOF
f6bcfd97 1167#define __NETBSD__ 1
10f2d63a
VZ
1168EOF
1169
1170 DEFAULT_DEFAULT_wxUSE_GTK=1
1171 ;;
1172 *-*-osf* )
1173 USE_ALPHA=1
1174 USE_OSF=1
698dcdb6 1175 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1176#define __ALPHA__ 1
1177EOF
1178
698dcdb6 1179 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1180#define __OSF__ 1
1181EOF
1182
1183 DEFAULT_DEFAULT_wxUSE_MOTIF=1
f6bcfd97 1184 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
10f2d63a
VZ
1185 ;;
1186 *-*-dgux5* )
1187 USE_ALPHA=1
1188 USE_SVR4=1
698dcdb6 1189 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1190#define __ALPHA__ 1
1191EOF
1192
698dcdb6 1193 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1194#define __SVR4__ 1
1195EOF
1196
1197 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1198 ;;
1199 *-*-sysv5* )
1200 USE_SYSV=1
1201 USE_SVR4=1
698dcdb6 1202 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1203#define __SYSV__ 1
1204EOF
1205
698dcdb6 1206 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1207#define __SVR4__ 1
1208EOF
1209
1210 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1211 ;;
1212 *-*-aix* )
1213 USE_AIX=1
1214 USE_SYSV=1
1215 USE_SVR4=1
698dcdb6 1216 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1217#define __AIX__ 1
1218EOF
1219
698dcdb6 1220 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1221#define __SYSV__ 1
1222EOF
1223
698dcdb6 1224 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1225#define __SVR4__ 1
1226EOF
1227
1228 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1229 ;;
1230
1c8183e2 1231 *-*-cygwin* | *-*-mingw32* )
10f2d63a
VZ
1232 USE_UNIX=0
1233 USE_WIN32=1
698dcdb6 1234 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1235#define __WIN32__ 1
1236EOF
1237
698dcdb6 1238 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1239#define __WIN95__ 1
1240EOF
1241
698dcdb6 1242 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1243#define __WINDOWS__ 1
1244EOF
1245
698dcdb6 1246 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1247#define __GNUWIN32__ 1
1248EOF
1249
698dcdb6 1250 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1251#define STRICT 1
1252EOF
1253
698dcdb6 1254 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1255#define WINVER 0x0400
1256EOF
1257
cf27ef00 1258 PROGRAM_EXT=".exe"
10f2d63a
VZ
1259 DEFAULT_DEFAULT_wxUSE_MSW=1
1260 ;;
1261
1262 *-pc-os2_emx )
698dcdb6 1263 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1264#define __EMX__ 1
1265EOF
1266
cf27ef00 1267 PROGRAM_EXT=".exe"
e07802fc 1268 DEFAULT_DEFAULT_wxUSE_PM=1
10f2d63a
VZ
1269 ;;
1270
b4085ce6
GD
1271 *-*-darwin* )
1272 USE_BSD=1
f11bdd03 1273 USE_DARWIN=1
698dcdb6 1274 cat >> confdefs.h <<\EOF
f11bdd03 1275#define __BSD__ 1
b4085ce6
GD
1276EOF
1277
698dcdb6 1278 cat >> confdefs.h <<\EOF
f11bdd03 1279#define __DARWIN__ 1
b4085ce6
GD
1280EOF
1281
698dcdb6 1282 cat >> confdefs.h <<\EOF
b4085ce6
GD
1283#define __UNIX__ 1
1284EOF
1285
1286 DEFAULT_DEFAULT_wxUSE_MAC=1
1287 ;;
1288
b12915c1
VZ
1289 *-*-beos* )
1290 USE_BEOS=1
698dcdb6 1291 cat >> confdefs.h <<\EOF
b12915c1
VZ
1292#define __BEOS__ 1
1293EOF
1294
1295 ;;
1296
10f2d63a 1297 *)
698dcdb6 1298 { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; }
10f2d63a
VZ
1299esac
1300
1301if test "$USE_UNIX" = 1 ; then
b12915c1 1302 wxUSE_UNIX=yes
698dcdb6 1303 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1304#define __UNIX__ 1
1305EOF
1306
698dcdb6 1307
b12915c1
VZ
1308 SRC_SUBDIRS="$SRC_SUBDIRS unix"
1309 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS unix"
1310fi
1311
1312if test "$USE_BEOS" = 1; then
1313 SRC_SUBDIRS="$SRC_SUBDIRS be"
1314 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS be"
10f2d63a
VZ
1315fi
1316
1317if test "$USE_LINUX" = 1; then
698dcdb6 1318 echo $ac_n "checking for gettext in -lc""... $ac_c" 1>&6
f11bdd03 1319echo "configure:1320: checking for gettext in -lc" >&5
698dcdb6
VZ
1320ac_lib_var=`echo c'_'gettext | sed 'y%./+-%__p_%'`
1321if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1322 echo $ac_n "(cached) $ac_c" 1>&6
1e487827 1323else
698dcdb6
VZ
1324 ac_save_LIBS="$LIBS"
1325LIBS="-lc $LIBS"
1326cat > conftest.$ac_ext <<EOF
f11bdd03 1327#line 1328 "configure"
698dcdb6
VZ
1328#include "confdefs.h"
1329/* Override any gcc2 internal prototype to avoid an error. */
1330/* We use char because int might match the return type of a gcc2
1331 builtin and then its argument prototype would still apply. */
1332char gettext();
10f2d63a 1333
698dcdb6
VZ
1334int main() {
1335gettext()
1336; return 0; }
1337EOF
f11bdd03 1338if { (eval echo configure:1339: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
1339 rm -rf conftest*
1340 eval "ac_cv_lib_$ac_lib_var=yes"
10f2d63a 1341else
698dcdb6
VZ
1342 echo "configure: failed program was:" >&5
1343 cat conftest.$ac_ext >&5
1344 rm -rf conftest*
1345 eval "ac_cv_lib_$ac_lib_var=no"
10f2d63a 1346fi
698dcdb6
VZ
1347rm -f conftest*
1348LIBS="$ac_save_LIBS"
10f2d63a
VZ
1349
1350fi
698dcdb6
VZ
1351if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1352 echo "$ac_t""yes" 1>&6
1353 cat >> confdefs.h <<\EOF
1354#define wxHAVE_GLIBC2 1
1355EOF
10f2d63a
VZ
1356
1357else
698dcdb6 1358 echo "$ac_t""no" 1>&6
10f2d63a
VZ
1359fi
1360
1361fi
1362
1e487827 1363
1e487827 1364
6232543b 1365
10f2d63a
VZ
1366 wx_arg_cache_file="configarg.cache"
1367 echo "loading argument cache $wx_arg_cache_file"
1368 rm -f ${wx_arg_cache_file}.tmp
1369 touch ${wx_arg_cache_file}.tmp
1370 touch ${wx_arg_cache_file}
698dcdb6 1371
10f2d63a
VZ
1372
1373DEBUG_CONFIGURE=0
1374if test $DEBUG_CONFIGURE = 1; then
1e6feb95
VZ
1375 DEFAULT_wxUSE_UNIVERSAL=no
1376
10f2d63a
VZ
1377 DEFAULT_wxUSE_THREADS=yes
1378
1379 DEFAULT_wxUSE_SHARED=yes
00cf1208 1380 DEFAULT_wxUSE_BURNT_NAME=no
1e6feb95 1381 DEFAULT_wxUSE_OPTIMISE=no
10f2d63a
VZ
1382 DEFAULT_wxUSE_PROFILE=no
1383 DEFAULT_wxUSE_NO_DEPS=no
1384 DEFAULT_wxUSE_NO_RTTI=no
1385 DEFAULT_wxUSE_NO_EXCEPTIONS=no
1386 DEFAULT_wxUSE_PERMISSIVE=no
1387 DEFAULT_wxUSE_DEBUG_FLAG=yes
1388 DEFAULT_wxUSE_DEBUG_INFO=yes
1389 DEFAULT_wxUSE_DEBUG_GDB=yes
1390 DEFAULT_wxUSE_MEM_TRACING=no
1391 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1392 DEFAULT_wxUSE_DMALLOC=no
1393 DEFAULT_wxUSE_APPLE_IEEE=no
1394
1395 DEFAULT_wxUSE_LOG=yes
1e6feb95
VZ
1396 DEFAULT_wxUSE_LOGWINDOW=no
1397 DEFAULT_wxUSE_LOGGUI=no
10f2d63a
VZ
1398
1399 DEFAULT_wxUSE_GUI=yes
1e6feb95 1400 DEFAULT_wxUSE_CONTROLS=no
10f2d63a 1401
3e44f09d 1402 DEFAULT_wxUSE_REGEX=no
10f2d63a
VZ
1403 DEFAULT_wxUSE_ZLIB=no
1404 DEFAULT_wxUSE_LIBPNG=no
1405 DEFAULT_wxUSE_LIBJPEG=no
c7a2bf27 1406 DEFAULT_wxUSE_LIBTIFF=no
10f2d63a 1407 DEFAULT_wxUSE_ODBC=no
3fed1840 1408 DEFAULT_wxUSE_FREETYPE=no
bdad4e7e 1409 DEFAULT_wxUSE_OPENGL=no
10f2d63a 1410
eb4efbdc 1411 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
4f3c5f06 1412 DEFAULT_wxUSE_SNGLINST_CHECKER=no
10f2d63a 1413 DEFAULT_wxUSE_STD_IOSTREAM=no
1e6feb95
VZ
1414 DEFAULT_wxUSE_CMDLINE_PARSER=no
1415 DEFAULT_wxUSE_DATETIME=no
1416 DEFAULT_wxUSE_TIMEDATE=no
1417 DEFAULT_wxUSE_TIMER=no
1418 DEFAULT_wxUSE_STOPWATCH=no
10f2d63a 1419 DEFAULT_wxUSE_FILE=no
1e6feb95 1420 DEFAULT_wxUSE_FFILE=no
10f2d63a 1421 DEFAULT_wxUSE_TEXTFILE=no
10f2d63a
VZ
1422 DEFAULT_wxUSE_WAVE=no
1423 DEFAULT_wxUSE_INTL=no
1424 DEFAULT_wxUSE_CONFIG=no
1e6feb95 1425 DEFAULT_wxUSE_FONTMAP=no
10f2d63a
VZ
1426 DEFAULT_wxUSE_STREAMS=no
1427 DEFAULT_wxUSE_SOCKETS=no
1428 DEFAULT_wxUSE_DIALUP_MANAGER=no
1429 DEFAULT_wxUSE_SERIAL=no
1430 DEFAULT_wxUSE_JOYSTICK=no
1431 DEFAULT_wxUSE_DYNLIB_CLASS=no
1432 DEFAULT_wxUSE_LONGLONG=no
e8f65ba6 1433 DEFAULT_wxUSE_GEOMETRY=no
10f2d63a
VZ
1434
1435 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
1436 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
1437 DEFAULT_wxUSE_POSTSCRIPT=no
1438
1439 DEFAULT_wxUSE_X_RESOURCES=no
1440 DEFAULT_wxUSE_CLIPBOARD=no
1441 DEFAULT_wxUSE_TOOLTIPS=no
1442 DEFAULT_wxUSE_DRAG_AND_DROP=no
24fd6d87 1443 DEFAULT_wxUSE_DRAGIMAGE=no
10f2d63a
VZ
1444 DEFAULT_wxUSE_SPLINES=no
1445
1446 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
1447 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
1448 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
1449
1450 DEFAULT_wxUSE_PROLOGIO=no
1451 DEFAULT_wxUSE_RESOURCES=no
1452 DEFAULT_wxUSE_CONSTRAINTS=no
1453 DEFAULT_wxUSE_IPC=no
1454 DEFAULT_wxUSE_HELP=no
29fd3c0c 1455 DEFAULT_wxUSE_MS_HTML_HELP=no
831b3152 1456
3379ed37 1457 DEFAULT_wxUSE_WXHTML_HELP=no
10f2d63a
VZ
1458 DEFAULT_wxUSE_WXTREE=no
1459 DEFAULT_wxUSE_METAFILE=no
1e6feb95 1460 DEFAULT_wxUSE_MIMETYPE=no
3e44f09d 1461 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
10f2d63a
VZ
1462
1463 DEFAULT_wxUSE_COMMONDLGS=no
1e6feb95
VZ
1464 DEFAULT_wxUSE_CHOICEDLG=no
1465 DEFAULT_wxUSE_COLOURDLG=no
10f2d63a 1466 DEFAULT_wxUSE_DIRDLG=no
1e6feb95
VZ
1467 DEFAULT_wxUSE_FILEDLG=no
1468 DEFAULT_wxUSE_FONTDLG=no
1469 DEFAULT_wxUSE_MSGDLG=no
1470 DEFAULT_wxUSE_NUMBERDLG=no
10f2d63a
VZ
1471 DEFAULT_wxUSE_TEXTDLG=no
1472 DEFAULT_wxUSE_STARTUP_TIPS=no
1473 DEFAULT_wxUSE_PROGRESSDLG=no
b1f5d087
VZ
1474 DEFAULT_wxUSE_WIZARDDLG=no
1475
1e6feb95 1476 DEFAULT_wxUSE_MENUS=no
10f2d63a
VZ
1477 DEFAULT_wxUSE_MINIFRAME=no
1478 DEFAULT_wxUSE_HTML=no
24528b0c 1479 DEFAULT_wxUSE_FILESYSTEM=no
10f2d63a
VZ
1480 DEFAULT_wxUSE_FS_INET=no
1481 DEFAULT_wxUSE_FS_ZIP=no
1482 DEFAULT_wxUSE_BUSYINFO=no
1483 DEFAULT_wxUSE_ZIPSTREAM=no
1e6feb95 1484 DEFAULT_wxUSE_VALIDATORS=no
10f2d63a
VZ
1485
1486 DEFAULT_wxUSE_ACCEL=no
1e6feb95 1487 DEFAULT_wxUSE_BUTTON=no
10f2d63a 1488 DEFAULT_wxUSE_BMPBUTTON=no
1e6feb95
VZ
1489 DEFAULT_wxUSE_CALCTRL=no
1490 DEFAULT_wxUSE_CARET=no
10f2d63a
VZ
1491 DEFAULT_wxUSE_CHECKBOX=no
1492 DEFAULT_wxUSE_CHECKLST=no
1e6feb95 1493 DEFAULT_wxUSE_CHOICE=no
10f2d63a
VZ
1494 DEFAULT_wxUSE_COMBOBOX=no
1495 DEFAULT_wxUSE_GAUGE=no
1496 DEFAULT_wxUSE_GRID=no
1497 DEFAULT_wxUSE_NEW_GRID=no
1498 DEFAULT_wxUSE_IMAGLIST=no
1499 DEFAULT_wxUSE_LISTBOX=no
1500 DEFAULT_wxUSE_LISTCTRL=no
1501 DEFAULT_wxUSE_NOTEBOOK=no
1502 DEFAULT_wxUSE_RADIOBOX=no
1503 DEFAULT_wxUSE_RADIOBTN=no
1504 DEFAULT_wxUSE_SASH=no
1505 DEFAULT_wxUSE_SCROLLBAR=no
1506 DEFAULT_wxUSE_SLIDER=no
1507 DEFAULT_wxUSE_SPINBTN=no
56cfaa52 1508 DEFAULT_wxUSE_SPINCTRL=no
10f2d63a
VZ
1509 DEFAULT_wxUSE_SPLITTER=no
1510 DEFAULT_wxUSE_STATBMP=no
1511 DEFAULT_wxUSE_STATBOX=no
1512 DEFAULT_wxUSE_STATLINE=no
1e6feb95 1513 DEFAULT_wxUSE_STATTEXT=no
10f2d63a
VZ
1514 DEFAULT_wxUSE_STATUSBAR=yes
1515 DEFAULT_wxUSE_TABDIALOG=no
1e6feb95 1516 DEFAULT_wxUSE_TEXTCTRL=no
1db8dc4a 1517 DEFAULT_wxUSE_TOGGLEBTN=no
10f2d63a 1518 DEFAULT_wxUSE_TOOLBAR=no
360d6699
VZ
1519 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
1520 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
10f2d63a 1521 DEFAULT_wxUSE_TREECTRL=no
9f41d601 1522 DEFAULT_wxUSE_POPUPWIN=no
10f2d63a
VZ
1523
1524 DEFAULT_wxUSE_UNICODE=no
1525 DEFAULT_wxUSE_WCSRTOMBS=no
1526
0046ff7c 1527 DEFAULT_wxUSE_IMAGE=no
10f2d63a
VZ
1528 DEFAULT_wxUSE_GIF=no
1529 DEFAULT_wxUSE_PCX=no
1530 DEFAULT_wxUSE_PNM=no
0046ff7c 1531 DEFAULT_wxUSE_XPM=no
10f2d63a 1532else
1e6feb95
VZ
1533 DEFAULT_wxUSE_UNIVERSAL=no
1534
10f2d63a
VZ
1535 DEFAULT_wxUSE_THREADS=yes
1536
1537 DEFAULT_wxUSE_SHARED=yes
00cf1208 1538 DEFAULT_wxUSE_BURNT_NAME=no
10f2d63a
VZ
1539 DEFAULT_wxUSE_OPTIMISE=yes
1540 DEFAULT_wxUSE_PROFILE=no
1541 DEFAULT_wxUSE_NO_DEPS=no
1542 DEFAULT_wxUSE_NO_RTTI=no
1543 DEFAULT_wxUSE_NO_EXCEPTIONS=no
1544 DEFAULT_wxUSE_PERMISSIVE=no
1545 DEFAULT_wxUSE_DEBUG_FLAG=no
1546 DEFAULT_wxUSE_DEBUG_INFO=no
1547 DEFAULT_wxUSE_DEBUG_GDB=no
1548 DEFAULT_wxUSE_MEM_TRACING=no
1549 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1550 DEFAULT_wxUSE_DMALLOC=no
1551 DEFAULT_wxUSE_APPLE_IEEE=yes
1552
1553 DEFAULT_wxUSE_LOG=yes
d73be714
VZ
1554 DEFAULT_wxUSE_LOGWINDOW=yes
1555 DEFAULT_wxUSE_LOGGUI=yes
10f2d63a
VZ
1556
1557 DEFAULT_wxUSE_GUI=yes
1558
831b3152 1559 DEFAULT_wxUSE_REGEX=yes
10f2d63a
VZ
1560 DEFAULT_wxUSE_ZLIB=yes
1561 DEFAULT_wxUSE_LIBPNG=yes
1562 DEFAULT_wxUSE_LIBJPEG=yes
b47c832e 1563 DEFAULT_wxUSE_LIBTIFF=yes
16b52fa1 1564 DEFAULT_wxUSE_ODBC=no
3fed1840 1565 DEFAULT_wxUSE_FREETYPE=no
bdad4e7e 1566 DEFAULT_wxUSE_OPENGL=no
10f2d63a 1567
eb4efbdc 1568 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
4f3c5f06 1569 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
10f2d63a 1570 DEFAULT_wxUSE_STD_IOSTREAM=no
1e6feb95
VZ
1571 DEFAULT_wxUSE_CMDLINE_PARSER=yes
1572 DEFAULT_wxUSE_DATETIME=yes
1573 DEFAULT_wxUSE_TIMEDATE=no
1574 DEFAULT_wxUSE_TIMER=yes
1575 DEFAULT_wxUSE_STOPWATCH=yes
10f2d63a 1576 DEFAULT_wxUSE_FILE=yes
1e6feb95 1577 DEFAULT_wxUSE_FFILE=yes
10f2d63a 1578 DEFAULT_wxUSE_TEXTFILE=yes
10f2d63a
VZ
1579 DEFAULT_wxUSE_WAVE=no
1580 DEFAULT_wxUSE_INTL=yes
1581 DEFAULT_wxUSE_CONFIG=yes
1e6feb95 1582 DEFAULT_wxUSE_FONTMAP=yes
10f2d63a
VZ
1583 DEFAULT_wxUSE_STREAMS=yes
1584 DEFAULT_wxUSE_SOCKETS=yes
1585 DEFAULT_wxUSE_DIALUP_MANAGER=yes
1586 DEFAULT_wxUSE_SERIAL=yes
1587 DEFAULT_wxUSE_JOYSTICK=yes
1588 DEFAULT_wxUSE_DYNLIB_CLASS=yes
b685cd9b 1589 DEFAULT_wxUSE_LONGLONG=yes
e8f65ba6 1590 DEFAULT_wxUSE_GEOMETRY=yes
10f2d63a
VZ
1591
1592 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
1593 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
1594 DEFAULT_wxUSE_POSTSCRIPT=yes
1595
1596 DEFAULT_wxUSE_X_RESOURCES=no
1597 DEFAULT_wxUSE_CLIPBOARD=yes
1598 DEFAULT_wxUSE_TOOLTIPS=yes
1599 DEFAULT_wxUSE_DRAG_AND_DROP=yes
24fd6d87 1600 DEFAULT_wxUSE_DRAGIMAGE=yes
10f2d63a
VZ
1601 DEFAULT_wxUSE_SPLINES=yes
1602
1603 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
1604 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
1605 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
1606
1607 DEFAULT_wxUSE_PROLOGIO=yes
1608 DEFAULT_wxUSE_RESOURCES=yes
1609 DEFAULT_wxUSE_CONSTRAINTS=yes
1610 DEFAULT_wxUSE_IPC=yes
1611 DEFAULT_wxUSE_HELP=yes
29fd3c0c 1612 DEFAULT_wxUSE_MS_HTML_HELP=yes
3379ed37 1613 DEFAULT_wxUSE_WXHTML_HELP=yes
10f2d63a
VZ
1614 DEFAULT_wxUSE_WXTREE=yes
1615 DEFAULT_wxUSE_METAFILE=yes
1e6feb95 1616 DEFAULT_wxUSE_MIMETYPE=yes
3e44f09d 1617 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
10f2d63a
VZ
1618
1619 DEFAULT_wxUSE_COMMONDLGS=yes
1e6feb95
VZ
1620 DEFAULT_wxUSE_CHOICEDLG=yes
1621 DEFAULT_wxUSE_COLOURDLG=yes
10f2d63a 1622 DEFAULT_wxUSE_DIRDLG=yes
1e6feb95
VZ
1623 DEFAULT_wxUSE_FILEDLG=yes
1624 DEFAULT_wxUSE_FONTDLG=yes
1625 DEFAULT_wxUSE_MSGDLG=yes
1626 DEFAULT_wxUSE_NUMBERDLG=yes
10f2d63a
VZ
1627 DEFAULT_wxUSE_TEXTDLG=yes
1628 DEFAULT_wxUSE_STARTUP_TIPS=yes
1629 DEFAULT_wxUSE_PROGRESSDLG=yes
f33f19dd
VZ
1630 DEFAULT_wxUSE_WIZARDDLG=yes
1631
1e6feb95 1632 DEFAULT_wxUSE_MENUS=yes
10f2d63a
VZ
1633 DEFAULT_wxUSE_MINIFRAME=yes
1634 DEFAULT_wxUSE_HTML=yes
24528b0c 1635 DEFAULT_wxUSE_FILESYSTEM=yes
10f2d63a
VZ
1636 DEFAULT_wxUSE_FS_INET=yes
1637 DEFAULT_wxUSE_FS_ZIP=yes
1638 DEFAULT_wxUSE_BUSYINFO=yes
1639 DEFAULT_wxUSE_ZIPSTREAM=yes
1640 DEFAULT_wxUSE_VALIDATORS=yes
1641
1642 DEFAULT_wxUSE_ACCEL=yes
1e6feb95 1643 DEFAULT_wxUSE_BUTTON=yes
10f2d63a 1644 DEFAULT_wxUSE_BMPBUTTON=yes
1e6feb95
VZ
1645 DEFAULT_wxUSE_CALCTRL=yes
1646 DEFAULT_wxUSE_CARET=yes
10f2d63a
VZ
1647 DEFAULT_wxUSE_CHECKBOX=yes
1648 DEFAULT_wxUSE_CHECKLST=yes
1649 DEFAULT_wxUSE_CHOICE=yes
1650 DEFAULT_wxUSE_COMBOBOX=yes
1651 DEFAULT_wxUSE_GAUGE=yes
1652 DEFAULT_wxUSE_GRID=yes
cc977e5f 1653 DEFAULT_wxUSE_NEW_GRID=yes
10f2d63a
VZ
1654 DEFAULT_wxUSE_IMAGLIST=yes
1655 DEFAULT_wxUSE_LISTBOX=yes
1656 DEFAULT_wxUSE_LISTCTRL=yes
1657 DEFAULT_wxUSE_NOTEBOOK=yes
1658 DEFAULT_wxUSE_RADIOBOX=yes
1659 DEFAULT_wxUSE_RADIOBTN=yes
1660 DEFAULT_wxUSE_SASH=yes
1661 DEFAULT_wxUSE_SCROLLBAR=yes
1662 DEFAULT_wxUSE_SLIDER=yes
1663 DEFAULT_wxUSE_SPINBTN=yes
56cfaa52 1664 DEFAULT_wxUSE_SPINCTRL=yes
10f2d63a
VZ
1665 DEFAULT_wxUSE_SPLITTER=yes
1666 DEFAULT_wxUSE_STATBMP=yes
1667 DEFAULT_wxUSE_STATBOX=yes
1668 DEFAULT_wxUSE_STATLINE=yes
1e6feb95 1669 DEFAULT_wxUSE_STATTEXT=yes
10f2d63a
VZ
1670 DEFAULT_wxUSE_STATUSBAR=yes
1671 DEFAULT_wxUSE_TABDIALOG=no
1e6feb95 1672 DEFAULT_wxUSE_TEXTCTRL=yes
1db8dc4a 1673 DEFAULT_wxUSE_TOGGLEBTN=yes
10f2d63a 1674 DEFAULT_wxUSE_TOOLBAR=yes
360d6699
VZ
1675 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
1676 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
10f2d63a 1677 DEFAULT_wxUSE_TREECTRL=yes
9f41d601 1678 DEFAULT_wxUSE_POPUPWIN=yes
10f2d63a
VZ
1679
1680 DEFAULT_wxUSE_UNICODE=no
1681 DEFAULT_wxUSE_WCSRTOMBS=no
1682
0046ff7c 1683 DEFAULT_wxUSE_IMAGE=yes
10f2d63a
VZ
1684 DEFAULT_wxUSE_GIF=yes
1685 DEFAULT_wxUSE_PCX=yes
1686 DEFAULT_wxUSE_PNM=yes
0046ff7c 1687 DEFAULT_wxUSE_XPM=yes
10f2d63a
VZ
1688fi
1689
698dcdb6
VZ
1690
1691
10f2d63a
VZ
1692for toolkit in `echo $ALL_TOOLKITS`; do
1693 LINE=`grep "wxUSE_$toolkit" ${wx_arg_cache_file}`
1694 if test "x$LINE" != x ; then
1695 has_toolkit_in_cache=1
1696 eval "DEFAULT_$LINE"
1697 eval "CACHE_$toolkit=1"
1698 fi
1699done
1700
698dcdb6
VZ
1701
1702
1703 echo $ac_n "checking for --enable-gui""... $ac_c" 1>&6
f11bdd03 1704echo "configure:1705: checking for --enable-gui" >&5
10f2d63a
VZ
1705 no_cache=0
1706 # Check whether --enable-gui or --disable-gui was given.
1707if test "${enable_gui+set}" = set; then
1708 enableval="$enable_gui"
698dcdb6 1709
10f2d63a
VZ
1710 if test "$enableval" = yes; then
1711 ac_cv_use_gui='wxUSE_GUI=yes'
1712 else
1713 ac_cv_use_gui='wxUSE_GUI=no'
1714 fi
698dcdb6 1715
10f2d63a 1716else
698dcdb6 1717
10f2d63a
VZ
1718 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
1719 if test "x$LINE" != x ; then
1720 eval "DEFAULT_$LINE"
1721 else
1722 no_cache=1
1723 fi
1724
1725 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
698dcdb6
VZ
1726
1727fi
10f2d63a
VZ
1728
1729
1730 eval "$ac_cv_use_gui"
1731 if test "$no_cache" != 1; then
1732 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
1733 fi
1734
1735 if test "$wxUSE_GUI" = yes; then
698dcdb6 1736 echo "$ac_t""yes" 1>&6
10f2d63a 1737 else
698dcdb6 1738 echo "$ac_t""no" 1>&6
10f2d63a 1739 fi
698dcdb6 1740
10f2d63a 1741
b12915c1 1742if test "$wxUSE_GUI" = "yes"; then
10f2d63a 1743
1e6feb95
VZ
1744
1745 echo $ac_n "checking for --enable-universal""... $ac_c" 1>&6
f11bdd03 1746echo "configure:1747: checking for --enable-universal" >&5
1e6feb95
VZ
1747 no_cache=0
1748 # Check whether --enable-universal or --disable-universal was given.
1749if test "${enable_universal+set}" = set; then
1750 enableval="$enable_universal"
1751
1752 if test "$enableval" = yes; then
1753 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
1754 else
1755 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
1756 fi
1757
1758else
1759
1760 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
1761 if test "x$LINE" != x ; then
1762 eval "DEFAULT_$LINE"
1763 else
1764 no_cache=1
1765 fi
1766
1767 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
1768
1769fi
1770
1771
1772 eval "$ac_cv_use_universal"
1773 if test "$no_cache" != 1; then
1774 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
1775 fi
1776
1777 if test "$wxUSE_UNIVERSAL" = yes; then
1778 echo "$ac_t""yes" 1>&6
1779 else
1780 echo "$ac_t""no" 1>&6
1781 fi
1782
10f2d63a
VZ
1783# Check whether --with-gtk or --without-gtk was given.
1784if test "${with_gtk+set}" = set; then
1785 withval="$with_gtk"
1786 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
698dcdb6 1787fi
10f2d63a
VZ
1788
1789# Check whether --with-motif or --without-motif was given.
1790if test "${with_motif+set}" = set; then
1791 withval="$with_motif"
1792 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
698dcdb6 1793fi
10f2d63a 1794
b4085ce6
GD
1795# Check whether --with-mac or --without-mac was given.
1796if test "${with_mac+set}" = set; then
1797 withval="$with_mac"
1798 wxUSE_MAC="$withval" TOOLKIT_GIVEN=1
698dcdb6 1799fi
b4085ce6 1800
10f2d63a
VZ
1801# Check whether --with-wine or --without-wine was given.
1802if test "${with_wine+set}" = set; then
1803 withval="$with_wine"
1804 wxUSE_WINE="$withval" CACHE_WINE=1 TOOLKIT_GIVEN=1
698dcdb6 1805fi
10f2d63a
VZ
1806
1807# Check whether --with-cygwin or --without-cygwin was given.
1808if test "${with_cygwin+set}" = set; then
1809 withval="$with_cygwin"
1810 wxUSE_CYGWIN="$withval" CACHE_CYGWIN=1 TOOLKIT_GIVEN=1
698dcdb6 1811fi
10f2d63a
VZ
1812
1813# Check whether --with-mingw or --without-mingw was given.
1814if test "${with_mingw+set}" = set; then
1815 withval="$with_mingw"
1816 wxUSE_MINGW="$withval" CACHE_MINGW=1 TOOLKIT_GIVEN=1
698dcdb6 1817fi
10f2d63a 1818
e07802fc
VZ
1819# Check whether --with-pm or --without-pm was given.
1820if test "${with_pm+set}" = set; then
1821 withval="$with_pm"
1822 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
698dcdb6
VZ
1823fi
1824
1e6feb95
VZ
1825# Check whether --with-mgl or --without-mgl was given.
1826if test "${with_mgl+set}" = set; then
1827 withval="$with_mgl"
1828 wxUSE_MGL="$withval" CACHE_MGL=1 TOOLKIT_GIVEN=1
1829fi
1830
10f2d63a 1831
8168de4c
VZ
1832# Check whether --enable-gtk2 or --disable-gtk2 was given.
1833if test "${enable_gtk2+set}" = set; then
1834 enableval="$enable_gtk2"
1835 wxUSE_GTK2=1
10f2d63a 1836else
8168de4c 1837 wxUSE_GTK2=0
698dcdb6
VZ
1838fi
1839
703e0a69 1840
1e487827 1841
698dcdb6 1842 echo $ac_n "checking for --with-libpng""... $ac_c" 1>&6
f11bdd03 1843echo "configure:1844: checking for --with-libpng" >&5
698dcdb6
VZ
1844 no_cache=0
1845 # Check whether --with-libpng or --without-libpng was given.
b12915c1
VZ
1846if test "${with_libpng+set}" = set; then
1847 withval="$with_libpng"
698dcdb6 1848
10f2d63a 1849 if test "$withval" = yes; then
b12915c1 1850 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
422107f9 1851 elif test "$withval" = no; then
b12915c1 1852 ac_cv_use_libpng='wxUSE_LIBPNG=no'
422107f9
VZ
1853 elif test "$withval" = sys; then
1854 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
1855 else
698dcdb6 1856 { echo "configure: error: Invalid value for --with-libpng: should be yes, no or sys" 1>&2; exit 1; }
10f2d63a 1857 fi
698dcdb6 1858
10f2d63a 1859else
698dcdb6 1860
b12915c1 1861 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
10f2d63a
VZ
1862 if test "x$LINE" != x ; then
1863 eval "DEFAULT_$LINE"
1864 else
1865 no_cache=1
1866 fi
1867
b12915c1 1868 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
698dcdb6
VZ
1869
1870fi
10f2d63a
VZ
1871
1872
b12915c1 1873 eval "$ac_cv_use_libpng"
10f2d63a 1874 if test "$no_cache" != 1; then
b12915c1 1875 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
1876 fi
1877
b12915c1 1878 if test "$wxUSE_LIBPNG" = yes; then
698dcdb6 1879 echo "$ac_t""yes" 1>&6
422107f9 1880 elif test "$wxUSE_LIBPNG" = no; then
698dcdb6 1881 echo "$ac_t""no" 1>&6
422107f9 1882 elif test "$wxUSE_LIBPNG" = sys; then
698dcdb6 1883 echo "$ac_t""system version" 1>&6
422107f9 1884 else
698dcdb6 1885 { echo "configure: error: Invalid value for --with-libpng: should be yes, no or sys" 1>&2; exit 1; }
10f2d63a 1886 fi
698dcdb6 1887
10f2d63a 1888
698dcdb6 1889 echo $ac_n "checking for --with-libjpeg""... $ac_c" 1>&6
f11bdd03 1890echo "configure:1891: checking for --with-libjpeg" >&5
10f2d63a 1891 no_cache=0
698dcdb6 1892 # Check whether --with-libjpeg or --without-libjpeg was given.
b12915c1
VZ
1893if test "${with_libjpeg+set}" = set; then
1894 withval="$with_libjpeg"
698dcdb6 1895
10f2d63a 1896 if test "$withval" = yes; then
b12915c1 1897 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
422107f9 1898 elif test "$withval" = no; then
b12915c1 1899 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
422107f9
VZ
1900 elif test "$withval" = sys; then
1901 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
1902 else
698dcdb6 1903 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no or sys" 1>&2; exit 1; }
10f2d63a 1904 fi
698dcdb6 1905
10f2d63a 1906else
698dcdb6 1907
b12915c1 1908 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
10f2d63a
VZ
1909 if test "x$LINE" != x ; then
1910 eval "DEFAULT_$LINE"
1911 else
1912 no_cache=1
1913 fi
1914
b12915c1 1915 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
698dcdb6
VZ
1916
1917fi
10f2d63a
VZ
1918
1919
b12915c1 1920 eval "$ac_cv_use_libjpeg"
10f2d63a 1921 if test "$no_cache" != 1; then
b12915c1 1922 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
1923 fi
1924
b12915c1 1925 if test "$wxUSE_LIBJPEG" = yes; then
698dcdb6 1926 echo "$ac_t""yes" 1>&6
422107f9 1927 elif test "$wxUSE_LIBJPEG" = no; then
698dcdb6 1928 echo "$ac_t""no" 1>&6
422107f9 1929 elif test "$wxUSE_LIBJPEG" = sys; then
698dcdb6 1930 echo "$ac_t""system version" 1>&6
422107f9 1931 else
698dcdb6 1932 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no or sys" 1>&2; exit 1; }
10f2d63a 1933 fi
698dcdb6 1934
10f2d63a 1935
698dcdb6 1936 echo $ac_n "checking for --with-libtiff""... $ac_c" 1>&6
f11bdd03 1937echo "configure:1938: checking for --with-libtiff" >&5
10f2d63a 1938 no_cache=0
698dcdb6 1939 # Check whether --with-libtiff or --without-libtiff was given.
b12915c1
VZ
1940if test "${with_libtiff+set}" = set; then
1941 withval="$with_libtiff"
698dcdb6 1942
10f2d63a 1943 if test "$withval" = yes; then
b12915c1 1944 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
0dcf9893 1945 elif test "$withval" = no; then
b12915c1 1946 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
0dcf9893
VZ
1947 elif test "$withval" = sys; then
1948 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
1949 else
698dcdb6 1950 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no or sys" 1>&2; exit 1; }
10f2d63a 1951 fi
698dcdb6 1952
10f2d63a 1953else
698dcdb6 1954
b12915c1 1955 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
10f2d63a
VZ
1956 if test "x$LINE" != x ; then
1957 eval "DEFAULT_$LINE"
1958 else
1959 no_cache=1
1960 fi
1961
b12915c1 1962 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
698dcdb6
VZ
1963
1964fi
10f2d63a
VZ
1965
1966
b12915c1 1967 eval "$ac_cv_use_libtiff"
10f2d63a 1968 if test "$no_cache" != 1; then
b12915c1 1969 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
1970 fi
1971
b12915c1 1972 if test "$wxUSE_LIBTIFF" = yes; then
698dcdb6 1973 echo "$ac_t""yes" 1>&6
0dcf9893 1974 elif test "$wxUSE_LIBTIFF" = no; then
698dcdb6 1975 echo "$ac_t""no" 1>&6
0dcf9893 1976 elif test "$wxUSE_LIBTIFF" = sys; then
698dcdb6 1977 echo "$ac_t""system version" 1>&6
0dcf9893 1978 else
698dcdb6 1979 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no or sys" 1>&2; exit 1; }
10f2d63a 1980 fi
698dcdb6 1981
10f2d63a 1982
698dcdb6 1983 echo $ac_n "checking for --with-freetype""... $ac_c" 1>&6
f11bdd03 1984echo "configure:1985: checking for --with-freetype" >&5
3fed1840 1985 no_cache=0
698dcdb6 1986 # Check whether --with-freetype or --without-freetype was given.
3fed1840
RR
1987if test "${with_freetype+set}" = set; then
1988 withval="$with_freetype"
698dcdb6 1989
3fed1840
RR
1990 if test "$withval" = yes; then
1991 ac_cv_use_freetype='wxUSE_FREETYPE=yes'
1992 elif test "$withval" = no; then
1993 ac_cv_use_freetype='wxUSE_FREETYPE=no'
1994 elif test "$withval" = sys; then
1995 ac_cv_use_freetype='wxUSE_FREETYPE=sys'
1996 else
698dcdb6 1997 { echo "configure: error: Invalid value for --with-freetype: should be yes, no or sys" 1>&2; exit 1; }
3fed1840 1998 fi
698dcdb6 1999
3fed1840 2000else
698dcdb6 2001
3fed1840
RR
2002 LINE=`grep "wxUSE_FREETYPE" ${wx_arg_cache_file}`
2003 if test "x$LINE" != x ; then
2004 eval "DEFAULT_$LINE"
2005 else
2006 no_cache=1
2007 fi
2008
2009 ac_cv_use_freetype='wxUSE_FREETYPE='$DEFAULT_wxUSE_FREETYPE
698dcdb6
VZ
2010
2011fi
3fed1840
RR
2012
2013
2014 eval "$ac_cv_use_freetype"
2015 if test "$no_cache" != 1; then
2016 echo $ac_cv_use_freetype >> ${wx_arg_cache_file}.tmp
2017 fi
2018
2019 if test "$wxUSE_FREETYPE" = yes; then
698dcdb6 2020 echo "$ac_t""yes" 1>&6
3fed1840 2021 elif test "$wxUSE_FREETYPE" = no; then
698dcdb6 2022 echo "$ac_t""no" 1>&6
3fed1840 2023 elif test "$wxUSE_FREETYPE" = sys; then
698dcdb6 2024 echo "$ac_t""system version" 1>&6
3fed1840 2025 else
698dcdb6 2026 { echo "configure: error: Invalid value for --with-freetype: should be yes, no or sys" 1>&2; exit 1; }
3fed1840 2027 fi
698dcdb6 2028
3fed1840 2029
698dcdb6 2030 echo $ac_n "checking for --with-opengl""... $ac_c" 1>&6
f11bdd03 2031echo "configure:2032: checking for --with-opengl" >&5
10f2d63a 2032 no_cache=0
698dcdb6 2033 # Check whether --with-opengl or --without-opengl was given.
b12915c1
VZ
2034if test "${with_opengl+set}" = set; then
2035 withval="$with_opengl"
698dcdb6 2036
10f2d63a 2037 if test "$withval" = yes; then
b12915c1 2038 ac_cv_use_opengl='wxUSE_OPENGL=yes'
10f2d63a 2039 else
b12915c1 2040 ac_cv_use_opengl='wxUSE_OPENGL=no'
10f2d63a 2041 fi
698dcdb6 2042
10f2d63a 2043else
698dcdb6 2044
b12915c1 2045 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
10f2d63a
VZ
2046 if test "x$LINE" != x ; then
2047 eval "DEFAULT_$LINE"
2048 else
2049 no_cache=1
2050 fi
2051
b12915c1 2052 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
698dcdb6
VZ
2053
2054fi
10f2d63a
VZ
2055
2056
b12915c1 2057 eval "$ac_cv_use_opengl"
10f2d63a 2058 if test "$no_cache" != 1; then
b12915c1 2059 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2060 fi
2061
b12915c1 2062 if test "$wxUSE_OPENGL" = yes; then
698dcdb6 2063 echo "$ac_t""yes" 1>&6
10f2d63a 2064 else
698dcdb6 2065 echo "$ac_t""no" 1>&6
10f2d63a 2066 fi
698dcdb6 2067
10f2d63a 2068
b12915c1
VZ
2069fi
2070
1e487827 2071
698dcdb6 2072 echo $ac_n "checking for --with-dmalloc""... $ac_c" 1>&6
f11bdd03 2073echo "configure:2074: checking for --with-dmalloc" >&5
698dcdb6
VZ
2074 no_cache=0
2075 # Check whether --with-dmalloc or --without-dmalloc was given.
b12915c1
VZ
2076if test "${with_dmalloc+set}" = set; then
2077 withval="$with_dmalloc"
698dcdb6 2078
c7a2bf27 2079 if test "$withval" = yes; then
b12915c1 2080 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
c7a2bf27 2081 else
b12915c1 2082 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
c7a2bf27 2083 fi
698dcdb6 2084
c7a2bf27 2085else
698dcdb6 2086
b12915c1 2087 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
c7a2bf27
RR
2088 if test "x$LINE" != x ; then
2089 eval "DEFAULT_$LINE"
2090 else
2091 no_cache=1
2092 fi
2093
b12915c1 2094 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
698dcdb6
VZ
2095
2096fi
c7a2bf27
RR
2097
2098
b12915c1 2099 eval "$ac_cv_use_dmalloc"
c7a2bf27 2100 if test "$no_cache" != 1; then
b12915c1 2101 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
c7a2bf27
RR
2102 fi
2103
b12915c1 2104 if test "$wxUSE_DMALLOC" = yes; then
698dcdb6 2105 echo "$ac_t""yes" 1>&6
c7a2bf27 2106 else
698dcdb6 2107 echo "$ac_t""no" 1>&6
c7a2bf27 2108 fi
698dcdb6 2109
c7a2bf27 2110
3e44f09d 2111 echo $ac_n "checking for --with-regex""... $ac_c" 1>&6
f11bdd03 2112echo "configure:2113: checking for --with-regex" >&5
3e44f09d
VZ
2113 no_cache=0
2114 # Check whether --with-regex or --without-regex was given.
2115if test "${with_regex+set}" = set; then
2116 withval="$with_regex"
2117
2118 if test "$withval" = yes; then
2119 ac_cv_use_regex='wxUSE_REGEX=yes'
2120 elif test "$withval" = no; then
2121 ac_cv_use_regex='wxUSE_REGEX=no'
2122 elif test "$withval" = sys; then
2123 ac_cv_use_regex='wxUSE_REGEX=sys'
2124 else
2125 { echo "configure: error: Invalid value for --with-regex: should be yes, no or sys" 1>&2; exit 1; }
2126 fi
2127
2128else
2129
2130 LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
2131 if test "x$LINE" != x ; then
2132 eval "DEFAULT_$LINE"
2133 else
2134 no_cache=1
2135 fi
2136
2137 ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
2138
2139fi
2140
2141
2142 eval "$ac_cv_use_regex"
2143 if test "$no_cache" != 1; then
2144 echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
2145 fi
2146
2147 if test "$wxUSE_REGEX" = yes; then
2148 echo "$ac_t""yes" 1>&6
2149 elif test "$wxUSE_REGEX" = no; then
2150 echo "$ac_t""no" 1>&6
2151 elif test "$wxUSE_REGEX" = sys; then
2152 echo "$ac_t""system version" 1>&6
2153 else
2154 { echo "configure: error: Invalid value for --with-regex: should be yes, no or sys" 1>&2; exit 1; }
2155 fi
2156
2157
698dcdb6 2158 echo $ac_n "checking for --with-zlib""... $ac_c" 1>&6
f11bdd03 2159echo "configure:2160: checking for --with-zlib" >&5
10f2d63a 2160 no_cache=0
698dcdb6 2161 # Check whether --with-zlib or --without-zlib was given.
b12915c1
VZ
2162if test "${with_zlib+set}" = set; then
2163 withval="$with_zlib"
698dcdb6 2164
10f2d63a 2165 if test "$withval" = yes; then
b12915c1 2166 ac_cv_use_zlib='wxUSE_ZLIB=yes'
422107f9 2167 elif test "$withval" = no; then
b12915c1 2168 ac_cv_use_zlib='wxUSE_ZLIB=no'
422107f9
VZ
2169 elif test "$withval" = sys; then
2170 ac_cv_use_zlib='wxUSE_ZLIB=sys'
2171 else
698dcdb6 2172 { echo "configure: error: Invalid value for --with-zlib: should be yes, no or sys" 1>&2; exit 1; }
10f2d63a 2173 fi
698dcdb6 2174
10f2d63a 2175else
698dcdb6 2176
b12915c1 2177 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
10f2d63a
VZ
2178 if test "x$LINE" != x ; then
2179 eval "DEFAULT_$LINE"
2180 else
2181 no_cache=1
2182 fi
2183
b12915c1 2184 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
698dcdb6
VZ
2185
2186fi
10f2d63a
VZ
2187
2188
b12915c1 2189 eval "$ac_cv_use_zlib"
10f2d63a 2190 if test "$no_cache" != 1; then
b12915c1 2191 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2192 fi
2193
b12915c1 2194 if test "$wxUSE_ZLIB" = yes; then
698dcdb6 2195 echo "$ac_t""yes" 1>&6
422107f9 2196 elif test "$wxUSE_ZLIB" = no; then
698dcdb6 2197 echo "$ac_t""no" 1>&6
422107f9 2198 elif test "$wxUSE_ZLIB" = sys; then
698dcdb6 2199 echo "$ac_t""system version" 1>&6
422107f9 2200 else
698dcdb6 2201 { echo "configure: error: Invalid value for --with-zlib: should be yes, no or sys" 1>&2; exit 1; }
10f2d63a 2202 fi
698dcdb6 2203
10f2d63a 2204
698dcdb6 2205 echo $ac_n "checking for --with-odbc""... $ac_c" 1>&6
f11bdd03 2206echo "configure:2207: checking for --with-odbc" >&5
10f2d63a 2207 no_cache=0
698dcdb6 2208 # Check whether --with-odbc or --without-odbc was given.
10f2d63a
VZ
2209if test "${with_odbc+set}" = set; then
2210 withval="$with_odbc"
698dcdb6 2211
10f2d63a
VZ
2212 if test "$withval" = yes; then
2213 ac_cv_use_odbc='wxUSE_ODBC=yes'
2214 else
2215 ac_cv_use_odbc='wxUSE_ODBC=no'
2216 fi
698dcdb6 2217
10f2d63a 2218else
698dcdb6 2219
10f2d63a
VZ
2220 LINE=`grep "wxUSE_ODBC" ${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_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
698dcdb6
VZ
2228
2229fi
10f2d63a
VZ
2230
2231
2232 eval "$ac_cv_use_odbc"
2233 if test "$no_cache" != 1; then
2234 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
2235 fi
2236
2237 if test "$wxUSE_ODBC" = yes; then
698dcdb6 2238 echo "$ac_t""yes" 1>&6
10f2d63a 2239 else
698dcdb6 2240 echo "$ac_t""no" 1>&6
10f2d63a 2241 fi
698dcdb6
VZ
2242
2243
10f2d63a 2244
698dcdb6
VZ
2245
2246
2247 echo $ac_n "checking for --enable-shared""... $ac_c" 1>&6
f11bdd03 2248echo "configure:2249: checking for --enable-shared" >&5
10f2d63a
VZ
2249 no_cache=0
2250 # Check whether --enable-shared or --disable-shared was given.
2251if test "${enable_shared+set}" = set; then
2252 enableval="$enable_shared"
698dcdb6 2253
10f2d63a
VZ
2254 if test "$enableval" = yes; then
2255 ac_cv_use_shared='wxUSE_SHARED=yes'
2256 else
2257 ac_cv_use_shared='wxUSE_SHARED=no'
2258 fi
698dcdb6 2259
10f2d63a 2260else
698dcdb6 2261
10f2d63a
VZ
2262 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
2263 if test "x$LINE" != x ; then
2264 eval "DEFAULT_$LINE"
2265 else
2266 no_cache=1
2267 fi
2268
2269 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
698dcdb6
VZ
2270
2271fi
10f2d63a
VZ
2272
2273
2274 eval "$ac_cv_use_shared"
2275 if test "$no_cache" != 1; then
2276 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
2277 fi
2278
2279 if test "$wxUSE_SHARED" = yes; then
698dcdb6 2280 echo "$ac_t""yes" 1>&6
10f2d63a 2281 else
698dcdb6 2282 echo "$ac_t""no" 1>&6
10f2d63a 2283 fi
698dcdb6 2284
10f2d63a 2285
698dcdb6 2286 echo $ac_n "checking for --enable-burnt_name""... $ac_c" 1>&6
f11bdd03 2287echo "configure:2288: checking for --enable-burnt_name" >&5
00cf1208
RR
2288 no_cache=0
2289 # Check whether --enable-burnt_name or --disable-burnt_name was given.
2290if test "${enable_burnt_name+set}" = set; then
2291 enableval="$enable_burnt_name"
698dcdb6 2292
00cf1208
RR
2293 if test "$enableval" = yes; then
2294 ac_cv_use_burnt_name='wxUSE_BURNT_NAME=yes'
2295 else
2296 ac_cv_use_burnt_name='wxUSE_BURNT_NAME=no'
2297 fi
698dcdb6 2298
00cf1208 2299else
698dcdb6 2300
00cf1208
RR
2301 LINE=`grep "wxUSE_BURNT_NAME" ${wx_arg_cache_file}`
2302 if test "x$LINE" != x ; then
2303 eval "DEFAULT_$LINE"
2304 else
2305 no_cache=1
2306 fi
2307
2308 ac_cv_use_burnt_name='wxUSE_BURNT_NAME='$DEFAULT_wxUSE_BURNT_NAME
698dcdb6
VZ
2309
2310fi
00cf1208
RR
2311
2312
2313 eval "$ac_cv_use_burnt_name"
2314 if test "$no_cache" != 1; then
2315 echo $ac_cv_use_burnt_name >> ${wx_arg_cache_file}.tmp
2316 fi
2317
2318 if test "$wxUSE_BURNT_NAME" = yes; then
698dcdb6 2319 echo "$ac_t""yes" 1>&6
00cf1208 2320 else
698dcdb6 2321 echo "$ac_t""no" 1>&6
00cf1208 2322 fi
698dcdb6 2323
00cf1208 2324
698dcdb6 2325 echo $ac_n "checking for --enable-optimise""... $ac_c" 1>&6
f11bdd03 2326echo "configure:2327: checking for --enable-optimise" >&5
10f2d63a
VZ
2327 no_cache=0
2328 # Check whether --enable-optimise or --disable-optimise was given.
2329if test "${enable_optimise+set}" = set; then
2330 enableval="$enable_optimise"
698dcdb6 2331
10f2d63a
VZ
2332 if test "$enableval" = yes; then
2333 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
2334 else
2335 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
2336 fi
698dcdb6 2337
10f2d63a 2338else
698dcdb6 2339
10f2d63a
VZ
2340 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
2341 if test "x$LINE" != x ; then
2342 eval "DEFAULT_$LINE"
2343 else
2344 no_cache=1
2345 fi
2346
2347 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
698dcdb6
VZ
2348
2349fi
10f2d63a
VZ
2350
2351
2352 eval "$ac_cv_use_optimise"
2353 if test "$no_cache" != 1; then
2354 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
2355 fi
2356
2357 if test "$wxUSE_OPTIMISE" = yes; then
698dcdb6 2358 echo "$ac_t""yes" 1>&6
10f2d63a 2359 else
698dcdb6 2360 echo "$ac_t""no" 1>&6
10f2d63a 2361 fi
698dcdb6 2362
10f2d63a 2363
698dcdb6 2364 echo $ac_n "checking for --enable-debug""... $ac_c" 1>&6
f11bdd03 2365echo "configure:2366: checking for --enable-debug" >&5
10f2d63a
VZ
2366 no_cache=0
2367 # Check whether --enable-debug or --disable-debug was given.
2368if test "${enable_debug+set}" = set; then
2369 enableval="$enable_debug"
698dcdb6 2370
10f2d63a
VZ
2371 if test "$enableval" = yes; then
2372 ac_cv_use_debug='wxUSE_DEBUG=yes'
2373 else
2374 ac_cv_use_debug='wxUSE_DEBUG=no'
2375 fi
698dcdb6 2376
10f2d63a 2377else
698dcdb6 2378
10f2d63a
VZ
2379 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
2380 if test "x$LINE" != x ; then
2381 eval "DEFAULT_$LINE"
2382 else
2383 no_cache=1
2384 fi
2385
2386 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
698dcdb6
VZ
2387
2388fi
10f2d63a
VZ
2389
2390
2391 eval "$ac_cv_use_debug"
2392 if test "$no_cache" != 1; then
2393 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
2394 fi
2395
2396 if test "$wxUSE_DEBUG" = yes; then
698dcdb6 2397 echo "$ac_t""yes" 1>&6
10f2d63a 2398 else
698dcdb6 2399 echo "$ac_t""no" 1>&6
10f2d63a 2400 fi
698dcdb6 2401
10f2d63a
VZ
2402
2403if test "$wxUSE_DEBUG" = "yes"; then
2404 DEFAULT_wxUSE_DEBUG_FLAG=yes
2405 DEFAULT_wxUSE_DEBUG_INFO=yes
2406elif test "$wxUSE_DEBUG" = "no"; then
2407 DEFAULT_wxUSE_DEBUG_FLAG=no
2408 DEFAULT_wxUSE_DEBUG_INFO=no
2409fi
2410
698dcdb6
VZ
2411
2412 echo $ac_n "checking for --enable-debug_flag""... $ac_c" 1>&6
f11bdd03 2413echo "configure:2414: checking for --enable-debug_flag" >&5
10f2d63a
VZ
2414 no_cache=0
2415 # Check whether --enable-debug_flag or --disable-debug_flag was given.
2416if test "${enable_debug_flag+set}" = set; then
2417 enableval="$enable_debug_flag"
698dcdb6 2418
10f2d63a
VZ
2419 if test "$enableval" = yes; then
2420 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
2421 else
2422 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
2423 fi
698dcdb6 2424
10f2d63a 2425else
698dcdb6 2426
10f2d63a
VZ
2427 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
2428 if test "x$LINE" != x ; then
2429 eval "DEFAULT_$LINE"
2430 else
2431 no_cache=1
2432 fi
2433
2434 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
698dcdb6
VZ
2435
2436fi
10f2d63a
VZ
2437
2438
2439 eval "$ac_cv_use_debug_flag"
2440 if test "$no_cache" != 1; then
2441 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
2442 fi
2443
2444 if test "$wxUSE_DEBUG_FLAG" = yes; then
698dcdb6 2445 echo "$ac_t""yes" 1>&6
10f2d63a 2446 else
698dcdb6 2447 echo "$ac_t""no" 1>&6
10f2d63a 2448 fi
698dcdb6 2449
10f2d63a 2450
698dcdb6 2451 echo $ac_n "checking for --enable-debug_info""... $ac_c" 1>&6
f11bdd03 2452echo "configure:2453: checking for --enable-debug_info" >&5
10f2d63a
VZ
2453 no_cache=0
2454 # Check whether --enable-debug_info or --disable-debug_info was given.
2455if test "${enable_debug_info+set}" = set; then
2456 enableval="$enable_debug_info"
698dcdb6 2457
10f2d63a
VZ
2458 if test "$enableval" = yes; then
2459 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
2460 else
2461 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
2462 fi
698dcdb6 2463
10f2d63a 2464else
698dcdb6 2465
10f2d63a
VZ
2466 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
2467 if test "x$LINE" != x ; then
2468 eval "DEFAULT_$LINE"
2469 else
2470 no_cache=1
2471 fi
2472
2473 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
698dcdb6
VZ
2474
2475fi
10f2d63a
VZ
2476
2477
2478 eval "$ac_cv_use_debug_info"
2479 if test "$no_cache" != 1; then
2480 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
2481 fi
2482
2483 if test "$wxUSE_DEBUG_INFO" = yes; then
698dcdb6 2484 echo "$ac_t""yes" 1>&6
10f2d63a 2485 else
698dcdb6 2486 echo "$ac_t""no" 1>&6
10f2d63a 2487 fi
698dcdb6 2488
10f2d63a 2489
698dcdb6 2490 echo $ac_n "checking for --enable-debug_gdb""... $ac_c" 1>&6
f11bdd03 2491echo "configure:2492: checking for --enable-debug_gdb" >&5
10f2d63a
VZ
2492 no_cache=0
2493 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
2494if test "${enable_debug_gdb+set}" = set; then
2495 enableval="$enable_debug_gdb"
698dcdb6 2496
10f2d63a
VZ
2497 if test "$enableval" = yes; then
2498 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
2499 else
2500 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
2501 fi
698dcdb6 2502
10f2d63a 2503else
698dcdb6 2504
10f2d63a
VZ
2505 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
2506 if test "x$LINE" != x ; then
2507 eval "DEFAULT_$LINE"
2508 else
2509 no_cache=1
2510 fi
2511
2512 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
698dcdb6
VZ
2513
2514fi
10f2d63a
VZ
2515
2516
2517 eval "$ac_cv_use_debug_gdb"
2518 if test "$no_cache" != 1; then
2519 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
2520 fi
2521
2522 if test "$wxUSE_DEBUG_GDB" = yes; then
698dcdb6 2523 echo "$ac_t""yes" 1>&6
10f2d63a 2524 else
698dcdb6 2525 echo "$ac_t""no" 1>&6
10f2d63a 2526 fi
698dcdb6 2527
10f2d63a 2528
698dcdb6 2529 echo $ac_n "checking for --enable-debug_cntxt""... $ac_c" 1>&6
f11bdd03 2530echo "configure:2531: checking for --enable-debug_cntxt" >&5
10f2d63a
VZ
2531 no_cache=0
2532 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
2533if test "${enable_debug_cntxt+set}" = set; then
2534 enableval="$enable_debug_cntxt"
698dcdb6 2535
10f2d63a
VZ
2536 if test "$enableval" = yes; then
2537 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
2538 else
2539 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
2540 fi
698dcdb6 2541
10f2d63a 2542else
698dcdb6 2543
10f2d63a
VZ
2544 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
2545 if test "x$LINE" != x ; then
2546 eval "DEFAULT_$LINE"
2547 else
2548 no_cache=1
2549 fi
2550
2551 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
698dcdb6
VZ
2552
2553fi
10f2d63a
VZ
2554
2555
2556 eval "$ac_cv_use_debug_cntxt"
2557 if test "$no_cache" != 1; then
2558 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
2559 fi
2560
2561 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
698dcdb6 2562 echo "$ac_t""yes" 1>&6
10f2d63a 2563 else
698dcdb6 2564 echo "$ac_t""no" 1>&6
10f2d63a 2565 fi
698dcdb6 2566
10f2d63a 2567
698dcdb6 2568 echo $ac_n "checking for --enable-mem_tracing""... $ac_c" 1>&6
f11bdd03 2569echo "configure:2570: checking for --enable-mem_tracing" >&5
10f2d63a
VZ
2570 no_cache=0
2571 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
2572if test "${enable_mem_tracing+set}" = set; then
2573 enableval="$enable_mem_tracing"
698dcdb6 2574
10f2d63a
VZ
2575 if test "$enableval" = yes; then
2576 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
2577 else
2578 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
2579 fi
698dcdb6 2580
10f2d63a 2581else
698dcdb6 2582
10f2d63a
VZ
2583 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
2584 if test "x$LINE" != x ; then
2585 eval "DEFAULT_$LINE"
2586 else
2587 no_cache=1
2588 fi
2589
2590 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
698dcdb6
VZ
2591
2592fi
10f2d63a
VZ
2593
2594
2595 eval "$ac_cv_use_mem_tracing"
2596 if test "$no_cache" != 1; then
2597 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
2598 fi
2599
2600 if test "$wxUSE_MEM_TRACING" = yes; then
698dcdb6 2601 echo "$ac_t""yes" 1>&6
10f2d63a 2602 else
698dcdb6 2603 echo "$ac_t""no" 1>&6
10f2d63a 2604 fi
698dcdb6 2605
10f2d63a 2606
698dcdb6 2607 echo $ac_n "checking for --enable-profile""... $ac_c" 1>&6
f11bdd03 2608echo "configure:2609: checking for --enable-profile" >&5
10f2d63a
VZ
2609 no_cache=0
2610 # Check whether --enable-profile or --disable-profile was given.
2611if test "${enable_profile+set}" = set; then
2612 enableval="$enable_profile"
698dcdb6 2613
10f2d63a
VZ
2614 if test "$enableval" = yes; then
2615 ac_cv_use_profile='wxUSE_PROFILE=yes'
2616 else
2617 ac_cv_use_profile='wxUSE_PROFILE=no'
2618 fi
698dcdb6 2619
10f2d63a 2620else
698dcdb6 2621
10f2d63a
VZ
2622 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
2623 if test "x$LINE" != x ; then
2624 eval "DEFAULT_$LINE"
2625 else
2626 no_cache=1
2627 fi
2628
2629 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
698dcdb6
VZ
2630
2631fi
10f2d63a
VZ
2632
2633
2634 eval "$ac_cv_use_profile"
2635 if test "$no_cache" != 1; then
2636 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
2637 fi
2638
2639 if test "$wxUSE_PROFILE" = yes; then
698dcdb6 2640 echo "$ac_t""yes" 1>&6
10f2d63a 2641 else
698dcdb6 2642 echo "$ac_t""no" 1>&6
10f2d63a 2643 fi
698dcdb6 2644
10f2d63a 2645
698dcdb6 2646 echo $ac_n "checking for --enable-no_rtti""... $ac_c" 1>&6
f11bdd03 2647echo "configure:2648: checking for --enable-no_rtti" >&5
10f2d63a
VZ
2648 no_cache=0
2649 # Check whether --enable-no_rtti or --disable-no_rtti was given.
2650if test "${enable_no_rtti+set}" = set; then
2651 enableval="$enable_no_rtti"
698dcdb6 2652
10f2d63a
VZ
2653 if test "$enableval" = yes; then
2654 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
2655 else
2656 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
2657 fi
698dcdb6 2658
10f2d63a 2659else
698dcdb6 2660
10f2d63a
VZ
2661 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
2662 if test "x$LINE" != x ; then
2663 eval "DEFAULT_$LINE"
2664 else
2665 no_cache=1
2666 fi
2667
2668 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
698dcdb6
VZ
2669
2670fi
10f2d63a
VZ
2671
2672
2673 eval "$ac_cv_use_no_rtti"
2674 if test "$no_cache" != 1; then
2675 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
2676 fi
2677
2678 if test "$wxUSE_NO_RTTI" = yes; then
698dcdb6 2679 echo "$ac_t""yes" 1>&6
10f2d63a 2680 else
698dcdb6 2681 echo "$ac_t""no" 1>&6
10f2d63a 2682 fi
698dcdb6 2683
10f2d63a 2684
698dcdb6 2685 echo $ac_n "checking for --enable-no_exceptions""... $ac_c" 1>&6
f11bdd03 2686echo "configure:2687: checking for --enable-no_exceptions" >&5
10f2d63a
VZ
2687 no_cache=0
2688 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
2689if test "${enable_no_exceptions+set}" = set; then
2690 enableval="$enable_no_exceptions"
698dcdb6 2691
10f2d63a
VZ
2692 if test "$enableval" = yes; then
2693 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
2694 else
2695 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
2696 fi
698dcdb6 2697
10f2d63a 2698else
698dcdb6 2699
10f2d63a
VZ
2700 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
2701 if test "x$LINE" != x ; then
2702 eval "DEFAULT_$LINE"
2703 else
2704 no_cache=1
2705 fi
2706
2707 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
698dcdb6
VZ
2708
2709fi
10f2d63a
VZ
2710
2711
2712 eval "$ac_cv_use_no_exceptions"
2713 if test "$no_cache" != 1; then
2714 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
2715 fi
2716
2717 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
698dcdb6 2718 echo "$ac_t""yes" 1>&6
10f2d63a 2719 else
698dcdb6 2720 echo "$ac_t""no" 1>&6
10f2d63a 2721 fi
698dcdb6 2722
10f2d63a 2723
698dcdb6 2724 echo $ac_n "checking for --enable-permissive""... $ac_c" 1>&6
f11bdd03 2725echo "configure:2726: checking for --enable-permissive" >&5
10f2d63a
VZ
2726 no_cache=0
2727 # Check whether --enable-permissive or --disable-permissive was given.
2728if test "${enable_permissive+set}" = set; then
2729 enableval="$enable_permissive"
698dcdb6 2730
10f2d63a
VZ
2731 if test "$enableval" = yes; then
2732 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
2733 else
2734 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
2735 fi
698dcdb6 2736
10f2d63a 2737else
698dcdb6 2738
10f2d63a
VZ
2739 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
2740 if test "x$LINE" != x ; then
2741 eval "DEFAULT_$LINE"
2742 else
2743 no_cache=1
2744 fi
2745
2746 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
698dcdb6
VZ
2747
2748fi
10f2d63a
VZ
2749
2750
2751 eval "$ac_cv_use_permissive"
2752 if test "$no_cache" != 1; then
2753 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
2754 fi
2755
2756 if test "$wxUSE_PERMISSIVE" = yes; then
698dcdb6 2757 echo "$ac_t""yes" 1>&6
10f2d63a 2758 else
698dcdb6 2759 echo "$ac_t""no" 1>&6
10f2d63a 2760 fi
698dcdb6 2761
10f2d63a 2762
698dcdb6 2763 echo $ac_n "checking for --enable-no_deps""... $ac_c" 1>&6
f11bdd03 2764echo "configure:2765: checking for --enable-no_deps" >&5
10f2d63a
VZ
2765 no_cache=0
2766 # Check whether --enable-no_deps or --disable-no_deps was given.
2767if test "${enable_no_deps+set}" = set; then
2768 enableval="$enable_no_deps"
698dcdb6 2769
10f2d63a
VZ
2770 if test "$enableval" = yes; then
2771 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
2772 else
2773 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
2774 fi
698dcdb6 2775
10f2d63a 2776else
698dcdb6 2777
10f2d63a
VZ
2778 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
2779 if test "x$LINE" != x ; then
2780 eval "DEFAULT_$LINE"
2781 else
2782 no_cache=1
2783 fi
2784
2785 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
698dcdb6
VZ
2786
2787fi
10f2d63a
VZ
2788
2789
2790 eval "$ac_cv_use_no_deps"
2791 if test "$no_cache" != 1; then
2792 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
2793 fi
2794
2795 if test "$wxUSE_NO_DEPS" = yes; then
698dcdb6 2796 echo "$ac_t""yes" 1>&6
10f2d63a 2797 else
698dcdb6 2798 echo "$ac_t""no" 1>&6
10f2d63a 2799 fi
698dcdb6
VZ
2800
2801
10f2d63a 2802
54276ccf 2803 echo $ac_n "checking for --enable-compat20""... $ac_c" 1>&6
f11bdd03 2804echo "configure:2805: checking for --enable-compat20" >&5
54276ccf
VZ
2805 no_cache=0
2806 # Check whether --enable-compat20 or --disable-compat20 was given.
2807if test "${enable_compat20+set}" = set; then
2808 enableval="$enable_compat20"
2809
2810 if test "$enableval" = yes; then
2811 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=yes'
2812 else
2813 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=no'
2814 fi
2815
2816else
2817
2818 LINE=`grep "WXWIN_COMPATIBILITY_2" ${wx_arg_cache_file}`
2819 if test "x$LINE" != x ; then
2820 eval "DEFAULT_$LINE"
2821 else
2822 no_cache=1
2823 fi
2824
2825 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2='$DEFAULT_WXWIN_COMPATIBILITY_2
2826
2827fi
2828
2829
2830 eval "$ac_cv_use_compat20"
2831 if test "$no_cache" != 1; then
2832 echo $ac_cv_use_compat20 >> ${wx_arg_cache_file}.tmp
2833 fi
2834
2835 if test "$WXWIN_COMPATIBILITY_2" = yes; then
2836 echo "$ac_t""yes" 1>&6
2837 else
2838 echo "$ac_t""no" 1>&6
2839 fi
2840
2841
2842 echo $ac_n "checking for --enable-compat22""... $ac_c" 1>&6
f11bdd03 2843echo "configure:2844: checking for --enable-compat22" >&5
54276ccf
VZ
2844 no_cache=0
2845 # Check whether --enable-compat22 or --disable-compat22 was given.
2846if test "${enable_compat22+set}" = set; then
2847 enableval="$enable_compat22"
2848
2849 if test "$enableval" = yes; then
2850 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes'
2851 else
2852 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no'
2853 fi
2854
2855else
2856
2857 LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}`
2858 if test "x$LINE" != x ; then
2859 eval "DEFAULT_$LINE"
2860 else
2861 no_cache=1
2862 fi
2863
2864 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2
2865
2866fi
2867
2868
2869 eval "$ac_cv_use_compat22"
2870 if test "$no_cache" != 1; then
2871 echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp
2872 fi
2873
2874 if test "$WXWIN_COMPATIBILITY_2_2" = yes; then
2875 echo "$ac_t""yes" 1>&6
2876 else
2877 echo "$ac_t""no" 1>&6
2878 fi
2879
2880
2881
698dcdb6
VZ
2882
2883 echo $ac_n "checking for --enable-intl""... $ac_c" 1>&6
f11bdd03 2884echo "configure:2885: checking for --enable-intl" >&5
10f2d63a
VZ
2885 no_cache=0
2886 # Check whether --enable-intl or --disable-intl was given.
2887if test "${enable_intl+set}" = set; then
2888 enableval="$enable_intl"
698dcdb6 2889
10f2d63a
VZ
2890 if test "$enableval" = yes; then
2891 ac_cv_use_intl='wxUSE_INTL=yes'
2892 else
2893 ac_cv_use_intl='wxUSE_INTL=no'
2894 fi
698dcdb6 2895
10f2d63a 2896else
698dcdb6 2897
10f2d63a
VZ
2898 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
2899 if test "x$LINE" != x ; then
2900 eval "DEFAULT_$LINE"
2901 else
2902 no_cache=1
2903 fi
2904
2905 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
698dcdb6
VZ
2906
2907fi
10f2d63a
VZ
2908
2909
2910 eval "$ac_cv_use_intl"
2911 if test "$no_cache" != 1; then
2912 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
2913 fi
2914
2915 if test "$wxUSE_INTL" = yes; then
698dcdb6 2916 echo "$ac_t""yes" 1>&6
10f2d63a 2917 else
698dcdb6 2918 echo "$ac_t""no" 1>&6
10f2d63a 2919 fi
698dcdb6 2920
10f2d63a 2921
698dcdb6 2922 echo $ac_n "checking for --enable-config""... $ac_c" 1>&6
f11bdd03 2923echo "configure:2924: checking for --enable-config" >&5
10f2d63a
VZ
2924 no_cache=0
2925 # Check whether --enable-config or --disable-config was given.
2926if test "${enable_config+set}" = set; then
2927 enableval="$enable_config"
698dcdb6 2928
10f2d63a
VZ
2929 if test "$enableval" = yes; then
2930 ac_cv_use_config='wxUSE_CONFIG=yes'
2931 else
2932 ac_cv_use_config='wxUSE_CONFIG=no'
2933 fi
698dcdb6 2934
10f2d63a 2935else
698dcdb6 2936
10f2d63a
VZ
2937 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
2938 if test "x$LINE" != x ; then
2939 eval "DEFAULT_$LINE"
2940 else
2941 no_cache=1
2942 fi
2943
2944 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
698dcdb6
VZ
2945
2946fi
10f2d63a
VZ
2947
2948
2949 eval "$ac_cv_use_config"
2950 if test "$no_cache" != 1; then
2951 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
2952 fi
2953
2954 if test "$wxUSE_CONFIG" = yes; then
698dcdb6 2955 echo "$ac_t""yes" 1>&6
10f2d63a 2956 else
698dcdb6 2957 echo "$ac_t""no" 1>&6
10f2d63a 2958 fi
698dcdb6
VZ
2959
2960
b12915c1 2961
698dcdb6 2962 echo $ac_n "checking for --enable-sockets""... $ac_c" 1>&6
f11bdd03 2963echo "configure:2964: checking for --enable-sockets" >&5
10f2d63a
VZ
2964 no_cache=0
2965 # Check whether --enable-sockets or --disable-sockets was given.
2966if test "${enable_sockets+set}" = set; then
2967 enableval="$enable_sockets"
698dcdb6 2968
10f2d63a
VZ
2969 if test "$enableval" = yes; then
2970 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
2971 else
2972 ac_cv_use_sockets='wxUSE_SOCKETS=no'
2973 fi
698dcdb6 2974
10f2d63a 2975else
698dcdb6 2976
10f2d63a
VZ
2977 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
2978 if test "x$LINE" != x ; then
2979 eval "DEFAULT_$LINE"
2980 else
2981 no_cache=1
2982 fi
2983
2984 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
698dcdb6
VZ
2985
2986fi
10f2d63a
VZ
2987
2988
2989 eval "$ac_cv_use_sockets"
2990 if test "$no_cache" != 1; then
2991 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
2992 fi
2993
2994 if test "$wxUSE_SOCKETS" = yes; then
698dcdb6 2995 echo "$ac_t""yes" 1>&6
10f2d63a 2996 else
698dcdb6 2997 echo "$ac_t""no" 1>&6
10f2d63a 2998 fi
698dcdb6 2999
b12915c1 3000
698dcdb6
VZ
3001
3002 echo $ac_n "checking for --enable-ipc""... $ac_c" 1>&6
f11bdd03 3003echo "configure:3004: checking for --enable-ipc" >&5
10f2d63a 3004 no_cache=0
eb4efbdc
VZ
3005 # Check whether --enable-ipc or --disable-ipc was given.
3006if test "${enable_ipc+set}" = set; then
3007 enableval="$enable_ipc"
698dcdb6 3008
10f2d63a 3009 if test "$enableval" = yes; then
eb4efbdc 3010 ac_cv_use_ipc='wxUSE_IPC=yes'
10f2d63a 3011 else
eb4efbdc 3012 ac_cv_use_ipc='wxUSE_IPC=no'
10f2d63a 3013 fi
698dcdb6 3014
10f2d63a 3015else
698dcdb6 3016
eb4efbdc 3017 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
10f2d63a
VZ
3018 if test "x$LINE" != x ; then
3019 eval "DEFAULT_$LINE"
3020 else
3021 no_cache=1
3022 fi
3023
eb4efbdc 3024 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
698dcdb6
VZ
3025
3026fi
10f2d63a
VZ
3027
3028
eb4efbdc 3029 eval "$ac_cv_use_ipc"
10f2d63a 3030 if test "$no_cache" != 1; then
eb4efbdc 3031 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
3032 fi
3033
eb4efbdc 3034 if test "$wxUSE_IPC" = yes; then
698dcdb6 3035 echo "$ac_t""yes" 1>&6
10f2d63a 3036 else
698dcdb6 3037 echo "$ac_t""no" 1>&6
10f2d63a 3038 fi
698dcdb6
VZ
3039
3040
eb4efbdc 3041
1e6feb95 3042 echo $ac_n "checking for --enable-cmdline""... $ac_c" 1>&6
f11bdd03 3043echo "configure:3044: checking for --enable-cmdline" >&5
1e6feb95
VZ
3044 no_cache=0
3045 # Check whether --enable-cmdline or --disable-cmdline was given.
3046if test "${enable_cmdline+set}" = set; then
3047 enableval="$enable_cmdline"
3048
3049 if test "$enableval" = yes; then
3050 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
3051 else
3052 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
3053 fi
3054
3055else
3056
3057 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
3058 if test "x$LINE" != x ; then
3059 eval "DEFAULT_$LINE"
3060 else
3061 no_cache=1
3062 fi
3063
3064 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
3065
3066fi
3067
3068
3069 eval "$ac_cv_use_cmdline"
3070 if test "$no_cache" != 1; then
3071 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
3072 fi
3073
3074 if test "$wxUSE_CMDLINE_PARSER" = yes; then
3075 echo "$ac_t""yes" 1>&6
3076 else
3077 echo "$ac_t""no" 1>&6
3078 fi
3079
3080
3081 echo $ac_n "checking for --enable-datetime""... $ac_c" 1>&6
f11bdd03 3082echo "configure:3083: checking for --enable-datetime" >&5
1e6feb95
VZ
3083 no_cache=0
3084 # Check whether --enable-datetime or --disable-datetime was given.
3085if test "${enable_datetime+set}" = set; then
3086 enableval="$enable_datetime"
3087
3088 if test "$enableval" = yes; then
3089 ac_cv_use_datetime='wxUSE_DATETIME=yes'
3090 else
3091 ac_cv_use_datetime='wxUSE_DATETIME=no'
3092 fi
3093
3094else
3095
3096 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
3097 if test "x$LINE" != x ; then
3098 eval "DEFAULT_$LINE"
3099 else
3100 no_cache=1
3101 fi
3102
3103 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
3104
3105fi
3106
3107
3108 eval "$ac_cv_use_datetime"
3109 if test "$no_cache" != 1; then
3110 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
3111 fi
3112
3113 if test "$wxUSE_DATETIME" = yes; then
3114 echo "$ac_t""yes" 1>&6
3115 else
3116 echo "$ac_t""no" 1>&6
3117 fi
3118
3119
3120 echo $ac_n "checking for --enable-timedate""... $ac_c" 1>&6
f11bdd03 3121echo "configure:3122: checking for --enable-timedate" >&5
1e6feb95
VZ
3122 no_cache=0
3123 # Check whether --enable-timedate or --disable-timedate was given.
3124if test "${enable_timedate+set}" = set; then
3125 enableval="$enable_timedate"
3126
3127 if test "$enableval" = yes; then
3128 ac_cv_use_timedate='wxUSE_TIMEDATE=yes'
3129 else
3130 ac_cv_use_timedate='wxUSE_TIMEDATE=no'
3131 fi
3132
3133else
3134
3135 LINE=`grep "wxUSE_TIMEDATE" ${wx_arg_cache_file}`
3136 if test "x$LINE" != x ; then
3137 eval "DEFAULT_$LINE"
3138 else
3139 no_cache=1
3140 fi
3141
3142 ac_cv_use_timedate='wxUSE_TIMEDATE='$DEFAULT_wxUSE_TIMEDATE
3143
3144fi
3145
3146
3147 eval "$ac_cv_use_timedate"
3148 if test "$no_cache" != 1; then
3149 echo $ac_cv_use_timedate >> ${wx_arg_cache_file}.tmp
3150 fi
3151
3152 if test "$wxUSE_TIMEDATE" = yes; then
3153 echo "$ac_t""yes" 1>&6
3154 else
3155 echo "$ac_t""no" 1>&6
3156 fi
3157
3158
3159 echo $ac_n "checking for --enable-stopwatch""... $ac_c" 1>&6
f11bdd03 3160echo "configure:3161: checking for --enable-stopwatch" >&5
1e6feb95
VZ
3161 no_cache=0
3162 # Check whether --enable-stopwatch or --disable-stopwatch was given.
3163if test "${enable_stopwatch+set}" = set; then
3164 enableval="$enable_stopwatch"
3165
3166 if test "$enableval" = yes; then
3167 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
3168 else
3169 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
3170 fi
3171
3172else
3173
3174 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
3175 if test "x$LINE" != x ; then
3176 eval "DEFAULT_$LINE"
3177 else
3178 no_cache=1
3179 fi
3180
3181 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
3182
3183fi
3184
3185
3186 eval "$ac_cv_use_stopwatch"
3187 if test "$no_cache" != 1; then
3188 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
3189 fi
3190
3191 if test "$wxUSE_STOPWATCH" = yes; then
3192 echo "$ac_t""yes" 1>&6
3193 else
3194 echo "$ac_t""no" 1>&6
3195 fi
3196
3197
698dcdb6 3198 echo $ac_n "checking for --enable-dialupman""... $ac_c" 1>&6
f11bdd03 3199echo "configure:3200: checking for --enable-dialupman" >&5
10f2d63a 3200 no_cache=0
eb4efbdc
VZ
3201 # Check whether --enable-dialupman or --disable-dialupman was given.
3202if test "${enable_dialupman+set}" = set; then
3203 enableval="$enable_dialupman"
698dcdb6 3204
10f2d63a 3205 if test "$enableval" = yes; then
eb4efbdc 3206 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
10f2d63a 3207 else
eb4efbdc 3208 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
10f2d63a 3209 fi
698dcdb6 3210
10f2d63a 3211else
698dcdb6 3212
eb4efbdc 3213 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
10f2d63a
VZ
3214 if test "x$LINE" != x ; then
3215 eval "DEFAULT_$LINE"
3216 else
3217 no_cache=1
3218 fi
3219
eb4efbdc 3220 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
698dcdb6
VZ
3221
3222fi
10f2d63a
VZ
3223
3224
eb4efbdc 3225 eval "$ac_cv_use_dialupman"
10f2d63a 3226 if test "$no_cache" != 1; then
eb4efbdc 3227 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
3228 fi
3229
eb4efbdc 3230 if test "$wxUSE_DIALUP_MANAGER" = yes; then
698dcdb6 3231 echo "$ac_t""yes" 1>&6
10f2d63a 3232 else
698dcdb6 3233 echo "$ac_t""no" 1>&6
10f2d63a 3234 fi
698dcdb6 3235
10f2d63a 3236
698dcdb6 3237 echo $ac_n "checking for --enable-apple_ieee""... $ac_c" 1>&6
f11bdd03 3238echo "configure:3239: checking for --enable-apple_ieee" >&5
10f2d63a
VZ
3239 no_cache=0
3240 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
3241if test "${enable_apple_ieee+set}" = set; then
3242 enableval="$enable_apple_ieee"
698dcdb6 3243
10f2d63a
VZ
3244 if test "$enableval" = yes; then
3245 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
3246 else
3247 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
3248 fi
698dcdb6 3249
10f2d63a 3250else
698dcdb6 3251
10f2d63a
VZ
3252 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
3253 if test "x$LINE" != x ; then
3254 eval "DEFAULT_$LINE"
3255 else
3256 no_cache=1
3257 fi
3258
3259 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
698dcdb6
VZ
3260
3261fi
10f2d63a
VZ
3262
3263
3264 eval "$ac_cv_use_apple_ieee"
3265 if test "$no_cache" != 1; then
3266 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
3267 fi
3268
3269 if test "$wxUSE_APPLE_IEEE" = yes; then
698dcdb6 3270 echo "$ac_t""yes" 1>&6
10f2d63a 3271 else
698dcdb6 3272 echo "$ac_t""no" 1>&6
10f2d63a 3273 fi
698dcdb6 3274
10f2d63a 3275
1e6feb95 3276 echo $ac_n "checking for --enable-timer""... $ac_c" 1>&6
f11bdd03 3277echo "configure:3278: checking for --enable-timer" >&5
10f2d63a 3278 no_cache=0
1e6feb95
VZ
3279 # Check whether --enable-timer or --disable-timer was given.
3280if test "${enable_timer+set}" = set; then
3281 enableval="$enable_timer"
698dcdb6 3282
10f2d63a 3283 if test "$enableval" = yes; then
1e6feb95 3284 ac_cv_use_timer='wxUSE_TIMER=yes'
10f2d63a 3285 else
1e6feb95 3286 ac_cv_use_timer='wxUSE_TIMER=no'
10f2d63a 3287 fi
698dcdb6 3288
10f2d63a 3289else
698dcdb6 3290
1e6feb95 3291 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
10f2d63a
VZ
3292 if test "x$LINE" != x ; then
3293 eval "DEFAULT_$LINE"
3294 else
3295 no_cache=1
3296 fi
3297
1e6feb95 3298 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
698dcdb6
VZ
3299
3300fi
10f2d63a
VZ
3301
3302
1e6feb95 3303 eval "$ac_cv_use_timer"
10f2d63a 3304 if test "$no_cache" != 1; then
1e6feb95 3305 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
3306 fi
3307
1e6feb95 3308 if test "$wxUSE_TIMER" = yes; then
698dcdb6 3309 echo "$ac_t""yes" 1>&6
10f2d63a 3310 else
698dcdb6 3311 echo "$ac_t""no" 1>&6
10f2d63a 3312 fi
698dcdb6 3313
10f2d63a 3314
698dcdb6 3315 echo $ac_n "checking for --enable-wave""... $ac_c" 1>&6
f11bdd03 3316echo "configure:3317: checking for --enable-wave" >&5
10f2d63a
VZ
3317 no_cache=0
3318 # Check whether --enable-wave or --disable-wave was given.
3319if test "${enable_wave+set}" = set; then
3320 enableval="$enable_wave"
698dcdb6 3321
10f2d63a
VZ
3322 if test "$enableval" = yes; then
3323 ac_cv_use_wave='wxUSE_WAVE=yes'
3324 else
3325 ac_cv_use_wave='wxUSE_WAVE=no'
3326 fi
698dcdb6 3327
10f2d63a 3328else
698dcdb6 3329
10f2d63a
VZ
3330 LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}`
3331 if test "x$LINE" != x ; then
3332 eval "DEFAULT_$LINE"
3333 else
3334 no_cache=1
3335 fi
3336
3337 ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE
698dcdb6
VZ
3338
3339fi
10f2d63a
VZ
3340
3341
3342 eval "$ac_cv_use_wave"
3343 if test "$no_cache" != 1; then
3344 echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp
3345 fi
3346
3347 if test "$wxUSE_WAVE" = yes; then
698dcdb6 3348 echo "$ac_t""yes" 1>&6
10f2d63a 3349 else
698dcdb6 3350 echo "$ac_t""no" 1>&6
10f2d63a 3351 fi
698dcdb6 3352
10f2d63a 3353
698dcdb6 3354 echo $ac_n "checking for --enable-fraction""... $ac_c" 1>&6
f11bdd03 3355echo "configure:3356: checking for --enable-fraction" >&5
10f2d63a
VZ
3356 no_cache=0
3357 # Check whether --enable-fraction or --disable-fraction was given.
3358if test "${enable_fraction+set}" = set; then
3359 enableval="$enable_fraction"
698dcdb6 3360
10f2d63a
VZ
3361 if test "$enableval" = yes; then
3362 ac_cv_use_fraction='wxUSE_FRACTION=yes'
3363 else
3364 ac_cv_use_fraction='wxUSE_FRACTION=no'
3365 fi
698dcdb6 3366
10f2d63a 3367else
698dcdb6 3368
10f2d63a
VZ
3369 LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}`
3370 if test "x$LINE" != x ; then
3371 eval "DEFAULT_$LINE"
3372 else
3373 no_cache=1
3374 fi
3375
3376 ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION
698dcdb6
VZ
3377
3378fi
10f2d63a
VZ
3379
3380
3381 eval "$ac_cv_use_fraction"
3382 if test "$no_cache" != 1; then
3383 echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp
3384 fi
3385
3386 if test "$wxUSE_FRACTION" = yes; then
698dcdb6 3387 echo "$ac_t""yes" 1>&6
10f2d63a 3388 else
698dcdb6 3389 echo "$ac_t""no" 1>&6
10f2d63a 3390 fi
698dcdb6 3391
10f2d63a 3392
698dcdb6 3393 echo $ac_n "checking for --enable-dynlib""... $ac_c" 1>&6
f11bdd03 3394echo "configure:3395: checking for --enable-dynlib" >&5
10f2d63a
VZ
3395 no_cache=0
3396 # Check whether --enable-dynlib or --disable-dynlib was given.
3397if test "${enable_dynlib+set}" = set; then
3398 enableval="$enable_dynlib"
698dcdb6 3399
10f2d63a
VZ
3400 if test "$enableval" = yes; then
3401 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
3402 else
3403 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
3404 fi
698dcdb6 3405
10f2d63a 3406else
698dcdb6 3407
10f2d63a
VZ
3408 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
3409 if test "x$LINE" != x ; then
3410 eval "DEFAULT_$LINE"
3411 else
3412 no_cache=1
3413 fi
3414
3415 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
698dcdb6
VZ
3416
3417fi
10f2d63a
VZ
3418
3419
3420 eval "$ac_cv_use_dynlib"
3421 if test "$no_cache" != 1; then
3422 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
3423 fi
3424
3425 if test "$wxUSE_DYNLIB_CLASS" = yes; then
698dcdb6 3426 echo "$ac_t""yes" 1>&6
10f2d63a 3427 else
698dcdb6 3428 echo "$ac_t""no" 1>&6
10f2d63a 3429 fi
698dcdb6 3430
10f2d63a 3431
698dcdb6 3432 echo $ac_n "checking for --enable-longlong""... $ac_c" 1>&6
f11bdd03 3433echo "configure:3434: checking for --enable-longlong" >&5
10f2d63a
VZ
3434 no_cache=0
3435 # Check whether --enable-longlong or --disable-longlong was given.
3436if test "${enable_longlong+set}" = set; then
3437 enableval="$enable_longlong"
698dcdb6 3438
10f2d63a
VZ
3439 if test "$enableval" = yes; then
3440 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
3441 else
3442 ac_cv_use_longlong='wxUSE_LONGLONG=no'
3443 fi
698dcdb6 3444
10f2d63a 3445else
698dcdb6 3446
10f2d63a
VZ
3447 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
3448 if test "x$LINE" != x ; then
3449 eval "DEFAULT_$LINE"
3450 else
3451 no_cache=1
3452 fi
3453
3454 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
698dcdb6
VZ
3455
3456fi
10f2d63a
VZ
3457
3458
3459 eval "$ac_cv_use_longlong"
3460 if test "$no_cache" != 1; then
3461 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
3462 fi
3463
3464 if test "$wxUSE_LONGLONG" = yes; then
698dcdb6 3465 echo "$ac_t""yes" 1>&6
10f2d63a 3466 else
698dcdb6 3467 echo "$ac_t""no" 1>&6
10f2d63a 3468 fi
698dcdb6 3469
10f2d63a 3470
698dcdb6 3471 echo $ac_n "checking for --enable-geometry""... $ac_c" 1>&6
f11bdd03 3472echo "configure:3473: checking for --enable-geometry" >&5
e8f65ba6
RR
3473 no_cache=0
3474 # Check whether --enable-geometry or --disable-geometry was given.
3475if test "${enable_geometry+set}" = set; then
3476 enableval="$enable_geometry"
698dcdb6 3477
e8f65ba6
RR
3478 if test "$enableval" = yes; then
3479 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
3480 else
3481 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
3482 fi
698dcdb6 3483
e8f65ba6 3484else
698dcdb6 3485
e8f65ba6
RR
3486 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
3487 if test "x$LINE" != x ; then
3488 eval "DEFAULT_$LINE"
3489 else
3490 no_cache=1
3491 fi
3492
3493 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
698dcdb6
VZ
3494
3495fi
e8f65ba6
RR
3496
3497
3498 eval "$ac_cv_use_geometry"
3499 if test "$no_cache" != 1; then
3500 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
3501 fi
3502
3503 if test "$wxUSE_GEOMETRY" = yes; then
698dcdb6 3504 echo "$ac_t""yes" 1>&6
e8f65ba6 3505 else
698dcdb6 3506 echo "$ac_t""no" 1>&6
e8f65ba6 3507 fi
698dcdb6 3508
e8f65ba6 3509
698dcdb6 3510 echo $ac_n "checking for --enable-log""... $ac_c" 1>&6
f11bdd03 3511echo "configure:3512: checking for --enable-log" >&5
10f2d63a
VZ
3512 no_cache=0
3513 # Check whether --enable-log or --disable-log was given.
3514if test "${enable_log+set}" = set; then
3515 enableval="$enable_log"
698dcdb6 3516
10f2d63a
VZ
3517 if test "$enableval" = yes; then
3518 ac_cv_use_log='wxUSE_LOG=yes'
3519 else
3520 ac_cv_use_log='wxUSE_LOG=no'
3521 fi
698dcdb6 3522
10f2d63a 3523else
698dcdb6 3524
10f2d63a
VZ
3525 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
3526 if test "x$LINE" != x ; then
3527 eval "DEFAULT_$LINE"
3528 else
3529 no_cache=1
3530 fi
3531
3532 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
698dcdb6
VZ
3533
3534fi
10f2d63a
VZ
3535
3536
3537 eval "$ac_cv_use_log"
3538 if test "$no_cache" != 1; then
3539 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
3540 fi
3541
3542 if test "$wxUSE_LOG" = yes; then
698dcdb6 3543 echo "$ac_t""yes" 1>&6
10f2d63a 3544 else
698dcdb6 3545 echo "$ac_t""no" 1>&6
10f2d63a 3546 fi
698dcdb6 3547
10f2d63a 3548
698dcdb6 3549 echo $ac_n "checking for --enable-streams""... $ac_c" 1>&6
f11bdd03 3550echo "configure:3551: checking for --enable-streams" >&5
10f2d63a
VZ
3551 no_cache=0
3552 # Check whether --enable-streams or --disable-streams was given.
3553if test "${enable_streams+set}" = set; then
3554 enableval="$enable_streams"
698dcdb6 3555
10f2d63a
VZ
3556 if test "$enableval" = yes; then
3557 ac_cv_use_streams='wxUSE_STREAMS=yes'
3558 else
3559 ac_cv_use_streams='wxUSE_STREAMS=no'
3560 fi
698dcdb6 3561
10f2d63a 3562else
698dcdb6 3563
10f2d63a
VZ
3564 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
3565 if test "x$LINE" != x ; then
3566 eval "DEFAULT_$LINE"
3567 else
3568 no_cache=1
3569 fi
3570
3571 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
698dcdb6
VZ
3572
3573fi
10f2d63a
VZ
3574
3575
3576 eval "$ac_cv_use_streams"
3577 if test "$no_cache" != 1; then
3578 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
3579 fi
3580
3581 if test "$wxUSE_STREAMS" = yes; then
698dcdb6 3582 echo "$ac_t""yes" 1>&6
10f2d63a 3583 else
698dcdb6 3584 echo "$ac_t""no" 1>&6
10f2d63a 3585 fi
698dcdb6 3586
10f2d63a 3587
698dcdb6 3588 echo $ac_n "checking for --enable-file""... $ac_c" 1>&6
f11bdd03 3589echo "configure:3590: checking for --enable-file" >&5
10f2d63a
VZ
3590 no_cache=0
3591 # Check whether --enable-file or --disable-file was given.
3592if test "${enable_file+set}" = set; then
3593 enableval="$enable_file"
698dcdb6 3594
10f2d63a
VZ
3595 if test "$enableval" = yes; then
3596 ac_cv_use_file='wxUSE_FILE=yes'
3597 else
3598 ac_cv_use_file='wxUSE_FILE=no'
3599 fi
698dcdb6 3600
10f2d63a 3601else
698dcdb6 3602
10f2d63a
VZ
3603 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
3604 if test "x$LINE" != x ; then
3605 eval "DEFAULT_$LINE"
3606 else
3607 no_cache=1
3608 fi
3609
3610 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
698dcdb6
VZ
3611
3612fi
10f2d63a
VZ
3613
3614
3615 eval "$ac_cv_use_file"
3616 if test "$no_cache" != 1; then
3617 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
3618 fi
3619
3620 if test "$wxUSE_FILE" = yes; then
698dcdb6 3621 echo "$ac_t""yes" 1>&6
10f2d63a 3622 else
698dcdb6 3623 echo "$ac_t""no" 1>&6
10f2d63a 3624 fi
698dcdb6 3625
10f2d63a 3626
1e6feb95 3627 echo $ac_n "checking for --enable-ffile""... $ac_c" 1>&6
f11bdd03 3628echo "configure:3629: checking for --enable-ffile" >&5
10f2d63a 3629 no_cache=0
1e6feb95
VZ
3630 # Check whether --enable-ffile or --disable-ffile was given.
3631if test "${enable_ffile+set}" = set; then
3632 enableval="$enable_ffile"
698dcdb6 3633
10f2d63a 3634 if test "$enableval" = yes; then
1e6feb95 3635 ac_cv_use_ffile='wxUSE_FFILE=yes'
10f2d63a 3636 else
1e6feb95 3637 ac_cv_use_ffile='wxUSE_FFILE=no'
10f2d63a 3638 fi
698dcdb6 3639
10f2d63a 3640else
698dcdb6 3641
1e6feb95 3642 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
10f2d63a
VZ
3643 if test "x$LINE" != x ; then
3644 eval "DEFAULT_$LINE"
3645 else
3646 no_cache=1
3647 fi
3648
1e6feb95 3649 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
698dcdb6
VZ
3650
3651fi
10f2d63a
VZ
3652
3653
1e6feb95 3654 eval "$ac_cv_use_ffile"
10f2d63a 3655 if test "$no_cache" != 1; then
1e6feb95 3656 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
3657 fi
3658
1e6feb95 3659 if test "$wxUSE_FFILE" = yes; then
698dcdb6 3660 echo "$ac_t""yes" 1>&6
10f2d63a 3661 else
698dcdb6 3662 echo "$ac_t""no" 1>&6
10f2d63a 3663 fi
698dcdb6 3664
10f2d63a 3665
1e6feb95 3666 echo $ac_n "checking for --enable-textfile""... $ac_c" 1>&6
f11bdd03 3667echo "configure:3668: checking for --enable-textfile" >&5
10f2d63a 3668 no_cache=0
1e6feb95
VZ
3669 # Check whether --enable-textfile or --disable-textfile was given.
3670if test "${enable_textfile+set}" = set; then
3671 enableval="$enable_textfile"
698dcdb6 3672
10f2d63a 3673 if test "$enableval" = yes; then
1e6feb95 3674 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
10f2d63a 3675 else
1e6feb95 3676 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
10f2d63a 3677 fi
698dcdb6 3678
10f2d63a 3679else
698dcdb6 3680
1e6feb95 3681 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
10f2d63a
VZ
3682 if test "x$LINE" != x ; then
3683 eval "DEFAULT_$LINE"
3684 else
3685 no_cache=1
3686 fi
3687
1e6feb95 3688 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
698dcdb6
VZ
3689
3690fi
10f2d63a
VZ
3691
3692
1e6feb95 3693 eval "$ac_cv_use_textfile"
10f2d63a 3694 if test "$no_cache" != 1; then
1e6feb95 3695 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
3696 fi
3697
1e6feb95 3698 if test "$wxUSE_TEXTFILE" = yes; then
698dcdb6 3699 echo "$ac_t""yes" 1>&6
10f2d63a 3700 else
698dcdb6 3701 echo "$ac_t""no" 1>&6
10f2d63a 3702 fi
698dcdb6 3703
10f2d63a 3704
1e6feb95 3705 echo $ac_n "checking for --enable-fontmap""... $ac_c" 1>&6
f11bdd03 3706echo "configure:3707: checking for --enable-fontmap" >&5
10f2d63a 3707 no_cache=0
1e6feb95
VZ
3708 # Check whether --enable-fontmap or --disable-fontmap was given.
3709if test "${enable_fontmap+set}" = set; then
3710 enableval="$enable_fontmap"
698dcdb6 3711
10f2d63a 3712 if test "$enableval" = yes; then
1e6feb95 3713 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
10f2d63a 3714 else
1e6feb95 3715 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
10f2d63a 3716 fi
698dcdb6 3717
10f2d63a 3718else
698dcdb6 3719
1e6feb95 3720 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
10f2d63a
VZ
3721 if test "x$LINE" != x ; then
3722 eval "DEFAULT_$LINE"
3723 else
3724 no_cache=1
3725 fi
3726
1e6feb95 3727 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
698dcdb6
VZ
3728
3729fi
10f2d63a
VZ
3730
3731
1e6feb95 3732 eval "$ac_cv_use_fontmap"
10f2d63a 3733 if test "$no_cache" != 1; then
1e6feb95 3734 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
3735 fi
3736
1e6feb95 3737 if test "$wxUSE_FONTMAP" = yes; then
698dcdb6 3738 echo "$ac_t""yes" 1>&6
10f2d63a 3739 else
698dcdb6 3740 echo "$ac_t""no" 1>&6
10f2d63a 3741 fi
698dcdb6 3742
10f2d63a 3743
1e6feb95 3744 echo $ac_n "checking for --enable-unicode""... $ac_c" 1>&6
f11bdd03 3745echo "configure:3746: checking for --enable-unicode" >&5
10f2d63a 3746 no_cache=0
1e6feb95
VZ
3747 # Check whether --enable-unicode or --disable-unicode was given.
3748if test "${enable_unicode+set}" = set; then
3749 enableval="$enable_unicode"
3750
3751 if test "$enableval" = yes; then
3752 ac_cv_use_unicode='wxUSE_UNICODE=yes'
3753 else
3754 ac_cv_use_unicode='wxUSE_UNICODE=no'
3755 fi
3756
3757else
3758
3759 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
3760 if test "x$LINE" != x ; then
3761 eval "DEFAULT_$LINE"
3762 else
3763 no_cache=1
3764 fi
3765
3766 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
3767
3768fi
3769
3770
3771 eval "$ac_cv_use_unicode"
3772 if test "$no_cache" != 1; then
3773 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
3774 fi
3775
3776 if test "$wxUSE_UNICODE" = yes; then
3777 echo "$ac_t""yes" 1>&6
3778 else
3779 echo "$ac_t""no" 1>&6
3780 fi
3781
3782
3783 echo $ac_n "checking for --enable-wcsrtombs""... $ac_c" 1>&6
f11bdd03 3784echo "configure:3785: checking for --enable-wcsrtombs" >&5
1e6feb95
VZ
3785 no_cache=0
3786 # Check whether --enable-wcsrtombs or --disable-wcsrtombs was given.
3787if test "${enable_wcsrtombs+set}" = set; then
3788 enableval="$enable_wcsrtombs"
3789
3790 if test "$enableval" = yes; then
3791 ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS=yes'
3792 else
3793 ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS=no'
3794 fi
3795
3796else
3797
3798 LINE=`grep "wxUSE_WCSRTOMBS" ${wx_arg_cache_file}`
3799 if test "x$LINE" != x ; then
3800 eval "DEFAULT_$LINE"
3801 else
3802 no_cache=1
3803 fi
3804
3805 ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS='$DEFAULT_wxUSE_WCSRTOMBS
3806
3807fi
3808
3809
3810 eval "$ac_cv_use_wcsrtombs"
3811 if test "$no_cache" != 1; then
3812 echo $ac_cv_use_wcsrtombs >> ${wx_arg_cache_file}.tmp
3813 fi
3814
3815 if test "$wxUSE_WCSRTOMBS" = yes; then
3816 echo "$ac_t""yes" 1>&6
3817 else
3818 echo "$ac_t""no" 1>&6
3819 fi
3820
3821
3822 echo $ac_n "checking for --enable-wxprintfv""... $ac_c" 1>&6
f11bdd03 3823echo "configure:3824: checking for --enable-wxprintfv" >&5
1e6feb95
VZ
3824 no_cache=0
3825 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
3826if test "${enable_wxprintfv+set}" = set; then
3827 enableval="$enable_wxprintfv"
3828
3829 if test "$enableval" = yes; then
10f2d63a
VZ
3830 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
3831 else
3832 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
3833 fi
698dcdb6 3834
10f2d63a 3835else
698dcdb6 3836
10f2d63a
VZ
3837 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
3838 if test "x$LINE" != x ; then
3839 eval "DEFAULT_$LINE"
3840 else
3841 no_cache=1
3842 fi
3843
3844 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
698dcdb6
VZ
3845
3846fi
10f2d63a
VZ
3847
3848
3849 eval "$ac_cv_use_wxprintfv"
3850 if test "$no_cache" != 1; then
3851 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
3852 fi
3853
3854 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
698dcdb6 3855 echo "$ac_t""yes" 1>&6
10f2d63a 3856 else
698dcdb6 3857 echo "$ac_t""no" 1>&6
10f2d63a 3858 fi
698dcdb6 3859
10f2d63a 3860
698dcdb6 3861 echo $ac_n "checking for --enable-std_iostreams""... $ac_c" 1>&6
f11bdd03 3862echo "configure:3863: checking for --enable-std_iostreams" >&5
10f2d63a
VZ
3863 no_cache=0
3864 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
3865if test "${enable_std_iostreams+set}" = set; then
3866 enableval="$enable_std_iostreams"
698dcdb6 3867
10f2d63a
VZ
3868 if test "$enableval" = yes; then
3869 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
3870 else
3871 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
3872 fi
698dcdb6 3873
10f2d63a 3874else
698dcdb6 3875
10f2d63a
VZ
3876 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
3877 if test "x$LINE" != x ; then
3878 eval "DEFAULT_$LINE"
3879 else
3880 no_cache=1
3881 fi
3882
3883 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
698dcdb6
VZ
3884
3885fi
10f2d63a
VZ
3886
3887
3888 eval "$ac_cv_use_std_iostreams"
3889 if test "$no_cache" != 1; then
3890 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
3891 fi
3892
3893 if test "$wxUSE_STD_IOSTREAM" = yes; then
698dcdb6 3894 echo "$ac_t""yes" 1>&6
10f2d63a 3895 else
698dcdb6 3896 echo "$ac_t""no" 1>&6
10f2d63a 3897 fi
698dcdb6 3898
10f2d63a 3899
698dcdb6 3900 echo $ac_n "checking for --enable-filesystem""... $ac_c" 1>&6
f11bdd03 3901echo "configure:3902: checking for --enable-filesystem" >&5
24528b0c
VS
3902 no_cache=0
3903 # Check whether --enable-filesystem or --disable-filesystem was given.
3904if test "${enable_filesystem+set}" = set; then
3905 enableval="$enable_filesystem"
698dcdb6 3906
24528b0c
VS
3907 if test "$enableval" = yes; then
3908 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
3909 else
3910 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
3911 fi
698dcdb6 3912
24528b0c 3913else
698dcdb6 3914
24528b0c
VS
3915 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
3916 if test "x$LINE" != x ; then
3917 eval "DEFAULT_$LINE"
3918 else
3919 no_cache=1
3920 fi
3921
3922 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
698dcdb6
VZ
3923
3924fi
24528b0c
VS
3925
3926
3927 eval "$ac_cv_use_filesystem"
3928 if test "$no_cache" != 1; then
3929 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
3930 fi
3931
3932 if test "$wxUSE_FILESYSTEM" = yes; then
698dcdb6 3933 echo "$ac_t""yes" 1>&6
24528b0c 3934 else
698dcdb6 3935 echo "$ac_t""no" 1>&6
24528b0c 3936 fi
698dcdb6 3937
24528b0c 3938
698dcdb6 3939 echo $ac_n "checking for --enable-fs_inet""... $ac_c" 1>&6
f11bdd03 3940echo "configure:3941: checking for --enable-fs_inet" >&5
10f2d63a
VZ
3941 no_cache=0
3942 # Check whether --enable-fs_inet or --disable-fs_inet was given.
3943if test "${enable_fs_inet+set}" = set; then
3944 enableval="$enable_fs_inet"
698dcdb6 3945
10f2d63a
VZ
3946 if test "$enableval" = yes; then
3947 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
3948 else
3949 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
3950 fi
698dcdb6 3951
10f2d63a 3952else
698dcdb6 3953
10f2d63a
VZ
3954 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
3955 if test "x$LINE" != x ; then
3956 eval "DEFAULT_$LINE"
3957 else
3958 no_cache=1
3959 fi
3960
3961 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
698dcdb6
VZ
3962
3963fi
10f2d63a
VZ
3964
3965
3966 eval "$ac_cv_use_fs_inet"
3967 if test "$no_cache" != 1; then
3968 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
3969 fi
3970
3971 if test "$wxUSE_FS_INET" = yes; then
698dcdb6 3972 echo "$ac_t""yes" 1>&6
10f2d63a 3973 else
698dcdb6 3974 echo "$ac_t""no" 1>&6
10f2d63a 3975 fi
698dcdb6 3976
10f2d63a 3977
698dcdb6 3978 echo $ac_n "checking for --enable-fs_zip""... $ac_c" 1>&6
f11bdd03 3979echo "configure:3980: checking for --enable-fs_zip" >&5
10f2d63a
VZ
3980 no_cache=0
3981 # Check whether --enable-fs_zip or --disable-fs_zip was given.
3982if test "${enable_fs_zip+set}" = set; then
3983 enableval="$enable_fs_zip"
698dcdb6 3984
10f2d63a
VZ
3985 if test "$enableval" = yes; then
3986 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
3987 else
3988 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
3989 fi
698dcdb6 3990
10f2d63a 3991else
698dcdb6 3992
10f2d63a
VZ
3993 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
3994 if test "x$LINE" != x ; then
3995 eval "DEFAULT_$LINE"
3996 else
3997 no_cache=1
3998 fi
3999
4000 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
698dcdb6
VZ
4001
4002fi
10f2d63a
VZ
4003
4004
4005 eval "$ac_cv_use_fs_zip"
4006 if test "$no_cache" != 1; then
4007 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
4008 fi
4009
4010 if test "$wxUSE_FS_ZIP" = yes; then
698dcdb6 4011 echo "$ac_t""yes" 1>&6
10f2d63a 4012 else
698dcdb6 4013 echo "$ac_t""no" 1>&6
10f2d63a 4014 fi
698dcdb6 4015
10f2d63a 4016
698dcdb6 4017 echo $ac_n "checking for --enable-zipstream""... $ac_c" 1>&6
f11bdd03 4018echo "configure:4019: checking for --enable-zipstream" >&5
10f2d63a
VZ
4019 no_cache=0
4020 # Check whether --enable-zipstream or --disable-zipstream was given.
4021if test "${enable_zipstream+set}" = set; then
4022 enableval="$enable_zipstream"
698dcdb6 4023
10f2d63a
VZ
4024 if test "$enableval" = yes; then
4025 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
4026 else
4027 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
4028 fi
698dcdb6 4029
10f2d63a 4030else
698dcdb6 4031
10f2d63a
VZ
4032 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
4033 if test "x$LINE" != x ; then
4034 eval "DEFAULT_$LINE"
4035 else
4036 no_cache=1
4037 fi
4038
4039 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
698dcdb6
VZ
4040
4041fi
10f2d63a
VZ
4042
4043
4044 eval "$ac_cv_use_zipstream"
4045 if test "$no_cache" != 1; then
4046 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
4047 fi
4048
4049 if test "$wxUSE_ZIPSTREAM" = yes; then
698dcdb6 4050 echo "$ac_t""yes" 1>&6
10f2d63a 4051 else
698dcdb6 4052 echo "$ac_t""no" 1>&6
10f2d63a 4053 fi
698dcdb6 4054
10f2d63a 4055
698dcdb6
VZ
4056
4057 echo $ac_n "checking for --enable-catch_segvs""... $ac_c" 1>&6
f11bdd03 4058echo "configure:4059: checking for --enable-catch_segvs" >&5
eb4efbdc
VZ
4059 no_cache=0
4060 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
4061if test "${enable_catch_segvs+set}" = set; then
4062 enableval="$enable_catch_segvs"
698dcdb6 4063
eb4efbdc
VZ
4064 if test "$enableval" = yes; then
4065 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
4066 else
4067 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
4068 fi
698dcdb6 4069
eb4efbdc 4070else
698dcdb6 4071
eb4efbdc
VZ
4072 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
4073 if test "x$LINE" != x ; then
4074 eval "DEFAULT_$LINE"
4075 else
4076 no_cache=1
4077 fi
4078
4079 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
698dcdb6
VZ
4080
4081fi
eb4efbdc
VZ
4082
4083
4084 eval "$ac_cv_use_catch_segvs"
4085 if test "$no_cache" != 1; then
4086 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
4087 fi
4088
4089 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
698dcdb6 4090 echo "$ac_t""yes" 1>&6
eb4efbdc 4091 else
698dcdb6 4092 echo "$ac_t""no" 1>&6
eb4efbdc 4093 fi
698dcdb6 4094
eb4efbdc 4095
698dcdb6 4096 echo $ac_n "checking for --enable-snglinst""... $ac_c" 1>&6
f11bdd03 4097echo "configure:4098: checking for --enable-snglinst" >&5
4f3c5f06
VZ
4098 no_cache=0
4099 # Check whether --enable-snglinst or --disable-snglinst was given.
4100if test "${enable_snglinst+set}" = set; then
4101 enableval="$enable_snglinst"
698dcdb6 4102
4f3c5f06
VZ
4103 if test "$enableval" = yes; then
4104 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
4105 else
4106 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
4107 fi
698dcdb6 4108
4f3c5f06 4109else
698dcdb6 4110
4f3c5f06
VZ
4111 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${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_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
698dcdb6
VZ
4119
4120fi
4f3c5f06
VZ
4121
4122
4123 eval "$ac_cv_use_snglinst"
4124 if test "$no_cache" != 1; then
4125 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
4126 fi
4127
4128 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
698dcdb6 4129 echo "$ac_t""yes" 1>&6
4f3c5f06 4130 else
698dcdb6 4131 echo "$ac_t""no" 1>&6
4f3c5f06 4132 fi
698dcdb6
VZ
4133
4134
eb4efbdc 4135
1e6feb95 4136 echo $ac_n "checking for --enable-mimetype""... $ac_c" 1>&6
f11bdd03 4137echo "configure:4138: checking for --enable-mimetype" >&5
1e6feb95
VZ
4138 no_cache=0
4139 # Check whether --enable-mimetype or --disable-mimetype was given.
4140if test "${enable_mimetype+set}" = set; then
4141 enableval="$enable_mimetype"
4142
4143 if test "$enableval" = yes; then
4144 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
4145 else
4146 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
4147 fi
4148
4149else
4150
4151 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
4152 if test "x$LINE" != x ; then
4153 eval "DEFAULT_$LINE"
4154 else
4155 no_cache=1
4156 fi
4157
4158 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
4159
4160fi
4161
4162
4163 eval "$ac_cv_use_mimetype"
4164 if test "$no_cache" != 1; then
4165 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
4166 fi
4167
4168 if test "$wxUSE_MIMETYPE" = yes; then
4169 echo "$ac_t""yes" 1>&6
4170 else
4171 echo "$ac_t""no" 1>&6
4172 fi
4173
4174
3e44f09d 4175 echo $ac_n "checking for --enable-system_options""... $ac_c" 1>&6
f11bdd03 4176echo "configure:4177: checking for --enable-system_options" >&5
3e44f09d
VZ
4177 no_cache=0
4178 # Check whether --enable-system_options or --disable-system_options was given.
4179if test "${enable_system_options+set}" = set; then
4180 enableval="$enable_system_options"
4181
4182 if test "$enableval" = yes; then
4183 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
4184 else
4185 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
4186 fi
4187
4188else
4189
4190 LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
4191 if test "x$LINE" != x ; then
4192 eval "DEFAULT_$LINE"
4193 else
4194 no_cache=1
4195 fi
4196
4197 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
4198
4199fi
4200
4201
4202 eval "$ac_cv_use_system_options"
4203 if test "$no_cache" != 1; then
4204 echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
4205 fi
4206
4207 if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
4208 echo "$ac_t""yes" 1>&6
4209 else
4210 echo "$ac_t""no" 1>&6
4211 fi
4212
4213
1e6feb95 4214
698dcdb6
VZ
4215
4216 echo $ac_n "checking for --enable-threads""... $ac_c" 1>&6
f11bdd03 4217echo "configure:4218: checking for --enable-threads" >&5
10f2d63a
VZ
4218 no_cache=0
4219 # Check whether --enable-threads or --disable-threads was given.
4220if test "${enable_threads+set}" = set; then
4221 enableval="$enable_threads"
698dcdb6 4222
10f2d63a
VZ
4223 if test "$enableval" = yes; then
4224 ac_cv_use_threads='wxUSE_THREADS=yes'
4225 else
4226 ac_cv_use_threads='wxUSE_THREADS=no'
4227 fi
698dcdb6 4228
10f2d63a 4229else
698dcdb6 4230
10f2d63a
VZ
4231 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
4232 if test "x$LINE" != x ; then
4233 eval "DEFAULT_$LINE"
4234 else
4235 no_cache=1
4236 fi
4237
4238 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
698dcdb6
VZ
4239
4240fi
10f2d63a
VZ
4241
4242
4243 eval "$ac_cv_use_threads"
4244 if test "$no_cache" != 1; then
4245 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
4246 fi
4247
4248 if test "$wxUSE_THREADS" = yes; then
698dcdb6 4249 echo "$ac_t""yes" 1>&6
10f2d63a 4250 else
698dcdb6 4251 echo "$ac_t""no" 1>&6
10f2d63a 4252 fi
698dcdb6 4253
10f2d63a 4254
698dcdb6 4255 echo $ac_n "checking for --enable-serial""... $ac_c" 1>&6
f11bdd03 4256echo "configure:4257: checking for --enable-serial" >&5
10f2d63a
VZ
4257 no_cache=0
4258 # Check whether --enable-serial or --disable-serial was given.
4259if test "${enable_serial+set}" = set; then
4260 enableval="$enable_serial"
698dcdb6 4261
10f2d63a
VZ
4262 if test "$enableval" = yes; then
4263 ac_cv_use_serial='wxUSE_SERIAL=yes'
4264 else
4265 ac_cv_use_serial='wxUSE_SERIAL=no'
4266 fi
698dcdb6 4267
10f2d63a 4268else
698dcdb6 4269
10f2d63a
VZ
4270 LINE=`grep "wxUSE_SERIAL" ${wx_arg_cache_file}`
4271 if test "x$LINE" != x ; then
4272 eval "DEFAULT_$LINE"
4273 else
4274 no_cache=1
4275 fi
4276
4277 ac_cv_use_serial='wxUSE_SERIAL='$DEFAULT_wxUSE_SERIAL
698dcdb6
VZ
4278
4279fi
10f2d63a
VZ
4280
4281
4282 eval "$ac_cv_use_serial"
4283 if test "$no_cache" != 1; then
4284 echo $ac_cv_use_serial >> ${wx_arg_cache_file}.tmp
4285 fi
4286
4287 if test "$wxUSE_SERIAL" = yes; then
698dcdb6 4288 echo "$ac_t""yes" 1>&6
10f2d63a 4289 else
698dcdb6 4290 echo "$ac_t""no" 1>&6
10f2d63a 4291 fi
698dcdb6 4292
10f2d63a 4293
b12915c1
VZ
4294if test "$wxUSE_GUI" = "yes"; then
4295
698dcdb6
VZ
4296
4297
4298 echo $ac_n "checking for --enable-docview""... $ac_c" 1>&6
f11bdd03 4299echo "configure:4300: checking for --enable-docview" >&5
10f2d63a
VZ
4300 no_cache=0
4301 # Check whether --enable-docview or --disable-docview was given.
4302if test "${enable_docview+set}" = set; then
4303 enableval="$enable_docview"
698dcdb6 4304
10f2d63a
VZ
4305 if test "$enableval" = yes; then
4306 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
4307 else
4308 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
4309 fi
698dcdb6 4310
10f2d63a 4311else
698dcdb6 4312
10f2d63a
VZ
4313 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
4314 if test "x$LINE" != x ; then
4315 eval "DEFAULT_$LINE"
4316 else
4317 no_cache=1
4318 fi
4319
4320 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
698dcdb6
VZ
4321
4322fi
10f2d63a
VZ
4323
4324
4325 eval "$ac_cv_use_docview"
4326 if test "$no_cache" != 1; then
4327 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
4328 fi
4329
4330 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
698dcdb6 4331 echo "$ac_t""yes" 1>&6
10f2d63a 4332 else
698dcdb6 4333 echo "$ac_t""no" 1>&6
10f2d63a 4334 fi
698dcdb6 4335
10f2d63a 4336
698dcdb6 4337 echo $ac_n "checking for --enable-help""... $ac_c" 1>&6
f11bdd03 4338echo "configure:4339: checking for --enable-help" >&5
10f2d63a
VZ
4339 no_cache=0
4340 # Check whether --enable-help or --disable-help was given.
4341if test "${enable_help+set}" = set; then
4342 enableval="$enable_help"
698dcdb6 4343
10f2d63a
VZ
4344 if test "$enableval" = yes; then
4345 ac_cv_use_help='wxUSE_HELP=yes'
4346 else
4347 ac_cv_use_help='wxUSE_HELP=no'
4348 fi
698dcdb6 4349
10f2d63a 4350else
698dcdb6 4351
10f2d63a
VZ
4352 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
4353 if test "x$LINE" != x ; then
4354 eval "DEFAULT_$LINE"
4355 else
4356 no_cache=1
4357 fi
4358
4359 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
698dcdb6
VZ
4360
4361fi
10f2d63a
VZ
4362
4363
4364 eval "$ac_cv_use_help"
4365 if test "$no_cache" != 1; then
4366 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
4367 fi
4368
4369 if test "$wxUSE_HELP" = yes; then
698dcdb6 4370 echo "$ac_t""yes" 1>&6
10f2d63a 4371 else
698dcdb6 4372 echo "$ac_t""no" 1>&6
10f2d63a 4373 fi
698dcdb6 4374
10f2d63a 4375
29fd3c0c 4376 echo $ac_n "checking for --enable-mshtmlhelp""... $ac_c" 1>&6
f11bdd03 4377echo "configure:4378: checking for --enable-mshtmlhelp" >&5
29fd3c0c
VS
4378 no_cache=0
4379 # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
4380if test "${enable_mshtmlhelp+set}" = set; then
4381 enableval="$enable_mshtmlhelp"
4382
4383 if test "$enableval" = yes; then
4384 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
4385 else
4386 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
4387 fi
4388
4389else
4390
4391 LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
4392 if test "x$LINE" != x ; then
4393 eval "DEFAULT_$LINE"
4394 else
4395 no_cache=1
4396 fi
4397
4398 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
4399
4400fi
4401
4402
4403 eval "$ac_cv_use_mshtmlhelp"
4404 if test "$no_cache" != 1; then
4405 echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
4406 fi
4407
4408 if test "$wxUSE_MS_HTML_HELP" = yes; then
4409 echo "$ac_t""yes" 1>&6
4410 else
4411 echo "$ac_t""no" 1>&6
4412 fi
4413
4414
3379ed37 4415 echo $ac_n "checking for --enable-html""... $ac_c" 1>&6
f11bdd03 4416echo "configure:4417: checking for --enable-html" >&5
3379ed37
VZ
4417 no_cache=0
4418 # Check whether --enable-html or --disable-html was given.
4419if test "${enable_html+set}" = set; then
4420 enableval="$enable_html"
4421
4422 if test "$enableval" = yes; then
4423 ac_cv_use_html='wxUSE_HTML=yes'
4424 else
4425 ac_cv_use_html='wxUSE_HTML=no'
4426 fi
4427
4428else
4429
4430 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
4431 if test "x$LINE" != x ; then
4432 eval "DEFAULT_$LINE"
4433 else
4434 no_cache=1
4435 fi
4436
4437 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
4438
4439fi
4440
4441
4442 eval "$ac_cv_use_html"
4443 if test "$no_cache" != 1; then
4444 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
4445 fi
4446
4447 if test "$wxUSE_HTML" = yes; then
4448 echo "$ac_t""yes" 1>&6
4449 else
4450 echo "$ac_t""no" 1>&6
4451 fi
4452
4453
4454 echo $ac_n "checking for --enable-htmlhelp""... $ac_c" 1>&6
f11bdd03 4455echo "configure:4456: checking for --enable-htmlhelp" >&5
3379ed37
VZ
4456 no_cache=0
4457 # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
4458if test "${enable_htmlhelp+set}" = set; then
4459 enableval="$enable_htmlhelp"
4460
4461 if test "$enableval" = yes; then
4462 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
4463 else
4464 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
4465 fi
4466
4467else
4468
4469 LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
4470 if test "x$LINE" != x ; then
4471 eval "DEFAULT_$LINE"
4472 else
4473 no_cache=1
4474 fi
4475
4476 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
4477
4478fi
4479
4480
4481 eval "$ac_cv_use_htmlhelp"
4482 if test "$no_cache" != 1; then
4483 echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
4484 fi
4485
4486 if test "$wxUSE_WXHTML_HELP" = yes; then
4487 echo "$ac_t""yes" 1>&6
4488 else
4489 echo "$ac_t""no" 1>&6
4490 fi
4491
4492
698dcdb6 4493 echo $ac_n "checking for --enable-constraints""... $ac_c" 1>&6
f11bdd03 4494echo "configure:4495: checking for --enable-constraints" >&5
10f2d63a
VZ
4495 no_cache=0
4496 # Check whether --enable-constraints or --disable-constraints was given.
4497if test "${enable_constraints+set}" = set; then
4498 enableval="$enable_constraints"
698dcdb6 4499
10f2d63a
VZ
4500 if test "$enableval" = yes; then
4501 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
4502 else
4503 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
4504 fi
698dcdb6 4505
10f2d63a 4506else
698dcdb6 4507
10f2d63a
VZ
4508 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
4509 if test "x$LINE" != x ; then
4510 eval "DEFAULT_$LINE"
4511 else
4512 no_cache=1
4513 fi
4514
4515 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
698dcdb6
VZ
4516
4517fi
10f2d63a
VZ
4518
4519
4520 eval "$ac_cv_use_constraints"
4521 if test "$no_cache" != 1; then
4522 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
4523 fi
4524
4525 if test "$wxUSE_CONSTRAINTS" = yes; then
698dcdb6 4526 echo "$ac_t""yes" 1>&6
10f2d63a 4527 else
698dcdb6 4528 echo "$ac_t""no" 1>&6
10f2d63a 4529 fi
698dcdb6 4530
10f2d63a 4531
698dcdb6 4532 echo $ac_n "checking for --enable-printarch""... $ac_c" 1>&6
f11bdd03 4533echo "configure:4534: checking for --enable-printarch" >&5
10f2d63a
VZ
4534 no_cache=0
4535 # Check whether --enable-printarch or --disable-printarch was given.
4536if test "${enable_printarch+set}" = set; then
4537 enableval="$enable_printarch"
698dcdb6 4538
10f2d63a
VZ
4539 if test "$enableval" = yes; then
4540 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
4541 else
4542 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
4543 fi
698dcdb6 4544
10f2d63a 4545else
698dcdb6 4546
10f2d63a
VZ
4547 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
4548 if test "x$LINE" != x ; then
4549 eval "DEFAULT_$LINE"
4550 else
4551 no_cache=1
4552 fi
4553
4554 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
698dcdb6
VZ
4555
4556fi
10f2d63a
VZ
4557
4558
4559 eval "$ac_cv_use_printarch"
4560 if test "$no_cache" != 1; then
4561 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
4562 fi
4563
4564 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
698dcdb6 4565 echo "$ac_t""yes" 1>&6
10f2d63a 4566 else
698dcdb6 4567 echo "$ac_t""no" 1>&6
10f2d63a 4568 fi
698dcdb6 4569
10f2d63a 4570
698dcdb6 4571 echo $ac_n "checking for --enable-mdi""... $ac_c" 1>&6
f11bdd03 4572echo "configure:4573: checking for --enable-mdi" >&5
10f2d63a
VZ
4573 no_cache=0
4574 # Check whether --enable-mdi or --disable-mdi was given.
4575if test "${enable_mdi+set}" = set; then
4576 enableval="$enable_mdi"
698dcdb6 4577
10f2d63a
VZ
4578 if test "$enableval" = yes; then
4579 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes'
4580 else
4581 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no'
4582 fi
698dcdb6 4583
10f2d63a 4584else
698dcdb6 4585
10f2d63a
VZ
4586 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
4587 if test "x$LINE" != x ; then
4588 eval "DEFAULT_$LINE"
4589 else
4590 no_cache=1
4591 fi
4592
4593 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
698dcdb6
VZ
4594
4595fi
10f2d63a
VZ
4596
4597
4598 eval "$ac_cv_use_mdi"
4599 if test "$no_cache" != 1; then
4600 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
4601 fi
4602
4603 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
698dcdb6 4604 echo "$ac_t""yes" 1>&6
10f2d63a 4605 else
698dcdb6 4606 echo "$ac_t""no" 1>&6
10f2d63a 4607 fi
698dcdb6
VZ
4608
4609
1e6feb95 4610 echo $ac_n "checking for --enable-loggui""... $ac_c" 1>&6
f11bdd03 4611echo "configure:4612: checking for --enable-loggui" >&5
1e6feb95
VZ
4612 no_cache=0
4613 # Check whether --enable-loggui or --disable-loggui was given.
4614if test "${enable_loggui+set}" = set; then
4615 enableval="$enable_loggui"
4616
4617 if test "$enableval" = yes; then
4618 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
4619 else
4620 ac_cv_use_loggui='wxUSE_LOGGUI=no'
4621 fi
4622
4623else
4624
4625 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
4626 if test "x$LINE" != x ; then
4627 eval "DEFAULT_$LINE"
4628 else
4629 no_cache=1
4630 fi
4631
4632 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
4633
4634fi
4635
4636
4637 eval "$ac_cv_use_loggui"
4638 if test "$no_cache" != 1; then
4639 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
4640 fi
4641
4642 if test "$wxUSE_LOGGUI" = yes; then
4643 echo "$ac_t""yes" 1>&6
4644 else
4645 echo "$ac_t""no" 1>&6
4646 fi
4647
4648
4649 echo $ac_n "checking for --enable-logwin""... $ac_c" 1>&6
f11bdd03 4650echo "configure:4651: checking for --enable-logwin" >&5
1e6feb95
VZ
4651 no_cache=0
4652 # Check whether --enable-logwin or --disable-logwin was given.
4653if test "${enable_logwin+set}" = set; then
4654 enableval="$enable_logwin"
4655
4656 if test "$enableval" = yes; then
4657 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
4658 else
4659 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
4660 fi
4661
4662else
4663
4664 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
4665 if test "x$LINE" != x ; then
4666 eval "DEFAULT_$LINE"
4667 else
4668 no_cache=1
4669 fi
4670
4671 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
4672
4673fi
4674
4675
4676 eval "$ac_cv_use_logwin"
4677 if test "$no_cache" != 1; then
4678 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
4679 fi
4680
4681 if test "$wxUSE_LOGWINDOW" = yes; then
4682 echo "$ac_t""yes" 1>&6
4683 else
4684 echo "$ac_t""no" 1>&6
4685 fi
4686
4687
10f2d63a 4688
698dcdb6 4689 echo $ac_n "checking for --enable-postscript""... $ac_c" 1>&6
f11bdd03 4690echo "configure:4691: checking for --enable-postscript" >&5
10f2d63a
VZ
4691 no_cache=0
4692 # Check whether --enable-postscript or --disable-postscript was given.
4693if test "${enable_postscript+set}" = set; then
4694 enableval="$enable_postscript"
698dcdb6 4695
10f2d63a
VZ
4696 if test "$enableval" = yes; then
4697 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
4698 else
4699 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
4700 fi
698dcdb6 4701
10f2d63a 4702else
698dcdb6 4703
10f2d63a
VZ
4704 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
4705 if test "x$LINE" != x ; then
4706 eval "DEFAULT_$LINE"
4707 else
4708 no_cache=1
4709 fi
4710
4711 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
698dcdb6
VZ
4712
4713fi
10f2d63a
VZ
4714
4715
4716 eval "$ac_cv_use_postscript"
4717 if test "$no_cache" != 1; then
4718 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
4719 fi
4720
4721 if test "$wxUSE_POSTSCRIPT" = yes; then
698dcdb6 4722 echo "$ac_t""yes" 1>&6
10f2d63a 4723 else
698dcdb6 4724 echo "$ac_t""no" 1>&6
10f2d63a 4725 fi
698dcdb6
VZ
4726
4727
4728
10f2d63a 4729
1e6feb95 4730
698dcdb6 4731 echo $ac_n "checking for --enable-prologio""... $ac_c" 1>&6
f11bdd03 4732echo "configure:4733: checking for --enable-prologio" >&5
10f2d63a
VZ
4733 no_cache=0
4734 # Check whether --enable-prologio or --disable-prologio was given.
4735if test "${enable_prologio+set}" = set; then
4736 enableval="$enable_prologio"
698dcdb6 4737
10f2d63a
VZ
4738 if test "$enableval" = yes; then
4739 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
4740 else
4741 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
4742 fi
698dcdb6 4743
10f2d63a 4744else
698dcdb6 4745
10f2d63a
VZ
4746 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
4747 if test "x$LINE" != x ; then
4748 eval "DEFAULT_$LINE"
4749 else
4750 no_cache=1
4751 fi
4752
4753 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
698dcdb6
VZ
4754
4755fi
10f2d63a
VZ
4756
4757
4758 eval "$ac_cv_use_prologio"
4759 if test "$no_cache" != 1; then
4760 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
4761 fi
4762
4763 if test "$wxUSE_PROLOGIO" = yes; then
698dcdb6 4764 echo "$ac_t""yes" 1>&6
10f2d63a 4765 else
698dcdb6 4766 echo "$ac_t""no" 1>&6
10f2d63a 4767 fi
698dcdb6 4768
10f2d63a 4769
698dcdb6 4770 echo $ac_n "checking for --enable-resources""... $ac_c" 1>&6
f11bdd03 4771echo "configure:4772: checking for --enable-resources" >&5
10f2d63a
VZ
4772 no_cache=0
4773 # Check whether --enable-resources or --disable-resources was given.
4774if test "${enable_resources+set}" = set; then
4775 enableval="$enable_resources"
698dcdb6 4776
10f2d63a
VZ
4777 if test "$enableval" = yes; then
4778 ac_cv_use_resources='wxUSE_RESOURCES=yes'
4779 else
4780 ac_cv_use_resources='wxUSE_RESOURCES=no'
4781 fi
698dcdb6 4782
10f2d63a 4783else
698dcdb6 4784
10f2d63a
VZ
4785 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
4786 if test "x$LINE" != x ; then
4787 eval "DEFAULT_$LINE"
4788 else
4789 no_cache=1
4790 fi
4791
4792 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
698dcdb6
VZ
4793
4794fi
10f2d63a
VZ
4795
4796
4797 eval "$ac_cv_use_resources"
4798 if test "$no_cache" != 1; then
4799 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
4800 fi
4801
4802 if test "$wxUSE_RESOURCES" = yes; then
698dcdb6 4803 echo "$ac_t""yes" 1>&6
10f2d63a 4804 else
698dcdb6 4805 echo "$ac_t""no" 1>&6
10f2d63a 4806 fi
698dcdb6 4807
10f2d63a 4808
698dcdb6
VZ
4809
4810 echo $ac_n "checking for --enable-xresources""... $ac_c" 1>&6
f11bdd03 4811echo "configure:4812: checking for --enable-xresources" >&5
10f2d63a
VZ
4812 no_cache=0
4813 # Check whether --enable-xresources or --disable-xresources was given.
4814if test "${enable_xresources+set}" = set; then
4815 enableval="$enable_xresources"
698dcdb6 4816
10f2d63a
VZ
4817 if test "$enableval" = yes; then
4818 ac_cv_use_xresources='wxUSE_X_RESOURCES=yes'
4819 else
4820 ac_cv_use_xresources='wxUSE_X_RESOURCES=no'
4821 fi
698dcdb6 4822
10f2d63a 4823else
698dcdb6 4824
10f2d63a
VZ
4825 LINE=`grep "wxUSE_X_RESOURCES" ${wx_arg_cache_file}`
4826 if test "x$LINE" != x ; then
4827 eval "DEFAULT_$LINE"
4828 else
4829 no_cache=1
4830 fi
4831
4832 ac_cv_use_xresources='wxUSE_X_RESOURCES='$DEFAULT_wxUSE_X_RESOURCES
698dcdb6
VZ
4833
4834fi
10f2d63a
VZ
4835
4836
4837 eval "$ac_cv_use_xresources"
4838 if test "$no_cache" != 1; then
4839 echo $ac_cv_use_xresources >> ${wx_arg_cache_file}.tmp
4840 fi
4841
4842 if test "$wxUSE_X_RESOURCES" = yes; then
698dcdb6 4843 echo "$ac_t""yes" 1>&6
10f2d63a 4844 else
698dcdb6 4845 echo "$ac_t""no" 1>&6
10f2d63a 4846 fi
698dcdb6
VZ
4847
4848
10f2d63a 4849
698dcdb6
VZ
4850
4851 echo $ac_n "checking for --enable-clipboard""... $ac_c" 1>&6
f11bdd03 4852echo "configure:4853: checking for --enable-clipboard" >&5
10f2d63a
VZ
4853 no_cache=0
4854 # Check whether --enable-clipboard or --disable-clipboard was given.
4855if test "${enable_clipboard+set}" = set; then
4856 enableval="$enable_clipboard"
698dcdb6 4857
10f2d63a
VZ
4858 if test "$enableval" = yes; then
4859 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
4860 else
4861 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
4862 fi
698dcdb6 4863
10f2d63a 4864else
698dcdb6 4865
10f2d63a
VZ
4866 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
4867 if test "x$LINE" != x ; then
4868 eval "DEFAULT_$LINE"
4869 else
4870 no_cache=1
4871 fi
4872
4873 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
698dcdb6
VZ
4874
4875fi
10f2d63a
VZ
4876
4877
4878 eval "$ac_cv_use_clipboard"
4879 if test "$no_cache" != 1; then
4880 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
4881 fi
4882
4883 if test "$wxUSE_CLIPBOARD" = yes; then
698dcdb6 4884 echo "$ac_t""yes" 1>&6
10f2d63a 4885 else
698dcdb6 4886 echo "$ac_t""no" 1>&6
10f2d63a 4887 fi
698dcdb6 4888
10f2d63a 4889
698dcdb6 4890 echo $ac_n "checking for --enable-dnd""... $ac_c" 1>&6
f11bdd03 4891echo "configure:4892: checking for --enable-dnd" >&5
10f2d63a
VZ
4892 no_cache=0
4893 # Check whether --enable-dnd or --disable-dnd was given.
4894if test "${enable_dnd+set}" = set; then
4895 enableval="$enable_dnd"
698dcdb6 4896
10f2d63a
VZ
4897 if test "$enableval" = yes; then
4898 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
4899 else
4900 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
4901 fi
698dcdb6 4902
10f2d63a 4903else
698dcdb6 4904
10f2d63a
VZ
4905 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
4906 if test "x$LINE" != x ; then
4907 eval "DEFAULT_$LINE"
4908 else
4909 no_cache=1
4910 fi
4911
4912 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
698dcdb6
VZ
4913
4914fi
10f2d63a
VZ
4915
4916
4917 eval "$ac_cv_use_dnd"
4918 if test "$no_cache" != 1; then
4919 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
4920 fi
4921
4922 if test "$wxUSE_DRAG_AND_DROP" = yes; then
698dcdb6 4923 echo "$ac_t""yes" 1>&6
10f2d63a 4924 else
698dcdb6 4925 echo "$ac_t""no" 1>&6
10f2d63a 4926 fi
698dcdb6 4927
10f2d63a 4928
698dcdb6 4929 echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6
f11bdd03 4930echo "configure:4931: checking for --enable-metafile" >&5
b64f0a5f
RL
4931 no_cache=0
4932 # Check whether --enable-metafile or --disable-metafile was given.
4933if test "${enable_metafile+set}" = set; then
4934 enableval="$enable_metafile"
698dcdb6 4935
b64f0a5f
RL
4936 if test "$enableval" = yes; then
4937 ac_cv_use_metafile='wxUSE_METAFILE=yes'
4938 else
4939 ac_cv_use_metafile='wxUSE_METAFILE=no'
4940 fi
698dcdb6 4941
b64f0a5f 4942else
698dcdb6 4943
b64f0a5f
RL
4944 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
4945 if test "x$LINE" != x ; then
4946 eval "DEFAULT_$LINE"
4947 else
4948 no_cache=1
4949 fi
4950
4951 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
698dcdb6
VZ
4952
4953fi
b64f0a5f
RL
4954
4955
4956 eval "$ac_cv_use_metafile"
4957 if test "$no_cache" != 1; then
4958 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
4959 fi
4960
4961 if test "$wxUSE_METAFILE" = yes; then
698dcdb6 4962 echo "$ac_t""yes" 1>&6
b64f0a5f 4963 else
698dcdb6 4964 echo "$ac_t""no" 1>&6
b64f0a5f 4965 fi
698dcdb6
VZ
4966
4967
10f2d63a 4968
698dcdb6 4969 echo $ac_n "checking for --enable-wxtree""... $ac_c" 1>&6
f11bdd03 4970echo "configure:4971: checking for --enable-wxtree" >&5
10f2d63a
VZ
4971 no_cache=0
4972 # Check whether --enable-wxtree or --disable-wxtree was given.
4973if test "${enable_wxtree+set}" = set; then
4974 enableval="$enable_wxtree"
698dcdb6 4975
10f2d63a
VZ
4976 if test "$enableval" = yes; then
4977 ac_cv_use_wxtree='wxUSE_WXTREE=yes'
4978 else
4979 ac_cv_use_wxtree='wxUSE_WXTREE=no'
4980 fi
698dcdb6 4981
10f2d63a 4982else
698dcdb6 4983
10f2d63a
VZ
4984 LINE=`grep "wxUSE_WXTREE" ${wx_arg_cache_file}`
4985 if test "x$LINE" != x ; then
4986 eval "DEFAULT_$LINE"
4987 else
4988 no_cache=1
4989 fi
4990
4991 ac_cv_use_wxtree='wxUSE_WXTREE='$DEFAULT_wxUSE_WXTREE
698dcdb6
VZ
4992
4993fi
10f2d63a
VZ
4994
4995
4996 eval "$ac_cv_use_wxtree"
4997 if test "$no_cache" != 1; then
4998 echo $ac_cv_use_wxtree >> ${wx_arg_cache_file}.tmp
4999 fi
5000
5001 if test "$wxUSE_WXTREE" = yes; then
698dcdb6 5002 echo "$ac_t""yes" 1>&6
10f2d63a 5003 else
698dcdb6 5004 echo "$ac_t""no" 1>&6
10f2d63a 5005 fi
698dcdb6 5006
10f2d63a 5007
698dcdb6
VZ
5008
5009
5010 echo $ac_n "checking for --enable-controls""... $ac_c" 1>&6
f11bdd03 5011echo "configure:5012: checking for --enable-controls" >&5
10f2d63a
VZ
5012 no_cache=0
5013 # Check whether --enable-controls or --disable-controls was given.
5014if test "${enable_controls+set}" = set; then
5015 enableval="$enable_controls"
698dcdb6 5016
10f2d63a
VZ
5017 if test "$enableval" = yes; then
5018 ac_cv_use_controls='wxUSE_CONTROLS=yes'
5019 else
5020 ac_cv_use_controls='wxUSE_CONTROLS=no'
5021 fi
698dcdb6 5022
10f2d63a 5023else
698dcdb6 5024
10f2d63a
VZ
5025 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
5026 if test "x$LINE" != x ; then
5027 eval "DEFAULT_$LINE"
5028 else
5029 no_cache=1
5030 fi
5031
5032 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
698dcdb6
VZ
5033
5034fi
10f2d63a
VZ
5035
5036
5037 eval "$ac_cv_use_controls"
5038 if test "$no_cache" != 1; then
5039 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
5040 fi
5041
5042 if test "$wxUSE_CONTROLS" = yes; then
698dcdb6 5043 echo "$ac_t""yes" 1>&6
10f2d63a 5044 else
698dcdb6 5045 echo "$ac_t""no" 1>&6
10f2d63a 5046 fi
698dcdb6 5047
10f2d63a
VZ
5048
5049if test "$wxUSE_CONTROLS" = "yes"; then
5050 DEFAULT_wxUSE_ACCEL=yes
1e6feb95
VZ
5051 DEFAULT_wxUSE_BMPBUTTON=yes
5052 DEFAULT_wxUSE_BUTTON=yes
5053 DEFAULT_wxUSE_CALCTRL=no
10f2d63a
VZ
5054 DEFAULT_wxUSE_CARET=yes
5055 DEFAULT_wxUSE_COMBOBOX=yes
10f2d63a
VZ
5056 DEFAULT_wxUSE_CHECKBOX=yes
5057 DEFAULT_wxUSE_CHECKLISTBOX=yes
5058 DEFAULT_wxUSE_CHOICE=yes
5059 DEFAULT_wxUSE_GAUGE=yes
5060 DEFAULT_wxUSE_GRID=yes
cc977e5f 5061 DEFAULT_wxUSE_NEW_GRID=yes
10f2d63a
VZ
5062 DEFAULT_wxUSE_IMAGLIST=yes
5063 DEFAULT_wxUSE_LISTBOX=yes
5064 DEFAULT_wxUSE_LISTCTRL=yes
5065 DEFAULT_wxUSE_NOTEBOOK=yes
5066 DEFAULT_wxUSE_RADIOBOX=yes
5067 DEFAULT_wxUSE_RADIOBTN=yes
5068 DEFAULT_wxUSE_SASH=yes
5069 DEFAULT_wxUSE_SCROLLBAR=yes
5070 DEFAULT_wxUSE_SLIDER=yes
5071 DEFAULT_wxUSE_SPINBTN=yes
56cfaa52 5072 DEFAULT_wxUSE_SPINCTRL=yes
10f2d63a
VZ
5073 DEFAULT_wxUSE_SPLITTER=yes
5074 DEFAULT_wxUSE_STATBMP=yes
5075 DEFAULT_wxUSE_STATBOX=yes
5076 DEFAULT_wxUSE_STATLINE=yes
5077 DEFAULT_wxUSE_STATUSBAR=yes
5078 DEFAULT_wxUSE_TAB_DIALOG=yes
1db8dc4a 5079 DEFAULT_wxUSE_TOGGLEBTN=yes
10f2d63a 5080 DEFAULT_wxUSE_TOOLBAR=yes
360d6699
VZ
5081 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
5082 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
10f2d63a
VZ
5083 DEFAULT_wxUSE_TOOLTIPS=yes
5084 DEFAULT_wxUSE_TREECTRL=yes
9f41d601 5085 DEFAULT_wxUSE_POPUPWIN=yes
10f2d63a
VZ
5086elif test "$wxUSE_CONTROLS" = "no"; then
5087 DEFAULT_wxUSE_ACCEL=no
1e6feb95
VZ
5088 DEFAULT_wxUSE_BMPBUTTON=no
5089 DEFAULT_wxUSE_BUTTON=no
5090 DEFAULT_wxUSE_CALCTRL=no
10f2d63a
VZ
5091 DEFAULT_wxUSE_CARET=no
5092 DEFAULT_wxUSE_COMBOBOX=no
10f2d63a
VZ
5093 DEFAULT_wxUSE_CHECKBOX=no
5094 DEFAULT_wxUSE_CHECKLISTBOX=no
5095 DEFAULT_wxUSE_CHOICE=no
5096 DEFAULT_wxUSE_GAUGE=no
5097 DEFAULT_wxUSE_GRID=no
5098 DEFAULT_wxUSE_NEW_GRID=no
5099 DEFAULT_wxUSE_IMAGLIST=no
5100 DEFAULT_wxUSE_LISTBOX=no
5101 DEFAULT_wxUSE_LISTCTRL=no
5102 DEFAULT_wxUSE_NOTEBOOK=no
5103 DEFAULT_wxUSE_RADIOBOX=no
5104 DEFAULT_wxUSE_RADIOBTN=no
5105 DEFAULT_wxUSE_SASH=no
5106 DEFAULT_wxUSE_SCROLLBAR=no
5107 DEFAULT_wxUSE_SLIDER=no
5108 DEFAULT_wxUSE_SPINBTN=no
56cfaa52 5109 DEFAULT_wxUSE_SPINCTRL=no
10f2d63a
VZ
5110 DEFAULT_wxUSE_SPLITTER=no
5111 DEFAULT_wxUSE_STATBMP=no
5112 DEFAULT_wxUSE_STATBOX=no
5113 DEFAULT_wxUSE_STATLINE=no
5114 DEFAULT_wxUSE_STATUSBAR=no
5115 DEFAULT_wxUSE_TAB_DIALOG=no
1db8dc4a 5116 DEFAULT_wxUSE_TOGGLEBTN=no
10f2d63a 5117 DEFAULT_wxUSE_TOOLBAR=no
360d6699
VZ
5118 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
5119 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
10f2d63a
VZ
5120 DEFAULT_wxUSE_TOOLTIPS=no
5121 DEFAULT_wxUSE_TREECTRL=no
9f41d601 5122 DEFAULT_wxUSE_POPUPWIN=no
10f2d63a
VZ
5123fi
5124
698dcdb6
VZ
5125
5126 echo $ac_n "checking for --enable-accel""... $ac_c" 1>&6
f11bdd03 5127echo "configure:5128: checking for --enable-accel" >&5
10f2d63a
VZ
5128 no_cache=0
5129 # Check whether --enable-accel or --disable-accel was given.
5130if test "${enable_accel+set}" = set; then
5131 enableval="$enable_accel"
698dcdb6 5132
10f2d63a
VZ
5133 if test "$enableval" = yes; then
5134 ac_cv_use_accel='wxUSE_ACCEL=yes'
5135 else
5136 ac_cv_use_accel='wxUSE_ACCEL=no'
5137 fi
698dcdb6 5138
10f2d63a 5139else
698dcdb6 5140
10f2d63a
VZ
5141 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
5142 if test "x$LINE" != x ; then
5143 eval "DEFAULT_$LINE"
5144 else
5145 no_cache=1
5146 fi
5147
5148 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
698dcdb6
VZ
5149
5150fi
10f2d63a
VZ
5151
5152
5153 eval "$ac_cv_use_accel"
5154 if test "$no_cache" != 1; then
5155 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
5156 fi
5157
5158 if test "$wxUSE_ACCEL" = yes; then
698dcdb6 5159 echo "$ac_t""yes" 1>&6
10f2d63a 5160 else
698dcdb6 5161 echo "$ac_t""no" 1>&6
10f2d63a 5162 fi
698dcdb6 5163
10f2d63a 5164
1e6feb95 5165 echo $ac_n "checking for --enable-button""... $ac_c" 1>&6
f11bdd03 5166echo "configure:5167: checking for --enable-button" >&5
10f2d63a 5167 no_cache=0
1e6feb95
VZ
5168 # Check whether --enable-button or --disable-button was given.
5169if test "${enable_button+set}" = set; then
5170 enableval="$enable_button"
698dcdb6 5171
10f2d63a 5172 if test "$enableval" = yes; then
1e6feb95 5173 ac_cv_use_button='wxUSE_BUTTON=yes'
10f2d63a 5174 else
1e6feb95 5175 ac_cv_use_button='wxUSE_BUTTON=no'
10f2d63a 5176 fi
698dcdb6 5177
10f2d63a 5178else
698dcdb6 5179
1e6feb95 5180 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
10f2d63a
VZ
5181 if test "x$LINE" != x ; then
5182 eval "DEFAULT_$LINE"
5183 else
5184 no_cache=1
5185 fi
5186
1e6feb95 5187 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
698dcdb6
VZ
5188
5189fi
10f2d63a
VZ
5190
5191
1e6feb95 5192 eval "$ac_cv_use_button"
10f2d63a 5193 if test "$no_cache" != 1; then
1e6feb95 5194 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
5195 fi
5196
1e6feb95 5197 if test "$wxUSE_BUTTON" = yes; then
698dcdb6 5198 echo "$ac_t""yes" 1>&6
10f2d63a 5199 else
698dcdb6 5200 echo "$ac_t""no" 1>&6
10f2d63a 5201 fi
698dcdb6 5202
10f2d63a 5203
698dcdb6 5204 echo $ac_n "checking for --enable-bmpbutton""... $ac_c" 1>&6
f11bdd03 5205echo "configure:5206: checking for --enable-bmpbutton" >&5
10f2d63a
VZ
5206 no_cache=0
5207 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
5208if test "${enable_bmpbutton+set}" = set; then
5209 enableval="$enable_bmpbutton"
698dcdb6 5210
10f2d63a
VZ
5211 if test "$enableval" = yes; then
5212 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
5213 else
5214 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
5215 fi
698dcdb6 5216
10f2d63a 5217else
698dcdb6 5218
10f2d63a
VZ
5219 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
5220 if test "x$LINE" != x ; then
5221 eval "DEFAULT_$LINE"
5222 else
5223 no_cache=1
5224 fi
5225
5226 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
698dcdb6
VZ
5227
5228fi
10f2d63a
VZ
5229
5230
5231 eval "$ac_cv_use_bmpbutton"
5232 if test "$no_cache" != 1; then
5233 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
5234 fi
5235
5236 if test "$wxUSE_BMPBUTTON" = yes; then
698dcdb6 5237 echo "$ac_t""yes" 1>&6
10f2d63a 5238 else
698dcdb6 5239 echo "$ac_t""no" 1>&6
10f2d63a 5240 fi
698dcdb6 5241
10f2d63a 5242
1e6feb95 5243 echo $ac_n "checking for --enable-calendar""... $ac_c" 1>&6
f11bdd03 5244echo "configure:5245: checking for --enable-calendar" >&5
1e6feb95
VZ
5245 no_cache=0
5246 # Check whether --enable-calendar or --disable-calendar was given.
5247if test "${enable_calendar+set}" = set; then
5248 enableval="$enable_calendar"
5249
5250 if test "$enableval" = yes; then
5251 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
5252 else
5253 ac_cv_use_calendar='wxUSE_CALCTRL=no'
5254 fi
5255
5256else
5257
5258 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
5259 if test "x$LINE" != x ; then
5260 eval "DEFAULT_$LINE"
5261 else
5262 no_cache=1
5263 fi
5264
5265 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
5266
5267fi
5268
5269
5270 eval "$ac_cv_use_calendar"
5271 if test "$no_cache" != 1; then
5272 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
5273 fi
5274
5275 if test "$wxUSE_CALCTRL" = yes; then
5276 echo "$ac_t""yes" 1>&6
5277 else
5278 echo "$ac_t""no" 1>&6
5279 fi
5280
5281
5282 echo $ac_n "checking for --enable-caret""... $ac_c" 1>&6
f11bdd03 5283echo "configure:5284: checking for --enable-caret" >&5
1e6feb95
VZ
5284 no_cache=0
5285 # Check whether --enable-caret or --disable-caret was given.
5286if test "${enable_caret+set}" = set; then
5287 enableval="$enable_caret"
5288
5289 if test "$enableval" = yes; then
5290 ac_cv_use_caret='wxUSE_CARET=yes'
5291 else
5292 ac_cv_use_caret='wxUSE_CARET=no'
5293 fi
5294
5295else
5296
5297 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
5298 if test "x$LINE" != x ; then
5299 eval "DEFAULT_$LINE"
5300 else
5301 no_cache=1
5302 fi
5303
5304 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
5305
5306fi
5307
5308
5309 eval "$ac_cv_use_caret"
5310 if test "$no_cache" != 1; then
5311 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
5312 fi
5313
5314 if test "$wxUSE_CARET" = yes; then
5315 echo "$ac_t""yes" 1>&6
5316 else
5317 echo "$ac_t""no" 1>&6
5318 fi
5319
5320
698dcdb6 5321 echo $ac_n "checking for --enable-checkbox""... $ac_c" 1>&6
f11bdd03 5322echo "configure:5323: checking for --enable-checkbox" >&5
10f2d63a
VZ
5323 no_cache=0
5324 # Check whether --enable-checkbox or --disable-checkbox was given.
5325if test "${enable_checkbox+set}" = set; then
5326 enableval="$enable_checkbox"
698dcdb6 5327
10f2d63a
VZ
5328 if test "$enableval" = yes; then
5329 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
5330 else
5331 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
5332 fi
698dcdb6 5333
10f2d63a 5334else
698dcdb6 5335
10f2d63a
VZ
5336 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
5337 if test "x$LINE" != x ; then
5338 eval "DEFAULT_$LINE"
5339 else
5340 no_cache=1
5341 fi
5342
5343 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
698dcdb6
VZ
5344
5345fi
10f2d63a
VZ
5346
5347
5348 eval "$ac_cv_use_checkbox"
5349 if test "$no_cache" != 1; then
5350 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
5351 fi
5352
5353 if test "$wxUSE_CHECKBOX" = yes; then
698dcdb6 5354 echo "$ac_t""yes" 1>&6
10f2d63a 5355 else
698dcdb6 5356 echo "$ac_t""no" 1>&6
10f2d63a 5357 fi
698dcdb6 5358
10f2d63a 5359
698dcdb6 5360 echo $ac_n "checking for --enable-checklst""... $ac_c" 1>&6
f11bdd03 5361echo "configure:5362: checking for --enable-checklst" >&5
10f2d63a
VZ
5362 no_cache=0
5363 # Check whether --enable-checklst or --disable-checklst was given.
5364if test "${enable_checklst+set}" = set; then
5365 enableval="$enable_checklst"
698dcdb6 5366
10f2d63a
VZ
5367 if test "$enableval" = yes; then
5368 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
5369 else
5370 ac_cv_use_checklst='wxUSE_CHECKLST=no'
5371 fi
698dcdb6 5372
10f2d63a 5373else
698dcdb6 5374
10f2d63a
VZ
5375 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
5376 if test "x$LINE" != x ; then
5377 eval "DEFAULT_$LINE"
5378 else
5379 no_cache=1
5380 fi
5381
5382 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
698dcdb6
VZ
5383
5384fi
10f2d63a
VZ
5385
5386
5387 eval "$ac_cv_use_checklst"
5388 if test "$no_cache" != 1; then
5389 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
5390 fi
5391
5392 if test "$wxUSE_CHECKLST" = yes; then
698dcdb6 5393 echo "$ac_t""yes" 1>&6
10f2d63a 5394 else
698dcdb6 5395 echo "$ac_t""no" 1>&6
10f2d63a 5396 fi
698dcdb6 5397
10f2d63a 5398
698dcdb6 5399 echo $ac_n "checking for --enable-choice""... $ac_c" 1>&6
f11bdd03 5400echo "configure:5401: checking for --enable-choice" >&5
10f2d63a
VZ
5401 no_cache=0
5402 # Check whether --enable-choice or --disable-choice was given.
5403if test "${enable_choice+set}" = set; then
5404 enableval="$enable_choice"
698dcdb6 5405
10f2d63a
VZ
5406 if test "$enableval" = yes; then
5407 ac_cv_use_choice='wxUSE_CHOICE=yes'
5408 else
5409 ac_cv_use_choice='wxUSE_CHOICE=no'
5410 fi
698dcdb6 5411
10f2d63a 5412else
698dcdb6 5413
10f2d63a
VZ
5414 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
5415 if test "x$LINE" != x ; then
5416 eval "DEFAULT_$LINE"
5417 else
5418 no_cache=1
5419 fi
5420
5421 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
698dcdb6
VZ
5422
5423fi
10f2d63a
VZ
5424
5425
5426 eval "$ac_cv_use_choice"
5427 if test "$no_cache" != 1; then
5428 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
5429 fi
5430
5431 if test "$wxUSE_CHOICE" = yes; then
698dcdb6 5432 echo "$ac_t""yes" 1>&6
10f2d63a 5433 else
698dcdb6 5434 echo "$ac_t""no" 1>&6
10f2d63a 5435 fi
698dcdb6 5436
10f2d63a 5437
698dcdb6 5438 echo $ac_n "checking for --enable-combobox""... $ac_c" 1>&6
f11bdd03 5439echo "configure:5440: checking for --enable-combobox" >&5
10f2d63a
VZ
5440 no_cache=0
5441 # Check whether --enable-combobox or --disable-combobox was given.
5442if test "${enable_combobox+set}" = set; then
5443 enableval="$enable_combobox"
698dcdb6 5444
10f2d63a
VZ
5445 if test "$enableval" = yes; then
5446 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
5447 else
5448 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
5449 fi
698dcdb6 5450
10f2d63a 5451else
698dcdb6 5452
10f2d63a
VZ
5453 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
5454 if test "x$LINE" != x ; then
5455 eval "DEFAULT_$LINE"
5456 else
5457 no_cache=1
5458 fi
5459
5460 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
698dcdb6
VZ
5461
5462fi
10f2d63a
VZ
5463
5464
5465 eval "$ac_cv_use_combobox"
5466 if test "$no_cache" != 1; then
5467 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
5468 fi
5469
5470 if test "$wxUSE_COMBOBOX" = yes; then
698dcdb6 5471 echo "$ac_t""yes" 1>&6
10f2d63a 5472 else
698dcdb6 5473 echo "$ac_t""no" 1>&6
10f2d63a 5474 fi
698dcdb6 5475
10f2d63a 5476
698dcdb6 5477 echo $ac_n "checking for --enable-gauge""... $ac_c" 1>&6
f11bdd03 5478echo "configure:5479: checking for --enable-gauge" >&5
10f2d63a
VZ
5479 no_cache=0
5480 # Check whether --enable-gauge or --disable-gauge was given.
5481if test "${enable_gauge+set}" = set; then
5482 enableval="$enable_gauge"
698dcdb6 5483
10f2d63a
VZ
5484 if test "$enableval" = yes; then
5485 ac_cv_use_gauge='wxUSE_GAUGE=yes'
5486 else
5487 ac_cv_use_gauge='wxUSE_GAUGE=no'
5488 fi
698dcdb6 5489
10f2d63a 5490else
698dcdb6 5491
10f2d63a
VZ
5492 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
5493 if test "x$LINE" != x ; then
5494 eval "DEFAULT_$LINE"
5495 else
5496 no_cache=1
5497 fi
5498
5499 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
698dcdb6
VZ
5500
5501fi
10f2d63a
VZ
5502
5503
5504 eval "$ac_cv_use_gauge"
5505 if test "$no_cache" != 1; then
5506 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
5507 fi
5508
5509 if test "$wxUSE_GAUGE" = yes; then
698dcdb6 5510 echo "$ac_t""yes" 1>&6
10f2d63a 5511 else
698dcdb6 5512 echo "$ac_t""no" 1>&6
10f2d63a 5513 fi
698dcdb6 5514
10f2d63a 5515
698dcdb6 5516 echo $ac_n "checking for --enable-grid""... $ac_c" 1>&6
f11bdd03 5517echo "configure:5518: checking for --enable-grid" >&5
10f2d63a
VZ
5518 no_cache=0
5519 # Check whether --enable-grid or --disable-grid was given.
5520if test "${enable_grid+set}" = set; then
5521 enableval="$enable_grid"
698dcdb6 5522
10f2d63a
VZ
5523 if test "$enableval" = yes; then
5524 ac_cv_use_grid='wxUSE_GRID=yes'
5525 else
5526 ac_cv_use_grid='wxUSE_GRID=no'
5527 fi
698dcdb6 5528
10f2d63a 5529else
698dcdb6 5530
10f2d63a
VZ
5531 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
5532 if test "x$LINE" != x ; then
5533 eval "DEFAULT_$LINE"
5534 else
5535 no_cache=1
5536 fi
5537
5538 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
698dcdb6
VZ
5539
5540fi
10f2d63a
VZ
5541
5542
5543 eval "$ac_cv_use_grid"
5544 if test "$no_cache" != 1; then
5545 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
5546 fi
5547
5548 if test "$wxUSE_GRID" = yes; then
698dcdb6 5549 echo "$ac_t""yes" 1>&6
10f2d63a 5550 else
698dcdb6 5551 echo "$ac_t""no" 1>&6
10f2d63a 5552 fi
698dcdb6 5553
10f2d63a 5554
698dcdb6 5555 echo $ac_n "checking for --enable-newgrid""... $ac_c" 1>&6
f11bdd03 5556echo "configure:5557: checking for --enable-newgrid" >&5
10f2d63a
VZ
5557 no_cache=0
5558 # Check whether --enable-newgrid or --disable-newgrid was given.
5559if test "${enable_newgrid+set}" = set; then
5560 enableval="$enable_newgrid"
698dcdb6 5561
10f2d63a
VZ
5562 if test "$enableval" = yes; then
5563 ac_cv_use_newgrid='wxUSE_NEW_GRID=yes'
5564 else
5565 ac_cv_use_newgrid='wxUSE_NEW_GRID=no'
5566 fi
698dcdb6 5567
10f2d63a 5568else
698dcdb6 5569
10f2d63a
VZ
5570 LINE=`grep "wxUSE_NEW_GRID" ${wx_arg_cache_file}`
5571 if test "x$LINE" != x ; then
5572 eval "DEFAULT_$LINE"
5573 else
5574 no_cache=1
5575 fi
5576
5577 ac_cv_use_newgrid='wxUSE_NEW_GRID='$DEFAULT_wxUSE_NEW_GRID
698dcdb6
VZ
5578
5579fi
10f2d63a
VZ
5580
5581
5582 eval "$ac_cv_use_newgrid"
5583 if test "$no_cache" != 1; then
5584 echo $ac_cv_use_newgrid >> ${wx_arg_cache_file}.tmp
5585 fi
5586
5587 if test "$wxUSE_NEW_GRID" = yes; then
698dcdb6 5588 echo "$ac_t""yes" 1>&6
10f2d63a 5589 else
698dcdb6 5590 echo "$ac_t""no" 1>&6
10f2d63a 5591 fi
698dcdb6 5592
10f2d63a 5593
698dcdb6 5594 echo $ac_n "checking for --enable-imaglist""... $ac_c" 1>&6
f11bdd03 5595echo "configure:5596: checking for --enable-imaglist" >&5
10f2d63a
VZ
5596 no_cache=0
5597 # Check whether --enable-imaglist or --disable-imaglist was given.
5598if test "${enable_imaglist+set}" = set; then
5599 enableval="$enable_imaglist"
698dcdb6 5600
10f2d63a
VZ
5601 if test "$enableval" = yes; then
5602 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
5603 else
5604 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
5605 fi
698dcdb6 5606
10f2d63a 5607else
698dcdb6 5608
10f2d63a
VZ
5609 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
5610 if test "x$LINE" != x ; then
5611 eval "DEFAULT_$LINE"
5612 else
5613 no_cache=1
5614 fi
5615
5616 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
698dcdb6
VZ
5617
5618fi
10f2d63a
VZ
5619
5620
5621 eval "$ac_cv_use_imaglist"
5622 if test "$no_cache" != 1; then
5623 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
5624 fi
5625
5626 if test "$wxUSE_IMAGLIST" = yes; then
698dcdb6 5627 echo "$ac_t""yes" 1>&6
10f2d63a 5628 else
698dcdb6 5629 echo "$ac_t""no" 1>&6
10f2d63a 5630 fi
698dcdb6 5631
10f2d63a 5632
698dcdb6 5633 echo $ac_n "checking for --enable-listbox""... $ac_c" 1>&6
f11bdd03 5634echo "configure:5635: checking for --enable-listbox" >&5
10f2d63a
VZ
5635 no_cache=0
5636 # Check whether --enable-listbox or --disable-listbox was given.
5637if test "${enable_listbox+set}" = set; then
5638 enableval="$enable_listbox"
698dcdb6 5639
10f2d63a
VZ
5640 if test "$enableval" = yes; then
5641 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
5642 else
5643 ac_cv_use_listbox='wxUSE_LISTBOX=no'
5644 fi
698dcdb6 5645
10f2d63a 5646else
698dcdb6 5647
10f2d63a
VZ
5648 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
5649 if test "x$LINE" != x ; then
5650 eval "DEFAULT_$LINE"
5651 else
5652 no_cache=1
5653 fi
5654
5655 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
698dcdb6
VZ
5656
5657fi
10f2d63a
VZ
5658
5659
5660 eval "$ac_cv_use_listbox"
5661 if test "$no_cache" != 1; then
5662 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
5663 fi
5664
5665 if test "$wxUSE_LISTBOX" = yes; then
698dcdb6 5666 echo "$ac_t""yes" 1>&6
10f2d63a 5667 else
698dcdb6 5668 echo "$ac_t""no" 1>&6
10f2d63a 5669 fi
698dcdb6 5670
10f2d63a 5671
698dcdb6 5672 echo $ac_n "checking for --enable-listctrl""... $ac_c" 1>&6
f11bdd03 5673echo "configure:5674: checking for --enable-listctrl" >&5
10f2d63a
VZ
5674 no_cache=0
5675 # Check whether --enable-listctrl or --disable-listctrl was given.
5676if test "${enable_listctrl+set}" = set; then
5677 enableval="$enable_listctrl"
698dcdb6 5678
10f2d63a
VZ
5679 if test "$enableval" = yes; then
5680 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
5681 else
5682 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
5683 fi
698dcdb6 5684
10f2d63a 5685else
698dcdb6 5686
10f2d63a
VZ
5687 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
5688 if test "x$LINE" != x ; then
5689 eval "DEFAULT_$LINE"
5690 else
5691 no_cache=1
5692 fi
5693
5694 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
698dcdb6
VZ
5695
5696fi
10f2d63a
VZ
5697
5698
5699 eval "$ac_cv_use_listctrl"
5700 if test "$no_cache" != 1; then
5701 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
5702 fi
5703
5704 if test "$wxUSE_LISTCTRL" = yes; then
698dcdb6 5705 echo "$ac_t""yes" 1>&6
10f2d63a 5706 else
698dcdb6 5707 echo "$ac_t""no" 1>&6
10f2d63a 5708 fi
698dcdb6 5709
10f2d63a 5710
698dcdb6 5711 echo $ac_n "checking for --enable-notebook""... $ac_c" 1>&6
f11bdd03 5712echo "configure:5713: checking for --enable-notebook" >&5
10f2d63a
VZ
5713 no_cache=0
5714 # Check whether --enable-notebook or --disable-notebook was given.
5715if test "${enable_notebook+set}" = set; then
5716 enableval="$enable_notebook"
698dcdb6 5717
10f2d63a
VZ
5718 if test "$enableval" = yes; then
5719 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
5720 else
5721 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
5722 fi
698dcdb6 5723
10f2d63a 5724else
698dcdb6 5725
10f2d63a
VZ
5726 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
5727 if test "x$LINE" != x ; then
5728 eval "DEFAULT_$LINE"
5729 else
5730 no_cache=1
5731 fi
5732
5733 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
698dcdb6
VZ
5734
5735fi
10f2d63a
VZ
5736
5737
5738 eval "$ac_cv_use_notebook"
5739 if test "$no_cache" != 1; then
5740 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
5741 fi
5742
5743 if test "$wxUSE_NOTEBOOK" = yes; then
698dcdb6 5744 echo "$ac_t""yes" 1>&6
10f2d63a 5745 else
698dcdb6 5746 echo "$ac_t""no" 1>&6
10f2d63a 5747 fi
698dcdb6 5748
10f2d63a 5749
698dcdb6 5750 echo $ac_n "checking for --enable-radiobox""... $ac_c" 1>&6
f11bdd03 5751echo "configure:5752: checking for --enable-radiobox" >&5
10f2d63a
VZ
5752 no_cache=0
5753 # Check whether --enable-radiobox or --disable-radiobox was given.
5754if test "${enable_radiobox+set}" = set; then
5755 enableval="$enable_radiobox"
698dcdb6 5756
10f2d63a
VZ
5757 if test "$enableval" = yes; then
5758 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
5759 else
5760 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
5761 fi
698dcdb6 5762
10f2d63a 5763else
698dcdb6 5764
10f2d63a
VZ
5765 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
5766 if test "x$LINE" != x ; then
5767 eval "DEFAULT_$LINE"
5768 else
5769 no_cache=1
5770 fi
5771
5772 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
698dcdb6
VZ
5773
5774fi
10f2d63a
VZ
5775
5776
5777 eval "$ac_cv_use_radiobox"
5778 if test "$no_cache" != 1; then
5779 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
5780 fi
5781
5782 if test "$wxUSE_RADIOBOX" = yes; then
698dcdb6 5783 echo "$ac_t""yes" 1>&6
10f2d63a 5784 else
698dcdb6 5785 echo "$ac_t""no" 1>&6
10f2d63a 5786 fi
698dcdb6 5787
10f2d63a 5788
698dcdb6 5789 echo $ac_n "checking for --enable-radiobtn""... $ac_c" 1>&6
f11bdd03 5790echo "configure:5791: checking for --enable-radiobtn" >&5
10f2d63a
VZ
5791 no_cache=0
5792 # Check whether --enable-radiobtn or --disable-radiobtn was given.
5793if test "${enable_radiobtn+set}" = set; then
5794 enableval="$enable_radiobtn"
698dcdb6 5795
10f2d63a
VZ
5796 if test "$enableval" = yes; then
5797 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
5798 else
5799 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
5800 fi
698dcdb6 5801
10f2d63a 5802else
698dcdb6 5803
10f2d63a
VZ
5804 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
5805 if test "x$LINE" != x ; then
5806 eval "DEFAULT_$LINE"
5807 else
5808 no_cache=1
5809 fi
5810
5811 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
698dcdb6
VZ
5812
5813fi
10f2d63a
VZ
5814
5815
5816 eval "$ac_cv_use_radiobtn"
5817 if test "$no_cache" != 1; then
5818 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
5819 fi
5820
5821 if test "$wxUSE_RADIOBTN" = yes; then
698dcdb6 5822 echo "$ac_t""yes" 1>&6
10f2d63a 5823 else
698dcdb6 5824 echo "$ac_t""no" 1>&6
10f2d63a 5825 fi
698dcdb6 5826
10f2d63a 5827
698dcdb6 5828 echo $ac_n "checking for --enable-sash""... $ac_c" 1>&6
f11bdd03 5829echo "configure:5830: checking for --enable-sash" >&5
10f2d63a
VZ
5830 no_cache=0
5831 # Check whether --enable-sash or --disable-sash was given.
5832if test "${enable_sash+set}" = set; then
5833 enableval="$enable_sash"
698dcdb6 5834
10f2d63a
VZ
5835 if test "$enableval" = yes; then
5836 ac_cv_use_sash='wxUSE_SASH=yes'
5837 else
5838 ac_cv_use_sash='wxUSE_SASH=no'
5839 fi
698dcdb6 5840
10f2d63a 5841else
698dcdb6 5842
10f2d63a
VZ
5843 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
5844 if test "x$LINE" != x ; then
5845 eval "DEFAULT_$LINE"
5846 else
5847 no_cache=1
5848 fi
5849
5850 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
698dcdb6
VZ
5851
5852fi
10f2d63a
VZ
5853
5854
5855 eval "$ac_cv_use_sash"
5856 if test "$no_cache" != 1; then
5857 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
5858 fi
5859
5860 if test "$wxUSE_SASH" = yes; then
698dcdb6 5861 echo "$ac_t""yes" 1>&6
10f2d63a 5862 else
698dcdb6 5863 echo "$ac_t""no" 1>&6
10f2d63a 5864 fi
698dcdb6 5865
10f2d63a 5866
698dcdb6 5867 echo $ac_n "checking for --enable-scrollbar""... $ac_c" 1>&6
f11bdd03 5868echo "configure:5869: checking for --enable-scrollbar" >&5
10f2d63a
VZ
5869 no_cache=0
5870 # Check whether --enable-scrollbar or --disable-scrollbar was given.
5871if test "${enable_scrollbar+set}" = set; then
5872 enableval="$enable_scrollbar"
698dcdb6 5873
10f2d63a
VZ
5874 if test "$enableval" = yes; then
5875 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
5876 else
5877 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
5878 fi
698dcdb6 5879
10f2d63a 5880else
698dcdb6 5881
10f2d63a
VZ
5882 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
5883 if test "x$LINE" != x ; then
5884 eval "DEFAULT_$LINE"
5885 else
5886 no_cache=1
5887 fi
5888
5889 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
698dcdb6
VZ
5890
5891fi
10f2d63a
VZ
5892
5893
5894 eval "$ac_cv_use_scrollbar"
5895 if test "$no_cache" != 1; then
5896 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
5897 fi
5898
5899 if test "$wxUSE_SCROLLBAR" = yes; then
698dcdb6 5900 echo "$ac_t""yes" 1>&6
10f2d63a 5901 else
698dcdb6 5902 echo "$ac_t""no" 1>&6
10f2d63a 5903 fi
698dcdb6 5904
10f2d63a 5905
698dcdb6 5906 echo $ac_n "checking for --enable-slider""... $ac_c" 1>&6
f11bdd03 5907echo "configure:5908: checking for --enable-slider" >&5
10f2d63a
VZ
5908 no_cache=0
5909 # Check whether --enable-slider or --disable-slider was given.
5910if test "${enable_slider+set}" = set; then
5911 enableval="$enable_slider"
698dcdb6 5912
10f2d63a
VZ
5913 if test "$enableval" = yes; then
5914 ac_cv_use_slider='wxUSE_SLIDER=yes'
5915 else
5916 ac_cv_use_slider='wxUSE_SLIDER=no'
5917 fi
698dcdb6 5918
10f2d63a 5919else
698dcdb6 5920
10f2d63a
VZ
5921 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
5922 if test "x$LINE" != x ; then
5923 eval "DEFAULT_$LINE"
5924 else
5925 no_cache=1
5926 fi
5927
5928 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
698dcdb6
VZ
5929
5930fi
10f2d63a
VZ
5931
5932
5933 eval "$ac_cv_use_slider"
5934 if test "$no_cache" != 1; then
5935 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
5936 fi
5937
5938 if test "$wxUSE_SLIDER" = yes; then
698dcdb6 5939 echo "$ac_t""yes" 1>&6
10f2d63a 5940 else
698dcdb6 5941 echo "$ac_t""no" 1>&6
10f2d63a 5942 fi
698dcdb6 5943
10f2d63a 5944
698dcdb6 5945 echo $ac_n "checking for --enable-spinbtn""... $ac_c" 1>&6
f11bdd03 5946echo "configure:5947: checking for --enable-spinbtn" >&5
10f2d63a
VZ
5947 no_cache=0
5948 # Check whether --enable-spinbtn or --disable-spinbtn was given.
5949if test "${enable_spinbtn+set}" = set; then
5950 enableval="$enable_spinbtn"
698dcdb6 5951
10f2d63a
VZ
5952 if test "$enableval" = yes; then
5953 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
5954 else
5955 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
5956 fi
698dcdb6 5957
10f2d63a 5958else
698dcdb6 5959
10f2d63a
VZ
5960 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
5961 if test "x$LINE" != x ; then
5962 eval "DEFAULT_$LINE"
5963 else
5964 no_cache=1
5965 fi
5966
5967 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
698dcdb6
VZ
5968
5969fi
10f2d63a
VZ
5970
5971
5972 eval "$ac_cv_use_spinbtn"
5973 if test "$no_cache" != 1; then
5974 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
5975 fi
5976
5977 if test "$wxUSE_SPINBTN" = yes; then
698dcdb6 5978 echo "$ac_t""yes" 1>&6
10f2d63a 5979 else
698dcdb6 5980 echo "$ac_t""no" 1>&6
10f2d63a 5981 fi
698dcdb6 5982
10f2d63a 5983
698dcdb6 5984 echo $ac_n "checking for --enable-spinctrl""... $ac_c" 1>&6
f11bdd03 5985echo "configure:5986: checking for --enable-spinctrl" >&5
56cfaa52
RR
5986 no_cache=0
5987 # Check whether --enable-spinctrl or --disable-spinctrl was given.
5988if test "${enable_spinctrl+set}" = set; then
5989 enableval="$enable_spinctrl"
698dcdb6 5990
56cfaa52
RR
5991 if test "$enableval" = yes; then
5992 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
5993 else
5994 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
5995 fi
698dcdb6 5996
56cfaa52 5997else
698dcdb6 5998
56cfaa52
RR
5999 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
6000 if test "x$LINE" != x ; then
6001 eval "DEFAULT_$LINE"
6002 else
6003 no_cache=1
6004 fi
6005
6006 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
698dcdb6
VZ
6007
6008fi
56cfaa52
RR
6009
6010
6011 eval "$ac_cv_use_spinctrl"
6012 if test "$no_cache" != 1; then
6013 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
6014 fi
6015
6016 if test "$wxUSE_SPINCTRL" = yes; then
698dcdb6 6017 echo "$ac_t""yes" 1>&6
56cfaa52 6018 else
698dcdb6 6019 echo "$ac_t""no" 1>&6
56cfaa52 6020 fi
698dcdb6 6021
56cfaa52 6022
698dcdb6 6023 echo $ac_n "checking for --enable-splitter""... $ac_c" 1>&6
f11bdd03 6024echo "configure:6025: checking for --enable-splitter" >&5
10f2d63a
VZ
6025 no_cache=0
6026 # Check whether --enable-splitter or --disable-splitter was given.
6027if test "${enable_splitter+set}" = set; then
6028 enableval="$enable_splitter"
698dcdb6 6029
10f2d63a
VZ
6030 if test "$enableval" = yes; then
6031 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
6032 else
6033 ac_cv_use_splitter='wxUSE_SPLITTER=no'
6034 fi
698dcdb6 6035
10f2d63a 6036else
698dcdb6 6037
10f2d63a
VZ
6038 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
6039 if test "x$LINE" != x ; then
6040 eval "DEFAULT_$LINE"
6041 else
6042 no_cache=1
6043 fi
6044
6045 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
698dcdb6
VZ
6046
6047fi
10f2d63a
VZ
6048
6049
6050 eval "$ac_cv_use_splitter"
6051 if test "$no_cache" != 1; then
6052 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
6053 fi
6054
6055 if test "$wxUSE_SPLITTER" = yes; then
698dcdb6 6056 echo "$ac_t""yes" 1>&6
10f2d63a 6057 else
698dcdb6 6058 echo "$ac_t""no" 1>&6
10f2d63a 6059 fi
698dcdb6 6060
10f2d63a 6061
698dcdb6 6062 echo $ac_n "checking for --enable-statbmp""... $ac_c" 1>&6
f11bdd03 6063echo "configure:6064: checking for --enable-statbmp" >&5
10f2d63a
VZ
6064 no_cache=0
6065 # Check whether --enable-statbmp or --disable-statbmp was given.
6066if test "${enable_statbmp+set}" = set; then
6067 enableval="$enable_statbmp"
698dcdb6 6068
10f2d63a
VZ
6069 if test "$enableval" = yes; then
6070 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
6071 else
6072 ac_cv_use_statbmp='wxUSE_STATBMP=no'
6073 fi
698dcdb6 6074
10f2d63a 6075else
698dcdb6 6076
10f2d63a
VZ
6077 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
6078 if test "x$LINE" != x ; then
6079 eval "DEFAULT_$LINE"
6080 else
6081 no_cache=1
6082 fi
6083
6084 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
698dcdb6
VZ
6085
6086fi
10f2d63a
VZ
6087
6088
6089 eval "$ac_cv_use_statbmp"
6090 if test "$no_cache" != 1; then
6091 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
6092 fi
6093
6094 if test "$wxUSE_STATBMP" = yes; then
698dcdb6 6095 echo "$ac_t""yes" 1>&6
10f2d63a 6096 else
698dcdb6 6097 echo "$ac_t""no" 1>&6
10f2d63a 6098 fi
698dcdb6 6099
10f2d63a 6100
698dcdb6 6101 echo $ac_n "checking for --enable-statbox""... $ac_c" 1>&6
f11bdd03 6102echo "configure:6103: checking for --enable-statbox" >&5
10f2d63a
VZ
6103 no_cache=0
6104 # Check whether --enable-statbox or --disable-statbox was given.
6105if test "${enable_statbox+set}" = set; then
6106 enableval="$enable_statbox"
698dcdb6 6107
10f2d63a
VZ
6108 if test "$enableval" = yes; then
6109 ac_cv_use_statbox='wxUSE_STATBOX=yes'
6110 else
6111 ac_cv_use_statbox='wxUSE_STATBOX=no'
6112 fi
698dcdb6 6113
10f2d63a 6114else
698dcdb6 6115
10f2d63a
VZ
6116 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
6117 if test "x$LINE" != x ; then
6118 eval "DEFAULT_$LINE"
6119 else
6120 no_cache=1
6121 fi
6122
6123 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
698dcdb6
VZ
6124
6125fi
10f2d63a
VZ
6126
6127
6128 eval "$ac_cv_use_statbox"
6129 if test "$no_cache" != 1; then
6130 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
6131 fi
6132
6133 if test "$wxUSE_STATBOX" = yes; then
698dcdb6 6134 echo "$ac_t""yes" 1>&6
10f2d63a 6135 else
698dcdb6 6136 echo "$ac_t""no" 1>&6
10f2d63a 6137 fi
698dcdb6 6138
10f2d63a 6139
698dcdb6 6140 echo $ac_n "checking for --enable-statline""... $ac_c" 1>&6
f11bdd03 6141echo "configure:6142: checking for --enable-statline" >&5
10f2d63a
VZ
6142 no_cache=0
6143 # Check whether --enable-statline or --disable-statline was given.
6144if test "${enable_statline+set}" = set; then
6145 enableval="$enable_statline"
698dcdb6 6146
10f2d63a
VZ
6147 if test "$enableval" = yes; then
6148 ac_cv_use_statline='wxUSE_STATLINE=yes'
6149 else
6150 ac_cv_use_statline='wxUSE_STATLINE=no'
6151 fi
698dcdb6 6152
10f2d63a 6153else
698dcdb6 6154
10f2d63a
VZ
6155 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
6156 if test "x$LINE" != x ; then
6157 eval "DEFAULT_$LINE"
6158 else
6159 no_cache=1
6160 fi
6161
6162 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
698dcdb6
VZ
6163
6164fi
10f2d63a
VZ
6165
6166
6167 eval "$ac_cv_use_statline"
6168 if test "$no_cache" != 1; then
6169 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
6170 fi
6171
6172 if test "$wxUSE_STATLINE" = yes; then
698dcdb6 6173 echo "$ac_t""yes" 1>&6
10f2d63a 6174 else
698dcdb6 6175 echo "$ac_t""no" 1>&6
10f2d63a 6176 fi
698dcdb6 6177
10f2d63a 6178
1e6feb95 6179 echo $ac_n "checking for --enable-stattext""... $ac_c" 1>&6
f11bdd03 6180echo "configure:6181: checking for --enable-stattext" >&5
1e6feb95
VZ
6181 no_cache=0
6182 # Check whether --enable-stattext or --disable-stattext was given.
6183if test "${enable_stattext+set}" = set; then
6184 enableval="$enable_stattext"
6185
6186 if test "$enableval" = yes; then
6187 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
6188 else
6189 ac_cv_use_stattext='wxUSE_STATTEXT=no'
6190 fi
6191
6192else
6193
6194 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
6195 if test "x$LINE" != x ; then
6196 eval "DEFAULT_$LINE"
6197 else
6198 no_cache=1
6199 fi
6200
6201 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
6202
6203fi
6204
6205
6206 eval "$ac_cv_use_stattext"
6207 if test "$no_cache" != 1; then
6208 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
6209 fi
6210
6211 if test "$wxUSE_STATTEXT" = yes; then
6212 echo "$ac_t""yes" 1>&6
6213 else
6214 echo "$ac_t""no" 1>&6
6215 fi
6216
6217
698dcdb6 6218 echo $ac_n "checking for --enable-statusbar""... $ac_c" 1>&6
f11bdd03 6219echo "configure:6220: checking for --enable-statusbar" >&5
10f2d63a
VZ
6220 no_cache=0
6221 # Check whether --enable-statusbar or --disable-statusbar was given.
6222if test "${enable_statusbar+set}" = set; then
6223 enableval="$enable_statusbar"
698dcdb6 6224
10f2d63a
VZ
6225 if test "$enableval" = yes; then
6226 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
6227 else
6228 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
6229 fi
698dcdb6 6230
10f2d63a 6231else
698dcdb6 6232
10f2d63a
VZ
6233 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
6234 if test "x$LINE" != x ; then
6235 eval "DEFAULT_$LINE"
6236 else
6237 no_cache=1
6238 fi
6239
6240 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
698dcdb6
VZ
6241
6242fi
10f2d63a
VZ
6243
6244
6245 eval "$ac_cv_use_statusbar"
6246 if test "$no_cache" != 1; then
6247 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
6248 fi
6249
6250 if test "$wxUSE_STATUSBAR" = yes; then
698dcdb6 6251 echo "$ac_t""yes" 1>&6
10f2d63a 6252 else
698dcdb6 6253 echo "$ac_t""no" 1>&6
10f2d63a 6254 fi
698dcdb6 6255
10f2d63a 6256
698dcdb6 6257 echo $ac_n "checking for --enable-tabdialog""... $ac_c" 1>&6
f11bdd03 6258echo "configure:6259: checking for --enable-tabdialog" >&5
10f2d63a
VZ
6259 no_cache=0
6260 # Check whether --enable-tabdialog or --disable-tabdialog was given.
6261if test "${enable_tabdialog+set}" = set; then
6262 enableval="$enable_tabdialog"
698dcdb6 6263
10f2d63a
VZ
6264 if test "$enableval" = yes; then
6265 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
6266 else
6267 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
6268 fi
698dcdb6 6269
10f2d63a 6270else
698dcdb6 6271
10f2d63a
VZ
6272 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
6273 if test "x$LINE" != x ; then
6274 eval "DEFAULT_$LINE"
6275 else
6276 no_cache=1
6277 fi
6278
6279 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
698dcdb6
VZ
6280
6281fi
10f2d63a
VZ
6282
6283
6284 eval "$ac_cv_use_tabdialog"
6285 if test "$no_cache" != 1; then
6286 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
6287 fi
6288
6289 if test "$wxUSE_TABDIALOG" = yes; then
698dcdb6 6290 echo "$ac_t""yes" 1>&6
10f2d63a 6291 else
698dcdb6 6292 echo "$ac_t""no" 1>&6
10f2d63a 6293 fi
698dcdb6 6294
10f2d63a 6295
1e6feb95 6296 echo $ac_n "checking for --enable-textctrl""... $ac_c" 1>&6
f11bdd03 6297echo "configure:6298: checking for --enable-textctrl" >&5
1e6feb95
VZ
6298 no_cache=0
6299 # Check whether --enable-textctrl or --disable-textctrl was given.
6300if test "${enable_textctrl+set}" = set; then
6301 enableval="$enable_textctrl"
6302
6303 if test "$enableval" = yes; then
6304 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
6305 else
6306 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
6307 fi
6308
6309else
6310
6311 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
6312 if test "x$LINE" != x ; then
6313 eval "DEFAULT_$LINE"
6314 else
6315 no_cache=1
6316 fi
6317
6318 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
6319
6320fi
6321
6322
6323 eval "$ac_cv_use_textctrl"
6324 if test "$no_cache" != 1; then
6325 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
6326 fi
6327
6328 if test "$wxUSE_TEXTCTRL" = yes; then
6329 echo "$ac_t""yes" 1>&6
6330 else
6331 echo "$ac_t""no" 1>&6
6332 fi
6333
6334
698dcdb6 6335 echo $ac_n "checking for --enable-togglebtn""... $ac_c" 1>&6
f11bdd03 6336echo "configure:6337: checking for --enable-togglebtn" >&5
1db8dc4a
VZ
6337 no_cache=0
6338 # Check whether --enable-togglebtn or --disable-togglebtn was given.
6339if test "${enable_togglebtn+set}" = set; then
6340 enableval="$enable_togglebtn"
698dcdb6 6341
1db8dc4a
VZ
6342 if test "$enableval" = yes; then
6343 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
6344 else
6345 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
6346 fi
698dcdb6 6347
1db8dc4a 6348else
698dcdb6 6349
1db8dc4a
VZ
6350 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
6351 if test "x$LINE" != x ; then
6352 eval "DEFAULT_$LINE"
6353 else
6354 no_cache=1
6355 fi
6356
6357 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
698dcdb6
VZ
6358
6359fi
1db8dc4a
VZ
6360
6361
6362 eval "$ac_cv_use_togglebtn"
6363 if test "$no_cache" != 1; then
6364 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
6365 fi
6366
6367 if test "$wxUSE_TOGGLEBTN" = yes; then
698dcdb6 6368 echo "$ac_t""yes" 1>&6
1db8dc4a 6369 else
698dcdb6 6370 echo "$ac_t""no" 1>&6
1db8dc4a 6371 fi
698dcdb6 6372
1db8dc4a 6373
698dcdb6 6374 echo $ac_n "checking for --enable-toolbar""... $ac_c" 1>&6
f11bdd03 6375echo "configure:6376: checking for --enable-toolbar" >&5
10f2d63a
VZ
6376 no_cache=0
6377 # Check whether --enable-toolbar or --disable-toolbar was given.
6378if test "${enable_toolbar+set}" = set; then
6379 enableval="$enable_toolbar"
698dcdb6 6380
10f2d63a
VZ
6381 if test "$enableval" = yes; then
6382 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
6383 else
6384 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
6385 fi
698dcdb6 6386
10f2d63a 6387else
698dcdb6 6388
10f2d63a
VZ
6389 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
6390 if test "x$LINE" != x ; then
6391 eval "DEFAULT_$LINE"
6392 else
6393 no_cache=1
6394 fi
6395
6396 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
698dcdb6
VZ
6397
6398fi
10f2d63a
VZ
6399
6400
6401 eval "$ac_cv_use_toolbar"
6402 if test "$no_cache" != 1; then
6403 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
6404 fi
6405
6406 if test "$wxUSE_TOOLBAR" = yes; then
698dcdb6 6407 echo "$ac_t""yes" 1>&6
10f2d63a 6408 else
698dcdb6 6409 echo "$ac_t""no" 1>&6
10f2d63a 6410 fi
698dcdb6 6411
10f2d63a 6412
698dcdb6 6413 echo $ac_n "checking for --enable-tbarnative""... $ac_c" 1>&6
f11bdd03 6414echo "configure:6415: checking for --enable-tbarnative" >&5
360d6699
VZ
6415 no_cache=0
6416 # Check whether --enable-tbarnative or --disable-tbarnative was given.
6417if test "${enable_tbarnative+set}" = set; then
6418 enableval="$enable_tbarnative"
698dcdb6 6419
360d6699
VZ
6420 if test "$enableval" = yes; then
6421 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
6422 else
6423 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
6424 fi
698dcdb6 6425
360d6699 6426else
698dcdb6 6427
360d6699
VZ
6428 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
6429 if test "x$LINE" != x ; then
6430 eval "DEFAULT_$LINE"
6431 else
6432 no_cache=1
6433 fi
6434
6435 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
698dcdb6
VZ
6436
6437fi
360d6699
VZ
6438
6439
6440 eval "$ac_cv_use_tbarnative"
6441 if test "$no_cache" != 1; then
6442 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
6443 fi
6444
6445 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
698dcdb6 6446 echo "$ac_t""yes" 1>&6
360d6699 6447 else
698dcdb6 6448 echo "$ac_t""no" 1>&6
360d6699 6449 fi
698dcdb6 6450
360d6699 6451
698dcdb6 6452 echo $ac_n "checking for --enable-tbarsmpl""... $ac_c" 1>&6
f11bdd03 6453echo "configure:6454: checking for --enable-tbarsmpl" >&5
360d6699
VZ
6454 no_cache=0
6455 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
6456if test "${enable_tbarsmpl+set}" = set; then
6457 enableval="$enable_tbarsmpl"
698dcdb6 6458
360d6699
VZ
6459 if test "$enableval" = yes; then
6460 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
6461 else
6462 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
6463 fi
698dcdb6 6464
360d6699 6465else
698dcdb6 6466
360d6699
VZ
6467 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
6468 if test "x$LINE" != x ; then
6469 eval "DEFAULT_$LINE"
6470 else
6471 no_cache=1
6472 fi
6473
6474 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
698dcdb6
VZ
6475
6476fi
360d6699
VZ
6477
6478
6479 eval "$ac_cv_use_tbarsmpl"
6480 if test "$no_cache" != 1; then
6481 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
6482 fi
6483
6484 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
698dcdb6 6485 echo "$ac_t""yes" 1>&6
360d6699 6486 else
698dcdb6 6487 echo "$ac_t""no" 1>&6
360d6699 6488 fi
698dcdb6 6489
360d6699 6490
698dcdb6 6491 echo $ac_n "checking for --enable-treectrl""... $ac_c" 1>&6
f11bdd03 6492echo "configure:6493: checking for --enable-treectrl" >&5
10f2d63a
VZ
6493 no_cache=0
6494 # Check whether --enable-treectrl or --disable-treectrl was given.
6495if test "${enable_treectrl+set}" = set; then
6496 enableval="$enable_treectrl"
698dcdb6 6497
10f2d63a
VZ
6498 if test "$enableval" = yes; then
6499 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
6500 else
6501 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
6502 fi
698dcdb6 6503
10f2d63a 6504else
698dcdb6 6505
10f2d63a
VZ
6506 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
6507 if test "x$LINE" != x ; then
6508 eval "DEFAULT_$LINE"
6509 else
6510 no_cache=1
6511 fi
6512
6513 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
698dcdb6
VZ
6514
6515fi
10f2d63a
VZ
6516
6517
1e6feb95
VZ
6518 eval "$ac_cv_use_treectrl"
6519 if test "$no_cache" != 1; then
6520 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
6521 fi
6522
6523 if test "$wxUSE_TREECTRL" = yes; then
6524 echo "$ac_t""yes" 1>&6
6525 else
6526 echo "$ac_t""no" 1>&6
6527 fi
6528
6529
9f41d601 6530 echo $ac_n "checking for --enable-popupwin""... $ac_c" 1>&6
f11bdd03 6531echo "configure:6532: checking for --enable-popupwin" >&5
9f41d601
RR
6532 no_cache=0
6533 # Check whether --enable-popupwin or --disable-popupwin was given.
6534if test "${enable_popupwin+set}" = set; then
6535 enableval="$enable_popupwin"
6536
6537 if test "$enableval" = yes; then
6538 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
6539 else
6540 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
6541 fi
6542
6543else
6544
6545 LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
6546 if test "x$LINE" != x ; then
6547 eval "DEFAULT_$LINE"
6548 else
6549 no_cache=1
6550 fi
6551
6552 ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
6553
6554fi
6555
6556
6557 eval "$ac_cv_use_popupwin"
6558 if test "$no_cache" != 1; then
6559 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
6560 fi
6561
6562 if test "$wxUSE_POPUPWIN" = yes; then
6563 echo "$ac_t""yes" 1>&6
6564 else
6565 echo "$ac_t""no" 1>&6
6566 fi
6567
6568
1e6feb95
VZ
6569
6570
6571 echo $ac_n "checking for --enable-commondlg""... $ac_c" 1>&6
f11bdd03 6572echo "configure:6573: checking for --enable-commondlg" >&5
1e6feb95
VZ
6573 no_cache=0
6574 # Check whether --enable-commondlg or --disable-commondlg was given.
6575if test "${enable_commondlg+set}" = set; then
6576 enableval="$enable_commondlg"
6577
6578 if test "$enableval" = yes; then
6579 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
6580 else
6581 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
6582 fi
6583
6584else
6585
6586 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
6587 if test "x$LINE" != x ; then
6588 eval "DEFAULT_$LINE"
6589 else
6590 no_cache=1
6591 fi
6592
6593 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
6594
6595fi
6596
6597
6598 eval "$ac_cv_use_commondlg"
6599 if test "$no_cache" != 1; then
6600 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
6601 fi
6602
6603 if test "$wxUSE_COMMONDLGS" = yes; then
6604 echo "$ac_t""yes" 1>&6
6605 else
6606 echo "$ac_t""no" 1>&6
6607 fi
6608
6609
6610 echo $ac_n "checking for --enable-choicedlg""... $ac_c" 1>&6
f11bdd03 6611echo "configure:6612: checking for --enable-choicedlg" >&5
1e6feb95
VZ
6612 no_cache=0
6613 # Check whether --enable-choicedlg or --disable-choicedlg was given.
6614if test "${enable_choicedlg+set}" = set; then
6615 enableval="$enable_choicedlg"
6616
6617 if test "$enableval" = yes; then
6618 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
6619 else
6620 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
6621 fi
6622
6623else
6624
6625 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
6626 if test "x$LINE" != x ; then
6627 eval "DEFAULT_$LINE"
6628 else
6629 no_cache=1
6630 fi
6631
6632 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
6633
6634fi
6635
6636
6637 eval "$ac_cv_use_choicedlg"
6638 if test "$no_cache" != 1; then
6639 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
6640 fi
6641
6642 if test "$wxUSE_CHOICEDLG" = yes; then
6643 echo "$ac_t""yes" 1>&6
6644 else
6645 echo "$ac_t""no" 1>&6
6646 fi
6647
6648
6649 echo $ac_n "checking for --enable-coldlg""... $ac_c" 1>&6
f11bdd03 6650echo "configure:6651: checking for --enable-coldlg" >&5
1e6feb95
VZ
6651 no_cache=0
6652 # Check whether --enable-coldlg or --disable-coldlg was given.
6653if test "${enable_coldlg+set}" = set; then
6654 enableval="$enable_coldlg"
6655
6656 if test "$enableval" = yes; then
6657 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
6658 else
6659 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
6660 fi
6661
6662else
6663
6664 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
6665 if test "x$LINE" != x ; then
6666 eval "DEFAULT_$LINE"
6667 else
6668 no_cache=1
6669 fi
6670
6671 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
6672
6673fi
6674
6675
6676 eval "$ac_cv_use_coldlg"
6677 if test "$no_cache" != 1; then
6678 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
6679 fi
6680
6681 if test "$wxUSE_COLOURDLG" = yes; then
6682 echo "$ac_t""yes" 1>&6
6683 else
6684 echo "$ac_t""no" 1>&6
6685 fi
6686
6687
6688 echo $ac_n "checking for --enable-filedlg""... $ac_c" 1>&6
f11bdd03 6689echo "configure:6690: checking for --enable-filedlg" >&5
1e6feb95
VZ
6690 no_cache=0
6691 # Check whether --enable-filedlg or --disable-filedlg was given.
6692if test "${enable_filedlg+set}" = set; then
6693 enableval="$enable_filedlg"
6694
6695 if test "$enableval" = yes; then
6696 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
6697 else
6698 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
6699 fi
6700
6701else
6702
6703 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
6704 if test "x$LINE" != x ; then
6705 eval "DEFAULT_$LINE"
6706 else
6707 no_cache=1
6708 fi
6709
6710 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
6711
6712fi
6713
6714
6715 eval "$ac_cv_use_filedlg"
6716 if test "$no_cache" != 1; then
6717 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
6718 fi
6719
6720 if test "$wxUSE_FILEDLG" = yes; then
6721 echo "$ac_t""yes" 1>&6
6722 else
6723 echo "$ac_t""no" 1>&6
6724 fi
6725
6726
6727 echo $ac_n "checking for --enable-fontdlg""... $ac_c" 1>&6
f11bdd03 6728echo "configure:6729: checking for --enable-fontdlg" >&5
1e6feb95
VZ
6729 no_cache=0
6730 # Check whether --enable-fontdlg or --disable-fontdlg was given.
6731if test "${enable_fontdlg+set}" = set; then
6732 enableval="$enable_fontdlg"
6733
6734 if test "$enableval" = yes; then
6735 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
6736 else
6737 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
6738 fi
6739
6740else
6741
6742 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
6743 if test "x$LINE" != x ; then
6744 eval "DEFAULT_$LINE"
6745 else
6746 no_cache=1
6747 fi
6748
6749 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
6750
6751fi
6752
6753
6754 eval "$ac_cv_use_fontdlg"
6755 if test "$no_cache" != 1; then
6756 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
6757 fi
6758
6759 if test "$wxUSE_FONTDLG" = yes; then
6760 echo "$ac_t""yes" 1>&6
6761 else
6762 echo "$ac_t""no" 1>&6
6763 fi
6764
6765
6766 echo $ac_n "checking for --enable-dirdlg""... $ac_c" 1>&6
f11bdd03 6767echo "configure:6768: checking for --enable-dirdlg" >&5
1e6feb95
VZ
6768 no_cache=0
6769 # Check whether --enable-dirdlg or --disable-dirdlg was given.
6770if test "${enable_dirdlg+set}" = set; then
6771 enableval="$enable_dirdlg"
6772
6773 if test "$enableval" = yes; then
6774 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
6775 else
6776 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
6777 fi
6778
6779else
6780
6781 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
6782 if test "x$LINE" != x ; then
6783 eval "DEFAULT_$LINE"
6784 else
6785 no_cache=1
6786 fi
6787
6788 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
6789
6790fi
6791
6792
6793 eval "$ac_cv_use_dirdlg"
10f2d63a 6794 if test "$no_cache" != 1; then
1e6feb95 6795 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
6796 fi
6797
1e6feb95 6798 if test "$wxUSE_DIRDLG" = yes; then
698dcdb6 6799 echo "$ac_t""yes" 1>&6
10f2d63a 6800 else
698dcdb6 6801 echo "$ac_t""no" 1>&6
10f2d63a 6802 fi
698dcdb6
VZ
6803
6804
1e6feb95 6805 echo $ac_n "checking for --enable-msgdlg""... $ac_c" 1>&6
f11bdd03 6806echo "configure:6807: checking for --enable-msgdlg" >&5
10f2d63a 6807 no_cache=0
1e6feb95
VZ
6808 # Check whether --enable-msgdlg or --disable-msgdlg was given.
6809if test "${enable_msgdlg+set}" = set; then
6810 enableval="$enable_msgdlg"
698dcdb6 6811
10f2d63a 6812 if test "$enableval" = yes; then
1e6feb95 6813 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
10f2d63a 6814 else
1e6feb95 6815 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
10f2d63a 6816 fi
698dcdb6 6817
10f2d63a 6818else
698dcdb6 6819
1e6feb95 6820 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
10f2d63a
VZ
6821 if test "x$LINE" != x ; then
6822 eval "DEFAULT_$LINE"
6823 else
6824 no_cache=1
6825 fi
6826
1e6feb95 6827 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
698dcdb6
VZ
6828
6829fi
10f2d63a
VZ
6830
6831
1e6feb95 6832 eval "$ac_cv_use_msgdlg"
10f2d63a 6833 if test "$no_cache" != 1; then
1e6feb95 6834 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
6835 fi
6836
1e6feb95 6837 if test "$wxUSE_MSGDLG" = yes; then
698dcdb6 6838 echo "$ac_t""yes" 1>&6
10f2d63a 6839 else
698dcdb6 6840 echo "$ac_t""no" 1>&6
10f2d63a 6841 fi
698dcdb6 6842
10f2d63a 6843
1e6feb95 6844 echo $ac_n "checking for --enable-numberdlg""... $ac_c" 1>&6
f11bdd03 6845echo "configure:6846: checking for --enable-numberdlg" >&5
10f2d63a 6846 no_cache=0
1e6feb95
VZ
6847 # Check whether --enable-numberdlg or --disable-numberdlg was given.
6848if test "${enable_numberdlg+set}" = set; then
6849 enableval="$enable_numberdlg"
698dcdb6 6850
10f2d63a 6851 if test "$enableval" = yes; then
1e6feb95 6852 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
10f2d63a 6853 else
1e6feb95 6854 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
10f2d63a 6855 fi
698dcdb6 6856
10f2d63a 6857else
698dcdb6 6858
1e6feb95 6859 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
10f2d63a
VZ
6860 if test "x$LINE" != x ; then
6861 eval "DEFAULT_$LINE"
6862 else
6863 no_cache=1
6864 fi
6865
1e6feb95 6866 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
698dcdb6
VZ
6867
6868fi
10f2d63a
VZ
6869
6870
1e6feb95 6871 eval "$ac_cv_use_numberdlg"
10f2d63a 6872 if test "$no_cache" != 1; then
1e6feb95 6873 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
6874 fi
6875
1e6feb95 6876 if test "$wxUSE_NUMBERDLG" = yes; then
698dcdb6 6877 echo "$ac_t""yes" 1>&6
10f2d63a 6878 else
698dcdb6 6879 echo "$ac_t""no" 1>&6
10f2d63a 6880 fi
698dcdb6 6881
10f2d63a 6882
698dcdb6 6883 echo $ac_n "checking for --enable-textdlg""... $ac_c" 1>&6
f11bdd03 6884echo "configure:6885: checking for --enable-textdlg" >&5
10f2d63a
VZ
6885 no_cache=0
6886 # Check whether --enable-textdlg or --disable-textdlg was given.
6887if test "${enable_textdlg+set}" = set; then
6888 enableval="$enable_textdlg"
698dcdb6 6889
10f2d63a
VZ
6890 if test "$enableval" = yes; then
6891 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
6892 else
6893 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
6894 fi
698dcdb6 6895
10f2d63a 6896else
698dcdb6 6897
10f2d63a
VZ
6898 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
6899 if test "x$LINE" != x ; then
6900 eval "DEFAULT_$LINE"
6901 else
6902 no_cache=1
6903 fi
6904
6905 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
698dcdb6
VZ
6906
6907fi
10f2d63a
VZ
6908
6909
6910 eval "$ac_cv_use_textdlg"
6911 if test "$no_cache" != 1; then
6912 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
6913 fi
6914
6915 if test "$wxUSE_TEXTDLG" = yes; then
698dcdb6 6916 echo "$ac_t""yes" 1>&6
10f2d63a 6917 else
698dcdb6 6918 echo "$ac_t""no" 1>&6
10f2d63a 6919 fi
698dcdb6 6920
10f2d63a 6921
698dcdb6 6922 echo $ac_n "checking for --enable-tipdlg""... $ac_c" 1>&6
f11bdd03 6923echo "configure:6924: checking for --enable-tipdlg" >&5
10f2d63a
VZ
6924 no_cache=0
6925 # Check whether --enable-tipdlg or --disable-tipdlg was given.
6926if test "${enable_tipdlg+set}" = set; then
6927 enableval="$enable_tipdlg"
698dcdb6 6928
10f2d63a
VZ
6929 if test "$enableval" = yes; then
6930 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
6931 else
6932 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
6933 fi
698dcdb6 6934
10f2d63a 6935else
698dcdb6 6936
10f2d63a
VZ
6937 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
6938 if test "x$LINE" != x ; then
6939 eval "DEFAULT_$LINE"
6940 else
6941 no_cache=1
6942 fi
6943
6944 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
698dcdb6
VZ
6945
6946fi
10f2d63a
VZ
6947
6948
6949 eval "$ac_cv_use_tipdlg"
6950 if test "$no_cache" != 1; then
6951 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
6952 fi
6953
6954 if test "$wxUSE_STARTUP_TIPS" = yes; then
698dcdb6 6955 echo "$ac_t""yes" 1>&6
10f2d63a 6956 else
698dcdb6 6957 echo "$ac_t""no" 1>&6
10f2d63a 6958 fi
698dcdb6 6959
10f2d63a 6960
698dcdb6 6961 echo $ac_n "checking for --enable-progressdlg""... $ac_c" 1>&6
f11bdd03 6962echo "configure:6963: checking for --enable-progressdlg" >&5
10f2d63a
VZ
6963 no_cache=0
6964 # Check whether --enable-progressdlg or --disable-progressdlg was given.
6965if test "${enable_progressdlg+set}" = set; then
6966 enableval="$enable_progressdlg"
698dcdb6 6967
10f2d63a
VZ
6968 if test "$enableval" = yes; then
6969 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
6970 else
6971 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
6972 fi
698dcdb6 6973
10f2d63a 6974else
698dcdb6 6975
10f2d63a
VZ
6976 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
6977 if test "x$LINE" != x ; then
6978 eval "DEFAULT_$LINE"
6979 else
6980 no_cache=1
6981 fi
6982
6983 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
698dcdb6
VZ
6984
6985fi
10f2d63a
VZ
6986
6987
6988 eval "$ac_cv_use_progressdlg"
6989 if test "$no_cache" != 1; then
6990 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
6991 fi
6992
6993 if test "$wxUSE_PROGRESSDLG" = yes; then
698dcdb6 6994 echo "$ac_t""yes" 1>&6
10f2d63a 6995 else
698dcdb6 6996 echo "$ac_t""no" 1>&6
10f2d63a 6997 fi
698dcdb6 6998
10f2d63a 6999
b1f5d087 7000 echo $ac_n "checking for --enable-wizarddlg""... $ac_c" 1>&6
f11bdd03 7001echo "configure:7002: checking for --enable-wizarddlg" >&5
b1f5d087
VZ
7002 no_cache=0
7003 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
7004if test "${enable_wizarddlg+set}" = set; then
7005 enableval="$enable_wizarddlg"
7006
7007 if test "$enableval" = yes; then
7008 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
7009 else
7010 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
7011 fi
7012
7013else
7014
7015 LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
7016 if test "x$LINE" != x ; then
7017 eval "DEFAULT_$LINE"
7018 else
7019 no_cache=1
7020 fi
7021
7022 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
7023
7024fi
7025
7026
7027 eval "$ac_cv_use_wizarddlg"
7028 if test "$no_cache" != 1; then
7029 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
7030 fi
7031
7032 if test "$wxUSE_WIZARDDLG" = yes; then
7033 echo "$ac_t""yes" 1>&6
7034 else
7035 echo "$ac_t""no" 1>&6
7036 fi
7037
7038
7039
7040
1e6feb95 7041 echo $ac_n "checking for --enable-menus""... $ac_c" 1>&6
f11bdd03 7042echo "configure:7043: checking for --enable-menus" >&5
1e6feb95
VZ
7043 no_cache=0
7044 # Check whether --enable-menus or --disable-menus was given.
7045if test "${enable_menus+set}" = set; then
7046 enableval="$enable_menus"
7047
7048 if test "$enableval" = yes; then
7049 ac_cv_use_menus='wxUSE_MENUS=yes'
7050 else
7051 ac_cv_use_menus='wxUSE_MENUS=no'
7052 fi
7053
7054else
7055
7056 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
7057 if test "x$LINE" != x ; then
7058 eval "DEFAULT_$LINE"
7059 else
7060 no_cache=1
7061 fi
7062
7063 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
7064
7065fi
7066
7067
7068 eval "$ac_cv_use_menus"
7069 if test "$no_cache" != 1; then
7070 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
7071 fi
7072
7073 if test "$wxUSE_MENUS" = yes; then
7074 echo "$ac_t""yes" 1>&6
7075 else
7076 echo "$ac_t""no" 1>&6
7077 fi
7078
7079
698dcdb6 7080 echo $ac_n "checking for --enable-miniframe""... $ac_c" 1>&6
f11bdd03 7081echo "configure:7082: checking for --enable-miniframe" >&5
10f2d63a
VZ
7082 no_cache=0
7083 # Check whether --enable-miniframe or --disable-miniframe was given.
7084if test "${enable_miniframe+set}" = set; then
7085 enableval="$enable_miniframe"
698dcdb6 7086
10f2d63a
VZ
7087 if test "$enableval" = yes; then
7088 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
7089 else
7090 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
7091 fi
698dcdb6 7092
10f2d63a 7093else
698dcdb6 7094
10f2d63a
VZ
7095 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
7096 if test "x$LINE" != x ; then
7097 eval "DEFAULT_$LINE"
7098 else
7099 no_cache=1
7100 fi
7101
7102 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
698dcdb6
VZ
7103
7104fi
10f2d63a
VZ
7105
7106
7107 eval "$ac_cv_use_miniframe"
7108 if test "$no_cache" != 1; then
7109 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
7110 fi
7111
7112 if test "$wxUSE_MINIFRAME" = yes; then
698dcdb6 7113 echo "$ac_t""yes" 1>&6
10f2d63a 7114 else
698dcdb6 7115 echo "$ac_t""no" 1>&6
10f2d63a 7116 fi
698dcdb6 7117
10f2d63a 7118
698dcdb6 7119 echo $ac_n "checking for --enable-tooltips""... $ac_c" 1>&6
f11bdd03 7120echo "configure:7121: checking for --enable-tooltips" >&5
10f2d63a
VZ
7121 no_cache=0
7122 # Check whether --enable-tooltips or --disable-tooltips was given.
7123if test "${enable_tooltips+set}" = set; then
7124 enableval="$enable_tooltips"
698dcdb6 7125
10f2d63a
VZ
7126 if test "$enableval" = yes; then
7127 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
7128 else
7129 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
7130 fi
698dcdb6 7131
10f2d63a 7132else
698dcdb6 7133
10f2d63a
VZ
7134 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
7135 if test "x$LINE" != x ; then
7136 eval "DEFAULT_$LINE"
7137 else
7138 no_cache=1
7139 fi
7140
7141 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
698dcdb6
VZ
7142
7143fi
10f2d63a
VZ
7144
7145
7146 eval "$ac_cv_use_tooltips"
7147 if test "$no_cache" != 1; then
7148 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
7149 fi
7150
7151 if test "$wxUSE_TOOLTIPS" = yes; then
698dcdb6 7152 echo "$ac_t""yes" 1>&6
10f2d63a 7153 else
698dcdb6 7154 echo "$ac_t""no" 1>&6
10f2d63a 7155 fi
698dcdb6 7156
10f2d63a 7157
698dcdb6 7158 echo $ac_n "checking for --enable-splines""... $ac_c" 1>&6
f11bdd03 7159echo "configure:7160: checking for --enable-splines" >&5
10f2d63a
VZ
7160 no_cache=0
7161 # Check whether --enable-splines or --disable-splines was given.
7162if test "${enable_splines+set}" = set; then
7163 enableval="$enable_splines"
698dcdb6 7164
10f2d63a
VZ
7165 if test "$enableval" = yes; then
7166 ac_cv_use_splines='wxUSE_SPLINES=yes'
7167 else
7168 ac_cv_use_splines='wxUSE_SPLINES=no'
7169 fi
698dcdb6 7170
10f2d63a 7171else
698dcdb6 7172
10f2d63a
VZ
7173 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
7174 if test "x$LINE" != x ; then
7175 eval "DEFAULT_$LINE"
7176 else
7177 no_cache=1
7178 fi
7179
7180 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
698dcdb6
VZ
7181
7182fi
10f2d63a
VZ
7183
7184
7185 eval "$ac_cv_use_splines"
7186 if test "$no_cache" != 1; then
7187 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
7188 fi
7189
7190 if test "$wxUSE_SPLINES" = yes; then
698dcdb6 7191 echo "$ac_t""yes" 1>&6
10f2d63a 7192 else
698dcdb6 7193 echo "$ac_t""no" 1>&6
10f2d63a 7194 fi
698dcdb6 7195
10f2d63a 7196
698dcdb6 7197 echo $ac_n "checking for --enable-validators""... $ac_c" 1>&6
f11bdd03 7198echo "configure:7199: checking for --enable-validators" >&5
10f2d63a
VZ
7199 no_cache=0
7200 # Check whether --enable-validators or --disable-validators was given.
7201if test "${enable_validators+set}" = set; then
7202 enableval="$enable_validators"
698dcdb6 7203
10f2d63a
VZ
7204 if test "$enableval" = yes; then
7205 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
7206 else
7207 ac_cv_use_validators='wxUSE_VALIDATORS=no'
7208 fi
698dcdb6 7209
10f2d63a 7210else
698dcdb6 7211
10f2d63a
VZ
7212 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
7213 if test "x$LINE" != x ; then
7214 eval "DEFAULT_$LINE"
7215 else
7216 no_cache=1
7217 fi
7218
7219 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
698dcdb6
VZ
7220
7221fi
10f2d63a
VZ
7222
7223
7224 eval "$ac_cv_use_validators"
7225 if test "$no_cache" != 1; then
7226 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
7227 fi
7228
7229 if test "$wxUSE_VALIDATORS" = yes; then
698dcdb6 7230 echo "$ac_t""yes" 1>&6
10f2d63a 7231 else
698dcdb6 7232 echo "$ac_t""no" 1>&6
10f2d63a 7233 fi
698dcdb6 7234
10f2d63a 7235
698dcdb6 7236 echo $ac_n "checking for --enable-busyinfo""... $ac_c" 1>&6
f11bdd03 7237echo "configure:7238: checking for --enable-busyinfo" >&5
10f2d63a
VZ
7238 no_cache=0
7239 # Check whether --enable-busyinfo or --disable-busyinfo was given.
7240if test "${enable_busyinfo+set}" = set; then
7241 enableval="$enable_busyinfo"
698dcdb6 7242
10f2d63a
VZ
7243 if test "$enableval" = yes; then
7244 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
7245 else
7246 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
7247 fi
698dcdb6 7248
10f2d63a 7249else
698dcdb6 7250
10f2d63a
VZ
7251 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
7252 if test "x$LINE" != x ; then
7253 eval "DEFAULT_$LINE"
7254 else
7255 no_cache=1
7256 fi
7257
7258 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
698dcdb6
VZ
7259
7260fi
10f2d63a
VZ
7261
7262
7263 eval "$ac_cv_use_busyinfo"
7264 if test "$no_cache" != 1; then
7265 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
7266 fi
7267
7268 if test "$wxUSE_BUSYINFO" = yes; then
698dcdb6 7269 echo "$ac_t""yes" 1>&6
10f2d63a 7270 else
698dcdb6 7271 echo "$ac_t""no" 1>&6
10f2d63a 7272 fi
698dcdb6 7273
10f2d63a 7274
698dcdb6 7275 echo $ac_n "checking for --enable-joystick""... $ac_c" 1>&6
f11bdd03 7276echo "configure:7277: checking for --enable-joystick" >&5
f6bcfd97
BP
7277 no_cache=0
7278 # Check whether --enable-joystick or --disable-joystick was given.
7279if test "${enable_joystick+set}" = set; then
7280 enableval="$enable_joystick"
698dcdb6 7281
f6bcfd97
BP
7282 if test "$enableval" = yes; then
7283 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
7284 else
7285 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
7286 fi
698dcdb6 7287
f6bcfd97 7288else
698dcdb6 7289
f6bcfd97
BP
7290 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
7291 if test "x$LINE" != x ; then
7292 eval "DEFAULT_$LINE"
7293 else
7294 no_cache=1
7295 fi
7296
7297 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
698dcdb6
VZ
7298
7299fi
f6bcfd97
BP
7300
7301
7302 eval "$ac_cv_use_joystick"
7303 if test "$no_cache" != 1; then
7304 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
7305 fi
7306
7307 if test "$wxUSE_JOYSTICK" = yes; then
698dcdb6 7308 echo "$ac_t""yes" 1>&6
f6bcfd97 7309 else
698dcdb6 7310 echo "$ac_t""no" 1>&6
f6bcfd97 7311 fi
698dcdb6
VZ
7312
7313
1e6feb95 7314 echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6
f11bdd03 7315echo "configure:7316: checking for --enable-metafile" >&5
1e6feb95
VZ
7316 no_cache=0
7317 # Check whether --enable-metafile or --disable-metafile was given.
7318if test "${enable_metafile+set}" = set; then
7319 enableval="$enable_metafile"
7320
7321 if test "$enableval" = yes; then
7322 ac_cv_use_metafile='wxUSE_METAFILE=yes'
7323 else
7324 ac_cv_use_metafile='wxUSE_METAFILE=no'
7325 fi
7326
7327else
7328
7329 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
7330 if test "x$LINE" != x ; then
7331 eval "DEFAULT_$LINE"
7332 else
7333 no_cache=1
7334 fi
7335
7336 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
7337
7338fi
7339
7340
7341 eval "$ac_cv_use_metafile"
7342 if test "$no_cache" != 1; then
7343 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
7344 fi
7345
7346 if test "$wxUSE_METAFILE" = yes; then
7347 echo "$ac_t""yes" 1>&6
7348 else
7349 echo "$ac_t""no" 1>&6
7350 fi
7351
7352
24fd6d87 7353 echo $ac_n "checking for --enable-dragimage""... $ac_c" 1>&6
f11bdd03 7354echo "configure:7355: checking for --enable-dragimage" >&5
24fd6d87
VZ
7355 no_cache=0
7356 # Check whether --enable-dragimage or --disable-dragimage was given.
7357if test "${enable_dragimage+set}" = set; then
7358 enableval="$enable_dragimage"
7359
7360 if test "$enableval" = yes; then
7361 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
7362 else
7363 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
7364 fi
7365
7366else
7367
7368 LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
7369 if test "x$LINE" != x ; then
7370 eval "DEFAULT_$LINE"
7371 else
7372 no_cache=1
7373 fi
7374
7375 ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
7376
7377fi
7378
7379
7380 eval "$ac_cv_use_dragimage"
7381 if test "$no_cache" != 1; then
7382 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
7383 fi
7384
7385 if test "$wxUSE_DRAGIMAGE" = yes; then
7386 echo "$ac_t""yes" 1>&6
7387 else
7388 echo "$ac_t""no" 1>&6
7389 fi
7390
7391
10f2d63a 7392
698dcdb6
VZ
7393
7394 echo $ac_n "checking for --enable-image""... $ac_c" 1>&6
f11bdd03 7395echo "configure:7396: checking for --enable-image" >&5
0046ff7c
VS
7396 no_cache=0
7397 # Check whether --enable-image or --disable-image was given.
7398if test "${enable_image+set}" = set; then
7399 enableval="$enable_image"
698dcdb6 7400
0046ff7c
VS
7401 if test "$enableval" = yes; then
7402 ac_cv_use_image='wxUSE_IMAGE=yes'
7403 else
7404 ac_cv_use_image='wxUSE_IMAGE=no'
7405 fi
698dcdb6 7406
0046ff7c 7407else
698dcdb6 7408
0046ff7c
VS
7409 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
7410 if test "x$LINE" != x ; then
7411 eval "DEFAULT_$LINE"
7412 else
7413 no_cache=1
7414 fi
7415
7416 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
698dcdb6
VZ
7417
7418fi
0046ff7c
VS
7419
7420
7421 eval "$ac_cv_use_image"
7422 if test "$no_cache" != 1; then
7423 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
7424 fi
7425
7426 if test "$wxUSE_IMAGE" = yes; then
698dcdb6 7427 echo "$ac_t""yes" 1>&6
0046ff7c 7428 else
698dcdb6 7429 echo "$ac_t""no" 1>&6
0046ff7c 7430 fi
698dcdb6 7431
0046ff7c 7432
698dcdb6 7433 echo $ac_n "checking for --enable-gif""... $ac_c" 1>&6
f11bdd03 7434echo "configure:7435: checking for --enable-gif" >&5
10f2d63a
VZ
7435 no_cache=0
7436 # Check whether --enable-gif or --disable-gif was given.
7437if test "${enable_gif+set}" = set; then
7438 enableval="$enable_gif"
698dcdb6 7439
10f2d63a
VZ
7440 if test "$enableval" = yes; then
7441 ac_cv_use_gif='wxUSE_GIF=yes'
7442 else
7443 ac_cv_use_gif='wxUSE_GIF=no'
7444 fi
698dcdb6 7445
10f2d63a 7446else
698dcdb6 7447
10f2d63a
VZ
7448 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
7449 if test "x$LINE" != x ; then
7450 eval "DEFAULT_$LINE"
7451 else
7452 no_cache=1
7453 fi
7454
7455 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
698dcdb6
VZ
7456
7457fi
10f2d63a
VZ
7458
7459
7460 eval "$ac_cv_use_gif"
7461 if test "$no_cache" != 1; then
7462 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
7463 fi
7464
7465 if test "$wxUSE_GIF" = yes; then
698dcdb6 7466 echo "$ac_t""yes" 1>&6
10f2d63a 7467 else
698dcdb6 7468 echo "$ac_t""no" 1>&6
10f2d63a 7469 fi
698dcdb6 7470
10f2d63a 7471
698dcdb6 7472 echo $ac_n "checking for --enable-pcx""... $ac_c" 1>&6
f11bdd03 7473echo "configure:7474: checking for --enable-pcx" >&5
10f2d63a
VZ
7474 no_cache=0
7475 # Check whether --enable-pcx or --disable-pcx was given.
7476if test "${enable_pcx+set}" = set; then
7477 enableval="$enable_pcx"
698dcdb6 7478
10f2d63a
VZ
7479 if test "$enableval" = yes; then
7480 ac_cv_use_pcx='wxUSE_PCX=yes'
7481 else
7482 ac_cv_use_pcx='wxUSE_PCX=no'
7483 fi
698dcdb6 7484
10f2d63a 7485else
698dcdb6 7486
10f2d63a
VZ
7487 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
7488 if test "x$LINE" != x ; then
7489 eval "DEFAULT_$LINE"
7490 else
7491 no_cache=1
7492 fi
7493
7494 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
698dcdb6
VZ
7495
7496fi
10f2d63a
VZ
7497
7498
7499 eval "$ac_cv_use_pcx"
7500 if test "$no_cache" != 1; then
7501 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
7502 fi
7503
7504 if test "$wxUSE_PCX" = yes; then
698dcdb6 7505 echo "$ac_t""yes" 1>&6
10f2d63a 7506 else
698dcdb6 7507 echo "$ac_t""no" 1>&6
10f2d63a 7508 fi
698dcdb6 7509
10f2d63a 7510
698dcdb6 7511 echo $ac_n "checking for --enable-pnm""... $ac_c" 1>&6
f11bdd03 7512echo "configure:7513: checking for --enable-pnm" >&5
10f2d63a
VZ
7513 no_cache=0
7514 # Check whether --enable-pnm or --disable-pnm was given.
7515if test "${enable_pnm+set}" = set; then
7516 enableval="$enable_pnm"
698dcdb6 7517
10f2d63a
VZ
7518 if test "$enableval" = yes; then
7519 ac_cv_use_pnm='wxUSE_PNM=yes'
7520 else
7521 ac_cv_use_pnm='wxUSE_PNM=no'
7522 fi
698dcdb6 7523
10f2d63a 7524else
698dcdb6 7525
10f2d63a
VZ
7526 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
7527 if test "x$LINE" != x ; then
7528 eval "DEFAULT_$LINE"
7529 else
7530 no_cache=1
7531 fi
7532
7533 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
698dcdb6
VZ
7534
7535fi
10f2d63a
VZ
7536
7537
7538 eval "$ac_cv_use_pnm"
7539 if test "$no_cache" != 1; then
7540 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
7541 fi
7542
7543 if test "$wxUSE_PNM" = yes; then
698dcdb6 7544 echo "$ac_t""yes" 1>&6
10f2d63a 7545 else
698dcdb6 7546 echo "$ac_t""no" 1>&6
10f2d63a 7547 fi
698dcdb6 7548
10f2d63a 7549
698dcdb6 7550 echo $ac_n "checking for --enable-pnm""... $ac_c" 1>&6
f11bdd03 7551echo "configure:7552: checking for --enable-pnm" >&5
0046ff7c
VS
7552 no_cache=0
7553 # Check whether --enable-pnm or --disable-pnm was given.
7554if test "${enable_pnm+set}" = set; then
7555 enableval="$enable_pnm"
698dcdb6 7556
0046ff7c
VS
7557 if test "$enableval" = yes; then
7558 ac_cv_use_pnm='wxUSE_XPM=yes'
7559 else
7560 ac_cv_use_pnm='wxUSE_XPM=no'
7561 fi
698dcdb6 7562
0046ff7c 7563else
698dcdb6 7564
0046ff7c
VS
7565 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
7566 if test "x$LINE" != x ; then
7567 eval "DEFAULT_$LINE"
7568 else
7569 no_cache=1
7570 fi
7571
7572 ac_cv_use_pnm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
698dcdb6
VZ
7573
7574fi
0046ff7c
VS
7575
7576
7577 eval "$ac_cv_use_pnm"
7578 if test "$no_cache" != 1; then
7579 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
7580 fi
7581
7582 if test "$wxUSE_XPM" = yes; then
698dcdb6 7583 echo "$ac_t""yes" 1>&6
0046ff7c 7584 else
698dcdb6 7585 echo "$ac_t""no" 1>&6
0046ff7c 7586 fi
698dcdb6 7587
0046ff7c 7588
b12915c1
VZ
7589fi
7590
698dcdb6 7591
10f2d63a
VZ
7592 echo "saving argument cache $wx_arg_cache_file"
7593 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
698dcdb6 7594
10f2d63a 7595
698dcdb6
VZ
7596
7597echo $ac_n "checking for toolkit""... $ac_c" 1>&6
f11bdd03 7598echo "configure:7599: checking for toolkit" >&5
10f2d63a
VZ
7599
7600if test "$wxUSE_GUI" = "yes"; then
7601
b12915c1 7602if test "$USE_BEOS" = 1; then
698dcdb6 7603 { echo "configure: error: BeOS GUI is not supported yet, use --disable-gui" 1>&2; exit 1; }
b12915c1
VZ
7604fi
7605
10f2d63a
VZ
7606if test "$TOOLKIT_GIVEN" = 1; then
7607 for toolkit in `echo $ALL_TOOLKITS`; do
7608 var=wxUSE_$toolkit
7609 eval "value=\$${var}"
7610 eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
7611 done
7612else
7613 for toolkit in `echo $ALL_TOOLKITS`; do
7614 if test "$has_toolkit_in_cache" != 1; then
7615 var=DEFAULT_DEFAULT_wxUSE_$toolkit
7616 else
7617 var=DEFAULT_wxUSE_$toolkit
7618 fi
7619 eval "wxUSE_$toolkit=\$${var}"
7620 done
7621fi
7622
1e6feb95 7623NUM_TOOLKITS=`expr ${wxUSE_GTK:-0} + ${wxUSE_MOTIF:-0} + ${wxUSE_MAC:-0} + ${wxUSE_WINE:-0} + ${wxUSE_MINGW:-0} + ${wxUSE_CYGWIN:-0} + ${wxUSE_MGL:-0}`
cf27ef00 7624
ec14dd32
VZ
7625case "${host}" in
7626 *-pc-os2_emx )
7627 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
7628 # PATH_IFS is autodetected by OS/2's configure (usually ';')
7629 LEX_STEM="lexyy"
7630 ;;
7631 *)
7632 PATH_IFS=':'
7633 LEX_STEM="lex.yy"
7634 ;;
7635esac
10f2d63a
VZ
7636
7637case "$NUM_TOOLKITS" in
7638 1)
7639 ;;
7640 0)
698dcdb6 7641 { echo "configure: error: Please specify a toolkit - cannot determine the default for ${host}" 1>&2; exit 1; }
10f2d63a
VZ
7642 ;;
7643 *)
698dcdb6 7644 { echo "configure: error: Please specify at most one toolkit (may be some are cached?)" 1>&2; exit 1; }
10f2d63a
VZ
7645esac
7646
7647for toolkit in `echo $ALL_TOOLKITS`; do
7648 var=wxUSE_$toolkit
7649 eval "value=\$${var}"
7650 if test "x$value" != x; then
7651 cache_var=CACHE_$toolkit
7652 eval "cache=\$${cache_var}"
7653 if test "$cache" = 1; then
7654 echo "$var=$value" >> ${wx_arg_cache_file}
7655 fi
7656 if test "$value" = 1; then
8168de4c
VZ
7657 toolkit_echo=`echo $toolkit | tr [A-Z] [a-z]`
7658 echo "$ac_t""$toolkit_echo" 1>&6
10f2d63a
VZ
7659 fi
7660 fi
7661done
7662
7663else
cf27ef00 7664 PATH_IFS=':'
698dcdb6 7665 echo "$ac_t""base only" 1>&6
10f2d63a
VZ
7666fi
7667
698dcdb6
VZ
7668
7669cat > confcache <<\EOF
10f2d63a
VZ
7670# This file is a shell script that caches the results of configure
7671# tests run on this system so they can be shared between configure
698dcdb6
VZ
7672# scripts and configure runs. It is not useful on other systems.
7673# If it contains results you don't want to keep, you may remove or edit it.
10f2d63a 7674#
698dcdb6
VZ
7675# By default, configure uses ./config.cache as the cache file,
7676# creating it if it does not exist already. You can give configure
7677# the --cache-file=FILE option to use a different cache file; that is
7678# what configure does when it calls configure scripts in
7679# subdirectories, so they share the cache.
7680# Giving --cache-file=/dev/null disables caching, for debugging configure.
7681# config.status only pays attention to the cache file if you give it the
7682# --recheck option to rerun configure.
10f2d63a 7683#
698dcdb6 7684EOF
10f2d63a
VZ
7685# The following way of writing the cache mishandles newlines in values,
7686# but we know of no workaround that is simple, portable, and efficient.
7687# So, don't put newlines in cache variables' values.
7688# Ultrix sh set writes to stderr and can't be redirected directly,
7689# and sets the high bit in the cache file unless we assign to the vars.
698dcdb6
VZ
7690(set) 2>&1 |
7691 case `(ac_space=' '; set | grep ac_space) 2>&1` in
7692 *ac_space=\ *)
7693 # `set' does not quote correctly, so add quotes (double-quote substitution
7694 # turns \\\\ into \\, and sed turns \\ into \).
7695 sed -n \
7696 -e "s/'/'\\\\''/g" \
7697 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
7698 ;;
7699 *)
7700 # `set' quotes correctly as required by POSIX, so do not add quotes.
7701 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
7702 ;;
7703 esac >> confcache
7704if cmp -s $cache_file confcache; then
7705 :
7706else
10f2d63a 7707 if test -w $cache_file; then
698dcdb6
VZ
7708 echo "updating cache $cache_file"
7709 cat confcache > $cache_file
10f2d63a
VZ
7710 else
7711 echo "not updating unwritable cache $cache_file"
7712 fi
7713fi
7714rm -f confcache
7715
698dcdb6 7716
e59890c3 7717if test "$build" != "$host" ; then
10f2d63a
VZ
7718 CC=$host_alias-gcc
7719 CXX=$host_alias-c++
7720 AR=$host_alias-ar
7721 RANLIB=$host_alias-ranlib
7722 DLLTOOL=$host_alias-dlltool
32832908 7723 RESCOMP=$host_alias-windres
10f2d63a
VZ
7724 LD=$host_alias-ld
7725 NM=$host_alias-nm
7726 STRIP=$host_alias-strip
10f2d63a
VZ
7727fi
7728
698dcdb6 7729# Extract the first word of "gcc", so it can be a program name with args.
1e487827 7730set dummy gcc; ac_word=$2
698dcdb6 7731echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
f11bdd03 7732echo "configure:7733: checking for $ac_word" >&5
698dcdb6
VZ
7733if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
7734 echo $ac_n "(cached) $ac_c" 1>&6
6232543b
VS
7735else
7736 if test -n "$CC"; then
7737 ac_cv_prog_CC="$CC" # Let the user override the test.
10f2d63a 7738else
698dcdb6
VZ
7739 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7740 ac_dummy="$PATH"
7741 for ac_dir in $ac_dummy; do
7742 test -z "$ac_dir" && ac_dir=.
7743 if test -f $ac_dir/$ac_word; then
7744 ac_cv_prog_CC="gcc"
7745 break
7746 fi
7747 done
7748 IFS="$ac_save_ifs"
10f2d63a 7749fi
6232543b 7750fi
698dcdb6 7751CC="$ac_cv_prog_CC"
6232543b 7752if test -n "$CC"; then
698dcdb6 7753 echo "$ac_t""$CC" 1>&6
1e487827 7754else
698dcdb6 7755 echo "$ac_t""no" 1>&6
1e487827 7756fi
6232543b 7757
1e487827
VS
7758if test -z "$CC"; then
7759 # Extract the first word of "cc", so it can be a program name with args.
7760set dummy cc; ac_word=$2
698dcdb6 7761echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
f11bdd03 7762echo "configure:7763: checking for $ac_word" >&5
698dcdb6
VZ
7763if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
7764 echo $ac_n "(cached) $ac_c" 1>&6
1e487827
VS
7765else
7766 if test -n "$CC"; then
7767 ac_cv_prog_CC="$CC" # Let the user override the test.
7768else
698dcdb6 7769 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1e487827 7770 ac_prog_rejected=no
698dcdb6
VZ
7771 ac_dummy="$PATH"
7772 for ac_dir in $ac_dummy; do
7773 test -z "$ac_dir" && ac_dir=.
7774 if test -f $ac_dir/$ac_word; then
7775 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
7776 ac_prog_rejected=yes
7777 continue
7778 fi
7779 ac_cv_prog_CC="cc"
7780 break
7781 fi
7782 done
7783 IFS="$ac_save_ifs"
1e487827
VS
7784if test $ac_prog_rejected = yes; then
7785 # We found a bogon in the path, so make sure we never use it.
7786 set dummy $ac_cv_prog_CC
7787 shift
698dcdb6 7788 if test $# -gt 0; then
1e487827
VS
7789 # We chose a different compiler from the bogus one.
7790 # However, it has the same basename, so the bogon will be chosen
7791 # first if we set CC to just the basename; use the full file name.
7792 shift
698dcdb6 7793 set dummy "$ac_dir/$ac_word" "$@"
1e487827
VS
7794 shift
7795 ac_cv_prog_CC="$@"
703e0a69 7796 fi
1e487827
VS
7797fi
7798fi
7799fi
698dcdb6 7800CC="$ac_cv_prog_CC"
1e487827 7801if test -n "$CC"; then
698dcdb6 7802 echo "$ac_t""$CC" 1>&6
703e0a69 7803else
698dcdb6 7804 echo "$ac_t""no" 1>&6
703e0a69 7805fi
1e487827 7806
698dcdb6
VZ
7807 if test -z "$CC"; then
7808 case "`uname -s`" in
7809 *win32* | *WIN32*)
7810 # Extract the first word of "cl", so it can be a program name with args.
7811set dummy cl; ac_word=$2
7812echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
f11bdd03 7813echo "configure:7814: checking for $ac_word" >&5
698dcdb6
VZ
7814if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
7815 echo $ac_n "(cached) $ac_c" 1>&6
1e487827
VS
7816else
7817 if test -n "$CC"; then
7818 ac_cv_prog_CC="$CC" # Let the user override the test.
703e0a69 7819else
698dcdb6
VZ
7820 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7821 ac_dummy="$PATH"
7822 for ac_dir in $ac_dummy; do
7823 test -z "$ac_dir" && ac_dir=.
7824 if test -f $ac_dir/$ac_word; then
7825 ac_cv_prog_CC="cl"
7826 break
7827 fi
7828 done
7829 IFS="$ac_save_ifs"
703e0a69 7830fi
1e487827 7831fi
698dcdb6 7832CC="$ac_cv_prog_CC"
1e487827 7833if test -n "$CC"; then
698dcdb6 7834 echo "$ac_t""$CC" 1>&6
1e487827 7835else
698dcdb6 7836 echo "$ac_t""no" 1>&6
1e487827 7837fi
698dcdb6
VZ
7838 ;;
7839 esac
7840 fi
7841 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1e487827
VS
7842fi
7843
698dcdb6 7844echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
f11bdd03 7845echo "configure:7846: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1e487827 7846
698dcdb6
VZ
7847ac_ext=c
7848# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7849ac_cpp='$CPP $CPPFLAGS'
7850ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7851ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7852cross_compiling=$ac_cv_prog_cc_cross
6232543b 7853
698dcdb6 7854cat > conftest.$ac_ext << EOF
1e487827 7855
f11bdd03 7856#line 7857 "configure"
1e487827
VS
7857#include "confdefs.h"
7858
698dcdb6
VZ
7859main(){return(0);}
7860EOF
f11bdd03 7861if { (eval echo configure:7862: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
7862 ac_cv_prog_cc_works=yes
7863 # If we can't run a trivial program, we are probably using a cross compiler.
7864 if (./conftest; exit) 2>/dev/null; then
7865 ac_cv_prog_cc_cross=no
7866 else
7867 ac_cv_prog_cc_cross=yes
7868 fi
7869else
7870 echo "configure: failed program was:" >&5
7871 cat conftest.$ac_ext >&5
7872 ac_cv_prog_cc_works=no
7873fi
7874rm -fr conftest*
7875ac_ext=c
7876# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7877ac_cpp='$CPP $CPPFLAGS'
7878ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7879ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7880cross_compiling=$ac_cv_prog_cc_cross
7881
7882echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
7883if test $ac_cv_prog_cc_works = no; then
7884 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
7885fi
7886echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
f11bdd03 7887echo "configure:7888: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
698dcdb6
VZ
7888echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
7889cross_compiling=$ac_cv_prog_cc_cross
7890
7891echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
f11bdd03 7892echo "configure:7893: checking whether we are using GNU C" >&5
698dcdb6
VZ
7893if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
7894 echo $ac_n "(cached) $ac_c" 1>&6
7895else
7896 cat > conftest.c <<EOF
7897#ifdef __GNUC__
7898 yes;
1e487827 7899#endif
698dcdb6 7900EOF
f11bdd03 7901if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:7902: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
698dcdb6
VZ
7902 ac_cv_prog_gcc=yes
7903else
7904 ac_cv_prog_gcc=no
7905fi
7906fi
1e487827 7907
698dcdb6 7908echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1e487827 7909
698dcdb6
VZ
7910if test $ac_cv_prog_gcc = yes; then
7911 GCC=yes
7912else
7913 GCC=
7914fi
1e487827 7915
698dcdb6
VZ
7916ac_test_CFLAGS="${CFLAGS+set}"
7917ac_save_CFLAGS="$CFLAGS"
7918CFLAGS=
7919echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
f11bdd03 7920echo "configure:7921: checking whether ${CC-cc} accepts -g" >&5
698dcdb6
VZ
7921if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
7922 echo $ac_n "(cached) $ac_c" 1>&6
7923else
7924 echo 'void f(){}' > conftest.c
7925if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
10f2d63a
VZ
7926 ac_cv_prog_cc_g=yes
7927else
698dcdb6 7928 ac_cv_prog_cc_g=no
10f2d63a 7929fi
698dcdb6
VZ
7930rm -f conftest*
7931
10f2d63a 7932fi
698dcdb6
VZ
7933
7934echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
10f2d63a 7935if test "$ac_test_CFLAGS" = set; then
698dcdb6 7936 CFLAGS="$ac_save_CFLAGS"
10f2d63a
VZ
7937elif test $ac_cv_prog_cc_g = yes; then
7938 if test "$GCC" = yes; then
7939 CFLAGS="-g -O2"
7940 else
7941 CFLAGS="-g"
7942 fi
7943else
7944 if test "$GCC" = yes; then
7945 CFLAGS="-O2"
7946 else
7947 CFLAGS=
7948 fi
7949fi
7950
7951
7952CFLAGS=`echo "$CFLAGS" | sed 's/-g//g'`
7953
698dcdb6 7954echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
f11bdd03 7955echo "configure:7956: checking how to run the C preprocessor" >&5
10f2d63a
VZ
7956# On Suns, sometimes $CPP names a directory.
7957if test -n "$CPP" && test -d "$CPP"; then
7958 CPP=
7959fi
7960if test -z "$CPP"; then
698dcdb6
VZ
7961if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
7962 echo $ac_n "(cached) $ac_c" 1>&6
7963else
7964 # This must be in double quotes, not single quotes, because CPP may get
7965 # substituted into the Makefile and "${CC-cc}" will confuse make.
7966 CPP="${CC-cc} -E"
10f2d63a 7967 # On the NeXT, cc -E runs the code through the compiler's parser,
698dcdb6
VZ
7968 # not just through cpp.
7969 cat > conftest.$ac_ext <<EOF
f11bdd03 7970#line 7971 "configure"
10f2d63a
VZ
7971#include "confdefs.h"
7972#include <assert.h>
698dcdb6
VZ
7973Syntax Error
7974EOF
7975ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
f11bdd03 7976{ (eval echo configure:7977: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
7977ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7978if test -z "$ac_err"; then
10f2d63a
VZ
7979 :
7980else
698dcdb6
VZ
7981 echo "$ac_err" >&5
7982 echo "configure: failed program was:" >&5
10f2d63a 7983 cat conftest.$ac_ext >&5
698dcdb6
VZ
7984 rm -rf conftest*
7985 CPP="${CC-cc} -E -traditional-cpp"
7986 cat > conftest.$ac_ext <<EOF
f11bdd03 7987#line 7988 "configure"
10f2d63a 7988#include "confdefs.h"
698dcdb6
VZ
7989#include <assert.h>
7990Syntax Error
7991EOF
7992ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
f11bdd03 7993{ (eval echo configure:7994: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
7994ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7995if test -z "$ac_err"; then
7996 :
10f2d63a 7997else
698dcdb6
VZ
7998 echo "$ac_err" >&5
7999 echo "configure: failed program was:" >&5
10f2d63a 8000 cat conftest.$ac_ext >&5
698dcdb6
VZ
8001 rm -rf conftest*
8002 CPP="${CC-cc} -nologo -E"
8003 cat > conftest.$ac_ext <<EOF
f11bdd03 8004#line 8005 "configure"
10f2d63a
VZ
8005#include "confdefs.h"
8006#include <assert.h>
698dcdb6
VZ
8007Syntax Error
8008EOF
8009ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
f11bdd03 8010{ (eval echo configure:8011: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
8011ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8012if test -z "$ac_err"; then
10f2d63a
VZ
8013 :
8014else
698dcdb6
VZ
8015 echo "$ac_err" >&5
8016 echo "configure: failed program was:" >&5
10f2d63a 8017 cat conftest.$ac_ext >&5
698dcdb6
VZ
8018 rm -rf conftest*
8019 CPP=/lib/cpp
10f2d63a 8020fi
698dcdb6 8021rm -f conftest*
10f2d63a 8022fi
698dcdb6 8023rm -f conftest*
703e0a69 8024fi
698dcdb6
VZ
8025rm -f conftest*
8026 ac_cv_prog_CPP="$CPP"
8027fi
8028 CPP="$ac_cv_prog_CPP"
10f2d63a 8029else
698dcdb6 8030 ac_cv_prog_CPP="$CPP"
10f2d63a 8031fi
698dcdb6 8032echo "$ac_t""$CPP" 1>&6
10f2d63a
VZ
8033
8034
698dcdb6
VZ
8035if test $ac_cv_prog_gcc = yes; then
8036 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
f11bdd03 8037echo "configure:8038: checking whether ${CC-cc} needs -traditional" >&5
698dcdb6
VZ
8038if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
8039 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
8040else
8041 ac_pattern="Autoconf.*'x'"
698dcdb6 8042 cat > conftest.$ac_ext <<EOF
f11bdd03 8043#line 8044 "configure"
10f2d63a
VZ
8044#include "confdefs.h"
8045#include <sgtty.h>
8046Autoconf TIOCGETP
698dcdb6 8047EOF
10f2d63a
VZ
8048if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8049 egrep "$ac_pattern" >/dev/null 2>&1; then
698dcdb6 8050 rm -rf conftest*
10f2d63a
VZ
8051 ac_cv_prog_gcc_traditional=yes
8052else
698dcdb6 8053 rm -rf conftest*
10f2d63a
VZ
8054 ac_cv_prog_gcc_traditional=no
8055fi
8056rm -f conftest*
8057
698dcdb6 8058
10f2d63a 8059 if test $ac_cv_prog_gcc_traditional = no; then
698dcdb6 8060 cat > conftest.$ac_ext <<EOF
f11bdd03 8061#line 8062 "configure"
10f2d63a
VZ
8062#include "confdefs.h"
8063#include <termio.h>
8064Autoconf TCGETA
698dcdb6 8065EOF
10f2d63a
VZ
8066if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8067 egrep "$ac_pattern" >/dev/null 2>&1; then
698dcdb6 8068 rm -rf conftest*
10f2d63a
VZ
8069 ac_cv_prog_gcc_traditional=yes
8070fi
8071rm -f conftest*
8072
8073 fi
8074fi
698dcdb6
VZ
8075
8076echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
10f2d63a
VZ
8077 if test $ac_cv_prog_gcc_traditional = yes; then
8078 CC="$CC -traditional"
8079 fi
8080fi
8081
703e0a69 8082
698dcdb6
VZ
8083
8084ac_ext=C
8085# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1e487827 8086ac_cpp='$CXXCPP $CPPFLAGS'
698dcdb6
VZ
8087ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8088ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8089cross_compiling=$ac_cv_prog_cxx_cross
8090
8091
8092for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
8093do
8094# Extract the first word of "$ac_prog", so it can be a program name with args.
8095set dummy $ac_prog; ac_word=$2
8096echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
f11bdd03 8097echo "configure:8098: checking for $ac_word" >&5
698dcdb6
VZ
8098if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
8099 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
8100else
8101 if test -n "$CXX"; then
8102 ac_cv_prog_CXX="$CXX" # Let the user override the test.
8103else
698dcdb6
VZ
8104 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8105 ac_dummy="$PATH"
8106 for ac_dir in $ac_dummy; do
8107 test -z "$ac_dir" && ac_dir=.
8108 if test -f $ac_dir/$ac_word; then
8109 ac_cv_prog_CXX="$ac_prog"
8110 break
8111 fi
8112 done
8113 IFS="$ac_save_ifs"
10f2d63a
VZ
8114fi
8115fi
698dcdb6 8116CXX="$ac_cv_prog_CXX"
10f2d63a 8117if test -n "$CXX"; then
698dcdb6 8118 echo "$ac_t""$CXX" 1>&6
10f2d63a 8119else
698dcdb6 8120 echo "$ac_t""no" 1>&6
10f2d63a
VZ
8121fi
8122
698dcdb6 8123test -n "$CXX" && break
10f2d63a 8124done
698dcdb6 8125test -n "$CXX" || CXX="gcc"
10f2d63a
VZ
8126
8127
698dcdb6 8128echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
f11bdd03 8129echo "configure:8130: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
10f2d63a 8130
698dcdb6
VZ
8131ac_ext=C
8132# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8133ac_cpp='$CXXCPP $CPPFLAGS'
8134ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8135ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8136cross_compiling=$ac_cv_prog_cxx_cross
703e0a69 8137
698dcdb6
VZ
8138cat > conftest.$ac_ext << EOF
8139
f11bdd03 8140#line 8141 "configure"
10f2d63a
VZ
8141#include "confdefs.h"
8142
698dcdb6
VZ
8143int main(){return(0);}
8144EOF
f11bdd03 8145if { (eval echo configure:8146: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
8146 ac_cv_prog_cxx_works=yes
8147 # If we can't run a trivial program, we are probably using a cross compiler.
8148 if (./conftest; exit) 2>/dev/null; then
8149 ac_cv_prog_cxx_cross=no
8150 else
8151 ac_cv_prog_cxx_cross=yes
8152 fi
8153else
8154 echo "configure: failed program was:" >&5
8155 cat conftest.$ac_ext >&5
8156 ac_cv_prog_cxx_works=no
8157fi
8158rm -fr conftest*
8159ac_ext=C
8160# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8161ac_cpp='$CXXCPP $CPPFLAGS'
8162ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8163ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8164cross_compiling=$ac_cv_prog_cxx_cross
8165
8166echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
8167if test $ac_cv_prog_cxx_works = no; then
8168 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
8169fi
8170echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
f11bdd03 8171echo "configure:8172: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
698dcdb6
VZ
8172echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
8173cross_compiling=$ac_cv_prog_cxx_cross
8174
8175echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
f11bdd03 8176echo "configure:8177: checking whether we are using GNU C++" >&5
698dcdb6
VZ
8177if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
8178 echo $ac_n "(cached) $ac_c" 1>&6
8179else
8180 cat > conftest.C <<EOF
8181#ifdef __GNUC__
8182 yes;
10f2d63a 8183#endif
698dcdb6 8184EOF
f11bdd03 8185if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:8186: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
698dcdb6
VZ
8186 ac_cv_prog_gxx=yes
8187else
8188 ac_cv_prog_gxx=no
8189fi
8190fi
10f2d63a 8191
698dcdb6 8192echo "$ac_t""$ac_cv_prog_gxx" 1>&6
10f2d63a 8193
698dcdb6
VZ
8194if test $ac_cv_prog_gxx = yes; then
8195 GXX=yes
8196else
8197 GXX=
8198fi
10f2d63a 8199
698dcdb6
VZ
8200ac_test_CXXFLAGS="${CXXFLAGS+set}"
8201ac_save_CXXFLAGS="$CXXFLAGS"
8202CXXFLAGS=
8203echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
f11bdd03 8204echo "configure:8205: checking whether ${CXX-g++} accepts -g" >&5
698dcdb6
VZ
8205if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
8206 echo $ac_n "(cached) $ac_c" 1>&6
8207else
8208 echo 'void f(){}' > conftest.cc
8209if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
10f2d63a
VZ
8210 ac_cv_prog_cxx_g=yes
8211else
698dcdb6 8212 ac_cv_prog_cxx_g=no
10f2d63a 8213fi
698dcdb6
VZ
8214rm -f conftest*
8215
10f2d63a 8216fi
698dcdb6
VZ
8217
8218echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
10f2d63a 8219if test "$ac_test_CXXFLAGS" = set; then
698dcdb6 8220 CXXFLAGS="$ac_save_CXXFLAGS"
10f2d63a
VZ
8221elif test $ac_cv_prog_cxx_g = yes; then
8222 if test "$GXX" = yes; then
8223 CXXFLAGS="-g -O2"
8224 else
8225 CXXFLAGS="-g"
8226 fi
8227else
8228 if test "$GXX" = yes; then
8229 CXXFLAGS="-O2"
8230 else
8231 CXXFLAGS=
8232 fi
8233fi
8234
8235
698dcdb6 8236echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
f11bdd03 8237echo "configure:8238: checking how to run the C++ preprocessor" >&5
1e487827 8238if test -z "$CXXCPP"; then
698dcdb6
VZ
8239if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
8240 echo $ac_n "(cached) $ac_c" 1>&6
1e487827 8241else
698dcdb6
VZ
8242 ac_ext=C
8243# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8244ac_cpp='$CXXCPP $CPPFLAGS'
8245ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8246ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8247cross_compiling=$ac_cv_prog_cxx_cross
8248 CXXCPP="${CXX-g++} -E"
8249 cat > conftest.$ac_ext <<EOF
f11bdd03 8250#line 8251 "configure"
1e487827 8251#include "confdefs.h"
698dcdb6
VZ
8252#include <stdlib.h>
8253EOF
8254ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
f11bdd03 8255{ (eval echo configure:8256: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
8256ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8257if test -z "$ac_err"; then
1e487827
VS
8258 :
8259else
698dcdb6
VZ
8260 echo "$ac_err" >&5
8261 echo "configure: failed program was:" >&5
1e487827 8262 cat conftest.$ac_ext >&5
698dcdb6
VZ
8263 rm -rf conftest*
8264 CXXCPP=/lib/cpp
1e487827 8265fi
698dcdb6
VZ
8266rm -f conftest*
8267 ac_cv_prog_CXXCPP="$CXXCPP"
8268ac_ext=C
8269# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8270ac_cpp='$CXXCPP $CPPFLAGS'
8271ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8272ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8273cross_compiling=$ac_cv_prog_cxx_cross
1e487827 8274fi
1e487827 8275fi
698dcdb6
VZ
8276CXXCPP="$ac_cv_prog_CXXCPP"
8277echo "$ac_t""$CXXCPP" 1>&6
1e487827 8278
10f2d63a
VZ
8279
8280CXXFLAGS=`echo "$CXXFLAGS" | sed 's/-g//g'`
8281
8282ac_ext=c
698dcdb6 8283# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10f2d63a 8284ac_cpp='$CPP $CPPFLAGS'
698dcdb6
VZ
8285ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8286ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8287cross_compiling=$ac_cv_prog_cc_cross
8288
8289
8290# Extract the first word of "ranlib", so it can be a program name with args.
8291set dummy ranlib; ac_word=$2
8292echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
f11bdd03 8293echo "configure:8294: checking for $ac_word" >&5
698dcdb6
VZ
8294if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
8295 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
8296else
8297 if test -n "$RANLIB"; then
8298 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8299else
698dcdb6
VZ
8300 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8301 ac_dummy="$PATH"
8302 for ac_dir in $ac_dummy; do
8303 test -z "$ac_dir" && ac_dir=.
8304 if test -f $ac_dir/$ac_word; then
8305 ac_cv_prog_RANLIB="ranlib"
8306 break
8307 fi
8308 done
8309 IFS="$ac_save_ifs"
8310 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
10f2d63a
VZ
8311fi
8312fi
698dcdb6 8313RANLIB="$ac_cv_prog_RANLIB"
10f2d63a 8314if test -n "$RANLIB"; then
698dcdb6 8315 echo "$ac_t""$RANLIB" 1>&6
10f2d63a 8316else
698dcdb6 8317 echo "$ac_t""no" 1>&6
10f2d63a
VZ
8318fi
8319
8320
8321# Extract the first word of "ar", so it can be a program name with args.
8322set dummy ar; ac_word=$2
698dcdb6 8323echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
f11bdd03 8324echo "configure:8325: checking for $ac_word" >&5
698dcdb6
VZ
8325if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
8326 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
8327else
8328 if test -n "$AR"; then
8329 ac_cv_prog_AR="$AR" # Let the user override the test.
8330else
698dcdb6
VZ
8331 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8332 ac_dummy="$PATH"
8333 for ac_dir in $ac_dummy; do
8334 test -z "$ac_dir" && ac_dir=.
8335 if test -f $ac_dir/$ac_word; then
8336 ac_cv_prog_AR="ar"
8337 break
8338 fi
8339 done
8340 IFS="$ac_save_ifs"
10f2d63a
VZ
8341 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
8342fi
8343fi
698dcdb6 8344AR="$ac_cv_prog_AR"
10f2d63a 8345if test -n "$AR"; then
698dcdb6 8346 echo "$ac_t""$AR" 1>&6
10f2d63a 8347else
698dcdb6 8348 echo "$ac_t""no" 1>&6
10f2d63a
VZ
8349fi
8350
698dcdb6 8351
10f2d63a
VZ
8352# Find a good install program. We prefer a C program (faster),
8353# so one script is as good as another. But avoid the broken or
8354# incompatible versions:
8355# SysV /etc/install, /usr/sbin/install
8356# SunOS /usr/etc/install
8357# IRIX /sbin/install
8358# AIX /bin/install
8359# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
8360# AFS /usr/afsws/bin/install, which mishandles nonexistent args
8361# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8362# ./install, which can be erroneously created by make from ./install.sh.
698dcdb6 8363echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
f11bdd03 8364echo "configure:8365: checking for a BSD compatible install" >&5
10f2d63a 8365if test -z "$INSTALL"; then
698dcdb6
VZ
8366if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
8367 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 8368else
698dcdb6 8369 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
10f2d63a
VZ
8370 for ac_dir in $PATH; do
8371 # Account for people who put trailing slashes in PATH elements.
698dcdb6
VZ
8372 case "$ac_dir/" in
8373 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
10f2d63a
VZ
8374 *)
8375 # OSF1 and SCO ODT 3.0 have their own names for install.
8376 # Don't use installbsd from OSF since it installs stuff as root
8377 # by default.
8378 for ac_prog in ginstall scoinst install; do
698dcdb6 8379 if test -f $ac_dir/$ac_prog; then
10f2d63a 8380 if test $ac_prog = install &&
698dcdb6 8381 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
10f2d63a
VZ
8382 # AIX install. It has an incompatible calling convention.
8383 :
8384 else
8385 ac_cv_path_install="$ac_dir/$ac_prog -c"
8386 break 2
8387 fi
8388 fi
8389 done
8390 ;;
8391 esac
8392 done
698dcdb6 8393 IFS="$ac_save_IFS"
10f2d63a
VZ
8394
8395fi
8396 if test "${ac_cv_path_install+set}" = set; then
698dcdb6 8397 INSTALL="$ac_cv_path_install"
10f2d63a
VZ
8398 else
8399 # As a last resort, use the slow shell script. We don't cache a
8400 # path for INSTALL within a source directory, because that will
8401 # break other packages using the cache if that directory is
8402 # removed, or if the path is relative.
698dcdb6 8403 INSTALL="$ac_install_sh"
10f2d63a
VZ
8404 fi
8405fi
698dcdb6 8406echo "$ac_t""$INSTALL" 1>&6
10f2d63a
VZ
8407
8408# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8409# It thinks the first close brace ends the variable substitution.
8410test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8411
698dcdb6 8412test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
10f2d63a
VZ
8413
8414test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8415
698dcdb6 8416
10f2d63a
VZ
8417# Extract the first word of "strip", so it can be a program name with args.
8418set dummy strip; ac_word=$2
698dcdb6 8419echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
f11bdd03 8420echo "configure:8421: checking for $ac_word" >&5
698dcdb6
VZ
8421if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
8422 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
8423else
8424 if test -n "$STRIP"; then
8425 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8426else
698dcdb6
VZ
8427 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8428 ac_dummy="$PATH"
8429 for ac_dir in $ac_dummy; do
8430 test -z "$ac_dir" && ac_dir=.
8431 if test -f $ac_dir/$ac_word; then
8432 ac_cv_prog_STRIP="strip"
8433 break
8434 fi
8435 done
8436 IFS="$ac_save_ifs"
10f2d63a
VZ
8437 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
8438fi
8439fi
698dcdb6 8440STRIP="$ac_cv_prog_STRIP"
10f2d63a 8441if test -n "$STRIP"; then
698dcdb6 8442 echo "$ac_t""$STRIP" 1>&6
10f2d63a 8443else
698dcdb6 8444 echo "$ac_t""no" 1>&6
10f2d63a
VZ
8445fi
8446
698dcdb6
VZ
8447
8448echo $ac_n "checking make for VPATH support""... $ac_c" 1>&6
f11bdd03 8449echo "configure:8450: checking make for VPATH support" >&5
10f2d63a
VZ
8450cat - << EOF > confMake
8451check : file
8452 cp \$? \$@
8453 cp \$? final_file
8454EOF
8455
8456if test ! -d sub ; then
8457 mkdir sub
8458fi
8459echo dummy > sub/file
f6bcfd97 8460${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
10f2d63a
VZ
8461RESULT=$?
8462rm -f sub/file check final_file confMake
8463rmdir sub
8464if test "$RESULT" = 0; then
698dcdb6 8465 echo "$ac_t""yes" 1>&6
10f2d63a 8466else
698dcdb6
VZ
8467 echo "$ac_t""no" 1>&6
8468 { echo "configure: error:
1e487827
VS
8469You need a make-utility that is able to use the variable
8470VPATH correctly.
8471If your version of make does not support VPATH correctly,
8472please install GNU-make (possibly as gmake), and start
8473configure with the following command:
8474export MAKE=gmake; ./configure for sh-type shells
8475setenv MAKE gmake; ./configure for csh-type shells
8476Also please do remember to use gmake in this case every time
8477you are trying to compile.
698dcdb6 8478" 1>&2; exit 1; }
10f2d63a
VZ
8479fi
8480
8481for ac_prog in 'bison -y' byacc
8482do
698dcdb6 8483# Extract the first word of "$ac_prog", so it can be a program name with args.
10f2d63a 8484set dummy $ac_prog; ac_word=$2
698dcdb6 8485echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
f11bdd03 8486echo "configure:8487: checking for $ac_word" >&5
698dcdb6
VZ
8487if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
8488 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
8489else
8490 if test -n "$YACC"; then
8491 ac_cv_prog_YACC="$YACC" # Let the user override the test.
8492else
698dcdb6
VZ
8493 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8494 ac_dummy="$PATH"
8495 for ac_dir in $ac_dummy; do
8496 test -z "$ac_dir" && ac_dir=.
8497 if test -f $ac_dir/$ac_word; then
8498 ac_cv_prog_YACC="$ac_prog"
8499 break
8500 fi
8501 done
8502 IFS="$ac_save_ifs"
10f2d63a
VZ
8503fi
8504fi
698dcdb6 8505YACC="$ac_cv_prog_YACC"
10f2d63a 8506if test -n "$YACC"; then
698dcdb6 8507 echo "$ac_t""$YACC" 1>&6
10f2d63a 8508else
698dcdb6 8509 echo "$ac_t""no" 1>&6
10f2d63a
VZ
8510fi
8511
698dcdb6 8512test -n "$YACC" && break
10f2d63a
VZ
8513done
8514test -n "$YACC" || YACC="yacc"
8515
698dcdb6
VZ
8516
8517# Extract the first word of "flex", so it can be a program name with args.
8518set dummy flex; ac_word=$2
8519echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
f11bdd03 8520echo "configure:8521: checking for $ac_word" >&5
698dcdb6
VZ
8521if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
8522 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
8523else
8524 if test -n "$LEX"; then
8525 ac_cv_prog_LEX="$LEX" # Let the user override the test.
8526else
698dcdb6
VZ
8527 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8528 ac_dummy="$PATH"
8529 for ac_dir in $ac_dummy; do
8530 test -z "$ac_dir" && ac_dir=.
8531 if test -f $ac_dir/$ac_word; then
8532 ac_cv_prog_LEX="flex"
8533 break
8534 fi
8535 done
8536 IFS="$ac_save_ifs"
8537 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
10f2d63a
VZ
8538fi
8539fi
698dcdb6 8540LEX="$ac_cv_prog_LEX"
10f2d63a 8541if test -n "$LEX"; then
698dcdb6 8542 echo "$ac_t""$LEX" 1>&6
10f2d63a 8543else
698dcdb6 8544 echo "$ac_t""no" 1>&6
10f2d63a
VZ
8545fi
8546
8547if test -z "$LEXLIB"
8548then
698dcdb6
VZ
8549 case "$LEX" in
8550 flex*) ac_lib=fl ;;
8551 *) ac_lib=l ;;
8552 esac
8553 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
f11bdd03 8554echo "configure:8555: checking for yywrap in -l$ac_lib" >&5
698dcdb6
VZ
8555ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
8556if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8557 echo $ac_n "(cached) $ac_c" 1>&6
8558else
8559 ac_save_LIBS="$LIBS"
8560LIBS="-l$ac_lib $LIBS"
8561cat > conftest.$ac_ext <<EOF
f11bdd03 8562#line 8563 "configure"
10f2d63a
VZ
8563#include "confdefs.h"
8564/* Override any gcc2 internal prototype to avoid an error. */
8565/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
8566 builtin and then its argument prototype would still apply. */
8567char yywrap();
10f2d63a 8568
698dcdb6
VZ
8569int main() {
8570yywrap()
8571; return 0; }
8572EOF
f11bdd03 8573if { (eval echo configure:8574: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
8574 rm -rf conftest*
8575 eval "ac_cv_lib_$ac_lib_var=yes"
10f2d63a 8576else
698dcdb6
VZ
8577 echo "configure: failed program was:" >&5
8578 cat conftest.$ac_ext >&5
8579 rm -rf conftest*
8580 eval "ac_cv_lib_$ac_lib_var=no"
10f2d63a 8581fi
698dcdb6
VZ
8582rm -f conftest*
8583LIBS="$ac_save_LIBS"
8584
10f2d63a 8585fi
698dcdb6
VZ
8586if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8587 echo "$ac_t""yes" 1>&6
8588 LEXLIB="-l$ac_lib"
8589else
8590 echo "$ac_t""no" 1>&6
10f2d63a
VZ
8591fi
8592
8593fi
8594
8595
698dcdb6 8596echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
f11bdd03 8597echo "configure:8598: checking whether ln -s works" >&5
698dcdb6
VZ
8598if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
8599 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 8600else
698dcdb6
VZ
8601 rm -f conftestdata
8602if ln -s X conftestdata 2>/dev/null
8603then
8604 rm -f conftestdata
8605 ac_cv_prog_LN_S="ln -s"
10f2d63a 8606else
698dcdb6 8607 ac_cv_prog_LN_S=ln
10f2d63a
VZ
8608fi
8609fi
698dcdb6
VZ
8610LN_S="$ac_cv_prog_LN_S"
8611if test "$ac_cv_prog_LN_S" = "ln -s"; then
8612 echo "$ac_t""yes" 1>&6
10f2d63a 8613else
698dcdb6 8614 echo "$ac_t""no" 1>&6
10f2d63a
VZ
8615fi
8616
8617
8618
8619SEARCH_INCLUDE="\
8620 /usr/local/include \
8621 \
8622 /usr/Motif-1.2/include \
8623 /usr/Motif-2.1/include \
8624 \
8625 /usr/include/Motif1.2 \
8626 /opt/xpm/include/X11 \
8627 /opt/GBxpm/include/ \
8628 /opt/GBxpm/X11/include/ \
8629 \
8630 /usr/Motif1.2/include \
8631 /usr/dt/include \
afc31813
VZ
8632 /usr/openwin/include \
8633 \
10f2d63a
VZ
8634 /usr/include/Xm \
8635 \
8636 /usr/X11R6/include \
afc31813 8637 /usr/X11R6.4/include \
10f2d63a
VZ
8638 /usr/X11R5/include \
8639 /usr/X11R4/include \
8640 \
10f2d63a
VZ
8641 /usr/include/X11R6 \
8642 /usr/include/X11R5 \
8643 /usr/include/X11R4 \
8644 \
8645 /usr/local/X11R6/include \
8646 /usr/local/X11R5/include \
8647 /usr/local/X11R4/include \
8648 \
8649 /usr/local/include/X11R6 \
8650 /usr/local/include/X11R5 \
8651 /usr/local/include/X11R4 \
8652 \
8653 /usr/X11/include \
8654 /usr/include/X11 \
8655 /usr/local/X11/include \
8656 /usr/local/include/X11 \
8657 \
8658 /usr/X386/include \
8659 /usr/x386/include \
8660 /usr/XFree86/include/X11 \
8661 \
cf27ef00 8662 X:/XFree86/include \
ec14dd32
VZ
8663 X:/XFree86/include/X11 \
8664 \
10f2d63a
VZ
8665 /usr/include/gtk \
8666 /usr/local/include/gtk \
8667 /usr/include/glib \
8668 /usr/local/include/glib \
8669 \
8670 /usr/include/qt \
8671 /usr/local/include/qt \
8672 \
8673 /usr/include/windows \
8674 /usr/include/wine \
8675 /usr/local/include/wine \
8676 \
8677 /usr/unsupported/include \
8678 /usr/athena/include \
8679 /usr/local/x11r5/include \
8680 /usr/lpp/Xamples/include \
8681 \
10f2d63a 8682 /usr/openwin/share/include \
928b5c08
VZ
8683 \
8684 /usr/include"
10f2d63a
VZ
8685
8686SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` "
8687
698dcdb6
VZ
8688
8689cat > confcache <<\EOF
10f2d63a
VZ
8690# This file is a shell script that caches the results of configure
8691# tests run on this system so they can be shared between configure
698dcdb6
VZ
8692# scripts and configure runs. It is not useful on other systems.
8693# If it contains results you don't want to keep, you may remove or edit it.
10f2d63a 8694#
698dcdb6
VZ
8695# By default, configure uses ./config.cache as the cache file,
8696# creating it if it does not exist already. You can give configure
8697# the --cache-file=FILE option to use a different cache file; that is
8698# what configure does when it calls configure scripts in
8699# subdirectories, so they share the cache.
8700# Giving --cache-file=/dev/null disables caching, for debugging configure.
8701# config.status only pays attention to the cache file if you give it the
8702# --recheck option to rerun configure.
10f2d63a 8703#
698dcdb6 8704EOF
10f2d63a
VZ
8705# The following way of writing the cache mishandles newlines in values,
8706# but we know of no workaround that is simple, portable, and efficient.
8707# So, don't put newlines in cache variables' values.
8708# Ultrix sh set writes to stderr and can't be redirected directly,
8709# and sets the high bit in the cache file unless we assign to the vars.
698dcdb6
VZ
8710(set) 2>&1 |
8711 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8712 *ac_space=\ *)
8713 # `set' does not quote correctly, so add quotes (double-quote substitution
8714 # turns \\\\ into \\, and sed turns \\ into \).
8715 sed -n \
8716 -e "s/'/'\\\\''/g" \
8717 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
8718 ;;
8719 *)
8720 # `set' quotes correctly as required by POSIX, so do not add quotes.
8721 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8722 ;;
8723 esac >> confcache
8724if cmp -s $cache_file confcache; then
8725 :
8726else
10f2d63a 8727 if test -w $cache_file; then
698dcdb6
VZ
8728 echo "updating cache $cache_file"
8729 cat confcache > $cache_file
10f2d63a
VZ
8730 else
8731 echo "not updating unwritable cache $cache_file"
8732 fi
8733fi
8734rm -f confcache
8735
698dcdb6
VZ
8736
8737
dad6c0ea
VZ
8738AFMINSTALL=
8739
10f2d63a 8740if test "$wxUSE_GUI" = "yes"; then
1e6feb95 8741 USE_GUI=1
10f2d63a 8742
1e6feb95
VZ
8743 TOOLKIT=
8744 TOOLKIT_INCLUDE=
10f2d63a 8745
1e6feb95
VZ
8746 GUI_TK_LIBRARY=
8747 GUI_TK_LINK=
10f2d63a 8748
1e6feb95
VZ
8749 WXGTK12=
8750 WXGTK127=
8751 WXGTK20=
10f2d63a 8752
1e6feb95 8753 WXWINE=
10f2d63a 8754
1e6feb95 8755 if test "$wxUSE_CYGWIN" = 1 || test "$wxUSE_MINGW" = 1 ; then
29fd3c0c
VS
8756 ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'`
8757echo $ac_n "checking for windows.h""... $ac_c" 1>&6
f11bdd03 8758echo "configure:8759: checking for windows.h" >&5
d4158b5d
VS
8759if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8760 echo $ac_n "(cached) $ac_c" 1>&6
8761else
8762 cat > conftest.$ac_ext <<EOF
f11bdd03 8763#line 8764 "configure"
d4158b5d 8764#include "confdefs.h"
29fd3c0c 8765#include <windows.h>
d4158b5d
VS
8766EOF
8767ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
f11bdd03 8768{ (eval echo configure:8769: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d4158b5d
VS
8769ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8770if test -z "$ac_err"; then
8771 rm -rf conftest*
8772 eval "ac_cv_header_$ac_safe=yes"
8773else
8774 echo "$ac_err" >&5
8775 echo "configure: failed program was:" >&5
8776 cat conftest.$ac_ext >&5
8777 rm -rf conftest*
8778 eval "ac_cv_header_$ac_safe=no"
8779fi
8780rm -f conftest*
8781fi
8782if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8783 echo "$ac_t""yes" 1>&6
29fd3c0c 8784 :
d4158b5d
VS
8785else
8786 echo "$ac_t""no" 1>&6
d4158b5d 8787
29fd3c0c
VS
8788 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
8789
8790fi
10f2d63a 8791
29fd3c0c 8792
1e6feb95
VZ
8793 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS msw"
8794 LIBS="$LIBS -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -lcrtdll -ladvapi32 -lwsock32"
f6bcfd97 8795
1e6feb95
VZ
8796 if test "$wxUSE_ODBC" = "yes" ; then
8797 LIBS="$LIBS -lodbc32 -lole32 -loleaut32"
8798 fi
10f2d63a 8799
1e6feb95
VZ
8800 if test "$wxUSE_MINGW" = 1; then
8801 LDFLAGS="$LDFLAGS -mwindows"
8802 fi
32832908 8803
1e6feb95
VZ
8804 TOOLKIT=MSW
8805 GUIDIST=MSW_DIST
32832908 8806
1e6feb95
VZ
8807 RCINCSWITCH="--include-dir"
8808 RCDEFSWITCH="--define"
8809 RCPREPROCESSOR="--preprocessor \"\$(CC) -c -E -xc-header -DRC_INVOKED\""
8810 RCINPUTSWITCH="-i"
8811 RCOUTPUTSWITCH="-o"
8812 RESFLAGS="$RCPREPROCESSOR $RCINCSWITCH \$(top_srcdir)/include $RCINCSWITCH \$(top_srcdir)/\$(program_dir) $RCDEFSWITCH __WIN32__ $RCDEFSWITCH __WIN95__ $RCDEFSWITCH __GNUWIN32__"
32832908 8813
1e6feb95
VZ
8814 RESPROGRAM="\$(RES_PROGRAM)"
8815 fi
10f2d63a 8816
1e6feb95 8817 if test "$wxUSE_GTK" = 1; then
8168de4c 8818 echo $ac_n "checking for GTK+ version""... $ac_c" 1>&6
f11bdd03 8819echo "configure:8820: checking for GTK+ version" >&5
8168de4c
VZ
8820
8821 gtk_version_cached=1
8822 if eval "test \"`echo '$''{'wx_cv_lib_gtk'+set}'`\" = set"; then
8823 echo $ac_n "(cached) $ac_c" 1>&6
8824else
8825
8826 gtk_version_cached=0
8827 echo "$ac_t""""" 1>&6
8828
8829 wx_cv_lib_gtk=
8830 if test "x$wxUSE_GTK2" = "xyes"; then
8831 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
6f72b082
OK
8832if test "${with_gtk_prefix+set}" = set; then
8833 withval="$with_gtk_prefix"
8834 gtk_config_prefix="$withval"
8835else
8836 gtk_config_prefix=""
698dcdb6 8837fi
6f72b082
OK
8838
8839# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
8840if test "${with_gtk_exec_prefix+set}" = set; then
8841 withval="$with_gtk_exec_prefix"
8842 gtk_config_exec_prefix="$withval"
8843else
8844 gtk_config_exec_prefix=""
698dcdb6
VZ
8845fi
8846
6f72b082
OK
8847# Check whether --enable-gtktest or --disable-gtktest was given.
8848if test "${enable_gtktest+set}" = set; then
8849 enableval="$enable_gtktest"
698dcdb6 8850 :
6f72b082
OK
8851else
8852 enable_gtktest=yes
698dcdb6
VZ
8853fi
8854
6f72b082 8855
8168de4c 8856 for module in .
6f72b082
OK
8857 do
8858 case "$module" in
8168de4c 8859 gthread)
6f72b082
OK
8860 gtk_config_args="$gtk_config_args gthread"
8861 ;;
8862 esac
8863 done
8864
8865 if test x$gtk_config_exec_prefix != x ; then
8866 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
8867 if test x${GTK_CONFIG_2_0+set} != xset ; then
8868 GTK_CONFIG_2_0=$gtk_config_exec_prefix/bin/gtk-config-2.0
8869 fi
8870 fi
8871 if test x$gtk_config_prefix != x ; then
8872 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
8873 if test x${GTK_CONFIG_2_0+set} != xset ; then
8874 GTK_CONFIG_2_0=$gtk_config_prefix/bin/gtk-config-2.0
8875 fi
8876 fi
8877
8878 # Extract the first word of "gtk-config-2.0", so it can be a program name with args.
8879set dummy gtk-config-2.0; ac_word=$2
698dcdb6 8880echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
f11bdd03 8881echo "configure:8882: checking for $ac_word" >&5
698dcdb6
VZ
8882if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG_2_0'+set}'`\" = set"; then
8883 echo $ac_n "(cached) $ac_c" 1>&6
6f72b082 8884else
698dcdb6
VZ
8885 case "$GTK_CONFIG_2_0" in
8886 /*)
6f72b082
OK
8887 ac_cv_path_GTK_CONFIG_2_0="$GTK_CONFIG_2_0" # Let the user override the test with a path.
8888 ;;
698dcdb6
VZ
8889 ?:/*)
8890 ac_cv_path_GTK_CONFIG_2_0="$GTK_CONFIG_2_0" # Let the user override the test with a dos path.
8891 ;;
6f72b082 8892 *)
698dcdb6
VZ
8893 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8894 ac_dummy="$PATH"
8895 for ac_dir in $ac_dummy; do
8896 test -z "$ac_dir" && ac_dir=.
8897 if test -f $ac_dir/$ac_word; then
8898 ac_cv_path_GTK_CONFIG_2_0="$ac_dir/$ac_word"
8899 break
8900 fi
8901 done
8902 IFS="$ac_save_ifs"
6f72b082
OK
8903 test -z "$ac_cv_path_GTK_CONFIG_2_0" && ac_cv_path_GTK_CONFIG_2_0="no"
8904 ;;
8905esac
8906fi
698dcdb6 8907GTK_CONFIG_2_0="$ac_cv_path_GTK_CONFIG_2_0"
6f72b082 8908if test -n "$GTK_CONFIG_2_0"; then
698dcdb6 8909 echo "$ac_t""$GTK_CONFIG_2_0" 1>&6
6f72b082 8910else
698dcdb6 8911 echo "$ac_t""no" 1>&6
6f72b082
OK
8912fi
8913
8914 min_gtk_version=1.3.1
698dcdb6 8915 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
f11bdd03 8916echo "configure:8917: checking for GTK - version >= $min_gtk_version" >&5
6f72b082
OK
8917 no_gtk=""
8918 if test "$GTK_CONFIG_2_0" = "no" ; then
8919 no_gtk=yes
8920 else
8921 GTK_CFLAGS=`$GTK_CONFIG_2_0 $gtk_config_args --cflags`
8922 GTK_LIBS=`$GTK_CONFIG_2_0 $gtk_config_args --libs`
8923 gtk_config_major_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \
8924 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
8925 gtk_config_minor_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \
8926 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
8927 gtk_config_micro_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \
8928 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
8929 if test "x$enable_gtktest" = "xyes" ; then
8930 ac_save_CFLAGS="$CFLAGS"
8931 ac_save_LIBS="$LIBS"
8932 CFLAGS="$CFLAGS $GTK_CFLAGS"
8933 LIBS="$GTK_LIBS $LIBS"
8934 rm -f conf.gtktest
8935 if test "$cross_compiling" = yes; then
8936 echo $ac_n "cross compiling; assumed OK... $ac_c"
8937else
698dcdb6 8938 cat > conftest.$ac_ext <<EOF
f11bdd03 8939#line 8940 "configure"
6f72b082
OK
8940#include "confdefs.h"
8941
8942#include <gtk/gtk.h>
8943#include <stdio.h>
8944#include <stdlib.h>
8945
8168de4c 8946int
6f72b082
OK
8947main ()
8948{
8949 int major, minor, micro;
8950 char *tmp_version;
8951
8952 system ("touch conf.gtktest");
8953
8954 /* HP/UX 9 (%@#!) writes to sscanf strings */
8955 tmp_version = g_strdup("$min_gtk_version");
8956 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
8957 printf("%s, bad version string\n", "$min_gtk_version");
8958 exit(1);
8959 }
8960
8961 if ((gtk_major_version != $gtk_config_major_version) ||
8962 (gtk_minor_version != $gtk_config_minor_version) ||
8963 (gtk_micro_version != $gtk_config_micro_version))
8964 {
8168de4c 8965 printf("\n*** 'gtk-config-2.0 --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
6f72b082
OK
8966 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
8967 gtk_major_version, gtk_minor_version, gtk_micro_version);
8968 printf ("*** was found! If gtk-config-2.0 was correct, then it is best\n");
8969 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
8970 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
8971 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
8972 printf("*** required on your system.\n");
8973 printf("*** If gtk-config-2.0 was wrong, set the environment variable GTK_CONFIG_2_0\n");
8974 printf("*** to point to the correct copy of gtk-config-2.0, and remove the file config.cache\n");
8975 printf("*** before re-running configure\n");
8168de4c 8976 }
6f72b082
OK
8977#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
8978 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
8168de4c 8979 (gtk_minor_version != GTK_MINOR_VERSION) ||
6f72b082
OK
8980 (gtk_micro_version != GTK_MICRO_VERSION))
8981 {
8982 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
8168de4c 8983 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
6f72b082 8984 printf("*** library (version %d.%d.%d)\n",
8168de4c 8985 gtk_major_version, gtk_minor_version, gtk_micro_version);
6f72b082
OK
8986 }
8987#endif /* defined (GTK_MAJOR_VERSION) ... */
8988 else
8989 {
8990 if ((gtk_major_version > major) ||
8991 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
8992 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
8993 {
8994 return 0;
8995 }
8996 else
8997 {
8998 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
8999 gtk_major_version, gtk_minor_version, gtk_micro_version);
9000 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
8168de4c 9001 major, minor, micro);
6f72b082
OK
9002 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
9003 printf("***\n");
9004 printf("*** If you have already installed a sufficiently new version, this error\n");
9005 printf("*** probably means that the wrong copy of the gtk-config-2.0 shell script is\n");
9006 printf("*** being found. The easiest way to fix this is to remove the old version\n");
9007 printf("*** of GTK+, but you can also set the GTK_CONFIG_2_0 environment to point to the\n");
9008 printf("*** correct copy of gtk-config-2.0. (In this case, you will have to\n");
9009 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
9010 printf("*** so that the correct libraries are found at run-time))\n");
9011 }
9012 }
9013 return 1;
9014}
9015
698dcdb6 9016EOF
f11bdd03 9017if { (eval echo configure:9018: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6 9018then
6f72b082
OK
9019 :
9020else
698dcdb6
VZ
9021 echo "configure: failed program was:" >&5
9022 cat conftest.$ac_ext >&5
9023 rm -fr conftest*
9024 no_gtk=yes
6f72b082 9025fi
698dcdb6 9026rm -fr conftest*
6f72b082 9027fi
698dcdb6 9028
6f72b082
OK
9029 CFLAGS="$ac_save_CFLAGS"
9030 LIBS="$ac_save_LIBS"
9031 fi
9032 fi
9033 if test "x$no_gtk" = x ; then
698dcdb6 9034 echo "$ac_t""yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" 1>&6
8168de4c 9035 wx_cv_lib_gtk=2.0
6f72b082 9036 else
698dcdb6 9037 echo "$ac_t""no" 1>&6
6f72b082
OK
9038 if test "$GTK_CONFIG_2_0" = "no" ; then
9039 echo "*** The gtk-config-2.0 script installed by GTK could not be found"
9040 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
9041 echo "*** your path, or set the GTK_CONFIG_2_0 environment variable to the"
9042 echo "*** full path to gtk-config-2.0."
9043 else
9044 if test -f conf.gtktest ; then
9045 :
9046 else
9047 echo "*** Could not run GTK test program, checking why..."
9048 CFLAGS="$CFLAGS $GTK_CFLAGS"
9049 LIBS="$LIBS $GTK_LIBS"
698dcdb6 9050 cat > conftest.$ac_ext <<EOF
f11bdd03 9051#line 9052 "configure"
6f72b082
OK
9052#include "confdefs.h"
9053
9054#include <gtk/gtk.h>
9055#include <stdio.h>
9056
698dcdb6
VZ
9057int main() {
9058 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
9059; return 0; }
9060EOF
f11bdd03 9061if { (eval echo configure:9062: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 9062 rm -rf conftest*
6f72b082
OK
9063 echo "*** The test program compiled, but did not run. This usually means"
9064 echo "*** that the run-time linker is not finding GTK or finding the wrong"
9065 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
9066 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
9067 echo "*** to the installed location Also, make sure you have run ldconfig if that"
9068 echo "*** is required on your system"
8168de4c 9069 echo "***"
6f72b082
OK
9070 echo "*** If you have an old version installed, it is best to remove it, although"
9071 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
9072 echo "***"
9073 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
9074 echo "*** came with the system with the command"
9075 echo "***"
698dcdb6 9076 echo "*** rpm --erase --nodeps gtk gtk-devel"
6f72b082 9077else
698dcdb6
VZ
9078 echo "configure: failed program was:" >&5
9079 cat conftest.$ac_ext >&5
9080 rm -rf conftest*
9081 echo "*** The test program failed to compile or link. See the file config.log for the"
6f72b082
OK
9082 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
9083 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
698dcdb6 9084 echo "*** may want to edit the gtk-config-2.0 script: $GTK_CONFIG_2_0"
6f72b082 9085fi
698dcdb6 9086rm -f conftest*
6f72b082
OK
9087 CFLAGS="$ac_save_CFLAGS"
9088 LIBS="$ac_save_LIBS"
9089 fi
9090 fi
9091 GTK_CFLAGS=""
9092 GTK_LIBS=""
8168de4c
VZ
9093 gthread
9094 fi
9095
9096
9097 rm -f conf.gtktest
9098
9099 fi
9100
9101 if test -z "$wx_cv_lib_gtk"; then
9102
10f2d63a
VZ
9103 if test x$gtk_config_exec_prefix != x ; then
9104 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
9105 if test x${GTK_CONFIG+set} != xset ; then
9106 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
9107 fi
9108 fi
9109 if test x$gtk_config_prefix != x ; then
9110 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
9111 if test x${GTK_CONFIG+set} != xset ; then
9112 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
9113 fi
9114 fi
9115
9116 # Extract the first word of "gtk-config", so it can be a program name with args.
9117set dummy gtk-config; ac_word=$2
698dcdb6 9118echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
f11bdd03 9119echo "configure:9120: checking for $ac_word" >&5
698dcdb6
VZ
9120if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
9121 echo $ac_n "(cached) $ac_c" 1>&6
f6bcfd97 9122else
698dcdb6
VZ
9123 case "$GTK_CONFIG" in
9124 /*)
f6bcfd97
BP
9125 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
9126 ;;
698dcdb6
VZ
9127 ?:/*)
9128 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
9129 ;;
f6bcfd97 9130 *)
698dcdb6
VZ
9131 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9132 ac_dummy="$PATH"
9133 for ac_dir in $ac_dummy; do
9134 test -z "$ac_dir" && ac_dir=.
9135 if test -f $ac_dir/$ac_word; then
9136 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
9137 break
9138 fi
9139 done
9140 IFS="$ac_save_ifs"
f6bcfd97
BP
9141 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
9142 ;;
9143esac
9144fi
698dcdb6 9145GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
f6bcfd97 9146if test -n "$GTK_CONFIG"; then
698dcdb6 9147 echo "$ac_t""$GTK_CONFIG" 1>&6
f6bcfd97 9148else
698dcdb6 9149 echo "$ac_t""no" 1>&6
f6bcfd97
BP
9150fi
9151
9152 min_gtk_version=1.2.7
698dcdb6 9153 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
f11bdd03 9154echo "configure:9155: checking for GTK - version >= $min_gtk_version" >&5
f6bcfd97
BP
9155 no_gtk=""
9156 if test "$GTK_CONFIG" != "no" ; then
9157 GTK_CFLAGS=`$GTK_CONFIG --cflags`
9158 GTK_LIBS=`$GTK_CONFIG --libs gthread`
9159 ac_save_CFLAGS="$CFLAGS"
9160 ac_save_LIBS="$LIBS"
9161 CFLAGS="$CFLAGS $GTK_CFLAGS"
9162 LIBS="$LIBS $GTK_LIBS"
9163 if test "$cross_compiling" = yes; then
9164 echo $ac_n "cross compiling; assumed OK... $ac_c"
9165else
698dcdb6 9166 cat > conftest.$ac_ext <<EOF
f11bdd03 9167#line 9168 "configure"
f6bcfd97
BP
9168#include "confdefs.h"
9169
9170#include <gtk/gtk.h>
9171#include <gtk/gtkfeatures.h>
9172#include <stdio.h>
9173#include <stdlib.h>
9174
9175int
9176main ()
9177{
9178 int major, minor, micro;
9179
9180 if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, &micro) != 3) {
9181 printf("%s, bad version string\n", "$min_gtk_version");
9182 exit(1);
9183 }
9184
9185 if ((GTK_MAJOR_VERSION != gtk_major_version) ||
9186 (GTK_MINOR_VERSION != gtk_minor_version) ||
9187 (GTK_MICRO_VERSION != gtk_micro_version)) {
9188 printf("Headers vs. library version mismatch!\n");
9189 exit(1);
9190 }
9191
9192 if (gtk_minor_version == 1) return FALSE;
9193
9194 return !((gtk_major_version > major) ||
9195 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
9196 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)));
9197}
9198
698dcdb6 9199EOF
f11bdd03 9200if { (eval echo configure:9201: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6 9201then
f6bcfd97
BP
9202 :
9203else
698dcdb6
VZ
9204 echo "configure: failed program was:" >&5
9205 cat conftest.$ac_ext >&5
9206 rm -fr conftest*
9207 no_gtk=yes
f6bcfd97 9208fi
698dcdb6 9209rm -fr conftest*
f6bcfd97 9210fi
698dcdb6 9211
f6bcfd97
BP
9212 CFLAGS="$ac_save_CFLAGS"
9213 LIBS="$ac_save_LIBS"
9214 else
9215 no_gtk=yes
9216 fi
9217 if test "x$no_gtk" = x ; then
698dcdb6 9218 echo "$ac_t""yes" 1>&6
8168de4c 9219 wx_cv_lib_gtk=1.2.7
f6bcfd97 9220 else
698dcdb6 9221 echo "$ac_t""no" 1>&6
f6bcfd97
BP
9222 GTK_CFLAGS=""
9223 GTK_LIBS=""
9224 :
9225 fi
698dcdb6
VZ
9226
9227
f6bcfd97 9228
8168de4c
VZ
9229 fi
9230
9231 if test -z "$wx_cv_lib_gtk"; then
9232
f6bcfd97
BP
9233 if test x$gtk_config_exec_prefix != x ; then
9234 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
9235 if test x${GTK_CONFIG+set} != xset ; then
9236 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
9237 fi
9238 fi
9239 if test x$gtk_config_prefix != x ; then
9240 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
9241 if test x${GTK_CONFIG+set} != xset ; then
9242 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
9243 fi
9244 fi
9245
9246 # Extract the first word of "gtk-config", so it can be a program name with args.
9247set dummy gtk-config; ac_word=$2
698dcdb6 9248echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
f11bdd03 9249echo "configure:9250: checking for $ac_word" >&5
698dcdb6
VZ
9250if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
9251 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 9252else
698dcdb6
VZ
9253 case "$GTK_CONFIG" in
9254 /*)
10f2d63a
VZ
9255 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
9256 ;;
698dcdb6
VZ
9257 ?:/*)
9258 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
9259 ;;
10f2d63a 9260 *)
698dcdb6
VZ
9261 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9262 ac_dummy="$PATH"
9263 for ac_dir in $ac_dummy; do
9264 test -z "$ac_dir" && ac_dir=.
9265 if test -f $ac_dir/$ac_word; then
9266 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
9267 break
9268 fi
9269 done
9270 IFS="$ac_save_ifs"
10f2d63a
VZ
9271 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
9272 ;;
9273esac
9274fi
698dcdb6 9275GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
10f2d63a 9276if test -n "$GTK_CONFIG"; then
698dcdb6 9277 echo "$ac_t""$GTK_CONFIG" 1>&6
10f2d63a 9278else
698dcdb6 9279 echo "$ac_t""no" 1>&6
10f2d63a
VZ
9280fi
9281
04165bec 9282 min_gtk_version=1.2.3
698dcdb6 9283 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
f11bdd03 9284echo "configure:9285: checking for GTK - version >= $min_gtk_version" >&5
10f2d63a
VZ
9285 no_gtk=""
9286 if test "$GTK_CONFIG" != "no" ; then
9287 GTK_CFLAGS=`$GTK_CONFIG --cflags`
2224580a 9288 GTK_LIBS=`$GTK_CONFIG --libs gthread`
10f2d63a
VZ
9289 ac_save_CFLAGS="$CFLAGS"
9290 ac_save_LIBS="$LIBS"
9291 CFLAGS="$CFLAGS $GTK_CFLAGS"
9292 LIBS="$LIBS $GTK_LIBS"
9293 if test "$cross_compiling" = yes; then
9294 echo $ac_n "cross compiling; assumed OK... $ac_c"
9295else
698dcdb6 9296 cat > conftest.$ac_ext <<EOF
f11bdd03 9297#line 9298 "configure"
10f2d63a
VZ
9298#include "confdefs.h"
9299
9300#include <gtk/gtk.h>
f49f2b0c 9301#include <gtk/gtkfeatures.h>
10f2d63a 9302#include <stdio.h>
32832908 9303#include <stdlib.h>
10f2d63a
VZ
9304
9305int
9306main ()
9307{
9308 int major, minor, micro;
9309
9310 if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, &micro) != 3) {
9311 printf("%s, bad version string\n", "$min_gtk_version");
9312 exit(1);
9313 }
9314
f49f2b0c
RR
9315 if ((GTK_MAJOR_VERSION != gtk_major_version) ||
9316 (GTK_MINOR_VERSION != gtk_minor_version) ||
9317 (GTK_MICRO_VERSION != gtk_micro_version)) {
9318 printf("Headers vs. library version mismatch!\n");
9319 exit(1);
9320 }
9321
10f2d63a
VZ
9322 if (gtk_minor_version == 1) return FALSE;
9323
9324 return !((gtk_major_version > major) ||
9325 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
9326 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)));
9327}
9328
698dcdb6 9329EOF
f11bdd03 9330if { (eval echo configure:9331: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6 9331then
10f2d63a
VZ
9332 :
9333else
698dcdb6
VZ
9334 echo "configure: failed program was:" >&5
9335 cat conftest.$ac_ext >&5
9336 rm -fr conftest*
9337 no_gtk=yes
10f2d63a 9338fi
698dcdb6 9339rm -fr conftest*
10f2d63a 9340fi
698dcdb6 9341
10f2d63a
VZ
9342 CFLAGS="$ac_save_CFLAGS"
9343 LIBS="$ac_save_LIBS"
9344 else
9345 no_gtk=yes
9346 fi
9347 if test "x$no_gtk" = x ; then
698dcdb6 9348 echo "$ac_t""yes" 1>&6
8168de4c 9349 wx_cv_lib_gtk=1.2.3
10f2d63a 9350 else
698dcdb6 9351 echo "$ac_t""no" 1>&6
10f2d63a
VZ
9352 GTK_CFLAGS=""
9353 GTK_LIBS=""
7e99ad86 9354 :
10f2d63a 9355 fi
698dcdb6
VZ
9356
9357
10f2d63a 9358
8168de4c
VZ
9359 fi
9360
9361 if test -z "$wx_cv_lib_gtk"; then
9362 wx_cv_lib_gtk=none
138be253
VZ
9363 else
9364 wx_cv_cflags_gtk=$GTK_CFLAGS
9365 wx_cv_libs_gtk=$GTK_LIBS
8168de4c
VZ
9366 fi
9367
1e6feb95 9368
8168de4c 9369fi
703e0a69 9370
698dcdb6 9371
8168de4c
VZ
9372 if test "$gtk_version_cached" = 1; then
9373 echo "$ac_t""$wx_cv_lib_gtk" 1>&6
1e6feb95 9374 fi
698dcdb6 9375
8168de4c
VZ
9376 case "$wx_cv_lib_gtk" in
9377 2.0) WXGTK20=1
9378 ;;
9379 1.2.7) WXGTK127=1
d1a8d972 9380 WXGTK12=1
8168de4c
VZ
9381 ;;
9382 1.2.3) WXGTK12=1
9383 ;;
9384 *) { echo "configure: error:
9385Please check that gtk-config is in path, the directory
9386where GTK+ libraries are installed (returned by
9387'gtk-config --libs' command) is in LD_LIBRARY_PATH or
9388equivalent variable and GTK+ is version 1.2.3 or above.
9389 " 1>&2; exit 1; }
9390 ;;
9391 esac
2224580a 9392
138be253 9393 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
11dfaa5f 9394 GUI_TK_LIBRARY="$wx_cv_libs_gtk"
698dcdb6 9395
1e6feb95
VZ
9396 AFMINSTALL=afminstall
9397 TOOLKIT=GTK
9398 GUIDIST=GTK_DIST
7ec2881a 9399
1e6feb95 9400 echo $ac_n "checking for gdk_im_open in -lgdk""... $ac_c" 1>&6
f11bdd03 9401echo "configure:9402: checking for gdk_im_open in -lgdk" >&5
698dcdb6
VZ
9402ac_lib_var=`echo gdk'_'gdk_im_open | sed 'y%./+-%__p_%'`
9403if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9404 echo $ac_n "(cached) $ac_c" 1>&6
7ec2881a 9405else
698dcdb6 9406 ac_save_LIBS="$LIBS"
7ec2881a 9407LIBS="-lgdk $LIBS"
698dcdb6 9408cat > conftest.$ac_ext <<EOF
f11bdd03 9409#line 9410 "configure"
7ec2881a
RR
9410#include "confdefs.h"
9411/* Override any gcc2 internal prototype to avoid an error. */
9412/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
9413 builtin and then its argument prototype would still apply. */
9414char gdk_im_open();
9415
9416int main() {
9417gdk_im_open()
9418; return 0; }
9419EOF
f11bdd03 9420if { (eval echo configure:9421: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
9421 rm -rf conftest*
9422 eval "ac_cv_lib_$ac_lib_var=yes"
9423else
9424 echo "configure: failed program was:" >&5
9425 cat conftest.$ac_ext >&5
9426 rm -rf conftest*
9427 eval "ac_cv_lib_$ac_lib_var=no"
9428fi
9429rm -f conftest*
9430LIBS="$ac_save_LIBS"
9431
9432fi
9433if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9434 echo "$ac_t""yes" 1>&6
9435 cat >> confdefs.h <<\EOF
7ec2881a
RR
9436#define HAVE_XIM 1
9437EOF
9438
698dcdb6
VZ
9439else
9440 echo "$ac_t""no" 1>&6
7ec2881a
RR
9441fi
9442
1e6feb95 9443 fi
10f2d63a 9444
1e6feb95
VZ
9445 if test "$wxUSE_MGL" = 1; then
9446
9447 echo $ac_n "checking for SciTech MGL library""... $ac_c" 1>&6
f11bdd03 9448echo "configure:9449: checking for SciTech MGL library" >&5
1e6feb95
VZ
9449 if test "x$MGL_ROOT" = x ; then
9450 echo "$ac_t""not found" 1>&6
9451 { echo "configure: error: Cannot find MGL library. Make sure MGL_ROOT is set." 1>&2; exit 1; }
9452 else
9453 echo "$ac_t""$MGL_ROOT" 1>&6
9454 fi
9455
9456 MGL_OS=linux/gcc/glibc
9457 MGL_LIB_TYPE=""
9458
9459 if test "$wxUSE_DEBUG_FLAG" = yes ; then
9460 if test -f $MGL_ROOT/lib/debug/$MGL_OS/libmgl.a ; then
9461 MGL_LIB_TYPE=debug
9462 fi
9463 fi
9464 if test "x$MGL_LIB_TYPE" = x ; then
9465 if test -f $MGL_ROOT/lib/release/$MGL_OS/libmgl.a ; then
9466 MGL_LIB_TYPE=release
9467 else
9468 { echo "configure: error: Cannot find MGL libraries, make sure they are compiled." 1>&2; exit 1; }
9469 fi
9470 fi
9471
9472 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
9473 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$MGL_LIB_TYPE/$MGL_OS -lmgl -lmglcpp -lpm"
9474
9475 AFMINSTALL=afminstall
9476 TOOLKIT=MGL
9477 GUIDIST=MGL_DIST
9478 fi
9479
9480 if test "$wxUSE_WINE" = 1; then
9481 echo $ac_n "checking for WINE includes""... $ac_c" 1>&6
f11bdd03 9482echo "configure:9483: checking for WINE includes" >&5
1e6feb95 9483
10f2d63a
VZ
9484ac_find_includes=
9485for ac_dir in $SEARCH_INCLUDE;
9486 do
9487 if test -f "$ac_dir/windows.h"; then
9488 ac_find_includes=$ac_dir
9489 break
9490 fi
9491 done
9492
1e6feb95
VZ
9493 if test "$ac_find_includes" != "" ; then
9494 echo "$ac_t""found $ac_find_includes" 1>&6
9495 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE -I$ac_find_includes"
9496 else
9497 echo "$ac_t""no" 1>&6
9498 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
9499 fi
10f2d63a 9500
1e6feb95
VZ
9501 XPM_LINK=""
9502 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
f11bdd03 9503echo "configure:9504: checking for Xpm library" >&5
1e6feb95 9504
10f2d63a
VZ
9505ac_find_libraries=
9506for ac_dir in $SEARCH_LIB;
9507 do
f11bdd03 9508 for ac_extension in a so sl dylib; do
10f2d63a
VZ
9509 if test -f "$ac_dir/libXpm.$ac_extension"; then
9510 ac_find_libraries=$ac_dir
9511 break 2
9512 fi
9513 done
9514 done
9515
1e6feb95
VZ
9516 if test "$ac_find_libraries" != "" ; then
9517 GUI_TK_LIBRARY="-L$ac_find_libraries"
9518 XPM_LINK="-lXpm"
9519 cat >> confdefs.h <<\EOF
10f2d63a
VZ
9520#define wxHAVE_LIB_XPM 1
9521EOF
9522
1e6feb95
VZ
9523 echo "$ac_t""found at $ac_find_libraries" 1>&6
9524 else
9525 echo "$ac_t""no" 1>&6
9526 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
9527 fi
10f2d63a 9528
1e6feb95
VZ
9529 MESA_LINK=""
9530 echo $ac_n "checking for Mesa library""... $ac_c" 1>&6
f11bdd03 9531echo "configure:9532: checking for Mesa library" >&5
1e6feb95 9532
10f2d63a
VZ
9533ac_find_libraries=
9534for ac_dir in $SEARCH_LIB;
9535 do
f11bdd03 9536 for ac_extension in a so sl dylib; do
10f2d63a
VZ
9537 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
9538 ac_find_libraries=$ac_dir
9539 break 2
9540 fi
9541 done
9542 done
9543
1e6feb95
VZ
9544 if test "$ac_find_libraries" != "" ; then
9545 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -L$ac_find_libraries"
9546 MESA_LINK="-lMesaGL"
9547 echo "$ac_t""found at $ac_find_libraries" 1>&6
9548 else
9549 { echo "configure: error: no" 1>&2; exit 1; }
9550 fi
10f2d63a 9551
1e6feb95
VZ
9552 GUI_TK_LINK="-lwine $MESA_LINK $XPM_LINK -lXxf86dga -lXxf86vm -lSM -lICE -lXext -lXmu -lX11 -lncurses"
9553 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $GUI_TK_LINK"
9554 WXWINE=1
9555 TOOLKIT=MSW
9556 GUIDIST=MSW_DIST
9557 fi
698dcdb6 9558
1e6feb95
VZ
9559
9560 # If we find X, set shell vars x_includes and x_libraries to the
698dcdb6
VZ
9561# paths, otherwise set no_x=yes.
9562# Uses ac_ vars as temps to allow command line to override cache and checks.
9563# --without-x overrides everything else, but does not touch the cache.
9564echo $ac_n "checking for X""... $ac_c" 1>&6
f11bdd03 9565echo "configure:9566: checking for X" >&5
ab9b9eab
VZ
9566
9567# Check whether --with-x or --without-x was given.
9568if test "${with_x+set}" = set; then
9569 withval="$with_x"
698dcdb6
VZ
9570 :
9571fi
ba337fe7 9572
ab9b9eab
VZ
9573# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9574if test "x$with_x" = xno; then
9575 # The user explicitly disabled X.
9576 have_x=disabled
9577else
9578 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
9579 # Both variables are already set.
9580 have_x=yes
9581 else
698dcdb6
VZ
9582if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
9583 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab
VZ
9584else
9585 # One or both of the vars are not set, and there is no cached value.
698dcdb6
VZ
9586ac_x_includes=NO ac_x_libraries=NO
9587rm -fr conftestdir
9588if mkdir conftestdir; then
9589 cd conftestdir
ab9b9eab 9590 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
698dcdb6 9591 cat > Imakefile <<'EOF'
ab9b9eab
VZ
9592acfindx:
9593 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
9594EOF
9595 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
9596 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9597 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
9598 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
10f2d63a 9599 for ac_extension in a so sl; do
ab9b9eab 9600 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
698dcdb6 9601 test -f $ac_im_libdir/libX11.$ac_extension; then
ab9b9eab 9602 ac_im_usrlibdir=$ac_im_libdir; break
10f2d63a
VZ
9603 fi
9604 done
ab9b9eab
VZ
9605 # Screen out bogus values from the imake configuration. They are
9606 # bogus both because they are the default anyway, and because
9607 # using them would break gcc on systems where it needs fixed includes.
698dcdb6 9608 case "$ac_im_incroot" in
ab9b9eab 9609 /usr/include) ;;
698dcdb6 9610 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
ab9b9eab 9611 esac
698dcdb6 9612 case "$ac_im_usrlibdir" in
ab9b9eab 9613 /usr/lib | /lib) ;;
698dcdb6 9614 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
ab9b9eab 9615 esac
ba337fe7 9616 fi
ab9b9eab 9617 cd ..
698dcdb6 9618 rm -fr conftestdir
ab9b9eab 9619fi
10f2d63a 9620
698dcdb6
VZ
9621if test "$ac_x_includes" = NO; then
9622 # Guess where to find include files, by looking for this one X11 .h file.
9623 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
9624
ab9b9eab 9625 # First, try using that file with no special directory specified.
698dcdb6 9626cat > conftest.$ac_ext <<EOF
f11bdd03 9627#line 9628 "configure"
ab9b9eab 9628#include "confdefs.h"
698dcdb6
VZ
9629#include <$x_direct_test_include>
9630EOF
9631ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
f11bdd03 9632{ (eval echo configure:9633: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
9633ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9634if test -z "$ac_err"; then
9635 rm -rf conftest*
ab9b9eab
VZ
9636 # We can compile using X headers with no special include directory.
9637ac_x_includes=
9638else
698dcdb6
VZ
9639 echo "$ac_err" >&5
9640 echo "configure: failed program was:" >&5
ab9b9eab 9641 cat conftest.$ac_ext >&5
698dcdb6
VZ
9642 rm -rf conftest*
9643 # Look for the header file in a standard set of common directories.
9644# Check X11 before X11Rn because it is often a symlink to the current release.
9645 for ac_dir in \
9646 /usr/X11/include \
9647 /usr/X11R6/include \
9648 /usr/X11R5/include \
9649 /usr/X11R4/include \
9650 \
9651 /usr/include/X11 \
9652 /usr/include/X11R6 \
9653 /usr/include/X11R5 \
9654 /usr/include/X11R4 \
9655 \
9656 /usr/local/X11/include \
9657 /usr/local/X11R6/include \
9658 /usr/local/X11R5/include \
9659 /usr/local/X11R4/include \
9660 \
9661 /usr/local/include/X11 \
9662 /usr/local/include/X11R6 \
9663 /usr/local/include/X11R5 \
9664 /usr/local/include/X11R4 \
9665 \
9666 /usr/X386/include \
9667 /usr/x386/include \
9668 /usr/XFree86/include/X11 \
9669 \
9670 /usr/include \
9671 /usr/local/include \
9672 /usr/unsupported/include \
9673 /usr/athena/include \
9674 /usr/local/x11r5/include \
9675 /usr/lpp/Xamples/include \
9676 \
9677 /usr/openwin/include \
9678 /usr/openwin/share/include \
9679 ; \
9680 do
9681 if test -r "$ac_dir/$x_direct_test_include"; then
9682 ac_x_includes=$ac_dir
9683 break
9684 fi
9685 done
ab9b9eab 9686fi
698dcdb6
VZ
9687rm -f conftest*
9688fi # $ac_x_includes = NO
10f2d63a 9689
698dcdb6 9690if test "$ac_x_libraries" = NO; then
ab9b9eab 9691 # Check for the libraries.
698dcdb6
VZ
9692
9693 test -z "$x_direct_test_library" && x_direct_test_library=Xt
9694 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
9695
ab9b9eab
VZ
9696 # See if we find them without any special options.
9697 # Don't add to $LIBS permanently.
698dcdb6
VZ
9698 ac_save_LIBS="$LIBS"
9699 LIBS="-l$x_direct_test_library $LIBS"
9700cat > conftest.$ac_ext <<EOF
f11bdd03 9701#line 9702 "configure"
ab9b9eab 9702#include "confdefs.h"
698dcdb6
VZ
9703
9704int main() {
9705${x_direct_test_function}()
9706; return 0; }
9707EOF
f11bdd03 9708if { (eval echo configure:9709: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
9709 rm -rf conftest*
9710 LIBS="$ac_save_LIBS"
ab9b9eab
VZ
9711# We can link X programs with no special library path.
9712ac_x_libraries=
9713else
698dcdb6
VZ
9714 echo "configure: failed program was:" >&5
9715 cat conftest.$ac_ext >&5
9716 rm -rf conftest*
9717 LIBS="$ac_save_LIBS"
9718# First see if replacing the include by lib works.
9719# Check X11 before X11Rn because it is often a symlink to the current release.
9720for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
9721 /usr/X11/lib \
9722 /usr/X11R6/lib \
9723 /usr/X11R5/lib \
9724 /usr/X11R4/lib \
9725 \
9726 /usr/lib/X11 \
9727 /usr/lib/X11R6 \
9728 /usr/lib/X11R5 \
9729 /usr/lib/X11R4 \
9730 \
9731 /usr/local/X11/lib \
9732 /usr/local/X11R6/lib \
9733 /usr/local/X11R5/lib \
9734 /usr/local/X11R4/lib \
9735 \
9736 /usr/local/lib/X11 \
9737 /usr/local/lib/X11R6 \
9738 /usr/local/lib/X11R5 \
9739 /usr/local/lib/X11R4 \
9740 \
9741 /usr/X386/lib \
9742 /usr/x386/lib \
9743 /usr/XFree86/lib/X11 \
9744 \
9745 /usr/lib \
9746 /usr/local/lib \
9747 /usr/unsupported/lib \
9748 /usr/athena/lib \
9749 /usr/local/x11r5/lib \
9750 /usr/lpp/Xamples/lib \
9751 /lib/usr/lib/X11 \
9752 \
9753 /usr/openwin/lib \
9754 /usr/openwin/share/lib \
9755 ; \
ab9b9eab
VZ
9756do
9757 for ac_extension in a so sl; do
698dcdb6 9758 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
ab9b9eab
VZ
9759 ac_x_libraries=$ac_dir
9760 break 2
10f2d63a 9761 fi
10f2d63a 9762 done
ab9b9eab
VZ
9763done
9764fi
698dcdb6
VZ
9765rm -f conftest*
9766fi # $ac_x_libraries = NO
10f2d63a 9767
698dcdb6 9768if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
ab9b9eab
VZ
9769 # Didn't find X anywhere. Cache the known absence of X.
9770 ac_cv_have_x="have_x=no"
9771else
9772 # Record where we found X for the cache.
9773 ac_cv_have_x="have_x=yes \
9774 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
9775fi
9776fi
10f2d63a 9777 fi
ab9b9eab
VZ
9778 eval "$ac_cv_have_x"
9779fi # $with_x != no
10f2d63a 9780
ab9b9eab 9781if test "$have_x" != yes; then
698dcdb6 9782 echo "$ac_t""$have_x" 1>&6
ab9b9eab
VZ
9783 no_x=yes
9784else
9785 # If each of the values was on the command line, it overrides each guess.
9786 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9787 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9788 # Update the cache value to reflect the command line values.
9789 ac_cv_have_x="have_x=yes \
9790 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
698dcdb6 9791 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
ab9b9eab 9792fi
10f2d63a 9793
ab9b9eab
VZ
9794if test "$no_x" = yes; then
9795 # Not all programs may use this symbol, but it does not hurt to define it.
698dcdb6 9796 cat >> confdefs.h <<\EOF
ab9b9eab
VZ
9797#define X_DISPLAY_MISSING 1
9798EOF
10f2d63a 9799
ab9b9eab
VZ
9800 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
9801else
9802 if test -n "$x_includes"; then
9803 X_CFLAGS="$X_CFLAGS -I$x_includes"
10f2d63a
VZ
9804 fi
9805
ab9b9eab
VZ
9806 # It would also be nice to do this for all -L options, not just this one.
9807 if test -n "$x_libraries"; then
9808 X_LIBS="$X_LIBS -L$x_libraries"
9809 # For Solaris; some versions of Sun CC require a space after -R and
9810 # others require no space. Words are not sufficient . . . .
698dcdb6 9811 case "`(uname -sr) 2>/dev/null`" in
ab9b9eab 9812 "SunOS 5"*)
698dcdb6 9813 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
f11bdd03 9814echo "configure:9815: checking whether -R must be followed by a space" >&5
698dcdb6
VZ
9815 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
9816 cat > conftest.$ac_ext <<EOF
f11bdd03 9817#line 9818 "configure"
ab9b9eab 9818#include "confdefs.h"
10f2d63a 9819
698dcdb6 9820int main() {
788deba1 9821
698dcdb6
VZ
9822; return 0; }
9823EOF
f11bdd03 9824if { (eval echo configure:9825: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 9825 rm -rf conftest*
ab9b9eab
VZ
9826 ac_R_nospace=yes
9827else
698dcdb6
VZ
9828 echo "configure: failed program was:" >&5
9829 cat conftest.$ac_ext >&5
9830 rm -rf conftest*
9831 ac_R_nospace=no
ab9b9eab 9832fi
698dcdb6 9833rm -f conftest*
ab9b9eab 9834 if test $ac_R_nospace = yes; then
698dcdb6 9835 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
9836 X_LIBS="$X_LIBS -R$x_libraries"
9837 else
9838 LIBS="$ac_xsave_LIBS -R $x_libraries"
698dcdb6 9839 cat > conftest.$ac_ext <<EOF
f11bdd03 9840#line 9841 "configure"
ab9b9eab 9841#include "confdefs.h"
788deba1 9842
698dcdb6 9843int main() {
ab9b9eab 9844
698dcdb6
VZ
9845; return 0; }
9846EOF
f11bdd03 9847if { (eval echo configure:9848: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 9848 rm -rf conftest*
ab9b9eab
VZ
9849 ac_R_space=yes
9850else
698dcdb6
VZ
9851 echo "configure: failed program was:" >&5
9852 cat conftest.$ac_ext >&5
9853 rm -rf conftest*
9854 ac_R_space=no
ab9b9eab 9855fi
698dcdb6 9856rm -f conftest*
ab9b9eab 9857 if test $ac_R_space = yes; then
698dcdb6 9858 echo "$ac_t""yes" 1>&6
ab9b9eab
VZ
9859 X_LIBS="$X_LIBS -R $x_libraries"
9860 else
698dcdb6 9861 echo "$ac_t""neither works" 1>&6
ab9b9eab
VZ
9862 fi
9863 fi
698dcdb6 9864 LIBS="$ac_xsave_LIBS"
ab9b9eab
VZ
9865 esac
9866 fi
9867
9868 # Check for system-dependent libraries X programs must link with.
9869 # Do this before checking for the system-independent R6 libraries
9870 # (-lICE), since we may need -lsocket or whatever for X linking.
9871
9872 if test "$ISC" = yes; then
9873 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
9874 else
698dcdb6
VZ
9875 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
9876 # libraries were built with DECnet support. And karl@cs.umb.edu says
ab9b9eab 9877 # the Alpha needs dnet_stub (dnet does not exist).
698dcdb6 9878 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
f11bdd03 9879echo "configure:9880: checking for dnet_ntoa in -ldnet" >&5
698dcdb6
VZ
9880ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
9881if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9882 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 9883else
698dcdb6 9884 ac_save_LIBS="$LIBS"
ab9b9eab 9885LIBS="-ldnet $LIBS"
698dcdb6 9886cat > conftest.$ac_ext <<EOF
f11bdd03 9887#line 9888 "configure"
ab9b9eab
VZ
9888#include "confdefs.h"
9889/* Override any gcc2 internal prototype to avoid an error. */
9890/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
9891 builtin and then its argument prototype would still apply. */
9892char dnet_ntoa();
9893
9894int main() {
9895dnet_ntoa()
9896; return 0; }
9897EOF
f11bdd03 9898if { (eval echo configure:9899: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
9899 rm -rf conftest*
9900 eval "ac_cv_lib_$ac_lib_var=yes"
9901else
9902 echo "configure: failed program was:" >&5
9903 cat conftest.$ac_ext >&5
9904 rm -rf conftest*
9905 eval "ac_cv_lib_$ac_lib_var=no"
9906fi
9907rm -f conftest*
9908LIBS="$ac_save_LIBS"
9909
9910fi
9911if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9912 echo "$ac_t""yes" 1>&6
ab9b9eab 9913 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
698dcdb6
VZ
9914else
9915 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
9916fi
9917
9918 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
698dcdb6 9919 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
f11bdd03 9920echo "configure:9921: checking for dnet_ntoa in -ldnet_stub" >&5
698dcdb6
VZ
9921ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
9922if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9923 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 9924else
698dcdb6 9925 ac_save_LIBS="$LIBS"
ab9b9eab 9926LIBS="-ldnet_stub $LIBS"
698dcdb6 9927cat > conftest.$ac_ext <<EOF
f11bdd03 9928#line 9929 "configure"
ab9b9eab
VZ
9929#include "confdefs.h"
9930/* Override any gcc2 internal prototype to avoid an error. */
9931/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
9932 builtin and then its argument prototype would still apply. */
9933char dnet_ntoa();
9934
9935int main() {
9936dnet_ntoa()
9937; return 0; }
9938EOF
f11bdd03 9939if { (eval echo configure:9940: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
9940 rm -rf conftest*
9941 eval "ac_cv_lib_$ac_lib_var=yes"
9942else
9943 echo "configure: failed program was:" >&5
9944 cat conftest.$ac_ext >&5
9945 rm -rf conftest*
9946 eval "ac_cv_lib_$ac_lib_var=no"
9947fi
9948rm -f conftest*
9949LIBS="$ac_save_LIBS"
9950
9951fi
9952if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9953 echo "$ac_t""yes" 1>&6
ab9b9eab 9954 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
698dcdb6
VZ
9955else
9956 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
9957fi
9958
9959 fi
9960
9961 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
9962 # to get the SysV transport functions.
698dcdb6 9963 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
ab9b9eab
VZ
9964 # needs -lnsl.
9965 # The nsl library prevents programs from opening the X display
698dcdb6
VZ
9966 # on Irix 5.2, according to dickey@clark.net.
9967 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
f11bdd03 9968echo "configure:9969: checking for gethostbyname" >&5
698dcdb6
VZ
9969if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
9970 echo $ac_n "(cached) $ac_c" 1>&6
9971else
9972 cat > conftest.$ac_ext <<EOF
f11bdd03 9973#line 9974 "configure"
ab9b9eab
VZ
9974#include "confdefs.h"
9975/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 9976 which can conflict with char gethostbyname(); below. */
ab9b9eab
VZ
9977#include <assert.h>
9978/* Override any gcc2 internal prototype to avoid an error. */
9979/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
9980 builtin and then its argument prototype would still apply. */
9981char gethostbyname();
9982
9983int main() {
ab9b9eab
VZ
9984
9985/* The GNU C library defines this for functions which it implements
9986 to always fail with ENOSYS. Some functions are actually named
9987 something starting with __ and the normal name is an alias. */
9988#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
9989choke me
9990#else
698dcdb6 9991gethostbyname();
ab9b9eab
VZ
9992#endif
9993
698dcdb6
VZ
9994; return 0; }
9995EOF
f11bdd03 9996if { (eval echo configure:9997: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
9997 rm -rf conftest*
9998 eval "ac_cv_func_gethostbyname=yes"
9999else
10000 echo "configure: failed program was:" >&5
10001 cat conftest.$ac_ext >&5
10002 rm -rf conftest*
10003 eval "ac_cv_func_gethostbyname=no"
10004fi
10005rm -f conftest*
10006fi
10007
10008if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
10009 echo "$ac_t""yes" 1>&6
10010 :
10011else
10012 echo "$ac_t""no" 1>&6
10013fi
ab9b9eab
VZ
10014
10015 if test $ac_cv_func_gethostbyname = no; then
698dcdb6 10016 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
f11bdd03 10017echo "configure:10018: checking for gethostbyname in -lnsl" >&5
698dcdb6
VZ
10018ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
10019if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10020 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 10021else
698dcdb6 10022 ac_save_LIBS="$LIBS"
ab9b9eab 10023LIBS="-lnsl $LIBS"
698dcdb6 10024cat > conftest.$ac_ext <<EOF
f11bdd03 10025#line 10026 "configure"
ab9b9eab
VZ
10026#include "confdefs.h"
10027/* Override any gcc2 internal prototype to avoid an error. */
10028/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
10029 builtin and then its argument prototype would still apply. */
10030char gethostbyname();
6232543b 10031
698dcdb6
VZ
10032int main() {
10033gethostbyname()
10034; return 0; }
10035EOF
f11bdd03 10036if { (eval echo configure:10037: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
10037 rm -rf conftest*
10038 eval "ac_cv_lib_$ac_lib_var=yes"
703e0a69 10039else
698dcdb6
VZ
10040 echo "configure: failed program was:" >&5
10041 cat conftest.$ac_ext >&5
10042 rm -rf conftest*
10043 eval "ac_cv_lib_$ac_lib_var=no"
10044fi
10045rm -f conftest*
10046LIBS="$ac_save_LIBS"
1e487827 10047
698dcdb6
VZ
10048fi
10049if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10050 echo "$ac_t""yes" 1>&6
10051 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
10052else
10053 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
10054fi
10055
10056 fi
10057
10058 # lieder@skyler.mavd.honeywell.com says without -lsocket,
10059 # socket/setsockopt and other routines are undefined under SCO ODT
10060 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
698dcdb6
VZ
10061 # on later versions), says simon@lia.di.epfl.ch: it contains
10062 # gethostby* variants that don't use the nameserver (or something).
10063 # -lsocket must be given before -lnsl if both are needed.
10064 # We assume that if connect needs -lnsl, so does gethostbyname.
10065 echo $ac_n "checking for connect""... $ac_c" 1>&6
f11bdd03 10066echo "configure:10067: checking for connect" >&5
698dcdb6
VZ
10067if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
10068 echo $ac_n "(cached) $ac_c" 1>&6
10069else
10070 cat > conftest.$ac_ext <<EOF
f11bdd03 10071#line 10072 "configure"
ab9b9eab
VZ
10072#include "confdefs.h"
10073/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 10074 which can conflict with char connect(); below. */
ab9b9eab
VZ
10075#include <assert.h>
10076/* Override any gcc2 internal prototype to avoid an error. */
10077/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
10078 builtin and then its argument prototype would still apply. */
10079char connect();
10080
10081int main() {
ab9b9eab
VZ
10082
10083/* The GNU C library defines this for functions which it implements
10084 to always fail with ENOSYS. Some functions are actually named
10085 something starting with __ and the normal name is an alias. */
10086#if defined (__stub_connect) || defined (__stub___connect)
10087choke me
10088#else
698dcdb6 10089connect();
ab9b9eab
VZ
10090#endif
10091
698dcdb6
VZ
10092; return 0; }
10093EOF
f11bdd03 10094if { (eval echo configure:10095: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
10095 rm -rf conftest*
10096 eval "ac_cv_func_connect=yes"
10097else
10098 echo "configure: failed program was:" >&5
10099 cat conftest.$ac_ext >&5
10100 rm -rf conftest*
10101 eval "ac_cv_func_connect=no"
10102fi
10103rm -f conftest*
10104fi
10105
10106if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
10107 echo "$ac_t""yes" 1>&6
10108 :
10109else
10110 echo "$ac_t""no" 1>&6
10111fi
ab9b9eab
VZ
10112
10113 if test $ac_cv_func_connect = no; then
698dcdb6 10114 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
f11bdd03 10115echo "configure:10116: checking for connect in -lsocket" >&5
698dcdb6
VZ
10116ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
10117if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10118 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 10119else
698dcdb6 10120 ac_save_LIBS="$LIBS"
ab9b9eab 10121LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
698dcdb6 10122cat > conftest.$ac_ext <<EOF
f11bdd03 10123#line 10124 "configure"
ab9b9eab
VZ
10124#include "confdefs.h"
10125/* Override any gcc2 internal prototype to avoid an error. */
10126/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
10127 builtin and then its argument prototype would still apply. */
10128char connect();
10129
10130int main() {
10131connect()
10132; return 0; }
10133EOF
f11bdd03 10134if { (eval echo configure:10135: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
10135 rm -rf conftest*
10136 eval "ac_cv_lib_$ac_lib_var=yes"
10137else
10138 echo "configure: failed program was:" >&5
10139 cat conftest.$ac_ext >&5
10140 rm -rf conftest*
10141 eval "ac_cv_lib_$ac_lib_var=no"
10142fi
10143rm -f conftest*
10144LIBS="$ac_save_LIBS"
10145
10146fi
10147if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10148 echo "$ac_t""yes" 1>&6
ab9b9eab 10149 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
698dcdb6
VZ
10150else
10151 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
10152fi
10153
10154 fi
10155
698dcdb6
VZ
10156 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
10157 echo $ac_n "checking for remove""... $ac_c" 1>&6
f11bdd03 10158echo "configure:10159: checking for remove" >&5
698dcdb6
VZ
10159if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
10160 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 10161else
698dcdb6 10162 cat > conftest.$ac_ext <<EOF
f11bdd03 10163#line 10164 "configure"
ab9b9eab
VZ
10164#include "confdefs.h"
10165/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 10166 which can conflict with char remove(); below. */
ab9b9eab
VZ
10167#include <assert.h>
10168/* Override any gcc2 internal prototype to avoid an error. */
10169/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
10170 builtin and then its argument prototype would still apply. */
10171char remove();
10172
10173int main() {
ab9b9eab
VZ
10174
10175/* The GNU C library defines this for functions which it implements
10176 to always fail with ENOSYS. Some functions are actually named
10177 something starting with __ and the normal name is an alias. */
10178#if defined (__stub_remove) || defined (__stub___remove)
10179choke me
10180#else
698dcdb6 10181remove();
ab9b9eab
VZ
10182#endif
10183
698dcdb6
VZ
10184; return 0; }
10185EOF
f11bdd03 10186if { (eval echo configure:10187: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
10187 rm -rf conftest*
10188 eval "ac_cv_func_remove=yes"
10189else
10190 echo "configure: failed program was:" >&5
10191 cat conftest.$ac_ext >&5
10192 rm -rf conftest*
10193 eval "ac_cv_func_remove=no"
10194fi
10195rm -f conftest*
10196fi
10197
10198if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
10199 echo "$ac_t""yes" 1>&6
10200 :
10201else
10202 echo "$ac_t""no" 1>&6
10203fi
ab9b9eab
VZ
10204
10205 if test $ac_cv_func_remove = no; then
698dcdb6 10206 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
f11bdd03 10207echo "configure:10208: checking for remove in -lposix" >&5
698dcdb6
VZ
10208ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
10209if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10210 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 10211else
698dcdb6 10212 ac_save_LIBS="$LIBS"
ab9b9eab 10213LIBS="-lposix $LIBS"
698dcdb6 10214cat > conftest.$ac_ext <<EOF
f11bdd03 10215#line 10216 "configure"
ab9b9eab
VZ
10216#include "confdefs.h"
10217/* Override any gcc2 internal prototype to avoid an error. */
10218/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
10219 builtin and then its argument prototype would still apply. */
10220char remove();
10221
10222int main() {
10223remove()
10224; return 0; }
10225EOF
f11bdd03 10226if { (eval echo configure:10227: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
10227 rm -rf conftest*
10228 eval "ac_cv_lib_$ac_lib_var=yes"
10229else
10230 echo "configure: failed program was:" >&5
10231 cat conftest.$ac_ext >&5
10232 rm -rf conftest*
10233 eval "ac_cv_lib_$ac_lib_var=no"
10234fi
10235rm -f conftest*
10236LIBS="$ac_save_LIBS"
10237
10238fi
10239if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10240 echo "$ac_t""yes" 1>&6
ab9b9eab 10241 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
698dcdb6
VZ
10242else
10243 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
10244fi
10245
10246 fi
10247
10248 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
698dcdb6 10249 echo $ac_n "checking for shmat""... $ac_c" 1>&6
f11bdd03 10250echo "configure:10251: checking for shmat" >&5
698dcdb6
VZ
10251if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
10252 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 10253else
698dcdb6 10254 cat > conftest.$ac_ext <<EOF
f11bdd03 10255#line 10256 "configure"
ab9b9eab
VZ
10256#include "confdefs.h"
10257/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 10258 which can conflict with char shmat(); below. */
ab9b9eab
VZ
10259#include <assert.h>
10260/* Override any gcc2 internal prototype to avoid an error. */
10261/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
10262 builtin and then its argument prototype would still apply. */
10263char shmat();
10264
10265int main() {
ab9b9eab
VZ
10266
10267/* The GNU C library defines this for functions which it implements
10268 to always fail with ENOSYS. Some functions are actually named
10269 something starting with __ and the normal name is an alias. */
10270#if defined (__stub_shmat) || defined (__stub___shmat)
10271choke me
10272#else
698dcdb6 10273shmat();
ab9b9eab
VZ
10274#endif
10275
698dcdb6
VZ
10276; return 0; }
10277EOF
f11bdd03 10278if { (eval echo configure:10279: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
10279 rm -rf conftest*
10280 eval "ac_cv_func_shmat=yes"
10281else
10282 echo "configure: failed program was:" >&5
10283 cat conftest.$ac_ext >&5
10284 rm -rf conftest*
10285 eval "ac_cv_func_shmat=no"
10286fi
10287rm -f conftest*
10288fi
10289
10290if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
10291 echo "$ac_t""yes" 1>&6
10292 :
10293else
10294 echo "$ac_t""no" 1>&6
10295fi
ab9b9eab
VZ
10296
10297 if test $ac_cv_func_shmat = no; then
698dcdb6 10298 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
f11bdd03 10299echo "configure:10300: checking for shmat in -lipc" >&5
698dcdb6
VZ
10300ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
10301if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10302 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 10303else
698dcdb6 10304 ac_save_LIBS="$LIBS"
ab9b9eab 10305LIBS="-lipc $LIBS"
698dcdb6 10306cat > conftest.$ac_ext <<EOF
f11bdd03 10307#line 10308 "configure"
ab9b9eab
VZ
10308#include "confdefs.h"
10309/* Override any gcc2 internal prototype to avoid an error. */
10310/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
10311 builtin and then its argument prototype would still apply. */
10312char shmat();
10313
10314int main() {
10315shmat()
10316; return 0; }
10317EOF
f11bdd03 10318if { (eval echo configure:10319: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
10319 rm -rf conftest*
10320 eval "ac_cv_lib_$ac_lib_var=yes"
10321else
10322 echo "configure: failed program was:" >&5
10323 cat conftest.$ac_ext >&5
10324 rm -rf conftest*
10325 eval "ac_cv_lib_$ac_lib_var=no"
10326fi
10327rm -f conftest*
10328LIBS="$ac_save_LIBS"
10329
10330fi
10331if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10332 echo "$ac_t""yes" 1>&6
ab9b9eab 10333 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
698dcdb6
VZ
10334else
10335 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
10336fi
10337
10338 fi
10339 fi
10340
10341 # Check for libraries that X11R6 Xt/Xaw programs need.
698dcdb6 10342 ac_save_LDFLAGS="$LDFLAGS"
ab9b9eab
VZ
10343 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
10344 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
10345 # check for ICE first), but we must link in the order -lSM -lICE or
10346 # we get undefined symbols. So assume we have SM if we have ICE.
10347 # These have to be linked with before -lX11, unlike the other
10348 # libraries we check for below, so use a different variable.
698dcdb6
VZ
10349 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
10350 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
f11bdd03 10351echo "configure:10352: checking for IceConnectionNumber in -lICE" >&5
698dcdb6
VZ
10352ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
10353if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10354 echo $ac_n "(cached) $ac_c" 1>&6
10355else
10356 ac_save_LIBS="$LIBS"
ab9b9eab 10357LIBS="-lICE $X_EXTRA_LIBS $LIBS"
698dcdb6 10358cat > conftest.$ac_ext <<EOF
f11bdd03 10359#line 10360 "configure"
ab9b9eab
VZ
10360#include "confdefs.h"
10361/* Override any gcc2 internal prototype to avoid an error. */
10362/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
10363 builtin and then its argument prototype would still apply. */
10364char IceConnectionNumber();
10365
10366int main() {
10367IceConnectionNumber()
10368; return 0; }
10369EOF
f11bdd03 10370if { (eval echo configure:10371: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
10371 rm -rf conftest*
10372 eval "ac_cv_lib_$ac_lib_var=yes"
10373else
10374 echo "configure: failed program was:" >&5
10375 cat conftest.$ac_ext >&5
10376 rm -rf conftest*
10377 eval "ac_cv_lib_$ac_lib_var=no"
10378fi
10379rm -f conftest*
10380LIBS="$ac_save_LIBS"
10381
10382fi
10383if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10384 echo "$ac_t""yes" 1>&6
ab9b9eab 10385 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
698dcdb6
VZ
10386else
10387 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
10388fi
10389
698dcdb6 10390 LDFLAGS="$ac_save_LDFLAGS"
ab9b9eab
VZ
10391
10392fi
10393
1e6feb95
VZ
10394 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10395 LDFLAGS="$LDFLAGS $X_LIBS"
ab9b9eab 10396
1e6feb95
VZ
10397 if test "$wxUSE_MOTIF" = 1; then
10398 if test "$no_x" = "yes"; then
10399 { echo "configure: error: X11 not found" 1>&2; exit 1; }
10400 fi
ab9b9eab 10401
1e6feb95
VZ
10402 GUI_TK_LIBRARY="$X_LIBS"
10403 TOOLKIT_INCLUDE="$X_CFLAGS"
ab9b9eab 10404
1e6feb95 10405 AFMINSTALL=afminstall
dad6c0ea 10406
1e6feb95
VZ
10407
10408 COMPILED_X_PROGRAM=0
cd6d6d5b 10409
1e6feb95 10410 echo $ac_n "checking for Motif/Lesstif headers""... $ac_c" 1>&6
f11bdd03 10411echo "configure:10412: checking for Motif/Lesstif headers" >&5
1e6feb95 10412
ab9b9eab
VZ
10413ac_find_includes=
10414for ac_dir in $SEARCH_INCLUDE;
10415 do
10416 if test -f "$ac_dir/Xm/Xm.h"; then
10417 ac_find_includes=$ac_dir
10418 break
10419 fi
10420 done
10421
1e6feb95
VZ
10422 if test "$ac_find_includes" != "" ; then
10423 echo "$ac_t""found $ac_find_includes" 1>&6
10424 else
10425 cat > conftest.$ac_ext <<EOF
f11bdd03 10426#line 10427 "configure"
cd6d6d5b
VZ
10427#include "confdefs.h"
10428
1e6feb95
VZ
10429 #include <Xm/Xm.h>
10430
698dcdb6 10431int main() {
cd6d6d5b 10432
1e6feb95 10433 int version;
cd6d6d5b 10434
1e6feb95
VZ
10435 version = xmUseVersion;
10436
698dcdb6
VZ
10437; return 0; }
10438EOF
f11bdd03 10439if { (eval echo configure:10440: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
10440 rm -rf conftest*
10441
1e6feb95
VZ
10442 echo "$ac_t""found in default search path" 1>&6
10443 COMPILED_X_PROGRAM=1
10444
cd6d6d5b 10445else
698dcdb6
VZ
10446 echo "configure: failed program was:" >&5
10447 cat conftest.$ac_ext >&5
10448 rm -rf conftest*
10449
1e6feb95
VZ
10450 echo "$ac_t""no" 1>&6
10451 { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; }
10452
698dcdb6 10453
cd6d6d5b 10454fi
698dcdb6 10455rm -f conftest*
1e6feb95 10456 fi
ab9b9eab 10457
1e6feb95
VZ
10458 if test "$COMPILED_X_PROGRAM" = 0; then
10459 echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6
f11bdd03 10460echo "configure:10461: checking for Motif/Lesstif library" >&5
1e6feb95 10461
ab9b9eab
VZ
10462ac_find_libraries=
10463for ac_dir in $SEARCH_LIB;
10464 do
f11bdd03 10465 for ac_extension in a so sl dylib; do
ab9b9eab
VZ
10466 if test -f "$ac_dir/libXm.$ac_extension"; then
10467 ac_find_libraries=$ac_dir
10468 break 2
10469 fi
10470 done
10471 done
10472
1e6feb95
VZ
10473 if test "$ac_find_libraries" != "" ; then
10474
ab9b9eab
VZ
10475 ac_path_to_include=$ac_find_includes
10476 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
10477 result=$?
10478 if test $result = 0; then
10479 ac_path_to_include=""
10480 else
10481 ac_path_to_include="-I$ac_find_includes"
10482 fi
10483
1e6feb95 10484
ab9b9eab
VZ
10485 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
10486 result=$?
10487 if test $result = 0; then
10488 ac_path_to_link=""
10489 else
10490 ac_path_to_link="-L$ac_find_libraries"
10491 fi
10492
698dcdb6 10493
1e6feb95
VZ
10494 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link"
10495 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE $ac_path_to_include"
10496 echo "$ac_t""found at $ac_find_libraries" 1>&6
10497 else
10498 cat > conftest.$ac_ext <<EOF
f11bdd03 10499#line 10500 "configure"
cd6d6d5b 10500#include "confdefs.h"
ab9b9eab 10501
1e6feb95
VZ
10502 #include <Xm/Xm.h>
10503
698dcdb6 10504int main() {
ab9b9eab 10505
1e6feb95 10506 int version;
ab9b9eab 10507
1e6feb95
VZ
10508 version = xmUseVersion;
10509
698dcdb6
VZ
10510; return 0; }
10511EOF
f11bdd03 10512if { (eval echo configure:10513: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
10513 rm -rf conftest*
10514
1e6feb95
VZ
10515 echo "$ac_t""found in default search path" 1>&6
10516 COMPILED_X_PROGRAM=1
10517
cd6d6d5b 10518else
698dcdb6
VZ
10519 echo "configure: failed program was:" >&5
10520 cat conftest.$ac_ext >&5
10521 rm -rf conftest*
10522
1e6feb95
VZ
10523 echo "$ac_t""no" 1>&6
10524 { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; }
10525
698dcdb6 10526
cd6d6d5b 10527fi
698dcdb6 10528rm -f conftest*
1e6feb95 10529 fi
cd6d6d5b 10530 fi
ab9b9eab 10531
1e6feb95
VZ
10532
10533 XPM_LINK=""
10534 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
f11bdd03 10535echo "configure:10536: checking for Xpm library" >&5
1e6feb95 10536
ab9b9eab
VZ
10537ac_find_libraries=
10538for ac_dir in $SEARCH_LIB;
10539 do
f11bdd03 10540 for ac_extension in a so sl dylib; do
ab9b9eab
VZ
10541 if test -f "$ac_dir/libXpm.$ac_extension"; then
10542 ac_find_libraries=$ac_dir
10543 break 2
10544 fi
10545 done
10546 done
10547
1e6feb95
VZ
10548 if test "$ac_find_libraries" != "" ; then
10549
ab9b9eab
VZ
10550 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
10551 result=$?
10552 if test $result = 0; then
10553 ac_path_to_link=""
10554 else
10555 ac_path_to_link="-L$ac_find_libraries"
10556 fi
10557
1e6feb95
VZ
10558 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link"
10559 XPM_LINK="-lXpm "
10560 cat >> confdefs.h <<\EOF
ab9b9eab
VZ
10561#define wxHAVE_LIB_XPM 1
10562EOF
10563
1e6feb95
VZ
10564 echo "$ac_t""found at $ac_find_libraries" 1>&6
10565 else
10566 cat > conftest.$ac_ext <<EOF
f11bdd03 10567#line 10568 "configure"
cd6d6d5b
VZ
10568#include "confdefs.h"
10569
1e6feb95
VZ
10570 #include <X11/xpm.h>
10571
698dcdb6 10572int main() {
cd6d6d5b 10573
1e6feb95 10574 int version;
cd6d6d5b 10575
1e6feb95
VZ
10576 version = XpmLibraryVersion();
10577
698dcdb6
VZ
10578; return 0; }
10579EOF
f11bdd03 10580if { (eval echo configure:10581: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
10581 rm -rf conftest*
10582
1e6feb95
VZ
10583 XPM_LINK="-lXpm "
10584 cat >> confdefs.h <<\EOF
3ace2e6d
SN
10585#define wxHAVE_LIB_XPM 1
10586EOF
10587
1e6feb95
VZ
10588 echo "$ac_t""found in default search path" 1>&6
10589 COMPILED_X_PROGRAM=0
10590
cd6d6d5b 10591else
698dcdb6
VZ
10592 echo "configure: failed program was:" >&5
10593 cat conftest.$ac_ext >&5
10594 rm -rf conftest*
10595
1e6feb95
VZ
10596 echo "$ac_t""no" 1>&6
10597 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
10598
698dcdb6 10599
cd6d6d5b 10600fi
698dcdb6 10601rm -f conftest*
1e6feb95
VZ
10602 fi
10603
10604 GUI_TK_LINK="-lXm $XPM_LINK -lXmu -lXext -lXt -lX11"
10605 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $GUI_TK_LINK"
10606 TOOLKIT=MOTIF
10607 GUIDIST=MOTIF_DIST
ab9b9eab
VZ
10608 fi
10609
1e6feb95
VZ
10610 if test "$wxUSE_MAC" = 1; then
10611 TOOLKIT=MAC
10612 GUIDIST=MACX_DIST
10613 fi
10f2d63a 10614
1e6feb95
VZ
10615 if test "$wxUSE_PM" = 1; then
10616 TOOLKIT=PM
10617 GUIDIST=GTK_DIST
10618 fi
b4085ce6 10619
1e6feb95
VZ
10620 if test "$TOOLKIT" != "PM" ; then
10621 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
10622 else
10623 TOOLKIT_DIR="os2"
10624 fi
e07802fc 10625
1e6feb95 10626 TOOLKIT_NAME="${TOOLKIT_DIR}"
10f2d63a 10627
1e6feb95
VZ
10628 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}"
10629
10630 if test "$TOOLKIT_NAME" = "motif"; then
10631 TOOLKIT_VPATH="${TOOLKIT_VPATH}${PATH_IFS}\${top_srcdir}/src/motif/xmcombo"
10632 fi
10633
10634 if test "$wxUSE_UNIVERSAL" = "yes"; then
10635 TOOLKIT_NAME="${TOOLKIT_NAME}univ"
10636 UNIV_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes"
10637 TOOLKIT_VPATH="${UNIV_VPATH}${PATH_IFS}${TOOLKIT_VPATH}"
10638 SETUPH_DIR="univ"
f6bcfd97 10639 else
1e6feb95
VZ
10640 SETUPH_DIR="${TOOLKIT_DIR}"
10641 fi
10642
10643 if test "$wxUSE_DEBUG_FLAG" = "yes"; then
10644 TOOLKIT_NAME="${TOOLKIT_NAME}d"
f6bcfd97
BP
10645 fi
10646
2224580a 10647 TOOLKIT_DEF="-D__WX${TOOLKIT}__"
1e6feb95
VZ
10648 if test "$wxUSE_UNIVERSAL" = "yes"; then
10649 TOOLKIT_DEF="${TOOLKIT_DEF} -D__WXUNIVERSAL__"
10650 fi
10f2d63a 10651
f6bcfd97 10652 WX_LIBRARY="wx_${TOOLKIT_NAME}"
10f2d63a 10653
1e6feb95
VZ
10654 if test "$wxUSE_UNIVERSAL" = "yes"; then
10655 ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}"
10656 else
10657 ALL_OBJECTS="\$(GUIOBJS)"
10658 fi
10659
10660 ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)"
10661
10662 if test "$TOOLKIT" != "MSW"; then
10663 ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)"
10664 fi
10665
10666 if test "$wxUSE_HTML" = "yes"; then
10667 ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)"
10668 fi
3fcdd07b 10669
1e6feb95
VZ
10670 if test "$TOOLKIT" != "MSW"; then
10671 if test "$wxUSE_ODBC" = "yes" ; then
10672 ALL_OBJECTS="${ALL_OBJECTS} \$(IODBCOBJS)"
10673 fi
3fcdd07b
VZ
10674 fi
10675
831b3152
VZ
10676 if test "x$REGEX_INCLUDE" != "x" ; then
10677 ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)"
10678 fi
10679
d9d8273d 10680 if test "$wxUSE_LIBJPEG" = "yes" ; then
2224580a 10681 ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)"
d9d8273d
RR
10682 fi
10683 if test "$wxUSE_LIBTIFF" = "yes" ; then
10684 ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)"
10685 fi
10686 if test "$wxUSE_LIBPNG" = "yes" ; then
10687 ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)"
10688 fi
10689 if test "$wxUSE_ZLIB" = "yes" ; then
10690 ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
10691 fi
3fed1840
RR
10692 if test "$wxUSE_FREETYPE" = "yes" ; then
10693 ALL_OBJECTS="${ALL_OBJECTS} \$(FREETYPEOBJS)"
10694 fi
2224580a 10695
1e6feb95
VZ
10696 if test "$wxUSE_UNIVERSAL" = "yes"; then
10697 ALL_DEPFILES="\$(GUI_LOWLEVEL_DEPS) \$(UNIVDEPS)"
10698 else
10699 ALL_DEPFILES="\$(GUIDEPS)"
10700 fi
10701
10702 ALL_DEPFILES="${ALL_DEPFILES} \$(COMMONDEPS) \$(GENERICDEPS)"
10703
10704 if test "$TOOLKIT" != "MSW"; then
10705 ALL_DEPFILES="${ALL_DEPFILES} \$(UNIXDEPS)"
10706 fi
10707
10708 if test "$wxUSE_HTML" = "yes"; then
10709 ALL_DEPFILES="${ALL_DEPFILES} \$(HTMLDEPS)"
10710 fi
10711
879df073 10712 PORT_FILES="\${top_srcdir}/src/\$(TOOLKITDIR)/files.lst"
1e6feb95 10713 if test "$wxUSE_UNIVERSAL" = "yes"; then
879df073 10714 PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst"
1e6feb95 10715 fi
2224580a
VZ
10716 RPM_FILES="src/\$(TOOLKITDIR)/rpmfiles.lst"
10717 RPM_SPEC="wx\$(TOOLKIT).spec"
10718
10719 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
10720 DISTDIR="wx\$(TOOLKIT)"
10f2d63a 10721else
dad6c0ea
VZ
10722 USE_GUI=0
10723
f6bcfd97
BP
10724 TOOLKIT_DIR="base"
10725
0b2effe9
VZ
10726 TOOLKIT_VPATH="."
10727
f6bcfd97
BP
10728 if test "$wxUSE_DEBUG_FLAG" = "yes"; then
10729 TOOLKIT_NAME="${TOOLKIT_DIR}d"
10730 else
10731 TOOLKIT_NAME="${TOOLKIT_DIR}"
10732 fi
10733
07eb77a6
RL
10734 TOOLKIT_DEF="-D__WXBASE__"
10735
b4085ce6
GD
10736 ALL_OBJECTS="\$(BASE_OBJS) \$(BASE_UNIX_OBJS)"
10737 ALL_DEPFILES="\$(BASE_DEPS) \$(BASE_UNIX_DEPS)"
10f2d63a 10738
0b2effe9
VZ
10739 if test "x$REGEX_INCLUDE" != "x" ; then
10740 ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)"
10741 fi
10742
a20b6d3a
VZ
10743 if test "$wxUSE_ZLIB" = "yes" ; then
10744 ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
10745 fi
10746
f6bcfd97 10747 WX_LIBRARY="wx_${TOOLKIT_NAME}"
2224580a 10748
831b3152 10749 PORT_FILES="\${top_srcdir}/src/files.lst"
2224580a
VZ
10750 RPM_FILES="src/rpmfiles.lst"
10751 RPM_SPEC="wxBase.spec"
10752
10753 GUIDIST="BASE_DIST"
10754 DISTDIR="wxBase"
10f2d63a
VZ
10755fi
10756
10757WX_LIBRARY_NAME="lib${WX_LIBRARY}.la"
bdad4e7e 10758WX_LIBRARY_NAME_GL="lib${WX_LIBRARY}_gl.la"
10f2d63a
VZ
10759
10760WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a"
bdad4e7e 10761WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY}_gl.a"
10f2d63a
VZ
10762
10763WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}-${WX_RELEASE}.so.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
bdad4e7e 10764WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.so.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
10f2d63a
VZ
10765
10766WX_LIBRARY_LINK1="lib${WX_LIBRARY}-${WX_RELEASE}.so.${WX_CURRENT}"
10767WX_LIBRARY_LINK2="lib${WX_LIBRARY}-${WX_RELEASE}.so"
10768WX_LIBRARY_LINK3="lib${WX_LIBRARY}.so"
bdad4e7e
RR
10769WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.so.${WX_CURRENT}"
10770WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.so"
10771WX_LIBRARY_LINK3_GL="lib${WX_LIBRARY}_gl.so"
10f2d63a
VZ
10772
10773SHARED_LD=
10774PIC_FLAG=
10775WX_ALL=
10776WX_ALL_INSTALLED=
1d62a8b4 10777BURNT_LIBRARY_NAME=
f6bcfd97 10778WX_TARGET_LIBRARY_SONAME=
10f2d63a 10779
698dcdb6 10780
10f2d63a
VZ
10781if test "$wxUSE_SHARED" = "yes"; then
10782 case "${host}" in
10783 *-hp-hpux* )
10784 if test "$GCC" = yes ; then
69ffe1d2 10785 SHARED_LD="${CC} -shared -fPIC -o"
10f2d63a
VZ
10786 PIC_FLAG="-fPIC"
10787 else
f6bcfd97
BP
10788 LDFLAGS="-L/usr/lib"
10789
10f2d63a
VZ
10790 SHARED_LD="${CXX} -b -o"
10791 PIC_FLAG="+Z"
10792 fi
f6bcfd97
BP
10793 WX_LIBRARY_NAME_SHARED="libwx_${TOOLKIT_NAME}.sl"
10794 WX_LIBRARY_NAME_SHARED_GL="libwx_${TOOLKIT_NAME}_gl.sl"
c661ecca 10795 if test "$wxUSE_OPENGL" = "yes"; then
f6bcfd97 10796 WX_ALL_INSTALLED="preinstall_gl"
c661ecca
RR
10797 WX_ALL="${WX_LIBRARY_NAME_SHARED} ${WX_LIBRARY_NAME_SHARED_GL}"
10798 else
10799 WX_ALL="${WX_LIBRARY_NAME_SHARED}"
10800 fi
10f2d63a 10801 ;;
b12915c1
VZ
10802
10803 *-*-linux* )
10f2d63a
VZ
10804 SHARED_LD="${CC} -shared -o"
10805 PIC_FLAG="-fPIC"
00cf1208 10806 if test "$wxUSE_BURNT_NAME" = "yes" ; then
05cdfc6f 10807 BURNT_LIBRARY_NAME="-Wl,-soname,${WX_LIBRARY_LINK1}"
bdad4e7e 10808 BURNT_LIBRARY_NAME_GL="-Wl,-soname,${WX_LIBRARY_LINK1_GL}"
f6bcfd97 10809 WX_TARGET_LIBRARY_SONAME="-Wl,-soname,\$(TARGETLIB_LINK1)"
00cf1208 10810 fi
c661ecca
RR
10811 if test "$wxUSE_OPENGL" = "yes"; then
10812 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
10813 WX_ALL="CREATE_LINKS CREATE_LINKS_GL"
10814 else
10815 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
10816 WX_ALL="CREATE_LINKS"
422107f9 10817 fi
00cf1208 10818 ;;
10f2d63a
VZ
10819 *-*-irix5* | *-*-irix6* )
10820 if test "$GCC" = yes ; then
10821 SHARED_LD="${CC} -shared -o"
10822 PIC_FLAG="-fPIC"
10823 else
10824 SHARED_LD="${CXX} -shared -o"
10825 fi
c661ecca
RR
10826 if test "$wxUSE_OPENGL" = "yes"; then
10827 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
10828 WX_ALL="CREATE_LINKS CREATE_LINKS_GL"
10829 else
10830 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
10831 WX_ALL="CREATE_LINKS"
422107f9 10832 fi
10f2d63a
VZ
10833 ;;
10834 *-*-solaris2* )
10835 if test "$GCC" = yes ; then
10836 SHARED_LD="${CC} -shared -o"
10837 PIC_FLAG="-fPIC"
f6bcfd97
BP
10838
10839 CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
10f2d63a
VZ
10840 else
10841 SHARED_LD="${CXX} -G -o"
10842 PIC_FLAG="-KPIC"
10843 fi
c661ecca
RR
10844 if test "$wxUSE_OPENGL" = "yes"; then
10845 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
10846 WX_ALL="CREATE_LINKS CREATE_LINKS_GL"
10847 else
10848 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
10849 WX_ALL="CREATE_LINKS"
10850 fi
10f2d63a
VZ
10851 ;;
10852 *-*-sunos4* )
10853 SHARED_LD="${CC} -shared -o"
10854 PIC_FLAG="-fPIC"
10855 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
10856 WX_ALL="CREATE_LINKS"
10857 ;;
95c8801c 10858 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* )
10f2d63a
VZ
10859 SHARED_LD="${CC} -shared -o"
10860 PIC_FLAG="-fPIC"
37d403aa
JS
10861 if test "$wxUSE_OPENGL" = "yes"; then
10862 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
10863 WX_ALL="CREATE_LINKS CREATE_LINKS_GL"
10864 else
10865 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
10866 WX_ALL="CREATE_LINKS"
10867 fi
10f2d63a 10868 ;;
b4085ce6 10869 *-*-darwin* )
f11bdd03
GD
10870 TOOLKIT_DEF="${TOOLKIT_DEF} -D__UNIX__ -D__DARWIN__ -D__POWERPC__"
10871 CFLAGS="${CFLAGS} -fno-common"
10872 CPPFLAGS="${CPPFLAGS} -fno-common"
ea5999b9
GD
10873 SHARED_LD="${CXX} -dynamiclib -o"
10874 PIC_FLAG="-dynamic -fPIC"
b4085ce6
GD
10875 if test "$wxUSE_OPENGL" = "yes"; then
10876 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
10877 WX_ALL="CREATE_LINKS CREATE_LINKS_GL"
10878 else
10879 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
10880 WX_ALL="CREATE_LINKS"
10881 fi
f11bdd03
GD
10882 if test "$wxUSE_MAC" = 1 ; then
10883 WX_ALL="${WX_ALL} ./lib/lib${WX_LIBRARY}-${WX_RELEASE}.r"
10884 fi
1e6feb95
VZ
10885 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}-${WX_RELEASE}.dylib.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
10886 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.dylib.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
10887 WX_LIBRARY_LINK1="lib${WX_LIBRARY}-${WX_RELEASE}.dylib.${WX_CURRENT}"
10888 WX_LIBRARY_LINK2="lib${WX_LIBRARY}-${WX_RELEASE}.dylib"
10889 WX_LIBRARY_LINK3="lib${WX_LIBRARY}.dylib"
10890 WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.dylib.${WX_CURRENT}"
10891 WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.dylib"
10892 WX_LIBRARY_LINK3_GL="lib${WX_LIBRARY}_gl.dylib"
b4085ce6 10893 ;;
10f2d63a
VZ
10894 *-*-osf* )
10895 SHARED_LD="${CXX} -shared -o"
10896 PIC_FLAG="-fPIC"
10897 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
10898 WX_ALL="CREATE_LINKS"
10899 ;;
10900 *-*-dgux5* )
10901 SHARED_LD="${CXX} -shared -o"
10902 PIC_FLAG="-fPIC"
10903 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
10904 WX_ALL="CREATE_LINKS"
10905 ;;
10906 *-*-sysv5* )
10907 SHARED_LD="${CC} -shared -o"
10908 PIC_FLAG="-fPIC"
10909 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
10910 WX_ALL="CREATE_LINKS"
10911 ;;
10912 *-*-aix* )
10913 SHARED_LD="/usr/lpp/xlC/bin/makeC++SharedLib -p 0 -o"
10914 WX_ALL=${WX_LIBRARY_NAME_SHARED}
10915 ;;
1c8183e2 10916 *-*-cygwin* )
10f2d63a 10917 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
bdad4e7e 10918 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
f6bcfd97
BP
10919 if test "$wxUSE_OPENGL" = "yes"; then
10920 WX_ALL_INSTALLED="preinstall_gl"
10921 WX_ALL="${WX_LIBRARY_NAME_STATIC} ${WX_LIBRARY_NAME_STATIC_GL}"
10922 else
10923 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
10924 fi
10f2d63a 10925 ;;
b12915c1 10926 *-*-mingw32* )
10f2d63a 10927 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
bdad4e7e 10928 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
f6bcfd97
BP
10929 if test "$wxUSE_OPENGL" = "yes"; then
10930 WX_ALL_INSTALLED="preinstall_gl"
10931 WX_ALL="${WX_LIBRARY_NAME_STATIC} ${WX_LIBRARY_NAME_STATIC_GL}"
10932 else
10933 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
10934 fi
10f2d63a
VZ
10935 ;;
10936 *-pc-os2_emx )
e07802fc
VZ
10937 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
10938 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
10f2d63a 10939 ;;
b12915c1 10940 *-*-beos* )
e2b8b066 10941 SHARED_LD="${LD} -shared -o"
b12915c1
VZ
10942 PIC_FLAG="-fPIC"
10943 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
10944 WX_ALL="CREATE_LINKS"
10945 ;;
10f2d63a 10946 *)
698dcdb6 10947 { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; }
10f2d63a
VZ
10948 esac
10949
10950 if test "x$WX_TARGET_LIBRARY" = "x"; then
10951 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
bdad4e7e 10952 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}"
10f2d63a 10953 fi
3711412e 10954 WX_TARGET_LIBRARY_TYPE="so"
10f2d63a
VZ
10955else
10956 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
bdad4e7e 10957 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
f6bcfd97
BP
10958
10959 if test "$wxUSE_OPENGL" = "yes"; then
10960 WX_ALL_INSTALLED="preinstall_gl"
10961 WX_ALL="${WX_LIBRARY_NAME_STATIC} ${WX_LIBRARY_NAME_STATIC_GL}"
10962 else
10963 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
10964 fi
10965
10966 if test "$wxUSE_GUI" = "no"; then
10967 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
10968 fi
10969
3711412e 10970 WX_TARGET_LIBRARY_TYPE="a"
10f2d63a
VZ
10971fi
10972
698dcdb6
VZ
10973
10974for ac_hdr in strings.h
10f2d63a 10975do
698dcdb6
VZ
10976ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10977echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
f11bdd03 10978echo "configure:10979: checking for $ac_hdr" >&5
698dcdb6
VZ
10979if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10980 echo $ac_n "(cached) $ac_c" 1>&6
10981else
10982 cat > conftest.$ac_ext <<EOF
f11bdd03 10983#line 10984 "configure"
10f2d63a 10984#include "confdefs.h"
698dcdb6
VZ
10985#include <$ac_hdr>
10986EOF
10987ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
f11bdd03 10988{ (eval echo configure:10989: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
10989ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10990if test -z "$ac_err"; then
10991 rm -rf conftest*
10992 eval "ac_cv_header_$ac_safe=yes"
10f2d63a 10993else
698dcdb6
VZ
10994 echo "$ac_err" >&5
10995 echo "configure: failed program was:" >&5
10f2d63a 10996 cat conftest.$ac_ext >&5
698dcdb6
VZ
10997 rm -rf conftest*
10998 eval "ac_cv_header_$ac_safe=no"
10f2d63a 10999fi
698dcdb6 11000rm -f conftest*
10f2d63a 11001fi
698dcdb6
VZ
11002if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11003 echo "$ac_t""yes" 1>&6
11004 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11005 cat >> confdefs.h <<EOF
11006#define $ac_tr_hdr 1
10f2d63a 11007EOF
698dcdb6
VZ
11008
11009else
11010 echo "$ac_t""no" 1>&6
10f2d63a
VZ
11011fi
11012done
11013
698dcdb6 11014for ac_hdr in stdlib.h
9cfadba2 11015do
698dcdb6
VZ
11016ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11017echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
f11bdd03 11018echo "configure:11019: checking for $ac_hdr" >&5
698dcdb6
VZ
11019if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11020 echo $ac_n "(cached) $ac_c" 1>&6
11021else
11022 cat > conftest.$ac_ext <<EOF
f11bdd03 11023#line 11024 "configure"
9cfadba2 11024#include "confdefs.h"
698dcdb6
VZ
11025#include <$ac_hdr>
11026EOF
11027ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
f11bdd03 11028{ (eval echo configure:11029: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
11029ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11030if test -z "$ac_err"; then
11031 rm -rf conftest*
11032 eval "ac_cv_header_$ac_safe=yes"
6232543b 11033else
698dcdb6
VZ
11034 echo "$ac_err" >&5
11035 echo "configure: failed program was:" >&5
9cfadba2 11036 cat conftest.$ac_ext >&5
698dcdb6
VZ
11037 rm -rf conftest*
11038 eval "ac_cv_header_$ac_safe=no"
9cfadba2 11039fi
698dcdb6 11040rm -f conftest*
9cfadba2 11041fi
698dcdb6
VZ
11042if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11043 echo "$ac_t""yes" 1>&6
11044 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11045 cat >> confdefs.h <<EOF
11046#define $ac_tr_hdr 1
9cfadba2 11047EOF
698dcdb6
VZ
11048
11049else
11050 echo "$ac_t""no" 1>&6
9cfadba2
VZ
11051fi
11052done
10f2d63a 11053
698dcdb6 11054for ac_hdr in unistd.h
10f2d63a 11055do
698dcdb6
VZ
11056ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11057echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
f11bdd03 11058echo "configure:11059: checking for $ac_hdr" >&5
698dcdb6
VZ
11059if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11060 echo $ac_n "(cached) $ac_c" 1>&6
11061else
11062 cat > conftest.$ac_ext <<EOF
f11bdd03 11063#line 11064 "configure"
10f2d63a 11064#include "confdefs.h"
698dcdb6
VZ
11065#include <$ac_hdr>
11066EOF
11067ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
f11bdd03 11068{ (eval echo configure:11069: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
11069ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11070if test -z "$ac_err"; then
11071 rm -rf conftest*
11072 eval "ac_cv_header_$ac_safe=yes"
6232543b 11073else
698dcdb6
VZ
11074 echo "$ac_err" >&5
11075 echo "configure: failed program was:" >&5
10f2d63a 11076 cat conftest.$ac_ext >&5
698dcdb6
VZ
11077 rm -rf conftest*
11078 eval "ac_cv_header_$ac_safe=no"
10f2d63a 11079fi
698dcdb6 11080rm -f conftest*
10f2d63a 11081fi
698dcdb6
VZ
11082if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11083 echo "$ac_t""yes" 1>&6
11084 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11085 cat >> confdefs.h <<EOF
11086#define $ac_tr_hdr 1
10f2d63a 11087EOF
698dcdb6
VZ
11088
11089else
11090 echo "$ac_t""no" 1>&6
10f2d63a
VZ
11091fi
11092done
11093
698dcdb6 11094for ac_hdr in wchar.h
10f2d63a 11095do
698dcdb6
VZ
11096ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11097echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
f11bdd03 11098echo "configure:11099: checking for $ac_hdr" >&5
698dcdb6
VZ
11099if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11100 echo $ac_n "(cached) $ac_c" 1>&6
11101else
11102 cat > conftest.$ac_ext <<EOF
f11bdd03 11103#line 11104 "configure"
10f2d63a 11104#include "confdefs.h"
698dcdb6
VZ
11105#include <$ac_hdr>
11106EOF
11107ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
f11bdd03 11108{ (eval echo configure:11109: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
11109ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11110if test -z "$ac_err"; then
11111 rm -rf conftest*
11112 eval "ac_cv_header_$ac_safe=yes"
6f72b082 11113else
698dcdb6
VZ
11114 echo "$ac_err" >&5
11115 echo "configure: failed program was:" >&5
6f72b082 11116 cat conftest.$ac_ext >&5
698dcdb6
VZ
11117 rm -rf conftest*
11118 eval "ac_cv_header_$ac_safe=no"
6f72b082 11119fi
698dcdb6 11120rm -f conftest*
6f72b082 11121fi
698dcdb6
VZ
11122if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11123 echo "$ac_t""yes" 1>&6
11124 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11125 cat >> confdefs.h <<EOF
11126#define $ac_tr_hdr 1
6f72b082 11127EOF
698dcdb6
VZ
11128
11129else
11130 echo "$ac_t""no" 1>&6
6f72b082
OK
11131fi
11132done
11133
698dcdb6 11134for ac_hdr in wcstr.h
6f72b082 11135do
698dcdb6
VZ
11136ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11137echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
f11bdd03 11138echo "configure:11139: checking for $ac_hdr" >&5
698dcdb6
VZ
11139if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11140 echo $ac_n "(cached) $ac_c" 1>&6
11141else
11142 cat > conftest.$ac_ext <<EOF
f11bdd03 11143#line 11144 "configure"
6f72b082 11144#include "confdefs.h"
698dcdb6
VZ
11145#include <$ac_hdr>
11146EOF
11147ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
f11bdd03 11148{ (eval echo configure:11149: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
11149ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11150if test -z "$ac_err"; then
11151 rm -rf conftest*
11152 eval "ac_cv_header_$ac_safe=yes"
6f72b082 11153else
698dcdb6
VZ
11154 echo "$ac_err" >&5
11155 echo "configure: failed program was:" >&5
6f72b082 11156 cat conftest.$ac_ext >&5
698dcdb6
VZ
11157 rm -rf conftest*
11158 eval "ac_cv_header_$ac_safe=no"
6f72b082 11159fi
698dcdb6 11160rm -f conftest*
6f72b082 11161fi
698dcdb6
VZ
11162if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11163 echo "$ac_t""yes" 1>&6
11164 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11165 cat >> confdefs.h <<EOF
11166#define $ac_tr_hdr 1
6f72b082 11167EOF
698dcdb6
VZ
11168
11169else
11170 echo "$ac_t""no" 1>&6
6f72b082
OK
11171fi
11172done
11173
698dcdb6 11174for ac_hdr in fnmatch.h
6f72b082 11175do
698dcdb6
VZ
11176ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11177echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
f11bdd03 11178echo "configure:11179: checking for $ac_hdr" >&5
698dcdb6
VZ
11179if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11180 echo $ac_n "(cached) $ac_c" 1>&6
11181else
11182 cat > conftest.$ac_ext <<EOF
f11bdd03 11183#line 11184 "configure"
6f72b082 11184#include "confdefs.h"
698dcdb6
VZ
11185#include <$ac_hdr>
11186EOF
11187ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
f11bdd03 11188{ (eval echo configure:11189: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
11189ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11190if test -z "$ac_err"; then
11191 rm -rf conftest*
11192 eval "ac_cv_header_$ac_safe=yes"
10f2d63a 11193else
698dcdb6
VZ
11194 echo "$ac_err" >&5
11195 echo "configure: failed program was:" >&5
10f2d63a 11196 cat conftest.$ac_ext >&5
698dcdb6
VZ
11197 rm -rf conftest*
11198 eval "ac_cv_header_$ac_safe=no"
10f2d63a 11199fi
698dcdb6 11200rm -f conftest*
10f2d63a 11201fi
698dcdb6
VZ
11202if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11203 echo "$ac_t""yes" 1>&6
11204 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11205 cat >> confdefs.h <<EOF
11206#define $ac_tr_hdr 1
10f2d63a 11207EOF
698dcdb6
VZ
11208
11209else
11210 echo "$ac_t""no" 1>&6
10f2d63a
VZ
11211fi
11212done
11213
698dcdb6 11214for ac_hdr in iconv.h
0fb0dd83 11215do
698dcdb6
VZ
11216ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11217echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
f11bdd03 11218echo "configure:11219: checking for $ac_hdr" >&5
698dcdb6
VZ
11219if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11220 echo $ac_n "(cached) $ac_c" 1>&6
11221else
11222 cat > conftest.$ac_ext <<EOF
f11bdd03 11223#line 11224 "configure"
0fb0dd83 11224#include "confdefs.h"
698dcdb6
VZ
11225#include <$ac_hdr>
11226EOF
11227ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
f11bdd03 11228{ (eval echo configure:11229: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
11229ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11230if test -z "$ac_err"; then
11231 rm -rf conftest*
11232 eval "ac_cv_header_$ac_safe=yes"
0fb0dd83 11233else
698dcdb6
VZ
11234 echo "$ac_err" >&5
11235 echo "configure: failed program was:" >&5
0fb0dd83 11236 cat conftest.$ac_ext >&5
698dcdb6
VZ
11237 rm -rf conftest*
11238 eval "ac_cv_header_$ac_safe=no"
0fb0dd83 11239fi
698dcdb6 11240rm -f conftest*
0fb0dd83 11241fi
698dcdb6
VZ
11242if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11243 echo "$ac_t""yes" 1>&6
11244 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11245 cat >> confdefs.h <<EOF
11246#define $ac_tr_hdr 1
0fb0dd83 11247EOF
698dcdb6
VZ
11248
11249else
11250 echo "$ac_t""no" 1>&6
0fb0dd83
RR
11251fi
11252done
11253
698dcdb6 11254for ac_hdr in langinfo.h
1f8ae82f 11255do
698dcdb6
VZ
11256ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11257echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
f11bdd03 11258echo "configure:11259: checking for $ac_hdr" >&5
698dcdb6
VZ
11259if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11260 echo $ac_n "(cached) $ac_c" 1>&6
11261else
11262 cat > conftest.$ac_ext <<EOF
f11bdd03 11263#line 11264 "configure"
1f8ae82f 11264#include "confdefs.h"
698dcdb6
VZ
11265#include <$ac_hdr>
11266EOF
11267ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
f11bdd03 11268{ (eval echo configure:11269: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
11269ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11270if test -z "$ac_err"; then
11271 rm -rf conftest*
11272 eval "ac_cv_header_$ac_safe=yes"
1f8ae82f 11273else
698dcdb6
VZ
11274 echo "$ac_err" >&5
11275 echo "configure: failed program was:" >&5
1f8ae82f 11276 cat conftest.$ac_ext >&5
698dcdb6
VZ
11277 rm -rf conftest*
11278 eval "ac_cv_header_$ac_safe=no"
1f8ae82f 11279fi
698dcdb6 11280rm -f conftest*
1f8ae82f 11281fi
698dcdb6
VZ
11282if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11283 echo "$ac_t""yes" 1>&6
11284 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11285 cat >> confdefs.h <<EOF
11286#define $ac_tr_hdr 1
1f8ae82f 11287EOF
698dcdb6
VZ
11288
11289else
11290 echo "$ac_t""no" 1>&6
1f8ae82f
GD
11291fi
11292done
11293
698dcdb6 11294
73fd4a60
VZ
11295if test "$wxUSE_GUI" = "yes"; then
11296 if test "$wxUSE_UNIX" = "yes"; then
698dcdb6 11297 for ac_hdr in X11/XKBlib.h
10f2d63a 11298do
698dcdb6
VZ
11299ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11300echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
f11bdd03 11301echo "configure:11302: checking for $ac_hdr" >&5
698dcdb6
VZ
11302if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11303 echo $ac_n "(cached) $ac_c" 1>&6
11304else
11305 cat > conftest.$ac_ext <<EOF
f11bdd03 11306#line 11307 "configure"
10f2d63a 11307#include "confdefs.h"
698dcdb6
VZ
11308#include <$ac_hdr>
11309EOF
11310ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
f11bdd03 11311{ (eval echo configure:11312: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
11312ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11313if test -z "$ac_err"; then
11314 rm -rf conftest*
11315 eval "ac_cv_header_$ac_safe=yes"
10f2d63a 11316else
698dcdb6
VZ
11317 echo "$ac_err" >&5
11318 echo "configure: failed program was:" >&5
10f2d63a 11319 cat conftest.$ac_ext >&5
698dcdb6
VZ
11320 rm -rf conftest*
11321 eval "ac_cv_header_$ac_safe=no"
10f2d63a 11322fi
698dcdb6 11323rm -f conftest*
10f2d63a 11324fi
698dcdb6
VZ
11325if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11326 echo "$ac_t""yes" 1>&6
11327 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11328 cat >> confdefs.h <<EOF
11329#define $ac_tr_hdr 1
10f2d63a 11330EOF
698dcdb6
VZ
11331
11332else
11333 echo "$ac_t""no" 1>&6
10f2d63a
VZ
11334fi
11335done
11336
73fd4a60 11337 fi
10f2d63a
VZ
11338fi
11339
3e44f09d 11340if test "$USE_WIN32" = 1; then
29fd3c0c
VS
11341 for ac_hdr in w32api.h
11342do
11343ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11344echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
f11bdd03 11345echo "configure:11346: checking for $ac_hdr" >&5
29fd3c0c
VS
11346if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11347 echo $ac_n "(cached) $ac_c" 1>&6
11348else
11349 cat > conftest.$ac_ext <<EOF
f11bdd03 11350#line 11351 "configure"
29fd3c0c
VS
11351#include "confdefs.h"
11352#include <$ac_hdr>
11353EOF
11354ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
f11bdd03 11355{ (eval echo configure:11356: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
29fd3c0c
VS
11356ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11357if test -z "$ac_err"; then
11358 rm -rf conftest*
11359 eval "ac_cv_header_$ac_safe=yes"
11360else
11361 echo "$ac_err" >&5
11362 echo "configure: failed program was:" >&5
11363 cat conftest.$ac_ext >&5
11364 rm -rf conftest*
11365 eval "ac_cv_header_$ac_safe=no"
11366fi
11367rm -f conftest*
11368fi
11369if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11370 echo "$ac_t""yes" 1>&6
11371 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11372 cat >> confdefs.h <<EOF
11373#define $ac_tr_hdr 1
11374EOF
11375
11376else
11377 echo "$ac_t""no" 1>&6
11378fi
11379done
11380
11381fi
11382
698dcdb6
VZ
11383
11384echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
f11bdd03 11385echo "configure:11386: checking for ANSI C header files" >&5
698dcdb6
VZ
11386if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
11387 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 11388else
698dcdb6 11389 cat > conftest.$ac_ext <<EOF
f11bdd03 11390#line 11391 "configure"
10f2d63a
VZ
11391#include "confdefs.h"
11392#include <stdlib.h>
11393#include <stdarg.h>
11394#include <string.h>
11395#include <float.h>
698dcdb6
VZ
11396EOF
11397ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
f11bdd03 11398{ (eval echo configure:11399: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
11399ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11400if test -z "$ac_err"; then
11401 rm -rf conftest*
10f2d63a
VZ
11402 ac_cv_header_stdc=yes
11403else
698dcdb6
VZ
11404 echo "$ac_err" >&5
11405 echo "configure: failed program was:" >&5
10f2d63a 11406 cat conftest.$ac_ext >&5
698dcdb6 11407 rm -rf conftest*
10f2d63a
VZ
11408 ac_cv_header_stdc=no
11409fi
698dcdb6 11410rm -f conftest*
10f2d63a
VZ
11411
11412if test $ac_cv_header_stdc = yes; then
11413 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
698dcdb6 11414cat > conftest.$ac_ext <<EOF
f11bdd03 11415#line 11416 "configure"
10f2d63a
VZ
11416#include "confdefs.h"
11417#include <string.h>
698dcdb6 11418EOF
10f2d63a
VZ
11419if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11420 egrep "memchr" >/dev/null 2>&1; then
11421 :
11422else
698dcdb6 11423 rm -rf conftest*
10f2d63a
VZ
11424 ac_cv_header_stdc=no
11425fi
11426rm -f conftest*
11427
11428fi
11429
11430if test $ac_cv_header_stdc = yes; then
11431 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
698dcdb6 11432cat > conftest.$ac_ext <<EOF
f11bdd03 11433#line 11434 "configure"
10f2d63a
VZ
11434#include "confdefs.h"
11435#include <stdlib.h>
698dcdb6 11436EOF
10f2d63a
VZ
11437if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11438 egrep "free" >/dev/null 2>&1; then
11439 :
11440else
698dcdb6 11441 rm -rf conftest*
10f2d63a
VZ
11442 ac_cv_header_stdc=no
11443fi
11444rm -f conftest*
11445
11446fi
11447
11448if test $ac_cv_header_stdc = yes; then
11449 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
698dcdb6 11450if test "$cross_compiling" = yes; then
10f2d63a
VZ
11451 :
11452else
698dcdb6 11453 cat > conftest.$ac_ext <<EOF
f11bdd03 11454#line 11455 "configure"
10f2d63a
VZ
11455#include "confdefs.h"
11456#include <ctype.h>
698dcdb6
VZ
11457#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11458#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1e487827 11459#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
698dcdb6
VZ
11460int main () { int i; for (i = 0; i < 256; i++)
11461if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
11462exit (0); }
11463
11464EOF
f11bdd03 11465if { (eval echo configure:11466: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6 11466then
10f2d63a
VZ
11467 :
11468else
698dcdb6
VZ
11469 echo "configure: failed program was:" >&5
11470 cat conftest.$ac_ext >&5
11471 rm -fr conftest*
11472 ac_cv_header_stdc=no
10f2d63a 11473fi
698dcdb6 11474rm -fr conftest*
10f2d63a 11475fi
698dcdb6 11476
10f2d63a
VZ
11477fi
11478fi
1e487827 11479
698dcdb6
VZ
11480echo "$ac_t""$ac_cv_header_stdc" 1>&6
11481if test $ac_cv_header_stdc = yes; then
11482 cat >> confdefs.h <<\EOF
10f2d63a
VZ
11483#define STDC_HEADERS 1
11484EOF
11485
11486fi
11487
698dcdb6 11488echo $ac_n "checking for mode_t""... $ac_c" 1>&6
f11bdd03 11489echo "configure:11490: checking for mode_t" >&5
698dcdb6
VZ
11490if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
11491 echo $ac_n "(cached) $ac_c" 1>&6
1e487827 11492else
698dcdb6 11493 cat > conftest.$ac_ext <<EOF
f11bdd03 11494#line 11495 "configure"
1e487827 11495#include "confdefs.h"
698dcdb6
VZ
11496#include <sys/types.h>
11497#if STDC_HEADERS
11498#include <stdlib.h>
11499#include <stddef.h>
11500#endif
11501EOF
11502if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11503 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
11504 rm -rf conftest*
10f2d63a
VZ
11505 ac_cv_type_mode_t=yes
11506else
698dcdb6
VZ
11507 rm -rf conftest*
11508 ac_cv_type_mode_t=no
703e0a69 11509fi
698dcdb6 11510rm -f conftest*
1e487827 11511
698dcdb6
VZ
11512fi
11513echo "$ac_t""$ac_cv_type_mode_t" 1>&6
11514if test $ac_cv_type_mode_t = no; then
11515 cat >> confdefs.h <<\EOF
10f2d63a
VZ
11516#define mode_t int
11517EOF
11518
11519fi
11520
698dcdb6 11521echo $ac_n "checking for off_t""... $ac_c" 1>&6
f11bdd03 11522echo "configure:11523: checking for off_t" >&5
698dcdb6
VZ
11523if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
11524 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 11525else
698dcdb6 11526 cat > conftest.$ac_ext <<EOF
f11bdd03 11527#line 11528 "configure"
10f2d63a 11528#include "confdefs.h"
698dcdb6
VZ
11529#include <sys/types.h>
11530#if STDC_HEADERS
11531#include <stdlib.h>
11532#include <stddef.h>
11533#endif
11534EOF
11535if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11536 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
11537 rm -rf conftest*
10f2d63a
VZ
11538 ac_cv_type_off_t=yes
11539else
698dcdb6
VZ
11540 rm -rf conftest*
11541 ac_cv_type_off_t=no
703e0a69 11542fi
698dcdb6 11543rm -f conftest*
1e487827 11544
698dcdb6
VZ
11545fi
11546echo "$ac_t""$ac_cv_type_off_t" 1>&6
11547if test $ac_cv_type_off_t = no; then
11548 cat >> confdefs.h <<\EOF
10f2d63a
VZ
11549#define off_t long
11550EOF
11551
11552fi
11553
698dcdb6 11554echo $ac_n "checking for pid_t""... $ac_c" 1>&6
f11bdd03 11555echo "configure:11556: checking for pid_t" >&5
698dcdb6
VZ
11556if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
11557 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 11558else
698dcdb6 11559 cat > conftest.$ac_ext <<EOF
f11bdd03 11560#line 11561 "configure"
10f2d63a 11561#include "confdefs.h"
698dcdb6
VZ
11562#include <sys/types.h>
11563#if STDC_HEADERS
11564#include <stdlib.h>
11565#include <stddef.h>
11566#endif
11567EOF
11568if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11569 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
11570 rm -rf conftest*
10f2d63a
VZ
11571 ac_cv_type_pid_t=yes
11572else
698dcdb6
VZ
11573 rm -rf conftest*
11574 ac_cv_type_pid_t=no
703e0a69 11575fi
698dcdb6 11576rm -f conftest*
1e487827 11577
698dcdb6
VZ
11578fi
11579echo "$ac_t""$ac_cv_type_pid_t" 1>&6
11580if test $ac_cv_type_pid_t = no; then
11581 cat >> confdefs.h <<\EOF
10f2d63a
VZ
11582#define pid_t int
11583EOF
11584
11585fi
11586
698dcdb6 11587echo $ac_n "checking for size_t""... $ac_c" 1>&6
f11bdd03 11588echo "configure:11589: checking for size_t" >&5
698dcdb6
VZ
11589if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
11590 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 11591else
698dcdb6 11592 cat > conftest.$ac_ext <<EOF
f11bdd03 11593#line 11594 "configure"
10f2d63a 11594#include "confdefs.h"
698dcdb6
VZ
11595#include <sys/types.h>
11596#if STDC_HEADERS
11597#include <stdlib.h>
11598#include <stddef.h>
11599#endif
11600EOF
11601if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11602 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
11603 rm -rf conftest*
10f2d63a
VZ
11604 ac_cv_type_size_t=yes
11605else
698dcdb6
VZ
11606 rm -rf conftest*
11607 ac_cv_type_size_t=no
703e0a69 11608fi
698dcdb6 11609rm -f conftest*
1e487827 11610
698dcdb6
VZ
11611fi
11612echo "$ac_t""$ac_cv_type_size_t" 1>&6
11613if test $ac_cv_type_size_t = no; then
11614 cat >> confdefs.h <<\EOF
10f2d63a
VZ
11615#define size_t unsigned
11616EOF
11617
11618fi
11619
698dcdb6 11620echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
f11bdd03 11621echo "configure:11622: checking for uid_t in sys/types.h" >&5
698dcdb6
VZ
11622if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
11623 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 11624else
698dcdb6 11625 cat > conftest.$ac_ext <<EOF
f11bdd03 11626#line 11627 "configure"
10f2d63a
VZ
11627#include "confdefs.h"
11628#include <sys/types.h>
698dcdb6 11629EOF
10f2d63a
VZ
11630if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11631 egrep "uid_t" >/dev/null 2>&1; then
698dcdb6 11632 rm -rf conftest*
10f2d63a
VZ
11633 ac_cv_type_uid_t=yes
11634else
698dcdb6 11635 rm -rf conftest*
10f2d63a
VZ
11636 ac_cv_type_uid_t=no
11637fi
11638rm -f conftest*
11639
11640fi
1e487827 11641
698dcdb6
VZ
11642echo "$ac_t""$ac_cv_type_uid_t" 1>&6
11643if test $ac_cv_type_uid_t = no; then
11644 cat >> confdefs.h <<\EOF
10f2d63a
VZ
11645#define uid_t int
11646EOF
11647
698dcdb6 11648 cat >> confdefs.h <<\EOF
10f2d63a
VZ
11649#define gid_t int
11650EOF
11651
11652fi
11653
1e487827 11654
698dcdb6 11655echo $ac_n "checking for wchar_t""... $ac_c" 1>&6
f11bdd03 11656echo "configure:11657: checking for wchar_t" >&5
698dcdb6
VZ
11657if eval "test \"`echo '$''{'wx_cv_type_wchar_t'+set}'`\" = set"; then
11658 echo $ac_n "(cached) $ac_c" 1>&6
11659else
11660
11661 cat > conftest.$ac_ext <<EOF
f11bdd03 11662#line 11663 "configure"
0046ff7c
VS
11663#include "confdefs.h"
11664#include <wchar.h>
698dcdb6 11665int main() {
0046ff7c 11666
d836ee96
VZ
11667 wchar_t wc, *ws;
11668 wc = L'a';
11669 ws = L"Hello, world!";
698dcdb6
VZ
11670
11671; return 0; }
11672EOF
f11bdd03 11673if { (eval echo configure:11674: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 11674 rm -rf conftest*
1f8ae82f
GD
11675 wx_cv_type_wchar_t=yes
11676else
698dcdb6
VZ
11677 echo "configure: failed program was:" >&5
11678 cat conftest.$ac_ext >&5
11679 rm -rf conftest*
11680 cat > conftest.$ac_ext <<EOF
f11bdd03 11681#line 11682 "configure"
1f8ae82f
GD
11682#include "confdefs.h"
11683#include <stdlib.h>
698dcdb6 11684int main() {
1f8ae82f 11685
d836ee96
VZ
11686 wchar_t wc, *ws;
11687 wc = L'a';
11688 ws = L"Hello, world!";
698dcdb6
VZ
11689
11690; return 0; }
11691EOF
f11bdd03 11692if { (eval echo configure:11693: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 11693 rm -rf conftest*
0046ff7c
VS
11694 wx_cv_type_wchar_t=yes
11695else
698dcdb6
VZ
11696 echo "configure: failed program was:" >&5
11697 cat conftest.$ac_ext >&5
11698 rm -rf conftest*
11699 wx_cv_type_wchar_t=no
0046ff7c 11700fi
698dcdb6 11701rm -f conftest*
d836ee96 11702
6232543b 11703fi
698dcdb6 11704rm -f conftest*
703e0a69 11705
1e487827 11706fi
698dcdb6
VZ
11707
11708echo "$ac_t""$wx_cv_type_wchar_t" 1>&6
d836ee96
VZ
11709
11710if test "$wx_cv_type_wchar_t" = "yes"; then
698dcdb6 11711 cat >> confdefs.h <<\EOF
0046ff7c
VS
11712#define wxUSE_WCHAR_T 1
11713EOF
11714
11715fi
11716
19af3b06
VZ
11717
11718ac_ext=C
11719# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11720ac_cpp='$CXXCPP $CPPFLAGS'
11721ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11722ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11723cross_compiling=$ac_cv_prog_cxx_cross
11724
d836ee96 11725echo $ac_n "checking if size_t is unsigned int""... $ac_c" 1>&6
f11bdd03 11726echo "configure:11727: checking if size_t is unsigned int" >&5
d836ee96
VZ
11727if eval "test \"`echo '$''{'wx_cv_size_t_is_uint'+set}'`\" = set"; then
11728 echo $ac_n "(cached) $ac_c" 1>&6
11729else
dd2c8b7c 11730 cat > conftest.$ac_ext <<EOF
f11bdd03 11731#line 11732 "configure"
d836ee96
VZ
11732#include "confdefs.h"
11733#include <stddef.h>
11734int main() {
11735
dd2c8b7c
VZ
11736 return 0; }
11737
d836ee96 11738 struct Foo { void foo(size_t); void foo(unsigned int); };
dd2c8b7c
VZ
11739
11740 int bar() {
d836ee96
VZ
11741
11742; return 0; }
11743EOF
f11bdd03 11744if { (eval echo configure:11745: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d836ee96
VZ
11745 rm -rf conftest*
11746 wx_cv_size_t_is_uint=no
11747else
11748 echo "configure: failed program was:" >&5
11749 cat conftest.$ac_ext >&5
11750 rm -rf conftest*
11751 wx_cv_size_t_is_uint=yes
11752
11753fi
11754rm -f conftest*
11755
11756fi
11757
11758echo "$ac_t""$wx_cv_size_t_is_uint" 1>&6
11759
11760if test "$wx_cv_size_t_is_uint" = "yes"; then
11761 cat >> confdefs.h <<\EOF
11762#define wxSIZE_T_IS_UINT 1
11763EOF
11764
11765else
11766 echo $ac_n "checking if size_t is unsigned long""... $ac_c" 1>&6
f11bdd03 11767echo "configure:11768: checking if size_t is unsigned long" >&5
d836ee96
VZ
11768if eval "test \"`echo '$''{'wx_cv_size_t_is_ulong'+set}'`\" = set"; then
11769 echo $ac_n "(cached) $ac_c" 1>&6
11770else
11771 cat > conftest.$ac_ext <<EOF
f11bdd03 11772#line 11773 "configure"
d836ee96
VZ
11773#include "confdefs.h"
11774#include <stddef.h>
11775int main() {
11776
dd2c8b7c
VZ
11777 return 0; }
11778
d836ee96 11779 struct Foo { void foo(size_t); void foo(unsigned long); };
dd2c8b7c
VZ
11780
11781 int bar() {
d836ee96
VZ
11782
11783; return 0; }
11784EOF
f11bdd03 11785if { (eval echo configure:11786: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d836ee96
VZ
11786 rm -rf conftest*
11787 wx_cv_size_t_is_ulong=no
11788else
11789 echo "configure: failed program was:" >&5
11790 cat conftest.$ac_ext >&5
11791 rm -rf conftest*
11792 wx_cv_size_t_is_ulong=yes
11793
11794fi
11795rm -f conftest*
11796
11797fi
11798
11799echo "$ac_t""$wx_cv_size_t_is_ulong" 1>&6
11800
11801 if test "$wx_cv_size_t_is_ulong" = "yes"; then
11802 cat >> confdefs.h <<\EOF
11803#define wxSIZE_T_IS_ULONG 1
11804EOF
11805
11806 fi
11807fi
11808
19af3b06
VZ
11809ac_ext=c
11810# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11811ac_cpp='$CPP $CPPFLAGS'
11812ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11813ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11814cross_compiling=$ac_cv_prog_cc_cross
11815
11816
1e487827 11817
698dcdb6 11818echo $ac_n "checking for pw_gecos in struct passwd""... $ac_c" 1>&6
f11bdd03 11819echo "configure:11820: checking for pw_gecos in struct passwd" >&5
698dcdb6
VZ
11820if eval "test \"`echo '$''{'wx_cv_struct_pw_gecos'+set}'`\" = set"; then
11821 echo $ac_n "(cached) $ac_c" 1>&6
11822else
11823
11824 cat > conftest.$ac_ext <<EOF
f11bdd03 11825#line 11826 "configure"
b12915c1
VZ
11826#include "confdefs.h"
11827#include <pwd.h>
698dcdb6 11828int main() {
b12915c1
VZ
11829
11830 char *p;
11831 struct passwd *pw;
11832 p = pw->pw_gecos;
698dcdb6
VZ
11833
11834; return 0; }
11835EOF
f11bdd03 11836if { (eval echo configure:11837: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
11837 rm -rf conftest*
11838
b12915c1 11839 wx_cv_struct_pw_gecos=yes
698dcdb6 11840
b12915c1 11841else
698dcdb6
VZ
11842 echo "configure: failed program was:" >&5
11843 cat conftest.$ac_ext >&5
11844 rm -rf conftest*
11845
b12915c1 11846 wx_cv_struct_pw_gecos=no
698dcdb6
VZ
11847
11848
6232543b 11849fi
698dcdb6
VZ
11850rm -f conftest*
11851
703e0a69 11852
1e487827 11853fi
698dcdb6
VZ
11854
11855echo "$ac_t""$wx_cv_struct_pw_gecos" 1>&6
b12915c1 11856
bd3277fe 11857if test "$wx_cv_struct_pw_gecos" = "yes"; then
698dcdb6 11858 cat >> confdefs.h <<\EOF
bd3277fe
VZ
11859#define HAVE_PW_GECOS 1
11860EOF
11861
11862fi
11863
698dcdb6
VZ
11864
11865echo $ac_n "checking for working const""... $ac_c" 1>&6
f11bdd03 11866echo "configure:11867: checking for working const" >&5
698dcdb6
VZ
11867if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
11868 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 11869else
698dcdb6 11870 cat > conftest.$ac_ext <<EOF
f11bdd03 11871#line 11872 "configure"
10f2d63a 11872#include "confdefs.h"
698dcdb6
VZ
11873
11874int main() {
11875
11876/* Ultrix mips cc rejects this. */
11877typedef int charset[2]; const charset x;
11878/* SunOS 4.1.1 cc rejects this. */
11879char const *const *ccp;
11880char **p;
11881/* NEC SVR4.0.2 mips cc rejects this. */
11882struct point {int x, y;};
11883static struct point const zero = {0,0};
11884/* AIX XL C 1.02.0.0 rejects this.
11885 It does not let you subtract one const X* pointer from another in an arm
11886 of an if-expression whose if-part is not a constant expression */
11887const char *g = "string";
11888ccp = &g + (g ? g-g : 0);
11889/* HPUX 7.0 cc rejects these. */
11890++ccp;
11891p = (char**) ccp;
11892ccp = (char const *const *) p;
11893{ /* SCO 3.2v4 cc rejects this. */
11894 char *t;
11895 char const *s = 0 ? (char *) 0 : (char const *) 0;
11896
11897 *t++ = 0;
10f2d63a 11898}
698dcdb6
VZ
11899{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
11900 int x[] = {25, 17};
11901 const int *foo = &x[0];
11902 ++foo;
703e0a69 11903}
698dcdb6
VZ
11904{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11905 typedef const int *iptr;
11906 iptr p = 0;
11907 ++p;
6232543b 11908}
698dcdb6
VZ
11909{ /* AIX XL C 1.02.0.0 rejects this saying
11910 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11911 struct s { int j; const int *ap[3]; };
11912 struct s *b; b->j = 5;
1e487827 11913}
698dcdb6
VZ
11914{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11915 const int foo = 10;
11916}
11917
11918; return 0; }
11919EOF
f11bdd03 11920if { (eval echo configure:11921: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 11921 rm -rf conftest*
10f2d63a
VZ
11922 ac_cv_c_const=yes
11923else
698dcdb6
VZ
11924 echo "configure: failed program was:" >&5
11925 cat conftest.$ac_ext >&5
11926 rm -rf conftest*
11927 ac_cv_c_const=no
10f2d63a 11928fi
698dcdb6 11929rm -f conftest*
10f2d63a 11930fi
1e487827 11931
698dcdb6
VZ
11932echo "$ac_t""$ac_cv_c_const" 1>&6
11933if test $ac_cv_c_const = no; then
11934 cat >> confdefs.h <<\EOF
11935#define const
10f2d63a
VZ
11936EOF
11937
11938fi
11939
698dcdb6 11940echo $ac_n "checking for inline""... $ac_c" 1>&6
f11bdd03 11941echo "configure:11942: checking for inline" >&5
698dcdb6
VZ
11942if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
11943 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
11944else
11945 ac_cv_c_inline=no
11946for ac_kw in inline __inline__ __inline; do
698dcdb6 11947 cat > conftest.$ac_ext <<EOF
f11bdd03 11948#line 11949 "configure"
10f2d63a
VZ
11949#include "confdefs.h"
11950
698dcdb6
VZ
11951int main() {
11952} $ac_kw foo() {
11953; return 0; }
11954EOF
f11bdd03 11955if { (eval echo configure:11956: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 11956 rm -rf conftest*
10f2d63a
VZ
11957 ac_cv_c_inline=$ac_kw; break
11958else
698dcdb6
VZ
11959 echo "configure: failed program was:" >&5
11960 cat conftest.$ac_ext >&5
10f2d63a 11961fi
698dcdb6 11962rm -f conftest*
10f2d63a
VZ
11963done
11964
11965fi
698dcdb6
VZ
11966
11967echo "$ac_t""$ac_cv_c_inline" 1>&6
11968case "$ac_cv_c_inline" in
10f2d63a 11969 inline | yes) ;;
698dcdb6
VZ
11970 no) cat >> confdefs.h <<\EOF
11971#define inline
10f2d63a
VZ
11972EOF
11973 ;;
698dcdb6 11974 *) cat >> confdefs.h <<EOF
10f2d63a
VZ
11975#define inline $ac_cv_c_inline
11976EOF
11977 ;;
11978esac
11979
698dcdb6
VZ
11980
11981echo $ac_n "checking size of char""... $ac_c" 1>&6
f11bdd03 11982echo "configure:11983: checking size of char" >&5
698dcdb6
VZ
11983if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
11984 echo $ac_n "(cached) $ac_c" 1>&6
6232543b 11985else
1e487827 11986 if test "$cross_compiling" = yes; then
698dcdb6 11987 ac_cv_sizeof_char=1
1e487827 11988else
698dcdb6 11989 cat > conftest.$ac_ext <<EOF
f11bdd03 11990#line 11991 "configure"
1e487827 11991#include "confdefs.h"
698dcdb6
VZ
11992#include <stdio.h>
11993main()
1e487827 11994{
698dcdb6
VZ
11995 FILE *f=fopen("conftestval", "w");
11996 if (!f) exit(1);
11997 fprintf(f, "%d\n", sizeof(char));
11998 exit(0);
1e487827 11999}
698dcdb6 12000EOF
f11bdd03 12001if { (eval echo configure:12002: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6
VZ
12002then
12003 ac_cv_sizeof_char=`cat conftestval`
1e487827 12004else
698dcdb6
VZ
12005 echo "configure: failed program was:" >&5
12006 cat conftest.$ac_ext >&5
12007 rm -fr conftest*
1e487827
VS
12008 ac_cv_sizeof_char=0
12009fi
698dcdb6 12010rm -fr conftest*
1e487827 12011fi
10f2d63a 12012
1e487827 12013fi
698dcdb6
VZ
12014echo "$ac_t""$ac_cv_sizeof_char" 1>&6
12015cat >> confdefs.h <<EOF
12016#define SIZEOF_CHAR $ac_cv_sizeof_char
1e487827 12017EOF
6232543b 12018
703e0a69 12019
698dcdb6 12020echo $ac_n "checking size of short""... $ac_c" 1>&6
f11bdd03 12021echo "configure:12022: checking size of short" >&5
698dcdb6
VZ
12022if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
12023 echo $ac_n "(cached) $ac_c" 1>&6
1e487827 12024else
1e487827 12025 if test "$cross_compiling" = yes; then
698dcdb6 12026 ac_cv_sizeof_short=2
1e487827 12027else
698dcdb6 12028 cat > conftest.$ac_ext <<EOF
f11bdd03 12029#line 12030 "configure"
1e487827 12030#include "confdefs.h"
698dcdb6
VZ
12031#include <stdio.h>
12032main()
1e487827 12033{
698dcdb6
VZ
12034 FILE *f=fopen("conftestval", "w");
12035 if (!f) exit(1);
12036 fprintf(f, "%d\n", sizeof(short));
12037 exit(0);
1e487827 12038}
698dcdb6 12039EOF
f11bdd03 12040if { (eval echo configure:12041: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6
VZ
12041then
12042 ac_cv_sizeof_short=`cat conftestval`
1e487827 12043else
698dcdb6
VZ
12044 echo "configure: failed program was:" >&5
12045 cat conftest.$ac_ext >&5
12046 rm -fr conftest*
12047 ac_cv_sizeof_short=0
1e487827 12048fi
698dcdb6 12049rm -fr conftest*
1e487827 12050fi
698dcdb6 12051
1e487827 12052fi
698dcdb6
VZ
12053echo "$ac_t""$ac_cv_sizeof_short" 1>&6
12054cat >> confdefs.h <<EOF
12055#define SIZEOF_SHORT $ac_cv_sizeof_short
12056EOF
12057
12058
12059echo $ac_n "checking size of int *""... $ac_c" 1>&6
f11bdd03 12060echo "configure:12061: checking size of int *" >&5
698dcdb6
VZ
12061if eval "test \"`echo '$''{'ac_cv_sizeof_int_p'+set}'`\" = set"; then
12062 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
12063else
12064 if test "$cross_compiling" = yes; then
698dcdb6 12065 ac_cv_sizeof_int_p=4
10f2d63a 12066else
698dcdb6 12067 cat > conftest.$ac_ext <<EOF
f11bdd03 12068#line 12069 "configure"
10f2d63a 12069#include "confdefs.h"
698dcdb6
VZ
12070#include <stdio.h>
12071main()
10f2d63a 12072{
698dcdb6
VZ
12073 FILE *f=fopen("conftestval", "w");
12074 if (!f) exit(1);
12075 fprintf(f, "%d\n", sizeof(int *));
12076 exit(0);
10f2d63a 12077}
698dcdb6 12078EOF
f11bdd03 12079if { (eval echo configure:12080: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6
VZ
12080then
12081 ac_cv_sizeof_int_p=`cat conftestval`
10f2d63a 12082else
698dcdb6
VZ
12083 echo "configure: failed program was:" >&5
12084 cat conftest.$ac_ext >&5
12085 rm -fr conftest*
12086 ac_cv_sizeof_int_p=0
6232543b 12087fi
698dcdb6 12088rm -fr conftest*
1e487827 12089fi
698dcdb6 12090
1e487827 12091fi
698dcdb6
VZ
12092echo "$ac_t""$ac_cv_sizeof_int_p" 1>&6
12093cat >> confdefs.h <<EOF
12094#define SIZEOF_INT_P $ac_cv_sizeof_int_p
10f2d63a
VZ
12095EOF
12096
698dcdb6
VZ
12097
12098echo $ac_n "checking size of int""... $ac_c" 1>&6
f11bdd03 12099echo "configure:12100: checking size of int" >&5
698dcdb6
VZ
12100if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
12101 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
12102else
12103 if test "$cross_compiling" = yes; then
698dcdb6 12104 ac_cv_sizeof_int=4
703e0a69 12105else
698dcdb6 12106 cat > conftest.$ac_ext <<EOF
f11bdd03 12107#line 12108 "configure"
1e487827 12108#include "confdefs.h"
698dcdb6
VZ
12109#include <stdio.h>
12110main()
1e487827 12111{
698dcdb6
VZ
12112 FILE *f=fopen("conftestval", "w");
12113 if (!f) exit(1);
12114 fprintf(f, "%d\n", sizeof(int));
12115 exit(0);
1e487827 12116}
698dcdb6 12117EOF
f11bdd03 12118if { (eval echo configure:12119: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6
VZ
12119then
12120 ac_cv_sizeof_int=`cat conftestval`
12121else
12122 echo "configure: failed program was:" >&5
12123 cat conftest.$ac_ext >&5
12124 rm -fr conftest*
12125 ac_cv_sizeof_int=0
703e0a69 12126fi
698dcdb6
VZ
12127rm -fr conftest*
12128fi
12129
12130fi
12131echo "$ac_t""$ac_cv_sizeof_int" 1>&6
12132cat >> confdefs.h <<EOF
12133#define SIZEOF_INT $ac_cv_sizeof_int
12134EOF
12135
12136
12137echo $ac_n "checking size of long""... $ac_c" 1>&6
f11bdd03 12138echo "configure:12139: checking size of long" >&5
698dcdb6
VZ
12139if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
12140 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
12141else
12142 if test "$cross_compiling" = yes; then
698dcdb6 12143 ac_cv_sizeof_long=4
10f2d63a 12144else
698dcdb6 12145 cat > conftest.$ac_ext <<EOF
f11bdd03 12146#line 12147 "configure"
10f2d63a 12147#include "confdefs.h"
698dcdb6
VZ
12148#include <stdio.h>
12149main()
10f2d63a 12150{
698dcdb6
VZ
12151 FILE *f=fopen("conftestval", "w");
12152 if (!f) exit(1);
12153 fprintf(f, "%d\n", sizeof(long));
12154 exit(0);
10f2d63a 12155}
698dcdb6 12156EOF
f11bdd03 12157if { (eval echo configure:12158: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6
VZ
12158then
12159 ac_cv_sizeof_long=`cat conftestval`
10f2d63a 12160else
698dcdb6
VZ
12161 echo "configure: failed program was:" >&5
12162 cat conftest.$ac_ext >&5
12163 rm -fr conftest*
12164 ac_cv_sizeof_long=0
10f2d63a 12165fi
698dcdb6 12166rm -fr conftest*
10f2d63a 12167fi
698dcdb6 12168
10f2d63a 12169fi
698dcdb6
VZ
12170echo "$ac_t""$ac_cv_sizeof_long" 1>&6
12171cat >> confdefs.h <<EOF
12172#define SIZEOF_LONG $ac_cv_sizeof_long
12173EOF
12174
12175
12176echo $ac_n "checking size of long long""... $ac_c" 1>&6
f11bdd03 12177echo "configure:12178: checking size of long long" >&5
698dcdb6
VZ
12178if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
12179 echo $ac_n "(cached) $ac_c" 1>&6
12180else
12181 if test "$cross_compiling" = yes; then
12182 ac_cv_sizeof_long_long=0
12183else
12184 cat > conftest.$ac_ext <<EOF
f11bdd03 12185#line 12186 "configure"
698dcdb6
VZ
12186#include "confdefs.h"
12187#include <stdio.h>
12188main()
12189{
12190 FILE *f=fopen("conftestval", "w");
12191 if (!f) exit(1);
12192 fprintf(f, "%d\n", sizeof(long long));
12193 exit(0);
12194}
12195EOF
f11bdd03 12196if { (eval echo configure:12197: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6
VZ
12197then
12198 ac_cv_sizeof_long_long=`cat conftestval`
6232543b 12199else
698dcdb6
VZ
12200 echo "configure: failed program was:" >&5
12201 cat conftest.$ac_ext >&5
12202 rm -fr conftest*
6232543b
VS
12203 ac_cv_sizeof_long_long=0
12204fi
698dcdb6
VZ
12205rm -fr conftest*
12206fi
12207
703e0a69 12208fi
698dcdb6
VZ
12209echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
12210cat >> confdefs.h <<EOF
10f2d63a
VZ
12211#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
12212EOF
12213
1e487827 12214
698dcdb6
VZ
12215
12216echo $ac_n "checking size of wchar_t""... $ac_c" 1>&6
f11bdd03 12217echo "configure:12218: checking size of wchar_t" >&5
698dcdb6
VZ
12218if eval "test \"`echo '$''{'wx_cv_sizeof_wchar_t'+set}'`\" = set"; then
12219 echo $ac_n "(cached) $ac_c" 1>&6
12220else
12221
b93d0d08
VS
12222 if test "$cross_compiling" = yes; then
12223 wx_cv_sizeof_wchar_t=4
1e6feb95 12224
b93d0d08 12225else
698dcdb6 12226 cat > conftest.$ac_ext <<EOF
f11bdd03 12227#line 12228 "configure"
b93d0d08
VS
12228#include "confdefs.h"
12229
1e6feb95
VZ
12230 #ifdef HAVE_WCHAR_H
12231 # include <wchar.h>
12232 #endif
12233 #ifdef HAVE_STDLIB_H
12234 # include <stdlib.h>
12235 #endif
12236 #include <stdio.h>
12237 int main()
12238 {
12239 FILE *f=fopen("conftestval", "w");
12240 if (!f) exit(1);
12241 fprintf(f, "%i", sizeof(wchar_t));
12242 exit(0);
12243 }
698dcdb6
VZ
12244
12245EOF
f11bdd03 12246if { (eval echo configure:12247: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6 12247then
b93d0d08
VS
12248 wx_cv_sizeof_wchar_t=`cat conftestval`
12249else
698dcdb6
VZ
12250 echo "configure: failed program was:" >&5
12251 cat conftest.$ac_ext >&5
12252 rm -fr conftest*
12253 wx_cv_sizeof_wchar_t=0
b93d0d08 12254fi
698dcdb6 12255rm -fr conftest*
b93d0d08
VS
12256fi
12257
698dcdb6 12258
b93d0d08
VS
12259fi
12260
698dcdb6
VZ
12261echo "$ac_t""$wx_cv_sizeof_wchar_t" 1>&6
12262
12263cat >> confdefs.h <<EOF
28c6addc 12264#define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t
b93d0d08
VS
12265EOF
12266
698dcdb6 12267
698dcdb6 12268echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
f11bdd03 12269echo "configure:12270: checking whether byte ordering is bigendian" >&5
698dcdb6
VZ
12270if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
12271 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
12272else
12273 ac_cv_c_bigendian=unknown
12274# See if sys/param.h defines the BYTE_ORDER macro.
698dcdb6 12275cat > conftest.$ac_ext <<EOF
f11bdd03 12276#line 12277 "configure"
10f2d63a
VZ
12277#include "confdefs.h"
12278#include <sys/types.h>
12279#include <sys/param.h>
698dcdb6 12280int main() {
10f2d63a
VZ
12281
12282#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
12283 bogus endian macros
12284#endif
698dcdb6
VZ
12285; return 0; }
12286EOF
f11bdd03 12287if { (eval echo configure:12288: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 12288 rm -rf conftest*
10f2d63a 12289 # It does; now see whether it defined to BIG_ENDIAN or not.
698dcdb6 12290cat > conftest.$ac_ext <<EOF
f11bdd03 12291#line 12292 "configure"
10f2d63a
VZ
12292#include "confdefs.h"
12293#include <sys/types.h>
12294#include <sys/param.h>
698dcdb6 12295int main() {
10f2d63a
VZ
12296
12297#if BYTE_ORDER != BIG_ENDIAN
12298 not big endian
12299#endif
698dcdb6
VZ
12300; return 0; }
12301EOF
f11bdd03 12302if { (eval echo configure:12303: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 12303 rm -rf conftest*
10f2d63a
VZ
12304 ac_cv_c_bigendian=yes
12305else
698dcdb6
VZ
12306 echo "configure: failed program was:" >&5
12307 cat conftest.$ac_ext >&5
12308 rm -rf conftest*
12309 ac_cv_c_bigendian=no
10f2d63a 12310fi
698dcdb6 12311rm -f conftest*
10f2d63a 12312else
698dcdb6
VZ
12313 echo "configure: failed program was:" >&5
12314 cat conftest.$ac_ext >&5
10f2d63a 12315fi
698dcdb6 12316rm -f conftest*
10f2d63a
VZ
12317if test $ac_cv_c_bigendian = unknown; then
12318if test "$cross_compiling" = yes; then
12319 ac_cv_c_bigendian=unknown
12320else
698dcdb6 12321 cat > conftest.$ac_ext <<EOF
f11bdd03 12322#line 12323 "configure"
10f2d63a
VZ
12323#include "confdefs.h"
12324main () {
12325 /* Are we little or big endian? From Harbison&Steele. */
12326 union
12327 {
12328 long l;
12329 char c[sizeof (long)];
12330 } u;
12331 u.l = 1;
12332 exit (u.c[sizeof (long) - 1] == 1);
12333}
698dcdb6 12334EOF
f11bdd03 12335if { (eval echo configure:12336: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6 12336then
10f2d63a
VZ
12337 ac_cv_c_bigendian=no
12338else
698dcdb6
VZ
12339 echo "configure: failed program was:" >&5
12340 cat conftest.$ac_ext >&5
12341 rm -fr conftest*
12342 ac_cv_c_bigendian=yes
10f2d63a 12343fi
698dcdb6 12344rm -fr conftest*
10f2d63a 12345fi
698dcdb6 12346
10f2d63a
VZ
12347fi
12348fi
698dcdb6
VZ
12349
12350echo "$ac_t""$ac_cv_c_bigendian" 1>&6
10f2d63a 12351if test $ac_cv_c_bigendian = unknown; then
698dcdb6 12352 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
12353fi
12354if test $ac_cv_c_bigendian = yes; then
698dcdb6 12355 cat >> confdefs.h <<\EOF
10f2d63a
VZ
12356#define WORDS_BIGENDIAN 1
12357EOF
12358
12359fi
12360
698dcdb6
VZ
12361
12362
10f2d63a 12363 if test "$cross_compiling" = "yes"; then
698dcdb6 12364 cat >> confdefs.h <<\EOF
10f2d63a
VZ
12365#define wxUSE_IOSTREAMH 1
12366EOF
12367
12368 else
698dcdb6
VZ
12369
12370 ac_ext=C
12371# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1e487827 12372ac_cpp='$CXXCPP $CPPFLAGS'
698dcdb6
VZ
12373ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12374ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12375cross_compiling=$ac_cv_prog_cxx_cross
12376
703e0a69 12377
698dcdb6 12378 for ac_hdr in iostream
10f2d63a 12379do
698dcdb6
VZ
12380ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12381echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
f11bdd03 12382echo "configure:12383: checking for $ac_hdr" >&5
698dcdb6
VZ
12383if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12384 echo $ac_n "(cached) $ac_c" 1>&6
12385else
12386 cat > conftest.$ac_ext <<EOF
f11bdd03 12387#line 12388 "configure"
10f2d63a 12388#include "confdefs.h"
698dcdb6
VZ
12389#include <$ac_hdr>
12390EOF
12391ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
f11bdd03 12392{ (eval echo configure:12393: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
12393ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12394if test -z "$ac_err"; then
12395 rm -rf conftest*
12396 eval "ac_cv_header_$ac_safe=yes"
10f2d63a 12397else
698dcdb6
VZ
12398 echo "$ac_err" >&5
12399 echo "configure: failed program was:" >&5
10f2d63a 12400 cat conftest.$ac_ext >&5
698dcdb6
VZ
12401 rm -rf conftest*
12402 eval "ac_cv_header_$ac_safe=no"
10f2d63a 12403fi
698dcdb6 12404rm -f conftest*
10f2d63a 12405fi
698dcdb6
VZ
12406if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12407 echo "$ac_t""yes" 1>&6
12408 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12409 cat >> confdefs.h <<EOF
12410#define $ac_tr_hdr 1
10f2d63a 12411EOF
698dcdb6
VZ
12412
12413else
12414 echo "$ac_t""no" 1>&6
10f2d63a
VZ
12415fi
12416done
12417
698dcdb6 12418
57fe5ed0
VZ
12419 if test "$ac_cv_header_iostream" = "yes" ; then
12420 :
12421 else
698dcdb6 12422 cat >> confdefs.h <<\EOF
10f2d63a
VZ
12423#define wxUSE_IOSTREAMH 1
12424EOF
12425
10f2d63a
VZ
12426 fi
12427
12428 ac_ext=c
698dcdb6 12429# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10f2d63a 12430ac_cpp='$CPP $CPPFLAGS'
698dcdb6
VZ
12431ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12432ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12433cross_compiling=$ac_cv_prog_cc_cross
10f2d63a
VZ
12434
12435 fi
12436
703e0a69 12437
698dcdb6
VZ
12438
12439 echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6
f11bdd03 12440echo "configure:12441: checking if C++ compiler supports bool" >&5
698dcdb6
VZ
12441if eval "test \"`echo '$''{'wx_cv_cpp_bool'+set}'`\" = set"; then
12442 echo $ac_n "(cached) $ac_c" 1>&6
12443else
12444
12445
12446 ac_ext=C
12447# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1e487827 12448ac_cpp='$CXXCPP $CPPFLAGS'
698dcdb6
VZ
12449ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12450ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12451cross_compiling=$ac_cv_prog_cxx_cross
10f2d63a 12452
698dcdb6
VZ
12453
12454 cat > conftest.$ac_ext <<EOF
f11bdd03 12455#line 12456 "configure"
10f2d63a
VZ
12456#include "confdefs.h"
12457
698dcdb6
VZ
12458
12459int main() {
10f2d63a
VZ
12460
12461 bool b = true;
12462
12463 return 0;
698dcdb6
VZ
12464
12465; return 0; }
12466EOF
f11bdd03 12467if { (eval echo configure:12468: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
12468 rm -rf conftest*
12469
10f2d63a 12470 wx_cv_cpp_bool=yes
698dcdb6 12471
10f2d63a 12472else
698dcdb6
VZ
12473 echo "configure: failed program was:" >&5
12474 cat conftest.$ac_ext >&5
12475 rm -rf conftest*
12476
10f2d63a 12477 wx_cv_cpp_bool=no
698dcdb6
VZ
12478
12479
10f2d63a 12480fi
698dcdb6 12481rm -f conftest*
10f2d63a
VZ
12482
12483 ac_ext=c
698dcdb6 12484# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10f2d63a 12485ac_cpp='$CPP $CPPFLAGS'
698dcdb6
VZ
12486ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12487ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12488cross_compiling=$ac_cv_prog_cc_cross
10f2d63a 12489
698dcdb6 12490
10f2d63a 12491fi
698dcdb6
VZ
12492
12493echo "$ac_t""$wx_cv_cpp_bool" 1>&6
10f2d63a
VZ
12494
12495 if test "$wx_cv_cpp_bool" = "yes"; then
698dcdb6 12496 cat >> confdefs.h <<\EOF
10f2d63a
VZ
12497#define HAVE_BOOL 1
12498EOF
12499
12500 fi
12501
1e487827 12502
698dcdb6 12503
698dcdb6 12504echo $ac_n "checking for wcslen in -lc""... $ac_c" 1>&6
f11bdd03 12505echo "configure:12506: checking for wcslen in -lc" >&5
698dcdb6
VZ
12506ac_lib_var=`echo c'_'wcslen | sed 'y%./+-%__p_%'`
12507if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12508 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 12509else
698dcdb6 12510 ac_save_LIBS="$LIBS"
10f2d63a 12511LIBS="-lc $LIBS"
698dcdb6 12512cat > conftest.$ac_ext <<EOF
f11bdd03 12513#line 12514 "configure"
10f2d63a
VZ
12514#include "confdefs.h"
12515/* Override any gcc2 internal prototype to avoid an error. */
12516/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
12517 builtin and then its argument prototype would still apply. */
12518char wcslen();
12519
12520int main() {
12521wcslen()
12522; return 0; }
12523EOF
f11bdd03 12524if { (eval echo configure:12525: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
12525 rm -rf conftest*
12526 eval "ac_cv_lib_$ac_lib_var=yes"
12527else
12528 echo "configure: failed program was:" >&5
12529 cat conftest.$ac_ext >&5
12530 rm -rf conftest*
12531 eval "ac_cv_lib_$ac_lib_var=no"
12532fi
12533rm -f conftest*
12534LIBS="$ac_save_LIBS"
12535
12536fi
12537if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12538 echo "$ac_t""yes" 1>&6
12539
12540 cat >> confdefs.h <<\EOF
10f2d63a
VZ
12541#define HAVE_WCSLEN 1
12542EOF
12543
12544 WCHAR_LINK=""
698dcdb6 12545
10f2d63a 12546else
698dcdb6 12547 echo "$ac_t""no" 1>&6
10f2d63a 12548
698dcdb6 12549 echo $ac_n "checking for wcslen in -lw""... $ac_c" 1>&6
f11bdd03 12550echo "configure:12551: checking for wcslen in -lw" >&5
698dcdb6
VZ
12551ac_lib_var=`echo w'_'wcslen | sed 'y%./+-%__p_%'`
12552if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12553 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 12554else
698dcdb6 12555 ac_save_LIBS="$LIBS"
10f2d63a 12556LIBS="-lw $LIBS"
698dcdb6 12557cat > conftest.$ac_ext <<EOF
f11bdd03 12558#line 12559 "configure"
10f2d63a
VZ
12559#include "confdefs.h"
12560/* Override any gcc2 internal prototype to avoid an error. */
12561/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
12562 builtin and then its argument prototype would still apply. */
12563char wcslen();
12564
12565int main() {
12566wcslen()
12567; return 0; }
12568EOF
f11bdd03 12569if { (eval echo configure:12570: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
12570 rm -rf conftest*
12571 eval "ac_cv_lib_$ac_lib_var=yes"
12572else
12573 echo "configure: failed program was:" >&5
12574 cat conftest.$ac_ext >&5
12575 rm -rf conftest*
12576 eval "ac_cv_lib_$ac_lib_var=no"
12577fi
12578rm -f conftest*
12579LIBS="$ac_save_LIBS"
12580
12581fi
12582if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12583 echo "$ac_t""yes" 1>&6
12584
12585 cat >> confdefs.h <<\EOF
10f2d63a
VZ
12586#define HAVE_WCSLEN 1
12587EOF
12588
12589 WCHAR_LINK="-lw"
698dcdb6
VZ
12590
12591else
12592 echo "$ac_t""no" 1>&6
6232543b 12593fi
10f2d63a 12594
698dcdb6 12595
1e487827 12596fi
703e0a69 12597
698dcdb6
VZ
12598
12599echo $ac_n "checking for vprintf""... $ac_c" 1>&6
f11bdd03 12600echo "configure:12601: checking for vprintf" >&5
698dcdb6
VZ
12601if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
12602 echo $ac_n "(cached) $ac_c" 1>&6
12603else
12604 cat > conftest.$ac_ext <<EOF
f11bdd03 12605#line 12606 "configure"
10f2d63a
VZ
12606#include "confdefs.h"
12607/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 12608 which can conflict with char vprintf(); below. */
10f2d63a
VZ
12609#include <assert.h>
12610/* Override any gcc2 internal prototype to avoid an error. */
12611/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
12612 builtin and then its argument prototype would still apply. */
12613char vprintf();
12614
12615int main() {
10f2d63a
VZ
12616
12617/* The GNU C library defines this for functions which it implements
12618 to always fail with ENOSYS. Some functions are actually named
12619 something starting with __ and the normal name is an alias. */
698dcdb6 12620#if defined (__stub_vprintf) || defined (__stub___vprintf)
10f2d63a
VZ
12621choke me
12622#else
698dcdb6 12623vprintf();
10f2d63a
VZ
12624#endif
12625
698dcdb6
VZ
12626; return 0; }
12627EOF
f11bdd03 12628if { (eval echo configure:12629: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
12629 rm -rf conftest*
12630 eval "ac_cv_func_vprintf=yes"
12631else
12632 echo "configure: failed program was:" >&5
12633 cat conftest.$ac_ext >&5
12634 rm -rf conftest*
12635 eval "ac_cv_func_vprintf=no"
12636fi
12637rm -f conftest*
12638fi
12639
12640if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
12641 echo "$ac_t""yes" 1>&6
12642 cat >> confdefs.h <<\EOF
12643#define HAVE_VPRINTF 1
12644EOF
12645
12646else
12647 echo "$ac_t""no" 1>&6
12648fi
12649
12650if test "$ac_cv_func_vprintf" != yes; then
12651echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
f11bdd03 12652echo "configure:12653: checking for _doprnt" >&5
698dcdb6
VZ
12653if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
12654 echo $ac_n "(cached) $ac_c" 1>&6
12655else
12656 cat > conftest.$ac_ext <<EOF
f11bdd03 12657#line 12658 "configure"
10f2d63a
VZ
12658#include "confdefs.h"
12659/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 12660 which can conflict with char _doprnt(); below. */
10f2d63a
VZ
12661#include <assert.h>
12662/* Override any gcc2 internal prototype to avoid an error. */
12663/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
12664 builtin and then its argument prototype would still apply. */
12665char _doprnt();
12666
12667int main() {
10f2d63a
VZ
12668
12669/* The GNU C library defines this for functions which it implements
12670 to always fail with ENOSYS. Some functions are actually named
12671 something starting with __ and the normal name is an alias. */
12672#if defined (__stub__doprnt) || defined (__stub____doprnt)
12673choke me
12674#else
698dcdb6 12675_doprnt();
10f2d63a
VZ
12676#endif
12677
698dcdb6
VZ
12678; return 0; }
12679EOF
f11bdd03 12680if { (eval echo configure:12681: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
12681 rm -rf conftest*
12682 eval "ac_cv_func__doprnt=yes"
12683else
12684 echo "configure: failed program was:" >&5
12685 cat conftest.$ac_ext >&5
12686 rm -rf conftest*
12687 eval "ac_cv_func__doprnt=no"
12688fi
12689rm -f conftest*
12690fi
12691
12692if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
12693 echo "$ac_t""yes" 1>&6
12694 cat >> confdefs.h <<\EOF
10f2d63a
VZ
12695#define HAVE_DOPRNT 1
12696EOF
12697
698dcdb6
VZ
12698else
12699 echo "$ac_t""no" 1>&6
10f2d63a
VZ
12700fi
12701
12702fi
12703
1e487827 12704
698dcdb6
VZ
12705
12706
12707
12708
12709
12710echo $ac_n "checking for vsnprintf""... $ac_c" 1>&6
f11bdd03 12711echo "configure:12712: checking for vsnprintf" >&5
698dcdb6
VZ
12712if eval "test \"`echo '$''{'wx_cv_func_vsnprintf'+set}'`\" = set"; then
12713 echo $ac_n "(cached) $ac_c" 1>&6
12714else
12715
12716 cat > conftest.$ac_ext <<EOF
f11bdd03 12717#line 12718 "configure"
f6bcfd97
BP
12718#include "confdefs.h"
12719
12720 #include <stdio.h>
698dcdb6
VZ
12721 #include <stdarg.h>
12722
12723int main() {
10f2d63a 12724
f6bcfd97 12725 int wx_test_vsnprintf(const char *, ...);
10f2d63a 12726
f6bcfd97
BP
12727 wx_test_vsnprintf("%s");
12728 return 0;
12729 }
12730
12731 int wx_test_vsnprintf(const char *fmt, ...)
12732 {
12733 char *s;
12734
12735 va_list argp;
12736 va_start(argp, fmt);
12737 vsnprintf(s, 42, fmt, argp);
12738 va_end(argp);
698dcdb6
VZ
12739
12740; return 0; }
12741EOF
f11bdd03 12742if { (eval echo configure:12743: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
12743 rm -rf conftest*
12744
f6bcfd97 12745 wx_cv_func_vsnprintf=yes
698dcdb6 12746
10f2d63a 12747else
698dcdb6
VZ
12748 echo "configure: failed program was:" >&5
12749 cat conftest.$ac_ext >&5
12750 rm -rf conftest*
12751
12752 cat > conftest.$ac_ext <<EOF
f11bdd03 12753#line 12754 "configure"
c521c494
RL
12754#include "confdefs.h"
12755
12756 #include <stdio.h>
12757 #include <stdarg.h>
698dcdb6
VZ
12758
12759int main() {
c521c494
RL
12760
12761 int wx_test_vsnprintf(const char *, ...);
12762
12763 wx_test_vsnprintf("%s");
12764 return 0;
12765 }
12766
12767 int wx_test_vsnprintf(const char *fmt, ...)
12768 {
12769 char *s;
12770
12771 va_list argp;
12772 va_start(argp, fmt);
12773 _vsnprintf(s, 42, fmt, argp);
12774 va_end(argp);
698dcdb6
VZ
12775
12776; return 0; }
12777EOF
f11bdd03 12778if { (eval echo configure:12779: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
12779 rm -rf conftest*
12780
c521c494 12781 wx_cv_func_vsnprintf=yes
698dcdb6 12782
c521c494 12783else
698dcdb6
VZ
12784 echo "configure: failed program was:" >&5
12785 cat conftest.$ac_ext >&5
12786 rm -rf conftest*
12787
c521c494 12788 wx_cv_func_vsnprintf=no
698dcdb6 12789
10f2d63a 12790fi
698dcdb6
VZ
12791rm -f conftest*
12792
6232543b 12793fi
698dcdb6 12794rm -f conftest*
703e0a69 12795
1e487827 12796fi
698dcdb6
VZ
12797
12798echo "$ac_t""$wx_cv_func_vsnprintf" 1>&6
10f2d63a 12799
9d8deca0 12800if test "$wx_cv_func_vsnprintf" = yes; then
698dcdb6 12801 cat >> confdefs.h <<\EOF
9d8deca0
VZ
12802#define HAVE_VSNPRINTF 1
12803EOF
12804
12805else
698dcdb6 12806 echo "configure: warning: unsafe function sprintf will be used instead of snprintf" 1>&2
9d8deca0
VZ
12807fi
12808
698dcdb6 12809echo $ac_n "checking for vsscanf""... $ac_c" 1>&6
f11bdd03 12810echo "configure:12811: checking for vsscanf" >&5
698dcdb6
VZ
12811if eval "test \"`echo '$''{'wx_cv_func_vsscanf'+set}'`\" = set"; then
12812 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 12813else
698dcdb6
VZ
12814
12815 cat > conftest.$ac_ext <<EOF
f11bdd03 12816#line 12817 "configure"
10f2d63a 12817#include "confdefs.h"
10f2d63a 12818
f6bcfd97
BP
12819 #include <stdio.h>
12820 #include <stdarg.h>
698dcdb6
VZ
12821
12822int main() {
10f2d63a 12823
f6bcfd97 12824 int wx_test_vsscanf(const char *, ...);
10f2d63a 12825
f6bcfd97
BP
12826 wx_test_vsscanf("%d");
12827 return 0;
10f2d63a
VZ
12828 }
12829
f6bcfd97 12830 int wx_test_vsscanf(const char *fmt, ...)
10f2d63a 12831 {
f6bcfd97
BP
12832 va_list argp;
12833 va_start(argp, fmt);
12834 vsscanf("42", fmt, argp);
12835 va_end(argp);
698dcdb6
VZ
12836
12837; return 0; }
12838EOF
f11bdd03 12839if { (eval echo configure:12840: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
12840 rm -rf conftest*
12841
f6bcfd97 12842 wx_cv_func_vsscanf=yes
698dcdb6 12843
10f2d63a 12844else
698dcdb6
VZ
12845 echo "configure: failed program was:" >&5
12846 cat conftest.$ac_ext >&5
12847 rm -rf conftest*
12848
f6bcfd97 12849 wx_cv_func_vsscanf=no
698dcdb6 12850
6232543b 12851fi
698dcdb6 12852rm -f conftest*
703e0a69 12853
1e487827 12854fi
698dcdb6
VZ
12855
12856echo "$ac_t""$wx_cv_func_vsscanf" 1>&6
10f2d63a 12857
9d8deca0 12858if test "$wx_cv_func_vsscanf" = yes; then
698dcdb6 12859 cat >> confdefs.h <<\EOF
9d8deca0
VZ
12860#define HAVE_VSSCANF 1
12861EOF
12862
12863fi
12864
95c8801c
VS
12865if test "$TOOLKIT" != "MSW"; then
12866
12867
12868
698dcdb6
VZ
12869ac_ext=C
12870# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12871ac_cpp='$CXXCPP $CPPFLAGS'
12872ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12873ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12874cross_compiling=$ac_cv_prog_cxx_cross
12875
12876echo $ac_n "checking if iconv() takes char**""... $ac_c" 1>&6
f11bdd03 12877echo "configure:12878: checking if iconv() takes char**" >&5
698dcdb6
VZ
12878if eval "test \"`echo '$''{'wx_cv_iconv_takes_char'+set}'`\" = set"; then
12879 echo $ac_n "(cached) $ac_c" 1>&6
12880else
12881
12882 cat > conftest.$ac_ext <<EOF
f11bdd03 12883#line 12884 "configure"
95c8801c
VS
12884#include "confdefs.h"
12885#include <iconv.h>
698dcdb6 12886int main() {
95c8801c
VS
12887
12888 char **inbuf, **outbuf;
19af3b06
VZ
12889 iconv_t cd;
12890 size_t insz, outsz;
12891 iconv(cd, inbuf, &insz, outbuf, &outsz);
698dcdb6
VZ
12892
12893; return 0; }
12894EOF
f11bdd03 12895if { (eval echo configure:12896: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 12896 rm -rf conftest*
95c8801c
VS
12897 wx_cv_iconv_takes_char=yes
12898else
698dcdb6
VZ
12899 echo "configure: failed program was:" >&5
12900 cat conftest.$ac_ext >&5
12901 rm -rf conftest*
12902 wx_cv_iconv_takes_char=no
95c8801c 12903fi
698dcdb6 12904rm -f conftest*
95c8801c
VS
12905
12906fi
698dcdb6
VZ
12907
12908echo "$ac_t""$wx_cv_iconv_takes_char" 1>&6
10f2d63a 12909ac_ext=c
698dcdb6 12910# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10f2d63a 12911ac_cpp='$CPP $CPPFLAGS'
698dcdb6
VZ
12912ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12913ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12914cross_compiling=$ac_cv_prog_cc_cross
10f2d63a 12915
95c8801c 12916if test "$wx_cv_iconv_takes_char" = yes ; then
698dcdb6 12917 cat >> confdefs.h <<\EOF
95c8801c
VS
12918#define WX_ICONV_TAKES_CHAR 1
12919EOF
12920
12921fi
10f2d63a 12922
1e487827 12923
698dcdb6
VZ
12924if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
12925 for ac_func in sigaction
eb4efbdc 12926do
698dcdb6 12927echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
f11bdd03 12928echo "configure:12929: checking for $ac_func" >&5
698dcdb6
VZ
12929if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12930 echo $ac_n "(cached) $ac_c" 1>&6
12931else
12932 cat > conftest.$ac_ext <<EOF
f11bdd03 12933#line 12934 "configure"
eb4efbdc
VZ
12934#include "confdefs.h"
12935/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 12936 which can conflict with char $ac_func(); below. */
eb4efbdc
VZ
12937#include <assert.h>
12938/* Override any gcc2 internal prototype to avoid an error. */
12939/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
12940 builtin and then its argument prototype would still apply. */
12941char $ac_func();
12942
12943int main() {
eb4efbdc
VZ
12944
12945/* The GNU C library defines this for functions which it implements
12946 to always fail with ENOSYS. Some functions are actually named
12947 something starting with __ and the normal name is an alias. */
12948#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12949choke me
12950#else
698dcdb6 12951$ac_func();
eb4efbdc
VZ
12952#endif
12953
698dcdb6 12954; return 0; }
eb4efbdc 12955EOF
f11bdd03 12956if { (eval echo configure:12957: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
12957 rm -rf conftest*
12958 eval "ac_cv_func_$ac_func=yes"
12959else
12960 echo "configure: failed program was:" >&5
12961 cat conftest.$ac_ext >&5
12962 rm -rf conftest*
12963 eval "ac_cv_func_$ac_func=no"
12964fi
12965rm -f conftest*
12966fi
eb4efbdc 12967
698dcdb6
VZ
12968if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12969 echo "$ac_t""yes" 1>&6
12970 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12971 cat >> confdefs.h <<EOF
12972#define $ac_tr_func 1
12973EOF
12974
12975else
12976 echo "$ac_t""no" 1>&6
eb4efbdc
VZ
12977fi
12978done
12979
698dcdb6 12980
eb4efbdc 12981 if test "$ac_cv_func_sigaction" = "no"; then
698dcdb6 12982 echo "configure: warning: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" 1>&2
eb4efbdc
VZ
12983 wxUSE_ON_FATAL_EXCEPTION=no
12984 fi
f6bcfd97
BP
12985
12986 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
698dcdb6
VZ
12987
12988 ac_ext=C
12989# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1e487827 12990ac_cpp='$CXXCPP $CPPFLAGS'
698dcdb6
VZ
12991ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12992ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12993cross_compiling=$ac_cv_prog_cxx_cross
6232543b 12994
1e487827 12995
698dcdb6 12996 echo $ac_n "checking for sa_handler type""... $ac_c" 1>&6
f11bdd03 12997echo "configure:12998: checking for sa_handler type" >&5
698dcdb6
VZ
12998if eval "test \"`echo '$''{'wx_cv_type_sa_handler'+set}'`\" = set"; then
12999 echo $ac_n "(cached) $ac_c" 1>&6
13000else
13001
13002 cat > conftest.$ac_ext <<EOF
f11bdd03 13003#line 13004 "configure"
f6bcfd97
BP
13004#include "confdefs.h"
13005#include <signal.h>
698dcdb6 13006int main() {
f6bcfd97
BP
13007
13008 extern void testSigHandler(int);
13009
13010 struct sigaction sa;
13011 sa.sa_handler = testSigHandler;
698dcdb6
VZ
13012
13013; return 0; }
13014EOF
f11bdd03 13015if { (eval echo configure:13016: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
13016 rm -rf conftest*
13017
f6bcfd97 13018 wx_cv_type_sa_handler=int
698dcdb6 13019
f6bcfd97 13020else
698dcdb6
VZ
13021 echo "configure: failed program was:" >&5
13022 cat conftest.$ac_ext >&5
13023 rm -rf conftest*
13024
f6bcfd97 13025 wx_cv_type_sa_handler=void
698dcdb6 13026
6232543b 13027fi
698dcdb6
VZ
13028rm -f conftest*
13029
1e487827 13030fi
698dcdb6
VZ
13031
13032echo "$ac_t""$wx_cv_type_sa_handler" 1>&6
f6bcfd97
BP
13033
13034 ac_ext=c
698dcdb6 13035# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
f6bcfd97 13036ac_cpp='$CPP $CPPFLAGS'
698dcdb6
VZ
13037ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13038ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13039cross_compiling=$ac_cv_prog_cc_cross
13040
703e0a69 13041
698dcdb6 13042 cat >> confdefs.h <<EOF
f6bcfd97
BP
13043#define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
13044EOF
13045
13046 fi
eb4efbdc
VZ
13047fi
13048
10f2d63a
VZ
13049for ac_func in vfork
13050do
698dcdb6 13051echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
f11bdd03 13052echo "configure:13053: checking for $ac_func" >&5
698dcdb6
VZ
13053if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13054 echo $ac_n "(cached) $ac_c" 1>&6
13055else
13056 cat > conftest.$ac_ext <<EOF
f11bdd03 13057#line 13058 "configure"
10f2d63a
VZ
13058#include "confdefs.h"
13059/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 13060 which can conflict with char $ac_func(); below. */
10f2d63a
VZ
13061#include <assert.h>
13062/* Override any gcc2 internal prototype to avoid an error. */
13063/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
13064 builtin and then its argument prototype would still apply. */
13065char $ac_func();
13066
13067int main() {
10f2d63a
VZ
13068
13069/* The GNU C library defines this for functions which it implements
13070 to always fail with ENOSYS. Some functions are actually named
13071 something starting with __ and the normal name is an alias. */
13072#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13073choke me
13074#else
698dcdb6 13075$ac_func();
10f2d63a
VZ
13076#endif
13077
698dcdb6 13078; return 0; }
10f2d63a 13079EOF
f11bdd03 13080if { (eval echo configure:13081: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
13081 rm -rf conftest*
13082 eval "ac_cv_func_$ac_func=yes"
13083else
13084 echo "configure: failed program was:" >&5
13085 cat conftest.$ac_ext >&5
13086 rm -rf conftest*
13087 eval "ac_cv_func_$ac_func=no"
13088fi
13089rm -f conftest*
13090fi
270a909e 13091
698dcdb6
VZ
13092if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13093 echo "$ac_t""yes" 1>&6
13094 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13095 cat >> confdefs.h <<EOF
13096#define $ac_tr_func 1
13097EOF
13098
13099else
13100 echo "$ac_t""no" 1>&6
270a909e
VZ
13101fi
13102done
13103
1e487827 13104
698dcdb6
VZ
13105if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
13106 for ac_func in fcntl flock
4f3c5f06 13107do
698dcdb6 13108echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
f11bdd03 13109echo "configure:13110: checking for $ac_func" >&5
698dcdb6
VZ
13110if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13111 echo $ac_n "(cached) $ac_c" 1>&6
13112else
13113 cat > conftest.$ac_ext <<EOF
f11bdd03 13114#line 13115 "configure"
4f3c5f06
VZ
13115#include "confdefs.h"
13116/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 13117 which can conflict with char $ac_func(); below. */
4f3c5f06
VZ
13118#include <assert.h>
13119/* Override any gcc2 internal prototype to avoid an error. */
13120/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
13121 builtin and then its argument prototype would still apply. */
13122char $ac_func();
13123
13124int main() {
4f3c5f06
VZ
13125
13126/* The GNU C library defines this for functions which it implements
13127 to always fail with ENOSYS. Some functions are actually named
13128 something starting with __ and the normal name is an alias. */
13129#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13130choke me
13131#else
698dcdb6 13132$ac_func();
4f3c5f06
VZ
13133#endif
13134
698dcdb6
VZ
13135; return 0; }
13136EOF
f11bdd03 13137if { (eval echo configure:13138: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
13138 rm -rf conftest*
13139 eval "ac_cv_func_$ac_func=yes"
13140else
13141 echo "configure: failed program was:" >&5
13142 cat conftest.$ac_ext >&5
13143 rm -rf conftest*
13144 eval "ac_cv_func_$ac_func=no"
13145fi
13146rm -f conftest*
13147fi
13148
13149if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13150 echo "$ac_t""yes" 1>&6
13151 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13152 cat >> confdefs.h <<EOF
13153#define $ac_tr_func 1
4f3c5f06
VZ
13154EOF
13155 break
698dcdb6
VZ
13156else
13157 echo "$ac_t""no" 1>&6
4f3c5f06
VZ
13158fi
13159done
13160
698dcdb6 13161
4f3c5f06 13162 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
698dcdb6 13163 echo "configure: warning: wxSingleInstanceChecker not available" 1>&2
4f3c5f06
VZ
13164 wxUSE_SNGLINST_CHECKER=no
13165 fi
13166fi
13167
270a909e
VZ
13168for ac_func in timegm
13169do
698dcdb6 13170echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
f11bdd03 13171echo "configure:13172: checking for $ac_func" >&5
698dcdb6
VZ
13172if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13173 echo $ac_n "(cached) $ac_c" 1>&6
13174else
13175 cat > conftest.$ac_ext <<EOF
f11bdd03 13176#line 13177 "configure"
270a909e
VZ
13177#include "confdefs.h"
13178/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 13179 which can conflict with char $ac_func(); below. */
270a909e
VZ
13180#include <assert.h>
13181/* Override any gcc2 internal prototype to avoid an error. */
13182/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
13183 builtin and then its argument prototype would still apply. */
13184char $ac_func();
13185
13186int main() {
270a909e
VZ
13187
13188/* The GNU C library defines this for functions which it implements
13189 to always fail with ENOSYS. Some functions are actually named
13190 something starting with __ and the normal name is an alias. */
13191#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13192choke me
13193#else
698dcdb6 13194$ac_func();
270a909e
VZ
13195#endif
13196
698dcdb6 13197; return 0; }
270a909e 13198EOF
f11bdd03 13199if { (eval echo configure:13200: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
13200 rm -rf conftest*
13201 eval "ac_cv_func_$ac_func=yes"
13202else
13203 echo "configure: failed program was:" >&5
13204 cat conftest.$ac_ext >&5
13205 rm -rf conftest*
13206 eval "ac_cv_func_$ac_func=no"
13207fi
13208rm -f conftest*
13209fi
10f2d63a 13210
698dcdb6
VZ
13211if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13212 echo "$ac_t""yes" 1>&6
13213 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13214 cat >> confdefs.h <<EOF
13215#define $ac_tr_func 1
13216EOF
13217
13218else
13219 echo "$ac_t""no" 1>&6
10f2d63a
VZ
13220fi
13221done
13222
698dcdb6 13223
8fd0d89b
VZ
13224for ac_func in putenv setenv
13225do
698dcdb6 13226echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
f11bdd03 13227echo "configure:13228: checking for $ac_func" >&5
698dcdb6
VZ
13228if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13229 echo $ac_n "(cached) $ac_c" 1>&6
13230else
13231 cat > conftest.$ac_ext <<EOF
f11bdd03 13232#line 13233 "configure"
8fd0d89b
VZ
13233#include "confdefs.h"
13234/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 13235 which can conflict with char $ac_func(); below. */
8fd0d89b
VZ
13236#include <assert.h>
13237/* Override any gcc2 internal prototype to avoid an error. */
13238/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
13239 builtin and then its argument prototype would still apply. */
13240char $ac_func();
13241
13242int main() {
8fd0d89b
VZ
13243
13244/* The GNU C library defines this for functions which it implements
13245 to always fail with ENOSYS. Some functions are actually named
13246 something starting with __ and the normal name is an alias. */
13247#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13248choke me
13249#else
698dcdb6 13250$ac_func();
8fd0d89b
VZ
13251#endif
13252
698dcdb6
VZ
13253; return 0; }
13254EOF
f11bdd03 13255if { (eval echo configure:13256: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
13256 rm -rf conftest*
13257 eval "ac_cv_func_$ac_func=yes"
13258else
13259 echo "configure: failed program was:" >&5
13260 cat conftest.$ac_ext >&5
13261 rm -rf conftest*
13262 eval "ac_cv_func_$ac_func=no"
13263fi
13264rm -f conftest*
13265fi
13266
13267if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13268 echo "$ac_t""yes" 1>&6
13269 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13270 cat >> confdefs.h <<EOF
13271#define $ac_tr_func 1
8fd0d89b
VZ
13272EOF
13273 break
698dcdb6
VZ
13274else
13275 echo "$ac_t""no" 1>&6
8fd0d89b
VZ
13276fi
13277done
13278
698dcdb6 13279
b12915c1
VZ
13280HAVE_SOME_SLEEP_FUNC=0
13281if test "$USE_BEOS" = 1; then
698dcdb6 13282 cat >> confdefs.h <<\EOF
b12915c1
VZ
13283#define HAVE_SLEEP 1
13284EOF
13285
13286 HAVE_SOME_SLEEP_FUNC=1
13287fi
13288
f11bdd03 13289if test "$USE_DARWIN" = 1; then
698dcdb6 13290 cat >> confdefs.h <<\EOF
b4085ce6
GD
13291#define HAVE_USLEEP 1
13292EOF
13293
13294 HAVE_SOME_SLEEP_FUNC=1
13295fi
13296
b12915c1
VZ
13297if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
13298 POSIX4_LINK=
698dcdb6 13299 for ac_func in nanosleep
10f2d63a 13300do
698dcdb6 13301echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
f11bdd03 13302echo "configure:13303: checking for $ac_func" >&5
698dcdb6
VZ
13303if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13304 echo $ac_n "(cached) $ac_c" 1>&6
13305else
13306 cat > conftest.$ac_ext <<EOF
f11bdd03 13307#line 13308 "configure"
10f2d63a
VZ
13308#include "confdefs.h"
13309/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 13310 which can conflict with char $ac_func(); below. */
10f2d63a
VZ
13311#include <assert.h>
13312/* Override any gcc2 internal prototype to avoid an error. */
13313/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
13314 builtin and then its argument prototype would still apply. */
13315char $ac_func();
13316
13317int main() {
10f2d63a
VZ
13318
13319/* The GNU C library defines this for functions which it implements
13320 to always fail with ENOSYS. Some functions are actually named
13321 something starting with __ and the normal name is an alias. */
13322#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13323choke me
13324#else
698dcdb6 13325$ac_func();
10f2d63a
VZ
13326#endif
13327
698dcdb6
VZ
13328; return 0; }
13329EOF
f11bdd03 13330if { (eval echo configure:13331: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
13331 rm -rf conftest*
13332 eval "ac_cv_func_$ac_func=yes"
13333else
13334 echo "configure: failed program was:" >&5
13335 cat conftest.$ac_ext >&5
13336 rm -rf conftest*
13337 eval "ac_cv_func_$ac_func=no"
13338fi
13339rm -f conftest*
13340fi
13341
13342if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13343 echo "$ac_t""yes" 1>&6
13344 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13345 cat >> confdefs.h <<EOF
13346#define $ac_tr_func 1
13347EOF
13348 cat >> confdefs.h <<\EOF
10f2d63a
VZ
13349#define HAVE_NANOSLEEP 1
13350EOF
13351
13352else
698dcdb6
VZ
13353 echo "$ac_t""no" 1>&6
13354echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
f11bdd03 13355echo "configure:13356: checking for nanosleep in -lposix4" >&5
698dcdb6
VZ
13356ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
13357if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13358 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 13359else
698dcdb6 13360 ac_save_LIBS="$LIBS"
10f2d63a 13361LIBS="-lposix4 $LIBS"
698dcdb6 13362cat > conftest.$ac_ext <<EOF
f11bdd03 13363#line 13364 "configure"
10f2d63a
VZ
13364#include "confdefs.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 nanosleep();
13369
13370int main() {
13371nanosleep()
13372; return 0; }
13373EOF
f11bdd03 13374if { (eval echo configure:13375: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
13375 rm -rf conftest*
13376 eval "ac_cv_lib_$ac_lib_var=yes"
13377else
13378 echo "configure: failed program was:" >&5
13379 cat conftest.$ac_ext >&5
13380 rm -rf conftest*
13381 eval "ac_cv_lib_$ac_lib_var=no"
13382fi
13383rm -f conftest*
13384LIBS="$ac_save_LIBS"
13385
13386fi
13387if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13388 echo "$ac_t""yes" 1>&6
13389
13390 cat >> confdefs.h <<\EOF
10f2d63a
VZ
13391#define HAVE_NANOSLEEP 1
13392EOF
13393
b12915c1 13394 POSIX4_LINK="-lposix4"
698dcdb6 13395
10f2d63a 13396else
698dcdb6 13397 echo "$ac_t""no" 1>&6
10f2d63a 13398
698dcdb6 13399 for ac_func in usleep
10f2d63a 13400do
698dcdb6 13401echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
f11bdd03 13402echo "configure:13403: checking for $ac_func" >&5
698dcdb6
VZ
13403if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13404 echo $ac_n "(cached) $ac_c" 1>&6
13405else
13406 cat > conftest.$ac_ext <<EOF
f11bdd03 13407#line 13408 "configure"
10f2d63a
VZ
13408#include "confdefs.h"
13409/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 13410 which can conflict with char $ac_func(); below. */
10f2d63a
VZ
13411#include <assert.h>
13412/* Override any gcc2 internal prototype to avoid an error. */
13413/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
13414 builtin and then its argument prototype would still apply. */
13415char $ac_func();
13416
13417int main() {
10f2d63a
VZ
13418
13419/* The GNU C library defines this for functions which it implements
13420 to always fail with ENOSYS. Some functions are actually named
13421 something starting with __ and the normal name is an alias. */
13422#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13423choke me
13424#else
698dcdb6 13425$ac_func();
10f2d63a
VZ
13426#endif
13427
698dcdb6
VZ
13428; return 0; }
13429EOF
f11bdd03 13430if { (eval echo configure:13431: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
13431 rm -rf conftest*
13432 eval "ac_cv_func_$ac_func=yes"
13433else
13434 echo "configure: failed program was:" >&5
13435 cat conftest.$ac_ext >&5
13436 rm -rf conftest*
13437 eval "ac_cv_func_$ac_func=no"
13438fi
13439rm -f conftest*
13440fi
13441
13442if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13443 echo "$ac_t""yes" 1>&6
13444 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13445 cat >> confdefs.h <<EOF
13446#define $ac_tr_func 1
13447EOF
13448 cat >> confdefs.h <<\EOF
b4085ce6
GD
13449#define HAVE_USLEEP 1
13450EOF
13451
10f2d63a 13452else
698dcdb6
VZ
13453 echo "$ac_t""no" 1>&6
13454echo "configure: warning: wxSleep() function will not work" 1>&2
13455
10f2d63a
VZ
13456fi
13457done
13458
698dcdb6
VZ
13459
13460
10f2d63a
VZ
13461fi
13462
698dcdb6
VZ
13463
13464
10f2d63a
VZ
13465fi
13466done
13467
b12915c1 13468fi
10f2d63a
VZ
13469
13470for ac_func in uname gethostname
13471do
698dcdb6 13472echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
f11bdd03 13473echo "configure:13474: checking for $ac_func" >&5
698dcdb6
VZ
13474if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13475 echo $ac_n "(cached) $ac_c" 1>&6
13476else
13477 cat > conftest.$ac_ext <<EOF
f11bdd03 13478#line 13479 "configure"
10f2d63a
VZ
13479#include "confdefs.h"
13480/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 13481 which can conflict with char $ac_func(); below. */
10f2d63a
VZ
13482#include <assert.h>
13483/* Override any gcc2 internal prototype to avoid an error. */
13484/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
13485 builtin and then its argument prototype would still apply. */
13486char $ac_func();
13487
13488int main() {
10f2d63a
VZ
13489
13490/* The GNU C library defines this for functions which it implements
13491 to always fail with ENOSYS. Some functions are actually named
13492 something starting with __ and the normal name is an alias. */
13493#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13494choke me
13495#else
698dcdb6 13496$ac_func();
10f2d63a
VZ
13497#endif
13498
698dcdb6
VZ
13499; return 0; }
13500EOF
f11bdd03 13501if { (eval echo configure:13502: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
13502 rm -rf conftest*
13503 eval "ac_cv_func_$ac_func=yes"
13504else
13505 echo "configure: failed program was:" >&5
13506 cat conftest.$ac_ext >&5
13507 rm -rf conftest*
13508 eval "ac_cv_func_$ac_func=no"
13509fi
13510rm -f conftest*
13511fi
13512
13513if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13514 echo "$ac_t""yes" 1>&6
13515 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13516 cat >> confdefs.h <<EOF
13517#define $ac_tr_func 1
10f2d63a
VZ
13518EOF
13519 break
698dcdb6
VZ
13520else
13521 echo "$ac_t""no" 1>&6
10f2d63a
VZ
13522fi
13523done
13524
698dcdb6
VZ
13525
13526
13527ac_ext=C
13528# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6098c7f9 13529ac_cpp='$CXXCPP $CPPFLAGS'
698dcdb6
VZ
13530ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13531ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13532cross_compiling=$ac_cv_prog_cxx_cross
13533
6098c7f9 13534
10f2d63a
VZ
13535for ac_func in strtok_r
13536do
698dcdb6 13537echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
f11bdd03 13538echo "configure:13539: checking for $ac_func" >&5
698dcdb6
VZ
13539if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13540 echo $ac_n "(cached) $ac_c" 1>&6
13541else
13542 cat > conftest.$ac_ext <<EOF
f11bdd03 13543#line 13544 "configure"
10f2d63a
VZ
13544#include "confdefs.h"
13545/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 13546 which can conflict with char $ac_func(); below. */
10f2d63a
VZ
13547#include <assert.h>
13548/* Override any gcc2 internal prototype to avoid an error. */
6098c7f9
VZ
13549#ifdef __cplusplus
13550extern "C"
13551#endif
10f2d63a 13552/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
13553 builtin and then its argument prototype would still apply. */
13554char $ac_func();
13555
13556int main() {
10f2d63a
VZ
13557
13558/* The GNU C library defines this for functions which it implements
13559 to always fail with ENOSYS. Some functions are actually named
13560 something starting with __ and the normal name is an alias. */
13561#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13562choke me
13563#else
698dcdb6 13564$ac_func();
10f2d63a
VZ
13565#endif
13566
698dcdb6 13567; return 0; }
10f2d63a 13568EOF
f11bdd03 13569if { (eval echo configure:13570: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
13570 rm -rf conftest*
13571 eval "ac_cv_func_$ac_func=yes"
13572else
13573 echo "configure: failed program was:" >&5
13574 cat conftest.$ac_ext >&5
13575 rm -rf conftest*
13576 eval "ac_cv_func_$ac_func=no"
13577fi
13578rm -f conftest*
13579fi
10f2d63a 13580
698dcdb6
VZ
13581if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13582 echo "$ac_t""yes" 1>&6
13583 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13584 cat >> confdefs.h <<EOF
13585#define $ac_tr_func 1
13586EOF
13587
13588else
13589 echo "$ac_t""no" 1>&6
10f2d63a
VZ
13590fi
13591done
13592
698dcdb6 13593
6098c7f9 13594ac_ext=c
698dcdb6 13595# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6098c7f9 13596ac_cpp='$CPP $CPPFLAGS'
698dcdb6
VZ
13597ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13598ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13599cross_compiling=$ac_cv_prog_cc_cross
6232543b 13600
1e487827 13601
698dcdb6 13602INET_LINK=
10f2d63a
VZ
13603for ac_func in inet_addr
13604do
698dcdb6 13605echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
f11bdd03 13606echo "configure:13607: checking for $ac_func" >&5
698dcdb6
VZ
13607if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13608 echo $ac_n "(cached) $ac_c" 1>&6
13609else
13610 cat > conftest.$ac_ext <<EOF
f11bdd03 13611#line 13612 "configure"
10f2d63a
VZ
13612#include "confdefs.h"
13613/* System header to define __stub macros and hopefully few prototypes,
698dcdb6
VZ
13614 which can conflict with char $ac_func(); below. */
13615#include <assert.h>
13616/* Override any gcc2 internal prototype to avoid an error. */
10f2d63a 13617/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
13618 builtin and then its argument prototype would still apply. */
13619char $ac_func();
13620
13621int main() {
10f2d63a
VZ
13622
13623/* The GNU C library defines this for functions which it implements
13624 to always fail with ENOSYS. Some functions are actually named
1e487827
VS
13625 something starting with __ and the normal name is an alias. */
13626#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13627choke me
13628#else
698dcdb6 13629$ac_func();
1e487827 13630#endif
703e0a69 13631
698dcdb6
VZ
13632; return 0; }
13633EOF
f11bdd03 13634if { (eval echo configure:13635: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
13635 rm -rf conftest*
13636 eval "ac_cv_func_$ac_func=yes"
13637else
13638 echo "configure: failed program was:" >&5
13639 cat conftest.$ac_ext >&5
13640 rm -rf conftest*
13641 eval "ac_cv_func_$ac_func=no"
13642fi
13643rm -f conftest*
13644fi
13645
13646if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13647 echo "$ac_t""yes" 1>&6
13648 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13649 cat >> confdefs.h <<EOF
13650#define $ac_tr_func 1
13651EOF
13652 cat >> confdefs.h <<\EOF
c63c7106
VZ
13653#define HAVE_INET_ADDR 1
13654EOF
13655
10f2d63a 13656else
698dcdb6
VZ
13657 echo "$ac_t""no" 1>&6
13658echo $ac_n "checking for inet_addr in -lnsl""... $ac_c" 1>&6
f11bdd03 13659echo "configure:13660: checking for inet_addr in -lnsl" >&5
698dcdb6
VZ
13660ac_lib_var=`echo nsl'_'inet_addr | sed 'y%./+-%__p_%'`
13661if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13662 echo $ac_n "(cached) $ac_c" 1>&6
c63c7106 13663else
698dcdb6 13664 ac_save_LIBS="$LIBS"
c63c7106 13665LIBS="-lnsl $LIBS"
698dcdb6 13666cat > conftest.$ac_ext <<EOF
f11bdd03 13667#line 13668 "configure"
c63c7106
VZ
13668#include "confdefs.h"
13669/* Override any gcc2 internal prototype to avoid an error. */
13670/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
13671 builtin and then its argument prototype would still apply. */
13672char inet_addr();
13673
13674int main() {
13675inet_addr()
13676; return 0; }
13677EOF
f11bdd03 13678if { (eval echo configure:13679: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
13679 rm -rf conftest*
13680 eval "ac_cv_lib_$ac_lib_var=yes"
13681else
13682 echo "configure: failed program was:" >&5
13683 cat conftest.$ac_ext >&5
13684 rm -rf conftest*
13685 eval "ac_cv_lib_$ac_lib_var=no"
13686fi
13687rm -f conftest*
13688LIBS="$ac_save_LIBS"
13689
13690fi
13691if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13692 echo "$ac_t""yes" 1>&6
c63c7106
VZ
13693 INET_LINK="nsl"
13694else
698dcdb6
VZ
13695 echo "$ac_t""no" 1>&6
13696echo $ac_n "checking for inet_addr in -lresolv""... $ac_c" 1>&6
f11bdd03 13697echo "configure:13698: checking for inet_addr in -lresolv" >&5
698dcdb6
VZ
13698ac_lib_var=`echo resolv'_'inet_addr | sed 'y%./+-%__p_%'`
13699if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13700 echo $ac_n "(cached) $ac_c" 1>&6
c63c7106 13701else
698dcdb6 13702 ac_save_LIBS="$LIBS"
c63c7106 13703LIBS="-lresolv $LIBS"
698dcdb6 13704cat > conftest.$ac_ext <<EOF
f11bdd03 13705#line 13706 "configure"
c63c7106
VZ
13706#include "confdefs.h"
13707/* Override any gcc2 internal prototype to avoid an error. */
13708/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
13709 builtin and then its argument prototype would still apply. */
13710char inet_addr();
13711
13712int main() {
13713inet_addr()
13714; return 0; }
13715EOF
f11bdd03 13716if { (eval echo configure:13717: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
13717 rm -rf conftest*
13718 eval "ac_cv_lib_$ac_lib_var=yes"
13719else
13720 echo "configure: failed program was:" >&5
13721 cat conftest.$ac_ext >&5
13722 rm -rf conftest*
13723 eval "ac_cv_lib_$ac_lib_var=no"
13724fi
13725rm -f conftest*
13726LIBS="$ac_save_LIBS"
c63c7106 13727
6232543b 13728fi
698dcdb6
VZ
13729if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13730 echo "$ac_t""yes" 1>&6
13731 INET_LINK="resolv"
13732
13733else
13734 echo "$ac_t""no" 1>&6
13735fi
c63c7106 13736
698dcdb6 13737
1e487827 13738fi
703e0a69 13739
698dcdb6
VZ
13740
13741
10f2d63a
VZ
13742fi
13743done
13744
698dcdb6 13745
10f2d63a
VZ
13746for ac_func in inet_aton
13747do
698dcdb6 13748echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
f11bdd03 13749echo "configure:13750: checking for $ac_func" >&5
698dcdb6
VZ
13750if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13751 echo $ac_n "(cached) $ac_c" 1>&6
13752else
13753 cat > conftest.$ac_ext <<EOF
f11bdd03 13754#line 13755 "configure"
10f2d63a
VZ
13755#include "confdefs.h"
13756/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 13757 which can conflict with char $ac_func(); below. */
10f2d63a
VZ
13758#include <assert.h>
13759/* Override any gcc2 internal prototype to avoid an error. */
13760/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
13761 builtin and then its argument prototype would still apply. */
13762char $ac_func();
13763
13764int main() {
10f2d63a
VZ
13765
13766/* The GNU C library defines this for functions which it implements
13767 to always fail with ENOSYS. Some functions are actually named
13768 something starting with __ and the normal name is an alias. */
13769#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13770choke me
13771#else
698dcdb6 13772$ac_func();
10f2d63a
VZ
13773#endif
13774
698dcdb6
VZ
13775; return 0; }
13776EOF
f11bdd03 13777if { (eval echo configure:13778: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
13778 rm -rf conftest*
13779 eval "ac_cv_func_$ac_func=yes"
13780else
13781 echo "configure: failed program was:" >&5
13782 cat conftest.$ac_ext >&5
13783 rm -rf conftest*
13784 eval "ac_cv_func_$ac_func=no"
13785fi
13786rm -f conftest*
13787fi
13788
13789if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13790 echo "$ac_t""yes" 1>&6
13791 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13792 cat >> confdefs.h <<EOF
13793#define $ac_tr_func 1
13794EOF
13795 cat >> confdefs.h <<\EOF
c63c7106
VZ
13796#define HAVE_INET_ATON 1
13797EOF
13798
10f2d63a 13799else
698dcdb6
VZ
13800 echo "$ac_t""no" 1>&6
13801 echo $ac_n "checking for inet_aton in -l$INET_LINK""... $ac_c" 1>&6
f11bdd03 13802echo "configure:13803: checking for inet_aton in -l$INET_LINK" >&5
698dcdb6
VZ
13803ac_lib_var=`echo $INET_LINK'_'inet_aton | sed 'y%./+-%__p_%'`
13804if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13805 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 13806else
698dcdb6 13807 ac_save_LIBS="$LIBS"
c63c7106 13808LIBS="-l$INET_LINK $LIBS"
698dcdb6 13809cat > conftest.$ac_ext <<EOF
f11bdd03 13810#line 13811 "configure"
10f2d63a
VZ
13811#include "confdefs.h"
13812/* Override any gcc2 internal prototype to avoid an error. */
13813/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
13814 builtin and then its argument prototype would still apply. */
13815char inet_aton();
13816
13817int main() {
13818inet_aton()
13819; return 0; }
13820EOF
f11bdd03 13821if { (eval echo configure:13822: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
13822 rm -rf conftest*
13823 eval "ac_cv_lib_$ac_lib_var=yes"
13824else
13825 echo "configure: failed program was:" >&5
13826 cat conftest.$ac_ext >&5
13827 rm -rf conftest*
13828 eval "ac_cv_lib_$ac_lib_var=no"
13829fi
13830rm -f conftest*
13831LIBS="$ac_save_LIBS"
13832
13833fi
13834if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13835 echo "$ac_t""yes" 1>&6
13836 cat >> confdefs.h <<\EOF
c63c7106 13837#define HAVE_INET_ATON 1
10f2d63a
VZ
13838EOF
13839
698dcdb6
VZ
13840else
13841 echo "$ac_t""no" 1>&6
10f2d63a
VZ
13842fi
13843
698dcdb6 13844
c63c7106
VZ
13845fi
13846done
13847
698dcdb6 13848
c63c7106 13849if test "x$INET_LINK" != "x"; then
698dcdb6 13850 cat >> confdefs.h <<\EOF
c63c7106
VZ
13851#define HAVE_INET_ADDR 1
13852EOF
13853
13854 INET_LINK="-l$INET_LINK"
13855fi
10f2d63a
VZ
13856
13857fi
13858
698dcdb6
VZ
13859
13860cat > confcache <<\EOF
10f2d63a
VZ
13861# This file is a shell script that caches the results of configure
13862# tests run on this system so they can be shared between configure
698dcdb6
VZ
13863# scripts and configure runs. It is not useful on other systems.
13864# If it contains results you don't want to keep, you may remove or edit it.
10f2d63a 13865#
698dcdb6
VZ
13866# By default, configure uses ./config.cache as the cache file,
13867# creating it if it does not exist already. You can give configure
13868# the --cache-file=FILE option to use a different cache file; that is
13869# what configure does when it calls configure scripts in
13870# subdirectories, so they share the cache.
13871# Giving --cache-file=/dev/null disables caching, for debugging configure.
13872# config.status only pays attention to the cache file if you give it the
13873# --recheck option to rerun configure.
10f2d63a 13874#
698dcdb6 13875EOF
10f2d63a
VZ
13876# The following way of writing the cache mishandles newlines in values,
13877# but we know of no workaround that is simple, portable, and efficient.
13878# So, don't put newlines in cache variables' values.
13879# Ultrix sh set writes to stderr and can't be redirected directly,
13880# and sets the high bit in the cache file unless we assign to the vars.
698dcdb6
VZ
13881(set) 2>&1 |
13882 case `(ac_space=' '; set | grep ac_space) 2>&1` in
13883 *ac_space=\ *)
13884 # `set' does not quote correctly, so add quotes (double-quote substitution
13885 # turns \\\\ into \\, and sed turns \\ into \).
13886 sed -n \
13887 -e "s/'/'\\\\''/g" \
13888 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
13889 ;;
13890 *)
13891 # `set' quotes correctly as required by POSIX, so do not add quotes.
13892 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
13893 ;;
13894 esac >> confcache
13895if cmp -s $cache_file confcache; then
13896 :
13897else
10f2d63a 13898 if test -w $cache_file; then
698dcdb6
VZ
13899 echo "updating cache $cache_file"
13900 cat confcache > $cache_file
10f2d63a
VZ
13901 else
13902 echo "not updating unwritable cache $cache_file"
13903 fi
13904fi
13905rm -f confcache
13906
698dcdb6
VZ
13907
13908
b089607b 13909if test "$TOOLKIT" != "MSW"; then
10f2d63a 13910
698dcdb6 13911
10f2d63a
VZ
13912THREADS_LINK=""
13913THREADS_OBJ=""
13914
13915if test "$wxUSE_THREADS" = "yes" ; then
13916 if test "$wxUSE_WINE" = 1 ; then
698dcdb6 13917 echo "configure: warning: Threads are not supported under WINE" 1>&2
10f2d63a 13918 wxUSE_THREADS="no"
b12915c1 13919 elif test "$USE_BEOS" = 1; then
698dcdb6 13920 echo "configure: warning: BeOS threads are not yet supported" 1>&2
b12915c1 13921 wxUSE_THREADS="no"
10f2d63a
VZ
13922 fi
13923fi
13924
13925if test "$wxUSE_THREADS" = "yes" ; then
698dcdb6 13926
186837b0 13927 if test "$USE_AIX" = 1; then
f6bcfd97
BP
13928 THREADS_LIB=pthreads
13929 else
13930 THREADS_LIB=pthread
13931 fi
13932
698dcdb6 13933 echo $ac_n "checking for pthread_create in -l$THREADS_LIB""... $ac_c" 1>&6
f11bdd03 13934echo "configure:13935: checking for pthread_create in -l$THREADS_LIB" >&5
698dcdb6
VZ
13935ac_lib_var=`echo $THREADS_LIB'_'pthread_create | sed 'y%./+-%__p_%'`
13936if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13937 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 13938else
698dcdb6 13939 ac_save_LIBS="$LIBS"
f6bcfd97 13940LIBS="-l$THREADS_LIB $LIBS"
698dcdb6 13941cat > conftest.$ac_ext <<EOF
f11bdd03 13942#line 13943 "configure"
10f2d63a
VZ
13943#include "confdefs.h"
13944/* Override any gcc2 internal prototype to avoid an error. */
13945/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
13946 builtin and then its argument prototype would still apply. */
13947char pthread_create();
13948
13949int main() {
13950pthread_create()
13951; return 0; }
13952EOF
f11bdd03 13953if { (eval echo configure:13954: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
13954 rm -rf conftest*
13955 eval "ac_cv_lib_$ac_lib_var=yes"
13956else
13957 echo "configure: failed program was:" >&5
13958 cat conftest.$ac_ext >&5
13959 rm -rf conftest*
13960 eval "ac_cv_lib_$ac_lib_var=no"
13961fi
13962rm -f conftest*
13963LIBS="$ac_save_LIBS"
10f2d63a 13964
698dcdb6
VZ
13965fi
13966if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13967 echo "$ac_t""yes" 1>&6
13968
10f2d63a 13969 THREADS_OBJ="threadpsx.lo"
f6bcfd97 13970 THREADS_LINK=$THREADS_LIB
698dcdb6 13971
10f2d63a 13972else
698dcdb6 13973 echo "$ac_t""no" 1>&6
10f2d63a 13974
698dcdb6 13975 echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6
f11bdd03 13976echo "configure:13977: checking for pthread_create in -lc_r" >&5
698dcdb6
VZ
13977ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'`
13978if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13979 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 13980else
698dcdb6 13981 ac_save_LIBS="$LIBS"
10f2d63a 13982LIBS="-lc_r $LIBS"
698dcdb6 13983cat > conftest.$ac_ext <<EOF
f11bdd03 13984#line 13985 "configure"
10f2d63a
VZ
13985#include "confdefs.h"
13986/* Override any gcc2 internal prototype to avoid an error. */
13987/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
13988 builtin and then its argument prototype would still apply. */
13989char pthread_create();
13990
13991int main() {
13992pthread_create()
13993; return 0; }
13994EOF
f11bdd03 13995if { (eval echo configure:13996: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
13996 rm -rf conftest*
13997 eval "ac_cv_lib_$ac_lib_var=yes"
13998else
13999 echo "configure: failed program was:" >&5
14000 cat conftest.$ac_ext >&5
14001 rm -rf conftest*
14002 eval "ac_cv_lib_$ac_lib_var=no"
14003fi
14004rm -f conftest*
14005LIBS="$ac_save_LIBS"
10f2d63a 14006
698dcdb6
VZ
14007fi
14008if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14009 echo "$ac_t""yes" 1>&6
14010
10f2d63a
VZ
14011 THREADS_OBJ="threadpsx.lo"
14012 THREADS_LINK="c_r"
698dcdb6 14013
10f2d63a 14014else
698dcdb6 14015 echo "$ac_t""no" 1>&6
10f2d63a 14016
698dcdb6
VZ
14017 ac_safe=`echo "sys/prctl.h" | sed 'y%./+-%__p_%'`
14018echo $ac_n "checking for sys/prctl.h""... $ac_c" 1>&6
f11bdd03 14019echo "configure:14020: checking for sys/prctl.h" >&5
698dcdb6
VZ
14020if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
14021 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 14022else
698dcdb6 14023 cat > conftest.$ac_ext <<EOF
f11bdd03 14024#line 14025 "configure"
10f2d63a
VZ
14025#include "confdefs.h"
14026#include <sys/prctl.h>
698dcdb6
VZ
14027EOF
14028ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
f11bdd03 14029{ (eval echo configure:14030: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
14030ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14031if test -z "$ac_err"; then
14032 rm -rf conftest*
14033 eval "ac_cv_header_$ac_safe=yes"
1e487827 14034else
698dcdb6
VZ
14035 echo "$ac_err" >&5
14036 echo "configure: failed program was:" >&5
10f2d63a 14037 cat conftest.$ac_ext >&5
698dcdb6
VZ
14038 rm -rf conftest*
14039 eval "ac_cv_header_$ac_safe=no"
10f2d63a 14040fi
698dcdb6 14041rm -f conftest*
10f2d63a 14042fi
698dcdb6
VZ
14043if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14044 echo "$ac_t""yes" 1>&6
14045
1f8ae82f 14046 THREADS_OBJ="threadsgi.lo"
698dcdb6
VZ
14047
14048else
14049 echo "$ac_t""no" 1>&6
10f2d63a
VZ
14050fi
14051
698dcdb6 14052
6232543b 14053fi
10f2d63a 14054
698dcdb6 14055
1e487827 14056fi
703e0a69 14057
698dcdb6 14058
10f2d63a
VZ
14059 if test -z "$THREADS_OBJ" ; then
14060 wxUSE_THREADS=no
698dcdb6 14061 echo "configure: warning: No thread support on this system" 1>&2
10f2d63a
VZ
14062 fi
14063fi
14064
14065if test "$wxUSE_THREADS" = "yes" ; then
698dcdb6 14066 for ac_func in thr_setconcurrency
70846f0a 14067do
698dcdb6 14068echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
f11bdd03 14069echo "configure:14070: checking for $ac_func" >&5
698dcdb6
VZ
14070if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14071 echo $ac_n "(cached) $ac_c" 1>&6
14072else
14073 cat > conftest.$ac_ext <<EOF
f11bdd03 14074#line 14075 "configure"
70846f0a
VZ
14075#include "confdefs.h"
14076/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 14077 which can conflict with char $ac_func(); below. */
70846f0a
VZ
14078#include <assert.h>
14079/* Override any gcc2 internal prototype to avoid an error. */
14080/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
14081 builtin and then its argument prototype would still apply. */
14082char $ac_func();
14083
14084int main() {
70846f0a
VZ
14085
14086/* The GNU C library defines this for functions which it implements
14087 to always fail with ENOSYS. Some functions are actually named
14088 something starting with __ and the normal name is an alias. */
14089#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14090choke me
14091#else
698dcdb6 14092$ac_func();
70846f0a
VZ
14093#endif
14094
698dcdb6 14095; return 0; }
70846f0a 14096EOF
f11bdd03 14097if { (eval echo configure:14098: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
14098 rm -rf conftest*
14099 eval "ac_cv_func_$ac_func=yes"
14100else
14101 echo "configure: failed program was:" >&5
14102 cat conftest.$ac_ext >&5
14103 rm -rf conftest*
14104 eval "ac_cv_func_$ac_func=no"
14105fi
14106rm -f conftest*
14107fi
70846f0a 14108
698dcdb6
VZ
14109if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14110 echo "$ac_t""yes" 1>&6
14111 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14112 cat >> confdefs.h <<EOF
14113#define $ac_tr_func 1
14114EOF
14115
14116else
14117 echo "$ac_t""no" 1>&6
70846f0a
VZ
14118fi
14119done
14120
698dcdb6
VZ
14121
14122
14123 for ac_hdr in sched.h
10f2d63a 14124do
698dcdb6
VZ
14125ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
14126echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
f11bdd03 14127echo "configure:14128: checking for $ac_hdr" >&5
698dcdb6
VZ
14128if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
14129 echo $ac_n "(cached) $ac_c" 1>&6
14130else
14131 cat > conftest.$ac_ext <<EOF
f11bdd03 14132#line 14133 "configure"
10f2d63a 14133#include "confdefs.h"
698dcdb6
VZ
14134#include <$ac_hdr>
14135EOF
14136ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
f11bdd03 14137{ (eval echo configure:14138: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
14138ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14139if test -z "$ac_err"; then
14140 rm -rf conftest*
14141 eval "ac_cv_header_$ac_safe=yes"
1e487827 14142else
698dcdb6
VZ
14143 echo "$ac_err" >&5
14144 echo "configure: failed program was:" >&5
10f2d63a 14145 cat conftest.$ac_ext >&5
698dcdb6
VZ
14146 rm -rf conftest*
14147 eval "ac_cv_header_$ac_safe=no"
10f2d63a 14148fi
698dcdb6 14149rm -f conftest*
10f2d63a 14150fi
698dcdb6
VZ
14151if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14152 echo "$ac_t""yes" 1>&6
14153 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
14154 cat >> confdefs.h <<EOF
14155#define $ac_tr_hdr 1
10f2d63a 14156EOF
698dcdb6
VZ
14157
14158else
14159 echo "$ac_t""no" 1>&6
10f2d63a
VZ
14160fi
14161done
14162
698dcdb6
VZ
14163
14164 echo $ac_n "checking for sched_yield in -l$THREADS_LINK""... $ac_c" 1>&6
f11bdd03 14165echo "configure:14166: checking for sched_yield in -l$THREADS_LINK" >&5
698dcdb6
VZ
14166ac_lib_var=`echo $THREADS_LINK'_'sched_yield | sed 'y%./+-%__p_%'`
14167if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14168 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 14169else
698dcdb6 14170 ac_save_LIBS="$LIBS"
10f2d63a 14171LIBS="-l$THREADS_LINK $LIBS"
698dcdb6 14172cat > conftest.$ac_ext <<EOF
f11bdd03 14173#line 14174 "configure"
10f2d63a
VZ
14174#include "confdefs.h"
14175/* Override any gcc2 internal prototype to avoid an error. */
14176/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
14177 builtin and then its argument prototype would still apply. */
14178char sched_yield();
14179
14180int main() {
14181sched_yield()
14182; return 0; }
14183EOF
f11bdd03 14184if { (eval echo configure:14185: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
14185 rm -rf conftest*
14186 eval "ac_cv_lib_$ac_lib_var=yes"
14187else
14188 echo "configure: failed program was:" >&5
14189 cat conftest.$ac_ext >&5
14190 rm -rf conftest*
14191 eval "ac_cv_lib_$ac_lib_var=no"
14192fi
14193rm -f conftest*
14194LIBS="$ac_save_LIBS"
14195
14196fi
14197if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14198 echo "$ac_t""yes" 1>&6
14199 cat >> confdefs.h <<\EOF
10f2d63a
VZ
14200#define HAVE_SCHED_YIELD 1
14201EOF
14202
14203else
698dcdb6
VZ
14204 echo "$ac_t""no" 1>&6
14205echo $ac_n "checking for sched_yield in -lposix4""... $ac_c" 1>&6
f11bdd03 14206echo "configure:14207: checking for sched_yield in -lposix4" >&5
698dcdb6
VZ
14207ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'`
14208if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14209 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 14210else
698dcdb6 14211 ac_save_LIBS="$LIBS"
1e487827 14212LIBS="-lposix4 $LIBS"
698dcdb6 14213cat > conftest.$ac_ext <<EOF
f11bdd03 14214#line 14215 "configure"
10f2d63a
VZ
14215#include "confdefs.h"
14216/* Override any gcc2 internal prototype to avoid an error. */
14217/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
14218 builtin and then its argument prototype would still apply. */
14219char sched_yield();
14220
14221int main() {
14222sched_yield()
14223; return 0; }
14224EOF
f11bdd03 14225if { (eval echo configure:14226: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
14226 rm -rf conftest*
14227 eval "ac_cv_lib_$ac_lib_var=yes"
14228else
14229 echo "configure: failed program was:" >&5
14230 cat conftest.$ac_ext >&5
14231 rm -rf conftest*
14232 eval "ac_cv_lib_$ac_lib_var=no"
14233fi
14234rm -f conftest*
14235LIBS="$ac_save_LIBS"
14236
14237fi
14238if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14239 echo "$ac_t""yes" 1>&6
14240 cat >> confdefs.h <<\EOF
10f2d63a
VZ
14241#define HAVE_SCHED_YIELD 1
14242EOF
14243 POSIX4_LINK="-lposix4"
14244else
698dcdb6
VZ
14245 echo "$ac_t""no" 1>&6
14246echo "configure: warning: wxThread::Yield will not work properly" 1>&2
14247
6232543b 14248fi
10f2d63a 14249
698dcdb6 14250
1e487827 14251fi
703e0a69 14252
698dcdb6 14253
f6bcfd97 14254 HAVE_PRIOR_FUNCS=0
698dcdb6 14255 echo $ac_n "checking for pthread_attr_getschedpolicy in -l$THREADS_LINK""... $ac_c" 1>&6
f11bdd03 14256echo "configure:14257: checking for pthread_attr_getschedpolicy in -l$THREADS_LINK" >&5
698dcdb6
VZ
14257ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_getschedpolicy | sed 'y%./+-%__p_%'`
14258if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14259 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 14260else
698dcdb6 14261 ac_save_LIBS="$LIBS"
10f2d63a 14262LIBS="-l$THREADS_LINK $LIBS"
698dcdb6 14263cat > conftest.$ac_ext <<EOF
f11bdd03 14264#line 14265 "configure"
10f2d63a
VZ
14265#include "confdefs.h"
14266/* Override any gcc2 internal prototype to avoid an error. */
14267/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
14268 builtin and then its argument prototype would still apply. */
14269char pthread_attr_getschedpolicy();
14270
14271int main() {
14272pthread_attr_getschedpolicy()
14273; return 0; }
14274EOF
f11bdd03 14275if { (eval echo configure:14276: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
14276 rm -rf conftest*
14277 eval "ac_cv_lib_$ac_lib_var=yes"
14278else
14279 echo "configure: failed program was:" >&5
14280 cat conftest.$ac_ext >&5
14281 rm -rf conftest*
14282 eval "ac_cv_lib_$ac_lib_var=no"
14283fi
14284rm -f conftest*
14285LIBS="$ac_save_LIBS"
14286
14287fi
14288if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14289 echo "$ac_t""yes" 1>&6
14290 echo $ac_n "checking for pthread_attr_setschedparam in -l$THREADS_LINK""... $ac_c" 1>&6
f11bdd03 14291echo "configure:14292: checking for pthread_attr_setschedparam in -l$THREADS_LINK" >&5
698dcdb6
VZ
14292ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_setschedparam | sed 'y%./+-%__p_%'`
14293if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14294 echo $ac_n "(cached) $ac_c" 1>&6
14295else
14296 ac_save_LIBS="$LIBS"
f6bcfd97 14297LIBS="-l$THREADS_LINK $LIBS"
698dcdb6 14298cat > conftest.$ac_ext <<EOF
f11bdd03 14299#line 14300 "configure"
f6bcfd97
BP
14300#include "confdefs.h"
14301/* Override any gcc2 internal prototype to avoid an error. */
14302/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
14303 builtin and then its argument prototype would still apply. */
14304char pthread_attr_setschedparam();
14305
14306int main() {
14307pthread_attr_setschedparam()
14308; return 0; }
14309EOF
f11bdd03 14310if { (eval echo configure:14311: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
14311 rm -rf conftest*
14312 eval "ac_cv_lib_$ac_lib_var=yes"
14313else
14314 echo "configure: failed program was:" >&5
14315 cat conftest.$ac_ext >&5
14316 rm -rf conftest*
14317 eval "ac_cv_lib_$ac_lib_var=no"
14318fi
14319rm -f conftest*
14320LIBS="$ac_save_LIBS"
14321
14322fi
14323if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14324 echo "$ac_t""yes" 1>&6
14325 echo $ac_n "checking for sched_get_priority_max in -l$THREADS_LINK""... $ac_c" 1>&6
f11bdd03 14326echo "configure:14327: checking for sched_get_priority_max in -l$THREADS_LINK" >&5
698dcdb6
VZ
14327ac_lib_var=`echo $THREADS_LINK'_'sched_get_priority_max | sed 'y%./+-%__p_%'`
14328if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14329 echo $ac_n "(cached) $ac_c" 1>&6
14330else
14331 ac_save_LIBS="$LIBS"
f6bcfd97 14332LIBS="-l$THREADS_LINK $LIBS"
698dcdb6 14333cat > conftest.$ac_ext <<EOF
f11bdd03 14334#line 14335 "configure"
f6bcfd97
BP
14335#include "confdefs.h"
14336/* Override any gcc2 internal prototype to avoid an error. */
14337/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
14338 builtin and then its argument prototype would still apply. */
14339char sched_get_priority_max();
14340
14341int main() {
14342sched_get_priority_max()
14343; return 0; }
14344EOF
f11bdd03 14345if { (eval echo configure:14346: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
14346 rm -rf conftest*
14347 eval "ac_cv_lib_$ac_lib_var=yes"
14348else
14349 echo "configure: failed program was:" >&5
14350 cat conftest.$ac_ext >&5
14351 rm -rf conftest*
14352 eval "ac_cv_lib_$ac_lib_var=no"
14353fi
14354rm -f conftest*
14355LIBS="$ac_save_LIBS"
14356
14357fi
14358if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14359 echo "$ac_t""yes" 1>&6
f6bcfd97 14360 HAVE_PRIOR_FUNCS=1
10f2d63a 14361else
698dcdb6
VZ
14362 echo "$ac_t""no" 1>&6
14363echo $ac_n "checking for sched_get_priority_max in -lposix4""... $ac_c" 1>&6
f11bdd03 14364echo "configure:14365: checking for sched_get_priority_max in -lposix4" >&5
698dcdb6
VZ
14365ac_lib_var=`echo posix4'_'sched_get_priority_max | sed 'y%./+-%__p_%'`
14366if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14367 echo $ac_n "(cached) $ac_c" 1>&6
1e487827 14368else
698dcdb6 14369 ac_save_LIBS="$LIBS"
1e487827 14370LIBS="-lposix4 $LIBS"
698dcdb6 14371cat > conftest.$ac_ext <<EOF
f11bdd03 14372#line 14373 "configure"
10f2d63a 14373#include "confdefs.h"
6232543b 14374/* Override any gcc2 internal prototype to avoid an error. */
6232543b 14375/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
14376 builtin and then its argument prototype would still apply. */
14377char sched_get_priority_max();
14378
14379int main() {
14380sched_get_priority_max()
14381; return 0; }
14382EOF
f11bdd03 14383if { (eval echo configure:14384: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
14384 rm -rf conftest*
14385 eval "ac_cv_lib_$ac_lib_var=yes"
14386else
14387 echo "configure: failed program was:" >&5
14388 cat conftest.$ac_ext >&5
14389 rm -rf conftest*
14390 eval "ac_cv_lib_$ac_lib_var=no"
14391fi
14392rm -f conftest*
14393LIBS="$ac_save_LIBS"
10f2d63a 14394
698dcdb6
VZ
14395fi
14396if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14397 echo "$ac_t""yes" 1>&6
14398
f6bcfd97
BP
14399 HAVE_PRIOR_FUNCS=1
14400 POSIX4_LINK="-lposix4"
698dcdb6
VZ
14401
14402else
14403 echo "$ac_t""no" 1>&6
10f2d63a
VZ
14404fi
14405
698dcdb6 14406
10f2d63a
VZ
14407fi
14408
698dcdb6
VZ
14409
14410else
14411 echo "$ac_t""no" 1>&6
6232543b 14412fi
10f2d63a 14413
698dcdb6
VZ
14414
14415else
14416 echo "$ac_t""no" 1>&6
1e487827 14417fi
703e0a69 14418
698dcdb6 14419
f6bcfd97 14420 if test "$HAVE_PRIOR_FUNCS" = 1; then
698dcdb6 14421 cat >> confdefs.h <<\EOF
f6bcfd97
BP
14422#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
14423EOF
14424
14425 else
698dcdb6 14426 echo "configure: warning: Setting thread priority will not work" 1>&2
f6bcfd97
BP
14427 fi
14428
698dcdb6 14429 echo $ac_n "checking for pthread_cancel in -l$THREADS_LINK""... $ac_c" 1>&6
f11bdd03 14430echo "configure:14431: checking for pthread_cancel in -l$THREADS_LINK" >&5
698dcdb6
VZ
14431ac_lib_var=`echo $THREADS_LINK'_'pthread_cancel | sed 'y%./+-%__p_%'`
14432if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14433 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 14434else
698dcdb6 14435 ac_save_LIBS="$LIBS"
10f2d63a 14436LIBS="-l$THREADS_LINK $LIBS"
698dcdb6 14437cat > conftest.$ac_ext <<EOF
f11bdd03 14438#line 14439 "configure"
10f2d63a
VZ
14439#include "confdefs.h"
14440/* Override any gcc2 internal prototype to avoid an error. */
14441/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
14442 builtin and then its argument prototype would still apply. */
14443char pthread_cancel();
14444
14445int main() {
14446pthread_cancel()
14447; return 0; }
14448EOF
f11bdd03 14449if { (eval echo configure:14450: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
14450 rm -rf conftest*
14451 eval "ac_cv_lib_$ac_lib_var=yes"
14452else
14453 echo "configure: failed program was:" >&5
14454 cat conftest.$ac_ext >&5
14455 rm -rf conftest*
14456 eval "ac_cv_lib_$ac_lib_var=no"
14457fi
14458rm -f conftest*
14459LIBS="$ac_save_LIBS"
14460
14461fi
14462if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14463 echo "$ac_t""yes" 1>&6
14464 cat >> confdefs.h <<\EOF
10f2d63a
VZ
14465#define HAVE_PTHREAD_CANCEL 1
14466EOF
14467
14468else
698dcdb6
VZ
14469 echo "$ac_t""no" 1>&6
14470echo "configure: warning: wxThread::Kill() will not work properly" 1>&2
10f2d63a
VZ
14471fi
14472
1e487827 14473
698dcdb6 14474 echo $ac_n "checking for pthread_cleanup_push/pop""... $ac_c" 1>&6
f11bdd03 14475echo "configure:14476: checking for pthread_cleanup_push/pop" >&5
698dcdb6
VZ
14476if eval "test \"`echo '$''{'wx_cv_func_pthread_cleanup_push'+set}'`\" = set"; then
14477 echo $ac_n "(cached) $ac_c" 1>&6
14478else
14479
14480 cat > conftest.$ac_ext <<EOF
f11bdd03 14481#line 14482 "configure"
10f2d63a
VZ
14482#include "confdefs.h"
14483#include <pthread.h>
698dcdb6 14484int main() {
10f2d63a
VZ
14485
14486 pthread_cleanup_push(NULL, NULL);
14487 pthread_cleanup_pop(0);
698dcdb6
VZ
14488
14489; return 0; }
14490EOF
f11bdd03 14491if { (eval echo configure:14492: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
14492 rm -rf conftest*
14493
10f2d63a 14494 wx_cv_func_pthread_cleanup_push=yes
698dcdb6 14495
10f2d63a 14496else
698dcdb6
VZ
14497 echo "configure: failed program was:" >&5
14498 cat conftest.$ac_ext >&5
14499 rm -rf conftest*
14500
10f2d63a 14501 wx_cv_func_pthread_cleanup_push=no
698dcdb6 14502
6232543b 14503fi
698dcdb6
VZ
14504rm -f conftest*
14505
1e487827 14506fi
698dcdb6
VZ
14507
14508echo "$ac_t""$wx_cv_func_pthread_cleanup_push" 1>&6
10f2d63a 14509
d9b9876f 14510 if test "$wx_cv_func_pthread_cleanup_push" = "yes"; then
698dcdb6 14511 cat >> confdefs.h <<\EOF
d9b9876f
VZ
14512#define HAVE_THREAD_CLEANUP_FUNCTIONS 1
14513EOF
14514
14515 fi
14516
698dcdb6
VZ
14517
14518 echo $ac_n "checking for pthread_mutexattr_t""... $ac_c" 1>&6
f11bdd03 14519echo "configure:14520: checking for pthread_mutexattr_t" >&5
698dcdb6
VZ
14520if eval "test \"`echo '$''{'wx_cv_type_pthread_mutexattr_t'+set}'`\" = set"; then
14521 echo $ac_n "(cached) $ac_c" 1>&6
d9b9876f 14522else
698dcdb6
VZ
14523
14524 cat > conftest.$ac_ext <<EOF
f11bdd03 14525#line 14526 "configure"
d9b9876f
VZ
14526#include "confdefs.h"
14527#include <pthread.h>
698dcdb6 14528int main() {
d9b9876f
VZ
14529
14530 pthread_mutexattr_t attr;
14531 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
698dcdb6
VZ
14532
14533; return 0; }
14534EOF
f11bdd03 14535if { (eval echo configure:14536: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
14536 rm -rf conftest*
14537
d9b9876f 14538 wx_cv_type_pthread_mutexattr_t=yes
698dcdb6 14539
d9b9876f 14540else
698dcdb6
VZ
14541 echo "configure: failed program was:" >&5
14542 cat conftest.$ac_ext >&5
14543 rm -rf conftest*
14544
d9b9876f 14545 wx_cv_type_pthread_mutexattr_t=no
698dcdb6
VZ
14546
14547
6232543b 14548fi
698dcdb6
VZ
14549rm -f conftest*
14550
1e487827 14551fi
698dcdb6
VZ
14552
14553echo "$ac_t""$wx_cv_type_pthread_mutexattr_t" 1>&6
d9b9876f
VZ
14554
14555 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
698dcdb6 14556 cat >> confdefs.h <<\EOF
d9b9876f
VZ
14557#define HAVE_PTHREAD_MUTEXATTR_T 1
14558EOF
14559
14560 else
698dcdb6 14561 echo $ac_n "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER""... $ac_c" 1>&6
f11bdd03 14562echo "configure:14563: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
698dcdb6
VZ
14563if eval "test \"`echo '$''{'wx_cv_type_pthread_rec_mutex_init'+set}'`\" = set"; then
14564 echo $ac_n "(cached) $ac_c" 1>&6
14565else
14566
14567 cat > conftest.$ac_ext <<EOF
f11bdd03 14568#line 14569 "configure"
d9b9876f
VZ
14569#include "confdefs.h"
14570#include <pthread.h>
698dcdb6 14571int main() {
d9b9876f
VZ
14572
14573 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
698dcdb6
VZ
14574
14575; return 0; }
14576EOF
f11bdd03 14577if { (eval echo configure:14578: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
14578 rm -rf conftest*
14579
d9b9876f 14580 wx_cv_type_pthread_rec_mutex_init=yes
698dcdb6 14581
d9b9876f 14582else
698dcdb6
VZ
14583 echo "configure: failed program was:" >&5
14584 cat conftest.$ac_ext >&5
14585 rm -rf conftest*
14586
d9b9876f 14587 wx_cv_type_pthread_rec_mutex_init=no
698dcdb6
VZ
14588
14589
6232543b 14590fi
698dcdb6
VZ
14591rm -f conftest*
14592
1e487827 14593fi
698dcdb6
VZ
14594
14595echo "$ac_t""$wx_cv_type_pthread_rec_mutex_init" 1>&6
3765e936 14596 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
698dcdb6 14597 cat >> confdefs.h <<\EOF
d9b9876f
VZ
14598#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
14599EOF
14600
14601 else
698dcdb6 14602 echo "configure: warning: wxMutex won't be recursive on this platform" 1>&2
d9b9876f
VZ
14603 fi
14604 fi
14605
10f2d63a 14606 THREADS_LINK="-l$THREADS_LINK"
186837b0
VZ
14607
14608 if test "$USE_SOLARIS" = "yes" -a "$GCC" != "yes"; then
14609 CFLAGS="${CFLAGS} -mt"
14610 CXXFLAGS="${CXXFLAGS} -mt"
14611 LDFLAGS="${LDFLAGS} -mt"
14612 fi
10f2d63a
VZ
14613fi
14614
14615fi
14616
14617if test "$wxUSE_THREADS" = "yes"; then
698dcdb6 14618 cat >> confdefs.h <<\EOF
10f2d63a
VZ
14619#define wxUSE_THREADS 1
14620EOF
14621
698dcdb6 14622
f11bdd03 14623 if test "$wxUSE_DARWIN" = "0"; then
10f2d63a 14624 CFLAGS="${CFLAGS} -D_REENTRANT"
2c6025bc
GD
14625 CXXFLAGS="${CXXFLAGS} -D_REENTRANT"
14626 fi
10f2d63a
VZ
14627
14628 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
14629else
14630 if test "$ac_cv_func_strtok_r" = "yes"; then
698dcdb6 14631 echo $ac_n "checking if -D_REENTRANT is needed""... $ac_c" 1>&6
f11bdd03 14632echo "configure:14633: checking if -D_REENTRANT is needed" >&5
ab9b9eab
VZ
14633 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
14634 CFLAGS="${CFLAGS} -D_REENTRANT"
14635 CXXFLAGS="${CXXFLAGS} -D_REENTRANT"
698dcdb6 14636 echo "$ac_t""yes" 1>&6
ab9b9eab 14637 else
698dcdb6 14638 echo "$ac_t""no" 1>&6
10f2d63a
VZ
14639 fi
14640 fi
14641fi
14642
6f72b082 14643if test "$WXGTK20" = 1 ; then
698dcdb6 14644 cat >> confdefs.h <<EOF
6f72b082 14645#define __WXGTK20__ $WXGTK20
13111b2a
VZ
14646EOF
14647
14648 WXGTK12=1
14649fi
14650
10f2d63a 14651if test "$WXGTK12" = 1 ; then
698dcdb6 14652 cat >> confdefs.h <<EOF
10f2d63a
VZ
14653#define __WXGTK12__ $WXGTK12
14654EOF
14655
14656fi
14657
f6bcfd97 14658if test "$WXGTK127" = 1 ; then
698dcdb6 14659 cat >> confdefs.h <<EOF
f6bcfd97
BP
14660#define __WXGTK127__ $WXGTK127
14661EOF
14662
14663fi
14664
10f2d63a
VZ
14665if test "$WXWINE" = 1 ; then
14666 TOOLKIT_DEF="${TOOLKIT_DEF} -D__WXWINE__"
14667fi
14668
b4085ce6 14669if test "$wxUSE_MAC" = 1 ; then
f11bdd03
GD
14670 TOOLKIT_DEF="${TOOLKIT_DEF} -DTARGET_CARBON"
14671 CFLAGS="${CFLAGS} -fpascal-strings"
14672 CPPFLAGS="${CPPFLAGS} -cpp-precomp -fpascal-strings"
2f51a9ec
GD
14673 # Extract the first word of "Rez", so it can be a program name with args.
14674set dummy Rez; ac_word=$2
698dcdb6 14675echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
f11bdd03 14676echo "configure:14677: checking for $ac_word" >&5
698dcdb6
VZ
14677if eval "test \"`echo '$''{'ac_cv_prog_REZ'+set}'`\" = set"; then
14678 echo $ac_n "(cached) $ac_c" 1>&6
2f51a9ec
GD
14679else
14680 if test -n "$REZ"; then
14681 ac_cv_prog_REZ="$REZ" # Let the user override the test.
14682else
698dcdb6
VZ
14683 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
14684 ac_dummy="$PATH"
14685 for ac_dir in $ac_dummy; do
14686 test -z "$ac_dir" && ac_dir=.
14687 if test -f $ac_dir/$ac_word; then
14688 ac_cv_prog_REZ="Rez"
14689 break
14690 fi
14691 done
14692 IFS="$ac_save_ifs"
2f51a9ec
GD
14693 test -z "$ac_cv_prog_REZ" && ac_cv_prog_REZ="/Developer/Tools/Rez"
14694fi
14695fi
698dcdb6 14696REZ="$ac_cv_prog_REZ"
2f51a9ec 14697if test -n "$REZ"; then
698dcdb6 14698 echo "$ac_t""$REZ" 1>&6
2f51a9ec 14699else
698dcdb6 14700 echo "$ac_t""no" 1>&6
2f51a9ec
GD
14701fi
14702
14703 # Extract the first word of "Derez", so it can be a program name with args.
14704set dummy Derez; ac_word=$2
698dcdb6 14705echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
f11bdd03 14706echo "configure:14707: checking for $ac_word" >&5
698dcdb6
VZ
14707if eval "test \"`echo '$''{'ac_cv_prog_DEREZ'+set}'`\" = set"; then
14708 echo $ac_n "(cached) $ac_c" 1>&6
2f51a9ec
GD
14709else
14710 if test -n "$DEREZ"; then
14711 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
14712else
698dcdb6
VZ
14713 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
14714 ac_dummy="$PATH"
14715 for ac_dir in $ac_dummy; do
14716 test -z "$ac_dir" && ac_dir=.
14717 if test -f $ac_dir/$ac_word; then
14718 ac_cv_prog_DEREZ="Derez"
14719 break
14720 fi
14721 done
14722 IFS="$ac_save_ifs"
2f51a9ec
GD
14723 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/Derez"
14724fi
14725fi
698dcdb6 14726DEREZ="$ac_cv_prog_DEREZ"
2f51a9ec 14727if test -n "$DEREZ"; then
698dcdb6 14728 echo "$ac_t""$DEREZ" 1>&6
2f51a9ec 14729else
698dcdb6 14730 echo "$ac_t""no" 1>&6
2f51a9ec
GD
14731fi
14732
14733 RESCOMP=${REZ}
14734 REZFLAGS="-d __UNIX__ -useDF"
14735 DEREZFLAGS="Carbon.r -useDF"
14736 RESFLAGS="Carbon.r -t APPL"
14737 LIBWXMACRES="\$(LIBWX_MACRES)"
14738 LIBWXMACRESCOMP="\$(LIBWX_MACRESCOMP)"
b4085ce6
GD
14739fi
14740
10f2d63a
VZ
14741if test "$wxUSE_CYGWIN" = 1 ; then
14742 TOOLKIT_DEF="${TOOLKIT_DEF} -D__WIN95__"
14743fi
14744
14745WXDEBUG=
14746
14747if test "$wxUSE_DEBUG_INFO" = "yes" ; then
14748 WXDEBUG="-g"
14749 wxUSE_OPTIMISE=no
14750fi
14751
14752if test "$wxUSE_DEBUG_GDB" = "yes" ; then
14753 wxUSE_DEBUG_INFO=yes
14754 WXDEBUG="-ggdb"
14755fi
14756
14757if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
698dcdb6 14758 cat >> confdefs.h <<\EOF
10f2d63a
VZ
14759#define WXDEBUG 1
14760EOF
14761
14762 WXDEBUG_DEFINE="-D__WXDEBUG__"
14763else
14764 if test "$wxUSE_GTK" = 1 ; then
14765 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
14766 fi
14767fi
14768
14769if test "$wxUSE_MEM_TRACING" = "yes" ; then
698dcdb6 14770 cat >> confdefs.h <<\EOF
10f2d63a
VZ
14771#define wxUSE_MEMORY_TRACING 1
14772EOF
14773
698dcdb6 14774 cat >> confdefs.h <<\EOF
10f2d63a 14775#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
47c13eb7
VS
14776EOF
14777
698dcdb6 14778 cat >> confdefs.h <<\EOF
47c13eb7 14779#define wxUSE_DEBUG_NEW_ALWAYS 1
10f2d63a
VZ
14780EOF
14781
14782 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
14783fi
14784
14785if test "$wxUSE_DMALLOC" = "yes" ; then
14786 DMALLOC_LINK="-ldmalloc"
14787fi
14788
14789PROFILE=
14790if test "$wxUSE_PROFILE" = "yes" ; then
14791 PROFILE="-pg"
14792fi
14793
14794DEP_INFO_FLAGS=
caa2c79b 14795CODE_GEN_FLAGS=
0f3f1cbc 14796CODE_GEN_FLAGS_CXX=
10f2d63a
VZ
14797if test "$GCC" = yes ; then
14798 if test "$wxUSE_NO_RTTI" = "yes" ; then
0f3f1cbc 14799 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS -fno-rtti"
10f2d63a
VZ
14800 fi
14801 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
0f3f1cbc 14802 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS -fno-exceptions"
10f2d63a
VZ
14803 fi
14804 if test "$wxUSE_PERMISSIVE" = "yes" ; then
caa2c79b 14805 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
10f2d63a
VZ
14806 fi
14807 if test "$wxUSE_NO_DEPS" = "no" ; then
14808 DEP_INFO_FLAGS="-MMD"
14809 fi
14810fi
14811
698dcdb6 14812
10f2d63a
VZ
14813CXXFLAGS=`echo "${CXXFLAGS}" | sed "s/\-O.//g" `
14814CFLAGS=`echo "${CFLAGS}" | sed "s/\-O.//g" `
14815if test "$wxUSE_OPTIMISE" = "no" ; then
14816 OPTIMISE=
14817else
14818 if test "$GCC" = yes ; then
14819 OPTIMISE="-O2"
14820 case "${host}" in
14821 i586-*-*|i686-*-* )
14822 OPTIMISE="${OPTIMISE} "
14823 ;;
14824 esac
14825 else
14826 OPTIMISE="-O"
14827 fi
14828fi
14829
54276ccf
VZ
14830if test "$WXWIN_COMPATIBILITY_2" = "yes"; then
14831 cat >> confdefs.h <<\EOF
14832#define WXWIN_COMPATIBILITY_2 1
14833EOF
14834
14835
14836 WXWIN_COMPATIBILITY_2_2="yes"
14837fi
14838
14839if test "$WXWIN_COMPATIBILITY_2_2" = "yes"; then
14840 cat >> confdefs.h <<\EOF
14841#define WXWIN_COMPATIBILITY_2_2 1
14842EOF
14843
14844fi
14845
698dcdb6 14846
3e44f09d
VZ
14847REGEX_INCLUDE=
14848if test "$wxUSE_REGEX" != "no"; then
14849 ac_safe=`echo "regex.h" | sed 'y%./+-%__p_%'`
14850echo $ac_n "checking for regex.h""... $ac_c" 1>&6
f11bdd03 14851echo "configure:14852: checking for regex.h" >&5
3e44f09d
VZ
14852if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
14853 echo $ac_n "(cached) $ac_c" 1>&6
14854else
14855 cat > conftest.$ac_ext <<EOF
f11bdd03 14856#line 14857 "configure"
3e44f09d
VZ
14857#include "confdefs.h"
14858#include <regex.h>
14859EOF
14860ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
f11bdd03 14861{ (eval echo configure:14862: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3e44f09d
VZ
14862ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14863if test -z "$ac_err"; then
14864 rm -rf conftest*
14865 eval "ac_cv_header_$ac_safe=yes"
14866else
14867 echo "$ac_err" >&5
14868 echo "configure: failed program was:" >&5
14869 cat conftest.$ac_ext >&5
14870 rm -rf conftest*
14871 eval "ac_cv_header_$ac_safe=no"
14872fi
14873rm -f conftest*
14874fi
14875if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14876 echo "$ac_t""yes" 1>&6
14877 for ac_func in regcomp
14878do
14879echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
f11bdd03 14880echo "configure:14881: checking for $ac_func" >&5
3e44f09d
VZ
14881if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14882 echo $ac_n "(cached) $ac_c" 1>&6
14883else
14884 cat > conftest.$ac_ext <<EOF
f11bdd03 14885#line 14886 "configure"
3e44f09d
VZ
14886#include "confdefs.h"
14887/* System header to define __stub macros and hopefully few prototypes,
14888 which can conflict with char $ac_func(); below. */
14889#include <assert.h>
14890/* Override any gcc2 internal prototype to avoid an error. */
14891/* We use char because int might match the return type of a gcc2
14892 builtin and then its argument prototype would still apply. */
14893char $ac_func();
14894
14895int main() {
14896
14897/* The GNU C library defines this for functions which it implements
14898 to always fail with ENOSYS. Some functions are actually named
14899 something starting with __ and the normal name is an alias. */
14900#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14901choke me
14902#else
14903$ac_func();
14904#endif
14905
14906; return 0; }
14907EOF
f11bdd03 14908if { (eval echo configure:14909: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3e44f09d
VZ
14909 rm -rf conftest*
14910 eval "ac_cv_func_$ac_func=yes"
14911else
14912 echo "configure: failed program was:" >&5
14913 cat conftest.$ac_ext >&5
14914 rm -rf conftest*
14915 eval "ac_cv_func_$ac_func=no"
14916fi
14917rm -f conftest*
14918fi
14919
14920if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14921 echo "$ac_t""yes" 1>&6
14922 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14923 cat >> confdefs.h <<EOF
14924#define $ac_tr_func 1
14925EOF
14926
14927else
14928 echo "$ac_t""no" 1>&6
14929fi
14930done
14931
14932else
14933 echo "$ac_t""no" 1>&6
14934fi
14935
14936
14937 if test "x$ac_cv_func_regcomp" != "xyes"; then
14938 if test "$wxUSE_REGEX" = "sys"; then
14939 { echo "configure: error: system regex library not found! Use --with-regex to use the built-in regex library." 1>&2; exit 1; }
14940 fi
14941
14942 REGEX_INCLUDE="-I\${top_srcdir}/src/regex"
14943 fi
14944
14945 cat >> confdefs.h <<\EOF
14946#define wxUSE_REGEX 1
14947EOF
14948
14949fi
14950
10f2d63a 14951ZLIB_INCLUDE=
422107f9 14952if test "$wxUSE_ZLIB" = "yes" -o "$wxUSE_ZLIB" = "sys" ; then
698dcdb6 14953 cat >> confdefs.h <<\EOF
10f2d63a
VZ
14954#define wxUSE_ZLIB 1
14955EOF
14956
422107f9
VZ
14957 if test "$wxUSE_ZLIB" = "yes" ; then
14958 ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib"
14959 else
14960 ZLIB_LINK=
698dcdb6
VZ
14961 ac_safe=`echo "zlib.h" | sed 'y%./+-%__p_%'`
14962echo $ac_n "checking for zlib.h""... $ac_c" 1>&6
f11bdd03 14963echo "configure:14964: checking for zlib.h" >&5
698dcdb6
VZ
14964if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
14965 echo $ac_n "(cached) $ac_c" 1>&6
14966else
14967 cat > conftest.$ac_ext <<EOF
f11bdd03 14968#line 14969 "configure"
422107f9
VZ
14969#include "confdefs.h"
14970#include <zlib.h>
698dcdb6
VZ
14971EOF
14972ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
f11bdd03 14973{ (eval echo configure:14974: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
14974ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14975if test -z "$ac_err"; then
14976 rm -rf conftest*
14977 eval "ac_cv_header_$ac_safe=yes"
422107f9 14978else
698dcdb6
VZ
14979 echo "$ac_err" >&5
14980 echo "configure: failed program was:" >&5
422107f9 14981 cat conftest.$ac_ext >&5
698dcdb6
VZ
14982 rm -rf conftest*
14983 eval "ac_cv_header_$ac_safe=no"
422107f9 14984fi
698dcdb6 14985rm -f conftest*
422107f9 14986fi
698dcdb6
VZ
14987if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14988 echo "$ac_t""yes" 1>&6
14989 echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
f11bdd03 14990echo "configure:14991: checking for deflate in -lz" >&5
698dcdb6
VZ
14991ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
14992if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14993 echo $ac_n "(cached) $ac_c" 1>&6
422107f9 14994else
698dcdb6 14995 ac_save_LIBS="$LIBS"
422107f9 14996LIBS="-lz $LIBS"
698dcdb6 14997cat > conftest.$ac_ext <<EOF
f11bdd03 14998#line 14999 "configure"
422107f9
VZ
14999#include "confdefs.h"
15000/* Override any gcc2 internal prototype to avoid an error. */
15001/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
15002 builtin and then its argument prototype would still apply. */
15003char deflate();
15004
15005int main() {
15006deflate()
15007; return 0; }
15008EOF
f11bdd03 15009if { (eval echo configure:15010: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
15010 rm -rf conftest*
15011 eval "ac_cv_lib_$ac_lib_var=yes"
15012else
15013 echo "configure: failed program was:" >&5
15014 cat conftest.$ac_ext >&5
15015 rm -rf conftest*
15016 eval "ac_cv_lib_$ac_lib_var=no"
15017fi
15018rm -f conftest*
15019LIBS="$ac_save_LIBS"
15020
15021fi
15022if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15023 echo "$ac_t""yes" 1>&6
422107f9 15024 ZLIB_LINK="-lz"
698dcdb6
VZ
15025else
15026 echo "$ac_t""no" 1>&6
422107f9
VZ
15027fi
15028
698dcdb6
VZ
15029else
15030 echo "$ac_t""no" 1>&6
422107f9
VZ
15031fi
15032
15033 if test "x$ZLIB_LINK" = "x" ; then
698dcdb6 15034 { echo "configure: error: system zlib compression library not found! Use --with-zlib=yes to use built-in zlib" 1>&2; exit 1; }
422107f9
VZ
15035 fi
15036 fi
10f2d63a
VZ
15037fi
15038
15039PNG_INCLUDE=
422107f9 15040if test "$wxUSE_LIBPNG" = "yes" -o "$wxUSE_LIBPNG" = "sys" ; then
698dcdb6 15041 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15042#define wxUSE_LIBPNG 1
15043EOF
15044
41fd4136 15045 if test "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
698dcdb6 15046 echo "configure: warning: --with-libpng=sys doesn't work without --with-zlib=sys, will compile the built-in libpng instead" 1>&2
422107f9
VZ
15047 wxUSE_LIBPNG=yes
15048 fi
15049
15050 if test "$wxUSE_LIBPNG" = "yes" ; then
15051 PNG_INCLUDE="-I\${top_srcdir}/src/png"
15052 else
15053 PNG_LINK=
698dcdb6
VZ
15054 ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
15055echo $ac_n "checking for png.h""... $ac_c" 1>&6
f11bdd03 15056echo "configure:15057: checking for png.h" >&5
698dcdb6
VZ
15057if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15058 echo $ac_n "(cached) $ac_c" 1>&6
15059else
15060 cat > conftest.$ac_ext <<EOF
f11bdd03 15061#line 15062 "configure"
422107f9
VZ
15062#include "confdefs.h"
15063#include <png.h>
698dcdb6
VZ
15064EOF
15065ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
f11bdd03 15066{ (eval echo configure:15067: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
15067ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15068if test -z "$ac_err"; then
15069 rm -rf conftest*
15070 eval "ac_cv_header_$ac_safe=yes"
422107f9 15071else
698dcdb6
VZ
15072 echo "$ac_err" >&5
15073 echo "configure: failed program was:" >&5
422107f9 15074 cat conftest.$ac_ext >&5
698dcdb6
VZ
15075 rm -rf conftest*
15076 eval "ac_cv_header_$ac_safe=no"
422107f9 15077fi
698dcdb6 15078rm -f conftest*
422107f9 15079fi
698dcdb6
VZ
15080if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15081 echo "$ac_t""yes" 1>&6
15082 echo $ac_n "checking for png_check_sig in -lpng""... $ac_c" 1>&6
f11bdd03 15083echo "configure:15084: checking for png_check_sig in -lpng" >&5
698dcdb6
VZ
15084ac_lib_var=`echo png'_'png_check_sig | sed 'y%./+-%__p_%'`
15085if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15086 echo $ac_n "(cached) $ac_c" 1>&6
422107f9 15087else
698dcdb6 15088 ac_save_LIBS="$LIBS"
422107f9 15089LIBS="-lpng -lz -lm $LIBS"
698dcdb6 15090cat > conftest.$ac_ext <<EOF
f11bdd03 15091#line 15092 "configure"
422107f9
VZ
15092#include "confdefs.h"
15093/* Override any gcc2 internal prototype to avoid an error. */
15094/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
15095 builtin and then its argument prototype would still apply. */
15096char png_check_sig();
15097
15098int main() {
15099png_check_sig()
15100; return 0; }
15101EOF
f11bdd03 15102if { (eval echo configure:15103: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
15103 rm -rf conftest*
15104 eval "ac_cv_lib_$ac_lib_var=yes"
15105else
15106 echo "configure: failed program was:" >&5
15107 cat conftest.$ac_ext >&5
15108 rm -rf conftest*
15109 eval "ac_cv_lib_$ac_lib_var=no"
15110fi
15111rm -f conftest*
15112LIBS="$ac_save_LIBS"
15113
15114fi
15115if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15116 echo "$ac_t""yes" 1>&6
422107f9 15117 PNG_LINK="-lpng"
698dcdb6
VZ
15118else
15119 echo "$ac_t""no" 1>&6
422107f9
VZ
15120fi
15121
698dcdb6
VZ
15122
15123else
15124 echo "$ac_t""no" 1>&6
422107f9
VZ
15125fi
15126
15127 if test "x$PNG_LINK" = "x" ; then
698dcdb6 15128 { echo "configure: error: system png library not found! Use --with-libpng=yes to use the built-in libpng" 1>&2; exit 1; }
422107f9
VZ
15129 fi
15130 fi
15131
10f2d63a
VZ
15132 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
15133fi
15134
15135JPEG_INCLUDE=
422107f9 15136if test "$wxUSE_LIBJPEG" = "yes" -o "$wxUSE_LIBJPEG" = "sys" ; then
698dcdb6 15137 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15138#define wxUSE_LIBJPEG 1
15139EOF
15140
422107f9
VZ
15141 if test "$wxUSE_LIBJPEG" = "yes" ; then
15142 JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg"
15143 else
15144 JPEG_LINK=
463abc64 15145 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
f11bdd03 15146echo "configure:15147: checking for jpeglib.h" >&5
463abc64 15147 if eval "test \"`echo '$''{'ac_cv_header_jpeglib_h'+set}'`\" = set"; then
698dcdb6
VZ
15148 echo $ac_n "(cached) $ac_c" 1>&6
15149else
15150 cat > conftest.$ac_ext <<EOF
f11bdd03 15151#line 15152 "configure"
422107f9 15152#include "confdefs.h"
463abc64
VZ
15153
15154 #undef HAVE_STDLIB_H
15155 #include <stdio.h>
15156 #include <jpeglib.h>
15157
15158int main() {
15159
15160
15161; return 0; }
698dcdb6 15162EOF
f11bdd03 15163if { (eval echo configure:15164: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 15164 rm -rf conftest*
463abc64 15165 ac_cv_header_jpeglib_h=yes
6232543b 15166else
698dcdb6 15167 echo "configure: failed program was:" >&5
422107f9 15168 cat conftest.$ac_ext >&5
698dcdb6 15169 rm -rf conftest*
463abc64
VZ
15170 ac_cv_header_jpeglib_h=no
15171
422107f9 15172fi
698dcdb6 15173rm -f conftest*
463abc64 15174
422107f9 15175fi
463abc64
VZ
15176
15177 echo "$ac_t""$ac_cv_header_jpeglib_h" 1>&6
15178
15179 if test "$ac_cv_header_jpeglib_h" = "yes"; then
15180 echo $ac_n "checking for jpeg_read_header in -ljpeg""... $ac_c" 1>&6
f11bdd03 15181echo "configure:15182: checking for jpeg_read_header in -ljpeg" >&5
698dcdb6
VZ
15182ac_lib_var=`echo jpeg'_'jpeg_read_header | sed 'y%./+-%__p_%'`
15183if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15184 echo $ac_n "(cached) $ac_c" 1>&6
422107f9 15185else
698dcdb6 15186 ac_save_LIBS="$LIBS"
422107f9 15187LIBS="-ljpeg $LIBS"
698dcdb6 15188cat > conftest.$ac_ext <<EOF
f11bdd03 15189#line 15190 "configure"
422107f9
VZ
15190#include "confdefs.h"
15191/* Override any gcc2 internal prototype to avoid an error. */
15192/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
15193 builtin and then its argument prototype would still apply. */
15194char jpeg_read_header();
15195
15196int main() {
15197jpeg_read_header()
15198; return 0; }
15199EOF
f11bdd03 15200if { (eval echo configure:15201: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
15201 rm -rf conftest*
15202 eval "ac_cv_lib_$ac_lib_var=yes"
15203else
15204 echo "configure: failed program was:" >&5
15205 cat conftest.$ac_ext >&5
15206 rm -rf conftest*
15207 eval "ac_cv_lib_$ac_lib_var=no"
15208fi
15209rm -f conftest*
15210LIBS="$ac_save_LIBS"
15211
15212fi
15213if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15214 echo "$ac_t""yes" 1>&6
422107f9 15215 JPEG_LINK="-ljpeg"
698dcdb6
VZ
15216else
15217 echo "$ac_t""no" 1>&6
422107f9
VZ
15218fi
15219
463abc64 15220 fi
422107f9
VZ
15221
15222 if test "x$JPEG_LINK" = "x" ; then
698dcdb6 15223 { echo "configure: error: system jpeg library not found! Use --with-libjpeg=yes to use the built-in one" 1>&2; exit 1; }
422107f9
VZ
15224 fi
15225 fi
10f2d63a
VZ
15226fi
15227
c7a2bf27 15228TIFF_INCLUDE=
0dcf9893 15229if test "$wxUSE_LIBTIFF" = "yes" -o "$wxUSE_LIBTIFF" = "sys" ; then
698dcdb6 15230 cat >> confdefs.h <<\EOF
c7a2bf27
RR
15231#define wxUSE_LIBTIFF 1
15232EOF
15233
665bbe97 15234 if test "$wxUSE_LIBTIFF" = "yes" ; then
0dcf9893
VZ
15235 TIFF_INCLUDE="-I\${top_srcdir}/src/tiff"
15236 else
15237 TIFF_LINK=
698dcdb6
VZ
15238 ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
15239echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
f11bdd03 15240echo "configure:15241: checking for tiffio.h" >&5
698dcdb6
VZ
15241if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15242 echo $ac_n "(cached) $ac_c" 1>&6
15243else
15244 cat > conftest.$ac_ext <<EOF
f11bdd03 15245#line 15246 "configure"
0dcf9893
VZ
15246#include "confdefs.h"
15247#include <tiffio.h>
698dcdb6
VZ
15248EOF
15249ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
f11bdd03 15250{ (eval echo configure:15251: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
15251ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15252if test -z "$ac_err"; then
15253 rm -rf conftest*
15254 eval "ac_cv_header_$ac_safe=yes"
1e487827 15255else
698dcdb6
VZ
15256 echo "$ac_err" >&5
15257 echo "configure: failed program was:" >&5
0dcf9893 15258 cat conftest.$ac_ext >&5
698dcdb6
VZ
15259 rm -rf conftest*
15260 eval "ac_cv_header_$ac_safe=no"
0dcf9893 15261fi
698dcdb6 15262rm -f conftest*
0dcf9893 15263fi
698dcdb6
VZ
15264if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15265 echo "$ac_t""yes" 1>&6
15266 echo $ac_n "checking for TIFFError in -ltiff""... $ac_c" 1>&6
f11bdd03 15267echo "configure:15268: checking for TIFFError in -ltiff" >&5
698dcdb6
VZ
15268ac_lib_var=`echo tiff'_'TIFFError | sed 'y%./+-%__p_%'`
15269if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15270 echo $ac_n "(cached) $ac_c" 1>&6
0dcf9893 15271else
698dcdb6 15272 ac_save_LIBS="$LIBS"
0dcf9893 15273LIBS="-ltiff -lm $LIBS"
698dcdb6 15274cat > conftest.$ac_ext <<EOF
f11bdd03 15275#line 15276 "configure"
0dcf9893
VZ
15276#include "confdefs.h"
15277/* Override any gcc2 internal prototype to avoid an error. */
15278/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
15279 builtin and then its argument prototype would still apply. */
15280char TIFFError();
15281
15282int main() {
15283TIFFError()
15284; return 0; }
15285EOF
f11bdd03 15286if { (eval echo configure:15287: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
15287 rm -rf conftest*
15288 eval "ac_cv_lib_$ac_lib_var=yes"
15289else
15290 echo "configure: failed program was:" >&5
15291 cat conftest.$ac_ext >&5
15292 rm -rf conftest*
15293 eval "ac_cv_lib_$ac_lib_var=no"
15294fi
15295rm -f conftest*
15296LIBS="$ac_save_LIBS"
15297
15298fi
15299if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15300 echo "$ac_t""yes" 1>&6
0dcf9893 15301 TIFF_LINK="-ltiff"
698dcdb6
VZ
15302else
15303 echo "$ac_t""no" 1>&6
0dcf9893
VZ
15304fi
15305
698dcdb6
VZ
15306else
15307 echo "$ac_t""no" 1>&6
0dcf9893
VZ
15308fi
15309
15310 if test "x$TIFF_LINK" = "x" ; then
698dcdb6 15311 { echo "configure: error: system tiff library not found! Use --with-libtiff=yes to use the built-in one" 1>&2; exit 1; }
0dcf9893
VZ
15312 fi
15313 fi
c7a2bf27
RR
15314fi
15315
3fed1840
RR
15316FREETYPE_INCLUDE=
15317if test "$wxUSE_FREETYPE" = "yes" -o "$wxUSE_FREETYPE" = "sys" ; then
698dcdb6 15318 cat >> confdefs.h <<\EOF
3fed1840
RR
15319#define wxUSE_FREETYPE 1
15320EOF
15321
15322 if test "$wxUSE_FREETYPE" = "yes" ; then
15323 FREETYPE_INCLUDE="-I\${top_srcdir}/src/freetype"
15324 else
15325 FREETYPE_LINK=
698dcdb6
VZ
15326 ac_safe=`echo "freetype.h" | sed 'y%./+-%__p_%'`
15327echo $ac_n "checking for freetype.h""... $ac_c" 1>&6
f11bdd03 15328echo "configure:15329: checking for freetype.h" >&5
698dcdb6
VZ
15329if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15330 echo $ac_n "(cached) $ac_c" 1>&6
15331else
15332 cat > conftest.$ac_ext <<EOF
f11bdd03 15333#line 15334 "configure"
3fed1840
RR
15334#include "confdefs.h"
15335#include <freetype.h>
698dcdb6
VZ
15336EOF
15337ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
f11bdd03 15338{ (eval echo configure:15339: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
15339ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15340if test -z "$ac_err"; then
15341 rm -rf conftest*
15342 eval "ac_cv_header_$ac_safe=yes"
3fed1840 15343else
698dcdb6
VZ
15344 echo "$ac_err" >&5
15345 echo "configure: failed program was:" >&5
3fed1840 15346 cat conftest.$ac_ext >&5
698dcdb6
VZ
15347 rm -rf conftest*
15348 eval "ac_cv_header_$ac_safe=no"
3fed1840 15349fi
698dcdb6 15350rm -f conftest*
3fed1840 15351fi
698dcdb6
VZ
15352if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15353 echo "$ac_t""yes" 1>&6
15354 echo $ac_n "checking for FT_Render_Glyph in -lfreetype""... $ac_c" 1>&6
f11bdd03 15355echo "configure:15356: checking for FT_Render_Glyph in -lfreetype" >&5
698dcdb6
VZ
15356ac_lib_var=`echo freetype'_'FT_Render_Glyph | sed 'y%./+-%__p_%'`
15357if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15358 echo $ac_n "(cached) $ac_c" 1>&6
3fed1840 15359else
698dcdb6 15360 ac_save_LIBS="$LIBS"
3fed1840 15361LIBS="-lfreetype -lm $LIBS"
698dcdb6 15362cat > conftest.$ac_ext <<EOF
f11bdd03 15363#line 15364 "configure"
3fed1840
RR
15364#include "confdefs.h"
15365/* Override any gcc2 internal prototype to avoid an error. */
15366/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
15367 builtin and then its argument prototype would still apply. */
15368char FT_Render_Glyph();
15369
15370int main() {
15371FT_Render_Glyph()
15372; return 0; }
15373EOF
f11bdd03 15374if { (eval echo configure:15375: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
15375 rm -rf conftest*
15376 eval "ac_cv_lib_$ac_lib_var=yes"
15377else
15378 echo "configure: failed program was:" >&5
15379 cat conftest.$ac_ext >&5
15380 rm -rf conftest*
15381 eval "ac_cv_lib_$ac_lib_var=no"
15382fi
15383rm -f conftest*
15384LIBS="$ac_save_LIBS"
15385
15386fi
15387if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15388 echo "$ac_t""yes" 1>&6
3fed1840 15389 FREETYPE_LINK="-lfreetype"
698dcdb6
VZ
15390else
15391 echo "$ac_t""no" 1>&6
3fed1840
RR
15392fi
15393
698dcdb6
VZ
15394
15395else
15396 echo "$ac_t""no" 1>&6
3fed1840
RR
15397fi
15398
15399 if test "x$FREETYPE_LINK" = "x" ; then
698dcdb6 15400 { echo "configure: error: system freetype library not found! Use --with-freetype=yes to use the built-in freetype" 1>&2; exit 1; }
3fed1840
RR
15401 fi
15402 fi
15403fi
15404
10f2d63a 15405if test "$wxUSE_OPENGL" = "yes"; then
698dcdb6
VZ
15406 ac_safe=`echo "GL/gl.h" | sed 'y%./+-%__p_%'`
15407echo $ac_n "checking for GL/gl.h""... $ac_c" 1>&6
f11bdd03 15408echo "configure:15409: checking for GL/gl.h" >&5
698dcdb6
VZ
15409if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15410 echo $ac_n "(cached) $ac_c" 1>&6
15411else
15412 cat > conftest.$ac_ext <<EOF
f11bdd03 15413#line 15414 "configure"
10f2d63a
VZ
15414#include "confdefs.h"
15415#include <GL/gl.h>
698dcdb6
VZ
15416EOF
15417ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
f11bdd03 15418{ (eval echo configure:15419: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
15419ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15420if test -z "$ac_err"; then
15421 rm -rf conftest*
15422 eval "ac_cv_header_$ac_safe=yes"
10f2d63a 15423else
698dcdb6
VZ
15424 echo "$ac_err" >&5
15425 echo "configure: failed program was:" >&5
10f2d63a 15426 cat conftest.$ac_ext >&5
698dcdb6
VZ
15427 rm -rf conftest*
15428 eval "ac_cv_header_$ac_safe=no"
10f2d63a 15429fi
698dcdb6 15430rm -f conftest*
10f2d63a 15431fi
698dcdb6
VZ
15432if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15433 echo "$ac_t""yes" 1>&6
15434
15435 cat >> confdefs.h <<\EOF
bdad4e7e
RR
15436#define wxUSE_OPENGL 1
15437EOF
15438
698dcdb6 15439 cat >> confdefs.h <<\EOF
bdad4e7e
RR
15440#define wxUSE_GLCANVAS 1
15441EOF
15442
698dcdb6 15443 echo $ac_n "checking for glFlush in -lGL""... $ac_c" 1>&6
f11bdd03 15444echo "configure:15445: checking for glFlush in -lGL" >&5
698dcdb6
VZ
15445ac_lib_var=`echo GL'_'glFlush | sed 'y%./+-%__p_%'`
15446if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15447 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 15448else
698dcdb6 15449 ac_save_LIBS="$LIBS"
bdad4e7e 15450LIBS="-lGL $LIBS"
698dcdb6 15451cat > conftest.$ac_ext <<EOF
f11bdd03 15452#line 15453 "configure"
10f2d63a
VZ
15453#include "confdefs.h"
15454/* Override any gcc2 internal prototype to avoid an error. */
15455/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
15456 builtin and then its argument prototype would still apply. */
15457char glFlush();
6232543b 15458
698dcdb6
VZ
15459int main() {
15460glFlush()
15461; return 0; }
15462EOF
f11bdd03 15463if { (eval echo configure:15464: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
15464 rm -rf conftest*
15465 eval "ac_cv_lib_$ac_lib_var=yes"
15466else
15467 echo "configure: failed program was:" >&5
15468 cat conftest.$ac_ext >&5
15469 rm -rf conftest*
15470 eval "ac_cv_lib_$ac_lib_var=no"
15471fi
15472rm -f conftest*
15473LIBS="$ac_save_LIBS"
1e487827 15474
698dcdb6
VZ
15475fi
15476if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15477 echo "$ac_t""yes" 1>&6
15478
15479 OPENGL_LINK="-lGL -lGLU"
15480
10f2d63a 15481else
698dcdb6 15482 echo "$ac_t""no" 1>&6
10f2d63a 15483
698dcdb6 15484 echo $ac_n "checking for glFlush in -lMesaGL""... $ac_c" 1>&6
f11bdd03 15485echo "configure:15486: checking for glFlush in -lMesaGL" >&5
698dcdb6
VZ
15486ac_lib_var=`echo MesaGL'_'glFlush | sed 'y%./+-%__p_%'`
15487if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15488 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 15489else
698dcdb6 15490 ac_save_LIBS="$LIBS"
10f2d63a 15491LIBS="-lMesaGL $LIBS"
698dcdb6 15492cat > conftest.$ac_ext <<EOF
f11bdd03 15493#line 15494 "configure"
10f2d63a
VZ
15494#include "confdefs.h"
15495/* Override any gcc2 internal prototype to avoid an error. */
15496/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
15497 builtin and then its argument prototype would still apply. */
15498char glFlush();
15499
15500int main() {
15501glFlush()
15502; return 0; }
15503EOF
f11bdd03 15504if { (eval echo configure:15505: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
15505 rm -rf conftest*
15506 eval "ac_cv_lib_$ac_lib_var=yes"
15507else
15508 echo "configure: failed program was:" >&5
15509 cat conftest.$ac_ext >&5
15510 rm -rf conftest*
15511 eval "ac_cv_lib_$ac_lib_var=no"
15512fi
15513rm -f conftest*
15514LIBS="$ac_save_LIBS"
10f2d63a 15515
698dcdb6
VZ
15516fi
15517if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15518 echo "$ac_t""yes" 1>&6
15519
f6bcfd97 15520 OPENGL_LINK="-lMesaGL -lMesaGLU"
698dcdb6
VZ
15521
15522else
15523 echo "$ac_t""no" 1>&6
10f2d63a
VZ
15524fi
15525
698dcdb6 15526
10f2d63a
VZ
15527fi
15528
698dcdb6 15529
10f2d63a 15530else
698dcdb6
VZ
15531 echo "$ac_t""no" 1>&6
15532wxUSE_OPENGL=0
10f2d63a
VZ
15533fi
15534
15535fi
15536
698dcdb6 15537
10f2d63a 15538if test "$wxUSE_GUI" = "yes"; then
698dcdb6 15539 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15540#define wxUSE_GUI 1
15541EOF
15542
698dcdb6 15543
10f2d63a 15544 else
698dcdb6 15545 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15546#define wxUSE_NOGUI 1
15547EOF
15548
15549fi
15550
698dcdb6 15551
10f2d63a 15552if test "$wxUSE_UNIX" = "yes"; then
698dcdb6 15553 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15554#define wxUSE_UNIX 1
15555EOF
15556
15557fi
15558
698dcdb6 15559
10f2d63a 15560if test "$wxUSE_APPLE_IEEE" = "yes"; then
698dcdb6 15561 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15562#define wxUSE_APPLE_IEEE 1
15563EOF
15564
15565fi
15566
1e6feb95
VZ
15567if test "$wxUSE_TIMER" = "yes"; then
15568 cat >> confdefs.h <<\EOF
15569#define wxUSE_TIMER 1
15570EOF
15571
15572fi
15573
10f2d63a 15574if test "$wxUSE_WAVE" = "yes"; then
698dcdb6 15575 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15576#define wxUSE_WAVE 1
15577EOF
15578
15579fi
15580
1e6feb95
VZ
15581if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
15582 cat >> confdefs.h <<\EOF
15583#define wxUSE_CMDLINE_PARSER 1
15584EOF
15585
15586fi
15587
15588if test "$wxUSE_STOPWATCH" = "yes"; then
15589 cat >> confdefs.h <<\EOF
15590#define wxUSE_STOPWATCH 1
15591EOF
15592
15593fi
15594
15595if test "$wxUSE_DATETIME" = "yes"; then
15596 cat >> confdefs.h <<\EOF
15597#define wxUSE_DATETIME 1
15598EOF
15599
15600fi
15601
15602if test "$wxUSE_TIMEDATE" = "yes"; then
15603 cat >> confdefs.h <<\EOF
15604#define wxUSE_TIMEDATE 1
15605EOF
15606
15607fi
15608
10f2d63a 15609if test "$wxUSE_FILE" = "yes"; then
698dcdb6 15610 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15611#define wxUSE_FILE 1
15612EOF
15613
15614fi
15615
1e6feb95
VZ
15616if test "$wxUSE_FFILE" = "yes"; then
15617 cat >> confdefs.h <<\EOF
15618#define wxUSE_FFILE 1
15619EOF
15620
15621fi
15622
24528b0c 15623if test "$wxUSE_FILESYSTEM" = "yes"; then
698dcdb6 15624 cat >> confdefs.h <<\EOF
24528b0c
VS
15625#define wxUSE_FILESYSTEM 1
15626EOF
15627
15628fi
15629
10f2d63a 15630if test "$wxUSE_FS_INET" = "yes"; then
698dcdb6 15631 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15632#define wxUSE_FS_INET 1
15633EOF
15634
15635fi
15636
15637if test "$wxUSE_FS_ZIP" = "yes"; then
698dcdb6 15638 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15639#define wxUSE_FS_ZIP 1
15640EOF
15641
15642fi
15643
15644if test "$wxUSE_ZIPSTREAM" = "yes"; then
698dcdb6 15645 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15646#define wxUSE_ZIPSTREAM 1
15647EOF
15648
15649fi
15650
eb4efbdc 15651if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
698dcdb6 15652 cat >> confdefs.h <<\EOF
eb4efbdc
VZ
15653#define wxUSE_ON_FATAL_EXCEPTION 1
15654EOF
15655
15656fi
15657
4f3c5f06 15658if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
698dcdb6 15659 cat >> confdefs.h <<\EOF
4f3c5f06
VZ
15660#define wxUSE_SNGLINST_CHECKER 1
15661EOF
15662
15663fi
15664
10f2d63a 15665if test "$wxUSE_BUSYINFO" = "yes"; then
698dcdb6 15666 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15667#define wxUSE_BUSYINFO 1
15668EOF
15669
15670fi
15671
15672if test "$wxUSE_STD_IOSTREAM" = "yes"; then
698dcdb6 15673 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15674#define wxUSE_STD_IOSTREAM 1
15675EOF
15676
15677fi
15678
15679if test "$wxUSE_TEXTFILE" = "yes"; then
15680 if test "$wxUSE_FILE" != "yes"; then
698dcdb6 15681 echo "configure: warning: wxTextFile requires wxFile and it won't be compiled without it" 1>&2
10f2d63a 15682 else
698dcdb6 15683 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15684#define wxUSE_TEXTFILE 1
15685EOF
15686
15687 fi
15688fi
15689
15690if test "$wxUSE_CONFIG" = "yes" ; then
15691 if test "$wxUSE_TEXTFILE" != "yes"; then
698dcdb6 15692 echo "configure: warning: wxConfig requires wxTextFile and it won't be compiled without it" 1>&2
10f2d63a 15693 else
698dcdb6 15694 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15695#define wxUSE_CONFIG 1
15696EOF
15697
15698 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
15699 fi
15700fi
15701
15702if test "$wxUSE_INTL" = "yes" ; then
15703 if test "$wxUSE_FILE" != "yes"; then
698dcdb6 15704 echo "configure: warning: I18n code requires wxFile and it won't be compiled without it" 1>&2
10f2d63a 15705 else
698dcdb6 15706 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15707#define wxUSE_INTL 1
15708EOF
15709
15710 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
f6bcfd97 15711 GUIDIST="$GUIDIST INTL_DIST"
10f2d63a
VZ
15712 fi
15713fi
15714
15715if test "$wxUSE_LOG" = "yes"; then
698dcdb6 15716 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15717#define wxUSE_LOG 1
15718EOF
15719
d73be714
VZ
15720
15721 if test "$wxUSE_LOGGUI" = "yes"; then
15722 cat >> confdefs.h <<\EOF
15723#define wxUSE_LOGGUI 1
15724EOF
15725
15726 fi
15727
15728 if test "$wxUSE_LOGWINDOW" = "yes"; then
15729 cat >> confdefs.h <<\EOF
15730#define wxUSE_LOGWINDOW 1
15731EOF
15732
15733 fi
10f2d63a
VZ
15734fi
15735
15736if test "$wxUSE_LONGLONG" = "yes"; then
698dcdb6 15737 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15738#define wxUSE_LONGLONG 1
15739EOF
15740
15741fi
15742
e8f65ba6 15743if test "$wxUSE_GEOMETRY" = "yes"; then
698dcdb6 15744 cat >> confdefs.h <<\EOF
e8f65ba6
RR
15745#define wxUSE_GEOMETRY 1
15746EOF
15747
15748fi
15749
10f2d63a 15750if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
698dcdb6 15751 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15752#define wxUSE_DIALUP_MANAGER 1
15753EOF
15754
70f7a477 15755 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
10f2d63a
VZ
15756fi
15757
15758if test "$wxUSE_STREAMS" = "yes" ; then
698dcdb6 15759 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15760#define wxUSE_STREAMS 1
15761EOF
15762
15763fi
15764
1e487827 15765
1e6feb95 15766if test "$wxUSE_DATETIME" = "yes"; then
698dcdb6 15767 for ac_func in strptime
83307f33 15768do
698dcdb6 15769echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
f11bdd03 15770echo "configure:15771: checking for $ac_func" >&5
698dcdb6
VZ
15771if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15772 echo $ac_n "(cached) $ac_c" 1>&6
15773else
15774 cat > conftest.$ac_ext <<EOF
f11bdd03 15775#line 15776 "configure"
83307f33
VZ
15776#include "confdefs.h"
15777/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 15778 which can conflict with char $ac_func(); below. */
83307f33
VZ
15779#include <assert.h>
15780/* Override any gcc2 internal prototype to avoid an error. */
15781/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
15782 builtin and then its argument prototype would still apply. */
15783char $ac_func();
15784
15785int main() {
83307f33
VZ
15786
15787/* The GNU C library defines this for functions which it implements
15788 to always fail with ENOSYS. Some functions are actually named
15789 something starting with __ and the normal name is an alias. */
15790#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15791choke me
15792#else
698dcdb6 15793$ac_func();
83307f33
VZ
15794#endif
15795
698dcdb6 15796; return 0; }
83307f33 15797EOF
f11bdd03 15798if { (eval echo configure:15799: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
15799 rm -rf conftest*
15800 eval "ac_cv_func_$ac_func=yes"
15801else
15802 echo "configure: failed program was:" >&5
15803 cat conftest.$ac_ext >&5
15804 rm -rf conftest*
15805 eval "ac_cv_func_$ac_func=no"
15806fi
15807rm -f conftest*
15808fi
83307f33 15809
698dcdb6
VZ
15810if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15811 echo "$ac_t""yes" 1>&6
15812 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15813 cat >> confdefs.h <<EOF
15814#define $ac_tr_func 1
15815EOF
15816
15817else
15818 echo "$ac_t""no" 1>&6
83307f33
VZ
15819fi
15820done
15821
1e487827 15822
698dcdb6 15823 echo $ac_n "checking for timezone variable in <time.h>""... $ac_c" 1>&6
f11bdd03 15824echo "configure:15825: checking for timezone variable in <time.h>" >&5
698dcdb6
VZ
15825if eval "test \"`echo '$''{'wx_cv_var_timezone'+set}'`\" = set"; then
15826 echo $ac_n "(cached) $ac_c" 1>&6
15827else
15828
15829 cat > conftest.$ac_ext <<EOF
f11bdd03 15830#line 15831 "configure"
360d6699
VZ
15831#include "confdefs.h"
15832
b4085ce6 15833 #include <time.h>
698dcdb6
VZ
15834
15835int main() {
360d6699
VZ
15836
15837 int tz;
4f11a343 15838 tz = timezone;
698dcdb6
VZ
15839
15840; return 0; }
15841EOF
f11bdd03 15842if { (eval echo configure:15843: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
15843 rm -rf conftest*
15844
4f11a343 15845 wx_cv_var_timezone=timezone
698dcdb6 15846
360d6699 15847else
698dcdb6
VZ
15848 echo "configure: failed program was:" >&5
15849 cat conftest.$ac_ext >&5
15850 rm -rf conftest*
15851
15852 cat > conftest.$ac_ext <<EOF
f11bdd03 15853#line 15854 "configure"
360d6699
VZ
15854#include "confdefs.h"
15855
b4085ce6 15856 #include <time.h>
698dcdb6
VZ
15857
15858int main() {
360d6699
VZ
15859
15860 int tz;
15861 tz = _timezone;
698dcdb6
VZ
15862
15863; return 0; }
15864EOF
f11bdd03 15865if { (eval echo configure:15866: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
15866 rm -rf conftest*
15867
360d6699 15868 wx_cv_var_timezone=_timezone
698dcdb6 15869
5357c8e8 15870else
698dcdb6
VZ
15871 echo "configure: failed program was:" >&5
15872 cat conftest.$ac_ext >&5
15873 rm -rf conftest*
15874
15875 cat > conftest.$ac_ext <<EOF
f11bdd03 15876#line 15877 "configure"
5357c8e8
VZ
15877#include "confdefs.h"
15878
b4085ce6 15879 #include <time.h>
698dcdb6
VZ
15880
15881int main() {
5357c8e8
VZ
15882
15883 int tz;
4f11a343 15884 tz = __timezone;
698dcdb6
VZ
15885
15886; return 0; }
15887EOF
f11bdd03 15888if { (eval echo configure:15889: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
15889 rm -rf conftest*
15890
4f11a343 15891 wx_cv_var_timezone=__timezone
698dcdb6 15892
360d6699 15893else
698dcdb6
VZ
15894 echo "configure: failed program was:" >&5
15895 cat conftest.$ac_ext >&5
15896 rm -rf conftest*
15897 { echo "configure: error: no timezone variable" 1>&2; exit 1; }
15898
360d6699 15899fi
698dcdb6
VZ
15900rm -f conftest*
15901
15902
360d6699 15903fi
698dcdb6
VZ
15904rm -f conftest*
15905
15906
6232543b 15907fi
698dcdb6
VZ
15908rm -f conftest*
15909
15910
1e487827 15911fi
703e0a69 15912
698dcdb6
VZ
15913echo "$ac_t""$wx_cv_var_timezone" 1>&6
15914
15915 cat >> confdefs.h <<EOF
360d6699
VZ
15916#define WX_TIMEZONE $wx_cv_var_timezone
15917EOF
15918
698dcdb6
VZ
15919
15920 for ac_func in localtime
afc31813 15921do
698dcdb6 15922echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
f11bdd03 15923echo "configure:15924: checking for $ac_func" >&5
698dcdb6
VZ
15924if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15925 echo $ac_n "(cached) $ac_c" 1>&6
15926else
15927 cat > conftest.$ac_ext <<EOF
f11bdd03 15928#line 15929 "configure"
10f2d63a 15929#include "confdefs.h"
afc31813 15930/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 15931 which can conflict with char $ac_func(); below. */
afc31813
VZ
15932#include <assert.h>
15933/* Override any gcc2 internal prototype to avoid an error. */
15934/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
15935 builtin and then its argument prototype would still apply. */
15936char $ac_func();
15937
15938int main() {
afc31813
VZ
15939
15940/* The GNU C library defines this for functions which it implements
15941 to always fail with ENOSYS. Some functions are actually named
15942 something starting with __ and the normal name is an alias. */
15943#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15944choke me
15945#else
698dcdb6 15946$ac_func();
afc31813
VZ
15947#endif
15948
698dcdb6 15949; return 0; }
10f2d63a 15950EOF
f11bdd03 15951if { (eval echo configure:15952: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
15952 rm -rf conftest*
15953 eval "ac_cv_func_$ac_func=yes"
15954else
15955 echo "configure: failed program was:" >&5
15956 cat conftest.$ac_ext >&5
15957 rm -rf conftest*
15958 eval "ac_cv_func_$ac_func=no"
15959fi
15960rm -f conftest*
15961fi
afc31813 15962
698dcdb6
VZ
15963if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15964 echo "$ac_t""yes" 1>&6
15965 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15966 cat >> confdefs.h <<EOF
15967#define $ac_tr_func 1
15968EOF
15969
15970else
15971 echo "$ac_t""no" 1>&6
afc31813
VZ
15972fi
15973done
15974
1e487827 15975
698dcdb6
VZ
15976 if test "$ac_cv_func_localtime" = "yes"; then
15977 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
f11bdd03 15978echo "configure:15979: checking for tm_gmtoff in struct tm" >&5
698dcdb6
VZ
15979if eval "test \"`echo '$''{'wx_cv_struct_tm_has_gmtoff'+set}'`\" = set"; then
15980 echo $ac_n "(cached) $ac_c" 1>&6
15981else
15982
15983 cat > conftest.$ac_ext <<EOF
f11bdd03 15984#line 15985 "configure"
0470b1e6
VZ
15985#include "confdefs.h"
15986
b4085ce6 15987 #include <time.h>
698dcdb6
VZ
15988
15989int main() {
0470b1e6
VZ
15990
15991 struct tm tm;
15992 tm.tm_gmtoff++;
698dcdb6
VZ
15993
15994; return 0; }
15995EOF
f11bdd03 15996if { (eval echo configure:15997: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
15997 rm -rf conftest*
15998
f03a98d8 15999 wx_cv_struct_tm_has_gmtoff=yes
698dcdb6 16000
0470b1e6 16001else
698dcdb6
VZ
16002 echo "configure: failed program was:" >&5
16003 cat conftest.$ac_ext >&5
16004 rm -rf conftest*
16005 wx_cv_struct_tm_has_gmtoff=no
16006
0470b1e6 16007fi
698dcdb6
VZ
16008rm -f conftest*
16009
1e487827 16010fi
698dcdb6
VZ
16011
16012echo "$ac_t""$wx_cv_struct_tm_has_gmtoff" 1>&6
6232543b
VS
16013 fi
16014
16015 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
698dcdb6 16016 cat >> confdefs.h <<\EOF
6232543b
VS
16017#define WX_GMTOFF_IN_TM 1
16018EOF
0470b1e6 16019
3fcdd07b
VZ
16020 fi
16021
698dcdb6 16022 for ac_func in gettimeofday ftime
3fcdd07b 16023do
698dcdb6 16024echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
f11bdd03 16025echo "configure:16026: checking for $ac_func" >&5
698dcdb6
VZ
16026if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16027 echo $ac_n "(cached) $ac_c" 1>&6
16028else
16029 cat > conftest.$ac_ext <<EOF
f11bdd03 16030#line 16031 "configure"
3fcdd07b
VZ
16031#include "confdefs.h"
16032/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 16033 which can conflict with char $ac_func(); below. */
3fcdd07b
VZ
16034#include <assert.h>
16035/* Override any gcc2 internal prototype to avoid an error. */
16036/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
16037 builtin and then its argument prototype would still apply. */
16038char $ac_func();
16039
16040int main() {
3fcdd07b
VZ
16041
16042/* The GNU C library defines this for functions which it implements
16043 to always fail with ENOSYS. Some functions are actually named
16044 something starting with __ and the normal name is an alias. */
16045#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16046choke me
16047#else
698dcdb6 16048$ac_func();
3fcdd07b
VZ
16049#endif
16050
698dcdb6
VZ
16051; return 0; }
16052EOF
f11bdd03 16053if { (eval echo configure:16054: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
16054 rm -rf conftest*
16055 eval "ac_cv_func_$ac_func=yes"
16056else
16057 echo "configure: failed program was:" >&5
16058 cat conftest.$ac_ext >&5
16059 rm -rf conftest*
16060 eval "ac_cv_func_$ac_func=no"
16061fi
16062rm -f conftest*
16063fi
16064
16065if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16066 echo "$ac_t""yes" 1>&6
16067 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16068 cat >> confdefs.h <<EOF
16069#define $ac_tr_func 1
3fcdd07b
VZ
16070EOF
16071 break
698dcdb6
VZ
16072else
16073 echo "$ac_t""no" 1>&6
3fcdd07b
VZ
16074fi
16075done
16076
afc31813 16077
698dcdb6
VZ
16078 if test "$ac_cv_func_gettimeofday" = "yes"; then
16079 echo $ac_n "checking whether gettimeofday takes two arguments""... $ac_c" 1>&6
f11bdd03 16080echo "configure:16081: checking whether gettimeofday takes two arguments" >&5
698dcdb6
VZ
16081if eval "test \"`echo '$''{'wx_cv_func_gettimeofday_has_2_args'+set}'`\" = set"; then
16082 echo $ac_n "(cached) $ac_c" 1>&6
16083else
16084
16085
16086 ac_ext=C
16087# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1e487827 16088ac_cpp='$CXXCPP $CPPFLAGS'
698dcdb6
VZ
16089ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16090ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16091cross_compiling=$ac_cv_prog_cxx_cross
703e0a69 16092
698dcdb6
VZ
16093
16094 cat > conftest.$ac_ext <<EOF
f11bdd03 16095#line 16096 "configure"
10f2d63a 16096#include "confdefs.h"
afc31813
VZ
16097
16098 #include <sys/time.h>
16099 #include <unistd.h>
698dcdb6
VZ
16100
16101int main() {
afc31813
VZ
16102
16103 struct timeval tv;
16104 struct timezone tz;
16105 gettimeofday(&tv, &tz);
698dcdb6
VZ
16106
16107; return 0; }
16108EOF
f11bdd03 16109if { (eval echo configure:16110: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 16110 rm -rf conftest*
afc31813 16111 wx_cv_func_gettimeofday_has_2_args=yes
10f2d63a 16112else
698dcdb6
VZ
16113 echo "configure: failed program was:" >&5
16114 cat conftest.$ac_ext >&5
16115 rm -rf conftest*
16116 cat > conftest.$ac_ext <<EOF
f11bdd03 16117#line 16118 "configure"
10f2d63a 16118#include "confdefs.h"
afc31813
VZ
16119
16120 #include <sys/time.h>
16121 #include <unistd.h>
698dcdb6
VZ
16122
16123int main() {
afc31813
VZ
16124
16125 struct timeval tv;
16126 gettimeofday(&tv);
698dcdb6
VZ
16127
16128; return 0; }
16129EOF
f11bdd03 16130if { (eval echo configure:16131: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 16131 rm -rf conftest*
afc31813 16132 wx_cv_func_gettimeofday_has_2_args=no
10f2d63a 16133else
698dcdb6
VZ
16134 echo "configure: failed program was:" >&5
16135 cat conftest.$ac_ext >&5
16136 rm -rf conftest*
16137 wx_cv_func_gettimeofday_has_2_args=unknown
16138
10f2d63a 16139fi
698dcdb6
VZ
16140rm -f conftest*
16141
10f2d63a 16142fi
698dcdb6 16143rm -f conftest*
afc31813 16144 ac_ext=c
698dcdb6 16145# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10f2d63a 16146ac_cpp='$CPP $CPPFLAGS'
698dcdb6
VZ
16147ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16148ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16149cross_compiling=$ac_cv_prog_cc_cross
10f2d63a 16150
698dcdb6 16151
afc31813 16152fi
698dcdb6
VZ
16153
16154echo "$ac_t""$wx_cv_func_gettimeofday_has_2_args" 1>&6
c63c7106 16155
afc31813 16156 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
698dcdb6 16157 cat >> confdefs.h <<\EOF
afc31813
VZ
16158#define WX_GETTIMEOFDAY_NO_TZ 1
16159EOF
16160
16161 fi
16162 fi
16163
698dcdb6 16164 cat >> confdefs.h <<\EOF
afc31813
VZ
16165#define wxUSE_TIMEDATE 1
16166EOF
16167
16168 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
16169fi
16170
698dcdb6 16171
b089607b
VZ
16172if test "$TOOLKIT" != "MSW"; then
16173
afc31813 16174if test "$wxUSE_SOCKETS" = "yes"; then
698dcdb6 16175 echo $ac_n "checking for socket""... $ac_c" 1>&6
f11bdd03 16176echo "configure:16177: checking for socket" >&5
698dcdb6
VZ
16177if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
16178 echo $ac_n "(cached) $ac_c" 1>&6
c63c7106 16179else
698dcdb6 16180 cat > conftest.$ac_ext <<EOF
f11bdd03 16181#line 16182 "configure"
c63c7106
VZ
16182#include "confdefs.h"
16183/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 16184 which can conflict with char socket(); below. */
c63c7106
VZ
16185#include <assert.h>
16186/* Override any gcc2 internal prototype to avoid an error. */
16187/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
16188 builtin and then its argument prototype would still apply. */
16189char socket();
16190
16191int main() {
c63c7106
VZ
16192
16193/* The GNU C library defines this for functions which it implements
16194 to always fail with ENOSYS. Some functions are actually named
16195 something starting with __ and the normal name is an alias. */
16196#if defined (__stub_socket) || defined (__stub___socket)
16197choke me
16198#else
698dcdb6 16199socket();
c63c7106
VZ
16200#endif
16201
698dcdb6
VZ
16202; return 0; }
16203EOF
f11bdd03 16204if { (eval echo configure:16205: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
16205 rm -rf conftest*
16206 eval "ac_cv_func_socket=yes"
16207else
16208 echo "configure: failed program was:" >&5
16209 cat conftest.$ac_ext >&5
16210 rm -rf conftest*
16211 eval "ac_cv_func_socket=no"
16212fi
16213rm -f conftest*
16214fi
16215
16216if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
16217 echo "$ac_t""yes" 1>&6
c63c7106
VZ
16218 :
16219else
698dcdb6
VZ
16220 echo "$ac_t""no" 1>&6
16221echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
f11bdd03 16222echo "configure:16223: checking for socket in -lsocket" >&5
698dcdb6
VZ
16223ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
16224if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16225 echo $ac_n "(cached) $ac_c" 1>&6
c63c7106 16226else
698dcdb6 16227 ac_save_LIBS="$LIBS"
c63c7106 16228LIBS="-lsocket $LIBS"
698dcdb6 16229cat > conftest.$ac_ext <<EOF
f11bdd03 16230#line 16231 "configure"
c63c7106
VZ
16231#include "confdefs.h"
16232/* Override any gcc2 internal prototype to avoid an error. */
16233/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
16234 builtin and then its argument prototype would still apply. */
16235char socket();
16236
16237int main() {
16238socket()
16239; return 0; }
16240EOF
f11bdd03 16241if { (eval echo configure:16242: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
16242 rm -rf conftest*
16243 eval "ac_cv_lib_$ac_lib_var=yes"
16244else
16245 echo "configure: failed program was:" >&5
16246 cat conftest.$ac_ext >&5
16247 rm -rf conftest*
16248 eval "ac_cv_lib_$ac_lib_var=no"
16249fi
16250rm -f conftest*
16251LIBS="$ac_save_LIBS"
16252
16253fi
16254if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16255 echo "$ac_t""yes" 1>&6
c63c7106 16256 INET_LINK="$INET_LINK -lsocket"
c63c7106 16257else
698dcdb6 16258 echo "$ac_t""no" 1>&6
afc31813 16259
698dcdb6 16260 echo "configure: warning: socket library not found - sockets will be disabled" 1>&2
afc31813 16261 wxUSE_SOCKETS=no
698dcdb6
VZ
16262
16263
10f2d63a
VZ
16264fi
16265
698dcdb6 16266
6232543b 16267fi
b089607b 16268
1e487827 16269fi
afc31813 16270
51a9faba 16271
698dcdb6
VZ
16272if test "$wxUSE_SOCKETS" = "yes" ; then
16273 echo $ac_n "checking what is the type of the third argument of getsockname""... $ac_c" 1>&6
f11bdd03 16274echo "configure:16275: checking what is the type of the third argument of getsockname" >&5
698dcdb6
VZ
16275if eval "test \"`echo '$''{'wx_cv_type_getsockname3'+set}'`\" = set"; then
16276 echo $ac_n "(cached) $ac_c" 1>&6
16277else
16278
16279
16280 ac_ext=C
16281# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1e487827 16282ac_cpp='$CXXCPP $CPPFLAGS'
698dcdb6
VZ
16283ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16284ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16285cross_compiling=$ac_cv_prog_cxx_cross
703e0a69 16286
698dcdb6
VZ
16287
16288 cat > conftest.$ac_ext <<EOF
f11bdd03 16289#line 16290 "configure"
afc31813 16290#include "confdefs.h"
51a9faba 16291
3ace2e6d 16292 #include <sys/types.h>
51a9faba 16293 #include <sys/socket.h>
698dcdb6
VZ
16294
16295int main() {
51a9faba
VZ
16296
16297 socklen_t len;
16298 getsockname(0, 0, &len);
698dcdb6
VZ
16299
16300; return 0; }
16301EOF
f11bdd03 16302if { (eval echo configure:16303: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 16303 rm -rf conftest*
51a9faba 16304 wx_cv_type_getsockname3=socklen_t
afc31813 16305else
698dcdb6
VZ
16306 echo "configure: failed program was:" >&5
16307 cat conftest.$ac_ext >&5
16308 rm -rf conftest*
16309 cat > conftest.$ac_ext <<EOF
f11bdd03 16310#line 16311 "configure"
afc31813 16311#include "confdefs.h"
51a9faba 16312
3ace2e6d 16313 #include <sys/types.h>
51a9faba 16314 #include <sys/socket.h>
698dcdb6
VZ
16315
16316int main() {
51a9faba
VZ
16317
16318 size_t len;
16319 getsockname(0, 0, &len);
698dcdb6
VZ
16320
16321; return 0; }
16322EOF
f11bdd03 16323if { (eval echo configure:16324: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 16324 rm -rf conftest*
51a9faba 16325 wx_cv_type_getsockname3=size_t
afc31813 16326else
698dcdb6
VZ
16327 echo "configure: failed program was:" >&5
16328 cat conftest.$ac_ext >&5
16329 rm -rf conftest*
16330 cat > conftest.$ac_ext <<EOF
f11bdd03 16331#line 16332 "configure"
afc31813 16332#include "confdefs.h"
51a9faba 16333
3ace2e6d 16334 #include <sys/types.h>
51a9faba 16335 #include <sys/socket.h>
698dcdb6
VZ
16336
16337int main() {
51a9faba
VZ
16338
16339 int len;
16340 getsockname(0, 0, &len);
698dcdb6
VZ
16341
16342; return 0; }
16343EOF
f11bdd03 16344if { (eval echo configure:16345: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 16345 rm -rf conftest*
51a9faba 16346 wx_cv_type_getsockname3=int
afc31813 16347else
698dcdb6
VZ
16348 echo "configure: failed program was:" >&5
16349 cat conftest.$ac_ext >&5
16350 rm -rf conftest*
16351 wx_cv_type_getsockname3=unknown
16352
afc31813 16353fi
698dcdb6
VZ
16354rm -f conftest*
16355
afc31813 16356fi
698dcdb6
VZ
16357rm -f conftest*
16358
afc31813 16359fi
698dcdb6 16360rm -f conftest*
51a9faba
VZ
16361
16362 ac_ext=c
698dcdb6 16363# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
afc31813 16364ac_cpp='$CPP $CPPFLAGS'
698dcdb6
VZ
16365ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16366ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16367cross_compiling=$ac_cv_prog_cc_cross
afc31813 16368
698dcdb6 16369
51a9faba 16370fi
698dcdb6
VZ
16371
16372echo "$ac_t""$wx_cv_type_getsockname3" 1>&6
51a9faba
VZ
16373
16374 if test "$wx_cv_type_getsockname3" = "unknown"; then
16375 wxUSE_SOCKETS=no
698dcdb6 16376 echo "configure: warning: Couldn't find socklen_t synonym for this system" 1>&2
51a9faba 16377 else
698dcdb6 16378 cat >> confdefs.h <<EOF
51a9faba
VZ
16379#define SOCKLEN_T $wx_cv_type_getsockname3
16380EOF
16381
16382 fi
16383fi
afc31813 16384
c521c494
RL
16385fi
16386
51a9faba 16387if test "$wxUSE_SOCKETS" = "yes" ; then
698dcdb6 16388 cat >> confdefs.h <<\EOF
afc31813
VZ
16389#define wxUSE_SOCKETS 1
16390EOF
16391
70f7a477 16392 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
afc31813
VZ
16393 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS protocol"
16394fi
16395
698dcdb6 16396
dc3d889d
VZ
16397if test "$wxUSE_GUI" = "yes"; then
16398
b089607b
VZ
16399if test "$TOOLKIT" != "MSW"; then
16400
ceded8b9 16401if test "$wxUSE_JOYSTICK" = "yes"; then
698dcdb6 16402 for ac_hdr in linux/joystick.h
10f2d63a 16403do
698dcdb6
VZ
16404ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16405echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
f11bdd03 16406echo "configure:16407: checking for $ac_hdr" >&5
698dcdb6
VZ
16407if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
16408 echo $ac_n "(cached) $ac_c" 1>&6
16409else
16410 cat > conftest.$ac_ext <<EOF
f11bdd03 16411#line 16412 "configure"
10f2d63a 16412#include "confdefs.h"
698dcdb6
VZ
16413#include <$ac_hdr>
16414EOF
16415ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
f11bdd03 16416{ (eval echo configure:16417: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
16417ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16418if test -z "$ac_err"; then
16419 rm -rf conftest*
16420 eval "ac_cv_header_$ac_safe=yes"
10f2d63a 16421else
698dcdb6
VZ
16422 echo "$ac_err" >&5
16423 echo "configure: failed program was:" >&5
10f2d63a 16424 cat conftest.$ac_ext >&5
698dcdb6
VZ
16425 rm -rf conftest*
16426 eval "ac_cv_header_$ac_safe=no"
10f2d63a 16427fi
698dcdb6 16428rm -f conftest*
10f2d63a 16429fi
698dcdb6
VZ
16430if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16431 echo "$ac_t""yes" 1>&6
16432 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16433 cat >> confdefs.h <<EOF
16434#define $ac_tr_hdr 1
10f2d63a 16435EOF
698dcdb6
VZ
16436
16437else
16438 echo "$ac_t""no" 1>&6
10f2d63a
VZ
16439fi
16440done
16441
b089607b 16442 if test "$ac_cv_header_linux_joystick_h" != "yes"; then
ceded8b9 16443 wxUSE_JOYSTICK=no
698dcdb6 16444 echo "configure: warning: Joystick not supported by this system" 1>&2
b089607b
VZ
16445 fi
16446fi
16447
16448fi
16449
ceded8b9 16450if test "$wxUSE_JOYSTICK" = "yes"; then
698dcdb6 16451 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16452#define wxUSE_JOYSTICK 1
16453EOF
16454
16455 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
10f2d63a
VZ
16456fi
16457
dc3d889d
VZ
16458fi
16459
698dcdb6 16460
b089607b
VZ
16461if test "$TOOLKIT" != "MSW"; then
16462
10f2d63a
VZ
16463HAVE_DL_FUNCS=0
16464HAVE_SHL_FUNCS=0
16465if test "$wxUSE_DYNLIB_CLASS" = "yes"; then
f11bdd03 16466 if test "$USE_DARWIN" = 1; then
b4085ce6
GD
16467 HAVE_DL_FUNCS=1
16468 else
698dcdb6 16469 for ac_func in dlopen
10f2d63a 16470do
698dcdb6 16471echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
f11bdd03 16472echo "configure:16473: checking for $ac_func" >&5
698dcdb6
VZ
16473if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16474 echo $ac_n "(cached) $ac_c" 1>&6
16475else
16476 cat > conftest.$ac_ext <<EOF
f11bdd03 16477#line 16478 "configure"
10f2d63a
VZ
16478#include "confdefs.h"
16479/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 16480 which can conflict with char $ac_func(); below. */
10f2d63a
VZ
16481#include <assert.h>
16482/* Override any gcc2 internal prototype to avoid an error. */
16483/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
16484 builtin and then its argument prototype would still apply. */
16485char $ac_func();
16486
16487int main() {
10f2d63a
VZ
16488
16489/* The GNU C library defines this for functions which it implements
16490 to always fail with ENOSYS. Some functions are actually named
16491 something starting with __ and the normal name is an alias. */
16492#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16493choke me
16494#else
698dcdb6 16495$ac_func();
10f2d63a
VZ
16496#endif
16497
698dcdb6
VZ
16498; return 0; }
16499EOF
f11bdd03 16500if { (eval echo configure:16501: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
16501 rm -rf conftest*
16502 eval "ac_cv_func_$ac_func=yes"
16503else
16504 echo "configure: failed program was:" >&5
16505 cat conftest.$ac_ext >&5
16506 rm -rf conftest*
16507 eval "ac_cv_func_$ac_func=no"
16508fi
16509rm -f conftest*
16510fi
16511
16512if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16513 echo "$ac_t""yes" 1>&6
16514 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16515 cat >> confdefs.h <<EOF
16516#define $ac_tr_func 1
16517EOF
16518
16519 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16520#define HAVE_DLOPEN 1
16521EOF
16522
16523 HAVE_DL_FUNCS=1
698dcdb6 16524
10f2d63a 16525else
698dcdb6
VZ
16526 echo "$ac_t""no" 1>&6
16527echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
f11bdd03 16528echo "configure:16529: checking for dlopen in -ldl" >&5
698dcdb6
VZ
16529ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
16530if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16531 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 16532else
698dcdb6 16533 ac_save_LIBS="$LIBS"
10f2d63a 16534LIBS="-ldl $LIBS"
698dcdb6 16535cat > conftest.$ac_ext <<EOF
f11bdd03 16536#line 16537 "configure"
10f2d63a
VZ
16537#include "confdefs.h"
16538/* Override any gcc2 internal prototype to avoid an error. */
16539/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
16540 builtin and then its argument prototype would still apply. */
16541char dlopen();
16542
16543int main() {
16544dlopen()
16545; return 0; }
16546EOF
f11bdd03 16547if { (eval echo configure:16548: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
16548 rm -rf conftest*
16549 eval "ac_cv_lib_$ac_lib_var=yes"
16550else
16551 echo "configure: failed program was:" >&5
16552 cat conftest.$ac_ext >&5
16553 rm -rf conftest*
16554 eval "ac_cv_lib_$ac_lib_var=no"
16555fi
16556rm -f conftest*
16557LIBS="$ac_save_LIBS"
16558
16559fi
16560if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16561 echo "$ac_t""yes" 1>&6
16562
16563 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16564#define HAVE_DLOPEN 1
16565EOF
16566
16567 HAVE_DL_FUNCS=1
16568 LIBS="$LIBS -ldl"
698dcdb6 16569
10f2d63a 16570else
698dcdb6 16571 echo "$ac_t""no" 1>&6
10f2d63a 16572
698dcdb6 16573 for ac_func in shl_load
10f2d63a 16574do
698dcdb6 16575echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
f11bdd03 16576echo "configure:16577: checking for $ac_func" >&5
698dcdb6
VZ
16577if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16578 echo $ac_n "(cached) $ac_c" 1>&6
16579else
16580 cat > conftest.$ac_ext <<EOF
f11bdd03 16581#line 16582 "configure"
10f2d63a
VZ
16582#include "confdefs.h"
16583/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 16584 which can conflict with char $ac_func(); below. */
10f2d63a
VZ
16585#include <assert.h>
16586/* Override any gcc2 internal prototype to avoid an error. */
16587/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
16588 builtin and then its argument prototype would still apply. */
16589char $ac_func();
16590
16591int main() {
10f2d63a
VZ
16592
16593/* The GNU C library defines this for functions which it implements
16594 to always fail with ENOSYS. Some functions are actually named
16595 something starting with __ and the normal name is an alias. */
16596#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16597choke me
16598#else
698dcdb6 16599$ac_func();
10f2d63a
VZ
16600#endif
16601
698dcdb6
VZ
16602; return 0; }
16603EOF
f11bdd03 16604if { (eval echo configure:16605: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
16605 rm -rf conftest*
16606 eval "ac_cv_func_$ac_func=yes"
16607else
16608 echo "configure: failed program was:" >&5
16609 cat conftest.$ac_ext >&5
16610 rm -rf conftest*
16611 eval "ac_cv_func_$ac_func=no"
16612fi
16613rm -f conftest*
16614fi
16615
16616if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16617 echo "$ac_t""yes" 1>&6
16618 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16619 cat >> confdefs.h <<EOF
16620#define $ac_tr_func 1
16621EOF
16622
16623 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16624#define HAVE_SHL_LOAD 1
16625EOF
16626
16627 HAVE_SHL_FUNCS=1
698dcdb6 16628
10f2d63a 16629else
698dcdb6
VZ
16630 echo "$ac_t""no" 1>&6
16631echo $ac_n "checking for dld in -lshl_load""... $ac_c" 1>&6
f11bdd03 16632echo "configure:16633: checking for dld in -lshl_load" >&5
698dcdb6
VZ
16633ac_lib_var=`echo shl_load'_'dld | sed 'y%./+-%__p_%'`
16634if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16635 echo $ac_n "(cached) $ac_c" 1>&6
f6bcfd97 16636else
698dcdb6 16637 ac_save_LIBS="$LIBS"
f6bcfd97 16638LIBS="-lshl_load $LIBS"
698dcdb6 16639cat > conftest.$ac_ext <<EOF
f11bdd03 16640#line 16641 "configure"
f6bcfd97
BP
16641#include "confdefs.h"
16642/* Override any gcc2 internal prototype to avoid an error. */
16643/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
16644 builtin and then its argument prototype would still apply. */
16645char dld();
16646
16647int main() {
16648dld()
16649; return 0; }
16650EOF
f11bdd03 16651if { (eval echo configure:16652: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
16652 rm -rf conftest*
16653 eval "ac_cv_lib_$ac_lib_var=yes"
16654else
16655 echo "configure: failed program was:" >&5
16656 cat conftest.$ac_ext >&5
16657 rm -rf conftest*
16658 eval "ac_cv_lib_$ac_lib_var=no"
16659fi
16660rm -f conftest*
16661LIBS="$ac_save_LIBS"
f6bcfd97 16662
698dcdb6
VZ
16663fi
16664if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16665 echo "$ac_t""yes" 1>&6
16666
f6bcfd97
BP
16667 HAVE_SHL_FUNCS=1
16668 LIBS="$LIBS -ldld"
698dcdb6
VZ
16669
16670else
16671 echo "$ac_t""no" 1>&6
f6bcfd97
BP
16672fi
16673
698dcdb6 16674
10f2d63a
VZ
16675fi
16676done
16677
698dcdb6 16678
10f2d63a
VZ
16679fi
16680
698dcdb6 16681
10f2d63a
VZ
16682fi
16683done
16684
1e487827 16685
698dcdb6
VZ
16686 if test "$HAVE_DL_FUNCS" = 1; then
16687 for ac_func in dlerror
f6bcfd97 16688do
698dcdb6 16689echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
f11bdd03 16690echo "configure:16691: checking for $ac_func" >&5
698dcdb6
VZ
16691if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16692 echo $ac_n "(cached) $ac_c" 1>&6
16693else
16694 cat > conftest.$ac_ext <<EOF
f11bdd03 16695#line 16696 "configure"
f6bcfd97
BP
16696#include "confdefs.h"
16697/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 16698 which can conflict with char $ac_func(); below. */
f6bcfd97
BP
16699#include <assert.h>
16700/* Override any gcc2 internal prototype to avoid an error. */
16701/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
16702 builtin and then its argument prototype would still apply. */
16703char $ac_func();
16704
16705int main() {
f6bcfd97
BP
16706
16707/* The GNU C library defines this for functions which it implements
16708 to always fail with ENOSYS. Some functions are actually named
16709 something starting with __ and the normal name is an alias. */
16710#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16711choke me
16712#else
698dcdb6 16713$ac_func();
f6bcfd97
BP
16714#endif
16715
698dcdb6
VZ
16716; return 0; }
16717EOF
f11bdd03 16718if { (eval echo configure:16719: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
16719 rm -rf conftest*
16720 eval "ac_cv_func_$ac_func=yes"
16721else
16722 echo "configure: failed program was:" >&5
16723 cat conftest.$ac_ext >&5
16724 rm -rf conftest*
16725 eval "ac_cv_func_$ac_func=no"
16726fi
16727rm -f conftest*
16728fi
16729
16730if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16731 echo "$ac_t""yes" 1>&6
16732 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16733 cat >> confdefs.h <<EOF
16734#define $ac_tr_func 1
16735EOF
16736 cat >> confdefs.h <<\EOF
f6bcfd97
BP
16737#define HAVE_DLERROR 1
16738EOF
16739
16740else
698dcdb6
VZ
16741 echo "$ac_t""no" 1>&6
16742echo $ac_n "checking for dlerror in -ldl""... $ac_c" 1>&6
f11bdd03 16743echo "configure:16744: checking for dlerror in -ldl" >&5
698dcdb6
VZ
16744ac_lib_var=`echo dl'_'dlerror | sed 'y%./+-%__p_%'`
16745if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16746 echo $ac_n "(cached) $ac_c" 1>&6
f6bcfd97 16747else
698dcdb6 16748 ac_save_LIBS="$LIBS"
f6bcfd97 16749LIBS="-ldl $LIBS"
698dcdb6 16750cat > conftest.$ac_ext <<EOF
f11bdd03 16751#line 16752 "configure"
f6bcfd97
BP
16752#include "confdefs.h"
16753/* Override any gcc2 internal prototype to avoid an error. */
16754/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
16755 builtin and then its argument prototype would still apply. */
16756char dlerror();
16757
16758int main() {
16759dlerror()
16760; return 0; }
16761EOF
f11bdd03 16762if { (eval echo configure:16763: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
16763 rm -rf conftest*
16764 eval "ac_cv_lib_$ac_lib_var=yes"
16765else
16766 echo "configure: failed program was:" >&5
16767 cat conftest.$ac_ext >&5
16768 rm -rf conftest*
16769 eval "ac_cv_lib_$ac_lib_var=no"
16770fi
16771rm -f conftest*
16772LIBS="$ac_save_LIBS"
16773
16774fi
16775if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16776 echo "$ac_t""yes" 1>&6
16777 cat >> confdefs.h <<\EOF
f6bcfd97
BP
16778#define HAVE_DLERROR 1
16779EOF
16780
698dcdb6
VZ
16781else
16782 echo "$ac_t""no" 1>&6
f6bcfd97
BP
16783fi
16784
16785fi
16786done
16787
16788 fi
b4085ce6 16789 fi
f6bcfd97 16790
10f2d63a
VZ
16791 if test "$HAVE_DL_FUNCS" = 0; then
16792 if test "$HAVE_SHL_FUNCS" = 0; then
16793 if test "$USE_UNIX" = 1; then
698dcdb6 16794 echo "configure: warning: Missing dynamic loading support, several features will be disabled" 1>&2
10f2d63a
VZ
16795 wxUSE_DYNLIB_CLASS=no
16796 else
698dcdb6 16797 echo "configure: warning: Assuming wxLibrary class works on this platform" 1>&2
10f2d63a
VZ
16798 fi
16799 fi
16800 fi
16801fi
16802
b089607b
VZ
16803fi
16804
10f2d63a 16805if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
698dcdb6 16806 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16807#define wxUSE_DYNLIB_CLASS 1
16808EOF
16809
b12915c1
VZ
16810else
16811 wxUSE_ODBC=no
16812 wxUSE_SERIAL=no
10f2d63a
VZ
16813fi
16814
698dcdb6 16815
1e6feb95
VZ
16816if test "$wxUSE_FONTMAP" = "yes" ; then
16817 cat >> confdefs.h <<\EOF
16818#define wxUSE_FONTMAP 1
16819EOF
16820
16821fi
16822
10f2d63a 16823if test "$wxUSE_UNICODE" = "yes" ; then
698dcdb6 16824 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16825#define wxUSE_UNICODE 1
16826EOF
16827
16828fi
16829
16830if test "$wxUSE_WCSRTOMBS" = "yes" ; then
698dcdb6 16831 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16832#define wxUSE_WCSRTOMBS 1
16833EOF
16834
16835fi
16836
16837if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
698dcdb6 16838 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16839#define wxUSE_EXPERIMENTAL_PRINTF 1
16840EOF
16841
16842fi
16843
698dcdb6 16844
b12915c1 16845if test "$wxUSE_SERIAL" = "yes" ; then
698dcdb6 16846 cat >> confdefs.h <<\EOF
b12915c1
VZ
16847#define wxUSE_SERIAL 1
16848EOF
16849
16850fi
16851
698dcdb6 16852
10f2d63a
VZ
16853IODBC_C_SRC=""
16854if test "$wxUSE_ODBC" = "yes" ; then
698dcdb6 16855 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16856#define wxUSE_ODBC 1
16857EOF
16858
16859 WXODBCFLAG="-D_IODBC_"
16860 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
10f2d63a
VZ
16861fi
16862
698dcdb6 16863
10f2d63a 16864if test "$wxUSE_POSTSCRIPT" = "yes" ; then
698dcdb6 16865 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16866#define wxUSE_POSTSCRIPT 1
16867EOF
16868
16869fi
16870
698dcdb6 16871cat >> confdefs.h <<\EOF
10f2d63a
VZ
16872#define wxUSE_AFM_FOR_POSTSCRIPT 1
16873EOF
16874
698dcdb6
VZ
16875
16876cat >> confdefs.h <<\EOF
10f2d63a
VZ
16877#define wxUSE_NORMALIZED_PS_FONTS 1
16878EOF
16879
698dcdb6
VZ
16880
16881
10f2d63a 16882if test "$wxUSE_CONSTRAINTS" = "yes"; then
698dcdb6 16883 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16884#define wxUSE_CONSTRAINTS 1
16885EOF
16886
16887 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
16888fi
16889
16890if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
698dcdb6 16891 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16892#define wxUSE_MDI_ARCHITECTURE 1
16893EOF
16894
16895 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
16896fi
16897
16898if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
698dcdb6 16899 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16900#define wxUSE_DOC_VIEW_ARCHITECTURE 1
16901EOF
16902
16903 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
16904 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
16905 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
16906 fi
16907fi
16908
16909if test "$wxUSE_HELP" = "yes"; then
698dcdb6 16910 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16911#define wxUSE_HELP 1
16912EOF
16913
16914 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
3379ed37 16915
3e44f09d
VZ
16916 if test "$USE_WIN32" = 1; then
16917 if test "$wxUSE_WXHTML_HELP" = "yes"; then
3379ed37
VZ
16918 cat >> confdefs.h <<\EOF
16919#define wxUSE_WXHTML_HELP 1
16920EOF
16921
29fd3c0c
VS
16922 ac_safe=`echo "htmlhelp.h" | sed 'y%./+-%__p_%'`
16923echo $ac_n "checking for htmlhelp.h""... $ac_c" 1>&6
f11bdd03 16924echo "configure:16925: checking for htmlhelp.h" >&5
29fd3c0c
VS
16925if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
16926 echo $ac_n "(cached) $ac_c" 1>&6
16927else
16928 cat > conftest.$ac_ext <<EOF
f11bdd03 16929#line 16930 "configure"
29fd3c0c
VS
16930#include "confdefs.h"
16931#include <htmlhelp.h>
16932EOF
16933ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
f11bdd03 16934{ (eval echo configure:16935: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
29fd3c0c
VS
16935ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16936if test -z "$ac_err"; then
16937 rm -rf conftest*
16938 eval "ac_cv_header_$ac_safe=yes"
16939else
16940 echo "$ac_err" >&5
16941 echo "configure: failed program was:" >&5
16942 cat conftest.$ac_ext >&5
16943 rm -rf conftest*
16944 eval "ac_cv_header_$ac_safe=no"
16945fi
16946rm -f conftest*
16947fi
16948if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16949 echo "$ac_t""yes" 1>&6
16950
16951 cat >> confdefs.h <<\EOF
16952#define wxUSE_MS_HTML_HELP 1
16953EOF
16954
16955
16956else
16957 echo "$ac_t""no" 1>&6
16958
16959 echo "configure: warning: MS HTML Help cannot be used without htmlhelp.h so it won't be compiled without it" 1>&2
16960 wxUSE_MS_HTML_HELP=no
16961
16962fi
16963
3e44f09d 16964 fi
3379ed37 16965 fi
10f2d63a
VZ
16966fi
16967
16968if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
16969 if test "$wxUSE_CONSTRAINTS" != "yes"; then
698dcdb6 16970 echo "configure: warning: Printing support cannot be used without constraints so it won't be compiled without it" 1>&2
10f2d63a 16971 else
698dcdb6 16972 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16973#define wxUSE_PRINTING_ARCHITECTURE 1
16974EOF
16975
16976 fi
16977 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
16978fi
16979
16980if test "$wxUSE_PROLOGIO" = "yes" ; then
698dcdb6 16981 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16982#define wxUSE_PROLOGIO 1
16983EOF
16984
16985fi
16986
16987if test "$wxUSE_RESOURCES" = "yes" ; then
3379ed37 16988 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16989#define wxUSE_RESOURCES 1
16990EOF
16991
3379ed37 16992 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS resource"
10f2d63a
VZ
16993fi
16994
16995if test "$wxUSE_X_RESOURCES" = "yes"; then
698dcdb6 16996 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16997#define wxUSE_X_RESOURCES 1
16998EOF
16999
17000fi
17001
698dcdb6 17002
10f2d63a 17003if test "$wxUSE_IPC" = "yes"; then
eb4efbdc 17004 if test "$wxUSE_SOCKETS" != "yes"; then
698dcdb6 17005 echo "configure: warning: wxWindows IPC classes require sockets" 1>&2
eb4efbdc
VZ
17006 fi
17007
698dcdb6 17008 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17009#define wxUSE_IPC 1
17010EOF
17011
17012fi
17013
17014if test "$wxUSE_CLIPBOARD" = "yes"; then
698dcdb6 17015 cat >> confdefs.h <<\EOF
10f2d63a 17016#define wxUSE_CLIPBOARD 1
1e6feb95
VZ
17017EOF
17018
17019 cat >> confdefs.h <<\EOF
17020#define wxUSE_DATAOBJ 1
10f2d63a
VZ
17021EOF
17022
17023fi
17024
17025if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
17026 if test "$wxUSE_GTK" = 1; then
17027 if test "$WXGTK12" != 1; then
698dcdb6 17028 echo "configure: warning: Drag and drop is only supported under GTK+ 1.2" 1>&2
10f2d63a
VZ
17029 wxUSE_DRAG_AND_DROP=no
17030 fi
17031 fi
17032
17033 if test "$wxUSE_MOTIF" = 1; then
698dcdb6 17034 echo "configure: warning: Drag and drop is not yet supported under Motif" 1>&2
10f2d63a
VZ
17035 wxUSE_DRAG_AND_DROP=no
17036 fi
17037
2c6025bc 17038 if test "$wxUSE_MAC" = 1; then
698dcdb6 17039 echo "configure: warning: Drag and drop is not yet supported under Mac OS X" 1>&2
2c6025bc
GD
17040 wxUSE_DRAG_AND_DROP=no
17041 fi
17042
10f2d63a 17043 if test "$USE_WIN32" = 1; then
698dcdb6
VZ
17044
17045 for ac_hdr in ole2.h
10f2d63a 17046do
698dcdb6
VZ
17047ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
17048echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
f11bdd03 17049echo "configure:17050: checking for $ac_hdr" >&5
698dcdb6
VZ
17050if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
17051 echo $ac_n "(cached) $ac_c" 1>&6
17052else
17053 cat > conftest.$ac_ext <<EOF
f11bdd03 17054#line 17055 "configure"
10f2d63a 17055#include "confdefs.h"
698dcdb6
VZ
17056#include <$ac_hdr>
17057EOF
17058ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
f11bdd03 17059{ (eval echo configure:17060: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
17060ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
17061if test -z "$ac_err"; then
17062 rm -rf conftest*
17063 eval "ac_cv_header_$ac_safe=yes"
1e487827 17064else
698dcdb6
VZ
17065 echo "$ac_err" >&5
17066 echo "configure: failed program was:" >&5
10f2d63a 17067 cat conftest.$ac_ext >&5
698dcdb6
VZ
17068 rm -rf conftest*
17069 eval "ac_cv_header_$ac_safe=no"
10f2d63a 17070fi
698dcdb6 17071rm -f conftest*
10f2d63a 17072fi
698dcdb6
VZ
17073if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
17074 echo "$ac_t""yes" 1>&6
17075 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
17076 cat >> confdefs.h <<EOF
17077#define $ac_tr_hdr 1
10f2d63a 17078EOF
698dcdb6
VZ
17079
17080else
17081 echo "$ac_t""no" 1>&6
10f2d63a
VZ
17082fi
17083done
17084
698dcdb6 17085
57fe5ed0 17086 if test "$ac_cv_header_ole2_h" = "yes" ; then
c521c494 17087 if test "$GCC" = yes ; then
b64f0a5f
RL
17088 ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)"
17089 ALL_DEPFILES="$ALL_DEPFILES \$(OLEDEPS)"
c521c494 17090 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
b64f0a5f 17091 LIBS="$LIBS -lole32 -luuid"
4f11a343
VS
17092 cat >> confdefs.h <<\EOF
17093#define wxUSE_OLE 1
17094EOF
17095
b64f0a5f
RL
17096
17097 if test "$wxUSE_METAFILE" = "yes"; then
698dcdb6 17098 cat >> confdefs.h <<\EOF
b64f0a5f
RL
17099#define wxUSE_METAFILE 1
17100EOF
17101
698dcdb6 17102 cat >> confdefs.h <<\EOF
b64f0a5f
RL
17103#define wxUSE_ENH_METAFILE 1
17104EOF
17105
17106 fi
c521c494
RL
17107 fi
17108 else
698dcdb6 17109 echo "configure: warning: Drag and drop disabled because OLE headers not found" 1>&2
10f2d63a
VZ
17110 wxUSE_DRAG_AND_DROP=no
17111 fi
17112 fi
17113
17114 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
698dcdb6 17115 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17116#define wxUSE_DRAG_AND_DROP 1
17117EOF
17118
17119 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
17120 fi
17121
17122fi
17123
17124if test "$wxUSE_SPLINES" = "yes" ; then
698dcdb6 17125 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17126#define wxUSE_SPLINES 1
17127EOF
17128
17129fi
17130
698dcdb6 17131
1e6feb95
VZ
17132USES_CONTROLS=0
17133if test "$wxUSE_CONTROLS" = "yes"; then
17134 USES_CONTROLS=1
17135fi
17136
10f2d63a 17137if test "$wxUSE_ACCEL" = "yes"; then
698dcdb6 17138 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17139#define wxUSE_ACCEL 1
17140EOF
17141
1e6feb95
VZ
17142 USES_CONTROLS=1
17143fi
17144
17145if test "$wxUSE_BUTTON" = "yes"; then
17146 cat >> confdefs.h <<\EOF
17147#define wxUSE_BUTTON 1
17148EOF
17149
17150 USES_CONTROLS=1
17151fi
17152
17153if test "$wxUSE_BMPBUTTON" = "yes"; then
17154 cat >> confdefs.h <<\EOF
17155#define wxUSE_BMPBUTTON 1
17156EOF
17157
17158 USES_CONTROLS=1
17159fi
17160
17161if test "$wxUSE_CALCTRL" = "yes"; then
17162 cat >> confdefs.h <<\EOF
17163#define wxUSE_CALENDARCTRL 1
17164EOF
17165
17166 USES_CONTROLS=1
17167 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
10f2d63a
VZ
17168fi
17169
17170if test "$wxUSE_CARET" = "yes"; then
698dcdb6 17171 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17172#define wxUSE_CARET 1
17173EOF
17174
1e6feb95 17175 USES_CONTROLS=1
10f2d63a
VZ
17176 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
17177fi
17178
17179if test "$wxUSE_COMBOBOX" = "yes"; then
698dcdb6 17180 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17181#define wxUSE_COMBOBOX 1
17182EOF
17183
1e6feb95 17184 USES_CONTROLS=1
10f2d63a
VZ
17185fi
17186
17187if test "$wxUSE_CHOICE" = "yes"; then
698dcdb6 17188 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17189#define wxUSE_CHOICE 1
17190EOF
17191
1e6feb95 17192 USES_CONTROLS=1
10f2d63a
VZ
17193fi
17194
17195if test "$wxUSE_CHECKBOX" = "yes"; then
698dcdb6 17196 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17197#define wxUSE_CHECKBOX 1
17198EOF
17199
1e6feb95 17200 USES_CONTROLS=1
10f2d63a
VZ
17201fi
17202
17203if test "$wxUSE_CHECKLST" = "yes"; then
698dcdb6 17204 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17205#define wxUSE_CHECKLISTBOX 1
17206EOF
17207
1e6feb95 17208 USES_CONTROLS=1
10f2d63a
VZ
17209 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
17210fi
17211
17212if test "$wxUSE_GAUGE" = "yes"; then
698dcdb6 17213 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17214#define wxUSE_GAUGE 1
17215EOF
17216
1e6feb95 17217 USES_CONTROLS=1
10f2d63a
VZ
17218fi
17219
d6a55c4b
VZ
17220if test "$wxUSE_NEW_GRID" = "yes"; then
17221 wxUSE_GRID="yes"
698dcdb6 17222 cat >> confdefs.h <<\EOF
d6a55c4b 17223#define wxUSE_NEW_GRID 1
10f2d63a
VZ
17224EOF
17225
1e6feb95 17226 USES_CONTROLS=1
d6a55c4b 17227 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS newgrid"
10f2d63a
VZ
17228fi
17229
d6a55c4b 17230if test "$wxUSE_GRID" = "yes"; then
698dcdb6 17231 cat >> confdefs.h <<\EOF
d6a55c4b 17232#define wxUSE_GRID 1
10f2d63a
VZ
17233EOF
17234
1e6feb95 17235 USES_CONTROLS=1
d6a55c4b 17236 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
10f2d63a
VZ
17237fi
17238
17239if test "$wxUSE_IMAGLIST" = "yes"; then
698dcdb6 17240 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17241#define wxUSE_IMAGLIST 1
17242EOF
17243
17244fi
17245
17246if test "$wxUSE_LISTBOX" = "yes"; then
698dcdb6 17247 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17248#define wxUSE_LISTBOX 1
17249EOF
17250
1e6feb95 17251 USES_CONTROLS=1
10f2d63a
VZ
17252fi
17253
17254if test "$wxUSE_LISTCTRL" = "yes"; then
17255 if test "$wxUSE_IMAGLIST" = "yes"; then
698dcdb6 17256 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17257#define wxUSE_LISTCTRL 1
17258EOF
17259
1e6feb95 17260 USES_CONTROLS=1
10f2d63a
VZ
17261 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
17262 else
698dcdb6 17263 echo "configure: warning: wxListCtrl requires wxImageList and won't be compiled without it" 1>&2
10f2d63a
VZ
17264 fi
17265fi
17266
17267if test "$wxUSE_NOTEBOOK" = "yes"; then
698dcdb6 17268 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17269#define wxUSE_NOTEBOOK 1
17270EOF
17271
1e6feb95 17272 USES_CONTROLS=1
10f2d63a
VZ
17273 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
17274fi
17275
17276if test "$wxUSE_RADIOBOX" = "yes"; then
698dcdb6 17277 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17278#define wxUSE_RADIOBOX 1
17279EOF
17280
1e6feb95 17281 USES_CONTROLS=1
10f2d63a
VZ
17282fi
17283
17284if test "$wxUSE_RADIOBTN" = "yes"; then
698dcdb6 17285 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17286#define wxUSE_RADIOBTN 1
17287EOF
17288
1e6feb95 17289 USES_CONTROLS=1
10f2d63a
VZ
17290fi
17291
17292if test "$wxUSE_SASH" = "yes"; then
698dcdb6 17293 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17294#define wxUSE_SASH 1
17295EOF
17296
17297 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
17298fi
17299
17300if test "$wxUSE_SCROLLBAR" = "yes"; then
698dcdb6 17301 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17302#define wxUSE_SCROLLBAR 1
17303EOF
17304
1e6feb95 17305 USES_CONTROLS=1
741a9306 17306 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
10f2d63a
VZ
17307fi
17308
17309if test "$wxUSE_SLIDER" = "yes"; then
698dcdb6 17310 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17311#define wxUSE_SLIDER 1
17312EOF
17313
1e6feb95 17314 USES_CONTROLS=1
10f2d63a
VZ
17315fi
17316
17317if test "$wxUSE_SPINBTN" = "yes"; then
698dcdb6 17318 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17319#define wxUSE_SPINBTN 1
17320EOF
17321
1e6feb95 17322 USES_CONTROLS=1
10f2d63a
VZ
17323fi
17324
56cfaa52 17325if test "$wxUSE_SPINCTRL" = "yes"; then
698dcdb6 17326 cat >> confdefs.h <<\EOF
56cfaa52
RR
17327#define wxUSE_SPINCTRL 1
17328EOF
17329
1e6feb95 17330 USES_CONTROLS=1
56cfaa52
RR
17331fi
17332
10f2d63a 17333if test "$wxUSE_SPLITTER" = "yes"; then
698dcdb6 17334 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17335#define wxUSE_SPLITTER 1
17336EOF
17337
17338 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
17339fi
17340
17341if test "$wxUSE_STATBMP" = "yes"; then
698dcdb6 17342 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17343#define wxUSE_STATBMP 1
17344EOF
17345
1e6feb95 17346 USES_CONTROLS=1
10f2d63a
VZ
17347fi
17348
17349if test "$wxUSE_STATBOX" = "yes"; then
698dcdb6 17350 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17351#define wxUSE_STATBOX 1
17352EOF
17353
1e6feb95
VZ
17354 USES_CONTROLS=1
17355fi
17356
17357if test "$wxUSE_STATTEXT" = "yes"; then
17358 cat >> confdefs.h <<\EOF
17359#define wxUSE_STATTEXT 1
17360EOF
17361
17362 USES_CONTROLS=1
10f2d63a
VZ
17363fi
17364
17365if test "$wxUSE_STATLINE" = "yes"; then
17366 if test "$wxUSE_WINE" = 1 ; then
698dcdb6 17367 echo "configure: warning: wxStaticLine is not supported under WINE" 1>&2
10f2d63a 17368 else
698dcdb6 17369 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17370#define wxUSE_STATLINE 1
17371EOF
17372
1e6feb95 17373 USES_CONTROLS=1
10f2d63a
VZ
17374 fi
17375fi
17376
17377if test "$wxUSE_STATUSBAR" = "yes"; then
698dcdb6 17378 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17379#define wxUSE_STATUSBAR 1
17380EOF
17381
1e6feb95 17382 USES_CONTROLS=1
698dcdb6 17383
2286341c 17384 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
10f2d63a
VZ
17385fi
17386
17387if test "$wxUSE_TABDIALOG" = "yes"; then
698dcdb6 17388 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17389#define wxUSE_TAB_DIALOG 1
17390EOF
17391
17392 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
17393fi
17394
1e6feb95
VZ
17395if test "$wxUSE_TEXTCTRL" = "yes"; then
17396 cat >> confdefs.h <<\EOF
17397#define wxUSE_TEXTCTRL 1
17398EOF
17399
17400 USES_CONTROLS=1
17401 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
17402fi
17403
1db8dc4a 17404if test "$wxUSE_TOGGLEBTN" = "yes"; then
a45d7ab7
GD
17405 if test "$wxUSE_MAC" = 1; then
17406 echo "configure: warning: Toggle button is not yet supported under Mac OS X" 1>&2
17407 wxUSE_TOGGLEBTN=no
17408 fi
17409
17410 if test "$wxUSE_TOGGLEBTN" = "yes"; then
17411 cat >> confdefs.h <<\EOF
1db8dc4a
VZ
17412#define wxUSE_TOGGLEBTN 1
17413EOF
17414
1e6feb95 17415 USES_CONTROLS=1
a45d7ab7 17416 fi
1db8dc4a
VZ
17417fi
17418
360d6699 17419if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
698dcdb6 17420 cat >> confdefs.h <<\EOF
360d6699
VZ
17421#define wxUSE_TOOLBAR_SIMPLE 1
17422EOF
17423
17424 wxUSE_TOOLBAR="yes"
1e6feb95 17425 USES_CONTROLS=1
360d6699
VZ
17426fi
17427
10f2d63a 17428if test "$wxUSE_TOOLBAR" = "yes"; then
698dcdb6 17429 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17430#define wxUSE_TOOLBAR 1
17431EOF
17432
1e6feb95 17433 USES_CONTROLS=1
698dcdb6 17434
360d6699
VZ
17435 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
17436 wxUSE_TOOLBAR_NATIVE="yes"
17437 fi
17438
1e6feb95
VZ
17439 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
17440 cat >> confdefs.h <<\EOF
360d6699
VZ
17441#define wxUSE_TOOLBAR_NATIVE 1
17442EOF
17443
1e6feb95
VZ
17444 USES_CONTROLS=1
17445 fi
17446
17447 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
360d6699
VZ
17448fi
17449
10f2d63a
VZ
17450if test "$wxUSE_TOOLTIPS" = "yes"; then
17451 if test "$wxUSE_MOTIF" = 1; then
698dcdb6 17452 echo "configure: warning: wxTooltip not supported yet under Motif" 1>&2
10f2d63a
VZ
17453 else
17454 if test "$wxUSE_WINE" = 1; then
698dcdb6 17455 echo "configure: warning: wxTooltip not supported under WINE" 1>&2
10f2d63a 17456 else
698dcdb6 17457 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17458#define wxUSE_TOOLTIPS 1
17459EOF
17460
17461 fi
17462 fi
17463fi
17464
17465if test "$wxUSE_TREECTRL" = "yes"; then
17466 if test "$wxUSE_IMAGLIST" = "yes"; then
698dcdb6 17467 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17468#define wxUSE_TREECTRL 1
17469EOF
17470
1e6feb95 17471 USES_CONTROLS=1
10f2d63a
VZ
17472 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
17473 else
698dcdb6 17474 echo "configure: warning: wxTreeCtrl requires wxImageList and won't be compiled without it" 1>&2
10f2d63a
VZ
17475 fi
17476fi
17477
9f41d601 17478if test "$wxUSE_POPUPWIN" = "yes"; then
6abe4b65
GD
17479 if test "$wxUSE_MAC" = 1; then
17480 echo "configure: warning: Popup window is not yet supported under Mac OS" 1>&2
17481 else
17482 cat >> confdefs.h <<\EOF
9f41d601
RR
17483#define wxUSE_POPUPWIN 1
17484EOF
17485
6abe4b65
GD
17486 USES_CONTROLS=1
17487 fi
9f41d601
RR
17488fi
17489
1e6feb95
VZ
17490if test "$USES_CONTROLS" = 1; then
17491 cat >> confdefs.h <<\EOF
17492#define wxUSE_CONTROLS 1
10f2d63a
VZ
17493EOF
17494
10f2d63a
VZ
17495fi
17496
1e6feb95
VZ
17497
17498
24fd6d87
VZ
17499if test "$wxUSE_DRAGIMAGE" = "yes"; then
17500 cat >> confdefs.h <<\EOF
17501#define wxUSE_DRAGIMAGE 1
17502EOF
17503
17504 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
17505fi
17506
1e6feb95 17507if test "$wxUSE_MENUS" = "yes"; then
698dcdb6 17508 cat >> confdefs.h <<\EOF
1e6feb95 17509#define wxUSE_MENUS 1
10f2d63a
VZ
17510EOF
17511
1e6feb95 17512 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
10f2d63a
VZ
17513fi
17514
1e6feb95
VZ
17515if test "$wxUSE_METAFILE" = "yes"; then
17516 cat >> confdefs.h <<\EOF
17517#define wxUSE_METAFILE 1
10f2d63a
VZ
17518EOF
17519
10f2d63a
VZ
17520fi
17521
1e6feb95
VZ
17522if test "$wxUSE_MIMETYPE" = "yes"; then
17523 cat >> confdefs.h <<\EOF
17524#define wxUSE_MIMETYPE 1
10f2d63a
VZ
17525EOF
17526
10f2d63a
VZ
17527fi
17528
3e44f09d
VZ
17529if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
17530 cat >> confdefs.h <<\EOF
17531#define wxUSE_SYSTEM_OPTIONS 1
17532EOF
17533
17534fi
17535
10f2d63a 17536if test "$wxUSE_MINIFRAME" = "yes"; then
698dcdb6 17537 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17538#define wxUSE_MINIFRAME 1
17539EOF
17540
17541 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
17542fi
17543
17544if test "$wxUSE_HTML" = "yes"; then
698dcdb6 17545 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17546#define wxUSE_HTML 1
17547EOF
17548
17549 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html"
17550 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS html"
17551fi
17552
17553if test "$wxUSE_VALIDATORS" = "yes"; then
698dcdb6 17554 cat >> confdefs.h <<\EOF
1e487827
VS
17555#define wxUSE_VALIDATORS 1
17556EOF
703e0a69 17557
698dcdb6
VZ
17558 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
17559fi
17560
17561if test "$wxUSE_IMAGE" = "yes" ; then
17562 cat >> confdefs.h <<\EOF
17563#define wxUSE_IMAGE 1
17564EOF
17565
17566fi
17567
17568if test "$wxUSE_GIF" = "yes" ; then
17569 cat >> confdefs.h <<\EOF
17570#define wxUSE_GIF 1
17571EOF
17572
17573fi
17574
17575if test "$wxUSE_PCX" = "yes" ; then
17576 cat >> confdefs.h <<\EOF
17577#define wxUSE_PCX 1
17578EOF
17579
17580fi
17581
17582if test "$wxUSE_PNM" = "yes" ; then
17583 cat >> confdefs.h <<\EOF
17584#define wxUSE_PNM 1
17585EOF
17586
17587fi
17588
17589if test "$wxUSE_XPM" = "yes" ; then
17590 cat >> confdefs.h <<\EOF
17591#define wxUSE_XPM 1
17592EOF
17593
17594fi
17595
17596
1e6feb95
VZ
17597if test "$wxUSE_CHOICEDLG" = "yes"; then
17598 cat >> confdefs.h <<\EOF
17599#define wxUSE_CHOICEDLG 1
17600EOF
17601
17602fi
17603
17604if test "$wxUSE_COLOURDLG" = "yes"; then
17605 cat >> confdefs.h <<\EOF
17606#define wxUSE_COLOURDLG 1
17607EOF
17608
17609fi
17610
17611if test "$wxUSE_FILEDLG" = "yes"; then
17612 cat >> confdefs.h <<\EOF
17613#define wxUSE_FILEDLG 1
17614EOF
17615
17616fi
17617
17618if test "$wxUSE_FONTDLG" = "yes"; then
17619 cat >> confdefs.h <<\EOF
17620#define wxUSE_FONTDLG 1
17621EOF
17622
17623fi
17624
17625if test "$wxUSE_DIRDLG" = "yes"; then
17626 if test "$wxUSE_CONSTRAINTS" != "yes"; then
17627 echo "configure: warning: wxDirDialog requires constraints so it won't be compiled without them" 1>&2
17628 else
17629 if test "$wxUSE_TREECTRL" != "yes"; then
17630 echo "configure: warning: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" 1>&2
17631 else
17632 cat >> confdefs.h <<\EOF
17633#define wxUSE_DIRDLG 1
17634EOF
17635
17636 fi
17637 fi
17638fi
17639
17640if test "$wxUSE_MSGDLG" = "yes"; then
17641 cat >> confdefs.h <<\EOF
17642#define wxUSE_MSGDLG 1
17643EOF
17644
17645fi
17646
17647if test "$wxUSE_NUMBERDLG" = "yes"; then
17648 cat >> confdefs.h <<\EOF
17649#define wxUSE_NUMBERDLG 1
17650EOF
17651
17652fi
17653
17654if test "$wxUSE_PROGRESSDLG" = "yes"; then
17655 if test "$wxUSE_CONSTRAINTS" != "yes"; then
17656 echo "configure: warning: wxProgressDialog requires constraints so it won't be compiled without them" 1>&2
17657 else
17658 cat >> confdefs.h <<\EOF
17659#define wxUSE_PROGRESSDLG 1
17660EOF
17661
17662 fi
17663fi
17664
17665if test "$wxUSE_STARTUP_TIPS" = "yes"; then
17666 if test "$wxUSE_CONSTRAINTS" != "yes"; then
17667 echo "configure: warning: Startup tips requires constraints and won't be compiled without them" 1>&2
17668 else
17669 cat >> confdefs.h <<\EOF
17670#define wxUSE_STARTUP_TIPS 1
17671EOF
17672
17673 fi
17674fi
17675
17676if test "$wxUSE_TEXTDLG" = "yes"; then
17677 cat >> confdefs.h <<\EOF
17678#define wxUSE_TEXTDLG 1
17679EOF
17680
17681fi
17682
b1f5d087
VZ
17683if test "$wxUSE_WIZARDDLG" = "yes"; then
17684 cat >> confdefs.h <<\EOF
17685#define wxUSE_WIZARDDLG 1
17686EOF
17687
17688 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
17689fi
17690
1e6feb95 17691
698dcdb6
VZ
17692if test "$cross_compiling" = "yes"; then
17693 OSINFO="\"$host\""
17694else
17695 OSINFO=`uname -s -r -m`
17696 OSINFO="\"$OSINFO\""
17697fi
17698
17699cat >> confdefs.h <<EOF
17700#define WXWIN_OS_DESCRIPTION $OSINFO
17701EOF
17702
17703
17704
17705GUILIBS="$GUI_TK_LIBRARY $TOOLKIT_LINK"
17706OPENGL_LIBS="$OPENGL_LINK"
17707
17708EXTRA_LIBS="$LIBS $POSIX4_LINK $INET_LINK $WCHAR_LINK $THREADS_LINK $DMALLOC_LINK $DL_LINK $ZLIB_LINK -lm"
f11bdd03 17709if test "$wxUSE_MAC" = 1 ; then
698dcdb6
VZ
17710 EXTRA_LIBS="$EXTRA_LIBS -framework Carbon -framework System"
17711fi
17712if test "$wxUSE_GUI" = "yes"; then
17713 EXTRA_LIBS="$GUILIBS $PNG_LINK $JPEG_LINK $TIFF_LINK $FREETYPE_LINK $EXTRA_LIBS"
17714fi
17715
17716LD_LIBS="\${top_builddir}/lib/${WX_LIBRARY_NAME_STATIC} $EXTRA_LIBS"
17717
3e44f09d
VZ
17718INCLUDES="-I. -I\${top_builddir}/include -I\${top_srcdir}/include \
17719$REGEX_INCLUDE $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE \
17720$FREETYPE_INCLUDE $TOOLKIT_INCLUDE"
698dcdb6
VZ
17721
17722if test "$wxUSE_GTK" = 1; then
17723 WXCONFIG_INCLUDE=""
17724else
17725 WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
17726fi
17727
17728if test "$GXX" = yes ; then
17729 CXXWARNINGS="-Wall"
17730 fi
17731EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE $INCLUDES"
17732
17733CFLAGS=`echo $CFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'`
17734CXXFLAGS=`echo $CXXFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \+/ /g'`
17735
17736LDFLAGS="$LDFLAGS $PROFILE"
17737
17738if test "$wxUSE_GUI" = "yes"; then
17739
24fd6d87 17740 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS controls dialogs \
1e6feb95
VZ
17741 drawing dynamic event font fractal image \
17742 minimal richedit widgets"
17743
17744 if test "$wxUSE_UNIVERSAL" = "yes" ; then
17745 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS univ"
17746 fi
698dcdb6
VZ
17747
17748 CPPFLAGS="$CPPFLAGS \$(EXTRADEFS) \$(APPEXTRADEFS)"
17749else
17750 SAMPLES_SUBDIRS=""
17751fi
17752
17753SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
17754
17755
17756
17757
17758
17759
17760
17761
17762
17763
17764
17765
17766
17767
17768
17769
17770
17771
17772
17773
17774
17775
17776
17777
17778
17779
17780
17781
17782
17783
17784
17785
17786
17787
17788
17789
17790
17791
17792
17793
17794
17795
17796
17797
17798
17799
17800
17801
17802
17803
17804
17805
17806
17807
17808
17809
17810
17811
17812
17813
17814
17815
17816
17817
17818
17819
17820
32832908
VZ
17821
17822
17823
17824
17825
17826
17827
2224580a 17828
dad6c0ea 17829
f6bcfd97
BP
17830
17831
17832
2f51a9ec
GD
17833
17834
17835
17836
17837
17838
f6bcfd97 17839
dad6c0ea 17840
caa2c79b 17841
3711412e 17842
1e6feb95
VZ
17843
17844
0f3f1cbc 17845
10f2d63a
VZ
17846
17847
698dcdb6 17848echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
f11bdd03 17849echo "configure:17850: checking whether ${MAKE-make} sets \${MAKE}" >&5
698dcdb6
VZ
17850set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
17851if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
17852 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 17853else
698dcdb6 17854 cat > conftestmake <<\EOF
10f2d63a
VZ
17855all:
17856 @echo 'ac_maketemp="${MAKE}"'
17857EOF
17858# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
698dcdb6 17859eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
10f2d63a
VZ
17860if test -n "$ac_maketemp"; then
17861 eval ac_cv_prog_make_${ac_make}_set=yes
17862else
17863 eval ac_cv_prog_make_${ac_make}_set=no
17864fi
698dcdb6 17865rm -f conftestmake
10f2d63a
VZ
17866fi
17867if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
698dcdb6 17868 echo "$ac_t""yes" 1>&6
10f2d63a
VZ
17869 SET_MAKE=
17870else
698dcdb6 17871 echo "$ac_t""no" 1>&6
10f2d63a
VZ
17872 SET_MAKE="MAKE=${MAKE-make}"
17873fi
17874
698dcdb6 17875
00cf1208
RR
17876if test -d include; then
17877 if test -d include/wx; then
1e6feb95
VZ
17878 if test -d include/wx/${SETUPH_DIR}; then
17879 if test -f include/wx/${SETUPH_DIR}/setup.h; then
17880 mv -f include/wx/${SETUPH_DIR}/setup.h setup.h
00cf1208
RR
17881 fi
17882 fi
17883 fi
17884fi
665bbe97 17885
698dcdb6 17886
10f2d63a 17887
2224580a 17888if test "$wxUSE_GUI" = "yes"; then
ec90f5e5 17889 wx_cv_path_samplesubdirs=$SAMPLES_SUBDIRS
e8482f24
GL
17890 wx_cv_path_ifs=$PATH_IFS
17891 wx_cv_program_ext=$PROGRAM_EXT
17892 wx_cv_target_library=$WX_TARGET_LIBRARY
3711412e 17893 wx_cv_target_libtype=$WX_TARGET_LIBRARY_TYPE
93a20a27
VS
17894 export wx_cv_path_samplesubdirs wx_cv_path_ifs wx_cv_program_ext \
17895 wx_cv_target_library wx_cv_target_libtype
698dcdb6 17896 subdirs="demos samples utils contrib"
2224580a
VZ
17897
17898fi
10f2d63a 17899
698dcdb6
VZ
17900trap '' 1 2 15
17901cat > confcache <<\EOF
10f2d63a
VZ
17902# This file is a shell script that caches the results of configure
17903# tests run on this system so they can be shared between configure
698dcdb6
VZ
17904# scripts and configure runs. It is not useful on other systems.
17905# If it contains results you don't want to keep, you may remove or edit it.
10f2d63a 17906#
698dcdb6
VZ
17907# By default, configure uses ./config.cache as the cache file,
17908# creating it if it does not exist already. You can give configure
17909# the --cache-file=FILE option to use a different cache file; that is
17910# what configure does when it calls configure scripts in
17911# subdirectories, so they share the cache.
17912# Giving --cache-file=/dev/null disables caching, for debugging configure.
17913# config.status only pays attention to the cache file if you give it the
17914# --recheck option to rerun configure.
10f2d63a 17915#
698dcdb6 17916EOF
10f2d63a
VZ
17917# The following way of writing the cache mishandles newlines in values,
17918# but we know of no workaround that is simple, portable, and efficient.
17919# So, don't put newlines in cache variables' values.
17920# Ultrix sh set writes to stderr and can't be redirected directly,
17921# and sets the high bit in the cache file unless we assign to the vars.
698dcdb6
VZ
17922(set) 2>&1 |
17923 case `(ac_space=' '; set | grep ac_space) 2>&1` in
17924 *ac_space=\ *)
17925 # `set' does not quote correctly, so add quotes (double-quote substitution
17926 # turns \\\\ into \\, and sed turns \\ into \).
17927 sed -n \
17928 -e "s/'/'\\\\''/g" \
17929 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
17930 ;;
17931 *)
17932 # `set' quotes correctly as required by POSIX, so do not add quotes.
17933 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
17934 ;;
17935 esac >> confcache
17936if cmp -s $cache_file confcache; then
17937 :
17938else
10f2d63a 17939 if test -w $cache_file; then
698dcdb6
VZ
17940 echo "updating cache $cache_file"
17941 cat confcache > $cache_file
10f2d63a
VZ
17942 else
17943 echo "not updating unwritable cache $cache_file"
17944 fi
17945fi
17946rm -f confcache
17947
698dcdb6
VZ
17948trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
17949
10f2d63a
VZ
17950test "x$prefix" = xNONE && prefix=$ac_default_prefix
17951# Let make expand exec_prefix.
17952test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17953
698dcdb6
VZ
17954# Any assignment to VPATH causes Sun make to only execute
17955# the first set of double-colon rules, so remove it if not needed.
17956# If there is a colon in the path, we need to keep it.
10f2d63a 17957if test "x$srcdir" = x.; then
698dcdb6 17958 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
10f2d63a
VZ
17959fi
17960
698dcdb6
VZ
17961trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
17962
10f2d63a
VZ
17963DEFS=-DHAVE_CONFIG_H
17964
698dcdb6 17965# Without the "./", some shells look in PATH for config.status.
10f2d63a 17966: ${CONFIG_STATUS=./config.status}
698dcdb6
VZ
17967
17968echo creating $CONFIG_STATUS
17969rm -f $CONFIG_STATUS
17970cat > $CONFIG_STATUS <<EOF
17971#! /bin/sh
10f2d63a
VZ
17972# Generated automatically by configure.
17973# Run this file to recreate the current configuration.
698dcdb6
VZ
17974# This directory was configured as follows,
17975# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17976#
17977# $0 $ac_configure_args
17978#
10f2d63a 17979# Compiler output produced by configure, useful for debugging
698dcdb6 17980# configure, is in ./config.log if it exists.
1e487827 17981
698dcdb6
VZ
17982ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
17983for ac_option
10f2d63a 17984do
698dcdb6 17985 case "\$ac_option" in
10f2d63a 17986 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
698dcdb6
VZ
17987 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
17988 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
17989 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
17990 echo "$CONFIG_STATUS generated by autoconf version 2.13"
17991 exit 0 ;;
17992 -help | --help | --hel | --he | --h)
17993 echo "\$ac_cs_usage"; exit 0 ;;
17994 *) echo "\$ac_cs_usage"; exit 1 ;;
10f2d63a
VZ
17995 esac
17996done
17997
698dcdb6
VZ
17998ac_given_srcdir=$srcdir
17999ac_given_INSTALL="$INSTALL"
703e0a69 18000
698dcdb6
VZ
18001trap 'rm -fr `echo "
18002 wx-config
18003 src/make.env
18004 src/makeprog.env
18005 src/makelib.env
18006 Makefile
18007 setup.h:setup.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1e487827 18008EOF
698dcdb6 18009cat >> $CONFIG_STATUS <<EOF
1e487827 18010
698dcdb6
VZ
18011# Protect against being on the right side of a sed subst in config.status.
18012sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
18013 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
18014$ac_vpsub
18015$extrasub
18016s%@SHELL@%$SHELL%g
18017s%@CFLAGS@%$CFLAGS%g
18018s%@CPPFLAGS@%$CPPFLAGS%g
18019s%@CXXFLAGS@%$CXXFLAGS%g
18020s%@FFLAGS@%$FFLAGS%g
18021s%@DEFS@%$DEFS%g
18022s%@LDFLAGS@%$LDFLAGS%g
18023s%@LIBS@%$LIBS%g
18024s%@exec_prefix@%$exec_prefix%g
18025s%@prefix@%$prefix%g
18026s%@program_transform_name@%$program_transform_name%g
18027s%@bindir@%$bindir%g
18028s%@sbindir@%$sbindir%g
18029s%@libexecdir@%$libexecdir%g
18030s%@datadir@%$datadir%g
18031s%@sysconfdir@%$sysconfdir%g
18032s%@sharedstatedir@%$sharedstatedir%g
18033s%@localstatedir@%$localstatedir%g
18034s%@libdir@%$libdir%g
18035s%@includedir@%$includedir%g
18036s%@oldincludedir@%$oldincludedir%g
18037s%@infodir@%$infodir%g
18038s%@mandir@%$mandir%g
18039s%@host@%$host%g
18040s%@host_alias@%$host_alias%g
18041s%@host_cpu@%$host_cpu%g
18042s%@host_vendor@%$host_vendor%g
18043s%@host_os@%$host_os%g
18044s%@target@%$target%g
18045s%@target_alias@%$target_alias%g
18046s%@target_cpu@%$target_cpu%g
18047s%@target_vendor@%$target_vendor%g
18048s%@target_os@%$target_os%g
18049s%@build@%$build%g
18050s%@build_alias@%$build_alias%g
18051s%@build_cpu@%$build_cpu%g
18052s%@build_vendor@%$build_vendor%g
18053s%@build_os@%$build_os%g
18054s%@CC@%$CC%g
18055s%@CPP@%$CPP%g
18056s%@CXX@%$CXX%g
18057s%@CXXCPP@%$CXXCPP%g
18058s%@RANLIB@%$RANLIB%g
18059s%@AR@%$AR%g
18060s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
18061s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
18062s%@INSTALL_DATA@%$INSTALL_DATA%g
18063s%@STRIP@%$STRIP%g
18064s%@YACC@%$YACC%g
18065s%@LEX@%$LEX%g
18066s%@LEXLIB@%$LEXLIB%g
18067s%@LN_S@%$LN_S%g
18068s%@GTK_CONFIG_2_0@%$GTK_CONFIG_2_0%g
698dcdb6
VZ
18069s%@GTK_CFLAGS@%$GTK_CFLAGS%g
18070s%@GTK_LIBS@%$GTK_LIBS%g
8168de4c 18071s%@GTK_CONFIG@%$GTK_CONFIG%g
698dcdb6
VZ
18072s%@X_CFLAGS@%$X_CFLAGS%g
18073s%@X_PRE_LIBS@%$X_PRE_LIBS%g
18074s%@X_LIBS@%$X_LIBS%g
18075s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
18076s%@REZ@%$REZ%g
18077s%@DEREZ@%$DEREZ%g
18078s%@LEX_STEM@%$LEX_STEM%g
18079s%@PATH_IFS@%$PATH_IFS%g
18080s%@WX_MAJOR_VERSION_NUMBER@%$WX_MAJOR_VERSION_NUMBER%g
18081s%@WX_MINOR_VERSION_NUMBER@%$WX_MINOR_VERSION_NUMBER%g
18082s%@WX_RELEASE_NUMBER@%$WX_RELEASE_NUMBER%g
18083s%@WX_LIBRARY_NAME@%$WX_LIBRARY_NAME%g
18084s%@WX_LIBRARY_NAME_STATIC@%$WX_LIBRARY_NAME_STATIC%g
18085s%@WX_LIBRARY_NAME_SHARED@%$WX_LIBRARY_NAME_SHARED%g
18086s%@WX_LIBRARY@%$WX_LIBRARY%g
18087s%@WX_TARGET_LIBRARY@%$WX_TARGET_LIBRARY%g
18088s%@WX_LIBRARY_LINK1@%$WX_LIBRARY_LINK1%g
18089s%@WX_LIBRARY_LINK2@%$WX_LIBRARY_LINK2%g
18090s%@WX_LIBRARY_LINK3@%$WX_LIBRARY_LINK3%g
18091s%@PROGRAM_EXT@%$PROGRAM_EXT%g
18092s%@WX_LIBRARY_NAME_GL@%$WX_LIBRARY_NAME_GL%g
18093s%@WX_LIBRARY_NAME_STATIC_GL@%$WX_LIBRARY_NAME_STATIC_GL%g
18094s%@WX_LIBRARY_NAME_SHARED_GL@%$WX_LIBRARY_NAME_SHARED_GL%g
18095s%@WX_LIBRARY_GL@%$WX_LIBRARY_GL%g
18096s%@WX_TARGET_LIBRARY_GL@%$WX_TARGET_LIBRARY_GL%g
18097s%@WX_LIBRARY_LINK1_GL@%$WX_LIBRARY_LINK1_GL%g
18098s%@WX_LIBRARY_LINK2_GL@%$WX_LIBRARY_LINK2_GL%g
18099s%@WX_LIBRARY_LINK3_GL@%$WX_LIBRARY_LINK3_GL%g
18100s%@WX_ALL@%$WX_ALL%g
18101s%@WX_ALL_INSTALLED@%$WX_ALL_INSTALLED%g
18102s%@SHARED_LD@%$SHARED_LD%g
18103s%@PIC_FLAG@%$PIC_FLAG%g
18104s%@DEP_INFO_FLAGS@%$DEP_INFO_FLAGS%g
18105s%@CODE_GEN_FLAGS@%$CODE_GEN_FLAGS%g
18106s%@CODE_GEN_FLAGS_CXX@%$CODE_GEN_FLAGS_CXX%g
18107s%@BURNT_LIBRARY_NAME@%$BURNT_LIBRARY_NAME%g
18108s%@BURNT_LIBRARY_NAME_GL@%$BURNT_LIBRARY_NAME_GL%g
18109s%@WX_TARGET_LIBRARY_SONAME@%$WX_TARGET_LIBRARY_SONAME%g
18110s%@WX_TARGET_LIBRARY_TYPE@%$WX_TARGET_LIBRARY_TYPE%g
18111s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g
18112s%@USE_GUI@%$USE_GUI%g
18113s%@AFMINSTALL@%$AFMINSTALL%g
1e6feb95 18114s%@SETUPH_DIR@%$SETUPH_DIR%g
698dcdb6
VZ
18115s%@TOOLKIT@%$TOOLKIT%g
18116s%@TOOLKIT_DEF@%$TOOLKIT_DEF%g
18117s%@TOOLKIT_DIR@%$TOOLKIT_DIR%g
18118s%@TOOLKIT_NAME@%$TOOLKIT_NAME%g
18119s%@TOOLKIT_INCLUDE@%$TOOLKIT_INCLUDE%g
1e6feb95 18120s%@TOOLKIT_VPATH@%$TOOLKIT_VPATH%g
698dcdb6
VZ
18121s%@WXCONFIG_INCLUDE@%$WXCONFIG_INCLUDE%g
18122s%@ALL_OBJECTS@%$ALL_OBJECTS%g
18123s%@ALL_DEPFILES@%$ALL_DEPFILES%g
18124s%@GUIDIST@%$GUIDIST%g
18125s%@PORT_FILES@%$PORT_FILES%g
18126s%@DISTDIR@%$DISTDIR%g
18127s%@RPM_SPEC@%$RPM_SPEC%g
18128s%@RPM_FILES@%$RPM_FILES%g
18129s%@SRC_SUBDIRS@%$SRC_SUBDIRS%g
18130s%@INCLUDE_SUBDIRS@%$INCLUDE_SUBDIRS%g
18131s%@UTILS_SUBDIRS@%$UTILS_SUBDIRS%g
18132s%@DOCS_SUBDIRS@%$DOCS_SUBDIRS%g
18133s%@SAMPLES_SUBDIRS@%$SAMPLES_SUBDIRS%g
18134s%@USER_SUBDIRS@%$USER_SUBDIRS%g
18135s%@EXTRA_LIBS@%$EXTRA_LIBS%g
18136s%@OPENGL_LIBS@%$OPENGL_LIBS%g
18137s%@EXTRADEFS@%$EXTRADEFS%g
18138s%@LD_LIBS@%$LD_LIBS%g
18139s%@RCINPUTSWITCH@%$RCINPUTSWITCH%g
18140s%@RCOUTPUTSWITCH@%$RCOUTPUTSWITCH%g
18141s%@RESPROGRAM@%$RESPROGRAM%g
18142s%@RESCOMP@%$RESCOMP%g
18143s%@RESFLAGS@%$RESFLAGS%g
18144s%@REZFLAGS@%$REZFLAGS%g
18145s%@DEREZFLAGS@%$DEREZFLAGS%g
18146s%@LIBWXMACRES@%$LIBWXMACRES%g
18147s%@LIBWXMACRESCOMP@%$LIBWXMACRESCOMP%g
18148s%@DLLTOOL@%$DLLTOOL%g
18149s%@AS@%$AS%g
18150s%@NM@%$NM%g
18151s%@LD@%$LD%g
18152s%@MAKEINFO@%$MAKEINFO%g
18153s%@SET_MAKE@%$SET_MAKE%g
18154s%@subdirs@%$subdirs%g
1e487827 18155
1e487827 18156CEOF
1e487827
VS
18157EOF
18158
698dcdb6
VZ
18159cat >> $CONFIG_STATUS <<\EOF
18160
18161# Split the substitutions into bite-sized pieces for seds with
18162# small command number limits, like on Digital OSF/1 and HP-UX.
18163ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
18164ac_file=1 # Number of current file.
18165ac_beg=1 # First line for current file.
18166ac_end=$ac_max_sed_cmds # Line after last line for current file.
18167ac_more_lines=:
18168ac_sed_cmds=""
18169while $ac_more_lines; do
18170 if test $ac_beg -gt 1; then
18171 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
18172 else
18173 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
18174 fi
18175 if test ! -s conftest.s$ac_file; then
18176 ac_more_lines=false
18177 rm -f conftest.s$ac_file
18178 else
18179 if test -z "$ac_sed_cmds"; then
18180 ac_sed_cmds="sed -f conftest.s$ac_file"
10f2d63a 18181 else
698dcdb6 18182 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
10f2d63a 18183 fi
698dcdb6
VZ
18184 ac_file=`expr $ac_file + 1`
18185 ac_beg=$ac_end
18186 ac_end=`expr $ac_end + $ac_max_sed_cmds`
10f2d63a 18187 fi
698dcdb6
VZ
18188done
18189if test -z "$ac_sed_cmds"; then
18190 ac_sed_cmds=cat
18191fi
18192EOF
10f2d63a 18193
698dcdb6
VZ
18194cat >> $CONFIG_STATUS <<EOF
18195
18196CONFIG_FILES=\${CONFIG_FILES-"wx-config
18197 src/make.env
18198 src/makeprog.env
18199 src/makelib.env
18200 Makefile
18201 "}
10f2d63a 18202EOF
698dcdb6
VZ
18203cat >> $CONFIG_STATUS <<\EOF
18204for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
10f2d63a 18205 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
698dcdb6
VZ
18206 case "$ac_file" in
18207 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
18208 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
18209 *) ac_file_in="${ac_file}.in" ;;
10f2d63a
VZ
18210 esac
18211
698dcdb6 18212 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
1e487827 18213
698dcdb6
VZ
18214 # Remove last slash and all that follows it. Not all systems have dirname.
18215 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
18216 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
18217 # The file is in a subdirectory.
18218 test ! -d "$ac_dir" && mkdir "$ac_dir"
18219 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
10f2d63a 18220 # A "../" for each directory in $ac_dir_suffix.
698dcdb6 18221 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
10f2d63a
VZ
18222 else
18223 ac_dir_suffix= ac_dots=
18224 fi
18225
698dcdb6
VZ
18226 case "$ac_given_srcdir" in
18227 .) srcdir=.
18228 if test -z "$ac_dots"; then top_srcdir=.
18229 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
18230 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
10f2d63a 18231 *) # Relative path.
698dcdb6
VZ
18232 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
18233 top_srcdir="$ac_dots$ac_given_srcdir" ;;
10f2d63a
VZ
18234 esac
18235
698dcdb6
VZ
18236 case "$ac_given_INSTALL" in
18237 [/$]*) INSTALL="$ac_given_INSTALL" ;;
18238 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
10f2d63a
VZ
18239 esac
18240
698dcdb6
VZ
18241 echo creating "$ac_file"
18242 rm -f "$ac_file"
18243 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
18244 case "$ac_file" in
18245 *Makefile*) ac_comsub="1i\\
18246# $configure_input" ;;
18247 *) ac_comsub= ;;
18248 esac
10f2d63a 18249
698dcdb6
VZ
18250 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
18251 sed -e "$ac_comsub
18252s%@configure_input@%$configure_input%g
18253s%@srcdir@%$srcdir%g
18254s%@top_srcdir@%$top_srcdir%g
18255s%@INSTALL@%$INSTALL%g
18256" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
18257fi; done
18258rm -f conftest.s*
10f2d63a
VZ
18259
18260# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
18261# NAME is the cpp macro being defined and VALUE is the value it is being given.
18262#
18263# ac_d sets the value in "#define NAME VALUE" lines.
698dcdb6
VZ
18264ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
18265ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
18266ac_dC='\3'
18267ac_dD='%g'
18268# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
18269ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
18270ac_uB='\([ ]\)%\1#\2define\3'
10f2d63a 18271ac_uC=' '
698dcdb6
VZ
18272ac_uD='\4%g'
18273# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
18274ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
18275ac_eB='$%\1#\2define\3'
18276ac_eC=' '
18277ac_eD='%g'
10f2d63a 18278
698dcdb6
VZ
18279if test "${CONFIG_HEADERS+set}" != set; then
18280EOF
18281cat >> $CONFIG_STATUS <<EOF
18282 CONFIG_HEADERS="setup.h:setup.h.in"
18283EOF
18284cat >> $CONFIG_STATUS <<\EOF
18285fi
18286for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
10f2d63a 18287 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
698dcdb6
VZ
18288 case "$ac_file" in
18289 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
18290 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
18291 *) ac_file_in="${ac_file}.in" ;;
10f2d63a
VZ
18292 esac
18293
698dcdb6
VZ
18294 echo creating $ac_file
18295
18296 rm -f conftest.frag conftest.in conftest.out
18297 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
18298 cat $ac_file_inputs > conftest.in
18299
18300EOF
18301
18302# Transform confdefs.h into a sed script conftest.vals that substitutes
18303# the proper values into config.h.in to produce config.h. And first:
18304# Protect against being on the right side of a sed subst in config.status.
18305# Protect against being in an unquoted here document in config.status.
18306rm -f conftest.vals
18307cat > conftest.hdr <<\EOF
18308s/[\\&%]/\\&/g
18309s%[\\$`]%\\&%g
18310s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
18311s%ac_d%ac_u%gp
18312s%ac_u%ac_e%gp
18313EOF
18314sed -n -f conftest.hdr confdefs.h > conftest.vals
18315rm -f conftest.hdr
10f2d63a
VZ
18316
18317# This sed command replaces #undef with comments. This is necessary, for
18318# example, in the case of _POSIX_SOURCE, which is predefined and required
18319# on some systems where configure will not decide to define it.
698dcdb6
VZ
18320cat >> conftest.vals <<\EOF
18321s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
10f2d63a
VZ
18322EOF
18323
698dcdb6
VZ
18324# Break up conftest.vals because some shells have a limit on
18325# the size of here documents, and old seds have small limits too.
10f2d63a
VZ
18326
18327rm -f conftest.tail
698dcdb6 18328while :
10f2d63a 18329do
698dcdb6
VZ
18330 ac_lines=`grep -c . conftest.vals`
18331 # grep -c gives empty output for an empty file on some AIX systems.
18332 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
18333 # Write a limited-size here document to conftest.frag.
18334 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
18335 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
10f2d63a 18336 echo 'CEOF
698dcdb6
VZ
18337 sed -f conftest.frag conftest.in > conftest.out
18338 rm -f conftest.in
18339 mv conftest.out conftest.in
18340' >> $CONFIG_STATUS
18341 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
18342 rm -f conftest.vals
18343 mv conftest.tail conftest.vals
10f2d63a 18344done
698dcdb6
VZ
18345rm -f conftest.vals
18346
18347cat >> $CONFIG_STATUS <<\EOF
18348 rm -f conftest.frag conftest.h
18349 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
18350 cat conftest.in >> conftest.h
18351 rm -f conftest.in
18352 if cmp -s $ac_file conftest.h 2>/dev/null; then
18353 echo "$ac_file is unchanged"
18354 rm -f conftest.h
10f2d63a 18355 else
698dcdb6
VZ
18356 # Remove last slash and all that follows it. Not all systems have dirname.
18357 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
10f2d63a 18358 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
698dcdb6
VZ
18359 # The file is in a subdirectory.
18360 test ! -d "$ac_dir" && mkdir "$ac_dir"
10f2d63a 18361 fi
698dcdb6
VZ
18362 rm -f $ac_file
18363 mv conftest.h $ac_file
10f2d63a 18364 fi
698dcdb6
VZ
18365fi; done
18366
10f2d63a 18367EOF
698dcdb6 18368cat >> $CONFIG_STATUS <<EOF
10f2d63a 18369
1e6feb95 18370 SETUPH_DIR="${SETUPH_DIR}"
698dcdb6
VZ
18371 TOOLKIT_NAME="${TOOLKIT_NAME}"
18372 LN_S="${LN_S}"
18373
18374
18375EOF
18376cat >> $CONFIG_STATUS <<\EOF
10f2d63a 18377
6ef41520 18378 if test ! -f wx${TOOLKIT_NAME}-config; then
991a5759
VZ
18379 chmod +x wx-config
18380 mv wx-config wx${TOOLKIT_NAME}-config
18381 ${LN_S} wx${TOOLKIT_NAME}-config wx-config
18382 fi
665bbe97 18383
698dcdb6 18384
00cf1208
RR
18385 if test ! -d lib; then
18386 mkdir lib
18387 fi
18388 if test ! -d lib/wx; then
18389 mkdir lib/wx
18390 fi
18391 if test ! -d lib/wx/include; then
18392 mkdir lib/wx/include
18393 fi
18394 if test ! -d lib/wx/include/wx; then
18395 mkdir lib/wx/include/wx
18396 fi
f6bcfd97
BP
18397 if test ! -d lib/wx/include/wx/${TOOLKIT_NAME}; then
18398 mkdir lib/wx/include/wx/${TOOLKIT_NAME}
00cf1208
RR
18399 fi
18400 if test -f setup.h; then
066b00aa 18401 cp -fp setup.h lib/wx/include/wx/${TOOLKIT_NAME}/setup.h
00cf1208 18402 fi
07eb77a6 18403
698dcdb6 18404
10f2d63a
VZ
18405 if test ! -d include; then
18406 mkdir include
18407 fi
18408 if test ! -d include/wx; then
18409 mkdir include/wx
18410 fi
1e6feb95
VZ
18411 if test ! -d include/wx/${SETUPH_DIR}; then
18412 mkdir include/wx/${SETUPH_DIR}
10f2d63a 18413 fi
afc31813 18414 if test -f setup.h; then
1e6feb95 18415 cp -fp setup.h include/wx/${SETUPH_DIR}/setup.h
afc31813 18416 fi
665bbe97 18417
698dcdb6
VZ
18418
18419exit 0
10f2d63a
VZ
18420EOF
18421chmod +x $CONFIG_STATUS
698dcdb6
VZ
18422rm -fr confdefs* $ac_clean_files
18423test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
10f2d63a 18424
2224580a
VZ
18425if test "$no_recursion" != yes; then
18426
18427 # Remove --cache-file and --srcdir arguments so they do not pile up.
18428 ac_sub_configure_args=
18429 ac_prev=
18430 for ac_arg in $ac_configure_args; do
18431 if test -n "$ac_prev"; then
18432 ac_prev=
18433 continue
18434 fi
698dcdb6 18435 case "$ac_arg" in
2224580a
VZ
18436 -cache-file | --cache-file | --cache-fil | --cache-fi \
18437 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
18438 ac_prev=cache_file ;;
18439 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
698dcdb6 18440 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
2224580a
VZ
18441 ;;
18442 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
18443 ac_prev=srcdir ;;
18444 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
18445 ;;
18446 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
18447 esac
18448 done
18449
698dcdb6 18450 for ac_config_dir in demos samples utils contrib; do
2224580a
VZ
18451
18452 # Do not complain, so a configure script can configure whichever
18453 # parts of a large source tree are present.
698dcdb6
VZ
18454 if test ! -d $srcdir/$ac_config_dir; then
18455 continue
18456 fi
18457
18458 echo configuring in $ac_config_dir
2224580a 18459
698dcdb6 18460 case "$srcdir" in
2224580a
VZ
18461 .) ;;
18462 *)
698dcdb6
VZ
18463 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
18464 else
18465 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
18466 fi
18467 ;;
2224580a
VZ
18468 esac
18469
18470 ac_popdir=`pwd`
698dcdb6 18471 cd $ac_config_dir
2224580a 18472
698dcdb6
VZ
18473 # A "../" for each directory in /$ac_config_dir.
18474 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
2224580a 18475
698dcdb6 18476 case "$srcdir" in
2224580a
VZ
18477 .) # No --srcdir option. We are building in place.
18478 ac_sub_srcdir=$srcdir ;;
698dcdb6
VZ
18479 /*) # Absolute path.
18480 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
2224580a 18481 *) # Relative path.
698dcdb6 18482 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
2224580a
VZ
18483 esac
18484
18485 # Check for guested configure; otherwise get Cygnus style configure.
698dcdb6
VZ
18486 if test -f $ac_sub_srcdir/configure; then
18487 ac_sub_configure=$ac_sub_srcdir/configure
2224580a
VZ
18488 elif test -f $ac_sub_srcdir/configure.in; then
18489 ac_sub_configure=$ac_configure
18490 else
698dcdb6 18491 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
2224580a
VZ
18492 ac_sub_configure=
18493 fi
18494
18495 # The recursion is here.
18496 if test -n "$ac_sub_configure"; then
698dcdb6 18497
2224580a 18498 # Make the cache file name correct relative to the subdirectory.
698dcdb6
VZ
18499 case "$cache_file" in
18500 /*) ac_sub_cache_file=$cache_file ;;
2224580a 18501 *) # Relative path.
698dcdb6 18502 ac_sub_cache_file="$ac_dots$cache_file" ;;
2224580a 18503 esac
698dcdb6
VZ
18504 case "$ac_given_INSTALL" in
18505 [/$]*) INSTALL="$ac_given_INSTALL" ;;
18506 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
18507 esac
2224580a 18508
698dcdb6 18509 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
2224580a 18510 # The eval makes quoting arguments work.
698dcdb6
VZ
18511 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
18512 then :
18513 else
18514 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
18515 fi
2224580a
VZ
18516 fi
18517
18518 cd $ac_popdir
18519 done
18520fi
18521
698dcdb6 18522