]> git.saurik.com Git - wxWidgets.git/blame - configure
new VC++ project files
[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 76ac_help="$ac_help
b3e8d00a 77 --with-mgl use SciTech 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
3a922bb4 101 --enable-soname set the DT_SONAME field in ELF shared libraries"
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
b3e8d00a 121 --enable-no_exceptions create code without C++ exceptions handling"
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 126ac_help="$ac_help
b3e8d00a 127 --enable-compat20 enable wxWindows 2.0 compatibility"
54276ccf 128ac_help="$ac_help
b3e8d00a 129 --enable-compat22 enable wxWindows 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-wxprintfv use wxWindows implementation of vprintf()"
698dcdb6 178ac_help="$ac_help
8168de4c 179 --enable-std_iostreams use standard C++ stream classes"
698dcdb6 180ac_help="$ac_help
8168de4c 181 --enable-filesystem use virtual file systems classes"
698dcdb6 182ac_help="$ac_help
8168de4c 183 --enable-fs_inet use virtual HTTP/FTP filesystems"
698dcdb6 184ac_help="$ac_help
8168de4c 185 --enable-fs_zip use virtual ZIP filesystems"
698dcdb6 186ac_help="$ac_help
8168de4c 187 --enable-zipstream use wxZipInputStream"
698dcdb6 188ac_help="$ac_help
8168de4c 189 --enable-catch_segvs catch signals and pass them to wxApp::OnFatalException"
698dcdb6 190ac_help="$ac_help
8168de4c 191 --enable-snglinst use wxSingleInstanceChecker class"
698dcdb6 192ac_help="$ac_help
8168de4c 193 --enable-mimetypes use wxMimeTypesManager"
3e44f09d 194ac_help="$ac_help
b3e8d00a 195 --enable-sysoptions use wxSystemOptions"
1e6feb95 196ac_help="$ac_help
8168de4c 197 --enable-threads use threads"
698dcdb6 198ac_help="$ac_help
8168de4c 199 --enable-serial use class serialization"
698dcdb6 200ac_help="$ac_help
8168de4c 201 --enable-docview use document view architecture"
698dcdb6 202ac_help="$ac_help
3379ed37 203 --enable-help use help subsystem"
29fd3c0c
VS
204ac_help="$ac_help
205 --enable-mshtmlhelp use MS HTML Help (win32)"
3379ed37
VZ
206ac_help="$ac_help
207 --enable-html use wxHTML sub-library"
208ac_help="$ac_help
209 --enable-htmlhelp use wxHTML-based help"
698dcdb6 210ac_help="$ac_help
8168de4c 211 --enable-constraints use layout-constraints system"
698dcdb6 212ac_help="$ac_help
8168de4c 213 --enable-printarch use printing architecture"
698dcdb6 214ac_help="$ac_help
8168de4c 215 --enable-mdi use multiple document interface architecture"
698dcdb6 216ac_help="$ac_help
8168de4c 217 --enable-loggui use standard GUI logger"
1e6feb95 218ac_help="$ac_help
8168de4c 219 --enable-logwin use wxLogWindow"
1e6feb95 220ac_help="$ac_help
8168de4c 221 --enable-postscript use wxPostscriptDC device context (default for gtk+)"
698dcdb6 222ac_help="$ac_help
8168de4c 223 --enable-prologio use Prolog IO library"
698dcdb6 224ac_help="$ac_help
8168de4c 225 --enable-resources use wxWindows resources"
698dcdb6 226ac_help="$ac_help
8168de4c 227 --enable-xresources use X resources for save (default for gtk+)"
698dcdb6 228ac_help="$ac_help
8168de4c 229 --enable-clipboard use wxClipboard classes"
698dcdb6 230ac_help="$ac_help
8168de4c 231 --enable-dnd use Drag'n'Drop classes"
698dcdb6 232ac_help="$ac_help
8168de4c 233 --enable-metafile use win32 metafiles"
698dcdb6 234ac_help="$ac_help
24176f2c 235 --enable-treelayout use wxTreeLayout classes"
698dcdb6 236ac_help="$ac_help
8168de4c 237 --enable-controls use all usual controls"
698dcdb6 238ac_help="$ac_help
8168de4c 239 --enable-accel use accelerators"
698dcdb6 240ac_help="$ac_help
8168de4c 241 --enable-button use wxButton class"
698dcdb6 242ac_help="$ac_help
8168de4c 243 --enable-bmpbutton use wxBitmapButton class"
698dcdb6 244ac_help="$ac_help
8168de4c 245 --enable-calendar use wxCalendarCtrl class"
1e6feb95 246ac_help="$ac_help
8168de4c 247 --enable-caret use wxCaret class"
1e6feb95 248ac_help="$ac_help
8168de4c 249 --enable-checkbox use wxCheckBox class"
698dcdb6 250ac_help="$ac_help
8168de4c 251 --enable-checklst use wxCheckListBox (listbox with checkboxes) class"
698dcdb6 252ac_help="$ac_help
8168de4c 253 --enable-choice use wxChoice class"
698dcdb6 254ac_help="$ac_help
8168de4c 255 --enable-combobox use wxComboBox classes"
698dcdb6 256ac_help="$ac_help
8168de4c 257 --enable-gauge use wxGauge class"
698dcdb6 258ac_help="$ac_help
8168de4c 259 --enable-grid use wxGrid class"
698dcdb6 260ac_help="$ac_help
8168de4c 261 --enable-newgrid use new wxGrid class"
698dcdb6 262ac_help="$ac_help
8168de4c 263 --enable-imaglist use wxImageList class"
698dcdb6 264ac_help="$ac_help
8168de4c 265 --enable-listbox use wxListBox class"
698dcdb6 266ac_help="$ac_help
8168de4c 267 --enable-listctrl use wxListCtrl class"
698dcdb6 268ac_help="$ac_help
8168de4c 269 --enable-notebook use wxNotebook class"
24176f2c
GD
270ac_help="$ac_help
271 --enable-propsheet use wxPropertySheet 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
b3e8d00a 315 --enable-commondlg use all common dialogs"
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"
8db37e06
VZ
322ac_help="$ac_help
323 --enable-finddlg use wxFindReplaceDialog"
1e6feb95 324ac_help="$ac_help
8168de4c 325 --enable-fontdlg use wxFontDialog"
1e6feb95 326ac_help="$ac_help
8168de4c 327 --enable-dirdlg use wxDirDialog"
698dcdb6 328ac_help="$ac_help
8168de4c 329 --enable-msgdlg use wxMessageDialog"
1e6feb95 330ac_help="$ac_help
8168de4c 331 --enable-numberdlg use wxNumberEntryDialog"
cbca9943
VZ
332ac_help="$ac_help
333 --enable-splash use wxSplashScreen"
1e6feb95 334ac_help="$ac_help
8168de4c 335 --enable-textdlg use wxTextDialog"
698dcdb6 336ac_help="$ac_help
8168de4c 337 --enable-tipdlg use startup tips"
698dcdb6 338ac_help="$ac_help
8168de4c 339 --enable-progressdlg use wxProgressDialog"
b1f5d087
VZ
340ac_help="$ac_help
341 --enable-wizarddlg use wxWizard"
698dcdb6 342ac_help="$ac_help
8168de4c 343 --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes"
1e6feb95 344ac_help="$ac_help
8168de4c 345 --enable-miniframe use wxMiniFrame class"
698dcdb6 346ac_help="$ac_help
8168de4c 347 --enable-tooltips use wxToolTip class"
698dcdb6 348ac_help="$ac_help
8168de4c 349 --enable-splines use spline drawing code"
698dcdb6 350ac_help="$ac_help
8168de4c 351 --enable-validators use wxValidator and derived classes"
698dcdb6 352ac_help="$ac_help
8168de4c 353 --enable-busyinfo use wxBusyInfo"
698dcdb6 354ac_help="$ac_help
b3e8d00a 355 --enable-joystick use wxJoystick (Linux only)"
698dcdb6 356ac_help="$ac_help
8168de4c 357 --enable-metafiles use wxMetaFile (Windows only)"
24fd6d87
VZ
358ac_help="$ac_help
359 --enable-dragimage use wxDragImage"
1e6feb95 360ac_help="$ac_help
8168de4c 361 --enable-image use wxImage class"
698dcdb6 362ac_help="$ac_help
8168de4c 363 --enable-gif use gif images (GIF file format)"
698dcdb6 364ac_help="$ac_help
8168de4c 365 --enable-pcx use pcx images (PCX file format)"
698dcdb6 366ac_help="$ac_help
8168de4c 367 --enable-pnm use pnm images (PNM file format)"
698dcdb6 368ac_help="$ac_help
8168de4c 369 --enable-xpm use xpm images (XPM file format)"
698dcdb6
VZ
370ac_help="$ac_help
371 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)"
372ac_help="$ac_help
373 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)"
374ac_help="$ac_help
375 --disable-gtktest Do not try to compile and run a test GTK program"
376ac_help="$ac_help
377 --with-x use the X Window System"
10f2d63a
VZ
378
379# Initialize some variables set by options.
380# The variables have the same names as the options, with
381# dashes changed to underlines.
698dcdb6
VZ
382build=NONE
383cache_file=./config.cache
10f2d63a 384exec_prefix=NONE
698dcdb6 385host=NONE
10f2d63a 386no_create=
698dcdb6 387nonopt=NONE
10f2d63a
VZ
388no_recursion=
389prefix=NONE
390program_prefix=NONE
391program_suffix=NONE
392program_transform_name=s,x,x,
393silent=
394site=
395srcdir=
698dcdb6 396target=NONE
10f2d63a
VZ
397verbose=
398x_includes=NONE
399x_libraries=NONE
400bindir='${exec_prefix}/bin'
401sbindir='${exec_prefix}/sbin'
402libexecdir='${exec_prefix}/libexec'
403datadir='${prefix}/share'
404sysconfdir='${prefix}/etc'
405sharedstatedir='${prefix}/com'
406localstatedir='${prefix}/var'
407libdir='${exec_prefix}/lib'
408includedir='${prefix}/include'
409oldincludedir='/usr/include'
410infodir='${prefix}/info'
411mandir='${prefix}/man'
412
698dcdb6
VZ
413# Initialize some other variables.
414subdirs=
415MFLAGS= MAKEFLAGS=
416SHELL=${CONFIG_SHELL-/bin/sh}
417# Maximum number of lines to put in a shell here document.
418ac_max_here_lines=12
10f2d63a
VZ
419
420ac_prev=
421for ac_option
422do
698dcdb6 423
10f2d63a
VZ
424 # If the previous option needs an argument, assign it.
425 if test -n "$ac_prev"; then
426 eval "$ac_prev=\$ac_option"
427 ac_prev=
428 continue
429 fi
430
698dcdb6
VZ
431 case "$ac_option" in
432 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
433 *) ac_optarg= ;;
434 esac
10f2d63a
VZ
435
436 # Accept the important Cygnus configure options, so we can diagnose typos.
437
698dcdb6 438 case "$ac_option" in
10f2d63a
VZ
439
440 -bindir | --bindir | --bindi | --bind | --bin | --bi)
441 ac_prev=bindir ;;
442 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
698dcdb6 443 bindir="$ac_optarg" ;;
10f2d63a
VZ
444
445 -build | --build | --buil | --bui | --bu)
698dcdb6 446 ac_prev=build ;;
10f2d63a 447 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
698dcdb6 448 build="$ac_optarg" ;;
10f2d63a
VZ
449
450 -cache-file | --cache-file | --cache-fil | --cache-fi \
451 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
452 ac_prev=cache_file ;;
453 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
454 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
698dcdb6 455 cache_file="$ac_optarg" ;;
10f2d63a
VZ
456
457 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
458 ac_prev=datadir ;;
459 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
460 | --da=*)
698dcdb6 461 datadir="$ac_optarg" ;;
10f2d63a
VZ
462
463 -disable-* | --disable-*)
698dcdb6 464 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
10f2d63a 465 # Reject names that are not valid shell variable names.
698dcdb6
VZ
466 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
467 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
468 fi
469 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
470 eval "enable_${ac_feature}=no" ;;
10f2d63a
VZ
471
472 -enable-* | --enable-*)
698dcdb6 473 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
10f2d63a 474 # Reject names that are not valid shell variable names.
698dcdb6
VZ
475 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
476 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
477 fi
478 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
479 case "$ac_option" in
480 *=*) ;;
10f2d63a
VZ
481 *) ac_optarg=yes ;;
482 esac
698dcdb6 483 eval "enable_${ac_feature}='$ac_optarg'" ;;
10f2d63a
VZ
484
485 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
486 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
487 | --exec | --exe | --ex)
488 ac_prev=exec_prefix ;;
489 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
490 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
491 | --exec=* | --exe=* | --ex=*)
698dcdb6 492 exec_prefix="$ac_optarg" ;;
10f2d63a
VZ
493
494 -gas | --gas | --ga | --g)
495 # Obsolete; use --with-gas.
496 with_gas=yes ;;
497
698dcdb6
VZ
498 -help | --help | --hel | --he)
499 # Omit some internal or obsolete options to make the list less imposing.
500 # This message is too long to be a string in the A/UX 3.1 sh.
501 cat << EOF
502Usage: configure [options] [host]
503Options: [defaults in brackets after descriptions]
504Configuration:
505 --cache-file=FILE cache test results in FILE
506 --help print this message
507 --no-create do not create output files
508 --quiet, --silent do not print \`checking...' messages
509 --version print the version of autoconf that created configure
510Directory and file names:
511 --prefix=PREFIX install architecture-independent files in PREFIX
512 [$ac_default_prefix]
513 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
514 [same as prefix]
515 --bindir=DIR user executables in DIR [EPREFIX/bin]
516 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
517 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
518 --datadir=DIR read-only architecture-independent data in DIR
519 [PREFIX/share]
520 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
521 --sharedstatedir=DIR modifiable architecture-independent data in DIR
522 [PREFIX/com]
523 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
524 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
525 --includedir=DIR C header files in DIR [PREFIX/include]
526 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
527 --infodir=DIR info documentation in DIR [PREFIX/info]
528 --mandir=DIR man documentation in DIR [PREFIX/man]
529 --srcdir=DIR find the sources in DIR [configure dir or ..]
530 --program-prefix=PREFIX prepend PREFIX to installed program names
531 --program-suffix=SUFFIX append SUFFIX to installed program names
532 --program-transform-name=PROGRAM
533 run sed PROGRAM on installed program names
534EOF
535 cat << EOF
536Host type:
537 --build=BUILD configure for building on BUILD [BUILD=HOST]
538 --host=HOST configure for HOST [guessed]
539 --target=TARGET configure for TARGET [TARGET=HOST]
540Features and packages:
541 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
542 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
543 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
544 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
545 --x-includes=DIR X include files are in DIR
546 --x-libraries=DIR X library files are in DIR
547EOF
548 if test -n "$ac_help"; then
549 echo "--enable and --with options recognized:$ac_help"
550 fi
551 exit 0 ;;
10f2d63a
VZ
552
553 -host | --host | --hos | --ho)
698dcdb6 554 ac_prev=host ;;
10f2d63a 555 -host=* | --host=* | --hos=* | --ho=*)
698dcdb6 556 host="$ac_optarg" ;;
10f2d63a
VZ
557
558 -includedir | --includedir | --includedi | --included | --include \
559 | --includ | --inclu | --incl | --inc)
560 ac_prev=includedir ;;
561 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
562 | --includ=* | --inclu=* | --incl=* | --inc=*)
698dcdb6 563 includedir="$ac_optarg" ;;
10f2d63a
VZ
564
565 -infodir | --infodir | --infodi | --infod | --info | --inf)
566 ac_prev=infodir ;;
567 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
698dcdb6 568 infodir="$ac_optarg" ;;
10f2d63a
VZ
569
570 -libdir | --libdir | --libdi | --libd)
571 ac_prev=libdir ;;
572 -libdir=* | --libdir=* | --libdi=* | --libd=*)
698dcdb6 573 libdir="$ac_optarg" ;;
10f2d63a
VZ
574
575 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
576 | --libexe | --libex | --libe)
577 ac_prev=libexecdir ;;
578 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
579 | --libexe=* | --libex=* | --libe=*)
698dcdb6 580 libexecdir="$ac_optarg" ;;
10f2d63a
VZ
581
582 -localstatedir | --localstatedir | --localstatedi | --localstated \
583 | --localstate | --localstat | --localsta | --localst \
584 | --locals | --local | --loca | --loc | --lo)
585 ac_prev=localstatedir ;;
586 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
587 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
588 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
698dcdb6 589 localstatedir="$ac_optarg" ;;
10f2d63a
VZ
590
591 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
592 ac_prev=mandir ;;
593 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
698dcdb6 594 mandir="$ac_optarg" ;;
10f2d63a
VZ
595
596 -nfp | --nfp | --nf)
597 # Obsolete; use --without-fp.
598 with_fp=no ;;
599
600 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
601 | --no-cr | --no-c)
602 no_create=yes ;;
603
604 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
605 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
606 no_recursion=yes ;;
607
608 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
609 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
610 | --oldin | --oldi | --old | --ol | --o)
611 ac_prev=oldincludedir ;;
612 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
613 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
614 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
698dcdb6 615 oldincludedir="$ac_optarg" ;;
10f2d63a
VZ
616
617 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
618 ac_prev=prefix ;;
619 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
698dcdb6 620 prefix="$ac_optarg" ;;
10f2d63a
VZ
621
622 -program-prefix | --program-prefix | --program-prefi | --program-pref \
623 | --program-pre | --program-pr | --program-p)
624 ac_prev=program_prefix ;;
625 -program-prefix=* | --program-prefix=* | --program-prefi=* \
626 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
698dcdb6 627 program_prefix="$ac_optarg" ;;
10f2d63a
VZ
628
629 -program-suffix | --program-suffix | --program-suffi | --program-suff \
630 | --program-suf | --program-su | --program-s)
631 ac_prev=program_suffix ;;
632 -program-suffix=* | --program-suffix=* | --program-suffi=* \
633 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
698dcdb6 634 program_suffix="$ac_optarg" ;;
10f2d63a
VZ
635
636 -program-transform-name | --program-transform-name \
637 | --program-transform-nam | --program-transform-na \
638 | --program-transform-n | --program-transform- \
639 | --program-transform | --program-transfor \
640 | --program-transfo | --program-transf \
641 | --program-trans | --program-tran \
642 | --progr-tra | --program-tr | --program-t)
643 ac_prev=program_transform_name ;;
644 -program-transform-name=* | --program-transform-name=* \
645 | --program-transform-nam=* | --program-transform-na=* \
646 | --program-transform-n=* | --program-transform-=* \
647 | --program-transform=* | --program-transfor=* \
648 | --program-transfo=* | --program-transf=* \
649 | --program-trans=* | --program-tran=* \
650 | --progr-tra=* | --program-tr=* | --program-t=*)
698dcdb6 651 program_transform_name="$ac_optarg" ;;
10f2d63a
VZ
652
653 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
654 | -silent | --silent | --silen | --sile | --sil)
655 silent=yes ;;
656
657 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
658 ac_prev=sbindir ;;
659 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
660 | --sbi=* | --sb=*)
698dcdb6 661 sbindir="$ac_optarg" ;;
10f2d63a
VZ
662
663 -sharedstatedir | --sharedstatedir | --sharedstatedi \
664 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
665 | --sharedst | --shareds | --shared | --share | --shar \
666 | --sha | --sh)
667 ac_prev=sharedstatedir ;;
668 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
669 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
670 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
671 | --sha=* | --sh=*)
698dcdb6 672 sharedstatedir="$ac_optarg" ;;
10f2d63a
VZ
673
674 -site | --site | --sit)
675 ac_prev=site ;;
676 -site=* | --site=* | --sit=*)
698dcdb6 677 site="$ac_optarg" ;;
10f2d63a
VZ
678
679 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
680 ac_prev=srcdir ;;
681 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
698dcdb6 682 srcdir="$ac_optarg" ;;
10f2d63a
VZ
683
684 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
685 | --syscon | --sysco | --sysc | --sys | --sy)
686 ac_prev=sysconfdir ;;
687 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
688 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
698dcdb6 689 sysconfdir="$ac_optarg" ;;
10f2d63a
VZ
690
691 -target | --target | --targe | --targ | --tar | --ta | --t)
698dcdb6 692 ac_prev=target ;;
10f2d63a 693 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
698dcdb6 694 target="$ac_optarg" ;;
10f2d63a
VZ
695
696 -v | -verbose | --verbose | --verbos | --verbo | --verb)
697 verbose=yes ;;
698
698dcdb6
VZ
699 -version | --version | --versio | --versi | --vers)
700 echo "configure generated by autoconf version 2.13"
701 exit 0 ;;
10f2d63a
VZ
702
703 -with-* | --with-*)
698dcdb6 704 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
10f2d63a 705 # Reject names that are not valid shell variable names.
698dcdb6
VZ
706 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
707 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
708 fi
10f2d63a 709 ac_package=`echo $ac_package| sed 's/-/_/g'`
698dcdb6
VZ
710 case "$ac_option" in
711 *=*) ;;
10f2d63a
VZ
712 *) ac_optarg=yes ;;
713 esac
698dcdb6 714 eval "with_${ac_package}='$ac_optarg'" ;;
10f2d63a
VZ
715
716 -without-* | --without-*)
698dcdb6 717 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
10f2d63a 718 # Reject names that are not valid shell variable names.
698dcdb6
VZ
719 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
720 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
721 fi
722 ac_package=`echo $ac_package| sed 's/-/_/g'`
723 eval "with_${ac_package}=no" ;;
10f2d63a
VZ
724
725 --x)
726 # Obsolete; use --with-x.
727 with_x=yes ;;
728
729 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
730 | --x-incl | --x-inc | --x-in | --x-i)
731 ac_prev=x_includes ;;
732 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
733 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
698dcdb6 734 x_includes="$ac_optarg" ;;
10f2d63a
VZ
735
736 -x-libraries | --x-libraries | --x-librarie | --x-librari \
737 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
738 ac_prev=x_libraries ;;
739 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
740 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
698dcdb6 741 x_libraries="$ac_optarg" ;;
10f2d63a 742
698dcdb6 743 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
10f2d63a
VZ
744 ;;
745
746 *)
698dcdb6
VZ
747 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
748 echo "configure: warning: $ac_option: invalid host type" 1>&2
749 fi
750 if test "x$nonopt" != xNONE; then
751 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
752 fi
753 nonopt="$ac_option"
10f2d63a
VZ
754 ;;
755
756 esac
757done
758
759if test -n "$ac_prev"; then
698dcdb6
VZ
760 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
761fi
762
763trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
764
765# File descriptor usage:
766# 0 standard input
767# 1 file creation
768# 2 errors and warnings
769# 3 some systems may open it to /dev/tty
770# 4 used on the Kubota Titan
771# 6 checking for... messages and results
772# 5 compiler messages saved in config.log
773if test "$silent" = yes; then
774 exec 6>/dev/null
775else
776 exec 6>&1
10f2d63a 777fi
698dcdb6
VZ
778exec 5>./config.log
779
780echo "\
781This file contains any messages produced by compilers while
782running configure, to aid debugging if configure makes a mistake.
783" 1>&5
10f2d63a 784
698dcdb6
VZ
785# Strip out --no-create and --no-recursion so they do not pile up.
786# Also quote any args containing shell metacharacters.
787ac_configure_args=
788for ac_arg
10f2d63a 789do
698dcdb6
VZ
790 case "$ac_arg" in
791 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
792 | --no-cr | --no-c) ;;
793 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
794 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
795 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
796 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
797 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
10f2d63a
VZ
798 esac
799done
800
698dcdb6
VZ
801# NLS nuisances.
802# Only set these to C if already set. These must not be set unconditionally
803# because not all systems understand e.g. LANG=C (notably SCO).
804# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
805# Non-C LC_CTYPE values break the ctype check.
806if test "${LANG+set}" = set; then LANG=C; export LANG; fi
807if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
808if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
809if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
10f2d63a 810
698dcdb6
VZ
811# confdefs.h avoids OS command line length limits that DEFS can exceed.
812rm -rf conftest* confdefs.h
813# AIX cpp loses on an empty file, so make sure it contains at least a newline.
814echo > confdefs.h
10f2d63a 815
698dcdb6
VZ
816# A filename unique to this package, relative to the directory that
817# configure is in, which we can look for to find out if srcdir is correct.
818ac_unique_file=wx-config.in
10f2d63a
VZ
819
820# Find the source files, if location was not specified.
821if test -z "$srcdir"; then
822 ac_srcdir_defaulted=yes
823 # Try the directory containing this script, then its parent.
824 ac_prog=$0
698dcdb6 825 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
10f2d63a
VZ
826 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
827 srcdir=$ac_confdir
828 if test ! -r $srcdir/$ac_unique_file; then
829 srcdir=..
830 fi
831else
832 ac_srcdir_defaulted=no
833fi
834if test ! -r $srcdir/$ac_unique_file; then
835 if test "$ac_srcdir_defaulted" = yes; then
698dcdb6 836 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
10f2d63a 837 else
698dcdb6 838 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
10f2d63a
VZ
839 fi
840fi
698dcdb6 841srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
10f2d63a
VZ
842
843# Prefer explicitly selected file to automatically selected ones.
844if test -z "$CONFIG_SITE"; then
845 if test "x$prefix" != xNONE; then
846 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
847 else
848 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
849 fi
850fi
851for ac_site_file in $CONFIG_SITE; do
852 if test -r "$ac_site_file"; then
698dcdb6 853 echo "loading site script $ac_site_file"
10f2d63a
VZ
854 . "$ac_site_file"
855 fi
856done
857
858if test -r "$cache_file"; then
698dcdb6
VZ
859 echo "loading cache $cache_file"
860 . $cache_file
10f2d63a 861else
698dcdb6
VZ
862 echo "creating cache $cache_file"
863 > $cache_file
10f2d63a
VZ
864fi
865
866ac_ext=c
698dcdb6 867# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10f2d63a 868ac_cpp='$CPP $CPPFLAGS'
698dcdb6
VZ
869ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
870ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
871cross_compiling=$ac_cv_prog_cc_cross
872
873ac_exeext=
874ac_objext=o
875if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
876 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
877 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
878 ac_n= ac_c='
879' ac_t=' '
880 else
881 ac_n=-n ac_c= ac_t=
882 fi
10f2d63a 883else
698dcdb6 884 ac_n= ac_c='\c' ac_t=
10f2d63a 885fi
698dcdb6
VZ
886
887
10f2d63a 888
7c66a493
VZ
889ac_aux_dir=
890for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
891 if 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 elif test -f $ac_dir/install.sh; then
896 ac_aux_dir=$ac_dir
897 ac_install_sh="$ac_aux_dir/install.sh -c"
898 break
899 fi
900done
901if test -z "$ac_aux_dir"; then
698dcdb6 902 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
7c66a493 903fi
698dcdb6
VZ
904ac_config_guess=$ac_aux_dir/config.guess
905ac_config_sub=$ac_aux_dir/config.sub
906ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
703e0a69 907
698dcdb6
VZ
908
909# Do some error checking and defaulting for the host and target type.
910# The inputs are:
911# configure --host=HOST --target=TARGET --build=BUILD NONOPT
912#
913# The rules are:
914# 1. You are not allowed to specify --host, --target, and nonopt at the
915# same time.
916# 2. Host defaults to nonopt.
917# 3. If nonopt is not specified, then host defaults to the current host,
918# as determined by config.guess.
919# 4. Target and build default to nonopt.
920# 5. If nonopt is not specified, then target and build default to host.
7c66a493
VZ
921
922# The aliases save the names the user supplied, while $host etc.
923# will get canonicalized.
698dcdb6
VZ
924case $host---$target---$nonopt in
925NONE---*---* | *---NONE---* | *---*---NONE) ;;
926*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
927esac
928
929
930# Make sure we can run config.sub.
931if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
932else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
933fi
934
935echo $ac_n "checking host system type""... $ac_c" 1>&6
b3e8d00a 936echo "configure:937: checking host system type" >&5
698dcdb6
VZ
937
938host_alias=$host
939case "$host_alias" in
940NONE)
941 case $nonopt in
942 NONE)
943 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
944 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
945 fi ;;
946 *) host_alias=$nonopt ;;
947 esac ;;
948esac
949
950host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
951host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
952host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
953host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
954echo "$ac_t""$host" 1>&6
955
956echo $ac_n "checking target system type""... $ac_c" 1>&6
b3e8d00a 957echo "configure:958: checking target system type" >&5
698dcdb6
VZ
958
959target_alias=$target
960case "$target_alias" in
961NONE)
962 case $nonopt in
963 NONE) target_alias=$host_alias ;;
964 *) target_alias=$nonopt ;;
965 esac ;;
966esac
967
968target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
969target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
970target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
971target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
972echo "$ac_t""$target" 1>&6
973
974echo $ac_n "checking build system type""... $ac_c" 1>&6
b3e8d00a 975echo "configure:976: checking build system type" >&5
698dcdb6
VZ
976
977build_alias=$build
978case "$build_alias" in
979NONE)
980 case $nonopt in
981 NONE) build_alias=$host_alias ;;
982 *) build_alias=$nonopt ;;
983 esac ;;
984esac
985
986build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
987build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
988build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
989build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
990echo "$ac_t""$build" 1>&6
991
992test "$host_alias" != "$target_alias" &&
7c66a493
VZ
993 test "$program_prefix$program_suffix$program_transform_name" = \
994 NONENONEs,x,x, &&
995 program_prefix=${target_alias}-
996
698dcdb6
VZ
997
998
10f2d63a 999WX_MAJOR_VERSION_NUMBER=2
37d403aa 1000WX_MINOR_VERSION_NUMBER=3
6c01ec02 1001WX_RELEASE_NUMBER=2
10f2d63a 1002
10f2d63a 1003WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER
10f2d63a 1004WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER
6426998c 1005
6c01ec02 1006WX_CURRENT=1
6426998c
RL
1007WX_REVISION=0
1008WX_AGE=0
1009
698dcdb6
VZ
1010
1011
10f2d63a
VZ
1012USE_UNIX=1
1013USE_WIN32=0
b12915c1 1014USE_BEOS=0
1216f52d 1015USE_MAC=0
b12915c1 1016
10f2d63a
VZ
1017USE_LINUX=
1018USE_SGI=
1019USE_HPUX=
1020USE_SYSV=
1021USE_SVR4=
1022USE_AIX=
1023USE_SUN=
1024USE_SOLARIS=
1025USE_SUNOS=
1026USE_ALPHA=
1027USE_OSF=
1028USE_BSD=
f11bdd03 1029USE_DARWIN=
10f2d63a 1030USE_FREEBSD=
95c8801c 1031USE_OPENBSD=
f6bcfd97 1032USE_NETBSD=
10f2d63a
VZ
1033USE_VMS=
1034USE_ULTRIX=
1035USE_CYGWIN=
1036USE_MINGW=
1037USE_DATA_GENERAL=
1038
ab9b9eab
VZ
1039NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1040
1e6feb95 1041ALL_TOOLKITS="CYGWIN GTK MAC MGL MINGW MOTIF PM WINE"
10f2d63a
VZ
1042
1043DEFAULT_wxUSE_GTK=0
1e6feb95
VZ
1044DEFAULT_wxUSE_MAC=0
1045DEFAULT_wxUSE_MGL=0
10f2d63a
VZ
1046DEFAULT_wxUSE_MOTIF=0
1047DEFAULT_wxUSE_MSW=0
e07802fc 1048DEFAULT_wxUSE_PM=0
1e6feb95 1049DEFAULT_wxUSE_WINE=0
10f2d63a
VZ
1050
1051DEFAULT_DEFAULT_wxUSE_GTK=0
1e6feb95
VZ
1052DEFAULT_DEFAULT_wxUSE_MAC=0
1053DEFAULT_DEFAULT_wxUSE_MGL=0
10f2d63a
VZ
1054DEFAULT_DEFAULT_wxUSE_MOTIF=0
1055DEFAULT_DEFAULT_wxUSE_MSW=0
e07802fc 1056DEFAULT_DEFAULT_wxUSE_PM=0
1e6feb95 1057DEFAULT_DEFAULT_wxUSE_WINE=0
10f2d63a 1058
d6a55c4b 1059PROGRAM_EXT=
3a922bb4 1060SO_SUFFIX=so
d6a55c4b 1061
10f2d63a
VZ
1062case "${host}" in
1063 *-hp-hpux* )
1064 USE_HPUX=1
1065 DEFAULT_DEFAULT_wxUSE_MOTIF=1
ab9b9eab 1066 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
3a922bb4 1067 SO_SUFFIX=sl
698dcdb6 1068 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1069#define __HPUX__ 1
1070EOF
1071
1072 ;;
1073 *-*-linux* )
1074 USE_LINUX=1
698dcdb6 1075 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1076#define __LINUX__ 1
1077EOF
1078
1079 TMP=`uname -m`
1080 if test "x$TMP" = "xalpha"; then
1081 USE_ALPHA=1
698dcdb6 1082 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1083#define __ALPHA__ 1
1084EOF
1085
1086 fi
1087 DEFAULT_DEFAULT_wxUSE_GTK=1
1088 ;;
1089 *-*-irix5* | *-*-irix6* )
1090 USE_SGI=1
1091 USE_SVR4=1
698dcdb6 1092 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1093#define __SGI__ 1
1094EOF
1095
698dcdb6 1096 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1097#define __SVR4__ 1
1098EOF
1099
1100 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1101 ;;
1102 *-*-solaris2* )
1103 USE_SUN=1
1104 USE_SOLARIS=1
1105 USE_SVR4=1
698dcdb6 1106 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1107#define __SUN__ 1
1108EOF
1109
698dcdb6 1110 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1111#define __SOLARIS__ 1
1112EOF
1113
698dcdb6 1114 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1115#define __SVR4__ 1
1116EOF
1117
1118 DEFAULT_DEFAULT_wxUSE_MOTIF=1
ab9b9eab 1119 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
10f2d63a
VZ
1120 ;;
1121 *-*-sunos4* )
1122 USE_SUN=1
1123 USE_SUNOS=1
1124 USE_BSD=1
698dcdb6 1125 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1126#define __SUN__ 1
1127EOF
1128
698dcdb6 1129 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1130#define __SUNOS__ 1
1131EOF
1132
698dcdb6 1133 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1134#define __BSD__ 1
1135EOF
1136
1137 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1138 ;;
f6bcfd97 1139 *-*-freebsd*)
10f2d63a
VZ
1140 USE_BSD=1
1141 USE_FREEBSD=1
698dcdb6 1142 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1143#define __FREEBSD__ 1
1144EOF
1145
698dcdb6 1146 cat >> confdefs.h <<\EOF
10f2d63a 1147#define __BSD__ 1
95c8801c
VS
1148EOF
1149
1150 DEFAULT_DEFAULT_wxUSE_GTK=1
1151 ;;
1152 *-*-openbsd*)
1153 USE_BSD=1
1154 USE_OPENBSD=1
698dcdb6 1155 cat >> confdefs.h <<\EOF
95c8801c
VS
1156#define __FREEBSD__ 1
1157EOF
1158
698dcdb6 1159 cat >> confdefs.h <<\EOF
95c8801c 1160#define __OPENBSD__ 1
f6bcfd97
BP
1161EOF
1162
1163 DEFAULT_DEFAULT_wxUSE_GTK=1
1164 ;;
1165 *-*-netbsd*)
1166 USE_BSD=1
1167 USE_NETBSD=1
698dcdb6 1168 cat >> confdefs.h <<\EOF
f6bcfd97
BP
1169#define __FREEBSD__ 1
1170EOF
1171
698dcdb6 1172 cat >> confdefs.h <<\EOF
f6bcfd97 1173#define __NETBSD__ 1
10f2d63a
VZ
1174EOF
1175
1176 DEFAULT_DEFAULT_wxUSE_GTK=1
1177 ;;
1178 *-*-osf* )
1179 USE_ALPHA=1
1180 USE_OSF=1
698dcdb6 1181 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1182#define __ALPHA__ 1
1183EOF
1184
698dcdb6 1185 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1186#define __OSF__ 1
1187EOF
1188
1189 DEFAULT_DEFAULT_wxUSE_MOTIF=1
f6bcfd97 1190 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
10f2d63a
VZ
1191 ;;
1192 *-*-dgux5* )
1193 USE_ALPHA=1
1194 USE_SVR4=1
698dcdb6 1195 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1196#define __ALPHA__ 1
1197EOF
1198
698dcdb6 1199 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1200#define __SVR4__ 1
1201EOF
1202
1203 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1204 ;;
1205 *-*-sysv5* )
1206 USE_SYSV=1
1207 USE_SVR4=1
698dcdb6 1208 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1209#define __SYSV__ 1
1210EOF
1211
698dcdb6 1212 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1213#define __SVR4__ 1
1214EOF
1215
1216 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1217 ;;
1218 *-*-aix* )
1219 USE_AIX=1
1220 USE_SYSV=1
1221 USE_SVR4=1
698dcdb6 1222 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1223#define __AIX__ 1
1224EOF
1225
698dcdb6 1226 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1227#define __SYSV__ 1
1228EOF
1229
698dcdb6 1230 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1231#define __SVR4__ 1
1232EOF
1233
1234 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1235 ;;
1236
1c8183e2 1237 *-*-cygwin* | *-*-mingw32* )
10f2d63a
VZ
1238 USE_UNIX=0
1239 USE_WIN32=1
3a922bb4 1240 SO_SUFFIX=dll
698dcdb6 1241 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1242#define __WIN32__ 1
1243EOF
1244
698dcdb6 1245 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1246#define __WIN95__ 1
1247EOF
1248
698dcdb6 1249 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1250#define __WINDOWS__ 1
1251EOF
1252
698dcdb6 1253 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1254#define __GNUWIN32__ 1
1255EOF
1256
698dcdb6 1257 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1258#define STRICT 1
1259EOF
1260
698dcdb6 1261 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1262#define WINVER 0x0400
1263EOF
1264
cf27ef00 1265 PROGRAM_EXT=".exe"
10f2d63a
VZ
1266 DEFAULT_DEFAULT_wxUSE_MSW=1
1267 ;;
1268
1269 *-pc-os2_emx )
698dcdb6 1270 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1271#define __EMX__ 1
1272EOF
1273
cf27ef00 1274 PROGRAM_EXT=".exe"
e07802fc 1275 DEFAULT_DEFAULT_wxUSE_PM=1
10f2d63a
VZ
1276 ;;
1277
b4085ce6
GD
1278 *-*-darwin* )
1279 USE_BSD=1
f11bdd03 1280 USE_DARWIN=1
3a922bb4 1281 SO_SUFFIX=dylib
698dcdb6 1282 cat >> confdefs.h <<\EOF
f11bdd03 1283#define __BSD__ 1
b4085ce6
GD
1284EOF
1285
698dcdb6 1286 cat >> confdefs.h <<\EOF
f11bdd03 1287#define __DARWIN__ 1
b4085ce6
GD
1288EOF
1289
1290 DEFAULT_DEFAULT_wxUSE_MAC=1
1291 ;;
1292
b12915c1
VZ
1293 *-*-beos* )
1294 USE_BEOS=1
698dcdb6 1295 cat >> confdefs.h <<\EOF
b12915c1
VZ
1296#define __BEOS__ 1
1297EOF
1298
1299 ;;
1300
10f2d63a 1301 *)
698dcdb6 1302 { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; }
10f2d63a
VZ
1303esac
1304
1305if test "$USE_UNIX" = 1 ; then
b12915c1 1306 wxUSE_UNIX=yes
698dcdb6 1307 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1308#define __UNIX__ 1
1309EOF
1310
10f2d63a
VZ
1311fi
1312
2389f33b
VZ
1313if test "$USE_LINUX" = 1; then
1314 echo $ac_n "checking for glibc 2.1 or later""... $ac_c" 1>&6
b3e8d00a 1315echo "configure:1316: checking for glibc 2.1 or later" >&5
2389f33b
VZ
1316if eval "test \"`echo '$''{'wx_lib_glibc21'+set}'`\" = set"; then
1317 echo $ac_n "(cached) $ac_c" 1>&6
1318else
1319 cat > conftest.$ac_ext <<EOF
b3e8d00a 1320#line 1321 "configure"
2389f33b
VZ
1321#include "confdefs.h"
1322#include <features.h>
1323int main() {
1324
1325 #if !__GLIBC_PREREQ(2, 1)
1326 #error not glibc2.1
1327 #endif
1328
1329; return 0; }
1330EOF
b3e8d00a 1331if { (eval echo configure:1332: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2389f33b
VZ
1332 rm -rf conftest*
1333
1334 wx_lib_glibc21=yes
1335
1336else
1337 echo "configure: failed program was:" >&5
1338 cat conftest.$ac_ext >&5
1339 rm -rf conftest*
1340
1341 wx_lib_glibc21=no
1342
1343
1344fi
1345rm -f conftest*
1346
1347fi
1348
1349echo "$ac_t""$wx_lib_glibc21" 1>&6
2389f33b
VZ
1350 if test "$wx_lib_glibc21" = "yes"; then
1351 cat >> confdefs.h <<\EOF
1352#define wxHAVE_GLIBC2 1
1353EOF
1354
1355 fi
1356fi
10f2d63a 1357
1e487827 1358
1e487827 1359
6232543b 1360
10f2d63a
VZ
1361 wx_arg_cache_file="configarg.cache"
1362 echo "loading argument cache $wx_arg_cache_file"
1363 rm -f ${wx_arg_cache_file}.tmp
1364 touch ${wx_arg_cache_file}.tmp
1365 touch ${wx_arg_cache_file}
698dcdb6 1366
10f2d63a
VZ
1367
1368DEBUG_CONFIGURE=0
1369if test $DEBUG_CONFIGURE = 1; then
1e6feb95
VZ
1370 DEFAULT_wxUSE_UNIVERSAL=no
1371
10f2d63a
VZ
1372 DEFAULT_wxUSE_THREADS=yes
1373
1374 DEFAULT_wxUSE_SHARED=yes
3a922bb4 1375 DEFAULT_wxUSE_SONAME=no
1e6feb95 1376 DEFAULT_wxUSE_OPTIMISE=no
10f2d63a
VZ
1377 DEFAULT_wxUSE_PROFILE=no
1378 DEFAULT_wxUSE_NO_DEPS=no
1379 DEFAULT_wxUSE_NO_RTTI=no
1380 DEFAULT_wxUSE_NO_EXCEPTIONS=no
1381 DEFAULT_wxUSE_PERMISSIVE=no
1382 DEFAULT_wxUSE_DEBUG_FLAG=yes
1383 DEFAULT_wxUSE_DEBUG_INFO=yes
1384 DEFAULT_wxUSE_DEBUG_GDB=yes
1385 DEFAULT_wxUSE_MEM_TRACING=no
1386 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1387 DEFAULT_wxUSE_DMALLOC=no
1388 DEFAULT_wxUSE_APPLE_IEEE=no
1389
1390 DEFAULT_wxUSE_LOG=yes
1e6feb95
VZ
1391 DEFAULT_wxUSE_LOGWINDOW=no
1392 DEFAULT_wxUSE_LOGGUI=no
10f2d63a
VZ
1393
1394 DEFAULT_wxUSE_GUI=yes
1e6feb95 1395 DEFAULT_wxUSE_CONTROLS=no
10f2d63a 1396
3e44f09d 1397 DEFAULT_wxUSE_REGEX=no
10f2d63a
VZ
1398 DEFAULT_wxUSE_ZLIB=no
1399 DEFAULT_wxUSE_LIBPNG=no
1400 DEFAULT_wxUSE_LIBJPEG=no
c7a2bf27 1401 DEFAULT_wxUSE_LIBTIFF=no
10f2d63a 1402 DEFAULT_wxUSE_ODBC=no
3fed1840 1403 DEFAULT_wxUSE_FREETYPE=no
bdad4e7e 1404 DEFAULT_wxUSE_OPENGL=no
10f2d63a 1405
eb4efbdc 1406 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
4f3c5f06 1407 DEFAULT_wxUSE_SNGLINST_CHECKER=no
10f2d63a 1408 DEFAULT_wxUSE_STD_IOSTREAM=no
1e6feb95
VZ
1409 DEFAULT_wxUSE_CMDLINE_PARSER=no
1410 DEFAULT_wxUSE_DATETIME=no
1411 DEFAULT_wxUSE_TIMEDATE=no
1412 DEFAULT_wxUSE_TIMER=no
1413 DEFAULT_wxUSE_STOPWATCH=no
10f2d63a 1414 DEFAULT_wxUSE_FILE=no
1e6feb95 1415 DEFAULT_wxUSE_FFILE=no
10f2d63a 1416 DEFAULT_wxUSE_TEXTFILE=no
10f2d63a
VZ
1417 DEFAULT_wxUSE_WAVE=no
1418 DEFAULT_wxUSE_INTL=no
1419 DEFAULT_wxUSE_CONFIG=no
1e6feb95 1420 DEFAULT_wxUSE_FONTMAP=no
10f2d63a
VZ
1421 DEFAULT_wxUSE_STREAMS=no
1422 DEFAULT_wxUSE_SOCKETS=no
1423 DEFAULT_wxUSE_DIALUP_MANAGER=no
1424 DEFAULT_wxUSE_SERIAL=no
1425 DEFAULT_wxUSE_JOYSTICK=no
1426 DEFAULT_wxUSE_DYNLIB_CLASS=no
1427 DEFAULT_wxUSE_LONGLONG=no
e8f65ba6 1428 DEFAULT_wxUSE_GEOMETRY=no
10f2d63a
VZ
1429
1430 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
1431 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
1432 DEFAULT_wxUSE_POSTSCRIPT=no
1433
1434 DEFAULT_wxUSE_X_RESOURCES=no
1435 DEFAULT_wxUSE_CLIPBOARD=no
1436 DEFAULT_wxUSE_TOOLTIPS=no
1437 DEFAULT_wxUSE_DRAG_AND_DROP=no
24fd6d87 1438 DEFAULT_wxUSE_DRAGIMAGE=no
10f2d63a
VZ
1439 DEFAULT_wxUSE_SPLINES=no
1440
1441 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
1442 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
1443 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
1444
1445 DEFAULT_wxUSE_PROLOGIO=no
1446 DEFAULT_wxUSE_RESOURCES=no
1447 DEFAULT_wxUSE_CONSTRAINTS=no
1448 DEFAULT_wxUSE_IPC=no
1449 DEFAULT_wxUSE_HELP=no
29fd3c0c 1450 DEFAULT_wxUSE_MS_HTML_HELP=no
3379ed37 1451 DEFAULT_wxUSE_WXHTML_HELP=no
24176f2c 1452 DEFAULT_wxUSE_TREELAYOUT=no
10f2d63a 1453 DEFAULT_wxUSE_METAFILE=no
1e6feb95 1454 DEFAULT_wxUSE_MIMETYPE=no
3e44f09d 1455 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
10f2d63a
VZ
1456
1457 DEFAULT_wxUSE_COMMONDLGS=no
1e6feb95
VZ
1458 DEFAULT_wxUSE_CHOICEDLG=no
1459 DEFAULT_wxUSE_COLOURDLG=no
10f2d63a 1460 DEFAULT_wxUSE_DIRDLG=no
1e6feb95 1461 DEFAULT_wxUSE_FILEDLG=no
8db37e06 1462 DEFAULT_wxUSE_FINDREPLDLG=no
1e6feb95
VZ
1463 DEFAULT_wxUSE_FONTDLG=no
1464 DEFAULT_wxUSE_MSGDLG=no
1465 DEFAULT_wxUSE_NUMBERDLG=no
10f2d63a 1466 DEFAULT_wxUSE_TEXTDLG=no
cbca9943 1467 DEFAULT_wxUSE_SPLASH=no
10f2d63a
VZ
1468 DEFAULT_wxUSE_STARTUP_TIPS=no
1469 DEFAULT_wxUSE_PROGRESSDLG=no
b1f5d087
VZ
1470 DEFAULT_wxUSE_WIZARDDLG=no
1471
1e6feb95 1472 DEFAULT_wxUSE_MENUS=no
10f2d63a
VZ
1473 DEFAULT_wxUSE_MINIFRAME=no
1474 DEFAULT_wxUSE_HTML=no
24528b0c 1475 DEFAULT_wxUSE_FILESYSTEM=no
10f2d63a
VZ
1476 DEFAULT_wxUSE_FS_INET=no
1477 DEFAULT_wxUSE_FS_ZIP=no
1478 DEFAULT_wxUSE_BUSYINFO=no
1479 DEFAULT_wxUSE_ZIPSTREAM=no
1e6feb95 1480 DEFAULT_wxUSE_VALIDATORS=no
10f2d63a
VZ
1481
1482 DEFAULT_wxUSE_ACCEL=no
1e6feb95 1483 DEFAULT_wxUSE_BUTTON=no
10f2d63a 1484 DEFAULT_wxUSE_BMPBUTTON=no
1e6feb95
VZ
1485 DEFAULT_wxUSE_CALCTRL=no
1486 DEFAULT_wxUSE_CARET=no
10f2d63a
VZ
1487 DEFAULT_wxUSE_CHECKBOX=no
1488 DEFAULT_wxUSE_CHECKLST=no
1e6feb95 1489 DEFAULT_wxUSE_CHOICE=no
10f2d63a
VZ
1490 DEFAULT_wxUSE_COMBOBOX=no
1491 DEFAULT_wxUSE_GAUGE=no
1492 DEFAULT_wxUSE_GRID=no
1493 DEFAULT_wxUSE_NEW_GRID=no
1494 DEFAULT_wxUSE_IMAGLIST=no
1495 DEFAULT_wxUSE_LISTBOX=no
1496 DEFAULT_wxUSE_LISTCTRL=no
1497 DEFAULT_wxUSE_NOTEBOOK=no
24176f2c 1498 DEFAULT_wxUSE_PROPSHEET=no
10f2d63a
VZ
1499 DEFAULT_wxUSE_RADIOBOX=no
1500 DEFAULT_wxUSE_RADIOBTN=no
1501 DEFAULT_wxUSE_SASH=no
1502 DEFAULT_wxUSE_SCROLLBAR=no
1503 DEFAULT_wxUSE_SLIDER=no
1504 DEFAULT_wxUSE_SPINBTN=no
56cfaa52 1505 DEFAULT_wxUSE_SPINCTRL=no
10f2d63a
VZ
1506 DEFAULT_wxUSE_SPLITTER=no
1507 DEFAULT_wxUSE_STATBMP=no
1508 DEFAULT_wxUSE_STATBOX=no
1509 DEFAULT_wxUSE_STATLINE=no
1e6feb95 1510 DEFAULT_wxUSE_STATTEXT=no
10f2d63a
VZ
1511 DEFAULT_wxUSE_STATUSBAR=yes
1512 DEFAULT_wxUSE_TABDIALOG=no
1e6feb95 1513 DEFAULT_wxUSE_TEXTCTRL=no
1db8dc4a 1514 DEFAULT_wxUSE_TOGGLEBTN=no
10f2d63a 1515 DEFAULT_wxUSE_TOOLBAR=no
360d6699
VZ
1516 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
1517 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
10f2d63a 1518 DEFAULT_wxUSE_TREECTRL=no
9f41d601 1519 DEFAULT_wxUSE_POPUPWIN=no
10f2d63a
VZ
1520
1521 DEFAULT_wxUSE_UNICODE=no
1522 DEFAULT_wxUSE_WCSRTOMBS=no
1523
0046ff7c 1524 DEFAULT_wxUSE_IMAGE=no
10f2d63a
VZ
1525 DEFAULT_wxUSE_GIF=no
1526 DEFAULT_wxUSE_PCX=no
1527 DEFAULT_wxUSE_PNM=no
0046ff7c 1528 DEFAULT_wxUSE_XPM=no
10f2d63a 1529else
1e6feb95
VZ
1530 DEFAULT_wxUSE_UNIVERSAL=no
1531
10f2d63a
VZ
1532 DEFAULT_wxUSE_THREADS=yes
1533
1534 DEFAULT_wxUSE_SHARED=yes
3a922bb4 1535 DEFAULT_wxUSE_SONAME=no
10f2d63a
VZ
1536 DEFAULT_wxUSE_OPTIMISE=yes
1537 DEFAULT_wxUSE_PROFILE=no
1538 DEFAULT_wxUSE_NO_DEPS=no
1539 DEFAULT_wxUSE_NO_RTTI=no
1540 DEFAULT_wxUSE_NO_EXCEPTIONS=no
1541 DEFAULT_wxUSE_PERMISSIVE=no
1542 DEFAULT_wxUSE_DEBUG_FLAG=no
1543 DEFAULT_wxUSE_DEBUG_INFO=no
1544 DEFAULT_wxUSE_DEBUG_GDB=no
1545 DEFAULT_wxUSE_MEM_TRACING=no
1546 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1547 DEFAULT_wxUSE_DMALLOC=no
1548 DEFAULT_wxUSE_APPLE_IEEE=yes
1549
1550 DEFAULT_wxUSE_LOG=yes
d73be714
VZ
1551 DEFAULT_wxUSE_LOGWINDOW=yes
1552 DEFAULT_wxUSE_LOGGUI=yes
10f2d63a
VZ
1553
1554 DEFAULT_wxUSE_GUI=yes
1555
831b3152 1556 DEFAULT_wxUSE_REGEX=yes
10f2d63a
VZ
1557 DEFAULT_wxUSE_ZLIB=yes
1558 DEFAULT_wxUSE_LIBPNG=yes
1559 DEFAULT_wxUSE_LIBJPEG=yes
b47c832e 1560 DEFAULT_wxUSE_LIBTIFF=yes
16b52fa1 1561 DEFAULT_wxUSE_ODBC=no
3fed1840 1562 DEFAULT_wxUSE_FREETYPE=no
bdad4e7e 1563 DEFAULT_wxUSE_OPENGL=no
10f2d63a 1564
eb4efbdc 1565 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
4f3c5f06 1566 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
10f2d63a 1567 DEFAULT_wxUSE_STD_IOSTREAM=no
1e6feb95
VZ
1568 DEFAULT_wxUSE_CMDLINE_PARSER=yes
1569 DEFAULT_wxUSE_DATETIME=yes
1570 DEFAULT_wxUSE_TIMEDATE=no
1571 DEFAULT_wxUSE_TIMER=yes
1572 DEFAULT_wxUSE_STOPWATCH=yes
10f2d63a 1573 DEFAULT_wxUSE_FILE=yes
1e6feb95 1574 DEFAULT_wxUSE_FFILE=yes
10f2d63a 1575 DEFAULT_wxUSE_TEXTFILE=yes
10f2d63a
VZ
1576 DEFAULT_wxUSE_WAVE=no
1577 DEFAULT_wxUSE_INTL=yes
1578 DEFAULT_wxUSE_CONFIG=yes
1e6feb95 1579 DEFAULT_wxUSE_FONTMAP=yes
10f2d63a
VZ
1580 DEFAULT_wxUSE_STREAMS=yes
1581 DEFAULT_wxUSE_SOCKETS=yes
1582 DEFAULT_wxUSE_DIALUP_MANAGER=yes
1583 DEFAULT_wxUSE_SERIAL=yes
1584 DEFAULT_wxUSE_JOYSTICK=yes
1585 DEFAULT_wxUSE_DYNLIB_CLASS=yes
b685cd9b 1586 DEFAULT_wxUSE_LONGLONG=yes
e8f65ba6 1587 DEFAULT_wxUSE_GEOMETRY=yes
10f2d63a
VZ
1588
1589 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
1590 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
1591 DEFAULT_wxUSE_POSTSCRIPT=yes
1592
1593 DEFAULT_wxUSE_X_RESOURCES=no
1594 DEFAULT_wxUSE_CLIPBOARD=yes
1595 DEFAULT_wxUSE_TOOLTIPS=yes
1596 DEFAULT_wxUSE_DRAG_AND_DROP=yes
24fd6d87 1597 DEFAULT_wxUSE_DRAGIMAGE=yes
10f2d63a
VZ
1598 DEFAULT_wxUSE_SPLINES=yes
1599
1600 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
1601 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
1602 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
1603
1604 DEFAULT_wxUSE_PROLOGIO=yes
1605 DEFAULT_wxUSE_RESOURCES=yes
1606 DEFAULT_wxUSE_CONSTRAINTS=yes
1607 DEFAULT_wxUSE_IPC=yes
1608 DEFAULT_wxUSE_HELP=yes
29fd3c0c 1609 DEFAULT_wxUSE_MS_HTML_HELP=yes
3379ed37 1610 DEFAULT_wxUSE_WXHTML_HELP=yes
24176f2c 1611 DEFAULT_wxUSE_TREELAYOUT=yes
10f2d63a 1612 DEFAULT_wxUSE_METAFILE=yes
1e6feb95 1613 DEFAULT_wxUSE_MIMETYPE=yes
3e44f09d 1614 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
10f2d63a
VZ
1615
1616 DEFAULT_wxUSE_COMMONDLGS=yes
1e6feb95
VZ
1617 DEFAULT_wxUSE_CHOICEDLG=yes
1618 DEFAULT_wxUSE_COLOURDLG=yes
10f2d63a 1619 DEFAULT_wxUSE_DIRDLG=yes
1e6feb95 1620 DEFAULT_wxUSE_FILEDLG=yes
8db37e06 1621 DEFAULT_wxUSE_FINDREPLDLG=yes
1e6feb95
VZ
1622 DEFAULT_wxUSE_FONTDLG=yes
1623 DEFAULT_wxUSE_MSGDLG=yes
1624 DEFAULT_wxUSE_NUMBERDLG=yes
10f2d63a 1625 DEFAULT_wxUSE_TEXTDLG=yes
cbca9943 1626 DEFAULT_wxUSE_SPLASH=yes
10f2d63a
VZ
1627 DEFAULT_wxUSE_STARTUP_TIPS=yes
1628 DEFAULT_wxUSE_PROGRESSDLG=yes
f33f19dd
VZ
1629 DEFAULT_wxUSE_WIZARDDLG=yes
1630
1e6feb95 1631 DEFAULT_wxUSE_MENUS=yes
10f2d63a
VZ
1632 DEFAULT_wxUSE_MINIFRAME=yes
1633 DEFAULT_wxUSE_HTML=yes
24528b0c 1634 DEFAULT_wxUSE_FILESYSTEM=yes
10f2d63a
VZ
1635 DEFAULT_wxUSE_FS_INET=yes
1636 DEFAULT_wxUSE_FS_ZIP=yes
1637 DEFAULT_wxUSE_BUSYINFO=yes
1638 DEFAULT_wxUSE_ZIPSTREAM=yes
1639 DEFAULT_wxUSE_VALIDATORS=yes
1640
1641 DEFAULT_wxUSE_ACCEL=yes
1e6feb95 1642 DEFAULT_wxUSE_BUTTON=yes
10f2d63a 1643 DEFAULT_wxUSE_BMPBUTTON=yes
1e6feb95
VZ
1644 DEFAULT_wxUSE_CALCTRL=yes
1645 DEFAULT_wxUSE_CARET=yes
10f2d63a
VZ
1646 DEFAULT_wxUSE_CHECKBOX=yes
1647 DEFAULT_wxUSE_CHECKLST=yes
1648 DEFAULT_wxUSE_CHOICE=yes
1649 DEFAULT_wxUSE_COMBOBOX=yes
1650 DEFAULT_wxUSE_GAUGE=yes
1651 DEFAULT_wxUSE_GRID=yes
cc977e5f 1652 DEFAULT_wxUSE_NEW_GRID=yes
10f2d63a
VZ
1653 DEFAULT_wxUSE_IMAGLIST=yes
1654 DEFAULT_wxUSE_LISTBOX=yes
1655 DEFAULT_wxUSE_LISTCTRL=yes
1656 DEFAULT_wxUSE_NOTEBOOK=yes
24176f2c 1657 DEFAULT_wxUSE_PROPSHEET=yes
10f2d63a
VZ
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
b3e8d00a 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
b3e8d00a 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
b3e8d00a 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
b3e8d00a 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
b3e8d00a 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
b3e8d00a 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
b3e8d00a 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
b3e8d00a 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
b3e8d00a 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
b3e8d00a 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
b3e8d00a 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
b3e8d00a 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
3a922bb4 2286 echo $ac_n "checking for --enable-soname""... $ac_c" 1>&6
b3e8d00a 2287echo "configure:2288: checking for --enable-soname" >&5
00cf1208 2288 no_cache=0
3a922bb4
RL
2289 # Check whether --enable-soname or --disable-soname was given.
2290if test "${enable_soname+set}" = set; then
2291 enableval="$enable_soname"
698dcdb6 2292
00cf1208 2293 if test "$enableval" = yes; then
3a922bb4 2294 ac_cv_use_soname='wxUSE_SONAME=yes'
00cf1208 2295 else
3a922bb4 2296 ac_cv_use_soname='wxUSE_SONAME=no'
00cf1208 2297 fi
698dcdb6 2298
00cf1208 2299else
698dcdb6 2300
3a922bb4 2301 LINE=`grep "wxUSE_SONAME" ${wx_arg_cache_file}`
00cf1208
RR
2302 if test "x$LINE" != x ; then
2303 eval "DEFAULT_$LINE"
2304 else
2305 no_cache=1
2306 fi
2307
3a922bb4 2308 ac_cv_use_soname='wxUSE_SONAME='$DEFAULT_wxUSE_SONAME
698dcdb6
VZ
2309
2310fi
00cf1208
RR
2311
2312
3a922bb4 2313 eval "$ac_cv_use_soname"
00cf1208 2314 if test "$no_cache" != 1; then
3a922bb4 2315 echo $ac_cv_use_soname >> ${wx_arg_cache_file}.tmp
00cf1208
RR
2316 fi
2317
3a922bb4 2318 if test "$wxUSE_SONAME" = 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
b3e8d00a 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
b3e8d00a 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
b3e8d00a 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
b3e8d00a 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
b3e8d00a 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
b3e8d00a 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
b3e8d00a 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
b3e8d00a 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
b3e8d00a 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
b3e8d00a 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
b3e8d00a 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
b3e8d00a 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
b3e8d00a 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
b3e8d00a 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
b3e8d00a 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
b3e8d00a 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
b3e8d00a 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
b3e8d00a 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
b3e8d00a 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
b3e8d00a 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
b3e8d00a 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
b3e8d00a 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
b3e8d00a 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
b3e8d00a 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
b3e8d00a 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
b3e8d00a 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
b3e8d00a 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
b3e8d00a 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
b3e8d00a 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
b3e8d00a 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
b3e8d00a 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
b3e8d00a 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
b3e8d00a 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
b3e8d00a 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
b3e8d00a 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
b3e8d00a 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
b3e8d00a 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
1e6feb95 3783 echo $ac_n "checking for --enable-wxprintfv""... $ac_c" 1>&6
b3e8d00a 3784echo "configure:3785: checking for --enable-wxprintfv" >&5
1e6feb95
VZ
3785 no_cache=0
3786 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
3787if test "${enable_wxprintfv+set}" = set; then
3788 enableval="$enable_wxprintfv"
3789
3790 if test "$enableval" = yes; then
10f2d63a
VZ
3791 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
3792 else
3793 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
3794 fi
698dcdb6 3795
10f2d63a 3796else
698dcdb6 3797
10f2d63a
VZ
3798 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${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_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
698dcdb6
VZ
3806
3807fi
10f2d63a
VZ
3808
3809
3810 eval "$ac_cv_use_wxprintfv"
3811 if test "$no_cache" != 1; then
3812 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
3813 fi
3814
3815 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
698dcdb6 3816 echo "$ac_t""yes" 1>&6
10f2d63a 3817 else
698dcdb6 3818 echo "$ac_t""no" 1>&6
10f2d63a 3819 fi
698dcdb6 3820
10f2d63a 3821
698dcdb6 3822 echo $ac_n "checking for --enable-std_iostreams""... $ac_c" 1>&6
b3e8d00a 3823echo "configure:3824: checking for --enable-std_iostreams" >&5
10f2d63a
VZ
3824 no_cache=0
3825 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
3826if test "${enable_std_iostreams+set}" = set; then
3827 enableval="$enable_std_iostreams"
698dcdb6 3828
10f2d63a
VZ
3829 if test "$enableval" = yes; then
3830 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
3831 else
3832 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
3833 fi
698dcdb6 3834
10f2d63a 3835else
698dcdb6 3836
10f2d63a
VZ
3837 LINE=`grep "wxUSE_STD_IOSTREAM" ${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_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
698dcdb6
VZ
3845
3846fi
10f2d63a
VZ
3847
3848
3849 eval "$ac_cv_use_std_iostreams"
3850 if test "$no_cache" != 1; then
3851 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
3852 fi
3853
3854 if test "$wxUSE_STD_IOSTREAM" = 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-filesystem""... $ac_c" 1>&6
b3e8d00a 3862echo "configure:3863: checking for --enable-filesystem" >&5
24528b0c
VS
3863 no_cache=0
3864 # Check whether --enable-filesystem or --disable-filesystem was given.
3865if test "${enable_filesystem+set}" = set; then
3866 enableval="$enable_filesystem"
698dcdb6 3867
24528b0c
VS
3868 if test "$enableval" = yes; then
3869 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
3870 else
3871 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
3872 fi
698dcdb6 3873
24528b0c 3874else
698dcdb6 3875
24528b0c
VS
3876 LINE=`grep "wxUSE_FILESYSTEM" ${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_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
698dcdb6
VZ
3884
3885fi
24528b0c
VS
3886
3887
3888 eval "$ac_cv_use_filesystem"
3889 if test "$no_cache" != 1; then
3890 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
3891 fi
3892
3893 if test "$wxUSE_FILESYSTEM" = yes; then
698dcdb6 3894 echo "$ac_t""yes" 1>&6
24528b0c 3895 else
698dcdb6 3896 echo "$ac_t""no" 1>&6
24528b0c 3897 fi
698dcdb6 3898
24528b0c 3899
698dcdb6 3900 echo $ac_n "checking for --enable-fs_inet""... $ac_c" 1>&6
b3e8d00a 3901echo "configure:3902: checking for --enable-fs_inet" >&5
10f2d63a
VZ
3902 no_cache=0
3903 # Check whether --enable-fs_inet or --disable-fs_inet was given.
3904if test "${enable_fs_inet+set}" = set; then
3905 enableval="$enable_fs_inet"
698dcdb6 3906
10f2d63a
VZ
3907 if test "$enableval" = yes; then
3908 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
3909 else
3910 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
3911 fi
698dcdb6 3912
10f2d63a 3913else
698dcdb6 3914
10f2d63a
VZ
3915 LINE=`grep "wxUSE_FS_INET" ${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_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
698dcdb6
VZ
3923
3924fi
10f2d63a
VZ
3925
3926
3927 eval "$ac_cv_use_fs_inet"
3928 if test "$no_cache" != 1; then
3929 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
3930 fi
3931
3932 if test "$wxUSE_FS_INET" = yes; then
698dcdb6 3933 echo "$ac_t""yes" 1>&6
10f2d63a 3934 else
698dcdb6 3935 echo "$ac_t""no" 1>&6
10f2d63a 3936 fi
698dcdb6 3937
10f2d63a 3938
698dcdb6 3939 echo $ac_n "checking for --enable-fs_zip""... $ac_c" 1>&6
b3e8d00a 3940echo "configure:3941: checking for --enable-fs_zip" >&5
10f2d63a
VZ
3941 no_cache=0
3942 # Check whether --enable-fs_zip or --disable-fs_zip was given.
3943if test "${enable_fs_zip+set}" = set; then
3944 enableval="$enable_fs_zip"
698dcdb6 3945
10f2d63a
VZ
3946 if test "$enableval" = yes; then
3947 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
3948 else
3949 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
3950 fi
698dcdb6 3951
10f2d63a 3952else
698dcdb6 3953
10f2d63a
VZ
3954 LINE=`grep "wxUSE_FS_ZIP" ${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_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
698dcdb6
VZ
3962
3963fi
10f2d63a
VZ
3964
3965
3966 eval "$ac_cv_use_fs_zip"
3967 if test "$no_cache" != 1; then
3968 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
3969 fi
3970
3971 if test "$wxUSE_FS_ZIP" = 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-zipstream""... $ac_c" 1>&6
b3e8d00a 3979echo "configure:3980: checking for --enable-zipstream" >&5
10f2d63a
VZ
3980 no_cache=0
3981 # Check whether --enable-zipstream or --disable-zipstream was given.
3982if test "${enable_zipstream+set}" = set; then
3983 enableval="$enable_zipstream"
698dcdb6 3984
10f2d63a
VZ
3985 if test "$enableval" = yes; then
3986 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
3987 else
3988 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
3989 fi
698dcdb6 3990
10f2d63a 3991else
698dcdb6 3992
10f2d63a
VZ
3993 LINE=`grep "wxUSE_ZIPSTREAM" ${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_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
698dcdb6
VZ
4001
4002fi
10f2d63a
VZ
4003
4004
4005 eval "$ac_cv_use_zipstream"
4006 if test "$no_cache" != 1; then
4007 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
4008 fi
4009
4010 if test "$wxUSE_ZIPSTREAM" = 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
VZ
4017
4018 echo $ac_n "checking for --enable-catch_segvs""... $ac_c" 1>&6
b3e8d00a 4019echo "configure:4020: checking for --enable-catch_segvs" >&5
eb4efbdc
VZ
4020 no_cache=0
4021 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
4022if test "${enable_catch_segvs+set}" = set; then
4023 enableval="$enable_catch_segvs"
698dcdb6 4024
eb4efbdc
VZ
4025 if test "$enableval" = yes; then
4026 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
4027 else
4028 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
4029 fi
698dcdb6 4030
eb4efbdc 4031else
698dcdb6 4032
eb4efbdc
VZ
4033 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
4034 if test "x$LINE" != x ; then
4035 eval "DEFAULT_$LINE"
4036 else
4037 no_cache=1
4038 fi
4039
4040 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
698dcdb6
VZ
4041
4042fi
eb4efbdc
VZ
4043
4044
4045 eval "$ac_cv_use_catch_segvs"
4046 if test "$no_cache" != 1; then
4047 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
4048 fi
4049
4050 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
698dcdb6 4051 echo "$ac_t""yes" 1>&6
eb4efbdc 4052 else
698dcdb6 4053 echo "$ac_t""no" 1>&6
eb4efbdc 4054 fi
698dcdb6 4055
eb4efbdc 4056
698dcdb6 4057 echo $ac_n "checking for --enable-snglinst""... $ac_c" 1>&6
b3e8d00a 4058echo "configure:4059: checking for --enable-snglinst" >&5
4f3c5f06
VZ
4059 no_cache=0
4060 # Check whether --enable-snglinst or --disable-snglinst was given.
4061if test "${enable_snglinst+set}" = set; then
4062 enableval="$enable_snglinst"
698dcdb6 4063
4f3c5f06
VZ
4064 if test "$enableval" = yes; then
4065 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
4066 else
4067 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
4068 fi
698dcdb6 4069
4f3c5f06 4070else
698dcdb6 4071
4f3c5f06
VZ
4072 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${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_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
698dcdb6
VZ
4080
4081fi
4f3c5f06
VZ
4082
4083
4084 eval "$ac_cv_use_snglinst"
4085 if test "$no_cache" != 1; then
4086 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
4087 fi
4088
4089 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
698dcdb6 4090 echo "$ac_t""yes" 1>&6
4f3c5f06 4091 else
698dcdb6 4092 echo "$ac_t""no" 1>&6
4f3c5f06 4093 fi
698dcdb6
VZ
4094
4095
eb4efbdc 4096
1e6feb95 4097 echo $ac_n "checking for --enable-mimetype""... $ac_c" 1>&6
b3e8d00a 4098echo "configure:4099: checking for --enable-mimetype" >&5
1e6feb95
VZ
4099 no_cache=0
4100 # Check whether --enable-mimetype or --disable-mimetype was given.
4101if test "${enable_mimetype+set}" = set; then
4102 enableval="$enable_mimetype"
4103
4104 if test "$enableval" = yes; then
4105 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
4106 else
4107 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
4108 fi
4109
4110else
4111
4112 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
4113 if test "x$LINE" != x ; then
4114 eval "DEFAULT_$LINE"
4115 else
4116 no_cache=1
4117 fi
4118
4119 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
4120
4121fi
4122
4123
4124 eval "$ac_cv_use_mimetype"
4125 if test "$no_cache" != 1; then
4126 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
4127 fi
4128
4129 if test "$wxUSE_MIMETYPE" = yes; then
4130 echo "$ac_t""yes" 1>&6
4131 else
4132 echo "$ac_t""no" 1>&6
4133 fi
4134
4135
3e44f09d 4136 echo $ac_n "checking for --enable-system_options""... $ac_c" 1>&6
b3e8d00a 4137echo "configure:4138: checking for --enable-system_options" >&5
3e44f09d
VZ
4138 no_cache=0
4139 # Check whether --enable-system_options or --disable-system_options was given.
4140if test "${enable_system_options+set}" = set; then
4141 enableval="$enable_system_options"
4142
4143 if test "$enableval" = yes; then
4144 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
4145 else
4146 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
4147 fi
4148
4149else
4150
4151 LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${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_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
4159
4160fi
4161
4162
4163 eval "$ac_cv_use_system_options"
4164 if test "$no_cache" != 1; then
4165 echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
4166 fi
4167
4168 if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
4169 echo "$ac_t""yes" 1>&6
4170 else
4171 echo "$ac_t""no" 1>&6
4172 fi
4173
4174
1e6feb95 4175
698dcdb6
VZ
4176
4177 echo $ac_n "checking for --enable-threads""... $ac_c" 1>&6
b3e8d00a 4178echo "configure:4179: checking for --enable-threads" >&5
10f2d63a
VZ
4179 no_cache=0
4180 # Check whether --enable-threads or --disable-threads was given.
4181if test "${enable_threads+set}" = set; then
4182 enableval="$enable_threads"
698dcdb6 4183
10f2d63a
VZ
4184 if test "$enableval" = yes; then
4185 ac_cv_use_threads='wxUSE_THREADS=yes'
4186 else
4187 ac_cv_use_threads='wxUSE_THREADS=no'
4188 fi
698dcdb6 4189
10f2d63a 4190else
698dcdb6 4191
10f2d63a
VZ
4192 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
4193 if test "x$LINE" != x ; then
4194 eval "DEFAULT_$LINE"
4195 else
4196 no_cache=1
4197 fi
4198
4199 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
698dcdb6
VZ
4200
4201fi
10f2d63a
VZ
4202
4203
4204 eval "$ac_cv_use_threads"
4205 if test "$no_cache" != 1; then
4206 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
4207 fi
4208
4209 if test "$wxUSE_THREADS" = yes; then
698dcdb6 4210 echo "$ac_t""yes" 1>&6
10f2d63a 4211 else
698dcdb6 4212 echo "$ac_t""no" 1>&6
10f2d63a 4213 fi
698dcdb6 4214
10f2d63a 4215
698dcdb6 4216 echo $ac_n "checking for --enable-serial""... $ac_c" 1>&6
b3e8d00a 4217echo "configure:4218: checking for --enable-serial" >&5
10f2d63a
VZ
4218 no_cache=0
4219 # Check whether --enable-serial or --disable-serial was given.
4220if test "${enable_serial+set}" = set; then
4221 enableval="$enable_serial"
698dcdb6 4222
10f2d63a
VZ
4223 if test "$enableval" = yes; then
4224 ac_cv_use_serial='wxUSE_SERIAL=yes'
4225 else
4226 ac_cv_use_serial='wxUSE_SERIAL=no'
4227 fi
698dcdb6 4228
10f2d63a 4229else
698dcdb6 4230
10f2d63a
VZ
4231 LINE=`grep "wxUSE_SERIAL" ${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_serial='wxUSE_SERIAL='$DEFAULT_wxUSE_SERIAL
698dcdb6
VZ
4239
4240fi
10f2d63a
VZ
4241
4242
4243 eval "$ac_cv_use_serial"
4244 if test "$no_cache" != 1; then
4245 echo $ac_cv_use_serial >> ${wx_arg_cache_file}.tmp
4246 fi
4247
4248 if test "$wxUSE_SERIAL" = 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
b12915c1
VZ
4255if test "$wxUSE_GUI" = "yes"; then
4256
698dcdb6
VZ
4257
4258
4259 echo $ac_n "checking for --enable-docview""... $ac_c" 1>&6
b3e8d00a 4260echo "configure:4261: checking for --enable-docview" >&5
10f2d63a
VZ
4261 no_cache=0
4262 # Check whether --enable-docview or --disable-docview was given.
4263if test "${enable_docview+set}" = set; then
4264 enableval="$enable_docview"
698dcdb6 4265
10f2d63a
VZ
4266 if test "$enableval" = yes; then
4267 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
4268 else
4269 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
4270 fi
698dcdb6 4271
10f2d63a 4272else
698dcdb6 4273
10f2d63a
VZ
4274 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
4275 if test "x$LINE" != x ; then
4276 eval "DEFAULT_$LINE"
4277 else
4278 no_cache=1
4279 fi
4280
4281 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
698dcdb6
VZ
4282
4283fi
10f2d63a
VZ
4284
4285
4286 eval "$ac_cv_use_docview"
4287 if test "$no_cache" != 1; then
4288 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
4289 fi
4290
4291 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
698dcdb6 4292 echo "$ac_t""yes" 1>&6
10f2d63a 4293 else
698dcdb6 4294 echo "$ac_t""no" 1>&6
10f2d63a 4295 fi
698dcdb6 4296
10f2d63a 4297
698dcdb6 4298 echo $ac_n "checking for --enable-help""... $ac_c" 1>&6
b3e8d00a 4299echo "configure:4300: checking for --enable-help" >&5
10f2d63a
VZ
4300 no_cache=0
4301 # Check whether --enable-help or --disable-help was given.
4302if test "${enable_help+set}" = set; then
4303 enableval="$enable_help"
698dcdb6 4304
10f2d63a
VZ
4305 if test "$enableval" = yes; then
4306 ac_cv_use_help='wxUSE_HELP=yes'
4307 else
4308 ac_cv_use_help='wxUSE_HELP=no'
4309 fi
698dcdb6 4310
10f2d63a 4311else
698dcdb6 4312
10f2d63a
VZ
4313 LINE=`grep "wxUSE_HELP" ${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_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
698dcdb6
VZ
4321
4322fi
10f2d63a
VZ
4323
4324
4325 eval "$ac_cv_use_help"
4326 if test "$no_cache" != 1; then
4327 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
4328 fi
4329
4330 if test "$wxUSE_HELP" = 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
29fd3c0c 4337 echo $ac_n "checking for --enable-mshtmlhelp""... $ac_c" 1>&6
b3e8d00a 4338echo "configure:4339: checking for --enable-mshtmlhelp" >&5
29fd3c0c
VS
4339 no_cache=0
4340 # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
4341if test "${enable_mshtmlhelp+set}" = set; then
4342 enableval="$enable_mshtmlhelp"
4343
4344 if test "$enableval" = yes; then
4345 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
4346 else
4347 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
4348 fi
4349
4350else
4351
4352 LINE=`grep "wxUSE_MS_HTML_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_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
4360
4361fi
4362
4363
4364 eval "$ac_cv_use_mshtmlhelp"
4365 if test "$no_cache" != 1; then
4366 echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
4367 fi
4368
4369 if test "$wxUSE_MS_HTML_HELP" = yes; then
4370 echo "$ac_t""yes" 1>&6
4371 else
4372 echo "$ac_t""no" 1>&6
4373 fi
4374
4375
3379ed37 4376 echo $ac_n "checking for --enable-html""... $ac_c" 1>&6
b3e8d00a 4377echo "configure:4378: checking for --enable-html" >&5
3379ed37
VZ
4378 no_cache=0
4379 # Check whether --enable-html or --disable-html was given.
4380if test "${enable_html+set}" = set; then
4381 enableval="$enable_html"
4382
4383 if test "$enableval" = yes; then
4384 ac_cv_use_html='wxUSE_HTML=yes'
4385 else
4386 ac_cv_use_html='wxUSE_HTML=no'
4387 fi
4388
4389else
4390
4391 LINE=`grep "wxUSE_HTML" ${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_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
4399
4400fi
4401
4402
4403 eval "$ac_cv_use_html"
4404 if test "$no_cache" != 1; then
4405 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
4406 fi
4407
4408 if test "$wxUSE_HTML" = yes; then
4409 echo "$ac_t""yes" 1>&6
4410 else
4411 echo "$ac_t""no" 1>&6
4412 fi
4413
4414
4415 echo $ac_n "checking for --enable-htmlhelp""... $ac_c" 1>&6
b3e8d00a 4416echo "configure:4417: checking for --enable-htmlhelp" >&5
3379ed37
VZ
4417 no_cache=0
4418 # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
4419if test "${enable_htmlhelp+set}" = set; then
4420 enableval="$enable_htmlhelp"
4421
4422 if test "$enableval" = yes; then
4423 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
4424 else
4425 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
4426 fi
4427
4428else
4429
4430 LINE=`grep "wxUSE_WXHTML_HELP" ${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_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
4438
4439fi
4440
4441
4442 eval "$ac_cv_use_htmlhelp"
4443 if test "$no_cache" != 1; then
4444 echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
4445 fi
4446
4447 if test "$wxUSE_WXHTML_HELP" = yes; then
4448 echo "$ac_t""yes" 1>&6
4449 else
4450 echo "$ac_t""no" 1>&6
4451 fi
4452
4453
698dcdb6 4454 echo $ac_n "checking for --enable-constraints""... $ac_c" 1>&6
b3e8d00a 4455echo "configure:4456: checking for --enable-constraints" >&5
10f2d63a
VZ
4456 no_cache=0
4457 # Check whether --enable-constraints or --disable-constraints was given.
4458if test "${enable_constraints+set}" = set; then
4459 enableval="$enable_constraints"
698dcdb6 4460
10f2d63a
VZ
4461 if test "$enableval" = yes; then
4462 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
4463 else
4464 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
4465 fi
698dcdb6 4466
10f2d63a 4467else
698dcdb6 4468
10f2d63a
VZ
4469 LINE=`grep "wxUSE_CONSTRAINTS" ${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_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
698dcdb6
VZ
4477
4478fi
10f2d63a
VZ
4479
4480
4481 eval "$ac_cv_use_constraints"
4482 if test "$no_cache" != 1; then
4483 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
4484 fi
4485
4486 if test "$wxUSE_CONSTRAINTS" = yes; then
698dcdb6 4487 echo "$ac_t""yes" 1>&6
10f2d63a 4488 else
698dcdb6 4489 echo "$ac_t""no" 1>&6
10f2d63a 4490 fi
698dcdb6 4491
10f2d63a 4492
698dcdb6 4493 echo $ac_n "checking for --enable-printarch""... $ac_c" 1>&6
b3e8d00a 4494echo "configure:4495: checking for --enable-printarch" >&5
10f2d63a
VZ
4495 no_cache=0
4496 # Check whether --enable-printarch or --disable-printarch was given.
4497if test "${enable_printarch+set}" = set; then
4498 enableval="$enable_printarch"
698dcdb6 4499
10f2d63a
VZ
4500 if test "$enableval" = yes; then
4501 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
4502 else
4503 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
4504 fi
698dcdb6 4505
10f2d63a 4506else
698dcdb6 4507
10f2d63a
VZ
4508 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${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_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
698dcdb6
VZ
4516
4517fi
10f2d63a
VZ
4518
4519
4520 eval "$ac_cv_use_printarch"
4521 if test "$no_cache" != 1; then
4522 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
4523 fi
4524
4525 if test "$wxUSE_PRINTING_ARCHITECTURE" = 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-mdi""... $ac_c" 1>&6
b3e8d00a 4533echo "configure:4534: checking for --enable-mdi" >&5
10f2d63a
VZ
4534 no_cache=0
4535 # Check whether --enable-mdi or --disable-mdi was given.
4536if test "${enable_mdi+set}" = set; then
4537 enableval="$enable_mdi"
698dcdb6 4538
10f2d63a
VZ
4539 if test "$enableval" = yes; then
4540 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes'
4541 else
4542 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no'
4543 fi
698dcdb6 4544
10f2d63a 4545else
698dcdb6 4546
10f2d63a
VZ
4547 LINE=`grep "wxUSE_MDI_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_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
698dcdb6
VZ
4555
4556fi
10f2d63a
VZ
4557
4558
4559 eval "$ac_cv_use_mdi"
4560 if test "$no_cache" != 1; then
4561 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
4562 fi
4563
4564 if test "$wxUSE_MDI_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
VZ
4569
4570
1e6feb95 4571 echo $ac_n "checking for --enable-loggui""... $ac_c" 1>&6
b3e8d00a 4572echo "configure:4573: checking for --enable-loggui" >&5
1e6feb95
VZ
4573 no_cache=0
4574 # Check whether --enable-loggui or --disable-loggui was given.
4575if test "${enable_loggui+set}" = set; then
4576 enableval="$enable_loggui"
4577
4578 if test "$enableval" = yes; then
4579 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
4580 else
4581 ac_cv_use_loggui='wxUSE_LOGGUI=no'
4582 fi
4583
4584else
4585
4586 LINE=`grep "wxUSE_LOGGUI" ${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_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
4594
4595fi
4596
4597
4598 eval "$ac_cv_use_loggui"
4599 if test "$no_cache" != 1; then
4600 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
4601 fi
4602
4603 if test "$wxUSE_LOGGUI" = yes; then
4604 echo "$ac_t""yes" 1>&6
4605 else
4606 echo "$ac_t""no" 1>&6
4607 fi
4608
4609
4610 echo $ac_n "checking for --enable-logwin""... $ac_c" 1>&6
b3e8d00a 4611echo "configure:4612: checking for --enable-logwin" >&5
1e6feb95
VZ
4612 no_cache=0
4613 # Check whether --enable-logwin or --disable-logwin was given.
4614if test "${enable_logwin+set}" = set; then
4615 enableval="$enable_logwin"
4616
4617 if test "$enableval" = yes; then
4618 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
4619 else
4620 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
4621 fi
4622
4623else
4624
4625 LINE=`grep "wxUSE_LOGWINDOW" ${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_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
4633
4634fi
4635
4636
4637 eval "$ac_cv_use_logwin"
4638 if test "$no_cache" != 1; then
4639 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
4640 fi
4641
4642 if test "$wxUSE_LOGWINDOW" = yes; then
4643 echo "$ac_t""yes" 1>&6
4644 else
4645 echo "$ac_t""no" 1>&6
4646 fi
4647
4648
10f2d63a 4649
698dcdb6 4650 echo $ac_n "checking for --enable-postscript""... $ac_c" 1>&6
b3e8d00a 4651echo "configure:4652: checking for --enable-postscript" >&5
10f2d63a
VZ
4652 no_cache=0
4653 # Check whether --enable-postscript or --disable-postscript was given.
4654if test "${enable_postscript+set}" = set; then
4655 enableval="$enable_postscript"
698dcdb6 4656
10f2d63a
VZ
4657 if test "$enableval" = yes; then
4658 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
4659 else
4660 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
4661 fi
698dcdb6 4662
10f2d63a 4663else
698dcdb6 4664
10f2d63a
VZ
4665 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
4666 if test "x$LINE" != x ; then
4667 eval "DEFAULT_$LINE"
4668 else
4669 no_cache=1
4670 fi
4671
4672 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
698dcdb6
VZ
4673
4674fi
10f2d63a
VZ
4675
4676
4677 eval "$ac_cv_use_postscript"
4678 if test "$no_cache" != 1; then
4679 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
4680 fi
4681
4682 if test "$wxUSE_POSTSCRIPT" = yes; then
698dcdb6 4683 echo "$ac_t""yes" 1>&6
10f2d63a 4684 else
698dcdb6 4685 echo "$ac_t""no" 1>&6
10f2d63a 4686 fi
698dcdb6
VZ
4687
4688
4689
10f2d63a 4690
1e6feb95 4691
698dcdb6 4692 echo $ac_n "checking for --enable-prologio""... $ac_c" 1>&6
b3e8d00a 4693echo "configure:4694: checking for --enable-prologio" >&5
10f2d63a
VZ
4694 no_cache=0
4695 # Check whether --enable-prologio or --disable-prologio was given.
4696if test "${enable_prologio+set}" = set; then
4697 enableval="$enable_prologio"
698dcdb6 4698
10f2d63a
VZ
4699 if test "$enableval" = yes; then
4700 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
4701 else
4702 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
4703 fi
698dcdb6 4704
10f2d63a 4705else
698dcdb6 4706
10f2d63a
VZ
4707 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
4708 if test "x$LINE" != x ; then
4709 eval "DEFAULT_$LINE"
4710 else
4711 no_cache=1
4712 fi
4713
4714 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
698dcdb6
VZ
4715
4716fi
10f2d63a
VZ
4717
4718
4719 eval "$ac_cv_use_prologio"
4720 if test "$no_cache" != 1; then
4721 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
4722 fi
4723
4724 if test "$wxUSE_PROLOGIO" = yes; then
698dcdb6 4725 echo "$ac_t""yes" 1>&6
10f2d63a 4726 else
698dcdb6 4727 echo "$ac_t""no" 1>&6
10f2d63a 4728 fi
698dcdb6 4729
10f2d63a 4730
698dcdb6 4731 echo $ac_n "checking for --enable-resources""... $ac_c" 1>&6
b3e8d00a 4732echo "configure:4733: checking for --enable-resources" >&5
10f2d63a
VZ
4733 no_cache=0
4734 # Check whether --enable-resources or --disable-resources was given.
4735if test "${enable_resources+set}" = set; then
4736 enableval="$enable_resources"
698dcdb6 4737
10f2d63a
VZ
4738 if test "$enableval" = yes; then
4739 ac_cv_use_resources='wxUSE_RESOURCES=yes'
4740 else
4741 ac_cv_use_resources='wxUSE_RESOURCES=no'
4742 fi
698dcdb6 4743
10f2d63a 4744else
698dcdb6 4745
10f2d63a
VZ
4746 LINE=`grep "wxUSE_RESOURCES" ${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_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
698dcdb6
VZ
4754
4755fi
10f2d63a
VZ
4756
4757
4758 eval "$ac_cv_use_resources"
4759 if test "$no_cache" != 1; then
4760 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
4761 fi
4762
4763 if test "$wxUSE_RESOURCES" = 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
VZ
4770
4771 echo $ac_n "checking for --enable-xresources""... $ac_c" 1>&6
b3e8d00a 4772echo "configure:4773: checking for --enable-xresources" >&5
10f2d63a
VZ
4773 no_cache=0
4774 # Check whether --enable-xresources or --disable-xresources was given.
4775if test "${enable_xresources+set}" = set; then
4776 enableval="$enable_xresources"
698dcdb6 4777
10f2d63a
VZ
4778 if test "$enableval" = yes; then
4779 ac_cv_use_xresources='wxUSE_X_RESOURCES=yes'
4780 else
4781 ac_cv_use_xresources='wxUSE_X_RESOURCES=no'
4782 fi
698dcdb6 4783
10f2d63a 4784else
698dcdb6 4785
10f2d63a
VZ
4786 LINE=`grep "wxUSE_X_RESOURCES" ${wx_arg_cache_file}`
4787 if test "x$LINE" != x ; then
4788 eval "DEFAULT_$LINE"
4789 else
4790 no_cache=1
4791 fi
4792
4793 ac_cv_use_xresources='wxUSE_X_RESOURCES='$DEFAULT_wxUSE_X_RESOURCES
698dcdb6
VZ
4794
4795fi
10f2d63a
VZ
4796
4797
4798 eval "$ac_cv_use_xresources"
4799 if test "$no_cache" != 1; then
4800 echo $ac_cv_use_xresources >> ${wx_arg_cache_file}.tmp
4801 fi
4802
4803 if test "$wxUSE_X_RESOURCES" = yes; then
698dcdb6 4804 echo "$ac_t""yes" 1>&6
10f2d63a 4805 else
698dcdb6 4806 echo "$ac_t""no" 1>&6
10f2d63a 4807 fi
698dcdb6
VZ
4808
4809
10f2d63a 4810
698dcdb6
VZ
4811
4812 echo $ac_n "checking for --enable-clipboard""... $ac_c" 1>&6
b3e8d00a 4813echo "configure:4814: checking for --enable-clipboard" >&5
10f2d63a
VZ
4814 no_cache=0
4815 # Check whether --enable-clipboard or --disable-clipboard was given.
4816if test "${enable_clipboard+set}" = set; then
4817 enableval="$enable_clipboard"
698dcdb6 4818
10f2d63a
VZ
4819 if test "$enableval" = yes; then
4820 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
4821 else
4822 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
4823 fi
698dcdb6 4824
10f2d63a 4825else
698dcdb6 4826
10f2d63a
VZ
4827 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
4828 if test "x$LINE" != x ; then
4829 eval "DEFAULT_$LINE"
4830 else
4831 no_cache=1
4832 fi
4833
4834 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
698dcdb6
VZ
4835
4836fi
10f2d63a
VZ
4837
4838
4839 eval "$ac_cv_use_clipboard"
4840 if test "$no_cache" != 1; then
4841 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
4842 fi
4843
4844 if test "$wxUSE_CLIPBOARD" = yes; then
698dcdb6 4845 echo "$ac_t""yes" 1>&6
10f2d63a 4846 else
698dcdb6 4847 echo "$ac_t""no" 1>&6
10f2d63a 4848 fi
698dcdb6 4849
10f2d63a 4850
698dcdb6 4851 echo $ac_n "checking for --enable-dnd""... $ac_c" 1>&6
b3e8d00a 4852echo "configure:4853: checking for --enable-dnd" >&5
10f2d63a
VZ
4853 no_cache=0
4854 # Check whether --enable-dnd or --disable-dnd was given.
4855if test "${enable_dnd+set}" = set; then
4856 enableval="$enable_dnd"
698dcdb6 4857
10f2d63a
VZ
4858 if test "$enableval" = yes; then
4859 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
4860 else
4861 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
4862 fi
698dcdb6 4863
10f2d63a 4864else
698dcdb6 4865
10f2d63a
VZ
4866 LINE=`grep "wxUSE_DRAG_AND_DROP" ${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_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
698dcdb6
VZ
4874
4875fi
10f2d63a
VZ
4876
4877
4878 eval "$ac_cv_use_dnd"
4879 if test "$no_cache" != 1; then
4880 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
4881 fi
4882
4883 if test "$wxUSE_DRAG_AND_DROP" = 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-metafile""... $ac_c" 1>&6
b3e8d00a 4891echo "configure:4892: checking for --enable-metafile" >&5
b64f0a5f
RL
4892 no_cache=0
4893 # Check whether --enable-metafile or --disable-metafile was given.
4894if test "${enable_metafile+set}" = set; then
4895 enableval="$enable_metafile"
698dcdb6 4896
b64f0a5f
RL
4897 if test "$enableval" = yes; then
4898 ac_cv_use_metafile='wxUSE_METAFILE=yes'
4899 else
4900 ac_cv_use_metafile='wxUSE_METAFILE=no'
4901 fi
698dcdb6 4902
b64f0a5f 4903else
698dcdb6 4904
b64f0a5f
RL
4905 LINE=`grep "wxUSE_METAFILE" ${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_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
698dcdb6
VZ
4913
4914fi
b64f0a5f
RL
4915
4916
4917 eval "$ac_cv_use_metafile"
4918 if test "$no_cache" != 1; then
4919 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
4920 fi
4921
4922 if test "$wxUSE_METAFILE" = yes; then
698dcdb6 4923 echo "$ac_t""yes" 1>&6
b64f0a5f 4924 else
698dcdb6 4925 echo "$ac_t""no" 1>&6
b64f0a5f 4926 fi
698dcdb6
VZ
4927
4928
10f2d63a 4929
24176f2c 4930 echo $ac_n "checking for --enable-treelayout""... $ac_c" 1>&6
b3e8d00a 4931echo "configure:4932: checking for --enable-treelayout" >&5
10f2d63a 4932 no_cache=0
24176f2c
GD
4933 # Check whether --enable-treelayout or --disable-treelayout was given.
4934if test "${enable_treelayout+set}" = set; then
4935 enableval="$enable_treelayout"
698dcdb6 4936
10f2d63a 4937 if test "$enableval" = yes; then
24176f2c 4938 ac_cv_use_treelayout='wxUSE_TREELAYOUT=yes'
10f2d63a 4939 else
24176f2c 4940 ac_cv_use_treelayout='wxUSE_TREELAYOUT=no'
10f2d63a 4941 fi
698dcdb6 4942
10f2d63a 4943else
698dcdb6 4944
24176f2c 4945 LINE=`grep "wxUSE_TREELAYOUT" ${wx_arg_cache_file}`
10f2d63a
VZ
4946 if test "x$LINE" != x ; then
4947 eval "DEFAULT_$LINE"
4948 else
4949 no_cache=1
4950 fi
4951
24176f2c 4952 ac_cv_use_treelayout='wxUSE_TREELAYOUT='$DEFAULT_wxUSE_TREELAYOUT
698dcdb6
VZ
4953
4954fi
10f2d63a
VZ
4955
4956
24176f2c 4957 eval "$ac_cv_use_treelayout"
10f2d63a 4958 if test "$no_cache" != 1; then
24176f2c 4959 echo $ac_cv_use_treelayout >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4960 fi
4961
24176f2c 4962 if test "$wxUSE_TREELAYOUT" = yes; then
698dcdb6 4963 echo "$ac_t""yes" 1>&6
10f2d63a 4964 else
698dcdb6 4965 echo "$ac_t""no" 1>&6
10f2d63a 4966 fi
698dcdb6 4967
10f2d63a 4968
698dcdb6
VZ
4969
4970
4971 echo $ac_n "checking for --enable-controls""... $ac_c" 1>&6
b3e8d00a 4972echo "configure:4973: checking for --enable-controls" >&5
10f2d63a
VZ
4973 no_cache=0
4974 # Check whether --enable-controls or --disable-controls was given.
4975if test "${enable_controls+set}" = set; then
4976 enableval="$enable_controls"
698dcdb6 4977
10f2d63a
VZ
4978 if test "$enableval" = yes; then
4979 ac_cv_use_controls='wxUSE_CONTROLS=yes'
4980 else
4981 ac_cv_use_controls='wxUSE_CONTROLS=no'
4982 fi
698dcdb6 4983
10f2d63a 4984else
698dcdb6 4985
10f2d63a
VZ
4986 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
4987 if test "x$LINE" != x ; then
4988 eval "DEFAULT_$LINE"
4989 else
4990 no_cache=1
4991 fi
4992
4993 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
698dcdb6
VZ
4994
4995fi
10f2d63a
VZ
4996
4997
4998 eval "$ac_cv_use_controls"
4999 if test "$no_cache" != 1; then
5000 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
5001 fi
5002
5003 if test "$wxUSE_CONTROLS" = yes; then
698dcdb6 5004 echo "$ac_t""yes" 1>&6
10f2d63a 5005 else
698dcdb6 5006 echo "$ac_t""no" 1>&6
10f2d63a 5007 fi
698dcdb6 5008
10f2d63a
VZ
5009
5010if test "$wxUSE_CONTROLS" = "yes"; then
5011 DEFAULT_wxUSE_ACCEL=yes
1e6feb95
VZ
5012 DEFAULT_wxUSE_BMPBUTTON=yes
5013 DEFAULT_wxUSE_BUTTON=yes
5014 DEFAULT_wxUSE_CALCTRL=no
10f2d63a
VZ
5015 DEFAULT_wxUSE_CARET=yes
5016 DEFAULT_wxUSE_COMBOBOX=yes
10f2d63a
VZ
5017 DEFAULT_wxUSE_CHECKBOX=yes
5018 DEFAULT_wxUSE_CHECKLISTBOX=yes
5019 DEFAULT_wxUSE_CHOICE=yes
5020 DEFAULT_wxUSE_GAUGE=yes
5021 DEFAULT_wxUSE_GRID=yes
cc977e5f 5022 DEFAULT_wxUSE_NEW_GRID=yes
10f2d63a
VZ
5023 DEFAULT_wxUSE_IMAGLIST=yes
5024 DEFAULT_wxUSE_LISTBOX=yes
5025 DEFAULT_wxUSE_LISTCTRL=yes
5026 DEFAULT_wxUSE_NOTEBOOK=yes
24176f2c 5027 DEFAULT_wxUSE_PROPSHEET=yes
10f2d63a
VZ
5028 DEFAULT_wxUSE_RADIOBOX=yes
5029 DEFAULT_wxUSE_RADIOBTN=yes
5030 DEFAULT_wxUSE_SASH=yes
5031 DEFAULT_wxUSE_SCROLLBAR=yes
5032 DEFAULT_wxUSE_SLIDER=yes
5033 DEFAULT_wxUSE_SPINBTN=yes
56cfaa52 5034 DEFAULT_wxUSE_SPINCTRL=yes
10f2d63a
VZ
5035 DEFAULT_wxUSE_SPLITTER=yes
5036 DEFAULT_wxUSE_STATBMP=yes
5037 DEFAULT_wxUSE_STATBOX=yes
5038 DEFAULT_wxUSE_STATLINE=yes
5039 DEFAULT_wxUSE_STATUSBAR=yes
5040 DEFAULT_wxUSE_TAB_DIALOG=yes
1db8dc4a 5041 DEFAULT_wxUSE_TOGGLEBTN=yes
10f2d63a 5042 DEFAULT_wxUSE_TOOLBAR=yes
360d6699
VZ
5043 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
5044 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
10f2d63a
VZ
5045 DEFAULT_wxUSE_TOOLTIPS=yes
5046 DEFAULT_wxUSE_TREECTRL=yes
9f41d601 5047 DEFAULT_wxUSE_POPUPWIN=yes
10f2d63a
VZ
5048elif test "$wxUSE_CONTROLS" = "no"; then
5049 DEFAULT_wxUSE_ACCEL=no
1e6feb95
VZ
5050 DEFAULT_wxUSE_BMPBUTTON=no
5051 DEFAULT_wxUSE_BUTTON=no
5052 DEFAULT_wxUSE_CALCTRL=no
10f2d63a
VZ
5053 DEFAULT_wxUSE_CARET=no
5054 DEFAULT_wxUSE_COMBOBOX=no
10f2d63a
VZ
5055 DEFAULT_wxUSE_CHECKBOX=no
5056 DEFAULT_wxUSE_CHECKLISTBOX=no
5057 DEFAULT_wxUSE_CHOICE=no
5058 DEFAULT_wxUSE_GAUGE=no
5059 DEFAULT_wxUSE_GRID=no
5060 DEFAULT_wxUSE_NEW_GRID=no
5061 DEFAULT_wxUSE_IMAGLIST=no
5062 DEFAULT_wxUSE_LISTBOX=no
5063 DEFAULT_wxUSE_LISTCTRL=no
5064 DEFAULT_wxUSE_NOTEBOOK=no
24176f2c 5065 DEFAULT_wxUSE_PROPSHEET=no
10f2d63a
VZ
5066 DEFAULT_wxUSE_RADIOBOX=no
5067 DEFAULT_wxUSE_RADIOBTN=no
5068 DEFAULT_wxUSE_SASH=no
5069 DEFAULT_wxUSE_SCROLLBAR=no
5070 DEFAULT_wxUSE_SLIDER=no
5071 DEFAULT_wxUSE_SPINBTN=no
56cfaa52 5072 DEFAULT_wxUSE_SPINCTRL=no
10f2d63a
VZ
5073 DEFAULT_wxUSE_SPLITTER=no
5074 DEFAULT_wxUSE_STATBMP=no
5075 DEFAULT_wxUSE_STATBOX=no
5076 DEFAULT_wxUSE_STATLINE=no
5077 DEFAULT_wxUSE_STATUSBAR=no
5078 DEFAULT_wxUSE_TAB_DIALOG=no
1db8dc4a 5079 DEFAULT_wxUSE_TOGGLEBTN=no
10f2d63a 5080 DEFAULT_wxUSE_TOOLBAR=no
360d6699
VZ
5081 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
5082 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
10f2d63a
VZ
5083 DEFAULT_wxUSE_TOOLTIPS=no
5084 DEFAULT_wxUSE_TREECTRL=no
9f41d601 5085 DEFAULT_wxUSE_POPUPWIN=no
10f2d63a
VZ
5086fi
5087
698dcdb6
VZ
5088
5089 echo $ac_n "checking for --enable-accel""... $ac_c" 1>&6
b3e8d00a 5090echo "configure:5091: checking for --enable-accel" >&5
10f2d63a
VZ
5091 no_cache=0
5092 # Check whether --enable-accel or --disable-accel was given.
5093if test "${enable_accel+set}" = set; then
5094 enableval="$enable_accel"
698dcdb6 5095
10f2d63a
VZ
5096 if test "$enableval" = yes; then
5097 ac_cv_use_accel='wxUSE_ACCEL=yes'
5098 else
5099 ac_cv_use_accel='wxUSE_ACCEL=no'
5100 fi
698dcdb6 5101
10f2d63a 5102else
698dcdb6 5103
10f2d63a
VZ
5104 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
5105 if test "x$LINE" != x ; then
5106 eval "DEFAULT_$LINE"
5107 else
5108 no_cache=1
5109 fi
5110
5111 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
698dcdb6
VZ
5112
5113fi
10f2d63a
VZ
5114
5115
5116 eval "$ac_cv_use_accel"
5117 if test "$no_cache" != 1; then
5118 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
5119 fi
5120
5121 if test "$wxUSE_ACCEL" = yes; then
698dcdb6 5122 echo "$ac_t""yes" 1>&6
10f2d63a 5123 else
698dcdb6 5124 echo "$ac_t""no" 1>&6
10f2d63a 5125 fi
698dcdb6 5126
10f2d63a 5127
1e6feb95 5128 echo $ac_n "checking for --enable-button""... $ac_c" 1>&6
b3e8d00a 5129echo "configure:5130: checking for --enable-button" >&5
10f2d63a 5130 no_cache=0
1e6feb95
VZ
5131 # Check whether --enable-button or --disable-button was given.
5132if test "${enable_button+set}" = set; then
5133 enableval="$enable_button"
698dcdb6 5134
10f2d63a 5135 if test "$enableval" = yes; then
1e6feb95 5136 ac_cv_use_button='wxUSE_BUTTON=yes'
10f2d63a 5137 else
1e6feb95 5138 ac_cv_use_button='wxUSE_BUTTON=no'
10f2d63a 5139 fi
698dcdb6 5140
10f2d63a 5141else
698dcdb6 5142
1e6feb95 5143 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
10f2d63a
VZ
5144 if test "x$LINE" != x ; then
5145 eval "DEFAULT_$LINE"
5146 else
5147 no_cache=1
5148 fi
5149
1e6feb95 5150 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
698dcdb6
VZ
5151
5152fi
10f2d63a
VZ
5153
5154
1e6feb95 5155 eval "$ac_cv_use_button"
10f2d63a 5156 if test "$no_cache" != 1; then
1e6feb95 5157 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
5158 fi
5159
1e6feb95 5160 if test "$wxUSE_BUTTON" = yes; then
698dcdb6 5161 echo "$ac_t""yes" 1>&6
10f2d63a 5162 else
698dcdb6 5163 echo "$ac_t""no" 1>&6
10f2d63a 5164 fi
698dcdb6 5165
10f2d63a 5166
698dcdb6 5167 echo $ac_n "checking for --enable-bmpbutton""... $ac_c" 1>&6
b3e8d00a 5168echo "configure:5169: checking for --enable-bmpbutton" >&5
10f2d63a
VZ
5169 no_cache=0
5170 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
5171if test "${enable_bmpbutton+set}" = set; then
5172 enableval="$enable_bmpbutton"
698dcdb6 5173
10f2d63a
VZ
5174 if test "$enableval" = yes; then
5175 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
5176 else
5177 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
5178 fi
698dcdb6 5179
10f2d63a 5180else
698dcdb6 5181
10f2d63a
VZ
5182 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
5183 if test "x$LINE" != x ; then
5184 eval "DEFAULT_$LINE"
5185 else
5186 no_cache=1
5187 fi
5188
5189 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
698dcdb6
VZ
5190
5191fi
10f2d63a
VZ
5192
5193
5194 eval "$ac_cv_use_bmpbutton"
5195 if test "$no_cache" != 1; then
5196 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
5197 fi
5198
5199 if test "$wxUSE_BMPBUTTON" = yes; then
698dcdb6 5200 echo "$ac_t""yes" 1>&6
10f2d63a 5201 else
698dcdb6 5202 echo "$ac_t""no" 1>&6
10f2d63a 5203 fi
698dcdb6 5204
10f2d63a 5205
1e6feb95 5206 echo $ac_n "checking for --enable-calendar""... $ac_c" 1>&6
b3e8d00a 5207echo "configure:5208: checking for --enable-calendar" >&5
1e6feb95
VZ
5208 no_cache=0
5209 # Check whether --enable-calendar or --disable-calendar was given.
5210if test "${enable_calendar+set}" = set; then
5211 enableval="$enable_calendar"
5212
5213 if test "$enableval" = yes; then
5214 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
5215 else
5216 ac_cv_use_calendar='wxUSE_CALCTRL=no'
5217 fi
5218
5219else
5220
5221 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
5222 if test "x$LINE" != x ; then
5223 eval "DEFAULT_$LINE"
5224 else
5225 no_cache=1
5226 fi
5227
5228 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
5229
5230fi
5231
5232
5233 eval "$ac_cv_use_calendar"
5234 if test "$no_cache" != 1; then
5235 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
5236 fi
5237
5238 if test "$wxUSE_CALCTRL" = yes; then
5239 echo "$ac_t""yes" 1>&6
5240 else
5241 echo "$ac_t""no" 1>&6
5242 fi
5243
5244
5245 echo $ac_n "checking for --enable-caret""... $ac_c" 1>&6
b3e8d00a 5246echo "configure:5247: checking for --enable-caret" >&5
1e6feb95
VZ
5247 no_cache=0
5248 # Check whether --enable-caret or --disable-caret was given.
5249if test "${enable_caret+set}" = set; then
5250 enableval="$enable_caret"
5251
5252 if test "$enableval" = yes; then
5253 ac_cv_use_caret='wxUSE_CARET=yes'
5254 else
5255 ac_cv_use_caret='wxUSE_CARET=no'
5256 fi
5257
5258else
5259
5260 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
5261 if test "x$LINE" != x ; then
5262 eval "DEFAULT_$LINE"
5263 else
5264 no_cache=1
5265 fi
5266
5267 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
5268
5269fi
5270
5271
5272 eval "$ac_cv_use_caret"
5273 if test "$no_cache" != 1; then
5274 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
5275 fi
5276
5277 if test "$wxUSE_CARET" = yes; then
5278 echo "$ac_t""yes" 1>&6
5279 else
5280 echo "$ac_t""no" 1>&6
5281 fi
5282
5283
698dcdb6 5284 echo $ac_n "checking for --enable-checkbox""... $ac_c" 1>&6
b3e8d00a 5285echo "configure:5286: checking for --enable-checkbox" >&5
10f2d63a
VZ
5286 no_cache=0
5287 # Check whether --enable-checkbox or --disable-checkbox was given.
5288if test "${enable_checkbox+set}" = set; then
5289 enableval="$enable_checkbox"
698dcdb6 5290
10f2d63a
VZ
5291 if test "$enableval" = yes; then
5292 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
5293 else
5294 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
5295 fi
698dcdb6 5296
10f2d63a 5297else
698dcdb6 5298
10f2d63a
VZ
5299 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
5300 if test "x$LINE" != x ; then
5301 eval "DEFAULT_$LINE"
5302 else
5303 no_cache=1
5304 fi
5305
5306 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
698dcdb6
VZ
5307
5308fi
10f2d63a
VZ
5309
5310
5311 eval "$ac_cv_use_checkbox"
5312 if test "$no_cache" != 1; then
5313 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
5314 fi
5315
5316 if test "$wxUSE_CHECKBOX" = yes; then
698dcdb6 5317 echo "$ac_t""yes" 1>&6
10f2d63a 5318 else
698dcdb6 5319 echo "$ac_t""no" 1>&6
10f2d63a 5320 fi
698dcdb6 5321
10f2d63a 5322
698dcdb6 5323 echo $ac_n "checking for --enable-checklst""... $ac_c" 1>&6
b3e8d00a 5324echo "configure:5325: checking for --enable-checklst" >&5
10f2d63a
VZ
5325 no_cache=0
5326 # Check whether --enable-checklst or --disable-checklst was given.
5327if test "${enable_checklst+set}" = set; then
5328 enableval="$enable_checklst"
698dcdb6 5329
10f2d63a
VZ
5330 if test "$enableval" = yes; then
5331 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
5332 else
5333 ac_cv_use_checklst='wxUSE_CHECKLST=no'
5334 fi
698dcdb6 5335
10f2d63a 5336else
698dcdb6 5337
10f2d63a
VZ
5338 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
5339 if test "x$LINE" != x ; then
5340 eval "DEFAULT_$LINE"
5341 else
5342 no_cache=1
5343 fi
5344
5345 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
698dcdb6
VZ
5346
5347fi
10f2d63a
VZ
5348
5349
5350 eval "$ac_cv_use_checklst"
5351 if test "$no_cache" != 1; then
5352 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
5353 fi
5354
5355 if test "$wxUSE_CHECKLST" = yes; then
698dcdb6 5356 echo "$ac_t""yes" 1>&6
10f2d63a 5357 else
698dcdb6 5358 echo "$ac_t""no" 1>&6
10f2d63a 5359 fi
698dcdb6 5360
10f2d63a 5361
698dcdb6 5362 echo $ac_n "checking for --enable-choice""... $ac_c" 1>&6
b3e8d00a 5363echo "configure:5364: checking for --enable-choice" >&5
10f2d63a
VZ
5364 no_cache=0
5365 # Check whether --enable-choice or --disable-choice was given.
5366if test "${enable_choice+set}" = set; then
5367 enableval="$enable_choice"
698dcdb6 5368
10f2d63a
VZ
5369 if test "$enableval" = yes; then
5370 ac_cv_use_choice='wxUSE_CHOICE=yes'
5371 else
5372 ac_cv_use_choice='wxUSE_CHOICE=no'
5373 fi
698dcdb6 5374
10f2d63a 5375else
698dcdb6 5376
10f2d63a
VZ
5377 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
5378 if test "x$LINE" != x ; then
5379 eval "DEFAULT_$LINE"
5380 else
5381 no_cache=1
5382 fi
5383
5384 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
698dcdb6
VZ
5385
5386fi
10f2d63a
VZ
5387
5388
5389 eval "$ac_cv_use_choice"
5390 if test "$no_cache" != 1; then
5391 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
5392 fi
5393
5394 if test "$wxUSE_CHOICE" = yes; then
698dcdb6 5395 echo "$ac_t""yes" 1>&6
10f2d63a 5396 else
698dcdb6 5397 echo "$ac_t""no" 1>&6
10f2d63a 5398 fi
698dcdb6 5399
10f2d63a 5400
698dcdb6 5401 echo $ac_n "checking for --enable-combobox""... $ac_c" 1>&6
b3e8d00a 5402echo "configure:5403: checking for --enable-combobox" >&5
10f2d63a
VZ
5403 no_cache=0
5404 # Check whether --enable-combobox or --disable-combobox was given.
5405if test "${enable_combobox+set}" = set; then
5406 enableval="$enable_combobox"
698dcdb6 5407
10f2d63a
VZ
5408 if test "$enableval" = yes; then
5409 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
5410 else
5411 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
5412 fi
698dcdb6 5413
10f2d63a 5414else
698dcdb6 5415
10f2d63a
VZ
5416 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
5417 if test "x$LINE" != x ; then
5418 eval "DEFAULT_$LINE"
5419 else
5420 no_cache=1
5421 fi
5422
5423 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
698dcdb6
VZ
5424
5425fi
10f2d63a
VZ
5426
5427
5428 eval "$ac_cv_use_combobox"
5429 if test "$no_cache" != 1; then
5430 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
5431 fi
5432
5433 if test "$wxUSE_COMBOBOX" = yes; then
698dcdb6 5434 echo "$ac_t""yes" 1>&6
10f2d63a 5435 else
698dcdb6 5436 echo "$ac_t""no" 1>&6
10f2d63a 5437 fi
698dcdb6 5438
10f2d63a 5439
698dcdb6 5440 echo $ac_n "checking for --enable-gauge""... $ac_c" 1>&6
b3e8d00a 5441echo "configure:5442: checking for --enable-gauge" >&5
10f2d63a
VZ
5442 no_cache=0
5443 # Check whether --enable-gauge or --disable-gauge was given.
5444if test "${enable_gauge+set}" = set; then
5445 enableval="$enable_gauge"
698dcdb6 5446
10f2d63a
VZ
5447 if test "$enableval" = yes; then
5448 ac_cv_use_gauge='wxUSE_GAUGE=yes'
5449 else
5450 ac_cv_use_gauge='wxUSE_GAUGE=no'
5451 fi
698dcdb6 5452
10f2d63a 5453else
698dcdb6 5454
10f2d63a
VZ
5455 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
5456 if test "x$LINE" != x ; then
5457 eval "DEFAULT_$LINE"
5458 else
5459 no_cache=1
5460 fi
5461
5462 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
698dcdb6
VZ
5463
5464fi
10f2d63a
VZ
5465
5466
5467 eval "$ac_cv_use_gauge"
5468 if test "$no_cache" != 1; then
5469 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
5470 fi
5471
5472 if test "$wxUSE_GAUGE" = yes; then
698dcdb6 5473 echo "$ac_t""yes" 1>&6
10f2d63a 5474 else
698dcdb6 5475 echo "$ac_t""no" 1>&6
10f2d63a 5476 fi
698dcdb6 5477
10f2d63a 5478
698dcdb6 5479 echo $ac_n "checking for --enable-grid""... $ac_c" 1>&6
b3e8d00a 5480echo "configure:5481: checking for --enable-grid" >&5
10f2d63a
VZ
5481 no_cache=0
5482 # Check whether --enable-grid or --disable-grid was given.
5483if test "${enable_grid+set}" = set; then
5484 enableval="$enable_grid"
698dcdb6 5485
10f2d63a
VZ
5486 if test "$enableval" = yes; then
5487 ac_cv_use_grid='wxUSE_GRID=yes'
5488 else
5489 ac_cv_use_grid='wxUSE_GRID=no'
5490 fi
698dcdb6 5491
10f2d63a 5492else
698dcdb6 5493
10f2d63a
VZ
5494 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
5495 if test "x$LINE" != x ; then
5496 eval "DEFAULT_$LINE"
5497 else
5498 no_cache=1
5499 fi
5500
5501 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
698dcdb6
VZ
5502
5503fi
10f2d63a
VZ
5504
5505
5506 eval "$ac_cv_use_grid"
5507 if test "$no_cache" != 1; then
5508 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
5509 fi
5510
5511 if test "$wxUSE_GRID" = yes; then
698dcdb6 5512 echo "$ac_t""yes" 1>&6
10f2d63a 5513 else
698dcdb6 5514 echo "$ac_t""no" 1>&6
10f2d63a 5515 fi
698dcdb6 5516
10f2d63a 5517
698dcdb6 5518 echo $ac_n "checking for --enable-newgrid""... $ac_c" 1>&6
b3e8d00a 5519echo "configure:5520: checking for --enable-newgrid" >&5
10f2d63a
VZ
5520 no_cache=0
5521 # Check whether --enable-newgrid or --disable-newgrid was given.
5522if test "${enable_newgrid+set}" = set; then
5523 enableval="$enable_newgrid"
698dcdb6 5524
10f2d63a
VZ
5525 if test "$enableval" = yes; then
5526 ac_cv_use_newgrid='wxUSE_NEW_GRID=yes'
5527 else
5528 ac_cv_use_newgrid='wxUSE_NEW_GRID=no'
5529 fi
698dcdb6 5530
10f2d63a 5531else
698dcdb6 5532
10f2d63a
VZ
5533 LINE=`grep "wxUSE_NEW_GRID" ${wx_arg_cache_file}`
5534 if test "x$LINE" != x ; then
5535 eval "DEFAULT_$LINE"
5536 else
5537 no_cache=1
5538 fi
5539
5540 ac_cv_use_newgrid='wxUSE_NEW_GRID='$DEFAULT_wxUSE_NEW_GRID
698dcdb6
VZ
5541
5542fi
10f2d63a
VZ
5543
5544
5545 eval "$ac_cv_use_newgrid"
5546 if test "$no_cache" != 1; then
5547 echo $ac_cv_use_newgrid >> ${wx_arg_cache_file}.tmp
5548 fi
5549
5550 if test "$wxUSE_NEW_GRID" = yes; then
698dcdb6 5551 echo "$ac_t""yes" 1>&6
10f2d63a 5552 else
698dcdb6 5553 echo "$ac_t""no" 1>&6
10f2d63a 5554 fi
698dcdb6 5555
10f2d63a 5556
698dcdb6 5557 echo $ac_n "checking for --enable-imaglist""... $ac_c" 1>&6
b3e8d00a 5558echo "configure:5559: checking for --enable-imaglist" >&5
10f2d63a
VZ
5559 no_cache=0
5560 # Check whether --enable-imaglist or --disable-imaglist was given.
5561if test "${enable_imaglist+set}" = set; then
5562 enableval="$enable_imaglist"
698dcdb6 5563
10f2d63a
VZ
5564 if test "$enableval" = yes; then
5565 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
5566 else
5567 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
5568 fi
698dcdb6 5569
10f2d63a 5570else
698dcdb6 5571
10f2d63a
VZ
5572 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
5573 if test "x$LINE" != x ; then
5574 eval "DEFAULT_$LINE"
5575 else
5576 no_cache=1
5577 fi
5578
5579 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
698dcdb6
VZ
5580
5581fi
10f2d63a
VZ
5582
5583
5584 eval "$ac_cv_use_imaglist"
5585 if test "$no_cache" != 1; then
5586 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
5587 fi
5588
5589 if test "$wxUSE_IMAGLIST" = yes; then
698dcdb6 5590 echo "$ac_t""yes" 1>&6
10f2d63a 5591 else
698dcdb6 5592 echo "$ac_t""no" 1>&6
10f2d63a 5593 fi
698dcdb6 5594
10f2d63a 5595
698dcdb6 5596 echo $ac_n "checking for --enable-listbox""... $ac_c" 1>&6
b3e8d00a 5597echo "configure:5598: checking for --enable-listbox" >&5
10f2d63a
VZ
5598 no_cache=0
5599 # Check whether --enable-listbox or --disable-listbox was given.
5600if test "${enable_listbox+set}" = set; then
5601 enableval="$enable_listbox"
698dcdb6 5602
10f2d63a
VZ
5603 if test "$enableval" = yes; then
5604 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
5605 else
5606 ac_cv_use_listbox='wxUSE_LISTBOX=no'
5607 fi
698dcdb6 5608
10f2d63a 5609else
698dcdb6 5610
10f2d63a
VZ
5611 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
5612 if test "x$LINE" != x ; then
5613 eval "DEFAULT_$LINE"
5614 else
5615 no_cache=1
5616 fi
5617
5618 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
698dcdb6
VZ
5619
5620fi
10f2d63a
VZ
5621
5622
5623 eval "$ac_cv_use_listbox"
5624 if test "$no_cache" != 1; then
5625 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
5626 fi
5627
5628 if test "$wxUSE_LISTBOX" = yes; then
698dcdb6 5629 echo "$ac_t""yes" 1>&6
10f2d63a 5630 else
698dcdb6 5631 echo "$ac_t""no" 1>&6
10f2d63a 5632 fi
698dcdb6 5633
10f2d63a 5634
698dcdb6 5635 echo $ac_n "checking for --enable-listctrl""... $ac_c" 1>&6
b3e8d00a 5636echo "configure:5637: checking for --enable-listctrl" >&5
10f2d63a
VZ
5637 no_cache=0
5638 # Check whether --enable-listctrl or --disable-listctrl was given.
5639if test "${enable_listctrl+set}" = set; then
5640 enableval="$enable_listctrl"
698dcdb6 5641
10f2d63a
VZ
5642 if test "$enableval" = yes; then
5643 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
5644 else
5645 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
5646 fi
698dcdb6 5647
10f2d63a 5648else
698dcdb6 5649
10f2d63a
VZ
5650 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
5651 if test "x$LINE" != x ; then
5652 eval "DEFAULT_$LINE"
5653 else
5654 no_cache=1
5655 fi
5656
5657 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
698dcdb6
VZ
5658
5659fi
10f2d63a
VZ
5660
5661
5662 eval "$ac_cv_use_listctrl"
5663 if test "$no_cache" != 1; then
5664 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
5665 fi
5666
5667 if test "$wxUSE_LISTCTRL" = yes; then
698dcdb6 5668 echo "$ac_t""yes" 1>&6
10f2d63a 5669 else
698dcdb6 5670 echo "$ac_t""no" 1>&6
10f2d63a 5671 fi
698dcdb6 5672
10f2d63a 5673
698dcdb6 5674 echo $ac_n "checking for --enable-notebook""... $ac_c" 1>&6
b3e8d00a 5675echo "configure:5676: checking for --enable-notebook" >&5
10f2d63a
VZ
5676 no_cache=0
5677 # Check whether --enable-notebook or --disable-notebook was given.
5678if test "${enable_notebook+set}" = set; then
5679 enableval="$enable_notebook"
698dcdb6 5680
10f2d63a
VZ
5681 if test "$enableval" = yes; then
5682 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
5683 else
5684 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
5685 fi
698dcdb6 5686
10f2d63a 5687else
698dcdb6 5688
10f2d63a
VZ
5689 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
5690 if test "x$LINE" != x ; then
5691 eval "DEFAULT_$LINE"
5692 else
5693 no_cache=1
5694 fi
5695
5696 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
698dcdb6
VZ
5697
5698fi
10f2d63a
VZ
5699
5700
5701 eval "$ac_cv_use_notebook"
5702 if test "$no_cache" != 1; then
5703 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
5704 fi
5705
5706 if test "$wxUSE_NOTEBOOK" = yes; then
698dcdb6 5707 echo "$ac_t""yes" 1>&6
10f2d63a 5708 else
698dcdb6 5709 echo "$ac_t""no" 1>&6
10f2d63a 5710 fi
698dcdb6 5711
10f2d63a 5712
24176f2c 5713 echo $ac_n "checking for --enable-propsheet""... $ac_c" 1>&6
b3e8d00a 5714echo "configure:5715: checking for --enable-propsheet" >&5
24176f2c
GD
5715 no_cache=0
5716 # Check whether --enable-propsheet or --disable-propsheet was given.
5717if test "${enable_propsheet+set}" = set; then
5718 enableval="$enable_propsheet"
5719
5720 if test "$enableval" = yes; then
5721 ac_cv_use_propsheet='wxUSE_PROPSHEET=yes'
5722 else
5723 ac_cv_use_propsheet='wxUSE_PROPSHEET=no'
5724 fi
5725
5726else
5727
5728 LINE=`grep "wxUSE_PROPSHEET" ${wx_arg_cache_file}`
5729 if test "x$LINE" != x ; then
5730 eval "DEFAULT_$LINE"
5731 else
5732 no_cache=1
5733 fi
5734
5735 ac_cv_use_propsheet='wxUSE_PROPSHEET='$DEFAULT_wxUSE_PROPSHEET
5736
5737fi
5738
5739
5740 eval "$ac_cv_use_propsheet"
5741 if test "$no_cache" != 1; then
5742 echo $ac_cv_use_propsheet >> ${wx_arg_cache_file}.tmp
5743 fi
5744
5745 if test "$wxUSE_PROPSHEET" = yes; then
5746 echo "$ac_t""yes" 1>&6
5747 else
5748 echo "$ac_t""no" 1>&6
5749 fi
5750
5751
698dcdb6 5752 echo $ac_n "checking for --enable-radiobox""... $ac_c" 1>&6
b3e8d00a 5753echo "configure:5754: checking for --enable-radiobox" >&5
10f2d63a
VZ
5754 no_cache=0
5755 # Check whether --enable-radiobox or --disable-radiobox was given.
5756if test "${enable_radiobox+set}" = set; then
5757 enableval="$enable_radiobox"
698dcdb6 5758
10f2d63a
VZ
5759 if test "$enableval" = yes; then
5760 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
5761 else
5762 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
5763 fi
698dcdb6 5764
10f2d63a 5765else
698dcdb6 5766
10f2d63a
VZ
5767 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
5768 if test "x$LINE" != x ; then
5769 eval "DEFAULT_$LINE"
5770 else
5771 no_cache=1
5772 fi
5773
5774 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
698dcdb6
VZ
5775
5776fi
10f2d63a
VZ
5777
5778
5779 eval "$ac_cv_use_radiobox"
5780 if test "$no_cache" != 1; then
5781 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
5782 fi
5783
5784 if test "$wxUSE_RADIOBOX" = yes; then
698dcdb6 5785 echo "$ac_t""yes" 1>&6
10f2d63a 5786 else
698dcdb6 5787 echo "$ac_t""no" 1>&6
10f2d63a 5788 fi
698dcdb6 5789
10f2d63a 5790
698dcdb6 5791 echo $ac_n "checking for --enable-radiobtn""... $ac_c" 1>&6
b3e8d00a 5792echo "configure:5793: checking for --enable-radiobtn" >&5
10f2d63a
VZ
5793 no_cache=0
5794 # Check whether --enable-radiobtn or --disable-radiobtn was given.
5795if test "${enable_radiobtn+set}" = set; then
5796 enableval="$enable_radiobtn"
698dcdb6 5797
10f2d63a
VZ
5798 if test "$enableval" = yes; then
5799 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
5800 else
5801 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
5802 fi
698dcdb6 5803
10f2d63a 5804else
698dcdb6 5805
10f2d63a
VZ
5806 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
5807 if test "x$LINE" != x ; then
5808 eval "DEFAULT_$LINE"
5809 else
5810 no_cache=1
5811 fi
5812
5813 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
698dcdb6
VZ
5814
5815fi
10f2d63a
VZ
5816
5817
5818 eval "$ac_cv_use_radiobtn"
5819 if test "$no_cache" != 1; then
5820 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
5821 fi
5822
5823 if test "$wxUSE_RADIOBTN" = yes; then
698dcdb6 5824 echo "$ac_t""yes" 1>&6
10f2d63a 5825 else
698dcdb6 5826 echo "$ac_t""no" 1>&6
10f2d63a 5827 fi
698dcdb6 5828
10f2d63a 5829
698dcdb6 5830 echo $ac_n "checking for --enable-sash""... $ac_c" 1>&6
b3e8d00a 5831echo "configure:5832: checking for --enable-sash" >&5
10f2d63a
VZ
5832 no_cache=0
5833 # Check whether --enable-sash or --disable-sash was given.
5834if test "${enable_sash+set}" = set; then
5835 enableval="$enable_sash"
698dcdb6 5836
10f2d63a
VZ
5837 if test "$enableval" = yes; then
5838 ac_cv_use_sash='wxUSE_SASH=yes'
5839 else
5840 ac_cv_use_sash='wxUSE_SASH=no'
5841 fi
698dcdb6 5842
10f2d63a 5843else
698dcdb6 5844
10f2d63a
VZ
5845 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
5846 if test "x$LINE" != x ; then
5847 eval "DEFAULT_$LINE"
5848 else
5849 no_cache=1
5850 fi
5851
5852 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
698dcdb6
VZ
5853
5854fi
10f2d63a
VZ
5855
5856
5857 eval "$ac_cv_use_sash"
5858 if test "$no_cache" != 1; then
5859 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
5860 fi
5861
5862 if test "$wxUSE_SASH" = yes; then
698dcdb6 5863 echo "$ac_t""yes" 1>&6
10f2d63a 5864 else
698dcdb6 5865 echo "$ac_t""no" 1>&6
10f2d63a 5866 fi
698dcdb6 5867
10f2d63a 5868
698dcdb6 5869 echo $ac_n "checking for --enable-scrollbar""... $ac_c" 1>&6
b3e8d00a 5870echo "configure:5871: checking for --enable-scrollbar" >&5
10f2d63a
VZ
5871 no_cache=0
5872 # Check whether --enable-scrollbar or --disable-scrollbar was given.
5873if test "${enable_scrollbar+set}" = set; then
5874 enableval="$enable_scrollbar"
698dcdb6 5875
10f2d63a
VZ
5876 if test "$enableval" = yes; then
5877 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
5878 else
5879 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
5880 fi
698dcdb6 5881
10f2d63a 5882else
698dcdb6 5883
10f2d63a
VZ
5884 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
5885 if test "x$LINE" != x ; then
5886 eval "DEFAULT_$LINE"
5887 else
5888 no_cache=1
5889 fi
5890
5891 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
698dcdb6
VZ
5892
5893fi
10f2d63a
VZ
5894
5895
5896 eval "$ac_cv_use_scrollbar"
5897 if test "$no_cache" != 1; then
5898 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
5899 fi
5900
5901 if test "$wxUSE_SCROLLBAR" = yes; then
698dcdb6 5902 echo "$ac_t""yes" 1>&6
10f2d63a 5903 else
698dcdb6 5904 echo "$ac_t""no" 1>&6
10f2d63a 5905 fi
698dcdb6 5906
10f2d63a 5907
698dcdb6 5908 echo $ac_n "checking for --enable-slider""... $ac_c" 1>&6
b3e8d00a 5909echo "configure:5910: checking for --enable-slider" >&5
10f2d63a
VZ
5910 no_cache=0
5911 # Check whether --enable-slider or --disable-slider was given.
5912if test "${enable_slider+set}" = set; then
5913 enableval="$enable_slider"
698dcdb6 5914
10f2d63a
VZ
5915 if test "$enableval" = yes; then
5916 ac_cv_use_slider='wxUSE_SLIDER=yes'
5917 else
5918 ac_cv_use_slider='wxUSE_SLIDER=no'
5919 fi
698dcdb6 5920
10f2d63a 5921else
698dcdb6 5922
10f2d63a
VZ
5923 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
5924 if test "x$LINE" != x ; then
5925 eval "DEFAULT_$LINE"
5926 else
5927 no_cache=1
5928 fi
5929
5930 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
698dcdb6
VZ
5931
5932fi
10f2d63a
VZ
5933
5934
5935 eval "$ac_cv_use_slider"
5936 if test "$no_cache" != 1; then
5937 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
5938 fi
5939
5940 if test "$wxUSE_SLIDER" = yes; then
698dcdb6 5941 echo "$ac_t""yes" 1>&6
10f2d63a 5942 else
698dcdb6 5943 echo "$ac_t""no" 1>&6
10f2d63a 5944 fi
698dcdb6 5945
10f2d63a 5946
698dcdb6 5947 echo $ac_n "checking for --enable-spinbtn""... $ac_c" 1>&6
b3e8d00a 5948echo "configure:5949: checking for --enable-spinbtn" >&5
10f2d63a
VZ
5949 no_cache=0
5950 # Check whether --enable-spinbtn or --disable-spinbtn was given.
5951if test "${enable_spinbtn+set}" = set; then
5952 enableval="$enable_spinbtn"
698dcdb6 5953
10f2d63a
VZ
5954 if test "$enableval" = yes; then
5955 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
5956 else
5957 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
5958 fi
698dcdb6 5959
10f2d63a 5960else
698dcdb6 5961
10f2d63a
VZ
5962 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
5963 if test "x$LINE" != x ; then
5964 eval "DEFAULT_$LINE"
5965 else
5966 no_cache=1
5967 fi
5968
5969 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
698dcdb6
VZ
5970
5971fi
10f2d63a
VZ
5972
5973
5974 eval "$ac_cv_use_spinbtn"
5975 if test "$no_cache" != 1; then
5976 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
5977 fi
5978
5979 if test "$wxUSE_SPINBTN" = yes; then
698dcdb6 5980 echo "$ac_t""yes" 1>&6
10f2d63a 5981 else
698dcdb6 5982 echo "$ac_t""no" 1>&6
10f2d63a 5983 fi
698dcdb6 5984
10f2d63a 5985
698dcdb6 5986 echo $ac_n "checking for --enable-spinctrl""... $ac_c" 1>&6
b3e8d00a 5987echo "configure:5988: checking for --enable-spinctrl" >&5
56cfaa52
RR
5988 no_cache=0
5989 # Check whether --enable-spinctrl or --disable-spinctrl was given.
5990if test "${enable_spinctrl+set}" = set; then
5991 enableval="$enable_spinctrl"
698dcdb6 5992
56cfaa52
RR
5993 if test "$enableval" = yes; then
5994 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
5995 else
5996 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
5997 fi
698dcdb6 5998
56cfaa52 5999else
698dcdb6 6000
56cfaa52
RR
6001 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
6002 if test "x$LINE" != x ; then
6003 eval "DEFAULT_$LINE"
6004 else
6005 no_cache=1
6006 fi
6007
6008 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
698dcdb6
VZ
6009
6010fi
56cfaa52
RR
6011
6012
6013 eval "$ac_cv_use_spinctrl"
6014 if test "$no_cache" != 1; then
6015 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
6016 fi
6017
6018 if test "$wxUSE_SPINCTRL" = yes; then
698dcdb6 6019 echo "$ac_t""yes" 1>&6
56cfaa52 6020 else
698dcdb6 6021 echo "$ac_t""no" 1>&6
56cfaa52 6022 fi
698dcdb6 6023
56cfaa52 6024
698dcdb6 6025 echo $ac_n "checking for --enable-splitter""... $ac_c" 1>&6
b3e8d00a 6026echo "configure:6027: checking for --enable-splitter" >&5
10f2d63a
VZ
6027 no_cache=0
6028 # Check whether --enable-splitter or --disable-splitter was given.
6029if test "${enable_splitter+set}" = set; then
6030 enableval="$enable_splitter"
698dcdb6 6031
10f2d63a
VZ
6032 if test "$enableval" = yes; then
6033 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
6034 else
6035 ac_cv_use_splitter='wxUSE_SPLITTER=no'
6036 fi
698dcdb6 6037
10f2d63a 6038else
698dcdb6 6039
10f2d63a
VZ
6040 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
6041 if test "x$LINE" != x ; then
6042 eval "DEFAULT_$LINE"
6043 else
6044 no_cache=1
6045 fi
6046
6047 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
698dcdb6
VZ
6048
6049fi
10f2d63a
VZ
6050
6051
6052 eval "$ac_cv_use_splitter"
6053 if test "$no_cache" != 1; then
6054 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
6055 fi
6056
6057 if test "$wxUSE_SPLITTER" = yes; then
698dcdb6 6058 echo "$ac_t""yes" 1>&6
10f2d63a 6059 else
698dcdb6 6060 echo "$ac_t""no" 1>&6
10f2d63a 6061 fi
698dcdb6 6062
10f2d63a 6063
698dcdb6 6064 echo $ac_n "checking for --enable-statbmp""... $ac_c" 1>&6
b3e8d00a 6065echo "configure:6066: checking for --enable-statbmp" >&5
10f2d63a
VZ
6066 no_cache=0
6067 # Check whether --enable-statbmp or --disable-statbmp was given.
6068if test "${enable_statbmp+set}" = set; then
6069 enableval="$enable_statbmp"
698dcdb6 6070
10f2d63a
VZ
6071 if test "$enableval" = yes; then
6072 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
6073 else
6074 ac_cv_use_statbmp='wxUSE_STATBMP=no'
6075 fi
698dcdb6 6076
10f2d63a 6077else
698dcdb6 6078
10f2d63a
VZ
6079 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
6080 if test "x$LINE" != x ; then
6081 eval "DEFAULT_$LINE"
6082 else
6083 no_cache=1
6084 fi
6085
6086 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
698dcdb6
VZ
6087
6088fi
10f2d63a
VZ
6089
6090
6091 eval "$ac_cv_use_statbmp"
6092 if test "$no_cache" != 1; then
6093 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
6094 fi
6095
6096 if test "$wxUSE_STATBMP" = yes; then
698dcdb6 6097 echo "$ac_t""yes" 1>&6
10f2d63a 6098 else
698dcdb6 6099 echo "$ac_t""no" 1>&6
10f2d63a 6100 fi
698dcdb6 6101
10f2d63a 6102
698dcdb6 6103 echo $ac_n "checking for --enable-statbox""... $ac_c" 1>&6
b3e8d00a 6104echo "configure:6105: checking for --enable-statbox" >&5
10f2d63a
VZ
6105 no_cache=0
6106 # Check whether --enable-statbox or --disable-statbox was given.
6107if test "${enable_statbox+set}" = set; then
6108 enableval="$enable_statbox"
698dcdb6 6109
10f2d63a
VZ
6110 if test "$enableval" = yes; then
6111 ac_cv_use_statbox='wxUSE_STATBOX=yes'
6112 else
6113 ac_cv_use_statbox='wxUSE_STATBOX=no'
6114 fi
698dcdb6 6115
10f2d63a 6116else
698dcdb6 6117
10f2d63a
VZ
6118 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
6119 if test "x$LINE" != x ; then
6120 eval "DEFAULT_$LINE"
6121 else
6122 no_cache=1
6123 fi
6124
6125 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
698dcdb6
VZ
6126
6127fi
10f2d63a
VZ
6128
6129
6130 eval "$ac_cv_use_statbox"
6131 if test "$no_cache" != 1; then
6132 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
6133 fi
6134
6135 if test "$wxUSE_STATBOX" = yes; then
698dcdb6 6136 echo "$ac_t""yes" 1>&6
10f2d63a 6137 else
698dcdb6 6138 echo "$ac_t""no" 1>&6
10f2d63a 6139 fi
698dcdb6 6140
10f2d63a 6141
698dcdb6 6142 echo $ac_n "checking for --enable-statline""... $ac_c" 1>&6
b3e8d00a 6143echo "configure:6144: checking for --enable-statline" >&5
10f2d63a
VZ
6144 no_cache=0
6145 # Check whether --enable-statline or --disable-statline was given.
6146if test "${enable_statline+set}" = set; then
6147 enableval="$enable_statline"
698dcdb6 6148
10f2d63a
VZ
6149 if test "$enableval" = yes; then
6150 ac_cv_use_statline='wxUSE_STATLINE=yes'
6151 else
6152 ac_cv_use_statline='wxUSE_STATLINE=no'
6153 fi
698dcdb6 6154
10f2d63a 6155else
698dcdb6 6156
10f2d63a
VZ
6157 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
6158 if test "x$LINE" != x ; then
6159 eval "DEFAULT_$LINE"
6160 else
6161 no_cache=1
6162 fi
6163
6164 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
698dcdb6
VZ
6165
6166fi
10f2d63a
VZ
6167
6168
6169 eval "$ac_cv_use_statline"
6170 if test "$no_cache" != 1; then
6171 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
6172 fi
6173
6174 if test "$wxUSE_STATLINE" = yes; then
698dcdb6 6175 echo "$ac_t""yes" 1>&6
10f2d63a 6176 else
698dcdb6 6177 echo "$ac_t""no" 1>&6
10f2d63a 6178 fi
698dcdb6 6179
10f2d63a 6180
1e6feb95 6181 echo $ac_n "checking for --enable-stattext""... $ac_c" 1>&6
b3e8d00a 6182echo "configure:6183: checking for --enable-stattext" >&5
1e6feb95
VZ
6183 no_cache=0
6184 # Check whether --enable-stattext or --disable-stattext was given.
6185if test "${enable_stattext+set}" = set; then
6186 enableval="$enable_stattext"
6187
6188 if test "$enableval" = yes; then
6189 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
6190 else
6191 ac_cv_use_stattext='wxUSE_STATTEXT=no'
6192 fi
6193
6194else
6195
6196 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
6197 if test "x$LINE" != x ; then
6198 eval "DEFAULT_$LINE"
6199 else
6200 no_cache=1
6201 fi
6202
6203 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
6204
6205fi
6206
6207
6208 eval "$ac_cv_use_stattext"
6209 if test "$no_cache" != 1; then
6210 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
6211 fi
6212
6213 if test "$wxUSE_STATTEXT" = yes; then
6214 echo "$ac_t""yes" 1>&6
6215 else
6216 echo "$ac_t""no" 1>&6
6217 fi
6218
6219
698dcdb6 6220 echo $ac_n "checking for --enable-statusbar""... $ac_c" 1>&6
b3e8d00a 6221echo "configure:6222: checking for --enable-statusbar" >&5
10f2d63a
VZ
6222 no_cache=0
6223 # Check whether --enable-statusbar or --disable-statusbar was given.
6224if test "${enable_statusbar+set}" = set; then
6225 enableval="$enable_statusbar"
698dcdb6 6226
10f2d63a
VZ
6227 if test "$enableval" = yes; then
6228 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
6229 else
6230 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
6231 fi
698dcdb6 6232
10f2d63a 6233else
698dcdb6 6234
10f2d63a
VZ
6235 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
6236 if test "x$LINE" != x ; then
6237 eval "DEFAULT_$LINE"
6238 else
6239 no_cache=1
6240 fi
6241
6242 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
698dcdb6
VZ
6243
6244fi
10f2d63a
VZ
6245
6246
6247 eval "$ac_cv_use_statusbar"
6248 if test "$no_cache" != 1; then
6249 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
6250 fi
6251
6252 if test "$wxUSE_STATUSBAR" = yes; then
698dcdb6 6253 echo "$ac_t""yes" 1>&6
10f2d63a 6254 else
698dcdb6 6255 echo "$ac_t""no" 1>&6
10f2d63a 6256 fi
698dcdb6 6257
10f2d63a 6258
698dcdb6 6259 echo $ac_n "checking for --enable-tabdialog""... $ac_c" 1>&6
b3e8d00a 6260echo "configure:6261: checking for --enable-tabdialog" >&5
10f2d63a
VZ
6261 no_cache=0
6262 # Check whether --enable-tabdialog or --disable-tabdialog was given.
6263if test "${enable_tabdialog+set}" = set; then
6264 enableval="$enable_tabdialog"
698dcdb6 6265
10f2d63a
VZ
6266 if test "$enableval" = yes; then
6267 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
6268 else
6269 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
6270 fi
698dcdb6 6271
10f2d63a 6272else
698dcdb6 6273
10f2d63a
VZ
6274 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
6275 if test "x$LINE" != x ; then
6276 eval "DEFAULT_$LINE"
6277 else
6278 no_cache=1
6279 fi
6280
6281 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
698dcdb6
VZ
6282
6283fi
10f2d63a
VZ
6284
6285
6286 eval "$ac_cv_use_tabdialog"
6287 if test "$no_cache" != 1; then
6288 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
6289 fi
6290
6291 if test "$wxUSE_TABDIALOG" = yes; then
698dcdb6 6292 echo "$ac_t""yes" 1>&6
10f2d63a 6293 else
698dcdb6 6294 echo "$ac_t""no" 1>&6
10f2d63a 6295 fi
698dcdb6 6296
10f2d63a 6297
1e6feb95 6298 echo $ac_n "checking for --enable-textctrl""... $ac_c" 1>&6
b3e8d00a 6299echo "configure:6300: checking for --enable-textctrl" >&5
1e6feb95
VZ
6300 no_cache=0
6301 # Check whether --enable-textctrl or --disable-textctrl was given.
6302if test "${enable_textctrl+set}" = set; then
6303 enableval="$enable_textctrl"
6304
6305 if test "$enableval" = yes; then
6306 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
6307 else
6308 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
6309 fi
6310
6311else
6312
6313 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
6314 if test "x$LINE" != x ; then
6315 eval "DEFAULT_$LINE"
6316 else
6317 no_cache=1
6318 fi
6319
6320 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
6321
6322fi
6323
6324
6325 eval "$ac_cv_use_textctrl"
6326 if test "$no_cache" != 1; then
6327 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
6328 fi
6329
6330 if test "$wxUSE_TEXTCTRL" = yes; then
6331 echo "$ac_t""yes" 1>&6
6332 else
6333 echo "$ac_t""no" 1>&6
6334 fi
6335
6336
698dcdb6 6337 echo $ac_n "checking for --enable-togglebtn""... $ac_c" 1>&6
b3e8d00a 6338echo "configure:6339: checking for --enable-togglebtn" >&5
1db8dc4a
VZ
6339 no_cache=0
6340 # Check whether --enable-togglebtn or --disable-togglebtn was given.
6341if test "${enable_togglebtn+set}" = set; then
6342 enableval="$enable_togglebtn"
698dcdb6 6343
1db8dc4a
VZ
6344 if test "$enableval" = yes; then
6345 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
6346 else
6347 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
6348 fi
698dcdb6 6349
1db8dc4a 6350else
698dcdb6 6351
1db8dc4a
VZ
6352 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
6353 if test "x$LINE" != x ; then
6354 eval "DEFAULT_$LINE"
6355 else
6356 no_cache=1
6357 fi
6358
6359 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
698dcdb6
VZ
6360
6361fi
1db8dc4a
VZ
6362
6363
6364 eval "$ac_cv_use_togglebtn"
6365 if test "$no_cache" != 1; then
6366 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
6367 fi
6368
6369 if test "$wxUSE_TOGGLEBTN" = yes; then
698dcdb6 6370 echo "$ac_t""yes" 1>&6
1db8dc4a 6371 else
698dcdb6 6372 echo "$ac_t""no" 1>&6
1db8dc4a 6373 fi
698dcdb6 6374
1db8dc4a 6375
698dcdb6 6376 echo $ac_n "checking for --enable-toolbar""... $ac_c" 1>&6
b3e8d00a 6377echo "configure:6378: checking for --enable-toolbar" >&5
10f2d63a
VZ
6378 no_cache=0
6379 # Check whether --enable-toolbar or --disable-toolbar was given.
6380if test "${enable_toolbar+set}" = set; then
6381 enableval="$enable_toolbar"
698dcdb6 6382
10f2d63a
VZ
6383 if test "$enableval" = yes; then
6384 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
6385 else
6386 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
6387 fi
698dcdb6 6388
10f2d63a 6389else
698dcdb6 6390
10f2d63a
VZ
6391 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
6392 if test "x$LINE" != x ; then
6393 eval "DEFAULT_$LINE"
6394 else
6395 no_cache=1
6396 fi
6397
6398 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
698dcdb6
VZ
6399
6400fi
10f2d63a
VZ
6401
6402
6403 eval "$ac_cv_use_toolbar"
6404 if test "$no_cache" != 1; then
6405 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
6406 fi
6407
6408 if test "$wxUSE_TOOLBAR" = yes; then
698dcdb6 6409 echo "$ac_t""yes" 1>&6
10f2d63a 6410 else
698dcdb6 6411 echo "$ac_t""no" 1>&6
10f2d63a 6412 fi
698dcdb6 6413
10f2d63a 6414
698dcdb6 6415 echo $ac_n "checking for --enable-tbarnative""... $ac_c" 1>&6
b3e8d00a 6416echo "configure:6417: checking for --enable-tbarnative" >&5
360d6699
VZ
6417 no_cache=0
6418 # Check whether --enable-tbarnative or --disable-tbarnative was given.
6419if test "${enable_tbarnative+set}" = set; then
6420 enableval="$enable_tbarnative"
698dcdb6 6421
360d6699
VZ
6422 if test "$enableval" = yes; then
6423 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
6424 else
6425 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
6426 fi
698dcdb6 6427
360d6699 6428else
698dcdb6 6429
360d6699
VZ
6430 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
6431 if test "x$LINE" != x ; then
6432 eval "DEFAULT_$LINE"
6433 else
6434 no_cache=1
6435 fi
6436
6437 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
698dcdb6
VZ
6438
6439fi
360d6699
VZ
6440
6441
6442 eval "$ac_cv_use_tbarnative"
6443 if test "$no_cache" != 1; then
6444 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
6445 fi
6446
6447 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
698dcdb6 6448 echo "$ac_t""yes" 1>&6
360d6699 6449 else
698dcdb6 6450 echo "$ac_t""no" 1>&6
360d6699 6451 fi
698dcdb6 6452
360d6699 6453
698dcdb6 6454 echo $ac_n "checking for --enable-tbarsmpl""... $ac_c" 1>&6
b3e8d00a 6455echo "configure:6456: checking for --enable-tbarsmpl" >&5
360d6699
VZ
6456 no_cache=0
6457 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
6458if test "${enable_tbarsmpl+set}" = set; then
6459 enableval="$enable_tbarsmpl"
698dcdb6 6460
360d6699
VZ
6461 if test "$enableval" = yes; then
6462 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
6463 else
6464 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
6465 fi
698dcdb6 6466
360d6699 6467else
698dcdb6 6468
360d6699
VZ
6469 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
6470 if test "x$LINE" != x ; then
6471 eval "DEFAULT_$LINE"
6472 else
6473 no_cache=1
6474 fi
6475
6476 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
698dcdb6
VZ
6477
6478fi
360d6699
VZ
6479
6480
6481 eval "$ac_cv_use_tbarsmpl"
6482 if test "$no_cache" != 1; then
6483 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
6484 fi
6485
6486 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
698dcdb6 6487 echo "$ac_t""yes" 1>&6
360d6699 6488 else
698dcdb6 6489 echo "$ac_t""no" 1>&6
360d6699 6490 fi
698dcdb6 6491
360d6699 6492
698dcdb6 6493 echo $ac_n "checking for --enable-treectrl""... $ac_c" 1>&6
b3e8d00a 6494echo "configure:6495: checking for --enable-treectrl" >&5
10f2d63a
VZ
6495 no_cache=0
6496 # Check whether --enable-treectrl or --disable-treectrl was given.
6497if test "${enable_treectrl+set}" = set; then
6498 enableval="$enable_treectrl"
698dcdb6 6499
10f2d63a
VZ
6500 if test "$enableval" = yes; then
6501 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
6502 else
6503 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
6504 fi
698dcdb6 6505
10f2d63a 6506else
698dcdb6 6507
10f2d63a
VZ
6508 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
6509 if test "x$LINE" != x ; then
6510 eval "DEFAULT_$LINE"
6511 else
6512 no_cache=1
6513 fi
6514
6515 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
698dcdb6
VZ
6516
6517fi
10f2d63a
VZ
6518
6519
1e6feb95
VZ
6520 eval "$ac_cv_use_treectrl"
6521 if test "$no_cache" != 1; then
6522 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
6523 fi
6524
6525 if test "$wxUSE_TREECTRL" = yes; then
6526 echo "$ac_t""yes" 1>&6
6527 else
6528 echo "$ac_t""no" 1>&6
6529 fi
6530
6531
9f41d601 6532 echo $ac_n "checking for --enable-popupwin""... $ac_c" 1>&6
b3e8d00a 6533echo "configure:6534: checking for --enable-popupwin" >&5
9f41d601
RR
6534 no_cache=0
6535 # Check whether --enable-popupwin or --disable-popupwin was given.
6536if test "${enable_popupwin+set}" = set; then
6537 enableval="$enable_popupwin"
6538
6539 if test "$enableval" = yes; then
6540 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
6541 else
6542 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
6543 fi
6544
6545else
6546
6547 LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
6548 if test "x$LINE" != x ; then
6549 eval "DEFAULT_$LINE"
6550 else
6551 no_cache=1
6552 fi
6553
6554 ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
6555
6556fi
6557
6558
6559 eval "$ac_cv_use_popupwin"
6560 if test "$no_cache" != 1; then
6561 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
6562 fi
6563
6564 if test "$wxUSE_POPUPWIN" = yes; then
6565 echo "$ac_t""yes" 1>&6
6566 else
6567 echo "$ac_t""no" 1>&6
6568 fi
6569
6570
1e6feb95
VZ
6571
6572
6573 echo $ac_n "checking for --enable-commondlg""... $ac_c" 1>&6
b3e8d00a 6574echo "configure:6575: checking for --enable-commondlg" >&5
1e6feb95
VZ
6575 no_cache=0
6576 # Check whether --enable-commondlg or --disable-commondlg was given.
6577if test "${enable_commondlg+set}" = set; then
6578 enableval="$enable_commondlg"
6579
6580 if test "$enableval" = yes; then
6581 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
6582 else
6583 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
6584 fi
6585
6586else
6587
6588 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
6589 if test "x$LINE" != x ; then
6590 eval "DEFAULT_$LINE"
6591 else
6592 no_cache=1
6593 fi
6594
6595 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
6596
6597fi
6598
6599
6600 eval "$ac_cv_use_commondlg"
6601 if test "$no_cache" != 1; then
6602 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
6603 fi
6604
6605 if test "$wxUSE_COMMONDLGS" = yes; then
6606 echo "$ac_t""yes" 1>&6
6607 else
6608 echo "$ac_t""no" 1>&6
6609 fi
6610
6611
6612 echo $ac_n "checking for --enable-choicedlg""... $ac_c" 1>&6
b3e8d00a 6613echo "configure:6614: checking for --enable-choicedlg" >&5
1e6feb95
VZ
6614 no_cache=0
6615 # Check whether --enable-choicedlg or --disable-choicedlg was given.
6616if test "${enable_choicedlg+set}" = set; then
6617 enableval="$enable_choicedlg"
6618
6619 if test "$enableval" = yes; then
6620 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
6621 else
6622 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
6623 fi
6624
6625else
6626
6627 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
6628 if test "x$LINE" != x ; then
6629 eval "DEFAULT_$LINE"
6630 else
6631 no_cache=1
6632 fi
6633
6634 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
6635
6636fi
6637
6638
6639 eval "$ac_cv_use_choicedlg"
6640 if test "$no_cache" != 1; then
6641 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
6642 fi
6643
6644 if test "$wxUSE_CHOICEDLG" = yes; then
6645 echo "$ac_t""yes" 1>&6
6646 else
6647 echo "$ac_t""no" 1>&6
6648 fi
6649
6650
6651 echo $ac_n "checking for --enable-coldlg""... $ac_c" 1>&6
b3e8d00a 6652echo "configure:6653: checking for --enable-coldlg" >&5
1e6feb95
VZ
6653 no_cache=0
6654 # Check whether --enable-coldlg or --disable-coldlg was given.
6655if test "${enable_coldlg+set}" = set; then
6656 enableval="$enable_coldlg"
6657
6658 if test "$enableval" = yes; then
6659 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
6660 else
6661 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
6662 fi
6663
6664else
6665
6666 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
6667 if test "x$LINE" != x ; then
6668 eval "DEFAULT_$LINE"
6669 else
6670 no_cache=1
6671 fi
6672
6673 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
6674
6675fi
6676
6677
6678 eval "$ac_cv_use_coldlg"
6679 if test "$no_cache" != 1; then
6680 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
6681 fi
6682
6683 if test "$wxUSE_COLOURDLG" = yes; then
6684 echo "$ac_t""yes" 1>&6
6685 else
6686 echo "$ac_t""no" 1>&6
6687 fi
6688
6689
6690 echo $ac_n "checking for --enable-filedlg""... $ac_c" 1>&6
b3e8d00a 6691echo "configure:6692: checking for --enable-filedlg" >&5
1e6feb95
VZ
6692 no_cache=0
6693 # Check whether --enable-filedlg or --disable-filedlg was given.
6694if test "${enable_filedlg+set}" = set; then
6695 enableval="$enable_filedlg"
6696
6697 if test "$enableval" = yes; then
6698 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
6699 else
6700 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
6701 fi
6702
6703else
6704
6705 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
6706 if test "x$LINE" != x ; then
6707 eval "DEFAULT_$LINE"
6708 else
6709 no_cache=1
6710 fi
6711
6712 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
6713
6714fi
6715
6716
6717 eval "$ac_cv_use_filedlg"
6718 if test "$no_cache" != 1; then
6719 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
6720 fi
6721
6722 if test "$wxUSE_FILEDLG" = yes; then
6723 echo "$ac_t""yes" 1>&6
6724 else
6725 echo "$ac_t""no" 1>&6
6726 fi
6727
6728
8db37e06 6729 echo $ac_n "checking for --enable-filedlg""... $ac_c" 1>&6
b3e8d00a 6730echo "configure:6731: checking for --enable-filedlg" >&5
8db37e06
VZ
6731 no_cache=0
6732 # Check whether --enable-filedlg or --disable-filedlg was given.
6733if test "${enable_filedlg+set}" = set; then
6734 enableval="$enable_filedlg"
6735
6736 if test "$enableval" = yes; then
6737 ac_cv_use_filedlg='wxUSE_FINDREPLDLG=yes'
6738 else
6739 ac_cv_use_filedlg='wxUSE_FINDREPLDLG=no'
6740 fi
6741
6742else
6743
6744 LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
6745 if test "x$LINE" != x ; then
6746 eval "DEFAULT_$LINE"
6747 else
6748 no_cache=1
6749 fi
6750
6751 ac_cv_use_filedlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
6752
6753fi
6754
6755
6756 eval "$ac_cv_use_filedlg"
6757 if test "$no_cache" != 1; then
6758 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
6759 fi
6760
6761 if test "$wxUSE_FINDREPLDLG" = yes; then
6762 echo "$ac_t""yes" 1>&6
6763 else
6764 echo "$ac_t""no" 1>&6
6765 fi
6766
6767
1e6feb95 6768 echo $ac_n "checking for --enable-fontdlg""... $ac_c" 1>&6
b3e8d00a 6769echo "configure:6770: checking for --enable-fontdlg" >&5
1e6feb95
VZ
6770 no_cache=0
6771 # Check whether --enable-fontdlg or --disable-fontdlg was given.
6772if test "${enable_fontdlg+set}" = set; then
6773 enableval="$enable_fontdlg"
6774
6775 if test "$enableval" = yes; then
6776 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
6777 else
6778 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
6779 fi
6780
6781else
6782
6783 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
6784 if test "x$LINE" != x ; then
6785 eval "DEFAULT_$LINE"
6786 else
6787 no_cache=1
6788 fi
6789
6790 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
6791
6792fi
6793
6794
6795 eval "$ac_cv_use_fontdlg"
6796 if test "$no_cache" != 1; then
6797 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
6798 fi
6799
6800 if test "$wxUSE_FONTDLG" = yes; then
6801 echo "$ac_t""yes" 1>&6
6802 else
6803 echo "$ac_t""no" 1>&6
6804 fi
6805
6806
6807 echo $ac_n "checking for --enable-dirdlg""... $ac_c" 1>&6
b3e8d00a 6808echo "configure:6809: checking for --enable-dirdlg" >&5
1e6feb95
VZ
6809 no_cache=0
6810 # Check whether --enable-dirdlg or --disable-dirdlg was given.
6811if test "${enable_dirdlg+set}" = set; then
6812 enableval="$enable_dirdlg"
6813
6814 if test "$enableval" = yes; then
6815 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
6816 else
6817 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
6818 fi
6819
6820else
6821
6822 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
6823 if test "x$LINE" != x ; then
6824 eval "DEFAULT_$LINE"
6825 else
6826 no_cache=1
6827 fi
6828
6829 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
6830
6831fi
6832
6833
6834 eval "$ac_cv_use_dirdlg"
10f2d63a 6835 if test "$no_cache" != 1; then
1e6feb95 6836 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
6837 fi
6838
1e6feb95 6839 if test "$wxUSE_DIRDLG" = yes; then
698dcdb6 6840 echo "$ac_t""yes" 1>&6
10f2d63a 6841 else
698dcdb6 6842 echo "$ac_t""no" 1>&6
10f2d63a 6843 fi
698dcdb6
VZ
6844
6845
1e6feb95 6846 echo $ac_n "checking for --enable-msgdlg""... $ac_c" 1>&6
b3e8d00a 6847echo "configure:6848: checking for --enable-msgdlg" >&5
10f2d63a 6848 no_cache=0
1e6feb95
VZ
6849 # Check whether --enable-msgdlg or --disable-msgdlg was given.
6850if test "${enable_msgdlg+set}" = set; then
6851 enableval="$enable_msgdlg"
698dcdb6 6852
10f2d63a 6853 if test "$enableval" = yes; then
1e6feb95 6854 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
10f2d63a 6855 else
1e6feb95 6856 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
10f2d63a 6857 fi
698dcdb6 6858
10f2d63a 6859else
698dcdb6 6860
1e6feb95 6861 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
10f2d63a
VZ
6862 if test "x$LINE" != x ; then
6863 eval "DEFAULT_$LINE"
6864 else
6865 no_cache=1
6866 fi
6867
1e6feb95 6868 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
698dcdb6
VZ
6869
6870fi
10f2d63a
VZ
6871
6872
1e6feb95 6873 eval "$ac_cv_use_msgdlg"
10f2d63a 6874 if test "$no_cache" != 1; then
1e6feb95 6875 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
6876 fi
6877
1e6feb95 6878 if test "$wxUSE_MSGDLG" = yes; then
698dcdb6 6879 echo "$ac_t""yes" 1>&6
10f2d63a 6880 else
698dcdb6 6881 echo "$ac_t""no" 1>&6
10f2d63a 6882 fi
698dcdb6 6883
10f2d63a 6884
1e6feb95 6885 echo $ac_n "checking for --enable-numberdlg""... $ac_c" 1>&6
b3e8d00a 6886echo "configure:6887: checking for --enable-numberdlg" >&5
10f2d63a 6887 no_cache=0
1e6feb95
VZ
6888 # Check whether --enable-numberdlg or --disable-numberdlg was given.
6889if test "${enable_numberdlg+set}" = set; then
6890 enableval="$enable_numberdlg"
698dcdb6 6891
10f2d63a 6892 if test "$enableval" = yes; then
1e6feb95 6893 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
10f2d63a 6894 else
1e6feb95 6895 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
10f2d63a 6896 fi
698dcdb6 6897
10f2d63a 6898else
698dcdb6 6899
1e6feb95 6900 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
10f2d63a
VZ
6901 if test "x$LINE" != x ; then
6902 eval "DEFAULT_$LINE"
6903 else
6904 no_cache=1
6905 fi
6906
1e6feb95 6907 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
698dcdb6
VZ
6908
6909fi
10f2d63a
VZ
6910
6911
1e6feb95 6912 eval "$ac_cv_use_numberdlg"
10f2d63a 6913 if test "$no_cache" != 1; then
1e6feb95 6914 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
6915 fi
6916
1e6feb95 6917 if test "$wxUSE_NUMBERDLG" = yes; then
698dcdb6 6918 echo "$ac_t""yes" 1>&6
10f2d63a 6919 else
698dcdb6 6920 echo "$ac_t""no" 1>&6
10f2d63a 6921 fi
698dcdb6 6922
10f2d63a 6923
cbca9943 6924 echo $ac_n "checking for --enable-splash""... $ac_c" 1>&6
b3e8d00a 6925echo "configure:6926: checking for --enable-splash" >&5
cbca9943
VZ
6926 no_cache=0
6927 # Check whether --enable-splash or --disable-splash was given.
6928if test "${enable_splash+set}" = set; then
6929 enableval="$enable_splash"
6930
6931 if test "$enableval" = yes; then
6932 ac_cv_use_splash='wxUSE_SPLASH=yes'
6933 else
6934 ac_cv_use_splash='wxUSE_SPLASH=no'
6935 fi
6936
6937else
6938
6939 LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
6940 if test "x$LINE" != x ; then
6941 eval "DEFAULT_$LINE"
6942 else
6943 no_cache=1
6944 fi
6945
6946 ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
6947
6948fi
6949
6950
6951 eval "$ac_cv_use_splash"
6952 if test "$no_cache" != 1; then
6953 echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
6954 fi
6955
6956 if test "$wxUSE_SPLASH" = yes; then
6957 echo "$ac_t""yes" 1>&6
6958 else
6959 echo "$ac_t""no" 1>&6
6960 fi
6961
6962
698dcdb6 6963 echo $ac_n "checking for --enable-textdlg""... $ac_c" 1>&6
b3e8d00a 6964echo "configure:6965: checking for --enable-textdlg" >&5
10f2d63a
VZ
6965 no_cache=0
6966 # Check whether --enable-textdlg or --disable-textdlg was given.
6967if test "${enable_textdlg+set}" = set; then
6968 enableval="$enable_textdlg"
698dcdb6 6969
10f2d63a
VZ
6970 if test "$enableval" = yes; then
6971 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
6972 else
6973 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
6974 fi
698dcdb6 6975
10f2d63a 6976else
698dcdb6 6977
10f2d63a
VZ
6978 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
6979 if test "x$LINE" != x ; then
6980 eval "DEFAULT_$LINE"
6981 else
6982 no_cache=1
6983 fi
6984
6985 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
698dcdb6
VZ
6986
6987fi
10f2d63a
VZ
6988
6989
6990 eval "$ac_cv_use_textdlg"
6991 if test "$no_cache" != 1; then
6992 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
6993 fi
6994
6995 if test "$wxUSE_TEXTDLG" = yes; then
698dcdb6 6996 echo "$ac_t""yes" 1>&6
10f2d63a 6997 else
698dcdb6 6998 echo "$ac_t""no" 1>&6
10f2d63a 6999 fi
698dcdb6 7000
10f2d63a 7001
698dcdb6 7002 echo $ac_n "checking for --enable-tipdlg""... $ac_c" 1>&6
b3e8d00a 7003echo "configure:7004: checking for --enable-tipdlg" >&5
10f2d63a
VZ
7004 no_cache=0
7005 # Check whether --enable-tipdlg or --disable-tipdlg was given.
7006if test "${enable_tipdlg+set}" = set; then
7007 enableval="$enable_tipdlg"
698dcdb6 7008
10f2d63a
VZ
7009 if test "$enableval" = yes; then
7010 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
7011 else
7012 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
7013 fi
698dcdb6 7014
10f2d63a 7015else
698dcdb6 7016
10f2d63a
VZ
7017 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
7018 if test "x$LINE" != x ; then
7019 eval "DEFAULT_$LINE"
7020 else
7021 no_cache=1
7022 fi
7023
7024 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
698dcdb6
VZ
7025
7026fi
10f2d63a
VZ
7027
7028
7029 eval "$ac_cv_use_tipdlg"
7030 if test "$no_cache" != 1; then
7031 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
7032 fi
7033
7034 if test "$wxUSE_STARTUP_TIPS" = yes; then
698dcdb6 7035 echo "$ac_t""yes" 1>&6
10f2d63a 7036 else
698dcdb6 7037 echo "$ac_t""no" 1>&6
10f2d63a 7038 fi
698dcdb6 7039
10f2d63a 7040
698dcdb6 7041 echo $ac_n "checking for --enable-progressdlg""... $ac_c" 1>&6
b3e8d00a 7042echo "configure:7043: checking for --enable-progressdlg" >&5
10f2d63a
VZ
7043 no_cache=0
7044 # Check whether --enable-progressdlg or --disable-progressdlg was given.
7045if test "${enable_progressdlg+set}" = set; then
7046 enableval="$enable_progressdlg"
698dcdb6 7047
10f2d63a
VZ
7048 if test "$enableval" = yes; then
7049 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
7050 else
7051 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
7052 fi
698dcdb6 7053
10f2d63a 7054else
698dcdb6 7055
10f2d63a
VZ
7056 LINE=`grep "wxUSE_PROGRESSDLG" ${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_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
698dcdb6
VZ
7064
7065fi
10f2d63a
VZ
7066
7067
7068 eval "$ac_cv_use_progressdlg"
7069 if test "$no_cache" != 1; then
7070 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
7071 fi
7072
7073 if test "$wxUSE_PROGRESSDLG" = yes; then
698dcdb6 7074 echo "$ac_t""yes" 1>&6
10f2d63a 7075 else
698dcdb6 7076 echo "$ac_t""no" 1>&6
10f2d63a 7077 fi
698dcdb6 7078
10f2d63a 7079
b1f5d087 7080 echo $ac_n "checking for --enable-wizarddlg""... $ac_c" 1>&6
b3e8d00a 7081echo "configure:7082: checking for --enable-wizarddlg" >&5
b1f5d087
VZ
7082 no_cache=0
7083 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
7084if test "${enable_wizarddlg+set}" = set; then
7085 enableval="$enable_wizarddlg"
7086
7087 if test "$enableval" = yes; then
7088 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
7089 else
7090 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
7091 fi
7092
7093else
7094
7095 LINE=`grep "wxUSE_WIZARDDLG" ${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_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
7103
7104fi
7105
7106
7107 eval "$ac_cv_use_wizarddlg"
7108 if test "$no_cache" != 1; then
7109 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
7110 fi
7111
7112 if test "$wxUSE_WIZARDDLG" = yes; then
7113 echo "$ac_t""yes" 1>&6
7114 else
7115 echo "$ac_t""no" 1>&6
7116 fi
7117
7118
7119
7120
1e6feb95 7121 echo $ac_n "checking for --enable-menus""... $ac_c" 1>&6
b3e8d00a 7122echo "configure:7123: checking for --enable-menus" >&5
1e6feb95
VZ
7123 no_cache=0
7124 # Check whether --enable-menus or --disable-menus was given.
7125if test "${enable_menus+set}" = set; then
7126 enableval="$enable_menus"
7127
7128 if test "$enableval" = yes; then
7129 ac_cv_use_menus='wxUSE_MENUS=yes'
7130 else
7131 ac_cv_use_menus='wxUSE_MENUS=no'
7132 fi
7133
7134else
7135
7136 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
7137 if test "x$LINE" != x ; then
7138 eval "DEFAULT_$LINE"
7139 else
7140 no_cache=1
7141 fi
7142
7143 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
7144
7145fi
7146
7147
7148 eval "$ac_cv_use_menus"
7149 if test "$no_cache" != 1; then
7150 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
7151 fi
7152
7153 if test "$wxUSE_MENUS" = yes; then
7154 echo "$ac_t""yes" 1>&6
7155 else
7156 echo "$ac_t""no" 1>&6
7157 fi
7158
7159
698dcdb6 7160 echo $ac_n "checking for --enable-miniframe""... $ac_c" 1>&6
b3e8d00a 7161echo "configure:7162: checking for --enable-miniframe" >&5
10f2d63a
VZ
7162 no_cache=0
7163 # Check whether --enable-miniframe or --disable-miniframe was given.
7164if test "${enable_miniframe+set}" = set; then
7165 enableval="$enable_miniframe"
698dcdb6 7166
10f2d63a
VZ
7167 if test "$enableval" = yes; then
7168 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
7169 else
7170 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
7171 fi
698dcdb6 7172
10f2d63a 7173else
698dcdb6 7174
10f2d63a
VZ
7175 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
7176 if test "x$LINE" != x ; then
7177 eval "DEFAULT_$LINE"
7178 else
7179 no_cache=1
7180 fi
7181
7182 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
698dcdb6
VZ
7183
7184fi
10f2d63a
VZ
7185
7186
7187 eval "$ac_cv_use_miniframe"
7188 if test "$no_cache" != 1; then
7189 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
7190 fi
7191
7192 if test "$wxUSE_MINIFRAME" = yes; then
698dcdb6 7193 echo "$ac_t""yes" 1>&6
10f2d63a 7194 else
698dcdb6 7195 echo "$ac_t""no" 1>&6
10f2d63a 7196 fi
698dcdb6 7197
10f2d63a 7198
698dcdb6 7199 echo $ac_n "checking for --enable-tooltips""... $ac_c" 1>&6
b3e8d00a 7200echo "configure:7201: checking for --enable-tooltips" >&5
10f2d63a
VZ
7201 no_cache=0
7202 # Check whether --enable-tooltips or --disable-tooltips was given.
7203if test "${enable_tooltips+set}" = set; then
7204 enableval="$enable_tooltips"
698dcdb6 7205
10f2d63a
VZ
7206 if test "$enableval" = yes; then
7207 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
7208 else
7209 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
7210 fi
698dcdb6 7211
10f2d63a 7212else
698dcdb6 7213
10f2d63a
VZ
7214 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
7215 if test "x$LINE" != x ; then
7216 eval "DEFAULT_$LINE"
7217 else
7218 no_cache=1
7219 fi
7220
7221 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
698dcdb6
VZ
7222
7223fi
10f2d63a
VZ
7224
7225
7226 eval "$ac_cv_use_tooltips"
7227 if test "$no_cache" != 1; then
7228 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
7229 fi
7230
7231 if test "$wxUSE_TOOLTIPS" = yes; then
698dcdb6 7232 echo "$ac_t""yes" 1>&6
10f2d63a 7233 else
698dcdb6 7234 echo "$ac_t""no" 1>&6
10f2d63a 7235 fi
698dcdb6 7236
10f2d63a 7237
698dcdb6 7238 echo $ac_n "checking for --enable-splines""... $ac_c" 1>&6
b3e8d00a 7239echo "configure:7240: checking for --enable-splines" >&5
10f2d63a
VZ
7240 no_cache=0
7241 # Check whether --enable-splines or --disable-splines was given.
7242if test "${enable_splines+set}" = set; then
7243 enableval="$enable_splines"
698dcdb6 7244
10f2d63a
VZ
7245 if test "$enableval" = yes; then
7246 ac_cv_use_splines='wxUSE_SPLINES=yes'
7247 else
7248 ac_cv_use_splines='wxUSE_SPLINES=no'
7249 fi
698dcdb6 7250
10f2d63a 7251else
698dcdb6 7252
10f2d63a
VZ
7253 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
7254 if test "x$LINE" != x ; then
7255 eval "DEFAULT_$LINE"
7256 else
7257 no_cache=1
7258 fi
7259
7260 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
698dcdb6
VZ
7261
7262fi
10f2d63a
VZ
7263
7264
7265 eval "$ac_cv_use_splines"
7266 if test "$no_cache" != 1; then
7267 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
7268 fi
7269
7270 if test "$wxUSE_SPLINES" = yes; then
698dcdb6 7271 echo "$ac_t""yes" 1>&6
10f2d63a 7272 else
698dcdb6 7273 echo "$ac_t""no" 1>&6
10f2d63a 7274 fi
698dcdb6 7275
10f2d63a 7276
698dcdb6 7277 echo $ac_n "checking for --enable-validators""... $ac_c" 1>&6
b3e8d00a 7278echo "configure:7279: checking for --enable-validators" >&5
10f2d63a
VZ
7279 no_cache=0
7280 # Check whether --enable-validators or --disable-validators was given.
7281if test "${enable_validators+set}" = set; then
7282 enableval="$enable_validators"
698dcdb6 7283
10f2d63a
VZ
7284 if test "$enableval" = yes; then
7285 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
7286 else
7287 ac_cv_use_validators='wxUSE_VALIDATORS=no'
7288 fi
698dcdb6 7289
10f2d63a 7290else
698dcdb6 7291
10f2d63a
VZ
7292 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
7293 if test "x$LINE" != x ; then
7294 eval "DEFAULT_$LINE"
7295 else
7296 no_cache=1
7297 fi
7298
7299 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
698dcdb6
VZ
7300
7301fi
10f2d63a
VZ
7302
7303
7304 eval "$ac_cv_use_validators"
7305 if test "$no_cache" != 1; then
7306 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
7307 fi
7308
7309 if test "$wxUSE_VALIDATORS" = yes; then
698dcdb6 7310 echo "$ac_t""yes" 1>&6
10f2d63a 7311 else
698dcdb6 7312 echo "$ac_t""no" 1>&6
10f2d63a 7313 fi
698dcdb6 7314
10f2d63a 7315
698dcdb6 7316 echo $ac_n "checking for --enable-busyinfo""... $ac_c" 1>&6
b3e8d00a 7317echo "configure:7318: checking for --enable-busyinfo" >&5
10f2d63a
VZ
7318 no_cache=0
7319 # Check whether --enable-busyinfo or --disable-busyinfo was given.
7320if test "${enable_busyinfo+set}" = set; then
7321 enableval="$enable_busyinfo"
698dcdb6 7322
10f2d63a
VZ
7323 if test "$enableval" = yes; then
7324 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
7325 else
7326 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
7327 fi
698dcdb6 7328
10f2d63a 7329else
698dcdb6 7330
10f2d63a
VZ
7331 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
7332 if test "x$LINE" != x ; then
7333 eval "DEFAULT_$LINE"
7334 else
7335 no_cache=1
7336 fi
7337
7338 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
698dcdb6
VZ
7339
7340fi
10f2d63a
VZ
7341
7342
7343 eval "$ac_cv_use_busyinfo"
7344 if test "$no_cache" != 1; then
7345 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
7346 fi
7347
7348 if test "$wxUSE_BUSYINFO" = yes; then
698dcdb6 7349 echo "$ac_t""yes" 1>&6
10f2d63a 7350 else
698dcdb6 7351 echo "$ac_t""no" 1>&6
10f2d63a 7352 fi
698dcdb6 7353
10f2d63a 7354
698dcdb6 7355 echo $ac_n "checking for --enable-joystick""... $ac_c" 1>&6
b3e8d00a 7356echo "configure:7357: checking for --enable-joystick" >&5
f6bcfd97
BP
7357 no_cache=0
7358 # Check whether --enable-joystick or --disable-joystick was given.
7359if test "${enable_joystick+set}" = set; then
7360 enableval="$enable_joystick"
698dcdb6 7361
f6bcfd97
BP
7362 if test "$enableval" = yes; then
7363 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
7364 else
7365 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
7366 fi
698dcdb6 7367
f6bcfd97 7368else
698dcdb6 7369
f6bcfd97
BP
7370 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
7371 if test "x$LINE" != x ; then
7372 eval "DEFAULT_$LINE"
7373 else
7374 no_cache=1
7375 fi
7376
7377 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
698dcdb6
VZ
7378
7379fi
f6bcfd97
BP
7380
7381
7382 eval "$ac_cv_use_joystick"
7383 if test "$no_cache" != 1; then
7384 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
7385 fi
7386
7387 if test "$wxUSE_JOYSTICK" = yes; then
698dcdb6 7388 echo "$ac_t""yes" 1>&6
f6bcfd97 7389 else
698dcdb6 7390 echo "$ac_t""no" 1>&6
f6bcfd97 7391 fi
698dcdb6
VZ
7392
7393
1e6feb95 7394 echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6
b3e8d00a 7395echo "configure:7396: checking for --enable-metafile" >&5
1e6feb95
VZ
7396 no_cache=0
7397 # Check whether --enable-metafile or --disable-metafile was given.
7398if test "${enable_metafile+set}" = set; then
7399 enableval="$enable_metafile"
7400
7401 if test "$enableval" = yes; then
7402 ac_cv_use_metafile='wxUSE_METAFILE=yes'
7403 else
7404 ac_cv_use_metafile='wxUSE_METAFILE=no'
7405 fi
7406
7407else
7408
7409 LINE=`grep "wxUSE_METAFILE" ${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_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
7417
7418fi
7419
7420
7421 eval "$ac_cv_use_metafile"
7422 if test "$no_cache" != 1; then
7423 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
7424 fi
7425
7426 if test "$wxUSE_METAFILE" = yes; then
7427 echo "$ac_t""yes" 1>&6
7428 else
7429 echo "$ac_t""no" 1>&6
7430 fi
7431
7432
24fd6d87 7433 echo $ac_n "checking for --enable-dragimage""... $ac_c" 1>&6
b3e8d00a 7434echo "configure:7435: checking for --enable-dragimage" >&5
24fd6d87
VZ
7435 no_cache=0
7436 # Check whether --enable-dragimage or --disable-dragimage was given.
7437if test "${enable_dragimage+set}" = set; then
7438 enableval="$enable_dragimage"
7439
7440 if test "$enableval" = yes; then
7441 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
7442 else
7443 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
7444 fi
7445
7446else
7447
7448 LINE=`grep "wxUSE_DRAGIMAGE" ${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_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
7456
7457fi
7458
7459
7460 eval "$ac_cv_use_dragimage"
7461 if test "$no_cache" != 1; then
7462 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
7463 fi
7464
7465 if test "$wxUSE_DRAGIMAGE" = yes; then
7466 echo "$ac_t""yes" 1>&6
7467 else
7468 echo "$ac_t""no" 1>&6
7469 fi
7470
7471
10f2d63a 7472
698dcdb6
VZ
7473
7474 echo $ac_n "checking for --enable-image""... $ac_c" 1>&6
b3e8d00a 7475echo "configure:7476: checking for --enable-image" >&5
0046ff7c
VS
7476 no_cache=0
7477 # Check whether --enable-image or --disable-image was given.
7478if test "${enable_image+set}" = set; then
7479 enableval="$enable_image"
698dcdb6 7480
0046ff7c
VS
7481 if test "$enableval" = yes; then
7482 ac_cv_use_image='wxUSE_IMAGE=yes'
7483 else
7484 ac_cv_use_image='wxUSE_IMAGE=no'
7485 fi
698dcdb6 7486
0046ff7c 7487else
698dcdb6 7488
0046ff7c
VS
7489 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
7490 if test "x$LINE" != x ; then
7491 eval "DEFAULT_$LINE"
7492 else
7493 no_cache=1
7494 fi
7495
7496 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
698dcdb6
VZ
7497
7498fi
0046ff7c
VS
7499
7500
7501 eval "$ac_cv_use_image"
7502 if test "$no_cache" != 1; then
7503 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
7504 fi
7505
7506 if test "$wxUSE_IMAGE" = yes; then
698dcdb6 7507 echo "$ac_t""yes" 1>&6
0046ff7c 7508 else
698dcdb6 7509 echo "$ac_t""no" 1>&6
0046ff7c 7510 fi
698dcdb6 7511
0046ff7c 7512
698dcdb6 7513 echo $ac_n "checking for --enable-gif""... $ac_c" 1>&6
b3e8d00a 7514echo "configure:7515: checking for --enable-gif" >&5
10f2d63a
VZ
7515 no_cache=0
7516 # Check whether --enable-gif or --disable-gif was given.
7517if test "${enable_gif+set}" = set; then
7518 enableval="$enable_gif"
698dcdb6 7519
10f2d63a
VZ
7520 if test "$enableval" = yes; then
7521 ac_cv_use_gif='wxUSE_GIF=yes'
7522 else
7523 ac_cv_use_gif='wxUSE_GIF=no'
7524 fi
698dcdb6 7525
10f2d63a 7526else
698dcdb6 7527
10f2d63a
VZ
7528 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
7529 if test "x$LINE" != x ; then
7530 eval "DEFAULT_$LINE"
7531 else
7532 no_cache=1
7533 fi
7534
7535 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
698dcdb6
VZ
7536
7537fi
10f2d63a
VZ
7538
7539
7540 eval "$ac_cv_use_gif"
7541 if test "$no_cache" != 1; then
7542 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
7543 fi
7544
7545 if test "$wxUSE_GIF" = yes; then
698dcdb6 7546 echo "$ac_t""yes" 1>&6
10f2d63a 7547 else
698dcdb6 7548 echo "$ac_t""no" 1>&6
10f2d63a 7549 fi
698dcdb6 7550
10f2d63a 7551
698dcdb6 7552 echo $ac_n "checking for --enable-pcx""... $ac_c" 1>&6
b3e8d00a 7553echo "configure:7554: checking for --enable-pcx" >&5
10f2d63a
VZ
7554 no_cache=0
7555 # Check whether --enable-pcx or --disable-pcx was given.
7556if test "${enable_pcx+set}" = set; then
7557 enableval="$enable_pcx"
698dcdb6 7558
10f2d63a
VZ
7559 if test "$enableval" = yes; then
7560 ac_cv_use_pcx='wxUSE_PCX=yes'
7561 else
7562 ac_cv_use_pcx='wxUSE_PCX=no'
7563 fi
698dcdb6 7564
10f2d63a 7565else
698dcdb6 7566
10f2d63a
VZ
7567 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
7568 if test "x$LINE" != x ; then
7569 eval "DEFAULT_$LINE"
7570 else
7571 no_cache=1
7572 fi
7573
7574 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
698dcdb6
VZ
7575
7576fi
10f2d63a
VZ
7577
7578
7579 eval "$ac_cv_use_pcx"
7580 if test "$no_cache" != 1; then
7581 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
7582 fi
7583
7584 if test "$wxUSE_PCX" = yes; then
698dcdb6 7585 echo "$ac_t""yes" 1>&6
10f2d63a 7586 else
698dcdb6 7587 echo "$ac_t""no" 1>&6
10f2d63a 7588 fi
698dcdb6 7589
10f2d63a 7590
698dcdb6 7591 echo $ac_n "checking for --enable-pnm""... $ac_c" 1>&6
b3e8d00a 7592echo "configure:7593: checking for --enable-pnm" >&5
10f2d63a
VZ
7593 no_cache=0
7594 # Check whether --enable-pnm or --disable-pnm was given.
7595if test "${enable_pnm+set}" = set; then
7596 enableval="$enable_pnm"
698dcdb6 7597
10f2d63a
VZ
7598 if test "$enableval" = yes; then
7599 ac_cv_use_pnm='wxUSE_PNM=yes'
7600 else
7601 ac_cv_use_pnm='wxUSE_PNM=no'
7602 fi
698dcdb6 7603
10f2d63a 7604else
698dcdb6 7605
10f2d63a
VZ
7606 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
7607 if test "x$LINE" != x ; then
7608 eval "DEFAULT_$LINE"
7609 else
7610 no_cache=1
7611 fi
7612
7613 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
698dcdb6
VZ
7614
7615fi
10f2d63a
VZ
7616
7617
7618 eval "$ac_cv_use_pnm"
7619 if test "$no_cache" != 1; then
7620 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
7621 fi
7622
7623 if test "$wxUSE_PNM" = yes; then
698dcdb6 7624 echo "$ac_t""yes" 1>&6
10f2d63a 7625 else
698dcdb6 7626 echo "$ac_t""no" 1>&6
10f2d63a 7627 fi
698dcdb6 7628
10f2d63a 7629
698dcdb6 7630 echo $ac_n "checking for --enable-pnm""... $ac_c" 1>&6
b3e8d00a 7631echo "configure:7632: checking for --enable-pnm" >&5
0046ff7c
VS
7632 no_cache=0
7633 # Check whether --enable-pnm or --disable-pnm was given.
7634if test "${enable_pnm+set}" = set; then
7635 enableval="$enable_pnm"
698dcdb6 7636
0046ff7c
VS
7637 if test "$enableval" = yes; then
7638 ac_cv_use_pnm='wxUSE_XPM=yes'
7639 else
7640 ac_cv_use_pnm='wxUSE_XPM=no'
7641 fi
698dcdb6 7642
0046ff7c 7643else
698dcdb6 7644
0046ff7c
VS
7645 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
7646 if test "x$LINE" != x ; then
7647 eval "DEFAULT_$LINE"
7648 else
7649 no_cache=1
7650 fi
7651
7652 ac_cv_use_pnm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
698dcdb6
VZ
7653
7654fi
0046ff7c
VS
7655
7656
7657 eval "$ac_cv_use_pnm"
7658 if test "$no_cache" != 1; then
7659 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
7660 fi
7661
7662 if test "$wxUSE_XPM" = yes; then
698dcdb6 7663 echo "$ac_t""yes" 1>&6
0046ff7c 7664 else
698dcdb6 7665 echo "$ac_t""no" 1>&6
0046ff7c 7666 fi
698dcdb6 7667
0046ff7c 7668
b12915c1
VZ
7669fi
7670
698dcdb6 7671
10f2d63a
VZ
7672 echo "saving argument cache $wx_arg_cache_file"
7673 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
698dcdb6 7674
10f2d63a 7675
698dcdb6
VZ
7676
7677echo $ac_n "checking for toolkit""... $ac_c" 1>&6
b3e8d00a 7678echo "configure:7679: checking for toolkit" >&5
10f2d63a
VZ
7679
7680if test "$wxUSE_GUI" = "yes"; then
7681
3a922bb4
RL
7682 if test "$USE_BEOS" = 1; then
7683 { echo "configure: error: BeOS GUI is not supported yet, use --disable-gui" 1>&2; exit 1; }
7684 fi
b12915c1 7685
3a922bb4
RL
7686 if test "$TOOLKIT_GIVEN" = 1; then
7687 for toolkit in `echo $ALL_TOOLKITS`; do
7688 var=wxUSE_$toolkit
7689 eval "value=\$${var}"
7690 eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
7691 done
10f2d63a 7692 else
3a922bb4
RL
7693 for toolkit in `echo $ALL_TOOLKITS`; do
7694 if test "$has_toolkit_in_cache" != 1; then
7695 var=DEFAULT_DEFAULT_wxUSE_$toolkit
7696 else
7697 var=DEFAULT_wxUSE_$toolkit
7698 fi
7699 eval "wxUSE_$toolkit=\$${var}"
7700 done
10f2d63a 7701 fi
10f2d63a 7702
3a922bb4
RL
7703 NUM_TOOLKITS=`expr ${wxUSE_GTK:-0} + ${wxUSE_MOTIF:-0} + ${wxUSE_MAC:-0} \
7704 + ${wxUSE_WINE:-0} + ${wxUSE_MINGW:-0} + ${wxUSE_CYGWIN:-0} \
7705 + ${wxUSE_MGL:-0}`
10f2d63a 7706
3a922bb4
RL
7707 case "${host}" in
7708 *-pc-os2_emx )
7709 # PATH_IFS is autodetected by OS/2's configure (usually ';')
7710 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
7711 LEX_STEM="lexyy"
7712 ;;
7713 *)
7714 PATH_IFS=':'
7715 LEX_STEM="lex.yy"
7716 ;;
7717 esac
10f2d63a 7718
3a922bb4
RL
7719 case "$NUM_TOOLKITS" in
7720 1)
7721 ;;
7722 0)
7723 { echo "configure: error: Please specify a toolkit - cannot determine the default for ${host}" 1>&2; exit 1; }
7724 ;;
7725 *)
7726 { echo "configure: error: Please specify at most one toolkit (may be some are cached?)" 1>&2; exit 1; }
7727 esac
10f2d63a 7728
3a922bb4
RL
7729 for toolkit in `echo $ALL_TOOLKITS`; do
7730 var=wxUSE_$toolkit
7731 eval "value=\$${var}"
7732 if test "x$value" != x; then
7733 cache_var=CACHE_$toolkit
7734 eval "cache=\$${cache_var}"
7735 if test "$cache" = 1; then
7736 echo "$var=$value" >> ${wx_arg_cache_file}
7737 fi
7738 if test "$value" = 1; then
7739 toolkit_echo=`echo $toolkit | tr [A-Z] [a-z]`
7740 echo "$ac_t""$toolkit_echo" 1>&6
7741 fi
7742 fi
7743 done
10f2d63a 7744else
cf27ef00 7745 PATH_IFS=':'
3a922bb4 7746 echo "$ac_t""base ($host_alias hosted) only" 1>&6
10f2d63a
VZ
7747fi
7748
698dcdb6
VZ
7749
7750cat > confcache <<\EOF
10f2d63a
VZ
7751# This file is a shell script that caches the results of configure
7752# tests run on this system so they can be shared between configure
698dcdb6
VZ
7753# scripts and configure runs. It is not useful on other systems.
7754# If it contains results you don't want to keep, you may remove or edit it.
10f2d63a 7755#
698dcdb6
VZ
7756# By default, configure uses ./config.cache as the cache file,
7757# creating it if it does not exist already. You can give configure
7758# the --cache-file=FILE option to use a different cache file; that is
7759# what configure does when it calls configure scripts in
7760# subdirectories, so they share the cache.
7761# Giving --cache-file=/dev/null disables caching, for debugging configure.
7762# config.status only pays attention to the cache file if you give it the
7763# --recheck option to rerun configure.
10f2d63a 7764#
698dcdb6 7765EOF
10f2d63a
VZ
7766# The following way of writing the cache mishandles newlines in values,
7767# but we know of no workaround that is simple, portable, and efficient.
7768# So, don't put newlines in cache variables' values.
7769# Ultrix sh set writes to stderr and can't be redirected directly,
7770# and sets the high bit in the cache file unless we assign to the vars.
698dcdb6
VZ
7771(set) 2>&1 |
7772 case `(ac_space=' '; set | grep ac_space) 2>&1` in
7773 *ac_space=\ *)
7774 # `set' does not quote correctly, so add quotes (double-quote substitution
7775 # turns \\\\ into \\, and sed turns \\ into \).
7776 sed -n \
7777 -e "s/'/'\\\\''/g" \
7778 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
7779 ;;
7780 *)
7781 # `set' quotes correctly as required by POSIX, so do not add quotes.
7782 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
7783 ;;
7784 esac >> confcache
7785if cmp -s $cache_file confcache; then
7786 :
7787else
10f2d63a 7788 if test -w $cache_file; then
698dcdb6
VZ
7789 echo "updating cache $cache_file"
7790 cat confcache > $cache_file
10f2d63a
VZ
7791 else
7792 echo "not updating unwritable cache $cache_file"
7793 fi
7794fi
7795rm -f confcache
7796
698dcdb6 7797
e59890c3 7798if test "$build" != "$host" ; then
3a922bb4
RL
7799 if test "$USE_WIN32" = 1 ; then
7800 CC=$host_alias-gcc
7801 CXX=$host_alias-c++
7802 AR=$host_alias-ar
7803 RANLIB=$host_alias-ranlib
7804 DLLTOOL=$host_alias-dlltool
7805 RESCOMP=$host_alias-windres
7806 LD=$host_alias-ld
7807 NM=$host_alias-nm
7808 STRIP=$host_alias-strip
7809 else
7810 { echo "configure: error: $build_alias -> $host_alias cross compilation not supported yet." 1>&2; exit 1; }
7811 fi
10f2d63a
VZ
7812fi
7813
698dcdb6 7814# Extract the first word of "gcc", so it can be a program name with args.
1e487827 7815set dummy gcc; ac_word=$2
698dcdb6 7816echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
b3e8d00a 7817echo "configure:7818: checking for $ac_word" >&5
698dcdb6
VZ
7818if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
7819 echo $ac_n "(cached) $ac_c" 1>&6
6232543b
VS
7820else
7821 if test -n "$CC"; then
7822 ac_cv_prog_CC="$CC" # Let the user override the test.
10f2d63a 7823else
698dcdb6
VZ
7824 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7825 ac_dummy="$PATH"
7826 for ac_dir in $ac_dummy; do
7827 test -z "$ac_dir" && ac_dir=.
7828 if test -f $ac_dir/$ac_word; then
7829 ac_cv_prog_CC="gcc"
7830 break
7831 fi
7832 done
7833 IFS="$ac_save_ifs"
10f2d63a 7834fi
6232543b 7835fi
698dcdb6 7836CC="$ac_cv_prog_CC"
6232543b 7837if test -n "$CC"; then
698dcdb6 7838 echo "$ac_t""$CC" 1>&6
1e487827 7839else
698dcdb6 7840 echo "$ac_t""no" 1>&6
1e487827 7841fi
6232543b 7842
1e487827
VS
7843if test -z "$CC"; then
7844 # Extract the first word of "cc", so it can be a program name with args.
7845set dummy cc; ac_word=$2
698dcdb6 7846echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
b3e8d00a 7847echo "configure:7848: checking for $ac_word" >&5
698dcdb6
VZ
7848if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
7849 echo $ac_n "(cached) $ac_c" 1>&6
1e487827
VS
7850else
7851 if test -n "$CC"; then
7852 ac_cv_prog_CC="$CC" # Let the user override the test.
7853else
698dcdb6 7854 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1e487827 7855 ac_prog_rejected=no
698dcdb6
VZ
7856 ac_dummy="$PATH"
7857 for ac_dir in $ac_dummy; do
7858 test -z "$ac_dir" && ac_dir=.
7859 if test -f $ac_dir/$ac_word; then
7860 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
7861 ac_prog_rejected=yes
7862 continue
7863 fi
7864 ac_cv_prog_CC="cc"
7865 break
7866 fi
7867 done
7868 IFS="$ac_save_ifs"
1e487827
VS
7869if test $ac_prog_rejected = yes; then
7870 # We found a bogon in the path, so make sure we never use it.
7871 set dummy $ac_cv_prog_CC
7872 shift
698dcdb6 7873 if test $# -gt 0; then
1e487827
VS
7874 # We chose a different compiler from the bogus one.
7875 # However, it has the same basename, so the bogon will be chosen
7876 # first if we set CC to just the basename; use the full file name.
7877 shift
698dcdb6 7878 set dummy "$ac_dir/$ac_word" "$@"
1e487827
VS
7879 shift
7880 ac_cv_prog_CC="$@"
703e0a69 7881 fi
1e487827
VS
7882fi
7883fi
7884fi
698dcdb6 7885CC="$ac_cv_prog_CC"
1e487827 7886if test -n "$CC"; then
698dcdb6 7887 echo "$ac_t""$CC" 1>&6
703e0a69 7888else
698dcdb6 7889 echo "$ac_t""no" 1>&6
703e0a69 7890fi
1e487827 7891
698dcdb6
VZ
7892 if test -z "$CC"; then
7893 case "`uname -s`" in
7894 *win32* | *WIN32*)
7895 # Extract the first word of "cl", so it can be a program name with args.
7896set dummy cl; ac_word=$2
7897echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
b3e8d00a 7898echo "configure:7899: checking for $ac_word" >&5
698dcdb6
VZ
7899if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
7900 echo $ac_n "(cached) $ac_c" 1>&6
1e487827
VS
7901else
7902 if test -n "$CC"; then
7903 ac_cv_prog_CC="$CC" # Let the user override the test.
703e0a69 7904else
698dcdb6
VZ
7905 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7906 ac_dummy="$PATH"
7907 for ac_dir in $ac_dummy; do
7908 test -z "$ac_dir" && ac_dir=.
7909 if test -f $ac_dir/$ac_word; then
7910 ac_cv_prog_CC="cl"
7911 break
7912 fi
7913 done
7914 IFS="$ac_save_ifs"
703e0a69 7915fi
1e487827 7916fi
698dcdb6 7917CC="$ac_cv_prog_CC"
1e487827 7918if test -n "$CC"; then
698dcdb6 7919 echo "$ac_t""$CC" 1>&6
1e487827 7920else
698dcdb6 7921 echo "$ac_t""no" 1>&6
1e487827 7922fi
698dcdb6
VZ
7923 ;;
7924 esac
7925 fi
7926 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1e487827
VS
7927fi
7928
698dcdb6 7929echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
b3e8d00a 7930echo "configure:7931: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1e487827 7931
698dcdb6
VZ
7932ac_ext=c
7933# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7934ac_cpp='$CPP $CPPFLAGS'
7935ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7936ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7937cross_compiling=$ac_cv_prog_cc_cross
6232543b 7938
698dcdb6 7939cat > conftest.$ac_ext << EOF
1e487827 7940
b3e8d00a 7941#line 7942 "configure"
1e487827
VS
7942#include "confdefs.h"
7943
698dcdb6
VZ
7944main(){return(0);}
7945EOF
b3e8d00a 7946if { (eval echo configure:7947: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
7947 ac_cv_prog_cc_works=yes
7948 # If we can't run a trivial program, we are probably using a cross compiler.
7949 if (./conftest; exit) 2>/dev/null; then
7950 ac_cv_prog_cc_cross=no
7951 else
7952 ac_cv_prog_cc_cross=yes
7953 fi
7954else
7955 echo "configure: failed program was:" >&5
7956 cat conftest.$ac_ext >&5
7957 ac_cv_prog_cc_works=no
7958fi
7959rm -fr conftest*
7960ac_ext=c
7961# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7962ac_cpp='$CPP $CPPFLAGS'
7963ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7964ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7965cross_compiling=$ac_cv_prog_cc_cross
7966
7967echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
7968if test $ac_cv_prog_cc_works = no; then
7969 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
7970fi
7971echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
b3e8d00a 7972echo "configure:7973: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
698dcdb6
VZ
7973echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
7974cross_compiling=$ac_cv_prog_cc_cross
7975
7976echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
b3e8d00a 7977echo "configure:7978: checking whether we are using GNU C" >&5
698dcdb6
VZ
7978if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
7979 echo $ac_n "(cached) $ac_c" 1>&6
7980else
7981 cat > conftest.c <<EOF
7982#ifdef __GNUC__
7983 yes;
1e487827 7984#endif
698dcdb6 7985EOF
b3e8d00a 7986if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:7987: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
698dcdb6
VZ
7987 ac_cv_prog_gcc=yes
7988else
7989 ac_cv_prog_gcc=no
7990fi
7991fi
1e487827 7992
698dcdb6 7993echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1e487827 7994
698dcdb6
VZ
7995if test $ac_cv_prog_gcc = yes; then
7996 GCC=yes
7997else
7998 GCC=
7999fi
1e487827 8000
698dcdb6
VZ
8001ac_test_CFLAGS="${CFLAGS+set}"
8002ac_save_CFLAGS="$CFLAGS"
8003CFLAGS=
8004echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
b3e8d00a 8005echo "configure:8006: checking whether ${CC-cc} accepts -g" >&5
698dcdb6
VZ
8006if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
8007 echo $ac_n "(cached) $ac_c" 1>&6
8008else
8009 echo 'void f(){}' > conftest.c
8010if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
10f2d63a
VZ
8011 ac_cv_prog_cc_g=yes
8012else
698dcdb6 8013 ac_cv_prog_cc_g=no
10f2d63a 8014fi
698dcdb6
VZ
8015rm -f conftest*
8016
10f2d63a 8017fi
698dcdb6
VZ
8018
8019echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
10f2d63a 8020if test "$ac_test_CFLAGS" = set; then
698dcdb6 8021 CFLAGS="$ac_save_CFLAGS"
10f2d63a
VZ
8022elif test $ac_cv_prog_cc_g = yes; then
8023 if test "$GCC" = yes; then
8024 CFLAGS="-g -O2"
8025 else
8026 CFLAGS="-g"
8027 fi
8028else
8029 if test "$GCC" = yes; then
8030 CFLAGS="-O2"
8031 else
8032 CFLAGS=
8033 fi
8034fi
8035
8036
8037CFLAGS=`echo "$CFLAGS" | sed 's/-g//g'`
8038
698dcdb6 8039echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
b3e8d00a 8040echo "configure:8041: checking how to run the C preprocessor" >&5
10f2d63a
VZ
8041# On Suns, sometimes $CPP names a directory.
8042if test -n "$CPP" && test -d "$CPP"; then
8043 CPP=
8044fi
8045if test -z "$CPP"; then
698dcdb6
VZ
8046if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
8047 echo $ac_n "(cached) $ac_c" 1>&6
8048else
8049 # This must be in double quotes, not single quotes, because CPP may get
8050 # substituted into the Makefile and "${CC-cc}" will confuse make.
8051 CPP="${CC-cc} -E"
10f2d63a 8052 # On the NeXT, cc -E runs the code through the compiler's parser,
698dcdb6
VZ
8053 # not just through cpp.
8054 cat > conftest.$ac_ext <<EOF
b3e8d00a 8055#line 8056 "configure"
10f2d63a
VZ
8056#include "confdefs.h"
8057#include <assert.h>
698dcdb6
VZ
8058Syntax Error
8059EOF
8060ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
b3e8d00a 8061{ (eval echo configure:8062: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
8062ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8063if test -z "$ac_err"; then
10f2d63a
VZ
8064 :
8065else
698dcdb6
VZ
8066 echo "$ac_err" >&5
8067 echo "configure: failed program was:" >&5
10f2d63a 8068 cat conftest.$ac_ext >&5
698dcdb6
VZ
8069 rm -rf conftest*
8070 CPP="${CC-cc} -E -traditional-cpp"
8071 cat > conftest.$ac_ext <<EOF
b3e8d00a 8072#line 8073 "configure"
10f2d63a 8073#include "confdefs.h"
698dcdb6
VZ
8074#include <assert.h>
8075Syntax Error
8076EOF
8077ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
b3e8d00a 8078{ (eval echo configure:8079: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
8079ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8080if test -z "$ac_err"; then
8081 :
10f2d63a 8082else
698dcdb6
VZ
8083 echo "$ac_err" >&5
8084 echo "configure: failed program was:" >&5
10f2d63a 8085 cat conftest.$ac_ext >&5
698dcdb6
VZ
8086 rm -rf conftest*
8087 CPP="${CC-cc} -nologo -E"
8088 cat > conftest.$ac_ext <<EOF
b3e8d00a 8089#line 8090 "configure"
10f2d63a
VZ
8090#include "confdefs.h"
8091#include <assert.h>
698dcdb6
VZ
8092Syntax Error
8093EOF
8094ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
b3e8d00a 8095{ (eval echo configure:8096: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
8096ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8097if test -z "$ac_err"; then
10f2d63a
VZ
8098 :
8099else
698dcdb6
VZ
8100 echo "$ac_err" >&5
8101 echo "configure: failed program was:" >&5
10f2d63a 8102 cat conftest.$ac_ext >&5
698dcdb6
VZ
8103 rm -rf conftest*
8104 CPP=/lib/cpp
10f2d63a 8105fi
698dcdb6 8106rm -f conftest*
10f2d63a 8107fi
698dcdb6 8108rm -f conftest*
703e0a69 8109fi
698dcdb6
VZ
8110rm -f conftest*
8111 ac_cv_prog_CPP="$CPP"
8112fi
8113 CPP="$ac_cv_prog_CPP"
10f2d63a 8114else
698dcdb6 8115 ac_cv_prog_CPP="$CPP"
10f2d63a 8116fi
698dcdb6 8117echo "$ac_t""$CPP" 1>&6
10f2d63a 8118
698dcdb6
VZ
8119if test $ac_cv_prog_gcc = yes; then
8120 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
b3e8d00a 8121echo "configure:8122: checking whether ${CC-cc} needs -traditional" >&5
698dcdb6
VZ
8122if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
8123 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
8124else
8125 ac_pattern="Autoconf.*'x'"
698dcdb6 8126 cat > conftest.$ac_ext <<EOF
b3e8d00a 8127#line 8128 "configure"
10f2d63a
VZ
8128#include "confdefs.h"
8129#include <sgtty.h>
8130Autoconf TIOCGETP
698dcdb6 8131EOF
10f2d63a
VZ
8132if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8133 egrep "$ac_pattern" >/dev/null 2>&1; then
698dcdb6 8134 rm -rf conftest*
10f2d63a
VZ
8135 ac_cv_prog_gcc_traditional=yes
8136else
698dcdb6 8137 rm -rf conftest*
10f2d63a
VZ
8138 ac_cv_prog_gcc_traditional=no
8139fi
8140rm -f conftest*
8141
698dcdb6 8142
10f2d63a 8143 if test $ac_cv_prog_gcc_traditional = no; then
698dcdb6 8144 cat > conftest.$ac_ext <<EOF
b3e8d00a 8145#line 8146 "configure"
10f2d63a
VZ
8146#include "confdefs.h"
8147#include <termio.h>
8148Autoconf TCGETA
698dcdb6 8149EOF
10f2d63a
VZ
8150if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8151 egrep "$ac_pattern" >/dev/null 2>&1; then
698dcdb6 8152 rm -rf conftest*
10f2d63a
VZ
8153 ac_cv_prog_gcc_traditional=yes
8154fi
8155rm -f conftest*
8156
8157 fi
8158fi
698dcdb6
VZ
8159
8160echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
10f2d63a
VZ
8161 if test $ac_cv_prog_gcc_traditional = yes; then
8162 CC="$CC -traditional"
8163 fi
8164fi
8165
703e0a69 8166
698dcdb6
VZ
8167
8168ac_ext=C
8169# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1e487827 8170ac_cpp='$CXXCPP $CPPFLAGS'
698dcdb6
VZ
8171ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8172ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8173cross_compiling=$ac_cv_prog_cxx_cross
8174
8175
8176for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
8177do
8178# Extract the first word of "$ac_prog", so it can be a program name with args.
8179set dummy $ac_prog; ac_word=$2
8180echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
b3e8d00a 8181echo "configure:8182: checking for $ac_word" >&5
698dcdb6
VZ
8182if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
8183 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
8184else
8185 if test -n "$CXX"; then
8186 ac_cv_prog_CXX="$CXX" # Let the user override the test.
8187else
698dcdb6
VZ
8188 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8189 ac_dummy="$PATH"
8190 for ac_dir in $ac_dummy; do
8191 test -z "$ac_dir" && ac_dir=.
8192 if test -f $ac_dir/$ac_word; then
8193 ac_cv_prog_CXX="$ac_prog"
8194 break
8195 fi
8196 done
8197 IFS="$ac_save_ifs"
10f2d63a
VZ
8198fi
8199fi
698dcdb6 8200CXX="$ac_cv_prog_CXX"
10f2d63a 8201if test -n "$CXX"; then
698dcdb6 8202 echo "$ac_t""$CXX" 1>&6
10f2d63a 8203else
698dcdb6 8204 echo "$ac_t""no" 1>&6
10f2d63a
VZ
8205fi
8206
698dcdb6 8207test -n "$CXX" && break
10f2d63a 8208done
698dcdb6 8209test -n "$CXX" || CXX="gcc"
10f2d63a
VZ
8210
8211
698dcdb6 8212echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
b3e8d00a 8213echo "configure:8214: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
10f2d63a 8214
698dcdb6
VZ
8215ac_ext=C
8216# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8217ac_cpp='$CXXCPP $CPPFLAGS'
8218ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8219ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8220cross_compiling=$ac_cv_prog_cxx_cross
703e0a69 8221
698dcdb6
VZ
8222cat > conftest.$ac_ext << EOF
8223
b3e8d00a 8224#line 8225 "configure"
10f2d63a
VZ
8225#include "confdefs.h"
8226
698dcdb6
VZ
8227int main(){return(0);}
8228EOF
b3e8d00a 8229if { (eval echo configure:8230: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
8230 ac_cv_prog_cxx_works=yes
8231 # If we can't run a trivial program, we are probably using a cross compiler.
8232 if (./conftest; exit) 2>/dev/null; then
8233 ac_cv_prog_cxx_cross=no
8234 else
8235 ac_cv_prog_cxx_cross=yes
8236 fi
8237else
8238 echo "configure: failed program was:" >&5
8239 cat conftest.$ac_ext >&5
8240 ac_cv_prog_cxx_works=no
8241fi
8242rm -fr conftest*
8243ac_ext=C
8244# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8245ac_cpp='$CXXCPP $CPPFLAGS'
8246ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8247ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8248cross_compiling=$ac_cv_prog_cxx_cross
8249
8250echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
8251if test $ac_cv_prog_cxx_works = no; then
8252 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
8253fi
8254echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
b3e8d00a 8255echo "configure:8256: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
698dcdb6
VZ
8256echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
8257cross_compiling=$ac_cv_prog_cxx_cross
8258
8259echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
b3e8d00a 8260echo "configure:8261: checking whether we are using GNU C++" >&5
698dcdb6
VZ
8261if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
8262 echo $ac_n "(cached) $ac_c" 1>&6
8263else
8264 cat > conftest.C <<EOF
8265#ifdef __GNUC__
8266 yes;
10f2d63a 8267#endif
698dcdb6 8268EOF
b3e8d00a 8269if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:8270: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
698dcdb6
VZ
8270 ac_cv_prog_gxx=yes
8271else
8272 ac_cv_prog_gxx=no
8273fi
8274fi
10f2d63a 8275
698dcdb6 8276echo "$ac_t""$ac_cv_prog_gxx" 1>&6
10f2d63a 8277
698dcdb6
VZ
8278if test $ac_cv_prog_gxx = yes; then
8279 GXX=yes
8280else
8281 GXX=
8282fi
10f2d63a 8283
698dcdb6
VZ
8284ac_test_CXXFLAGS="${CXXFLAGS+set}"
8285ac_save_CXXFLAGS="$CXXFLAGS"
8286CXXFLAGS=
8287echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
b3e8d00a 8288echo "configure:8289: checking whether ${CXX-g++} accepts -g" >&5
698dcdb6
VZ
8289if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
8290 echo $ac_n "(cached) $ac_c" 1>&6
8291else
8292 echo 'void f(){}' > conftest.cc
8293if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
10f2d63a
VZ
8294 ac_cv_prog_cxx_g=yes
8295else
698dcdb6 8296 ac_cv_prog_cxx_g=no
10f2d63a 8297fi
698dcdb6
VZ
8298rm -f conftest*
8299
10f2d63a 8300fi
698dcdb6
VZ
8301
8302echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
10f2d63a 8303if test "$ac_test_CXXFLAGS" = set; then
698dcdb6 8304 CXXFLAGS="$ac_save_CXXFLAGS"
10f2d63a
VZ
8305elif test $ac_cv_prog_cxx_g = yes; then
8306 if test "$GXX" = yes; then
8307 CXXFLAGS="-g -O2"
8308 else
8309 CXXFLAGS="-g"
8310 fi
8311else
8312 if test "$GXX" = yes; then
8313 CXXFLAGS="-O2"
8314 else
8315 CXXFLAGS=
8316 fi
8317fi
8318
8319
10f2d63a
VZ
8320CXXFLAGS=`echo "$CXXFLAGS" | sed 's/-g//g'`
8321
8322ac_ext=c
698dcdb6 8323# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10f2d63a 8324ac_cpp='$CPP $CPPFLAGS'
698dcdb6
VZ
8325ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8326ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8327cross_compiling=$ac_cv_prog_cc_cross
8328
8329
8330# Extract the first word of "ranlib", so it can be a program name with args.
8331set dummy ranlib; ac_word=$2
8332echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
b3e8d00a 8333echo "configure:8334: checking for $ac_word" >&5
698dcdb6
VZ
8334if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
8335 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
8336else
8337 if test -n "$RANLIB"; then
8338 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8339else
698dcdb6
VZ
8340 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8341 ac_dummy="$PATH"
8342 for ac_dir in $ac_dummy; do
8343 test -z "$ac_dir" && ac_dir=.
8344 if test -f $ac_dir/$ac_word; then
8345 ac_cv_prog_RANLIB="ranlib"
8346 break
8347 fi
8348 done
8349 IFS="$ac_save_ifs"
8350 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
10f2d63a
VZ
8351fi
8352fi
698dcdb6 8353RANLIB="$ac_cv_prog_RANLIB"
10f2d63a 8354if test -n "$RANLIB"; then
698dcdb6 8355 echo "$ac_t""$RANLIB" 1>&6
10f2d63a 8356else
698dcdb6 8357 echo "$ac_t""no" 1>&6
10f2d63a
VZ
8358fi
8359
8360
8361# Extract the first word of "ar", so it can be a program name with args.
8362set dummy ar; ac_word=$2
698dcdb6 8363echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
b3e8d00a 8364echo "configure:8365: checking for $ac_word" >&5
698dcdb6
VZ
8365if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
8366 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
8367else
8368 if test -n "$AR"; then
8369 ac_cv_prog_AR="$AR" # Let the user override the test.
8370else
698dcdb6
VZ
8371 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8372 ac_dummy="$PATH"
8373 for ac_dir in $ac_dummy; do
8374 test -z "$ac_dir" && ac_dir=.
8375 if test -f $ac_dir/$ac_word; then
8376 ac_cv_prog_AR="ar"
8377 break
8378 fi
8379 done
8380 IFS="$ac_save_ifs"
10f2d63a
VZ
8381 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
8382fi
8383fi
698dcdb6 8384AR="$ac_cv_prog_AR"
10f2d63a 8385if test -n "$AR"; then
698dcdb6 8386 echo "$ac_t""$AR" 1>&6
10f2d63a 8387else
698dcdb6 8388 echo "$ac_t""no" 1>&6
10f2d63a
VZ
8389fi
8390
698dcdb6 8391
10f2d63a
VZ
8392# Find a good install program. We prefer a C program (faster),
8393# so one script is as good as another. But avoid the broken or
8394# incompatible versions:
8395# SysV /etc/install, /usr/sbin/install
8396# SunOS /usr/etc/install
8397# IRIX /sbin/install
8398# AIX /bin/install
8399# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
8400# AFS /usr/afsws/bin/install, which mishandles nonexistent args
8401# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8402# ./install, which can be erroneously created by make from ./install.sh.
698dcdb6 8403echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
b3e8d00a 8404echo "configure:8405: checking for a BSD compatible install" >&5
10f2d63a 8405if test -z "$INSTALL"; then
698dcdb6
VZ
8406if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
8407 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 8408else
698dcdb6 8409 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
10f2d63a
VZ
8410 for ac_dir in $PATH; do
8411 # Account for people who put trailing slashes in PATH elements.
698dcdb6
VZ
8412 case "$ac_dir/" in
8413 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
10f2d63a
VZ
8414 *)
8415 # OSF1 and SCO ODT 3.0 have their own names for install.
8416 # Don't use installbsd from OSF since it installs stuff as root
8417 # by default.
8418 for ac_prog in ginstall scoinst install; do
698dcdb6 8419 if test -f $ac_dir/$ac_prog; then
10f2d63a 8420 if test $ac_prog = install &&
698dcdb6 8421 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
10f2d63a
VZ
8422 # AIX install. It has an incompatible calling convention.
8423 :
8424 else
8425 ac_cv_path_install="$ac_dir/$ac_prog -c"
8426 break 2
8427 fi
8428 fi
8429 done
8430 ;;
8431 esac
8432 done
698dcdb6 8433 IFS="$ac_save_IFS"
10f2d63a
VZ
8434
8435fi
8436 if test "${ac_cv_path_install+set}" = set; then
698dcdb6 8437 INSTALL="$ac_cv_path_install"
10f2d63a
VZ
8438 else
8439 # As a last resort, use the slow shell script. We don't cache a
8440 # path for INSTALL within a source directory, because that will
8441 # break other packages using the cache if that directory is
8442 # removed, or if the path is relative.
698dcdb6 8443 INSTALL="$ac_install_sh"
10f2d63a
VZ
8444 fi
8445fi
698dcdb6 8446echo "$ac_t""$INSTALL" 1>&6
10f2d63a
VZ
8447
8448# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8449# It thinks the first close brace ends the variable substitution.
8450test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8451
698dcdb6 8452test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
10f2d63a
VZ
8453
8454test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8455
698dcdb6 8456
10f2d63a
VZ
8457# Extract the first word of "strip", so it can be a program name with args.
8458set dummy strip; ac_word=$2
698dcdb6 8459echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
b3e8d00a 8460echo "configure:8461: checking for $ac_word" >&5
698dcdb6
VZ
8461if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
8462 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
8463else
8464 if test -n "$STRIP"; then
8465 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8466else
698dcdb6
VZ
8467 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8468 ac_dummy="$PATH"
8469 for ac_dir in $ac_dummy; do
8470 test -z "$ac_dir" && ac_dir=.
8471 if test -f $ac_dir/$ac_word; then
8472 ac_cv_prog_STRIP="strip"
8473 break
8474 fi
8475 done
8476 IFS="$ac_save_ifs"
10f2d63a
VZ
8477 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
8478fi
8479fi
698dcdb6 8480STRIP="$ac_cv_prog_STRIP"
10f2d63a 8481if test -n "$STRIP"; then
698dcdb6 8482 echo "$ac_t""$STRIP" 1>&6
10f2d63a 8483else
698dcdb6 8484 echo "$ac_t""no" 1>&6
10f2d63a
VZ
8485fi
8486
698dcdb6
VZ
8487
8488echo $ac_n "checking make for VPATH support""... $ac_c" 1>&6
b3e8d00a 8489echo "configure:8490: checking make for VPATH support" >&5
10f2d63a
VZ
8490cat - << EOF > confMake
8491check : file
8492 cp \$? \$@
8493 cp \$? final_file
8494EOF
8495
8496if test ! -d sub ; then
8497 mkdir sub
8498fi
8499echo dummy > sub/file
f6bcfd97 8500${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
10f2d63a
VZ
8501RESULT=$?
8502rm -f sub/file check final_file confMake
8503rmdir sub
8504if test "$RESULT" = 0; then
698dcdb6 8505 echo "$ac_t""yes" 1>&6
10f2d63a 8506else
698dcdb6
VZ
8507 echo "$ac_t""no" 1>&6
8508 { echo "configure: error:
1e487827
VS
8509You need a make-utility that is able to use the variable
8510VPATH correctly.
8511If your version of make does not support VPATH correctly,
8512please install GNU-make (possibly as gmake), and start
8513configure with the following command:
8514export MAKE=gmake; ./configure for sh-type shells
8515setenv MAKE gmake; ./configure for csh-type shells
8516Also please do remember to use gmake in this case every time
8517you are trying to compile.
698dcdb6 8518" 1>&2; exit 1; }
10f2d63a
VZ
8519fi
8520
8521for ac_prog in 'bison -y' byacc
8522do
698dcdb6 8523# Extract the first word of "$ac_prog", so it can be a program name with args.
10f2d63a 8524set dummy $ac_prog; ac_word=$2
698dcdb6 8525echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
b3e8d00a 8526echo "configure:8527: checking for $ac_word" >&5
698dcdb6
VZ
8527if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
8528 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
8529else
8530 if test -n "$YACC"; then
8531 ac_cv_prog_YACC="$YACC" # Let the user override the test.
8532else
698dcdb6
VZ
8533 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8534 ac_dummy="$PATH"
8535 for ac_dir in $ac_dummy; do
8536 test -z "$ac_dir" && ac_dir=.
8537 if test -f $ac_dir/$ac_word; then
8538 ac_cv_prog_YACC="$ac_prog"
8539 break
8540 fi
8541 done
8542 IFS="$ac_save_ifs"
10f2d63a
VZ
8543fi
8544fi
698dcdb6 8545YACC="$ac_cv_prog_YACC"
10f2d63a 8546if test -n "$YACC"; then
698dcdb6 8547 echo "$ac_t""$YACC" 1>&6
10f2d63a 8548else
698dcdb6 8549 echo "$ac_t""no" 1>&6
10f2d63a
VZ
8550fi
8551
698dcdb6 8552test -n "$YACC" && break
10f2d63a
VZ
8553done
8554test -n "$YACC" || YACC="yacc"
8555
698dcdb6
VZ
8556
8557# Extract the first word of "flex", so it can be a program name with args.
8558set dummy flex; ac_word=$2
8559echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
b3e8d00a 8560echo "configure:8561: checking for $ac_word" >&5
698dcdb6
VZ
8561if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
8562 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
8563else
8564 if test -n "$LEX"; then
8565 ac_cv_prog_LEX="$LEX" # Let the user override the test.
8566else
698dcdb6
VZ
8567 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8568 ac_dummy="$PATH"
8569 for ac_dir in $ac_dummy; do
8570 test -z "$ac_dir" && ac_dir=.
8571 if test -f $ac_dir/$ac_word; then
8572 ac_cv_prog_LEX="flex"
8573 break
8574 fi
8575 done
8576 IFS="$ac_save_ifs"
8577 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
10f2d63a
VZ
8578fi
8579fi
698dcdb6 8580LEX="$ac_cv_prog_LEX"
10f2d63a 8581if test -n "$LEX"; then
698dcdb6 8582 echo "$ac_t""$LEX" 1>&6
10f2d63a 8583else
698dcdb6 8584 echo "$ac_t""no" 1>&6
10f2d63a
VZ
8585fi
8586
8587if test -z "$LEXLIB"
8588then
698dcdb6
VZ
8589 case "$LEX" in
8590 flex*) ac_lib=fl ;;
8591 *) ac_lib=l ;;
8592 esac
8593 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
b3e8d00a 8594echo "configure:8595: checking for yywrap in -l$ac_lib" >&5
698dcdb6
VZ
8595ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
8596if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8597 echo $ac_n "(cached) $ac_c" 1>&6
8598else
8599 ac_save_LIBS="$LIBS"
8600LIBS="-l$ac_lib $LIBS"
8601cat > conftest.$ac_ext <<EOF
b3e8d00a 8602#line 8603 "configure"
10f2d63a
VZ
8603#include "confdefs.h"
8604/* Override any gcc2 internal prototype to avoid an error. */
8605/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
8606 builtin and then its argument prototype would still apply. */
8607char yywrap();
10f2d63a 8608
698dcdb6
VZ
8609int main() {
8610yywrap()
8611; return 0; }
8612EOF
b3e8d00a 8613if { (eval echo configure:8614: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
8614 rm -rf conftest*
8615 eval "ac_cv_lib_$ac_lib_var=yes"
10f2d63a 8616else
698dcdb6
VZ
8617 echo "configure: failed program was:" >&5
8618 cat conftest.$ac_ext >&5
8619 rm -rf conftest*
8620 eval "ac_cv_lib_$ac_lib_var=no"
10f2d63a 8621fi
698dcdb6
VZ
8622rm -f conftest*
8623LIBS="$ac_save_LIBS"
8624
10f2d63a 8625fi
698dcdb6
VZ
8626if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8627 echo "$ac_t""yes" 1>&6
8628 LEXLIB="-l$ac_lib"
8629else
8630 echo "$ac_t""no" 1>&6
10f2d63a
VZ
8631fi
8632
8633fi
8634
8635
698dcdb6 8636echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
b3e8d00a 8637echo "configure:8638: checking whether ln -s works" >&5
698dcdb6
VZ
8638if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
8639 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 8640else
698dcdb6
VZ
8641 rm -f conftestdata
8642if ln -s X conftestdata 2>/dev/null
8643then
8644 rm -f conftestdata
8645 ac_cv_prog_LN_S="ln -s"
10f2d63a 8646else
698dcdb6 8647 ac_cv_prog_LN_S=ln
10f2d63a
VZ
8648fi
8649fi
698dcdb6
VZ
8650LN_S="$ac_cv_prog_LN_S"
8651if test "$ac_cv_prog_LN_S" = "ln -s"; then
8652 echo "$ac_t""yes" 1>&6
10f2d63a 8653else
698dcdb6 8654 echo "$ac_t""no" 1>&6
10f2d63a
VZ
8655fi
8656
8657
8658
8659SEARCH_INCLUDE="\
8660 /usr/local/include \
8661 \
8662 /usr/Motif-1.2/include \
8663 /usr/Motif-2.1/include \
8664 \
8665 /usr/include/Motif1.2 \
8666 /opt/xpm/include/X11 \
8667 /opt/GBxpm/include/ \
8668 /opt/GBxpm/X11/include/ \
8669 \
8670 /usr/Motif1.2/include \
8671 /usr/dt/include \
afc31813
VZ
8672 /usr/openwin/include \
8673 \
10f2d63a
VZ
8674 /usr/include/Xm \
8675 \
8676 /usr/X11R6/include \
afc31813 8677 /usr/X11R6.4/include \
10f2d63a
VZ
8678 /usr/X11R5/include \
8679 /usr/X11R4/include \
8680 \
10f2d63a
VZ
8681 /usr/include/X11R6 \
8682 /usr/include/X11R5 \
8683 /usr/include/X11R4 \
8684 \
8685 /usr/local/X11R6/include \
8686 /usr/local/X11R5/include \
8687 /usr/local/X11R4/include \
8688 \
8689 /usr/local/include/X11R6 \
8690 /usr/local/include/X11R5 \
8691 /usr/local/include/X11R4 \
8692 \
8693 /usr/X11/include \
8694 /usr/include/X11 \
8695 /usr/local/X11/include \
8696 /usr/local/include/X11 \
8697 \
8698 /usr/X386/include \
8699 /usr/x386/include \
8700 /usr/XFree86/include/X11 \
8701 \
cf27ef00 8702 X:/XFree86/include \
ec14dd32
VZ
8703 X:/XFree86/include/X11 \
8704 \
10f2d63a
VZ
8705 /usr/include/gtk \
8706 /usr/local/include/gtk \
8707 /usr/include/glib \
8708 /usr/local/include/glib \
8709 \
8710 /usr/include/qt \
8711 /usr/local/include/qt \
8712 \
8713 /usr/include/windows \
8714 /usr/include/wine \
8715 /usr/local/include/wine \
8716 \
8717 /usr/unsupported/include \
8718 /usr/athena/include \
8719 /usr/local/x11r5/include \
8720 /usr/lpp/Xamples/include \
8721 \
10f2d63a 8722 /usr/openwin/share/include \
928b5c08
VZ
8723 \
8724 /usr/include"
10f2d63a
VZ
8725
8726SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` "
8727
698dcdb6
VZ
8728
8729cat > confcache <<\EOF
10f2d63a
VZ
8730# This file is a shell script that caches the results of configure
8731# tests run on this system so they can be shared between configure
698dcdb6
VZ
8732# scripts and configure runs. It is not useful on other systems.
8733# If it contains results you don't want to keep, you may remove or edit it.
10f2d63a 8734#
698dcdb6
VZ
8735# By default, configure uses ./config.cache as the cache file,
8736# creating it if it does not exist already. You can give configure
8737# the --cache-file=FILE option to use a different cache file; that is
8738# what configure does when it calls configure scripts in
8739# subdirectories, so they share the cache.
8740# Giving --cache-file=/dev/null disables caching, for debugging configure.
8741# config.status only pays attention to the cache file if you give it the
8742# --recheck option to rerun configure.
10f2d63a 8743#
698dcdb6 8744EOF
10f2d63a
VZ
8745# The following way of writing the cache mishandles newlines in values,
8746# but we know of no workaround that is simple, portable, and efficient.
8747# So, don't put newlines in cache variables' values.
8748# Ultrix sh set writes to stderr and can't be redirected directly,
8749# and sets the high bit in the cache file unless we assign to the vars.
698dcdb6
VZ
8750(set) 2>&1 |
8751 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8752 *ac_space=\ *)
8753 # `set' does not quote correctly, so add quotes (double-quote substitution
8754 # turns \\\\ into \\, and sed turns \\ into \).
8755 sed -n \
8756 -e "s/'/'\\\\''/g" \
8757 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
8758 ;;
8759 *)
8760 # `set' quotes correctly as required by POSIX, so do not add quotes.
8761 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8762 ;;
8763 esac >> confcache
8764if cmp -s $cache_file confcache; then
8765 :
8766else
10f2d63a 8767 if test -w $cache_file; then
698dcdb6
VZ
8768 echo "updating cache $cache_file"
8769 cat confcache > $cache_file
10f2d63a
VZ
8770 else
8771 echo "not updating unwritable cache $cache_file"
8772 fi
8773fi
8774rm -f confcache
8775
698dcdb6
VZ
8776
8777
18dbb1f6
VZ
8778REGEX_INCLUDE=
8779if test "$wxUSE_REGEX" != "no"; then
8780 ac_safe=`echo "regex.h" | sed 'y%./+-%__p_%'`
8781echo $ac_n "checking for regex.h""... $ac_c" 1>&6
b3e8d00a 8782echo "configure:8783: checking for regex.h" >&5
18dbb1f6
VZ
8783if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8784 echo $ac_n "(cached) $ac_c" 1>&6
8785else
8786 cat > conftest.$ac_ext <<EOF
b3e8d00a 8787#line 8788 "configure"
18dbb1f6
VZ
8788#include "confdefs.h"
8789#include <regex.h>
8790EOF
8791ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
b3e8d00a 8792{ (eval echo configure:8793: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
18dbb1f6
VZ
8793ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8794if test -z "$ac_err"; then
8795 rm -rf conftest*
8796 eval "ac_cv_header_$ac_safe=yes"
8797else
8798 echo "$ac_err" >&5
8799 echo "configure: failed program was:" >&5
8800 cat conftest.$ac_ext >&5
8801 rm -rf conftest*
8802 eval "ac_cv_header_$ac_safe=no"
8803fi
8804rm -f conftest*
8805fi
8806if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8807 echo "$ac_t""yes" 1>&6
8808 for ac_func in regcomp
8809do
8810echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
b3e8d00a 8811echo "configure:8812: checking for $ac_func" >&5
18dbb1f6
VZ
8812if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8813 echo $ac_n "(cached) $ac_c" 1>&6
8814else
8815 cat > conftest.$ac_ext <<EOF
b3e8d00a 8816#line 8817 "configure"
18dbb1f6
VZ
8817#include "confdefs.h"
8818/* System header to define __stub macros and hopefully few prototypes,
8819 which can conflict with char $ac_func(); below. */
8820#include <assert.h>
8821/* Override any gcc2 internal prototype to avoid an error. */
8822/* We use char because int might match the return type of a gcc2
8823 builtin and then its argument prototype would still apply. */
8824char $ac_func();
8825
8826int main() {
8827
8828/* The GNU C library defines this for functions which it implements
8829 to always fail with ENOSYS. Some functions are actually named
8830 something starting with __ and the normal name is an alias. */
8831#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8832choke me
8833#else
8834$ac_func();
8835#endif
8836
8837; return 0; }
8838EOF
b3e8d00a 8839if { (eval echo configure:8840: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18dbb1f6
VZ
8840 rm -rf conftest*
8841 eval "ac_cv_func_$ac_func=yes"
8842else
8843 echo "configure: failed program was:" >&5
8844 cat conftest.$ac_ext >&5
8845 rm -rf conftest*
8846 eval "ac_cv_func_$ac_func=no"
8847fi
8848rm -f conftest*
8849fi
8850
8851if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8852 echo "$ac_t""yes" 1>&6
8853 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8854 cat >> confdefs.h <<EOF
8855#define $ac_tr_func 1
8856EOF
8857
8858else
8859 echo "$ac_t""no" 1>&6
8860fi
8861done
8862
8863else
8864 echo "$ac_t""no" 1>&6
8865fi
8866
8867
8868 if test "x$ac_cv_func_regcomp" != "xyes"; then
8869 if test "$wxUSE_REGEX" = "sys"; then
8870 { echo "configure: error: system regex library not found! Use --with-regex to use the built-in regex library." 1>&2; exit 1; }
8871 fi
8872
8873 REGEX_INCLUDE="-I\${top_srcdir}/src/regex"
8874 fi
8875
8876 cat >> confdefs.h <<\EOF
8877#define wxUSE_REGEX 1
8878EOF
8879
8880fi
8881
8882
dad6c0ea
VZ
8883AFMINSTALL=
8884
3a922bb4
RL
8885TOOLKIT=
8886TOOLKIT_INCLUDE=
8887WIDGET_SET=
10f2d63a 8888
3a922bb4
RL
8889if test "$USE_WIN32" = 1 ; then
8890 for ac_hdr in w32api.h
8891do
8892ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8893echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
b3e8d00a 8894echo "configure:8895: checking for $ac_hdr" >&5
3a922bb4
RL
8895if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8896 echo $ac_n "(cached) $ac_c" 1>&6
8897else
8898 cat > conftest.$ac_ext <<EOF
b3e8d00a 8899#line 8900 "configure"
3a922bb4
RL
8900#include "confdefs.h"
8901#include <$ac_hdr>
8902EOF
8903ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
b3e8d00a 8904{ (eval echo configure:8905: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3a922bb4
RL
8905ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8906if test -z "$ac_err"; then
8907 rm -rf conftest*
8908 eval "ac_cv_header_$ac_safe=yes"
8909else
8910 echo "$ac_err" >&5
8911 echo "configure: failed program was:" >&5
8912 cat conftest.$ac_ext >&5
8913 rm -rf conftest*
8914 eval "ac_cv_header_$ac_safe=no"
8915fi
8916rm -f conftest*
8917fi
8918if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8919 echo "$ac_t""yes" 1>&6
8920 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8921 cat >> confdefs.h <<EOF
8922#define $ac_tr_hdr 1
8923EOF
8924
8925else
8926 echo "$ac_t""no" 1>&6
8927fi
8928done
10f2d63a 8929
3a922bb4 8930 ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'`
29fd3c0c 8931echo $ac_n "checking for windows.h""... $ac_c" 1>&6
b3e8d00a 8932echo "configure:8933: checking for windows.h" >&5
d4158b5d
VS
8933if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8934 echo $ac_n "(cached) $ac_c" 1>&6
8935else
8936 cat > conftest.$ac_ext <<EOF
b3e8d00a 8937#line 8938 "configure"
d4158b5d 8938#include "confdefs.h"
29fd3c0c 8939#include <windows.h>
d4158b5d
VS
8940EOF
8941ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
b3e8d00a 8942{ (eval echo configure:8943: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d4158b5d
VS
8943ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8944if test -z "$ac_err"; then
8945 rm -rf conftest*
8946 eval "ac_cv_header_$ac_safe=yes"
8947else
8948 echo "$ac_err" >&5
8949 echo "configure: failed program was:" >&5
8950 cat conftest.$ac_ext >&5
8951 rm -rf conftest*
8952 eval "ac_cv_header_$ac_safe=no"
8953fi
8954rm -f conftest*
8955fi
8956if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8957 echo "$ac_t""yes" 1>&6
29fd3c0c 8958 :
d4158b5d
VS
8959else
8960 echo "$ac_t""no" 1>&6
d4158b5d 8961
3a922bb4
RL
8962 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
8963
29fd3c0c 8964fi
10f2d63a 8965
3f0f0161 8966
3a922bb4 8967 echo $ac_n "checking if w32api has good enough MSIE support""... $ac_c" 1>&6
b3e8d00a 8968echo "configure:8969: checking if w32api has good enough MSIE support" >&5
3a922bb4
RL
8969if eval "test \"`echo '$''{'wx_cv_w32api_win_ie'+set}'`\" = set"; then
8970 echo $ac_n "(cached) $ac_c" 1>&6
8971else
8972
8973 cat > conftest.$ac_ext <<EOF
b3e8d00a 8974#line 8975 "configure"
3a922bb4
RL
8975#include "confdefs.h"
8976#include <w32api.h>
8977int main() {
3f0f0161 8978
3a922bb4
RL
8979 #define wxCHECK_W32API_VERSION( major, minor ) \
8980 ( defined( __W32API_MAJOR_VERSION ) && defined( __W32API_MINOR_VERSION ) \
8981 && ( ( __W32API_MAJOR_VERSION > (major) ) \
8982 || ( __W32API_MAJOR_VERSION == (major) && __W32API_MINOR_VERSION >= (minor))))
f6bcfd97 8983
3a922bb4
RL
8984 #if !wxCHECK_W32API_VERSION(1,1)
8985 #error You need w32api 1.1 or newer
8986 #endif
8987
8988; return 0; }
8989EOF
b3e8d00a 8990if { (eval echo configure:8991: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3a922bb4
RL
8991 rm -rf conftest*
8992
8993 wx_cv_w32api_win_ie=yes
8994 CPPFLAGS="$CPPFLAGS -D_WIN_IE=0x400"
8995
8996else
8997 echo "configure: failed program was:" >&5
8998 cat conftest.$ac_ext >&5
8999 rm -rf conftest*
9000
9001 wx_cv_w32api_win_ie=no
9002
9003fi
9004rm -f conftest*
9005
9006fi
10f2d63a 9007
3a922bb4 9008echo "$ac_t""$wx_cv_w32api_win_ie" 1>&6
32832908 9009
3a922bb4
RL
9010 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -ladvapi32 -lwsock32"
9011
9012 if test "$wxUSE_ODBC" = "yes" ; then
9013 LIBS="$LIBS -lodbc32 -lole32 -loleaut32"
9014 fi
9015
9016 if test "$wxUSE_MINGW" = 1; then
9017 LDFLAGS="$LDFLAGS -mwindows"
9018 fi
9019
9020 RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
9021 RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
9022fi
9023
9024if test "$wxUSE_GUI" = "yes"; then
9025 USE_GUI=1
32832908 9026
3a922bb4
RL
9027 GUI_TK_LIBRARY=
9028
9029 WXGTK12=
9030 WXGTK127=
9031 WXGTK20=
32832908 9032
3a922bb4
RL
9033 if test "$wxUSE_CYGWIN" = 1 || test "$wxUSE_MINGW" = 1 ; then
9034 TOOLKIT=MSW
9035 GUIDIST=MSW_DIST
1e6feb95 9036 fi
10f2d63a 9037
1e6feb95 9038 if test "$wxUSE_GTK" = 1; then
8168de4c 9039 echo $ac_n "checking for GTK+ version""... $ac_c" 1>&6
b3e8d00a 9040echo "configure:9041: checking for GTK+ version" >&5
8168de4c
VZ
9041
9042 gtk_version_cached=1
9043 if eval "test \"`echo '$''{'wx_cv_lib_gtk'+set}'`\" = set"; then
9044 echo $ac_n "(cached) $ac_c" 1>&6
9045else
9046
9047 gtk_version_cached=0
9048 echo "$ac_t""""" 1>&6
9049
9050 wx_cv_lib_gtk=
9051 if test "x$wxUSE_GTK2" = "xyes"; then
9052 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
6f72b082
OK
9053if test "${with_gtk_prefix+set}" = set; then
9054 withval="$with_gtk_prefix"
9055 gtk_config_prefix="$withval"
9056else
9057 gtk_config_prefix=""
698dcdb6 9058fi
6f72b082
OK
9059
9060# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
9061if test "${with_gtk_exec_prefix+set}" = set; then
9062 withval="$with_gtk_exec_prefix"
9063 gtk_config_exec_prefix="$withval"
9064else
9065 gtk_config_exec_prefix=""
698dcdb6
VZ
9066fi
9067
6f72b082
OK
9068# Check whether --enable-gtktest or --disable-gtktest was given.
9069if test "${enable_gtktest+set}" = set; then
9070 enableval="$enable_gtktest"
698dcdb6 9071 :
6f72b082
OK
9072else
9073 enable_gtktest=yes
698dcdb6
VZ
9074fi
9075
6f72b082 9076
8168de4c 9077 for module in .
6f72b082
OK
9078 do
9079 case "$module" in
8168de4c 9080 gthread)
6f72b082
OK
9081 gtk_config_args="$gtk_config_args gthread"
9082 ;;
9083 esac
9084 done
9085
9086 if test x$gtk_config_exec_prefix != x ; then
9087 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
9088 if test x${GTK_CONFIG_2_0+set} != xset ; then
9089 GTK_CONFIG_2_0=$gtk_config_exec_prefix/bin/gtk-config-2.0
9090 fi
9091 fi
9092 if test x$gtk_config_prefix != x ; then
9093 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
9094 if test x${GTK_CONFIG_2_0+set} != xset ; then
9095 GTK_CONFIG_2_0=$gtk_config_prefix/bin/gtk-config-2.0
9096 fi
9097 fi
9098
9099 # Extract the first word of "gtk-config-2.0", so it can be a program name with args.
9100set dummy gtk-config-2.0; ac_word=$2
698dcdb6 9101echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
b3e8d00a 9102echo "configure:9103: checking for $ac_word" >&5
698dcdb6
VZ
9103if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG_2_0'+set}'`\" = set"; then
9104 echo $ac_n "(cached) $ac_c" 1>&6
6f72b082 9105else
698dcdb6
VZ
9106 case "$GTK_CONFIG_2_0" in
9107 /*)
6f72b082
OK
9108 ac_cv_path_GTK_CONFIG_2_0="$GTK_CONFIG_2_0" # Let the user override the test with a path.
9109 ;;
698dcdb6
VZ
9110 ?:/*)
9111 ac_cv_path_GTK_CONFIG_2_0="$GTK_CONFIG_2_0" # Let the user override the test with a dos path.
9112 ;;
6f72b082 9113 *)
698dcdb6
VZ
9114 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9115 ac_dummy="$PATH"
9116 for ac_dir in $ac_dummy; do
9117 test -z "$ac_dir" && ac_dir=.
9118 if test -f $ac_dir/$ac_word; then
9119 ac_cv_path_GTK_CONFIG_2_0="$ac_dir/$ac_word"
9120 break
9121 fi
9122 done
9123 IFS="$ac_save_ifs"
6f72b082
OK
9124 test -z "$ac_cv_path_GTK_CONFIG_2_0" && ac_cv_path_GTK_CONFIG_2_0="no"
9125 ;;
9126esac
9127fi
698dcdb6 9128GTK_CONFIG_2_0="$ac_cv_path_GTK_CONFIG_2_0"
6f72b082 9129if test -n "$GTK_CONFIG_2_0"; then
698dcdb6 9130 echo "$ac_t""$GTK_CONFIG_2_0" 1>&6
6f72b082 9131else
698dcdb6 9132 echo "$ac_t""no" 1>&6
6f72b082
OK
9133fi
9134
9135 min_gtk_version=1.3.1
698dcdb6 9136 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
b3e8d00a 9137echo "configure:9138: checking for GTK - version >= $min_gtk_version" >&5
6f72b082
OK
9138 no_gtk=""
9139 if test "$GTK_CONFIG_2_0" = "no" ; then
9140 no_gtk=yes
9141 else
9142 GTK_CFLAGS=`$GTK_CONFIG_2_0 $gtk_config_args --cflags`
9143 GTK_LIBS=`$GTK_CONFIG_2_0 $gtk_config_args --libs`
9144 gtk_config_major_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \
9145 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
9146 gtk_config_minor_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \
9147 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
9148 gtk_config_micro_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \
9149 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
9150 if test "x$enable_gtktest" = "xyes" ; then
9151 ac_save_CFLAGS="$CFLAGS"
9152 ac_save_LIBS="$LIBS"
9153 CFLAGS="$CFLAGS $GTK_CFLAGS"
9154 LIBS="$GTK_LIBS $LIBS"
9155 rm -f conf.gtktest
9156 if test "$cross_compiling" = yes; then
9157 echo $ac_n "cross compiling; assumed OK... $ac_c"
9158else
698dcdb6 9159 cat > conftest.$ac_ext <<EOF
b3e8d00a 9160#line 9161 "configure"
6f72b082
OK
9161#include "confdefs.h"
9162
9163#include <gtk/gtk.h>
9164#include <stdio.h>
9165#include <stdlib.h>
9166
8168de4c 9167int
6f72b082
OK
9168main ()
9169{
9170 int major, minor, micro;
9171 char *tmp_version;
9172
9173 system ("touch conf.gtktest");
9174
9175 /* HP/UX 9 (%@#!) writes to sscanf strings */
9176 tmp_version = g_strdup("$min_gtk_version");
9177 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
9178 printf("%s, bad version string\n", "$min_gtk_version");
9179 exit(1);
9180 }
9181
9182 if ((gtk_major_version != $gtk_config_major_version) ||
9183 (gtk_minor_version != $gtk_config_minor_version) ||
9184 (gtk_micro_version != $gtk_config_micro_version))
9185 {
8168de4c 9186 printf("\n*** 'gtk-config-2.0 --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
6f72b082
OK
9187 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
9188 gtk_major_version, gtk_minor_version, gtk_micro_version);
9189 printf ("*** was found! If gtk-config-2.0 was correct, then it is best\n");
9190 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
9191 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
9192 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
9193 printf("*** required on your system.\n");
9194 printf("*** If gtk-config-2.0 was wrong, set the environment variable GTK_CONFIG_2_0\n");
9195 printf("*** to point to the correct copy of gtk-config-2.0, and remove the file config.cache\n");
9196 printf("*** before re-running configure\n");
8168de4c 9197 }
6f72b082
OK
9198#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
9199 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
8168de4c 9200 (gtk_minor_version != GTK_MINOR_VERSION) ||
6f72b082
OK
9201 (gtk_micro_version != GTK_MICRO_VERSION))
9202 {
9203 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
8168de4c 9204 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
6f72b082 9205 printf("*** library (version %d.%d.%d)\n",
8168de4c 9206 gtk_major_version, gtk_minor_version, gtk_micro_version);
6f72b082
OK
9207 }
9208#endif /* defined (GTK_MAJOR_VERSION) ... */
9209 else
9210 {
9211 if ((gtk_major_version > major) ||
9212 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
9213 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
9214 {
9215 return 0;
9216 }
9217 else
9218 {
9219 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
9220 gtk_major_version, gtk_minor_version, gtk_micro_version);
9221 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
8168de4c 9222 major, minor, micro);
6f72b082
OK
9223 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
9224 printf("***\n");
9225 printf("*** If you have already installed a sufficiently new version, this error\n");
9226 printf("*** probably means that the wrong copy of the gtk-config-2.0 shell script is\n");
9227 printf("*** being found. The easiest way to fix this is to remove the old version\n");
9228 printf("*** of GTK+, but you can also set the GTK_CONFIG_2_0 environment to point to the\n");
9229 printf("*** correct copy of gtk-config-2.0. (In this case, you will have to\n");
9230 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
9231 printf("*** so that the correct libraries are found at run-time))\n");
9232 }
9233 }
9234 return 1;
9235}
9236
698dcdb6 9237EOF
b3e8d00a 9238if { (eval echo configure:9239: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6 9239then
6f72b082
OK
9240 :
9241else
698dcdb6
VZ
9242 echo "configure: failed program was:" >&5
9243 cat conftest.$ac_ext >&5
9244 rm -fr conftest*
9245 no_gtk=yes
6f72b082 9246fi
698dcdb6 9247rm -fr conftest*
6f72b082 9248fi
698dcdb6 9249
6f72b082
OK
9250 CFLAGS="$ac_save_CFLAGS"
9251 LIBS="$ac_save_LIBS"
9252 fi
9253 fi
9254 if test "x$no_gtk" = x ; then
698dcdb6 9255 echo "$ac_t""yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" 1>&6
8168de4c 9256 wx_cv_lib_gtk=2.0
6f72b082 9257 else
698dcdb6 9258 echo "$ac_t""no" 1>&6
6f72b082
OK
9259 if test "$GTK_CONFIG_2_0" = "no" ; then
9260 echo "*** The gtk-config-2.0 script installed by GTK could not be found"
9261 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
9262 echo "*** your path, or set the GTK_CONFIG_2_0 environment variable to the"
9263 echo "*** full path to gtk-config-2.0."
9264 else
9265 if test -f conf.gtktest ; then
9266 :
9267 else
9268 echo "*** Could not run GTK test program, checking why..."
9269 CFLAGS="$CFLAGS $GTK_CFLAGS"
9270 LIBS="$LIBS $GTK_LIBS"
698dcdb6 9271 cat > conftest.$ac_ext <<EOF
b3e8d00a 9272#line 9273 "configure"
6f72b082
OK
9273#include "confdefs.h"
9274
9275#include <gtk/gtk.h>
9276#include <stdio.h>
9277
698dcdb6
VZ
9278int main() {
9279 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
9280; return 0; }
9281EOF
b3e8d00a 9282if { (eval echo configure:9283: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 9283 rm -rf conftest*
6f72b082
OK
9284 echo "*** The test program compiled, but did not run. This usually means"
9285 echo "*** that the run-time linker is not finding GTK or finding the wrong"
9286 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
9287 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
9288 echo "*** to the installed location Also, make sure you have run ldconfig if that"
9289 echo "*** is required on your system"
8168de4c 9290 echo "***"
6f72b082
OK
9291 echo "*** If you have an old version installed, it is best to remove it, although"
9292 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
9293 echo "***"
9294 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
9295 echo "*** came with the system with the command"
9296 echo "***"
698dcdb6 9297 echo "*** rpm --erase --nodeps gtk gtk-devel"
6f72b082 9298else
698dcdb6
VZ
9299 echo "configure: failed program was:" >&5
9300 cat conftest.$ac_ext >&5
9301 rm -rf conftest*
9302 echo "*** The test program failed to compile or link. See the file config.log for the"
6f72b082
OK
9303 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
9304 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
698dcdb6 9305 echo "*** may want to edit the gtk-config-2.0 script: $GTK_CONFIG_2_0"
6f72b082 9306fi
698dcdb6 9307rm -f conftest*
6f72b082
OK
9308 CFLAGS="$ac_save_CFLAGS"
9309 LIBS="$ac_save_LIBS"
9310 fi
9311 fi
9312 GTK_CFLAGS=""
9313 GTK_LIBS=""
8168de4c
VZ
9314 gthread
9315 fi
9316
9317
9318 rm -f conf.gtktest
9319
9320 fi
9321
9322 if test -z "$wx_cv_lib_gtk"; then
9323
10f2d63a
VZ
9324 if test x$gtk_config_exec_prefix != x ; then
9325 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
9326 if test x${GTK_CONFIG+set} != xset ; then
9327 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
9328 fi
9329 fi
9330 if test x$gtk_config_prefix != x ; then
9331 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
9332 if test x${GTK_CONFIG+set} != xset ; then
9333 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
9334 fi
9335 fi
9336
9337 # Extract the first word of "gtk-config", so it can be a program name with args.
9338set dummy gtk-config; ac_word=$2
698dcdb6 9339echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
b3e8d00a 9340echo "configure:9341: checking for $ac_word" >&5
698dcdb6
VZ
9341if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
9342 echo $ac_n "(cached) $ac_c" 1>&6
f6bcfd97 9343else
698dcdb6
VZ
9344 case "$GTK_CONFIG" in
9345 /*)
f6bcfd97
BP
9346 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
9347 ;;
698dcdb6
VZ
9348 ?:/*)
9349 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
9350 ;;
f6bcfd97 9351 *)
698dcdb6
VZ
9352 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9353 ac_dummy="$PATH"
9354 for ac_dir in $ac_dummy; do
9355 test -z "$ac_dir" && ac_dir=.
9356 if test -f $ac_dir/$ac_word; then
9357 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
9358 break
9359 fi
9360 done
9361 IFS="$ac_save_ifs"
f6bcfd97
BP
9362 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
9363 ;;
9364esac
9365fi
698dcdb6 9366GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
f6bcfd97 9367if test -n "$GTK_CONFIG"; then
698dcdb6 9368 echo "$ac_t""$GTK_CONFIG" 1>&6
f6bcfd97 9369else
698dcdb6 9370 echo "$ac_t""no" 1>&6
f6bcfd97
BP
9371fi
9372
9373 min_gtk_version=1.2.7
698dcdb6 9374 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
b3e8d00a 9375echo "configure:9376: checking for GTK - version >= $min_gtk_version" >&5
f6bcfd97
BP
9376 no_gtk=""
9377 if test "$GTK_CONFIG" != "no" ; then
9378 GTK_CFLAGS=`$GTK_CONFIG --cflags`
9379 GTK_LIBS=`$GTK_CONFIG --libs gthread`
9380 ac_save_CFLAGS="$CFLAGS"
9381 ac_save_LIBS="$LIBS"
9382 CFLAGS="$CFLAGS $GTK_CFLAGS"
9383 LIBS="$LIBS $GTK_LIBS"
9384 if test "$cross_compiling" = yes; then
9385 echo $ac_n "cross compiling; assumed OK... $ac_c"
9386else
698dcdb6 9387 cat > conftest.$ac_ext <<EOF
b3e8d00a 9388#line 9389 "configure"
f6bcfd97
BP
9389#include "confdefs.h"
9390
9391#include <gtk/gtk.h>
9392#include <gtk/gtkfeatures.h>
9393#include <stdio.h>
9394#include <stdlib.h>
9395
9396int
9397main ()
9398{
9399 int major, minor, micro;
9400
9401 if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, &micro) != 3) {
9402 printf("%s, bad version string\n", "$min_gtk_version");
9403 exit(1);
9404 }
9405
9406 if ((GTK_MAJOR_VERSION != gtk_major_version) ||
9407 (GTK_MINOR_VERSION != gtk_minor_version) ||
9408 (GTK_MICRO_VERSION != gtk_micro_version)) {
9409 printf("Headers vs. library version mismatch!\n");
9410 exit(1);
9411 }
9412
9413 if (gtk_minor_version == 1) return FALSE;
9414
9415 return !((gtk_major_version > major) ||
9416 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
9417 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)));
9418}
9419
698dcdb6 9420EOF
b3e8d00a 9421if { (eval echo configure:9422: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6 9422then
f6bcfd97
BP
9423 :
9424else
698dcdb6
VZ
9425 echo "configure: failed program was:" >&5
9426 cat conftest.$ac_ext >&5
9427 rm -fr conftest*
9428 no_gtk=yes
f6bcfd97 9429fi
698dcdb6 9430rm -fr conftest*
f6bcfd97 9431fi
698dcdb6 9432
f6bcfd97
BP
9433 CFLAGS="$ac_save_CFLAGS"
9434 LIBS="$ac_save_LIBS"
9435 else
9436 no_gtk=yes
9437 fi
9438 if test "x$no_gtk" = x ; then
698dcdb6 9439 echo "$ac_t""yes" 1>&6
8168de4c 9440 wx_cv_lib_gtk=1.2.7
f6bcfd97 9441 else
698dcdb6 9442 echo "$ac_t""no" 1>&6
f6bcfd97
BP
9443 GTK_CFLAGS=""
9444 GTK_LIBS=""
9445 :
9446 fi
698dcdb6
VZ
9447
9448
f6bcfd97 9449
8168de4c
VZ
9450 fi
9451
9452 if test -z "$wx_cv_lib_gtk"; then
9453
f6bcfd97
BP
9454 if test x$gtk_config_exec_prefix != x ; then
9455 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
9456 if test x${GTK_CONFIG+set} != xset ; then
9457 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
9458 fi
9459 fi
9460 if test x$gtk_config_prefix != x ; then
9461 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
9462 if test x${GTK_CONFIG+set} != xset ; then
9463 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
9464 fi
9465 fi
9466
9467 # Extract the first word of "gtk-config", so it can be a program name with args.
9468set dummy gtk-config; ac_word=$2
698dcdb6 9469echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
b3e8d00a 9470echo "configure:9471: checking for $ac_word" >&5
698dcdb6
VZ
9471if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
9472 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 9473else
698dcdb6
VZ
9474 case "$GTK_CONFIG" in
9475 /*)
10f2d63a
VZ
9476 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
9477 ;;
698dcdb6
VZ
9478 ?:/*)
9479 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
9480 ;;
10f2d63a 9481 *)
698dcdb6
VZ
9482 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9483 ac_dummy="$PATH"
9484 for ac_dir in $ac_dummy; do
9485 test -z "$ac_dir" && ac_dir=.
9486 if test -f $ac_dir/$ac_word; then
9487 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
9488 break
9489 fi
9490 done
9491 IFS="$ac_save_ifs"
10f2d63a
VZ
9492 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
9493 ;;
9494esac
9495fi
698dcdb6 9496GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
10f2d63a 9497if test -n "$GTK_CONFIG"; then
698dcdb6 9498 echo "$ac_t""$GTK_CONFIG" 1>&6
10f2d63a 9499else
698dcdb6 9500 echo "$ac_t""no" 1>&6
10f2d63a
VZ
9501fi
9502
04165bec 9503 min_gtk_version=1.2.3
698dcdb6 9504 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
b3e8d00a 9505echo "configure:9506: checking for GTK - version >= $min_gtk_version" >&5
10f2d63a
VZ
9506 no_gtk=""
9507 if test "$GTK_CONFIG" != "no" ; then
9508 GTK_CFLAGS=`$GTK_CONFIG --cflags`
2224580a 9509 GTK_LIBS=`$GTK_CONFIG --libs gthread`
10f2d63a
VZ
9510 ac_save_CFLAGS="$CFLAGS"
9511 ac_save_LIBS="$LIBS"
9512 CFLAGS="$CFLAGS $GTK_CFLAGS"
9513 LIBS="$LIBS $GTK_LIBS"
9514 if test "$cross_compiling" = yes; then
9515 echo $ac_n "cross compiling; assumed OK... $ac_c"
9516else
698dcdb6 9517 cat > conftest.$ac_ext <<EOF
b3e8d00a 9518#line 9519 "configure"
10f2d63a
VZ
9519#include "confdefs.h"
9520
9521#include <gtk/gtk.h>
f49f2b0c 9522#include <gtk/gtkfeatures.h>
10f2d63a 9523#include <stdio.h>
32832908 9524#include <stdlib.h>
10f2d63a
VZ
9525
9526int
9527main ()
9528{
9529 int major, minor, micro;
9530
9531 if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, &micro) != 3) {
9532 printf("%s, bad version string\n", "$min_gtk_version");
9533 exit(1);
9534 }
9535
f49f2b0c
RR
9536 if ((GTK_MAJOR_VERSION != gtk_major_version) ||
9537 (GTK_MINOR_VERSION != gtk_minor_version) ||
9538 (GTK_MICRO_VERSION != gtk_micro_version)) {
9539 printf("Headers vs. library version mismatch!\n");
9540 exit(1);
9541 }
9542
10f2d63a
VZ
9543 if (gtk_minor_version == 1) return FALSE;
9544
9545 return !((gtk_major_version > major) ||
9546 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
9547 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)));
9548}
9549
698dcdb6 9550EOF
b3e8d00a 9551if { (eval echo configure:9552: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6 9552then
10f2d63a
VZ
9553 :
9554else
698dcdb6
VZ
9555 echo "configure: failed program was:" >&5
9556 cat conftest.$ac_ext >&5
9557 rm -fr conftest*
9558 no_gtk=yes
10f2d63a 9559fi
698dcdb6 9560rm -fr conftest*
10f2d63a 9561fi
698dcdb6 9562
10f2d63a
VZ
9563 CFLAGS="$ac_save_CFLAGS"
9564 LIBS="$ac_save_LIBS"
9565 else
9566 no_gtk=yes
9567 fi
9568 if test "x$no_gtk" = x ; then
698dcdb6 9569 echo "$ac_t""yes" 1>&6
8168de4c 9570 wx_cv_lib_gtk=1.2.3
10f2d63a 9571 else
698dcdb6 9572 echo "$ac_t""no" 1>&6
10f2d63a
VZ
9573 GTK_CFLAGS=""
9574 GTK_LIBS=""
7e99ad86 9575 :
10f2d63a 9576 fi
698dcdb6
VZ
9577
9578
10f2d63a 9579
8168de4c
VZ
9580 fi
9581
9582 if test -z "$wx_cv_lib_gtk"; then
9583 wx_cv_lib_gtk=none
138be253
VZ
9584 else
9585 wx_cv_cflags_gtk=$GTK_CFLAGS
9586 wx_cv_libs_gtk=$GTK_LIBS
8168de4c
VZ
9587 fi
9588
1e6feb95 9589
8168de4c 9590fi
703e0a69 9591
698dcdb6 9592
8168de4c
VZ
9593 if test "$gtk_version_cached" = 1; then
9594 echo "$ac_t""$wx_cv_lib_gtk" 1>&6
1e6feb95 9595 fi
698dcdb6 9596
8168de4c
VZ
9597 case "$wx_cv_lib_gtk" in
9598 2.0) WXGTK20=1
9599 ;;
9600 1.2.7) WXGTK127=1
d1a8d972 9601 WXGTK12=1
8168de4c
VZ
9602 ;;
9603 1.2.3) WXGTK12=1
9604 ;;
9605 *) { echo "configure: error:
9606Please check that gtk-config is in path, the directory
9607where GTK+ libraries are installed (returned by
9608'gtk-config --libs' command) is in LD_LIBRARY_PATH or
9609equivalent variable and GTK+ is version 1.2.3 or above.
9610 " 1>&2; exit 1; }
9611 ;;
9612 esac
2224580a 9613
138be253 9614 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
11dfaa5f 9615 GUI_TK_LIBRARY="$wx_cv_libs_gtk"
698dcdb6 9616
1e6feb95
VZ
9617 AFMINSTALL=afminstall
9618 TOOLKIT=GTK
9619 GUIDIST=GTK_DIST
7ec2881a 9620
1e6feb95 9621 echo $ac_n "checking for gdk_im_open in -lgdk""... $ac_c" 1>&6
b3e8d00a 9622echo "configure:9623: checking for gdk_im_open in -lgdk" >&5
698dcdb6
VZ
9623ac_lib_var=`echo gdk'_'gdk_im_open | sed 'y%./+-%__p_%'`
9624if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9625 echo $ac_n "(cached) $ac_c" 1>&6
7ec2881a 9626else
698dcdb6 9627 ac_save_LIBS="$LIBS"
7ec2881a 9628LIBS="-lgdk $LIBS"
698dcdb6 9629cat > conftest.$ac_ext <<EOF
b3e8d00a 9630#line 9631 "configure"
7ec2881a
RR
9631#include "confdefs.h"
9632/* Override any gcc2 internal prototype to avoid an error. */
9633/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
9634 builtin and then its argument prototype would still apply. */
9635char gdk_im_open();
9636
9637int main() {
9638gdk_im_open()
9639; return 0; }
9640EOF
b3e8d00a 9641if { (eval echo configure:9642: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
9642 rm -rf conftest*
9643 eval "ac_cv_lib_$ac_lib_var=yes"
9644else
9645 echo "configure: failed program was:" >&5
9646 cat conftest.$ac_ext >&5
9647 rm -rf conftest*
9648 eval "ac_cv_lib_$ac_lib_var=no"
9649fi
9650rm -f conftest*
9651LIBS="$ac_save_LIBS"
9652
9653fi
9654if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9655 echo "$ac_t""yes" 1>&6
9656 cat >> confdefs.h <<\EOF
7ec2881a
RR
9657#define HAVE_XIM 1
9658EOF
9659
698dcdb6
VZ
9660else
9661 echo "$ac_t""no" 1>&6
7ec2881a
RR
9662fi
9663
1e6feb95 9664 fi
10f2d63a 9665
1e6feb95
VZ
9666 if test "$wxUSE_MGL" = 1; then
9667
9668 echo $ac_n "checking for SciTech MGL library""... $ac_c" 1>&6
b3e8d00a 9669echo "configure:9670: checking for SciTech MGL library" >&5
1e6feb95
VZ
9670 if test "x$MGL_ROOT" = x ; then
9671 echo "$ac_t""not found" 1>&6
9672 { echo "configure: error: Cannot find MGL library. Make sure MGL_ROOT is set." 1>&2; exit 1; }
9673 else
9674 echo "$ac_t""$MGL_ROOT" 1>&6
9675 fi
9676
3a922bb4
RL
9677 mgl_os=linux/gcc/glibc
9678 mgl_lib_type=""
1e6feb95
VZ
9679
9680 if test "$wxUSE_DEBUG_FLAG" = yes ; then
3a922bb4
RL
9681 if test -f $MGL_ROOT/lib/debug/$mgl_os/libmgl.a ; then
9682 mgl_lib_type=debug
1e6feb95
VZ
9683 fi
9684 fi
3a922bb4
RL
9685 if test "x$mgl_lib_type" = x ; then
9686 if test -f $MGL_ROOT/lib/release/$mgl_os/libmgl.a ; then
9687 mgl_lib_type=release
1e6feb95
VZ
9688 else
9689 { echo "configure: error: Cannot find MGL libraries, make sure they are compiled." 1>&2; exit 1; }
9690 fi
9691 fi
9692
9693 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
3a922bb4 9694 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
1e6feb95
VZ
9695
9696 AFMINSTALL=afminstall
9697 TOOLKIT=MGL
9698 GUIDIST=MGL_DIST
9699 fi
9700
9701 if test "$wxUSE_WINE" = 1; then
3a922bb4
RL
9702 ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'`
9703echo $ac_n "checking for windows.h""... $ac_c" 1>&6
b3e8d00a 9704echo "configure:9705: checking for windows.h" >&5
3a922bb4
RL
9705if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9706 echo $ac_n "(cached) $ac_c" 1>&6
9707else
9708 cat > conftest.$ac_ext <<EOF
b3e8d00a 9709#line 9710 "configure"
3a922bb4
RL
9710#include "confdefs.h"
9711#include <windows.h>
9712EOF
9713ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
b3e8d00a 9714{ (eval echo configure:9715: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3a922bb4
RL
9715ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9716if test -z "$ac_err"; then
9717 rm -rf conftest*
9718 eval "ac_cv_header_$ac_safe=yes"
9719else
9720 echo "$ac_err" >&5
9721 echo "configure: failed program was:" >&5
9722 cat conftest.$ac_ext >&5
9723 rm -rf conftest*
9724 eval "ac_cv_header_$ac_safe=no"
9725fi
9726rm -f conftest*
9727fi
9728if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9729 echo "$ac_t""yes" 1>&6
9730 :
9731else
9732 echo "$ac_t""no" 1>&6
10f2d63a 9733
1e6feb95 9734 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
3a922bb4
RL
9735
9736fi
9737
10f2d63a 9738
3a922bb4 9739 xpm_link=""
1e6feb95 9740 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
b3e8d00a 9741echo "configure:9742: checking for Xpm library" >&5
1e6feb95 9742
10f2d63a
VZ
9743ac_find_libraries=
9744for ac_dir in $SEARCH_LIB;
9745 do
f11bdd03 9746 for ac_extension in a so sl dylib; do
10f2d63a
VZ
9747 if test -f "$ac_dir/libXpm.$ac_extension"; then
9748 ac_find_libraries=$ac_dir
9749 break 2
9750 fi
9751 done
9752 done
9753
1e6feb95
VZ
9754 if test "$ac_find_libraries" != "" ; then
9755 GUI_TK_LIBRARY="-L$ac_find_libraries"
3a922bb4 9756 xpm_link="-lXpm"
1e6feb95 9757 cat >> confdefs.h <<\EOF
10f2d63a
VZ
9758#define wxHAVE_LIB_XPM 1
9759EOF
9760
1e6feb95
VZ
9761 echo "$ac_t""found at $ac_find_libraries" 1>&6
9762 else
9763 echo "$ac_t""no" 1>&6
9764 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
9765 fi
10f2d63a 9766
3a922bb4 9767 mesa_link=""
1e6feb95 9768 echo $ac_n "checking for Mesa library""... $ac_c" 1>&6
b3e8d00a 9769echo "configure:9770: checking for Mesa library" >&5
1e6feb95 9770
10f2d63a
VZ
9771ac_find_libraries=
9772for ac_dir in $SEARCH_LIB;
9773 do
f11bdd03 9774 for ac_extension in a so sl dylib; do
10f2d63a
VZ
9775 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
9776 ac_find_libraries=$ac_dir
9777 break 2
9778 fi
9779 done
9780 done
9781
1e6feb95
VZ
9782 if test "$ac_find_libraries" != "" ; then
9783 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -L$ac_find_libraries"
3a922bb4 9784 mesa_link="-lMesaGL"
1e6feb95
VZ
9785 echo "$ac_t""found at $ac_find_libraries" 1>&6
9786 else
9787 { echo "configure: error: no" 1>&2; exit 1; }
9788 fi
10f2d63a 9789
3a922bb4 9790 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lwine $mesa_link $xpm_link -lXxf86dga -lXxf86vm -lSM -lICE -lXext -lXmu -lX11 -lncurses"
1e6feb95
VZ
9791 TOOLKIT=MSW
9792 GUIDIST=MSW_DIST
3a922bb4 9793 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXWINE__"
1e6feb95 9794 fi
698dcdb6 9795
1e6feb95
VZ
9796
9797 # If we find X, set shell vars x_includes and x_libraries to the
698dcdb6
VZ
9798# paths, otherwise set no_x=yes.
9799# Uses ac_ vars as temps to allow command line to override cache and checks.
9800# --without-x overrides everything else, but does not touch the cache.
9801echo $ac_n "checking for X""... $ac_c" 1>&6
b3e8d00a 9802echo "configure:9803: checking for X" >&5
ab9b9eab
VZ
9803
9804# Check whether --with-x or --without-x was given.
9805if test "${with_x+set}" = set; then
9806 withval="$with_x"
698dcdb6
VZ
9807 :
9808fi
ba337fe7 9809
ab9b9eab
VZ
9810# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9811if test "x$with_x" = xno; then
9812 # The user explicitly disabled X.
9813 have_x=disabled
9814else
9815 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
9816 # Both variables are already set.
9817 have_x=yes
9818 else
698dcdb6
VZ
9819if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
9820 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab
VZ
9821else
9822 # One or both of the vars are not set, and there is no cached value.
698dcdb6
VZ
9823ac_x_includes=NO ac_x_libraries=NO
9824rm -fr conftestdir
9825if mkdir conftestdir; then
9826 cd conftestdir
ab9b9eab 9827 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
698dcdb6 9828 cat > Imakefile <<'EOF'
ab9b9eab
VZ
9829acfindx:
9830 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
9831EOF
9832 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
9833 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9834 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
9835 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
10f2d63a 9836 for ac_extension in a so sl; do
ab9b9eab 9837 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
698dcdb6 9838 test -f $ac_im_libdir/libX11.$ac_extension; then
ab9b9eab 9839 ac_im_usrlibdir=$ac_im_libdir; break
10f2d63a
VZ
9840 fi
9841 done
ab9b9eab
VZ
9842 # Screen out bogus values from the imake configuration. They are
9843 # bogus both because they are the default anyway, and because
9844 # using them would break gcc on systems where it needs fixed includes.
698dcdb6 9845 case "$ac_im_incroot" in
ab9b9eab 9846 /usr/include) ;;
698dcdb6 9847 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
ab9b9eab 9848 esac
698dcdb6 9849 case "$ac_im_usrlibdir" in
ab9b9eab 9850 /usr/lib | /lib) ;;
698dcdb6 9851 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
ab9b9eab 9852 esac
ba337fe7 9853 fi
ab9b9eab 9854 cd ..
698dcdb6 9855 rm -fr conftestdir
ab9b9eab 9856fi
10f2d63a 9857
698dcdb6
VZ
9858if test "$ac_x_includes" = NO; then
9859 # Guess where to find include files, by looking for this one X11 .h file.
9860 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
9861
ab9b9eab 9862 # First, try using that file with no special directory specified.
698dcdb6 9863cat > conftest.$ac_ext <<EOF
b3e8d00a 9864#line 9865 "configure"
ab9b9eab 9865#include "confdefs.h"
698dcdb6
VZ
9866#include <$x_direct_test_include>
9867EOF
9868ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
b3e8d00a 9869{ (eval echo configure:9870: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
9870ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9871if test -z "$ac_err"; then
9872 rm -rf conftest*
ab9b9eab
VZ
9873 # We can compile using X headers with no special include directory.
9874ac_x_includes=
9875else
698dcdb6
VZ
9876 echo "$ac_err" >&5
9877 echo "configure: failed program was:" >&5
ab9b9eab 9878 cat conftest.$ac_ext >&5
698dcdb6
VZ
9879 rm -rf conftest*
9880 # Look for the header file in a standard set of common directories.
9881# Check X11 before X11Rn because it is often a symlink to the current release.
9882 for ac_dir in \
9883 /usr/X11/include \
9884 /usr/X11R6/include \
9885 /usr/X11R5/include \
9886 /usr/X11R4/include \
9887 \
9888 /usr/include/X11 \
9889 /usr/include/X11R6 \
9890 /usr/include/X11R5 \
9891 /usr/include/X11R4 \
9892 \
9893 /usr/local/X11/include \
9894 /usr/local/X11R6/include \
9895 /usr/local/X11R5/include \
9896 /usr/local/X11R4/include \
9897 \
9898 /usr/local/include/X11 \
9899 /usr/local/include/X11R6 \
9900 /usr/local/include/X11R5 \
9901 /usr/local/include/X11R4 \
9902 \
9903 /usr/X386/include \
9904 /usr/x386/include \
9905 /usr/XFree86/include/X11 \
9906 \
9907 /usr/include \
9908 /usr/local/include \
9909 /usr/unsupported/include \
9910 /usr/athena/include \
9911 /usr/local/x11r5/include \
9912 /usr/lpp/Xamples/include \
9913 \
9914 /usr/openwin/include \
9915 /usr/openwin/share/include \
9916 ; \
9917 do
9918 if test -r "$ac_dir/$x_direct_test_include"; then
9919 ac_x_includes=$ac_dir
9920 break
9921 fi
9922 done
ab9b9eab 9923fi
698dcdb6
VZ
9924rm -f conftest*
9925fi # $ac_x_includes = NO
10f2d63a 9926
698dcdb6 9927if test "$ac_x_libraries" = NO; then
ab9b9eab 9928 # Check for the libraries.
698dcdb6
VZ
9929
9930 test -z "$x_direct_test_library" && x_direct_test_library=Xt
9931 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
9932
ab9b9eab
VZ
9933 # See if we find them without any special options.
9934 # Don't add to $LIBS permanently.
698dcdb6
VZ
9935 ac_save_LIBS="$LIBS"
9936 LIBS="-l$x_direct_test_library $LIBS"
9937cat > conftest.$ac_ext <<EOF
b3e8d00a 9938#line 9939 "configure"
ab9b9eab 9939#include "confdefs.h"
698dcdb6
VZ
9940
9941int main() {
9942${x_direct_test_function}()
9943; return 0; }
9944EOF
b3e8d00a 9945if { (eval echo configure:9946: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
9946 rm -rf conftest*
9947 LIBS="$ac_save_LIBS"
ab9b9eab
VZ
9948# We can link X programs with no special library path.
9949ac_x_libraries=
9950else
698dcdb6
VZ
9951 echo "configure: failed program was:" >&5
9952 cat conftest.$ac_ext >&5
9953 rm -rf conftest*
9954 LIBS="$ac_save_LIBS"
9955# First see if replacing the include by lib works.
9956# Check X11 before X11Rn because it is often a symlink to the current release.
9957for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
9958 /usr/X11/lib \
9959 /usr/X11R6/lib \
9960 /usr/X11R5/lib \
9961 /usr/X11R4/lib \
9962 \
9963 /usr/lib/X11 \
9964 /usr/lib/X11R6 \
9965 /usr/lib/X11R5 \
9966 /usr/lib/X11R4 \
9967 \
9968 /usr/local/X11/lib \
9969 /usr/local/X11R6/lib \
9970 /usr/local/X11R5/lib \
9971 /usr/local/X11R4/lib \
9972 \
9973 /usr/local/lib/X11 \
9974 /usr/local/lib/X11R6 \
9975 /usr/local/lib/X11R5 \
9976 /usr/local/lib/X11R4 \
9977 \
9978 /usr/X386/lib \
9979 /usr/x386/lib \
9980 /usr/XFree86/lib/X11 \
9981 \
9982 /usr/lib \
9983 /usr/local/lib \
9984 /usr/unsupported/lib \
9985 /usr/athena/lib \
9986 /usr/local/x11r5/lib \
9987 /usr/lpp/Xamples/lib \
9988 /lib/usr/lib/X11 \
9989 \
9990 /usr/openwin/lib \
9991 /usr/openwin/share/lib \
9992 ; \
ab9b9eab
VZ
9993do
9994 for ac_extension in a so sl; do
698dcdb6 9995 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
ab9b9eab
VZ
9996 ac_x_libraries=$ac_dir
9997 break 2
10f2d63a 9998 fi
10f2d63a 9999 done
ab9b9eab
VZ
10000done
10001fi
698dcdb6
VZ
10002rm -f conftest*
10003fi # $ac_x_libraries = NO
10f2d63a 10004
698dcdb6 10005if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
ab9b9eab
VZ
10006 # Didn't find X anywhere. Cache the known absence of X.
10007 ac_cv_have_x="have_x=no"
10008else
10009 # Record where we found X for the cache.
10010 ac_cv_have_x="have_x=yes \
10011 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
10012fi
10013fi
10f2d63a 10014 fi
ab9b9eab
VZ
10015 eval "$ac_cv_have_x"
10016fi # $with_x != no
10f2d63a 10017
ab9b9eab 10018if test "$have_x" != yes; then
698dcdb6 10019 echo "$ac_t""$have_x" 1>&6
ab9b9eab
VZ
10020 no_x=yes
10021else
10022 # If each of the values was on the command line, it overrides each guess.
10023 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
10024 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
10025 # Update the cache value to reflect the command line values.
10026 ac_cv_have_x="have_x=yes \
10027 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
698dcdb6 10028 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
ab9b9eab 10029fi
10f2d63a 10030
ab9b9eab
VZ
10031if test "$no_x" = yes; then
10032 # Not all programs may use this symbol, but it does not hurt to define it.
698dcdb6 10033 cat >> confdefs.h <<\EOF
ab9b9eab
VZ
10034#define X_DISPLAY_MISSING 1
10035EOF
10f2d63a 10036
ab9b9eab
VZ
10037 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
10038else
10039 if test -n "$x_includes"; then
10040 X_CFLAGS="$X_CFLAGS -I$x_includes"
10f2d63a
VZ
10041 fi
10042
ab9b9eab
VZ
10043 # It would also be nice to do this for all -L options, not just this one.
10044 if test -n "$x_libraries"; then
10045 X_LIBS="$X_LIBS -L$x_libraries"
10046 # For Solaris; some versions of Sun CC require a space after -R and
10047 # others require no space. Words are not sufficient . . . .
698dcdb6 10048 case "`(uname -sr) 2>/dev/null`" in
ab9b9eab 10049 "SunOS 5"*)
698dcdb6 10050 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
b3e8d00a 10051echo "configure:10052: checking whether -R must be followed by a space" >&5
698dcdb6
VZ
10052 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
10053 cat > conftest.$ac_ext <<EOF
b3e8d00a 10054#line 10055 "configure"
ab9b9eab 10055#include "confdefs.h"
10f2d63a 10056
698dcdb6 10057int main() {
788deba1 10058
698dcdb6
VZ
10059; return 0; }
10060EOF
b3e8d00a 10061if { (eval echo configure:10062: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 10062 rm -rf conftest*
ab9b9eab
VZ
10063 ac_R_nospace=yes
10064else
698dcdb6
VZ
10065 echo "configure: failed program was:" >&5
10066 cat conftest.$ac_ext >&5
10067 rm -rf conftest*
10068 ac_R_nospace=no
ab9b9eab 10069fi
698dcdb6 10070rm -f conftest*
ab9b9eab 10071 if test $ac_R_nospace = yes; then
698dcdb6 10072 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
10073 X_LIBS="$X_LIBS -R$x_libraries"
10074 else
10075 LIBS="$ac_xsave_LIBS -R $x_libraries"
698dcdb6 10076 cat > conftest.$ac_ext <<EOF
b3e8d00a 10077#line 10078 "configure"
ab9b9eab 10078#include "confdefs.h"
788deba1 10079
698dcdb6 10080int main() {
ab9b9eab 10081
698dcdb6
VZ
10082; return 0; }
10083EOF
b3e8d00a 10084if { (eval echo configure:10085: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 10085 rm -rf conftest*
ab9b9eab
VZ
10086 ac_R_space=yes
10087else
698dcdb6
VZ
10088 echo "configure: failed program was:" >&5
10089 cat conftest.$ac_ext >&5
10090 rm -rf conftest*
10091 ac_R_space=no
ab9b9eab 10092fi
698dcdb6 10093rm -f conftest*
ab9b9eab 10094 if test $ac_R_space = yes; then
698dcdb6 10095 echo "$ac_t""yes" 1>&6
ab9b9eab
VZ
10096 X_LIBS="$X_LIBS -R $x_libraries"
10097 else
698dcdb6 10098 echo "$ac_t""neither works" 1>&6
ab9b9eab
VZ
10099 fi
10100 fi
698dcdb6 10101 LIBS="$ac_xsave_LIBS"
ab9b9eab
VZ
10102 esac
10103 fi
10104
10105 # Check for system-dependent libraries X programs must link with.
10106 # Do this before checking for the system-independent R6 libraries
10107 # (-lICE), since we may need -lsocket or whatever for X linking.
10108
10109 if test "$ISC" = yes; then
10110 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
10111 else
698dcdb6
VZ
10112 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
10113 # libraries were built with DECnet support. And karl@cs.umb.edu says
ab9b9eab 10114 # the Alpha needs dnet_stub (dnet does not exist).
698dcdb6 10115 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
b3e8d00a 10116echo "configure:10117: checking for dnet_ntoa in -ldnet" >&5
698dcdb6
VZ
10117ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
10118if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10119 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 10120else
698dcdb6 10121 ac_save_LIBS="$LIBS"
ab9b9eab 10122LIBS="-ldnet $LIBS"
698dcdb6 10123cat > conftest.$ac_ext <<EOF
b3e8d00a 10124#line 10125 "configure"
ab9b9eab
VZ
10125#include "confdefs.h"
10126/* Override any gcc2 internal prototype to avoid an error. */
10127/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
10128 builtin and then its argument prototype would still apply. */
10129char dnet_ntoa();
10130
10131int main() {
10132dnet_ntoa()
10133; return 0; }
10134EOF
b3e8d00a 10135if { (eval echo configure:10136: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
10136 rm -rf conftest*
10137 eval "ac_cv_lib_$ac_lib_var=yes"
10138else
10139 echo "configure: failed program was:" >&5
10140 cat conftest.$ac_ext >&5
10141 rm -rf conftest*
10142 eval "ac_cv_lib_$ac_lib_var=no"
10143fi
10144rm -f conftest*
10145LIBS="$ac_save_LIBS"
10146
10147fi
10148if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10149 echo "$ac_t""yes" 1>&6
ab9b9eab 10150 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
698dcdb6
VZ
10151else
10152 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
10153fi
10154
10155 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
698dcdb6 10156 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
b3e8d00a 10157echo "configure:10158: checking for dnet_ntoa in -ldnet_stub" >&5
698dcdb6
VZ
10158ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
10159if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10160 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 10161else
698dcdb6 10162 ac_save_LIBS="$LIBS"
ab9b9eab 10163LIBS="-ldnet_stub $LIBS"
698dcdb6 10164cat > conftest.$ac_ext <<EOF
b3e8d00a 10165#line 10166 "configure"
ab9b9eab
VZ
10166#include "confdefs.h"
10167/* Override any gcc2 internal prototype to avoid an error. */
10168/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
10169 builtin and then its argument prototype would still apply. */
10170char dnet_ntoa();
10171
10172int main() {
10173dnet_ntoa()
10174; return 0; }
10175EOF
b3e8d00a 10176if { (eval echo configure:10177: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
10177 rm -rf conftest*
10178 eval "ac_cv_lib_$ac_lib_var=yes"
10179else
10180 echo "configure: failed program was:" >&5
10181 cat conftest.$ac_ext >&5
10182 rm -rf conftest*
10183 eval "ac_cv_lib_$ac_lib_var=no"
10184fi
10185rm -f conftest*
10186LIBS="$ac_save_LIBS"
10187
10188fi
10189if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10190 echo "$ac_t""yes" 1>&6
ab9b9eab 10191 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
698dcdb6
VZ
10192else
10193 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
10194fi
10195
10196 fi
10197
10198 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
10199 # to get the SysV transport functions.
698dcdb6 10200 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
ab9b9eab
VZ
10201 # needs -lnsl.
10202 # The nsl library prevents programs from opening the X display
698dcdb6
VZ
10203 # on Irix 5.2, according to dickey@clark.net.
10204 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
b3e8d00a 10205echo "configure:10206: checking for gethostbyname" >&5
698dcdb6
VZ
10206if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
10207 echo $ac_n "(cached) $ac_c" 1>&6
10208else
10209 cat > conftest.$ac_ext <<EOF
b3e8d00a 10210#line 10211 "configure"
ab9b9eab
VZ
10211#include "confdefs.h"
10212/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 10213 which can conflict with char gethostbyname(); below. */
ab9b9eab
VZ
10214#include <assert.h>
10215/* Override any gcc2 internal prototype to avoid an error. */
10216/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
10217 builtin and then its argument prototype would still apply. */
10218char gethostbyname();
10219
10220int main() {
ab9b9eab
VZ
10221
10222/* The GNU C library defines this for functions which it implements
10223 to always fail with ENOSYS. Some functions are actually named
10224 something starting with __ and the normal name is an alias. */
10225#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
10226choke me
10227#else
698dcdb6 10228gethostbyname();
ab9b9eab
VZ
10229#endif
10230
698dcdb6
VZ
10231; return 0; }
10232EOF
b3e8d00a 10233if { (eval echo configure:10234: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
10234 rm -rf conftest*
10235 eval "ac_cv_func_gethostbyname=yes"
10236else
10237 echo "configure: failed program was:" >&5
10238 cat conftest.$ac_ext >&5
10239 rm -rf conftest*
10240 eval "ac_cv_func_gethostbyname=no"
10241fi
10242rm -f conftest*
10243fi
10244
10245if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
10246 echo "$ac_t""yes" 1>&6
10247 :
10248else
10249 echo "$ac_t""no" 1>&6
10250fi
ab9b9eab
VZ
10251
10252 if test $ac_cv_func_gethostbyname = no; then
698dcdb6 10253 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
b3e8d00a 10254echo "configure:10255: checking for gethostbyname in -lnsl" >&5
698dcdb6
VZ
10255ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
10256if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10257 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 10258else
698dcdb6 10259 ac_save_LIBS="$LIBS"
ab9b9eab 10260LIBS="-lnsl $LIBS"
698dcdb6 10261cat > conftest.$ac_ext <<EOF
b3e8d00a 10262#line 10263 "configure"
ab9b9eab
VZ
10263#include "confdefs.h"
10264/* Override any gcc2 internal prototype to avoid an error. */
10265/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
10266 builtin and then its argument prototype would still apply. */
10267char gethostbyname();
6232543b 10268
698dcdb6
VZ
10269int main() {
10270gethostbyname()
10271; return 0; }
10272EOF
b3e8d00a 10273if { (eval echo configure:10274: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
10274 rm -rf conftest*
10275 eval "ac_cv_lib_$ac_lib_var=yes"
703e0a69 10276else
698dcdb6
VZ
10277 echo "configure: failed program was:" >&5
10278 cat conftest.$ac_ext >&5
10279 rm -rf conftest*
10280 eval "ac_cv_lib_$ac_lib_var=no"
10281fi
10282rm -f conftest*
10283LIBS="$ac_save_LIBS"
1e487827 10284
698dcdb6
VZ
10285fi
10286if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10287 echo "$ac_t""yes" 1>&6
10288 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
10289else
10290 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
10291fi
10292
10293 fi
10294
10295 # lieder@skyler.mavd.honeywell.com says without -lsocket,
10296 # socket/setsockopt and other routines are undefined under SCO ODT
10297 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
698dcdb6
VZ
10298 # on later versions), says simon@lia.di.epfl.ch: it contains
10299 # gethostby* variants that don't use the nameserver (or something).
10300 # -lsocket must be given before -lnsl if both are needed.
10301 # We assume that if connect needs -lnsl, so does gethostbyname.
10302 echo $ac_n "checking for connect""... $ac_c" 1>&6
b3e8d00a 10303echo "configure:10304: checking for connect" >&5
698dcdb6
VZ
10304if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
10305 echo $ac_n "(cached) $ac_c" 1>&6
10306else
10307 cat > conftest.$ac_ext <<EOF
b3e8d00a 10308#line 10309 "configure"
ab9b9eab
VZ
10309#include "confdefs.h"
10310/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 10311 which can conflict with char connect(); below. */
ab9b9eab
VZ
10312#include <assert.h>
10313/* Override any gcc2 internal prototype to avoid an error. */
10314/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
10315 builtin and then its argument prototype would still apply. */
10316char connect();
10317
10318int main() {
ab9b9eab
VZ
10319
10320/* The GNU C library defines this for functions which it implements
10321 to always fail with ENOSYS. Some functions are actually named
10322 something starting with __ and the normal name is an alias. */
10323#if defined (__stub_connect) || defined (__stub___connect)
10324choke me
10325#else
698dcdb6 10326connect();
ab9b9eab
VZ
10327#endif
10328
698dcdb6
VZ
10329; return 0; }
10330EOF
b3e8d00a 10331if { (eval echo configure:10332: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
10332 rm -rf conftest*
10333 eval "ac_cv_func_connect=yes"
10334else
10335 echo "configure: failed program was:" >&5
10336 cat conftest.$ac_ext >&5
10337 rm -rf conftest*
10338 eval "ac_cv_func_connect=no"
10339fi
10340rm -f conftest*
10341fi
10342
10343if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
10344 echo "$ac_t""yes" 1>&6
10345 :
10346else
10347 echo "$ac_t""no" 1>&6
10348fi
ab9b9eab
VZ
10349
10350 if test $ac_cv_func_connect = no; then
698dcdb6 10351 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
b3e8d00a 10352echo "configure:10353: checking for connect in -lsocket" >&5
698dcdb6
VZ
10353ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
10354if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10355 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 10356else
698dcdb6 10357 ac_save_LIBS="$LIBS"
ab9b9eab 10358LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
698dcdb6 10359cat > conftest.$ac_ext <<EOF
b3e8d00a 10360#line 10361 "configure"
ab9b9eab
VZ
10361#include "confdefs.h"
10362/* Override any gcc2 internal prototype to avoid an error. */
10363/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
10364 builtin and then its argument prototype would still apply. */
10365char connect();
10366
10367int main() {
10368connect()
10369; return 0; }
10370EOF
b3e8d00a 10371if { (eval echo configure:10372: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
10372 rm -rf conftest*
10373 eval "ac_cv_lib_$ac_lib_var=yes"
10374else
10375 echo "configure: failed program was:" >&5
10376 cat conftest.$ac_ext >&5
10377 rm -rf conftest*
10378 eval "ac_cv_lib_$ac_lib_var=no"
10379fi
10380rm -f conftest*
10381LIBS="$ac_save_LIBS"
10382
10383fi
10384if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10385 echo "$ac_t""yes" 1>&6
ab9b9eab 10386 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
698dcdb6
VZ
10387else
10388 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
10389fi
10390
10391 fi
10392
698dcdb6
VZ
10393 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
10394 echo $ac_n "checking for remove""... $ac_c" 1>&6
b3e8d00a 10395echo "configure:10396: checking for remove" >&5
698dcdb6
VZ
10396if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
10397 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 10398else
698dcdb6 10399 cat > conftest.$ac_ext <<EOF
b3e8d00a 10400#line 10401 "configure"
ab9b9eab
VZ
10401#include "confdefs.h"
10402/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 10403 which can conflict with char remove(); below. */
ab9b9eab
VZ
10404#include <assert.h>
10405/* Override any gcc2 internal prototype to avoid an error. */
10406/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
10407 builtin and then its argument prototype would still apply. */
10408char remove();
10409
10410int main() {
ab9b9eab
VZ
10411
10412/* The GNU C library defines this for functions which it implements
10413 to always fail with ENOSYS. Some functions are actually named
10414 something starting with __ and the normal name is an alias. */
10415#if defined (__stub_remove) || defined (__stub___remove)
10416choke me
10417#else
698dcdb6 10418remove();
ab9b9eab
VZ
10419#endif
10420
698dcdb6
VZ
10421; return 0; }
10422EOF
b3e8d00a 10423if { (eval echo configure:10424: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
10424 rm -rf conftest*
10425 eval "ac_cv_func_remove=yes"
10426else
10427 echo "configure: failed program was:" >&5
10428 cat conftest.$ac_ext >&5
10429 rm -rf conftest*
10430 eval "ac_cv_func_remove=no"
10431fi
10432rm -f conftest*
10433fi
10434
10435if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
10436 echo "$ac_t""yes" 1>&6
10437 :
10438else
10439 echo "$ac_t""no" 1>&6
10440fi
ab9b9eab
VZ
10441
10442 if test $ac_cv_func_remove = no; then
698dcdb6 10443 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
b3e8d00a 10444echo "configure:10445: checking for remove in -lposix" >&5
698dcdb6
VZ
10445ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
10446if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10447 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 10448else
698dcdb6 10449 ac_save_LIBS="$LIBS"
ab9b9eab 10450LIBS="-lposix $LIBS"
698dcdb6 10451cat > conftest.$ac_ext <<EOF
b3e8d00a 10452#line 10453 "configure"
ab9b9eab
VZ
10453#include "confdefs.h"
10454/* Override any gcc2 internal prototype to avoid an error. */
10455/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
10456 builtin and then its argument prototype would still apply. */
10457char remove();
10458
10459int main() {
10460remove()
10461; return 0; }
10462EOF
b3e8d00a 10463if { (eval echo configure:10464: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
10464 rm -rf conftest*
10465 eval "ac_cv_lib_$ac_lib_var=yes"
10466else
10467 echo "configure: failed program was:" >&5
10468 cat conftest.$ac_ext >&5
10469 rm -rf conftest*
10470 eval "ac_cv_lib_$ac_lib_var=no"
10471fi
10472rm -f conftest*
10473LIBS="$ac_save_LIBS"
10474
10475fi
10476if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10477 echo "$ac_t""yes" 1>&6
ab9b9eab 10478 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
698dcdb6
VZ
10479else
10480 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
10481fi
10482
10483 fi
10484
10485 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
698dcdb6 10486 echo $ac_n "checking for shmat""... $ac_c" 1>&6
b3e8d00a 10487echo "configure:10488: checking for shmat" >&5
698dcdb6
VZ
10488if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
10489 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 10490else
698dcdb6 10491 cat > conftest.$ac_ext <<EOF
b3e8d00a 10492#line 10493 "configure"
ab9b9eab
VZ
10493#include "confdefs.h"
10494/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 10495 which can conflict with char shmat(); below. */
ab9b9eab
VZ
10496#include <assert.h>
10497/* Override any gcc2 internal prototype to avoid an error. */
10498/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
10499 builtin and then its argument prototype would still apply. */
10500char shmat();
10501
10502int main() {
ab9b9eab
VZ
10503
10504/* The GNU C library defines this for functions which it implements
10505 to always fail with ENOSYS. Some functions are actually named
10506 something starting with __ and the normal name is an alias. */
10507#if defined (__stub_shmat) || defined (__stub___shmat)
10508choke me
10509#else
698dcdb6 10510shmat();
ab9b9eab
VZ
10511#endif
10512
698dcdb6
VZ
10513; return 0; }
10514EOF
b3e8d00a 10515if { (eval echo configure:10516: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
10516 rm -rf conftest*
10517 eval "ac_cv_func_shmat=yes"
10518else
10519 echo "configure: failed program was:" >&5
10520 cat conftest.$ac_ext >&5
10521 rm -rf conftest*
10522 eval "ac_cv_func_shmat=no"
10523fi
10524rm -f conftest*
10525fi
10526
10527if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
10528 echo "$ac_t""yes" 1>&6
10529 :
10530else
10531 echo "$ac_t""no" 1>&6
10532fi
ab9b9eab
VZ
10533
10534 if test $ac_cv_func_shmat = no; then
698dcdb6 10535 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
b3e8d00a 10536echo "configure:10537: checking for shmat in -lipc" >&5
698dcdb6
VZ
10537ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
10538if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10539 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 10540else
698dcdb6 10541 ac_save_LIBS="$LIBS"
ab9b9eab 10542LIBS="-lipc $LIBS"
698dcdb6 10543cat > conftest.$ac_ext <<EOF
b3e8d00a 10544#line 10545 "configure"
ab9b9eab
VZ
10545#include "confdefs.h"
10546/* Override any gcc2 internal prototype to avoid an error. */
10547/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
10548 builtin and then its argument prototype would still apply. */
10549char shmat();
10550
10551int main() {
10552shmat()
10553; return 0; }
10554EOF
b3e8d00a 10555if { (eval echo configure:10556: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
10556 rm -rf conftest*
10557 eval "ac_cv_lib_$ac_lib_var=yes"
10558else
10559 echo "configure: failed program was:" >&5
10560 cat conftest.$ac_ext >&5
10561 rm -rf conftest*
10562 eval "ac_cv_lib_$ac_lib_var=no"
10563fi
10564rm -f conftest*
10565LIBS="$ac_save_LIBS"
10566
10567fi
10568if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10569 echo "$ac_t""yes" 1>&6
ab9b9eab 10570 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
698dcdb6
VZ
10571else
10572 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
10573fi
10574
10575 fi
10576 fi
10577
10578 # Check for libraries that X11R6 Xt/Xaw programs need.
698dcdb6 10579 ac_save_LDFLAGS="$LDFLAGS"
ab9b9eab
VZ
10580 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
10581 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
10582 # check for ICE first), but we must link in the order -lSM -lICE or
10583 # we get undefined symbols. So assume we have SM if we have ICE.
10584 # These have to be linked with before -lX11, unlike the other
10585 # libraries we check for below, so use a different variable.
698dcdb6
VZ
10586 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
10587 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
b3e8d00a 10588echo "configure:10589: checking for IceConnectionNumber in -lICE" >&5
698dcdb6
VZ
10589ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
10590if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10591 echo $ac_n "(cached) $ac_c" 1>&6
10592else
10593 ac_save_LIBS="$LIBS"
ab9b9eab 10594LIBS="-lICE $X_EXTRA_LIBS $LIBS"
698dcdb6 10595cat > conftest.$ac_ext <<EOF
b3e8d00a 10596#line 10597 "configure"
ab9b9eab
VZ
10597#include "confdefs.h"
10598/* Override any gcc2 internal prototype to avoid an error. */
10599/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
10600 builtin and then its argument prototype would still apply. */
10601char IceConnectionNumber();
10602
10603int main() {
10604IceConnectionNumber()
10605; return 0; }
10606EOF
b3e8d00a 10607if { (eval echo configure:10608: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
10608 rm -rf conftest*
10609 eval "ac_cv_lib_$ac_lib_var=yes"
10610else
10611 echo "configure: failed program was:" >&5
10612 cat conftest.$ac_ext >&5
10613 rm -rf conftest*
10614 eval "ac_cv_lib_$ac_lib_var=no"
10615fi
10616rm -f conftest*
10617LIBS="$ac_save_LIBS"
10618
10619fi
10620if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10621 echo "$ac_t""yes" 1>&6
ab9b9eab 10622 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
698dcdb6
VZ
10623else
10624 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
10625fi
10626
698dcdb6 10627 LDFLAGS="$ac_save_LDFLAGS"
ab9b9eab
VZ
10628
10629fi
10630
1e6feb95
VZ
10631 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10632 LDFLAGS="$LDFLAGS $X_LIBS"
ab9b9eab 10633
1e6feb95
VZ
10634 if test "$wxUSE_MOTIF" = 1; then
10635 if test "$no_x" = "yes"; then
10636 { echo "configure: error: X11 not found" 1>&2; exit 1; }
10637 fi
ab9b9eab 10638
1e6feb95
VZ
10639 GUI_TK_LIBRARY="$X_LIBS"
10640 TOOLKIT_INCLUDE="$X_CFLAGS"
1e6feb95 10641 AFMINSTALL=afminstall
1e6feb95 10642 COMPILED_X_PROGRAM=0
cd6d6d5b 10643
1e6feb95 10644 echo $ac_n "checking for Motif/Lesstif headers""... $ac_c" 1>&6
b3e8d00a 10645echo "configure:10646: checking for Motif/Lesstif headers" >&5
1e6feb95 10646
ab9b9eab
VZ
10647ac_find_includes=
10648for ac_dir in $SEARCH_INCLUDE;
10649 do
10650 if test -f "$ac_dir/Xm/Xm.h"; then
10651 ac_find_includes=$ac_dir
10652 break
10653 fi
10654 done
10655
1e6feb95
VZ
10656 if test "$ac_find_includes" != "" ; then
10657 echo "$ac_t""found $ac_find_includes" 1>&6
10658 else
10659 cat > conftest.$ac_ext <<EOF
b3e8d00a 10660#line 10661 "configure"
cd6d6d5b
VZ
10661#include "confdefs.h"
10662
1e6feb95
VZ
10663 #include <Xm/Xm.h>
10664
698dcdb6 10665int main() {
cd6d6d5b 10666
1e6feb95 10667 int version;
1e6feb95
VZ
10668 version = xmUseVersion;
10669
698dcdb6
VZ
10670; return 0; }
10671EOF
b3e8d00a 10672if { (eval echo configure:10673: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
10673 rm -rf conftest*
10674
1e6feb95
VZ
10675 echo "$ac_t""found in default search path" 1>&6
10676 COMPILED_X_PROGRAM=1
10677
cd6d6d5b 10678else
698dcdb6
VZ
10679 echo "configure: failed program was:" >&5
10680 cat conftest.$ac_ext >&5
10681 rm -rf conftest*
10682
1e6feb95
VZ
10683 echo "$ac_t""no" 1>&6
10684 { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; }
10685
698dcdb6 10686
cd6d6d5b 10687fi
698dcdb6 10688rm -f conftest*
1e6feb95 10689 fi
ab9b9eab 10690
1e6feb95
VZ
10691 if test "$COMPILED_X_PROGRAM" = 0; then
10692 echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6
b3e8d00a 10693echo "configure:10694: checking for Motif/Lesstif library" >&5
1e6feb95 10694
ab9b9eab
VZ
10695ac_find_libraries=
10696for ac_dir in $SEARCH_LIB;
10697 do
f11bdd03 10698 for ac_extension in a so sl dylib; do
ab9b9eab
VZ
10699 if test -f "$ac_dir/libXm.$ac_extension"; then
10700 ac_find_libraries=$ac_dir
10701 break 2
10702 fi
10703 done
10704 done
10705
1e6feb95
VZ
10706 if test "$ac_find_libraries" != "" ; then
10707
ab9b9eab
VZ
10708 ac_path_to_include=$ac_find_includes
10709 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
10710 result=$?
10711 if test $result = 0; then
10712 ac_path_to_include=""
10713 else
10714 ac_path_to_include="-I$ac_find_includes"
10715 fi
10716
1e6feb95 10717
ab9b9eab
VZ
10718 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
10719 result=$?
10720 if test $result = 0; then
10721 ac_path_to_link=""
10722 else
10723 ac_path_to_link="-L$ac_find_libraries"
10724 fi
10725
698dcdb6 10726
1e6feb95
VZ
10727 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link"
10728 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE $ac_path_to_include"
10729 echo "$ac_t""found at $ac_find_libraries" 1>&6
10730 else
10731 cat > conftest.$ac_ext <<EOF
b3e8d00a 10732#line 10733 "configure"
cd6d6d5b 10733#include "confdefs.h"
ab9b9eab 10734
1e6feb95
VZ
10735 #include <Xm/Xm.h>
10736
698dcdb6 10737int main() {
ab9b9eab 10738
1e6feb95 10739 int version;
1e6feb95
VZ
10740 version = xmUseVersion;
10741
698dcdb6
VZ
10742; return 0; }
10743EOF
b3e8d00a 10744if { (eval echo configure:10745: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
10745 rm -rf conftest*
10746
1e6feb95
VZ
10747 echo "$ac_t""found in default search path" 1>&6
10748 COMPILED_X_PROGRAM=1
10749
cd6d6d5b 10750else
698dcdb6
VZ
10751 echo "configure: failed program was:" >&5
10752 cat conftest.$ac_ext >&5
10753 rm -rf conftest*
10754
1e6feb95
VZ
10755 echo "$ac_t""no" 1>&6
10756 { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; }
10757
698dcdb6 10758
cd6d6d5b 10759fi
698dcdb6 10760rm -f conftest*
1e6feb95 10761 fi
cd6d6d5b 10762 fi
ab9b9eab 10763
3a922bb4 10764 xpm_link=""
1e6feb95 10765 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
b3e8d00a 10766echo "configure:10767: checking for Xpm library" >&5
1e6feb95 10767
ab9b9eab
VZ
10768ac_find_libraries=
10769for ac_dir in $SEARCH_LIB;
10770 do
f11bdd03 10771 for ac_extension in a so sl dylib; do
ab9b9eab
VZ
10772 if test -f "$ac_dir/libXpm.$ac_extension"; then
10773 ac_find_libraries=$ac_dir
10774 break 2
10775 fi
10776 done
10777 done
10778
1e6feb95
VZ
10779 if test "$ac_find_libraries" != "" ; then
10780
ab9b9eab
VZ
10781 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
10782 result=$?
10783 if test $result = 0; then
10784 ac_path_to_link=""
10785 else
10786 ac_path_to_link="-L$ac_find_libraries"
10787 fi
10788
1e6feb95 10789 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link"
3a922bb4 10790 xpm_link="-lXpm "
1e6feb95 10791 cat >> confdefs.h <<\EOF
ab9b9eab
VZ
10792#define wxHAVE_LIB_XPM 1
10793EOF
10794
1e6feb95
VZ
10795 echo "$ac_t""found at $ac_find_libraries" 1>&6
10796 else
10797 cat > conftest.$ac_ext <<EOF
b3e8d00a 10798#line 10799 "configure"
cd6d6d5b
VZ
10799#include "confdefs.h"
10800
1e6feb95
VZ
10801 #include <X11/xpm.h>
10802
698dcdb6 10803int main() {
cd6d6d5b 10804
1e6feb95 10805 int version;
1e6feb95
VZ
10806 version = XpmLibraryVersion();
10807
698dcdb6
VZ
10808; return 0; }
10809EOF
b3e8d00a 10810if { (eval echo configure:10811: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
10811 rm -rf conftest*
10812
3a922bb4
RL
10813 xpm_link="-lXpm "
10814 cat >> confdefs.h <<\EOF
3ace2e6d
SN
10815#define wxHAVE_LIB_XPM 1
10816EOF
10817
1e6feb95
VZ
10818 echo "$ac_t""found in default search path" 1>&6
10819 COMPILED_X_PROGRAM=0
10820
cd6d6d5b 10821else
698dcdb6
VZ
10822 echo "configure: failed program was:" >&5
10823 cat conftest.$ac_ext >&5
10824 rm -rf conftest*
10825
1e6feb95
VZ
10826 echo "$ac_t""no" 1>&6
10827 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
10828
698dcdb6 10829
cd6d6d5b 10830fi
698dcdb6 10831rm -f conftest*
1e6feb95
VZ
10832 fi
10833
3a922bb4
RL
10834 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm $xpm_link -lXmu -lXext -lXt -lX11"
10835 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}${PATH_IFS}\${top_srcdir}/src/motif/xmcombo"
1e6feb95
VZ
10836 TOOLKIT=MOTIF
10837 GUIDIST=MOTIF_DIST
ab9b9eab
VZ
10838 fi
10839
3a922bb4 10840 if test "$wxUSE_MAC" = 1; then
1e6feb95 10841 TOOLKIT=MAC
3a922bb4 10842 GUIDIST=MACX_DIST
1e6feb95 10843 fi
10f2d63a 10844
1e6feb95
VZ
10845 if test "$wxUSE_PM" = 1; then
10846 TOOLKIT=PM
10847 GUIDIST=GTK_DIST
10848 fi
b4085ce6 10849
3a922bb4 10850 if test "$TOOLKIT" = "PM" ; then
1e6feb95 10851 TOOLKIT_DIR="os2"
3a922bb4
RL
10852 else
10853 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
1e6feb95 10854 fi
e07802fc 10855
3a922bb4 10856 PORT_FILES="\${top_srcdir}/src/\$(TOOLKITDIR)/files.lst"
1e6feb95 10857
3a922bb4
RL
10858 if test "$wxUSE_UNIVERSAL" = "yes"; then
10859 ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}"
10860 PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst"
10861 TOOLKIT_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes${PATH_IFS}\${top_srcdir}/src/${TOOLKIT_DIR}"
10862 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
10863 WIDGET_SET=univ
f6bcfd97 10864 else
3a922bb4 10865 ALL_OBJECTS="\$(GUIOBJS)"
1e6feb95
VZ
10866 fi
10867
10868 ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)"
10869
10870 if test "$TOOLKIT" != "MSW"; then
10871 ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)"
10872 fi
10873
10874 if test "$wxUSE_HTML" = "yes"; then
10875 ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)"
10876 fi
3fcdd07b 10877
3a922bb4
RL
10878 if test "$TOOLKIT" != "MSW" -a "$wxUSE_ODBC" = "yes" ; then
10879 ALL_OBJECTS="${ALL_OBJECTS} \$(IODBCOBJS)"
831b3152 10880 fi
d9d8273d 10881 if test "$wxUSE_LIBJPEG" = "yes" ; then
2224580a 10882 ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)"
d9d8273d
RR
10883 fi
10884 if test "$wxUSE_LIBTIFF" = "yes" ; then
10885 ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)"
10886 fi
10887 if test "$wxUSE_LIBPNG" = "yes" ; then
10888 ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)"
10889 fi
3fed1840
RR
10890 if test "$wxUSE_FREETYPE" = "yes" ; then
10891 ALL_OBJECTS="${ALL_OBJECTS} \$(FREETYPEOBJS)"
10892 fi
2224580a 10893
2224580a
VZ
10894 RPM_FILES="src/\$(TOOLKITDIR)/rpmfiles.lst"
10895 RPM_SPEC="wx\$(TOOLKIT).spec"
10896
10897 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
10898 DISTDIR="wx\$(TOOLKIT)"
10f2d63a 10899else
dad6c0ea
VZ
10900 USE_GUI=0
10901
3a922bb4 10902 TOOLKIT_DIR="base"
f6bcfd97 10903
3a922bb4
RL
10904 if test "$USE_WIN32" = 1 ; then
10905 ALL_OBJECTS="\${BASE_OBJS} \${BASE_MSW_OBJS}"
10906 TOOLKIT_VPATH="\${top_srcdir}/src/msw"
0b2effe9 10907
3a922bb4 10908 TOOLKIT="MSW"
f6bcfd97 10909 else
3a922bb4
RL
10910 ALL_OBJECTS="\${BASE_OBJS} \${BASE_UNIX_OBJS}"
10911 TOOLKIT_VPATH="\${top_srcdir}/src/unix"
f6bcfd97
BP
10912 fi
10913
831b3152 10914 PORT_FILES="\${top_srcdir}/src/files.lst"
2224580a
VZ
10915 RPM_FILES="src/rpmfiles.lst"
10916 RPM_SPEC="wxBase.spec"
10917
10918 GUIDIST="BASE_DIST"
10919 DISTDIR="wxBase"
10f2d63a
VZ
10920fi
10921
3a922bb4
RL
10922if test "x$REGEX_INCLUDE" != "x" ; then
10923 ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)"
10924fi
10925if test "$wxUSE_ZLIB" = "yes" ; then
10926 ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
10927fi
10f2d63a 10928
3a922bb4
RL
10929if test "$wxUSE_OPENGL" = "yes"; then
10930 if test "$wxUSE_MAC" = 1; then
10931 cat >> confdefs.h <<\EOF
10932#define wxUSE_OPENGL 1
10933EOF
10f2d63a 10934
3a922bb4
RL
10935 cat >> confdefs.h <<\EOF
10936#define wxUSE_GLCANVAS 1
10937EOF
10f2d63a 10938
3a922bb4
RL
10939 OPENGL_LIBS="-framework OpenGL -framework AGL"
10940 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl"
10941 else
10942 ac_safe=`echo "GL/gl.h" | sed 'y%./+-%__p_%'`
10943echo $ac_n "checking for GL/gl.h""... $ac_c" 1>&6
b3e8d00a 10944echo "configure:10945: checking for GL/gl.h" >&5
3a922bb4
RL
10945if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10946 echo $ac_n "(cached) $ac_c" 1>&6
10947else
10948 cat > conftest.$ac_ext <<EOF
b3e8d00a 10949#line 10950 "configure"
3a922bb4
RL
10950#include "confdefs.h"
10951#include <GL/gl.h>
10952EOF
10953ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
b3e8d00a 10954{ (eval echo configure:10955: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3a922bb4
RL
10955ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10956if test -z "$ac_err"; then
10957 rm -rf conftest*
10958 eval "ac_cv_header_$ac_safe=yes"
10959else
10960 echo "$ac_err" >&5
10961 echo "configure: failed program was:" >&5
10962 cat conftest.$ac_ext >&5
10963 rm -rf conftest*
10964 eval "ac_cv_header_$ac_safe=no"
10965fi
10966rm -f conftest*
10967fi
10968if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10969 echo "$ac_t""yes" 1>&6
10970
10971 cat >> confdefs.h <<\EOF
10972#define wxUSE_OPENGL 1
10973EOF
10f2d63a 10974
3a922bb4
RL
10975 cat >> confdefs.h <<\EOF
10976#define wxUSE_GLCANVAS 1
10977EOF
10f2d63a 10978
3a922bb4
RL
10979 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl"
10980 echo $ac_n "checking for glFlush in -lGL""... $ac_c" 1>&6
b3e8d00a 10981echo "configure:10982: checking for glFlush in -lGL" >&5
3a922bb4
RL
10982ac_lib_var=`echo GL'_'glFlush | sed 'y%./+-%__p_%'`
10983if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10984 echo $ac_n "(cached) $ac_c" 1>&6
10985else
10986 ac_save_LIBS="$LIBS"
10987LIBS="-lGL $LIBS"
10988cat > conftest.$ac_ext <<EOF
b3e8d00a 10989#line 10990 "configure"
3a922bb4
RL
10990#include "confdefs.h"
10991/* Override any gcc2 internal prototype to avoid an error. */
10992/* We use char because int might match the return type of a gcc2
10993 builtin and then its argument prototype would still apply. */
10994char glFlush();
55e80573 10995
3a922bb4
RL
10996int main() {
10997glFlush()
10998; return 0; }
10999EOF
b3e8d00a 11000if { (eval echo configure:11001: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3a922bb4
RL
11001 rm -rf conftest*
11002 eval "ac_cv_lib_$ac_lib_var=yes"
11003else
11004 echo "configure: failed program was:" >&5
11005 cat conftest.$ac_ext >&5
11006 rm -rf conftest*
11007 eval "ac_cv_lib_$ac_lib_var=no"
11008fi
11009rm -f conftest*
11010LIBS="$ac_save_LIBS"
55e80573 11011
3a922bb4
RL
11012fi
11013if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11014 echo "$ac_t""yes" 1>&6
11015
11016 OPENGL_LIBS="-lGL -lGLU"
11017
11018else
11019 echo "$ac_t""no" 1>&6
11020
11021 echo $ac_n "checking for glFlush in -lMesaGL""... $ac_c" 1>&6
b3e8d00a 11022echo "configure:11023: checking for glFlush in -lMesaGL" >&5
3a922bb4
RL
11023ac_lib_var=`echo MesaGL'_'glFlush | sed 'y%./+-%__p_%'`
11024if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11025 echo $ac_n "(cached) $ac_c" 1>&6
11026else
11027 ac_save_LIBS="$LIBS"
11028LIBS="-lMesaGL $LIBS"
11029cat > conftest.$ac_ext <<EOF
b3e8d00a 11030#line 11031 "configure"
3a922bb4
RL
11031#include "confdefs.h"
11032/* Override any gcc2 internal prototype to avoid an error. */
11033/* We use char because int might match the return type of a gcc2
11034 builtin and then its argument prototype would still apply. */
11035char glFlush();
11036
11037int main() {
11038glFlush()
11039; return 0; }
11040EOF
b3e8d00a 11041if { (eval echo configure:11042: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3a922bb4
RL
11042 rm -rf conftest*
11043 eval "ac_cv_lib_$ac_lib_var=yes"
11044else
11045 echo "configure: failed program was:" >&5
11046 cat conftest.$ac_ext >&5
11047 rm -rf conftest*
11048 eval "ac_cv_lib_$ac_lib_var=no"
11049fi
11050rm -f conftest*
11051LIBS="$ac_save_LIBS"
11052
11053fi
11054if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11055 echo "$ac_t""yes" 1>&6
11056
11057 OPENGL_LIBS="-lMesaGL -lMesaGLU"
11058
11059else
11060 echo "$ac_t""no" 1>&6
11061fi
55e80573 11062
3a922bb4
RL
11063
11064fi
11065
11066
11067else
11068 echo "$ac_t""no" 1>&6
11069wxUSE_OPENGL=0
11070fi
11071
11072 fi
11073fi
11074
11075if test -z "$TOOLKIT_VPATH" ; then
11076 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}"
11077fi
11078
11079if test -n "$TOOLKIT" ; then
11080 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
11081fi
11082
11083if test "$wxUSE_CYGWIN" = 1 ; then
11084 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__"
11085fi
11086
11087lib_debug_suffix=
11088if test "$wxUSE_DEBUG_FLAG" = "yes"; then
11089 lib_debug_suffix=d
11090 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}d"
11091fi
11092
11093TOOLCHAIN_NAME="${TOOLKIT_DIR}${WIDGET_SET}${lib_debug_suffix}-${WX_RELEASE}"
11094TOOLCHAIN_NAME_GL="${TOOLKIT_DIR}${WIDGET_SET}${lib_debug_suffix}_gl-${WX_RELEASE}"
11095
11096if test "$cross_compiling" = "yes"; then
11097 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}-${host_alias}"
11098 TOOLCHAIN_NAME_GL="${TOOLCHAIN_NAME_GL}-${host_alias}"
11099fi
11100
11101WX_LIBRARY="wx_${TOOLCHAIN_NAME}"
11102WX_LIBRARY_GL="wx_${TOOLCHAIN_NAME_GL}"
11103
11104WXCONFIG_LIBS="-l${WX_LIBRARY}"
11105
11106if test "$wxUSE_OPENGL" = "yes"; then
11107 WXCONFIG_LIBS_GL="-l${WX_LIBRARY_GL} $OPENGL_LIBS"
11108fi
11109
11110WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a"
11111WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY_GL}.a"
11112
11113WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
11114WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
11115
11116WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}"
11117WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
11118WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}"
11119WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
11120
11121WX_RESOURCES_DARWIN="lib${WX_LIBRARY}.rsrc"
11122
11123
11124
11125if test "$wxUSE_SHARED" = "yes"; then
55e80573
VZ
11126
11127 if test "$wxUSE_OPENGL" = "yes"; then
11128 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
3a922bb4 11129 WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1} \$(build_libdir)/${WX_LIBRARY_LINK1_GL}"
55e80573
VZ
11130 else
11131 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
3a922bb4 11132 WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1}"
55e80573
VZ
11133 fi
11134
dd4f7467 11135 if test "$GCC" = "yes"; then
55e80573 11136 PIC_FLAG="-fPIC"
dd4f7467 11137 fi
55e80573
VZ
11138
11139 SHARED_LD="${CXX} -shared -o"
698dcdb6 11140
10f2d63a
VZ
11141 case "${host}" in
11142 *-hp-hpux* )
55e80573 11143 if test "$GCC" != "yes"; then
f6bcfd97
BP
11144 LDFLAGS="-L/usr/lib"
11145
10f2d63a
VZ
11146 SHARED_LD="${CXX} -b -o"
11147 PIC_FLAG="+Z"
11148 fi
55e80573 11149
10f2d63a 11150 ;;
b12915c1 11151
55e80573
VZ
11152 *-*-linux* )
11153 if test "$GCC" != "yes"; then
11154 echo $ac_n "checking for Intel compiler""... $ac_c" 1>&6
b3e8d00a 11155echo "configure:11156: checking for Intel compiler" >&5
55e80573
VZ
11156if eval "test \"`echo '$''{'wx_cv_prog_icc'+set}'`\" = set"; then
11157 echo $ac_n "(cached) $ac_c" 1>&6
11158else
11159
11160 cat > conftest.$ac_ext <<EOF
b3e8d00a 11161#line 11162 "configure"
55e80573
VZ
11162#include "confdefs.h"
11163
11164int main() {
11165
11166 #ifndef __INTEL_COMPILER
dd4f7467 11167 #error Not icc
55e80573
VZ
11168 #endif
11169
11170; return 0; }
11171EOF
b3e8d00a 11172if { (eval echo configure:11173: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
55e80573
VZ
11173 rm -rf conftest*
11174 wx_cv_prog_icc=yes
11175else
11176 echo "configure: failed program was:" >&5
11177 cat conftest.$ac_ext >&5
11178 rm -rf conftest*
11179 wx_cv_prog_icc=no
11180
11181fi
11182rm -f conftest*
11183
11184fi
11185
11186echo "$ac_t""$wx_cv_prog_icc" 1>&6
55e80573
VZ
11187 if test "$wx_cv_prog_icc" = "yes"; then
11188 PIC_FLAG="-KPIC"
11189 fi
11190 fi
11191
3a922bb4
RL
11192 if test "$wxUSE_SONAME" = "yes" ; then
11193 SONAME_FLAGS="-Wl,-soname,${WX_LIBRARY_LINK1}"
11194 SONAME_FLAGS_GL="-Wl,-soname,${WX_LIBRARY_LINK1_GL}"
f6bcfd97 11195 WX_TARGET_LIBRARY_SONAME="-Wl,-soname,\$(TARGETLIB_LINK1)"
00cf1208 11196 fi
10f2d63a 11197 ;;
55e80573 11198
10f2d63a
VZ
11199 *-*-solaris2* )
11200 if test "$GCC" = yes ; then
f6bcfd97 11201 CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
10f2d63a
VZ
11202 else
11203 SHARED_LD="${CXX} -G -o"
11204 PIC_FLAG="-KPIC"
11205 fi
10f2d63a 11206 ;;
55e80573 11207
b4085ce6 11208 *-*-darwin* )
3a922bb4 11209 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__UNIX__ -D__DARWIN__ -D__POWERPC__"
a3cb1afc 11210 CPPFLAGS="${CPPFLAGS} -fno-common"
ea5999b9
GD
11211 SHARED_LD="${CXX} -dynamiclib -o"
11212 PIC_FLAG="-dynamic -fPIC"
55e80573 11213
a3cb1afc 11214 if test "$wxUSE_MAC" = 1 ; then
3a922bb4
RL
11215 WX_ALL="${WX_ALL} lib${WX_LIBRARY}.r"
11216 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -DTARGET_CARBON"
11217 CPPFLAGS="${CPPFLAGS} -fpascal-strings"
11218 CXXFLAGS="${CXXFLAGS} -cpp-precomp"
11219 # Extract the first word of "Rez", so it can be a program name with args.
11220set dummy Rez; ac_word=$2
11221echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
b3e8d00a 11222echo "configure:11223: checking for $ac_word" >&5
3a922bb4
RL
11223if eval "test \"`echo '$''{'ac_cv_prog_RESCOMP'+set}'`\" = set"; then
11224 echo $ac_n "(cached) $ac_c" 1>&6
11225else
11226 if test -n "$RESCOMP"; then
11227 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
11228else
11229 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
11230 ac_dummy="$PATH"
11231 for ac_dir in $ac_dummy; do
11232 test -z "$ac_dir" && ac_dir=.
11233 if test -f $ac_dir/$ac_word; then
11234 ac_cv_prog_RESCOMP="Rez"
11235 break
11236 fi
11237 done
11238 IFS="$ac_save_ifs"
11239 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
11240fi
11241fi
11242RESCOMP="$ac_cv_prog_RESCOMP"
11243if test -n "$RESCOMP"; then
11244 echo "$ac_t""$RESCOMP" 1>&6
11245else
11246 echo "$ac_t""no" 1>&6
11247fi
11248
11249 # Extract the first word of "Derez", so it can be a program name with args.
11250set dummy Derez; ac_word=$2
11251echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
b3e8d00a 11252echo "configure:11253: checking for $ac_word" >&5
3a922bb4
RL
11253if eval "test \"`echo '$''{'ac_cv_prog_DEREZ'+set}'`\" = set"; then
11254 echo $ac_n "(cached) $ac_c" 1>&6
11255else
11256 if test -n "$DEREZ"; then
11257 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
11258else
11259 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
11260 ac_dummy="$PATH"
11261 for ac_dir in $ac_dummy; do
11262 test -z "$ac_dir" && ac_dir=.
11263 if test -f $ac_dir/$ac_word; then
11264 ac_cv_prog_DEREZ="Derez"
11265 break
11266 fi
11267 done
11268 IFS="$ac_save_ifs"
11269 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/Derez"
11270fi
11271fi
11272DEREZ="$ac_cv_prog_DEREZ"
11273if test -n "$DEREZ"; then
11274 echo "$ac_t""$DEREZ" 1>&6
11275else
11276 echo "$ac_t""no" 1>&6
11277fi
11278
11279 LIBWXMACRES="\$(top_builddir)/lib/lib${WX_LIBRARY}.r"
11280 LIBWXMACRESCOMP="\$(RESCOMP) Carbon.r -t APPL ${LIBWXMACRES} -o \$(BIN_PROGRAM)"
a3cb1afc 11281 fi
10f2d63a 11282 ;;
55e80573 11283
10f2d63a
VZ
11284 *-*-aix* )
11285 SHARED_LD="/usr/lpp/xlC/bin/makeC++SharedLib -p 0 -o"
10f2d63a 11286 ;;
55e80573 11287
1c8183e2 11288 *-*-cygwin* )
3a922bb4
RL
11289 echo "configure: warning: Shared libs unsupported for $host_alias -- forcing static build." 1>&2
11290 wxUSE_SHARED=no
10f2d63a 11291 ;;
55e80573 11292
b12915c1 11293 *-*-mingw32* )
3a922bb4
RL
11294 SHARED_LD="${CXX} -shared -Wl,--out-implib,lib/${WX_LIBRARY_NAME_STATIC} -o"
11295 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -DWXUSINGDLL=1"
18dbb1f6
VZ
11296 WXMSW_DLL_DEFINES="-UWXUSINGDLL -DWXMAKINGDLL=1 -D_DLL=1 -D_WINDLL=1"
11297 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
11298 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}"
f6bcfd97
BP
11299 if test "$wxUSE_OPENGL" = "yes"; then
11300 WX_ALL_INSTALLED="preinstall_gl"
3a922bb4 11301 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}"
f6bcfd97 11302 else
3a922bb4 11303 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}"
f6bcfd97 11304 fi
10f2d63a 11305 ;;
55e80573 11306
10f2d63a 11307 *-pc-os2_emx )
e07802fc 11308 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
3a922bb4 11309 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC}"
10f2d63a 11310 ;;
55e80573 11311
b12915c1 11312 *-*-beos* )
e2b8b066 11313 SHARED_LD="${LD} -shared -o"
b12915c1 11314 ;;
55e80573
VZ
11315
11316 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
11317 *-*-sunos4* | \
11318 *-*-irix5* | *-*-irix6* | \
11319 *-*-osf* | \
11320 *-*-dgux5* | \
11321 *-*-sysv5* )
11322 ;;
11323
10f2d63a 11324 *)
698dcdb6 11325 { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; }
10f2d63a
VZ
11326 esac
11327
11328 if test "x$WX_TARGET_LIBRARY" = "x"; then
11329 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
bdad4e7e 11330 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}"
10f2d63a 11331 fi
55e80573 11332
3711412e 11333 WX_TARGET_LIBRARY_TYPE="so"
3a922bb4 11334fi
f6bcfd97 11335
3a922bb4 11336if test "$wxUSE_SHARED" = "no"; then
f6bcfd97 11337
3a922bb4 11338 if test "$wxUSE_GUI" = "no" -o "$USE_WIN32" = 1 ; then
f6bcfd97
BP
11339 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
11340 fi
11341
3a922bb4
RL
11342 if test "$wxUSE_OPENGL" = "yes"; then
11343 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_gl"
11344 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC} \$(build_libdir)/${WX_LIBRARY_NAME_STATIC_GL}"
11345 else
11346 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC}"
11347 fi
698dcdb6 11348
3a922bb4
RL
11349 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
11350 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
11351
11352 WX_TARGET_LIBRARY_TYPE="a"
10f2d63a 11353fi
10f2d63a 11354
3a922bb4
RL
11355
11356for ac_hdr in strings.h
9cfadba2 11357do
698dcdb6
VZ
11358ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11359echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
b3e8d00a 11360echo "configure:11361: checking for $ac_hdr" >&5
698dcdb6
VZ
11361if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11362 echo $ac_n "(cached) $ac_c" 1>&6
11363else
11364 cat > conftest.$ac_ext <<EOF
b3e8d00a 11365#line 11366 "configure"
9cfadba2 11366#include "confdefs.h"
698dcdb6
VZ
11367#include <$ac_hdr>
11368EOF
11369ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
b3e8d00a 11370{ (eval echo configure:11371: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
11371ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11372if test -z "$ac_err"; then
11373 rm -rf conftest*
11374 eval "ac_cv_header_$ac_safe=yes"
6232543b 11375else
698dcdb6
VZ
11376 echo "$ac_err" >&5
11377 echo "configure: failed program was:" >&5
9cfadba2 11378 cat conftest.$ac_ext >&5
698dcdb6
VZ
11379 rm -rf conftest*
11380 eval "ac_cv_header_$ac_safe=no"
9cfadba2 11381fi
698dcdb6 11382rm -f conftest*
9cfadba2 11383fi
698dcdb6
VZ
11384if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11385 echo "$ac_t""yes" 1>&6
11386 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11387 cat >> confdefs.h <<EOF
11388#define $ac_tr_hdr 1
9cfadba2 11389EOF
698dcdb6
VZ
11390
11391else
11392 echo "$ac_t""no" 1>&6
9cfadba2
VZ
11393fi
11394done
10f2d63a 11395
3a922bb4 11396for ac_hdr in stdlib.h
10f2d63a 11397do
698dcdb6
VZ
11398ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11399echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
b3e8d00a 11400echo "configure:11401: checking for $ac_hdr" >&5
698dcdb6
VZ
11401if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11402 echo $ac_n "(cached) $ac_c" 1>&6
11403else
11404 cat > conftest.$ac_ext <<EOF
b3e8d00a 11405#line 11406 "configure"
10f2d63a 11406#include "confdefs.h"
698dcdb6
VZ
11407#include <$ac_hdr>
11408EOF
11409ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
b3e8d00a 11410{ (eval echo configure:11411: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
11411ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11412if test -z "$ac_err"; then
11413 rm -rf conftest*
11414 eval "ac_cv_header_$ac_safe=yes"
6232543b 11415else
698dcdb6
VZ
11416 echo "$ac_err" >&5
11417 echo "configure: failed program was:" >&5
10f2d63a 11418 cat conftest.$ac_ext >&5
698dcdb6
VZ
11419 rm -rf conftest*
11420 eval "ac_cv_header_$ac_safe=no"
10f2d63a 11421fi
698dcdb6 11422rm -f conftest*
10f2d63a 11423fi
698dcdb6
VZ
11424if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11425 echo "$ac_t""yes" 1>&6
11426 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11427 cat >> confdefs.h <<EOF
11428#define $ac_tr_hdr 1
10f2d63a 11429EOF
698dcdb6
VZ
11430
11431else
11432 echo "$ac_t""no" 1>&6
10f2d63a
VZ
11433fi
11434done
11435
3a922bb4 11436for ac_hdr in unistd.h
10f2d63a 11437do
698dcdb6
VZ
11438ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11439echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
b3e8d00a 11440echo "configure:11441: checking for $ac_hdr" >&5
698dcdb6
VZ
11441if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11442 echo $ac_n "(cached) $ac_c" 1>&6
11443else
11444 cat > conftest.$ac_ext <<EOF
b3e8d00a 11445#line 11446 "configure"
10f2d63a 11446#include "confdefs.h"
698dcdb6
VZ
11447#include <$ac_hdr>
11448EOF
11449ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
b3e8d00a 11450{ (eval echo configure:11451: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
11451ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11452if test -z "$ac_err"; then
11453 rm -rf conftest*
11454 eval "ac_cv_header_$ac_safe=yes"
6f72b082 11455else
698dcdb6
VZ
11456 echo "$ac_err" >&5
11457 echo "configure: failed program was:" >&5
6f72b082 11458 cat conftest.$ac_ext >&5
698dcdb6
VZ
11459 rm -rf conftest*
11460 eval "ac_cv_header_$ac_safe=no"
6f72b082 11461fi
698dcdb6 11462rm -f conftest*
6f72b082 11463fi
698dcdb6
VZ
11464if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11465 echo "$ac_t""yes" 1>&6
11466 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11467 cat >> confdefs.h <<EOF
11468#define $ac_tr_hdr 1
6f72b082 11469EOF
698dcdb6
VZ
11470
11471else
11472 echo "$ac_t""no" 1>&6
6f72b082
OK
11473fi
11474done
11475
3a922bb4 11476for ac_hdr in wchar.h
6f72b082 11477do
698dcdb6
VZ
11478ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11479echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
b3e8d00a 11480echo "configure:11481: checking for $ac_hdr" >&5
698dcdb6
VZ
11481if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11482 echo $ac_n "(cached) $ac_c" 1>&6
11483else
11484 cat > conftest.$ac_ext <<EOF
b3e8d00a 11485#line 11486 "configure"
6f72b082 11486#include "confdefs.h"
698dcdb6
VZ
11487#include <$ac_hdr>
11488EOF
11489ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
b3e8d00a 11490{ (eval echo configure:11491: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
11491ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11492if test -z "$ac_err"; then
11493 rm -rf conftest*
11494 eval "ac_cv_header_$ac_safe=yes"
6f72b082 11495else
698dcdb6
VZ
11496 echo "$ac_err" >&5
11497 echo "configure: failed program was:" >&5
6f72b082 11498 cat conftest.$ac_ext >&5
698dcdb6
VZ
11499 rm -rf conftest*
11500 eval "ac_cv_header_$ac_safe=no"
6f72b082 11501fi
698dcdb6 11502rm -f conftest*
6f72b082 11503fi
698dcdb6
VZ
11504if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11505 echo "$ac_t""yes" 1>&6
11506 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11507 cat >> confdefs.h <<EOF
11508#define $ac_tr_hdr 1
6f72b082 11509EOF
698dcdb6
VZ
11510
11511else
11512 echo "$ac_t""no" 1>&6
6f72b082
OK
11513fi
11514done
11515
3a922bb4 11516for ac_hdr in wcstr.h
6f72b082 11517do
698dcdb6
VZ
11518ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11519echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
b3e8d00a 11520echo "configure:11521: checking for $ac_hdr" >&5
698dcdb6
VZ
11521if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11522 echo $ac_n "(cached) $ac_c" 1>&6
11523else
11524 cat > conftest.$ac_ext <<EOF
b3e8d00a 11525#line 11526 "configure"
6f72b082 11526#include "confdefs.h"
698dcdb6
VZ
11527#include <$ac_hdr>
11528EOF
11529ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
b3e8d00a 11530{ (eval echo configure:11531: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
11531ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11532if test -z "$ac_err"; then
11533 rm -rf conftest*
11534 eval "ac_cv_header_$ac_safe=yes"
10f2d63a 11535else
698dcdb6
VZ
11536 echo "$ac_err" >&5
11537 echo "configure: failed program was:" >&5
10f2d63a 11538 cat conftest.$ac_ext >&5
698dcdb6
VZ
11539 rm -rf conftest*
11540 eval "ac_cv_header_$ac_safe=no"
10f2d63a 11541fi
698dcdb6 11542rm -f conftest*
10f2d63a 11543fi
698dcdb6
VZ
11544if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11545 echo "$ac_t""yes" 1>&6
11546 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11547 cat >> confdefs.h <<EOF
11548#define $ac_tr_hdr 1
10f2d63a 11549EOF
698dcdb6
VZ
11550
11551else
11552 echo "$ac_t""no" 1>&6
10f2d63a
VZ
11553fi
11554done
11555
3a922bb4 11556for ac_hdr in fnmatch.h
0fb0dd83 11557do
698dcdb6
VZ
11558ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11559echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
b3e8d00a 11560echo "configure:11561: checking for $ac_hdr" >&5
698dcdb6
VZ
11561if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11562 echo $ac_n "(cached) $ac_c" 1>&6
11563else
11564 cat > conftest.$ac_ext <<EOF
b3e8d00a 11565#line 11566 "configure"
0fb0dd83 11566#include "confdefs.h"
698dcdb6
VZ
11567#include <$ac_hdr>
11568EOF
11569ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
b3e8d00a 11570{ (eval echo configure:11571: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
11571ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11572if test -z "$ac_err"; then
11573 rm -rf conftest*
11574 eval "ac_cv_header_$ac_safe=yes"
0fb0dd83 11575else
698dcdb6
VZ
11576 echo "$ac_err" >&5
11577 echo "configure: failed program was:" >&5
0fb0dd83 11578 cat conftest.$ac_ext >&5
698dcdb6
VZ
11579 rm -rf conftest*
11580 eval "ac_cv_header_$ac_safe=no"
0fb0dd83 11581fi
698dcdb6 11582rm -f conftest*
0fb0dd83 11583fi
698dcdb6
VZ
11584if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11585 echo "$ac_t""yes" 1>&6
11586 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11587 cat >> confdefs.h <<EOF
11588#define $ac_tr_hdr 1
0fb0dd83 11589EOF
698dcdb6
VZ
11590
11591else
11592 echo "$ac_t""no" 1>&6
0fb0dd83
RR
11593fi
11594done
11595
3a922bb4 11596for ac_hdr in iconv.h
1f8ae82f 11597do
698dcdb6
VZ
11598ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11599echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
b3e8d00a 11600echo "configure:11601: checking for $ac_hdr" >&5
698dcdb6
VZ
11601if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11602 echo $ac_n "(cached) $ac_c" 1>&6
11603else
11604 cat > conftest.$ac_ext <<EOF
b3e8d00a 11605#line 11606 "configure"
1f8ae82f 11606#include "confdefs.h"
698dcdb6
VZ
11607#include <$ac_hdr>
11608EOF
11609ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
b3e8d00a 11610{ (eval echo configure:11611: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
11611ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11612if test -z "$ac_err"; then
11613 rm -rf conftest*
11614 eval "ac_cv_header_$ac_safe=yes"
1f8ae82f 11615else
698dcdb6
VZ
11616 echo "$ac_err" >&5
11617 echo "configure: failed program was:" >&5
1f8ae82f 11618 cat conftest.$ac_ext >&5
698dcdb6
VZ
11619 rm -rf conftest*
11620 eval "ac_cv_header_$ac_safe=no"
1f8ae82f 11621fi
698dcdb6 11622rm -f conftest*
1f8ae82f 11623fi
698dcdb6
VZ
11624if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11625 echo "$ac_t""yes" 1>&6
11626 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11627 cat >> confdefs.h <<EOF
11628#define $ac_tr_hdr 1
1f8ae82f 11629EOF
698dcdb6
VZ
11630
11631else
11632 echo "$ac_t""no" 1>&6
1f8ae82f
GD
11633fi
11634done
11635
3a922bb4 11636for ac_hdr in langinfo.h
10f2d63a 11637do
698dcdb6
VZ
11638ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11639echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
b3e8d00a 11640echo "configure:11641: checking for $ac_hdr" >&5
698dcdb6
VZ
11641if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11642 echo $ac_n "(cached) $ac_c" 1>&6
11643else
11644 cat > conftest.$ac_ext <<EOF
b3e8d00a 11645#line 11646 "configure"
10f2d63a 11646#include "confdefs.h"
698dcdb6
VZ
11647#include <$ac_hdr>
11648EOF
11649ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
b3e8d00a 11650{ (eval echo configure:11651: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
11651ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11652if test -z "$ac_err"; then
11653 rm -rf conftest*
11654 eval "ac_cv_header_$ac_safe=yes"
10f2d63a 11655else
698dcdb6
VZ
11656 echo "$ac_err" >&5
11657 echo "configure: failed program was:" >&5
10f2d63a 11658 cat conftest.$ac_ext >&5
698dcdb6
VZ
11659 rm -rf conftest*
11660 eval "ac_cv_header_$ac_safe=no"
10f2d63a 11661fi
698dcdb6 11662rm -f conftest*
10f2d63a 11663fi
698dcdb6
VZ
11664if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11665 echo "$ac_t""yes" 1>&6
11666 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11667 cat >> confdefs.h <<EOF
11668#define $ac_tr_hdr 1
10f2d63a 11669EOF
698dcdb6
VZ
11670
11671else
11672 echo "$ac_t""no" 1>&6
10f2d63a
VZ
11673fi
11674done
11675
10f2d63a 11676
3a922bb4
RL
11677if test "$wxUSE_GUI" = "yes"; then
11678 if test "$wxUSE_UNIX" = "yes"; then
11679 for ac_hdr in X11/XKBlib.h
29fd3c0c
VS
11680do
11681ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11682echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
b3e8d00a 11683echo "configure:11684: checking for $ac_hdr" >&5
29fd3c0c
VS
11684if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11685 echo $ac_n "(cached) $ac_c" 1>&6
11686else
11687 cat > conftest.$ac_ext <<EOF
b3e8d00a 11688#line 11689 "configure"
29fd3c0c
VS
11689#include "confdefs.h"
11690#include <$ac_hdr>
11691EOF
11692ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
b3e8d00a 11693{ (eval echo configure:11694: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
29fd3c0c
VS
11694ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11695if test -z "$ac_err"; then
11696 rm -rf conftest*
11697 eval "ac_cv_header_$ac_safe=yes"
11698else
11699 echo "$ac_err" >&5
11700 echo "configure: failed program was:" >&5
11701 cat conftest.$ac_ext >&5
11702 rm -rf conftest*
11703 eval "ac_cv_header_$ac_safe=no"
11704fi
11705rm -f conftest*
11706fi
11707if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11708 echo "$ac_t""yes" 1>&6
11709 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11710 cat >> confdefs.h <<EOF
11711#define $ac_tr_hdr 1
11712EOF
11713
11714else
11715 echo "$ac_t""no" 1>&6
11716fi
11717done
11718
3a922bb4 11719 fi
29fd3c0c
VS
11720fi
11721
698dcdb6
VZ
11722
11723echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
b3e8d00a 11724echo "configure:11725: checking for ANSI C header files" >&5
698dcdb6
VZ
11725if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
11726 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 11727else
698dcdb6 11728 cat > conftest.$ac_ext <<EOF
b3e8d00a 11729#line 11730 "configure"
10f2d63a
VZ
11730#include "confdefs.h"
11731#include <stdlib.h>
11732#include <stdarg.h>
11733#include <string.h>
11734#include <float.h>
698dcdb6
VZ
11735EOF
11736ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
b3e8d00a 11737{ (eval echo configure:11738: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
11738ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11739if test -z "$ac_err"; then
11740 rm -rf conftest*
10f2d63a
VZ
11741 ac_cv_header_stdc=yes
11742else
698dcdb6
VZ
11743 echo "$ac_err" >&5
11744 echo "configure: failed program was:" >&5
10f2d63a 11745 cat conftest.$ac_ext >&5
698dcdb6 11746 rm -rf conftest*
10f2d63a
VZ
11747 ac_cv_header_stdc=no
11748fi
698dcdb6 11749rm -f conftest*
10f2d63a
VZ
11750
11751if test $ac_cv_header_stdc = yes; then
11752 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
698dcdb6 11753cat > conftest.$ac_ext <<EOF
b3e8d00a 11754#line 11755 "configure"
10f2d63a
VZ
11755#include "confdefs.h"
11756#include <string.h>
698dcdb6 11757EOF
10f2d63a
VZ
11758if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11759 egrep "memchr" >/dev/null 2>&1; then
11760 :
11761else
698dcdb6 11762 rm -rf conftest*
10f2d63a
VZ
11763 ac_cv_header_stdc=no
11764fi
11765rm -f conftest*
11766
11767fi
11768
11769if test $ac_cv_header_stdc = yes; then
11770 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
698dcdb6 11771cat > conftest.$ac_ext <<EOF
b3e8d00a 11772#line 11773 "configure"
10f2d63a
VZ
11773#include "confdefs.h"
11774#include <stdlib.h>
698dcdb6 11775EOF
10f2d63a
VZ
11776if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11777 egrep "free" >/dev/null 2>&1; then
11778 :
11779else
698dcdb6 11780 rm -rf conftest*
10f2d63a
VZ
11781 ac_cv_header_stdc=no
11782fi
11783rm -f conftest*
11784
11785fi
11786
11787if test $ac_cv_header_stdc = yes; then
11788 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
698dcdb6 11789if test "$cross_compiling" = yes; then
10f2d63a
VZ
11790 :
11791else
698dcdb6 11792 cat > conftest.$ac_ext <<EOF
b3e8d00a 11793#line 11794 "configure"
10f2d63a
VZ
11794#include "confdefs.h"
11795#include <ctype.h>
698dcdb6
VZ
11796#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11797#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1e487827 11798#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
698dcdb6
VZ
11799int main () { int i; for (i = 0; i < 256; i++)
11800if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
11801exit (0); }
11802
11803EOF
b3e8d00a 11804if { (eval echo configure:11805: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6 11805then
10f2d63a
VZ
11806 :
11807else
698dcdb6
VZ
11808 echo "configure: failed program was:" >&5
11809 cat conftest.$ac_ext >&5
11810 rm -fr conftest*
11811 ac_cv_header_stdc=no
10f2d63a 11812fi
698dcdb6 11813rm -fr conftest*
10f2d63a 11814fi
698dcdb6 11815
10f2d63a
VZ
11816fi
11817fi
1e487827 11818
698dcdb6
VZ
11819echo "$ac_t""$ac_cv_header_stdc" 1>&6
11820if test $ac_cv_header_stdc = yes; then
11821 cat >> confdefs.h <<\EOF
10f2d63a
VZ
11822#define STDC_HEADERS 1
11823EOF
11824
11825fi
11826
698dcdb6 11827echo $ac_n "checking for mode_t""... $ac_c" 1>&6
b3e8d00a 11828echo "configure:11829: checking for mode_t" >&5
698dcdb6
VZ
11829if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
11830 echo $ac_n "(cached) $ac_c" 1>&6
1e487827 11831else
698dcdb6 11832 cat > conftest.$ac_ext <<EOF
b3e8d00a 11833#line 11834 "configure"
1e487827 11834#include "confdefs.h"
698dcdb6
VZ
11835#include <sys/types.h>
11836#if STDC_HEADERS
11837#include <stdlib.h>
11838#include <stddef.h>
11839#endif
11840EOF
11841if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11842 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
11843 rm -rf conftest*
10f2d63a
VZ
11844 ac_cv_type_mode_t=yes
11845else
698dcdb6
VZ
11846 rm -rf conftest*
11847 ac_cv_type_mode_t=no
703e0a69 11848fi
698dcdb6 11849rm -f conftest*
1e487827 11850
698dcdb6
VZ
11851fi
11852echo "$ac_t""$ac_cv_type_mode_t" 1>&6
11853if test $ac_cv_type_mode_t = no; then
11854 cat >> confdefs.h <<\EOF
10f2d63a
VZ
11855#define mode_t int
11856EOF
11857
11858fi
11859
698dcdb6 11860echo $ac_n "checking for off_t""... $ac_c" 1>&6
b3e8d00a 11861echo "configure:11862: checking for off_t" >&5
698dcdb6
VZ
11862if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
11863 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 11864else
698dcdb6 11865 cat > conftest.$ac_ext <<EOF
b3e8d00a 11866#line 11867 "configure"
10f2d63a 11867#include "confdefs.h"
698dcdb6
VZ
11868#include <sys/types.h>
11869#if STDC_HEADERS
11870#include <stdlib.h>
11871#include <stddef.h>
11872#endif
11873EOF
11874if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11875 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
11876 rm -rf conftest*
10f2d63a
VZ
11877 ac_cv_type_off_t=yes
11878else
698dcdb6
VZ
11879 rm -rf conftest*
11880 ac_cv_type_off_t=no
703e0a69 11881fi
698dcdb6 11882rm -f conftest*
1e487827 11883
698dcdb6
VZ
11884fi
11885echo "$ac_t""$ac_cv_type_off_t" 1>&6
11886if test $ac_cv_type_off_t = no; then
11887 cat >> confdefs.h <<\EOF
10f2d63a
VZ
11888#define off_t long
11889EOF
11890
11891fi
11892
698dcdb6 11893echo $ac_n "checking for pid_t""... $ac_c" 1>&6
b3e8d00a 11894echo "configure:11895: checking for pid_t" >&5
698dcdb6
VZ
11895if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
11896 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 11897else
698dcdb6 11898 cat > conftest.$ac_ext <<EOF
b3e8d00a 11899#line 11900 "configure"
10f2d63a 11900#include "confdefs.h"
698dcdb6
VZ
11901#include <sys/types.h>
11902#if STDC_HEADERS
11903#include <stdlib.h>
11904#include <stddef.h>
11905#endif
11906EOF
11907if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11908 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
11909 rm -rf conftest*
10f2d63a
VZ
11910 ac_cv_type_pid_t=yes
11911else
698dcdb6
VZ
11912 rm -rf conftest*
11913 ac_cv_type_pid_t=no
703e0a69 11914fi
698dcdb6 11915rm -f conftest*
1e487827 11916
698dcdb6
VZ
11917fi
11918echo "$ac_t""$ac_cv_type_pid_t" 1>&6
11919if test $ac_cv_type_pid_t = no; then
11920 cat >> confdefs.h <<\EOF
10f2d63a
VZ
11921#define pid_t int
11922EOF
11923
11924fi
11925
698dcdb6 11926echo $ac_n "checking for size_t""... $ac_c" 1>&6
b3e8d00a 11927echo "configure:11928: checking for size_t" >&5
698dcdb6
VZ
11928if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
11929 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 11930else
698dcdb6 11931 cat > conftest.$ac_ext <<EOF
b3e8d00a 11932#line 11933 "configure"
10f2d63a 11933#include "confdefs.h"
698dcdb6
VZ
11934#include <sys/types.h>
11935#if STDC_HEADERS
11936#include <stdlib.h>
11937#include <stddef.h>
11938#endif
11939EOF
11940if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11941 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
11942 rm -rf conftest*
10f2d63a
VZ
11943 ac_cv_type_size_t=yes
11944else
698dcdb6
VZ
11945 rm -rf conftest*
11946 ac_cv_type_size_t=no
703e0a69 11947fi
698dcdb6 11948rm -f conftest*
1e487827 11949
698dcdb6
VZ
11950fi
11951echo "$ac_t""$ac_cv_type_size_t" 1>&6
11952if test $ac_cv_type_size_t = no; then
11953 cat >> confdefs.h <<\EOF
10f2d63a
VZ
11954#define size_t unsigned
11955EOF
11956
11957fi
11958
698dcdb6 11959echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
b3e8d00a 11960echo "configure:11961: checking for uid_t in sys/types.h" >&5
698dcdb6
VZ
11961if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
11962 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 11963else
698dcdb6 11964 cat > conftest.$ac_ext <<EOF
b3e8d00a 11965#line 11966 "configure"
10f2d63a
VZ
11966#include "confdefs.h"
11967#include <sys/types.h>
698dcdb6 11968EOF
10f2d63a
VZ
11969if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11970 egrep "uid_t" >/dev/null 2>&1; then
698dcdb6 11971 rm -rf conftest*
10f2d63a
VZ
11972 ac_cv_type_uid_t=yes
11973else
698dcdb6 11974 rm -rf conftest*
10f2d63a
VZ
11975 ac_cv_type_uid_t=no
11976fi
11977rm -f conftest*
11978
11979fi
1e487827 11980
698dcdb6
VZ
11981echo "$ac_t""$ac_cv_type_uid_t" 1>&6
11982if test $ac_cv_type_uid_t = no; then
11983 cat >> confdefs.h <<\EOF
10f2d63a
VZ
11984#define uid_t int
11985EOF
11986
698dcdb6 11987 cat >> confdefs.h <<\EOF
10f2d63a
VZ
11988#define gid_t int
11989EOF
11990
11991fi
11992
1e487827 11993
698dcdb6 11994echo $ac_n "checking for wchar_t""... $ac_c" 1>&6
b3e8d00a 11995echo "configure:11996: checking for wchar_t" >&5
698dcdb6
VZ
11996if eval "test \"`echo '$''{'wx_cv_type_wchar_t'+set}'`\" = set"; then
11997 echo $ac_n "(cached) $ac_c" 1>&6
11998else
11999
12000 cat > conftest.$ac_ext <<EOF
b3e8d00a 12001#line 12002 "configure"
0046ff7c
VS
12002#include "confdefs.h"
12003#include <wchar.h>
698dcdb6 12004int main() {
0046ff7c 12005
d836ee96
VZ
12006 wchar_t wc, *ws;
12007 wc = L'a';
12008 ws = L"Hello, world!";
698dcdb6
VZ
12009
12010; return 0; }
12011EOF
b3e8d00a 12012if { (eval echo configure:12013: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 12013 rm -rf conftest*
1f8ae82f
GD
12014 wx_cv_type_wchar_t=yes
12015else
698dcdb6
VZ
12016 echo "configure: failed program was:" >&5
12017 cat conftest.$ac_ext >&5
12018 rm -rf conftest*
12019 cat > conftest.$ac_ext <<EOF
b3e8d00a 12020#line 12021 "configure"
1f8ae82f
GD
12021#include "confdefs.h"
12022#include <stdlib.h>
698dcdb6 12023int main() {
1f8ae82f 12024
d836ee96
VZ
12025 wchar_t wc, *ws;
12026 wc = L'a';
12027 ws = L"Hello, world!";
698dcdb6
VZ
12028
12029; return 0; }
12030EOF
b3e8d00a 12031if { (eval echo configure:12032: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 12032 rm -rf conftest*
0046ff7c
VS
12033 wx_cv_type_wchar_t=yes
12034else
698dcdb6
VZ
12035 echo "configure: failed program was:" >&5
12036 cat conftest.$ac_ext >&5
12037 rm -rf conftest*
12038 wx_cv_type_wchar_t=no
0046ff7c 12039fi
698dcdb6 12040rm -f conftest*
d836ee96 12041
6232543b 12042fi
698dcdb6 12043rm -f conftest*
703e0a69 12044
1e487827 12045fi
698dcdb6
VZ
12046
12047echo "$ac_t""$wx_cv_type_wchar_t" 1>&6
d836ee96
VZ
12048
12049if test "$wx_cv_type_wchar_t" = "yes"; then
698dcdb6 12050 cat >> confdefs.h <<\EOF
0046ff7c
VS
12051#define wxUSE_WCHAR_T 1
12052EOF
12053
12054fi
12055
19af3b06
VZ
12056
12057ac_ext=C
12058# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12059ac_cpp='$CXXCPP $CPPFLAGS'
12060ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12061ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12062cross_compiling=$ac_cv_prog_cxx_cross
12063
d836ee96 12064echo $ac_n "checking if size_t is unsigned int""... $ac_c" 1>&6
b3e8d00a 12065echo "configure:12066: checking if size_t is unsigned int" >&5
d836ee96
VZ
12066if eval "test \"`echo '$''{'wx_cv_size_t_is_uint'+set}'`\" = set"; then
12067 echo $ac_n "(cached) $ac_c" 1>&6
12068else
dd2c8b7c 12069 cat > conftest.$ac_ext <<EOF
b3e8d00a 12070#line 12071 "configure"
d836ee96
VZ
12071#include "confdefs.h"
12072#include <stddef.h>
12073int main() {
12074
dd2c8b7c
VZ
12075 return 0; }
12076
d836ee96 12077 struct Foo { void foo(size_t); void foo(unsigned int); };
dd2c8b7c
VZ
12078
12079 int bar() {
d836ee96
VZ
12080
12081; return 0; }
12082EOF
b3e8d00a 12083if { (eval echo configure:12084: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d836ee96
VZ
12084 rm -rf conftest*
12085 wx_cv_size_t_is_uint=no
12086else
12087 echo "configure: failed program was:" >&5
12088 cat conftest.$ac_ext >&5
12089 rm -rf conftest*
12090 wx_cv_size_t_is_uint=yes
12091
12092fi
12093rm -f conftest*
12094
12095fi
12096
12097echo "$ac_t""$wx_cv_size_t_is_uint" 1>&6
12098
12099if test "$wx_cv_size_t_is_uint" = "yes"; then
12100 cat >> confdefs.h <<\EOF
12101#define wxSIZE_T_IS_UINT 1
12102EOF
12103
12104else
12105 echo $ac_n "checking if size_t is unsigned long""... $ac_c" 1>&6
b3e8d00a 12106echo "configure:12107: checking if size_t is unsigned long" >&5
d836ee96
VZ
12107if eval "test \"`echo '$''{'wx_cv_size_t_is_ulong'+set}'`\" = set"; then
12108 echo $ac_n "(cached) $ac_c" 1>&6
12109else
12110 cat > conftest.$ac_ext <<EOF
b3e8d00a 12111#line 12112 "configure"
d836ee96
VZ
12112#include "confdefs.h"
12113#include <stddef.h>
12114int main() {
12115
dd2c8b7c
VZ
12116 return 0; }
12117
d836ee96 12118 struct Foo { void foo(size_t); void foo(unsigned long); };
dd2c8b7c
VZ
12119
12120 int bar() {
d836ee96
VZ
12121
12122; return 0; }
12123EOF
b3e8d00a 12124if { (eval echo configure:12125: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d836ee96
VZ
12125 rm -rf conftest*
12126 wx_cv_size_t_is_ulong=no
12127else
12128 echo "configure: failed program was:" >&5
12129 cat conftest.$ac_ext >&5
12130 rm -rf conftest*
12131 wx_cv_size_t_is_ulong=yes
12132
12133fi
12134rm -f conftest*
12135
12136fi
12137
12138echo "$ac_t""$wx_cv_size_t_is_ulong" 1>&6
12139
12140 if test "$wx_cv_size_t_is_ulong" = "yes"; then
12141 cat >> confdefs.h <<\EOF
12142#define wxSIZE_T_IS_ULONG 1
12143EOF
12144
12145 fi
12146fi
12147
19af3b06
VZ
12148ac_ext=c
12149# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12150ac_cpp='$CPP $CPPFLAGS'
12151ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12152ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12153cross_compiling=$ac_cv_prog_cc_cross
12154
12155
1e487827 12156
698dcdb6 12157echo $ac_n "checking for pw_gecos in struct passwd""... $ac_c" 1>&6
b3e8d00a 12158echo "configure:12159: checking for pw_gecos in struct passwd" >&5
698dcdb6
VZ
12159if eval "test \"`echo '$''{'wx_cv_struct_pw_gecos'+set}'`\" = set"; then
12160 echo $ac_n "(cached) $ac_c" 1>&6
12161else
12162
12163 cat > conftest.$ac_ext <<EOF
b3e8d00a 12164#line 12165 "configure"
b12915c1
VZ
12165#include "confdefs.h"
12166#include <pwd.h>
698dcdb6 12167int main() {
b12915c1
VZ
12168
12169 char *p;
12170 struct passwd *pw;
12171 p = pw->pw_gecos;
698dcdb6
VZ
12172
12173; return 0; }
12174EOF
b3e8d00a 12175if { (eval echo configure:12176: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
12176 rm -rf conftest*
12177
b12915c1 12178 wx_cv_struct_pw_gecos=yes
698dcdb6 12179
b12915c1 12180else
698dcdb6
VZ
12181 echo "configure: failed program was:" >&5
12182 cat conftest.$ac_ext >&5
12183 rm -rf conftest*
12184
b12915c1 12185 wx_cv_struct_pw_gecos=no
698dcdb6
VZ
12186
12187
6232543b 12188fi
698dcdb6
VZ
12189rm -f conftest*
12190
703e0a69 12191
1e487827 12192fi
698dcdb6
VZ
12193
12194echo "$ac_t""$wx_cv_struct_pw_gecos" 1>&6
b12915c1 12195
bd3277fe 12196if test "$wx_cv_struct_pw_gecos" = "yes"; then
698dcdb6 12197 cat >> confdefs.h <<\EOF
bd3277fe
VZ
12198#define HAVE_PW_GECOS 1
12199EOF
12200
12201fi
12202
698dcdb6
VZ
12203
12204echo $ac_n "checking for working const""... $ac_c" 1>&6
b3e8d00a 12205echo "configure:12206: checking for working const" >&5
698dcdb6
VZ
12206if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
12207 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 12208else
698dcdb6 12209 cat > conftest.$ac_ext <<EOF
b3e8d00a 12210#line 12211 "configure"
10f2d63a 12211#include "confdefs.h"
698dcdb6
VZ
12212
12213int main() {
12214
12215/* Ultrix mips cc rejects this. */
12216typedef int charset[2]; const charset x;
12217/* SunOS 4.1.1 cc rejects this. */
12218char const *const *ccp;
12219char **p;
12220/* NEC SVR4.0.2 mips cc rejects this. */
12221struct point {int x, y;};
12222static struct point const zero = {0,0};
12223/* AIX XL C 1.02.0.0 rejects this.
12224 It does not let you subtract one const X* pointer from another in an arm
12225 of an if-expression whose if-part is not a constant expression */
12226const char *g = "string";
12227ccp = &g + (g ? g-g : 0);
12228/* HPUX 7.0 cc rejects these. */
12229++ccp;
12230p = (char**) ccp;
12231ccp = (char const *const *) p;
12232{ /* SCO 3.2v4 cc rejects this. */
12233 char *t;
12234 char const *s = 0 ? (char *) 0 : (char const *) 0;
12235
12236 *t++ = 0;
10f2d63a 12237}
698dcdb6
VZ
12238{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
12239 int x[] = {25, 17};
12240 const int *foo = &x[0];
12241 ++foo;
703e0a69 12242}
698dcdb6
VZ
12243{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12244 typedef const int *iptr;
12245 iptr p = 0;
12246 ++p;
6232543b 12247}
698dcdb6
VZ
12248{ /* AIX XL C 1.02.0.0 rejects this saying
12249 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12250 struct s { int j; const int *ap[3]; };
12251 struct s *b; b->j = 5;
1e487827 12252}
698dcdb6
VZ
12253{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12254 const int foo = 10;
12255}
12256
12257; return 0; }
12258EOF
b3e8d00a 12259if { (eval echo configure:12260: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 12260 rm -rf conftest*
10f2d63a
VZ
12261 ac_cv_c_const=yes
12262else
698dcdb6
VZ
12263 echo "configure: failed program was:" >&5
12264 cat conftest.$ac_ext >&5
12265 rm -rf conftest*
12266 ac_cv_c_const=no
10f2d63a 12267fi
698dcdb6 12268rm -f conftest*
10f2d63a 12269fi
1e487827 12270
698dcdb6
VZ
12271echo "$ac_t""$ac_cv_c_const" 1>&6
12272if test $ac_cv_c_const = no; then
12273 cat >> confdefs.h <<\EOF
12274#define const
10f2d63a
VZ
12275EOF
12276
12277fi
12278
698dcdb6 12279echo $ac_n "checking for inline""... $ac_c" 1>&6
b3e8d00a 12280echo "configure:12281: checking for inline" >&5
698dcdb6
VZ
12281if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
12282 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
12283else
12284 ac_cv_c_inline=no
12285for ac_kw in inline __inline__ __inline; do
698dcdb6 12286 cat > conftest.$ac_ext <<EOF
b3e8d00a 12287#line 12288 "configure"
10f2d63a
VZ
12288#include "confdefs.h"
12289
698dcdb6
VZ
12290int main() {
12291} $ac_kw foo() {
12292; return 0; }
12293EOF
b3e8d00a 12294if { (eval echo configure:12295: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 12295 rm -rf conftest*
10f2d63a
VZ
12296 ac_cv_c_inline=$ac_kw; break
12297else
698dcdb6
VZ
12298 echo "configure: failed program was:" >&5
12299 cat conftest.$ac_ext >&5
10f2d63a 12300fi
698dcdb6 12301rm -f conftest*
10f2d63a
VZ
12302done
12303
12304fi
698dcdb6
VZ
12305
12306echo "$ac_t""$ac_cv_c_inline" 1>&6
12307case "$ac_cv_c_inline" in
10f2d63a 12308 inline | yes) ;;
698dcdb6
VZ
12309 no) cat >> confdefs.h <<\EOF
12310#define inline
10f2d63a
VZ
12311EOF
12312 ;;
698dcdb6 12313 *) cat >> confdefs.h <<EOF
10f2d63a
VZ
12314#define inline $ac_cv_c_inline
12315EOF
12316 ;;
12317esac
12318
698dcdb6
VZ
12319
12320echo $ac_n "checking size of char""... $ac_c" 1>&6
b3e8d00a 12321echo "configure:12322: checking size of char" >&5
698dcdb6
VZ
12322if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
12323 echo $ac_n "(cached) $ac_c" 1>&6
6232543b 12324else
1e487827 12325 if test "$cross_compiling" = yes; then
698dcdb6 12326 ac_cv_sizeof_char=1
1e487827 12327else
698dcdb6 12328 cat > conftest.$ac_ext <<EOF
b3e8d00a 12329#line 12330 "configure"
1e487827 12330#include "confdefs.h"
698dcdb6
VZ
12331#include <stdio.h>
12332main()
1e487827 12333{
698dcdb6
VZ
12334 FILE *f=fopen("conftestval", "w");
12335 if (!f) exit(1);
12336 fprintf(f, "%d\n", sizeof(char));
12337 exit(0);
1e487827 12338}
698dcdb6 12339EOF
b3e8d00a 12340if { (eval echo configure:12341: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6
VZ
12341then
12342 ac_cv_sizeof_char=`cat conftestval`
1e487827 12343else
698dcdb6
VZ
12344 echo "configure: failed program was:" >&5
12345 cat conftest.$ac_ext >&5
12346 rm -fr conftest*
1e487827
VS
12347 ac_cv_sizeof_char=0
12348fi
698dcdb6 12349rm -fr conftest*
1e487827 12350fi
10f2d63a 12351
1e487827 12352fi
698dcdb6
VZ
12353echo "$ac_t""$ac_cv_sizeof_char" 1>&6
12354cat >> confdefs.h <<EOF
12355#define SIZEOF_CHAR $ac_cv_sizeof_char
1e487827 12356EOF
6232543b 12357
703e0a69 12358
698dcdb6 12359echo $ac_n "checking size of short""... $ac_c" 1>&6
b3e8d00a 12360echo "configure:12361: checking size of short" >&5
698dcdb6
VZ
12361if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
12362 echo $ac_n "(cached) $ac_c" 1>&6
1e487827 12363else
1e487827 12364 if test "$cross_compiling" = yes; then
698dcdb6 12365 ac_cv_sizeof_short=2
1e487827 12366else
698dcdb6 12367 cat > conftest.$ac_ext <<EOF
b3e8d00a 12368#line 12369 "configure"
1e487827 12369#include "confdefs.h"
698dcdb6
VZ
12370#include <stdio.h>
12371main()
1e487827 12372{
698dcdb6
VZ
12373 FILE *f=fopen("conftestval", "w");
12374 if (!f) exit(1);
12375 fprintf(f, "%d\n", sizeof(short));
12376 exit(0);
1e487827 12377}
698dcdb6 12378EOF
b3e8d00a 12379if { (eval echo configure:12380: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6
VZ
12380then
12381 ac_cv_sizeof_short=`cat conftestval`
1e487827 12382else
698dcdb6
VZ
12383 echo "configure: failed program was:" >&5
12384 cat conftest.$ac_ext >&5
12385 rm -fr conftest*
12386 ac_cv_sizeof_short=0
1e487827 12387fi
698dcdb6 12388rm -fr conftest*
1e487827 12389fi
698dcdb6 12390
1e487827 12391fi
698dcdb6
VZ
12392echo "$ac_t""$ac_cv_sizeof_short" 1>&6
12393cat >> confdefs.h <<EOF
12394#define SIZEOF_SHORT $ac_cv_sizeof_short
12395EOF
12396
12397
12398echo $ac_n "checking size of int *""... $ac_c" 1>&6
b3e8d00a 12399echo "configure:12400: checking size of int *" >&5
698dcdb6
VZ
12400if eval "test \"`echo '$''{'ac_cv_sizeof_int_p'+set}'`\" = set"; then
12401 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
12402else
12403 if test "$cross_compiling" = yes; then
698dcdb6 12404 ac_cv_sizeof_int_p=4
10f2d63a 12405else
698dcdb6 12406 cat > conftest.$ac_ext <<EOF
b3e8d00a 12407#line 12408 "configure"
10f2d63a 12408#include "confdefs.h"
698dcdb6
VZ
12409#include <stdio.h>
12410main()
10f2d63a 12411{
698dcdb6
VZ
12412 FILE *f=fopen("conftestval", "w");
12413 if (!f) exit(1);
12414 fprintf(f, "%d\n", sizeof(int *));
12415 exit(0);
10f2d63a 12416}
698dcdb6 12417EOF
b3e8d00a 12418if { (eval echo configure:12419: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6
VZ
12419then
12420 ac_cv_sizeof_int_p=`cat conftestval`
10f2d63a 12421else
698dcdb6
VZ
12422 echo "configure: failed program was:" >&5
12423 cat conftest.$ac_ext >&5
12424 rm -fr conftest*
12425 ac_cv_sizeof_int_p=0
6232543b 12426fi
698dcdb6 12427rm -fr conftest*
1e487827 12428fi
698dcdb6 12429
1e487827 12430fi
698dcdb6
VZ
12431echo "$ac_t""$ac_cv_sizeof_int_p" 1>&6
12432cat >> confdefs.h <<EOF
12433#define SIZEOF_INT_P $ac_cv_sizeof_int_p
10f2d63a
VZ
12434EOF
12435
698dcdb6
VZ
12436
12437echo $ac_n "checking size of int""... $ac_c" 1>&6
b3e8d00a 12438echo "configure:12439: checking size of int" >&5
698dcdb6
VZ
12439if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
12440 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
12441else
12442 if test "$cross_compiling" = yes; then
698dcdb6 12443 ac_cv_sizeof_int=4
703e0a69 12444else
698dcdb6 12445 cat > conftest.$ac_ext <<EOF
b3e8d00a 12446#line 12447 "configure"
1e487827 12447#include "confdefs.h"
698dcdb6
VZ
12448#include <stdio.h>
12449main()
1e487827 12450{
698dcdb6
VZ
12451 FILE *f=fopen("conftestval", "w");
12452 if (!f) exit(1);
12453 fprintf(f, "%d\n", sizeof(int));
12454 exit(0);
1e487827 12455}
698dcdb6 12456EOF
b3e8d00a 12457if { (eval echo configure:12458: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6
VZ
12458then
12459 ac_cv_sizeof_int=`cat conftestval`
12460else
12461 echo "configure: failed program was:" >&5
12462 cat conftest.$ac_ext >&5
12463 rm -fr conftest*
12464 ac_cv_sizeof_int=0
703e0a69 12465fi
698dcdb6
VZ
12466rm -fr conftest*
12467fi
12468
12469fi
12470echo "$ac_t""$ac_cv_sizeof_int" 1>&6
12471cat >> confdefs.h <<EOF
12472#define SIZEOF_INT $ac_cv_sizeof_int
12473EOF
12474
12475
12476echo $ac_n "checking size of long""... $ac_c" 1>&6
b3e8d00a 12477echo "configure:12478: checking size of long" >&5
698dcdb6
VZ
12478if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
12479 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
12480else
12481 if test "$cross_compiling" = yes; then
698dcdb6 12482 ac_cv_sizeof_long=4
10f2d63a 12483else
698dcdb6 12484 cat > conftest.$ac_ext <<EOF
b3e8d00a 12485#line 12486 "configure"
10f2d63a 12486#include "confdefs.h"
698dcdb6
VZ
12487#include <stdio.h>
12488main()
10f2d63a 12489{
698dcdb6
VZ
12490 FILE *f=fopen("conftestval", "w");
12491 if (!f) exit(1);
12492 fprintf(f, "%d\n", sizeof(long));
12493 exit(0);
10f2d63a 12494}
698dcdb6 12495EOF
b3e8d00a 12496if { (eval echo configure:12497: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6
VZ
12497then
12498 ac_cv_sizeof_long=`cat conftestval`
10f2d63a 12499else
698dcdb6
VZ
12500 echo "configure: failed program was:" >&5
12501 cat conftest.$ac_ext >&5
12502 rm -fr conftest*
12503 ac_cv_sizeof_long=0
10f2d63a 12504fi
698dcdb6 12505rm -fr conftest*
10f2d63a 12506fi
698dcdb6 12507
10f2d63a 12508fi
698dcdb6
VZ
12509echo "$ac_t""$ac_cv_sizeof_long" 1>&6
12510cat >> confdefs.h <<EOF
12511#define SIZEOF_LONG $ac_cv_sizeof_long
12512EOF
12513
12514
12515echo $ac_n "checking size of long long""... $ac_c" 1>&6
b3e8d00a 12516echo "configure:12517: checking size of long long" >&5
698dcdb6
VZ
12517if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
12518 echo $ac_n "(cached) $ac_c" 1>&6
12519else
12520 if test "$cross_compiling" = yes; then
12521 ac_cv_sizeof_long_long=0
12522else
12523 cat > conftest.$ac_ext <<EOF
b3e8d00a 12524#line 12525 "configure"
698dcdb6
VZ
12525#include "confdefs.h"
12526#include <stdio.h>
12527main()
12528{
12529 FILE *f=fopen("conftestval", "w");
12530 if (!f) exit(1);
12531 fprintf(f, "%d\n", sizeof(long long));
12532 exit(0);
12533}
12534EOF
b3e8d00a 12535if { (eval echo configure:12536: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6
VZ
12536then
12537 ac_cv_sizeof_long_long=`cat conftestval`
6232543b 12538else
698dcdb6
VZ
12539 echo "configure: failed program was:" >&5
12540 cat conftest.$ac_ext >&5
12541 rm -fr conftest*
6232543b
VS
12542 ac_cv_sizeof_long_long=0
12543fi
698dcdb6
VZ
12544rm -fr conftest*
12545fi
12546
703e0a69 12547fi
698dcdb6
VZ
12548echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
12549cat >> confdefs.h <<EOF
10f2d63a
VZ
12550#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
12551EOF
12552
1e487827 12553
698dcdb6
VZ
12554
12555echo $ac_n "checking size of wchar_t""... $ac_c" 1>&6
b3e8d00a 12556echo "configure:12557: checking size of wchar_t" >&5
698dcdb6
VZ
12557if eval "test \"`echo '$''{'wx_cv_sizeof_wchar_t'+set}'`\" = set"; then
12558 echo $ac_n "(cached) $ac_c" 1>&6
12559else
12560
b93d0d08
VS
12561 if test "$cross_compiling" = yes; then
12562 wx_cv_sizeof_wchar_t=4
1e6feb95 12563
b93d0d08 12564else
698dcdb6 12565 cat > conftest.$ac_ext <<EOF
b3e8d00a 12566#line 12567 "configure"
b93d0d08
VS
12567#include "confdefs.h"
12568
1e6feb95
VZ
12569 #ifdef HAVE_WCHAR_H
12570 # include <wchar.h>
12571 #endif
12572 #ifdef HAVE_STDLIB_H
12573 # include <stdlib.h>
12574 #endif
12575 #include <stdio.h>
12576 int main()
12577 {
12578 FILE *f=fopen("conftestval", "w");
12579 if (!f) exit(1);
12580 fprintf(f, "%i", sizeof(wchar_t));
12581 exit(0);
12582 }
698dcdb6
VZ
12583
12584EOF
b3e8d00a 12585if { (eval echo configure:12586: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6 12586then
b93d0d08
VS
12587 wx_cv_sizeof_wchar_t=`cat conftestval`
12588else
698dcdb6
VZ
12589 echo "configure: failed program was:" >&5
12590 cat conftest.$ac_ext >&5
12591 rm -fr conftest*
12592 wx_cv_sizeof_wchar_t=0
b93d0d08 12593fi
698dcdb6 12594rm -fr conftest*
b93d0d08
VS
12595fi
12596
698dcdb6 12597
b93d0d08
VS
12598fi
12599
698dcdb6
VZ
12600echo "$ac_t""$wx_cv_sizeof_wchar_t" 1>&6
12601
12602cat >> confdefs.h <<EOF
28c6addc 12603#define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t
b93d0d08
VS
12604EOF
12605
698dcdb6 12606
698dcdb6 12607echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
b3e8d00a 12608echo "configure:12609: checking whether byte ordering is bigendian" >&5
698dcdb6
VZ
12609if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
12610 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
12611else
12612 ac_cv_c_bigendian=unknown
12613# See if sys/param.h defines the BYTE_ORDER macro.
698dcdb6 12614cat > conftest.$ac_ext <<EOF
b3e8d00a 12615#line 12616 "configure"
10f2d63a
VZ
12616#include "confdefs.h"
12617#include <sys/types.h>
12618#include <sys/param.h>
698dcdb6 12619int main() {
10f2d63a
VZ
12620
12621#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
12622 bogus endian macros
12623#endif
698dcdb6
VZ
12624; return 0; }
12625EOF
b3e8d00a 12626if { (eval echo configure:12627: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 12627 rm -rf conftest*
10f2d63a 12628 # It does; now see whether it defined to BIG_ENDIAN or not.
698dcdb6 12629cat > conftest.$ac_ext <<EOF
b3e8d00a 12630#line 12631 "configure"
10f2d63a
VZ
12631#include "confdefs.h"
12632#include <sys/types.h>
12633#include <sys/param.h>
698dcdb6 12634int main() {
10f2d63a
VZ
12635
12636#if BYTE_ORDER != BIG_ENDIAN
12637 not big endian
12638#endif
698dcdb6
VZ
12639; return 0; }
12640EOF
b3e8d00a 12641if { (eval echo configure:12642: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 12642 rm -rf conftest*
10f2d63a
VZ
12643 ac_cv_c_bigendian=yes
12644else
698dcdb6
VZ
12645 echo "configure: failed program was:" >&5
12646 cat conftest.$ac_ext >&5
12647 rm -rf conftest*
12648 ac_cv_c_bigendian=no
10f2d63a 12649fi
698dcdb6 12650rm -f conftest*
10f2d63a 12651else
698dcdb6
VZ
12652 echo "configure: failed program was:" >&5
12653 cat conftest.$ac_ext >&5
10f2d63a 12654fi
698dcdb6 12655rm -f conftest*
10f2d63a
VZ
12656if test $ac_cv_c_bigendian = unknown; then
12657if test "$cross_compiling" = yes; then
12658 ac_cv_c_bigendian=unknown
12659else
698dcdb6 12660 cat > conftest.$ac_ext <<EOF
b3e8d00a 12661#line 12662 "configure"
10f2d63a
VZ
12662#include "confdefs.h"
12663main () {
12664 /* Are we little or big endian? From Harbison&Steele. */
12665 union
12666 {
12667 long l;
12668 char c[sizeof (long)];
12669 } u;
12670 u.l = 1;
12671 exit (u.c[sizeof (long) - 1] == 1);
12672}
698dcdb6 12673EOF
b3e8d00a 12674if { (eval echo configure:12675: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6 12675then
10f2d63a
VZ
12676 ac_cv_c_bigendian=no
12677else
698dcdb6
VZ
12678 echo "configure: failed program was:" >&5
12679 cat conftest.$ac_ext >&5
12680 rm -fr conftest*
12681 ac_cv_c_bigendian=yes
10f2d63a 12682fi
698dcdb6 12683rm -fr conftest*
10f2d63a 12684fi
698dcdb6 12685
10f2d63a
VZ
12686fi
12687fi
698dcdb6
VZ
12688
12689echo "$ac_t""$ac_cv_c_bigendian" 1>&6
10f2d63a 12690if test $ac_cv_c_bigendian = unknown; then
698dcdb6 12691 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
12692fi
12693if test $ac_cv_c_bigendian = yes; then
698dcdb6 12694 cat >> confdefs.h <<\EOF
10f2d63a
VZ
12695#define WORDS_BIGENDIAN 1
12696EOF
12697
12698fi
12699
698dcdb6 12700
3a922bb4 12701echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
b3e8d00a 12702echo "configure:12703: checking how to run the C++ preprocessor" >&5
3a922bb4
RL
12703if test -z "$CXXCPP"; then
12704if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
12705 echo $ac_n "(cached) $ac_c" 1>&6
12706else
12707 ac_ext=C
12708# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12709ac_cpp='$CXXCPP $CPPFLAGS'
12710ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12711ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12712cross_compiling=$ac_cv_prog_cxx_cross
12713 CXXCPP="${CXX-g++} -E"
12714 cat > conftest.$ac_ext <<EOF
b3e8d00a 12715#line 12716 "configure"
3a922bb4
RL
12716#include "confdefs.h"
12717#include <stdlib.h>
12718EOF
12719ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
b3e8d00a 12720{ (eval echo configure:12721: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3a922bb4
RL
12721ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12722if test -z "$ac_err"; then
12723 :
12724else
12725 echo "$ac_err" >&5
12726 echo "configure: failed program was:" >&5
12727 cat conftest.$ac_ext >&5
12728 rm -rf conftest*
12729 CXXCPP=/lib/cpp
12730fi
12731rm -f conftest*
12732 ac_cv_prog_CXXCPP="$CXXCPP"
12733ac_ext=C
12734# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12735ac_cpp='$CXXCPP $CPPFLAGS'
12736ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12737ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12738cross_compiling=$ac_cv_prog_cxx_cross
12739fi
12740fi
12741CXXCPP="$ac_cv_prog_CXXCPP"
12742echo "$ac_t""$CXXCPP" 1>&6
12743
698dcdb6 12744
10f2d63a 12745 if test "$cross_compiling" = "yes"; then
698dcdb6 12746 cat >> confdefs.h <<\EOF
10f2d63a
VZ
12747#define wxUSE_IOSTREAMH 1
12748EOF
12749
12750 else
698dcdb6
VZ
12751
12752 ac_ext=C
12753# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1e487827 12754ac_cpp='$CXXCPP $CPPFLAGS'
698dcdb6
VZ
12755ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12756ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12757cross_compiling=$ac_cv_prog_cxx_cross
12758
703e0a69 12759
698dcdb6 12760 for ac_hdr in iostream
10f2d63a 12761do
698dcdb6
VZ
12762ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12763echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
b3e8d00a 12764echo "configure:12765: checking for $ac_hdr" >&5
698dcdb6
VZ
12765if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12766 echo $ac_n "(cached) $ac_c" 1>&6
12767else
12768 cat > conftest.$ac_ext <<EOF
b3e8d00a 12769#line 12770 "configure"
10f2d63a 12770#include "confdefs.h"
698dcdb6
VZ
12771#include <$ac_hdr>
12772EOF
12773ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
b3e8d00a 12774{ (eval echo configure:12775: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
12775ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12776if test -z "$ac_err"; then
12777 rm -rf conftest*
12778 eval "ac_cv_header_$ac_safe=yes"
10f2d63a 12779else
698dcdb6
VZ
12780 echo "$ac_err" >&5
12781 echo "configure: failed program was:" >&5
10f2d63a 12782 cat conftest.$ac_ext >&5
698dcdb6
VZ
12783 rm -rf conftest*
12784 eval "ac_cv_header_$ac_safe=no"
10f2d63a 12785fi
698dcdb6 12786rm -f conftest*
10f2d63a 12787fi
698dcdb6
VZ
12788if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12789 echo "$ac_t""yes" 1>&6
12790 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12791 cat >> confdefs.h <<EOF
12792#define $ac_tr_hdr 1
10f2d63a 12793EOF
698dcdb6
VZ
12794
12795else
12796 echo "$ac_t""no" 1>&6
10f2d63a
VZ
12797fi
12798done
12799
698dcdb6 12800
57fe5ed0
VZ
12801 if test "$ac_cv_header_iostream" = "yes" ; then
12802 :
12803 else
698dcdb6 12804 cat >> confdefs.h <<\EOF
10f2d63a
VZ
12805#define wxUSE_IOSTREAMH 1
12806EOF
12807
10f2d63a
VZ
12808 fi
12809
12810 ac_ext=c
698dcdb6 12811# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10f2d63a 12812ac_cpp='$CPP $CPPFLAGS'
698dcdb6
VZ
12813ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12814ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12815cross_compiling=$ac_cv_prog_cc_cross
10f2d63a
VZ
12816
12817 fi
12818
703e0a69 12819
698dcdb6
VZ
12820
12821 echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6
b3e8d00a 12822echo "configure:12823: checking if C++ compiler supports bool" >&5
698dcdb6
VZ
12823if eval "test \"`echo '$''{'wx_cv_cpp_bool'+set}'`\" = set"; then
12824 echo $ac_n "(cached) $ac_c" 1>&6
12825else
12826
12827
12828 ac_ext=C
12829# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1e487827 12830ac_cpp='$CXXCPP $CPPFLAGS'
698dcdb6
VZ
12831ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12832ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12833cross_compiling=$ac_cv_prog_cxx_cross
10f2d63a 12834
698dcdb6
VZ
12835
12836 cat > conftest.$ac_ext <<EOF
b3e8d00a 12837#line 12838 "configure"
10f2d63a
VZ
12838#include "confdefs.h"
12839
698dcdb6
VZ
12840
12841int main() {
10f2d63a
VZ
12842
12843 bool b = true;
12844
12845 return 0;
698dcdb6
VZ
12846
12847; return 0; }
12848EOF
b3e8d00a 12849if { (eval echo configure:12850: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
12850 rm -rf conftest*
12851
10f2d63a 12852 wx_cv_cpp_bool=yes
698dcdb6 12853
10f2d63a 12854else
698dcdb6
VZ
12855 echo "configure: failed program was:" >&5
12856 cat conftest.$ac_ext >&5
12857 rm -rf conftest*
12858
10f2d63a 12859 wx_cv_cpp_bool=no
698dcdb6
VZ
12860
12861
10f2d63a 12862fi
698dcdb6 12863rm -f conftest*
10f2d63a
VZ
12864
12865 ac_ext=c
698dcdb6 12866# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10f2d63a 12867ac_cpp='$CPP $CPPFLAGS'
698dcdb6
VZ
12868ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12869ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12870cross_compiling=$ac_cv_prog_cc_cross
10f2d63a 12871
698dcdb6 12872
10f2d63a 12873fi
698dcdb6
VZ
12874
12875echo "$ac_t""$wx_cv_cpp_bool" 1>&6
10f2d63a
VZ
12876
12877 if test "$wx_cv_cpp_bool" = "yes"; then
698dcdb6 12878 cat >> confdefs.h <<\EOF
10f2d63a
VZ
12879#define HAVE_BOOL 1
12880EOF
12881
12882 fi
12883
1e487827 12884
698dcdb6 12885
698dcdb6 12886echo $ac_n "checking for wcslen in -lc""... $ac_c" 1>&6
b3e8d00a 12887echo "configure:12888: checking for wcslen in -lc" >&5
698dcdb6
VZ
12888ac_lib_var=`echo c'_'wcslen | sed 'y%./+-%__p_%'`
12889if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12890 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 12891else
698dcdb6 12892 ac_save_LIBS="$LIBS"
10f2d63a 12893LIBS="-lc $LIBS"
698dcdb6 12894cat > conftest.$ac_ext <<EOF
b3e8d00a 12895#line 12896 "configure"
10f2d63a
VZ
12896#include "confdefs.h"
12897/* Override any gcc2 internal prototype to avoid an error. */
12898/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
12899 builtin and then its argument prototype would still apply. */
12900char wcslen();
12901
12902int main() {
12903wcslen()
12904; return 0; }
12905EOF
b3e8d00a 12906if { (eval echo configure:12907: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
12907 rm -rf conftest*
12908 eval "ac_cv_lib_$ac_lib_var=yes"
12909else
12910 echo "configure: failed program was:" >&5
12911 cat conftest.$ac_ext >&5
12912 rm -rf conftest*
12913 eval "ac_cv_lib_$ac_lib_var=no"
12914fi
12915rm -f conftest*
12916LIBS="$ac_save_LIBS"
12917
12918fi
12919if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12920 echo "$ac_t""yes" 1>&6
12921
12922 cat >> confdefs.h <<\EOF
10f2d63a
VZ
12923#define HAVE_WCSLEN 1
12924EOF
12925
12926 WCHAR_LINK=""
698dcdb6 12927
10f2d63a 12928else
698dcdb6 12929 echo "$ac_t""no" 1>&6
10f2d63a 12930
698dcdb6 12931 echo $ac_n "checking for wcslen in -lw""... $ac_c" 1>&6
b3e8d00a 12932echo "configure:12933: checking for wcslen in -lw" >&5
698dcdb6
VZ
12933ac_lib_var=`echo w'_'wcslen | sed 'y%./+-%__p_%'`
12934if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12935 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 12936else
698dcdb6 12937 ac_save_LIBS="$LIBS"
10f2d63a 12938LIBS="-lw $LIBS"
698dcdb6 12939cat > conftest.$ac_ext <<EOF
b3e8d00a 12940#line 12941 "configure"
10f2d63a
VZ
12941#include "confdefs.h"
12942/* Override any gcc2 internal prototype to avoid an error. */
12943/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
12944 builtin and then its argument prototype would still apply. */
12945char wcslen();
12946
12947int main() {
12948wcslen()
12949; return 0; }
12950EOF
b3e8d00a 12951if { (eval echo configure:12952: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
12952 rm -rf conftest*
12953 eval "ac_cv_lib_$ac_lib_var=yes"
12954else
12955 echo "configure: failed program was:" >&5
12956 cat conftest.$ac_ext >&5
12957 rm -rf conftest*
12958 eval "ac_cv_lib_$ac_lib_var=no"
12959fi
12960rm -f conftest*
12961LIBS="$ac_save_LIBS"
12962
12963fi
12964if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12965 echo "$ac_t""yes" 1>&6
12966
12967 cat >> confdefs.h <<\EOF
10f2d63a
VZ
12968#define HAVE_WCSLEN 1
12969EOF
12970
12971 WCHAR_LINK="-lw"
698dcdb6 12972
18dbb1f6
VZ
12973else
12974 echo "$ac_t""no" 1>&6
12975
12976 echo $ac_n "checking for wcslen in -lmsvcrt""... $ac_c" 1>&6
b3e8d00a 12977echo "configure:12978: checking for wcslen in -lmsvcrt" >&5
18dbb1f6
VZ
12978ac_lib_var=`echo msvcrt'_'wcslen | sed 'y%./+-%__p_%'`
12979if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12980 echo $ac_n "(cached) $ac_c" 1>&6
12981else
12982 ac_save_LIBS="$LIBS"
12983LIBS="-lmsvcrt $LIBS"
12984cat > conftest.$ac_ext <<EOF
b3e8d00a 12985#line 12986 "configure"
18dbb1f6
VZ
12986#include "confdefs.h"
12987/* Override any gcc2 internal prototype to avoid an error. */
12988/* We use char because int might match the return type of a gcc2
12989 builtin and then its argument prototype would still apply. */
12990char wcslen();
12991
12992int main() {
12993wcslen()
12994; return 0; }
12995EOF
b3e8d00a 12996if { (eval echo configure:12997: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18dbb1f6
VZ
12997 rm -rf conftest*
12998 eval "ac_cv_lib_$ac_lib_var=yes"
12999else
13000 echo "configure: failed program was:" >&5
13001 cat conftest.$ac_ext >&5
13002 rm -rf conftest*
13003 eval "ac_cv_lib_$ac_lib_var=no"
13004fi
13005rm -f conftest*
13006LIBS="$ac_save_LIBS"
13007
13008fi
13009if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13010 echo "$ac_t""yes" 1>&6
13011
13012 cat >> confdefs.h <<\EOF
13013#define HAVE_WCSLEN 1
13014EOF
13015
13016 WCHAR_LINK=""
13017
698dcdb6
VZ
13018else
13019 echo "$ac_t""no" 1>&6
6232543b 13020fi
10f2d63a 13021
18dbb1f6
VZ
13022
13023fi
13024
698dcdb6 13025
1e487827 13026fi
703e0a69 13027
698dcdb6 13028
b3e8d00a
VZ
13029for ac_func in wcsrtombs
13030do
13031echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13032echo "configure:13033: checking for $ac_func" >&5
13033if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13034 echo $ac_n "(cached) $ac_c" 1>&6
13035else
13036 cat > conftest.$ac_ext <<EOF
13037#line 13038 "configure"
13038#include "confdefs.h"
13039/* System header to define __stub macros and hopefully few prototypes,
13040 which can conflict with char $ac_func(); below. */
13041#include <assert.h>
13042/* Override any gcc2 internal prototype to avoid an error. */
13043/* We use char because int might match the return type of a gcc2
13044 builtin and then its argument prototype would still apply. */
13045char $ac_func();
13046
13047int main() {
13048
13049/* The GNU C library defines this for functions which it implements
13050 to always fail with ENOSYS. Some functions are actually named
13051 something starting with __ and the normal name is an alias. */
13052#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13053choke me
13054#else
13055$ac_func();
13056#endif
13057
13058; return 0; }
13059EOF
13060if { (eval echo configure:13061: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13061 rm -rf conftest*
13062 eval "ac_cv_func_$ac_func=yes"
13063else
13064 echo "configure: failed program was:" >&5
13065 cat conftest.$ac_ext >&5
13066 rm -rf conftest*
13067 eval "ac_cv_func_$ac_func=no"
13068fi
13069rm -f conftest*
13070fi
13071
13072if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13073 echo "$ac_t""yes" 1>&6
13074 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13075 cat >> confdefs.h <<EOF
13076#define $ac_tr_func 1
13077EOF
13078
13079else
13080 echo "$ac_t""no" 1>&6
13081fi
13082done
13083
13084
698dcdb6 13085echo $ac_n "checking for vprintf""... $ac_c" 1>&6
b3e8d00a 13086echo "configure:13087: checking for vprintf" >&5
698dcdb6
VZ
13087if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
13088 echo $ac_n "(cached) $ac_c" 1>&6
13089else
13090 cat > conftest.$ac_ext <<EOF
b3e8d00a 13091#line 13092 "configure"
10f2d63a
VZ
13092#include "confdefs.h"
13093/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 13094 which can conflict with char vprintf(); below. */
10f2d63a
VZ
13095#include <assert.h>
13096/* Override any gcc2 internal prototype to avoid an error. */
13097/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
13098 builtin and then its argument prototype would still apply. */
13099char vprintf();
13100
13101int main() {
10f2d63a
VZ
13102
13103/* The GNU C library defines this for functions which it implements
13104 to always fail with ENOSYS. Some functions are actually named
13105 something starting with __ and the normal name is an alias. */
698dcdb6 13106#if defined (__stub_vprintf) || defined (__stub___vprintf)
10f2d63a
VZ
13107choke me
13108#else
698dcdb6 13109vprintf();
10f2d63a
VZ
13110#endif
13111
698dcdb6
VZ
13112; return 0; }
13113EOF
b3e8d00a 13114if { (eval echo configure:13115: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
13115 rm -rf conftest*
13116 eval "ac_cv_func_vprintf=yes"
13117else
13118 echo "configure: failed program was:" >&5
13119 cat conftest.$ac_ext >&5
13120 rm -rf conftest*
13121 eval "ac_cv_func_vprintf=no"
13122fi
13123rm -f conftest*
13124fi
13125
13126if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
13127 echo "$ac_t""yes" 1>&6
13128 cat >> confdefs.h <<\EOF
13129#define HAVE_VPRINTF 1
13130EOF
13131
13132else
13133 echo "$ac_t""no" 1>&6
13134fi
13135
13136if test "$ac_cv_func_vprintf" != yes; then
13137echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
b3e8d00a 13138echo "configure:13139: checking for _doprnt" >&5
698dcdb6
VZ
13139if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
13140 echo $ac_n "(cached) $ac_c" 1>&6
13141else
13142 cat > conftest.$ac_ext <<EOF
b3e8d00a 13143#line 13144 "configure"
10f2d63a
VZ
13144#include "confdefs.h"
13145/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 13146 which can conflict with char _doprnt(); below. */
10f2d63a
VZ
13147#include <assert.h>
13148/* Override any gcc2 internal prototype to avoid an error. */
13149/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
13150 builtin and then its argument prototype would still apply. */
13151char _doprnt();
13152
13153int main() {
10f2d63a
VZ
13154
13155/* The GNU C library defines this for functions which it implements
13156 to always fail with ENOSYS. Some functions are actually named
13157 something starting with __ and the normal name is an alias. */
13158#if defined (__stub__doprnt) || defined (__stub____doprnt)
13159choke me
13160#else
698dcdb6 13161_doprnt();
10f2d63a
VZ
13162#endif
13163
698dcdb6
VZ
13164; return 0; }
13165EOF
b3e8d00a 13166if { (eval echo configure:13167: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
13167 rm -rf conftest*
13168 eval "ac_cv_func__doprnt=yes"
13169else
13170 echo "configure: failed program was:" >&5
13171 cat conftest.$ac_ext >&5
13172 rm -rf conftest*
13173 eval "ac_cv_func__doprnt=no"
13174fi
13175rm -f conftest*
13176fi
13177
13178if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
13179 echo "$ac_t""yes" 1>&6
13180 cat >> confdefs.h <<\EOF
10f2d63a
VZ
13181#define HAVE_DOPRNT 1
13182EOF
13183
698dcdb6
VZ
13184else
13185 echo "$ac_t""no" 1>&6
10f2d63a
VZ
13186fi
13187
13188fi
13189
1e487827 13190
698dcdb6
VZ
13191
13192
13193
13194
698dcdb6 13195echo $ac_n "checking for vsnprintf""... $ac_c" 1>&6
b3e8d00a 13196echo "configure:13197: checking for vsnprintf" >&5
698dcdb6
VZ
13197if eval "test \"`echo '$''{'wx_cv_func_vsnprintf'+set}'`\" = set"; then
13198 echo $ac_n "(cached) $ac_c" 1>&6
13199else
13200
13201 cat > conftest.$ac_ext <<EOF
b3e8d00a 13202#line 13203 "configure"
f6bcfd97
BP
13203#include "confdefs.h"
13204
13205 #include <stdio.h>
698dcdb6
VZ
13206 #include <stdarg.h>
13207
13208int main() {
10f2d63a 13209
f6bcfd97 13210 int wx_test_vsnprintf(const char *, ...);
10f2d63a 13211
f6bcfd97
BP
13212 wx_test_vsnprintf("%s");
13213 return 0;
13214 }
13215
13216 int wx_test_vsnprintf(const char *fmt, ...)
13217 {
13218 char *s;
13219
13220 va_list argp;
13221 va_start(argp, fmt);
13222 vsnprintf(s, 42, fmt, argp);
13223 va_end(argp);
698dcdb6
VZ
13224
13225; return 0; }
13226EOF
b3e8d00a 13227if { (eval echo configure:13228: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
13228 rm -rf conftest*
13229
f6bcfd97 13230 wx_cv_func_vsnprintf=yes
698dcdb6 13231
10f2d63a 13232else
698dcdb6
VZ
13233 echo "configure: failed program was:" >&5
13234 cat conftest.$ac_ext >&5
13235 rm -rf conftest*
13236
13237 cat > conftest.$ac_ext <<EOF
b3e8d00a 13238#line 13239 "configure"
c521c494
RL
13239#include "confdefs.h"
13240
13241 #include <stdio.h>
13242 #include <stdarg.h>
698dcdb6
VZ
13243
13244int main() {
c521c494
RL
13245
13246 int wx_test_vsnprintf(const char *, ...);
13247
13248 wx_test_vsnprintf("%s");
13249 return 0;
13250 }
13251
13252 int wx_test_vsnprintf(const char *fmt, ...)
13253 {
13254 char *s;
13255
13256 va_list argp;
13257 va_start(argp, fmt);
13258 _vsnprintf(s, 42, fmt, argp);
13259 va_end(argp);
698dcdb6
VZ
13260
13261; return 0; }
13262EOF
b3e8d00a 13263if { (eval echo configure:13264: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
13264 rm -rf conftest*
13265
c521c494 13266 wx_cv_func_vsnprintf=yes
698dcdb6 13267
c521c494 13268else
698dcdb6
VZ
13269 echo "configure: failed program was:" >&5
13270 cat conftest.$ac_ext >&5
13271 rm -rf conftest*
13272
c521c494 13273 wx_cv_func_vsnprintf=no
698dcdb6 13274
10f2d63a 13275fi
698dcdb6
VZ
13276rm -f conftest*
13277
6232543b 13278fi
698dcdb6 13279rm -f conftest*
703e0a69 13280
1e487827 13281fi
698dcdb6
VZ
13282
13283echo "$ac_t""$wx_cv_func_vsnprintf" 1>&6
10f2d63a 13284
9d8deca0 13285if test "$wx_cv_func_vsnprintf" = yes; then
698dcdb6 13286 cat >> confdefs.h <<\EOF
9d8deca0
VZ
13287#define HAVE_VSNPRINTF 1
13288EOF
13289
13290else
698dcdb6 13291 echo "configure: warning: unsafe function sprintf will be used instead of snprintf" 1>&2
9d8deca0
VZ
13292fi
13293
698dcdb6 13294echo $ac_n "checking for vsscanf""... $ac_c" 1>&6
b3e8d00a 13295echo "configure:13296: checking for vsscanf" >&5
698dcdb6
VZ
13296if eval "test \"`echo '$''{'wx_cv_func_vsscanf'+set}'`\" = set"; then
13297 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 13298else
698dcdb6
VZ
13299
13300 cat > conftest.$ac_ext <<EOF
b3e8d00a 13301#line 13302 "configure"
10f2d63a 13302#include "confdefs.h"
10f2d63a 13303
f6bcfd97
BP
13304 #include <stdio.h>
13305 #include <stdarg.h>
698dcdb6
VZ
13306
13307int main() {
10f2d63a 13308
f6bcfd97 13309 int wx_test_vsscanf(const char *, ...);
10f2d63a 13310
f6bcfd97
BP
13311 wx_test_vsscanf("%d");
13312 return 0;
10f2d63a
VZ
13313 }
13314
f6bcfd97 13315 int wx_test_vsscanf(const char *fmt, ...)
10f2d63a 13316 {
f6bcfd97
BP
13317 va_list argp;
13318 va_start(argp, fmt);
13319 vsscanf("42", fmt, argp);
13320 va_end(argp);
698dcdb6
VZ
13321
13322; return 0; }
13323EOF
b3e8d00a 13324if { (eval echo configure:13325: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
13325 rm -rf conftest*
13326
f6bcfd97 13327 wx_cv_func_vsscanf=yes
698dcdb6 13328
10f2d63a 13329else
698dcdb6
VZ
13330 echo "configure: failed program was:" >&5
13331 cat conftest.$ac_ext >&5
13332 rm -rf conftest*
13333
f6bcfd97 13334 wx_cv_func_vsscanf=no
698dcdb6 13335
6232543b 13336fi
698dcdb6 13337rm -f conftest*
703e0a69 13338
1e487827 13339fi
698dcdb6
VZ
13340
13341echo "$ac_t""$wx_cv_func_vsscanf" 1>&6
10f2d63a 13342
9d8deca0 13343if test "$wx_cv_func_vsscanf" = yes; then
698dcdb6 13344 cat >> confdefs.h <<\EOF
9d8deca0
VZ
13345#define HAVE_VSSCANF 1
13346EOF
13347
13348fi
13349
95c8801c
VS
13350if test "$TOOLKIT" != "MSW"; then
13351
13352
13353
698dcdb6
VZ
13354ac_ext=C
13355# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13356ac_cpp='$CXXCPP $CPPFLAGS'
13357ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13358ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13359cross_compiling=$ac_cv_prog_cxx_cross
13360
13361echo $ac_n "checking if iconv() takes char**""... $ac_c" 1>&6
b3e8d00a 13362echo "configure:13363: checking if iconv() takes char**" >&5
698dcdb6
VZ
13363if eval "test \"`echo '$''{'wx_cv_iconv_takes_char'+set}'`\" = set"; then
13364 echo $ac_n "(cached) $ac_c" 1>&6
13365else
13366
13367 cat > conftest.$ac_ext <<EOF
b3e8d00a 13368#line 13369 "configure"
95c8801c
VS
13369#include "confdefs.h"
13370#include <iconv.h>
698dcdb6 13371int main() {
95c8801c
VS
13372
13373 char **inbuf, **outbuf;
19af3b06
VZ
13374 iconv_t cd;
13375 size_t insz, outsz;
13376 iconv(cd, inbuf, &insz, outbuf, &outsz);
698dcdb6
VZ
13377
13378; return 0; }
13379EOF
b3e8d00a 13380if { (eval echo configure:13381: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 13381 rm -rf conftest*
95c8801c
VS
13382 wx_cv_iconv_takes_char=yes
13383else
698dcdb6
VZ
13384 echo "configure: failed program was:" >&5
13385 cat conftest.$ac_ext >&5
13386 rm -rf conftest*
13387 wx_cv_iconv_takes_char=no
95c8801c 13388fi
698dcdb6 13389rm -f conftest*
95c8801c
VS
13390
13391fi
698dcdb6
VZ
13392
13393echo "$ac_t""$wx_cv_iconv_takes_char" 1>&6
10f2d63a 13394ac_ext=c
698dcdb6 13395# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10f2d63a 13396ac_cpp='$CPP $CPPFLAGS'
698dcdb6
VZ
13397ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13398ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13399cross_compiling=$ac_cv_prog_cc_cross
10f2d63a 13400
95c8801c 13401if test "$wx_cv_iconv_takes_char" = yes ; then
698dcdb6 13402 cat >> confdefs.h <<\EOF
95c8801c
VS
13403#define WX_ICONV_TAKES_CHAR 1
13404EOF
13405
13406fi
10f2d63a 13407
1e487827 13408
698dcdb6
VZ
13409if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
13410 for ac_func in sigaction
eb4efbdc 13411do
698dcdb6 13412echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
b3e8d00a 13413echo "configure:13414: checking for $ac_func" >&5
698dcdb6
VZ
13414if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13415 echo $ac_n "(cached) $ac_c" 1>&6
13416else
13417 cat > conftest.$ac_ext <<EOF
b3e8d00a 13418#line 13419 "configure"
eb4efbdc
VZ
13419#include "confdefs.h"
13420/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 13421 which can conflict with char $ac_func(); below. */
eb4efbdc
VZ
13422#include <assert.h>
13423/* Override any gcc2 internal prototype to avoid an error. */
13424/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
13425 builtin and then its argument prototype would still apply. */
13426char $ac_func();
13427
13428int main() {
eb4efbdc
VZ
13429
13430/* The GNU C library defines this for functions which it implements
13431 to always fail with ENOSYS. Some functions are actually named
13432 something starting with __ and the normal name is an alias. */
13433#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13434choke me
13435#else
698dcdb6 13436$ac_func();
eb4efbdc
VZ
13437#endif
13438
698dcdb6 13439; return 0; }
eb4efbdc 13440EOF
b3e8d00a 13441if { (eval echo configure:13442: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
13442 rm -rf conftest*
13443 eval "ac_cv_func_$ac_func=yes"
13444else
13445 echo "configure: failed program was:" >&5
13446 cat conftest.$ac_ext >&5
13447 rm -rf conftest*
13448 eval "ac_cv_func_$ac_func=no"
13449fi
13450rm -f conftest*
13451fi
eb4efbdc 13452
698dcdb6
VZ
13453if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13454 echo "$ac_t""yes" 1>&6
13455 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13456 cat >> confdefs.h <<EOF
13457#define $ac_tr_func 1
13458EOF
13459
13460else
13461 echo "$ac_t""no" 1>&6
eb4efbdc
VZ
13462fi
13463done
13464
698dcdb6 13465
eb4efbdc 13466 if test "$ac_cv_func_sigaction" = "no"; then
698dcdb6 13467 echo "configure: warning: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" 1>&2
eb4efbdc
VZ
13468 wxUSE_ON_FATAL_EXCEPTION=no
13469 fi
f6bcfd97
BP
13470
13471 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
698dcdb6
VZ
13472
13473 ac_ext=C
13474# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1e487827 13475ac_cpp='$CXXCPP $CPPFLAGS'
698dcdb6
VZ
13476ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13477ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13478cross_compiling=$ac_cv_prog_cxx_cross
6232543b 13479
1e487827 13480
698dcdb6 13481 echo $ac_n "checking for sa_handler type""... $ac_c" 1>&6
b3e8d00a 13482echo "configure:13483: checking for sa_handler type" >&5
698dcdb6
VZ
13483if eval "test \"`echo '$''{'wx_cv_type_sa_handler'+set}'`\" = set"; then
13484 echo $ac_n "(cached) $ac_c" 1>&6
13485else
13486
13487 cat > conftest.$ac_ext <<EOF
b3e8d00a 13488#line 13489 "configure"
f6bcfd97
BP
13489#include "confdefs.h"
13490#include <signal.h>
698dcdb6 13491int main() {
f6bcfd97
BP
13492
13493 extern void testSigHandler(int);
13494
13495 struct sigaction sa;
13496 sa.sa_handler = testSigHandler;
698dcdb6
VZ
13497
13498; return 0; }
13499EOF
b3e8d00a 13500if { (eval echo configure:13501: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
13501 rm -rf conftest*
13502
f6bcfd97 13503 wx_cv_type_sa_handler=int
698dcdb6 13504
f6bcfd97 13505else
698dcdb6
VZ
13506 echo "configure: failed program was:" >&5
13507 cat conftest.$ac_ext >&5
13508 rm -rf conftest*
13509
f6bcfd97 13510 wx_cv_type_sa_handler=void
698dcdb6 13511
6232543b 13512fi
698dcdb6
VZ
13513rm -f conftest*
13514
1e487827 13515fi
698dcdb6
VZ
13516
13517echo "$ac_t""$wx_cv_type_sa_handler" 1>&6
f6bcfd97
BP
13518
13519 ac_ext=c
698dcdb6 13520# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
f6bcfd97 13521ac_cpp='$CPP $CPPFLAGS'
698dcdb6
VZ
13522ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13523ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13524cross_compiling=$ac_cv_prog_cc_cross
13525
703e0a69 13526
698dcdb6 13527 cat >> confdefs.h <<EOF
f6bcfd97
BP
13528#define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
13529EOF
13530
13531 fi
eb4efbdc
VZ
13532fi
13533
10f2d63a
VZ
13534for ac_func in vfork
13535do
698dcdb6 13536echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
b3e8d00a 13537echo "configure:13538: checking for $ac_func" >&5
698dcdb6
VZ
13538if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13539 echo $ac_n "(cached) $ac_c" 1>&6
13540else
13541 cat > conftest.$ac_ext <<EOF
b3e8d00a 13542#line 13543 "configure"
10f2d63a
VZ
13543#include "confdefs.h"
13544/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 13545 which can conflict with char $ac_func(); below. */
10f2d63a
VZ
13546#include <assert.h>
13547/* Override any gcc2 internal prototype to avoid an error. */
13548/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
13549 builtin and then its argument prototype would still apply. */
13550char $ac_func();
13551
13552int main() {
10f2d63a
VZ
13553
13554/* The GNU C library defines this for functions which it implements
13555 to always fail with ENOSYS. Some functions are actually named
13556 something starting with __ and the normal name is an alias. */
13557#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13558choke me
13559#else
698dcdb6 13560$ac_func();
10f2d63a
VZ
13561#endif
13562
698dcdb6 13563; return 0; }
10f2d63a 13564EOF
b3e8d00a 13565if { (eval echo configure:13566: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
13566 rm -rf conftest*
13567 eval "ac_cv_func_$ac_func=yes"
13568else
13569 echo "configure: failed program was:" >&5
13570 cat conftest.$ac_ext >&5
13571 rm -rf conftest*
13572 eval "ac_cv_func_$ac_func=no"
13573fi
13574rm -f conftest*
13575fi
270a909e 13576
698dcdb6
VZ
13577if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13578 echo "$ac_t""yes" 1>&6
13579 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13580 cat >> confdefs.h <<EOF
13581#define $ac_tr_func 1
13582EOF
13583
13584else
13585 echo "$ac_t""no" 1>&6
270a909e
VZ
13586fi
13587done
13588
1e487827 13589
52e8b690 13590echo $ac_n "checking for statfs""... $ac_c" 1>&6
b3e8d00a 13591echo "configure:13592: checking for statfs" >&5
52e8b690
VZ
13592if eval "test \"`echo '$''{'wx_cv_func_statfs'+set}'`\" = set"; then
13593 echo $ac_n "(cached) $ac_c" 1>&6
13594else
13595 cat > conftest.$ac_ext <<EOF
b3e8d00a 13596#line 13597 "configure"
52e8b690
VZ
13597#include "confdefs.h"
13598
13599 #include <sys/vfs.h>
13600
13601int main() {
13602
13603 long l;
13604 struct statfs fs;
13605 statfs("/", &fs);
13606 l = fs.f_bsize;
13607 l += fs.f_blocks;
13608 l += fs.f_bavail;
13609
13610; return 0; }
13611EOF
b3e8d00a 13612if { (eval echo configure:13613: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
52e8b690
VZ
13613 rm -rf conftest*
13614
13615 wx_cv_func_statfs=yes
13616
13617else
13618 echo "configure: failed program was:" >&5
13619 cat conftest.$ac_ext >&5
13620 rm -rf conftest*
13621
13622 wx_cv_func_statfs=no
13623
13624
13625fi
13626rm -f conftest*
13627
13628fi
13629
13630echo "$ac_t""$wx_cv_func_statfs" 1>&6
13631
13632if test "$wx_cv_func_statfs" = "yes"; then
13633 cat >> confdefs.h <<\EOF
13634#define HAVE_STATFS 1
13635EOF
13636
13637else
13638 echo "configure: warning: wxGetDiskSpace() function won't work without statfs()" 1>&2
13639fi
13640
698dcdb6
VZ
13641if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
13642 for ac_func in fcntl flock
4f3c5f06 13643do
698dcdb6 13644echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
b3e8d00a 13645echo "configure:13646: checking for $ac_func" >&5
698dcdb6
VZ
13646if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13647 echo $ac_n "(cached) $ac_c" 1>&6
13648else
13649 cat > conftest.$ac_ext <<EOF
b3e8d00a 13650#line 13651 "configure"
4f3c5f06
VZ
13651#include "confdefs.h"
13652/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 13653 which can conflict with char $ac_func(); below. */
4f3c5f06
VZ
13654#include <assert.h>
13655/* Override any gcc2 internal prototype to avoid an error. */
13656/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
13657 builtin and then its argument prototype would still apply. */
13658char $ac_func();
13659
13660int main() {
4f3c5f06
VZ
13661
13662/* The GNU C library defines this for functions which it implements
13663 to always fail with ENOSYS. Some functions are actually named
13664 something starting with __ and the normal name is an alias. */
13665#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13666choke me
13667#else
698dcdb6 13668$ac_func();
4f3c5f06
VZ
13669#endif
13670
698dcdb6
VZ
13671; return 0; }
13672EOF
b3e8d00a 13673if { (eval echo configure:13674: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
13674 rm -rf conftest*
13675 eval "ac_cv_func_$ac_func=yes"
13676else
13677 echo "configure: failed program was:" >&5
13678 cat conftest.$ac_ext >&5
13679 rm -rf conftest*
13680 eval "ac_cv_func_$ac_func=no"
13681fi
13682rm -f conftest*
13683fi
13684
13685if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13686 echo "$ac_t""yes" 1>&6
13687 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13688 cat >> confdefs.h <<EOF
13689#define $ac_tr_func 1
4f3c5f06
VZ
13690EOF
13691 break
698dcdb6
VZ
13692else
13693 echo "$ac_t""no" 1>&6
4f3c5f06
VZ
13694fi
13695done
13696
698dcdb6 13697
4f3c5f06 13698 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
698dcdb6 13699 echo "configure: warning: wxSingleInstanceChecker not available" 1>&2
4f3c5f06
VZ
13700 wxUSE_SNGLINST_CHECKER=no
13701 fi
13702fi
13703
270a909e
VZ
13704for ac_func in timegm
13705do
698dcdb6 13706echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
b3e8d00a 13707echo "configure:13708: checking for $ac_func" >&5
698dcdb6
VZ
13708if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13709 echo $ac_n "(cached) $ac_c" 1>&6
13710else
13711 cat > conftest.$ac_ext <<EOF
b3e8d00a 13712#line 13713 "configure"
270a909e
VZ
13713#include "confdefs.h"
13714/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 13715 which can conflict with char $ac_func(); below. */
270a909e
VZ
13716#include <assert.h>
13717/* Override any gcc2 internal prototype to avoid an error. */
13718/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
13719 builtin and then its argument prototype would still apply. */
13720char $ac_func();
13721
13722int main() {
270a909e
VZ
13723
13724/* The GNU C library defines this for functions which it implements
13725 to always fail with ENOSYS. Some functions are actually named
13726 something starting with __ and the normal name is an alias. */
13727#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13728choke me
13729#else
698dcdb6 13730$ac_func();
270a909e
VZ
13731#endif
13732
698dcdb6 13733; return 0; }
270a909e 13734EOF
b3e8d00a 13735if { (eval echo configure:13736: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
13736 rm -rf conftest*
13737 eval "ac_cv_func_$ac_func=yes"
13738else
13739 echo "configure: failed program was:" >&5
13740 cat conftest.$ac_ext >&5
13741 rm -rf conftest*
13742 eval "ac_cv_func_$ac_func=no"
13743fi
13744rm -f conftest*
13745fi
10f2d63a 13746
698dcdb6
VZ
13747if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13748 echo "$ac_t""yes" 1>&6
13749 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13750 cat >> confdefs.h <<EOF
13751#define $ac_tr_func 1
13752EOF
13753
13754else
13755 echo "$ac_t""no" 1>&6
10f2d63a
VZ
13756fi
13757done
13758
698dcdb6 13759
8fd0d89b
VZ
13760for ac_func in putenv setenv
13761do
698dcdb6 13762echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
b3e8d00a 13763echo "configure:13764: checking for $ac_func" >&5
698dcdb6
VZ
13764if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13765 echo $ac_n "(cached) $ac_c" 1>&6
13766else
13767 cat > conftest.$ac_ext <<EOF
b3e8d00a 13768#line 13769 "configure"
8fd0d89b
VZ
13769#include "confdefs.h"
13770/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 13771 which can conflict with char $ac_func(); below. */
8fd0d89b
VZ
13772#include <assert.h>
13773/* Override any gcc2 internal prototype to avoid an error. */
13774/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
13775 builtin and then its argument prototype would still apply. */
13776char $ac_func();
13777
13778int main() {
8fd0d89b
VZ
13779
13780/* The GNU C library defines this for functions which it implements
13781 to always fail with ENOSYS. Some functions are actually named
13782 something starting with __ and the normal name is an alias. */
13783#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13784choke me
13785#else
698dcdb6 13786$ac_func();
8fd0d89b
VZ
13787#endif
13788
698dcdb6
VZ
13789; return 0; }
13790EOF
b3e8d00a 13791if { (eval echo configure:13792: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
13792 rm -rf conftest*
13793 eval "ac_cv_func_$ac_func=yes"
13794else
13795 echo "configure: failed program was:" >&5
13796 cat conftest.$ac_ext >&5
13797 rm -rf conftest*
13798 eval "ac_cv_func_$ac_func=no"
13799fi
13800rm -f conftest*
13801fi
13802
13803if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13804 echo "$ac_t""yes" 1>&6
13805 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13806 cat >> confdefs.h <<EOF
13807#define $ac_tr_func 1
8fd0d89b
VZ
13808EOF
13809 break
698dcdb6
VZ
13810else
13811 echo "$ac_t""no" 1>&6
8fd0d89b
VZ
13812fi
13813done
13814
698dcdb6 13815
b12915c1
VZ
13816HAVE_SOME_SLEEP_FUNC=0
13817if test "$USE_BEOS" = 1; then
698dcdb6 13818 cat >> confdefs.h <<\EOF
b12915c1
VZ
13819#define HAVE_SLEEP 1
13820EOF
13821
13822 HAVE_SOME_SLEEP_FUNC=1
13823fi
13824
f11bdd03 13825if test "$USE_DARWIN" = 1; then
698dcdb6 13826 cat >> confdefs.h <<\EOF
b4085ce6
GD
13827#define HAVE_USLEEP 1
13828EOF
13829
13830 HAVE_SOME_SLEEP_FUNC=1
13831fi
13832
b12915c1
VZ
13833if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
13834 POSIX4_LINK=
698dcdb6 13835 for ac_func in nanosleep
10f2d63a 13836do
698dcdb6 13837echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
b3e8d00a 13838echo "configure:13839: checking for $ac_func" >&5
698dcdb6
VZ
13839if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13840 echo $ac_n "(cached) $ac_c" 1>&6
13841else
13842 cat > conftest.$ac_ext <<EOF
b3e8d00a 13843#line 13844 "configure"
10f2d63a
VZ
13844#include "confdefs.h"
13845/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 13846 which can conflict with char $ac_func(); below. */
10f2d63a
VZ
13847#include <assert.h>
13848/* Override any gcc2 internal prototype to avoid an error. */
13849/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
13850 builtin and then its argument prototype would still apply. */
13851char $ac_func();
13852
13853int main() {
10f2d63a
VZ
13854
13855/* The GNU C library defines this for functions which it implements
13856 to always fail with ENOSYS. Some functions are actually named
13857 something starting with __ and the normal name is an alias. */
13858#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13859choke me
13860#else
698dcdb6 13861$ac_func();
10f2d63a
VZ
13862#endif
13863
698dcdb6
VZ
13864; return 0; }
13865EOF
b3e8d00a 13866if { (eval echo configure:13867: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
13867 rm -rf conftest*
13868 eval "ac_cv_func_$ac_func=yes"
13869else
13870 echo "configure: failed program was:" >&5
13871 cat conftest.$ac_ext >&5
13872 rm -rf conftest*
13873 eval "ac_cv_func_$ac_func=no"
13874fi
13875rm -f conftest*
13876fi
13877
13878if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13879 echo "$ac_t""yes" 1>&6
13880 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13881 cat >> confdefs.h <<EOF
13882#define $ac_tr_func 1
13883EOF
13884 cat >> confdefs.h <<\EOF
10f2d63a
VZ
13885#define HAVE_NANOSLEEP 1
13886EOF
13887
13888else
698dcdb6
VZ
13889 echo "$ac_t""no" 1>&6
13890echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
b3e8d00a 13891echo "configure:13892: checking for nanosleep in -lposix4" >&5
698dcdb6
VZ
13892ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
13893if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13894 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 13895else
698dcdb6 13896 ac_save_LIBS="$LIBS"
10f2d63a 13897LIBS="-lposix4 $LIBS"
698dcdb6 13898cat > conftest.$ac_ext <<EOF
b3e8d00a 13899#line 13900 "configure"
10f2d63a
VZ
13900#include "confdefs.h"
13901/* Override any gcc2 internal prototype to avoid an error. */
13902/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
13903 builtin and then its argument prototype would still apply. */
13904char nanosleep();
13905
13906int main() {
13907nanosleep()
13908; return 0; }
13909EOF
b3e8d00a 13910if { (eval echo configure:13911: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
13911 rm -rf conftest*
13912 eval "ac_cv_lib_$ac_lib_var=yes"
13913else
13914 echo "configure: failed program was:" >&5
13915 cat conftest.$ac_ext >&5
13916 rm -rf conftest*
13917 eval "ac_cv_lib_$ac_lib_var=no"
13918fi
13919rm -f conftest*
13920LIBS="$ac_save_LIBS"
13921
13922fi
13923if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13924 echo "$ac_t""yes" 1>&6
13925
13926 cat >> confdefs.h <<\EOF
10f2d63a
VZ
13927#define HAVE_NANOSLEEP 1
13928EOF
13929
b12915c1 13930 POSIX4_LINK="-lposix4"
698dcdb6 13931
10f2d63a 13932else
698dcdb6 13933 echo "$ac_t""no" 1>&6
10f2d63a 13934
698dcdb6 13935 for ac_func in usleep
10f2d63a 13936do
698dcdb6 13937echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
b3e8d00a 13938echo "configure:13939: checking for $ac_func" >&5
698dcdb6
VZ
13939if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13940 echo $ac_n "(cached) $ac_c" 1>&6
13941else
13942 cat > conftest.$ac_ext <<EOF
b3e8d00a 13943#line 13944 "configure"
10f2d63a
VZ
13944#include "confdefs.h"
13945/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 13946 which can conflict with char $ac_func(); below. */
10f2d63a
VZ
13947#include <assert.h>
13948/* Override any gcc2 internal prototype to avoid an error. */
13949/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
13950 builtin and then its argument prototype would still apply. */
13951char $ac_func();
13952
13953int main() {
10f2d63a
VZ
13954
13955/* The GNU C library defines this for functions which it implements
13956 to always fail with ENOSYS. Some functions are actually named
13957 something starting with __ and the normal name is an alias. */
13958#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13959choke me
13960#else
698dcdb6 13961$ac_func();
10f2d63a
VZ
13962#endif
13963
698dcdb6
VZ
13964; return 0; }
13965EOF
b3e8d00a 13966if { (eval echo configure:13967: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
13967 rm -rf conftest*
13968 eval "ac_cv_func_$ac_func=yes"
13969else
13970 echo "configure: failed program was:" >&5
13971 cat conftest.$ac_ext >&5
13972 rm -rf conftest*
13973 eval "ac_cv_func_$ac_func=no"
13974fi
13975rm -f conftest*
13976fi
13977
13978if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13979 echo "$ac_t""yes" 1>&6
13980 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13981 cat >> confdefs.h <<EOF
13982#define $ac_tr_func 1
13983EOF
13984 cat >> confdefs.h <<\EOF
b4085ce6
GD
13985#define HAVE_USLEEP 1
13986EOF
13987
10f2d63a 13988else
698dcdb6
VZ
13989 echo "$ac_t""no" 1>&6
13990echo "configure: warning: wxSleep() function will not work" 1>&2
13991
10f2d63a
VZ
13992fi
13993done
13994
698dcdb6
VZ
13995
13996
10f2d63a
VZ
13997fi
13998
698dcdb6
VZ
13999
14000
10f2d63a
VZ
14001fi
14002done
14003
b12915c1 14004fi
10f2d63a
VZ
14005
14006for ac_func in uname gethostname
14007do
698dcdb6 14008echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
b3e8d00a 14009echo "configure:14010: checking for $ac_func" >&5
698dcdb6
VZ
14010if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14011 echo $ac_n "(cached) $ac_c" 1>&6
14012else
14013 cat > conftest.$ac_ext <<EOF
b3e8d00a 14014#line 14015 "configure"
10f2d63a
VZ
14015#include "confdefs.h"
14016/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 14017 which can conflict with char $ac_func(); below. */
10f2d63a
VZ
14018#include <assert.h>
14019/* Override any gcc2 internal prototype to avoid an error. */
14020/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
14021 builtin and then its argument prototype would still apply. */
14022char $ac_func();
14023
14024int main() {
10f2d63a
VZ
14025
14026/* The GNU C library defines this for functions which it implements
14027 to always fail with ENOSYS. Some functions are actually named
14028 something starting with __ and the normal name is an alias. */
14029#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14030choke me
14031#else
698dcdb6 14032$ac_func();
10f2d63a
VZ
14033#endif
14034
698dcdb6
VZ
14035; return 0; }
14036EOF
b3e8d00a 14037if { (eval echo configure:14038: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
14038 rm -rf conftest*
14039 eval "ac_cv_func_$ac_func=yes"
14040else
14041 echo "configure: failed program was:" >&5
14042 cat conftest.$ac_ext >&5
14043 rm -rf conftest*
14044 eval "ac_cv_func_$ac_func=no"
14045fi
14046rm -f conftest*
14047fi
14048
14049if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14050 echo "$ac_t""yes" 1>&6
14051 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14052 cat >> confdefs.h <<EOF
14053#define $ac_tr_func 1
10f2d63a
VZ
14054EOF
14055 break
698dcdb6
VZ
14056else
14057 echo "$ac_t""no" 1>&6
10f2d63a
VZ
14058fi
14059done
14060
698dcdb6
VZ
14061
14062
14063ac_ext=C
14064# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6098c7f9 14065ac_cpp='$CXXCPP $CPPFLAGS'
698dcdb6
VZ
14066ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14067ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14068cross_compiling=$ac_cv_prog_cxx_cross
14069
6098c7f9 14070
10f2d63a
VZ
14071for ac_func in strtok_r
14072do
698dcdb6 14073echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
b3e8d00a 14074echo "configure:14075: checking for $ac_func" >&5
698dcdb6
VZ
14075if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14076 echo $ac_n "(cached) $ac_c" 1>&6
14077else
14078 cat > conftest.$ac_ext <<EOF
b3e8d00a 14079#line 14080 "configure"
10f2d63a
VZ
14080#include "confdefs.h"
14081/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 14082 which can conflict with char $ac_func(); below. */
10f2d63a
VZ
14083#include <assert.h>
14084/* Override any gcc2 internal prototype to avoid an error. */
6098c7f9
VZ
14085#ifdef __cplusplus
14086extern "C"
14087#endif
10f2d63a 14088/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
14089 builtin and then its argument prototype would still apply. */
14090char $ac_func();
14091
14092int main() {
10f2d63a
VZ
14093
14094/* The GNU C library defines this for functions which it implements
14095 to always fail with ENOSYS. Some functions are actually named
14096 something starting with __ and the normal name is an alias. */
14097#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14098choke me
14099#else
698dcdb6 14100$ac_func();
10f2d63a
VZ
14101#endif
14102
698dcdb6 14103; return 0; }
10f2d63a 14104EOF
b3e8d00a 14105if { (eval echo configure:14106: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
14106 rm -rf conftest*
14107 eval "ac_cv_func_$ac_func=yes"
14108else
14109 echo "configure: failed program was:" >&5
14110 cat conftest.$ac_ext >&5
14111 rm -rf conftest*
14112 eval "ac_cv_func_$ac_func=no"
14113fi
14114rm -f conftest*
14115fi
10f2d63a 14116
698dcdb6
VZ
14117if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14118 echo "$ac_t""yes" 1>&6
14119 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14120 cat >> confdefs.h <<EOF
14121#define $ac_tr_func 1
14122EOF
14123
14124else
14125 echo "$ac_t""no" 1>&6
10f2d63a
VZ
14126fi
14127done
14128
698dcdb6 14129
6098c7f9 14130ac_ext=c
698dcdb6 14131# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6098c7f9 14132ac_cpp='$CPP $CPPFLAGS'
698dcdb6
VZ
14133ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14134ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14135cross_compiling=$ac_cv_prog_cc_cross
6232543b 14136
1e487827 14137
698dcdb6 14138INET_LINK=
10f2d63a
VZ
14139for ac_func in inet_addr
14140do
698dcdb6 14141echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
b3e8d00a 14142echo "configure:14143: checking for $ac_func" >&5
698dcdb6
VZ
14143if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14144 echo $ac_n "(cached) $ac_c" 1>&6
14145else
14146 cat > conftest.$ac_ext <<EOF
b3e8d00a 14147#line 14148 "configure"
10f2d63a
VZ
14148#include "confdefs.h"
14149/* System header to define __stub macros and hopefully few prototypes,
698dcdb6
VZ
14150 which can conflict with char $ac_func(); below. */
14151#include <assert.h>
14152/* Override any gcc2 internal prototype to avoid an error. */
10f2d63a 14153/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
14154 builtin and then its argument prototype would still apply. */
14155char $ac_func();
14156
14157int main() {
10f2d63a
VZ
14158
14159/* The GNU C library defines this for functions which it implements
14160 to always fail with ENOSYS. Some functions are actually named
1e487827
VS
14161 something starting with __ and the normal name is an alias. */
14162#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14163choke me
14164#else
698dcdb6 14165$ac_func();
1e487827 14166#endif
703e0a69 14167
698dcdb6
VZ
14168; return 0; }
14169EOF
b3e8d00a 14170if { (eval echo configure:14171: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
14171 rm -rf conftest*
14172 eval "ac_cv_func_$ac_func=yes"
14173else
14174 echo "configure: failed program was:" >&5
14175 cat conftest.$ac_ext >&5
14176 rm -rf conftest*
14177 eval "ac_cv_func_$ac_func=no"
14178fi
14179rm -f conftest*
14180fi
14181
14182if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14183 echo "$ac_t""yes" 1>&6
14184 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14185 cat >> confdefs.h <<EOF
14186#define $ac_tr_func 1
14187EOF
14188 cat >> confdefs.h <<\EOF
c63c7106
VZ
14189#define HAVE_INET_ADDR 1
14190EOF
14191
10f2d63a 14192else
698dcdb6
VZ
14193 echo "$ac_t""no" 1>&6
14194echo $ac_n "checking for inet_addr in -lnsl""... $ac_c" 1>&6
b3e8d00a 14195echo "configure:14196: checking for inet_addr in -lnsl" >&5
698dcdb6
VZ
14196ac_lib_var=`echo nsl'_'inet_addr | sed 'y%./+-%__p_%'`
14197if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14198 echo $ac_n "(cached) $ac_c" 1>&6
c63c7106 14199else
698dcdb6 14200 ac_save_LIBS="$LIBS"
c63c7106 14201LIBS="-lnsl $LIBS"
698dcdb6 14202cat > conftest.$ac_ext <<EOF
b3e8d00a 14203#line 14204 "configure"
c63c7106
VZ
14204#include "confdefs.h"
14205/* Override any gcc2 internal prototype to avoid an error. */
14206/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
14207 builtin and then its argument prototype would still apply. */
14208char inet_addr();
14209
14210int main() {
14211inet_addr()
14212; return 0; }
14213EOF
b3e8d00a 14214if { (eval echo configure:14215: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
14215 rm -rf conftest*
14216 eval "ac_cv_lib_$ac_lib_var=yes"
14217else
14218 echo "configure: failed program was:" >&5
14219 cat conftest.$ac_ext >&5
14220 rm -rf conftest*
14221 eval "ac_cv_lib_$ac_lib_var=no"
14222fi
14223rm -f conftest*
14224LIBS="$ac_save_LIBS"
14225
14226fi
14227if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14228 echo "$ac_t""yes" 1>&6
c63c7106
VZ
14229 INET_LINK="nsl"
14230else
698dcdb6
VZ
14231 echo "$ac_t""no" 1>&6
14232echo $ac_n "checking for inet_addr in -lresolv""... $ac_c" 1>&6
b3e8d00a 14233echo "configure:14234: checking for inet_addr in -lresolv" >&5
698dcdb6
VZ
14234ac_lib_var=`echo resolv'_'inet_addr | sed 'y%./+-%__p_%'`
14235if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14236 echo $ac_n "(cached) $ac_c" 1>&6
c63c7106 14237else
698dcdb6 14238 ac_save_LIBS="$LIBS"
c63c7106 14239LIBS="-lresolv $LIBS"
698dcdb6 14240cat > conftest.$ac_ext <<EOF
b3e8d00a 14241#line 14242 "configure"
c63c7106
VZ
14242#include "confdefs.h"
14243/* Override any gcc2 internal prototype to avoid an error. */
14244/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
14245 builtin and then its argument prototype would still apply. */
14246char inet_addr();
14247
14248int main() {
14249inet_addr()
14250; return 0; }
14251EOF
b3e8d00a 14252if { (eval echo configure:14253: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
14253 rm -rf conftest*
14254 eval "ac_cv_lib_$ac_lib_var=yes"
14255else
14256 echo "configure: failed program was:" >&5
14257 cat conftest.$ac_ext >&5
14258 rm -rf conftest*
14259 eval "ac_cv_lib_$ac_lib_var=no"
14260fi
14261rm -f conftest*
14262LIBS="$ac_save_LIBS"
c63c7106 14263
6232543b 14264fi
698dcdb6
VZ
14265if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14266 echo "$ac_t""yes" 1>&6
14267 INET_LINK="resolv"
14268
14269else
14270 echo "$ac_t""no" 1>&6
14271fi
c63c7106 14272
698dcdb6 14273
1e487827 14274fi
703e0a69 14275
698dcdb6
VZ
14276
14277
10f2d63a
VZ
14278fi
14279done
14280
698dcdb6 14281
10f2d63a
VZ
14282for ac_func in inet_aton
14283do
698dcdb6 14284echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
b3e8d00a 14285echo "configure:14286: checking for $ac_func" >&5
698dcdb6
VZ
14286if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14287 echo $ac_n "(cached) $ac_c" 1>&6
14288else
14289 cat > conftest.$ac_ext <<EOF
b3e8d00a 14290#line 14291 "configure"
10f2d63a
VZ
14291#include "confdefs.h"
14292/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 14293 which can conflict with char $ac_func(); below. */
10f2d63a
VZ
14294#include <assert.h>
14295/* Override any gcc2 internal prototype to avoid an error. */
14296/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
14297 builtin and then its argument prototype would still apply. */
14298char $ac_func();
14299
14300int main() {
10f2d63a
VZ
14301
14302/* The GNU C library defines this for functions which it implements
14303 to always fail with ENOSYS. Some functions are actually named
14304 something starting with __ and the normal name is an alias. */
14305#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14306choke me
14307#else
698dcdb6 14308$ac_func();
10f2d63a
VZ
14309#endif
14310
698dcdb6
VZ
14311; return 0; }
14312EOF
b3e8d00a 14313if { (eval echo configure:14314: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
14314 rm -rf conftest*
14315 eval "ac_cv_func_$ac_func=yes"
14316else
14317 echo "configure: failed program was:" >&5
14318 cat conftest.$ac_ext >&5
14319 rm -rf conftest*
14320 eval "ac_cv_func_$ac_func=no"
14321fi
14322rm -f conftest*
14323fi
14324
14325if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14326 echo "$ac_t""yes" 1>&6
14327 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14328 cat >> confdefs.h <<EOF
14329#define $ac_tr_func 1
14330EOF
14331 cat >> confdefs.h <<\EOF
c63c7106
VZ
14332#define HAVE_INET_ATON 1
14333EOF
14334
10f2d63a 14335else
698dcdb6
VZ
14336 echo "$ac_t""no" 1>&6
14337 echo $ac_n "checking for inet_aton in -l$INET_LINK""... $ac_c" 1>&6
b3e8d00a 14338echo "configure:14339: checking for inet_aton in -l$INET_LINK" >&5
698dcdb6
VZ
14339ac_lib_var=`echo $INET_LINK'_'inet_aton | sed 'y%./+-%__p_%'`
14340if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14341 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 14342else
698dcdb6 14343 ac_save_LIBS="$LIBS"
c63c7106 14344LIBS="-l$INET_LINK $LIBS"
698dcdb6 14345cat > conftest.$ac_ext <<EOF
b3e8d00a 14346#line 14347 "configure"
10f2d63a
VZ
14347#include "confdefs.h"
14348/* Override any gcc2 internal prototype to avoid an error. */
14349/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
14350 builtin and then its argument prototype would still apply. */
14351char inet_aton();
14352
14353int main() {
14354inet_aton()
14355; return 0; }
14356EOF
b3e8d00a 14357if { (eval echo configure:14358: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
14358 rm -rf conftest*
14359 eval "ac_cv_lib_$ac_lib_var=yes"
14360else
14361 echo "configure: failed program was:" >&5
14362 cat conftest.$ac_ext >&5
14363 rm -rf conftest*
14364 eval "ac_cv_lib_$ac_lib_var=no"
14365fi
14366rm -f conftest*
14367LIBS="$ac_save_LIBS"
14368
14369fi
14370if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14371 echo "$ac_t""yes" 1>&6
14372 cat >> confdefs.h <<\EOF
c63c7106 14373#define HAVE_INET_ATON 1
10f2d63a
VZ
14374EOF
14375
698dcdb6
VZ
14376else
14377 echo "$ac_t""no" 1>&6
10f2d63a
VZ
14378fi
14379
698dcdb6 14380
c63c7106
VZ
14381fi
14382done
14383
698dcdb6 14384
c63c7106 14385if test "x$INET_LINK" != "x"; then
698dcdb6 14386 cat >> confdefs.h <<\EOF
c63c7106
VZ
14387#define HAVE_INET_ADDR 1
14388EOF
14389
14390 INET_LINK="-l$INET_LINK"
14391fi
10f2d63a
VZ
14392
14393fi
14394
698dcdb6
VZ
14395
14396cat > confcache <<\EOF
10f2d63a
VZ
14397# This file is a shell script that caches the results of configure
14398# tests run on this system so they can be shared between configure
698dcdb6
VZ
14399# scripts and configure runs. It is not useful on other systems.
14400# If it contains results you don't want to keep, you may remove or edit it.
10f2d63a 14401#
698dcdb6
VZ
14402# By default, configure uses ./config.cache as the cache file,
14403# creating it if it does not exist already. You can give configure
14404# the --cache-file=FILE option to use a different cache file; that is
14405# what configure does when it calls configure scripts in
14406# subdirectories, so they share the cache.
14407# Giving --cache-file=/dev/null disables caching, for debugging configure.
14408# config.status only pays attention to the cache file if you give it the
14409# --recheck option to rerun configure.
10f2d63a 14410#
698dcdb6 14411EOF
10f2d63a
VZ
14412# The following way of writing the cache mishandles newlines in values,
14413# but we know of no workaround that is simple, portable, and efficient.
14414# So, don't put newlines in cache variables' values.
14415# Ultrix sh set writes to stderr and can't be redirected directly,
14416# and sets the high bit in the cache file unless we assign to the vars.
698dcdb6
VZ
14417(set) 2>&1 |
14418 case `(ac_space=' '; set | grep ac_space) 2>&1` in
14419 *ac_space=\ *)
14420 # `set' does not quote correctly, so add quotes (double-quote substitution
14421 # turns \\\\ into \\, and sed turns \\ into \).
14422 sed -n \
14423 -e "s/'/'\\\\''/g" \
14424 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
14425 ;;
14426 *)
14427 # `set' quotes correctly as required by POSIX, so do not add quotes.
14428 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
14429 ;;
14430 esac >> confcache
14431if cmp -s $cache_file confcache; then
14432 :
14433else
10f2d63a 14434 if test -w $cache_file; then
698dcdb6
VZ
14435 echo "updating cache $cache_file"
14436 cat confcache > $cache_file
10f2d63a
VZ
14437 else
14438 echo "not updating unwritable cache $cache_file"
14439 fi
14440fi
14441rm -f confcache
14442
698dcdb6
VZ
14443
14444
b089607b 14445if test "$TOOLKIT" != "MSW"; then
10f2d63a 14446
698dcdb6 14447
3a922bb4
RL
14448THREADS_LINK=
14449THREADS_OBJ=
14450CODE_GEN_FLAGS=
14451CODE_GEN_FLAGS_CXX=
10f2d63a
VZ
14452
14453if test "$wxUSE_THREADS" = "yes" ; then
14454 if test "$wxUSE_WINE" = 1 ; then
698dcdb6 14455 echo "configure: warning: Threads are not supported under WINE" 1>&2
10f2d63a 14456 wxUSE_THREADS="no"
b12915c1 14457 elif test "$USE_BEOS" = 1; then
698dcdb6 14458 echo "configure: warning: BeOS threads are not yet supported" 1>&2
b12915c1 14459 wxUSE_THREADS="no"
10f2d63a
VZ
14460 fi
14461fi
14462
14463if test "$wxUSE_THREADS" = "yes" ; then
698dcdb6 14464
186837b0 14465 if test "$USE_AIX" = 1; then
f6bcfd97
BP
14466 THREADS_LIB=pthreads
14467 else
14468 THREADS_LIB=pthread
14469 fi
14470
698dcdb6 14471 echo $ac_n "checking for pthread_create in -l$THREADS_LIB""... $ac_c" 1>&6
b3e8d00a 14472echo "configure:14473: checking for pthread_create in -l$THREADS_LIB" >&5
698dcdb6
VZ
14473ac_lib_var=`echo $THREADS_LIB'_'pthread_create | sed 'y%./+-%__p_%'`
14474if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14475 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 14476else
698dcdb6 14477 ac_save_LIBS="$LIBS"
f6bcfd97 14478LIBS="-l$THREADS_LIB $LIBS"
698dcdb6 14479cat > conftest.$ac_ext <<EOF
b3e8d00a 14480#line 14481 "configure"
10f2d63a
VZ
14481#include "confdefs.h"
14482/* Override any gcc2 internal prototype to avoid an error. */
14483/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
14484 builtin and then its argument prototype would still apply. */
14485char pthread_create();
14486
14487int main() {
14488pthread_create()
14489; return 0; }
14490EOF
b3e8d00a 14491if { (eval echo configure:14492: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
14492 rm -rf conftest*
14493 eval "ac_cv_lib_$ac_lib_var=yes"
14494else
14495 echo "configure: failed program was:" >&5
14496 cat conftest.$ac_ext >&5
14497 rm -rf conftest*
14498 eval "ac_cv_lib_$ac_lib_var=no"
14499fi
14500rm -f conftest*
14501LIBS="$ac_save_LIBS"
10f2d63a 14502
698dcdb6
VZ
14503fi
14504if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14505 echo "$ac_t""yes" 1>&6
14506
10f2d63a 14507 THREADS_OBJ="threadpsx.lo"
f6bcfd97 14508 THREADS_LINK=$THREADS_LIB
698dcdb6 14509
10f2d63a 14510else
698dcdb6 14511 echo "$ac_t""no" 1>&6
10f2d63a 14512
698dcdb6 14513 echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6
b3e8d00a 14514echo "configure:14515: checking for pthread_create in -lc_r" >&5
698dcdb6
VZ
14515ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'`
14516if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14517 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 14518else
698dcdb6 14519 ac_save_LIBS="$LIBS"
10f2d63a 14520LIBS="-lc_r $LIBS"
698dcdb6 14521cat > conftest.$ac_ext <<EOF
b3e8d00a 14522#line 14523 "configure"
10f2d63a
VZ
14523#include "confdefs.h"
14524/* Override any gcc2 internal prototype to avoid an error. */
14525/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
14526 builtin and then its argument prototype would still apply. */
14527char pthread_create();
14528
14529int main() {
14530pthread_create()
14531; return 0; }
14532EOF
b3e8d00a 14533if { (eval echo configure:14534: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
14534 rm -rf conftest*
14535 eval "ac_cv_lib_$ac_lib_var=yes"
14536else
14537 echo "configure: failed program was:" >&5
14538 cat conftest.$ac_ext >&5
14539 rm -rf conftest*
14540 eval "ac_cv_lib_$ac_lib_var=no"
14541fi
14542rm -f conftest*
14543LIBS="$ac_save_LIBS"
10f2d63a 14544
698dcdb6
VZ
14545fi
14546if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14547 echo "$ac_t""yes" 1>&6
14548
10f2d63a
VZ
14549 THREADS_OBJ="threadpsx.lo"
14550 THREADS_LINK="c_r"
698dcdb6 14551
10f2d63a 14552else
698dcdb6 14553 echo "$ac_t""no" 1>&6
10f2d63a 14554
698dcdb6
VZ
14555 ac_safe=`echo "sys/prctl.h" | sed 'y%./+-%__p_%'`
14556echo $ac_n "checking for sys/prctl.h""... $ac_c" 1>&6
b3e8d00a 14557echo "configure:14558: checking for sys/prctl.h" >&5
698dcdb6
VZ
14558if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
14559 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 14560else
698dcdb6 14561 cat > conftest.$ac_ext <<EOF
b3e8d00a 14562#line 14563 "configure"
10f2d63a
VZ
14563#include "confdefs.h"
14564#include <sys/prctl.h>
698dcdb6
VZ
14565EOF
14566ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
b3e8d00a 14567{ (eval echo configure:14568: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
14568ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14569if test -z "$ac_err"; then
14570 rm -rf conftest*
14571 eval "ac_cv_header_$ac_safe=yes"
1e487827 14572else
698dcdb6
VZ
14573 echo "$ac_err" >&5
14574 echo "configure: failed program was:" >&5
10f2d63a 14575 cat conftest.$ac_ext >&5
698dcdb6
VZ
14576 rm -rf conftest*
14577 eval "ac_cv_header_$ac_safe=no"
10f2d63a 14578fi
698dcdb6 14579rm -f conftest*
10f2d63a 14580fi
698dcdb6
VZ
14581if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14582 echo "$ac_t""yes" 1>&6
14583
1f8ae82f 14584 THREADS_OBJ="threadsgi.lo"
698dcdb6
VZ
14585
14586else
14587 echo "$ac_t""no" 1>&6
10f2d63a
VZ
14588fi
14589
698dcdb6 14590
6232543b 14591fi
10f2d63a 14592
698dcdb6 14593
1e487827 14594fi
703e0a69 14595
698dcdb6 14596
10f2d63a
VZ
14597 if test -z "$THREADS_OBJ" ; then
14598 wxUSE_THREADS=no
698dcdb6 14599 echo "configure: warning: No thread support on this system" 1>&2
10f2d63a
VZ
14600 fi
14601fi
14602
14603if test "$wxUSE_THREADS" = "yes" ; then
698dcdb6 14604 for ac_func in thr_setconcurrency
70846f0a 14605do
698dcdb6 14606echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
b3e8d00a 14607echo "configure:14608: checking for $ac_func" >&5
698dcdb6
VZ
14608if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14609 echo $ac_n "(cached) $ac_c" 1>&6
14610else
14611 cat > conftest.$ac_ext <<EOF
b3e8d00a 14612#line 14613 "configure"
70846f0a
VZ
14613#include "confdefs.h"
14614/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 14615 which can conflict with char $ac_func(); below. */
70846f0a
VZ
14616#include <assert.h>
14617/* Override any gcc2 internal prototype to avoid an error. */
14618/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
14619 builtin and then its argument prototype would still apply. */
14620char $ac_func();
14621
14622int main() {
70846f0a
VZ
14623
14624/* The GNU C library defines this for functions which it implements
14625 to always fail with ENOSYS. Some functions are actually named
14626 something starting with __ and the normal name is an alias. */
14627#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14628choke me
14629#else
698dcdb6 14630$ac_func();
70846f0a
VZ
14631#endif
14632
698dcdb6 14633; return 0; }
70846f0a 14634EOF
b3e8d00a 14635if { (eval echo configure:14636: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
14636 rm -rf conftest*
14637 eval "ac_cv_func_$ac_func=yes"
14638else
14639 echo "configure: failed program was:" >&5
14640 cat conftest.$ac_ext >&5
14641 rm -rf conftest*
14642 eval "ac_cv_func_$ac_func=no"
14643fi
14644rm -f conftest*
14645fi
70846f0a 14646
698dcdb6
VZ
14647if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14648 echo "$ac_t""yes" 1>&6
14649 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14650 cat >> confdefs.h <<EOF
14651#define $ac_tr_func 1
14652EOF
14653
14654else
14655 echo "$ac_t""no" 1>&6
70846f0a
VZ
14656fi
14657done
14658
698dcdb6
VZ
14659
14660
14661 for ac_hdr in sched.h
10f2d63a 14662do
698dcdb6
VZ
14663ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
14664echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
b3e8d00a 14665echo "configure:14666: checking for $ac_hdr" >&5
698dcdb6
VZ
14666if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
14667 echo $ac_n "(cached) $ac_c" 1>&6
14668else
14669 cat > conftest.$ac_ext <<EOF
b3e8d00a 14670#line 14671 "configure"
10f2d63a 14671#include "confdefs.h"
698dcdb6
VZ
14672#include <$ac_hdr>
14673EOF
14674ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
b3e8d00a 14675{ (eval echo configure:14676: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
14676ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14677if test -z "$ac_err"; then
14678 rm -rf conftest*
14679 eval "ac_cv_header_$ac_safe=yes"
1e487827 14680else
698dcdb6
VZ
14681 echo "$ac_err" >&5
14682 echo "configure: failed program was:" >&5
10f2d63a 14683 cat conftest.$ac_ext >&5
698dcdb6
VZ
14684 rm -rf conftest*
14685 eval "ac_cv_header_$ac_safe=no"
10f2d63a 14686fi
698dcdb6 14687rm -f conftest*
10f2d63a 14688fi
698dcdb6
VZ
14689if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14690 echo "$ac_t""yes" 1>&6
14691 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
14692 cat >> confdefs.h <<EOF
14693#define $ac_tr_hdr 1
10f2d63a 14694EOF
698dcdb6
VZ
14695
14696else
14697 echo "$ac_t""no" 1>&6
10f2d63a
VZ
14698fi
14699done
14700
698dcdb6
VZ
14701
14702 echo $ac_n "checking for sched_yield in -l$THREADS_LINK""... $ac_c" 1>&6
b3e8d00a 14703echo "configure:14704: checking for sched_yield in -l$THREADS_LINK" >&5
698dcdb6
VZ
14704ac_lib_var=`echo $THREADS_LINK'_'sched_yield | sed 'y%./+-%__p_%'`
14705if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14706 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 14707else
698dcdb6 14708 ac_save_LIBS="$LIBS"
10f2d63a 14709LIBS="-l$THREADS_LINK $LIBS"
698dcdb6 14710cat > conftest.$ac_ext <<EOF
b3e8d00a 14711#line 14712 "configure"
10f2d63a
VZ
14712#include "confdefs.h"
14713/* Override any gcc2 internal prototype to avoid an error. */
14714/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
14715 builtin and then its argument prototype would still apply. */
14716char sched_yield();
14717
14718int main() {
14719sched_yield()
14720; return 0; }
14721EOF
b3e8d00a 14722if { (eval echo configure:14723: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
14723 rm -rf conftest*
14724 eval "ac_cv_lib_$ac_lib_var=yes"
14725else
14726 echo "configure: failed program was:" >&5
14727 cat conftest.$ac_ext >&5
14728 rm -rf conftest*
14729 eval "ac_cv_lib_$ac_lib_var=no"
14730fi
14731rm -f conftest*
14732LIBS="$ac_save_LIBS"
14733
14734fi
14735if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14736 echo "$ac_t""yes" 1>&6
14737 cat >> confdefs.h <<\EOF
10f2d63a
VZ
14738#define HAVE_SCHED_YIELD 1
14739EOF
14740
14741else
698dcdb6
VZ
14742 echo "$ac_t""no" 1>&6
14743echo $ac_n "checking for sched_yield in -lposix4""... $ac_c" 1>&6
b3e8d00a 14744echo "configure:14745: checking for sched_yield in -lposix4" >&5
698dcdb6
VZ
14745ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'`
14746if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14747 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 14748else
698dcdb6 14749 ac_save_LIBS="$LIBS"
1e487827 14750LIBS="-lposix4 $LIBS"
698dcdb6 14751cat > conftest.$ac_ext <<EOF
b3e8d00a 14752#line 14753 "configure"
10f2d63a
VZ
14753#include "confdefs.h"
14754/* Override any gcc2 internal prototype to avoid an error. */
14755/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
14756 builtin and then its argument prototype would still apply. */
14757char sched_yield();
14758
14759int main() {
14760sched_yield()
14761; return 0; }
14762EOF
b3e8d00a 14763if { (eval echo configure:14764: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
14764 rm -rf conftest*
14765 eval "ac_cv_lib_$ac_lib_var=yes"
14766else
14767 echo "configure: failed program was:" >&5
14768 cat conftest.$ac_ext >&5
14769 rm -rf conftest*
14770 eval "ac_cv_lib_$ac_lib_var=no"
14771fi
14772rm -f conftest*
14773LIBS="$ac_save_LIBS"
14774
14775fi
14776if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14777 echo "$ac_t""yes" 1>&6
14778 cat >> confdefs.h <<\EOF
10f2d63a
VZ
14779#define HAVE_SCHED_YIELD 1
14780EOF
14781 POSIX4_LINK="-lposix4"
14782else
698dcdb6
VZ
14783 echo "$ac_t""no" 1>&6
14784echo "configure: warning: wxThread::Yield will not work properly" 1>&2
14785
6232543b 14786fi
10f2d63a 14787
698dcdb6 14788
1e487827 14789fi
703e0a69 14790
698dcdb6 14791
f6bcfd97 14792 HAVE_PRIOR_FUNCS=0
698dcdb6 14793 echo $ac_n "checking for pthread_attr_getschedpolicy in -l$THREADS_LINK""... $ac_c" 1>&6
b3e8d00a 14794echo "configure:14795: checking for pthread_attr_getschedpolicy in -l$THREADS_LINK" >&5
698dcdb6
VZ
14795ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_getschedpolicy | sed 'y%./+-%__p_%'`
14796if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14797 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 14798else
698dcdb6 14799 ac_save_LIBS="$LIBS"
10f2d63a 14800LIBS="-l$THREADS_LINK $LIBS"
698dcdb6 14801cat > conftest.$ac_ext <<EOF
b3e8d00a 14802#line 14803 "configure"
10f2d63a
VZ
14803#include "confdefs.h"
14804/* Override any gcc2 internal prototype to avoid an error. */
14805/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
14806 builtin and then its argument prototype would still apply. */
14807char pthread_attr_getschedpolicy();
14808
14809int main() {
14810pthread_attr_getschedpolicy()
14811; return 0; }
14812EOF
b3e8d00a 14813if { (eval echo configure:14814: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
14814 rm -rf conftest*
14815 eval "ac_cv_lib_$ac_lib_var=yes"
14816else
14817 echo "configure: failed program was:" >&5
14818 cat conftest.$ac_ext >&5
14819 rm -rf conftest*
14820 eval "ac_cv_lib_$ac_lib_var=no"
14821fi
14822rm -f conftest*
14823LIBS="$ac_save_LIBS"
14824
14825fi
14826if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14827 echo "$ac_t""yes" 1>&6
14828 echo $ac_n "checking for pthread_attr_setschedparam in -l$THREADS_LINK""... $ac_c" 1>&6
b3e8d00a 14829echo "configure:14830: checking for pthread_attr_setschedparam in -l$THREADS_LINK" >&5
698dcdb6
VZ
14830ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_setschedparam | sed 'y%./+-%__p_%'`
14831if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14832 echo $ac_n "(cached) $ac_c" 1>&6
14833else
14834 ac_save_LIBS="$LIBS"
f6bcfd97 14835LIBS="-l$THREADS_LINK $LIBS"
698dcdb6 14836cat > conftest.$ac_ext <<EOF
b3e8d00a 14837#line 14838 "configure"
f6bcfd97
BP
14838#include "confdefs.h"
14839/* Override any gcc2 internal prototype to avoid an error. */
14840/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
14841 builtin and then its argument prototype would still apply. */
14842char pthread_attr_setschedparam();
14843
14844int main() {
14845pthread_attr_setschedparam()
14846; return 0; }
14847EOF
b3e8d00a 14848if { (eval echo configure:14849: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
14849 rm -rf conftest*
14850 eval "ac_cv_lib_$ac_lib_var=yes"
14851else
14852 echo "configure: failed program was:" >&5
14853 cat conftest.$ac_ext >&5
14854 rm -rf conftest*
14855 eval "ac_cv_lib_$ac_lib_var=no"
14856fi
14857rm -f conftest*
14858LIBS="$ac_save_LIBS"
14859
14860fi
14861if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14862 echo "$ac_t""yes" 1>&6
14863 echo $ac_n "checking for sched_get_priority_max in -l$THREADS_LINK""... $ac_c" 1>&6
b3e8d00a 14864echo "configure:14865: checking for sched_get_priority_max in -l$THREADS_LINK" >&5
698dcdb6
VZ
14865ac_lib_var=`echo $THREADS_LINK'_'sched_get_priority_max | sed 'y%./+-%__p_%'`
14866if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14867 echo $ac_n "(cached) $ac_c" 1>&6
14868else
14869 ac_save_LIBS="$LIBS"
f6bcfd97 14870LIBS="-l$THREADS_LINK $LIBS"
698dcdb6 14871cat > conftest.$ac_ext <<EOF
b3e8d00a 14872#line 14873 "configure"
f6bcfd97
BP
14873#include "confdefs.h"
14874/* Override any gcc2 internal prototype to avoid an error. */
14875/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
14876 builtin and then its argument prototype would still apply. */
14877char sched_get_priority_max();
14878
14879int main() {
14880sched_get_priority_max()
14881; return 0; }
14882EOF
b3e8d00a 14883if { (eval echo configure:14884: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
14884 rm -rf conftest*
14885 eval "ac_cv_lib_$ac_lib_var=yes"
14886else
14887 echo "configure: failed program was:" >&5
14888 cat conftest.$ac_ext >&5
14889 rm -rf conftest*
14890 eval "ac_cv_lib_$ac_lib_var=no"
14891fi
14892rm -f conftest*
14893LIBS="$ac_save_LIBS"
14894
14895fi
14896if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14897 echo "$ac_t""yes" 1>&6
f6bcfd97 14898 HAVE_PRIOR_FUNCS=1
10f2d63a 14899else
698dcdb6
VZ
14900 echo "$ac_t""no" 1>&6
14901echo $ac_n "checking for sched_get_priority_max in -lposix4""... $ac_c" 1>&6
b3e8d00a 14902echo "configure:14903: checking for sched_get_priority_max in -lposix4" >&5
698dcdb6
VZ
14903ac_lib_var=`echo posix4'_'sched_get_priority_max | sed 'y%./+-%__p_%'`
14904if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14905 echo $ac_n "(cached) $ac_c" 1>&6
1e487827 14906else
698dcdb6 14907 ac_save_LIBS="$LIBS"
1e487827 14908LIBS="-lposix4 $LIBS"
698dcdb6 14909cat > conftest.$ac_ext <<EOF
b3e8d00a 14910#line 14911 "configure"
10f2d63a 14911#include "confdefs.h"
6232543b 14912/* Override any gcc2 internal prototype to avoid an error. */
6232543b 14913/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
14914 builtin and then its argument prototype would still apply. */
14915char sched_get_priority_max();
14916
14917int main() {
14918sched_get_priority_max()
14919; return 0; }
14920EOF
b3e8d00a 14921if { (eval echo configure:14922: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
14922 rm -rf conftest*
14923 eval "ac_cv_lib_$ac_lib_var=yes"
14924else
14925 echo "configure: failed program was:" >&5
14926 cat conftest.$ac_ext >&5
14927 rm -rf conftest*
14928 eval "ac_cv_lib_$ac_lib_var=no"
14929fi
14930rm -f conftest*
14931LIBS="$ac_save_LIBS"
10f2d63a 14932
698dcdb6
VZ
14933fi
14934if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14935 echo "$ac_t""yes" 1>&6
14936
f6bcfd97
BP
14937 HAVE_PRIOR_FUNCS=1
14938 POSIX4_LINK="-lposix4"
698dcdb6
VZ
14939
14940else
14941 echo "$ac_t""no" 1>&6
10f2d63a
VZ
14942fi
14943
698dcdb6 14944
10f2d63a
VZ
14945fi
14946
698dcdb6
VZ
14947
14948else
14949 echo "$ac_t""no" 1>&6
6232543b 14950fi
10f2d63a 14951
698dcdb6
VZ
14952
14953else
14954 echo "$ac_t""no" 1>&6
1e487827 14955fi
703e0a69 14956
698dcdb6 14957
f6bcfd97 14958 if test "$HAVE_PRIOR_FUNCS" = 1; then
698dcdb6 14959 cat >> confdefs.h <<\EOF
f6bcfd97
BP
14960#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
14961EOF
14962
14963 else
698dcdb6 14964 echo "configure: warning: Setting thread priority will not work" 1>&2
f6bcfd97
BP
14965 fi
14966
698dcdb6 14967 echo $ac_n "checking for pthread_cancel in -l$THREADS_LINK""... $ac_c" 1>&6
b3e8d00a 14968echo "configure:14969: checking for pthread_cancel in -l$THREADS_LINK" >&5
698dcdb6
VZ
14969ac_lib_var=`echo $THREADS_LINK'_'pthread_cancel | sed 'y%./+-%__p_%'`
14970if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14971 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 14972else
698dcdb6 14973 ac_save_LIBS="$LIBS"
10f2d63a 14974LIBS="-l$THREADS_LINK $LIBS"
698dcdb6 14975cat > conftest.$ac_ext <<EOF
b3e8d00a 14976#line 14977 "configure"
10f2d63a
VZ
14977#include "confdefs.h"
14978/* Override any gcc2 internal prototype to avoid an error. */
14979/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
14980 builtin and then its argument prototype would still apply. */
14981char pthread_cancel();
14982
14983int main() {
14984pthread_cancel()
14985; return 0; }
14986EOF
b3e8d00a 14987if { (eval echo configure:14988: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
14988 rm -rf conftest*
14989 eval "ac_cv_lib_$ac_lib_var=yes"
14990else
14991 echo "configure: failed program was:" >&5
14992 cat conftest.$ac_ext >&5
14993 rm -rf conftest*
14994 eval "ac_cv_lib_$ac_lib_var=no"
14995fi
14996rm -f conftest*
14997LIBS="$ac_save_LIBS"
14998
14999fi
15000if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15001 echo "$ac_t""yes" 1>&6
15002 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15003#define HAVE_PTHREAD_CANCEL 1
15004EOF
15005
15006else
698dcdb6
VZ
15007 echo "$ac_t""no" 1>&6
15008echo "configure: warning: wxThread::Kill() will not work properly" 1>&2
10f2d63a
VZ
15009fi
15010
1e487827 15011
698dcdb6 15012 echo $ac_n "checking for pthread_cleanup_push/pop""... $ac_c" 1>&6
b3e8d00a 15013echo "configure:15014: checking for pthread_cleanup_push/pop" >&5
698dcdb6
VZ
15014if eval "test \"`echo '$''{'wx_cv_func_pthread_cleanup_push'+set}'`\" = set"; then
15015 echo $ac_n "(cached) $ac_c" 1>&6
15016else
15017
15018 cat > conftest.$ac_ext <<EOF
b3e8d00a 15019#line 15020 "configure"
10f2d63a
VZ
15020#include "confdefs.h"
15021#include <pthread.h>
698dcdb6 15022int main() {
10f2d63a
VZ
15023
15024 pthread_cleanup_push(NULL, NULL);
15025 pthread_cleanup_pop(0);
698dcdb6
VZ
15026
15027; return 0; }
15028EOF
b3e8d00a 15029if { (eval echo configure:15030: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
15030 rm -rf conftest*
15031
10f2d63a 15032 wx_cv_func_pthread_cleanup_push=yes
698dcdb6 15033
10f2d63a 15034else
698dcdb6
VZ
15035 echo "configure: failed program was:" >&5
15036 cat conftest.$ac_ext >&5
15037 rm -rf conftest*
15038
10f2d63a 15039 wx_cv_func_pthread_cleanup_push=no
698dcdb6 15040
6232543b 15041fi
698dcdb6
VZ
15042rm -f conftest*
15043
1e487827 15044fi
698dcdb6
VZ
15045
15046echo "$ac_t""$wx_cv_func_pthread_cleanup_push" 1>&6
10f2d63a 15047
d9b9876f 15048 if test "$wx_cv_func_pthread_cleanup_push" = "yes"; then
698dcdb6 15049 cat >> confdefs.h <<\EOF
d9b9876f
VZ
15050#define HAVE_THREAD_CLEANUP_FUNCTIONS 1
15051EOF
15052
15053 fi
15054
698dcdb6 15055
b48da802
VZ
15056 if test "x$wx_lib_glibc21" = "xyes"; then
15057 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
ab252f7b
VZ
15058 fi
15059
698dcdb6 15060 echo $ac_n "checking for pthread_mutexattr_t""... $ac_c" 1>&6
b3e8d00a 15061echo "configure:15062: checking for pthread_mutexattr_t" >&5
698dcdb6
VZ
15062if eval "test \"`echo '$''{'wx_cv_type_pthread_mutexattr_t'+set}'`\" = set"; then
15063 echo $ac_n "(cached) $ac_c" 1>&6
d9b9876f 15064else
698dcdb6
VZ
15065
15066 cat > conftest.$ac_ext <<EOF
b3e8d00a 15067#line 15068 "configure"
d9b9876f
VZ
15068#include "confdefs.h"
15069#include <pthread.h>
698dcdb6 15070int main() {
d9b9876f
VZ
15071
15072 pthread_mutexattr_t attr;
15073 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
698dcdb6
VZ
15074
15075; return 0; }
15076EOF
b3e8d00a 15077if { (eval echo configure:15078: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
15078 rm -rf conftest*
15079
d9b9876f 15080 wx_cv_type_pthread_mutexattr_t=yes
698dcdb6 15081
d9b9876f 15082else
698dcdb6
VZ
15083 echo "configure: failed program was:" >&5
15084 cat conftest.$ac_ext >&5
15085 rm -rf conftest*
15086
d9b9876f 15087 wx_cv_type_pthread_mutexattr_t=no
698dcdb6
VZ
15088
15089
6232543b 15090fi
698dcdb6
VZ
15091rm -f conftest*
15092
1e487827 15093fi
698dcdb6
VZ
15094
15095echo "$ac_t""$wx_cv_type_pthread_mutexattr_t" 1>&6
d9b9876f
VZ
15096
15097 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
698dcdb6 15098 cat >> confdefs.h <<\EOF
d9b9876f
VZ
15099#define HAVE_PTHREAD_MUTEXATTR_T 1
15100EOF
15101
15102 else
698dcdb6 15103 echo $ac_n "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER""... $ac_c" 1>&6
b3e8d00a 15104echo "configure:15105: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
698dcdb6
VZ
15105if eval "test \"`echo '$''{'wx_cv_type_pthread_rec_mutex_init'+set}'`\" = set"; then
15106 echo $ac_n "(cached) $ac_c" 1>&6
15107else
15108
15109 cat > conftest.$ac_ext <<EOF
b3e8d00a 15110#line 15111 "configure"
d9b9876f
VZ
15111#include "confdefs.h"
15112#include <pthread.h>
698dcdb6 15113int main() {
d9b9876f
VZ
15114
15115 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
698dcdb6
VZ
15116
15117; return 0; }
15118EOF
b3e8d00a 15119if { (eval echo configure:15120: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
15120 rm -rf conftest*
15121
d9b9876f 15122 wx_cv_type_pthread_rec_mutex_init=yes
698dcdb6 15123
d9b9876f 15124else
698dcdb6
VZ
15125 echo "configure: failed program was:" >&5
15126 cat conftest.$ac_ext >&5
15127 rm -rf conftest*
15128
d9b9876f 15129 wx_cv_type_pthread_rec_mutex_init=no
698dcdb6
VZ
15130
15131
6232543b 15132fi
698dcdb6
VZ
15133rm -f conftest*
15134
1e487827 15135fi
698dcdb6
VZ
15136
15137echo "$ac_t""$wx_cv_type_pthread_rec_mutex_init" 1>&6
3765e936 15138 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
698dcdb6 15139 cat >> confdefs.h <<\EOF
d9b9876f
VZ
15140#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
15141EOF
15142
15143 else
698dcdb6 15144 echo "configure: warning: wxMutex won't be recursive on this platform" 1>&2
d9b9876f
VZ
15145 fi
15146 fi
15147
10f2d63a 15148 THREADS_LINK="-l$THREADS_LINK"
186837b0
VZ
15149
15150 if test "$USE_SOLARIS" = "yes" -a "$GCC" != "yes"; then
a3cb1afc 15151 CPPFLAGS="${CFLAGS} -mt"
186837b0
VZ
15152 CXXFLAGS="${CXXFLAGS} -mt"
15153 LDFLAGS="${LDFLAGS} -mt"
15154 fi
10f2d63a
VZ
15155fi
15156
15157fi
15158
15159if test "$wxUSE_THREADS" = "yes"; then
698dcdb6 15160 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15161#define wxUSE_THREADS 1
15162EOF
15163
698dcdb6 15164
7b6058cd 15165 if test "$USE_DARWIN" != 1; then
3a922bb4 15166 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT"
2c6025bc 15167 fi
10f2d63a
VZ
15168
15169 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
15170else
15171 if test "$ac_cv_func_strtok_r" = "yes"; then
698dcdb6 15172 echo $ac_n "checking if -D_REENTRANT is needed""... $ac_c" 1>&6
b3e8d00a 15173echo "configure:15174: checking if -D_REENTRANT is needed" >&5
ab9b9eab 15174 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
3a922bb4 15175 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT"
698dcdb6 15176 echo "$ac_t""yes" 1>&6
ab9b9eab 15177 else
698dcdb6 15178 echo "$ac_t""no" 1>&6
10f2d63a
VZ
15179 fi
15180 fi
15181fi
15182
6f72b082 15183if test "$WXGTK20" = 1 ; then
698dcdb6 15184 cat >> confdefs.h <<EOF
6f72b082 15185#define __WXGTK20__ $WXGTK20
13111b2a
VZ
15186EOF
15187
15188 WXGTK12=1
15189fi
15190
10f2d63a 15191if test "$WXGTK12" = 1 ; then
698dcdb6 15192 cat >> confdefs.h <<EOF
10f2d63a
VZ
15193#define __WXGTK12__ $WXGTK12
15194EOF
15195
15196fi
15197
f6bcfd97 15198if test "$WXGTK127" = 1 ; then
698dcdb6 15199 cat >> confdefs.h <<EOF
f6bcfd97
BP
15200#define __WXGTK127__ $WXGTK127
15201EOF
15202
15203fi
15204
10f2d63a
VZ
15205WXDEBUG=
15206
15207if test "$wxUSE_DEBUG_INFO" = "yes" ; then
15208 WXDEBUG="-g"
15209 wxUSE_OPTIMISE=no
15210fi
15211
15212if test "$wxUSE_DEBUG_GDB" = "yes" ; then
15213 wxUSE_DEBUG_INFO=yes
15214 WXDEBUG="-ggdb"
15215fi
15216
15217if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
698dcdb6 15218 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15219#define WXDEBUG 1
15220EOF
15221
15222 WXDEBUG_DEFINE="-D__WXDEBUG__"
15223else
15224 if test "$wxUSE_GTK" = 1 ; then
15225 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
15226 fi
15227fi
15228
15229if test "$wxUSE_MEM_TRACING" = "yes" ; then
698dcdb6 15230 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15231#define wxUSE_MEMORY_TRACING 1
15232EOF
15233
698dcdb6 15234 cat >> confdefs.h <<\EOF
10f2d63a 15235#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
47c13eb7
VS
15236EOF
15237
698dcdb6 15238 cat >> confdefs.h <<\EOF
47c13eb7 15239#define wxUSE_DEBUG_NEW_ALWAYS 1
10f2d63a
VZ
15240EOF
15241
15242 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
15243fi
15244
15245if test "$wxUSE_DMALLOC" = "yes" ; then
15246 DMALLOC_LINK="-ldmalloc"
15247fi
15248
15249PROFILE=
15250if test "$wxUSE_PROFILE" = "yes" ; then
15251 PROFILE="-pg"
15252fi
15253
10f2d63a
VZ
15254if test "$GCC" = yes ; then
15255 if test "$wxUSE_NO_RTTI" = "yes" ; then
3a922bb4 15256 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti"
10f2d63a
VZ
15257 fi
15258 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
3a922bb4 15259 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions"
10f2d63a
VZ
15260 fi
15261 if test "$wxUSE_PERMISSIVE" = "yes" ; then
caa2c79b 15262 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
10f2d63a
VZ
15263 fi
15264 if test "$wxUSE_NO_DEPS" = "no" ; then
3a922bb4
RL
15265 CFLAGS="-MMD ${CFLAGS}"
15266 CXXFLAGS="-MMD ${CXXFLAGS}"
15267 fi
15268 if test "$USE_WIN32" = 1 ; then
15269 # I'm not even really sure what this was ever added to solve,
15270 # but someone added it for mingw native builds, so I guess
15271 # they had a reason, right??
15272 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fno-pcc-struct-return"
10f2d63a
VZ
15273 fi
15274fi
15275
698dcdb6 15276
10f2d63a
VZ
15277CXXFLAGS=`echo "${CXXFLAGS}" | sed "s/\-O.//g" `
15278CFLAGS=`echo "${CFLAGS}" | sed "s/\-O.//g" `
15279if test "$wxUSE_OPTIMISE" = "no" ; then
15280 OPTIMISE=
15281else
15282 if test "$GCC" = yes ; then
15283 OPTIMISE="-O2"
15284 case "${host}" in
15285 i586-*-*|i686-*-* )
15286 OPTIMISE="${OPTIMISE} "
15287 ;;
15288 esac
15289 else
15290 OPTIMISE="-O"
15291 fi
15292fi
15293
54276ccf
VZ
15294if test "$WXWIN_COMPATIBILITY_2" = "yes"; then
15295 cat >> confdefs.h <<\EOF
15296#define WXWIN_COMPATIBILITY_2 1
15297EOF
15298
15299
15300 WXWIN_COMPATIBILITY_2_2="yes"
15301fi
15302
15303if test "$WXWIN_COMPATIBILITY_2_2" = "yes"; then
15304 cat >> confdefs.h <<\EOF
15305#define WXWIN_COMPATIBILITY_2_2 1
15306EOF
15307
15308fi
15309
698dcdb6 15310
10f2d63a 15311ZLIB_INCLUDE=
422107f9 15312if test "$wxUSE_ZLIB" = "yes" -o "$wxUSE_ZLIB" = "sys" ; then
698dcdb6 15313 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15314#define wxUSE_ZLIB 1
15315EOF
15316
422107f9
VZ
15317 if test "$wxUSE_ZLIB" = "yes" ; then
15318 ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib"
15319 else
15320 ZLIB_LINK=
698dcdb6
VZ
15321 ac_safe=`echo "zlib.h" | sed 'y%./+-%__p_%'`
15322echo $ac_n "checking for zlib.h""... $ac_c" 1>&6
b3e8d00a 15323echo "configure:15324: checking for zlib.h" >&5
698dcdb6
VZ
15324if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15325 echo $ac_n "(cached) $ac_c" 1>&6
15326else
15327 cat > conftest.$ac_ext <<EOF
b3e8d00a 15328#line 15329 "configure"
422107f9
VZ
15329#include "confdefs.h"
15330#include <zlib.h>
698dcdb6
VZ
15331EOF
15332ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
b3e8d00a 15333{ (eval echo configure:15334: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
15334ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15335if test -z "$ac_err"; then
15336 rm -rf conftest*
15337 eval "ac_cv_header_$ac_safe=yes"
422107f9 15338else
698dcdb6
VZ
15339 echo "$ac_err" >&5
15340 echo "configure: failed program was:" >&5
422107f9 15341 cat conftest.$ac_ext >&5
698dcdb6
VZ
15342 rm -rf conftest*
15343 eval "ac_cv_header_$ac_safe=no"
422107f9 15344fi
698dcdb6 15345rm -f conftest*
422107f9 15346fi
698dcdb6
VZ
15347if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15348 echo "$ac_t""yes" 1>&6
15349 echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
b3e8d00a 15350echo "configure:15351: checking for deflate in -lz" >&5
698dcdb6
VZ
15351ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
15352if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15353 echo $ac_n "(cached) $ac_c" 1>&6
422107f9 15354else
698dcdb6 15355 ac_save_LIBS="$LIBS"
422107f9 15356LIBS="-lz $LIBS"
698dcdb6 15357cat > conftest.$ac_ext <<EOF
b3e8d00a 15358#line 15359 "configure"
422107f9
VZ
15359#include "confdefs.h"
15360/* Override any gcc2 internal prototype to avoid an error. */
15361/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
15362 builtin and then its argument prototype would still apply. */
15363char deflate();
15364
15365int main() {
15366deflate()
15367; return 0; }
15368EOF
b3e8d00a 15369if { (eval echo configure:15370: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
15370 rm -rf conftest*
15371 eval "ac_cv_lib_$ac_lib_var=yes"
15372else
15373 echo "configure: failed program was:" >&5
15374 cat conftest.$ac_ext >&5
15375 rm -rf conftest*
15376 eval "ac_cv_lib_$ac_lib_var=no"
15377fi
15378rm -f conftest*
15379LIBS="$ac_save_LIBS"
15380
15381fi
15382if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15383 echo "$ac_t""yes" 1>&6
422107f9 15384 ZLIB_LINK="-lz"
698dcdb6
VZ
15385else
15386 echo "$ac_t""no" 1>&6
422107f9
VZ
15387fi
15388
698dcdb6
VZ
15389else
15390 echo "$ac_t""no" 1>&6
422107f9
VZ
15391fi
15392
15393 if test "x$ZLIB_LINK" = "x" ; then
698dcdb6 15394 { echo "configure: error: system zlib compression library not found! Use --with-zlib=yes to use built-in zlib" 1>&2; exit 1; }
422107f9
VZ
15395 fi
15396 fi
10f2d63a
VZ
15397fi
15398
15399PNG_INCLUDE=
422107f9 15400if test "$wxUSE_LIBPNG" = "yes" -o "$wxUSE_LIBPNG" = "sys" ; then
698dcdb6 15401 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15402#define wxUSE_LIBPNG 1
15403EOF
15404
41fd4136 15405 if test "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
698dcdb6 15406 echo "configure: warning: --with-libpng=sys doesn't work without --with-zlib=sys, will compile the built-in libpng instead" 1>&2
422107f9
VZ
15407 wxUSE_LIBPNG=yes
15408 fi
15409
15410 if test "$wxUSE_LIBPNG" = "yes" ; then
15411 PNG_INCLUDE="-I\${top_srcdir}/src/png"
15412 else
15413 PNG_LINK=
698dcdb6
VZ
15414 ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
15415echo $ac_n "checking for png.h""... $ac_c" 1>&6
b3e8d00a 15416echo "configure:15417: checking for png.h" >&5
698dcdb6
VZ
15417if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15418 echo $ac_n "(cached) $ac_c" 1>&6
15419else
15420 cat > conftest.$ac_ext <<EOF
b3e8d00a 15421#line 15422 "configure"
422107f9
VZ
15422#include "confdefs.h"
15423#include <png.h>
698dcdb6
VZ
15424EOF
15425ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
b3e8d00a 15426{ (eval echo configure:15427: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
15427ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15428if test -z "$ac_err"; then
15429 rm -rf conftest*
15430 eval "ac_cv_header_$ac_safe=yes"
422107f9 15431else
698dcdb6
VZ
15432 echo "$ac_err" >&5
15433 echo "configure: failed program was:" >&5
422107f9 15434 cat conftest.$ac_ext >&5
698dcdb6
VZ
15435 rm -rf conftest*
15436 eval "ac_cv_header_$ac_safe=no"
422107f9 15437fi
698dcdb6 15438rm -f conftest*
422107f9 15439fi
698dcdb6
VZ
15440if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15441 echo "$ac_t""yes" 1>&6
15442 echo $ac_n "checking for png_check_sig in -lpng""... $ac_c" 1>&6
b3e8d00a 15443echo "configure:15444: checking for png_check_sig in -lpng" >&5
698dcdb6
VZ
15444ac_lib_var=`echo png'_'png_check_sig | sed 'y%./+-%__p_%'`
15445if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15446 echo $ac_n "(cached) $ac_c" 1>&6
422107f9 15447else
698dcdb6 15448 ac_save_LIBS="$LIBS"
422107f9 15449LIBS="-lpng -lz -lm $LIBS"
698dcdb6 15450cat > conftest.$ac_ext <<EOF
b3e8d00a 15451#line 15452 "configure"
422107f9
VZ
15452#include "confdefs.h"
15453/* Override any gcc2 internal prototype to avoid an error. */
15454/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
15455 builtin and then its argument prototype would still apply. */
15456char png_check_sig();
15457
15458int main() {
15459png_check_sig()
15460; return 0; }
15461EOF
b3e8d00a 15462if { (eval echo configure:15463: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
15463 rm -rf conftest*
15464 eval "ac_cv_lib_$ac_lib_var=yes"
15465else
15466 echo "configure: failed program was:" >&5
15467 cat conftest.$ac_ext >&5
15468 rm -rf conftest*
15469 eval "ac_cv_lib_$ac_lib_var=no"
15470fi
15471rm -f conftest*
15472LIBS="$ac_save_LIBS"
15473
15474fi
15475if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15476 echo "$ac_t""yes" 1>&6
422107f9 15477 PNG_LINK="-lpng"
698dcdb6
VZ
15478else
15479 echo "$ac_t""no" 1>&6
422107f9
VZ
15480fi
15481
698dcdb6
VZ
15482
15483else
15484 echo "$ac_t""no" 1>&6
422107f9
VZ
15485fi
15486
15487 if test "x$PNG_LINK" = "x" ; then
698dcdb6 15488 { echo "configure: error: system png library not found! Use --with-libpng=yes to use the built-in libpng" 1>&2; exit 1; }
422107f9
VZ
15489 fi
15490 fi
15491
10f2d63a
VZ
15492 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
15493fi
15494
15495JPEG_INCLUDE=
422107f9 15496if test "$wxUSE_LIBJPEG" = "yes" -o "$wxUSE_LIBJPEG" = "sys" ; then
698dcdb6 15497 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15498#define wxUSE_LIBJPEG 1
15499EOF
15500
422107f9
VZ
15501 if test "$wxUSE_LIBJPEG" = "yes" ; then
15502 JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg"
15503 else
15504 JPEG_LINK=
463abc64 15505 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
b3e8d00a 15506echo "configure:15507: checking for jpeglib.h" >&5
463abc64 15507 if eval "test \"`echo '$''{'ac_cv_header_jpeglib_h'+set}'`\" = set"; then
698dcdb6
VZ
15508 echo $ac_n "(cached) $ac_c" 1>&6
15509else
15510 cat > conftest.$ac_ext <<EOF
b3e8d00a 15511#line 15512 "configure"
422107f9 15512#include "confdefs.h"
463abc64
VZ
15513
15514 #undef HAVE_STDLIB_H
15515 #include <stdio.h>
15516 #include <jpeglib.h>
15517
15518int main() {
15519
15520
15521; return 0; }
698dcdb6 15522EOF
b3e8d00a 15523if { (eval echo configure:15524: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 15524 rm -rf conftest*
463abc64 15525 ac_cv_header_jpeglib_h=yes
6232543b 15526else
698dcdb6 15527 echo "configure: failed program was:" >&5
422107f9 15528 cat conftest.$ac_ext >&5
698dcdb6 15529 rm -rf conftest*
463abc64
VZ
15530 ac_cv_header_jpeglib_h=no
15531
422107f9 15532fi
698dcdb6 15533rm -f conftest*
463abc64 15534
422107f9 15535fi
463abc64
VZ
15536
15537 echo "$ac_t""$ac_cv_header_jpeglib_h" 1>&6
15538
15539 if test "$ac_cv_header_jpeglib_h" = "yes"; then
15540 echo $ac_n "checking for jpeg_read_header in -ljpeg""... $ac_c" 1>&6
b3e8d00a 15541echo "configure:15542: checking for jpeg_read_header in -ljpeg" >&5
698dcdb6
VZ
15542ac_lib_var=`echo jpeg'_'jpeg_read_header | sed 'y%./+-%__p_%'`
15543if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15544 echo $ac_n "(cached) $ac_c" 1>&6
422107f9 15545else
698dcdb6 15546 ac_save_LIBS="$LIBS"
422107f9 15547LIBS="-ljpeg $LIBS"
698dcdb6 15548cat > conftest.$ac_ext <<EOF
b3e8d00a 15549#line 15550 "configure"
422107f9
VZ
15550#include "confdefs.h"
15551/* Override any gcc2 internal prototype to avoid an error. */
15552/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
15553 builtin and then its argument prototype would still apply. */
15554char jpeg_read_header();
15555
15556int main() {
15557jpeg_read_header()
15558; return 0; }
15559EOF
b3e8d00a 15560if { (eval echo configure:15561: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
15561 rm -rf conftest*
15562 eval "ac_cv_lib_$ac_lib_var=yes"
15563else
15564 echo "configure: failed program was:" >&5
15565 cat conftest.$ac_ext >&5
15566 rm -rf conftest*
15567 eval "ac_cv_lib_$ac_lib_var=no"
15568fi
15569rm -f conftest*
15570LIBS="$ac_save_LIBS"
15571
15572fi
15573if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15574 echo "$ac_t""yes" 1>&6
422107f9 15575 JPEG_LINK="-ljpeg"
698dcdb6
VZ
15576else
15577 echo "$ac_t""no" 1>&6
422107f9
VZ
15578fi
15579
463abc64 15580 fi
422107f9
VZ
15581
15582 if test "x$JPEG_LINK" = "x" ; then
698dcdb6 15583 { echo "configure: error: system jpeg library not found! Use --with-libjpeg=yes to use the built-in one" 1>&2; exit 1; }
422107f9
VZ
15584 fi
15585 fi
10f2d63a
VZ
15586fi
15587
c7a2bf27 15588TIFF_INCLUDE=
0dcf9893 15589if test "$wxUSE_LIBTIFF" = "yes" -o "$wxUSE_LIBTIFF" = "sys" ; then
698dcdb6 15590 cat >> confdefs.h <<\EOF
c7a2bf27
RR
15591#define wxUSE_LIBTIFF 1
15592EOF
15593
665bbe97 15594 if test "$wxUSE_LIBTIFF" = "yes" ; then
0dcf9893
VZ
15595 TIFF_INCLUDE="-I\${top_srcdir}/src/tiff"
15596 else
15597 TIFF_LINK=
698dcdb6
VZ
15598 ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
15599echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
b3e8d00a 15600echo "configure:15601: checking for tiffio.h" >&5
698dcdb6
VZ
15601if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15602 echo $ac_n "(cached) $ac_c" 1>&6
15603else
15604 cat > conftest.$ac_ext <<EOF
b3e8d00a 15605#line 15606 "configure"
0dcf9893
VZ
15606#include "confdefs.h"
15607#include <tiffio.h>
698dcdb6
VZ
15608EOF
15609ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
b3e8d00a 15610{ (eval echo configure:15611: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
15611ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15612if test -z "$ac_err"; then
15613 rm -rf conftest*
15614 eval "ac_cv_header_$ac_safe=yes"
3fed1840 15615else
698dcdb6
VZ
15616 echo "$ac_err" >&5
15617 echo "configure: failed program was:" >&5
3fed1840 15618 cat conftest.$ac_ext >&5
698dcdb6
VZ
15619 rm -rf conftest*
15620 eval "ac_cv_header_$ac_safe=no"
3fed1840 15621fi
698dcdb6 15622rm -f conftest*
3fed1840 15623fi
698dcdb6
VZ
15624if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15625 echo "$ac_t""yes" 1>&6
3a922bb4 15626 echo $ac_n "checking for TIFFError in -ltiff""... $ac_c" 1>&6
b3e8d00a 15627echo "configure:15628: checking for TIFFError in -ltiff" >&5
3a922bb4 15628ac_lib_var=`echo tiff'_'TIFFError | sed 'y%./+-%__p_%'`
698dcdb6
VZ
15629if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15630 echo $ac_n "(cached) $ac_c" 1>&6
3fed1840 15631else
698dcdb6 15632 ac_save_LIBS="$LIBS"
3a922bb4 15633LIBS="-ltiff -lm $LIBS"
698dcdb6 15634cat > conftest.$ac_ext <<EOF
b3e8d00a 15635#line 15636 "configure"
3fed1840
RR
15636#include "confdefs.h"
15637/* Override any gcc2 internal prototype to avoid an error. */
15638/* We use char because int might match the return type of a gcc2
698dcdb6 15639 builtin and then its argument prototype would still apply. */
3a922bb4 15640char TIFFError();
698dcdb6
VZ
15641
15642int main() {
3a922bb4 15643TIFFError()
698dcdb6
VZ
15644; return 0; }
15645EOF
b3e8d00a 15646if { (eval echo configure:15647: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
15647 rm -rf conftest*
15648 eval "ac_cv_lib_$ac_lib_var=yes"
15649else
15650 echo "configure: failed program was:" >&5
15651 cat conftest.$ac_ext >&5
15652 rm -rf conftest*
15653 eval "ac_cv_lib_$ac_lib_var=no"
15654fi
15655rm -f conftest*
15656LIBS="$ac_save_LIBS"
15657
15658fi
15659if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15660 echo "$ac_t""yes" 1>&6
3a922bb4 15661 TIFF_LINK="-ltiff"
698dcdb6
VZ
15662else
15663 echo "$ac_t""no" 1>&6
3fed1840
RR
15664fi
15665
698dcdb6
VZ
15666else
15667 echo "$ac_t""no" 1>&6
3fed1840
RR
15668fi
15669
3a922bb4
RL
15670 if test "x$TIFF_LINK" = "x" ; then
15671 { echo "configure: error: system tiff library not found! Use --with-libtiff=yes to use the built-in one" 1>&2; exit 1; }
3fed1840
RR
15672 fi
15673 fi
15674fi
15675
3a922bb4
RL
15676FREETYPE_INCLUDE=
15677if test "$wxUSE_FREETYPE" = "yes" -o "$wxUSE_FREETYPE" = "sys" ; then
15678 cat >> confdefs.h <<\EOF
15679#define wxUSE_FREETYPE 1
7b6058cd
GD
15680EOF
15681
3a922bb4
RL
15682 if test "$wxUSE_FREETYPE" = "yes" ; then
15683 FREETYPE_INCLUDE="-I\${top_srcdir}/src/freetype"
7b6058cd 15684 else
3a922bb4
RL
15685 FREETYPE_LINK=
15686 ac_safe=`echo "freetype.h" | sed 'y%./+-%__p_%'`
15687echo $ac_n "checking for freetype.h""... $ac_c" 1>&6
b3e8d00a 15688echo "configure:15689: checking for freetype.h" >&5
698dcdb6
VZ
15689if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15690 echo $ac_n "(cached) $ac_c" 1>&6
15691else
15692 cat > conftest.$ac_ext <<EOF
b3e8d00a 15693#line 15694 "configure"
10f2d63a 15694#include "confdefs.h"
3a922bb4 15695#include <freetype.h>
698dcdb6
VZ
15696EOF
15697ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
b3e8d00a 15698{ (eval echo configure:15699: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
15699ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15700if test -z "$ac_err"; then
15701 rm -rf conftest*
15702 eval "ac_cv_header_$ac_safe=yes"
10f2d63a 15703else
698dcdb6
VZ
15704 echo "$ac_err" >&5
15705 echo "configure: failed program was:" >&5
10f2d63a 15706 cat conftest.$ac_ext >&5
698dcdb6
VZ
15707 rm -rf conftest*
15708 eval "ac_cv_header_$ac_safe=no"
10f2d63a 15709fi
698dcdb6 15710rm -f conftest*
10f2d63a 15711fi
698dcdb6
VZ
15712if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15713 echo "$ac_t""yes" 1>&6
3a922bb4 15714 echo $ac_n "checking for FT_Render_Glyph in -lfreetype""... $ac_c" 1>&6
b3e8d00a 15715echo "configure:15716: checking for FT_Render_Glyph in -lfreetype" >&5
3a922bb4 15716ac_lib_var=`echo freetype'_'FT_Render_Glyph | sed 'y%./+-%__p_%'`
698dcdb6
VZ
15717if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15718 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 15719else
698dcdb6 15720 ac_save_LIBS="$LIBS"
3a922bb4 15721LIBS="-lfreetype -lm $LIBS"
698dcdb6 15722cat > conftest.$ac_ext <<EOF
b3e8d00a 15723#line 15724 "configure"
10f2d63a
VZ
15724#include "confdefs.h"
15725/* Override any gcc2 internal prototype to avoid an error. */
15726/* We use char because int might match the return type of a gcc2
698dcdb6 15727 builtin and then its argument prototype would still apply. */
3a922bb4 15728char FT_Render_Glyph();
698dcdb6
VZ
15729
15730int main() {
3a922bb4 15731FT_Render_Glyph()
698dcdb6
VZ
15732; return 0; }
15733EOF
b3e8d00a 15734if { (eval echo configure:15735: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
15735 rm -rf conftest*
15736 eval "ac_cv_lib_$ac_lib_var=yes"
15737else
15738 echo "configure: failed program was:" >&5
15739 cat conftest.$ac_ext >&5
15740 rm -rf conftest*
15741 eval "ac_cv_lib_$ac_lib_var=no"
15742fi
15743rm -f conftest*
15744LIBS="$ac_save_LIBS"
10f2d63a 15745
698dcdb6
VZ
15746fi
15747if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15748 echo "$ac_t""yes" 1>&6
3a922bb4 15749 FREETYPE_LINK="-lfreetype"
698dcdb6
VZ
15750else
15751 echo "$ac_t""no" 1>&6
10f2d63a
VZ
15752fi
15753
3a922bb4 15754
10f2d63a 15755else
698dcdb6 15756 echo "$ac_t""no" 1>&6
10f2d63a
VZ
15757fi
15758
3a922bb4
RL
15759 if test "x$FREETYPE_LINK" = "x" ; then
15760 { echo "configure: error: system freetype library not found! Use --with-freetype=yes to use the built-in freetype" 1>&2; exit 1; }
15761 fi
7b6058cd 15762 fi
10f2d63a
VZ
15763fi
15764
698dcdb6 15765
10f2d63a 15766if test "$wxUSE_GUI" = "yes"; then
698dcdb6 15767 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15768#define wxUSE_GUI 1
15769EOF
15770
698dcdb6 15771
10f2d63a 15772 else
698dcdb6 15773 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15774#define wxUSE_NOGUI 1
15775EOF
15776
15777fi
15778
698dcdb6 15779
10f2d63a 15780if test "$wxUSE_UNIX" = "yes"; then
698dcdb6 15781 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15782#define wxUSE_UNIX 1
15783EOF
15784
15785fi
15786
698dcdb6 15787
10f2d63a 15788if test "$wxUSE_APPLE_IEEE" = "yes"; then
698dcdb6 15789 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15790#define wxUSE_APPLE_IEEE 1
15791EOF
15792
15793fi
15794
1e6feb95
VZ
15795if test "$wxUSE_TIMER" = "yes"; then
15796 cat >> confdefs.h <<\EOF
15797#define wxUSE_TIMER 1
15798EOF
15799
15800fi
15801
10f2d63a 15802if test "$wxUSE_WAVE" = "yes"; then
698dcdb6 15803 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15804#define wxUSE_WAVE 1
15805EOF
15806
15807fi
15808
1e6feb95
VZ
15809if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
15810 cat >> confdefs.h <<\EOF
15811#define wxUSE_CMDLINE_PARSER 1
15812EOF
15813
15814fi
15815
15816if test "$wxUSE_STOPWATCH" = "yes"; then
15817 cat >> confdefs.h <<\EOF
15818#define wxUSE_STOPWATCH 1
15819EOF
15820
15821fi
15822
15823if test "$wxUSE_DATETIME" = "yes"; then
15824 cat >> confdefs.h <<\EOF
15825#define wxUSE_DATETIME 1
15826EOF
15827
15828fi
15829
15830if test "$wxUSE_TIMEDATE" = "yes"; then
15831 cat >> confdefs.h <<\EOF
15832#define wxUSE_TIMEDATE 1
15833EOF
15834
15835fi
15836
10f2d63a 15837if test "$wxUSE_FILE" = "yes"; then
698dcdb6 15838 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15839#define wxUSE_FILE 1
15840EOF
15841
15842fi
15843
1e6feb95
VZ
15844if test "$wxUSE_FFILE" = "yes"; then
15845 cat >> confdefs.h <<\EOF
15846#define wxUSE_FFILE 1
15847EOF
15848
15849fi
15850
24528b0c 15851if test "$wxUSE_FILESYSTEM" = "yes"; then
698dcdb6 15852 cat >> confdefs.h <<\EOF
24528b0c
VS
15853#define wxUSE_FILESYSTEM 1
15854EOF
15855
15856fi
15857
10f2d63a 15858if test "$wxUSE_FS_INET" = "yes"; then
698dcdb6 15859 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15860#define wxUSE_FS_INET 1
15861EOF
15862
15863fi
15864
15865if test "$wxUSE_FS_ZIP" = "yes"; then
698dcdb6 15866 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15867#define wxUSE_FS_ZIP 1
15868EOF
15869
15870fi
15871
15872if test "$wxUSE_ZIPSTREAM" = "yes"; then
698dcdb6 15873 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15874#define wxUSE_ZIPSTREAM 1
15875EOF
15876
15877fi
15878
eb4efbdc 15879if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
698dcdb6 15880 cat >> confdefs.h <<\EOF
eb4efbdc
VZ
15881#define wxUSE_ON_FATAL_EXCEPTION 1
15882EOF
15883
15884fi
15885
4f3c5f06 15886if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
698dcdb6 15887 cat >> confdefs.h <<\EOF
4f3c5f06
VZ
15888#define wxUSE_SNGLINST_CHECKER 1
15889EOF
15890
15891fi
15892
10f2d63a 15893if test "$wxUSE_BUSYINFO" = "yes"; then
698dcdb6 15894 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15895#define wxUSE_BUSYINFO 1
15896EOF
15897
15898fi
15899
15900if test "$wxUSE_STD_IOSTREAM" = "yes"; then
698dcdb6 15901 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15902#define wxUSE_STD_IOSTREAM 1
15903EOF
15904
15905fi
15906
15907if test "$wxUSE_TEXTFILE" = "yes"; then
15908 if test "$wxUSE_FILE" != "yes"; then
698dcdb6 15909 echo "configure: warning: wxTextFile requires wxFile and it won't be compiled without it" 1>&2
10f2d63a 15910 else
698dcdb6 15911 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15912#define wxUSE_TEXTFILE 1
15913EOF
15914
15915 fi
15916fi
15917
15918if test "$wxUSE_CONFIG" = "yes" ; then
15919 if test "$wxUSE_TEXTFILE" != "yes"; then
698dcdb6 15920 echo "configure: warning: wxConfig requires wxTextFile and it won't be compiled without it" 1>&2
10f2d63a 15921 else
698dcdb6 15922 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15923#define wxUSE_CONFIG 1
15924EOF
15925
15926 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
15927 fi
15928fi
15929
15930if test "$wxUSE_INTL" = "yes" ; then
15931 if test "$wxUSE_FILE" != "yes"; then
698dcdb6 15932 echo "configure: warning: I18n code requires wxFile and it won't be compiled without it" 1>&2
10f2d63a 15933 else
698dcdb6 15934 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15935#define wxUSE_INTL 1
15936EOF
15937
15938 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
f6bcfd97 15939 GUIDIST="$GUIDIST INTL_DIST"
10f2d63a
VZ
15940 fi
15941fi
15942
15943if test "$wxUSE_LOG" = "yes"; then
698dcdb6 15944 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15945#define wxUSE_LOG 1
15946EOF
15947
d73be714
VZ
15948
15949 if test "$wxUSE_LOGGUI" = "yes"; then
15950 cat >> confdefs.h <<\EOF
15951#define wxUSE_LOGGUI 1
15952EOF
15953
15954 fi
15955
15956 if test "$wxUSE_LOGWINDOW" = "yes"; then
15957 cat >> confdefs.h <<\EOF
15958#define wxUSE_LOGWINDOW 1
15959EOF
15960
15961 fi
10f2d63a
VZ
15962fi
15963
15964if test "$wxUSE_LONGLONG" = "yes"; then
698dcdb6 15965 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15966#define wxUSE_LONGLONG 1
15967EOF
15968
15969fi
15970
e8f65ba6 15971if test "$wxUSE_GEOMETRY" = "yes"; then
698dcdb6 15972 cat >> confdefs.h <<\EOF
e8f65ba6
RR
15973#define wxUSE_GEOMETRY 1
15974EOF
15975
15976fi
15977
10f2d63a 15978if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
698dcdb6 15979 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15980#define wxUSE_DIALUP_MANAGER 1
15981EOF
15982
70f7a477 15983 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
10f2d63a
VZ
15984fi
15985
15986if test "$wxUSE_STREAMS" = "yes" ; then
698dcdb6 15987 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15988#define wxUSE_STREAMS 1
15989EOF
15990
15991fi
15992
1e487827 15993
1e6feb95 15994if test "$wxUSE_DATETIME" = "yes"; then
698dcdb6 15995 for ac_func in strptime
83307f33 15996do
698dcdb6 15997echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
b3e8d00a 15998echo "configure:15999: checking for $ac_func" >&5
698dcdb6
VZ
15999if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16000 echo $ac_n "(cached) $ac_c" 1>&6
16001else
16002 cat > conftest.$ac_ext <<EOF
b3e8d00a 16003#line 16004 "configure"
83307f33
VZ
16004#include "confdefs.h"
16005/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 16006 which can conflict with char $ac_func(); below. */
83307f33
VZ
16007#include <assert.h>
16008/* Override any gcc2 internal prototype to avoid an error. */
16009/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
16010 builtin and then its argument prototype would still apply. */
16011char $ac_func();
16012
16013int main() {
83307f33
VZ
16014
16015/* The GNU C library defines this for functions which it implements
16016 to always fail with ENOSYS. Some functions are actually named
16017 something starting with __ and the normal name is an alias. */
16018#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16019choke me
16020#else
698dcdb6 16021$ac_func();
83307f33
VZ
16022#endif
16023
698dcdb6 16024; return 0; }
83307f33 16025EOF
b3e8d00a 16026if { (eval echo configure:16027: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
16027 rm -rf conftest*
16028 eval "ac_cv_func_$ac_func=yes"
16029else
16030 echo "configure: failed program was:" >&5
16031 cat conftest.$ac_ext >&5
16032 rm -rf conftest*
16033 eval "ac_cv_func_$ac_func=no"
16034fi
16035rm -f conftest*
16036fi
83307f33 16037
698dcdb6
VZ
16038if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16039 echo "$ac_t""yes" 1>&6
16040 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16041 cat >> confdefs.h <<EOF
16042#define $ac_tr_func 1
16043EOF
16044
16045else
16046 echo "$ac_t""no" 1>&6
83307f33
VZ
16047fi
16048done
16049
1e487827 16050
698dcdb6 16051 echo $ac_n "checking for timezone variable in <time.h>""... $ac_c" 1>&6
b3e8d00a 16052echo "configure:16053: checking for timezone variable in <time.h>" >&5
698dcdb6
VZ
16053if eval "test \"`echo '$''{'wx_cv_var_timezone'+set}'`\" = set"; then
16054 echo $ac_n "(cached) $ac_c" 1>&6
16055else
16056
16057 cat > conftest.$ac_ext <<EOF
b3e8d00a 16058#line 16059 "configure"
360d6699
VZ
16059#include "confdefs.h"
16060
b4085ce6 16061 #include <time.h>
698dcdb6
VZ
16062
16063int main() {
360d6699
VZ
16064
16065 int tz;
4f11a343 16066 tz = timezone;
698dcdb6
VZ
16067
16068; return 0; }
16069EOF
b3e8d00a 16070if { (eval echo configure:16071: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
16071 rm -rf conftest*
16072
4f11a343 16073 wx_cv_var_timezone=timezone
698dcdb6 16074
360d6699 16075else
698dcdb6
VZ
16076 echo "configure: failed program was:" >&5
16077 cat conftest.$ac_ext >&5
16078 rm -rf conftest*
16079
16080 cat > conftest.$ac_ext <<EOF
b3e8d00a 16081#line 16082 "configure"
360d6699
VZ
16082#include "confdefs.h"
16083
b4085ce6 16084 #include <time.h>
698dcdb6
VZ
16085
16086int main() {
360d6699
VZ
16087
16088 int tz;
16089 tz = _timezone;
698dcdb6
VZ
16090
16091; return 0; }
16092EOF
b3e8d00a 16093if { (eval echo configure:16094: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
16094 rm -rf conftest*
16095
360d6699 16096 wx_cv_var_timezone=_timezone
698dcdb6 16097
5357c8e8 16098else
698dcdb6
VZ
16099 echo "configure: failed program was:" >&5
16100 cat conftest.$ac_ext >&5
16101 rm -rf conftest*
16102
16103 cat > conftest.$ac_ext <<EOF
b3e8d00a 16104#line 16105 "configure"
5357c8e8
VZ
16105#include "confdefs.h"
16106
b4085ce6 16107 #include <time.h>
698dcdb6
VZ
16108
16109int main() {
5357c8e8
VZ
16110
16111 int tz;
4f11a343 16112 tz = __timezone;
698dcdb6
VZ
16113
16114; return 0; }
16115EOF
b3e8d00a 16116if { (eval echo configure:16117: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
16117 rm -rf conftest*
16118
4f11a343 16119 wx_cv_var_timezone=__timezone
698dcdb6 16120
360d6699 16121else
698dcdb6
VZ
16122 echo "configure: failed program was:" >&5
16123 cat conftest.$ac_ext >&5
16124 rm -rf conftest*
16125 { echo "configure: error: no timezone variable" 1>&2; exit 1; }
16126
360d6699 16127fi
698dcdb6
VZ
16128rm -f conftest*
16129
16130
360d6699 16131fi
698dcdb6
VZ
16132rm -f conftest*
16133
16134
6232543b 16135fi
698dcdb6
VZ
16136rm -f conftest*
16137
16138
1e487827 16139fi
703e0a69 16140
698dcdb6
VZ
16141echo "$ac_t""$wx_cv_var_timezone" 1>&6
16142
16143 cat >> confdefs.h <<EOF
360d6699
VZ
16144#define WX_TIMEZONE $wx_cv_var_timezone
16145EOF
16146
698dcdb6
VZ
16147
16148 for ac_func in localtime
afc31813 16149do
698dcdb6 16150echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
b3e8d00a 16151echo "configure:16152: checking for $ac_func" >&5
698dcdb6
VZ
16152if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16153 echo $ac_n "(cached) $ac_c" 1>&6
16154else
16155 cat > conftest.$ac_ext <<EOF
b3e8d00a 16156#line 16157 "configure"
10f2d63a 16157#include "confdefs.h"
afc31813 16158/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 16159 which can conflict with char $ac_func(); below. */
afc31813
VZ
16160#include <assert.h>
16161/* Override any gcc2 internal prototype to avoid an error. */
16162/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
16163 builtin and then its argument prototype would still apply. */
16164char $ac_func();
16165
16166int main() {
afc31813
VZ
16167
16168/* The GNU C library defines this for functions which it implements
16169 to always fail with ENOSYS. Some functions are actually named
16170 something starting with __ and the normal name is an alias. */
16171#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16172choke me
16173#else
698dcdb6 16174$ac_func();
afc31813
VZ
16175#endif
16176
698dcdb6 16177; return 0; }
10f2d63a 16178EOF
b3e8d00a 16179if { (eval echo configure:16180: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
16180 rm -rf conftest*
16181 eval "ac_cv_func_$ac_func=yes"
16182else
16183 echo "configure: failed program was:" >&5
16184 cat conftest.$ac_ext >&5
16185 rm -rf conftest*
16186 eval "ac_cv_func_$ac_func=no"
16187fi
16188rm -f conftest*
16189fi
afc31813 16190
698dcdb6
VZ
16191if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16192 echo "$ac_t""yes" 1>&6
16193 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16194 cat >> confdefs.h <<EOF
16195#define $ac_tr_func 1
16196EOF
16197
16198else
16199 echo "$ac_t""no" 1>&6
afc31813
VZ
16200fi
16201done
16202
1e487827 16203
698dcdb6
VZ
16204 if test "$ac_cv_func_localtime" = "yes"; then
16205 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
b3e8d00a 16206echo "configure:16207: checking for tm_gmtoff in struct tm" >&5
698dcdb6
VZ
16207if eval "test \"`echo '$''{'wx_cv_struct_tm_has_gmtoff'+set}'`\" = set"; then
16208 echo $ac_n "(cached) $ac_c" 1>&6
16209else
16210
16211 cat > conftest.$ac_ext <<EOF
b3e8d00a 16212#line 16213 "configure"
0470b1e6
VZ
16213#include "confdefs.h"
16214
b4085ce6 16215 #include <time.h>
698dcdb6
VZ
16216
16217int main() {
0470b1e6
VZ
16218
16219 struct tm tm;
16220 tm.tm_gmtoff++;
698dcdb6
VZ
16221
16222; return 0; }
16223EOF
b3e8d00a 16224if { (eval echo configure:16225: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
16225 rm -rf conftest*
16226
f03a98d8 16227 wx_cv_struct_tm_has_gmtoff=yes
698dcdb6 16228
0470b1e6 16229else
698dcdb6
VZ
16230 echo "configure: failed program was:" >&5
16231 cat conftest.$ac_ext >&5
16232 rm -rf conftest*
16233 wx_cv_struct_tm_has_gmtoff=no
16234
0470b1e6 16235fi
698dcdb6
VZ
16236rm -f conftest*
16237
1e487827 16238fi
698dcdb6
VZ
16239
16240echo "$ac_t""$wx_cv_struct_tm_has_gmtoff" 1>&6
6232543b
VS
16241 fi
16242
16243 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
698dcdb6 16244 cat >> confdefs.h <<\EOF
6232543b
VS
16245#define WX_GMTOFF_IN_TM 1
16246EOF
0470b1e6 16247
3fcdd07b
VZ
16248 fi
16249
698dcdb6 16250 for ac_func in gettimeofday ftime
3fcdd07b 16251do
698dcdb6 16252echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
b3e8d00a 16253echo "configure:16254: checking for $ac_func" >&5
698dcdb6
VZ
16254if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16255 echo $ac_n "(cached) $ac_c" 1>&6
16256else
16257 cat > conftest.$ac_ext <<EOF
b3e8d00a 16258#line 16259 "configure"
3fcdd07b
VZ
16259#include "confdefs.h"
16260/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 16261 which can conflict with char $ac_func(); below. */
3fcdd07b
VZ
16262#include <assert.h>
16263/* Override any gcc2 internal prototype to avoid an error. */
16264/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
16265 builtin and then its argument prototype would still apply. */
16266char $ac_func();
16267
16268int main() {
3fcdd07b
VZ
16269
16270/* The GNU C library defines this for functions which it implements
16271 to always fail with ENOSYS. Some functions are actually named
16272 something starting with __ and the normal name is an alias. */
16273#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16274choke me
16275#else
698dcdb6 16276$ac_func();
3fcdd07b
VZ
16277#endif
16278
698dcdb6
VZ
16279; return 0; }
16280EOF
b3e8d00a 16281if { (eval echo configure:16282: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
16282 rm -rf conftest*
16283 eval "ac_cv_func_$ac_func=yes"
16284else
16285 echo "configure: failed program was:" >&5
16286 cat conftest.$ac_ext >&5
16287 rm -rf conftest*
16288 eval "ac_cv_func_$ac_func=no"
16289fi
16290rm -f conftest*
16291fi
16292
16293if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16294 echo "$ac_t""yes" 1>&6
16295 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16296 cat >> confdefs.h <<EOF
16297#define $ac_tr_func 1
3fcdd07b
VZ
16298EOF
16299 break
698dcdb6
VZ
16300else
16301 echo "$ac_t""no" 1>&6
3fcdd07b
VZ
16302fi
16303done
16304
afc31813 16305
698dcdb6
VZ
16306 if test "$ac_cv_func_gettimeofday" = "yes"; then
16307 echo $ac_n "checking whether gettimeofday takes two arguments""... $ac_c" 1>&6
b3e8d00a 16308echo "configure:16309: checking whether gettimeofday takes two arguments" >&5
698dcdb6
VZ
16309if eval "test \"`echo '$''{'wx_cv_func_gettimeofday_has_2_args'+set}'`\" = set"; then
16310 echo $ac_n "(cached) $ac_c" 1>&6
16311else
16312
16313
16314 ac_ext=C
16315# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1e487827 16316ac_cpp='$CXXCPP $CPPFLAGS'
698dcdb6
VZ
16317ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16318ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16319cross_compiling=$ac_cv_prog_cxx_cross
703e0a69 16320
698dcdb6
VZ
16321
16322 cat > conftest.$ac_ext <<EOF
b3e8d00a 16323#line 16324 "configure"
10f2d63a 16324#include "confdefs.h"
afc31813
VZ
16325
16326 #include <sys/time.h>
16327 #include <unistd.h>
698dcdb6
VZ
16328
16329int main() {
afc31813
VZ
16330
16331 struct timeval tv;
776862b4 16332 gettimeofday(&tv, NULL);
698dcdb6
VZ
16333
16334; return 0; }
16335EOF
b3e8d00a 16336if { (eval echo configure:16337: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 16337 rm -rf conftest*
afc31813 16338 wx_cv_func_gettimeofday_has_2_args=yes
10f2d63a 16339else
698dcdb6
VZ
16340 echo "configure: failed program was:" >&5
16341 cat conftest.$ac_ext >&5
16342 rm -rf conftest*
16343 cat > conftest.$ac_ext <<EOF
b3e8d00a 16344#line 16345 "configure"
10f2d63a 16345#include "confdefs.h"
afc31813
VZ
16346
16347 #include <sys/time.h>
16348 #include <unistd.h>
698dcdb6
VZ
16349
16350int main() {
afc31813
VZ
16351
16352 struct timeval tv;
16353 gettimeofday(&tv);
698dcdb6
VZ
16354
16355; return 0; }
16356EOF
b3e8d00a 16357if { (eval echo configure:16358: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 16358 rm -rf conftest*
afc31813 16359 wx_cv_func_gettimeofday_has_2_args=no
10f2d63a 16360else
698dcdb6
VZ
16361 echo "configure: failed program was:" >&5
16362 cat conftest.$ac_ext >&5
16363 rm -rf conftest*
776862b4
VZ
16364
16365 echo "configure: warning: failed to determine number of gettimeofday() arguments" 1>&2
16366 wx_cv_func_gettimeofday_has_2_args=unknown
16367
698dcdb6 16368
10f2d63a 16369fi
698dcdb6
VZ
16370rm -f conftest*
16371
10f2d63a 16372fi
698dcdb6 16373rm -f conftest*
afc31813 16374 ac_ext=c
698dcdb6 16375# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10f2d63a 16376ac_cpp='$CPP $CPPFLAGS'
698dcdb6
VZ
16377ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16378ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16379cross_compiling=$ac_cv_prog_cc_cross
10f2d63a 16380
698dcdb6 16381
afc31813 16382fi
698dcdb6
VZ
16383
16384echo "$ac_t""$wx_cv_func_gettimeofday_has_2_args" 1>&6
c63c7106 16385
afc31813 16386 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
698dcdb6 16387 cat >> confdefs.h <<\EOF
afc31813
VZ
16388#define WX_GETTIMEOFDAY_NO_TZ 1
16389EOF
16390
16391 fi
16392 fi
16393
698dcdb6 16394 cat >> confdefs.h <<\EOF
afc31813
VZ
16395#define wxUSE_TIMEDATE 1
16396EOF
16397
16398 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
16399fi
16400
698dcdb6 16401
b089607b
VZ
16402if test "$TOOLKIT" != "MSW"; then
16403
3a922bb4
RL
16404 if test "$wxUSE_SOCKETS" = "yes"; then
16405 echo $ac_n "checking for socket""... $ac_c" 1>&6
b3e8d00a 16406echo "configure:16407: checking for socket" >&5
698dcdb6
VZ
16407if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
16408 echo $ac_n "(cached) $ac_c" 1>&6
c63c7106 16409else
698dcdb6 16410 cat > conftest.$ac_ext <<EOF
b3e8d00a 16411#line 16412 "configure"
c63c7106
VZ
16412#include "confdefs.h"
16413/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 16414 which can conflict with char socket(); below. */
c63c7106
VZ
16415#include <assert.h>
16416/* Override any gcc2 internal prototype to avoid an error. */
16417/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
16418 builtin and then its argument prototype would still apply. */
16419char socket();
16420
16421int main() {
c63c7106
VZ
16422
16423/* The GNU C library defines this for functions which it implements
16424 to always fail with ENOSYS. Some functions are actually named
16425 something starting with __ and the normal name is an alias. */
16426#if defined (__stub_socket) || defined (__stub___socket)
16427choke me
16428#else
698dcdb6 16429socket();
c63c7106
VZ
16430#endif
16431
698dcdb6
VZ
16432; return 0; }
16433EOF
b3e8d00a 16434if { (eval echo configure:16435: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
16435 rm -rf conftest*
16436 eval "ac_cv_func_socket=yes"
16437else
16438 echo "configure: failed program was:" >&5
16439 cat conftest.$ac_ext >&5
16440 rm -rf conftest*
16441 eval "ac_cv_func_socket=no"
16442fi
16443rm -f conftest*
16444fi
16445
16446if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
16447 echo "$ac_t""yes" 1>&6
c63c7106
VZ
16448 :
16449else
698dcdb6
VZ
16450 echo "$ac_t""no" 1>&6
16451echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
b3e8d00a 16452echo "configure:16453: checking for socket in -lsocket" >&5
698dcdb6
VZ
16453ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
16454if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16455 echo $ac_n "(cached) $ac_c" 1>&6
c63c7106 16456else
698dcdb6 16457 ac_save_LIBS="$LIBS"
c63c7106 16458LIBS="-lsocket $LIBS"
698dcdb6 16459cat > conftest.$ac_ext <<EOF
b3e8d00a 16460#line 16461 "configure"
c63c7106
VZ
16461#include "confdefs.h"
16462/* Override any gcc2 internal prototype to avoid an error. */
16463/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
16464 builtin and then its argument prototype would still apply. */
16465char socket();
16466
16467int main() {
16468socket()
16469; return 0; }
16470EOF
b3e8d00a 16471if { (eval echo configure:16472: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
16472 rm -rf conftest*
16473 eval "ac_cv_lib_$ac_lib_var=yes"
16474else
16475 echo "configure: failed program was:" >&5
16476 cat conftest.$ac_ext >&5
16477 rm -rf conftest*
16478 eval "ac_cv_lib_$ac_lib_var=no"
16479fi
16480rm -f conftest*
16481LIBS="$ac_save_LIBS"
16482
16483fi
16484if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16485 echo "$ac_t""yes" 1>&6
c63c7106 16486 INET_LINK="$INET_LINK -lsocket"
c63c7106 16487else
698dcdb6 16488 echo "$ac_t""no" 1>&6
afc31813 16489
3a922bb4
RL
16490 echo "configure: warning: socket library not found - sockets will be disabled" 1>&2
16491 wxUSE_SOCKETS=no
16492
698dcdb6 16493
6232543b 16494fi
b089607b 16495
3a922bb4 16496
1e487827 16497fi
afc31813 16498
3a922bb4 16499 fi
51a9faba 16500
3a922bb4
RL
16501
16502 if test "$wxUSE_SOCKETS" = "yes" ; then
16503 echo $ac_n "checking what is the type of the third argument of getsockname""... $ac_c" 1>&6
b3e8d00a 16504echo "configure:16505: checking what is the type of the third argument of getsockname" >&5
698dcdb6
VZ
16505if eval "test \"`echo '$''{'wx_cv_type_getsockname3'+set}'`\" = set"; then
16506 echo $ac_n "(cached) $ac_c" 1>&6
16507else
16508
3a922bb4
RL
16509
16510 ac_ext=C
698dcdb6 16511# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1e487827 16512ac_cpp='$CXXCPP $CPPFLAGS'
698dcdb6
VZ
16513ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16514ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16515cross_compiling=$ac_cv_prog_cxx_cross
703e0a69 16516
698dcdb6 16517
3a922bb4 16518 cat > conftest.$ac_ext <<EOF
b3e8d00a 16519#line 16520 "configure"
afc31813 16520#include "confdefs.h"
51a9faba 16521
3a922bb4
RL
16522 #include <sys/types.h>
16523 #include <sys/socket.h>
16524
698dcdb6 16525int main() {
51a9faba 16526
3a922bb4
RL
16527 socklen_t len;
16528 getsockname(0, 0, &len);
16529
698dcdb6
VZ
16530; return 0; }
16531EOF
b3e8d00a 16532if { (eval echo configure:16533: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 16533 rm -rf conftest*
51a9faba 16534 wx_cv_type_getsockname3=socklen_t
afc31813 16535else
698dcdb6
VZ
16536 echo "configure: failed program was:" >&5
16537 cat conftest.$ac_ext >&5
16538 rm -rf conftest*
16539 cat > conftest.$ac_ext <<EOF
b3e8d00a 16540#line 16541 "configure"
afc31813 16541#include "confdefs.h"
51a9faba 16542
3a922bb4
RL
16543 #include <sys/types.h>
16544 #include <sys/socket.h>
16545
698dcdb6 16546int main() {
51a9faba 16547
3a922bb4
RL
16548 size_t len;
16549 getsockname(0, 0, &len);
16550
698dcdb6
VZ
16551; return 0; }
16552EOF
b3e8d00a 16553if { (eval echo configure:16554: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 16554 rm -rf conftest*
51a9faba 16555 wx_cv_type_getsockname3=size_t
afc31813 16556else
698dcdb6
VZ
16557 echo "configure: failed program was:" >&5
16558 cat conftest.$ac_ext >&5
16559 rm -rf conftest*
16560 cat > conftest.$ac_ext <<EOF
b3e8d00a 16561#line 16562 "configure"
afc31813 16562#include "confdefs.h"
51a9faba 16563
3a922bb4
RL
16564 #include <sys/types.h>
16565 #include <sys/socket.h>
16566
698dcdb6 16567int main() {
51a9faba 16568
3a922bb4
RL
16569 int len;
16570 getsockname(0, 0, &len);
16571
698dcdb6
VZ
16572; return 0; }
16573EOF
b3e8d00a 16574if { (eval echo configure:16575: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 16575 rm -rf conftest*
51a9faba 16576 wx_cv_type_getsockname3=int
afc31813 16577else
698dcdb6
VZ
16578 echo "configure: failed program was:" >&5
16579 cat conftest.$ac_ext >&5
16580 rm -rf conftest*
16581 wx_cv_type_getsockname3=unknown
3a922bb4 16582
afc31813 16583fi
698dcdb6 16584rm -f conftest*
3a922bb4 16585
afc31813 16586fi
698dcdb6 16587rm -f conftest*
3a922bb4 16588
afc31813 16589fi
698dcdb6 16590rm -f conftest*
51a9faba 16591
3a922bb4 16592 ac_ext=c
698dcdb6 16593# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
afc31813 16594ac_cpp='$CPP $CPPFLAGS'
698dcdb6
VZ
16595ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16596ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16597cross_compiling=$ac_cv_prog_cc_cross
afc31813 16598
3a922bb4 16599
51a9faba 16600fi
698dcdb6
VZ
16601
16602echo "$ac_t""$wx_cv_type_getsockname3" 1>&6
51a9faba 16603
3a922bb4
RL
16604 if test "$wx_cv_type_getsockname3" = "unknown"; then
16605 wxUSE_SOCKETS=no
16606 echo "configure: warning: Couldn't find socklen_t synonym for this system" 1>&2
16607 else
16608 cat >> confdefs.h <<EOF
51a9faba
VZ
16609#define SOCKLEN_T $wx_cv_type_getsockname3
16610EOF
16611
3a922bb4 16612 fi
51a9faba
VZ
16613 fi
16614fi
afc31813 16615
51a9faba 16616if test "$wxUSE_SOCKETS" = "yes" ; then
698dcdb6 16617 cat >> confdefs.h <<\EOF
afc31813
VZ
16618#define wxUSE_SOCKETS 1
16619EOF
16620
70f7a477 16621 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
afc31813
VZ
16622fi
16623
698dcdb6 16624
dc3d889d
VZ
16625if test "$wxUSE_GUI" = "yes"; then
16626
3a922bb4
RL
16627 if test "$TOOLKIT" != "MSW"; then
16628 if test "$wxUSE_JOYSTICK" = "yes"; then
16629 for ac_hdr in linux/joystick.h
10f2d63a 16630do
698dcdb6
VZ
16631ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16632echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
b3e8d00a 16633echo "configure:16634: checking for $ac_hdr" >&5
698dcdb6
VZ
16634if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
16635 echo $ac_n "(cached) $ac_c" 1>&6
16636else
16637 cat > conftest.$ac_ext <<EOF
b3e8d00a 16638#line 16639 "configure"
10f2d63a 16639#include "confdefs.h"
698dcdb6
VZ
16640#include <$ac_hdr>
16641EOF
16642ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
b3e8d00a 16643{ (eval echo configure:16644: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
16644ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16645if test -z "$ac_err"; then
16646 rm -rf conftest*
16647 eval "ac_cv_header_$ac_safe=yes"
10f2d63a 16648else
698dcdb6
VZ
16649 echo "$ac_err" >&5
16650 echo "configure: failed program was:" >&5
10f2d63a 16651 cat conftest.$ac_ext >&5
698dcdb6
VZ
16652 rm -rf conftest*
16653 eval "ac_cv_header_$ac_safe=no"
10f2d63a 16654fi
698dcdb6 16655rm -f conftest*
10f2d63a 16656fi
698dcdb6
VZ
16657if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16658 echo "$ac_t""yes" 1>&6
16659 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16660 cat >> confdefs.h <<EOF
16661#define $ac_tr_hdr 1
10f2d63a 16662EOF
698dcdb6
VZ
16663
16664else
16665 echo "$ac_t""no" 1>&6
10f2d63a
VZ
16666fi
16667done
16668
3a922bb4
RL
16669 if test "$ac_cv_header_linux_joystick_h" != "yes"; then
16670 wxUSE_JOYSTICK=no
16671 echo "configure: warning: Joystick not supported by this system" 1>&2
16672 fi
16673 fi
16674 fi
b089607b 16675
3a922bb4
RL
16676 if test "$wxUSE_JOYSTICK" = "yes"; then
16677 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16678#define wxUSE_JOYSTICK 1
16679EOF
16680
3a922bb4
RL
16681 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
16682 fi
dc3d889d
VZ
16683fi
16684
698dcdb6 16685
b089607b
VZ
16686if test "$TOOLKIT" != "MSW"; then
16687
3a922bb4
RL
16688 HAVE_DL_FUNCS=0
16689 HAVE_SHL_FUNCS=0
16690 if test "$wxUSE_DYNLIB_CLASS" = "yes"; then
16691 if test "$USE_DARWIN" = 1; then
16692 HAVE_DL_FUNCS=1
16693 else
16694 for ac_func in dlopen
10f2d63a 16695do
698dcdb6 16696echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
b3e8d00a 16697echo "configure:16698: checking for $ac_func" >&5
698dcdb6
VZ
16698if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16699 echo $ac_n "(cached) $ac_c" 1>&6
16700else
16701 cat > conftest.$ac_ext <<EOF
b3e8d00a 16702#line 16703 "configure"
10f2d63a
VZ
16703#include "confdefs.h"
16704/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 16705 which can conflict with char $ac_func(); below. */
10f2d63a
VZ
16706#include <assert.h>
16707/* Override any gcc2 internal prototype to avoid an error. */
16708/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
16709 builtin and then its argument prototype would still apply. */
16710char $ac_func();
16711
16712int main() {
10f2d63a
VZ
16713
16714/* The GNU C library defines this for functions which it implements
16715 to always fail with ENOSYS. Some functions are actually named
16716 something starting with __ and the normal name is an alias. */
16717#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16718choke me
16719#else
698dcdb6 16720$ac_func();
10f2d63a
VZ
16721#endif
16722
698dcdb6
VZ
16723; return 0; }
16724EOF
b3e8d00a 16725if { (eval echo configure:16726: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
16726 rm -rf conftest*
16727 eval "ac_cv_func_$ac_func=yes"
16728else
16729 echo "configure: failed program was:" >&5
16730 cat conftest.$ac_ext >&5
16731 rm -rf conftest*
16732 eval "ac_cv_func_$ac_func=no"
16733fi
16734rm -f conftest*
16735fi
16736
16737if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16738 echo "$ac_t""yes" 1>&6
16739 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16740 cat >> confdefs.h <<EOF
16741#define $ac_tr_func 1
16742EOF
16743
3a922bb4 16744 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16745#define HAVE_DLOPEN 1
16746EOF
16747
3a922bb4
RL
16748 HAVE_DL_FUNCS=1
16749
10f2d63a 16750else
698dcdb6
VZ
16751 echo "$ac_t""no" 1>&6
16752echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
b3e8d00a 16753echo "configure:16754: checking for dlopen in -ldl" >&5
698dcdb6
VZ
16754ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
16755if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16756 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 16757else
698dcdb6 16758 ac_save_LIBS="$LIBS"
10f2d63a 16759LIBS="-ldl $LIBS"
698dcdb6 16760cat > conftest.$ac_ext <<EOF
b3e8d00a 16761#line 16762 "configure"
10f2d63a
VZ
16762#include "confdefs.h"
16763/* Override any gcc2 internal prototype to avoid an error. */
16764/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
16765 builtin and then its argument prototype would still apply. */
16766char dlopen();
16767
16768int main() {
16769dlopen()
16770; return 0; }
16771EOF
b3e8d00a 16772if { (eval echo configure:16773: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
16773 rm -rf conftest*
16774 eval "ac_cv_lib_$ac_lib_var=yes"
16775else
16776 echo "configure: failed program was:" >&5
16777 cat conftest.$ac_ext >&5
16778 rm -rf conftest*
16779 eval "ac_cv_lib_$ac_lib_var=no"
16780fi
16781rm -f conftest*
16782LIBS="$ac_save_LIBS"
16783
16784fi
16785if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16786 echo "$ac_t""yes" 1>&6
16787
3a922bb4 16788 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16789#define HAVE_DLOPEN 1
16790EOF
16791
3a922bb4
RL
16792 HAVE_DL_FUNCS=1
16793 LIBS="$LIBS -ldl"
16794
10f2d63a 16795else
698dcdb6 16796 echo "$ac_t""no" 1>&6
10f2d63a 16797
3a922bb4 16798 for ac_func in shl_load
10f2d63a 16799do
698dcdb6 16800echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
b3e8d00a 16801echo "configure:16802: checking for $ac_func" >&5
698dcdb6
VZ
16802if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16803 echo $ac_n "(cached) $ac_c" 1>&6
16804else
16805 cat > conftest.$ac_ext <<EOF
b3e8d00a 16806#line 16807 "configure"
10f2d63a
VZ
16807#include "confdefs.h"
16808/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 16809 which can conflict with char $ac_func(); below. */
10f2d63a
VZ
16810#include <assert.h>
16811/* Override any gcc2 internal prototype to avoid an error. */
16812/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
16813 builtin and then its argument prototype would still apply. */
16814char $ac_func();
16815
16816int main() {
10f2d63a
VZ
16817
16818/* The GNU C library defines this for functions which it implements
16819 to always fail with ENOSYS. Some functions are actually named
16820 something starting with __ and the normal name is an alias. */
16821#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16822choke me
16823#else
698dcdb6 16824$ac_func();
10f2d63a
VZ
16825#endif
16826
698dcdb6
VZ
16827; return 0; }
16828EOF
b3e8d00a 16829if { (eval echo configure:16830: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
16830 rm -rf conftest*
16831 eval "ac_cv_func_$ac_func=yes"
16832else
16833 echo "configure: failed program was:" >&5
16834 cat conftest.$ac_ext >&5
16835 rm -rf conftest*
16836 eval "ac_cv_func_$ac_func=no"
16837fi
16838rm -f conftest*
16839fi
16840
16841if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16842 echo "$ac_t""yes" 1>&6
16843 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16844 cat >> confdefs.h <<EOF
16845#define $ac_tr_func 1
16846EOF
16847
3a922bb4 16848 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16849#define HAVE_SHL_LOAD 1
16850EOF
16851
3a922bb4
RL
16852 HAVE_SHL_FUNCS=1
16853
10f2d63a 16854else
698dcdb6
VZ
16855 echo "$ac_t""no" 1>&6
16856echo $ac_n "checking for dld in -lshl_load""... $ac_c" 1>&6
b3e8d00a 16857echo "configure:16858: checking for dld in -lshl_load" >&5
698dcdb6
VZ
16858ac_lib_var=`echo shl_load'_'dld | sed 'y%./+-%__p_%'`
16859if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16860 echo $ac_n "(cached) $ac_c" 1>&6
f6bcfd97 16861else
698dcdb6 16862 ac_save_LIBS="$LIBS"
f6bcfd97 16863LIBS="-lshl_load $LIBS"
698dcdb6 16864cat > conftest.$ac_ext <<EOF
b3e8d00a 16865#line 16866 "configure"
f6bcfd97
BP
16866#include "confdefs.h"
16867/* Override any gcc2 internal prototype to avoid an error. */
16868/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
16869 builtin and then its argument prototype would still apply. */
16870char dld();
16871
16872int main() {
16873dld()
16874; return 0; }
16875EOF
b3e8d00a 16876if { (eval echo configure:16877: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
16877 rm -rf conftest*
16878 eval "ac_cv_lib_$ac_lib_var=yes"
16879else
16880 echo "configure: failed program was:" >&5
16881 cat conftest.$ac_ext >&5
16882 rm -rf conftest*
16883 eval "ac_cv_lib_$ac_lib_var=no"
16884fi
16885rm -f conftest*
16886LIBS="$ac_save_LIBS"
f6bcfd97 16887
698dcdb6
VZ
16888fi
16889if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16890 echo "$ac_t""yes" 1>&6
16891
3a922bb4
RL
16892 HAVE_SHL_FUNCS=1
16893 LIBS="$LIBS -ldld"
16894
698dcdb6
VZ
16895else
16896 echo "$ac_t""no" 1>&6
f6bcfd97
BP
16897fi
16898
3a922bb4 16899
10f2d63a
VZ
16900fi
16901done
16902
3a922bb4 16903
10f2d63a
VZ
16904fi
16905
3a922bb4 16906
10f2d63a
VZ
16907fi
16908done
16909
1e487827 16910
3a922bb4
RL
16911 if test "$HAVE_DL_FUNCS" = 1; then
16912 for ac_func in dlerror
f6bcfd97 16913do
698dcdb6 16914echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
b3e8d00a 16915echo "configure:16916: checking for $ac_func" >&5
698dcdb6
VZ
16916if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16917 echo $ac_n "(cached) $ac_c" 1>&6
16918else
16919 cat > conftest.$ac_ext <<EOF
b3e8d00a 16920#line 16921 "configure"
f6bcfd97
BP
16921#include "confdefs.h"
16922/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 16923 which can conflict with char $ac_func(); below. */
f6bcfd97
BP
16924#include <assert.h>
16925/* Override any gcc2 internal prototype to avoid an error. */
16926/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
16927 builtin and then its argument prototype would still apply. */
16928char $ac_func();
16929
16930int main() {
f6bcfd97
BP
16931
16932/* The GNU C library defines this for functions which it implements
16933 to always fail with ENOSYS. Some functions are actually named
16934 something starting with __ and the normal name is an alias. */
16935#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16936choke me
16937#else
698dcdb6 16938$ac_func();
f6bcfd97
BP
16939#endif
16940
698dcdb6
VZ
16941; return 0; }
16942EOF
b3e8d00a 16943if { (eval echo configure:16944: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
16944 rm -rf conftest*
16945 eval "ac_cv_func_$ac_func=yes"
16946else
16947 echo "configure: failed program was:" >&5
16948 cat conftest.$ac_ext >&5
16949 rm -rf conftest*
16950 eval "ac_cv_func_$ac_func=no"
16951fi
16952rm -f conftest*
16953fi
16954
16955if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16956 echo "$ac_t""yes" 1>&6
16957 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16958 cat >> confdefs.h <<EOF
16959#define $ac_tr_func 1
16960EOF
16961 cat >> confdefs.h <<\EOF
f6bcfd97
BP
16962#define HAVE_DLERROR 1
16963EOF
16964
16965else
698dcdb6
VZ
16966 echo "$ac_t""no" 1>&6
16967echo $ac_n "checking for dlerror in -ldl""... $ac_c" 1>&6
b3e8d00a 16968echo "configure:16969: checking for dlerror in -ldl" >&5
698dcdb6
VZ
16969ac_lib_var=`echo dl'_'dlerror | sed 'y%./+-%__p_%'`
16970if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16971 echo $ac_n "(cached) $ac_c" 1>&6
f6bcfd97 16972else
698dcdb6 16973 ac_save_LIBS="$LIBS"
f6bcfd97 16974LIBS="-ldl $LIBS"
698dcdb6 16975cat > conftest.$ac_ext <<EOF
b3e8d00a 16976#line 16977 "configure"
f6bcfd97
BP
16977#include "confdefs.h"
16978/* Override any gcc2 internal prototype to avoid an error. */
16979/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
16980 builtin and then its argument prototype would still apply. */
16981char dlerror();
16982
16983int main() {
16984dlerror()
16985; return 0; }
16986EOF
b3e8d00a 16987if { (eval echo configure:16988: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
16988 rm -rf conftest*
16989 eval "ac_cv_lib_$ac_lib_var=yes"
16990else
16991 echo "configure: failed program was:" >&5
16992 cat conftest.$ac_ext >&5
16993 rm -rf conftest*
16994 eval "ac_cv_lib_$ac_lib_var=no"
16995fi
16996rm -f conftest*
16997LIBS="$ac_save_LIBS"
16998
16999fi
17000if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17001 echo "$ac_t""yes" 1>&6
17002 cat >> confdefs.h <<\EOF
f6bcfd97
BP
17003#define HAVE_DLERROR 1
17004EOF
17005
698dcdb6
VZ
17006else
17007 echo "$ac_t""no" 1>&6
f6bcfd97
BP
17008fi
17009
17010fi
17011done
17012
3a922bb4
RL
17013 fi
17014 fi
f6bcfd97 17015
3a922bb4
RL
17016 if test "$HAVE_DL_FUNCS" = 0; then
17017 if test "$HAVE_SHL_FUNCS" = 0; then
17018 if test "$USE_UNIX" = 1; then
17019 echo "configure: warning: Missing dynamic loading support, several features will be disabled" 1>&2
17020 wxUSE_DYNLIB_CLASS=no
17021 else
17022 echo "configure: warning: Assuming wxLibrary class works on this platform" 1>&2
17023 fi
17024 fi
10f2d63a
VZ
17025 fi
17026 fi
17027fi
17028
17029if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
698dcdb6 17030 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17031#define wxUSE_DYNLIB_CLASS 1
17032EOF
17033
b12915c1
VZ
17034else
17035 wxUSE_ODBC=no
17036 wxUSE_SERIAL=no
10f2d63a
VZ
17037fi
17038
698dcdb6 17039
1e6feb95
VZ
17040if test "$wxUSE_FONTMAP" = "yes" ; then
17041 cat >> confdefs.h <<\EOF
17042#define wxUSE_FONTMAP 1
17043EOF
17044
17045fi
17046
10f2d63a 17047if test "$wxUSE_UNICODE" = "yes" ; then
698dcdb6 17048 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17049#define wxUSE_UNICODE 1
17050EOF
17051
17052fi
17053
10f2d63a 17054if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
698dcdb6 17055 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17056#define wxUSE_EXPERIMENTAL_PRINTF 1
17057EOF
17058
17059fi
17060
698dcdb6 17061
b12915c1 17062if test "$wxUSE_SERIAL" = "yes" ; then
698dcdb6 17063 cat >> confdefs.h <<\EOF
b12915c1
VZ
17064#define wxUSE_SERIAL 1
17065EOF
17066
17067fi
17068
698dcdb6 17069
10f2d63a
VZ
17070IODBC_C_SRC=""
17071if test "$wxUSE_ODBC" = "yes" ; then
698dcdb6 17072 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17073#define wxUSE_ODBC 1
17074EOF
17075
17076 WXODBCFLAG="-D_IODBC_"
17077 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
10f2d63a
VZ
17078fi
17079
698dcdb6 17080
10f2d63a 17081if test "$wxUSE_POSTSCRIPT" = "yes" ; then
698dcdb6 17082 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17083#define wxUSE_POSTSCRIPT 1
17084EOF
17085
17086fi
17087
698dcdb6 17088cat >> confdefs.h <<\EOF
10f2d63a
VZ
17089#define wxUSE_AFM_FOR_POSTSCRIPT 1
17090EOF
17091
698dcdb6
VZ
17092
17093cat >> confdefs.h <<\EOF
10f2d63a
VZ
17094#define wxUSE_NORMALIZED_PS_FONTS 1
17095EOF
17096
698dcdb6
VZ
17097
17098
10f2d63a 17099if test "$wxUSE_CONSTRAINTS" = "yes"; then
698dcdb6 17100 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17101#define wxUSE_CONSTRAINTS 1
17102EOF
17103
17104 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
17105fi
17106
17107if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
698dcdb6 17108 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17109#define wxUSE_MDI_ARCHITECTURE 1
17110EOF
17111
17112 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
17113fi
17114
17115if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
698dcdb6 17116 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17117#define wxUSE_DOC_VIEW_ARCHITECTURE 1
17118EOF
17119
17120 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
17121 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
17122 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
17123 fi
17124fi
17125
17126if test "$wxUSE_HELP" = "yes"; then
698dcdb6 17127 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17128#define wxUSE_HELP 1
17129EOF
17130
17131 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
3379ed37 17132
3e44f09d 17133 if test "$USE_WIN32" = 1; then
031d8228 17134 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
29fd3c0c
VS
17135 ac_safe=`echo "htmlhelp.h" | sed 'y%./+-%__p_%'`
17136echo $ac_n "checking for htmlhelp.h""... $ac_c" 1>&6
b3e8d00a 17137echo "configure:17138: checking for htmlhelp.h" >&5
29fd3c0c
VS
17138if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
17139 echo $ac_n "(cached) $ac_c" 1>&6
17140else
17141 cat > conftest.$ac_ext <<EOF
b3e8d00a 17142#line 17143 "configure"
29fd3c0c
VS
17143#include "confdefs.h"
17144#include <htmlhelp.h>
17145EOF
17146ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
b3e8d00a 17147{ (eval echo configure:17148: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
29fd3c0c
VS
17148ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
17149if test -z "$ac_err"; then
17150 rm -rf conftest*
17151 eval "ac_cv_header_$ac_safe=yes"
17152else
17153 echo "$ac_err" >&5
17154 echo "configure: failed program was:" >&5
17155 cat conftest.$ac_ext >&5
17156 rm -rf conftest*
17157 eval "ac_cv_header_$ac_safe=no"
17158fi
17159rm -f conftest*
17160fi
17161if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
17162 echo "$ac_t""yes" 1>&6
17163
17164 cat >> confdefs.h <<\EOF
17165#define wxUSE_MS_HTML_HELP 1
17166EOF
17167
17168
17169else
17170 echo "$ac_t""no" 1>&6
17171
2b9bdf71 17172 echo "configure: warning: MS HTML Help cannot be used without htmlhelp.h, disabled" 1>&2
29fd3c0c
VS
17173 wxUSE_MS_HTML_HELP=no
17174
17175fi
17176
3e44f09d 17177 fi
3379ed37 17178 fi
031d8228
VS
17179
17180 if test "$wxUSE_WXHTML_HELP" = "yes"; then
17181 if test "$wxUSE_HTML" = "yes"; then
17182 cat >> confdefs.h <<\EOF
17183#define wxUSE_WXHTML_HELP 1
17184EOF
17185
17186 else
17187 echo "configure: warning: Cannot use wxHTML-based help without wxHTML so it won't be compiled" 1>&2
17188 wxUSE_WXHTML_HELP=no
17189 fi
17190 fi
10f2d63a
VZ
17191fi
17192
17193if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
17194 if test "$wxUSE_CONSTRAINTS" != "yes"; then
698dcdb6 17195 echo "configure: warning: Printing support cannot be used without constraints so it won't be compiled without it" 1>&2
10f2d63a 17196 else
698dcdb6 17197 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17198#define wxUSE_PRINTING_ARCHITECTURE 1
17199EOF
17200
17201 fi
17202 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
17203fi
17204
17205if test "$wxUSE_PROLOGIO" = "yes" ; then
698dcdb6 17206 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17207#define wxUSE_PROLOGIO 1
17208EOF
17209
17210fi
17211
17212if test "$wxUSE_RESOURCES" = "yes" ; then
3379ed37 17213 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17214#define wxUSE_RESOURCES 1
17215EOF
17216
3379ed37 17217 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS resource"
10f2d63a
VZ
17218fi
17219
17220if test "$wxUSE_X_RESOURCES" = "yes"; then
698dcdb6 17221 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17222#define wxUSE_X_RESOURCES 1
17223EOF
17224
17225fi
17226
698dcdb6 17227
3a922bb4
RL
17228if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
17229 -o "$wxUSE_CLIPBOARD" = "yes" \
17230 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
2b9bdf71 17231 for ac_hdr in ole2.h
10f2d63a 17232do
698dcdb6
VZ
17233ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
17234echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
b3e8d00a 17235echo "configure:17236: checking for $ac_hdr" >&5
698dcdb6
VZ
17236if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
17237 echo $ac_n "(cached) $ac_c" 1>&6
17238else
17239 cat > conftest.$ac_ext <<EOF
b3e8d00a 17240#line 17241 "configure"
10f2d63a 17241#include "confdefs.h"
698dcdb6
VZ
17242#include <$ac_hdr>
17243EOF
17244ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
b3e8d00a 17245{ (eval echo configure:17246: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
17246ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
17247if test -z "$ac_err"; then
17248 rm -rf conftest*
17249 eval "ac_cv_header_$ac_safe=yes"
1e487827 17250else
698dcdb6
VZ
17251 echo "$ac_err" >&5
17252 echo "configure: failed program was:" >&5
10f2d63a 17253 cat conftest.$ac_ext >&5
698dcdb6
VZ
17254 rm -rf conftest*
17255 eval "ac_cv_header_$ac_safe=no"
10f2d63a 17256fi
698dcdb6 17257rm -f conftest*
10f2d63a 17258fi
698dcdb6
VZ
17259if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
17260 echo "$ac_t""yes" 1>&6
17261 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
17262 cat >> confdefs.h <<EOF
17263#define $ac_tr_hdr 1
10f2d63a 17264EOF
698dcdb6
VZ
17265
17266else
17267 echo "$ac_t""no" 1>&6
10f2d63a
VZ
17268fi
17269done
17270
698dcdb6 17271
2b9bdf71
VZ
17272 if test "$ac_cv_header_ole2_h" = "yes" ; then
17273 if test "$GCC" = yes ; then
17274 ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)"
2b9bdf71
VZ
17275 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
17276 LIBS="$LIBS -lrpcrt4 -loleaut32 -lole32 -luuid"
17277 cat >> confdefs.h <<\EOF
4f11a343
VS
17278#define wxUSE_OLE 1
17279EOF
17280
b64f0a5f 17281
2b9bdf71
VZ
17282 fi
17283
17284 cat >> confdefs.h <<\EOF
17285#define wxUSE_DATAOBJ 1
17286EOF
17287
17288 else
17289 echo "configure: warning: Some features disabled because OLE headers not found" 1>&2
17290
17291 wxUSE_CLIPBOARD=no
17292 wxUSE_DRAG_AND_DROP=no
17293 wxUSE_DATAOBJ=no
17294 fi
17295
17296 if test "$wxUSE_METAFILE" = "yes"; then
17297 cat >> confdefs.h <<\EOF
b64f0a5f
RL
17298#define wxUSE_METAFILE 1
17299EOF
17300
2b9bdf71
VZ
17301
17302 cat >> confdefs.h <<\EOF
b64f0a5f
RL
17303#define wxUSE_ENH_METAFILE 1
17304EOF
17305
2b9bdf71
VZ
17306 fi
17307fi
17308
17309if test "$wxUSE_IPC" = "yes"; then
17310 if test "$wxUSE_SOCKETS" != "yes"; then
17311 echo "configure: warning: wxWindows IPC classes require sockets" 1>&2
17312 fi
17313
17314 cat >> confdefs.h <<\EOF
17315#define wxUSE_IPC 1
17316EOF
17317
17318fi
17319
17320if test "$wxUSE_CLIPBOARD" = "yes"; then
17321 cat >> confdefs.h <<\EOF
17322#define wxUSE_CLIPBOARD 1
17323EOF
17324
673f4220 17325
e33ef661 17326 cat >> confdefs.h <<\EOF
673f4220
VZ
17327#define wxUSE_DATAOBJ 1
17328EOF
17329
2b9bdf71
VZ
17330fi
17331
17332if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
17333 if test "$wxUSE_GTK" = 1; then
17334 if test "$WXGTK12" != 1; then
17335 echo "configure: warning: Drag and drop is only supported under GTK+ 1.2" 1>&2
10f2d63a
VZ
17336 wxUSE_DRAG_AND_DROP=no
17337 fi
17338 fi
17339
2b9bdf71
VZ
17340 if test "$wxUSE_MOTIF" = 1; then
17341 echo "configure: warning: Drag and drop is not yet supported under Motif" 1>&2
17342 wxUSE_DRAG_AND_DROP=no
17343 fi
17344
17345 if test "$wxUSE_MAC" = 1; then
17346 echo "configure: warning: Drag and drop is not yet supported under Mac OS X" 1>&2
17347 wxUSE_DRAG_AND_DROP=no
17348 fi
17349
10f2d63a 17350 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
698dcdb6 17351 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17352#define wxUSE_DRAG_AND_DROP 1
17353EOF
17354
17355 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
17356 fi
17357
17358fi
17359
17360if test "$wxUSE_SPLINES" = "yes" ; then
698dcdb6 17361 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17362#define wxUSE_SPLINES 1
17363EOF
17364
17365fi
17366
698dcdb6 17367
1e6feb95
VZ
17368USES_CONTROLS=0
17369if test "$wxUSE_CONTROLS" = "yes"; then
17370 USES_CONTROLS=1
17371fi
17372
10f2d63a 17373if test "$wxUSE_ACCEL" = "yes"; then
698dcdb6 17374 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17375#define wxUSE_ACCEL 1
17376EOF
17377
1e6feb95
VZ
17378 USES_CONTROLS=1
17379fi
17380
17381if test "$wxUSE_BUTTON" = "yes"; then
17382 cat >> confdefs.h <<\EOF
17383#define wxUSE_BUTTON 1
17384EOF
17385
17386 USES_CONTROLS=1
17387fi
17388
17389if test "$wxUSE_BMPBUTTON" = "yes"; then
17390 cat >> confdefs.h <<\EOF
17391#define wxUSE_BMPBUTTON 1
17392EOF
17393
17394 USES_CONTROLS=1
17395fi
17396
17397if test "$wxUSE_CALCTRL" = "yes"; then
17398 cat >> confdefs.h <<\EOF
17399#define wxUSE_CALENDARCTRL 1
17400EOF
17401
17402 USES_CONTROLS=1
17403 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
10f2d63a
VZ
17404fi
17405
17406if test "$wxUSE_CARET" = "yes"; then
698dcdb6 17407 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17408#define wxUSE_CARET 1
17409EOF
17410
1e6feb95 17411 USES_CONTROLS=1
10f2d63a
VZ
17412 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
17413fi
17414
17415if test "$wxUSE_COMBOBOX" = "yes"; then
698dcdb6 17416 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17417#define wxUSE_COMBOBOX 1
17418EOF
17419
1e6feb95 17420 USES_CONTROLS=1
10f2d63a
VZ
17421fi
17422
17423if test "$wxUSE_CHOICE" = "yes"; then
698dcdb6 17424 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17425#define wxUSE_CHOICE 1
17426EOF
17427
1e6feb95 17428 USES_CONTROLS=1
10f2d63a
VZ
17429fi
17430
17431if test "$wxUSE_CHECKBOX" = "yes"; then
698dcdb6 17432 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17433#define wxUSE_CHECKBOX 1
17434EOF
17435
1e6feb95 17436 USES_CONTROLS=1
10f2d63a
VZ
17437fi
17438
17439if test "$wxUSE_CHECKLST" = "yes"; then
698dcdb6 17440 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17441#define wxUSE_CHECKLISTBOX 1
17442EOF
17443
1e6feb95 17444 USES_CONTROLS=1
10f2d63a
VZ
17445 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
17446fi
17447
17448if test "$wxUSE_GAUGE" = "yes"; then
698dcdb6 17449 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17450#define wxUSE_GAUGE 1
17451EOF
17452
1e6feb95 17453 USES_CONTROLS=1
10f2d63a
VZ
17454fi
17455
d6a55c4b
VZ
17456if test "$wxUSE_NEW_GRID" = "yes"; then
17457 wxUSE_GRID="yes"
698dcdb6 17458 cat >> confdefs.h <<\EOF
d6a55c4b 17459#define wxUSE_NEW_GRID 1
10f2d63a
VZ
17460EOF
17461
1e6feb95 17462 USES_CONTROLS=1
d6a55c4b 17463 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS newgrid"
10f2d63a
VZ
17464fi
17465
d6a55c4b 17466if test "$wxUSE_GRID" = "yes"; then
698dcdb6 17467 cat >> confdefs.h <<\EOF
d6a55c4b 17468#define wxUSE_GRID 1
10f2d63a
VZ
17469EOF
17470
1e6feb95 17471 USES_CONTROLS=1
d6a55c4b 17472 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
10f2d63a
VZ
17473fi
17474
17475if test "$wxUSE_IMAGLIST" = "yes"; then
698dcdb6 17476 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17477#define wxUSE_IMAGLIST 1
17478EOF
17479
17480fi
17481
17482if test "$wxUSE_LISTBOX" = "yes"; then
698dcdb6 17483 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17484#define wxUSE_LISTBOX 1
17485EOF
17486
1e6feb95 17487 USES_CONTROLS=1
10f2d63a
VZ
17488fi
17489
17490if test "$wxUSE_LISTCTRL" = "yes"; then
17491 if test "$wxUSE_IMAGLIST" = "yes"; then
698dcdb6 17492 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17493#define wxUSE_LISTCTRL 1
17494EOF
17495
1e6feb95 17496 USES_CONTROLS=1
10f2d63a
VZ
17497 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
17498 else
698dcdb6 17499 echo "configure: warning: wxListCtrl requires wxImageList and won't be compiled without it" 1>&2
10f2d63a
VZ
17500 fi
17501fi
17502
17503if test "$wxUSE_NOTEBOOK" = "yes"; then
698dcdb6 17504 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17505#define wxUSE_NOTEBOOK 1
17506EOF
17507
1e6feb95 17508 USES_CONTROLS=1
10f2d63a
VZ
17509 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
17510fi
17511
24176f2c
GD
17512if test "$wxUSE_PROPSHEET" = "yes"; then
17513 cat >> confdefs.h <<\EOF
17514#define wxUSE_PROPSHEET 1
17515EOF
17516
17517 USES_CONTROLS=1
17518 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS proplist"
17519fi
17520
10f2d63a 17521if test "$wxUSE_RADIOBOX" = "yes"; then
698dcdb6 17522 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17523#define wxUSE_RADIOBOX 1
17524EOF
17525
1e6feb95 17526 USES_CONTROLS=1
10f2d63a
VZ
17527fi
17528
17529if test "$wxUSE_RADIOBTN" = "yes"; then
698dcdb6 17530 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17531#define wxUSE_RADIOBTN 1
17532EOF
17533
1e6feb95 17534 USES_CONTROLS=1
10f2d63a
VZ
17535fi
17536
17537if test "$wxUSE_SASH" = "yes"; then
698dcdb6 17538 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17539#define wxUSE_SASH 1
17540EOF
17541
17542 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
17543fi
17544
17545if test "$wxUSE_SCROLLBAR" = "yes"; then
698dcdb6 17546 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17547#define wxUSE_SCROLLBAR 1
17548EOF
17549
1e6feb95 17550 USES_CONTROLS=1
741a9306 17551 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
10f2d63a
VZ
17552fi
17553
17554if test "$wxUSE_SLIDER" = "yes"; then
698dcdb6 17555 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17556#define wxUSE_SLIDER 1
17557EOF
17558
1e6feb95 17559 USES_CONTROLS=1
10f2d63a
VZ
17560fi
17561
17562if test "$wxUSE_SPINBTN" = "yes"; then
698dcdb6 17563 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17564#define wxUSE_SPINBTN 1
17565EOF
17566
1e6feb95 17567 USES_CONTROLS=1
10f2d63a
VZ
17568fi
17569
56cfaa52 17570if test "$wxUSE_SPINCTRL" = "yes"; then
698dcdb6 17571 cat >> confdefs.h <<\EOF
56cfaa52
RR
17572#define wxUSE_SPINCTRL 1
17573EOF
17574
1e6feb95 17575 USES_CONTROLS=1
56cfaa52
RR
17576fi
17577
10f2d63a 17578if test "$wxUSE_SPLITTER" = "yes"; then
698dcdb6 17579 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17580#define wxUSE_SPLITTER 1
17581EOF
17582
17583 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
17584fi
17585
17586if test "$wxUSE_STATBMP" = "yes"; then
698dcdb6 17587 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17588#define wxUSE_STATBMP 1
17589EOF
17590
1e6feb95 17591 USES_CONTROLS=1
10f2d63a
VZ
17592fi
17593
17594if test "$wxUSE_STATBOX" = "yes"; then
698dcdb6 17595 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17596#define wxUSE_STATBOX 1
17597EOF
17598
1e6feb95
VZ
17599 USES_CONTROLS=1
17600fi
17601
17602if test "$wxUSE_STATTEXT" = "yes"; then
17603 cat >> confdefs.h <<\EOF
17604#define wxUSE_STATTEXT 1
17605EOF
17606
17607 USES_CONTROLS=1
10f2d63a
VZ
17608fi
17609
17610if test "$wxUSE_STATLINE" = "yes"; then
17611 if test "$wxUSE_WINE" = 1 ; then
698dcdb6 17612 echo "configure: warning: wxStaticLine is not supported under WINE" 1>&2
10f2d63a 17613 else
698dcdb6 17614 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17615#define wxUSE_STATLINE 1
17616EOF
17617
1e6feb95 17618 USES_CONTROLS=1
10f2d63a
VZ
17619 fi
17620fi
17621
17622if test "$wxUSE_STATUSBAR" = "yes"; then
698dcdb6 17623 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17624#define wxUSE_STATUSBAR 1
17625EOF
17626
1e6feb95 17627 USES_CONTROLS=1
698dcdb6 17628
2286341c 17629 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
10f2d63a
VZ
17630fi
17631
17632if test "$wxUSE_TABDIALOG" = "yes"; then
698dcdb6 17633 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17634#define wxUSE_TAB_DIALOG 1
17635EOF
17636
17637 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
17638fi
17639
1e6feb95
VZ
17640if test "$wxUSE_TEXTCTRL" = "yes"; then
17641 cat >> confdefs.h <<\EOF
17642#define wxUSE_TEXTCTRL 1
17643EOF
17644
17645 USES_CONTROLS=1
17646 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
17647fi
17648
1db8dc4a 17649if test "$wxUSE_TOGGLEBTN" = "yes"; then
a45d7ab7
GD
17650 if test "$wxUSE_MAC" = 1; then
17651 echo "configure: warning: Toggle button is not yet supported under Mac OS X" 1>&2
17652 wxUSE_TOGGLEBTN=no
17653 fi
17654
17655 if test "$wxUSE_TOGGLEBTN" = "yes"; then
17656 cat >> confdefs.h <<\EOF
1db8dc4a
VZ
17657#define wxUSE_TOGGLEBTN 1
17658EOF
17659
1e6feb95 17660 USES_CONTROLS=1
a45d7ab7 17661 fi
1db8dc4a
VZ
17662fi
17663
360d6699 17664if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
698dcdb6 17665 cat >> confdefs.h <<\EOF
360d6699
VZ
17666#define wxUSE_TOOLBAR_SIMPLE 1
17667EOF
17668
17669 wxUSE_TOOLBAR="yes"
1e6feb95 17670 USES_CONTROLS=1
360d6699
VZ
17671fi
17672
10f2d63a 17673if test "$wxUSE_TOOLBAR" = "yes"; then
698dcdb6 17674 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17675#define wxUSE_TOOLBAR 1
17676EOF
17677
1e6feb95 17678 USES_CONTROLS=1
698dcdb6 17679
360d6699
VZ
17680 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
17681 wxUSE_TOOLBAR_NATIVE="yes"
17682 fi
17683
1e6feb95
VZ
17684 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
17685 cat >> confdefs.h <<\EOF
360d6699
VZ
17686#define wxUSE_TOOLBAR_NATIVE 1
17687EOF
17688
1e6feb95
VZ
17689 USES_CONTROLS=1
17690 fi
17691
17692 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
360d6699
VZ
17693fi
17694
10f2d63a
VZ
17695if test "$wxUSE_TOOLTIPS" = "yes"; then
17696 if test "$wxUSE_MOTIF" = 1; then
698dcdb6 17697 echo "configure: warning: wxTooltip not supported yet under Motif" 1>&2
10f2d63a
VZ
17698 else
17699 if test "$wxUSE_WINE" = 1; then
698dcdb6 17700 echo "configure: warning: wxTooltip not supported under WINE" 1>&2
10f2d63a 17701 else
698dcdb6 17702 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17703#define wxUSE_TOOLTIPS 1
17704EOF
17705
17706 fi
17707 fi
17708fi
17709
17710if test "$wxUSE_TREECTRL" = "yes"; then
17711 if test "$wxUSE_IMAGLIST" = "yes"; then
698dcdb6 17712 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17713#define wxUSE_TREECTRL 1
17714EOF
17715
1e6feb95 17716 USES_CONTROLS=1
10f2d63a
VZ
17717 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
17718 else
698dcdb6 17719 echo "configure: warning: wxTreeCtrl requires wxImageList and won't be compiled without it" 1>&2
10f2d63a
VZ
17720 fi
17721fi
17722
9f41d601 17723if test "$wxUSE_POPUPWIN" = "yes"; then
6abe4b65
GD
17724 if test "$wxUSE_MAC" = 1; then
17725 echo "configure: warning: Popup window is not yet supported under Mac OS" 1>&2
17726 else
17727 cat >> confdefs.h <<\EOF
9f41d601
RR
17728#define wxUSE_POPUPWIN 1
17729EOF
17730
6abe4b65
GD
17731 USES_CONTROLS=1
17732 fi
9f41d601
RR
17733fi
17734
1e6feb95
VZ
17735if test "$USES_CONTROLS" = 1; then
17736 cat >> confdefs.h <<\EOF
17737#define wxUSE_CONTROLS 1
10f2d63a
VZ
17738EOF
17739
10f2d63a
VZ
17740fi
17741
1e6feb95 17742
24176f2c
GD
17743if test "$wxUSE_TREELAYOUT" = "yes"; then
17744 cat >> confdefs.h <<\EOF
17745#define wxUSE_TREELAYOUT 1
17746EOF
17747
17748 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treelay"
17749fi
1e6feb95 17750
24fd6d87
VZ
17751if test "$wxUSE_DRAGIMAGE" = "yes"; then
17752 cat >> confdefs.h <<\EOF
17753#define wxUSE_DRAGIMAGE 1
17754EOF
17755
17756 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
17757fi
17758
1e6feb95 17759if test "$wxUSE_MENUS" = "yes"; then
698dcdb6 17760 cat >> confdefs.h <<\EOF
1e6feb95 17761#define wxUSE_MENUS 1
10f2d63a
VZ
17762EOF
17763
1e6feb95 17764 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
10f2d63a
VZ
17765fi
17766
1e6feb95
VZ
17767if test "$wxUSE_METAFILE" = "yes"; then
17768 cat >> confdefs.h <<\EOF
17769#define wxUSE_METAFILE 1
10f2d63a
VZ
17770EOF
17771
10f2d63a
VZ
17772fi
17773
1e6feb95
VZ
17774if test "$wxUSE_MIMETYPE" = "yes"; then
17775 cat >> confdefs.h <<\EOF
17776#define wxUSE_MIMETYPE 1
10f2d63a
VZ
17777EOF
17778
10f2d63a
VZ
17779fi
17780
3e44f09d
VZ
17781if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
17782 cat >> confdefs.h <<\EOF
17783#define wxUSE_SYSTEM_OPTIONS 1
17784EOF
17785
17786fi
17787
10f2d63a 17788if test "$wxUSE_MINIFRAME" = "yes"; then
698dcdb6 17789 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17790#define wxUSE_MINIFRAME 1
17791EOF
17792
17793 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
17794fi
17795
17796if test "$wxUSE_HTML" = "yes"; then
698dcdb6 17797 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17798#define wxUSE_HTML 1
17799EOF
17800
17801 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html"
10f2d63a
VZ
17802fi
17803
17804if test "$wxUSE_VALIDATORS" = "yes"; then
698dcdb6 17805 cat >> confdefs.h <<\EOF
1e487827
VS
17806#define wxUSE_VALIDATORS 1
17807EOF
703e0a69 17808
698dcdb6
VZ
17809 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
17810fi
17811
17812if test "$wxUSE_IMAGE" = "yes" ; then
17813 cat >> confdefs.h <<\EOF
17814#define wxUSE_IMAGE 1
17815EOF
17816
17817fi
17818
17819if test "$wxUSE_GIF" = "yes" ; then
17820 cat >> confdefs.h <<\EOF
17821#define wxUSE_GIF 1
17822EOF
17823
17824fi
17825
17826if test "$wxUSE_PCX" = "yes" ; then
17827 cat >> confdefs.h <<\EOF
17828#define wxUSE_PCX 1
17829EOF
17830
17831fi
17832
17833if test "$wxUSE_PNM" = "yes" ; then
17834 cat >> confdefs.h <<\EOF
17835#define wxUSE_PNM 1
17836EOF
17837
17838fi
17839
17840if test "$wxUSE_XPM" = "yes" ; then
17841 cat >> confdefs.h <<\EOF
17842#define wxUSE_XPM 1
17843EOF
17844
17845fi
17846
17847
1e6feb95
VZ
17848if test "$wxUSE_CHOICEDLG" = "yes"; then
17849 cat >> confdefs.h <<\EOF
17850#define wxUSE_CHOICEDLG 1
17851EOF
17852
17853fi
17854
17855if test "$wxUSE_COLOURDLG" = "yes"; then
17856 cat >> confdefs.h <<\EOF
17857#define wxUSE_COLOURDLG 1
17858EOF
17859
17860fi
17861
17862if test "$wxUSE_FILEDLG" = "yes"; then
17863 cat >> confdefs.h <<\EOF
17864#define wxUSE_FILEDLG 1
17865EOF
17866
17867fi
17868
8db37e06
VZ
17869if test "$wxUSE_FINDREPLDLG" = "yes"; then
17870 cat >> confdefs.h <<\EOF
17871#define wxUSE_FINDREPLDLG 1
17872EOF
17873
17874fi
17875
1e6feb95
VZ
17876if test "$wxUSE_FONTDLG" = "yes"; then
17877 cat >> confdefs.h <<\EOF
17878#define wxUSE_FONTDLG 1
17879EOF
17880
17881fi
17882
17883if test "$wxUSE_DIRDLG" = "yes"; then
17884 if test "$wxUSE_CONSTRAINTS" != "yes"; then
17885 echo "configure: warning: wxDirDialog requires constraints so it won't be compiled without them" 1>&2
17886 else
17887 if test "$wxUSE_TREECTRL" != "yes"; then
17888 echo "configure: warning: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" 1>&2
17889 else
17890 cat >> confdefs.h <<\EOF
17891#define wxUSE_DIRDLG 1
17892EOF
17893
17894 fi
17895 fi
17896fi
17897
17898if test "$wxUSE_MSGDLG" = "yes"; then
17899 cat >> confdefs.h <<\EOF
17900#define wxUSE_MSGDLG 1
17901EOF
17902
17903fi
17904
17905if test "$wxUSE_NUMBERDLG" = "yes"; then
17906 cat >> confdefs.h <<\EOF
17907#define wxUSE_NUMBERDLG 1
17908EOF
17909
17910fi
17911
17912if test "$wxUSE_PROGRESSDLG" = "yes"; then
17913 if test "$wxUSE_CONSTRAINTS" != "yes"; then
17914 echo "configure: warning: wxProgressDialog requires constraints so it won't be compiled without them" 1>&2
17915 else
17916 cat >> confdefs.h <<\EOF
17917#define wxUSE_PROGRESSDLG 1
17918EOF
17919
17920 fi
17921fi
17922
cbca9943
VZ
17923if test "$wxUSE_SPLASH" = "yes"; then
17924 cat >> confdefs.h <<\EOF
17925#define wxUSE_SPLASH 1
17926EOF
17927
17928fi
17929
1e6feb95
VZ
17930if test "$wxUSE_STARTUP_TIPS" = "yes"; then
17931 if test "$wxUSE_CONSTRAINTS" != "yes"; then
17932 echo "configure: warning: Startup tips requires constraints and won't be compiled without them" 1>&2
17933 else
17934 cat >> confdefs.h <<\EOF
17935#define wxUSE_STARTUP_TIPS 1
17936EOF
17937
17938 fi
17939fi
17940
17941if test "$wxUSE_TEXTDLG" = "yes"; then
17942 cat >> confdefs.h <<\EOF
17943#define wxUSE_TEXTDLG 1
17944EOF
17945
17946fi
17947
b1f5d087
VZ
17948if test "$wxUSE_WIZARDDLG" = "yes"; then
17949 cat >> confdefs.h <<\EOF
17950#define wxUSE_WIZARDDLG 1
17951EOF
17952
17953 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
17954fi
17955
1e6feb95 17956
698dcdb6
VZ
17957if test "$cross_compiling" = "yes"; then
17958 OSINFO="\"$host\""
17959else
17960 OSINFO=`uname -s -r -m`
17961 OSINFO="\"$OSINFO\""
17962fi
17963
17964cat >> confdefs.h <<EOF
17965#define WXWIN_OS_DESCRIPTION $OSINFO
17966EOF
17967
17968
17969
06dda230
VZ
17970if test "x$prefix" != "xNONE"; then
17971 wxPREFIX=$prefix
17972else
17973 wxPREFIX=$ac_default_prefix
17974fi
17975
7e67ed0d 17976cat >> confdefs.h <<EOF
06dda230 17977#define wxINSTALL_PREFIX "$wxPREFIX"
7e67ed0d
VZ
17978EOF
17979
17980
17981
698dcdb6 17982GUILIBS="$GUI_TK_LIBRARY $TOOLKIT_LINK"
698dcdb6
VZ
17983
17984EXTRA_LIBS="$LIBS $POSIX4_LINK $INET_LINK $WCHAR_LINK $THREADS_LINK $DMALLOC_LINK $DL_LINK $ZLIB_LINK -lm"
3a922bb4 17985
f11bdd03 17986if test "$wxUSE_MAC" = 1 ; then
698dcdb6
VZ
17987 EXTRA_LIBS="$EXTRA_LIBS -framework Carbon -framework System"
17988fi
3a922bb4 17989
698dcdb6
VZ
17990if test "$wxUSE_GUI" = "yes"; then
17991 EXTRA_LIBS="$GUILIBS $PNG_LINK $JPEG_LINK $TIFF_LINK $FREETYPE_LINK $EXTRA_LIBS"
3a922bb4
RL
17992
17993
17994 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS controls dialogs \
17995 drawing dynamic erase event exec font image \
17996 minimal richedit rotate widgets"
17997
17998 if test "$wxUSE_UNIVERSAL" = "yes" ; then
17999 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS univ"
18000 fi
18001
18002 CPPFLAGS="$CPPFLAGS \$(EXTRADEFS) \$(APPEXTRADEFS)"
18003else
18004 SAMPLES_SUBDIRS="console"
698dcdb6
VZ
18005fi
18006
18007LD_LIBS="\${top_builddir}/lib/${WX_LIBRARY_NAME_STATIC} $EXTRA_LIBS"
18008
3a922bb4 18009INCLUDES="-I. -I\${top_builddir}/lib/wx/include/${TOOLCHAIN_NAME} -I\${top_srcdir}/include \
3e44f09d
VZ
18010$REGEX_INCLUDE $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE \
18011$FREETYPE_INCLUDE $TOOLKIT_INCLUDE"
698dcdb6
VZ
18012
18013if test "$wxUSE_GTK" = 1; then
18014 WXCONFIG_INCLUDE=""
18015else
18016 WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
18017fi
18018
18019if test "$GXX" = yes ; then
18020 CXXWARNINGS="-Wall"
18021 fi
18022EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE $INCLUDES"
18023
18024CFLAGS=`echo $CFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'`
18025CXXFLAGS=`echo $CXXFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \+/ /g'`
18026
18027LDFLAGS="$LDFLAGS $PROFILE"
18028
698dcdb6
VZ
18029SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
18030
18031
18032
18033
18034
18035
18036
18037
18038
18039
18040
18041
18042
18043
18044
18045
18046
18047
18048
18049
18050
18051
18052
18053
18054
18055
18056
18057
18058
18059
18060
18061
18062
18063
18064
18065
18066
18067
18068
18069
18070
18071
18072
18073
18074
18075
18076
18077
18078
18079
18080
18081
18082
18083
18084
18085
18086
18087
18088
18089
18090
18091
18092
18093
18094
18095
18096
32832908 18097
2f51a9ec
GD
18098
18099
18100
18101
f6bcfd97 18102
dad6c0ea 18103
caa2c79b 18104
3711412e 18105
1e6feb95
VZ
18106
18107
0f3f1cbc 18108
18dbb1f6 18109
10f2d63a
VZ
18110
18111
698dcdb6 18112echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
b3e8d00a 18113echo "configure:18114: checking whether ${MAKE-make} sets \${MAKE}" >&5
698dcdb6
VZ
18114set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
18115if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
18116 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 18117else
698dcdb6 18118 cat > conftestmake <<\EOF
10f2d63a
VZ
18119all:
18120 @echo 'ac_maketemp="${MAKE}"'
18121EOF
18122# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
698dcdb6 18123eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
10f2d63a
VZ
18124if test -n "$ac_maketemp"; then
18125 eval ac_cv_prog_make_${ac_make}_set=yes
18126else
18127 eval ac_cv_prog_make_${ac_make}_set=no
18128fi
698dcdb6 18129rm -f conftestmake
10f2d63a
VZ
18130fi
18131if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
698dcdb6 18132 echo "$ac_t""yes" 1>&6
10f2d63a
VZ
18133 SET_MAKE=
18134else
698dcdb6 18135 echo "$ac_t""no" 1>&6
10f2d63a
VZ
18136 SET_MAKE="MAKE=${MAKE-make}"
18137fi
18138
698dcdb6 18139
3a922bb4
RL
18140if test -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h; then
18141 mv -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h setup.h
00cf1208 18142fi
665bbe97 18143
698dcdb6 18144
10f2d63a 18145
2224580a 18146if test "$wxUSE_GUI" = "yes"; then
ec90f5e5 18147 wx_cv_path_samplesubdirs=$SAMPLES_SUBDIRS
e8482f24
GL
18148 wx_cv_path_ifs=$PATH_IFS
18149 wx_cv_program_ext=$PROGRAM_EXT
18150 wx_cv_target_library=$WX_TARGET_LIBRARY
7b6058cd 18151 wx_cv_target_library_gl=$WX_TARGET_LIBRARY_GL
3711412e 18152 wx_cv_target_libtype=$WX_TARGET_LIBRARY_TYPE
93a20a27 18153 export wx_cv_path_samplesubdirs wx_cv_path_ifs wx_cv_program_ext \
7b6058cd 18154 wx_cv_target_library wx_cv_target_library_gl wx_cv_target_libtype
698dcdb6 18155 subdirs="demos samples utils contrib"
2224580a
VZ
18156
18157fi
10f2d63a 18158
698dcdb6
VZ
18159trap '' 1 2 15
18160cat > confcache <<\EOF
10f2d63a
VZ
18161# This file is a shell script that caches the results of configure
18162# tests run on this system so they can be shared between configure
698dcdb6
VZ
18163# scripts and configure runs. It is not useful on other systems.
18164# If it contains results you don't want to keep, you may remove or edit it.
10f2d63a 18165#
698dcdb6
VZ
18166# By default, configure uses ./config.cache as the cache file,
18167# creating it if it does not exist already. You can give configure
18168# the --cache-file=FILE option to use a different cache file; that is
18169# what configure does when it calls configure scripts in
18170# subdirectories, so they share the cache.
18171# Giving --cache-file=/dev/null disables caching, for debugging configure.
18172# config.status only pays attention to the cache file if you give it the
18173# --recheck option to rerun configure.
10f2d63a 18174#
698dcdb6 18175EOF
10f2d63a
VZ
18176# The following way of writing the cache mishandles newlines in values,
18177# but we know of no workaround that is simple, portable, and efficient.
18178# So, don't put newlines in cache variables' values.
18179# Ultrix sh set writes to stderr and can't be redirected directly,
18180# and sets the high bit in the cache file unless we assign to the vars.
698dcdb6
VZ
18181(set) 2>&1 |
18182 case `(ac_space=' '; set | grep ac_space) 2>&1` in
18183 *ac_space=\ *)
18184 # `set' does not quote correctly, so add quotes (double-quote substitution
18185 # turns \\\\ into \\, and sed turns \\ into \).
18186 sed -n \
18187 -e "s/'/'\\\\''/g" \
18188 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
18189 ;;
18190 *)
18191 # `set' quotes correctly as required by POSIX, so do not add quotes.
18192 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
18193 ;;
18194 esac >> confcache
18195if cmp -s $cache_file confcache; then
18196 :
18197else
10f2d63a 18198 if test -w $cache_file; then
698dcdb6
VZ
18199 echo "updating cache $cache_file"
18200 cat confcache > $cache_file
10f2d63a
VZ
18201 else
18202 echo "not updating unwritable cache $cache_file"
18203 fi
18204fi
18205rm -f confcache
18206
698dcdb6
VZ
18207trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
18208
10f2d63a
VZ
18209test "x$prefix" = xNONE && prefix=$ac_default_prefix
18210# Let make expand exec_prefix.
18211test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18212
698dcdb6
VZ
18213# Any assignment to VPATH causes Sun make to only execute
18214# the first set of double-colon rules, so remove it if not needed.
18215# If there is a colon in the path, we need to keep it.
10f2d63a 18216if test "x$srcdir" = x.; then
698dcdb6 18217 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
10f2d63a
VZ
18218fi
18219
698dcdb6
VZ
18220trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
18221
10f2d63a
VZ
18222DEFS=-DHAVE_CONFIG_H
18223
698dcdb6 18224# Without the "./", some shells look in PATH for config.status.
10f2d63a 18225: ${CONFIG_STATUS=./config.status}
698dcdb6
VZ
18226
18227echo creating $CONFIG_STATUS
18228rm -f $CONFIG_STATUS
18229cat > $CONFIG_STATUS <<EOF
18230#! /bin/sh
10f2d63a
VZ
18231# Generated automatically by configure.
18232# Run this file to recreate the current configuration.
698dcdb6
VZ
18233# This directory was configured as follows,
18234# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18235#
18236# $0 $ac_configure_args
18237#
10f2d63a 18238# Compiler output produced by configure, useful for debugging
698dcdb6 18239# configure, is in ./config.log if it exists.
1e487827 18240
698dcdb6
VZ
18241ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
18242for ac_option
10f2d63a 18243do
698dcdb6 18244 case "\$ac_option" in
10f2d63a 18245 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
698dcdb6
VZ
18246 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
18247 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
18248 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
18249 echo "$CONFIG_STATUS generated by autoconf version 2.13"
18250 exit 0 ;;
18251 -help | --help | --hel | --he | --h)
18252 echo "\$ac_cs_usage"; exit 0 ;;
18253 *) echo "\$ac_cs_usage"; exit 1 ;;
10f2d63a
VZ
18254 esac
18255done
18256
698dcdb6
VZ
18257ac_given_srcdir=$srcdir
18258ac_given_INSTALL="$INSTALL"
703e0a69 18259
698dcdb6
VZ
18260trap 'rm -fr `echo "
18261 wx-config
18262 src/make.env
18263 src/makeprog.env
18264 src/makelib.env
18265 Makefile
18266 setup.h:setup.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1e487827 18267EOF
698dcdb6 18268cat >> $CONFIG_STATUS <<EOF
1e487827 18269
698dcdb6
VZ
18270# Protect against being on the right side of a sed subst in config.status.
18271sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
18272 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
18273$ac_vpsub
18274$extrasub
18275s%@SHELL@%$SHELL%g
18276s%@CFLAGS@%$CFLAGS%g
18277s%@CPPFLAGS@%$CPPFLAGS%g
18278s%@CXXFLAGS@%$CXXFLAGS%g
18279s%@FFLAGS@%$FFLAGS%g
18280s%@DEFS@%$DEFS%g
18281s%@LDFLAGS@%$LDFLAGS%g
18282s%@LIBS@%$LIBS%g
18283s%@exec_prefix@%$exec_prefix%g
18284s%@prefix@%$prefix%g
18285s%@program_transform_name@%$program_transform_name%g
18286s%@bindir@%$bindir%g
18287s%@sbindir@%$sbindir%g
18288s%@libexecdir@%$libexecdir%g
18289s%@datadir@%$datadir%g
18290s%@sysconfdir@%$sysconfdir%g
18291s%@sharedstatedir@%$sharedstatedir%g
18292s%@localstatedir@%$localstatedir%g
18293s%@libdir@%$libdir%g
18294s%@includedir@%$includedir%g
18295s%@oldincludedir@%$oldincludedir%g
18296s%@infodir@%$infodir%g
18297s%@mandir@%$mandir%g
18298s%@host@%$host%g
18299s%@host_alias@%$host_alias%g
18300s%@host_cpu@%$host_cpu%g
18301s%@host_vendor@%$host_vendor%g
18302s%@host_os@%$host_os%g
18303s%@target@%$target%g
18304s%@target_alias@%$target_alias%g
18305s%@target_cpu@%$target_cpu%g
18306s%@target_vendor@%$target_vendor%g
18307s%@target_os@%$target_os%g
18308s%@build@%$build%g
18309s%@build_alias@%$build_alias%g
18310s%@build_cpu@%$build_cpu%g
18311s%@build_vendor@%$build_vendor%g
18312s%@build_os@%$build_os%g
18313s%@CC@%$CC%g
18314s%@CPP@%$CPP%g
18315s%@CXX@%$CXX%g
698dcdb6
VZ
18316s%@RANLIB@%$RANLIB%g
18317s%@AR@%$AR%g
18318s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
18319s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
18320s%@INSTALL_DATA@%$INSTALL_DATA%g
18321s%@STRIP@%$STRIP%g
18322s%@YACC@%$YACC%g
18323s%@LEX@%$LEX%g
18324s%@LEXLIB@%$LEXLIB%g
18325s%@LN_S@%$LN_S%g
18326s%@GTK_CONFIG_2_0@%$GTK_CONFIG_2_0%g
698dcdb6
VZ
18327s%@GTK_CFLAGS@%$GTK_CFLAGS%g
18328s%@GTK_LIBS@%$GTK_LIBS%g
8168de4c 18329s%@GTK_CONFIG@%$GTK_CONFIG%g
698dcdb6
VZ
18330s%@X_CFLAGS@%$X_CFLAGS%g
18331s%@X_PRE_LIBS@%$X_PRE_LIBS%g
18332s%@X_LIBS@%$X_LIBS%g
18333s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
3a922bb4 18334s%@RESCOMP@%$RESCOMP%g
698dcdb6 18335s%@DEREZ@%$DEREZ%g
3a922bb4 18336s%@CXXCPP@%$CXXCPP%g
698dcdb6
VZ
18337s%@LEX_STEM@%$LEX_STEM%g
18338s%@PATH_IFS@%$PATH_IFS%g
18339s%@WX_MAJOR_VERSION_NUMBER@%$WX_MAJOR_VERSION_NUMBER%g
18340s%@WX_MINOR_VERSION_NUMBER@%$WX_MINOR_VERSION_NUMBER%g
18341s%@WX_RELEASE_NUMBER@%$WX_RELEASE_NUMBER%g
698dcdb6
VZ
18342s%@WX_LIBRARY_NAME_STATIC@%$WX_LIBRARY_NAME_STATIC%g
18343s%@WX_LIBRARY_NAME_SHARED@%$WX_LIBRARY_NAME_SHARED%g
698dcdb6
VZ
18344s%@WX_TARGET_LIBRARY@%$WX_TARGET_LIBRARY%g
18345s%@WX_LIBRARY_LINK1@%$WX_LIBRARY_LINK1%g
18346s%@WX_LIBRARY_LINK2@%$WX_LIBRARY_LINK2%g
698dcdb6 18347s%@PROGRAM_EXT@%$PROGRAM_EXT%g
698dcdb6
VZ
18348s%@WX_LIBRARY_NAME_STATIC_GL@%$WX_LIBRARY_NAME_STATIC_GL%g
18349s%@WX_LIBRARY_NAME_SHARED_GL@%$WX_LIBRARY_NAME_SHARED_GL%g
698dcdb6
VZ
18350s%@WX_TARGET_LIBRARY_GL@%$WX_TARGET_LIBRARY_GL%g
18351s%@WX_LIBRARY_LINK1_GL@%$WX_LIBRARY_LINK1_GL%g
18352s%@WX_LIBRARY_LINK2_GL@%$WX_LIBRARY_LINK2_GL%g
698dcdb6
VZ
18353s%@WX_ALL@%$WX_ALL%g
18354s%@WX_ALL_INSTALLED@%$WX_ALL_INSTALLED%g
18355s%@SHARED_LD@%$SHARED_LD%g
18356s%@PIC_FLAG@%$PIC_FLAG%g
698dcdb6
VZ
18357s%@CODE_GEN_FLAGS@%$CODE_GEN_FLAGS%g
18358s%@CODE_GEN_FLAGS_CXX@%$CODE_GEN_FLAGS_CXX%g
3a922bb4
RL
18359s%@SONAME_FLAGS@%$SONAME_FLAGS%g
18360s%@SONAME_FLAGS_GL@%$SONAME_FLAGS_GL%g
698dcdb6
VZ
18361s%@WX_TARGET_LIBRARY_SONAME@%$WX_TARGET_LIBRARY_SONAME%g
18362s%@WX_TARGET_LIBRARY_TYPE@%$WX_TARGET_LIBRARY_TYPE%g
18363s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g
18364s%@USE_GUI@%$USE_GUI%g
18365s%@AFMINSTALL@%$AFMINSTALL%g
18366s%@TOOLKIT@%$TOOLKIT%g
698dcdb6 18367s%@TOOLKIT_DIR@%$TOOLKIT_DIR%g
1e6feb95 18368s%@TOOLKIT_VPATH@%$TOOLKIT_VPATH%g
3a922bb4
RL
18369s%@TOOLCHAIN_NAME@%$TOOLCHAIN_NAME%g
18370s%@TOOLCHAIN_DEFS@%$TOOLCHAIN_DEFS%g
18371s%@cross_compiling@%$cross_compiling%g
18372s%@WXCONFIG_LIBS@%$WXCONFIG_LIBS%g
18373s%@WXCONFIG_LIBS_GL@%$WXCONFIG_LIBS_GL%g
698dcdb6
VZ
18374s%@WXCONFIG_INCLUDE@%$WXCONFIG_INCLUDE%g
18375s%@ALL_OBJECTS@%$ALL_OBJECTS%g
698dcdb6
VZ
18376s%@GUIDIST@%$GUIDIST%g
18377s%@PORT_FILES@%$PORT_FILES%g
18378s%@DISTDIR@%$DISTDIR%g
18379s%@RPM_SPEC@%$RPM_SPEC%g
18380s%@RPM_FILES@%$RPM_FILES%g
698dcdb6 18381s%@SAMPLES_SUBDIRS@%$SAMPLES_SUBDIRS%g
698dcdb6
VZ
18382s%@EXTRA_LIBS@%$EXTRA_LIBS%g
18383s%@OPENGL_LIBS@%$OPENGL_LIBS%g
18384s%@EXTRADEFS@%$EXTRADEFS%g
18385s%@LD_LIBS@%$LD_LIBS%g
18dbb1f6 18386s%@WXMSW_DLL_DEFINES@%$WXMSW_DLL_DEFINES%g
698dcdb6 18387s%@RESFLAGS@%$RESFLAGS%g
3a922bb4
RL
18388s%@RESPROGRAMOBJ@%$RESPROGRAMOBJ%g
18389s%@WX_RESOURCES_DARWIN@%$WX_RESOURCES_DARWIN%g
698dcdb6
VZ
18390s%@LIBWXMACRES@%$LIBWXMACRES%g
18391s%@LIBWXMACRESCOMP@%$LIBWXMACRESCOMP%g
18392s%@DLLTOOL@%$DLLTOOL%g
18393s%@AS@%$AS%g
18394s%@NM@%$NM%g
18395s%@LD@%$LD%g
18396s%@MAKEINFO@%$MAKEINFO%g
18397s%@SET_MAKE@%$SET_MAKE%g
18398s%@subdirs@%$subdirs%g
1e487827 18399
1e487827 18400CEOF
1e487827
VS
18401EOF
18402
698dcdb6
VZ
18403cat >> $CONFIG_STATUS <<\EOF
18404
18405# Split the substitutions into bite-sized pieces for seds with
18406# small command number limits, like on Digital OSF/1 and HP-UX.
18407ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
18408ac_file=1 # Number of current file.
18409ac_beg=1 # First line for current file.
18410ac_end=$ac_max_sed_cmds # Line after last line for current file.
18411ac_more_lines=:
18412ac_sed_cmds=""
18413while $ac_more_lines; do
18414 if test $ac_beg -gt 1; then
18415 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
18416 else
18417 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
18418 fi
18419 if test ! -s conftest.s$ac_file; then
18420 ac_more_lines=false
18421 rm -f conftest.s$ac_file
18422 else
18423 if test -z "$ac_sed_cmds"; then
18424 ac_sed_cmds="sed -f conftest.s$ac_file"
10f2d63a 18425 else
698dcdb6 18426 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
10f2d63a 18427 fi
698dcdb6
VZ
18428 ac_file=`expr $ac_file + 1`
18429 ac_beg=$ac_end
18430 ac_end=`expr $ac_end + $ac_max_sed_cmds`
10f2d63a 18431 fi
698dcdb6
VZ
18432done
18433if test -z "$ac_sed_cmds"; then
18434 ac_sed_cmds=cat
18435fi
18436EOF
10f2d63a 18437
698dcdb6
VZ
18438cat >> $CONFIG_STATUS <<EOF
18439
18440CONFIG_FILES=\${CONFIG_FILES-"wx-config
18441 src/make.env
18442 src/makeprog.env
18443 src/makelib.env
18444 Makefile
18445 "}
10f2d63a 18446EOF
698dcdb6
VZ
18447cat >> $CONFIG_STATUS <<\EOF
18448for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
10f2d63a 18449 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
698dcdb6
VZ
18450 case "$ac_file" in
18451 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
18452 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
18453 *) ac_file_in="${ac_file}.in" ;;
10f2d63a
VZ
18454 esac
18455
698dcdb6 18456 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
1e487827 18457
698dcdb6
VZ
18458 # Remove last slash and all that follows it. Not all systems have dirname.
18459 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
18460 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
18461 # The file is in a subdirectory.
18462 test ! -d "$ac_dir" && mkdir "$ac_dir"
18463 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
10f2d63a 18464 # A "../" for each directory in $ac_dir_suffix.
698dcdb6 18465 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
10f2d63a
VZ
18466 else
18467 ac_dir_suffix= ac_dots=
18468 fi
18469
698dcdb6
VZ
18470 case "$ac_given_srcdir" in
18471 .) srcdir=.
18472 if test -z "$ac_dots"; then top_srcdir=.
18473 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
18474 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
10f2d63a 18475 *) # Relative path.
698dcdb6
VZ
18476 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
18477 top_srcdir="$ac_dots$ac_given_srcdir" ;;
10f2d63a
VZ
18478 esac
18479
698dcdb6
VZ
18480 case "$ac_given_INSTALL" in
18481 [/$]*) INSTALL="$ac_given_INSTALL" ;;
18482 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
10f2d63a
VZ
18483 esac
18484
698dcdb6
VZ
18485 echo creating "$ac_file"
18486 rm -f "$ac_file"
18487 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
18488 case "$ac_file" in
18489 *Makefile*) ac_comsub="1i\\
18490# $configure_input" ;;
18491 *) ac_comsub= ;;
18492 esac
10f2d63a 18493
698dcdb6
VZ
18494 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
18495 sed -e "$ac_comsub
18496s%@configure_input@%$configure_input%g
18497s%@srcdir@%$srcdir%g
18498s%@top_srcdir@%$top_srcdir%g
18499s%@INSTALL@%$INSTALL%g
18500" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
18501fi; done
18502rm -f conftest.s*
10f2d63a
VZ
18503
18504# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
18505# NAME is the cpp macro being defined and VALUE is the value it is being given.
18506#
18507# ac_d sets the value in "#define NAME VALUE" lines.
698dcdb6
VZ
18508ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
18509ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
18510ac_dC='\3'
18511ac_dD='%g'
18512# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
18513ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
18514ac_uB='\([ ]\)%\1#\2define\3'
10f2d63a 18515ac_uC=' '
698dcdb6
VZ
18516ac_uD='\4%g'
18517# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
18518ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
18519ac_eB='$%\1#\2define\3'
18520ac_eC=' '
18521ac_eD='%g'
10f2d63a 18522
698dcdb6
VZ
18523if test "${CONFIG_HEADERS+set}" != set; then
18524EOF
18525cat >> $CONFIG_STATUS <<EOF
18526 CONFIG_HEADERS="setup.h:setup.h.in"
18527EOF
18528cat >> $CONFIG_STATUS <<\EOF
18529fi
18530for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
10f2d63a 18531 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
698dcdb6
VZ
18532 case "$ac_file" in
18533 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
18534 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
18535 *) ac_file_in="${ac_file}.in" ;;
10f2d63a
VZ
18536 esac
18537
698dcdb6
VZ
18538 echo creating $ac_file
18539
18540 rm -f conftest.frag conftest.in conftest.out
18541 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
18542 cat $ac_file_inputs > conftest.in
18543
18544EOF
18545
18546# Transform confdefs.h into a sed script conftest.vals that substitutes
18547# the proper values into config.h.in to produce config.h. And first:
18548# Protect against being on the right side of a sed subst in config.status.
18549# Protect against being in an unquoted here document in config.status.
18550rm -f conftest.vals
18551cat > conftest.hdr <<\EOF
18552s/[\\&%]/\\&/g
18553s%[\\$`]%\\&%g
18554s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
18555s%ac_d%ac_u%gp
18556s%ac_u%ac_e%gp
18557EOF
18558sed -n -f conftest.hdr confdefs.h > conftest.vals
18559rm -f conftest.hdr
10f2d63a
VZ
18560
18561# This sed command replaces #undef with comments. This is necessary, for
18562# example, in the case of _POSIX_SOURCE, which is predefined and required
18563# on some systems where configure will not decide to define it.
698dcdb6
VZ
18564cat >> conftest.vals <<\EOF
18565s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
10f2d63a
VZ
18566EOF
18567
698dcdb6
VZ
18568# Break up conftest.vals because some shells have a limit on
18569# the size of here documents, and old seds have small limits too.
10f2d63a
VZ
18570
18571rm -f conftest.tail
698dcdb6 18572while :
10f2d63a 18573do
698dcdb6
VZ
18574 ac_lines=`grep -c . conftest.vals`
18575 # grep -c gives empty output for an empty file on some AIX systems.
18576 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
18577 # Write a limited-size here document to conftest.frag.
18578 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
18579 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
10f2d63a 18580 echo 'CEOF
698dcdb6
VZ
18581 sed -f conftest.frag conftest.in > conftest.out
18582 rm -f conftest.in
18583 mv conftest.out conftest.in
18584' >> $CONFIG_STATUS
18585 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
18586 rm -f conftest.vals
18587 mv conftest.tail conftest.vals
10f2d63a 18588done
698dcdb6
VZ
18589rm -f conftest.vals
18590
18591cat >> $CONFIG_STATUS <<\EOF
18592 rm -f conftest.frag conftest.h
18593 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
18594 cat conftest.in >> conftest.h
18595 rm -f conftest.in
18596 if cmp -s $ac_file conftest.h 2>/dev/null; then
18597 echo "$ac_file is unchanged"
18598 rm -f conftest.h
10f2d63a 18599 else
698dcdb6
VZ
18600 # Remove last slash and all that follows it. Not all systems have dirname.
18601 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
10f2d63a 18602 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
698dcdb6
VZ
18603 # The file is in a subdirectory.
18604 test ! -d "$ac_dir" && mkdir "$ac_dir"
10f2d63a 18605 fi
698dcdb6
VZ
18606 rm -f $ac_file
18607 mv conftest.h $ac_file
10f2d63a 18608 fi
698dcdb6
VZ
18609fi; done
18610
10f2d63a 18611EOF
698dcdb6 18612cat >> $CONFIG_STATUS <<EOF
10f2d63a 18613
3a922bb4 18614 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}"
698dcdb6
VZ
18615 LN_S="${LN_S}"
18616
18617
18618EOF
18619cat >> $CONFIG_STATUS <<\EOF
10f2d63a 18620
3a922bb4 18621 if test ! -L wx-config; then
991a5759 18622 chmod +x wx-config
3a922bb4
RL
18623 mv wx-config wx${TOOLCHAIN_NAME}-config
18624 ${LN_S} wx${TOOLCHAIN_NAME}-config wx-config
991a5759 18625 fi
665bbe97 18626
00cf1208
RR
18627 if test ! -d lib; then
18628 mkdir lib
18629 fi
18630 if test ! -d lib/wx; then
18631 mkdir lib/wx
18632 fi
18633 if test ! -d lib/wx/include; then
18634 mkdir lib/wx/include
18635 fi
3a922bb4
RL
18636 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}; then
18637 mkdir lib/wx/include/${TOOLCHAIN_NAME}
00cf1208 18638 fi
3a922bb4
RL
18639 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}/wx; then
18640 mkdir lib/wx/include/${TOOLCHAIN_NAME}/wx
00cf1208
RR
18641 fi
18642 if test -f setup.h; then
3a922bb4 18643 mv -f setup.h lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h
00cf1208 18644 fi
698dcdb6
VZ
18645
18646exit 0
10f2d63a
VZ
18647EOF
18648chmod +x $CONFIG_STATUS
698dcdb6
VZ
18649rm -fr confdefs* $ac_clean_files
18650test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
10f2d63a 18651
2224580a
VZ
18652if test "$no_recursion" != yes; then
18653
18654 # Remove --cache-file and --srcdir arguments so they do not pile up.
18655 ac_sub_configure_args=
18656 ac_prev=
18657 for ac_arg in $ac_configure_args; do
18658 if test -n "$ac_prev"; then
18659 ac_prev=
18660 continue
18661 fi
698dcdb6 18662 case "$ac_arg" in
2224580a
VZ
18663 -cache-file | --cache-file | --cache-fil | --cache-fi \
18664 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
18665 ac_prev=cache_file ;;
18666 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
698dcdb6 18667 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
2224580a
VZ
18668 ;;
18669 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
18670 ac_prev=srcdir ;;
18671 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
18672 ;;
18673 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
18674 esac
18675 done
18676
698dcdb6 18677 for ac_config_dir in demos samples utils contrib; do
2224580a
VZ
18678
18679 # Do not complain, so a configure script can configure whichever
18680 # parts of a large source tree are present.
698dcdb6
VZ
18681 if test ! -d $srcdir/$ac_config_dir; then
18682 continue
18683 fi
18684
18685 echo configuring in $ac_config_dir
2224580a 18686
698dcdb6 18687 case "$srcdir" in
2224580a
VZ
18688 .) ;;
18689 *)
698dcdb6
VZ
18690 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
18691 else
18692 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
18693 fi
18694 ;;
2224580a
VZ
18695 esac
18696
18697 ac_popdir=`pwd`
698dcdb6 18698 cd $ac_config_dir
2224580a 18699
698dcdb6
VZ
18700 # A "../" for each directory in /$ac_config_dir.
18701 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
2224580a 18702
698dcdb6 18703 case "$srcdir" in
2224580a
VZ
18704 .) # No --srcdir option. We are building in place.
18705 ac_sub_srcdir=$srcdir ;;
698dcdb6
VZ
18706 /*) # Absolute path.
18707 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
2224580a 18708 *) # Relative path.
698dcdb6 18709 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
2224580a
VZ
18710 esac
18711
18712 # Check for guested configure; otherwise get Cygnus style configure.
698dcdb6
VZ
18713 if test -f $ac_sub_srcdir/configure; then
18714 ac_sub_configure=$ac_sub_srcdir/configure
2224580a
VZ
18715 elif test -f $ac_sub_srcdir/configure.in; then
18716 ac_sub_configure=$ac_configure
18717 else
698dcdb6 18718 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
2224580a
VZ
18719 ac_sub_configure=
18720 fi
18721
18722 # The recursion is here.
18723 if test -n "$ac_sub_configure"; then
698dcdb6 18724
2224580a 18725 # Make the cache file name correct relative to the subdirectory.
698dcdb6
VZ
18726 case "$cache_file" in
18727 /*) ac_sub_cache_file=$cache_file ;;
2224580a 18728 *) # Relative path.
698dcdb6 18729 ac_sub_cache_file="$ac_dots$cache_file" ;;
2224580a 18730 esac
698dcdb6
VZ
18731 case "$ac_given_INSTALL" in
18732 [/$]*) INSTALL="$ac_given_INSTALL" ;;
18733 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
18734 esac
2224580a 18735
698dcdb6 18736 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
2224580a 18737 # The eval makes quoting arguments work.
698dcdb6
VZ
18738 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
18739 then :
18740 else
18741 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
18742 fi
2224580a
VZ
18743 fi
18744
18745 cd $ac_popdir
18746 done
18747fi
18748
698dcdb6 18749