]> git.saurik.com Git - wxWidgets.git/blame - configure
oops, forgot to commit the header for the notebook fix
[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
77e13408 71 --with-msw use MS-Windows"
698dcdb6
VZ
72ac_help="$ac_help
73 --with-pm use OS/2 Presentation Manager"
1e6feb95 74ac_help="$ac_help
b3e8d00a 75 --with-mgl use SciTech MGL"
698dcdb6 76ac_help="$ac_help
8168de4c 77 --enable-gtk2 use GTK+ 2.0 if available (EXPERIMENTAL)"
698dcdb6 78ac_help="$ac_help
8168de4c 79 --with-libpng use libpng (PNG image format)"
698dcdb6 80ac_help="$ac_help
8168de4c 81 --with-libjpeg use libjpeg (JPEG file format)"
698dcdb6 82ac_help="$ac_help
8168de4c 83 --with-libtiff use libtiff (TIFF file format)"
698dcdb6 84ac_help="$ac_help
8168de4c 85 --with-freetype use freetype (font rasterizer)"
698dcdb6 86ac_help="$ac_help
8168de4c 87 --with-opengl use OpenGL (or Mesa)"
698dcdb6 88ac_help="$ac_help
8168de4c 89 --with-dmalloc use dmalloc library (www.letters.com/dmalloc)"
3e44f09d
VZ
90ac_help="$ac_help
91 --with-regex enable support for wxRegEx class"
698dcdb6 92ac_help="$ac_help
8168de4c 93 --with-zlib use zlib for LZW compression"
698dcdb6 94ac_help="$ac_help
8168de4c 95 --with-odbc use the IODBC and wxODBC classes"
698dcdb6 96ac_help="$ac_help
8168de4c 97 --enable-shared create shared library code"
698dcdb6 98ac_help="$ac_help
3a922bb4 99 --enable-soname set the DT_SONAME field in ELF shared libraries"
698dcdb6 100ac_help="$ac_help
8168de4c 101 --enable-optimise create optimised code"
698dcdb6 102ac_help="$ac_help
8168de4c 103 --enable-debug same as debug_flag and debug_info"
683dccda
GD
104ac_help="$ac_help
105 --enable-precomp enable use of precompiled headers (Mac OS X)"
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
a3a584a7
VZ
171 --enable-textbuf use wxTextBuffer class"
172ac_help="$ac_help
173 --enable-textfile use wxTextFile class"
698dcdb6 174ac_help="$ac_help
8168de4c 175 --enable-fontmap use font encodings conversion classes"
1e6feb95 176ac_help="$ac_help
8168de4c 177 --enable-unicode compile wxString with Unicode support"
698dcdb6 178ac_help="$ac_help
8168de4c 179 --enable-wxprintfv use wxWindows implementation of vprintf()"
698dcdb6 180ac_help="$ac_help
8168de4c 181 --enable-std_iostreams use standard C++ stream classes"
698dcdb6 182ac_help="$ac_help
8168de4c 183 --enable-filesystem use virtual file systems classes"
698dcdb6 184ac_help="$ac_help
8168de4c 185 --enable-fs_inet use virtual HTTP/FTP filesystems"
698dcdb6 186ac_help="$ac_help
8168de4c 187 --enable-fs_zip use virtual ZIP filesystems"
698dcdb6 188ac_help="$ac_help
8168de4c 189 --enable-zipstream use wxZipInputStream"
698dcdb6 190ac_help="$ac_help
8168de4c 191 --enable-catch_segvs catch signals and pass them to wxApp::OnFatalException"
698dcdb6 192ac_help="$ac_help
8168de4c 193 --enable-snglinst use wxSingleInstanceChecker class"
698dcdb6 194ac_help="$ac_help
69d27ff7 195 --enable-mimetype use wxMimeTypesManager"
3e44f09d 196ac_help="$ac_help
b3e8d00a 197 --enable-sysoptions use wxSystemOptions"
1e6feb95 198ac_help="$ac_help
8168de4c 199 --enable-threads use threads"
698dcdb6 200ac_help="$ac_help
8168de4c 201 --enable-serial use class serialization"
698dcdb6 202ac_help="$ac_help
8168de4c 203 --enable-docview use document view architecture"
698dcdb6 204ac_help="$ac_help
3379ed37 205 --enable-help use help subsystem"
29fd3c0c
VS
206ac_help="$ac_help
207 --enable-mshtmlhelp use MS HTML Help (win32)"
3379ed37
VZ
208ac_help="$ac_help
209 --enable-html use wxHTML sub-library"
210ac_help="$ac_help
211 --enable-htmlhelp use wxHTML-based help"
698dcdb6 212ac_help="$ac_help
8168de4c 213 --enable-constraints use layout-constraints system"
698dcdb6 214ac_help="$ac_help
8168de4c 215 --enable-printarch use printing architecture"
698dcdb6 216ac_help="$ac_help
8168de4c 217 --enable-mdi use multiple document interface architecture"
698dcdb6 218ac_help="$ac_help
8168de4c 219 --enable-loggui use standard GUI logger"
1e6feb95 220ac_help="$ac_help
8168de4c 221 --enable-logwin use wxLogWindow"
69d27ff7
MB
222ac_help="$ac_help
223 --enable-logdialog use wxLogDialog"
1e6feb95 224ac_help="$ac_help
8168de4c 225 --enable-postscript use wxPostscriptDC device context (default for gtk+)"
698dcdb6 226ac_help="$ac_help
8168de4c 227 --enable-prologio use Prolog IO library"
698dcdb6 228ac_help="$ac_help
8168de4c 229 --enable-resources use wxWindows resources"
698dcdb6 230ac_help="$ac_help
8168de4c 231 --enable-xresources use X resources for save (default for gtk+)"
698dcdb6 232ac_help="$ac_help
8168de4c 233 --enable-clipboard use wxClipboard classes"
698dcdb6 234ac_help="$ac_help
8168de4c 235 --enable-dnd use Drag'n'Drop classes"
698dcdb6 236ac_help="$ac_help
8168de4c 237 --enable-metafile use win32 metafiles"
698dcdb6 238ac_help="$ac_help
24176f2c 239 --enable-treelayout use wxTreeLayout classes"
698dcdb6 240ac_help="$ac_help
8168de4c 241 --enable-controls use all usual controls"
698dcdb6 242ac_help="$ac_help
8168de4c 243 --enable-accel use accelerators"
698dcdb6 244ac_help="$ac_help
8168de4c 245 --enable-button use wxButton class"
698dcdb6 246ac_help="$ac_help
8168de4c 247 --enable-bmpbutton use wxBitmapButton class"
698dcdb6 248ac_help="$ac_help
8168de4c 249 --enable-calendar use wxCalendarCtrl class"
1e6feb95 250ac_help="$ac_help
8168de4c 251 --enable-caret use wxCaret class"
1e6feb95 252ac_help="$ac_help
8168de4c 253 --enable-checkbox use wxCheckBox class"
698dcdb6 254ac_help="$ac_help
8168de4c 255 --enable-checklst use wxCheckListBox (listbox with checkboxes) class"
698dcdb6 256ac_help="$ac_help
8168de4c 257 --enable-choice use wxChoice class"
698dcdb6 258ac_help="$ac_help
8168de4c 259 --enable-combobox use wxComboBox classes"
698dcdb6 260ac_help="$ac_help
8168de4c 261 --enable-gauge use wxGauge class"
698dcdb6 262ac_help="$ac_help
8168de4c 263 --enable-grid use wxGrid class"
698dcdb6 264ac_help="$ac_help
8168de4c 265 --enable-newgrid use new wxGrid class"
698dcdb6 266ac_help="$ac_help
8168de4c 267 --enable-imaglist use wxImageList class"
698dcdb6 268ac_help="$ac_help
8168de4c 269 --enable-listbox use wxListBox class"
698dcdb6 270ac_help="$ac_help
8168de4c 271 --enable-listctrl use wxListCtrl class"
698dcdb6 272ac_help="$ac_help
8168de4c 273 --enable-notebook use wxNotebook class"
24176f2c
GD
274ac_help="$ac_help
275 --enable-propsheet use wxPropertySheet class"
698dcdb6 276ac_help="$ac_help
8168de4c 277 --enable-radiobox use wxRadioBox class"
698dcdb6 278ac_help="$ac_help
8168de4c 279 --enable-radiobtn use wxRadioButton class"
698dcdb6 280ac_help="$ac_help
8168de4c 281 --enable-sash use wxSashWindow class"
698dcdb6 282ac_help="$ac_help
8168de4c 283 --enable-scrollbar use wxScrollBar class and scrollable windows"
698dcdb6 284ac_help="$ac_help
8168de4c 285 --enable-slider use wxSlider class"
698dcdb6 286ac_help="$ac_help
8168de4c 287 --enable-spinbtn use wxSpinButton class"
698dcdb6 288ac_help="$ac_help
8168de4c 289 --enable-spinctrl use wxSpinCtrl class"
698dcdb6 290ac_help="$ac_help
8168de4c 291 --enable-splitter use wxSplitterWindow class"
698dcdb6 292ac_help="$ac_help
8168de4c 293 --enable-statbmp use wxStaticBitmap class"
698dcdb6 294ac_help="$ac_help
8168de4c 295 --enable-statbox use wxStaticBox class"
698dcdb6 296ac_help="$ac_help
8168de4c 297 --enable-statline use wxStaticLine class"
698dcdb6 298ac_help="$ac_help
8168de4c 299 --enable-stattext use wxStaticText class"
1e6feb95 300ac_help="$ac_help
8168de4c 301 --enable-statusbar use wxStatusBar class"
698dcdb6 302ac_help="$ac_help
8168de4c 303 --enable-tabdialog use wxTabControl class"
698dcdb6 304ac_help="$ac_help
8168de4c 305 --enable-textctrl use wxTextCtrl class"
1e6feb95 306ac_help="$ac_help
8168de4c 307 --enable-togglebtn use wxToggleButton class"
698dcdb6 308ac_help="$ac_help
8168de4c 309 --enable-toolbar use wxToolBar class"
698dcdb6 310ac_help="$ac_help
8168de4c 311 --enable-tbarnative use native wxToolBar class"
698dcdb6 312ac_help="$ac_help
8168de4c 313 --enable-tbarsmpl use wxToolBarSimple class"
698dcdb6 314ac_help="$ac_help
8168de4c 315 --enable-treectrl use wxTreeCtrl class"
9f41d601
RR
316ac_help="$ac_help
317 --enable-popupwin use wxPopUpWindow class"
698dcdb6 318ac_help="$ac_help
b3e8d00a 319 --enable-commondlg use all common dialogs"
698dcdb6 320ac_help="$ac_help
8168de4c 321 --enable-choicedlg use wxChoiceDialog"
1e6feb95 322ac_help="$ac_help
8168de4c 323 --enable-coldlg use wxColourDialog"
1e6feb95 324ac_help="$ac_help
8168de4c 325 --enable-filedlg use wxFileDialog"
8db37e06
VZ
326ac_help="$ac_help
327 --enable-finddlg use wxFindReplaceDialog"
1e6feb95 328ac_help="$ac_help
8168de4c 329 --enable-fontdlg use wxFontDialog"
1e6feb95 330ac_help="$ac_help
8168de4c 331 --enable-dirdlg use wxDirDialog"
698dcdb6 332ac_help="$ac_help
8168de4c 333 --enable-msgdlg use wxMessageDialog"
1e6feb95 334ac_help="$ac_help
8168de4c 335 --enable-numberdlg use wxNumberEntryDialog"
cbca9943
VZ
336ac_help="$ac_help
337 --enable-splash use wxSplashScreen"
1e6feb95 338ac_help="$ac_help
8168de4c 339 --enable-textdlg use wxTextDialog"
698dcdb6 340ac_help="$ac_help
8168de4c 341 --enable-tipdlg use startup tips"
698dcdb6 342ac_help="$ac_help
8168de4c 343 --enable-progressdlg use wxProgressDialog"
b1f5d087
VZ
344ac_help="$ac_help
345 --enable-wizarddlg use wxWizard"
698dcdb6 346ac_help="$ac_help
8168de4c 347 --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes"
1e6feb95 348ac_help="$ac_help
8168de4c 349 --enable-miniframe use wxMiniFrame class"
698dcdb6 350ac_help="$ac_help
8168de4c 351 --enable-tooltips use wxToolTip class"
698dcdb6 352ac_help="$ac_help
8168de4c 353 --enable-splines use spline drawing code"
698dcdb6 354ac_help="$ac_help
8168de4c 355 --enable-validators use wxValidator and derived classes"
698dcdb6 356ac_help="$ac_help
8168de4c 357 --enable-busyinfo use wxBusyInfo"
698dcdb6 358ac_help="$ac_help
b3e8d00a 359 --enable-joystick use wxJoystick (Linux only)"
698dcdb6 360ac_help="$ac_help
8168de4c 361 --enable-metafiles use wxMetaFile (Windows only)"
24fd6d87
VZ
362ac_help="$ac_help
363 --enable-dragimage use wxDragImage"
edae8572
VZ
364ac_help="$ac_help
365 --enable-palette use wxPalette class"
1e6feb95 366ac_help="$ac_help
8168de4c 367 --enable-image use wxImage class"
698dcdb6 368ac_help="$ac_help
8168de4c 369 --enable-gif use gif images (GIF file format)"
698dcdb6 370ac_help="$ac_help
8168de4c 371 --enable-pcx use pcx images (PCX file format)"
698dcdb6 372ac_help="$ac_help
8168de4c 373 --enable-pnm use pnm images (PNM file format)"
698dcdb6 374ac_help="$ac_help
8168de4c 375 --enable-xpm use xpm images (XPM file format)"
698dcdb6
VZ
376ac_help="$ac_help
377 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)"
378ac_help="$ac_help
379 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)"
380ac_help="$ac_help
381 --disable-gtktest Do not try to compile and run a test GTK program"
382ac_help="$ac_help
383 --with-x use the X Window System"
10f2d63a
VZ
384
385# Initialize some variables set by options.
386# The variables have the same names as the options, with
387# dashes changed to underlines.
698dcdb6
VZ
388build=NONE
389cache_file=./config.cache
10f2d63a 390exec_prefix=NONE
698dcdb6 391host=NONE
10f2d63a 392no_create=
698dcdb6 393nonopt=NONE
10f2d63a
VZ
394no_recursion=
395prefix=NONE
396program_prefix=NONE
397program_suffix=NONE
398program_transform_name=s,x,x,
399silent=
400site=
401srcdir=
698dcdb6 402target=NONE
10f2d63a
VZ
403verbose=
404x_includes=NONE
405x_libraries=NONE
406bindir='${exec_prefix}/bin'
407sbindir='${exec_prefix}/sbin'
408libexecdir='${exec_prefix}/libexec'
409datadir='${prefix}/share'
410sysconfdir='${prefix}/etc'
411sharedstatedir='${prefix}/com'
412localstatedir='${prefix}/var'
413libdir='${exec_prefix}/lib'
414includedir='${prefix}/include'
415oldincludedir='/usr/include'
416infodir='${prefix}/info'
417mandir='${prefix}/man'
418
698dcdb6
VZ
419# Initialize some other variables.
420subdirs=
421MFLAGS= MAKEFLAGS=
422SHELL=${CONFIG_SHELL-/bin/sh}
423# Maximum number of lines to put in a shell here document.
424ac_max_here_lines=12
10f2d63a
VZ
425
426ac_prev=
427for ac_option
428do
698dcdb6 429
10f2d63a
VZ
430 # If the previous option needs an argument, assign it.
431 if test -n "$ac_prev"; then
432 eval "$ac_prev=\$ac_option"
433 ac_prev=
434 continue
435 fi
436
698dcdb6
VZ
437 case "$ac_option" in
438 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
439 *) ac_optarg= ;;
440 esac
10f2d63a
VZ
441
442 # Accept the important Cygnus configure options, so we can diagnose typos.
443
698dcdb6 444 case "$ac_option" in
10f2d63a
VZ
445
446 -bindir | --bindir | --bindi | --bind | --bin | --bi)
447 ac_prev=bindir ;;
448 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
698dcdb6 449 bindir="$ac_optarg" ;;
10f2d63a
VZ
450
451 -build | --build | --buil | --bui | --bu)
698dcdb6 452 ac_prev=build ;;
10f2d63a 453 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
698dcdb6 454 build="$ac_optarg" ;;
10f2d63a
VZ
455
456 -cache-file | --cache-file | --cache-fil | --cache-fi \
457 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
458 ac_prev=cache_file ;;
459 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
460 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
698dcdb6 461 cache_file="$ac_optarg" ;;
10f2d63a
VZ
462
463 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
464 ac_prev=datadir ;;
465 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
466 | --da=*)
698dcdb6 467 datadir="$ac_optarg" ;;
10f2d63a
VZ
468
469 -disable-* | --disable-*)
698dcdb6 470 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
10f2d63a 471 # Reject names that are not valid shell variable names.
698dcdb6
VZ
472 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
473 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
474 fi
475 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
476 eval "enable_${ac_feature}=no" ;;
10f2d63a
VZ
477
478 -enable-* | --enable-*)
698dcdb6 479 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
10f2d63a 480 # Reject names that are not valid shell variable names.
698dcdb6
VZ
481 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
482 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
483 fi
484 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
485 case "$ac_option" in
486 *=*) ;;
10f2d63a
VZ
487 *) ac_optarg=yes ;;
488 esac
698dcdb6 489 eval "enable_${ac_feature}='$ac_optarg'" ;;
10f2d63a
VZ
490
491 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
492 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
493 | --exec | --exe | --ex)
494 ac_prev=exec_prefix ;;
495 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
496 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
497 | --exec=* | --exe=* | --ex=*)
698dcdb6 498 exec_prefix="$ac_optarg" ;;
10f2d63a
VZ
499
500 -gas | --gas | --ga | --g)
501 # Obsolete; use --with-gas.
502 with_gas=yes ;;
503
698dcdb6
VZ
504 -help | --help | --hel | --he)
505 # Omit some internal or obsolete options to make the list less imposing.
506 # This message is too long to be a string in the A/UX 3.1 sh.
507 cat << EOF
508Usage: configure [options] [host]
509Options: [defaults in brackets after descriptions]
510Configuration:
511 --cache-file=FILE cache test results in FILE
512 --help print this message
513 --no-create do not create output files
514 --quiet, --silent do not print \`checking...' messages
515 --version print the version of autoconf that created configure
516Directory and file names:
517 --prefix=PREFIX install architecture-independent files in PREFIX
518 [$ac_default_prefix]
519 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
520 [same as prefix]
521 --bindir=DIR user executables in DIR [EPREFIX/bin]
522 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
523 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
524 --datadir=DIR read-only architecture-independent data in DIR
525 [PREFIX/share]
526 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
527 --sharedstatedir=DIR modifiable architecture-independent data in DIR
528 [PREFIX/com]
529 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
530 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
531 --includedir=DIR C header files in DIR [PREFIX/include]
532 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
533 --infodir=DIR info documentation in DIR [PREFIX/info]
534 --mandir=DIR man documentation in DIR [PREFIX/man]
535 --srcdir=DIR find the sources in DIR [configure dir or ..]
536 --program-prefix=PREFIX prepend PREFIX to installed program names
537 --program-suffix=SUFFIX append SUFFIX to installed program names
538 --program-transform-name=PROGRAM
539 run sed PROGRAM on installed program names
540EOF
541 cat << EOF
542Host type:
543 --build=BUILD configure for building on BUILD [BUILD=HOST]
544 --host=HOST configure for HOST [guessed]
545 --target=TARGET configure for TARGET [TARGET=HOST]
546Features and packages:
547 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
548 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
549 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
550 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
551 --x-includes=DIR X include files are in DIR
552 --x-libraries=DIR X library files are in DIR
553EOF
554 if test -n "$ac_help"; then
555 echo "--enable and --with options recognized:$ac_help"
556 fi
557 exit 0 ;;
10f2d63a
VZ
558
559 -host | --host | --hos | --ho)
698dcdb6 560 ac_prev=host ;;
10f2d63a 561 -host=* | --host=* | --hos=* | --ho=*)
698dcdb6 562 host="$ac_optarg" ;;
10f2d63a
VZ
563
564 -includedir | --includedir | --includedi | --included | --include \
565 | --includ | --inclu | --incl | --inc)
566 ac_prev=includedir ;;
567 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
568 | --includ=* | --inclu=* | --incl=* | --inc=*)
698dcdb6 569 includedir="$ac_optarg" ;;
10f2d63a
VZ
570
571 -infodir | --infodir | --infodi | --infod | --info | --inf)
572 ac_prev=infodir ;;
573 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
698dcdb6 574 infodir="$ac_optarg" ;;
10f2d63a
VZ
575
576 -libdir | --libdir | --libdi | --libd)
577 ac_prev=libdir ;;
578 -libdir=* | --libdir=* | --libdi=* | --libd=*)
698dcdb6 579 libdir="$ac_optarg" ;;
10f2d63a
VZ
580
581 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
582 | --libexe | --libex | --libe)
583 ac_prev=libexecdir ;;
584 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
585 | --libexe=* | --libex=* | --libe=*)
698dcdb6 586 libexecdir="$ac_optarg" ;;
10f2d63a
VZ
587
588 -localstatedir | --localstatedir | --localstatedi | --localstated \
589 | --localstate | --localstat | --localsta | --localst \
590 | --locals | --local | --loca | --loc | --lo)
591 ac_prev=localstatedir ;;
592 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
593 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
594 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
698dcdb6 595 localstatedir="$ac_optarg" ;;
10f2d63a
VZ
596
597 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
598 ac_prev=mandir ;;
599 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
698dcdb6 600 mandir="$ac_optarg" ;;
10f2d63a
VZ
601
602 -nfp | --nfp | --nf)
603 # Obsolete; use --without-fp.
604 with_fp=no ;;
605
606 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
607 | --no-cr | --no-c)
608 no_create=yes ;;
609
610 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
611 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
612 no_recursion=yes ;;
613
614 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
615 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
616 | --oldin | --oldi | --old | --ol | --o)
617 ac_prev=oldincludedir ;;
618 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
619 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
620 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
698dcdb6 621 oldincludedir="$ac_optarg" ;;
10f2d63a
VZ
622
623 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
624 ac_prev=prefix ;;
625 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
698dcdb6 626 prefix="$ac_optarg" ;;
10f2d63a
VZ
627
628 -program-prefix | --program-prefix | --program-prefi | --program-pref \
629 | --program-pre | --program-pr | --program-p)
630 ac_prev=program_prefix ;;
631 -program-prefix=* | --program-prefix=* | --program-prefi=* \
632 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
698dcdb6 633 program_prefix="$ac_optarg" ;;
10f2d63a
VZ
634
635 -program-suffix | --program-suffix | --program-suffi | --program-suff \
636 | --program-suf | --program-su | --program-s)
637 ac_prev=program_suffix ;;
638 -program-suffix=* | --program-suffix=* | --program-suffi=* \
639 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
698dcdb6 640 program_suffix="$ac_optarg" ;;
10f2d63a
VZ
641
642 -program-transform-name | --program-transform-name \
643 | --program-transform-nam | --program-transform-na \
644 | --program-transform-n | --program-transform- \
645 | --program-transform | --program-transfor \
646 | --program-transfo | --program-transf \
647 | --program-trans | --program-tran \
648 | --progr-tra | --program-tr | --program-t)
649 ac_prev=program_transform_name ;;
650 -program-transform-name=* | --program-transform-name=* \
651 | --program-transform-nam=* | --program-transform-na=* \
652 | --program-transform-n=* | --program-transform-=* \
653 | --program-transform=* | --program-transfor=* \
654 | --program-transfo=* | --program-transf=* \
655 | --program-trans=* | --program-tran=* \
656 | --progr-tra=* | --program-tr=* | --program-t=*)
698dcdb6 657 program_transform_name="$ac_optarg" ;;
10f2d63a
VZ
658
659 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
660 | -silent | --silent | --silen | --sile | --sil)
661 silent=yes ;;
662
663 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
664 ac_prev=sbindir ;;
665 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
666 | --sbi=* | --sb=*)
698dcdb6 667 sbindir="$ac_optarg" ;;
10f2d63a
VZ
668
669 -sharedstatedir | --sharedstatedir | --sharedstatedi \
670 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
671 | --sharedst | --shareds | --shared | --share | --shar \
672 | --sha | --sh)
673 ac_prev=sharedstatedir ;;
674 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
675 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
676 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
677 | --sha=* | --sh=*)
698dcdb6 678 sharedstatedir="$ac_optarg" ;;
10f2d63a
VZ
679
680 -site | --site | --sit)
681 ac_prev=site ;;
682 -site=* | --site=* | --sit=*)
698dcdb6 683 site="$ac_optarg" ;;
10f2d63a
VZ
684
685 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
686 ac_prev=srcdir ;;
687 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
698dcdb6 688 srcdir="$ac_optarg" ;;
10f2d63a
VZ
689
690 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
691 | --syscon | --sysco | --sysc | --sys | --sy)
692 ac_prev=sysconfdir ;;
693 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
694 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
698dcdb6 695 sysconfdir="$ac_optarg" ;;
10f2d63a
VZ
696
697 -target | --target | --targe | --targ | --tar | --ta | --t)
698dcdb6 698 ac_prev=target ;;
10f2d63a 699 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
698dcdb6 700 target="$ac_optarg" ;;
10f2d63a
VZ
701
702 -v | -verbose | --verbose | --verbos | --verbo | --verb)
703 verbose=yes ;;
704
698dcdb6
VZ
705 -version | --version | --versio | --versi | --vers)
706 echo "configure generated by autoconf version 2.13"
707 exit 0 ;;
10f2d63a
VZ
708
709 -with-* | --with-*)
698dcdb6 710 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
10f2d63a 711 # Reject names that are not valid shell variable names.
698dcdb6
VZ
712 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
713 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
714 fi
10f2d63a 715 ac_package=`echo $ac_package| sed 's/-/_/g'`
698dcdb6
VZ
716 case "$ac_option" in
717 *=*) ;;
10f2d63a
VZ
718 *) ac_optarg=yes ;;
719 esac
698dcdb6 720 eval "with_${ac_package}='$ac_optarg'" ;;
10f2d63a
VZ
721
722 -without-* | --without-*)
698dcdb6 723 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
10f2d63a 724 # Reject names that are not valid shell variable names.
698dcdb6
VZ
725 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
726 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
727 fi
728 ac_package=`echo $ac_package| sed 's/-/_/g'`
729 eval "with_${ac_package}=no" ;;
10f2d63a
VZ
730
731 --x)
732 # Obsolete; use --with-x.
733 with_x=yes ;;
734
735 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
736 | --x-incl | --x-inc | --x-in | --x-i)
737 ac_prev=x_includes ;;
738 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
739 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
698dcdb6 740 x_includes="$ac_optarg" ;;
10f2d63a
VZ
741
742 -x-libraries | --x-libraries | --x-librarie | --x-librari \
743 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
744 ac_prev=x_libraries ;;
745 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
746 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
698dcdb6 747 x_libraries="$ac_optarg" ;;
10f2d63a 748
698dcdb6 749 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
10f2d63a
VZ
750 ;;
751
752 *)
698dcdb6
VZ
753 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
754 echo "configure: warning: $ac_option: invalid host type" 1>&2
755 fi
756 if test "x$nonopt" != xNONE; then
757 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
758 fi
759 nonopt="$ac_option"
10f2d63a
VZ
760 ;;
761
762 esac
763done
764
765if test -n "$ac_prev"; then
698dcdb6
VZ
766 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
767fi
768
769trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
770
771# File descriptor usage:
772# 0 standard input
773# 1 file creation
774# 2 errors and warnings
775# 3 some systems may open it to /dev/tty
776# 4 used on the Kubota Titan
777# 6 checking for... messages and results
778# 5 compiler messages saved in config.log
779if test "$silent" = yes; then
780 exec 6>/dev/null
781else
782 exec 6>&1
10f2d63a 783fi
698dcdb6
VZ
784exec 5>./config.log
785
786echo "\
787This file contains any messages produced by compilers while
788running configure, to aid debugging if configure makes a mistake.
789" 1>&5
10f2d63a 790
698dcdb6
VZ
791# Strip out --no-create and --no-recursion so they do not pile up.
792# Also quote any args containing shell metacharacters.
793ac_configure_args=
794for ac_arg
10f2d63a 795do
698dcdb6
VZ
796 case "$ac_arg" in
797 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
798 | --no-cr | --no-c) ;;
799 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
800 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
801 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
802 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
803 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
10f2d63a
VZ
804 esac
805done
806
698dcdb6
VZ
807# NLS nuisances.
808# Only set these to C if already set. These must not be set unconditionally
809# because not all systems understand e.g. LANG=C (notably SCO).
810# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
811# Non-C LC_CTYPE values break the ctype check.
812if test "${LANG+set}" = set; then LANG=C; export LANG; fi
813if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
814if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
815if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
10f2d63a 816
698dcdb6
VZ
817# confdefs.h avoids OS command line length limits that DEFS can exceed.
818rm -rf conftest* confdefs.h
819# AIX cpp loses on an empty file, so make sure it contains at least a newline.
820echo > confdefs.h
10f2d63a 821
698dcdb6
VZ
822# A filename unique to this package, relative to the directory that
823# configure is in, which we can look for to find out if srcdir is correct.
824ac_unique_file=wx-config.in
10f2d63a
VZ
825
826# Find the source files, if location was not specified.
827if test -z "$srcdir"; then
828 ac_srcdir_defaulted=yes
829 # Try the directory containing this script, then its parent.
830 ac_prog=$0
698dcdb6 831 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
10f2d63a
VZ
832 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
833 srcdir=$ac_confdir
834 if test ! -r $srcdir/$ac_unique_file; then
835 srcdir=..
836 fi
837else
838 ac_srcdir_defaulted=no
839fi
840if test ! -r $srcdir/$ac_unique_file; then
841 if test "$ac_srcdir_defaulted" = yes; then
698dcdb6 842 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
10f2d63a 843 else
698dcdb6 844 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
10f2d63a
VZ
845 fi
846fi
698dcdb6 847srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
10f2d63a
VZ
848
849# Prefer explicitly selected file to automatically selected ones.
850if test -z "$CONFIG_SITE"; then
851 if test "x$prefix" != xNONE; then
852 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
853 else
854 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
855 fi
856fi
857for ac_site_file in $CONFIG_SITE; do
858 if test -r "$ac_site_file"; then
698dcdb6 859 echo "loading site script $ac_site_file"
10f2d63a
VZ
860 . "$ac_site_file"
861 fi
862done
863
864if test -r "$cache_file"; then
698dcdb6
VZ
865 echo "loading cache $cache_file"
866 . $cache_file
10f2d63a 867else
698dcdb6
VZ
868 echo "creating cache $cache_file"
869 > $cache_file
10f2d63a
VZ
870fi
871
872ac_ext=c
698dcdb6 873# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10f2d63a 874ac_cpp='$CPP $CPPFLAGS'
698dcdb6
VZ
875ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
876ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
877cross_compiling=$ac_cv_prog_cc_cross
878
879ac_exeext=
880ac_objext=o
881if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
882 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
883 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
884 ac_n= ac_c='
885' ac_t=' '
886 else
887 ac_n=-n ac_c= ac_t=
888 fi
10f2d63a 889else
698dcdb6 890 ac_n= ac_c='\c' ac_t=
10f2d63a 891fi
698dcdb6
VZ
892
893
10f2d63a 894
7c66a493
VZ
895ac_aux_dir=
896for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
897 if test -f $ac_dir/install-sh; then
898 ac_aux_dir=$ac_dir
899 ac_install_sh="$ac_aux_dir/install-sh -c"
900 break
901 elif test -f $ac_dir/install.sh; then
902 ac_aux_dir=$ac_dir
903 ac_install_sh="$ac_aux_dir/install.sh -c"
904 break
905 fi
906done
907if test -z "$ac_aux_dir"; then
698dcdb6 908 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
7c66a493 909fi
698dcdb6
VZ
910ac_config_guess=$ac_aux_dir/config.guess
911ac_config_sub=$ac_aux_dir/config.sub
912ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
703e0a69 913
698dcdb6
VZ
914
915# Do some error checking and defaulting for the host and target type.
916# The inputs are:
917# configure --host=HOST --target=TARGET --build=BUILD NONOPT
918#
919# The rules are:
920# 1. You are not allowed to specify --host, --target, and nonopt at the
921# same time.
922# 2. Host defaults to nonopt.
923# 3. If nonopt is not specified, then host defaults to the current host,
924# as determined by config.guess.
925# 4. Target and build default to nonopt.
926# 5. If nonopt is not specified, then target and build default to host.
7c66a493
VZ
927
928# The aliases save the names the user supplied, while $host etc.
929# will get canonicalized.
698dcdb6
VZ
930case $host---$target---$nonopt in
931NONE---*---* | *---NONE---* | *---*---NONE) ;;
932*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
933esac
934
935
936# Make sure we can run config.sub.
937if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
938else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
939fi
940
941echo $ac_n "checking host system type""... $ac_c" 1>&6
69d27ff7 942echo "configure:943: checking host system type" >&5
698dcdb6
VZ
943
944host_alias=$host
945case "$host_alias" in
946NONE)
947 case $nonopt in
948 NONE)
949 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
950 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
951 fi ;;
952 *) host_alias=$nonopt ;;
953 esac ;;
954esac
955
956host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
957host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
958host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
959host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
960echo "$ac_t""$host" 1>&6
961
962echo $ac_n "checking target system type""... $ac_c" 1>&6
69d27ff7 963echo "configure:964: checking target system type" >&5
698dcdb6
VZ
964
965target_alias=$target
966case "$target_alias" in
967NONE)
968 case $nonopt in
969 NONE) target_alias=$host_alias ;;
970 *) target_alias=$nonopt ;;
971 esac ;;
972esac
973
974target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
975target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
976target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
977target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
978echo "$ac_t""$target" 1>&6
979
980echo $ac_n "checking build system type""... $ac_c" 1>&6
69d27ff7 981echo "configure:982: checking build system type" >&5
698dcdb6
VZ
982
983build_alias=$build
984case "$build_alias" in
985NONE)
986 case $nonopt in
987 NONE) build_alias=$host_alias ;;
988 *) build_alias=$nonopt ;;
989 esac ;;
990esac
991
992build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
993build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
994build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
995build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
996echo "$ac_t""$build" 1>&6
997
998test "$host_alias" != "$target_alias" &&
7c66a493
VZ
999 test "$program_prefix$program_suffix$program_transform_name" = \
1000 NONENONEs,x,x, &&
1001 program_prefix=${target_alias}-
1002
698dcdb6
VZ
1003
1004
10f2d63a 1005WX_MAJOR_VERSION_NUMBER=2
37d403aa 1006WX_MINOR_VERSION_NUMBER=3
6c01ec02 1007WX_RELEASE_NUMBER=2
10f2d63a 1008
10f2d63a 1009WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER
10f2d63a 1010WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER
6426998c 1011
978f1259
RL
1012WX_MSW_VERSION=$WX_MAJOR_VERSION_NUMBER$WX_MINOR_VERSION_NUMBER$WX_RELEASE_NUMBER
1013
6c01ec02 1014WX_CURRENT=1
6426998c
RL
1015WX_REVISION=0
1016WX_AGE=0
1017
698dcdb6
VZ
1018
1019
10f2d63a
VZ
1020USE_UNIX=1
1021USE_WIN32=0
b12915c1 1022USE_BEOS=0
1216f52d 1023USE_MAC=0
b12915c1 1024
10f2d63a
VZ
1025USE_LINUX=
1026USE_SGI=
1027USE_HPUX=
1028USE_SYSV=
1029USE_SVR4=
1030USE_AIX=
1031USE_SUN=
1032USE_SOLARIS=
1033USE_SUNOS=
1034USE_ALPHA=
1035USE_OSF=
1036USE_BSD=
f11bdd03 1037USE_DARWIN=
10f2d63a 1038USE_FREEBSD=
95c8801c 1039USE_OPENBSD=
f6bcfd97 1040USE_NETBSD=
10f2d63a
VZ
1041USE_VMS=
1042USE_ULTRIX=
10f2d63a
VZ
1043USE_DATA_GENERAL=
1044
ab9b9eab
VZ
1045NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1046
77e13408 1047ALL_TOOLKITS="GTK MAC MGL MOTIF MSW PM WINE"
10f2d63a
VZ
1048
1049DEFAULT_wxUSE_GTK=0
1e6feb95
VZ
1050DEFAULT_wxUSE_MAC=0
1051DEFAULT_wxUSE_MGL=0
10f2d63a
VZ
1052DEFAULT_wxUSE_MOTIF=0
1053DEFAULT_wxUSE_MSW=0
e07802fc 1054DEFAULT_wxUSE_PM=0
1e6feb95 1055DEFAULT_wxUSE_WINE=0
10f2d63a
VZ
1056
1057DEFAULT_DEFAULT_wxUSE_GTK=0
1e6feb95
VZ
1058DEFAULT_DEFAULT_wxUSE_MAC=0
1059DEFAULT_DEFAULT_wxUSE_MGL=0
10f2d63a
VZ
1060DEFAULT_DEFAULT_wxUSE_MOTIF=0
1061DEFAULT_DEFAULT_wxUSE_MSW=0
e07802fc 1062DEFAULT_DEFAULT_wxUSE_PM=0
1e6feb95 1063DEFAULT_DEFAULT_wxUSE_WINE=0
10f2d63a 1064
d6a55c4b 1065PROGRAM_EXT=
3a922bb4 1066SO_SUFFIX=so
d6a55c4b 1067
10f2d63a
VZ
1068case "${host}" in
1069 *-hp-hpux* )
1070 USE_HPUX=1
1071 DEFAULT_DEFAULT_wxUSE_MOTIF=1
ab9b9eab 1072 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
3a922bb4 1073 SO_SUFFIX=sl
698dcdb6 1074 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1075#define __HPUX__ 1
1076EOF
1077
1078 ;;
1079 *-*-linux* )
1080 USE_LINUX=1
698dcdb6 1081 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1082#define __LINUX__ 1
1083EOF
1084
1085 TMP=`uname -m`
1086 if test "x$TMP" = "xalpha"; then
1087 USE_ALPHA=1
698dcdb6 1088 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1089#define __ALPHA__ 1
1090EOF
1091
1092 fi
1093 DEFAULT_DEFAULT_wxUSE_GTK=1
1094 ;;
1095 *-*-irix5* | *-*-irix6* )
1096 USE_SGI=1
1097 USE_SVR4=1
698dcdb6 1098 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1099#define __SGI__ 1
1100EOF
1101
698dcdb6 1102 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1103#define __SVR4__ 1
1104EOF
1105
1106 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1107 ;;
1108 *-*-solaris2* )
1109 USE_SUN=1
1110 USE_SOLARIS=1
1111 USE_SVR4=1
698dcdb6 1112 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1113#define __SUN__ 1
1114EOF
1115
698dcdb6 1116 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1117#define __SOLARIS__ 1
1118EOF
1119
698dcdb6 1120 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1121#define __SVR4__ 1
1122EOF
1123
1124 DEFAULT_DEFAULT_wxUSE_MOTIF=1
ab9b9eab 1125 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
10f2d63a
VZ
1126 ;;
1127 *-*-sunos4* )
1128 USE_SUN=1
1129 USE_SUNOS=1
1130 USE_BSD=1
698dcdb6 1131 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1132#define __SUN__ 1
1133EOF
1134
698dcdb6 1135 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1136#define __SUNOS__ 1
1137EOF
1138
698dcdb6 1139 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1140#define __BSD__ 1
1141EOF
1142
1143 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1144 ;;
f6bcfd97 1145 *-*-freebsd*)
10f2d63a
VZ
1146 USE_BSD=1
1147 USE_FREEBSD=1
698dcdb6 1148 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1149#define __FREEBSD__ 1
1150EOF
1151
698dcdb6 1152 cat >> confdefs.h <<\EOF
10f2d63a 1153#define __BSD__ 1
95c8801c
VS
1154EOF
1155
1156 DEFAULT_DEFAULT_wxUSE_GTK=1
1157 ;;
1158 *-*-openbsd*)
1159 USE_BSD=1
1160 USE_OPENBSD=1
698dcdb6 1161 cat >> confdefs.h <<\EOF
95c8801c
VS
1162#define __FREEBSD__ 1
1163EOF
1164
698dcdb6 1165 cat >> confdefs.h <<\EOF
95c8801c 1166#define __OPENBSD__ 1
f6bcfd97
BP
1167EOF
1168
1169 DEFAULT_DEFAULT_wxUSE_GTK=1
1170 ;;
1171 *-*-netbsd*)
1172 USE_BSD=1
1173 USE_NETBSD=1
698dcdb6 1174 cat >> confdefs.h <<\EOF
f6bcfd97
BP
1175#define __FREEBSD__ 1
1176EOF
1177
698dcdb6 1178 cat >> confdefs.h <<\EOF
f6bcfd97 1179#define __NETBSD__ 1
10f2d63a
VZ
1180EOF
1181
1182 DEFAULT_DEFAULT_wxUSE_GTK=1
1183 ;;
1184 *-*-osf* )
1185 USE_ALPHA=1
1186 USE_OSF=1
698dcdb6 1187 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1188#define __ALPHA__ 1
1189EOF
1190
698dcdb6 1191 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1192#define __OSF__ 1
1193EOF
1194
1195 DEFAULT_DEFAULT_wxUSE_MOTIF=1
f6bcfd97 1196 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
10f2d63a
VZ
1197 ;;
1198 *-*-dgux5* )
1199 USE_ALPHA=1
1200 USE_SVR4=1
698dcdb6 1201 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1202#define __ALPHA__ 1
1203EOF
1204
698dcdb6 1205 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1206#define __SVR4__ 1
1207EOF
1208
1209 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1210 ;;
1211 *-*-sysv5* )
1212 USE_SYSV=1
1213 USE_SVR4=1
698dcdb6 1214 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1215#define __SYSV__ 1
1216EOF
1217
698dcdb6 1218 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1219#define __SVR4__ 1
1220EOF
1221
1222 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1223 ;;
1224 *-*-aix* )
1225 USE_AIX=1
1226 USE_SYSV=1
1227 USE_SVR4=1
698dcdb6 1228 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1229#define __AIX__ 1
1230EOF
1231
698dcdb6 1232 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1233#define __SYSV__ 1
1234EOF
1235
698dcdb6 1236 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1237#define __SVR4__ 1
1238EOF
1239
1240 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1241 ;;
1242
1c8183e2 1243 *-*-cygwin* | *-*-mingw32* )
10f2d63a
VZ
1244 USE_UNIX=0
1245 USE_WIN32=1
3a922bb4 1246 SO_SUFFIX=dll
698dcdb6 1247 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1248#define __WIN32__ 1
1249EOF
1250
698dcdb6 1251 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1252#define __WIN95__ 1
1253EOF
1254
698dcdb6 1255 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1256#define __WINDOWS__ 1
1257EOF
1258
698dcdb6 1259 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1260#define __GNUWIN32__ 1
1261EOF
1262
698dcdb6 1263 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1264#define STRICT 1
1265EOF
1266
698dcdb6 1267 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1268#define WINVER 0x0400
1269EOF
1270
cf27ef00 1271 PROGRAM_EXT=".exe"
7b7a7637 1272 RESCOMP=windres
10f2d63a
VZ
1273 DEFAULT_DEFAULT_wxUSE_MSW=1
1274 ;;
1275
6fa882bd 1276 *-pc-os2_emx | *-pc-os2-emx )
698dcdb6 1277 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1278#define __EMX__ 1
1279EOF
1280
cf27ef00 1281 PROGRAM_EXT=".exe"
e07802fc 1282 DEFAULT_DEFAULT_wxUSE_PM=1
10f2d63a
VZ
1283 ;;
1284
d08b457b
GD
1285 powerpc-*-darwin* )
1286 USE_BSD=1
f11bdd03 1287 USE_DARWIN=1
3a922bb4 1288 SO_SUFFIX=dylib
698dcdb6 1289 cat >> confdefs.h <<\EOF
f11bdd03 1290#define __BSD__ 1
b4085ce6
GD
1291EOF
1292
698dcdb6 1293 cat >> confdefs.h <<\EOF
f11bdd03 1294#define __DARWIN__ 1
d08b457b
GD
1295EOF
1296
1297 cat >> confdefs.h <<\EOF
1298#define __POWERPC__ 1
b4085ce6
GD
1299EOF
1300
1301 DEFAULT_DEFAULT_wxUSE_MAC=1
1302 ;;
1303
b12915c1
VZ
1304 *-*-beos* )
1305 USE_BEOS=1
698dcdb6 1306 cat >> confdefs.h <<\EOF
b12915c1
VZ
1307#define __BEOS__ 1
1308EOF
1309
1310 ;;
1311
10f2d63a 1312 *)
698dcdb6 1313 { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; }
10f2d63a
VZ
1314esac
1315
1316if test "$USE_UNIX" = 1 ; then
b12915c1 1317 wxUSE_UNIX=yes
698dcdb6 1318 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1319#define __UNIX__ 1
1320EOF
1321
10f2d63a
VZ
1322fi
1323
2389f33b
VZ
1324if test "$USE_LINUX" = 1; then
1325 echo $ac_n "checking for glibc 2.1 or later""... $ac_c" 1>&6
69d27ff7 1326echo "configure:1327: checking for glibc 2.1 or later" >&5
2389f33b
VZ
1327if eval "test \"`echo '$''{'wx_lib_glibc21'+set}'`\" = set"; then
1328 echo $ac_n "(cached) $ac_c" 1>&6
1329else
1330 cat > conftest.$ac_ext <<EOF
69d27ff7 1331#line 1332 "configure"
2389f33b
VZ
1332#include "confdefs.h"
1333#include <features.h>
1334int main() {
1335
1336 #if !__GLIBC_PREREQ(2, 1)
1337 #error not glibc2.1
1338 #endif
1339
1340; return 0; }
1341EOF
69d27ff7 1342if { (eval echo configure:1343: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2389f33b
VZ
1343 rm -rf conftest*
1344
1345 wx_lib_glibc21=yes
1346
1347else
1348 echo "configure: failed program was:" >&5
1349 cat conftest.$ac_ext >&5
1350 rm -rf conftest*
1351
1352 wx_lib_glibc21=no
1353
1354
1355fi
1356rm -f conftest*
1357
1358fi
1359
1360echo "$ac_t""$wx_lib_glibc21" 1>&6
2389f33b
VZ
1361 if test "$wx_lib_glibc21" = "yes"; then
1362 cat >> confdefs.h <<\EOF
1363#define wxHAVE_GLIBC2 1
1364EOF
1365
1366 fi
1367fi
10f2d63a 1368
1e487827 1369
1e487827 1370
6232543b 1371
10f2d63a
VZ
1372 wx_arg_cache_file="configarg.cache"
1373 echo "loading argument cache $wx_arg_cache_file"
1374 rm -f ${wx_arg_cache_file}.tmp
1375 touch ${wx_arg_cache_file}.tmp
1376 touch ${wx_arg_cache_file}
698dcdb6 1377
10f2d63a
VZ
1378
1379DEBUG_CONFIGURE=0
1380if test $DEBUG_CONFIGURE = 1; then
1e6feb95
VZ
1381 DEFAULT_wxUSE_UNIVERSAL=no
1382
10f2d63a
VZ
1383 DEFAULT_wxUSE_THREADS=yes
1384
1385 DEFAULT_wxUSE_SHARED=yes
3a922bb4 1386 DEFAULT_wxUSE_SONAME=no
1e6feb95 1387 DEFAULT_wxUSE_OPTIMISE=no
10f2d63a
VZ
1388 DEFAULT_wxUSE_PROFILE=no
1389 DEFAULT_wxUSE_NO_DEPS=no
f676c7ff
MB
1390 DEFAULT_wxUSE_NO_RTTI=yes
1391 DEFAULT_wxUSE_NO_EXCEPTIONS=yes
10f2d63a
VZ
1392 DEFAULT_wxUSE_PERMISSIVE=no
1393 DEFAULT_wxUSE_DEBUG_FLAG=yes
1394 DEFAULT_wxUSE_DEBUG_INFO=yes
1395 DEFAULT_wxUSE_DEBUG_GDB=yes
1396 DEFAULT_wxUSE_MEM_TRACING=no
1397 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1398 DEFAULT_wxUSE_DMALLOC=no
683dccda 1399 DEFAULT_wxUSE_PRECOMP=yes
10f2d63a
VZ
1400 DEFAULT_wxUSE_APPLE_IEEE=no
1401
1402 DEFAULT_wxUSE_LOG=yes
1e6feb95
VZ
1403 DEFAULT_wxUSE_LOGWINDOW=no
1404 DEFAULT_wxUSE_LOGGUI=no
69d27ff7 1405 DEFAULT_wxUSE_LOGDIALOG=no
10f2d63a
VZ
1406
1407 DEFAULT_wxUSE_GUI=yes
1e6feb95 1408 DEFAULT_wxUSE_CONTROLS=no
10f2d63a 1409
3e44f09d 1410 DEFAULT_wxUSE_REGEX=no
10f2d63a
VZ
1411 DEFAULT_wxUSE_ZLIB=no
1412 DEFAULT_wxUSE_LIBPNG=no
1413 DEFAULT_wxUSE_LIBJPEG=no
c7a2bf27 1414 DEFAULT_wxUSE_LIBTIFF=no
10f2d63a 1415 DEFAULT_wxUSE_ODBC=no
3fed1840 1416 DEFAULT_wxUSE_FREETYPE=no
bdad4e7e 1417 DEFAULT_wxUSE_OPENGL=no
10f2d63a 1418
eb4efbdc 1419 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
4f3c5f06 1420 DEFAULT_wxUSE_SNGLINST_CHECKER=no
10f2d63a 1421 DEFAULT_wxUSE_STD_IOSTREAM=no
1e6feb95
VZ
1422 DEFAULT_wxUSE_CMDLINE_PARSER=no
1423 DEFAULT_wxUSE_DATETIME=no
1424 DEFAULT_wxUSE_TIMEDATE=no
1425 DEFAULT_wxUSE_TIMER=no
1426 DEFAULT_wxUSE_STOPWATCH=no
10f2d63a 1427 DEFAULT_wxUSE_FILE=no
1e6feb95 1428 DEFAULT_wxUSE_FFILE=no
a3a584a7 1429 DEFAULT_wxUSE_TEXTBUFFER=no
10f2d63a 1430 DEFAULT_wxUSE_TEXTFILE=no
10f2d63a
VZ
1431 DEFAULT_wxUSE_WAVE=no
1432 DEFAULT_wxUSE_INTL=no
1433 DEFAULT_wxUSE_CONFIG=no
1e6feb95 1434 DEFAULT_wxUSE_FONTMAP=no
10f2d63a
VZ
1435 DEFAULT_wxUSE_STREAMS=no
1436 DEFAULT_wxUSE_SOCKETS=no
1437 DEFAULT_wxUSE_DIALUP_MANAGER=no
1438 DEFAULT_wxUSE_SERIAL=no
1439 DEFAULT_wxUSE_JOYSTICK=no
1440 DEFAULT_wxUSE_DYNLIB_CLASS=no
1441 DEFAULT_wxUSE_LONGLONG=no
e8f65ba6 1442 DEFAULT_wxUSE_GEOMETRY=no
10f2d63a
VZ
1443
1444 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
1445 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
1446 DEFAULT_wxUSE_POSTSCRIPT=no
1447
1448 DEFAULT_wxUSE_X_RESOURCES=no
1449 DEFAULT_wxUSE_CLIPBOARD=no
1450 DEFAULT_wxUSE_TOOLTIPS=no
1451 DEFAULT_wxUSE_DRAG_AND_DROP=no
24fd6d87 1452 DEFAULT_wxUSE_DRAGIMAGE=no
10f2d63a
VZ
1453 DEFAULT_wxUSE_SPLINES=no
1454
1455 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
1456 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
1457 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
1458
1459 DEFAULT_wxUSE_PROLOGIO=no
1460 DEFAULT_wxUSE_RESOURCES=no
1461 DEFAULT_wxUSE_CONSTRAINTS=no
1462 DEFAULT_wxUSE_IPC=no
1463 DEFAULT_wxUSE_HELP=no
29fd3c0c 1464 DEFAULT_wxUSE_MS_HTML_HELP=no
3379ed37 1465 DEFAULT_wxUSE_WXHTML_HELP=no
24176f2c 1466 DEFAULT_wxUSE_TREELAYOUT=no
10f2d63a 1467 DEFAULT_wxUSE_METAFILE=no
1e6feb95 1468 DEFAULT_wxUSE_MIMETYPE=no
3e44f09d 1469 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
10f2d63a
VZ
1470
1471 DEFAULT_wxUSE_COMMONDLGS=no
1e6feb95
VZ
1472 DEFAULT_wxUSE_CHOICEDLG=no
1473 DEFAULT_wxUSE_COLOURDLG=no
10f2d63a 1474 DEFAULT_wxUSE_DIRDLG=no
1e6feb95 1475 DEFAULT_wxUSE_FILEDLG=no
8db37e06 1476 DEFAULT_wxUSE_FINDREPLDLG=no
1e6feb95
VZ
1477 DEFAULT_wxUSE_FONTDLG=no
1478 DEFAULT_wxUSE_MSGDLG=no
1479 DEFAULT_wxUSE_NUMBERDLG=no
10f2d63a 1480 DEFAULT_wxUSE_TEXTDLG=no
cbca9943 1481 DEFAULT_wxUSE_SPLASH=no
10f2d63a
VZ
1482 DEFAULT_wxUSE_STARTUP_TIPS=no
1483 DEFAULT_wxUSE_PROGRESSDLG=no
b1f5d087
VZ
1484 DEFAULT_wxUSE_WIZARDDLG=no
1485
1e6feb95 1486 DEFAULT_wxUSE_MENUS=no
10f2d63a
VZ
1487 DEFAULT_wxUSE_MINIFRAME=no
1488 DEFAULT_wxUSE_HTML=no
24528b0c 1489 DEFAULT_wxUSE_FILESYSTEM=no
10f2d63a
VZ
1490 DEFAULT_wxUSE_FS_INET=no
1491 DEFAULT_wxUSE_FS_ZIP=no
1492 DEFAULT_wxUSE_BUSYINFO=no
1493 DEFAULT_wxUSE_ZIPSTREAM=no
1e6feb95 1494 DEFAULT_wxUSE_VALIDATORS=no
10f2d63a
VZ
1495
1496 DEFAULT_wxUSE_ACCEL=no
1e6feb95 1497 DEFAULT_wxUSE_BUTTON=no
10f2d63a 1498 DEFAULT_wxUSE_BMPBUTTON=no
1e6feb95
VZ
1499 DEFAULT_wxUSE_CALCTRL=no
1500 DEFAULT_wxUSE_CARET=no
10f2d63a
VZ
1501 DEFAULT_wxUSE_CHECKBOX=no
1502 DEFAULT_wxUSE_CHECKLST=no
1e6feb95 1503 DEFAULT_wxUSE_CHOICE=no
10f2d63a
VZ
1504 DEFAULT_wxUSE_COMBOBOX=no
1505 DEFAULT_wxUSE_GAUGE=no
1506 DEFAULT_wxUSE_GRID=no
1507 DEFAULT_wxUSE_NEW_GRID=no
1508 DEFAULT_wxUSE_IMAGLIST=no
1509 DEFAULT_wxUSE_LISTBOX=no
1510 DEFAULT_wxUSE_LISTCTRL=no
1511 DEFAULT_wxUSE_NOTEBOOK=no
24176f2c 1512 DEFAULT_wxUSE_PROPSHEET=no
10f2d63a
VZ
1513 DEFAULT_wxUSE_RADIOBOX=no
1514 DEFAULT_wxUSE_RADIOBTN=no
1515 DEFAULT_wxUSE_SASH=no
1516 DEFAULT_wxUSE_SCROLLBAR=no
1517 DEFAULT_wxUSE_SLIDER=no
1518 DEFAULT_wxUSE_SPINBTN=no
56cfaa52 1519 DEFAULT_wxUSE_SPINCTRL=no
10f2d63a
VZ
1520 DEFAULT_wxUSE_SPLITTER=no
1521 DEFAULT_wxUSE_STATBMP=no
1522 DEFAULT_wxUSE_STATBOX=no
1523 DEFAULT_wxUSE_STATLINE=no
1e6feb95 1524 DEFAULT_wxUSE_STATTEXT=no
10f2d63a
VZ
1525 DEFAULT_wxUSE_STATUSBAR=yes
1526 DEFAULT_wxUSE_TABDIALOG=no
1e6feb95 1527 DEFAULT_wxUSE_TEXTCTRL=no
1db8dc4a 1528 DEFAULT_wxUSE_TOGGLEBTN=no
10f2d63a 1529 DEFAULT_wxUSE_TOOLBAR=no
360d6699
VZ
1530 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
1531 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
10f2d63a 1532 DEFAULT_wxUSE_TREECTRL=no
9f41d601 1533 DEFAULT_wxUSE_POPUPWIN=no
10f2d63a
VZ
1534
1535 DEFAULT_wxUSE_UNICODE=no
1536 DEFAULT_wxUSE_WCSRTOMBS=no
1537
edae8572 1538 DEFAULT_wxUSE_PALETTE=no
0046ff7c 1539 DEFAULT_wxUSE_IMAGE=no
10f2d63a
VZ
1540 DEFAULT_wxUSE_GIF=no
1541 DEFAULT_wxUSE_PCX=no
1542 DEFAULT_wxUSE_PNM=no
0046ff7c 1543 DEFAULT_wxUSE_XPM=no
10f2d63a 1544else
1e6feb95
VZ
1545 DEFAULT_wxUSE_UNIVERSAL=no
1546
10f2d63a
VZ
1547 DEFAULT_wxUSE_THREADS=yes
1548
1549 DEFAULT_wxUSE_SHARED=yes
3a922bb4 1550 DEFAULT_wxUSE_SONAME=no
10f2d63a
VZ
1551 DEFAULT_wxUSE_OPTIMISE=yes
1552 DEFAULT_wxUSE_PROFILE=no
1553 DEFAULT_wxUSE_NO_DEPS=no
f676c7ff
MB
1554 DEFAULT_wxUSE_NO_RTTI=yes
1555 DEFAULT_wxUSE_NO_EXCEPTIONS=yes
10f2d63a
VZ
1556 DEFAULT_wxUSE_PERMISSIVE=no
1557 DEFAULT_wxUSE_DEBUG_FLAG=no
1558 DEFAULT_wxUSE_DEBUG_INFO=no
1559 DEFAULT_wxUSE_DEBUG_GDB=no
1560 DEFAULT_wxUSE_MEM_TRACING=no
1561 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1562 DEFAULT_wxUSE_DMALLOC=no
683dccda 1563 DEFAULT_wxUSE_PRECOMP=yes
10f2d63a
VZ
1564 DEFAULT_wxUSE_APPLE_IEEE=yes
1565
1566 DEFAULT_wxUSE_LOG=yes
d73be714
VZ
1567 DEFAULT_wxUSE_LOGWINDOW=yes
1568 DEFAULT_wxUSE_LOGGUI=yes
69d27ff7 1569 DEFAULT_wxUSE_LOGDIALOG=yes
10f2d63a
VZ
1570
1571 DEFAULT_wxUSE_GUI=yes
1572
831b3152 1573 DEFAULT_wxUSE_REGEX=yes
10f2d63a
VZ
1574 DEFAULT_wxUSE_ZLIB=yes
1575 DEFAULT_wxUSE_LIBPNG=yes
1576 DEFAULT_wxUSE_LIBJPEG=yes
b47c832e 1577 DEFAULT_wxUSE_LIBTIFF=yes
16b52fa1 1578 DEFAULT_wxUSE_ODBC=no
3fed1840 1579 DEFAULT_wxUSE_FREETYPE=no
bdad4e7e 1580 DEFAULT_wxUSE_OPENGL=no
10f2d63a 1581
eb4efbdc 1582 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
4f3c5f06 1583 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
10f2d63a 1584 DEFAULT_wxUSE_STD_IOSTREAM=no
1e6feb95
VZ
1585 DEFAULT_wxUSE_CMDLINE_PARSER=yes
1586 DEFAULT_wxUSE_DATETIME=yes
1587 DEFAULT_wxUSE_TIMEDATE=no
1588 DEFAULT_wxUSE_TIMER=yes
1589 DEFAULT_wxUSE_STOPWATCH=yes
10f2d63a 1590 DEFAULT_wxUSE_FILE=yes
1e6feb95 1591 DEFAULT_wxUSE_FFILE=yes
a3a584a7 1592 DEFAULT_wxUSE_TEXTBUFFER=yes
10f2d63a 1593 DEFAULT_wxUSE_TEXTFILE=yes
10f2d63a
VZ
1594 DEFAULT_wxUSE_WAVE=no
1595 DEFAULT_wxUSE_INTL=yes
1596 DEFAULT_wxUSE_CONFIG=yes
1e6feb95 1597 DEFAULT_wxUSE_FONTMAP=yes
10f2d63a
VZ
1598 DEFAULT_wxUSE_STREAMS=yes
1599 DEFAULT_wxUSE_SOCKETS=yes
1600 DEFAULT_wxUSE_DIALUP_MANAGER=yes
1601 DEFAULT_wxUSE_SERIAL=yes
1602 DEFAULT_wxUSE_JOYSTICK=yes
1603 DEFAULT_wxUSE_DYNLIB_CLASS=yes
b685cd9b 1604 DEFAULT_wxUSE_LONGLONG=yes
e8f65ba6 1605 DEFAULT_wxUSE_GEOMETRY=yes
10f2d63a
VZ
1606
1607 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
1608 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
1609 DEFAULT_wxUSE_POSTSCRIPT=yes
1610
1611 DEFAULT_wxUSE_X_RESOURCES=no
1612 DEFAULT_wxUSE_CLIPBOARD=yes
1613 DEFAULT_wxUSE_TOOLTIPS=yes
1614 DEFAULT_wxUSE_DRAG_AND_DROP=yes
24fd6d87 1615 DEFAULT_wxUSE_DRAGIMAGE=yes
10f2d63a
VZ
1616 DEFAULT_wxUSE_SPLINES=yes
1617
1618 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
1619 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
1620 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
1621
1622 DEFAULT_wxUSE_PROLOGIO=yes
1623 DEFAULT_wxUSE_RESOURCES=yes
1624 DEFAULT_wxUSE_CONSTRAINTS=yes
1625 DEFAULT_wxUSE_IPC=yes
1626 DEFAULT_wxUSE_HELP=yes
29fd3c0c 1627 DEFAULT_wxUSE_MS_HTML_HELP=yes
3379ed37 1628 DEFAULT_wxUSE_WXHTML_HELP=yes
24176f2c 1629 DEFAULT_wxUSE_TREELAYOUT=yes
10f2d63a 1630 DEFAULT_wxUSE_METAFILE=yes
1e6feb95 1631 DEFAULT_wxUSE_MIMETYPE=yes
3e44f09d 1632 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
10f2d63a
VZ
1633
1634 DEFAULT_wxUSE_COMMONDLGS=yes
1e6feb95
VZ
1635 DEFAULT_wxUSE_CHOICEDLG=yes
1636 DEFAULT_wxUSE_COLOURDLG=yes
10f2d63a 1637 DEFAULT_wxUSE_DIRDLG=yes
1e6feb95 1638 DEFAULT_wxUSE_FILEDLG=yes
8db37e06 1639 DEFAULT_wxUSE_FINDREPLDLG=yes
1e6feb95
VZ
1640 DEFAULT_wxUSE_FONTDLG=yes
1641 DEFAULT_wxUSE_MSGDLG=yes
1642 DEFAULT_wxUSE_NUMBERDLG=yes
10f2d63a 1643 DEFAULT_wxUSE_TEXTDLG=yes
cbca9943 1644 DEFAULT_wxUSE_SPLASH=yes
10f2d63a
VZ
1645 DEFAULT_wxUSE_STARTUP_TIPS=yes
1646 DEFAULT_wxUSE_PROGRESSDLG=yes
f33f19dd
VZ
1647 DEFAULT_wxUSE_WIZARDDLG=yes
1648
1e6feb95 1649 DEFAULT_wxUSE_MENUS=yes
10f2d63a
VZ
1650 DEFAULT_wxUSE_MINIFRAME=yes
1651 DEFAULT_wxUSE_HTML=yes
24528b0c 1652 DEFAULT_wxUSE_FILESYSTEM=yes
10f2d63a
VZ
1653 DEFAULT_wxUSE_FS_INET=yes
1654 DEFAULT_wxUSE_FS_ZIP=yes
1655 DEFAULT_wxUSE_BUSYINFO=yes
1656 DEFAULT_wxUSE_ZIPSTREAM=yes
1657 DEFAULT_wxUSE_VALIDATORS=yes
1658
1659 DEFAULT_wxUSE_ACCEL=yes
1e6feb95 1660 DEFAULT_wxUSE_BUTTON=yes
10f2d63a 1661 DEFAULT_wxUSE_BMPBUTTON=yes
1e6feb95
VZ
1662 DEFAULT_wxUSE_CALCTRL=yes
1663 DEFAULT_wxUSE_CARET=yes
10f2d63a
VZ
1664 DEFAULT_wxUSE_CHECKBOX=yes
1665 DEFAULT_wxUSE_CHECKLST=yes
1666 DEFAULT_wxUSE_CHOICE=yes
1667 DEFAULT_wxUSE_COMBOBOX=yes
1668 DEFAULT_wxUSE_GAUGE=yes
1669 DEFAULT_wxUSE_GRID=yes
cc977e5f 1670 DEFAULT_wxUSE_NEW_GRID=yes
10f2d63a
VZ
1671 DEFAULT_wxUSE_IMAGLIST=yes
1672 DEFAULT_wxUSE_LISTBOX=yes
1673 DEFAULT_wxUSE_LISTCTRL=yes
1674 DEFAULT_wxUSE_NOTEBOOK=yes
24176f2c 1675 DEFAULT_wxUSE_PROPSHEET=yes
10f2d63a
VZ
1676 DEFAULT_wxUSE_RADIOBOX=yes
1677 DEFAULT_wxUSE_RADIOBTN=yes
1678 DEFAULT_wxUSE_SASH=yes
1679 DEFAULT_wxUSE_SCROLLBAR=yes
1680 DEFAULT_wxUSE_SLIDER=yes
1681 DEFAULT_wxUSE_SPINBTN=yes
56cfaa52 1682 DEFAULT_wxUSE_SPINCTRL=yes
10f2d63a
VZ
1683 DEFAULT_wxUSE_SPLITTER=yes
1684 DEFAULT_wxUSE_STATBMP=yes
1685 DEFAULT_wxUSE_STATBOX=yes
1686 DEFAULT_wxUSE_STATLINE=yes
1e6feb95 1687 DEFAULT_wxUSE_STATTEXT=yes
10f2d63a
VZ
1688 DEFAULT_wxUSE_STATUSBAR=yes
1689 DEFAULT_wxUSE_TABDIALOG=no
1e6feb95 1690 DEFAULT_wxUSE_TEXTCTRL=yes
1db8dc4a 1691 DEFAULT_wxUSE_TOGGLEBTN=yes
10f2d63a 1692 DEFAULT_wxUSE_TOOLBAR=yes
360d6699
VZ
1693 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
1694 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
10f2d63a 1695 DEFAULT_wxUSE_TREECTRL=yes
9f41d601 1696 DEFAULT_wxUSE_POPUPWIN=yes
10f2d63a
VZ
1697
1698 DEFAULT_wxUSE_UNICODE=no
1699 DEFAULT_wxUSE_WCSRTOMBS=no
1700
edae8572 1701 DEFAULT_wxUSE_PALETTE=yes
0046ff7c 1702 DEFAULT_wxUSE_IMAGE=yes
10f2d63a
VZ
1703 DEFAULT_wxUSE_GIF=yes
1704 DEFAULT_wxUSE_PCX=yes
1705 DEFAULT_wxUSE_PNM=yes
0046ff7c 1706 DEFAULT_wxUSE_XPM=yes
10f2d63a
VZ
1707fi
1708
698dcdb6
VZ
1709
1710
10f2d63a
VZ
1711for toolkit in `echo $ALL_TOOLKITS`; do
1712 LINE=`grep "wxUSE_$toolkit" ${wx_arg_cache_file}`
1713 if test "x$LINE" != x ; then
1714 has_toolkit_in_cache=1
1715 eval "DEFAULT_$LINE"
1716 eval "CACHE_$toolkit=1"
1717 fi
1718done
1719
698dcdb6
VZ
1720
1721
1722 echo $ac_n "checking for --enable-gui""... $ac_c" 1>&6
69d27ff7 1723echo "configure:1724: checking for --enable-gui" >&5
10f2d63a
VZ
1724 no_cache=0
1725 # Check whether --enable-gui or --disable-gui was given.
1726if test "${enable_gui+set}" = set; then
1727 enableval="$enable_gui"
698dcdb6 1728
10f2d63a
VZ
1729 if test "$enableval" = yes; then
1730 ac_cv_use_gui='wxUSE_GUI=yes'
1731 else
1732 ac_cv_use_gui='wxUSE_GUI=no'
1733 fi
698dcdb6 1734
10f2d63a 1735else
698dcdb6 1736
10f2d63a
VZ
1737 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
1738 if test "x$LINE" != x ; then
1739 eval "DEFAULT_$LINE"
1740 else
1741 no_cache=1
1742 fi
1743
1744 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
698dcdb6
VZ
1745
1746fi
10f2d63a
VZ
1747
1748
1749 eval "$ac_cv_use_gui"
1750 if test "$no_cache" != 1; then
1751 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
1752 fi
1753
1754 if test "$wxUSE_GUI" = yes; then
698dcdb6 1755 echo "$ac_t""yes" 1>&6
10f2d63a 1756 else
698dcdb6 1757 echo "$ac_t""no" 1>&6
10f2d63a 1758 fi
698dcdb6 1759
10f2d63a 1760
b12915c1 1761if test "$wxUSE_GUI" = "yes"; then
10f2d63a 1762
1e6feb95
VZ
1763
1764 echo $ac_n "checking for --enable-universal""... $ac_c" 1>&6
69d27ff7 1765echo "configure:1766: checking for --enable-universal" >&5
1e6feb95
VZ
1766 no_cache=0
1767 # Check whether --enable-universal or --disable-universal was given.
1768if test "${enable_universal+set}" = set; then
1769 enableval="$enable_universal"
1770
1771 if test "$enableval" = yes; then
1772 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
1773 else
1774 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
1775 fi
1776
1777else
1778
1779 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
1780 if test "x$LINE" != x ; then
1781 eval "DEFAULT_$LINE"
1782 else
1783 no_cache=1
1784 fi
1785
1786 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
1787
1788fi
1789
1790
1791 eval "$ac_cv_use_universal"
1792 if test "$no_cache" != 1; then
1793 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
1794 fi
1795
1796 if test "$wxUSE_UNIVERSAL" = yes; then
1797 echo "$ac_t""yes" 1>&6
1798 else
1799 echo "$ac_t""no" 1>&6
1800 fi
1801
10f2d63a
VZ
1802# Check whether --with-gtk or --without-gtk was given.
1803if test "${with_gtk+set}" = set; then
1804 withval="$with_gtk"
1805 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
698dcdb6 1806fi
10f2d63a
VZ
1807
1808# Check whether --with-motif or --without-motif was given.
1809if test "${with_motif+set}" = set; then
1810 withval="$with_motif"
1811 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
698dcdb6 1812fi
10f2d63a 1813
b4085ce6
GD
1814# Check whether --with-mac or --without-mac was given.
1815if test "${with_mac+set}" = set; then
1816 withval="$with_mac"
1817 wxUSE_MAC="$withval" TOOLKIT_GIVEN=1
698dcdb6 1818fi
b4085ce6 1819
10f2d63a
VZ
1820# Check whether --with-wine or --without-wine was given.
1821if test "${with_wine+set}" = set; then
1822 withval="$with_wine"
1823 wxUSE_WINE="$withval" CACHE_WINE=1 TOOLKIT_GIVEN=1
698dcdb6 1824fi
10f2d63a 1825
77e13408
RL
1826# Check whether --with-msw or --without-msw was given.
1827if test "${with_msw+set}" = set; then
1828 withval="$with_msw"
1829 wxUSE_MSW="$withval" CACHE_MSW TOOLKIT_GIVEN=1
698dcdb6 1830fi
10f2d63a 1831
e07802fc
VZ
1832# Check whether --with-pm or --without-pm was given.
1833if test "${with_pm+set}" = set; then
1834 withval="$with_pm"
1835 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
698dcdb6
VZ
1836fi
1837
1e6feb95
VZ
1838# Check whether --with-mgl or --without-mgl was given.
1839if test "${with_mgl+set}" = set; then
1840 withval="$with_mgl"
1841 wxUSE_MGL="$withval" CACHE_MGL=1 TOOLKIT_GIVEN=1
1842fi
1843
10f2d63a 1844
8168de4c
VZ
1845# Check whether --enable-gtk2 or --disable-gtk2 was given.
1846if test "${enable_gtk2+set}" = set; then
1847 enableval="$enable_gtk2"
1848 wxUSE_GTK2=1
10f2d63a 1849else
8168de4c 1850 wxUSE_GTK2=0
698dcdb6
VZ
1851fi
1852
703e0a69 1853
1e487827 1854
698dcdb6 1855 echo $ac_n "checking for --with-libpng""... $ac_c" 1>&6
69d27ff7 1856echo "configure:1857: checking for --with-libpng" >&5
698dcdb6
VZ
1857 no_cache=0
1858 # Check whether --with-libpng or --without-libpng was given.
b12915c1
VZ
1859if test "${with_libpng+set}" = set; then
1860 withval="$with_libpng"
698dcdb6 1861
10f2d63a 1862 if test "$withval" = yes; then
b12915c1 1863 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
422107f9 1864 elif test "$withval" = no; then
b12915c1 1865 ac_cv_use_libpng='wxUSE_LIBPNG=no'
422107f9
VZ
1866 elif test "$withval" = sys; then
1867 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
4f14bcd8
GD
1868 elif test "$withval" = builtin; then
1869 ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
422107f9 1870 else
4f14bcd8 1871 { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 1872 fi
698dcdb6 1873
10f2d63a 1874else
698dcdb6 1875
b12915c1 1876 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
10f2d63a
VZ
1877 if test "x$LINE" != x ; then
1878 eval "DEFAULT_$LINE"
1879 else
1880 no_cache=1
1881 fi
1882
b12915c1 1883 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
698dcdb6
VZ
1884
1885fi
10f2d63a
VZ
1886
1887
b12915c1 1888 eval "$ac_cv_use_libpng"
10f2d63a 1889 if test "$no_cache" != 1; then
b12915c1 1890 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
1891 fi
1892
b12915c1 1893 if test "$wxUSE_LIBPNG" = yes; then
698dcdb6 1894 echo "$ac_t""yes" 1>&6
422107f9 1895 elif test "$wxUSE_LIBPNG" = no; then
698dcdb6 1896 echo "$ac_t""no" 1>&6
422107f9 1897 elif test "$wxUSE_LIBPNG" = sys; then
698dcdb6 1898 echo "$ac_t""system version" 1>&6
4f14bcd8
GD
1899 elif test "$wxUSE_LIBPNG" = builtin; then
1900 echo "$ac_t""builtin version" 1>&6
422107f9 1901 else
4f14bcd8 1902 { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 1903 fi
698dcdb6 1904
10f2d63a 1905
698dcdb6 1906 echo $ac_n "checking for --with-libjpeg""... $ac_c" 1>&6
69d27ff7 1907echo "configure:1908: checking for --with-libjpeg" >&5
10f2d63a 1908 no_cache=0
698dcdb6 1909 # Check whether --with-libjpeg or --without-libjpeg was given.
b12915c1
VZ
1910if test "${with_libjpeg+set}" = set; then
1911 withval="$with_libjpeg"
698dcdb6 1912
10f2d63a 1913 if test "$withval" = yes; then
b12915c1 1914 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
422107f9 1915 elif test "$withval" = no; then
b12915c1 1916 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
422107f9
VZ
1917 elif test "$withval" = sys; then
1918 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
4f14bcd8
GD
1919 elif test "$withval" = builtin; then
1920 ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
422107f9 1921 else
4f14bcd8 1922 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 1923 fi
698dcdb6 1924
10f2d63a 1925else
698dcdb6 1926
b12915c1 1927 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
10f2d63a
VZ
1928 if test "x$LINE" != x ; then
1929 eval "DEFAULT_$LINE"
1930 else
1931 no_cache=1
1932 fi
1933
b12915c1 1934 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
698dcdb6
VZ
1935
1936fi
10f2d63a
VZ
1937
1938
b12915c1 1939 eval "$ac_cv_use_libjpeg"
10f2d63a 1940 if test "$no_cache" != 1; then
b12915c1 1941 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
1942 fi
1943
b12915c1 1944 if test "$wxUSE_LIBJPEG" = yes; then
698dcdb6 1945 echo "$ac_t""yes" 1>&6
422107f9 1946 elif test "$wxUSE_LIBJPEG" = no; then
698dcdb6 1947 echo "$ac_t""no" 1>&6
422107f9 1948 elif test "$wxUSE_LIBJPEG" = sys; then
698dcdb6 1949 echo "$ac_t""system version" 1>&6
4f14bcd8
GD
1950 elif test "$wxUSE_LIBJPEG" = builtin; then
1951 echo "$ac_t""builtin version" 1>&6
422107f9 1952 else
4f14bcd8 1953 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 1954 fi
698dcdb6 1955
10f2d63a 1956
698dcdb6 1957 echo $ac_n "checking for --with-libtiff""... $ac_c" 1>&6
69d27ff7 1958echo "configure:1959: checking for --with-libtiff" >&5
10f2d63a 1959 no_cache=0
698dcdb6 1960 # Check whether --with-libtiff or --without-libtiff was given.
b12915c1
VZ
1961if test "${with_libtiff+set}" = set; then
1962 withval="$with_libtiff"
698dcdb6 1963
10f2d63a 1964 if test "$withval" = yes; then
b12915c1 1965 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
0dcf9893 1966 elif test "$withval" = no; then
b12915c1 1967 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
0dcf9893
VZ
1968 elif test "$withval" = sys; then
1969 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
4f14bcd8
GD
1970 elif test "$withval" = builtin; then
1971 ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
0dcf9893 1972 else
4f14bcd8 1973 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 1974 fi
698dcdb6 1975
10f2d63a 1976else
698dcdb6 1977
b12915c1 1978 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
10f2d63a
VZ
1979 if test "x$LINE" != x ; then
1980 eval "DEFAULT_$LINE"
1981 else
1982 no_cache=1
1983 fi
1984
b12915c1 1985 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
698dcdb6
VZ
1986
1987fi
10f2d63a
VZ
1988
1989
b12915c1 1990 eval "$ac_cv_use_libtiff"
10f2d63a 1991 if test "$no_cache" != 1; then
b12915c1 1992 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
1993 fi
1994
b12915c1 1995 if test "$wxUSE_LIBTIFF" = yes; then
698dcdb6 1996 echo "$ac_t""yes" 1>&6
0dcf9893 1997 elif test "$wxUSE_LIBTIFF" = no; then
698dcdb6 1998 echo "$ac_t""no" 1>&6
0dcf9893 1999 elif test "$wxUSE_LIBTIFF" = sys; then
698dcdb6 2000 echo "$ac_t""system version" 1>&6
4f14bcd8
GD
2001 elif test "$wxUSE_LIBTIFF" = builtin; then
2002 echo "$ac_t""builtin version" 1>&6
0dcf9893 2003 else
4f14bcd8 2004 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 2005 fi
698dcdb6 2006
10f2d63a 2007
698dcdb6 2008 echo $ac_n "checking for --with-freetype""... $ac_c" 1>&6
69d27ff7 2009echo "configure:2010: checking for --with-freetype" >&5
3fed1840 2010 no_cache=0
698dcdb6 2011 # Check whether --with-freetype or --without-freetype was given.
3fed1840
RR
2012if test "${with_freetype+set}" = set; then
2013 withval="$with_freetype"
698dcdb6 2014
3fed1840
RR
2015 if test "$withval" = yes; then
2016 ac_cv_use_freetype='wxUSE_FREETYPE=yes'
2017 elif test "$withval" = no; then
2018 ac_cv_use_freetype='wxUSE_FREETYPE=no'
2019 elif test "$withval" = sys; then
2020 ac_cv_use_freetype='wxUSE_FREETYPE=sys'
4f14bcd8
GD
2021 elif test "$withval" = builtin; then
2022 ac_cv_use_freetype='wxUSE_FREETYPE=builtin'
3fed1840 2023 else
4f14bcd8 2024 { echo "configure: error: Invalid value for --with-freetype: should be yes, no, sys, or builtin" 1>&2; exit 1; }
3fed1840 2025 fi
698dcdb6 2026
3fed1840 2027else
698dcdb6 2028
3fed1840
RR
2029 LINE=`grep "wxUSE_FREETYPE" ${wx_arg_cache_file}`
2030 if test "x$LINE" != x ; then
2031 eval "DEFAULT_$LINE"
2032 else
2033 no_cache=1
2034 fi
2035
2036 ac_cv_use_freetype='wxUSE_FREETYPE='$DEFAULT_wxUSE_FREETYPE
698dcdb6
VZ
2037
2038fi
3fed1840
RR
2039
2040
2041 eval "$ac_cv_use_freetype"
2042 if test "$no_cache" != 1; then
2043 echo $ac_cv_use_freetype >> ${wx_arg_cache_file}.tmp
2044 fi
2045
2046 if test "$wxUSE_FREETYPE" = yes; then
698dcdb6 2047 echo "$ac_t""yes" 1>&6
3fed1840 2048 elif test "$wxUSE_FREETYPE" = no; then
698dcdb6 2049 echo "$ac_t""no" 1>&6
3fed1840 2050 elif test "$wxUSE_FREETYPE" = sys; then
698dcdb6 2051 echo "$ac_t""system version" 1>&6
4f14bcd8
GD
2052 elif test "$wxUSE_FREETYPE" = builtin; then
2053 echo "$ac_t""builtin version" 1>&6
3fed1840 2054 else
4f14bcd8 2055 { echo "configure: error: Invalid value for --with-freetype: should be yes, no, sys, or builtin" 1>&2; exit 1; }
3fed1840 2056 fi
698dcdb6 2057
3fed1840 2058
698dcdb6 2059 echo $ac_n "checking for --with-opengl""... $ac_c" 1>&6
69d27ff7 2060echo "configure:2061: checking for --with-opengl" >&5
10f2d63a 2061 no_cache=0
698dcdb6 2062 # Check whether --with-opengl or --without-opengl was given.
b12915c1
VZ
2063if test "${with_opengl+set}" = set; then
2064 withval="$with_opengl"
698dcdb6 2065
10f2d63a 2066 if test "$withval" = yes; then
b12915c1 2067 ac_cv_use_opengl='wxUSE_OPENGL=yes'
10f2d63a 2068 else
b12915c1 2069 ac_cv_use_opengl='wxUSE_OPENGL=no'
10f2d63a 2070 fi
698dcdb6 2071
10f2d63a 2072else
698dcdb6 2073
b12915c1 2074 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
10f2d63a
VZ
2075 if test "x$LINE" != x ; then
2076 eval "DEFAULT_$LINE"
2077 else
2078 no_cache=1
2079 fi
2080
b12915c1 2081 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
698dcdb6
VZ
2082
2083fi
10f2d63a
VZ
2084
2085
b12915c1 2086 eval "$ac_cv_use_opengl"
10f2d63a 2087 if test "$no_cache" != 1; then
b12915c1 2088 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2089 fi
2090
b12915c1 2091 if test "$wxUSE_OPENGL" = yes; then
698dcdb6 2092 echo "$ac_t""yes" 1>&6
10f2d63a 2093 else
698dcdb6 2094 echo "$ac_t""no" 1>&6
10f2d63a 2095 fi
698dcdb6 2096
10f2d63a 2097
b12915c1
VZ
2098fi
2099
1e487827 2100
698dcdb6 2101 echo $ac_n "checking for --with-dmalloc""... $ac_c" 1>&6
69d27ff7 2102echo "configure:2103: checking for --with-dmalloc" >&5
698dcdb6
VZ
2103 no_cache=0
2104 # Check whether --with-dmalloc or --without-dmalloc was given.
b12915c1
VZ
2105if test "${with_dmalloc+set}" = set; then
2106 withval="$with_dmalloc"
698dcdb6 2107
c7a2bf27 2108 if test "$withval" = yes; then
b12915c1 2109 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
c7a2bf27 2110 else
b12915c1 2111 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
c7a2bf27 2112 fi
698dcdb6 2113
c7a2bf27 2114else
698dcdb6 2115
b12915c1 2116 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
c7a2bf27
RR
2117 if test "x$LINE" != x ; then
2118 eval "DEFAULT_$LINE"
2119 else
2120 no_cache=1
2121 fi
2122
b12915c1 2123 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
698dcdb6
VZ
2124
2125fi
c7a2bf27
RR
2126
2127
b12915c1 2128 eval "$ac_cv_use_dmalloc"
c7a2bf27 2129 if test "$no_cache" != 1; then
b12915c1 2130 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
c7a2bf27
RR
2131 fi
2132
b12915c1 2133 if test "$wxUSE_DMALLOC" = yes; then
698dcdb6 2134 echo "$ac_t""yes" 1>&6
c7a2bf27 2135 else
698dcdb6 2136 echo "$ac_t""no" 1>&6
c7a2bf27 2137 fi
698dcdb6 2138
c7a2bf27 2139
3e44f09d 2140 echo $ac_n "checking for --with-regex""... $ac_c" 1>&6
69d27ff7 2141echo "configure:2142: checking for --with-regex" >&5
3e44f09d
VZ
2142 no_cache=0
2143 # Check whether --with-regex or --without-regex was given.
2144if test "${with_regex+set}" = set; then
2145 withval="$with_regex"
2146
2147 if test "$withval" = yes; then
2148 ac_cv_use_regex='wxUSE_REGEX=yes'
2149 elif test "$withval" = no; then
2150 ac_cv_use_regex='wxUSE_REGEX=no'
2151 elif test "$withval" = sys; then
2152 ac_cv_use_regex='wxUSE_REGEX=sys'
4f14bcd8
GD
2153 elif test "$withval" = builtin; then
2154 ac_cv_use_regex='wxUSE_REGEX=builtin'
3e44f09d 2155 else
4f14bcd8 2156 { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; }
3e44f09d
VZ
2157 fi
2158
2159else
2160
2161 LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
2162 if test "x$LINE" != x ; then
2163 eval "DEFAULT_$LINE"
2164 else
2165 no_cache=1
2166 fi
2167
2168 ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
2169
2170fi
2171
2172
2173 eval "$ac_cv_use_regex"
2174 if test "$no_cache" != 1; then
2175 echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
2176 fi
2177
2178 if test "$wxUSE_REGEX" = yes; then
2179 echo "$ac_t""yes" 1>&6
2180 elif test "$wxUSE_REGEX" = no; then
2181 echo "$ac_t""no" 1>&6
2182 elif test "$wxUSE_REGEX" = sys; then
2183 echo "$ac_t""system version" 1>&6
4f14bcd8
GD
2184 elif test "$wxUSE_REGEX" = builtin; then
2185 echo "$ac_t""builtin version" 1>&6
3e44f09d 2186 else
4f14bcd8 2187 { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; }
3e44f09d
VZ
2188 fi
2189
2190
698dcdb6 2191 echo $ac_n "checking for --with-zlib""... $ac_c" 1>&6
69d27ff7 2192echo "configure:2193: checking for --with-zlib" >&5
10f2d63a 2193 no_cache=0
698dcdb6 2194 # Check whether --with-zlib or --without-zlib was given.
b12915c1
VZ
2195if test "${with_zlib+set}" = set; then
2196 withval="$with_zlib"
698dcdb6 2197
10f2d63a 2198 if test "$withval" = yes; then
b12915c1 2199 ac_cv_use_zlib='wxUSE_ZLIB=yes'
422107f9 2200 elif test "$withval" = no; then
b12915c1 2201 ac_cv_use_zlib='wxUSE_ZLIB=no'
422107f9
VZ
2202 elif test "$withval" = sys; then
2203 ac_cv_use_zlib='wxUSE_ZLIB=sys'
4f14bcd8
GD
2204 elif test "$withval" = builtin; then
2205 ac_cv_use_zlib='wxUSE_ZLIB=builtin'
422107f9 2206 else
4f14bcd8 2207 { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 2208 fi
698dcdb6 2209
10f2d63a 2210else
698dcdb6 2211
b12915c1 2212 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
10f2d63a
VZ
2213 if test "x$LINE" != x ; then
2214 eval "DEFAULT_$LINE"
2215 else
2216 no_cache=1
2217 fi
2218
b12915c1 2219 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
698dcdb6
VZ
2220
2221fi
10f2d63a
VZ
2222
2223
b12915c1 2224 eval "$ac_cv_use_zlib"
10f2d63a 2225 if test "$no_cache" != 1; then
b12915c1 2226 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2227 fi
2228
b12915c1 2229 if test "$wxUSE_ZLIB" = yes; then
698dcdb6 2230 echo "$ac_t""yes" 1>&6
422107f9 2231 elif test "$wxUSE_ZLIB" = no; then
698dcdb6 2232 echo "$ac_t""no" 1>&6
422107f9 2233 elif test "$wxUSE_ZLIB" = sys; then
698dcdb6 2234 echo "$ac_t""system version" 1>&6
4f14bcd8
GD
2235 elif test "$wxUSE_ZLIB" = builtin; then
2236 echo "$ac_t""builtin version" 1>&6
422107f9 2237 else
4f14bcd8 2238 { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; }
10f2d63a 2239 fi
698dcdb6 2240
10f2d63a 2241
698dcdb6 2242 echo $ac_n "checking for --with-odbc""... $ac_c" 1>&6
69d27ff7 2243echo "configure:2244: checking for --with-odbc" >&5
10f2d63a 2244 no_cache=0
698dcdb6 2245 # Check whether --with-odbc or --without-odbc was given.
10f2d63a
VZ
2246if test "${with_odbc+set}" = set; then
2247 withval="$with_odbc"
698dcdb6 2248
10f2d63a
VZ
2249 if test "$withval" = yes; then
2250 ac_cv_use_odbc='wxUSE_ODBC=yes'
2251 else
2252 ac_cv_use_odbc='wxUSE_ODBC=no'
2253 fi
698dcdb6 2254
10f2d63a 2255else
698dcdb6 2256
10f2d63a
VZ
2257 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
2258 if test "x$LINE" != x ; then
2259 eval "DEFAULT_$LINE"
2260 else
2261 no_cache=1
2262 fi
2263
2264 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
698dcdb6
VZ
2265
2266fi
10f2d63a
VZ
2267
2268
2269 eval "$ac_cv_use_odbc"
2270 if test "$no_cache" != 1; then
2271 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
2272 fi
2273
2274 if test "$wxUSE_ODBC" = yes; then
698dcdb6 2275 echo "$ac_t""yes" 1>&6
10f2d63a 2276 else
698dcdb6 2277 echo "$ac_t""no" 1>&6
10f2d63a 2278 fi
698dcdb6
VZ
2279
2280
10f2d63a 2281
698dcdb6 2282
698dcdb6 2283 echo $ac_n "checking for --enable-shared""... $ac_c" 1>&6
69d27ff7 2284echo "configure:2285: checking for --enable-shared" >&5
10f2d63a
VZ
2285 no_cache=0
2286 # Check whether --enable-shared or --disable-shared was given.
2287if test "${enable_shared+set}" = set; then
2288 enableval="$enable_shared"
698dcdb6 2289
10f2d63a
VZ
2290 if test "$enableval" = yes; then
2291 ac_cv_use_shared='wxUSE_SHARED=yes'
2292 else
2293 ac_cv_use_shared='wxUSE_SHARED=no'
2294 fi
698dcdb6 2295
10f2d63a 2296else
698dcdb6 2297
10f2d63a
VZ
2298 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
2299 if test "x$LINE" != x ; then
2300 eval "DEFAULT_$LINE"
2301 else
2302 no_cache=1
2303 fi
2304
2305 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
698dcdb6
VZ
2306
2307fi
10f2d63a
VZ
2308
2309
2310 eval "$ac_cv_use_shared"
2311 if test "$no_cache" != 1; then
2312 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
2313 fi
2314
2315 if test "$wxUSE_SHARED" = yes; then
698dcdb6 2316 echo "$ac_t""yes" 1>&6
10f2d63a 2317 else
698dcdb6 2318 echo "$ac_t""no" 1>&6
10f2d63a 2319 fi
698dcdb6 2320
10f2d63a 2321
3a922bb4 2322 echo $ac_n "checking for --enable-soname""... $ac_c" 1>&6
69d27ff7 2323echo "configure:2324: checking for --enable-soname" >&5
00cf1208 2324 no_cache=0
3a922bb4
RL
2325 # Check whether --enable-soname or --disable-soname was given.
2326if test "${enable_soname+set}" = set; then
2327 enableval="$enable_soname"
698dcdb6 2328
00cf1208 2329 if test "$enableval" = yes; then
3a922bb4 2330 ac_cv_use_soname='wxUSE_SONAME=yes'
00cf1208 2331 else
3a922bb4 2332 ac_cv_use_soname='wxUSE_SONAME=no'
00cf1208 2333 fi
698dcdb6 2334
00cf1208 2335else
698dcdb6 2336
3a922bb4 2337 LINE=`grep "wxUSE_SONAME" ${wx_arg_cache_file}`
00cf1208
RR
2338 if test "x$LINE" != x ; then
2339 eval "DEFAULT_$LINE"
2340 else
2341 no_cache=1
2342 fi
2343
3a922bb4 2344 ac_cv_use_soname='wxUSE_SONAME='$DEFAULT_wxUSE_SONAME
698dcdb6
VZ
2345
2346fi
00cf1208
RR
2347
2348
3a922bb4 2349 eval "$ac_cv_use_soname"
00cf1208 2350 if test "$no_cache" != 1; then
3a922bb4 2351 echo $ac_cv_use_soname >> ${wx_arg_cache_file}.tmp
00cf1208
RR
2352 fi
2353
3a922bb4 2354 if test "$wxUSE_SONAME" = yes; then
698dcdb6 2355 echo "$ac_t""yes" 1>&6
00cf1208 2356 else
698dcdb6 2357 echo "$ac_t""no" 1>&6
00cf1208 2358 fi
698dcdb6 2359
00cf1208 2360
698dcdb6 2361 echo $ac_n "checking for --enable-optimise""... $ac_c" 1>&6
69d27ff7 2362echo "configure:2363: checking for --enable-optimise" >&5
10f2d63a
VZ
2363 no_cache=0
2364 # Check whether --enable-optimise or --disable-optimise was given.
2365if test "${enable_optimise+set}" = set; then
2366 enableval="$enable_optimise"
698dcdb6 2367
10f2d63a
VZ
2368 if test "$enableval" = yes; then
2369 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
2370 else
2371 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
2372 fi
698dcdb6 2373
10f2d63a 2374else
698dcdb6 2375
10f2d63a
VZ
2376 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
2377 if test "x$LINE" != x ; then
2378 eval "DEFAULT_$LINE"
2379 else
2380 no_cache=1
2381 fi
2382
2383 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
698dcdb6
VZ
2384
2385fi
10f2d63a
VZ
2386
2387
2388 eval "$ac_cv_use_optimise"
2389 if test "$no_cache" != 1; then
2390 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
2391 fi
2392
2393 if test "$wxUSE_OPTIMISE" = yes; then
698dcdb6 2394 echo "$ac_t""yes" 1>&6
10f2d63a 2395 else
698dcdb6 2396 echo "$ac_t""no" 1>&6
10f2d63a 2397 fi
698dcdb6 2398
10f2d63a 2399
698dcdb6 2400 echo $ac_n "checking for --enable-debug""... $ac_c" 1>&6
69d27ff7 2401echo "configure:2402: checking for --enable-debug" >&5
10f2d63a
VZ
2402 no_cache=0
2403 # Check whether --enable-debug or --disable-debug was given.
2404if test "${enable_debug+set}" = set; then
2405 enableval="$enable_debug"
698dcdb6 2406
10f2d63a
VZ
2407 if test "$enableval" = yes; then
2408 ac_cv_use_debug='wxUSE_DEBUG=yes'
2409 else
2410 ac_cv_use_debug='wxUSE_DEBUG=no'
2411 fi
698dcdb6 2412
10f2d63a 2413else
698dcdb6 2414
10f2d63a
VZ
2415 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
2416 if test "x$LINE" != x ; then
2417 eval "DEFAULT_$LINE"
2418 else
2419 no_cache=1
2420 fi
2421
2422 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
698dcdb6
VZ
2423
2424fi
10f2d63a
VZ
2425
2426
2427 eval "$ac_cv_use_debug"
2428 if test "$no_cache" != 1; then
2429 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
2430 fi
2431
2432 if test "$wxUSE_DEBUG" = yes; then
698dcdb6 2433 echo "$ac_t""yes" 1>&6
10f2d63a 2434 else
698dcdb6 2435 echo "$ac_t""no" 1>&6
10f2d63a 2436 fi
698dcdb6 2437
10f2d63a 2438
683dccda
GD
2439
2440 echo $ac_n "checking for --enable-precomp""... $ac_c" 1>&6
69d27ff7 2441echo "configure:2442: checking for --enable-precomp" >&5
683dccda
GD
2442 no_cache=0
2443 # Check whether --enable-precomp or --disable-precomp was given.
2444if test "${enable_precomp+set}" = set; then
2445 enableval="$enable_precomp"
2446
2447 if test "$enableval" = yes; then
2448 ac_cv_use_precomp='wxUSE_PRECOMP=yes'
2449 else
2450 ac_cv_use_precomp='wxUSE_PRECOMP=no'
2451 fi
2452
2453else
2454
2455 LINE=`grep "wxUSE_PRECOMP" ${wx_arg_cache_file}`
2456 if test "x$LINE" != x ; then
2457 eval "DEFAULT_$LINE"
2458 else
2459 no_cache=1
2460 fi
2461
2462 ac_cv_use_precomp='wxUSE_PRECOMP='$DEFAULT_wxUSE_PRECOMP
2463
2464fi
2465
2466
2467 eval "$ac_cv_use_precomp"
2468 if test "$no_cache" != 1; then
2469 echo $ac_cv_use_precomp >> ${wx_arg_cache_file}.tmp
2470 fi
2471
2472 if test "$wxUSE_PRECOMP" = yes; then
2473 echo "$ac_t""yes" 1>&6
2474 else
2475 echo "$ac_t""no" 1>&6
2476 fi
2477
2478
10f2d63a
VZ
2479if test "$wxUSE_DEBUG" = "yes"; then
2480 DEFAULT_wxUSE_DEBUG_FLAG=yes
2481 DEFAULT_wxUSE_DEBUG_INFO=yes
2482elif test "$wxUSE_DEBUG" = "no"; then
2483 DEFAULT_wxUSE_DEBUG_FLAG=no
2484 DEFAULT_wxUSE_DEBUG_INFO=no
2485fi
2486
698dcdb6
VZ
2487
2488 echo $ac_n "checking for --enable-debug_flag""... $ac_c" 1>&6
69d27ff7 2489echo "configure:2490: checking for --enable-debug_flag" >&5
10f2d63a
VZ
2490 no_cache=0
2491 # Check whether --enable-debug_flag or --disable-debug_flag was given.
2492if test "${enable_debug_flag+set}" = set; then
2493 enableval="$enable_debug_flag"
698dcdb6 2494
10f2d63a
VZ
2495 if test "$enableval" = yes; then
2496 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
2497 else
2498 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
2499 fi
698dcdb6 2500
10f2d63a 2501else
698dcdb6 2502
10f2d63a
VZ
2503 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
2504 if test "x$LINE" != x ; then
2505 eval "DEFAULT_$LINE"
2506 else
2507 no_cache=1
2508 fi
2509
2510 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
698dcdb6
VZ
2511
2512fi
10f2d63a
VZ
2513
2514
2515 eval "$ac_cv_use_debug_flag"
2516 if test "$no_cache" != 1; then
2517 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
2518 fi
2519
2520 if test "$wxUSE_DEBUG_FLAG" = yes; then
698dcdb6 2521 echo "$ac_t""yes" 1>&6
10f2d63a 2522 else
698dcdb6 2523 echo "$ac_t""no" 1>&6
10f2d63a 2524 fi
698dcdb6 2525
10f2d63a 2526
698dcdb6 2527 echo $ac_n "checking for --enable-debug_info""... $ac_c" 1>&6
69d27ff7 2528echo "configure:2529: checking for --enable-debug_info" >&5
10f2d63a
VZ
2529 no_cache=0
2530 # Check whether --enable-debug_info or --disable-debug_info was given.
2531if test "${enable_debug_info+set}" = set; then
2532 enableval="$enable_debug_info"
698dcdb6 2533
10f2d63a
VZ
2534 if test "$enableval" = yes; then
2535 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
2536 else
2537 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
2538 fi
698dcdb6 2539
10f2d63a 2540else
698dcdb6 2541
10f2d63a
VZ
2542 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
2543 if test "x$LINE" != x ; then
2544 eval "DEFAULT_$LINE"
2545 else
2546 no_cache=1
2547 fi
2548
2549 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
698dcdb6
VZ
2550
2551fi
10f2d63a
VZ
2552
2553
2554 eval "$ac_cv_use_debug_info"
2555 if test "$no_cache" != 1; then
2556 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
2557 fi
2558
2559 if test "$wxUSE_DEBUG_INFO" = yes; then
698dcdb6 2560 echo "$ac_t""yes" 1>&6
10f2d63a 2561 else
698dcdb6 2562 echo "$ac_t""no" 1>&6
10f2d63a 2563 fi
698dcdb6 2564
10f2d63a 2565
698dcdb6 2566 echo $ac_n "checking for --enable-debug_gdb""... $ac_c" 1>&6
69d27ff7 2567echo "configure:2568: checking for --enable-debug_gdb" >&5
10f2d63a
VZ
2568 no_cache=0
2569 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
2570if test "${enable_debug_gdb+set}" = set; then
2571 enableval="$enable_debug_gdb"
698dcdb6 2572
10f2d63a
VZ
2573 if test "$enableval" = yes; then
2574 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
2575 else
2576 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
2577 fi
698dcdb6 2578
10f2d63a 2579else
698dcdb6 2580
10f2d63a
VZ
2581 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
2582 if test "x$LINE" != x ; then
2583 eval "DEFAULT_$LINE"
2584 else
2585 no_cache=1
2586 fi
2587
2588 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
698dcdb6
VZ
2589
2590fi
10f2d63a
VZ
2591
2592
2593 eval "$ac_cv_use_debug_gdb"
2594 if test "$no_cache" != 1; then
2595 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
2596 fi
2597
2598 if test "$wxUSE_DEBUG_GDB" = yes; then
698dcdb6 2599 echo "$ac_t""yes" 1>&6
10f2d63a 2600 else
698dcdb6 2601 echo "$ac_t""no" 1>&6
10f2d63a 2602 fi
698dcdb6 2603
10f2d63a 2604
698dcdb6 2605 echo $ac_n "checking for --enable-debug_cntxt""... $ac_c" 1>&6
69d27ff7 2606echo "configure:2607: checking for --enable-debug_cntxt" >&5
10f2d63a
VZ
2607 no_cache=0
2608 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
2609if test "${enable_debug_cntxt+set}" = set; then
2610 enableval="$enable_debug_cntxt"
698dcdb6 2611
10f2d63a
VZ
2612 if test "$enableval" = yes; then
2613 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
2614 else
2615 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
2616 fi
698dcdb6 2617
10f2d63a 2618else
698dcdb6 2619
10f2d63a
VZ
2620 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
2621 if test "x$LINE" != x ; then
2622 eval "DEFAULT_$LINE"
2623 else
2624 no_cache=1
2625 fi
2626
2627 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
698dcdb6
VZ
2628
2629fi
10f2d63a
VZ
2630
2631
2632 eval "$ac_cv_use_debug_cntxt"
2633 if test "$no_cache" != 1; then
2634 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
2635 fi
2636
2637 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
698dcdb6 2638 echo "$ac_t""yes" 1>&6
10f2d63a 2639 else
698dcdb6 2640 echo "$ac_t""no" 1>&6
10f2d63a 2641 fi
698dcdb6 2642
10f2d63a 2643
698dcdb6 2644 echo $ac_n "checking for --enable-mem_tracing""... $ac_c" 1>&6
69d27ff7 2645echo "configure:2646: checking for --enable-mem_tracing" >&5
10f2d63a
VZ
2646 no_cache=0
2647 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
2648if test "${enable_mem_tracing+set}" = set; then
2649 enableval="$enable_mem_tracing"
698dcdb6 2650
10f2d63a
VZ
2651 if test "$enableval" = yes; then
2652 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
2653 else
2654 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
2655 fi
698dcdb6 2656
10f2d63a 2657else
698dcdb6 2658
10f2d63a
VZ
2659 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
2660 if test "x$LINE" != x ; then
2661 eval "DEFAULT_$LINE"
2662 else
2663 no_cache=1
2664 fi
2665
2666 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
698dcdb6
VZ
2667
2668fi
10f2d63a
VZ
2669
2670
2671 eval "$ac_cv_use_mem_tracing"
2672 if test "$no_cache" != 1; then
2673 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
2674 fi
2675
2676 if test "$wxUSE_MEM_TRACING" = yes; then
698dcdb6 2677 echo "$ac_t""yes" 1>&6
10f2d63a 2678 else
698dcdb6 2679 echo "$ac_t""no" 1>&6
10f2d63a 2680 fi
698dcdb6 2681
10f2d63a 2682
698dcdb6 2683 echo $ac_n "checking for --enable-profile""... $ac_c" 1>&6
69d27ff7 2684echo "configure:2685: checking for --enable-profile" >&5
10f2d63a
VZ
2685 no_cache=0
2686 # Check whether --enable-profile or --disable-profile was given.
2687if test "${enable_profile+set}" = set; then
2688 enableval="$enable_profile"
698dcdb6 2689
10f2d63a
VZ
2690 if test "$enableval" = yes; then
2691 ac_cv_use_profile='wxUSE_PROFILE=yes'
2692 else
2693 ac_cv_use_profile='wxUSE_PROFILE=no'
2694 fi
698dcdb6 2695
10f2d63a 2696else
698dcdb6 2697
10f2d63a
VZ
2698 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
2699 if test "x$LINE" != x ; then
2700 eval "DEFAULT_$LINE"
2701 else
2702 no_cache=1
2703 fi
2704
2705 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
698dcdb6
VZ
2706
2707fi
10f2d63a
VZ
2708
2709
2710 eval "$ac_cv_use_profile"
2711 if test "$no_cache" != 1; then
2712 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
2713 fi
2714
2715 if test "$wxUSE_PROFILE" = yes; then
698dcdb6 2716 echo "$ac_t""yes" 1>&6
10f2d63a 2717 else
698dcdb6 2718 echo "$ac_t""no" 1>&6
10f2d63a 2719 fi
698dcdb6 2720
10f2d63a 2721
698dcdb6 2722 echo $ac_n "checking for --enable-no_rtti""... $ac_c" 1>&6
69d27ff7 2723echo "configure:2724: checking for --enable-no_rtti" >&5
10f2d63a
VZ
2724 no_cache=0
2725 # Check whether --enable-no_rtti or --disable-no_rtti was given.
2726if test "${enable_no_rtti+set}" = set; then
2727 enableval="$enable_no_rtti"
698dcdb6 2728
10f2d63a
VZ
2729 if test "$enableval" = yes; then
2730 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
2731 else
2732 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
2733 fi
698dcdb6 2734
10f2d63a 2735else
698dcdb6 2736
10f2d63a
VZ
2737 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
2738 if test "x$LINE" != x ; then
2739 eval "DEFAULT_$LINE"
2740 else
2741 no_cache=1
2742 fi
2743
2744 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
698dcdb6
VZ
2745
2746fi
10f2d63a
VZ
2747
2748
2749 eval "$ac_cv_use_no_rtti"
2750 if test "$no_cache" != 1; then
2751 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
2752 fi
2753
2754 if test "$wxUSE_NO_RTTI" = yes; then
698dcdb6 2755 echo "$ac_t""yes" 1>&6
10f2d63a 2756 else
698dcdb6 2757 echo "$ac_t""no" 1>&6
10f2d63a 2758 fi
698dcdb6 2759
10f2d63a 2760
698dcdb6 2761 echo $ac_n "checking for --enable-no_exceptions""... $ac_c" 1>&6
69d27ff7 2762echo "configure:2763: checking for --enable-no_exceptions" >&5
10f2d63a
VZ
2763 no_cache=0
2764 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
2765if test "${enable_no_exceptions+set}" = set; then
2766 enableval="$enable_no_exceptions"
698dcdb6 2767
10f2d63a
VZ
2768 if test "$enableval" = yes; then
2769 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
2770 else
2771 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
2772 fi
698dcdb6 2773
10f2d63a 2774else
698dcdb6 2775
10f2d63a
VZ
2776 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
2777 if test "x$LINE" != x ; then
2778 eval "DEFAULT_$LINE"
2779 else
2780 no_cache=1
2781 fi
2782
2783 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
698dcdb6
VZ
2784
2785fi
10f2d63a
VZ
2786
2787
2788 eval "$ac_cv_use_no_exceptions"
2789 if test "$no_cache" != 1; then
2790 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
2791 fi
2792
2793 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
698dcdb6 2794 echo "$ac_t""yes" 1>&6
10f2d63a 2795 else
698dcdb6 2796 echo "$ac_t""no" 1>&6
10f2d63a 2797 fi
698dcdb6 2798
10f2d63a 2799
698dcdb6 2800 echo $ac_n "checking for --enable-permissive""... $ac_c" 1>&6
69d27ff7 2801echo "configure:2802: checking for --enable-permissive" >&5
10f2d63a
VZ
2802 no_cache=0
2803 # Check whether --enable-permissive or --disable-permissive was given.
2804if test "${enable_permissive+set}" = set; then
2805 enableval="$enable_permissive"
698dcdb6 2806
10f2d63a
VZ
2807 if test "$enableval" = yes; then
2808 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
2809 else
2810 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
2811 fi
698dcdb6 2812
10f2d63a 2813else
698dcdb6 2814
10f2d63a
VZ
2815 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
2816 if test "x$LINE" != x ; then
2817 eval "DEFAULT_$LINE"
2818 else
2819 no_cache=1
2820 fi
2821
2822 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
698dcdb6
VZ
2823
2824fi
10f2d63a
VZ
2825
2826
2827 eval "$ac_cv_use_permissive"
2828 if test "$no_cache" != 1; then
2829 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
2830 fi
2831
2832 if test "$wxUSE_PERMISSIVE" = yes; then
698dcdb6 2833 echo "$ac_t""yes" 1>&6
10f2d63a 2834 else
698dcdb6 2835 echo "$ac_t""no" 1>&6
10f2d63a 2836 fi
698dcdb6 2837
10f2d63a 2838
698dcdb6 2839 echo $ac_n "checking for --enable-no_deps""... $ac_c" 1>&6
69d27ff7 2840echo "configure:2841: checking for --enable-no_deps" >&5
10f2d63a
VZ
2841 no_cache=0
2842 # Check whether --enable-no_deps or --disable-no_deps was given.
2843if test "${enable_no_deps+set}" = set; then
2844 enableval="$enable_no_deps"
698dcdb6 2845
10f2d63a
VZ
2846 if test "$enableval" = yes; then
2847 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
2848 else
2849 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
2850 fi
698dcdb6 2851
10f2d63a 2852else
698dcdb6 2853
10f2d63a
VZ
2854 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
2855 if test "x$LINE" != x ; then
2856 eval "DEFAULT_$LINE"
2857 else
2858 no_cache=1
2859 fi
2860
2861 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
698dcdb6
VZ
2862
2863fi
10f2d63a
VZ
2864
2865
2866 eval "$ac_cv_use_no_deps"
2867 if test "$no_cache" != 1; then
2868 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
2869 fi
2870
2871 if test "$wxUSE_NO_DEPS" = yes; then
698dcdb6 2872 echo "$ac_t""yes" 1>&6
10f2d63a 2873 else
698dcdb6 2874 echo "$ac_t""no" 1>&6
10f2d63a 2875 fi
698dcdb6
VZ
2876
2877
10f2d63a 2878
54276ccf 2879 echo $ac_n "checking for --enable-compat20""... $ac_c" 1>&6
69d27ff7 2880echo "configure:2881: checking for --enable-compat20" >&5
54276ccf
VZ
2881 no_cache=0
2882 # Check whether --enable-compat20 or --disable-compat20 was given.
2883if test "${enable_compat20+set}" = set; then
2884 enableval="$enable_compat20"
2885
2886 if test "$enableval" = yes; then
2887 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=yes'
2888 else
2889 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=no'
2890 fi
2891
2892else
2893
2894 LINE=`grep "WXWIN_COMPATIBILITY_2" ${wx_arg_cache_file}`
2895 if test "x$LINE" != x ; then
2896 eval "DEFAULT_$LINE"
2897 else
2898 no_cache=1
2899 fi
2900
2901 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2='$DEFAULT_WXWIN_COMPATIBILITY_2
2902
2903fi
2904
2905
2906 eval "$ac_cv_use_compat20"
2907 if test "$no_cache" != 1; then
2908 echo $ac_cv_use_compat20 >> ${wx_arg_cache_file}.tmp
2909 fi
2910
2911 if test "$WXWIN_COMPATIBILITY_2" = yes; then
2912 echo "$ac_t""yes" 1>&6
2913 else
2914 echo "$ac_t""no" 1>&6
2915 fi
2916
2917
2918 echo $ac_n "checking for --enable-compat22""... $ac_c" 1>&6
69d27ff7 2919echo "configure:2920: checking for --enable-compat22" >&5
54276ccf
VZ
2920 no_cache=0
2921 # Check whether --enable-compat22 or --disable-compat22 was given.
2922if test "${enable_compat22+set}" = set; then
2923 enableval="$enable_compat22"
2924
2925 if test "$enableval" = yes; then
2926 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes'
2927 else
2928 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no'
2929 fi
2930
2931else
2932
2933 LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}`
2934 if test "x$LINE" != x ; then
2935 eval "DEFAULT_$LINE"
2936 else
2937 no_cache=1
2938 fi
2939
2940 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2
2941
2942fi
2943
2944
2945 eval "$ac_cv_use_compat22"
2946 if test "$no_cache" != 1; then
2947 echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp
2948 fi
2949
2950 if test "$WXWIN_COMPATIBILITY_2_2" = yes; then
2951 echo "$ac_t""yes" 1>&6
2952 else
2953 echo "$ac_t""no" 1>&6
2954 fi
2955
2956
2957
698dcdb6
VZ
2958
2959 echo $ac_n "checking for --enable-intl""... $ac_c" 1>&6
69d27ff7 2960echo "configure:2961: checking for --enable-intl" >&5
10f2d63a
VZ
2961 no_cache=0
2962 # Check whether --enable-intl or --disable-intl was given.
2963if test "${enable_intl+set}" = set; then
2964 enableval="$enable_intl"
698dcdb6 2965
10f2d63a
VZ
2966 if test "$enableval" = yes; then
2967 ac_cv_use_intl='wxUSE_INTL=yes'
2968 else
2969 ac_cv_use_intl='wxUSE_INTL=no'
2970 fi
698dcdb6 2971
10f2d63a 2972else
698dcdb6 2973
10f2d63a
VZ
2974 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
2975 if test "x$LINE" != x ; then
2976 eval "DEFAULT_$LINE"
2977 else
2978 no_cache=1
2979 fi
2980
2981 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
698dcdb6
VZ
2982
2983fi
10f2d63a
VZ
2984
2985
2986 eval "$ac_cv_use_intl"
2987 if test "$no_cache" != 1; then
2988 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
2989 fi
2990
2991 if test "$wxUSE_INTL" = yes; then
698dcdb6 2992 echo "$ac_t""yes" 1>&6
10f2d63a 2993 else
698dcdb6 2994 echo "$ac_t""no" 1>&6
10f2d63a 2995 fi
698dcdb6 2996
10f2d63a 2997
698dcdb6 2998 echo $ac_n "checking for --enable-config""... $ac_c" 1>&6
69d27ff7 2999echo "configure:3000: checking for --enable-config" >&5
10f2d63a
VZ
3000 no_cache=0
3001 # Check whether --enable-config or --disable-config was given.
3002if test "${enable_config+set}" = set; then
3003 enableval="$enable_config"
698dcdb6 3004
10f2d63a
VZ
3005 if test "$enableval" = yes; then
3006 ac_cv_use_config='wxUSE_CONFIG=yes'
3007 else
3008 ac_cv_use_config='wxUSE_CONFIG=no'
3009 fi
698dcdb6 3010
10f2d63a 3011else
698dcdb6 3012
10f2d63a
VZ
3013 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
3014 if test "x$LINE" != x ; then
3015 eval "DEFAULT_$LINE"
3016 else
3017 no_cache=1
3018 fi
3019
3020 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
698dcdb6
VZ
3021
3022fi
10f2d63a
VZ
3023
3024
3025 eval "$ac_cv_use_config"
3026 if test "$no_cache" != 1; then
3027 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
3028 fi
3029
3030 if test "$wxUSE_CONFIG" = yes; then
698dcdb6 3031 echo "$ac_t""yes" 1>&6
10f2d63a 3032 else
698dcdb6 3033 echo "$ac_t""no" 1>&6
10f2d63a 3034 fi
698dcdb6
VZ
3035
3036
b12915c1 3037
698dcdb6 3038 echo $ac_n "checking for --enable-sockets""... $ac_c" 1>&6
69d27ff7 3039echo "configure:3040: checking for --enable-sockets" >&5
10f2d63a
VZ
3040 no_cache=0
3041 # Check whether --enable-sockets or --disable-sockets was given.
3042if test "${enable_sockets+set}" = set; then
3043 enableval="$enable_sockets"
698dcdb6 3044
10f2d63a
VZ
3045 if test "$enableval" = yes; then
3046 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
3047 else
3048 ac_cv_use_sockets='wxUSE_SOCKETS=no'
3049 fi
698dcdb6 3050
10f2d63a 3051else
698dcdb6 3052
10f2d63a
VZ
3053 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
3054 if test "x$LINE" != x ; then
3055 eval "DEFAULT_$LINE"
3056 else
3057 no_cache=1
3058 fi
3059
3060 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
698dcdb6
VZ
3061
3062fi
10f2d63a
VZ
3063
3064
3065 eval "$ac_cv_use_sockets"
3066 if test "$no_cache" != 1; then
3067 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
3068 fi
3069
3070 if test "$wxUSE_SOCKETS" = yes; then
698dcdb6 3071 echo "$ac_t""yes" 1>&6
10f2d63a 3072 else
698dcdb6 3073 echo "$ac_t""no" 1>&6
10f2d63a 3074 fi
698dcdb6 3075
b12915c1 3076
698dcdb6
VZ
3077
3078 echo $ac_n "checking for --enable-ipc""... $ac_c" 1>&6
69d27ff7 3079echo "configure:3080: checking for --enable-ipc" >&5
10f2d63a 3080 no_cache=0
eb4efbdc
VZ
3081 # Check whether --enable-ipc or --disable-ipc was given.
3082if test "${enable_ipc+set}" = set; then
3083 enableval="$enable_ipc"
698dcdb6 3084
10f2d63a 3085 if test "$enableval" = yes; then
eb4efbdc 3086 ac_cv_use_ipc='wxUSE_IPC=yes'
10f2d63a 3087 else
eb4efbdc 3088 ac_cv_use_ipc='wxUSE_IPC=no'
10f2d63a 3089 fi
698dcdb6 3090
10f2d63a 3091else
698dcdb6 3092
eb4efbdc 3093 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
10f2d63a
VZ
3094 if test "x$LINE" != x ; then
3095 eval "DEFAULT_$LINE"
3096 else
3097 no_cache=1
3098 fi
3099
eb4efbdc 3100 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
698dcdb6
VZ
3101
3102fi
10f2d63a
VZ
3103
3104
eb4efbdc 3105 eval "$ac_cv_use_ipc"
10f2d63a 3106 if test "$no_cache" != 1; then
eb4efbdc 3107 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
3108 fi
3109
eb4efbdc 3110 if test "$wxUSE_IPC" = yes; then
698dcdb6 3111 echo "$ac_t""yes" 1>&6
10f2d63a 3112 else
698dcdb6 3113 echo "$ac_t""no" 1>&6
10f2d63a 3114 fi
698dcdb6
VZ
3115
3116
eb4efbdc 3117
1e6feb95 3118 echo $ac_n "checking for --enable-cmdline""... $ac_c" 1>&6
69d27ff7 3119echo "configure:3120: checking for --enable-cmdline" >&5
1e6feb95
VZ
3120 no_cache=0
3121 # Check whether --enable-cmdline or --disable-cmdline was given.
3122if test "${enable_cmdline+set}" = set; then
3123 enableval="$enable_cmdline"
3124
3125 if test "$enableval" = yes; then
3126 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
3127 else
3128 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
3129 fi
3130
3131else
3132
3133 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
3134 if test "x$LINE" != x ; then
3135 eval "DEFAULT_$LINE"
3136 else
3137 no_cache=1
3138 fi
3139
3140 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
3141
3142fi
3143
3144
3145 eval "$ac_cv_use_cmdline"
3146 if test "$no_cache" != 1; then
3147 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
3148 fi
3149
3150 if test "$wxUSE_CMDLINE_PARSER" = yes; then
3151 echo "$ac_t""yes" 1>&6
3152 else
3153 echo "$ac_t""no" 1>&6
3154 fi
3155
3156
3157 echo $ac_n "checking for --enable-datetime""... $ac_c" 1>&6
69d27ff7 3158echo "configure:3159: checking for --enable-datetime" >&5
1e6feb95
VZ
3159 no_cache=0
3160 # Check whether --enable-datetime or --disable-datetime was given.
3161if test "${enable_datetime+set}" = set; then
3162 enableval="$enable_datetime"
3163
3164 if test "$enableval" = yes; then
3165 ac_cv_use_datetime='wxUSE_DATETIME=yes'
3166 else
3167 ac_cv_use_datetime='wxUSE_DATETIME=no'
3168 fi
3169
3170else
3171
3172 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
3173 if test "x$LINE" != x ; then
3174 eval "DEFAULT_$LINE"
3175 else
3176 no_cache=1
3177 fi
3178
3179 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
3180
3181fi
3182
3183
3184 eval "$ac_cv_use_datetime"
3185 if test "$no_cache" != 1; then
3186 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
3187 fi
3188
3189 if test "$wxUSE_DATETIME" = yes; then
3190 echo "$ac_t""yes" 1>&6
3191 else
3192 echo "$ac_t""no" 1>&6
3193 fi
3194
3195
3196 echo $ac_n "checking for --enable-timedate""... $ac_c" 1>&6
69d27ff7 3197echo "configure:3198: checking for --enable-timedate" >&5
1e6feb95
VZ
3198 no_cache=0
3199 # Check whether --enable-timedate or --disable-timedate was given.
3200if test "${enable_timedate+set}" = set; then
3201 enableval="$enable_timedate"
3202
3203 if test "$enableval" = yes; then
3204 ac_cv_use_timedate='wxUSE_TIMEDATE=yes'
3205 else
3206 ac_cv_use_timedate='wxUSE_TIMEDATE=no'
3207 fi
3208
3209else
3210
3211 LINE=`grep "wxUSE_TIMEDATE" ${wx_arg_cache_file}`
3212 if test "x$LINE" != x ; then
3213 eval "DEFAULT_$LINE"
3214 else
3215 no_cache=1
3216 fi
3217
3218 ac_cv_use_timedate='wxUSE_TIMEDATE='$DEFAULT_wxUSE_TIMEDATE
3219
3220fi
3221
3222
3223 eval "$ac_cv_use_timedate"
3224 if test "$no_cache" != 1; then
3225 echo $ac_cv_use_timedate >> ${wx_arg_cache_file}.tmp
3226 fi
3227
3228 if test "$wxUSE_TIMEDATE" = yes; then
3229 echo "$ac_t""yes" 1>&6
3230 else
3231 echo "$ac_t""no" 1>&6
3232 fi
3233
3234
3235 echo $ac_n "checking for --enable-stopwatch""... $ac_c" 1>&6
69d27ff7 3236echo "configure:3237: checking for --enable-stopwatch" >&5
1e6feb95
VZ
3237 no_cache=0
3238 # Check whether --enable-stopwatch or --disable-stopwatch was given.
3239if test "${enable_stopwatch+set}" = set; then
3240 enableval="$enable_stopwatch"
3241
3242 if test "$enableval" = yes; then
3243 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
3244 else
3245 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
3246 fi
3247
3248else
3249
3250 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
3251 if test "x$LINE" != x ; then
3252 eval "DEFAULT_$LINE"
3253 else
3254 no_cache=1
3255 fi
3256
3257 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
3258
3259fi
3260
3261
3262 eval "$ac_cv_use_stopwatch"
3263 if test "$no_cache" != 1; then
3264 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
3265 fi
3266
3267 if test "$wxUSE_STOPWATCH" = yes; then
3268 echo "$ac_t""yes" 1>&6
3269 else
3270 echo "$ac_t""no" 1>&6
3271 fi
3272
3273
698dcdb6 3274 echo $ac_n "checking for --enable-dialupman""... $ac_c" 1>&6
69d27ff7 3275echo "configure:3276: checking for --enable-dialupman" >&5
10f2d63a 3276 no_cache=0
eb4efbdc
VZ
3277 # Check whether --enable-dialupman or --disable-dialupman was given.
3278if test "${enable_dialupman+set}" = set; then
3279 enableval="$enable_dialupman"
698dcdb6 3280
10f2d63a 3281 if test "$enableval" = yes; then
eb4efbdc 3282 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
10f2d63a 3283 else
eb4efbdc 3284 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
10f2d63a 3285 fi
698dcdb6 3286
10f2d63a 3287else
698dcdb6 3288
eb4efbdc 3289 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
10f2d63a
VZ
3290 if test "x$LINE" != x ; then
3291 eval "DEFAULT_$LINE"
3292 else
3293 no_cache=1
3294 fi
3295
eb4efbdc 3296 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
698dcdb6
VZ
3297
3298fi
10f2d63a
VZ
3299
3300
eb4efbdc 3301 eval "$ac_cv_use_dialupman"
10f2d63a 3302 if test "$no_cache" != 1; then
eb4efbdc 3303 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
3304 fi
3305
eb4efbdc 3306 if test "$wxUSE_DIALUP_MANAGER" = yes; then
698dcdb6 3307 echo "$ac_t""yes" 1>&6
10f2d63a 3308 else
698dcdb6 3309 echo "$ac_t""no" 1>&6
10f2d63a 3310 fi
698dcdb6 3311
10f2d63a 3312
698dcdb6 3313 echo $ac_n "checking for --enable-apple_ieee""... $ac_c" 1>&6
69d27ff7 3314echo "configure:3315: checking for --enable-apple_ieee" >&5
10f2d63a
VZ
3315 no_cache=0
3316 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
3317if test "${enable_apple_ieee+set}" = set; then
3318 enableval="$enable_apple_ieee"
698dcdb6 3319
10f2d63a
VZ
3320 if test "$enableval" = yes; then
3321 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
3322 else
3323 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
3324 fi
698dcdb6 3325
10f2d63a 3326else
698dcdb6 3327
10f2d63a
VZ
3328 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
3329 if test "x$LINE" != x ; then
3330 eval "DEFAULT_$LINE"
3331 else
3332 no_cache=1
3333 fi
3334
3335 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
698dcdb6
VZ
3336
3337fi
10f2d63a
VZ
3338
3339
3340 eval "$ac_cv_use_apple_ieee"
3341 if test "$no_cache" != 1; then
3342 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
3343 fi
3344
3345 if test "$wxUSE_APPLE_IEEE" = yes; then
698dcdb6 3346 echo "$ac_t""yes" 1>&6
10f2d63a 3347 else
698dcdb6 3348 echo "$ac_t""no" 1>&6
10f2d63a 3349 fi
698dcdb6 3350
10f2d63a 3351
1e6feb95 3352 echo $ac_n "checking for --enable-timer""... $ac_c" 1>&6
69d27ff7 3353echo "configure:3354: checking for --enable-timer" >&5
10f2d63a 3354 no_cache=0
1e6feb95
VZ
3355 # Check whether --enable-timer or --disable-timer was given.
3356if test "${enable_timer+set}" = set; then
3357 enableval="$enable_timer"
698dcdb6 3358
10f2d63a 3359 if test "$enableval" = yes; then
1e6feb95 3360 ac_cv_use_timer='wxUSE_TIMER=yes'
10f2d63a 3361 else
1e6feb95 3362 ac_cv_use_timer='wxUSE_TIMER=no'
10f2d63a 3363 fi
698dcdb6 3364
10f2d63a 3365else
698dcdb6 3366
1e6feb95 3367 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
10f2d63a
VZ
3368 if test "x$LINE" != x ; then
3369 eval "DEFAULT_$LINE"
3370 else
3371 no_cache=1
3372 fi
3373
1e6feb95 3374 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
698dcdb6
VZ
3375
3376fi
10f2d63a
VZ
3377
3378
1e6feb95 3379 eval "$ac_cv_use_timer"
10f2d63a 3380 if test "$no_cache" != 1; then
1e6feb95 3381 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
3382 fi
3383
1e6feb95 3384 if test "$wxUSE_TIMER" = yes; then
698dcdb6 3385 echo "$ac_t""yes" 1>&6
10f2d63a 3386 else
698dcdb6 3387 echo "$ac_t""no" 1>&6
10f2d63a 3388 fi
698dcdb6 3389
10f2d63a 3390
698dcdb6 3391 echo $ac_n "checking for --enable-wave""... $ac_c" 1>&6
69d27ff7 3392echo "configure:3393: checking for --enable-wave" >&5
10f2d63a
VZ
3393 no_cache=0
3394 # Check whether --enable-wave or --disable-wave was given.
3395if test "${enable_wave+set}" = set; then
3396 enableval="$enable_wave"
698dcdb6 3397
10f2d63a
VZ
3398 if test "$enableval" = yes; then
3399 ac_cv_use_wave='wxUSE_WAVE=yes'
3400 else
3401 ac_cv_use_wave='wxUSE_WAVE=no'
3402 fi
698dcdb6 3403
10f2d63a 3404else
698dcdb6 3405
10f2d63a
VZ
3406 LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}`
3407 if test "x$LINE" != x ; then
3408 eval "DEFAULT_$LINE"
3409 else
3410 no_cache=1
3411 fi
3412
3413 ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE
698dcdb6
VZ
3414
3415fi
10f2d63a
VZ
3416
3417
3418 eval "$ac_cv_use_wave"
3419 if test "$no_cache" != 1; then
3420 echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp
3421 fi
3422
3423 if test "$wxUSE_WAVE" = yes; then
698dcdb6 3424 echo "$ac_t""yes" 1>&6
10f2d63a 3425 else
698dcdb6 3426 echo "$ac_t""no" 1>&6
10f2d63a 3427 fi
698dcdb6 3428
10f2d63a 3429
698dcdb6 3430 echo $ac_n "checking for --enable-fraction""... $ac_c" 1>&6
69d27ff7 3431echo "configure:3432: checking for --enable-fraction" >&5
10f2d63a
VZ
3432 no_cache=0
3433 # Check whether --enable-fraction or --disable-fraction was given.
3434if test "${enable_fraction+set}" = set; then
3435 enableval="$enable_fraction"
698dcdb6 3436
10f2d63a
VZ
3437 if test "$enableval" = yes; then
3438 ac_cv_use_fraction='wxUSE_FRACTION=yes'
3439 else
3440 ac_cv_use_fraction='wxUSE_FRACTION=no'
3441 fi
698dcdb6 3442
10f2d63a 3443else
698dcdb6 3444
10f2d63a
VZ
3445 LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}`
3446 if test "x$LINE" != x ; then
3447 eval "DEFAULT_$LINE"
3448 else
3449 no_cache=1
3450 fi
3451
3452 ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION
698dcdb6
VZ
3453
3454fi
10f2d63a
VZ
3455
3456
3457 eval "$ac_cv_use_fraction"
3458 if test "$no_cache" != 1; then
3459 echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp
3460 fi
3461
3462 if test "$wxUSE_FRACTION" = yes; then
698dcdb6 3463 echo "$ac_t""yes" 1>&6
10f2d63a 3464 else
698dcdb6 3465 echo "$ac_t""no" 1>&6
10f2d63a 3466 fi
698dcdb6 3467
10f2d63a 3468
698dcdb6 3469 echo $ac_n "checking for --enable-dynlib""... $ac_c" 1>&6
69d27ff7 3470echo "configure:3471: checking for --enable-dynlib" >&5
10f2d63a
VZ
3471 no_cache=0
3472 # Check whether --enable-dynlib or --disable-dynlib was given.
3473if test "${enable_dynlib+set}" = set; then
3474 enableval="$enable_dynlib"
698dcdb6 3475
10f2d63a
VZ
3476 if test "$enableval" = yes; then
3477 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
3478 else
3479 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
3480 fi
698dcdb6 3481
10f2d63a 3482else
698dcdb6 3483
10f2d63a
VZ
3484 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
3485 if test "x$LINE" != x ; then
3486 eval "DEFAULT_$LINE"
3487 else
3488 no_cache=1
3489 fi
3490
3491 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
698dcdb6
VZ
3492
3493fi
10f2d63a
VZ
3494
3495
3496 eval "$ac_cv_use_dynlib"
3497 if test "$no_cache" != 1; then
3498 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
3499 fi
3500
3501 if test "$wxUSE_DYNLIB_CLASS" = yes; then
698dcdb6 3502 echo "$ac_t""yes" 1>&6
10f2d63a 3503 else
698dcdb6 3504 echo "$ac_t""no" 1>&6
10f2d63a 3505 fi
698dcdb6 3506
10f2d63a 3507
698dcdb6 3508 echo $ac_n "checking for --enable-longlong""... $ac_c" 1>&6
69d27ff7 3509echo "configure:3510: checking for --enable-longlong" >&5
10f2d63a
VZ
3510 no_cache=0
3511 # Check whether --enable-longlong or --disable-longlong was given.
3512if test "${enable_longlong+set}" = set; then
3513 enableval="$enable_longlong"
698dcdb6 3514
10f2d63a
VZ
3515 if test "$enableval" = yes; then
3516 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
3517 else
3518 ac_cv_use_longlong='wxUSE_LONGLONG=no'
3519 fi
698dcdb6 3520
10f2d63a 3521else
698dcdb6 3522
10f2d63a
VZ
3523 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
3524 if test "x$LINE" != x ; then
3525 eval "DEFAULT_$LINE"
3526 else
3527 no_cache=1
3528 fi
3529
3530 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
698dcdb6
VZ
3531
3532fi
10f2d63a
VZ
3533
3534
3535 eval "$ac_cv_use_longlong"
3536 if test "$no_cache" != 1; then
3537 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
3538 fi
3539
3540 if test "$wxUSE_LONGLONG" = yes; then
698dcdb6 3541 echo "$ac_t""yes" 1>&6
10f2d63a 3542 else
698dcdb6 3543 echo "$ac_t""no" 1>&6
10f2d63a 3544 fi
698dcdb6 3545
10f2d63a 3546
698dcdb6 3547 echo $ac_n "checking for --enable-geometry""... $ac_c" 1>&6
69d27ff7 3548echo "configure:3549: checking for --enable-geometry" >&5
e8f65ba6
RR
3549 no_cache=0
3550 # Check whether --enable-geometry or --disable-geometry was given.
3551if test "${enable_geometry+set}" = set; then
3552 enableval="$enable_geometry"
698dcdb6 3553
e8f65ba6
RR
3554 if test "$enableval" = yes; then
3555 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
3556 else
3557 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
3558 fi
698dcdb6 3559
e8f65ba6 3560else
698dcdb6 3561
e8f65ba6
RR
3562 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
3563 if test "x$LINE" != x ; then
3564 eval "DEFAULT_$LINE"
3565 else
3566 no_cache=1
3567 fi
3568
3569 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
698dcdb6
VZ
3570
3571fi
e8f65ba6
RR
3572
3573
3574 eval "$ac_cv_use_geometry"
3575 if test "$no_cache" != 1; then
3576 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
3577 fi
3578
3579 if test "$wxUSE_GEOMETRY" = yes; then
698dcdb6 3580 echo "$ac_t""yes" 1>&6
e8f65ba6 3581 else
698dcdb6 3582 echo "$ac_t""no" 1>&6
e8f65ba6 3583 fi
698dcdb6 3584
e8f65ba6 3585
698dcdb6 3586 echo $ac_n "checking for --enable-log""... $ac_c" 1>&6
69d27ff7 3587echo "configure:3588: checking for --enable-log" >&5
10f2d63a
VZ
3588 no_cache=0
3589 # Check whether --enable-log or --disable-log was given.
3590if test "${enable_log+set}" = set; then
3591 enableval="$enable_log"
698dcdb6 3592
10f2d63a
VZ
3593 if test "$enableval" = yes; then
3594 ac_cv_use_log='wxUSE_LOG=yes'
3595 else
3596 ac_cv_use_log='wxUSE_LOG=no'
3597 fi
698dcdb6 3598
10f2d63a 3599else
698dcdb6 3600
10f2d63a
VZ
3601 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
3602 if test "x$LINE" != x ; then
3603 eval "DEFAULT_$LINE"
3604 else
3605 no_cache=1
3606 fi
3607
3608 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
698dcdb6
VZ
3609
3610fi
10f2d63a
VZ
3611
3612
3613 eval "$ac_cv_use_log"
3614 if test "$no_cache" != 1; then
3615 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
3616 fi
3617
3618 if test "$wxUSE_LOG" = yes; then
698dcdb6 3619 echo "$ac_t""yes" 1>&6
10f2d63a 3620 else
698dcdb6 3621 echo "$ac_t""no" 1>&6
10f2d63a 3622 fi
698dcdb6 3623
10f2d63a 3624
698dcdb6 3625 echo $ac_n "checking for --enable-streams""... $ac_c" 1>&6
69d27ff7 3626echo "configure:3627: checking for --enable-streams" >&5
10f2d63a
VZ
3627 no_cache=0
3628 # Check whether --enable-streams or --disable-streams was given.
3629if test "${enable_streams+set}" = set; then
3630 enableval="$enable_streams"
698dcdb6 3631
10f2d63a
VZ
3632 if test "$enableval" = yes; then
3633 ac_cv_use_streams='wxUSE_STREAMS=yes'
3634 else
3635 ac_cv_use_streams='wxUSE_STREAMS=no'
3636 fi
698dcdb6 3637
10f2d63a 3638else
698dcdb6 3639
10f2d63a
VZ
3640 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
3641 if test "x$LINE" != x ; then
3642 eval "DEFAULT_$LINE"
3643 else
3644 no_cache=1
3645 fi
3646
3647 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
698dcdb6
VZ
3648
3649fi
10f2d63a
VZ
3650
3651
3652 eval "$ac_cv_use_streams"
3653 if test "$no_cache" != 1; then
3654 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
3655 fi
3656
3657 if test "$wxUSE_STREAMS" = yes; then
698dcdb6 3658 echo "$ac_t""yes" 1>&6
10f2d63a 3659 else
698dcdb6 3660 echo "$ac_t""no" 1>&6
10f2d63a 3661 fi
698dcdb6 3662
10f2d63a 3663
698dcdb6 3664 echo $ac_n "checking for --enable-file""... $ac_c" 1>&6
69d27ff7 3665echo "configure:3666: checking for --enable-file" >&5
10f2d63a
VZ
3666 no_cache=0
3667 # Check whether --enable-file or --disable-file was given.
3668if test "${enable_file+set}" = set; then
3669 enableval="$enable_file"
698dcdb6 3670
10f2d63a
VZ
3671 if test "$enableval" = yes; then
3672 ac_cv_use_file='wxUSE_FILE=yes'
3673 else
3674 ac_cv_use_file='wxUSE_FILE=no'
3675 fi
698dcdb6 3676
10f2d63a 3677else
698dcdb6 3678
10f2d63a
VZ
3679 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
3680 if test "x$LINE" != x ; then
3681 eval "DEFAULT_$LINE"
3682 else
3683 no_cache=1
3684 fi
3685
3686 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
698dcdb6
VZ
3687
3688fi
10f2d63a
VZ
3689
3690
3691 eval "$ac_cv_use_file"
3692 if test "$no_cache" != 1; then
3693 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
3694 fi
3695
3696 if test "$wxUSE_FILE" = yes; then
698dcdb6 3697 echo "$ac_t""yes" 1>&6
10f2d63a 3698 else
698dcdb6 3699 echo "$ac_t""no" 1>&6
10f2d63a 3700 fi
698dcdb6 3701
10f2d63a 3702
1e6feb95 3703 echo $ac_n "checking for --enable-ffile""... $ac_c" 1>&6
69d27ff7 3704echo "configure:3705: checking for --enable-ffile" >&5
10f2d63a 3705 no_cache=0
1e6feb95
VZ
3706 # Check whether --enable-ffile or --disable-ffile was given.
3707if test "${enable_ffile+set}" = set; then
3708 enableval="$enable_ffile"
698dcdb6 3709
10f2d63a 3710 if test "$enableval" = yes; then
1e6feb95 3711 ac_cv_use_ffile='wxUSE_FFILE=yes'
10f2d63a 3712 else
1e6feb95 3713 ac_cv_use_ffile='wxUSE_FFILE=no'
10f2d63a 3714 fi
698dcdb6 3715
10f2d63a 3716else
698dcdb6 3717
1e6feb95 3718 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
10f2d63a
VZ
3719 if test "x$LINE" != x ; then
3720 eval "DEFAULT_$LINE"
3721 else
3722 no_cache=1
3723 fi
3724
1e6feb95 3725 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
698dcdb6
VZ
3726
3727fi
10f2d63a
VZ
3728
3729
1e6feb95 3730 eval "$ac_cv_use_ffile"
10f2d63a 3731 if test "$no_cache" != 1; then
1e6feb95 3732 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
3733 fi
3734
1e6feb95 3735 if test "$wxUSE_FFILE" = yes; then
698dcdb6 3736 echo "$ac_t""yes" 1>&6
10f2d63a 3737 else
698dcdb6 3738 echo "$ac_t""no" 1>&6
10f2d63a 3739 fi
698dcdb6 3740
10f2d63a 3741
a3a584a7 3742 echo $ac_n "checking for --enable-textbuf""... $ac_c" 1>&6
69d27ff7 3743echo "configure:3744: checking for --enable-textbuf" >&5
a3a584a7
VZ
3744 no_cache=0
3745 # Check whether --enable-textbuf or --disable-textbuf was given.
3746if test "${enable_textbuf+set}" = set; then
3747 enableval="$enable_textbuf"
3748
3749 if test "$enableval" = yes; then
3750 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
3751 else
3752 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
3753 fi
3754
3755else
3756
3757 LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}`
3758 if test "x$LINE" != x ; then
3759 eval "DEFAULT_$LINE"
3760 else
3761 no_cache=1
3762 fi
3763
3764 ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
3765
3766fi
3767
3768
3769 eval "$ac_cv_use_textbuf"
3770 if test "$no_cache" != 1; then
3771 echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
3772 fi
3773
3774 if test "$wxUSE_TEXTBUFFER" = yes; then
3775 echo "$ac_t""yes" 1>&6
3776 else
3777 echo "$ac_t""no" 1>&6
3778 fi
3779
3780
1e6feb95 3781 echo $ac_n "checking for --enable-textfile""... $ac_c" 1>&6
69d27ff7 3782echo "configure:3783: checking for --enable-textfile" >&5
10f2d63a 3783 no_cache=0
1e6feb95
VZ
3784 # Check whether --enable-textfile or --disable-textfile was given.
3785if test "${enable_textfile+set}" = set; then
3786 enableval="$enable_textfile"
698dcdb6 3787
10f2d63a 3788 if test "$enableval" = yes; then
1e6feb95 3789 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
10f2d63a 3790 else
1e6feb95 3791 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
10f2d63a 3792 fi
698dcdb6 3793
10f2d63a 3794else
698dcdb6 3795
1e6feb95 3796 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
10f2d63a
VZ
3797 if test "x$LINE" != x ; then
3798 eval "DEFAULT_$LINE"
3799 else
3800 no_cache=1
3801 fi
3802
1e6feb95 3803 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
698dcdb6
VZ
3804
3805fi
10f2d63a
VZ
3806
3807
1e6feb95 3808 eval "$ac_cv_use_textfile"
10f2d63a 3809 if test "$no_cache" != 1; then
1e6feb95 3810 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
3811 fi
3812
1e6feb95 3813 if test "$wxUSE_TEXTFILE" = yes; then
698dcdb6 3814 echo "$ac_t""yes" 1>&6
10f2d63a 3815 else
698dcdb6 3816 echo "$ac_t""no" 1>&6
10f2d63a 3817 fi
698dcdb6 3818
10f2d63a 3819
1e6feb95 3820 echo $ac_n "checking for --enable-fontmap""... $ac_c" 1>&6
69d27ff7 3821echo "configure:3822: checking for --enable-fontmap" >&5
10f2d63a 3822 no_cache=0
1e6feb95
VZ
3823 # Check whether --enable-fontmap or --disable-fontmap was given.
3824if test "${enable_fontmap+set}" = set; then
3825 enableval="$enable_fontmap"
698dcdb6 3826
10f2d63a 3827 if test "$enableval" = yes; then
1e6feb95 3828 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
10f2d63a 3829 else
1e6feb95 3830 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
10f2d63a 3831 fi
698dcdb6 3832
10f2d63a 3833else
698dcdb6 3834
1e6feb95 3835 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
10f2d63a
VZ
3836 if test "x$LINE" != x ; then
3837 eval "DEFAULT_$LINE"
3838 else
3839 no_cache=1
3840 fi
3841
1e6feb95 3842 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
698dcdb6
VZ
3843
3844fi
10f2d63a
VZ
3845
3846
1e6feb95 3847 eval "$ac_cv_use_fontmap"
10f2d63a 3848 if test "$no_cache" != 1; then
1e6feb95 3849 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
3850 fi
3851
1e6feb95 3852 if test "$wxUSE_FONTMAP" = yes; then
698dcdb6 3853 echo "$ac_t""yes" 1>&6
10f2d63a 3854 else
698dcdb6 3855 echo "$ac_t""no" 1>&6
10f2d63a 3856 fi
698dcdb6 3857
10f2d63a 3858
1e6feb95 3859 echo $ac_n "checking for --enable-unicode""... $ac_c" 1>&6
69d27ff7 3860echo "configure:3861: checking for --enable-unicode" >&5
10f2d63a 3861 no_cache=0
1e6feb95
VZ
3862 # Check whether --enable-unicode or --disable-unicode was given.
3863if test "${enable_unicode+set}" = set; then
3864 enableval="$enable_unicode"
3865
3866 if test "$enableval" = yes; then
3867 ac_cv_use_unicode='wxUSE_UNICODE=yes'
3868 else
3869 ac_cv_use_unicode='wxUSE_UNICODE=no'
3870 fi
3871
3872else
3873
3874 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
3875 if test "x$LINE" != x ; then
3876 eval "DEFAULT_$LINE"
3877 else
3878 no_cache=1
3879 fi
3880
3881 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
3882
3883fi
3884
3885
3886 eval "$ac_cv_use_unicode"
3887 if test "$no_cache" != 1; then
3888 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
3889 fi
3890
3891 if test "$wxUSE_UNICODE" = yes; then
3892 echo "$ac_t""yes" 1>&6
3893 else
3894 echo "$ac_t""no" 1>&6
3895 fi
3896
3897
1e6feb95 3898 echo $ac_n "checking for --enable-wxprintfv""... $ac_c" 1>&6
69d27ff7 3899echo "configure:3900: checking for --enable-wxprintfv" >&5
1e6feb95
VZ
3900 no_cache=0
3901 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
3902if test "${enable_wxprintfv+set}" = set; then
3903 enableval="$enable_wxprintfv"
3904
3905 if test "$enableval" = yes; then
10f2d63a
VZ
3906 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
3907 else
3908 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
3909 fi
698dcdb6 3910
10f2d63a 3911else
698dcdb6 3912
10f2d63a
VZ
3913 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
3914 if test "x$LINE" != x ; then
3915 eval "DEFAULT_$LINE"
3916 else
3917 no_cache=1
3918 fi
3919
3920 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
698dcdb6
VZ
3921
3922fi
10f2d63a
VZ
3923
3924
3925 eval "$ac_cv_use_wxprintfv"
3926 if test "$no_cache" != 1; then
3927 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
3928 fi
3929
3930 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
698dcdb6 3931 echo "$ac_t""yes" 1>&6
10f2d63a 3932 else
698dcdb6 3933 echo "$ac_t""no" 1>&6
10f2d63a 3934 fi
698dcdb6 3935
10f2d63a 3936
698dcdb6 3937 echo $ac_n "checking for --enable-std_iostreams""... $ac_c" 1>&6
69d27ff7 3938echo "configure:3939: checking for --enable-std_iostreams" >&5
10f2d63a
VZ
3939 no_cache=0
3940 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
3941if test "${enable_std_iostreams+set}" = set; then
3942 enableval="$enable_std_iostreams"
698dcdb6 3943
10f2d63a
VZ
3944 if test "$enableval" = yes; then
3945 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
3946 else
3947 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
3948 fi
698dcdb6 3949
10f2d63a 3950else
698dcdb6 3951
10f2d63a
VZ
3952 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
3953 if test "x$LINE" != x ; then
3954 eval "DEFAULT_$LINE"
3955 else
3956 no_cache=1
3957 fi
3958
3959 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
698dcdb6
VZ
3960
3961fi
10f2d63a
VZ
3962
3963
3964 eval "$ac_cv_use_std_iostreams"
3965 if test "$no_cache" != 1; then
3966 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
3967 fi
3968
3969 if test "$wxUSE_STD_IOSTREAM" = yes; then
698dcdb6 3970 echo "$ac_t""yes" 1>&6
10f2d63a 3971 else
698dcdb6 3972 echo "$ac_t""no" 1>&6
10f2d63a 3973 fi
698dcdb6 3974
10f2d63a 3975
698dcdb6 3976 echo $ac_n "checking for --enable-filesystem""... $ac_c" 1>&6
69d27ff7 3977echo "configure:3978: checking for --enable-filesystem" >&5
24528b0c
VS
3978 no_cache=0
3979 # Check whether --enable-filesystem or --disable-filesystem was given.
3980if test "${enable_filesystem+set}" = set; then
3981 enableval="$enable_filesystem"
698dcdb6 3982
24528b0c
VS
3983 if test "$enableval" = yes; then
3984 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
3985 else
3986 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
3987 fi
698dcdb6 3988
24528b0c 3989else
698dcdb6 3990
24528b0c
VS
3991 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
3992 if test "x$LINE" != x ; then
3993 eval "DEFAULT_$LINE"
3994 else
3995 no_cache=1
3996 fi
3997
3998 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
698dcdb6
VZ
3999
4000fi
24528b0c
VS
4001
4002
4003 eval "$ac_cv_use_filesystem"
4004 if test "$no_cache" != 1; then
4005 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
4006 fi
4007
4008 if test "$wxUSE_FILESYSTEM" = yes; then
698dcdb6 4009 echo "$ac_t""yes" 1>&6
24528b0c 4010 else
698dcdb6 4011 echo "$ac_t""no" 1>&6
24528b0c 4012 fi
698dcdb6 4013
24528b0c 4014
698dcdb6 4015 echo $ac_n "checking for --enable-fs_inet""... $ac_c" 1>&6
69d27ff7 4016echo "configure:4017: checking for --enable-fs_inet" >&5
10f2d63a
VZ
4017 no_cache=0
4018 # Check whether --enable-fs_inet or --disable-fs_inet was given.
4019if test "${enable_fs_inet+set}" = set; then
4020 enableval="$enable_fs_inet"
698dcdb6 4021
10f2d63a
VZ
4022 if test "$enableval" = yes; then
4023 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
4024 else
4025 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
4026 fi
698dcdb6 4027
10f2d63a 4028else
698dcdb6 4029
10f2d63a
VZ
4030 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
4031 if test "x$LINE" != x ; then
4032 eval "DEFAULT_$LINE"
4033 else
4034 no_cache=1
4035 fi
4036
4037 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
698dcdb6
VZ
4038
4039fi
10f2d63a
VZ
4040
4041
4042 eval "$ac_cv_use_fs_inet"
4043 if test "$no_cache" != 1; then
4044 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
4045 fi
4046
4047 if test "$wxUSE_FS_INET" = yes; then
698dcdb6 4048 echo "$ac_t""yes" 1>&6
10f2d63a 4049 else
698dcdb6 4050 echo "$ac_t""no" 1>&6
10f2d63a 4051 fi
698dcdb6 4052
10f2d63a 4053
698dcdb6 4054 echo $ac_n "checking for --enable-fs_zip""... $ac_c" 1>&6
69d27ff7 4055echo "configure:4056: checking for --enable-fs_zip" >&5
10f2d63a
VZ
4056 no_cache=0
4057 # Check whether --enable-fs_zip or --disable-fs_zip was given.
4058if test "${enable_fs_zip+set}" = set; then
4059 enableval="$enable_fs_zip"
698dcdb6 4060
10f2d63a
VZ
4061 if test "$enableval" = yes; then
4062 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
4063 else
4064 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
4065 fi
698dcdb6 4066
10f2d63a 4067else
698dcdb6 4068
10f2d63a
VZ
4069 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
4070 if test "x$LINE" != x ; then
4071 eval "DEFAULT_$LINE"
4072 else
4073 no_cache=1
4074 fi
4075
4076 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
698dcdb6
VZ
4077
4078fi
10f2d63a
VZ
4079
4080
4081 eval "$ac_cv_use_fs_zip"
4082 if test "$no_cache" != 1; then
4083 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
4084 fi
4085
4086 if test "$wxUSE_FS_ZIP" = yes; then
698dcdb6 4087 echo "$ac_t""yes" 1>&6
10f2d63a 4088 else
698dcdb6 4089 echo "$ac_t""no" 1>&6
10f2d63a 4090 fi
698dcdb6 4091
10f2d63a 4092
698dcdb6 4093 echo $ac_n "checking for --enable-zipstream""... $ac_c" 1>&6
69d27ff7 4094echo "configure:4095: checking for --enable-zipstream" >&5
10f2d63a
VZ
4095 no_cache=0
4096 # Check whether --enable-zipstream or --disable-zipstream was given.
4097if test "${enable_zipstream+set}" = set; then
4098 enableval="$enable_zipstream"
698dcdb6 4099
10f2d63a
VZ
4100 if test "$enableval" = yes; then
4101 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
4102 else
4103 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
4104 fi
698dcdb6 4105
10f2d63a 4106else
698dcdb6 4107
10f2d63a
VZ
4108 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
4109 if test "x$LINE" != x ; then
4110 eval "DEFAULT_$LINE"
4111 else
4112 no_cache=1
4113 fi
4114
4115 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
698dcdb6
VZ
4116
4117fi
10f2d63a
VZ
4118
4119
4120 eval "$ac_cv_use_zipstream"
4121 if test "$no_cache" != 1; then
4122 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
4123 fi
4124
4125 if test "$wxUSE_ZIPSTREAM" = yes; then
698dcdb6 4126 echo "$ac_t""yes" 1>&6
10f2d63a 4127 else
698dcdb6 4128 echo "$ac_t""no" 1>&6
10f2d63a 4129 fi
698dcdb6 4130
10f2d63a 4131
698dcdb6
VZ
4132
4133 echo $ac_n "checking for --enable-catch_segvs""... $ac_c" 1>&6
69d27ff7 4134echo "configure:4135: checking for --enable-catch_segvs" >&5
eb4efbdc
VZ
4135 no_cache=0
4136 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
4137if test "${enable_catch_segvs+set}" = set; then
4138 enableval="$enable_catch_segvs"
698dcdb6 4139
eb4efbdc
VZ
4140 if test "$enableval" = yes; then
4141 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
4142 else
4143 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
4144 fi
698dcdb6 4145
eb4efbdc 4146else
698dcdb6 4147
eb4efbdc
VZ
4148 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
4149 if test "x$LINE" != x ; then
4150 eval "DEFAULT_$LINE"
4151 else
4152 no_cache=1
4153 fi
4154
4155 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
698dcdb6
VZ
4156
4157fi
eb4efbdc
VZ
4158
4159
4160 eval "$ac_cv_use_catch_segvs"
4161 if test "$no_cache" != 1; then
4162 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
4163 fi
4164
4165 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
698dcdb6 4166 echo "$ac_t""yes" 1>&6
eb4efbdc 4167 else
698dcdb6 4168 echo "$ac_t""no" 1>&6
eb4efbdc 4169 fi
698dcdb6 4170
eb4efbdc 4171
698dcdb6 4172 echo $ac_n "checking for --enable-snglinst""... $ac_c" 1>&6
69d27ff7 4173echo "configure:4174: checking for --enable-snglinst" >&5
4f3c5f06
VZ
4174 no_cache=0
4175 # Check whether --enable-snglinst or --disable-snglinst was given.
4176if test "${enable_snglinst+set}" = set; then
4177 enableval="$enable_snglinst"
698dcdb6 4178
4f3c5f06
VZ
4179 if test "$enableval" = yes; then
4180 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
4181 else
4182 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
4183 fi
698dcdb6 4184
4f3c5f06 4185else
698dcdb6 4186
4f3c5f06
VZ
4187 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
4188 if test "x$LINE" != x ; then
4189 eval "DEFAULT_$LINE"
4190 else
4191 no_cache=1
4192 fi
4193
4194 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
698dcdb6
VZ
4195
4196fi
4f3c5f06
VZ
4197
4198
4199 eval "$ac_cv_use_snglinst"
4200 if test "$no_cache" != 1; then
4201 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
4202 fi
4203
4204 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
698dcdb6 4205 echo "$ac_t""yes" 1>&6
4f3c5f06 4206 else
698dcdb6 4207 echo "$ac_t""no" 1>&6
4f3c5f06 4208 fi
698dcdb6
VZ
4209
4210
eb4efbdc 4211
1e6feb95 4212 echo $ac_n "checking for --enable-mimetype""... $ac_c" 1>&6
69d27ff7 4213echo "configure:4214: checking for --enable-mimetype" >&5
1e6feb95
VZ
4214 no_cache=0
4215 # Check whether --enable-mimetype or --disable-mimetype was given.
4216if test "${enable_mimetype+set}" = set; then
4217 enableval="$enable_mimetype"
4218
4219 if test "$enableval" = yes; then
4220 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
4221 else
4222 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
4223 fi
4224
4225else
4226
4227 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
4228 if test "x$LINE" != x ; then
4229 eval "DEFAULT_$LINE"
4230 else
4231 no_cache=1
4232 fi
4233
4234 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
4235
4236fi
4237
4238
4239 eval "$ac_cv_use_mimetype"
4240 if test "$no_cache" != 1; then
4241 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
4242 fi
4243
4244 if test "$wxUSE_MIMETYPE" = yes; then
4245 echo "$ac_t""yes" 1>&6
4246 else
4247 echo "$ac_t""no" 1>&6
4248 fi
4249
4250
3e44f09d 4251 echo $ac_n "checking for --enable-system_options""... $ac_c" 1>&6
69d27ff7 4252echo "configure:4253: checking for --enable-system_options" >&5
3e44f09d
VZ
4253 no_cache=0
4254 # Check whether --enable-system_options or --disable-system_options was given.
4255if test "${enable_system_options+set}" = set; then
4256 enableval="$enable_system_options"
4257
4258 if test "$enableval" = yes; then
4259 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
4260 else
4261 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
4262 fi
4263
4264else
4265
4266 LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
4267 if test "x$LINE" != x ; then
4268 eval "DEFAULT_$LINE"
4269 else
4270 no_cache=1
4271 fi
4272
4273 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
4274
4275fi
4276
4277
4278 eval "$ac_cv_use_system_options"
4279 if test "$no_cache" != 1; then
4280 echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
4281 fi
4282
4283 if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
4284 echo "$ac_t""yes" 1>&6
4285 else
4286 echo "$ac_t""no" 1>&6
4287 fi
4288
4289
1e6feb95 4290
698dcdb6
VZ
4291
4292 echo $ac_n "checking for --enable-threads""... $ac_c" 1>&6
69d27ff7 4293echo "configure:4294: checking for --enable-threads" >&5
10f2d63a
VZ
4294 no_cache=0
4295 # Check whether --enable-threads or --disable-threads was given.
4296if test "${enable_threads+set}" = set; then
4297 enableval="$enable_threads"
698dcdb6 4298
10f2d63a
VZ
4299 if test "$enableval" = yes; then
4300 ac_cv_use_threads='wxUSE_THREADS=yes'
4301 else
4302 ac_cv_use_threads='wxUSE_THREADS=no'
4303 fi
698dcdb6 4304
10f2d63a 4305else
698dcdb6 4306
10f2d63a
VZ
4307 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
4308 if test "x$LINE" != x ; then
4309 eval "DEFAULT_$LINE"
4310 else
4311 no_cache=1
4312 fi
4313
4314 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
698dcdb6
VZ
4315
4316fi
10f2d63a
VZ
4317
4318
4319 eval "$ac_cv_use_threads"
4320 if test "$no_cache" != 1; then
4321 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
4322 fi
4323
4324 if test "$wxUSE_THREADS" = yes; then
698dcdb6 4325 echo "$ac_t""yes" 1>&6
10f2d63a 4326 else
698dcdb6 4327 echo "$ac_t""no" 1>&6
10f2d63a 4328 fi
698dcdb6 4329
10f2d63a 4330
698dcdb6 4331 echo $ac_n "checking for --enable-serial""... $ac_c" 1>&6
69d27ff7 4332echo "configure:4333: checking for --enable-serial" >&5
10f2d63a
VZ
4333 no_cache=0
4334 # Check whether --enable-serial or --disable-serial was given.
4335if test "${enable_serial+set}" = set; then
4336 enableval="$enable_serial"
698dcdb6 4337
10f2d63a
VZ
4338 if test "$enableval" = yes; then
4339 ac_cv_use_serial='wxUSE_SERIAL=yes'
4340 else
4341 ac_cv_use_serial='wxUSE_SERIAL=no'
4342 fi
698dcdb6 4343
10f2d63a 4344else
698dcdb6 4345
10f2d63a
VZ
4346 LINE=`grep "wxUSE_SERIAL" ${wx_arg_cache_file}`
4347 if test "x$LINE" != x ; then
4348 eval "DEFAULT_$LINE"
4349 else
4350 no_cache=1
4351 fi
4352
4353 ac_cv_use_serial='wxUSE_SERIAL='$DEFAULT_wxUSE_SERIAL
698dcdb6
VZ
4354
4355fi
10f2d63a
VZ
4356
4357
4358 eval "$ac_cv_use_serial"
4359 if test "$no_cache" != 1; then
4360 echo $ac_cv_use_serial >> ${wx_arg_cache_file}.tmp
4361 fi
4362
4363 if test "$wxUSE_SERIAL" = yes; then
698dcdb6 4364 echo "$ac_t""yes" 1>&6
10f2d63a 4365 else
698dcdb6 4366 echo "$ac_t""no" 1>&6
10f2d63a 4367 fi
698dcdb6 4368
10f2d63a 4369
b12915c1
VZ
4370if test "$wxUSE_GUI" = "yes"; then
4371
698dcdb6
VZ
4372
4373
4374 echo $ac_n "checking for --enable-docview""... $ac_c" 1>&6
69d27ff7 4375echo "configure:4376: checking for --enable-docview" >&5
10f2d63a
VZ
4376 no_cache=0
4377 # Check whether --enable-docview or --disable-docview was given.
4378if test "${enable_docview+set}" = set; then
4379 enableval="$enable_docview"
698dcdb6 4380
10f2d63a
VZ
4381 if test "$enableval" = yes; then
4382 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
4383 else
4384 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
4385 fi
698dcdb6 4386
10f2d63a 4387else
698dcdb6 4388
10f2d63a
VZ
4389 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
4390 if test "x$LINE" != x ; then
4391 eval "DEFAULT_$LINE"
4392 else
4393 no_cache=1
4394 fi
4395
4396 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
698dcdb6
VZ
4397
4398fi
10f2d63a
VZ
4399
4400
4401 eval "$ac_cv_use_docview"
4402 if test "$no_cache" != 1; then
4403 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
4404 fi
4405
4406 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
698dcdb6 4407 echo "$ac_t""yes" 1>&6
10f2d63a 4408 else
698dcdb6 4409 echo "$ac_t""no" 1>&6
10f2d63a 4410 fi
698dcdb6 4411
10f2d63a 4412
698dcdb6 4413 echo $ac_n "checking for --enable-help""... $ac_c" 1>&6
69d27ff7 4414echo "configure:4415: checking for --enable-help" >&5
10f2d63a
VZ
4415 no_cache=0
4416 # Check whether --enable-help or --disable-help was given.
4417if test "${enable_help+set}" = set; then
4418 enableval="$enable_help"
698dcdb6 4419
10f2d63a
VZ
4420 if test "$enableval" = yes; then
4421 ac_cv_use_help='wxUSE_HELP=yes'
4422 else
4423 ac_cv_use_help='wxUSE_HELP=no'
4424 fi
698dcdb6 4425
10f2d63a 4426else
698dcdb6 4427
10f2d63a
VZ
4428 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
4429 if test "x$LINE" != x ; then
4430 eval "DEFAULT_$LINE"
4431 else
4432 no_cache=1
4433 fi
4434
4435 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
698dcdb6
VZ
4436
4437fi
10f2d63a
VZ
4438
4439
4440 eval "$ac_cv_use_help"
4441 if test "$no_cache" != 1; then
4442 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
4443 fi
4444
4445 if test "$wxUSE_HELP" = yes; then
698dcdb6 4446 echo "$ac_t""yes" 1>&6
10f2d63a 4447 else
698dcdb6 4448 echo "$ac_t""no" 1>&6
10f2d63a 4449 fi
698dcdb6 4450
10f2d63a 4451
29fd3c0c 4452 echo $ac_n "checking for --enable-mshtmlhelp""... $ac_c" 1>&6
69d27ff7 4453echo "configure:4454: checking for --enable-mshtmlhelp" >&5
29fd3c0c
VS
4454 no_cache=0
4455 # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
4456if test "${enable_mshtmlhelp+set}" = set; then
4457 enableval="$enable_mshtmlhelp"
4458
4459 if test "$enableval" = yes; then
4460 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
4461 else
4462 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
4463 fi
4464
4465else
4466
4467 LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
4468 if test "x$LINE" != x ; then
4469 eval "DEFAULT_$LINE"
4470 else
4471 no_cache=1
4472 fi
4473
4474 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
4475
4476fi
4477
4478
4479 eval "$ac_cv_use_mshtmlhelp"
4480 if test "$no_cache" != 1; then
4481 echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
4482 fi
4483
4484 if test "$wxUSE_MS_HTML_HELP" = yes; then
4485 echo "$ac_t""yes" 1>&6
4486 else
4487 echo "$ac_t""no" 1>&6
4488 fi
4489
4490
3379ed37 4491 echo $ac_n "checking for --enable-html""... $ac_c" 1>&6
69d27ff7 4492echo "configure:4493: checking for --enable-html" >&5
3379ed37
VZ
4493 no_cache=0
4494 # Check whether --enable-html or --disable-html was given.
4495if test "${enable_html+set}" = set; then
4496 enableval="$enable_html"
4497
4498 if test "$enableval" = yes; then
4499 ac_cv_use_html='wxUSE_HTML=yes'
4500 else
4501 ac_cv_use_html='wxUSE_HTML=no'
4502 fi
4503
4504else
4505
4506 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
4507 if test "x$LINE" != x ; then
4508 eval "DEFAULT_$LINE"
4509 else
4510 no_cache=1
4511 fi
4512
4513 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
4514
4515fi
4516
4517
4518 eval "$ac_cv_use_html"
4519 if test "$no_cache" != 1; then
4520 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
4521 fi
4522
4523 if test "$wxUSE_HTML" = yes; then
4524 echo "$ac_t""yes" 1>&6
4525 else
4526 echo "$ac_t""no" 1>&6
4527 fi
4528
4529
4530 echo $ac_n "checking for --enable-htmlhelp""... $ac_c" 1>&6
69d27ff7 4531echo "configure:4532: checking for --enable-htmlhelp" >&5
3379ed37
VZ
4532 no_cache=0
4533 # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
4534if test "${enable_htmlhelp+set}" = set; then
4535 enableval="$enable_htmlhelp"
4536
4537 if test "$enableval" = yes; then
4538 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
4539 else
4540 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
4541 fi
4542
4543else
4544
4545 LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
4546 if test "x$LINE" != x ; then
4547 eval "DEFAULT_$LINE"
4548 else
4549 no_cache=1
4550 fi
4551
4552 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
4553
4554fi
4555
4556
4557 eval "$ac_cv_use_htmlhelp"
4558 if test "$no_cache" != 1; then
4559 echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
4560 fi
4561
4562 if test "$wxUSE_WXHTML_HELP" = yes; then
4563 echo "$ac_t""yes" 1>&6
4564 else
4565 echo "$ac_t""no" 1>&6
4566 fi
4567
4568
698dcdb6 4569 echo $ac_n "checking for --enable-constraints""... $ac_c" 1>&6
69d27ff7 4570echo "configure:4571: checking for --enable-constraints" >&5
10f2d63a
VZ
4571 no_cache=0
4572 # Check whether --enable-constraints or --disable-constraints was given.
4573if test "${enable_constraints+set}" = set; then
4574 enableval="$enable_constraints"
698dcdb6 4575
10f2d63a
VZ
4576 if test "$enableval" = yes; then
4577 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
4578 else
4579 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
4580 fi
698dcdb6 4581
10f2d63a 4582else
698dcdb6 4583
10f2d63a
VZ
4584 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
4585 if test "x$LINE" != x ; then
4586 eval "DEFAULT_$LINE"
4587 else
4588 no_cache=1
4589 fi
4590
4591 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
698dcdb6
VZ
4592
4593fi
10f2d63a
VZ
4594
4595
4596 eval "$ac_cv_use_constraints"
4597 if test "$no_cache" != 1; then
4598 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
4599 fi
4600
4601 if test "$wxUSE_CONSTRAINTS" = yes; then
698dcdb6 4602 echo "$ac_t""yes" 1>&6
10f2d63a 4603 else
698dcdb6 4604 echo "$ac_t""no" 1>&6
10f2d63a 4605 fi
698dcdb6 4606
10f2d63a 4607
698dcdb6 4608 echo $ac_n "checking for --enable-printarch""... $ac_c" 1>&6
69d27ff7 4609echo "configure:4610: checking for --enable-printarch" >&5
10f2d63a
VZ
4610 no_cache=0
4611 # Check whether --enable-printarch or --disable-printarch was given.
4612if test "${enable_printarch+set}" = set; then
4613 enableval="$enable_printarch"
698dcdb6 4614
10f2d63a
VZ
4615 if test "$enableval" = yes; then
4616 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
4617 else
4618 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
4619 fi
698dcdb6 4620
10f2d63a 4621else
698dcdb6 4622
10f2d63a
VZ
4623 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
4624 if test "x$LINE" != x ; then
4625 eval "DEFAULT_$LINE"
4626 else
4627 no_cache=1
4628 fi
4629
4630 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
698dcdb6
VZ
4631
4632fi
10f2d63a
VZ
4633
4634
4635 eval "$ac_cv_use_printarch"
4636 if test "$no_cache" != 1; then
4637 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
4638 fi
4639
4640 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
698dcdb6 4641 echo "$ac_t""yes" 1>&6
10f2d63a 4642 else
698dcdb6 4643 echo "$ac_t""no" 1>&6
10f2d63a 4644 fi
698dcdb6 4645
10f2d63a 4646
698dcdb6 4647 echo $ac_n "checking for --enable-mdi""... $ac_c" 1>&6
69d27ff7 4648echo "configure:4649: checking for --enable-mdi" >&5
10f2d63a
VZ
4649 no_cache=0
4650 # Check whether --enable-mdi or --disable-mdi was given.
4651if test "${enable_mdi+set}" = set; then
4652 enableval="$enable_mdi"
698dcdb6 4653
10f2d63a
VZ
4654 if test "$enableval" = yes; then
4655 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes'
4656 else
4657 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no'
4658 fi
698dcdb6 4659
10f2d63a 4660else
698dcdb6 4661
10f2d63a
VZ
4662 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
4663 if test "x$LINE" != x ; then
4664 eval "DEFAULT_$LINE"
4665 else
4666 no_cache=1
4667 fi
4668
4669 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
698dcdb6
VZ
4670
4671fi
10f2d63a
VZ
4672
4673
4674 eval "$ac_cv_use_mdi"
4675 if test "$no_cache" != 1; then
4676 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
4677 fi
4678
4679 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
698dcdb6 4680 echo "$ac_t""yes" 1>&6
10f2d63a 4681 else
698dcdb6 4682 echo "$ac_t""no" 1>&6
10f2d63a 4683 fi
698dcdb6
VZ
4684
4685
1e6feb95 4686 echo $ac_n "checking for --enable-loggui""... $ac_c" 1>&6
69d27ff7 4687echo "configure:4688: checking for --enable-loggui" >&5
1e6feb95
VZ
4688 no_cache=0
4689 # Check whether --enable-loggui or --disable-loggui was given.
4690if test "${enable_loggui+set}" = set; then
4691 enableval="$enable_loggui"
4692
4693 if test "$enableval" = yes; then
4694 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
4695 else
4696 ac_cv_use_loggui='wxUSE_LOGGUI=no'
4697 fi
4698
4699else
4700
4701 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
4702 if test "x$LINE" != x ; then
4703 eval "DEFAULT_$LINE"
4704 else
4705 no_cache=1
4706 fi
4707
4708 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
4709
4710fi
4711
4712
4713 eval "$ac_cv_use_loggui"
4714 if test "$no_cache" != 1; then
4715 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
4716 fi
4717
4718 if test "$wxUSE_LOGGUI" = yes; then
4719 echo "$ac_t""yes" 1>&6
4720 else
4721 echo "$ac_t""no" 1>&6
4722 fi
4723
4724
4725 echo $ac_n "checking for --enable-logwin""... $ac_c" 1>&6
69d27ff7 4726echo "configure:4727: checking for --enable-logwin" >&5
1e6feb95
VZ
4727 no_cache=0
4728 # Check whether --enable-logwin or --disable-logwin was given.
4729if test "${enable_logwin+set}" = set; then
4730 enableval="$enable_logwin"
4731
4732 if test "$enableval" = yes; then
4733 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
4734 else
4735 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
4736 fi
4737
4738else
4739
4740 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
4741 if test "x$LINE" != x ; then
4742 eval "DEFAULT_$LINE"
4743 else
4744 no_cache=1
4745 fi
4746
4747 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
4748
4749fi
4750
4751
4752 eval "$ac_cv_use_logwin"
4753 if test "$no_cache" != 1; then
4754 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
4755 fi
4756
4757 if test "$wxUSE_LOGWINDOW" = yes; then
4758 echo "$ac_t""yes" 1>&6
4759 else
4760 echo "$ac_t""no" 1>&6
4761 fi
4762
4763
69d27ff7
MB
4764 echo $ac_n "checking for --enable-logdialog""... $ac_c" 1>&6
4765echo "configure:4766: checking for --enable-logdialog" >&5
4766 no_cache=0
4767 # Check whether --enable-logdialog or --disable-logdialog was given.
4768if test "${enable_logdialog+set}" = set; then
4769 enableval="$enable_logdialog"
4770
4771 if test "$enableval" = yes; then
4772 ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
4773 else
4774 ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
4775 fi
4776
4777else
4778
4779 LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}`
4780 if test "x$LINE" != x ; then
4781 eval "DEFAULT_$LINE"
4782 else
4783 no_cache=1
4784 fi
4785
4786 ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
4787
4788fi
4789
4790
4791 eval "$ac_cv_use_logdialog"
4792 if test "$no_cache" != 1; then
4793 echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
4794 fi
4795
4796 if test "$wxUSE_LOGDIALOG" = yes; then
4797 echo "$ac_t""yes" 1>&6
4798 else
4799 echo "$ac_t""no" 1>&6
4800 fi
4801
4802
10f2d63a 4803
698dcdb6 4804 echo $ac_n "checking for --enable-postscript""... $ac_c" 1>&6
69d27ff7 4805echo "configure:4806: checking for --enable-postscript" >&5
10f2d63a
VZ
4806 no_cache=0
4807 # Check whether --enable-postscript or --disable-postscript was given.
4808if test "${enable_postscript+set}" = set; then
4809 enableval="$enable_postscript"
698dcdb6 4810
10f2d63a
VZ
4811 if test "$enableval" = yes; then
4812 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
4813 else
4814 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
4815 fi
698dcdb6 4816
10f2d63a 4817else
698dcdb6 4818
10f2d63a
VZ
4819 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
4820 if test "x$LINE" != x ; then
4821 eval "DEFAULT_$LINE"
4822 else
4823 no_cache=1
4824 fi
4825
4826 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
698dcdb6
VZ
4827
4828fi
10f2d63a
VZ
4829
4830
4831 eval "$ac_cv_use_postscript"
4832 if test "$no_cache" != 1; then
4833 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
4834 fi
4835
4836 if test "$wxUSE_POSTSCRIPT" = yes; then
698dcdb6 4837 echo "$ac_t""yes" 1>&6
10f2d63a 4838 else
698dcdb6 4839 echo "$ac_t""no" 1>&6
10f2d63a 4840 fi
698dcdb6
VZ
4841
4842
4843
10f2d63a 4844
1e6feb95 4845
698dcdb6 4846 echo $ac_n "checking for --enable-prologio""... $ac_c" 1>&6
69d27ff7 4847echo "configure:4848: checking for --enable-prologio" >&5
10f2d63a
VZ
4848 no_cache=0
4849 # Check whether --enable-prologio or --disable-prologio was given.
4850if test "${enable_prologio+set}" = set; then
4851 enableval="$enable_prologio"
698dcdb6 4852
10f2d63a
VZ
4853 if test "$enableval" = yes; then
4854 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
4855 else
4856 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
4857 fi
698dcdb6 4858
10f2d63a 4859else
698dcdb6 4860
10f2d63a
VZ
4861 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
4862 if test "x$LINE" != x ; then
4863 eval "DEFAULT_$LINE"
4864 else
4865 no_cache=1
4866 fi
4867
4868 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
698dcdb6
VZ
4869
4870fi
10f2d63a
VZ
4871
4872
4873 eval "$ac_cv_use_prologio"
4874 if test "$no_cache" != 1; then
4875 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
4876 fi
4877
4878 if test "$wxUSE_PROLOGIO" = yes; then
698dcdb6 4879 echo "$ac_t""yes" 1>&6
10f2d63a 4880 else
698dcdb6 4881 echo "$ac_t""no" 1>&6
10f2d63a 4882 fi
698dcdb6 4883
10f2d63a 4884
698dcdb6 4885 echo $ac_n "checking for --enable-resources""... $ac_c" 1>&6
69d27ff7 4886echo "configure:4887: checking for --enable-resources" >&5
10f2d63a
VZ
4887 no_cache=0
4888 # Check whether --enable-resources or --disable-resources was given.
4889if test "${enable_resources+set}" = set; then
4890 enableval="$enable_resources"
698dcdb6 4891
10f2d63a
VZ
4892 if test "$enableval" = yes; then
4893 ac_cv_use_resources='wxUSE_RESOURCES=yes'
4894 else
4895 ac_cv_use_resources='wxUSE_RESOURCES=no'
4896 fi
698dcdb6 4897
10f2d63a 4898else
698dcdb6 4899
10f2d63a
VZ
4900 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
4901 if test "x$LINE" != x ; then
4902 eval "DEFAULT_$LINE"
4903 else
4904 no_cache=1
4905 fi
4906
4907 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
698dcdb6
VZ
4908
4909fi
10f2d63a
VZ
4910
4911
4912 eval "$ac_cv_use_resources"
4913 if test "$no_cache" != 1; then
4914 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
4915 fi
4916
4917 if test "$wxUSE_RESOURCES" = yes; then
698dcdb6 4918 echo "$ac_t""yes" 1>&6
10f2d63a 4919 else
698dcdb6 4920 echo "$ac_t""no" 1>&6
10f2d63a 4921 fi
698dcdb6 4922
10f2d63a 4923
698dcdb6
VZ
4924
4925 echo $ac_n "checking for --enable-xresources""... $ac_c" 1>&6
69d27ff7 4926echo "configure:4927: checking for --enable-xresources" >&5
10f2d63a
VZ
4927 no_cache=0
4928 # Check whether --enable-xresources or --disable-xresources was given.
4929if test "${enable_xresources+set}" = set; then
4930 enableval="$enable_xresources"
698dcdb6 4931
10f2d63a
VZ
4932 if test "$enableval" = yes; then
4933 ac_cv_use_xresources='wxUSE_X_RESOURCES=yes'
4934 else
4935 ac_cv_use_xresources='wxUSE_X_RESOURCES=no'
4936 fi
698dcdb6 4937
10f2d63a 4938else
698dcdb6 4939
10f2d63a
VZ
4940 LINE=`grep "wxUSE_X_RESOURCES" ${wx_arg_cache_file}`
4941 if test "x$LINE" != x ; then
4942 eval "DEFAULT_$LINE"
4943 else
4944 no_cache=1
4945 fi
4946
4947 ac_cv_use_xresources='wxUSE_X_RESOURCES='$DEFAULT_wxUSE_X_RESOURCES
698dcdb6
VZ
4948
4949fi
10f2d63a
VZ
4950
4951
4952 eval "$ac_cv_use_xresources"
4953 if test "$no_cache" != 1; then
4954 echo $ac_cv_use_xresources >> ${wx_arg_cache_file}.tmp
4955 fi
4956
4957 if test "$wxUSE_X_RESOURCES" = yes; then
698dcdb6 4958 echo "$ac_t""yes" 1>&6
10f2d63a 4959 else
698dcdb6 4960 echo "$ac_t""no" 1>&6
10f2d63a 4961 fi
698dcdb6
VZ
4962
4963
10f2d63a 4964
698dcdb6
VZ
4965
4966 echo $ac_n "checking for --enable-clipboard""... $ac_c" 1>&6
69d27ff7 4967echo "configure:4968: checking for --enable-clipboard" >&5
10f2d63a
VZ
4968 no_cache=0
4969 # Check whether --enable-clipboard or --disable-clipboard was given.
4970if test "${enable_clipboard+set}" = set; then
4971 enableval="$enable_clipboard"
698dcdb6 4972
10f2d63a
VZ
4973 if test "$enableval" = yes; then
4974 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
4975 else
4976 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
4977 fi
698dcdb6 4978
10f2d63a 4979else
698dcdb6 4980
10f2d63a
VZ
4981 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
4982 if test "x$LINE" != x ; then
4983 eval "DEFAULT_$LINE"
4984 else
4985 no_cache=1
4986 fi
4987
4988 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
698dcdb6
VZ
4989
4990fi
10f2d63a
VZ
4991
4992
4993 eval "$ac_cv_use_clipboard"
4994 if test "$no_cache" != 1; then
4995 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
4996 fi
4997
4998 if test "$wxUSE_CLIPBOARD" = yes; then
698dcdb6 4999 echo "$ac_t""yes" 1>&6
10f2d63a 5000 else
698dcdb6 5001 echo "$ac_t""no" 1>&6
10f2d63a 5002 fi
698dcdb6 5003
10f2d63a 5004
698dcdb6 5005 echo $ac_n "checking for --enable-dnd""... $ac_c" 1>&6
69d27ff7 5006echo "configure:5007: checking for --enable-dnd" >&5
10f2d63a
VZ
5007 no_cache=0
5008 # Check whether --enable-dnd or --disable-dnd was given.
5009if test "${enable_dnd+set}" = set; then
5010 enableval="$enable_dnd"
698dcdb6 5011
10f2d63a
VZ
5012 if test "$enableval" = yes; then
5013 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
5014 else
5015 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
5016 fi
698dcdb6 5017
10f2d63a 5018else
698dcdb6 5019
10f2d63a
VZ
5020 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
5021 if test "x$LINE" != x ; then
5022 eval "DEFAULT_$LINE"
5023 else
5024 no_cache=1
5025 fi
5026
5027 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
698dcdb6
VZ
5028
5029fi
10f2d63a
VZ
5030
5031
5032 eval "$ac_cv_use_dnd"
5033 if test "$no_cache" != 1; then
5034 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
5035 fi
5036
5037 if test "$wxUSE_DRAG_AND_DROP" = yes; then
698dcdb6 5038 echo "$ac_t""yes" 1>&6
10f2d63a 5039 else
698dcdb6 5040 echo "$ac_t""no" 1>&6
10f2d63a 5041 fi
698dcdb6 5042
10f2d63a 5043
698dcdb6 5044 echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6
69d27ff7 5045echo "configure:5046: checking for --enable-metafile" >&5
b64f0a5f
RL
5046 no_cache=0
5047 # Check whether --enable-metafile or --disable-metafile was given.
5048if test "${enable_metafile+set}" = set; then
5049 enableval="$enable_metafile"
698dcdb6 5050
b64f0a5f
RL
5051 if test "$enableval" = yes; then
5052 ac_cv_use_metafile='wxUSE_METAFILE=yes'
5053 else
5054 ac_cv_use_metafile='wxUSE_METAFILE=no'
5055 fi
698dcdb6 5056
b64f0a5f 5057else
698dcdb6 5058
b64f0a5f
RL
5059 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
5060 if test "x$LINE" != x ; then
5061 eval "DEFAULT_$LINE"
5062 else
5063 no_cache=1
5064 fi
5065
5066 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
698dcdb6
VZ
5067
5068fi
b64f0a5f
RL
5069
5070
5071 eval "$ac_cv_use_metafile"
5072 if test "$no_cache" != 1; then
5073 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
5074 fi
5075
5076 if test "$wxUSE_METAFILE" = yes; then
698dcdb6 5077 echo "$ac_t""yes" 1>&6
b64f0a5f 5078 else
698dcdb6 5079 echo "$ac_t""no" 1>&6
b64f0a5f 5080 fi
698dcdb6
VZ
5081
5082
10f2d63a 5083
24176f2c 5084 echo $ac_n "checking for --enable-treelayout""... $ac_c" 1>&6
69d27ff7 5085echo "configure:5086: checking for --enable-treelayout" >&5
10f2d63a 5086 no_cache=0
24176f2c
GD
5087 # Check whether --enable-treelayout or --disable-treelayout was given.
5088if test "${enable_treelayout+set}" = set; then
5089 enableval="$enable_treelayout"
698dcdb6 5090
10f2d63a 5091 if test "$enableval" = yes; then
24176f2c 5092 ac_cv_use_treelayout='wxUSE_TREELAYOUT=yes'
10f2d63a 5093 else
24176f2c 5094 ac_cv_use_treelayout='wxUSE_TREELAYOUT=no'
10f2d63a 5095 fi
698dcdb6 5096
10f2d63a 5097else
698dcdb6 5098
24176f2c 5099 LINE=`grep "wxUSE_TREELAYOUT" ${wx_arg_cache_file}`
10f2d63a
VZ
5100 if test "x$LINE" != x ; then
5101 eval "DEFAULT_$LINE"
5102 else
5103 no_cache=1
5104 fi
5105
24176f2c 5106 ac_cv_use_treelayout='wxUSE_TREELAYOUT='$DEFAULT_wxUSE_TREELAYOUT
698dcdb6
VZ
5107
5108fi
10f2d63a
VZ
5109
5110
24176f2c 5111 eval "$ac_cv_use_treelayout"
10f2d63a 5112 if test "$no_cache" != 1; then
24176f2c 5113 echo $ac_cv_use_treelayout >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
5114 fi
5115
24176f2c 5116 if test "$wxUSE_TREELAYOUT" = yes; then
698dcdb6 5117 echo "$ac_t""yes" 1>&6
10f2d63a 5118 else
698dcdb6 5119 echo "$ac_t""no" 1>&6
10f2d63a 5120 fi
698dcdb6 5121
10f2d63a 5122
698dcdb6
VZ
5123
5124
5125 echo $ac_n "checking for --enable-controls""... $ac_c" 1>&6
69d27ff7 5126echo "configure:5127: checking for --enable-controls" >&5
10f2d63a
VZ
5127 no_cache=0
5128 # Check whether --enable-controls or --disable-controls was given.
5129if test "${enable_controls+set}" = set; then
5130 enableval="$enable_controls"
698dcdb6 5131
10f2d63a
VZ
5132 if test "$enableval" = yes; then
5133 ac_cv_use_controls='wxUSE_CONTROLS=yes'
5134 else
5135 ac_cv_use_controls='wxUSE_CONTROLS=no'
5136 fi
698dcdb6 5137
10f2d63a 5138else
698dcdb6 5139
10f2d63a
VZ
5140 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
5141 if test "x$LINE" != x ; then
5142 eval "DEFAULT_$LINE"
5143 else
5144 no_cache=1
5145 fi
5146
5147 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
698dcdb6
VZ
5148
5149fi
10f2d63a
VZ
5150
5151
5152 eval "$ac_cv_use_controls"
5153 if test "$no_cache" != 1; then
5154 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
5155 fi
5156
5157 if test "$wxUSE_CONTROLS" = yes; then
698dcdb6 5158 echo "$ac_t""yes" 1>&6
10f2d63a 5159 else
698dcdb6 5160 echo "$ac_t""no" 1>&6
10f2d63a 5161 fi
698dcdb6 5162
10f2d63a
VZ
5163
5164if test "$wxUSE_CONTROLS" = "yes"; then
5165 DEFAULT_wxUSE_ACCEL=yes
1e6feb95
VZ
5166 DEFAULT_wxUSE_BMPBUTTON=yes
5167 DEFAULT_wxUSE_BUTTON=yes
5168 DEFAULT_wxUSE_CALCTRL=no
10f2d63a
VZ
5169 DEFAULT_wxUSE_CARET=yes
5170 DEFAULT_wxUSE_COMBOBOX=yes
10f2d63a
VZ
5171 DEFAULT_wxUSE_CHECKBOX=yes
5172 DEFAULT_wxUSE_CHECKLISTBOX=yes
5173 DEFAULT_wxUSE_CHOICE=yes
5174 DEFAULT_wxUSE_GAUGE=yes
5175 DEFAULT_wxUSE_GRID=yes
cc977e5f 5176 DEFAULT_wxUSE_NEW_GRID=yes
10f2d63a
VZ
5177 DEFAULT_wxUSE_IMAGLIST=yes
5178 DEFAULT_wxUSE_LISTBOX=yes
5179 DEFAULT_wxUSE_LISTCTRL=yes
5180 DEFAULT_wxUSE_NOTEBOOK=yes
24176f2c 5181 DEFAULT_wxUSE_PROPSHEET=yes
10f2d63a
VZ
5182 DEFAULT_wxUSE_RADIOBOX=yes
5183 DEFAULT_wxUSE_RADIOBTN=yes
5184 DEFAULT_wxUSE_SASH=yes
5185 DEFAULT_wxUSE_SCROLLBAR=yes
5186 DEFAULT_wxUSE_SLIDER=yes
5187 DEFAULT_wxUSE_SPINBTN=yes
56cfaa52 5188 DEFAULT_wxUSE_SPINCTRL=yes
10f2d63a
VZ
5189 DEFAULT_wxUSE_SPLITTER=yes
5190 DEFAULT_wxUSE_STATBMP=yes
5191 DEFAULT_wxUSE_STATBOX=yes
5192 DEFAULT_wxUSE_STATLINE=yes
5193 DEFAULT_wxUSE_STATUSBAR=yes
5194 DEFAULT_wxUSE_TAB_DIALOG=yes
1db8dc4a 5195 DEFAULT_wxUSE_TOGGLEBTN=yes
10f2d63a 5196 DEFAULT_wxUSE_TOOLBAR=yes
360d6699
VZ
5197 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
5198 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
10f2d63a
VZ
5199 DEFAULT_wxUSE_TOOLTIPS=yes
5200 DEFAULT_wxUSE_TREECTRL=yes
9f41d601 5201 DEFAULT_wxUSE_POPUPWIN=yes
10f2d63a
VZ
5202elif test "$wxUSE_CONTROLS" = "no"; then
5203 DEFAULT_wxUSE_ACCEL=no
1e6feb95
VZ
5204 DEFAULT_wxUSE_BMPBUTTON=no
5205 DEFAULT_wxUSE_BUTTON=no
5206 DEFAULT_wxUSE_CALCTRL=no
10f2d63a
VZ
5207 DEFAULT_wxUSE_CARET=no
5208 DEFAULT_wxUSE_COMBOBOX=no
10f2d63a
VZ
5209 DEFAULT_wxUSE_CHECKBOX=no
5210 DEFAULT_wxUSE_CHECKLISTBOX=no
5211 DEFAULT_wxUSE_CHOICE=no
5212 DEFAULT_wxUSE_GAUGE=no
5213 DEFAULT_wxUSE_GRID=no
5214 DEFAULT_wxUSE_NEW_GRID=no
5215 DEFAULT_wxUSE_IMAGLIST=no
5216 DEFAULT_wxUSE_LISTBOX=no
5217 DEFAULT_wxUSE_LISTCTRL=no
5218 DEFAULT_wxUSE_NOTEBOOK=no
24176f2c 5219 DEFAULT_wxUSE_PROPSHEET=no
10f2d63a
VZ
5220 DEFAULT_wxUSE_RADIOBOX=no
5221 DEFAULT_wxUSE_RADIOBTN=no
5222 DEFAULT_wxUSE_SASH=no
5223 DEFAULT_wxUSE_SCROLLBAR=no
5224 DEFAULT_wxUSE_SLIDER=no
5225 DEFAULT_wxUSE_SPINBTN=no
56cfaa52 5226 DEFAULT_wxUSE_SPINCTRL=no
10f2d63a
VZ
5227 DEFAULT_wxUSE_SPLITTER=no
5228 DEFAULT_wxUSE_STATBMP=no
5229 DEFAULT_wxUSE_STATBOX=no
5230 DEFAULT_wxUSE_STATLINE=no
5231 DEFAULT_wxUSE_STATUSBAR=no
5232 DEFAULT_wxUSE_TAB_DIALOG=no
1db8dc4a 5233 DEFAULT_wxUSE_TOGGLEBTN=no
10f2d63a 5234 DEFAULT_wxUSE_TOOLBAR=no
360d6699
VZ
5235 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
5236 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
10f2d63a
VZ
5237 DEFAULT_wxUSE_TOOLTIPS=no
5238 DEFAULT_wxUSE_TREECTRL=no
9f41d601 5239 DEFAULT_wxUSE_POPUPWIN=no
10f2d63a
VZ
5240fi
5241
698dcdb6
VZ
5242
5243 echo $ac_n "checking for --enable-accel""... $ac_c" 1>&6
69d27ff7 5244echo "configure:5245: checking for --enable-accel" >&5
10f2d63a
VZ
5245 no_cache=0
5246 # Check whether --enable-accel or --disable-accel was given.
5247if test "${enable_accel+set}" = set; then
5248 enableval="$enable_accel"
698dcdb6 5249
10f2d63a
VZ
5250 if test "$enableval" = yes; then
5251 ac_cv_use_accel='wxUSE_ACCEL=yes'
5252 else
5253 ac_cv_use_accel='wxUSE_ACCEL=no'
5254 fi
698dcdb6 5255
10f2d63a 5256else
698dcdb6 5257
10f2d63a
VZ
5258 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
5259 if test "x$LINE" != x ; then
5260 eval "DEFAULT_$LINE"
5261 else
5262 no_cache=1
5263 fi
5264
5265 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
698dcdb6
VZ
5266
5267fi
10f2d63a
VZ
5268
5269
5270 eval "$ac_cv_use_accel"
5271 if test "$no_cache" != 1; then
5272 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
5273 fi
5274
5275 if test "$wxUSE_ACCEL" = yes; then
698dcdb6 5276 echo "$ac_t""yes" 1>&6
10f2d63a 5277 else
698dcdb6 5278 echo "$ac_t""no" 1>&6
10f2d63a 5279 fi
698dcdb6 5280
10f2d63a 5281
1e6feb95 5282 echo $ac_n "checking for --enable-button""... $ac_c" 1>&6
69d27ff7 5283echo "configure:5284: checking for --enable-button" >&5
10f2d63a 5284 no_cache=0
1e6feb95
VZ
5285 # Check whether --enable-button or --disable-button was given.
5286if test "${enable_button+set}" = set; then
5287 enableval="$enable_button"
698dcdb6 5288
10f2d63a 5289 if test "$enableval" = yes; then
1e6feb95 5290 ac_cv_use_button='wxUSE_BUTTON=yes'
10f2d63a 5291 else
1e6feb95 5292 ac_cv_use_button='wxUSE_BUTTON=no'
10f2d63a 5293 fi
698dcdb6 5294
10f2d63a 5295else
698dcdb6 5296
1e6feb95 5297 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
10f2d63a
VZ
5298 if test "x$LINE" != x ; then
5299 eval "DEFAULT_$LINE"
5300 else
5301 no_cache=1
5302 fi
5303
1e6feb95 5304 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
698dcdb6
VZ
5305
5306fi
10f2d63a
VZ
5307
5308
1e6feb95 5309 eval "$ac_cv_use_button"
10f2d63a 5310 if test "$no_cache" != 1; then
1e6feb95 5311 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
5312 fi
5313
1e6feb95 5314 if test "$wxUSE_BUTTON" = yes; then
698dcdb6 5315 echo "$ac_t""yes" 1>&6
10f2d63a 5316 else
698dcdb6 5317 echo "$ac_t""no" 1>&6
10f2d63a 5318 fi
698dcdb6 5319
10f2d63a 5320
698dcdb6 5321 echo $ac_n "checking for --enable-bmpbutton""... $ac_c" 1>&6
69d27ff7 5322echo "configure:5323: checking for --enable-bmpbutton" >&5
10f2d63a
VZ
5323 no_cache=0
5324 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
5325if test "${enable_bmpbutton+set}" = set; then
5326 enableval="$enable_bmpbutton"
698dcdb6 5327
10f2d63a
VZ
5328 if test "$enableval" = yes; then
5329 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
5330 else
5331 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
5332 fi
698dcdb6 5333
10f2d63a 5334else
698dcdb6 5335
10f2d63a
VZ
5336 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
5337 if test "x$LINE" != x ; then
5338 eval "DEFAULT_$LINE"
5339 else
5340 no_cache=1
5341 fi
5342
5343 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
698dcdb6
VZ
5344
5345fi
10f2d63a
VZ
5346
5347
5348 eval "$ac_cv_use_bmpbutton"
5349 if test "$no_cache" != 1; then
5350 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
5351 fi
5352
5353 if test "$wxUSE_BMPBUTTON" = yes; then
698dcdb6 5354 echo "$ac_t""yes" 1>&6
10f2d63a 5355 else
698dcdb6 5356 echo "$ac_t""no" 1>&6
10f2d63a 5357 fi
698dcdb6 5358
10f2d63a 5359
1e6feb95 5360 echo $ac_n "checking for --enable-calendar""... $ac_c" 1>&6
69d27ff7 5361echo "configure:5362: checking for --enable-calendar" >&5
1e6feb95
VZ
5362 no_cache=0
5363 # Check whether --enable-calendar or --disable-calendar was given.
5364if test "${enable_calendar+set}" = set; then
5365 enableval="$enable_calendar"
5366
5367 if test "$enableval" = yes; then
5368 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
5369 else
5370 ac_cv_use_calendar='wxUSE_CALCTRL=no'
5371 fi
5372
5373else
5374
5375 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
5376 if test "x$LINE" != x ; then
5377 eval "DEFAULT_$LINE"
5378 else
5379 no_cache=1
5380 fi
5381
5382 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
5383
5384fi
5385
5386
5387 eval "$ac_cv_use_calendar"
5388 if test "$no_cache" != 1; then
5389 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
5390 fi
5391
5392 if test "$wxUSE_CALCTRL" = yes; then
5393 echo "$ac_t""yes" 1>&6
5394 else
5395 echo "$ac_t""no" 1>&6
5396 fi
5397
5398
5399 echo $ac_n "checking for --enable-caret""... $ac_c" 1>&6
69d27ff7 5400echo "configure:5401: checking for --enable-caret" >&5
1e6feb95
VZ
5401 no_cache=0
5402 # Check whether --enable-caret or --disable-caret was given.
5403if test "${enable_caret+set}" = set; then
5404 enableval="$enable_caret"
5405
5406 if test "$enableval" = yes; then
5407 ac_cv_use_caret='wxUSE_CARET=yes'
5408 else
5409 ac_cv_use_caret='wxUSE_CARET=no'
5410 fi
5411
5412else
5413
5414 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
5415 if test "x$LINE" != x ; then
5416 eval "DEFAULT_$LINE"
5417 else
5418 no_cache=1
5419 fi
5420
5421 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
5422
5423fi
5424
5425
5426 eval "$ac_cv_use_caret"
5427 if test "$no_cache" != 1; then
5428 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
5429 fi
5430
5431 if test "$wxUSE_CARET" = yes; then
5432 echo "$ac_t""yes" 1>&6
5433 else
5434 echo "$ac_t""no" 1>&6
5435 fi
5436
5437
698dcdb6 5438 echo $ac_n "checking for --enable-checkbox""... $ac_c" 1>&6
69d27ff7 5439echo "configure:5440: checking for --enable-checkbox" >&5
10f2d63a
VZ
5440 no_cache=0
5441 # Check whether --enable-checkbox or --disable-checkbox was given.
5442if test "${enable_checkbox+set}" = set; then
5443 enableval="$enable_checkbox"
698dcdb6 5444
10f2d63a
VZ
5445 if test "$enableval" = yes; then
5446 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
5447 else
5448 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
5449 fi
698dcdb6 5450
10f2d63a 5451else
698dcdb6 5452
10f2d63a
VZ
5453 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
5454 if test "x$LINE" != x ; then
5455 eval "DEFAULT_$LINE"
5456 else
5457 no_cache=1
5458 fi
5459
5460 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
698dcdb6
VZ
5461
5462fi
10f2d63a
VZ
5463
5464
5465 eval "$ac_cv_use_checkbox"
5466 if test "$no_cache" != 1; then
5467 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
5468 fi
5469
5470 if test "$wxUSE_CHECKBOX" = yes; then
698dcdb6 5471 echo "$ac_t""yes" 1>&6
10f2d63a 5472 else
698dcdb6 5473 echo "$ac_t""no" 1>&6
10f2d63a 5474 fi
698dcdb6 5475
10f2d63a 5476
698dcdb6 5477 echo $ac_n "checking for --enable-checklst""... $ac_c" 1>&6
69d27ff7 5478echo "configure:5479: checking for --enable-checklst" >&5
10f2d63a
VZ
5479 no_cache=0
5480 # Check whether --enable-checklst or --disable-checklst was given.
5481if test "${enable_checklst+set}" = set; then
5482 enableval="$enable_checklst"
698dcdb6 5483
10f2d63a
VZ
5484 if test "$enableval" = yes; then
5485 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
5486 else
5487 ac_cv_use_checklst='wxUSE_CHECKLST=no'
5488 fi
698dcdb6 5489
10f2d63a 5490else
698dcdb6 5491
10f2d63a
VZ
5492 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
5493 if test "x$LINE" != x ; then
5494 eval "DEFAULT_$LINE"
5495 else
5496 no_cache=1
5497 fi
5498
5499 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
698dcdb6
VZ
5500
5501fi
10f2d63a
VZ
5502
5503
5504 eval "$ac_cv_use_checklst"
5505 if test "$no_cache" != 1; then
5506 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
5507 fi
5508
5509 if test "$wxUSE_CHECKLST" = yes; then
698dcdb6 5510 echo "$ac_t""yes" 1>&6
10f2d63a 5511 else
698dcdb6 5512 echo "$ac_t""no" 1>&6
10f2d63a 5513 fi
698dcdb6 5514
10f2d63a 5515
698dcdb6 5516 echo $ac_n "checking for --enable-choice""... $ac_c" 1>&6
69d27ff7 5517echo "configure:5518: checking for --enable-choice" >&5
10f2d63a
VZ
5518 no_cache=0
5519 # Check whether --enable-choice or --disable-choice was given.
5520if test "${enable_choice+set}" = set; then
5521 enableval="$enable_choice"
698dcdb6 5522
10f2d63a
VZ
5523 if test "$enableval" = yes; then
5524 ac_cv_use_choice='wxUSE_CHOICE=yes'
5525 else
5526 ac_cv_use_choice='wxUSE_CHOICE=no'
5527 fi
698dcdb6 5528
10f2d63a 5529else
698dcdb6 5530
10f2d63a
VZ
5531 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
5532 if test "x$LINE" != x ; then
5533 eval "DEFAULT_$LINE"
5534 else
5535 no_cache=1
5536 fi
5537
5538 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
698dcdb6
VZ
5539
5540fi
10f2d63a
VZ
5541
5542
5543 eval "$ac_cv_use_choice"
5544 if test "$no_cache" != 1; then
5545 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
5546 fi
5547
5548 if test "$wxUSE_CHOICE" = yes; then
698dcdb6 5549 echo "$ac_t""yes" 1>&6
10f2d63a 5550 else
698dcdb6 5551 echo "$ac_t""no" 1>&6
10f2d63a 5552 fi
698dcdb6 5553
10f2d63a 5554
698dcdb6 5555 echo $ac_n "checking for --enable-combobox""... $ac_c" 1>&6
69d27ff7 5556echo "configure:5557: checking for --enable-combobox" >&5
10f2d63a
VZ
5557 no_cache=0
5558 # Check whether --enable-combobox or --disable-combobox was given.
5559if test "${enable_combobox+set}" = set; then
5560 enableval="$enable_combobox"
698dcdb6 5561
10f2d63a
VZ
5562 if test "$enableval" = yes; then
5563 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
5564 else
5565 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
5566 fi
698dcdb6 5567
10f2d63a 5568else
698dcdb6 5569
10f2d63a
VZ
5570 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
5571 if test "x$LINE" != x ; then
5572 eval "DEFAULT_$LINE"
5573 else
5574 no_cache=1
5575 fi
5576
5577 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
698dcdb6
VZ
5578
5579fi
10f2d63a
VZ
5580
5581
5582 eval "$ac_cv_use_combobox"
5583 if test "$no_cache" != 1; then
5584 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
5585 fi
5586
5587 if test "$wxUSE_COMBOBOX" = yes; then
698dcdb6 5588 echo "$ac_t""yes" 1>&6
10f2d63a 5589 else
698dcdb6 5590 echo "$ac_t""no" 1>&6
10f2d63a 5591 fi
698dcdb6 5592
10f2d63a 5593
698dcdb6 5594 echo $ac_n "checking for --enable-gauge""... $ac_c" 1>&6
69d27ff7 5595echo "configure:5596: checking for --enable-gauge" >&5
10f2d63a
VZ
5596 no_cache=0
5597 # Check whether --enable-gauge or --disable-gauge was given.
5598if test "${enable_gauge+set}" = set; then
5599 enableval="$enable_gauge"
698dcdb6 5600
10f2d63a
VZ
5601 if test "$enableval" = yes; then
5602 ac_cv_use_gauge='wxUSE_GAUGE=yes'
5603 else
5604 ac_cv_use_gauge='wxUSE_GAUGE=no'
5605 fi
698dcdb6 5606
10f2d63a 5607else
698dcdb6 5608
10f2d63a
VZ
5609 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
5610 if test "x$LINE" != x ; then
5611 eval "DEFAULT_$LINE"
5612 else
5613 no_cache=1
5614 fi
5615
5616 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
698dcdb6
VZ
5617
5618fi
10f2d63a
VZ
5619
5620
5621 eval "$ac_cv_use_gauge"
5622 if test "$no_cache" != 1; then
5623 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
5624 fi
5625
5626 if test "$wxUSE_GAUGE" = yes; then
698dcdb6 5627 echo "$ac_t""yes" 1>&6
10f2d63a 5628 else
698dcdb6 5629 echo "$ac_t""no" 1>&6
10f2d63a 5630 fi
698dcdb6 5631
10f2d63a 5632
698dcdb6 5633 echo $ac_n "checking for --enable-grid""... $ac_c" 1>&6
69d27ff7 5634echo "configure:5635: checking for --enable-grid" >&5
10f2d63a
VZ
5635 no_cache=0
5636 # Check whether --enable-grid or --disable-grid was given.
5637if test "${enable_grid+set}" = set; then
5638 enableval="$enable_grid"
698dcdb6 5639
10f2d63a
VZ
5640 if test "$enableval" = yes; then
5641 ac_cv_use_grid='wxUSE_GRID=yes'
5642 else
5643 ac_cv_use_grid='wxUSE_GRID=no'
5644 fi
698dcdb6 5645
10f2d63a 5646else
698dcdb6 5647
10f2d63a
VZ
5648 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
5649 if test "x$LINE" != x ; then
5650 eval "DEFAULT_$LINE"
5651 else
5652 no_cache=1
5653 fi
5654
5655 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
698dcdb6
VZ
5656
5657fi
10f2d63a
VZ
5658
5659
5660 eval "$ac_cv_use_grid"
5661 if test "$no_cache" != 1; then
5662 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
5663 fi
5664
5665 if test "$wxUSE_GRID" = yes; then
698dcdb6 5666 echo "$ac_t""yes" 1>&6
10f2d63a 5667 else
698dcdb6 5668 echo "$ac_t""no" 1>&6
10f2d63a 5669 fi
698dcdb6 5670
10f2d63a 5671
698dcdb6 5672 echo $ac_n "checking for --enable-newgrid""... $ac_c" 1>&6
69d27ff7 5673echo "configure:5674: checking for --enable-newgrid" >&5
10f2d63a
VZ
5674 no_cache=0
5675 # Check whether --enable-newgrid or --disable-newgrid was given.
5676if test "${enable_newgrid+set}" = set; then
5677 enableval="$enable_newgrid"
698dcdb6 5678
10f2d63a
VZ
5679 if test "$enableval" = yes; then
5680 ac_cv_use_newgrid='wxUSE_NEW_GRID=yes'
5681 else
5682 ac_cv_use_newgrid='wxUSE_NEW_GRID=no'
5683 fi
698dcdb6 5684
10f2d63a 5685else
698dcdb6 5686
10f2d63a
VZ
5687 LINE=`grep "wxUSE_NEW_GRID" ${wx_arg_cache_file}`
5688 if test "x$LINE" != x ; then
5689 eval "DEFAULT_$LINE"
5690 else
5691 no_cache=1
5692 fi
5693
5694 ac_cv_use_newgrid='wxUSE_NEW_GRID='$DEFAULT_wxUSE_NEW_GRID
698dcdb6
VZ
5695
5696fi
10f2d63a
VZ
5697
5698
5699 eval "$ac_cv_use_newgrid"
5700 if test "$no_cache" != 1; then
5701 echo $ac_cv_use_newgrid >> ${wx_arg_cache_file}.tmp
5702 fi
5703
5704 if test "$wxUSE_NEW_GRID" = yes; then
698dcdb6 5705 echo "$ac_t""yes" 1>&6
10f2d63a 5706 else
698dcdb6 5707 echo "$ac_t""no" 1>&6
10f2d63a 5708 fi
698dcdb6 5709
10f2d63a 5710
698dcdb6 5711 echo $ac_n "checking for --enable-imaglist""... $ac_c" 1>&6
69d27ff7 5712echo "configure:5713: checking for --enable-imaglist" >&5
10f2d63a
VZ
5713 no_cache=0
5714 # Check whether --enable-imaglist or --disable-imaglist was given.
5715if test "${enable_imaglist+set}" = set; then
5716 enableval="$enable_imaglist"
698dcdb6 5717
10f2d63a
VZ
5718 if test "$enableval" = yes; then
5719 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
5720 else
5721 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
5722 fi
698dcdb6 5723
10f2d63a 5724else
698dcdb6 5725
10f2d63a
VZ
5726 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
5727 if test "x$LINE" != x ; then
5728 eval "DEFAULT_$LINE"
5729 else
5730 no_cache=1
5731 fi
5732
5733 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
698dcdb6
VZ
5734
5735fi
10f2d63a
VZ
5736
5737
5738 eval "$ac_cv_use_imaglist"
5739 if test "$no_cache" != 1; then
5740 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
5741 fi
5742
5743 if test "$wxUSE_IMAGLIST" = yes; then
698dcdb6 5744 echo "$ac_t""yes" 1>&6
10f2d63a 5745 else
698dcdb6 5746 echo "$ac_t""no" 1>&6
10f2d63a 5747 fi
698dcdb6 5748
10f2d63a 5749
698dcdb6 5750 echo $ac_n "checking for --enable-listbox""... $ac_c" 1>&6
69d27ff7 5751echo "configure:5752: checking for --enable-listbox" >&5
10f2d63a
VZ
5752 no_cache=0
5753 # Check whether --enable-listbox or --disable-listbox was given.
5754if test "${enable_listbox+set}" = set; then
5755 enableval="$enable_listbox"
698dcdb6 5756
10f2d63a
VZ
5757 if test "$enableval" = yes; then
5758 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
5759 else
5760 ac_cv_use_listbox='wxUSE_LISTBOX=no'
5761 fi
698dcdb6 5762
10f2d63a 5763else
698dcdb6 5764
10f2d63a
VZ
5765 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
5766 if test "x$LINE" != x ; then
5767 eval "DEFAULT_$LINE"
5768 else
5769 no_cache=1
5770 fi
5771
5772 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
698dcdb6
VZ
5773
5774fi
10f2d63a
VZ
5775
5776
5777 eval "$ac_cv_use_listbox"
5778 if test "$no_cache" != 1; then
5779 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
5780 fi
5781
5782 if test "$wxUSE_LISTBOX" = yes; then
698dcdb6 5783 echo "$ac_t""yes" 1>&6
10f2d63a 5784 else
698dcdb6 5785 echo "$ac_t""no" 1>&6
10f2d63a 5786 fi
698dcdb6 5787
10f2d63a 5788
698dcdb6 5789 echo $ac_n "checking for --enable-listctrl""... $ac_c" 1>&6
69d27ff7 5790echo "configure:5791: checking for --enable-listctrl" >&5
10f2d63a
VZ
5791 no_cache=0
5792 # Check whether --enable-listctrl or --disable-listctrl was given.
5793if test "${enable_listctrl+set}" = set; then
5794 enableval="$enable_listctrl"
698dcdb6 5795
10f2d63a
VZ
5796 if test "$enableval" = yes; then
5797 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
5798 else
5799 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
5800 fi
698dcdb6 5801
10f2d63a 5802else
698dcdb6 5803
10f2d63a
VZ
5804 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
5805 if test "x$LINE" != x ; then
5806 eval "DEFAULT_$LINE"
5807 else
5808 no_cache=1
5809 fi
5810
5811 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
698dcdb6
VZ
5812
5813fi
10f2d63a
VZ
5814
5815
5816 eval "$ac_cv_use_listctrl"
5817 if test "$no_cache" != 1; then
5818 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
5819 fi
5820
5821 if test "$wxUSE_LISTCTRL" = yes; then
698dcdb6 5822 echo "$ac_t""yes" 1>&6
10f2d63a 5823 else
698dcdb6 5824 echo "$ac_t""no" 1>&6
10f2d63a 5825 fi
698dcdb6 5826
10f2d63a 5827
698dcdb6 5828 echo $ac_n "checking for --enable-notebook""... $ac_c" 1>&6
69d27ff7 5829echo "configure:5830: checking for --enable-notebook" >&5
10f2d63a
VZ
5830 no_cache=0
5831 # Check whether --enable-notebook or --disable-notebook was given.
5832if test "${enable_notebook+set}" = set; then
5833 enableval="$enable_notebook"
698dcdb6 5834
10f2d63a
VZ
5835 if test "$enableval" = yes; then
5836 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
5837 else
5838 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
5839 fi
698dcdb6 5840
10f2d63a 5841else
698dcdb6 5842
10f2d63a
VZ
5843 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
5844 if test "x$LINE" != x ; then
5845 eval "DEFAULT_$LINE"
5846 else
5847 no_cache=1
5848 fi
5849
5850 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
698dcdb6
VZ
5851
5852fi
10f2d63a
VZ
5853
5854
5855 eval "$ac_cv_use_notebook"
5856 if test "$no_cache" != 1; then
5857 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
5858 fi
5859
5860 if test "$wxUSE_NOTEBOOK" = yes; then
698dcdb6 5861 echo "$ac_t""yes" 1>&6
10f2d63a 5862 else
698dcdb6 5863 echo "$ac_t""no" 1>&6
10f2d63a 5864 fi
698dcdb6 5865
10f2d63a 5866
24176f2c 5867 echo $ac_n "checking for --enable-propsheet""... $ac_c" 1>&6
69d27ff7 5868echo "configure:5869: checking for --enable-propsheet" >&5
24176f2c
GD
5869 no_cache=0
5870 # Check whether --enable-propsheet or --disable-propsheet was given.
5871if test "${enable_propsheet+set}" = set; then
5872 enableval="$enable_propsheet"
5873
5874 if test "$enableval" = yes; then
5875 ac_cv_use_propsheet='wxUSE_PROPSHEET=yes'
5876 else
5877 ac_cv_use_propsheet='wxUSE_PROPSHEET=no'
5878 fi
5879
5880else
5881
5882 LINE=`grep "wxUSE_PROPSHEET" ${wx_arg_cache_file}`
5883 if test "x$LINE" != x ; then
5884 eval "DEFAULT_$LINE"
5885 else
5886 no_cache=1
5887 fi
5888
5889 ac_cv_use_propsheet='wxUSE_PROPSHEET='$DEFAULT_wxUSE_PROPSHEET
5890
5891fi
5892
5893
5894 eval "$ac_cv_use_propsheet"
5895 if test "$no_cache" != 1; then
5896 echo $ac_cv_use_propsheet >> ${wx_arg_cache_file}.tmp
5897 fi
5898
5899 if test "$wxUSE_PROPSHEET" = yes; then
5900 echo "$ac_t""yes" 1>&6
5901 else
5902 echo "$ac_t""no" 1>&6
5903 fi
5904
5905
698dcdb6 5906 echo $ac_n "checking for --enable-radiobox""... $ac_c" 1>&6
69d27ff7 5907echo "configure:5908: checking for --enable-radiobox" >&5
10f2d63a
VZ
5908 no_cache=0
5909 # Check whether --enable-radiobox or --disable-radiobox was given.
5910if test "${enable_radiobox+set}" = set; then
5911 enableval="$enable_radiobox"
698dcdb6 5912
10f2d63a
VZ
5913 if test "$enableval" = yes; then
5914 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
5915 else
5916 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
5917 fi
698dcdb6 5918
10f2d63a 5919else
698dcdb6 5920
10f2d63a
VZ
5921 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
5922 if test "x$LINE" != x ; then
5923 eval "DEFAULT_$LINE"
5924 else
5925 no_cache=1
5926 fi
5927
5928 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
698dcdb6
VZ
5929
5930fi
10f2d63a
VZ
5931
5932
5933 eval "$ac_cv_use_radiobox"
5934 if test "$no_cache" != 1; then
5935 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
5936 fi
5937
5938 if test "$wxUSE_RADIOBOX" = yes; then
698dcdb6 5939 echo "$ac_t""yes" 1>&6
10f2d63a 5940 else
698dcdb6 5941 echo "$ac_t""no" 1>&6
10f2d63a 5942 fi
698dcdb6 5943
10f2d63a 5944
698dcdb6 5945 echo $ac_n "checking for --enable-radiobtn""... $ac_c" 1>&6
69d27ff7 5946echo "configure:5947: checking for --enable-radiobtn" >&5
10f2d63a
VZ
5947 no_cache=0
5948 # Check whether --enable-radiobtn or --disable-radiobtn was given.
5949if test "${enable_radiobtn+set}" = set; then
5950 enableval="$enable_radiobtn"
698dcdb6 5951
10f2d63a
VZ
5952 if test "$enableval" = yes; then
5953 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
5954 else
5955 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
5956 fi
698dcdb6 5957
10f2d63a 5958else
698dcdb6 5959
10f2d63a
VZ
5960 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
5961 if test "x$LINE" != x ; then
5962 eval "DEFAULT_$LINE"
5963 else
5964 no_cache=1
5965 fi
5966
5967 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
698dcdb6
VZ
5968
5969fi
10f2d63a
VZ
5970
5971
5972 eval "$ac_cv_use_radiobtn"
5973 if test "$no_cache" != 1; then
5974 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
5975 fi
5976
5977 if test "$wxUSE_RADIOBTN" = yes; then
698dcdb6 5978 echo "$ac_t""yes" 1>&6
10f2d63a 5979 else
698dcdb6 5980 echo "$ac_t""no" 1>&6
10f2d63a 5981 fi
698dcdb6 5982
10f2d63a 5983
698dcdb6 5984 echo $ac_n "checking for --enable-sash""... $ac_c" 1>&6
69d27ff7 5985echo "configure:5986: checking for --enable-sash" >&5
10f2d63a
VZ
5986 no_cache=0
5987 # Check whether --enable-sash or --disable-sash was given.
5988if test "${enable_sash+set}" = set; then
5989 enableval="$enable_sash"
698dcdb6 5990
10f2d63a
VZ
5991 if test "$enableval" = yes; then
5992 ac_cv_use_sash='wxUSE_SASH=yes'
5993 else
5994 ac_cv_use_sash='wxUSE_SASH=no'
5995 fi
698dcdb6 5996
10f2d63a 5997else
698dcdb6 5998
10f2d63a
VZ
5999 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
6000 if test "x$LINE" != x ; then
6001 eval "DEFAULT_$LINE"
6002 else
6003 no_cache=1
6004 fi
6005
6006 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
698dcdb6
VZ
6007
6008fi
10f2d63a
VZ
6009
6010
6011 eval "$ac_cv_use_sash"
6012 if test "$no_cache" != 1; then
6013 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
6014 fi
6015
6016 if test "$wxUSE_SASH" = yes; then
698dcdb6 6017 echo "$ac_t""yes" 1>&6
10f2d63a 6018 else
698dcdb6 6019 echo "$ac_t""no" 1>&6
10f2d63a 6020 fi
698dcdb6 6021
10f2d63a 6022
698dcdb6 6023 echo $ac_n "checking for --enable-scrollbar""... $ac_c" 1>&6
69d27ff7 6024echo "configure:6025: checking for --enable-scrollbar" >&5
10f2d63a
VZ
6025 no_cache=0
6026 # Check whether --enable-scrollbar or --disable-scrollbar was given.
6027if test "${enable_scrollbar+set}" = set; then
6028 enableval="$enable_scrollbar"
698dcdb6 6029
10f2d63a
VZ
6030 if test "$enableval" = yes; then
6031 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
6032 else
6033 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
6034 fi
698dcdb6 6035
10f2d63a 6036else
698dcdb6 6037
10f2d63a
VZ
6038 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
6039 if test "x$LINE" != x ; then
6040 eval "DEFAULT_$LINE"
6041 else
6042 no_cache=1
6043 fi
6044
6045 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
698dcdb6
VZ
6046
6047fi
10f2d63a
VZ
6048
6049
6050 eval "$ac_cv_use_scrollbar"
6051 if test "$no_cache" != 1; then
6052 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
6053 fi
6054
6055 if test "$wxUSE_SCROLLBAR" = yes; then
698dcdb6 6056 echo "$ac_t""yes" 1>&6
10f2d63a 6057 else
698dcdb6 6058 echo "$ac_t""no" 1>&6
10f2d63a 6059 fi
698dcdb6 6060
10f2d63a 6061
698dcdb6 6062 echo $ac_n "checking for --enable-slider""... $ac_c" 1>&6
69d27ff7 6063echo "configure:6064: checking for --enable-slider" >&5
10f2d63a
VZ
6064 no_cache=0
6065 # Check whether --enable-slider or --disable-slider was given.
6066if test "${enable_slider+set}" = set; then
6067 enableval="$enable_slider"
698dcdb6 6068
10f2d63a
VZ
6069 if test "$enableval" = yes; then
6070 ac_cv_use_slider='wxUSE_SLIDER=yes'
6071 else
6072 ac_cv_use_slider='wxUSE_SLIDER=no'
6073 fi
698dcdb6 6074
10f2d63a 6075else
698dcdb6 6076
10f2d63a
VZ
6077 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
6078 if test "x$LINE" != x ; then
6079 eval "DEFAULT_$LINE"
6080 else
6081 no_cache=1
6082 fi
6083
6084 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
698dcdb6
VZ
6085
6086fi
10f2d63a
VZ
6087
6088
6089 eval "$ac_cv_use_slider"
6090 if test "$no_cache" != 1; then
6091 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
6092 fi
6093
6094 if test "$wxUSE_SLIDER" = yes; then
698dcdb6 6095 echo "$ac_t""yes" 1>&6
10f2d63a 6096 else
698dcdb6 6097 echo "$ac_t""no" 1>&6
10f2d63a 6098 fi
698dcdb6 6099
10f2d63a 6100
698dcdb6 6101 echo $ac_n "checking for --enable-spinbtn""... $ac_c" 1>&6
69d27ff7 6102echo "configure:6103: checking for --enable-spinbtn" >&5
10f2d63a
VZ
6103 no_cache=0
6104 # Check whether --enable-spinbtn or --disable-spinbtn was given.
6105if test "${enable_spinbtn+set}" = set; then
6106 enableval="$enable_spinbtn"
698dcdb6 6107
10f2d63a
VZ
6108 if test "$enableval" = yes; then
6109 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
6110 else
6111 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
6112 fi
698dcdb6 6113
10f2d63a 6114else
698dcdb6 6115
10f2d63a
VZ
6116 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
6117 if test "x$LINE" != x ; then
6118 eval "DEFAULT_$LINE"
6119 else
6120 no_cache=1
6121 fi
6122
6123 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
698dcdb6
VZ
6124
6125fi
10f2d63a
VZ
6126
6127
6128 eval "$ac_cv_use_spinbtn"
6129 if test "$no_cache" != 1; then
6130 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
6131 fi
6132
6133 if test "$wxUSE_SPINBTN" = yes; then
698dcdb6 6134 echo "$ac_t""yes" 1>&6
10f2d63a 6135 else
698dcdb6 6136 echo "$ac_t""no" 1>&6
10f2d63a 6137 fi
698dcdb6 6138
10f2d63a 6139
698dcdb6 6140 echo $ac_n "checking for --enable-spinctrl""... $ac_c" 1>&6
69d27ff7 6141echo "configure:6142: checking for --enable-spinctrl" >&5
56cfaa52
RR
6142 no_cache=0
6143 # Check whether --enable-spinctrl or --disable-spinctrl was given.
6144if test "${enable_spinctrl+set}" = set; then
6145 enableval="$enable_spinctrl"
698dcdb6 6146
56cfaa52
RR
6147 if test "$enableval" = yes; then
6148 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
6149 else
6150 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
6151 fi
698dcdb6 6152
56cfaa52 6153else
698dcdb6 6154
56cfaa52
RR
6155 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
6156 if test "x$LINE" != x ; then
6157 eval "DEFAULT_$LINE"
6158 else
6159 no_cache=1
6160 fi
6161
6162 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
698dcdb6
VZ
6163
6164fi
56cfaa52
RR
6165
6166
6167 eval "$ac_cv_use_spinctrl"
6168 if test "$no_cache" != 1; then
6169 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
6170 fi
6171
6172 if test "$wxUSE_SPINCTRL" = yes; then
698dcdb6 6173 echo "$ac_t""yes" 1>&6
56cfaa52 6174 else
698dcdb6 6175 echo "$ac_t""no" 1>&6
56cfaa52 6176 fi
698dcdb6 6177
56cfaa52 6178
698dcdb6 6179 echo $ac_n "checking for --enable-splitter""... $ac_c" 1>&6
69d27ff7 6180echo "configure:6181: checking for --enable-splitter" >&5
10f2d63a
VZ
6181 no_cache=0
6182 # Check whether --enable-splitter or --disable-splitter was given.
6183if test "${enable_splitter+set}" = set; then
6184 enableval="$enable_splitter"
698dcdb6 6185
10f2d63a
VZ
6186 if test "$enableval" = yes; then
6187 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
6188 else
6189 ac_cv_use_splitter='wxUSE_SPLITTER=no'
6190 fi
698dcdb6 6191
10f2d63a 6192else
698dcdb6 6193
10f2d63a
VZ
6194 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
6195 if test "x$LINE" != x ; then
6196 eval "DEFAULT_$LINE"
6197 else
6198 no_cache=1
6199 fi
6200
6201 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
698dcdb6
VZ
6202
6203fi
10f2d63a
VZ
6204
6205
6206 eval "$ac_cv_use_splitter"
6207 if test "$no_cache" != 1; then
6208 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
6209 fi
6210
6211 if test "$wxUSE_SPLITTER" = yes; then
698dcdb6 6212 echo "$ac_t""yes" 1>&6
10f2d63a 6213 else
698dcdb6 6214 echo "$ac_t""no" 1>&6
10f2d63a 6215 fi
698dcdb6 6216
10f2d63a 6217
698dcdb6 6218 echo $ac_n "checking for --enable-statbmp""... $ac_c" 1>&6
69d27ff7 6219echo "configure:6220: checking for --enable-statbmp" >&5
10f2d63a
VZ
6220 no_cache=0
6221 # Check whether --enable-statbmp or --disable-statbmp was given.
6222if test "${enable_statbmp+set}" = set; then
6223 enableval="$enable_statbmp"
698dcdb6 6224
10f2d63a
VZ
6225 if test "$enableval" = yes; then
6226 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
6227 else
6228 ac_cv_use_statbmp='wxUSE_STATBMP=no'
6229 fi
698dcdb6 6230
10f2d63a 6231else
698dcdb6 6232
10f2d63a
VZ
6233 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
6234 if test "x$LINE" != x ; then
6235 eval "DEFAULT_$LINE"
6236 else
6237 no_cache=1
6238 fi
6239
6240 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
698dcdb6
VZ
6241
6242fi
10f2d63a
VZ
6243
6244
6245 eval "$ac_cv_use_statbmp"
6246 if test "$no_cache" != 1; then
6247 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
6248 fi
6249
6250 if test "$wxUSE_STATBMP" = yes; then
698dcdb6 6251 echo "$ac_t""yes" 1>&6
10f2d63a 6252 else
698dcdb6 6253 echo "$ac_t""no" 1>&6
10f2d63a 6254 fi
698dcdb6 6255
10f2d63a 6256
698dcdb6 6257 echo $ac_n "checking for --enable-statbox""... $ac_c" 1>&6
69d27ff7 6258echo "configure:6259: checking for --enable-statbox" >&5
10f2d63a
VZ
6259 no_cache=0
6260 # Check whether --enable-statbox or --disable-statbox was given.
6261if test "${enable_statbox+set}" = set; then
6262 enableval="$enable_statbox"
698dcdb6 6263
10f2d63a
VZ
6264 if test "$enableval" = yes; then
6265 ac_cv_use_statbox='wxUSE_STATBOX=yes'
6266 else
6267 ac_cv_use_statbox='wxUSE_STATBOX=no'
6268 fi
698dcdb6 6269
10f2d63a 6270else
698dcdb6 6271
10f2d63a
VZ
6272 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
6273 if test "x$LINE" != x ; then
6274 eval "DEFAULT_$LINE"
6275 else
6276 no_cache=1
6277 fi
6278
6279 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
698dcdb6
VZ
6280
6281fi
10f2d63a
VZ
6282
6283
6284 eval "$ac_cv_use_statbox"
6285 if test "$no_cache" != 1; then
6286 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
6287 fi
6288
6289 if test "$wxUSE_STATBOX" = yes; then
698dcdb6 6290 echo "$ac_t""yes" 1>&6
10f2d63a 6291 else
698dcdb6 6292 echo "$ac_t""no" 1>&6
10f2d63a 6293 fi
698dcdb6 6294
10f2d63a 6295
698dcdb6 6296 echo $ac_n "checking for --enable-statline""... $ac_c" 1>&6
69d27ff7 6297echo "configure:6298: checking for --enable-statline" >&5
10f2d63a
VZ
6298 no_cache=0
6299 # Check whether --enable-statline or --disable-statline was given.
6300if test "${enable_statline+set}" = set; then
6301 enableval="$enable_statline"
698dcdb6 6302
10f2d63a
VZ
6303 if test "$enableval" = yes; then
6304 ac_cv_use_statline='wxUSE_STATLINE=yes'
6305 else
6306 ac_cv_use_statline='wxUSE_STATLINE=no'
6307 fi
698dcdb6 6308
10f2d63a 6309else
698dcdb6 6310
10f2d63a
VZ
6311 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
6312 if test "x$LINE" != x ; then
6313 eval "DEFAULT_$LINE"
6314 else
6315 no_cache=1
6316 fi
6317
6318 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
698dcdb6
VZ
6319
6320fi
10f2d63a
VZ
6321
6322
6323 eval "$ac_cv_use_statline"
6324 if test "$no_cache" != 1; then
6325 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
6326 fi
6327
6328 if test "$wxUSE_STATLINE" = yes; then
698dcdb6 6329 echo "$ac_t""yes" 1>&6
10f2d63a 6330 else
698dcdb6 6331 echo "$ac_t""no" 1>&6
10f2d63a 6332 fi
698dcdb6 6333
10f2d63a 6334
1e6feb95 6335 echo $ac_n "checking for --enable-stattext""... $ac_c" 1>&6
69d27ff7 6336echo "configure:6337: checking for --enable-stattext" >&5
1e6feb95
VZ
6337 no_cache=0
6338 # Check whether --enable-stattext or --disable-stattext was given.
6339if test "${enable_stattext+set}" = set; then
6340 enableval="$enable_stattext"
6341
6342 if test "$enableval" = yes; then
6343 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
6344 else
6345 ac_cv_use_stattext='wxUSE_STATTEXT=no'
6346 fi
6347
6348else
6349
6350 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
6351 if test "x$LINE" != x ; then
6352 eval "DEFAULT_$LINE"
6353 else
6354 no_cache=1
6355 fi
6356
6357 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
6358
6359fi
6360
6361
6362 eval "$ac_cv_use_stattext"
6363 if test "$no_cache" != 1; then
6364 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
6365 fi
6366
6367 if test "$wxUSE_STATTEXT" = yes; then
6368 echo "$ac_t""yes" 1>&6
6369 else
6370 echo "$ac_t""no" 1>&6
6371 fi
6372
6373
698dcdb6 6374 echo $ac_n "checking for --enable-statusbar""... $ac_c" 1>&6
69d27ff7 6375echo "configure:6376: checking for --enable-statusbar" >&5
10f2d63a
VZ
6376 no_cache=0
6377 # Check whether --enable-statusbar or --disable-statusbar was given.
6378if test "${enable_statusbar+set}" = set; then
6379 enableval="$enable_statusbar"
698dcdb6 6380
10f2d63a
VZ
6381 if test "$enableval" = yes; then
6382 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
6383 else
6384 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
6385 fi
698dcdb6 6386
10f2d63a 6387else
698dcdb6 6388
10f2d63a
VZ
6389 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
6390 if test "x$LINE" != x ; then
6391 eval "DEFAULT_$LINE"
6392 else
6393 no_cache=1
6394 fi
6395
6396 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
698dcdb6
VZ
6397
6398fi
10f2d63a
VZ
6399
6400
6401 eval "$ac_cv_use_statusbar"
6402 if test "$no_cache" != 1; then
6403 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
6404 fi
6405
6406 if test "$wxUSE_STATUSBAR" = yes; then
698dcdb6 6407 echo "$ac_t""yes" 1>&6
10f2d63a 6408 else
698dcdb6 6409 echo "$ac_t""no" 1>&6
10f2d63a 6410 fi
698dcdb6 6411
10f2d63a 6412
698dcdb6 6413 echo $ac_n "checking for --enable-tabdialog""... $ac_c" 1>&6
69d27ff7 6414echo "configure:6415: checking for --enable-tabdialog" >&5
10f2d63a
VZ
6415 no_cache=0
6416 # Check whether --enable-tabdialog or --disable-tabdialog was given.
6417if test "${enable_tabdialog+set}" = set; then
6418 enableval="$enable_tabdialog"
698dcdb6 6419
10f2d63a
VZ
6420 if test "$enableval" = yes; then
6421 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
6422 else
6423 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
6424 fi
698dcdb6 6425
10f2d63a 6426else
698dcdb6 6427
10f2d63a
VZ
6428 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
6429 if test "x$LINE" != x ; then
6430 eval "DEFAULT_$LINE"
6431 else
6432 no_cache=1
6433 fi
6434
6435 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
698dcdb6
VZ
6436
6437fi
10f2d63a
VZ
6438
6439
6440 eval "$ac_cv_use_tabdialog"
6441 if test "$no_cache" != 1; then
6442 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
6443 fi
6444
6445 if test "$wxUSE_TABDIALOG" = yes; then
698dcdb6 6446 echo "$ac_t""yes" 1>&6
10f2d63a 6447 else
698dcdb6 6448 echo "$ac_t""no" 1>&6
10f2d63a 6449 fi
698dcdb6 6450
10f2d63a 6451
1e6feb95 6452 echo $ac_n "checking for --enable-textctrl""... $ac_c" 1>&6
69d27ff7 6453echo "configure:6454: checking for --enable-textctrl" >&5
1e6feb95
VZ
6454 no_cache=0
6455 # Check whether --enable-textctrl or --disable-textctrl was given.
6456if test "${enable_textctrl+set}" = set; then
6457 enableval="$enable_textctrl"
6458
6459 if test "$enableval" = yes; then
6460 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
6461 else
6462 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
6463 fi
6464
6465else
6466
6467 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
6468 if test "x$LINE" != x ; then
6469 eval "DEFAULT_$LINE"
6470 else
6471 no_cache=1
6472 fi
6473
6474 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
6475
6476fi
6477
6478
6479 eval "$ac_cv_use_textctrl"
6480 if test "$no_cache" != 1; then
6481 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
6482 fi
6483
6484 if test "$wxUSE_TEXTCTRL" = yes; then
6485 echo "$ac_t""yes" 1>&6
6486 else
6487 echo "$ac_t""no" 1>&6
6488 fi
6489
6490
698dcdb6 6491 echo $ac_n "checking for --enable-togglebtn""... $ac_c" 1>&6
69d27ff7 6492echo "configure:6493: checking for --enable-togglebtn" >&5
1db8dc4a
VZ
6493 no_cache=0
6494 # Check whether --enable-togglebtn or --disable-togglebtn was given.
6495if test "${enable_togglebtn+set}" = set; then
6496 enableval="$enable_togglebtn"
698dcdb6 6497
1db8dc4a
VZ
6498 if test "$enableval" = yes; then
6499 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
6500 else
6501 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
6502 fi
698dcdb6 6503
1db8dc4a 6504else
698dcdb6 6505
1db8dc4a
VZ
6506 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
6507 if test "x$LINE" != x ; then
6508 eval "DEFAULT_$LINE"
6509 else
6510 no_cache=1
6511 fi
6512
6513 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
698dcdb6
VZ
6514
6515fi
1db8dc4a
VZ
6516
6517
6518 eval "$ac_cv_use_togglebtn"
6519 if test "$no_cache" != 1; then
6520 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
6521 fi
6522
6523 if test "$wxUSE_TOGGLEBTN" = yes; then
698dcdb6 6524 echo "$ac_t""yes" 1>&6
1db8dc4a 6525 else
698dcdb6 6526 echo "$ac_t""no" 1>&6
1db8dc4a 6527 fi
698dcdb6 6528
1db8dc4a 6529
698dcdb6 6530 echo $ac_n "checking for --enable-toolbar""... $ac_c" 1>&6
69d27ff7 6531echo "configure:6532: checking for --enable-toolbar" >&5
10f2d63a
VZ
6532 no_cache=0
6533 # Check whether --enable-toolbar or --disable-toolbar was given.
6534if test "${enable_toolbar+set}" = set; then
6535 enableval="$enable_toolbar"
698dcdb6 6536
10f2d63a
VZ
6537 if test "$enableval" = yes; then
6538 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
6539 else
6540 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
6541 fi
698dcdb6 6542
10f2d63a 6543else
698dcdb6 6544
10f2d63a
VZ
6545 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
6546 if test "x$LINE" != x ; then
6547 eval "DEFAULT_$LINE"
6548 else
6549 no_cache=1
6550 fi
6551
6552 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
698dcdb6
VZ
6553
6554fi
10f2d63a
VZ
6555
6556
6557 eval "$ac_cv_use_toolbar"
6558 if test "$no_cache" != 1; then
6559 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
6560 fi
6561
6562 if test "$wxUSE_TOOLBAR" = yes; then
698dcdb6 6563 echo "$ac_t""yes" 1>&6
10f2d63a 6564 else
698dcdb6 6565 echo "$ac_t""no" 1>&6
10f2d63a 6566 fi
698dcdb6 6567
10f2d63a 6568
698dcdb6 6569 echo $ac_n "checking for --enable-tbarnative""... $ac_c" 1>&6
69d27ff7 6570echo "configure:6571: checking for --enable-tbarnative" >&5
360d6699
VZ
6571 no_cache=0
6572 # Check whether --enable-tbarnative or --disable-tbarnative was given.
6573if test "${enable_tbarnative+set}" = set; then
6574 enableval="$enable_tbarnative"
698dcdb6 6575
360d6699
VZ
6576 if test "$enableval" = yes; then
6577 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
6578 else
6579 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
6580 fi
698dcdb6 6581
360d6699 6582else
698dcdb6 6583
360d6699
VZ
6584 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
6585 if test "x$LINE" != x ; then
6586 eval "DEFAULT_$LINE"
6587 else
6588 no_cache=1
6589 fi
6590
6591 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
698dcdb6
VZ
6592
6593fi
360d6699
VZ
6594
6595
6596 eval "$ac_cv_use_tbarnative"
6597 if test "$no_cache" != 1; then
6598 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
6599 fi
6600
6601 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
698dcdb6 6602 echo "$ac_t""yes" 1>&6
360d6699 6603 else
698dcdb6 6604 echo "$ac_t""no" 1>&6
360d6699 6605 fi
698dcdb6 6606
360d6699 6607
698dcdb6 6608 echo $ac_n "checking for --enable-tbarsmpl""... $ac_c" 1>&6
69d27ff7 6609echo "configure:6610: checking for --enable-tbarsmpl" >&5
360d6699
VZ
6610 no_cache=0
6611 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
6612if test "${enable_tbarsmpl+set}" = set; then
6613 enableval="$enable_tbarsmpl"
698dcdb6 6614
360d6699
VZ
6615 if test "$enableval" = yes; then
6616 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
6617 else
6618 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
6619 fi
698dcdb6 6620
360d6699 6621else
698dcdb6 6622
360d6699
VZ
6623 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
6624 if test "x$LINE" != x ; then
6625 eval "DEFAULT_$LINE"
6626 else
6627 no_cache=1
6628 fi
6629
6630 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
698dcdb6
VZ
6631
6632fi
360d6699
VZ
6633
6634
6635 eval "$ac_cv_use_tbarsmpl"
6636 if test "$no_cache" != 1; then
6637 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
6638 fi
6639
6640 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
698dcdb6 6641 echo "$ac_t""yes" 1>&6
360d6699 6642 else
698dcdb6 6643 echo "$ac_t""no" 1>&6
360d6699 6644 fi
698dcdb6 6645
360d6699 6646
698dcdb6 6647 echo $ac_n "checking for --enable-treectrl""... $ac_c" 1>&6
69d27ff7 6648echo "configure:6649: checking for --enable-treectrl" >&5
10f2d63a
VZ
6649 no_cache=0
6650 # Check whether --enable-treectrl or --disable-treectrl was given.
6651if test "${enable_treectrl+set}" = set; then
6652 enableval="$enable_treectrl"
698dcdb6 6653
10f2d63a
VZ
6654 if test "$enableval" = yes; then
6655 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
6656 else
6657 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
6658 fi
698dcdb6 6659
10f2d63a 6660else
698dcdb6 6661
10f2d63a
VZ
6662 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
6663 if test "x$LINE" != x ; then
6664 eval "DEFAULT_$LINE"
6665 else
6666 no_cache=1
6667 fi
6668
6669 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
698dcdb6
VZ
6670
6671fi
10f2d63a
VZ
6672
6673
1e6feb95
VZ
6674 eval "$ac_cv_use_treectrl"
6675 if test "$no_cache" != 1; then
6676 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
6677 fi
6678
6679 if test "$wxUSE_TREECTRL" = yes; then
6680 echo "$ac_t""yes" 1>&6
6681 else
6682 echo "$ac_t""no" 1>&6
6683 fi
6684
6685
9f41d601 6686 echo $ac_n "checking for --enable-popupwin""... $ac_c" 1>&6
69d27ff7 6687echo "configure:6688: checking for --enable-popupwin" >&5
9f41d601
RR
6688 no_cache=0
6689 # Check whether --enable-popupwin or --disable-popupwin was given.
6690if test "${enable_popupwin+set}" = set; then
6691 enableval="$enable_popupwin"
6692
6693 if test "$enableval" = yes; then
6694 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
6695 else
6696 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
6697 fi
6698
6699else
6700
6701 LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
6702 if test "x$LINE" != x ; then
6703 eval "DEFAULT_$LINE"
6704 else
6705 no_cache=1
6706 fi
6707
6708 ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
6709
6710fi
6711
6712
6713 eval "$ac_cv_use_popupwin"
6714 if test "$no_cache" != 1; then
6715 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
6716 fi
6717
6718 if test "$wxUSE_POPUPWIN" = yes; then
6719 echo "$ac_t""yes" 1>&6
6720 else
6721 echo "$ac_t""no" 1>&6
6722 fi
6723
6724
1e6feb95
VZ
6725
6726
6727 echo $ac_n "checking for --enable-commondlg""... $ac_c" 1>&6
69d27ff7 6728echo "configure:6729: checking for --enable-commondlg" >&5
1e6feb95
VZ
6729 no_cache=0
6730 # Check whether --enable-commondlg or --disable-commondlg was given.
6731if test "${enable_commondlg+set}" = set; then
6732 enableval="$enable_commondlg"
6733
6734 if test "$enableval" = yes; then
6735 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
6736 else
6737 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
6738 fi
6739
6740else
6741
6742 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
6743 if test "x$LINE" != x ; then
6744 eval "DEFAULT_$LINE"
6745 else
6746 no_cache=1
6747 fi
6748
6749 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
6750
6751fi
6752
6753
6754 eval "$ac_cv_use_commondlg"
6755 if test "$no_cache" != 1; then
6756 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
6757 fi
6758
6759 if test "$wxUSE_COMMONDLGS" = yes; then
6760 echo "$ac_t""yes" 1>&6
6761 else
6762 echo "$ac_t""no" 1>&6
6763 fi
6764
6765
6766 echo $ac_n "checking for --enable-choicedlg""... $ac_c" 1>&6
69d27ff7 6767echo "configure:6768: checking for --enable-choicedlg" >&5
1e6feb95
VZ
6768 no_cache=0
6769 # Check whether --enable-choicedlg or --disable-choicedlg was given.
6770if test "${enable_choicedlg+set}" = set; then
6771 enableval="$enable_choicedlg"
6772
6773 if test "$enableval" = yes; then
6774 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
6775 else
6776 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
6777 fi
6778
6779else
6780
6781 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
6782 if test "x$LINE" != x ; then
6783 eval "DEFAULT_$LINE"
6784 else
6785 no_cache=1
6786 fi
6787
6788 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
6789
6790fi
6791
6792
6793 eval "$ac_cv_use_choicedlg"
6794 if test "$no_cache" != 1; then
6795 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
6796 fi
6797
6798 if test "$wxUSE_CHOICEDLG" = yes; then
6799 echo "$ac_t""yes" 1>&6
6800 else
6801 echo "$ac_t""no" 1>&6
6802 fi
6803
6804
6805 echo $ac_n "checking for --enable-coldlg""... $ac_c" 1>&6
69d27ff7 6806echo "configure:6807: checking for --enable-coldlg" >&5
1e6feb95
VZ
6807 no_cache=0
6808 # Check whether --enable-coldlg or --disable-coldlg was given.
6809if test "${enable_coldlg+set}" = set; then
6810 enableval="$enable_coldlg"
6811
6812 if test "$enableval" = yes; then
6813 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
6814 else
6815 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
6816 fi
6817
6818else
6819
6820 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
6821 if test "x$LINE" != x ; then
6822 eval "DEFAULT_$LINE"
6823 else
6824 no_cache=1
6825 fi
6826
6827 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
6828
6829fi
6830
6831
6832 eval "$ac_cv_use_coldlg"
6833 if test "$no_cache" != 1; then
6834 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
6835 fi
6836
6837 if test "$wxUSE_COLOURDLG" = yes; then
6838 echo "$ac_t""yes" 1>&6
6839 else
6840 echo "$ac_t""no" 1>&6
6841 fi
6842
6843
6844 echo $ac_n "checking for --enable-filedlg""... $ac_c" 1>&6
69d27ff7 6845echo "configure:6846: checking for --enable-filedlg" >&5
1e6feb95
VZ
6846 no_cache=0
6847 # Check whether --enable-filedlg or --disable-filedlg was given.
6848if test "${enable_filedlg+set}" = set; then
6849 enableval="$enable_filedlg"
6850
6851 if test "$enableval" = yes; then
6852 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
6853 else
6854 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
6855 fi
6856
6857else
6858
6859 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
6860 if test "x$LINE" != x ; then
6861 eval "DEFAULT_$LINE"
6862 else
6863 no_cache=1
6864 fi
6865
6866 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
6867
6868fi
6869
6870
6871 eval "$ac_cv_use_filedlg"
6872 if test "$no_cache" != 1; then
6873 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
6874 fi
6875
6876 if test "$wxUSE_FILEDLG" = yes; then
6877 echo "$ac_t""yes" 1>&6
6878 else
6879 echo "$ac_t""no" 1>&6
6880 fi
6881
6882
69d27ff7
MB
6883 echo $ac_n "checking for --enable-finddlg""... $ac_c" 1>&6
6884echo "configure:6885: checking for --enable-finddlg" >&5
8db37e06 6885 no_cache=0
69d27ff7
MB
6886 # Check whether --enable-finddlg or --disable-finddlg was given.
6887if test "${enable_finddlg+set}" = set; then
6888 enableval="$enable_finddlg"
8db37e06
VZ
6889
6890 if test "$enableval" = yes; then
69d27ff7 6891 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
8db37e06 6892 else
69d27ff7 6893 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
8db37e06
VZ
6894 fi
6895
6896else
6897
6898 LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
6899 if test "x$LINE" != x ; then
6900 eval "DEFAULT_$LINE"
6901 else
6902 no_cache=1
6903 fi
6904
69d27ff7 6905 ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
8db37e06
VZ
6906
6907fi
6908
6909
69d27ff7 6910 eval "$ac_cv_use_finddlg"
8db37e06 6911 if test "$no_cache" != 1; then
69d27ff7 6912 echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
8db37e06
VZ
6913 fi
6914
6915 if test "$wxUSE_FINDREPLDLG" = yes; then
6916 echo "$ac_t""yes" 1>&6
6917 else
6918 echo "$ac_t""no" 1>&6
6919 fi
6920
6921
1e6feb95 6922 echo $ac_n "checking for --enable-fontdlg""... $ac_c" 1>&6
69d27ff7 6923echo "configure:6924: checking for --enable-fontdlg" >&5
1e6feb95
VZ
6924 no_cache=0
6925 # Check whether --enable-fontdlg or --disable-fontdlg was given.
6926if test "${enable_fontdlg+set}" = set; then
6927 enableval="$enable_fontdlg"
6928
6929 if test "$enableval" = yes; then
6930 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
6931 else
6932 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
6933 fi
6934
6935else
6936
6937 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
6938 if test "x$LINE" != x ; then
6939 eval "DEFAULT_$LINE"
6940 else
6941 no_cache=1
6942 fi
6943
6944 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
6945
6946fi
6947
6948
6949 eval "$ac_cv_use_fontdlg"
6950 if test "$no_cache" != 1; then
6951 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
6952 fi
6953
6954 if test "$wxUSE_FONTDLG" = yes; then
6955 echo "$ac_t""yes" 1>&6
6956 else
6957 echo "$ac_t""no" 1>&6
6958 fi
6959
6960
6961 echo $ac_n "checking for --enable-dirdlg""... $ac_c" 1>&6
69d27ff7 6962echo "configure:6963: checking for --enable-dirdlg" >&5
1e6feb95
VZ
6963 no_cache=0
6964 # Check whether --enable-dirdlg or --disable-dirdlg was given.
6965if test "${enable_dirdlg+set}" = set; then
6966 enableval="$enable_dirdlg"
6967
6968 if test "$enableval" = yes; then
6969 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
6970 else
6971 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
6972 fi
6973
6974else
6975
6976 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
6977 if test "x$LINE" != x ; then
6978 eval "DEFAULT_$LINE"
6979 else
6980 no_cache=1
6981 fi
6982
6983 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
6984
6985fi
6986
6987
6988 eval "$ac_cv_use_dirdlg"
10f2d63a 6989 if test "$no_cache" != 1; then
1e6feb95 6990 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
6991 fi
6992
1e6feb95 6993 if test "$wxUSE_DIRDLG" = yes; then
698dcdb6 6994 echo "$ac_t""yes" 1>&6
10f2d63a 6995 else
698dcdb6 6996 echo "$ac_t""no" 1>&6
10f2d63a 6997 fi
698dcdb6
VZ
6998
6999
1e6feb95 7000 echo $ac_n "checking for --enable-msgdlg""... $ac_c" 1>&6
69d27ff7 7001echo "configure:7002: checking for --enable-msgdlg" >&5
10f2d63a 7002 no_cache=0
1e6feb95
VZ
7003 # Check whether --enable-msgdlg or --disable-msgdlg was given.
7004if test "${enable_msgdlg+set}" = set; then
7005 enableval="$enable_msgdlg"
698dcdb6 7006
10f2d63a 7007 if test "$enableval" = yes; then
1e6feb95 7008 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
10f2d63a 7009 else
1e6feb95 7010 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
10f2d63a 7011 fi
698dcdb6 7012
10f2d63a 7013else
698dcdb6 7014
1e6feb95 7015 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
10f2d63a
VZ
7016 if test "x$LINE" != x ; then
7017 eval "DEFAULT_$LINE"
7018 else
7019 no_cache=1
7020 fi
7021
1e6feb95 7022 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
698dcdb6
VZ
7023
7024fi
10f2d63a
VZ
7025
7026
1e6feb95 7027 eval "$ac_cv_use_msgdlg"
10f2d63a 7028 if test "$no_cache" != 1; then
1e6feb95 7029 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
7030 fi
7031
1e6feb95 7032 if test "$wxUSE_MSGDLG" = yes; then
698dcdb6 7033 echo "$ac_t""yes" 1>&6
10f2d63a 7034 else
698dcdb6 7035 echo "$ac_t""no" 1>&6
10f2d63a 7036 fi
698dcdb6 7037
10f2d63a 7038
1e6feb95 7039 echo $ac_n "checking for --enable-numberdlg""... $ac_c" 1>&6
69d27ff7 7040echo "configure:7041: checking for --enable-numberdlg" >&5
10f2d63a 7041 no_cache=0
1e6feb95
VZ
7042 # Check whether --enable-numberdlg or --disable-numberdlg was given.
7043if test "${enable_numberdlg+set}" = set; then
7044 enableval="$enable_numberdlg"
698dcdb6 7045
10f2d63a 7046 if test "$enableval" = yes; then
1e6feb95 7047 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
10f2d63a 7048 else
1e6feb95 7049 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
10f2d63a 7050 fi
698dcdb6 7051
10f2d63a 7052else
698dcdb6 7053
1e6feb95 7054 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
10f2d63a
VZ
7055 if test "x$LINE" != x ; then
7056 eval "DEFAULT_$LINE"
7057 else
7058 no_cache=1
7059 fi
7060
1e6feb95 7061 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
698dcdb6
VZ
7062
7063fi
10f2d63a
VZ
7064
7065
1e6feb95 7066 eval "$ac_cv_use_numberdlg"
10f2d63a 7067 if test "$no_cache" != 1; then
1e6feb95 7068 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
7069 fi
7070
1e6feb95 7071 if test "$wxUSE_NUMBERDLG" = yes; then
698dcdb6 7072 echo "$ac_t""yes" 1>&6
10f2d63a 7073 else
698dcdb6 7074 echo "$ac_t""no" 1>&6
10f2d63a 7075 fi
698dcdb6 7076
10f2d63a 7077
cbca9943 7078 echo $ac_n "checking for --enable-splash""... $ac_c" 1>&6
69d27ff7 7079echo "configure:7080: checking for --enable-splash" >&5
cbca9943
VZ
7080 no_cache=0
7081 # Check whether --enable-splash or --disable-splash was given.
7082if test "${enable_splash+set}" = set; then
7083 enableval="$enable_splash"
7084
7085 if test "$enableval" = yes; then
7086 ac_cv_use_splash='wxUSE_SPLASH=yes'
7087 else
7088 ac_cv_use_splash='wxUSE_SPLASH=no'
7089 fi
7090
7091else
7092
7093 LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
7094 if test "x$LINE" != x ; then
7095 eval "DEFAULT_$LINE"
7096 else
7097 no_cache=1
7098 fi
7099
7100 ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
7101
7102fi
7103
7104
7105 eval "$ac_cv_use_splash"
7106 if test "$no_cache" != 1; then
7107 echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
7108 fi
7109
7110 if test "$wxUSE_SPLASH" = yes; then
7111 echo "$ac_t""yes" 1>&6
7112 else
7113 echo "$ac_t""no" 1>&6
7114 fi
7115
7116
698dcdb6 7117 echo $ac_n "checking for --enable-textdlg""... $ac_c" 1>&6
69d27ff7 7118echo "configure:7119: checking for --enable-textdlg" >&5
10f2d63a
VZ
7119 no_cache=0
7120 # Check whether --enable-textdlg or --disable-textdlg was given.
7121if test "${enable_textdlg+set}" = set; then
7122 enableval="$enable_textdlg"
698dcdb6 7123
10f2d63a
VZ
7124 if test "$enableval" = yes; then
7125 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
7126 else
7127 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
7128 fi
698dcdb6 7129
10f2d63a 7130else
698dcdb6 7131
10f2d63a
VZ
7132 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
7133 if test "x$LINE" != x ; then
7134 eval "DEFAULT_$LINE"
7135 else
7136 no_cache=1
7137 fi
7138
7139 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
698dcdb6
VZ
7140
7141fi
10f2d63a
VZ
7142
7143
7144 eval "$ac_cv_use_textdlg"
7145 if test "$no_cache" != 1; then
7146 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
7147 fi
7148
7149 if test "$wxUSE_TEXTDLG" = yes; then
698dcdb6 7150 echo "$ac_t""yes" 1>&6
10f2d63a 7151 else
698dcdb6 7152 echo "$ac_t""no" 1>&6
10f2d63a 7153 fi
698dcdb6 7154
10f2d63a 7155
698dcdb6 7156 echo $ac_n "checking for --enable-tipdlg""... $ac_c" 1>&6
69d27ff7 7157echo "configure:7158: checking for --enable-tipdlg" >&5
10f2d63a
VZ
7158 no_cache=0
7159 # Check whether --enable-tipdlg or --disable-tipdlg was given.
7160if test "${enable_tipdlg+set}" = set; then
7161 enableval="$enable_tipdlg"
698dcdb6 7162
10f2d63a
VZ
7163 if test "$enableval" = yes; then
7164 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
7165 else
7166 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
7167 fi
698dcdb6 7168
10f2d63a 7169else
698dcdb6 7170
10f2d63a
VZ
7171 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
7172 if test "x$LINE" != x ; then
7173 eval "DEFAULT_$LINE"
7174 else
7175 no_cache=1
7176 fi
7177
7178 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
698dcdb6
VZ
7179
7180fi
10f2d63a
VZ
7181
7182
7183 eval "$ac_cv_use_tipdlg"
7184 if test "$no_cache" != 1; then
7185 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
7186 fi
7187
7188 if test "$wxUSE_STARTUP_TIPS" = yes; then
698dcdb6 7189 echo "$ac_t""yes" 1>&6
10f2d63a 7190 else
698dcdb6 7191 echo "$ac_t""no" 1>&6
10f2d63a 7192 fi
698dcdb6 7193
10f2d63a 7194
698dcdb6 7195 echo $ac_n "checking for --enable-progressdlg""... $ac_c" 1>&6
69d27ff7 7196echo "configure:7197: checking for --enable-progressdlg" >&5
10f2d63a
VZ
7197 no_cache=0
7198 # Check whether --enable-progressdlg or --disable-progressdlg was given.
7199if test "${enable_progressdlg+set}" = set; then
7200 enableval="$enable_progressdlg"
698dcdb6 7201
10f2d63a
VZ
7202 if test "$enableval" = yes; then
7203 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
7204 else
7205 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
7206 fi
698dcdb6 7207
10f2d63a 7208else
698dcdb6 7209
10f2d63a
VZ
7210 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
7211 if test "x$LINE" != x ; then
7212 eval "DEFAULT_$LINE"
7213 else
7214 no_cache=1
7215 fi
7216
7217 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
698dcdb6
VZ
7218
7219fi
10f2d63a
VZ
7220
7221
7222 eval "$ac_cv_use_progressdlg"
7223 if test "$no_cache" != 1; then
7224 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
7225 fi
7226
7227 if test "$wxUSE_PROGRESSDLG" = yes; then
698dcdb6 7228 echo "$ac_t""yes" 1>&6
10f2d63a 7229 else
698dcdb6 7230 echo "$ac_t""no" 1>&6
10f2d63a 7231 fi
698dcdb6 7232
10f2d63a 7233
b1f5d087 7234 echo $ac_n "checking for --enable-wizarddlg""... $ac_c" 1>&6
69d27ff7 7235echo "configure:7236: checking for --enable-wizarddlg" >&5
b1f5d087
VZ
7236 no_cache=0
7237 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
7238if test "${enable_wizarddlg+set}" = set; then
7239 enableval="$enable_wizarddlg"
7240
7241 if test "$enableval" = yes; then
7242 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
7243 else
7244 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
7245 fi
7246
7247else
7248
7249 LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
7250 if test "x$LINE" != x ; then
7251 eval "DEFAULT_$LINE"
7252 else
7253 no_cache=1
7254 fi
7255
7256 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
7257
7258fi
7259
7260
7261 eval "$ac_cv_use_wizarddlg"
7262 if test "$no_cache" != 1; then
7263 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
7264 fi
7265
7266 if test "$wxUSE_WIZARDDLG" = yes; then
7267 echo "$ac_t""yes" 1>&6
7268 else
7269 echo "$ac_t""no" 1>&6
7270 fi
7271
7272
7273
7274
1e6feb95 7275 echo $ac_n "checking for --enable-menus""... $ac_c" 1>&6
69d27ff7 7276echo "configure:7277: checking for --enable-menus" >&5
1e6feb95
VZ
7277 no_cache=0
7278 # Check whether --enable-menus or --disable-menus was given.
7279if test "${enable_menus+set}" = set; then
7280 enableval="$enable_menus"
7281
7282 if test "$enableval" = yes; then
7283 ac_cv_use_menus='wxUSE_MENUS=yes'
7284 else
7285 ac_cv_use_menus='wxUSE_MENUS=no'
7286 fi
7287
7288else
7289
7290 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
7291 if test "x$LINE" != x ; then
7292 eval "DEFAULT_$LINE"
7293 else
7294 no_cache=1
7295 fi
7296
7297 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
7298
7299fi
7300
7301
7302 eval "$ac_cv_use_menus"
7303 if test "$no_cache" != 1; then
7304 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
7305 fi
7306
7307 if test "$wxUSE_MENUS" = yes; then
7308 echo "$ac_t""yes" 1>&6
7309 else
7310 echo "$ac_t""no" 1>&6
7311 fi
7312
7313
698dcdb6 7314 echo $ac_n "checking for --enable-miniframe""... $ac_c" 1>&6
69d27ff7 7315echo "configure:7316: checking for --enable-miniframe" >&5
10f2d63a
VZ
7316 no_cache=0
7317 # Check whether --enable-miniframe or --disable-miniframe was given.
7318if test "${enable_miniframe+set}" = set; then
7319 enableval="$enable_miniframe"
698dcdb6 7320
10f2d63a
VZ
7321 if test "$enableval" = yes; then
7322 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
7323 else
7324 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
7325 fi
698dcdb6 7326
10f2d63a 7327else
698dcdb6 7328
10f2d63a
VZ
7329 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
7330 if test "x$LINE" != x ; then
7331 eval "DEFAULT_$LINE"
7332 else
7333 no_cache=1
7334 fi
7335
7336 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
698dcdb6
VZ
7337
7338fi
10f2d63a
VZ
7339
7340
7341 eval "$ac_cv_use_miniframe"
7342 if test "$no_cache" != 1; then
7343 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
7344 fi
7345
7346 if test "$wxUSE_MINIFRAME" = yes; then
698dcdb6 7347 echo "$ac_t""yes" 1>&6
10f2d63a 7348 else
698dcdb6 7349 echo "$ac_t""no" 1>&6
10f2d63a 7350 fi
698dcdb6 7351
10f2d63a 7352
698dcdb6 7353 echo $ac_n "checking for --enable-tooltips""... $ac_c" 1>&6
69d27ff7 7354echo "configure:7355: checking for --enable-tooltips" >&5
10f2d63a
VZ
7355 no_cache=0
7356 # Check whether --enable-tooltips or --disable-tooltips was given.
7357if test "${enable_tooltips+set}" = set; then
7358 enableval="$enable_tooltips"
698dcdb6 7359
10f2d63a
VZ
7360 if test "$enableval" = yes; then
7361 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
7362 else
7363 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
7364 fi
698dcdb6 7365
10f2d63a 7366else
698dcdb6 7367
10f2d63a
VZ
7368 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
7369 if test "x$LINE" != x ; then
7370 eval "DEFAULT_$LINE"
7371 else
7372 no_cache=1
7373 fi
7374
7375 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
698dcdb6
VZ
7376
7377fi
10f2d63a
VZ
7378
7379
7380 eval "$ac_cv_use_tooltips"
7381 if test "$no_cache" != 1; then
7382 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
7383 fi
7384
7385 if test "$wxUSE_TOOLTIPS" = yes; then
698dcdb6 7386 echo "$ac_t""yes" 1>&6
10f2d63a 7387 else
698dcdb6 7388 echo "$ac_t""no" 1>&6
10f2d63a 7389 fi
698dcdb6 7390
10f2d63a 7391
698dcdb6 7392 echo $ac_n "checking for --enable-splines""... $ac_c" 1>&6
69d27ff7 7393echo "configure:7394: checking for --enable-splines" >&5
10f2d63a
VZ
7394 no_cache=0
7395 # Check whether --enable-splines or --disable-splines was given.
7396if test "${enable_splines+set}" = set; then
7397 enableval="$enable_splines"
698dcdb6 7398
10f2d63a
VZ
7399 if test "$enableval" = yes; then
7400 ac_cv_use_splines='wxUSE_SPLINES=yes'
7401 else
7402 ac_cv_use_splines='wxUSE_SPLINES=no'
7403 fi
698dcdb6 7404
10f2d63a 7405else
698dcdb6 7406
10f2d63a
VZ
7407 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
7408 if test "x$LINE" != x ; then
7409 eval "DEFAULT_$LINE"
7410 else
7411 no_cache=1
7412 fi
7413
7414 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
698dcdb6
VZ
7415
7416fi
10f2d63a
VZ
7417
7418
7419 eval "$ac_cv_use_splines"
7420 if test "$no_cache" != 1; then
7421 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
7422 fi
7423
7424 if test "$wxUSE_SPLINES" = yes; then
698dcdb6 7425 echo "$ac_t""yes" 1>&6
10f2d63a 7426 else
698dcdb6 7427 echo "$ac_t""no" 1>&6
10f2d63a 7428 fi
698dcdb6 7429
10f2d63a 7430
698dcdb6 7431 echo $ac_n "checking for --enable-validators""... $ac_c" 1>&6
69d27ff7 7432echo "configure:7433: checking for --enable-validators" >&5
10f2d63a
VZ
7433 no_cache=0
7434 # Check whether --enable-validators or --disable-validators was given.
7435if test "${enable_validators+set}" = set; then
7436 enableval="$enable_validators"
698dcdb6 7437
10f2d63a
VZ
7438 if test "$enableval" = yes; then
7439 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
7440 else
7441 ac_cv_use_validators='wxUSE_VALIDATORS=no'
7442 fi
698dcdb6 7443
10f2d63a 7444else
698dcdb6 7445
10f2d63a
VZ
7446 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
7447 if test "x$LINE" != x ; then
7448 eval "DEFAULT_$LINE"
7449 else
7450 no_cache=1
7451 fi
7452
7453 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
698dcdb6
VZ
7454
7455fi
10f2d63a
VZ
7456
7457
7458 eval "$ac_cv_use_validators"
7459 if test "$no_cache" != 1; then
7460 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
7461 fi
7462
7463 if test "$wxUSE_VALIDATORS" = yes; then
698dcdb6 7464 echo "$ac_t""yes" 1>&6
10f2d63a 7465 else
698dcdb6 7466 echo "$ac_t""no" 1>&6
10f2d63a 7467 fi
698dcdb6 7468
10f2d63a 7469
698dcdb6 7470 echo $ac_n "checking for --enable-busyinfo""... $ac_c" 1>&6
69d27ff7 7471echo "configure:7472: checking for --enable-busyinfo" >&5
10f2d63a
VZ
7472 no_cache=0
7473 # Check whether --enable-busyinfo or --disable-busyinfo was given.
7474if test "${enable_busyinfo+set}" = set; then
7475 enableval="$enable_busyinfo"
698dcdb6 7476
10f2d63a
VZ
7477 if test "$enableval" = yes; then
7478 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
7479 else
7480 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
7481 fi
698dcdb6 7482
10f2d63a 7483else
698dcdb6 7484
10f2d63a
VZ
7485 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
7486 if test "x$LINE" != x ; then
7487 eval "DEFAULT_$LINE"
7488 else
7489 no_cache=1
7490 fi
7491
7492 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
698dcdb6
VZ
7493
7494fi
10f2d63a
VZ
7495
7496
7497 eval "$ac_cv_use_busyinfo"
7498 if test "$no_cache" != 1; then
7499 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
7500 fi
7501
7502 if test "$wxUSE_BUSYINFO" = yes; then
698dcdb6 7503 echo "$ac_t""yes" 1>&6
10f2d63a 7504 else
698dcdb6 7505 echo "$ac_t""no" 1>&6
10f2d63a 7506 fi
698dcdb6 7507
10f2d63a 7508
698dcdb6 7509 echo $ac_n "checking for --enable-joystick""... $ac_c" 1>&6
69d27ff7 7510echo "configure:7511: checking for --enable-joystick" >&5
f6bcfd97
BP
7511 no_cache=0
7512 # Check whether --enable-joystick or --disable-joystick was given.
7513if test "${enable_joystick+set}" = set; then
7514 enableval="$enable_joystick"
698dcdb6 7515
f6bcfd97
BP
7516 if test "$enableval" = yes; then
7517 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
7518 else
7519 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
7520 fi
698dcdb6 7521
f6bcfd97 7522else
698dcdb6 7523
f6bcfd97
BP
7524 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
7525 if test "x$LINE" != x ; then
7526 eval "DEFAULT_$LINE"
7527 else
7528 no_cache=1
7529 fi
7530
7531 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
698dcdb6
VZ
7532
7533fi
f6bcfd97
BP
7534
7535
7536 eval "$ac_cv_use_joystick"
7537 if test "$no_cache" != 1; then
7538 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
7539 fi
7540
7541 if test "$wxUSE_JOYSTICK" = yes; then
698dcdb6 7542 echo "$ac_t""yes" 1>&6
f6bcfd97 7543 else
698dcdb6 7544 echo "$ac_t""no" 1>&6
f6bcfd97 7545 fi
698dcdb6
VZ
7546
7547
1e6feb95 7548 echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6
69d27ff7 7549echo "configure:7550: checking for --enable-metafile" >&5
1e6feb95
VZ
7550 no_cache=0
7551 # Check whether --enable-metafile or --disable-metafile was given.
7552if test "${enable_metafile+set}" = set; then
7553 enableval="$enable_metafile"
7554
7555 if test "$enableval" = yes; then
7556 ac_cv_use_metafile='wxUSE_METAFILE=yes'
7557 else
7558 ac_cv_use_metafile='wxUSE_METAFILE=no'
7559 fi
7560
7561else
7562
7563 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
7564 if test "x$LINE" != x ; then
7565 eval "DEFAULT_$LINE"
7566 else
7567 no_cache=1
7568 fi
7569
7570 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
7571
7572fi
7573
7574
7575 eval "$ac_cv_use_metafile"
7576 if test "$no_cache" != 1; then
7577 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
7578 fi
7579
7580 if test "$wxUSE_METAFILE" = yes; then
7581 echo "$ac_t""yes" 1>&6
7582 else
7583 echo "$ac_t""no" 1>&6
7584 fi
7585
7586
24fd6d87 7587 echo $ac_n "checking for --enable-dragimage""... $ac_c" 1>&6
69d27ff7 7588echo "configure:7589: checking for --enable-dragimage" >&5
24fd6d87
VZ
7589 no_cache=0
7590 # Check whether --enable-dragimage or --disable-dragimage was given.
7591if test "${enable_dragimage+set}" = set; then
7592 enableval="$enable_dragimage"
7593
7594 if test "$enableval" = yes; then
7595 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
7596 else
7597 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
7598 fi
7599
7600else
7601
7602 LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
7603 if test "x$LINE" != x ; then
7604 eval "DEFAULT_$LINE"
7605 else
7606 no_cache=1
7607 fi
7608
7609 ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
7610
7611fi
7612
7613
7614 eval "$ac_cv_use_dragimage"
7615 if test "$no_cache" != 1; then
7616 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
7617 fi
7618
7619 if test "$wxUSE_DRAGIMAGE" = yes; then
7620 echo "$ac_t""yes" 1>&6
7621 else
7622 echo "$ac_t""no" 1>&6
7623 fi
7624
7625
10f2d63a 7626
698dcdb6 7627
edae8572 7628 echo $ac_n "checking for --enable-palette""... $ac_c" 1>&6
69d27ff7 7629echo "configure:7630: checking for --enable-palette" >&5
edae8572
VZ
7630 no_cache=0
7631 # Check whether --enable-palette or --disable-palette was given.
7632if test "${enable_palette+set}" = set; then
7633 enableval="$enable_palette"
7634
7635 if test "$enableval" = yes; then
7636 ac_cv_use_palette='wxUSE_PALETTE=yes'
7637 else
7638 ac_cv_use_palette='wxUSE_PALETTE=no'
7639 fi
7640
7641else
7642
7643 LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
7644 if test "x$LINE" != x ; then
7645 eval "DEFAULT_$LINE"
7646 else
7647 no_cache=1
7648 fi
7649
7650 ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
7651
7652fi
7653
7654
7655 eval "$ac_cv_use_palette"
7656 if test "$no_cache" != 1; then
7657 echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
7658 fi
7659
7660 if test "$wxUSE_PALETTE" = yes; then
7661 echo "$ac_t""yes" 1>&6
7662 else
7663 echo "$ac_t""no" 1>&6
7664 fi
7665
7666
698dcdb6 7667 echo $ac_n "checking for --enable-image""... $ac_c" 1>&6
69d27ff7 7668echo "configure:7669: checking for --enable-image" >&5
0046ff7c
VS
7669 no_cache=0
7670 # Check whether --enable-image or --disable-image was given.
7671if test "${enable_image+set}" = set; then
7672 enableval="$enable_image"
698dcdb6 7673
0046ff7c
VS
7674 if test "$enableval" = yes; then
7675 ac_cv_use_image='wxUSE_IMAGE=yes'
7676 else
7677 ac_cv_use_image='wxUSE_IMAGE=no'
7678 fi
698dcdb6 7679
0046ff7c 7680else
698dcdb6 7681
0046ff7c
VS
7682 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
7683 if test "x$LINE" != x ; then
7684 eval "DEFAULT_$LINE"
7685 else
7686 no_cache=1
7687 fi
7688
7689 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
698dcdb6
VZ
7690
7691fi
0046ff7c
VS
7692
7693
7694 eval "$ac_cv_use_image"
7695 if test "$no_cache" != 1; then
7696 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
7697 fi
7698
7699 if test "$wxUSE_IMAGE" = yes; then
698dcdb6 7700 echo "$ac_t""yes" 1>&6
0046ff7c 7701 else
698dcdb6 7702 echo "$ac_t""no" 1>&6
0046ff7c 7703 fi
698dcdb6 7704
0046ff7c 7705
698dcdb6 7706 echo $ac_n "checking for --enable-gif""... $ac_c" 1>&6
69d27ff7 7707echo "configure:7708: checking for --enable-gif" >&5
10f2d63a
VZ
7708 no_cache=0
7709 # Check whether --enable-gif or --disable-gif was given.
7710if test "${enable_gif+set}" = set; then
7711 enableval="$enable_gif"
698dcdb6 7712
10f2d63a
VZ
7713 if test "$enableval" = yes; then
7714 ac_cv_use_gif='wxUSE_GIF=yes'
7715 else
7716 ac_cv_use_gif='wxUSE_GIF=no'
7717 fi
698dcdb6 7718
10f2d63a 7719else
698dcdb6 7720
10f2d63a
VZ
7721 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
7722 if test "x$LINE" != x ; then
7723 eval "DEFAULT_$LINE"
7724 else
7725 no_cache=1
7726 fi
7727
7728 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
698dcdb6
VZ
7729
7730fi
10f2d63a
VZ
7731
7732
7733 eval "$ac_cv_use_gif"
7734 if test "$no_cache" != 1; then
7735 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
7736 fi
7737
7738 if test "$wxUSE_GIF" = yes; then
698dcdb6 7739 echo "$ac_t""yes" 1>&6
10f2d63a 7740 else
698dcdb6 7741 echo "$ac_t""no" 1>&6
10f2d63a 7742 fi
698dcdb6 7743
10f2d63a 7744
698dcdb6 7745 echo $ac_n "checking for --enable-pcx""... $ac_c" 1>&6
69d27ff7 7746echo "configure:7747: checking for --enable-pcx" >&5
10f2d63a
VZ
7747 no_cache=0
7748 # Check whether --enable-pcx or --disable-pcx was given.
7749if test "${enable_pcx+set}" = set; then
7750 enableval="$enable_pcx"
698dcdb6 7751
10f2d63a
VZ
7752 if test "$enableval" = yes; then
7753 ac_cv_use_pcx='wxUSE_PCX=yes'
7754 else
7755 ac_cv_use_pcx='wxUSE_PCX=no'
7756 fi
698dcdb6 7757
10f2d63a 7758else
698dcdb6 7759
10f2d63a
VZ
7760 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
7761 if test "x$LINE" != x ; then
7762 eval "DEFAULT_$LINE"
7763 else
7764 no_cache=1
7765 fi
7766
7767 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
698dcdb6
VZ
7768
7769fi
10f2d63a
VZ
7770
7771
7772 eval "$ac_cv_use_pcx"
7773 if test "$no_cache" != 1; then
7774 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
7775 fi
7776
7777 if test "$wxUSE_PCX" = yes; then
698dcdb6 7778 echo "$ac_t""yes" 1>&6
10f2d63a 7779 else
698dcdb6 7780 echo "$ac_t""no" 1>&6
10f2d63a 7781 fi
698dcdb6 7782
10f2d63a 7783
698dcdb6 7784 echo $ac_n "checking for --enable-pnm""... $ac_c" 1>&6
69d27ff7 7785echo "configure:7786: checking for --enable-pnm" >&5
10f2d63a
VZ
7786 no_cache=0
7787 # Check whether --enable-pnm or --disable-pnm was given.
7788if test "${enable_pnm+set}" = set; then
7789 enableval="$enable_pnm"
698dcdb6 7790
10f2d63a
VZ
7791 if test "$enableval" = yes; then
7792 ac_cv_use_pnm='wxUSE_PNM=yes'
7793 else
7794 ac_cv_use_pnm='wxUSE_PNM=no'
7795 fi
698dcdb6 7796
10f2d63a 7797else
698dcdb6 7798
10f2d63a
VZ
7799 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
7800 if test "x$LINE" != x ; then
7801 eval "DEFAULT_$LINE"
7802 else
7803 no_cache=1
7804 fi
7805
7806 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
698dcdb6
VZ
7807
7808fi
10f2d63a
VZ
7809
7810
7811 eval "$ac_cv_use_pnm"
7812 if test "$no_cache" != 1; then
7813 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
7814 fi
7815
7816 if test "$wxUSE_PNM" = yes; then
698dcdb6 7817 echo "$ac_t""yes" 1>&6
10f2d63a 7818 else
698dcdb6 7819 echo "$ac_t""no" 1>&6
10f2d63a 7820 fi
698dcdb6 7821
10f2d63a 7822
69d27ff7
MB
7823 echo $ac_n "checking for --enable-xpm""... $ac_c" 1>&6
7824echo "configure:7825: checking for --enable-xpm" >&5
0046ff7c 7825 no_cache=0
69d27ff7
MB
7826 # Check whether --enable-xpm or --disable-xpm was given.
7827if test "${enable_xpm+set}" = set; then
7828 enableval="$enable_xpm"
698dcdb6 7829
0046ff7c 7830 if test "$enableval" = yes; then
69d27ff7 7831 ac_cv_use_xpm='wxUSE_XPM=yes'
0046ff7c 7832 else
69d27ff7 7833 ac_cv_use_xpm='wxUSE_XPM=no'
0046ff7c 7834 fi
698dcdb6 7835
0046ff7c 7836else
698dcdb6 7837
0046ff7c
VS
7838 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
7839 if test "x$LINE" != x ; then
7840 eval "DEFAULT_$LINE"
7841 else
7842 no_cache=1
7843 fi
7844
69d27ff7 7845 ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
698dcdb6
VZ
7846
7847fi
0046ff7c
VS
7848
7849
69d27ff7 7850 eval "$ac_cv_use_xpm"
0046ff7c 7851 if test "$no_cache" != 1; then
69d27ff7 7852 echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
0046ff7c
VS
7853 fi
7854
7855 if test "$wxUSE_XPM" = yes; then
698dcdb6 7856 echo "$ac_t""yes" 1>&6
0046ff7c 7857 else
698dcdb6 7858 echo "$ac_t""no" 1>&6
0046ff7c 7859 fi
698dcdb6 7860
0046ff7c 7861
b12915c1
VZ
7862fi
7863
698dcdb6 7864
10f2d63a
VZ
7865 echo "saving argument cache $wx_arg_cache_file"
7866 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
698dcdb6 7867
10f2d63a 7868
698dcdb6
VZ
7869
7870echo $ac_n "checking for toolkit""... $ac_c" 1>&6
69d27ff7 7871echo "configure:7872: checking for toolkit" >&5
10f2d63a
VZ
7872
7873if test "$wxUSE_GUI" = "yes"; then
7874
3a922bb4
RL
7875 if test "$USE_BEOS" = 1; then
7876 { echo "configure: error: BeOS GUI is not supported yet, use --disable-gui" 1>&2; exit 1; }
7877 fi
b12915c1 7878
3a922bb4
RL
7879 if test "$TOOLKIT_GIVEN" = 1; then
7880 for toolkit in `echo $ALL_TOOLKITS`; do
7881 var=wxUSE_$toolkit
7882 eval "value=\$${var}"
7883 eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
7884 done
10f2d63a 7885 else
3a922bb4
RL
7886 for toolkit in `echo $ALL_TOOLKITS`; do
7887 if test "$has_toolkit_in_cache" != 1; then
7888 var=DEFAULT_DEFAULT_wxUSE_$toolkit
7889 else
7890 var=DEFAULT_wxUSE_$toolkit
7891 fi
7892 eval "wxUSE_$toolkit=\$${var}"
7893 done
10f2d63a 7894 fi
10f2d63a 7895
3a922bb4 7896 NUM_TOOLKITS=`expr ${wxUSE_GTK:-0} + ${wxUSE_MOTIF:-0} + ${wxUSE_MAC:-0} \
77e13408 7897 + ${wxUSE_WINE:-0} + ${wxUSE_MSW:-0} + ${wxUSE_MGL:-0}`
10f2d63a 7898
3a922bb4 7899 case "${host}" in
6fa882bd 7900 *-pc-os2_emx | *-pc-os2-emx )
3a922bb4
RL
7901 # PATH_IFS is autodetected by OS/2's configure (usually ';')
7902 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
7903 LEX_STEM="lexyy"
7904 ;;
7905 *)
7906 PATH_IFS=':'
7907 LEX_STEM="lex.yy"
7908 ;;
7909 esac
10f2d63a 7910
3a922bb4
RL
7911 case "$NUM_TOOLKITS" in
7912 1)
7913 ;;
7914 0)
7915 { echo "configure: error: Please specify a toolkit - cannot determine the default for ${host}" 1>&2; exit 1; }
7916 ;;
7917 *)
7918 { echo "configure: error: Please specify at most one toolkit (may be some are cached?)" 1>&2; exit 1; }
7919 esac
10f2d63a 7920
3a922bb4
RL
7921 for toolkit in `echo $ALL_TOOLKITS`; do
7922 var=wxUSE_$toolkit
7923 eval "value=\$${var}"
7924 if test "x$value" != x; then
7925 cache_var=CACHE_$toolkit
7926 eval "cache=\$${cache_var}"
7927 if test "$cache" = 1; then
7928 echo "$var=$value" >> ${wx_arg_cache_file}
7929 fi
7930 if test "$value" = 1; then
7931 toolkit_echo=`echo $toolkit | tr [A-Z] [a-z]`
7932 echo "$ac_t""$toolkit_echo" 1>&6
7933 fi
7934 fi
7935 done
10f2d63a 7936else
cf27ef00 7937 PATH_IFS=':'
3a922bb4 7938 echo "$ac_t""base ($host_alias hosted) only" 1>&6
10f2d63a
VZ
7939fi
7940
698dcdb6
VZ
7941
7942cat > confcache <<\EOF
10f2d63a
VZ
7943# This file is a shell script that caches the results of configure
7944# tests run on this system so they can be shared between configure
698dcdb6
VZ
7945# scripts and configure runs. It is not useful on other systems.
7946# If it contains results you don't want to keep, you may remove or edit it.
10f2d63a 7947#
698dcdb6
VZ
7948# By default, configure uses ./config.cache as the cache file,
7949# creating it if it does not exist already. You can give configure
7950# the --cache-file=FILE option to use a different cache file; that is
7951# what configure does when it calls configure scripts in
7952# subdirectories, so they share the cache.
7953# Giving --cache-file=/dev/null disables caching, for debugging configure.
7954# config.status only pays attention to the cache file if you give it the
7955# --recheck option to rerun configure.
10f2d63a 7956#
698dcdb6 7957EOF
10f2d63a
VZ
7958# The following way of writing the cache mishandles newlines in values,
7959# but we know of no workaround that is simple, portable, and efficient.
7960# So, don't put newlines in cache variables' values.
7961# Ultrix sh set writes to stderr and can't be redirected directly,
7962# and sets the high bit in the cache file unless we assign to the vars.
698dcdb6
VZ
7963(set) 2>&1 |
7964 case `(ac_space=' '; set | grep ac_space) 2>&1` in
7965 *ac_space=\ *)
7966 # `set' does not quote correctly, so add quotes (double-quote substitution
7967 # turns \\\\ into \\, and sed turns \\ into \).
7968 sed -n \
7969 -e "s/'/'\\\\''/g" \
7970 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
7971 ;;
7972 *)
7973 # `set' quotes correctly as required by POSIX, so do not add quotes.
7974 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
7975 ;;
7976 esac >> confcache
7977if cmp -s $cache_file confcache; then
7978 :
7979else
10f2d63a 7980 if test -w $cache_file; then
698dcdb6
VZ
7981 echo "updating cache $cache_file"
7982 cat confcache > $cache_file
10f2d63a
VZ
7983 else
7984 echo "not updating unwritable cache $cache_file"
7985 fi
7986fi
7987rm -f confcache
7988
698dcdb6 7989
e59890c3 7990if test "$build" != "$host" ; then
3a922bb4
RL
7991 if test "$USE_WIN32" = 1 ; then
7992 CC=$host_alias-gcc
7993 CXX=$host_alias-c++
7994 AR=$host_alias-ar
7995 RANLIB=$host_alias-ranlib
7996 DLLTOOL=$host_alias-dlltool
7997 RESCOMP=$host_alias-windres
7998 LD=$host_alias-ld
7999 NM=$host_alias-nm
8000 STRIP=$host_alias-strip
8001 else
8002 { echo "configure: error: $build_alias -> $host_alias cross compilation not supported yet." 1>&2; exit 1; }
8003 fi
10f2d63a
VZ
8004fi
8005
698dcdb6 8006# Extract the first word of "gcc", so it can be a program name with args.
1e487827 8007set dummy gcc; ac_word=$2
698dcdb6 8008echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
69d27ff7 8009echo "configure:8010: checking for $ac_word" >&5
698dcdb6
VZ
8010if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
8011 echo $ac_n "(cached) $ac_c" 1>&6
6232543b
VS
8012else
8013 if test -n "$CC"; then
8014 ac_cv_prog_CC="$CC" # Let the user override the test.
10f2d63a 8015else
698dcdb6
VZ
8016 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8017 ac_dummy="$PATH"
8018 for ac_dir in $ac_dummy; do
8019 test -z "$ac_dir" && ac_dir=.
8020 if test -f $ac_dir/$ac_word; then
8021 ac_cv_prog_CC="gcc"
8022 break
8023 fi
8024 done
8025 IFS="$ac_save_ifs"
10f2d63a 8026fi
6232543b 8027fi
698dcdb6 8028CC="$ac_cv_prog_CC"
6232543b 8029if test -n "$CC"; then
698dcdb6 8030 echo "$ac_t""$CC" 1>&6
1e487827 8031else
698dcdb6 8032 echo "$ac_t""no" 1>&6
1e487827 8033fi
6232543b 8034
1e487827
VS
8035if test -z "$CC"; then
8036 # Extract the first word of "cc", so it can be a program name with args.
8037set dummy cc; ac_word=$2
698dcdb6 8038echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
69d27ff7 8039echo "configure:8040: checking for $ac_word" >&5
698dcdb6
VZ
8040if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
8041 echo $ac_n "(cached) $ac_c" 1>&6
1e487827
VS
8042else
8043 if test -n "$CC"; then
8044 ac_cv_prog_CC="$CC" # Let the user override the test.
8045else
698dcdb6 8046 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1e487827 8047 ac_prog_rejected=no
698dcdb6
VZ
8048 ac_dummy="$PATH"
8049 for ac_dir in $ac_dummy; do
8050 test -z "$ac_dir" && ac_dir=.
8051 if test -f $ac_dir/$ac_word; then
8052 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
8053 ac_prog_rejected=yes
8054 continue
8055 fi
8056 ac_cv_prog_CC="cc"
8057 break
8058 fi
8059 done
8060 IFS="$ac_save_ifs"
1e487827
VS
8061if test $ac_prog_rejected = yes; then
8062 # We found a bogon in the path, so make sure we never use it.
8063 set dummy $ac_cv_prog_CC
8064 shift
698dcdb6 8065 if test $# -gt 0; then
1e487827
VS
8066 # We chose a different compiler from the bogus one.
8067 # However, it has the same basename, so the bogon will be chosen
8068 # first if we set CC to just the basename; use the full file name.
8069 shift
698dcdb6 8070 set dummy "$ac_dir/$ac_word" "$@"
1e487827
VS
8071 shift
8072 ac_cv_prog_CC="$@"
703e0a69 8073 fi
1e487827
VS
8074fi
8075fi
8076fi
698dcdb6 8077CC="$ac_cv_prog_CC"
1e487827 8078if test -n "$CC"; then
698dcdb6 8079 echo "$ac_t""$CC" 1>&6
703e0a69 8080else
698dcdb6 8081 echo "$ac_t""no" 1>&6
703e0a69 8082fi
1e487827 8083
698dcdb6
VZ
8084 if test -z "$CC"; then
8085 case "`uname -s`" in
8086 *win32* | *WIN32*)
8087 # Extract the first word of "cl", so it can be a program name with args.
8088set dummy cl; ac_word=$2
8089echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
69d27ff7 8090echo "configure:8091: checking for $ac_word" >&5
698dcdb6
VZ
8091if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
8092 echo $ac_n "(cached) $ac_c" 1>&6
1e487827
VS
8093else
8094 if test -n "$CC"; then
8095 ac_cv_prog_CC="$CC" # Let the user override the test.
703e0a69 8096else
698dcdb6
VZ
8097 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8098 ac_dummy="$PATH"
8099 for ac_dir in $ac_dummy; do
8100 test -z "$ac_dir" && ac_dir=.
8101 if test -f $ac_dir/$ac_word; then
8102 ac_cv_prog_CC="cl"
8103 break
8104 fi
8105 done
8106 IFS="$ac_save_ifs"
703e0a69 8107fi
1e487827 8108fi
698dcdb6 8109CC="$ac_cv_prog_CC"
1e487827 8110if test -n "$CC"; then
698dcdb6 8111 echo "$ac_t""$CC" 1>&6
1e487827 8112else
698dcdb6 8113 echo "$ac_t""no" 1>&6
1e487827 8114fi
698dcdb6
VZ
8115 ;;
8116 esac
8117 fi
8118 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1e487827
VS
8119fi
8120
698dcdb6 8121echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
69d27ff7 8122echo "configure:8123: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1e487827 8123
698dcdb6
VZ
8124ac_ext=c
8125# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8126ac_cpp='$CPP $CPPFLAGS'
8127ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8128ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8129cross_compiling=$ac_cv_prog_cc_cross
6232543b 8130
698dcdb6 8131cat > conftest.$ac_ext << EOF
1e487827 8132
69d27ff7 8133#line 8134 "configure"
1e487827
VS
8134#include "confdefs.h"
8135
698dcdb6
VZ
8136main(){return(0);}
8137EOF
69d27ff7 8138if { (eval echo configure:8139: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
8139 ac_cv_prog_cc_works=yes
8140 # If we can't run a trivial program, we are probably using a cross compiler.
8141 if (./conftest; exit) 2>/dev/null; then
8142 ac_cv_prog_cc_cross=no
8143 else
8144 ac_cv_prog_cc_cross=yes
8145 fi
8146else
8147 echo "configure: failed program was:" >&5
8148 cat conftest.$ac_ext >&5
8149 ac_cv_prog_cc_works=no
8150fi
8151rm -fr conftest*
8152ac_ext=c
8153# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8154ac_cpp='$CPP $CPPFLAGS'
8155ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8156ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8157cross_compiling=$ac_cv_prog_cc_cross
8158
8159echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
8160if test $ac_cv_prog_cc_works = no; then
8161 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
8162fi
8163echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
69d27ff7 8164echo "configure:8165: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
698dcdb6
VZ
8165echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
8166cross_compiling=$ac_cv_prog_cc_cross
8167
8168echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
69d27ff7 8169echo "configure:8170: checking whether we are using GNU C" >&5
698dcdb6
VZ
8170if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
8171 echo $ac_n "(cached) $ac_c" 1>&6
8172else
8173 cat > conftest.c <<EOF
8174#ifdef __GNUC__
8175 yes;
1e487827 8176#endif
698dcdb6 8177EOF
69d27ff7 8178if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:8179: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
698dcdb6
VZ
8179 ac_cv_prog_gcc=yes
8180else
8181 ac_cv_prog_gcc=no
8182fi
8183fi
1e487827 8184
698dcdb6 8185echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1e487827 8186
698dcdb6
VZ
8187if test $ac_cv_prog_gcc = yes; then
8188 GCC=yes
8189else
8190 GCC=
8191fi
1e487827 8192
698dcdb6
VZ
8193ac_test_CFLAGS="${CFLAGS+set}"
8194ac_save_CFLAGS="$CFLAGS"
8195CFLAGS=
8196echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
69d27ff7 8197echo "configure:8198: checking whether ${CC-cc} accepts -g" >&5
698dcdb6
VZ
8198if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
8199 echo $ac_n "(cached) $ac_c" 1>&6
8200else
8201 echo 'void f(){}' > conftest.c
8202if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
10f2d63a
VZ
8203 ac_cv_prog_cc_g=yes
8204else
698dcdb6 8205 ac_cv_prog_cc_g=no
10f2d63a 8206fi
698dcdb6
VZ
8207rm -f conftest*
8208
10f2d63a 8209fi
698dcdb6
VZ
8210
8211echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
10f2d63a 8212if test "$ac_test_CFLAGS" = set; then
698dcdb6 8213 CFLAGS="$ac_save_CFLAGS"
10f2d63a
VZ
8214elif test $ac_cv_prog_cc_g = yes; then
8215 if test "$GCC" = yes; then
8216 CFLAGS="-g -O2"
8217 else
8218 CFLAGS="-g"
8219 fi
8220else
8221 if test "$GCC" = yes; then
8222 CFLAGS="-O2"
8223 else
8224 CFLAGS=
8225 fi
8226fi
8227
8228
8229CFLAGS=`echo "$CFLAGS" | sed 's/-g//g'`
8230
698dcdb6 8231echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
69d27ff7 8232echo "configure:8233: checking how to run the C preprocessor" >&5
10f2d63a
VZ
8233# On Suns, sometimes $CPP names a directory.
8234if test -n "$CPP" && test -d "$CPP"; then
8235 CPP=
8236fi
8237if test -z "$CPP"; then
698dcdb6
VZ
8238if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
8239 echo $ac_n "(cached) $ac_c" 1>&6
8240else
8241 # This must be in double quotes, not single quotes, because CPP may get
8242 # substituted into the Makefile and "${CC-cc}" will confuse make.
8243 CPP="${CC-cc} -E"
10f2d63a 8244 # On the NeXT, cc -E runs the code through the compiler's parser,
698dcdb6
VZ
8245 # not just through cpp.
8246 cat > conftest.$ac_ext <<EOF
69d27ff7 8247#line 8248 "configure"
10f2d63a
VZ
8248#include "confdefs.h"
8249#include <assert.h>
698dcdb6
VZ
8250Syntax Error
8251EOF
8252ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
69d27ff7 8253{ (eval echo configure:8254: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
8254ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8255if test -z "$ac_err"; then
10f2d63a
VZ
8256 :
8257else
698dcdb6
VZ
8258 echo "$ac_err" >&5
8259 echo "configure: failed program was:" >&5
10f2d63a 8260 cat conftest.$ac_ext >&5
698dcdb6
VZ
8261 rm -rf conftest*
8262 CPP="${CC-cc} -E -traditional-cpp"
8263 cat > conftest.$ac_ext <<EOF
69d27ff7 8264#line 8265 "configure"
10f2d63a 8265#include "confdefs.h"
698dcdb6
VZ
8266#include <assert.h>
8267Syntax Error
8268EOF
8269ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
69d27ff7 8270{ (eval echo configure:8271: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
8271ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8272if test -z "$ac_err"; then
8273 :
10f2d63a 8274else
698dcdb6
VZ
8275 echo "$ac_err" >&5
8276 echo "configure: failed program was:" >&5
10f2d63a 8277 cat conftest.$ac_ext >&5
698dcdb6
VZ
8278 rm -rf conftest*
8279 CPP="${CC-cc} -nologo -E"
8280 cat > conftest.$ac_ext <<EOF
69d27ff7 8281#line 8282 "configure"
10f2d63a
VZ
8282#include "confdefs.h"
8283#include <assert.h>
698dcdb6
VZ
8284Syntax Error
8285EOF
8286ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
69d27ff7 8287{ (eval echo configure:8288: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
8288ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8289if test -z "$ac_err"; then
10f2d63a
VZ
8290 :
8291else
698dcdb6
VZ
8292 echo "$ac_err" >&5
8293 echo "configure: failed program was:" >&5
10f2d63a 8294 cat conftest.$ac_ext >&5
698dcdb6
VZ
8295 rm -rf conftest*
8296 CPP=/lib/cpp
10f2d63a 8297fi
698dcdb6 8298rm -f conftest*
10f2d63a 8299fi
698dcdb6 8300rm -f conftest*
703e0a69 8301fi
698dcdb6
VZ
8302rm -f conftest*
8303 ac_cv_prog_CPP="$CPP"
8304fi
8305 CPP="$ac_cv_prog_CPP"
10f2d63a 8306else
698dcdb6 8307 ac_cv_prog_CPP="$CPP"
10f2d63a 8308fi
698dcdb6 8309echo "$ac_t""$CPP" 1>&6
10f2d63a 8310
698dcdb6
VZ
8311if test $ac_cv_prog_gcc = yes; then
8312 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
69d27ff7 8313echo "configure:8314: checking whether ${CC-cc} needs -traditional" >&5
698dcdb6
VZ
8314if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
8315 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
8316else
8317 ac_pattern="Autoconf.*'x'"
698dcdb6 8318 cat > conftest.$ac_ext <<EOF
69d27ff7 8319#line 8320 "configure"
10f2d63a
VZ
8320#include "confdefs.h"
8321#include <sgtty.h>
8322Autoconf TIOCGETP
698dcdb6 8323EOF
10f2d63a
VZ
8324if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8325 egrep "$ac_pattern" >/dev/null 2>&1; then
698dcdb6 8326 rm -rf conftest*
10f2d63a
VZ
8327 ac_cv_prog_gcc_traditional=yes
8328else
698dcdb6 8329 rm -rf conftest*
10f2d63a
VZ
8330 ac_cv_prog_gcc_traditional=no
8331fi
8332rm -f conftest*
8333
698dcdb6 8334
10f2d63a 8335 if test $ac_cv_prog_gcc_traditional = no; then
698dcdb6 8336 cat > conftest.$ac_ext <<EOF
69d27ff7 8337#line 8338 "configure"
10f2d63a
VZ
8338#include "confdefs.h"
8339#include <termio.h>
8340Autoconf TCGETA
698dcdb6 8341EOF
10f2d63a
VZ
8342if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8343 egrep "$ac_pattern" >/dev/null 2>&1; then
698dcdb6 8344 rm -rf conftest*
10f2d63a
VZ
8345 ac_cv_prog_gcc_traditional=yes
8346fi
8347rm -f conftest*
8348
8349 fi
8350fi
698dcdb6
VZ
8351
8352echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
10f2d63a
VZ
8353 if test $ac_cv_prog_gcc_traditional = yes; then
8354 CC="$CC -traditional"
8355 fi
8356fi
8357
703e0a69 8358
698dcdb6
VZ
8359
8360ac_ext=C
8361# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1e487827 8362ac_cpp='$CXXCPP $CPPFLAGS'
698dcdb6
VZ
8363ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8364ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8365cross_compiling=$ac_cv_prog_cxx_cross
8366
8367
8368for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
8369do
8370# Extract the first word of "$ac_prog", so it can be a program name with args.
8371set dummy $ac_prog; ac_word=$2
8372echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
69d27ff7 8373echo "configure:8374: checking for $ac_word" >&5
698dcdb6
VZ
8374if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
8375 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
8376else
8377 if test -n "$CXX"; then
8378 ac_cv_prog_CXX="$CXX" # Let the user override the test.
8379else
698dcdb6
VZ
8380 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8381 ac_dummy="$PATH"
8382 for ac_dir in $ac_dummy; do
8383 test -z "$ac_dir" && ac_dir=.
8384 if test -f $ac_dir/$ac_word; then
8385 ac_cv_prog_CXX="$ac_prog"
8386 break
8387 fi
8388 done
8389 IFS="$ac_save_ifs"
10f2d63a
VZ
8390fi
8391fi
698dcdb6 8392CXX="$ac_cv_prog_CXX"
10f2d63a 8393if test -n "$CXX"; then
698dcdb6 8394 echo "$ac_t""$CXX" 1>&6
10f2d63a 8395else
698dcdb6 8396 echo "$ac_t""no" 1>&6
10f2d63a
VZ
8397fi
8398
698dcdb6 8399test -n "$CXX" && break
10f2d63a 8400done
698dcdb6 8401test -n "$CXX" || CXX="gcc"
10f2d63a
VZ
8402
8403
698dcdb6 8404echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
69d27ff7 8405echo "configure:8406: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
10f2d63a 8406
698dcdb6
VZ
8407ac_ext=C
8408# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8409ac_cpp='$CXXCPP $CPPFLAGS'
8410ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8411ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8412cross_compiling=$ac_cv_prog_cxx_cross
703e0a69 8413
698dcdb6
VZ
8414cat > conftest.$ac_ext << EOF
8415
69d27ff7 8416#line 8417 "configure"
10f2d63a
VZ
8417#include "confdefs.h"
8418
698dcdb6
VZ
8419int main(){return(0);}
8420EOF
69d27ff7 8421if { (eval echo configure:8422: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
8422 ac_cv_prog_cxx_works=yes
8423 # If we can't run a trivial program, we are probably using a cross compiler.
8424 if (./conftest; exit) 2>/dev/null; then
8425 ac_cv_prog_cxx_cross=no
8426 else
8427 ac_cv_prog_cxx_cross=yes
8428 fi
8429else
8430 echo "configure: failed program was:" >&5
8431 cat conftest.$ac_ext >&5
8432 ac_cv_prog_cxx_works=no
8433fi
8434rm -fr conftest*
8435ac_ext=C
8436# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8437ac_cpp='$CXXCPP $CPPFLAGS'
8438ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8439ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8440cross_compiling=$ac_cv_prog_cxx_cross
8441
8442echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
8443if test $ac_cv_prog_cxx_works = no; then
8444 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
8445fi
8446echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
69d27ff7 8447echo "configure:8448: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
698dcdb6
VZ
8448echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
8449cross_compiling=$ac_cv_prog_cxx_cross
8450
8451echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
69d27ff7 8452echo "configure:8453: checking whether we are using GNU C++" >&5
698dcdb6
VZ
8453if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
8454 echo $ac_n "(cached) $ac_c" 1>&6
8455else
8456 cat > conftest.C <<EOF
8457#ifdef __GNUC__
8458 yes;
10f2d63a 8459#endif
698dcdb6 8460EOF
69d27ff7 8461if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:8462: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
698dcdb6
VZ
8462 ac_cv_prog_gxx=yes
8463else
8464 ac_cv_prog_gxx=no
8465fi
8466fi
10f2d63a 8467
698dcdb6 8468echo "$ac_t""$ac_cv_prog_gxx" 1>&6
10f2d63a 8469
698dcdb6
VZ
8470if test $ac_cv_prog_gxx = yes; then
8471 GXX=yes
8472else
8473 GXX=
8474fi
10f2d63a 8475
698dcdb6
VZ
8476ac_test_CXXFLAGS="${CXXFLAGS+set}"
8477ac_save_CXXFLAGS="$CXXFLAGS"
8478CXXFLAGS=
8479echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
69d27ff7 8480echo "configure:8481: checking whether ${CXX-g++} accepts -g" >&5
698dcdb6
VZ
8481if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
8482 echo $ac_n "(cached) $ac_c" 1>&6
8483else
8484 echo 'void f(){}' > conftest.cc
8485if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
10f2d63a
VZ
8486 ac_cv_prog_cxx_g=yes
8487else
698dcdb6 8488 ac_cv_prog_cxx_g=no
10f2d63a 8489fi
698dcdb6
VZ
8490rm -f conftest*
8491
10f2d63a 8492fi
698dcdb6
VZ
8493
8494echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
10f2d63a 8495if test "$ac_test_CXXFLAGS" = set; then
698dcdb6 8496 CXXFLAGS="$ac_save_CXXFLAGS"
10f2d63a
VZ
8497elif test $ac_cv_prog_cxx_g = yes; then
8498 if test "$GXX" = yes; then
8499 CXXFLAGS="-g -O2"
8500 else
8501 CXXFLAGS="-g"
8502 fi
8503else
8504 if test "$GXX" = yes; then
8505 CXXFLAGS="-O2"
8506 else
8507 CXXFLAGS=
8508 fi
8509fi
8510
8511
10f2d63a
VZ
8512CXXFLAGS=`echo "$CXXFLAGS" | sed 's/-g//g'`
8513
8514ac_ext=c
698dcdb6 8515# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10f2d63a 8516ac_cpp='$CPP $CPPFLAGS'
698dcdb6
VZ
8517ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8518ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8519cross_compiling=$ac_cv_prog_cc_cross
8520
8521
8522# Extract the first word of "ranlib", so it can be a program name with args.
8523set dummy ranlib; ac_word=$2
8524echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
69d27ff7 8525echo "configure:8526: checking for $ac_word" >&5
698dcdb6
VZ
8526if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
8527 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
8528else
8529 if test -n "$RANLIB"; then
8530 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8531else
698dcdb6
VZ
8532 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8533 ac_dummy="$PATH"
8534 for ac_dir in $ac_dummy; do
8535 test -z "$ac_dir" && ac_dir=.
8536 if test -f $ac_dir/$ac_word; then
8537 ac_cv_prog_RANLIB="ranlib"
8538 break
8539 fi
8540 done
8541 IFS="$ac_save_ifs"
8542 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
10f2d63a
VZ
8543fi
8544fi
698dcdb6 8545RANLIB="$ac_cv_prog_RANLIB"
10f2d63a 8546if test -n "$RANLIB"; then
698dcdb6 8547 echo "$ac_t""$RANLIB" 1>&6
10f2d63a 8548else
698dcdb6 8549 echo "$ac_t""no" 1>&6
10f2d63a
VZ
8550fi
8551
8552
8553# Extract the first word of "ar", so it can be a program name with args.
8554set dummy ar; ac_word=$2
698dcdb6 8555echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
69d27ff7 8556echo "configure:8557: checking for $ac_word" >&5
698dcdb6
VZ
8557if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
8558 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
8559else
8560 if test -n "$AR"; then
8561 ac_cv_prog_AR="$AR" # Let the user override the test.
8562else
698dcdb6
VZ
8563 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8564 ac_dummy="$PATH"
8565 for ac_dir in $ac_dummy; do
8566 test -z "$ac_dir" && ac_dir=.
8567 if test -f $ac_dir/$ac_word; then
8568 ac_cv_prog_AR="ar"
8569 break
8570 fi
8571 done
8572 IFS="$ac_save_ifs"
10f2d63a
VZ
8573 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
8574fi
8575fi
698dcdb6 8576AR="$ac_cv_prog_AR"
10f2d63a 8577if test -n "$AR"; then
698dcdb6 8578 echo "$ac_t""$AR" 1>&6
10f2d63a 8579else
698dcdb6 8580 echo "$ac_t""no" 1>&6
10f2d63a
VZ
8581fi
8582
698dcdb6 8583
6054113a 8584# Find a good install program. We prefer a C program (faster),
10f2d63a
VZ
8585# so one script is as good as another. But avoid the broken or
8586# incompatible versions:
8587# SysV /etc/install, /usr/sbin/install
8588# SunOS /usr/etc/install
8589# IRIX /sbin/install
8590# AIX /bin/install
8591# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
8592# AFS /usr/afsws/bin/install, which mishandles nonexistent args
8593# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8594# ./install, which can be erroneously created by make from ./install.sh.
698dcdb6 8595echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
69d27ff7 8596echo "configure:8597: checking for a BSD compatible install" >&5
10f2d63a 8597if test -z "$INSTALL"; then
698dcdb6
VZ
8598if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
8599 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 8600else
698dcdb6 8601 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
10f2d63a
VZ
8602 for ac_dir in $PATH; do
8603 # Account for people who put trailing slashes in PATH elements.
698dcdb6
VZ
8604 case "$ac_dir/" in
8605 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
10f2d63a
VZ
8606 *)
8607 # OSF1 and SCO ODT 3.0 have their own names for install.
8608 # Don't use installbsd from OSF since it installs stuff as root
8609 # by default.
8610 for ac_prog in ginstall scoinst install; do
698dcdb6 8611 if test -f $ac_dir/$ac_prog; then
10f2d63a 8612 if test $ac_prog = install &&
698dcdb6 8613 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
10f2d63a
VZ
8614 # AIX install. It has an incompatible calling convention.
8615 :
8616 else
8617 ac_cv_path_install="$ac_dir/$ac_prog -c"
8618 break 2
8619 fi
8620 fi
8621 done
8622 ;;
8623 esac
8624 done
698dcdb6 8625 IFS="$ac_save_IFS"
10f2d63a
VZ
8626
8627fi
8628 if test "${ac_cv_path_install+set}" = set; then
698dcdb6 8629 INSTALL="$ac_cv_path_install"
10f2d63a
VZ
8630 else
8631 # As a last resort, use the slow shell script. We don't cache a
8632 # path for INSTALL within a source directory, because that will
8633 # break other packages using the cache if that directory is
8634 # removed, or if the path is relative.
698dcdb6 8635 INSTALL="$ac_install_sh"
10f2d63a
VZ
8636 fi
8637fi
698dcdb6 8638echo "$ac_t""$INSTALL" 1>&6
10f2d63a
VZ
8639
8640# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8641# It thinks the first close brace ends the variable substitution.
8642test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8643
698dcdb6 8644test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
10f2d63a
VZ
8645
8646test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8647
6054113a
GD
8648case "${host}" in
8649
b5853384 8650 powerpc-*-darwin* )
eb99ae0b
GD
8651 INSTALL_PROGRAM="cp -fp"
8652 INSTALL_DATA="cp -fp"
6054113a
GD
8653 ;;
8654 *)
8655 ;;
d6853540 8656esac
698dcdb6 8657
10f2d63a
VZ
8658# Extract the first word of "strip", so it can be a program name with args.
8659set dummy strip; ac_word=$2
698dcdb6 8660echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
69d27ff7 8661echo "configure:8662: checking for $ac_word" >&5
698dcdb6
VZ
8662if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
8663 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
8664else
8665 if test -n "$STRIP"; then
8666 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8667else
698dcdb6
VZ
8668 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8669 ac_dummy="$PATH"
8670 for ac_dir in $ac_dummy; do
8671 test -z "$ac_dir" && ac_dir=.
8672 if test -f $ac_dir/$ac_word; then
8673 ac_cv_prog_STRIP="strip"
8674 break
8675 fi
8676 done
8677 IFS="$ac_save_ifs"
10f2d63a
VZ
8678 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
8679fi
8680fi
698dcdb6 8681STRIP="$ac_cv_prog_STRIP"
10f2d63a 8682if test -n "$STRIP"; then
698dcdb6 8683 echo "$ac_t""$STRIP" 1>&6
10f2d63a 8684else
698dcdb6 8685 echo "$ac_t""no" 1>&6
10f2d63a
VZ
8686fi
8687
698dcdb6
VZ
8688
8689echo $ac_n "checking make for VPATH support""... $ac_c" 1>&6
69d27ff7 8690echo "configure:8691: checking make for VPATH support" >&5
10f2d63a
VZ
8691cat - << EOF > confMake
8692check : file
8693 cp \$? \$@
8694 cp \$? final_file
8695EOF
8696
8697if test ! -d sub ; then
8698 mkdir sub
8699fi
8700echo dummy > sub/file
f6bcfd97 8701${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
10f2d63a
VZ
8702RESULT=$?
8703rm -f sub/file check final_file confMake
8704rmdir sub
8705if test "$RESULT" = 0; then
698dcdb6 8706 echo "$ac_t""yes" 1>&6
10f2d63a 8707else
698dcdb6
VZ
8708 echo "$ac_t""no" 1>&6
8709 { echo "configure: error:
1e487827
VS
8710You need a make-utility that is able to use the variable
8711VPATH correctly.
8712If your version of make does not support VPATH correctly,
8713please install GNU-make (possibly as gmake), and start
8714configure with the following command:
8715export MAKE=gmake; ./configure for sh-type shells
8716setenv MAKE gmake; ./configure for csh-type shells
8717Also please do remember to use gmake in this case every time
8718you are trying to compile.
698dcdb6 8719" 1>&2; exit 1; }
10f2d63a
VZ
8720fi
8721
8722for ac_prog in 'bison -y' byacc
8723do
698dcdb6 8724# Extract the first word of "$ac_prog", so it can be a program name with args.
10f2d63a 8725set dummy $ac_prog; ac_word=$2
698dcdb6 8726echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
69d27ff7 8727echo "configure:8728: checking for $ac_word" >&5
698dcdb6
VZ
8728if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
8729 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
8730else
8731 if test -n "$YACC"; then
8732 ac_cv_prog_YACC="$YACC" # Let the user override the test.
8733else
698dcdb6
VZ
8734 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8735 ac_dummy="$PATH"
8736 for ac_dir in $ac_dummy; do
8737 test -z "$ac_dir" && ac_dir=.
8738 if test -f $ac_dir/$ac_word; then
8739 ac_cv_prog_YACC="$ac_prog"
8740 break
8741 fi
8742 done
8743 IFS="$ac_save_ifs"
10f2d63a
VZ
8744fi
8745fi
698dcdb6 8746YACC="$ac_cv_prog_YACC"
10f2d63a 8747if test -n "$YACC"; then
698dcdb6 8748 echo "$ac_t""$YACC" 1>&6
10f2d63a 8749else
698dcdb6 8750 echo "$ac_t""no" 1>&6
10f2d63a
VZ
8751fi
8752
698dcdb6 8753test -n "$YACC" && break
10f2d63a
VZ
8754done
8755test -n "$YACC" || YACC="yacc"
8756
698dcdb6
VZ
8757
8758# Extract the first word of "flex", so it can be a program name with args.
8759set dummy flex; ac_word=$2
8760echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
69d27ff7 8761echo "configure:8762: checking for $ac_word" >&5
698dcdb6
VZ
8762if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
8763 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
8764else
8765 if test -n "$LEX"; then
8766 ac_cv_prog_LEX="$LEX" # Let the user override the test.
8767else
698dcdb6
VZ
8768 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8769 ac_dummy="$PATH"
8770 for ac_dir in $ac_dummy; do
8771 test -z "$ac_dir" && ac_dir=.
8772 if test -f $ac_dir/$ac_word; then
8773 ac_cv_prog_LEX="flex"
8774 break
8775 fi
8776 done
8777 IFS="$ac_save_ifs"
8778 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
10f2d63a
VZ
8779fi
8780fi
698dcdb6 8781LEX="$ac_cv_prog_LEX"
10f2d63a 8782if test -n "$LEX"; then
698dcdb6 8783 echo "$ac_t""$LEX" 1>&6
10f2d63a 8784else
698dcdb6 8785 echo "$ac_t""no" 1>&6
10f2d63a
VZ
8786fi
8787
8788if test -z "$LEXLIB"
8789then
698dcdb6
VZ
8790 case "$LEX" in
8791 flex*) ac_lib=fl ;;
8792 *) ac_lib=l ;;
8793 esac
8794 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
69d27ff7 8795echo "configure:8796: checking for yywrap in -l$ac_lib" >&5
698dcdb6
VZ
8796ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
8797if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8798 echo $ac_n "(cached) $ac_c" 1>&6
8799else
8800 ac_save_LIBS="$LIBS"
8801LIBS="-l$ac_lib $LIBS"
8802cat > conftest.$ac_ext <<EOF
69d27ff7 8803#line 8804 "configure"
10f2d63a
VZ
8804#include "confdefs.h"
8805/* Override any gcc2 internal prototype to avoid an error. */
8806/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
8807 builtin and then its argument prototype would still apply. */
8808char yywrap();
10f2d63a 8809
698dcdb6
VZ
8810int main() {
8811yywrap()
8812; return 0; }
8813EOF
69d27ff7 8814if { (eval echo configure:8815: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
8815 rm -rf conftest*
8816 eval "ac_cv_lib_$ac_lib_var=yes"
10f2d63a 8817else
698dcdb6
VZ
8818 echo "configure: failed program was:" >&5
8819 cat conftest.$ac_ext >&5
8820 rm -rf conftest*
8821 eval "ac_cv_lib_$ac_lib_var=no"
10f2d63a 8822fi
698dcdb6
VZ
8823rm -f conftest*
8824LIBS="$ac_save_LIBS"
8825
10f2d63a 8826fi
698dcdb6
VZ
8827if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8828 echo "$ac_t""yes" 1>&6
8829 LEXLIB="-l$ac_lib"
8830else
8831 echo "$ac_t""no" 1>&6
10f2d63a
VZ
8832fi
8833
8834fi
8835
8836
698dcdb6 8837echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
69d27ff7 8838echo "configure:8839: checking whether ln -s works" >&5
698dcdb6
VZ
8839if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
8840 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 8841else
698dcdb6
VZ
8842 rm -f conftestdata
8843if ln -s X conftestdata 2>/dev/null
8844then
8845 rm -f conftestdata
8846 ac_cv_prog_LN_S="ln -s"
10f2d63a 8847else
698dcdb6 8848 ac_cv_prog_LN_S=ln
10f2d63a
VZ
8849fi
8850fi
698dcdb6
VZ
8851LN_S="$ac_cv_prog_LN_S"
8852if test "$ac_cv_prog_LN_S" = "ln -s"; then
8853 echo "$ac_t""yes" 1>&6
10f2d63a 8854else
698dcdb6 8855 echo "$ac_t""no" 1>&6
10f2d63a
VZ
8856fi
8857
8858
8859
8860SEARCH_INCLUDE="\
8861 /usr/local/include \
8862 \
8863 /usr/Motif-1.2/include \
8864 /usr/Motif-2.1/include \
8865 \
8866 /usr/include/Motif1.2 \
8867 /opt/xpm/include/X11 \
8868 /opt/GBxpm/include/ \
8869 /opt/GBxpm/X11/include/ \
8870 \
8871 /usr/Motif1.2/include \
8872 /usr/dt/include \
afc31813
VZ
8873 /usr/openwin/include \
8874 \
10f2d63a
VZ
8875 /usr/include/Xm \
8876 \
8877 /usr/X11R6/include \
afc31813 8878 /usr/X11R6.4/include \
10f2d63a
VZ
8879 /usr/X11R5/include \
8880 /usr/X11R4/include \
8881 \
10f2d63a
VZ
8882 /usr/include/X11R6 \
8883 /usr/include/X11R5 \
8884 /usr/include/X11R4 \
8885 \
8886 /usr/local/X11R6/include \
8887 /usr/local/X11R5/include \
8888 /usr/local/X11R4/include \
8889 \
8890 /usr/local/include/X11R6 \
8891 /usr/local/include/X11R5 \
8892 /usr/local/include/X11R4 \
8893 \
8894 /usr/X11/include \
8895 /usr/include/X11 \
8896 /usr/local/X11/include \
8897 /usr/local/include/X11 \
8898 \
8899 /usr/X386/include \
8900 /usr/x386/include \
8901 /usr/XFree86/include/X11 \
8902 \
cf27ef00 8903 X:/XFree86/include \
ec14dd32
VZ
8904 X:/XFree86/include/X11 \
8905 \
10f2d63a
VZ
8906 /usr/include/gtk \
8907 /usr/local/include/gtk \
8908 /usr/include/glib \
8909 /usr/local/include/glib \
8910 \
8911 /usr/include/qt \
8912 /usr/local/include/qt \
8913 \
8914 /usr/include/windows \
8915 /usr/include/wine \
8916 /usr/local/include/wine \
8917 \
8918 /usr/unsupported/include \
8919 /usr/athena/include \
8920 /usr/local/x11r5/include \
8921 /usr/lpp/Xamples/include \
8922 \
10f2d63a 8923 /usr/openwin/share/include \
928b5c08
VZ
8924 \
8925 /usr/include"
10f2d63a
VZ
8926
8927SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` "
8928
698dcdb6
VZ
8929
8930cat > confcache <<\EOF
10f2d63a
VZ
8931# This file is a shell script that caches the results of configure
8932# tests run on this system so they can be shared between configure
698dcdb6
VZ
8933# scripts and configure runs. It is not useful on other systems.
8934# If it contains results you don't want to keep, you may remove or edit it.
10f2d63a 8935#
698dcdb6
VZ
8936# By default, configure uses ./config.cache as the cache file,
8937# creating it if it does not exist already. You can give configure
8938# the --cache-file=FILE option to use a different cache file; that is
8939# what configure does when it calls configure scripts in
8940# subdirectories, so they share the cache.
8941# Giving --cache-file=/dev/null disables caching, for debugging configure.
8942# config.status only pays attention to the cache file if you give it the
8943# --recheck option to rerun configure.
10f2d63a 8944#
698dcdb6 8945EOF
10f2d63a
VZ
8946# The following way of writing the cache mishandles newlines in values,
8947# but we know of no workaround that is simple, portable, and efficient.
8948# So, don't put newlines in cache variables' values.
8949# Ultrix sh set writes to stderr and can't be redirected directly,
8950# and sets the high bit in the cache file unless we assign to the vars.
698dcdb6
VZ
8951(set) 2>&1 |
8952 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8953 *ac_space=\ *)
8954 # `set' does not quote correctly, so add quotes (double-quote substitution
8955 # turns \\\\ into \\, and sed turns \\ into \).
8956 sed -n \
8957 -e "s/'/'\\\\''/g" \
8958 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
8959 ;;
8960 *)
8961 # `set' quotes correctly as required by POSIX, so do not add quotes.
8962 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8963 ;;
8964 esac >> confcache
8965if cmp -s $cache_file confcache; then
8966 :
8967else
10f2d63a 8968 if test -w $cache_file; then
698dcdb6
VZ
8969 echo "updating cache $cache_file"
8970 cat confcache > $cache_file
10f2d63a
VZ
8971 else
8972 echo "not updating unwritable cache $cache_file"
8973 fi
8974fi
8975rm -f confcache
8976
698dcdb6
VZ
8977
8978
4f14bcd8 8979
18dbb1f6
VZ
8980REGEX_INCLUDE=
8981if test "$wxUSE_REGEX" != "no"; then
4f14bcd8
GD
8982 cat >> confdefs.h <<\EOF
8983#define wxUSE_REGEX 1
8984EOF
8985
8986
8987 if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
8988 ac_safe=`echo "regex.h" | sed 'y%./+-%__p_%'`
18dbb1f6 8989echo $ac_n "checking for regex.h""... $ac_c" 1>&6
69d27ff7 8990echo "configure:8991: checking for regex.h" >&5
18dbb1f6
VZ
8991if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8992 echo $ac_n "(cached) $ac_c" 1>&6
8993else
8994 cat > conftest.$ac_ext <<EOF
69d27ff7 8995#line 8996 "configure"
18dbb1f6
VZ
8996#include "confdefs.h"
8997#include <regex.h>
8998EOF
8999ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
69d27ff7 9000{ (eval echo configure:9001: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
18dbb1f6
VZ
9001ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9002if test -z "$ac_err"; then
9003 rm -rf conftest*
9004 eval "ac_cv_header_$ac_safe=yes"
9005else
9006 echo "$ac_err" >&5
9007 echo "configure: failed program was:" >&5
9008 cat conftest.$ac_ext >&5
9009 rm -rf conftest*
9010 eval "ac_cv_header_$ac_safe=no"
9011fi
9012rm -f conftest*
9013fi
9014if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9015 echo "$ac_t""yes" 1>&6
9016 for ac_func in regcomp
9017do
9018echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
69d27ff7 9019echo "configure:9020: checking for $ac_func" >&5
18dbb1f6
VZ
9020if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9021 echo $ac_n "(cached) $ac_c" 1>&6
9022else
9023 cat > conftest.$ac_ext <<EOF
69d27ff7 9024#line 9025 "configure"
18dbb1f6
VZ
9025#include "confdefs.h"
9026/* System header to define __stub macros and hopefully few prototypes,
9027 which can conflict with char $ac_func(); below. */
9028#include <assert.h>
9029/* Override any gcc2 internal prototype to avoid an error. */
9030/* We use char because int might match the return type of a gcc2
9031 builtin and then its argument prototype would still apply. */
9032char $ac_func();
9033
9034int main() {
9035
9036/* The GNU C library defines this for functions which it implements
9037 to always fail with ENOSYS. Some functions are actually named
9038 something starting with __ and the normal name is an alias. */
9039#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9040choke me
9041#else
9042$ac_func();
9043#endif
9044
9045; return 0; }
9046EOF
69d27ff7 9047if { (eval echo configure:9048: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18dbb1f6
VZ
9048 rm -rf conftest*
9049 eval "ac_cv_func_$ac_func=yes"
9050else
9051 echo "configure: failed program was:" >&5
9052 cat conftest.$ac_ext >&5
9053 rm -rf conftest*
9054 eval "ac_cv_func_$ac_func=no"
9055fi
9056rm -f conftest*
9057fi
9058
9059if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9060 echo "$ac_t""yes" 1>&6
9061 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9062 cat >> confdefs.h <<EOF
9063#define $ac_tr_func 1
9064EOF
9065
9066else
9067 echo "$ac_t""no" 1>&6
9068fi
9069done
9070
9071else
9072 echo "$ac_t""no" 1>&6
9073fi
9074
9075
4f14bcd8
GD
9076 if test "x$ac_cv_func_regcomp" != "xyes"; then
9077 if test "$wxUSE_REGEX" = "sys" ; then
9078 { echo "configure: error: system regex library not found! Use --with-regex to use built-in version" 1>&2; exit 1; }
9079 else
a3df447d 9080 echo "configure: warning: system regex library not found, will use built-in instead" 1>&2
4f14bcd8
GD
9081 wxUSE_REGEX=builtin
9082 fi
9083 else
9084 wxUSE_REGEX=sys
18dbb1f6 9085 fi
18dbb1f6
VZ
9086 fi
9087
4f14bcd8
GD
9088 if test "$wxUSE_REGEX" = "builtin" ; then
9089 REGEX_INCLUDE="-I\${top_srcdir}/src/regex"
9090 fi
18dbb1f6
VZ
9091fi
9092
9093
4f14bcd8
GD
9094ZLIB_INCLUDE=
9095ZLIB_LINK=
9096if test "$wxUSE_ZLIB" != "no" ; then
9097 cat >> confdefs.h <<\EOF
9098#define wxUSE_ZLIB 1
9099EOF
dad6c0ea 9100
10f2d63a 9101
4f14bcd8
GD
9102 if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
9103 ac_safe=`echo "zlib.h" | sed 'y%./+-%__p_%'`
9104echo $ac_n "checking for zlib.h""... $ac_c" 1>&6
69d27ff7 9105echo "configure:9106: checking for zlib.h" >&5
3a922bb4
RL
9106if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9107 echo $ac_n "(cached) $ac_c" 1>&6
9108else
9109 cat > conftest.$ac_ext <<EOF
69d27ff7 9110#line 9111 "configure"
3a922bb4 9111#include "confdefs.h"
4f14bcd8 9112#include <zlib.h>
3a922bb4
RL
9113EOF
9114ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
69d27ff7 9115{ (eval echo configure:9116: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3a922bb4
RL
9116ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9117if test -z "$ac_err"; then
9118 rm -rf conftest*
9119 eval "ac_cv_header_$ac_safe=yes"
9120else
9121 echo "$ac_err" >&5
9122 echo "configure: failed program was:" >&5
9123 cat conftest.$ac_ext >&5
9124 rm -rf conftest*
9125 eval "ac_cv_header_$ac_safe=no"
9126fi
9127rm -f conftest*
9128fi
9129if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9130 echo "$ac_t""yes" 1>&6
4f14bcd8 9131 echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
69d27ff7 9132echo "configure:9133: checking for deflate in -lz" >&5
4f14bcd8
GD
9133ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
9134if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9135 echo $ac_n "(cached) $ac_c" 1>&6
9136else
9137 ac_save_LIBS="$LIBS"
9138LIBS="-lz $LIBS"
9139cat > conftest.$ac_ext <<EOF
69d27ff7 9140#line 9141 "configure"
4f14bcd8
GD
9141#include "confdefs.h"
9142/* Override any gcc2 internal prototype to avoid an error. */
9143/* We use char because int might match the return type of a gcc2
9144 builtin and then its argument prototype would still apply. */
9145char deflate();
9146
9147int main() {
9148deflate()
9149; return 0; }
3a922bb4 9150EOF
69d27ff7 9151if { (eval echo configure:9152: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4f14bcd8
GD
9152 rm -rf conftest*
9153 eval "ac_cv_lib_$ac_lib_var=yes"
9154else
9155 echo "configure: failed program was:" >&5
9156 cat conftest.$ac_ext >&5
9157 rm -rf conftest*
9158 eval "ac_cv_lib_$ac_lib_var=no"
9159fi
9160rm -f conftest*
9161LIBS="$ac_save_LIBS"
9162
9163fi
9164if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9165 echo "$ac_t""yes" 1>&6
3d63bc3a 9166 ZLIB_LINK=" -lz"
3a922bb4
RL
9167else
9168 echo "$ac_t""no" 1>&6
9169fi
10f2d63a 9170
4f14bcd8
GD
9171else
9172 echo "$ac_t""no" 1>&6
9173fi
9174
9175
9176 if test "x$ZLIB_LINK" = "x" ; then
9177 if test "$wxUSE_ZLIB" = "sys" ; then
9178 { echo "configure: error: system zlib compression library not found! Use --with-zlib=builtin to use built-in version" 1>&2; exit 1; }
9179 else
a3df447d 9180 echo "configure: warning: system zlib compression library not found, will use built-in instead" 1>&2
4f14bcd8
GD
9181 wxUSE_ZLIB=builtin
9182 fi
9183 else
9184 wxUSE_ZLIB=sys
9185 fi
9186 fi
9187
9188 if test "$wxUSE_ZLIB" = "builtin" ; then
9189 ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib"
9190 fi
9191fi
9192
9193
9194PNG_INCLUDE=
9195PNG_LINK=
9196if test "$wxUSE_LIBPNG" != "no" ; then
9197 cat >> confdefs.h <<\EOF
9198#define wxUSE_LIBPNG 1
9199EOF
9200
9201
9202 if test "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
a3df447d 9203 echo "configure: warning: system png library doesn't work without system zlib, will use built-in instead" 1>&2
4f14bcd8
GD
9204 wxUSE_LIBPNG=builtin
9205 fi
9206
9207 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
9208 ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
9209echo $ac_n "checking for png.h""... $ac_c" 1>&6
69d27ff7 9210echo "configure:9211: checking for png.h" >&5
d4158b5d
VS
9211if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9212 echo $ac_n "(cached) $ac_c" 1>&6
9213else
9214 cat > conftest.$ac_ext <<EOF
69d27ff7 9215#line 9216 "configure"
d4158b5d 9216#include "confdefs.h"
4f14bcd8 9217#include <png.h>
d4158b5d
VS
9218EOF
9219ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
69d27ff7 9220{ (eval echo configure:9221: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d4158b5d
VS
9221ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9222if test -z "$ac_err"; then
9223 rm -rf conftest*
9224 eval "ac_cv_header_$ac_safe=yes"
9225else
9226 echo "$ac_err" >&5
9227 echo "configure: failed program was:" >&5
9228 cat conftest.$ac_ext >&5
9229 rm -rf conftest*
9230 eval "ac_cv_header_$ac_safe=no"
9231fi
9232rm -f conftest*
9233fi
9234if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9235 echo "$ac_t""yes" 1>&6
4f14bcd8 9236 echo $ac_n "checking for png_check_sig in -lpng""... $ac_c" 1>&6
69d27ff7 9237echo "configure:9238: checking for png_check_sig in -lpng" >&5
4f14bcd8
GD
9238ac_lib_var=`echo png'_'png_check_sig | sed 'y%./+-%__p_%'`
9239if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3a922bb4
RL
9240 echo $ac_n "(cached) $ac_c" 1>&6
9241else
4f14bcd8
GD
9242 ac_save_LIBS="$LIBS"
9243LIBS="-lpng -lz -lm $LIBS"
9244cat > conftest.$ac_ext <<EOF
69d27ff7 9245#line 9246 "configure"
3a922bb4 9246#include "confdefs.h"
4f14bcd8
GD
9247/* Override any gcc2 internal prototype to avoid an error. */
9248/* We use char because int might match the return type of a gcc2
9249 builtin and then its argument prototype would still apply. */
9250char png_check_sig();
f6bcfd97 9251
4f14bcd8
GD
9252int main() {
9253png_check_sig()
3a922bb4
RL
9254; return 0; }
9255EOF
69d27ff7 9256if { (eval echo configure:9257: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3a922bb4 9257 rm -rf conftest*
4f14bcd8 9258 eval "ac_cv_lib_$ac_lib_var=yes"
3a922bb4
RL
9259else
9260 echo "configure: failed program was:" >&5
9261 cat conftest.$ac_ext >&5
9262 rm -rf conftest*
4f14bcd8 9263 eval "ac_cv_lib_$ac_lib_var=no"
3a922bb4
RL
9264fi
9265rm -f conftest*
4f14bcd8 9266LIBS="$ac_save_LIBS"
10f2d63a 9267
4f14bcd8
GD
9268fi
9269if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9270 echo "$ac_t""yes" 1>&6
3d63bc3a 9271 PNG_LINK=" -lpng"
4f14bcd8
GD
9272else
9273 echo "$ac_t""no" 1>&6
9274fi
32832908 9275
4f14bcd8
GD
9276
9277else
9278 echo "$ac_t""no" 1>&6
9279fi
3a922bb4 9280
7b7a7637 9281
4f14bcd8
GD
9282 if test "x$PNG_LINK" = "x" ; then
9283 if test "$wxUSE_LIBPNG" = "sys" ; then
9284 { echo "configure: error: system png library not found! Use --with-libpng=builtin to use built-in version" 1>&2; exit 1; }
9285 else
a3df447d 9286 echo "configure: warning: system png library not found, will use built-in instead" 1>&2
4f14bcd8
GD
9287 wxUSE_LIBPNG=builtin
9288 fi
9289 else
9290 wxUSE_LIBPNG=yes
9291 fi
3a922bb4
RL
9292 fi
9293
4f14bcd8
GD
9294 if test "$wxUSE_LIBPNG" = "builtin" ; then
9295 PNG_INCLUDE="-I\${top_srcdir}/src/png"
3a922bb4
RL
9296 fi
9297
4f14bcd8 9298 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
3a922bb4
RL
9299fi
9300
32832908 9301
4f14bcd8
GD
9302JPEG_INCLUDE=
9303JPEG_LINK=
9304if test "$wxUSE_LIBJPEG" != "no" ; then
9305 cat >> confdefs.h <<\EOF
9306#define wxUSE_LIBJPEG 1
9307EOF
10f2d63a 9308
8168de4c 9309
4f14bcd8
GD
9310 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
9311 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
69d27ff7 9312echo "configure:9313: checking for jpeglib.h" >&5
4f14bcd8 9313 if eval "test \"`echo '$''{'ac_cv_header_jpeglib_h'+set}'`\" = set"; then
8168de4c
VZ
9314 echo $ac_n "(cached) $ac_c" 1>&6
9315else
4f14bcd8 9316 cat > conftest.$ac_ext <<EOF
69d27ff7 9317#line 9318 "configure"
4f14bcd8 9318#include "confdefs.h"
8168de4c 9319
4f14bcd8
GD
9320 #undef HAVE_STDLIB_H
9321 #include <stdio.h>
9322 #include <jpeglib.h>
9323
9324int main() {
9325
9326
9327; return 0; }
9328EOF
69d27ff7 9329if { (eval echo configure:9330: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4f14bcd8
GD
9330 rm -rf conftest*
9331 ac_cv_header_jpeglib_h=yes
6f72b082 9332else
4f14bcd8
GD
9333 echo "configure: failed program was:" >&5
9334 cat conftest.$ac_ext >&5
9335 rm -rf conftest*
9336 ac_cv_header_jpeglib_h=no
9337
9338fi
9339rm -f conftest*
9340
698dcdb6 9341fi
6f72b082 9342
4f14bcd8
GD
9343 echo "$ac_t""$ac_cv_header_jpeglib_h" 1>&6
9344
9345 if test "$ac_cv_header_jpeglib_h" = "yes"; then
9346 echo $ac_n "checking for jpeg_read_header in -ljpeg""... $ac_c" 1>&6
69d27ff7 9347echo "configure:9348: checking for jpeg_read_header in -ljpeg" >&5
4f14bcd8
GD
9348ac_lib_var=`echo jpeg'_'jpeg_read_header | sed 'y%./+-%__p_%'`
9349if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9350 echo $ac_n "(cached) $ac_c" 1>&6
6f72b082 9351else
4f14bcd8
GD
9352 ac_save_LIBS="$LIBS"
9353LIBS="-ljpeg $LIBS"
9354cat > conftest.$ac_ext <<EOF
69d27ff7 9355#line 9356 "configure"
4f14bcd8
GD
9356#include "confdefs.h"
9357/* Override any gcc2 internal prototype to avoid an error. */
9358/* We use char because int might match the return type of a gcc2
9359 builtin and then its argument prototype would still apply. */
9360char jpeg_read_header();
698dcdb6 9361
4f14bcd8
GD
9362int main() {
9363jpeg_read_header()
9364; return 0; }
9365EOF
69d27ff7 9366if { (eval echo configure:9367: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4f14bcd8
GD
9367 rm -rf conftest*
9368 eval "ac_cv_lib_$ac_lib_var=yes"
6f72b082 9369else
4f14bcd8
GD
9370 echo "configure: failed program was:" >&5
9371 cat conftest.$ac_ext >&5
9372 rm -rf conftest*
9373 eval "ac_cv_lib_$ac_lib_var=no"
698dcdb6 9374fi
4f14bcd8
GD
9375rm -f conftest*
9376LIBS="$ac_save_LIBS"
698dcdb6 9377
4f14bcd8
GD
9378fi
9379if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9380 echo "$ac_t""yes" 1>&6
3d63bc3a 9381 JPEG_LINK=" -ljpeg"
4f14bcd8
GD
9382else
9383 echo "$ac_t""no" 1>&6
9384fi
9385
9386 fi
9387
9388 if test "x$JPEG_LINK" = "x" ; then
9389 if test "$wxUSE_LIBJPEG" = "sys" ; then
9390 { echo "configure: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" 1>&2; exit 1; }
9391 else
a3df447d 9392 echo "configure: warning: system jpeg library not found, will use built-in instead" 1>&2
4f14bcd8
GD
9393 wxUSE_LIBJPEG=builtin
9394 fi
9395 else
9396 wxUSE_LIBJPEG=sys
9397 fi
9398 fi
9399
9400 if test "$wxUSE_LIBJPEG" = "builtin" ; then
9401 JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg"
9402 fi
9403fi
9404
9405
9406TIFF_INCLUDE=
9407TIFF_LINK=
9408if test "$wxUSE_LIBTIFF" != "no" ; then
9409 cat >> confdefs.h <<\EOF
9410#define wxUSE_LIBTIFF 1
9411EOF
9412
9413
9414 if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
9415 ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
9416echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
69d27ff7 9417echo "configure:9418: checking for tiffio.h" >&5
4f14bcd8
GD
9418if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9419 echo $ac_n "(cached) $ac_c" 1>&6
9420else
9421 cat > conftest.$ac_ext <<EOF
69d27ff7 9422#line 9423 "configure"
4f14bcd8
GD
9423#include "confdefs.h"
9424#include <tiffio.h>
9425EOF
9426ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
69d27ff7 9427{ (eval echo configure:9428: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4f14bcd8
GD
9428ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9429if test -z "$ac_err"; then
9430 rm -rf conftest*
9431 eval "ac_cv_header_$ac_safe=yes"
9432else
9433 echo "$ac_err" >&5
9434 echo "configure: failed program was:" >&5
9435 cat conftest.$ac_ext >&5
9436 rm -rf conftest*
9437 eval "ac_cv_header_$ac_safe=no"
9438fi
9439rm -f conftest*
9440fi
9441if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9442 echo "$ac_t""yes" 1>&6
9443 echo $ac_n "checking for TIFFError in -ltiff""... $ac_c" 1>&6
69d27ff7 9444echo "configure:9445: checking for TIFFError in -ltiff" >&5
4f14bcd8
GD
9445ac_lib_var=`echo tiff'_'TIFFError | sed 'y%./+-%__p_%'`
9446if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9447 echo $ac_n "(cached) $ac_c" 1>&6
9448else
9449 ac_save_LIBS="$LIBS"
9450LIBS="-ltiff -lm $LIBS"
9451cat > conftest.$ac_ext <<EOF
69d27ff7 9452#line 9453 "configure"
4f14bcd8
GD
9453#include "confdefs.h"
9454/* Override any gcc2 internal prototype to avoid an error. */
9455/* We use char because int might match the return type of a gcc2
9456 builtin and then its argument prototype would still apply. */
9457char TIFFError();
9458
9459int main() {
9460TIFFError()
9461; return 0; }
9462EOF
69d27ff7 9463if { (eval echo configure:9464: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4f14bcd8
GD
9464 rm -rf conftest*
9465 eval "ac_cv_lib_$ac_lib_var=yes"
9466else
9467 echo "configure: failed program was:" >&5
9468 cat conftest.$ac_ext >&5
9469 rm -rf conftest*
9470 eval "ac_cv_lib_$ac_lib_var=no"
9471fi
9472rm -f conftest*
9473LIBS="$ac_save_LIBS"
9474
9475fi
9476if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9477 echo "$ac_t""yes" 1>&6
3d63bc3a 9478 TIFF_LINK=" -ltiff"
4f14bcd8
GD
9479else
9480 echo "$ac_t""no" 1>&6
9481fi
9482
9483
9484else
9485 echo "$ac_t""no" 1>&6
9486fi
9487
9488
9489 if test "x$TIFF_LINK" = "x" ; then
9490 if test "$wxUSE_LIBTIFF" = "sys" ; then
9491 { echo "configure: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" 1>&2; exit 1; }
9492 else
a3df447d 9493 echo "configure: warning: system tiff library not found, will use built-in instead" 1>&2
4f14bcd8
GD
9494 wxUSE_LIBTIFF=builtin
9495 fi
9496 else
9497 wxUSE_LIBTIFF=sys
9498 fi
9499 fi
9500
9501 if test "$wxUSE_LIBTIFF" = "builtin" ; then
9502 TIFF_INCLUDE="-I\${top_srcdir}/src/tiff"
9503 fi
9504fi
9505
9506
9507FREETYPE_INCLUDE=
9508FREETYPE_LINK=
9509if test "$wxUSE_FREETYPE" != "no" ; then
9510 cat >> confdefs.h <<\EOF
9511#define wxUSE_FREETYPE 1
9512EOF
9513
9514
9515 if test "$wxUSE_FREETYPE" = "sys" -o "$wxUSE_FREETYPE" = "yes" ; then
9516 ac_safe=`echo "freetype.h" | sed 'y%./+-%__p_%'`
9517echo $ac_n "checking for freetype.h""... $ac_c" 1>&6
69d27ff7 9518echo "configure:9519: checking for freetype.h" >&5
4f14bcd8
GD
9519if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9520 echo $ac_n "(cached) $ac_c" 1>&6
9521else
9522 cat > conftest.$ac_ext <<EOF
69d27ff7 9523#line 9524 "configure"
4f14bcd8
GD
9524#include "confdefs.h"
9525#include <freetype.h>
9526EOF
9527ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
69d27ff7 9528{ (eval echo configure:9529: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4f14bcd8
GD
9529ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9530if test -z "$ac_err"; then
9531 rm -rf conftest*
9532 eval "ac_cv_header_$ac_safe=yes"
9533else
9534 echo "$ac_err" >&5
9535 echo "configure: failed program was:" >&5
9536 cat conftest.$ac_ext >&5
9537 rm -rf conftest*
9538 eval "ac_cv_header_$ac_safe=no"
9539fi
9540rm -f conftest*
9541fi
9542if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9543 echo "$ac_t""yes" 1>&6
9544 echo $ac_n "checking for FT_Render_Glyph in -lfreetype""... $ac_c" 1>&6
69d27ff7 9545echo "configure:9546: checking for FT_Render_Glyph in -lfreetype" >&5
4f14bcd8
GD
9546ac_lib_var=`echo freetype'_'FT_Render_Glyph | sed 'y%./+-%__p_%'`
9547if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9548 echo $ac_n "(cached) $ac_c" 1>&6
9549else
9550 ac_save_LIBS="$LIBS"
9551LIBS="-lfreetype -lm $LIBS"
9552cat > conftest.$ac_ext <<EOF
69d27ff7 9553#line 9554 "configure"
4f14bcd8
GD
9554#include "confdefs.h"
9555/* Override any gcc2 internal prototype to avoid an error. */
9556/* We use char because int might match the return type of a gcc2
9557 builtin and then its argument prototype would still apply. */
9558char FT_Render_Glyph();
9559
9560int main() {
9561FT_Render_Glyph()
9562; return 0; }
9563EOF
69d27ff7 9564if { (eval echo configure:9565: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4f14bcd8
GD
9565 rm -rf conftest*
9566 eval "ac_cv_lib_$ac_lib_var=yes"
9567else
9568 echo "configure: failed program was:" >&5
9569 cat conftest.$ac_ext >&5
9570 rm -rf conftest*
9571 eval "ac_cv_lib_$ac_lib_var=no"
9572fi
9573rm -f conftest*
9574LIBS="$ac_save_LIBS"
9575
9576fi
9577if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9578 echo "$ac_t""yes" 1>&6
3d63bc3a 9579 FREETYPE_LINK=" -lfreetype"
4f14bcd8
GD
9580else
9581 echo "$ac_t""no" 1>&6
9582fi
9583
9584
9585else
9586 echo "$ac_t""no" 1>&6
9587fi
9588
9589
9590 if test "x$FREETYPE_LINK" = "x" ; then
9591 if test "$wxUSE_FREETYPE" = "sys" ; then
9592 { echo "configure: error: system freetype library not found! Use --with-freetype=builtin to use built-in version" 1>&2; exit 1; }
9593 else
a3df447d 9594 echo "configure: warning: system freetype library not found, will use built-in instead" 1>&2
4f14bcd8
GD
9595 wxUSE_FREETYPE=builtin
9596 fi
9597 else
9598 wxUSE_FREETYPE=sys
9599 fi
9600 fi
9601
9602 if test "$wxUSE_FREETYPE" = "builtin" ; then
9603 FREETYPE_INCLUDE="-I\${top_srcdir}/src/freetype"
9604 fi
9605fi
9606
9607
9608AFMINSTALL=
9609
9610TOOLKIT=
9611TOOLKIT_INCLUDE=
9612WIDGET_SET=
9613
9614if test "$USE_WIN32" = 1 ; then
9615 for ac_hdr in w32api.h
9616do
9617ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9618echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
69d27ff7 9619echo "configure:9620: checking for $ac_hdr" >&5
4f14bcd8
GD
9620if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9621 echo $ac_n "(cached) $ac_c" 1>&6
9622else
9623 cat > conftest.$ac_ext <<EOF
69d27ff7 9624#line 9625 "configure"
4f14bcd8
GD
9625#include "confdefs.h"
9626#include <$ac_hdr>
9627EOF
9628ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
69d27ff7 9629{ (eval echo configure:9630: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4f14bcd8
GD
9630ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9631if test -z "$ac_err"; then
9632 rm -rf conftest*
9633 eval "ac_cv_header_$ac_safe=yes"
9634else
9635 echo "$ac_err" >&5
9636 echo "configure: failed program was:" >&5
9637 cat conftest.$ac_ext >&5
9638 rm -rf conftest*
9639 eval "ac_cv_header_$ac_safe=no"
9640fi
9641rm -f conftest*
9642fi
9643if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9644 echo "$ac_t""yes" 1>&6
9645 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9646 cat >> confdefs.h <<EOF
9647#define $ac_tr_hdr 1
9648EOF
9649
9650else
9651 echo "$ac_t""no" 1>&6
9652fi
9653done
9654
9655 ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'`
9656echo $ac_n "checking for windows.h""... $ac_c" 1>&6
69d27ff7 9657echo "configure:9658: checking for windows.h" >&5
4f14bcd8
GD
9658if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9659 echo $ac_n "(cached) $ac_c" 1>&6
9660else
9661 cat > conftest.$ac_ext <<EOF
69d27ff7 9662#line 9663 "configure"
4f14bcd8
GD
9663#include "confdefs.h"
9664#include <windows.h>
9665EOF
9666ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
69d27ff7 9667{ (eval echo configure:9668: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4f14bcd8
GD
9668ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9669if test -z "$ac_err"; then
9670 rm -rf conftest*
9671 eval "ac_cv_header_$ac_safe=yes"
9672else
9673 echo "$ac_err" >&5
9674 echo "configure: failed program was:" >&5
9675 cat conftest.$ac_ext >&5
9676 rm -rf conftest*
9677 eval "ac_cv_header_$ac_safe=no"
9678fi
9679rm -f conftest*
9680fi
9681if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9682 echo "$ac_t""yes" 1>&6
9683 :
9684else
9685 echo "$ac_t""no" 1>&6
9686
9687 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
9688
9689fi
9690
9691
9692 echo $ac_n "checking if w32api has good enough MSIE support""... $ac_c" 1>&6
69d27ff7 9693echo "configure:9694: checking if w32api has good enough MSIE support" >&5
ea7682f0 9694if eval "test \"`echo '$''{'wx_cv_w32api_win32_ie'+set}'`\" = set"; then
4f14bcd8
GD
9695 echo $ac_n "(cached) $ac_c" 1>&6
9696else
9697
9698 cat > conftest.$ac_ext <<EOF
69d27ff7 9699#line 9700 "configure"
4f14bcd8
GD
9700#include "confdefs.h"
9701#include <w32api.h>
9702int main() {
9703
9704 #define wxCHECK_W32API_VERSION( major, minor ) \
9705 ( defined( __W32API_MAJOR_VERSION ) && defined( __W32API_MINOR_VERSION ) \
9706 && ( ( __W32API_MAJOR_VERSION > (major) ) \
9707 || ( __W32API_MAJOR_VERSION == (major) && __W32API_MINOR_VERSION >= (minor))))
9708
9709 #if !wxCHECK_W32API_VERSION(1,1)
9710 #error You need w32api 1.1 or newer
9711 #endif
9712
9713; return 0; }
9714EOF
69d27ff7 9715if { (eval echo configure:9716: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4f14bcd8
GD
9716 rm -rf conftest*
9717
ea7682f0 9718 wx_cv_w32api_win32_ie=yes
4f14bcd8
GD
9719
9720else
9721 echo "configure: failed program was:" >&5
9722 cat conftest.$ac_ext >&5
9723 rm -rf conftest*
9724
ea7682f0 9725 wx_cv_w32api_win32_ie=no
4f14bcd8
GD
9726
9727fi
9728rm -f conftest*
9729
9730fi
9731
ea7682f0
VS
9732echo "$ac_t""$wx_cv_w32api_win32_ie" 1>&6
9733 if test "$wx_cv_w32api_win32_ie" = "yes" ; then
9734 CPPFLAGS="$CPPFLAGS -D_WIN32_IE=0x400"
9735 fi
4f14bcd8
GD
9736
9737 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -ladvapi32 -lwsock32"
9738
77e13408
RL
9739 case "${host}" in
9740 *-*-cygwin* )
9741 LIBS="$LIBS -lkernel32 -luser32 -lgdi32 -lcomdlg32"
9742 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__"
9743 esac
4f14bcd8
GD
9744
9745 if test "$wxUSE_ODBC" = "yes" ; then
3d63bc3a 9746 LIBS=" -lodbc32 -lole32 -loleaut32$LIBS"
4f14bcd8
GD
9747 fi
9748
4f14bcd8
GD
9749 RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
9750 RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
9751fi
9752
9753if test "$wxUSE_GUI" = "yes"; then
9754 USE_GUI=1
9755
9756 GUI_TK_LIBRARY=
9757
9758 WXGTK12=
9759 WXGTK127=
9760 WXGTK20=
9761
77e13408 9762 if test "$wxUSE_MSW" = 1 ; then
4f14bcd8
GD
9763 TOOLKIT=MSW
9764 GUIDIST=MSW_DIST
77e13408
RL
9765
9766 case "${host}" in
9767 *-*-mingw32* )
3d63bc3a 9768 LDFLAGS="$LDFLAGS -Wl,--subsystem,windows -mwindows"
77e13408 9769 esac
4f14bcd8
GD
9770 fi
9771
9772 if test "$wxUSE_GTK" = 1; then
9773 echo $ac_n "checking for GTK+ version""... $ac_c" 1>&6
69d27ff7 9774echo "configure:9775: checking for GTK+ version" >&5
4f14bcd8
GD
9775
9776 gtk_version_cached=1
9777 if eval "test \"`echo '$''{'wx_cv_lib_gtk'+set}'`\" = set"; then
9778 echo $ac_n "(cached) $ac_c" 1>&6
9779else
9780
9781 gtk_version_cached=0
d48ad9bd 9782 echo "$ac_t""" 1>&6
4f14bcd8
GD
9783
9784 wx_cv_lib_gtk=
9785 if test "x$wxUSE_GTK2" = "xyes"; then
9786 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
9787if test "${with_gtk_prefix+set}" = set; then
9788 withval="$with_gtk_prefix"
9789 gtk_config_prefix="$withval"
9790else
9791 gtk_config_prefix=""
9792fi
9793
9794# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
9795if test "${with_gtk_exec_prefix+set}" = set; then
9796 withval="$with_gtk_exec_prefix"
9797 gtk_config_exec_prefix="$withval"
9798else
9799 gtk_config_exec_prefix=""
9800fi
9801
9802# Check whether --enable-gtktest or --disable-gtktest was given.
9803if test "${enable_gtktest+set}" = set; then
9804 enableval="$enable_gtktest"
9805 :
9806else
9807 enable_gtktest=yes
9808fi
9809
9810
9811 for module in .
9812 do
6f72b082 9813 case "$module" in
8168de4c 9814 gthread)
6f72b082
OK
9815 gtk_config_args="$gtk_config_args gthread"
9816 ;;
9817 esac
9818 done
9819
9820 if test x$gtk_config_exec_prefix != x ; then
9821 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
9822 if test x${GTK_CONFIG_2_0+set} != xset ; then
9823 GTK_CONFIG_2_0=$gtk_config_exec_prefix/bin/gtk-config-2.0
9824 fi
9825 fi
9826 if test x$gtk_config_prefix != x ; then
9827 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
9828 if test x${GTK_CONFIG_2_0+set} != xset ; then
9829 GTK_CONFIG_2_0=$gtk_config_prefix/bin/gtk-config-2.0
9830 fi
9831 fi
9832
9833 # Extract the first word of "gtk-config-2.0", so it can be a program name with args.
9834set dummy gtk-config-2.0; ac_word=$2
698dcdb6 9835echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
69d27ff7 9836echo "configure:9837: checking for $ac_word" >&5
698dcdb6
VZ
9837if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG_2_0'+set}'`\" = set"; then
9838 echo $ac_n "(cached) $ac_c" 1>&6
6f72b082 9839else
698dcdb6
VZ
9840 case "$GTK_CONFIG_2_0" in
9841 /*)
6f72b082
OK
9842 ac_cv_path_GTK_CONFIG_2_0="$GTK_CONFIG_2_0" # Let the user override the test with a path.
9843 ;;
698dcdb6
VZ
9844 ?:/*)
9845 ac_cv_path_GTK_CONFIG_2_0="$GTK_CONFIG_2_0" # Let the user override the test with a dos path.
9846 ;;
6f72b082 9847 *)
698dcdb6
VZ
9848 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9849 ac_dummy="$PATH"
9850 for ac_dir in $ac_dummy; do
9851 test -z "$ac_dir" && ac_dir=.
9852 if test -f $ac_dir/$ac_word; then
9853 ac_cv_path_GTK_CONFIG_2_0="$ac_dir/$ac_word"
9854 break
9855 fi
9856 done
9857 IFS="$ac_save_ifs"
6f72b082
OK
9858 test -z "$ac_cv_path_GTK_CONFIG_2_0" && ac_cv_path_GTK_CONFIG_2_0="no"
9859 ;;
9860esac
9861fi
698dcdb6 9862GTK_CONFIG_2_0="$ac_cv_path_GTK_CONFIG_2_0"
6f72b082 9863if test -n "$GTK_CONFIG_2_0"; then
698dcdb6 9864 echo "$ac_t""$GTK_CONFIG_2_0" 1>&6
6f72b082 9865else
698dcdb6 9866 echo "$ac_t""no" 1>&6
6f72b082
OK
9867fi
9868
9869 min_gtk_version=1.3.1
698dcdb6 9870 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
69d27ff7 9871echo "configure:9872: checking for GTK - version >= $min_gtk_version" >&5
6f72b082
OK
9872 no_gtk=""
9873 if test "$GTK_CONFIG_2_0" = "no" ; then
9874 no_gtk=yes
9875 else
9876 GTK_CFLAGS=`$GTK_CONFIG_2_0 $gtk_config_args --cflags`
9877 GTK_LIBS=`$GTK_CONFIG_2_0 $gtk_config_args --libs`
9878 gtk_config_major_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \
9879 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
9880 gtk_config_minor_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \
9881 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
9882 gtk_config_micro_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \
9883 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
9884 if test "x$enable_gtktest" = "xyes" ; then
9885 ac_save_CFLAGS="$CFLAGS"
9886 ac_save_LIBS="$LIBS"
9887 CFLAGS="$CFLAGS $GTK_CFLAGS"
9888 LIBS="$GTK_LIBS $LIBS"
9889 rm -f conf.gtktest
9890 if test "$cross_compiling" = yes; then
9891 echo $ac_n "cross compiling; assumed OK... $ac_c"
9892else
698dcdb6 9893 cat > conftest.$ac_ext <<EOF
69d27ff7 9894#line 9895 "configure"
6f72b082
OK
9895#include "confdefs.h"
9896
9897#include <gtk/gtk.h>
9898#include <stdio.h>
9899#include <stdlib.h>
9900
8168de4c 9901int
6f72b082
OK
9902main ()
9903{
9904 int major, minor, micro;
9905 char *tmp_version;
9906
9907 system ("touch conf.gtktest");
9908
9909 /* HP/UX 9 (%@#!) writes to sscanf strings */
9910 tmp_version = g_strdup("$min_gtk_version");
9911 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
9912 printf("%s, bad version string\n", "$min_gtk_version");
9913 exit(1);
9914 }
9915
9916 if ((gtk_major_version != $gtk_config_major_version) ||
9917 (gtk_minor_version != $gtk_config_minor_version) ||
9918 (gtk_micro_version != $gtk_config_micro_version))
9919 {
8168de4c 9920 printf("\n*** 'gtk-config-2.0 --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
6f72b082
OK
9921 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
9922 gtk_major_version, gtk_minor_version, gtk_micro_version);
9923 printf ("*** was found! If gtk-config-2.0 was correct, then it is best\n");
9924 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
9925 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
9926 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
9927 printf("*** required on your system.\n");
9928 printf("*** If gtk-config-2.0 was wrong, set the environment variable GTK_CONFIG_2_0\n");
9929 printf("*** to point to the correct copy of gtk-config-2.0, and remove the file config.cache\n");
9930 printf("*** before re-running configure\n");
8168de4c 9931 }
6f72b082
OK
9932#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
9933 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
8168de4c 9934 (gtk_minor_version != GTK_MINOR_VERSION) ||
6f72b082
OK
9935 (gtk_micro_version != GTK_MICRO_VERSION))
9936 {
9937 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
8168de4c 9938 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
6f72b082 9939 printf("*** library (version %d.%d.%d)\n",
8168de4c 9940 gtk_major_version, gtk_minor_version, gtk_micro_version);
6f72b082
OK
9941 }
9942#endif /* defined (GTK_MAJOR_VERSION) ... */
9943 else
9944 {
9945 if ((gtk_major_version > major) ||
9946 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
9947 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
9948 {
9949 return 0;
9950 }
9951 else
9952 {
9953 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
9954 gtk_major_version, gtk_minor_version, gtk_micro_version);
9955 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
8168de4c 9956 major, minor, micro);
6f72b082
OK
9957 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
9958 printf("***\n");
9959 printf("*** If you have already installed a sufficiently new version, this error\n");
9960 printf("*** probably means that the wrong copy of the gtk-config-2.0 shell script is\n");
9961 printf("*** being found. The easiest way to fix this is to remove the old version\n");
9962 printf("*** of GTK+, but you can also set the GTK_CONFIG_2_0 environment to point to the\n");
9963 printf("*** correct copy of gtk-config-2.0. (In this case, you will have to\n");
9964 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
9965 printf("*** so that the correct libraries are found at run-time))\n");
9966 }
9967 }
9968 return 1;
9969}
9970
698dcdb6 9971EOF
69d27ff7 9972if { (eval echo configure:9973: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6 9973then
6f72b082
OK
9974 :
9975else
698dcdb6
VZ
9976 echo "configure: failed program was:" >&5
9977 cat conftest.$ac_ext >&5
9978 rm -fr conftest*
9979 no_gtk=yes
6f72b082 9980fi
698dcdb6 9981rm -fr conftest*
6f72b082 9982fi
698dcdb6 9983
6f72b082
OK
9984 CFLAGS="$ac_save_CFLAGS"
9985 LIBS="$ac_save_LIBS"
9986 fi
9987 fi
9988 if test "x$no_gtk" = x ; then
698dcdb6 9989 echo "$ac_t""yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" 1>&6
8168de4c 9990 wx_cv_lib_gtk=2.0
6f72b082 9991 else
698dcdb6 9992 echo "$ac_t""no" 1>&6
6f72b082
OK
9993 if test "$GTK_CONFIG_2_0" = "no" ; then
9994 echo "*** The gtk-config-2.0 script installed by GTK could not be found"
9995 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
9996 echo "*** your path, or set the GTK_CONFIG_2_0 environment variable to the"
9997 echo "*** full path to gtk-config-2.0."
9998 else
9999 if test -f conf.gtktest ; then
10000 :
10001 else
10002 echo "*** Could not run GTK test program, checking why..."
10003 CFLAGS="$CFLAGS $GTK_CFLAGS"
10004 LIBS="$LIBS $GTK_LIBS"
698dcdb6 10005 cat > conftest.$ac_ext <<EOF
69d27ff7 10006#line 10007 "configure"
6f72b082
OK
10007#include "confdefs.h"
10008
10009#include <gtk/gtk.h>
10010#include <stdio.h>
10011
698dcdb6
VZ
10012int main() {
10013 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
10014; return 0; }
10015EOF
69d27ff7 10016if { (eval echo configure:10017: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 10017 rm -rf conftest*
6f72b082
OK
10018 echo "*** The test program compiled, but did not run. This usually means"
10019 echo "*** that the run-time linker is not finding GTK or finding the wrong"
10020 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
10021 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
10022 echo "*** to the installed location Also, make sure you have run ldconfig if that"
10023 echo "*** is required on your system"
8168de4c 10024 echo "***"
6f72b082
OK
10025 echo "*** If you have an old version installed, it is best to remove it, although"
10026 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
10027 echo "***"
10028 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
10029 echo "*** came with the system with the command"
10030 echo "***"
698dcdb6 10031 echo "*** rpm --erase --nodeps gtk gtk-devel"
6f72b082 10032else
698dcdb6
VZ
10033 echo "configure: failed program was:" >&5
10034 cat conftest.$ac_ext >&5
10035 rm -rf conftest*
10036 echo "*** The test program failed to compile or link. See the file config.log for the"
6f72b082
OK
10037 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
10038 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
698dcdb6 10039 echo "*** may want to edit the gtk-config-2.0 script: $GTK_CONFIG_2_0"
6f72b082 10040fi
698dcdb6 10041rm -f conftest*
6f72b082
OK
10042 CFLAGS="$ac_save_CFLAGS"
10043 LIBS="$ac_save_LIBS"
10044 fi
10045 fi
10046 GTK_CFLAGS=""
10047 GTK_LIBS=""
8168de4c
VZ
10048 gthread
10049 fi
10050
10051
10052 rm -f conf.gtktest
10053
10054 fi
10055
10056 if test -z "$wx_cv_lib_gtk"; then
10057
10f2d63a
VZ
10058 if test x$gtk_config_exec_prefix != x ; then
10059 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
10060 if test x${GTK_CONFIG+set} != xset ; then
10061 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
10062 fi
10063 fi
10064 if test x$gtk_config_prefix != x ; then
10065 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
10066 if test x${GTK_CONFIG+set} != xset ; then
10067 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
10068 fi
10069 fi
10070
10071 # Extract the first word of "gtk-config", so it can be a program name with args.
10072set dummy gtk-config; ac_word=$2
698dcdb6 10073echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
69d27ff7 10074echo "configure:10075: checking for $ac_word" >&5
698dcdb6
VZ
10075if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
10076 echo $ac_n "(cached) $ac_c" 1>&6
f6bcfd97 10077else
698dcdb6
VZ
10078 case "$GTK_CONFIG" in
10079 /*)
f6bcfd97
BP
10080 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
10081 ;;
698dcdb6
VZ
10082 ?:/*)
10083 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
10084 ;;
f6bcfd97 10085 *)
698dcdb6
VZ
10086 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
10087 ac_dummy="$PATH"
10088 for ac_dir in $ac_dummy; do
10089 test -z "$ac_dir" && ac_dir=.
10090 if test -f $ac_dir/$ac_word; then
10091 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
10092 break
10093 fi
10094 done
10095 IFS="$ac_save_ifs"
f6bcfd97
BP
10096 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
10097 ;;
10098esac
10099fi
698dcdb6 10100GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
f6bcfd97 10101if test -n "$GTK_CONFIG"; then
698dcdb6 10102 echo "$ac_t""$GTK_CONFIG" 1>&6
f6bcfd97 10103else
698dcdb6 10104 echo "$ac_t""no" 1>&6
f6bcfd97
BP
10105fi
10106
10107 min_gtk_version=1.2.7
698dcdb6 10108 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
69d27ff7 10109echo "configure:10110: checking for GTK - version >= $min_gtk_version" >&5
f6bcfd97
BP
10110 no_gtk=""
10111 if test "$GTK_CONFIG" != "no" ; then
10112 GTK_CFLAGS=`$GTK_CONFIG --cflags`
10113 GTK_LIBS=`$GTK_CONFIG --libs gthread`
10114 ac_save_CFLAGS="$CFLAGS"
10115 ac_save_LIBS="$LIBS"
10116 CFLAGS="$CFLAGS $GTK_CFLAGS"
10117 LIBS="$LIBS $GTK_LIBS"
10118 if test "$cross_compiling" = yes; then
10119 echo $ac_n "cross compiling; assumed OK... $ac_c"
10120else
698dcdb6 10121 cat > conftest.$ac_ext <<EOF
69d27ff7 10122#line 10123 "configure"
f6bcfd97
BP
10123#include "confdefs.h"
10124
10125#include <gtk/gtk.h>
10126#include <gtk/gtkfeatures.h>
10127#include <stdio.h>
10128#include <stdlib.h>
10129
10130int
10131main ()
10132{
10133 int major, minor, micro;
10134
10135 if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, &micro) != 3) {
10136 printf("%s, bad version string\n", "$min_gtk_version");
10137 exit(1);
10138 }
10139
10140 if ((GTK_MAJOR_VERSION != gtk_major_version) ||
10141 (GTK_MINOR_VERSION != gtk_minor_version) ||
10142 (GTK_MICRO_VERSION != gtk_micro_version)) {
10143 printf("Headers vs. library version mismatch!\n");
10144 exit(1);
10145 }
10146
10147 if (gtk_minor_version == 1) return FALSE;
10148
10149 return !((gtk_major_version > major) ||
10150 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
10151 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)));
10152}
10153
698dcdb6 10154EOF
69d27ff7 10155if { (eval echo configure:10156: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6 10156then
f6bcfd97
BP
10157 :
10158else
698dcdb6
VZ
10159 echo "configure: failed program was:" >&5
10160 cat conftest.$ac_ext >&5
10161 rm -fr conftest*
10162 no_gtk=yes
f6bcfd97 10163fi
698dcdb6 10164rm -fr conftest*
f6bcfd97 10165fi
698dcdb6 10166
f6bcfd97
BP
10167 CFLAGS="$ac_save_CFLAGS"
10168 LIBS="$ac_save_LIBS"
10169 else
10170 no_gtk=yes
10171 fi
10172 if test "x$no_gtk" = x ; then
698dcdb6 10173 echo "$ac_t""yes" 1>&6
8168de4c 10174 wx_cv_lib_gtk=1.2.7
f6bcfd97 10175 else
698dcdb6 10176 echo "$ac_t""no" 1>&6
f6bcfd97
BP
10177 GTK_CFLAGS=""
10178 GTK_LIBS=""
10179 :
10180 fi
698dcdb6
VZ
10181
10182
f6bcfd97 10183
8168de4c
VZ
10184 fi
10185
10186 if test -z "$wx_cv_lib_gtk"; then
10187
f6bcfd97
BP
10188 if test x$gtk_config_exec_prefix != x ; then
10189 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
10190 if test x${GTK_CONFIG+set} != xset ; then
10191 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
10192 fi
10193 fi
10194 if test x$gtk_config_prefix != x ; then
10195 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
10196 if test x${GTK_CONFIG+set} != xset ; then
10197 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
10198 fi
10199 fi
10200
10201 # Extract the first word of "gtk-config", so it can be a program name with args.
10202set dummy gtk-config; ac_word=$2
698dcdb6 10203echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
69d27ff7 10204echo "configure:10205: checking for $ac_word" >&5
698dcdb6
VZ
10205if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
10206 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 10207else
698dcdb6
VZ
10208 case "$GTK_CONFIG" in
10209 /*)
10f2d63a
VZ
10210 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
10211 ;;
698dcdb6
VZ
10212 ?:/*)
10213 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
10214 ;;
10f2d63a 10215 *)
698dcdb6
VZ
10216 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
10217 ac_dummy="$PATH"
10218 for ac_dir in $ac_dummy; do
10219 test -z "$ac_dir" && ac_dir=.
10220 if test -f $ac_dir/$ac_word; then
10221 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
10222 break
10223 fi
10224 done
10225 IFS="$ac_save_ifs"
10f2d63a
VZ
10226 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
10227 ;;
10228esac
10229fi
698dcdb6 10230GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
10f2d63a 10231if test -n "$GTK_CONFIG"; then
698dcdb6 10232 echo "$ac_t""$GTK_CONFIG" 1>&6
10f2d63a 10233else
698dcdb6 10234 echo "$ac_t""no" 1>&6
10f2d63a
VZ
10235fi
10236
04165bec 10237 min_gtk_version=1.2.3
698dcdb6 10238 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
69d27ff7 10239echo "configure:10240: checking for GTK - version >= $min_gtk_version" >&5
10f2d63a
VZ
10240 no_gtk=""
10241 if test "$GTK_CONFIG" != "no" ; then
10242 GTK_CFLAGS=`$GTK_CONFIG --cflags`
2224580a 10243 GTK_LIBS=`$GTK_CONFIG --libs gthread`
10f2d63a
VZ
10244 ac_save_CFLAGS="$CFLAGS"
10245 ac_save_LIBS="$LIBS"
10246 CFLAGS="$CFLAGS $GTK_CFLAGS"
10247 LIBS="$LIBS $GTK_LIBS"
10248 if test "$cross_compiling" = yes; then
10249 echo $ac_n "cross compiling; assumed OK... $ac_c"
10250else
698dcdb6 10251 cat > conftest.$ac_ext <<EOF
69d27ff7 10252#line 10253 "configure"
10f2d63a
VZ
10253#include "confdefs.h"
10254
10255#include <gtk/gtk.h>
f49f2b0c 10256#include <gtk/gtkfeatures.h>
10f2d63a 10257#include <stdio.h>
32832908 10258#include <stdlib.h>
10f2d63a
VZ
10259
10260int
10261main ()
10262{
10263 int major, minor, micro;
10264
10265 if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, &micro) != 3) {
10266 printf("%s, bad version string\n", "$min_gtk_version");
10267 exit(1);
10268 }
10269
f49f2b0c
RR
10270 if ((GTK_MAJOR_VERSION != gtk_major_version) ||
10271 (GTK_MINOR_VERSION != gtk_minor_version) ||
10272 (GTK_MICRO_VERSION != gtk_micro_version)) {
10273 printf("Headers vs. library version mismatch!\n");
10274 exit(1);
10275 }
10276
10f2d63a
VZ
10277 if (gtk_minor_version == 1) return FALSE;
10278
10279 return !((gtk_major_version > major) ||
10280 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
10281 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)));
10282}
10283
698dcdb6 10284EOF
69d27ff7 10285if { (eval echo configure:10286: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6 10286then
10f2d63a
VZ
10287 :
10288else
698dcdb6
VZ
10289 echo "configure: failed program was:" >&5
10290 cat conftest.$ac_ext >&5
10291 rm -fr conftest*
10292 no_gtk=yes
10f2d63a 10293fi
698dcdb6 10294rm -fr conftest*
10f2d63a 10295fi
698dcdb6 10296
10f2d63a
VZ
10297 CFLAGS="$ac_save_CFLAGS"
10298 LIBS="$ac_save_LIBS"
10299 else
10300 no_gtk=yes
10301 fi
10302 if test "x$no_gtk" = x ; then
698dcdb6 10303 echo "$ac_t""yes" 1>&6
8168de4c 10304 wx_cv_lib_gtk=1.2.3
10f2d63a 10305 else
698dcdb6 10306 echo "$ac_t""no" 1>&6
10f2d63a
VZ
10307 GTK_CFLAGS=""
10308 GTK_LIBS=""
7e99ad86 10309 :
10f2d63a 10310 fi
698dcdb6
VZ
10311
10312
10f2d63a 10313
8168de4c
VZ
10314 fi
10315
10316 if test -z "$wx_cv_lib_gtk"; then
10317 wx_cv_lib_gtk=none
138be253
VZ
10318 else
10319 wx_cv_cflags_gtk=$GTK_CFLAGS
10320 wx_cv_libs_gtk=$GTK_LIBS
8168de4c
VZ
10321 fi
10322
1e6feb95 10323
8168de4c 10324fi
703e0a69 10325
698dcdb6 10326
8168de4c
VZ
10327 if test "$gtk_version_cached" = 1; then
10328 echo "$ac_t""$wx_cv_lib_gtk" 1>&6
1e6feb95 10329 fi
698dcdb6 10330
8168de4c
VZ
10331 case "$wx_cv_lib_gtk" in
10332 2.0) WXGTK20=1
10333 ;;
10334 1.2.7) WXGTK127=1
d1a8d972 10335 WXGTK12=1
8168de4c
VZ
10336 ;;
10337 1.2.3) WXGTK12=1
10338 ;;
10339 *) { echo "configure: error:
10340Please check that gtk-config is in path, the directory
10341where GTK+ libraries are installed (returned by
10342'gtk-config --libs' command) is in LD_LIBRARY_PATH or
10343equivalent variable and GTK+ is version 1.2.3 or above.
10344 " 1>&2; exit 1; }
10345 ;;
10346 esac
2224580a 10347
138be253 10348 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
11dfaa5f 10349 GUI_TK_LIBRARY="$wx_cv_libs_gtk"
698dcdb6 10350
1e6feb95
VZ
10351 AFMINSTALL=afminstall
10352 TOOLKIT=GTK
10353 GUIDIST=GTK_DIST
7ec2881a 10354
1e6feb95 10355 echo $ac_n "checking for gdk_im_open in -lgdk""... $ac_c" 1>&6
69d27ff7 10356echo "configure:10357: checking for gdk_im_open in -lgdk" >&5
698dcdb6
VZ
10357ac_lib_var=`echo gdk'_'gdk_im_open | sed 'y%./+-%__p_%'`
10358if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10359 echo $ac_n "(cached) $ac_c" 1>&6
7ec2881a 10360else
698dcdb6 10361 ac_save_LIBS="$LIBS"
7ec2881a 10362LIBS="-lgdk $LIBS"
698dcdb6 10363cat > conftest.$ac_ext <<EOF
69d27ff7 10364#line 10365 "configure"
7ec2881a
RR
10365#include "confdefs.h"
10366/* Override any gcc2 internal prototype to avoid an error. */
10367/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
10368 builtin and then its argument prototype would still apply. */
10369char gdk_im_open();
10370
10371int main() {
10372gdk_im_open()
10373; return 0; }
10374EOF
69d27ff7 10375if { (eval echo configure:10376: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
10376 rm -rf conftest*
10377 eval "ac_cv_lib_$ac_lib_var=yes"
10378else
10379 echo "configure: failed program was:" >&5
10380 cat conftest.$ac_ext >&5
10381 rm -rf conftest*
10382 eval "ac_cv_lib_$ac_lib_var=no"
10383fi
10384rm -f conftest*
10385LIBS="$ac_save_LIBS"
10386
10387fi
10388if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10389 echo "$ac_t""yes" 1>&6
10390 cat >> confdefs.h <<\EOF
7ec2881a
RR
10391#define HAVE_XIM 1
10392EOF
10393
698dcdb6
VZ
10394else
10395 echo "$ac_t""no" 1>&6
7ec2881a
RR
10396fi
10397
1e6feb95 10398 fi
10f2d63a 10399
1e6feb95
VZ
10400 if test "$wxUSE_MGL" = 1; then
10401
10402 echo $ac_n "checking for SciTech MGL library""... $ac_c" 1>&6
69d27ff7 10403echo "configure:10404: checking for SciTech MGL library" >&5
1e6feb95
VZ
10404 if test "x$MGL_ROOT" = x ; then
10405 echo "$ac_t""not found" 1>&6
10406 { echo "configure: error: Cannot find MGL library. Make sure MGL_ROOT is set." 1>&2; exit 1; }
10407 else
10408 echo "$ac_t""$MGL_ROOT" 1>&6
10409 fi
10410
3a922bb4
RL
10411 mgl_os=linux/gcc/glibc
10412 mgl_lib_type=""
1e6feb95
VZ
10413
10414 if test "$wxUSE_DEBUG_FLAG" = yes ; then
223e7fbf
VS
10415 if test -f $MGL_ROOT/lib/debug/$mgl_os/libmgl.a -o \
10416 -f $MGL_ROOT/lib/debug/$mgl_os/libmgl.so; then
3a922bb4 10417 mgl_lib_type=debug
1e6feb95
VZ
10418 fi
10419 fi
3a922bb4 10420 if test "x$mgl_lib_type" = x ; then
223e7fbf
VS
10421 if test -f $MGL_ROOT/lib/release/$mgl_os/libmgl.a -o \
10422 -f $MGL_ROOT/lib/release/$mgl_os/libmgl.so; then
3a922bb4 10423 mgl_lib_type=release
1e6feb95
VZ
10424 else
10425 { echo "configure: error: Cannot find MGL libraries, make sure they are compiled." 1>&2; exit 1; }
10426 fi
10427 fi
10428
10429 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
3a922bb4 10430 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
1e6feb95
VZ
10431
10432 AFMINSTALL=afminstall
10433 TOOLKIT=MGL
10434 GUIDIST=MGL_DIST
10435 fi
10436
10437 if test "$wxUSE_WINE" = 1; then
3a922bb4
RL
10438 ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'`
10439echo $ac_n "checking for windows.h""... $ac_c" 1>&6
69d27ff7 10440echo "configure:10441: checking for windows.h" >&5
3a922bb4
RL
10441if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10442 echo $ac_n "(cached) $ac_c" 1>&6
10443else
10444 cat > conftest.$ac_ext <<EOF
69d27ff7 10445#line 10446 "configure"
3a922bb4
RL
10446#include "confdefs.h"
10447#include <windows.h>
10448EOF
10449ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
69d27ff7 10450{ (eval echo configure:10451: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3a922bb4
RL
10451ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10452if test -z "$ac_err"; then
10453 rm -rf conftest*
10454 eval "ac_cv_header_$ac_safe=yes"
10455else
10456 echo "$ac_err" >&5
10457 echo "configure: failed program was:" >&5
10458 cat conftest.$ac_ext >&5
10459 rm -rf conftest*
10460 eval "ac_cv_header_$ac_safe=no"
10461fi
10462rm -f conftest*
10463fi
10464if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10465 echo "$ac_t""yes" 1>&6
10466 :
10467else
10468 echo "$ac_t""no" 1>&6
10f2d63a 10469
1e6feb95 10470 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
3a922bb4
RL
10471
10472fi
10473
10f2d63a 10474
3d63bc3a 10475 xpm_link=
1e6feb95 10476 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
69d27ff7 10477echo "configure:10478: checking for Xpm library" >&5
1e6feb95 10478
10f2d63a
VZ
10479ac_find_libraries=
10480for ac_dir in $SEARCH_LIB;
10481 do
f11bdd03 10482 for ac_extension in a so sl dylib; do
10f2d63a
VZ
10483 if test -f "$ac_dir/libXpm.$ac_extension"; then
10484 ac_find_libraries=$ac_dir
10485 break 2
10486 fi
10487 done
10488 done
10489
1e6feb95
VZ
10490 if test "$ac_find_libraries" != "" ; then
10491 GUI_TK_LIBRARY="-L$ac_find_libraries"
3d63bc3a 10492 xpm_link=" -lXpm"
1e6feb95 10493 cat >> confdefs.h <<\EOF
10f2d63a
VZ
10494#define wxHAVE_LIB_XPM 1
10495EOF
10496
1e6feb95
VZ
10497 echo "$ac_t""found at $ac_find_libraries" 1>&6
10498 else
10499 echo "$ac_t""no" 1>&6
10500 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
10501 fi
10f2d63a 10502
3d63bc3a 10503 mesa_link=
1e6feb95 10504 echo $ac_n "checking for Mesa library""... $ac_c" 1>&6
69d27ff7 10505echo "configure:10506: checking for Mesa library" >&5
1e6feb95 10506
10f2d63a
VZ
10507ac_find_libraries=
10508for ac_dir in $SEARCH_LIB;
10509 do
f11bdd03 10510 for ac_extension in a so sl dylib; do
10f2d63a
VZ
10511 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
10512 ac_find_libraries=$ac_dir
10513 break 2
10514 fi
10515 done
10516 done
10517
1e6feb95
VZ
10518 if test "$ac_find_libraries" != "" ; then
10519 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -L$ac_find_libraries"
3d63bc3a 10520 mesa_link=" -lMesaGL"
1e6feb95
VZ
10521 echo "$ac_t""found at $ac_find_libraries" 1>&6
10522 else
10523 { echo "configure: error: no" 1>&2; exit 1; }
10524 fi
10f2d63a 10525
3d63bc3a 10526 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lwine$mesa_link$xpm_link -lXxf86dga -lXxf86vm -lSM -lICE -lXext -lXmu -lX11 -lncurses"
1e6feb95
VZ
10527 TOOLKIT=MSW
10528 GUIDIST=MSW_DIST
3a922bb4 10529 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXWINE__"
1e6feb95 10530 fi
698dcdb6 10531
d714471b
VZ
10532 if test "$wxUSE_MOTIF" = 1; then
10533 # If we find X, set shell vars x_includes and x_libraries to the
698dcdb6
VZ
10534# paths, otherwise set no_x=yes.
10535# Uses ac_ vars as temps to allow command line to override cache and checks.
10536# --without-x overrides everything else, but does not touch the cache.
10537echo $ac_n "checking for X""... $ac_c" 1>&6
69d27ff7 10538echo "configure:10539: checking for X" >&5
ab9b9eab
VZ
10539
10540# Check whether --with-x or --without-x was given.
10541if test "${with_x+set}" = set; then
10542 withval="$with_x"
698dcdb6
VZ
10543 :
10544fi
ba337fe7 10545
ab9b9eab
VZ
10546# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
10547if test "x$with_x" = xno; then
10548 # The user explicitly disabled X.
10549 have_x=disabled
10550else
10551 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
10552 # Both variables are already set.
10553 have_x=yes
10554 else
698dcdb6
VZ
10555if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
10556 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab
VZ
10557else
10558 # One or both of the vars are not set, and there is no cached value.
698dcdb6
VZ
10559ac_x_includes=NO ac_x_libraries=NO
10560rm -fr conftestdir
10561if mkdir conftestdir; then
10562 cd conftestdir
ab9b9eab 10563 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
698dcdb6 10564 cat > Imakefile <<'EOF'
ab9b9eab
VZ
10565acfindx:
10566 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
10567EOF
10568 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
10569 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
10570 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
10571 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
10f2d63a 10572 for ac_extension in a so sl; do
ab9b9eab 10573 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
698dcdb6 10574 test -f $ac_im_libdir/libX11.$ac_extension; then
ab9b9eab 10575 ac_im_usrlibdir=$ac_im_libdir; break
10f2d63a
VZ
10576 fi
10577 done
ab9b9eab
VZ
10578 # Screen out bogus values from the imake configuration. They are
10579 # bogus both because they are the default anyway, and because
10580 # using them would break gcc on systems where it needs fixed includes.
698dcdb6 10581 case "$ac_im_incroot" in
ab9b9eab 10582 /usr/include) ;;
698dcdb6 10583 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
ab9b9eab 10584 esac
698dcdb6 10585 case "$ac_im_usrlibdir" in
ab9b9eab 10586 /usr/lib | /lib) ;;
698dcdb6 10587 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
ab9b9eab 10588 esac
ba337fe7 10589 fi
ab9b9eab 10590 cd ..
698dcdb6 10591 rm -fr conftestdir
ab9b9eab 10592fi
10f2d63a 10593
698dcdb6
VZ
10594if test "$ac_x_includes" = NO; then
10595 # Guess where to find include files, by looking for this one X11 .h file.
10596 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
10597
ab9b9eab 10598 # First, try using that file with no special directory specified.
698dcdb6 10599cat > conftest.$ac_ext <<EOF
69d27ff7 10600#line 10601 "configure"
ab9b9eab 10601#include "confdefs.h"
698dcdb6
VZ
10602#include <$x_direct_test_include>
10603EOF
10604ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
69d27ff7 10605{ (eval echo configure:10606: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
10606ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10607if test -z "$ac_err"; then
10608 rm -rf conftest*
ab9b9eab
VZ
10609 # We can compile using X headers with no special include directory.
10610ac_x_includes=
10611else
698dcdb6
VZ
10612 echo "$ac_err" >&5
10613 echo "configure: failed program was:" >&5
ab9b9eab 10614 cat conftest.$ac_ext >&5
698dcdb6
VZ
10615 rm -rf conftest*
10616 # Look for the header file in a standard set of common directories.
10617# Check X11 before X11Rn because it is often a symlink to the current release.
10618 for ac_dir in \
10619 /usr/X11/include \
10620 /usr/X11R6/include \
10621 /usr/X11R5/include \
10622 /usr/X11R4/include \
10623 \
10624 /usr/include/X11 \
10625 /usr/include/X11R6 \
10626 /usr/include/X11R5 \
10627 /usr/include/X11R4 \
10628 \
10629 /usr/local/X11/include \
10630 /usr/local/X11R6/include \
10631 /usr/local/X11R5/include \
10632 /usr/local/X11R4/include \
10633 \
10634 /usr/local/include/X11 \
10635 /usr/local/include/X11R6 \
10636 /usr/local/include/X11R5 \
10637 /usr/local/include/X11R4 \
10638 \
10639 /usr/X386/include \
10640 /usr/x386/include \
10641 /usr/XFree86/include/X11 \
10642 \
10643 /usr/include \
10644 /usr/local/include \
10645 /usr/unsupported/include \
10646 /usr/athena/include \
10647 /usr/local/x11r5/include \
10648 /usr/lpp/Xamples/include \
10649 \
10650 /usr/openwin/include \
10651 /usr/openwin/share/include \
10652 ; \
10653 do
10654 if test -r "$ac_dir/$x_direct_test_include"; then
10655 ac_x_includes=$ac_dir
10656 break
10657 fi
10658 done
ab9b9eab 10659fi
698dcdb6
VZ
10660rm -f conftest*
10661fi # $ac_x_includes = NO
10f2d63a 10662
698dcdb6 10663if test "$ac_x_libraries" = NO; then
ab9b9eab 10664 # Check for the libraries.
698dcdb6
VZ
10665
10666 test -z "$x_direct_test_library" && x_direct_test_library=Xt
10667 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
10668
ab9b9eab
VZ
10669 # See if we find them without any special options.
10670 # Don't add to $LIBS permanently.
698dcdb6
VZ
10671 ac_save_LIBS="$LIBS"
10672 LIBS="-l$x_direct_test_library $LIBS"
10673cat > conftest.$ac_ext <<EOF
69d27ff7 10674#line 10675 "configure"
ab9b9eab 10675#include "confdefs.h"
698dcdb6
VZ
10676
10677int main() {
10678${x_direct_test_function}()
10679; return 0; }
10680EOF
69d27ff7 10681if { (eval echo configure:10682: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
10682 rm -rf conftest*
10683 LIBS="$ac_save_LIBS"
ab9b9eab
VZ
10684# We can link X programs with no special library path.
10685ac_x_libraries=
10686else
698dcdb6
VZ
10687 echo "configure: failed program was:" >&5
10688 cat conftest.$ac_ext >&5
10689 rm -rf conftest*
10690 LIBS="$ac_save_LIBS"
10691# First see if replacing the include by lib works.
10692# Check X11 before X11Rn because it is often a symlink to the current release.
10693for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
10694 /usr/X11/lib \
10695 /usr/X11R6/lib \
10696 /usr/X11R5/lib \
10697 /usr/X11R4/lib \
10698 \
10699 /usr/lib/X11 \
10700 /usr/lib/X11R6 \
10701 /usr/lib/X11R5 \
10702 /usr/lib/X11R4 \
10703 \
10704 /usr/local/X11/lib \
10705 /usr/local/X11R6/lib \
10706 /usr/local/X11R5/lib \
10707 /usr/local/X11R4/lib \
10708 \
10709 /usr/local/lib/X11 \
10710 /usr/local/lib/X11R6 \
10711 /usr/local/lib/X11R5 \
10712 /usr/local/lib/X11R4 \
10713 \
10714 /usr/X386/lib \
10715 /usr/x386/lib \
10716 /usr/XFree86/lib/X11 \
10717 \
10718 /usr/lib \
10719 /usr/local/lib \
10720 /usr/unsupported/lib \
10721 /usr/athena/lib \
10722 /usr/local/x11r5/lib \
10723 /usr/lpp/Xamples/lib \
10724 /lib/usr/lib/X11 \
10725 \
10726 /usr/openwin/lib \
10727 /usr/openwin/share/lib \
10728 ; \
ab9b9eab
VZ
10729do
10730 for ac_extension in a so sl; do
698dcdb6 10731 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
ab9b9eab
VZ
10732 ac_x_libraries=$ac_dir
10733 break 2
10f2d63a 10734 fi
10f2d63a 10735 done
ab9b9eab
VZ
10736done
10737fi
698dcdb6
VZ
10738rm -f conftest*
10739fi # $ac_x_libraries = NO
10f2d63a 10740
698dcdb6 10741if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
ab9b9eab
VZ
10742 # Didn't find X anywhere. Cache the known absence of X.
10743 ac_cv_have_x="have_x=no"
10744else
10745 # Record where we found X for the cache.
10746 ac_cv_have_x="have_x=yes \
10747 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
10748fi
10749fi
10f2d63a 10750 fi
ab9b9eab
VZ
10751 eval "$ac_cv_have_x"
10752fi # $with_x != no
10f2d63a 10753
ab9b9eab 10754if test "$have_x" != yes; then
698dcdb6 10755 echo "$ac_t""$have_x" 1>&6
ab9b9eab
VZ
10756 no_x=yes
10757else
10758 # If each of the values was on the command line, it overrides each guess.
10759 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
10760 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
10761 # Update the cache value to reflect the command line values.
10762 ac_cv_have_x="have_x=yes \
10763 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
698dcdb6 10764 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
ab9b9eab 10765fi
10f2d63a 10766
ab9b9eab
VZ
10767if test "$no_x" = yes; then
10768 # Not all programs may use this symbol, but it does not hurt to define it.
698dcdb6 10769 cat >> confdefs.h <<\EOF
ab9b9eab
VZ
10770#define X_DISPLAY_MISSING 1
10771EOF
10f2d63a 10772
ab9b9eab
VZ
10773 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
10774else
10775 if test -n "$x_includes"; then
10776 X_CFLAGS="$X_CFLAGS -I$x_includes"
10f2d63a
VZ
10777 fi
10778
ab9b9eab
VZ
10779 # It would also be nice to do this for all -L options, not just this one.
10780 if test -n "$x_libraries"; then
10781 X_LIBS="$X_LIBS -L$x_libraries"
10782 # For Solaris; some versions of Sun CC require a space after -R and
10783 # others require no space. Words are not sufficient . . . .
698dcdb6 10784 case "`(uname -sr) 2>/dev/null`" in
ab9b9eab 10785 "SunOS 5"*)
698dcdb6 10786 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
69d27ff7 10787echo "configure:10788: checking whether -R must be followed by a space" >&5
698dcdb6
VZ
10788 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
10789 cat > conftest.$ac_ext <<EOF
69d27ff7 10790#line 10791 "configure"
ab9b9eab 10791#include "confdefs.h"
10f2d63a 10792
698dcdb6 10793int main() {
788deba1 10794
698dcdb6
VZ
10795; return 0; }
10796EOF
69d27ff7 10797if { (eval echo configure:10798: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 10798 rm -rf conftest*
ab9b9eab
VZ
10799 ac_R_nospace=yes
10800else
698dcdb6
VZ
10801 echo "configure: failed program was:" >&5
10802 cat conftest.$ac_ext >&5
10803 rm -rf conftest*
10804 ac_R_nospace=no
ab9b9eab 10805fi
698dcdb6 10806rm -f conftest*
ab9b9eab 10807 if test $ac_R_nospace = yes; then
698dcdb6 10808 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
10809 X_LIBS="$X_LIBS -R$x_libraries"
10810 else
10811 LIBS="$ac_xsave_LIBS -R $x_libraries"
698dcdb6 10812 cat > conftest.$ac_ext <<EOF
69d27ff7 10813#line 10814 "configure"
ab9b9eab 10814#include "confdefs.h"
788deba1 10815
698dcdb6 10816int main() {
ab9b9eab 10817
698dcdb6
VZ
10818; return 0; }
10819EOF
69d27ff7 10820if { (eval echo configure:10821: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 10821 rm -rf conftest*
ab9b9eab
VZ
10822 ac_R_space=yes
10823else
698dcdb6
VZ
10824 echo "configure: failed program was:" >&5
10825 cat conftest.$ac_ext >&5
10826 rm -rf conftest*
10827 ac_R_space=no
ab9b9eab 10828fi
698dcdb6 10829rm -f conftest*
ab9b9eab 10830 if test $ac_R_space = yes; then
698dcdb6 10831 echo "$ac_t""yes" 1>&6
ab9b9eab
VZ
10832 X_LIBS="$X_LIBS -R $x_libraries"
10833 else
698dcdb6 10834 echo "$ac_t""neither works" 1>&6
ab9b9eab
VZ
10835 fi
10836 fi
698dcdb6 10837 LIBS="$ac_xsave_LIBS"
ab9b9eab
VZ
10838 esac
10839 fi
10840
10841 # Check for system-dependent libraries X programs must link with.
10842 # Do this before checking for the system-independent R6 libraries
10843 # (-lICE), since we may need -lsocket or whatever for X linking.
10844
10845 if test "$ISC" = yes; then
10846 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
10847 else
698dcdb6
VZ
10848 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
10849 # libraries were built with DECnet support. And karl@cs.umb.edu says
ab9b9eab 10850 # the Alpha needs dnet_stub (dnet does not exist).
698dcdb6 10851 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
69d27ff7 10852echo "configure:10853: checking for dnet_ntoa in -ldnet" >&5
698dcdb6
VZ
10853ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
10854if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10855 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 10856else
698dcdb6 10857 ac_save_LIBS="$LIBS"
ab9b9eab 10858LIBS="-ldnet $LIBS"
698dcdb6 10859cat > conftest.$ac_ext <<EOF
69d27ff7 10860#line 10861 "configure"
ab9b9eab
VZ
10861#include "confdefs.h"
10862/* Override any gcc2 internal prototype to avoid an error. */
10863/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
10864 builtin and then its argument prototype would still apply. */
10865char dnet_ntoa();
10866
10867int main() {
10868dnet_ntoa()
10869; return 0; }
10870EOF
69d27ff7 10871if { (eval echo configure:10872: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
10872 rm -rf conftest*
10873 eval "ac_cv_lib_$ac_lib_var=yes"
10874else
10875 echo "configure: failed program was:" >&5
10876 cat conftest.$ac_ext >&5
10877 rm -rf conftest*
10878 eval "ac_cv_lib_$ac_lib_var=no"
10879fi
10880rm -f conftest*
10881LIBS="$ac_save_LIBS"
10882
10883fi
10884if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10885 echo "$ac_t""yes" 1>&6
ab9b9eab 10886 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
698dcdb6
VZ
10887else
10888 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
10889fi
10890
10891 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
698dcdb6 10892 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
69d27ff7 10893echo "configure:10894: checking for dnet_ntoa in -ldnet_stub" >&5
698dcdb6
VZ
10894ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
10895if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10896 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 10897else
698dcdb6 10898 ac_save_LIBS="$LIBS"
ab9b9eab 10899LIBS="-ldnet_stub $LIBS"
698dcdb6 10900cat > conftest.$ac_ext <<EOF
69d27ff7 10901#line 10902 "configure"
ab9b9eab
VZ
10902#include "confdefs.h"
10903/* Override any gcc2 internal prototype to avoid an error. */
10904/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
10905 builtin and then its argument prototype would still apply. */
10906char dnet_ntoa();
10907
10908int main() {
10909dnet_ntoa()
10910; return 0; }
10911EOF
69d27ff7 10912if { (eval echo configure:10913: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
10913 rm -rf conftest*
10914 eval "ac_cv_lib_$ac_lib_var=yes"
10915else
10916 echo "configure: failed program was:" >&5
10917 cat conftest.$ac_ext >&5
10918 rm -rf conftest*
10919 eval "ac_cv_lib_$ac_lib_var=no"
10920fi
10921rm -f conftest*
10922LIBS="$ac_save_LIBS"
10923
10924fi
10925if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10926 echo "$ac_t""yes" 1>&6
ab9b9eab 10927 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
698dcdb6
VZ
10928else
10929 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
10930fi
10931
10932 fi
10933
10934 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
10935 # to get the SysV transport functions.
698dcdb6 10936 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
ab9b9eab
VZ
10937 # needs -lnsl.
10938 # The nsl library prevents programs from opening the X display
698dcdb6
VZ
10939 # on Irix 5.2, according to dickey@clark.net.
10940 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
69d27ff7 10941echo "configure:10942: checking for gethostbyname" >&5
698dcdb6
VZ
10942if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
10943 echo $ac_n "(cached) $ac_c" 1>&6
10944else
10945 cat > conftest.$ac_ext <<EOF
69d27ff7 10946#line 10947 "configure"
ab9b9eab
VZ
10947#include "confdefs.h"
10948/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 10949 which can conflict with char gethostbyname(); below. */
ab9b9eab
VZ
10950#include <assert.h>
10951/* Override any gcc2 internal prototype to avoid an error. */
10952/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
10953 builtin and then its argument prototype would still apply. */
10954char gethostbyname();
10955
10956int main() {
ab9b9eab
VZ
10957
10958/* The GNU C library defines this for functions which it implements
10959 to always fail with ENOSYS. Some functions are actually named
10960 something starting with __ and the normal name is an alias. */
10961#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
10962choke me
10963#else
698dcdb6 10964gethostbyname();
ab9b9eab
VZ
10965#endif
10966
698dcdb6
VZ
10967; return 0; }
10968EOF
69d27ff7 10969if { (eval echo configure:10970: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
10970 rm -rf conftest*
10971 eval "ac_cv_func_gethostbyname=yes"
10972else
10973 echo "configure: failed program was:" >&5
10974 cat conftest.$ac_ext >&5
10975 rm -rf conftest*
10976 eval "ac_cv_func_gethostbyname=no"
10977fi
10978rm -f conftest*
10979fi
10980
10981if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
10982 echo "$ac_t""yes" 1>&6
10983 :
10984else
10985 echo "$ac_t""no" 1>&6
10986fi
ab9b9eab
VZ
10987
10988 if test $ac_cv_func_gethostbyname = no; then
698dcdb6 10989 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
69d27ff7 10990echo "configure:10991: checking for gethostbyname in -lnsl" >&5
698dcdb6
VZ
10991ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
10992if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10993 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 10994else
698dcdb6 10995 ac_save_LIBS="$LIBS"
ab9b9eab 10996LIBS="-lnsl $LIBS"
698dcdb6 10997cat > conftest.$ac_ext <<EOF
69d27ff7 10998#line 10999 "configure"
ab9b9eab
VZ
10999#include "confdefs.h"
11000/* Override any gcc2 internal prototype to avoid an error. */
11001/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
11002 builtin and then its argument prototype would still apply. */
11003char gethostbyname();
6232543b 11004
698dcdb6
VZ
11005int main() {
11006gethostbyname()
11007; return 0; }
11008EOF
69d27ff7 11009if { (eval echo configure:11010: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
11010 rm -rf conftest*
11011 eval "ac_cv_lib_$ac_lib_var=yes"
703e0a69 11012else
698dcdb6
VZ
11013 echo "configure: failed program was:" >&5
11014 cat conftest.$ac_ext >&5
11015 rm -rf conftest*
11016 eval "ac_cv_lib_$ac_lib_var=no"
11017fi
11018rm -f conftest*
11019LIBS="$ac_save_LIBS"
1e487827 11020
698dcdb6
VZ
11021fi
11022if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11023 echo "$ac_t""yes" 1>&6
11024 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
11025else
11026 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
11027fi
11028
11029 fi
11030
11031 # lieder@skyler.mavd.honeywell.com says without -lsocket,
11032 # socket/setsockopt and other routines are undefined under SCO ODT
11033 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
698dcdb6
VZ
11034 # on later versions), says simon@lia.di.epfl.ch: it contains
11035 # gethostby* variants that don't use the nameserver (or something).
11036 # -lsocket must be given before -lnsl if both are needed.
11037 # We assume that if connect needs -lnsl, so does gethostbyname.
11038 echo $ac_n "checking for connect""... $ac_c" 1>&6
69d27ff7 11039echo "configure:11040: checking for connect" >&5
698dcdb6
VZ
11040if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
11041 echo $ac_n "(cached) $ac_c" 1>&6
11042else
11043 cat > conftest.$ac_ext <<EOF
69d27ff7 11044#line 11045 "configure"
ab9b9eab
VZ
11045#include "confdefs.h"
11046/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 11047 which can conflict with char connect(); below. */
ab9b9eab
VZ
11048#include <assert.h>
11049/* Override any gcc2 internal prototype to avoid an error. */
11050/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
11051 builtin and then its argument prototype would still apply. */
11052char connect();
11053
11054int main() {
ab9b9eab
VZ
11055
11056/* The GNU C library defines this for functions which it implements
11057 to always fail with ENOSYS. Some functions are actually named
11058 something starting with __ and the normal name is an alias. */
11059#if defined (__stub_connect) || defined (__stub___connect)
11060choke me
11061#else
698dcdb6 11062connect();
ab9b9eab
VZ
11063#endif
11064
698dcdb6
VZ
11065; return 0; }
11066EOF
69d27ff7 11067if { (eval echo configure:11068: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
11068 rm -rf conftest*
11069 eval "ac_cv_func_connect=yes"
11070else
11071 echo "configure: failed program was:" >&5
11072 cat conftest.$ac_ext >&5
11073 rm -rf conftest*
11074 eval "ac_cv_func_connect=no"
11075fi
11076rm -f conftest*
11077fi
11078
11079if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
11080 echo "$ac_t""yes" 1>&6
11081 :
11082else
11083 echo "$ac_t""no" 1>&6
11084fi
ab9b9eab
VZ
11085
11086 if test $ac_cv_func_connect = no; then
698dcdb6 11087 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
69d27ff7 11088echo "configure:11089: checking for connect in -lsocket" >&5
698dcdb6
VZ
11089ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
11090if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11091 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 11092else
698dcdb6 11093 ac_save_LIBS="$LIBS"
ab9b9eab 11094LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
698dcdb6 11095cat > conftest.$ac_ext <<EOF
69d27ff7 11096#line 11097 "configure"
ab9b9eab
VZ
11097#include "confdefs.h"
11098/* Override any gcc2 internal prototype to avoid an error. */
11099/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
11100 builtin and then its argument prototype would still apply. */
11101char connect();
11102
11103int main() {
11104connect()
11105; return 0; }
11106EOF
69d27ff7 11107if { (eval echo configure:11108: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
11108 rm -rf conftest*
11109 eval "ac_cv_lib_$ac_lib_var=yes"
11110else
11111 echo "configure: failed program was:" >&5
11112 cat conftest.$ac_ext >&5
11113 rm -rf conftest*
11114 eval "ac_cv_lib_$ac_lib_var=no"
11115fi
11116rm -f conftest*
11117LIBS="$ac_save_LIBS"
11118
11119fi
11120if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11121 echo "$ac_t""yes" 1>&6
ab9b9eab 11122 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
698dcdb6
VZ
11123else
11124 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
11125fi
11126
11127 fi
11128
698dcdb6
VZ
11129 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
11130 echo $ac_n "checking for remove""... $ac_c" 1>&6
69d27ff7 11131echo "configure:11132: checking for remove" >&5
698dcdb6
VZ
11132if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
11133 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 11134else
698dcdb6 11135 cat > conftest.$ac_ext <<EOF
69d27ff7 11136#line 11137 "configure"
ab9b9eab
VZ
11137#include "confdefs.h"
11138/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 11139 which can conflict with char remove(); below. */
ab9b9eab
VZ
11140#include <assert.h>
11141/* Override any gcc2 internal prototype to avoid an error. */
11142/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
11143 builtin and then its argument prototype would still apply. */
11144char remove();
11145
11146int main() {
ab9b9eab
VZ
11147
11148/* The GNU C library defines this for functions which it implements
11149 to always fail with ENOSYS. Some functions are actually named
11150 something starting with __ and the normal name is an alias. */
11151#if defined (__stub_remove) || defined (__stub___remove)
11152choke me
11153#else
698dcdb6 11154remove();
ab9b9eab
VZ
11155#endif
11156
698dcdb6
VZ
11157; return 0; }
11158EOF
69d27ff7 11159if { (eval echo configure:11160: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
11160 rm -rf conftest*
11161 eval "ac_cv_func_remove=yes"
11162else
11163 echo "configure: failed program was:" >&5
11164 cat conftest.$ac_ext >&5
11165 rm -rf conftest*
11166 eval "ac_cv_func_remove=no"
11167fi
11168rm -f conftest*
11169fi
11170
11171if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
11172 echo "$ac_t""yes" 1>&6
11173 :
11174else
11175 echo "$ac_t""no" 1>&6
11176fi
ab9b9eab
VZ
11177
11178 if test $ac_cv_func_remove = no; then
698dcdb6 11179 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
69d27ff7 11180echo "configure:11181: checking for remove in -lposix" >&5
698dcdb6
VZ
11181ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
11182if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11183 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 11184else
698dcdb6 11185 ac_save_LIBS="$LIBS"
ab9b9eab 11186LIBS="-lposix $LIBS"
698dcdb6 11187cat > conftest.$ac_ext <<EOF
69d27ff7 11188#line 11189 "configure"
ab9b9eab
VZ
11189#include "confdefs.h"
11190/* Override any gcc2 internal prototype to avoid an error. */
11191/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
11192 builtin and then its argument prototype would still apply. */
11193char remove();
11194
11195int main() {
11196remove()
11197; return 0; }
11198EOF
69d27ff7 11199if { (eval echo configure:11200: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
11200 rm -rf conftest*
11201 eval "ac_cv_lib_$ac_lib_var=yes"
11202else
11203 echo "configure: failed program was:" >&5
11204 cat conftest.$ac_ext >&5
11205 rm -rf conftest*
11206 eval "ac_cv_lib_$ac_lib_var=no"
11207fi
11208rm -f conftest*
11209LIBS="$ac_save_LIBS"
11210
11211fi
11212if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11213 echo "$ac_t""yes" 1>&6
ab9b9eab 11214 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
698dcdb6
VZ
11215else
11216 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
11217fi
11218
11219 fi
11220
11221 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
698dcdb6 11222 echo $ac_n "checking for shmat""... $ac_c" 1>&6
69d27ff7 11223echo "configure:11224: checking for shmat" >&5
698dcdb6
VZ
11224if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
11225 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 11226else
698dcdb6 11227 cat > conftest.$ac_ext <<EOF
69d27ff7 11228#line 11229 "configure"
ab9b9eab
VZ
11229#include "confdefs.h"
11230/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 11231 which can conflict with char shmat(); below. */
ab9b9eab
VZ
11232#include <assert.h>
11233/* Override any gcc2 internal prototype to avoid an error. */
11234/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
11235 builtin and then its argument prototype would still apply. */
11236char shmat();
11237
11238int main() {
ab9b9eab
VZ
11239
11240/* The GNU C library defines this for functions which it implements
11241 to always fail with ENOSYS. Some functions are actually named
11242 something starting with __ and the normal name is an alias. */
11243#if defined (__stub_shmat) || defined (__stub___shmat)
11244choke me
11245#else
698dcdb6 11246shmat();
ab9b9eab
VZ
11247#endif
11248
698dcdb6
VZ
11249; return 0; }
11250EOF
69d27ff7 11251if { (eval echo configure:11252: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
11252 rm -rf conftest*
11253 eval "ac_cv_func_shmat=yes"
11254else
11255 echo "configure: failed program was:" >&5
11256 cat conftest.$ac_ext >&5
11257 rm -rf conftest*
11258 eval "ac_cv_func_shmat=no"
11259fi
11260rm -f conftest*
11261fi
11262
11263if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
11264 echo "$ac_t""yes" 1>&6
11265 :
11266else
11267 echo "$ac_t""no" 1>&6
11268fi
ab9b9eab
VZ
11269
11270 if test $ac_cv_func_shmat = no; then
698dcdb6 11271 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
69d27ff7 11272echo "configure:11273: checking for shmat in -lipc" >&5
698dcdb6
VZ
11273ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
11274if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11275 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 11276else
698dcdb6 11277 ac_save_LIBS="$LIBS"
ab9b9eab 11278LIBS="-lipc $LIBS"
698dcdb6 11279cat > conftest.$ac_ext <<EOF
69d27ff7 11280#line 11281 "configure"
ab9b9eab
VZ
11281#include "confdefs.h"
11282/* Override any gcc2 internal prototype to avoid an error. */
11283/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
11284 builtin and then its argument prototype would still apply. */
11285char shmat();
11286
11287int main() {
11288shmat()
11289; return 0; }
11290EOF
69d27ff7 11291if { (eval echo configure:11292: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
11292 rm -rf conftest*
11293 eval "ac_cv_lib_$ac_lib_var=yes"
11294else
11295 echo "configure: failed program was:" >&5
11296 cat conftest.$ac_ext >&5
11297 rm -rf conftest*
11298 eval "ac_cv_lib_$ac_lib_var=no"
11299fi
11300rm -f conftest*
11301LIBS="$ac_save_LIBS"
11302
11303fi
11304if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11305 echo "$ac_t""yes" 1>&6
ab9b9eab 11306 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
698dcdb6
VZ
11307else
11308 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
11309fi
11310
11311 fi
11312 fi
11313
11314 # Check for libraries that X11R6 Xt/Xaw programs need.
698dcdb6 11315 ac_save_LDFLAGS="$LDFLAGS"
ab9b9eab
VZ
11316 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
11317 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
11318 # check for ICE first), but we must link in the order -lSM -lICE or
11319 # we get undefined symbols. So assume we have SM if we have ICE.
11320 # These have to be linked with before -lX11, unlike the other
11321 # libraries we check for below, so use a different variable.
698dcdb6
VZ
11322 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
11323 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
69d27ff7 11324echo "configure:11325: checking for IceConnectionNumber in -lICE" >&5
698dcdb6
VZ
11325ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
11326if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11327 echo $ac_n "(cached) $ac_c" 1>&6
11328else
11329 ac_save_LIBS="$LIBS"
ab9b9eab 11330LIBS="-lICE $X_EXTRA_LIBS $LIBS"
698dcdb6 11331cat > conftest.$ac_ext <<EOF
69d27ff7 11332#line 11333 "configure"
ab9b9eab
VZ
11333#include "confdefs.h"
11334/* Override any gcc2 internal prototype to avoid an error. */
11335/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
11336 builtin and then its argument prototype would still apply. */
11337char IceConnectionNumber();
11338
11339int main() {
11340IceConnectionNumber()
11341; return 0; }
11342EOF
69d27ff7 11343if { (eval echo configure:11344: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
11344 rm -rf conftest*
11345 eval "ac_cv_lib_$ac_lib_var=yes"
11346else
11347 echo "configure: failed program was:" >&5
11348 cat conftest.$ac_ext >&5
11349 rm -rf conftest*
11350 eval "ac_cv_lib_$ac_lib_var=no"
11351fi
11352rm -f conftest*
11353LIBS="$ac_save_LIBS"
11354
11355fi
11356if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11357 echo "$ac_t""yes" 1>&6
ab9b9eab 11358 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
698dcdb6
VZ
11359else
11360 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
11361fi
11362
698dcdb6 11363 LDFLAGS="$ac_save_LDFLAGS"
ab9b9eab
VZ
11364
11365fi
11366
11367
1e6feb95
VZ
11368 if test "$no_x" = "yes"; then
11369 { echo "configure: error: X11 not found" 1>&2; exit 1; }
11370 fi
ab9b9eab 11371
1e6feb95
VZ
11372 GUI_TK_LIBRARY="$X_LIBS"
11373 TOOLKIT_INCLUDE="$X_CFLAGS"
1e6feb95 11374 AFMINSTALL=afminstall
1e6feb95 11375 COMPILED_X_PROGRAM=0
cd6d6d5b 11376
1e6feb95 11377 echo $ac_n "checking for Motif/Lesstif headers""... $ac_c" 1>&6
69d27ff7 11378echo "configure:11379: checking for Motif/Lesstif headers" >&5
1e6feb95 11379
ab9b9eab
VZ
11380ac_find_includes=
11381for ac_dir in $SEARCH_INCLUDE;
11382 do
11383 if test -f "$ac_dir/Xm/Xm.h"; then
11384 ac_find_includes=$ac_dir
11385 break
11386 fi
11387 done
11388
1e6feb95
VZ
11389 if test "$ac_find_includes" != "" ; then
11390 echo "$ac_t""found $ac_find_includes" 1>&6
11391 else
11392 cat > conftest.$ac_ext <<EOF
69d27ff7 11393#line 11394 "configure"
cd6d6d5b
VZ
11394#include "confdefs.h"
11395
1e6feb95
VZ
11396 #include <Xm/Xm.h>
11397
698dcdb6 11398int main() {
cd6d6d5b 11399
1e6feb95 11400 int version;
1e6feb95
VZ
11401 version = xmUseVersion;
11402
698dcdb6
VZ
11403; return 0; }
11404EOF
69d27ff7 11405if { (eval echo configure:11406: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
11406 rm -rf conftest*
11407
1e6feb95
VZ
11408 echo "$ac_t""found in default search path" 1>&6
11409 COMPILED_X_PROGRAM=1
11410
cd6d6d5b 11411else
698dcdb6
VZ
11412 echo "configure: failed program was:" >&5
11413 cat conftest.$ac_ext >&5
11414 rm -rf conftest*
11415
1e6feb95
VZ
11416 echo "$ac_t""no" 1>&6
11417 { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; }
11418
698dcdb6 11419
cd6d6d5b 11420fi
698dcdb6 11421rm -f conftest*
1e6feb95 11422 fi
ab9b9eab 11423
1e6feb95
VZ
11424 if test "$COMPILED_X_PROGRAM" = 0; then
11425 echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6
69d27ff7 11426echo "configure:11427: checking for Motif/Lesstif library" >&5
1e6feb95 11427
ab9b9eab
VZ
11428ac_find_libraries=
11429for ac_dir in $SEARCH_LIB;
11430 do
f11bdd03 11431 for ac_extension in a so sl dylib; do
ab9b9eab
VZ
11432 if test -f "$ac_dir/libXm.$ac_extension"; then
11433 ac_find_libraries=$ac_dir
11434 break 2
11435 fi
11436 done
11437 done
11438
1e6feb95
VZ
11439 if test "$ac_find_libraries" != "" ; then
11440
ab9b9eab
VZ
11441 ac_path_to_include=$ac_find_includes
11442 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
11443 result=$?
11444 if test $result = 0; then
11445 ac_path_to_include=""
11446 else
62d0491b 11447 ac_path_to_include=" -I$ac_find_includes"
ab9b9eab
VZ
11448 fi
11449
1e6feb95 11450
ab9b9eab
VZ
11451 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
11452 result=$?
11453 if test $result = 0; then
11454 ac_path_to_link=""
11455 else
62d0491b 11456 ac_path_to_link=" -L$ac_find_libraries"
ab9b9eab
VZ
11457 fi
11458
698dcdb6 11459
62d0491b
RL
11460 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
11461 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
1e6feb95
VZ
11462 echo "$ac_t""found at $ac_find_libraries" 1>&6
11463 else
11464 cat > conftest.$ac_ext <<EOF
69d27ff7 11465#line 11466 "configure"
cd6d6d5b 11466#include "confdefs.h"
ab9b9eab 11467
1e6feb95
VZ
11468 #include <Xm/Xm.h>
11469
698dcdb6 11470int main() {
ab9b9eab 11471
1e6feb95 11472 int version;
1e6feb95
VZ
11473 version = xmUseVersion;
11474
698dcdb6
VZ
11475; return 0; }
11476EOF
69d27ff7 11477if { (eval echo configure:11478: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
11478 rm -rf conftest*
11479
1e6feb95
VZ
11480 echo "$ac_t""found in default search path" 1>&6
11481 COMPILED_X_PROGRAM=1
11482
cd6d6d5b 11483else
698dcdb6
VZ
11484 echo "configure: failed program was:" >&5
11485 cat conftest.$ac_ext >&5
11486 rm -rf conftest*
11487
1e6feb95
VZ
11488 echo "$ac_t""no" 1>&6
11489 { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; }
11490
698dcdb6 11491
cd6d6d5b 11492fi
698dcdb6 11493rm -f conftest*
1e6feb95 11494 fi
cd6d6d5b 11495 fi
ab9b9eab 11496
3d63bc3a 11497 xpm_link=
1e6feb95 11498 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
69d27ff7 11499echo "configure:11500: checking for Xpm library" >&5
1e6feb95 11500
ab9b9eab
VZ
11501ac_find_libraries=
11502for ac_dir in $SEARCH_LIB;
11503 do
f11bdd03 11504 for ac_extension in a so sl dylib; do
ab9b9eab
VZ
11505 if test -f "$ac_dir/libXpm.$ac_extension"; then
11506 ac_find_libraries=$ac_dir
11507 break 2
11508 fi
11509 done
11510 done
11511
1e6feb95
VZ
11512 if test "$ac_find_libraries" != "" ; then
11513
ab9b9eab
VZ
11514 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
11515 result=$?
11516 if test $result = 0; then
11517 ac_path_to_link=""
11518 else
62d0491b 11519 ac_path_to_link=" -L$ac_find_libraries"
ab9b9eab
VZ
11520 fi
11521
62d0491b 11522 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
3d63bc3a 11523 xpm_link=" -lXpm"
1e6feb95 11524 cat >> confdefs.h <<\EOF
ab9b9eab
VZ
11525#define wxHAVE_LIB_XPM 1
11526EOF
11527
1e6feb95
VZ
11528 echo "$ac_t""found at $ac_find_libraries" 1>&6
11529 else
11530 cat > conftest.$ac_ext <<EOF
69d27ff7 11531#line 11532 "configure"
cd6d6d5b
VZ
11532#include "confdefs.h"
11533
1e6feb95
VZ
11534 #include <X11/xpm.h>
11535
698dcdb6 11536int main() {
cd6d6d5b 11537
1e6feb95 11538 int version;
1e6feb95
VZ
11539 version = XpmLibraryVersion();
11540
698dcdb6
VZ
11541; return 0; }
11542EOF
69d27ff7 11543if { (eval echo configure:11544: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
11544 rm -rf conftest*
11545
3d63bc3a 11546 xpm_link=" -lXpm"
3a922bb4 11547 cat >> confdefs.h <<\EOF
3ace2e6d
SN
11548#define wxHAVE_LIB_XPM 1
11549EOF
11550
1e6feb95
VZ
11551 echo "$ac_t""found in default search path" 1>&6
11552 COMPILED_X_PROGRAM=0
11553
cd6d6d5b 11554else
698dcdb6
VZ
11555 echo "configure: failed program was:" >&5
11556 cat conftest.$ac_ext >&5
11557 rm -rf conftest*
11558
1e6feb95
VZ
11559 echo "$ac_t""no" 1>&6
11560 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
11561
698dcdb6 11562
cd6d6d5b 11563fi
698dcdb6 11564rm -f conftest*
1e6feb95
VZ
11565 fi
11566
3d63bc3a 11567 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm$xpm_link -lXmu -lXext -lXt -lX11"
334f0d2c 11568 TOOLKIT_VPATH="\${top_srcdir}/src/motif${PATH_IFS}\${top_srcdir}/src/motif/xmcombo"
1e6feb95
VZ
11569 TOOLKIT=MOTIF
11570 GUIDIST=MOTIF_DIST
ab9b9eab
VZ
11571 fi
11572
683dccda
GD
11573 if test "$wxUSE_MAC" = 1; then
11574 if test "$wxUSE_PRECOMP" = "yes"; then
3d63bc3a 11575 CPPFLAGS="$CPPFLAGS -cpp-precomp"
683dccda 11576 fi
3d63bc3a
RL
11577 CPPFLAGS="$CPPFLAGS -I/Developer/Headers/FlatCarbon -I\${top_srcdir}/src/mac/morefile"
11578 CFLAGS="$CFLAGS -fpascal-strings"
11579 CXXFLAGS="$CXXFLAGS -fpascal-strings"
11580 TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -DTARGET_CARBON"
d08b457b 11581
13c0541d 11582 TOOLKIT_VPATH="\${top_srcdir}/src/mac${PATH_IFS}\${top_srcdir}/src/mac/morefile"
1e6feb95 11583 TOOLKIT=MAC
683dccda 11584 GUIDIST=MACX_DIST
1e6feb95 11585 fi
10f2d63a 11586
1e6feb95
VZ
11587 if test "$wxUSE_PM" = 1; then
11588 TOOLKIT=PM
11589 GUIDIST=GTK_DIST
11590 fi
b4085ce6 11591
3a922bb4 11592 if test "$TOOLKIT" = "PM" ; then
1e6feb95 11593 TOOLKIT_DIR="os2"
3a922bb4
RL
11594 else
11595 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
1e6feb95 11596 fi
e07802fc 11597
3a922bb4 11598 PORT_FILES="\${top_srcdir}/src/\$(TOOLKITDIR)/files.lst"
1e6feb95 11599
3a922bb4
RL
11600 if test "$wxUSE_UNIVERSAL" = "yes"; then
11601 ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}"
11602 PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst"
11603 TOOLKIT_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes${PATH_IFS}\${top_srcdir}/src/${TOOLKIT_DIR}"
11604 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
11605 WIDGET_SET=univ
f6bcfd97 11606 else
3a922bb4 11607 ALL_OBJECTS="\$(GUIOBJS)"
1e6feb95
VZ
11608 fi
11609
ba0e650c 11610 ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)"
1e6feb95
VZ
11611
11612 if test "$TOOLKIT" != "MSW"; then
11613 ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)"
11614 fi
11615
11616 if test "$wxUSE_HTML" = "yes"; then
11617 ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)"
11618 fi
3fcdd07b 11619
3a922bb4
RL
11620 if test "$TOOLKIT" != "MSW" -a "$wxUSE_ODBC" = "yes" ; then
11621 ALL_OBJECTS="${ALL_OBJECTS} \$(IODBCOBJS)"
831b3152 11622 fi
4f14bcd8 11623 if test "$wxUSE_LIBJPEG" = "builtin" ; then
2224580a 11624 ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)"
d9d8273d 11625 fi
4f14bcd8 11626 if test "$wxUSE_LIBTIFF" = "builtin" ; then
d9d8273d
RR
11627 ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)"
11628 fi
4f14bcd8 11629 if test "$wxUSE_LIBPNG" = "builtin" ; then
d9d8273d
RR
11630 ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)"
11631 fi
4f14bcd8 11632 if test "$wxUSE_FREETYPE" = "builtin" ; then
3fed1840
RR
11633 ALL_OBJECTS="${ALL_OBJECTS} \$(FREETYPEOBJS)"
11634 fi
2224580a 11635
2224580a
VZ
11636 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
11637 DISTDIR="wx\$(TOOLKIT)"
10f2d63a 11638else
dad6c0ea
VZ
11639 USE_GUI=0
11640
3a922bb4 11641 TOOLKIT_DIR="base"
f6bcfd97 11642
3a922bb4
RL
11643 if test "$USE_WIN32" = 1 ; then
11644 ALL_OBJECTS="\${BASE_OBJS} \${BASE_MSW_OBJS}"
11645 TOOLKIT_VPATH="\${top_srcdir}/src/msw"
0b2effe9 11646
3a922bb4 11647 TOOLKIT="MSW"
f6bcfd97 11648 else
3a922bb4
RL
11649 ALL_OBJECTS="\${BASE_OBJS} \${BASE_UNIX_OBJS}"
11650 TOOLKIT_VPATH="\${top_srcdir}/src/unix"
f6bcfd97
BP
11651 fi
11652
831b3152 11653 PORT_FILES="\${top_srcdir}/src/files.lst"
2224580a
VZ
11654
11655 GUIDIST="BASE_DIST"
11656 DISTDIR="wxBase"
10f2d63a
VZ
11657fi
11658
4f14bcd8 11659if test "$wxUSE_REGEX" = "builtin" ; then
3a922bb4
RL
11660 ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)"
11661fi
4f14bcd8 11662if test "$wxUSE_ZLIB" = "builtin" ; then
3a922bb4
RL
11663 ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
11664fi
10f2d63a 11665
3a922bb4 11666if test "$wxUSE_OPENGL" = "yes"; then
62d0491b
RL
11667 if test "$wxUSE_MAC" = 1; then
11668 OPENGL_LIBS="-framework OpenGL -framework AGL"
11669 else
570cb8cb 11670
62d0491b 11671 ac_safe=`echo "GL/gl.h" | sed 'y%./+-%__p_%'`
3a922bb4 11672echo $ac_n "checking for GL/gl.h""... $ac_c" 1>&6
69d27ff7 11673echo "configure:11674: checking for GL/gl.h" >&5
3a922bb4
RL
11674if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11675 echo $ac_n "(cached) $ac_c" 1>&6
11676else
11677 cat > conftest.$ac_ext <<EOF
69d27ff7 11678#line 11679 "configure"
3a922bb4
RL
11679#include "confdefs.h"
11680#include <GL/gl.h>
11681EOF
11682ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
69d27ff7 11683{ (eval echo configure:11684: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3a922bb4
RL
11684ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11685if test -z "$ac_err"; then
11686 rm -rf conftest*
11687 eval "ac_cv_header_$ac_safe=yes"
11688else
11689 echo "$ac_err" >&5
11690 echo "configure: failed program was:" >&5
11691 cat conftest.$ac_ext >&5
11692 rm -rf conftest*
11693 eval "ac_cv_header_$ac_safe=no"
11694fi
11695rm -f conftest*
11696fi
11697if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11698 echo "$ac_t""yes" 1>&6
11699
1352efdf 11700 echo $ac_n "checking for -lGL""... $ac_c" 1>&6
69d27ff7 11701echo "configure:11702: checking for -lGL" >&5
57964555 11702
62d0491b
RL
11703ac_find_libraries=
11704for ac_dir in $SEARCH_LIB;
11705 do
11706 for ac_extension in a so sl dylib; do
11707 if test -f "$ac_dir/libGL.$ac_extension"; then
11708 ac_find_libraries=$ac_dir
11709 break 2
11710 fi
11711 done
11712 done
3a922bb4 11713
62d0491b
RL
11714 if test "$ac_find_libraries" != "" ; then
11715
11716 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
11717 result=$?
11718 if test $result = 0; then
11719 ac_path_to_link=""
11720 else
11721 ac_path_to_link=" -L$ac_find_libraries"
11722 fi
3a922bb4 11723
62d0491b
RL
11724 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
11725 OPENGL_LIBS="-lGL -lGLU"
1352efdf 11726 echo "$ac_t""yes" 1>&6
62d0491b 11727 else
1352efdf
RL
11728 echo "$ac_t""no" 1>&6
11729 echo $ac_n "checking for -lMesaGL""... $ac_c" 1>&6
69d27ff7 11730echo "configure:11731: checking for -lMesaGL" >&5
62d0491b
RL
11731
11732ac_find_libraries=
11733for ac_dir in $SEARCH_LIB;
11734 do
11735 for ac_extension in a so sl dylib; do
11736 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
11737 ac_find_libraries=$ac_dir
11738 break 2
11739 fi
11740 done
11741 done
3a922bb4 11742
62d0491b 11743 if test "$ac_find_libraries" != "" ; then
57964555 11744
62d0491b
RL
11745 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
11746 result=$?
11747 if test $result = 0; then
11748 ac_path_to_link=""
11749 else
11750 ac_path_to_link=" -L$ac_find_libraries"
11751 fi
3a922bb4 11752
62d0491b
RL
11753 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
11754 OPENGL_LIBS="-lMesaGL -lMesaGLU"
1352efdf
RL
11755 echo "$ac_t""yes" 1>&6
11756 else
11757 echo "$ac_t""no" 1>&6
62d0491b
RL
11758 fi
11759 fi
11760
3a922bb4
RL
11761else
11762 echo "$ac_t""no" 1>&6
3a922bb4
RL
11763fi
11764
6f754473 11765
62d0491b
RL
11766
11767# AC_CHECK_HEADER(GL/gl.h,
11768# [
11769# AC_CHECK_LIB(GL, glFlush,
11770# [
11771# OPENGL_LIBS="-lGL -lGLU"
11772# ],
11773# [
11774# AC_CHECK_LIB(MesaGL, glFlush,
11775# [
11776# OPENGL_LIBS="-lMesaGL -lMesaGLU"
11777# ],
11778# [],
11779# [-lm])
11780# ],
11781# [-lm])
11782# ])
11783
11784 if test "x$OPENGL_LIBS" = "x"; then
11785 { echo "configure: error: OpenGL libraries not available" 1>&2; exit 1; }
11786 fi
6f754473 11787 fi
6f754473 11788
62d0491b
RL
11789 if test "$wxUSE_OPENGL" = "yes"; then
11790 cat >> confdefs.h <<\EOF
6f754473
VZ
11791#define wxUSE_OPENGL 1
11792EOF
11793
62d0491b 11794 cat >> confdefs.h <<\EOF
6f754473
VZ
11795#define wxUSE_GLCANVAS 1
11796EOF
11797
62d0491b
RL
11798 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl"
11799 fi
3a922bb4
RL
11800fi
11801
11802if test -z "$TOOLKIT_VPATH" ; then
11803 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}"
11804fi
11805
11806if test -n "$TOOLKIT" ; then
11807 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
11808fi
11809
f676c7ff
MB
11810lib_unicode_suffix=
11811if test "$wxUSE_UNICODE" = "yes"; then
11812 lib_unicode_suffix=u
11813fi
11814
3a922bb4
RL
11815lib_debug_suffix=
11816if test "$wxUSE_DEBUG_FLAG" = "yes"; then
11817 lib_debug_suffix=d
3a922bb4
RL
11818fi
11819
f676c7ff
MB
11820TOOLCHAIN_NAME="${TOOLKIT_DIR}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}-${WX_RELEASE}"
11821TOOLCHAIN_NAME_GL="${TOOLKIT_DIR}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_gl-${WX_RELEASE}"
3a922bb4
RL
11822
11823if test "$cross_compiling" = "yes"; then
11824 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}-${host_alias}"
11825 TOOLCHAIN_NAME_GL="${TOOLCHAIN_NAME_GL}-${host_alias}"
11826fi
11827
11828WX_LIBRARY="wx_${TOOLCHAIN_NAME}"
11829WX_LIBRARY_GL="wx_${TOOLCHAIN_NAME_GL}"
11830
3a922bb4
RL
11831WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
11832WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
11833
11834WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}"
11835WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
11836WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}"
11837WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
11838
d08b457b 11839WX_RESOURCES_MACOSX="lib${WX_LIBRARY}.rsrc"
e23081de 11840WX_RESOURCES_MACOSX_COMPILED="lib${WX_LIBRARY}.r"
3a922bb4 11841
978f1259
RL
11842case "${host}" in
11843 *-*-cygwin* | *-*-mingw32* )
11844
2da4f892 11845
978f1259
RL
11846
11847 if test "$cross_compiling" != "yes"; then
11848 WX_LIBRARY="wxmsw${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}"
11849 WX_LIBRARY_GL="wxmsw_gl${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}"
11850 WX_LIBRARY_NAME_SHARED="${WX_LIBRARY}.${SO_SUFFIX}"
11851 WX_LIBRARY_NAME_SHARED_GL="${WX_LIBRARY_GL}.${SO_SUFFIX}"
2da4f892
RL
11852 else
11853 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}"
11854 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
978f1259
RL
11855 fi
11856
11857esac
11858
11859WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a"
11860WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY_GL}.a"
11861
11862WXCONFIG_LIBS="-l${WX_LIBRARY}"
885d4bf5 11863WXCONFIG_LIBS_STATIC="lib${WX_LIBRARY}.a"
978f1259
RL
11864
11865if test "$wxUSE_OPENGL" = "yes"; then
885d4bf5
VS
11866 WXCONFIG_LIBS_GL="-l${WX_LIBRARY_GL} ${OPENGL_LIBS}"
11867 WXCONFIG_LIBS_STATIC_GL="lib${WX_LIBRARY_GL}.a ${OPENGL_LIBS}"
978f1259
RL
11868fi
11869
11870
3a922bb4
RL
11871
11872if test "$wxUSE_SHARED" = "yes"; then
55e80573
VZ
11873
11874 if test "$wxUSE_OPENGL" = "yes"; then
11875 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
3a922bb4 11876 WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1} \$(build_libdir)/${WX_LIBRARY_LINK1_GL}"
55e80573
VZ
11877 else
11878 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
3a922bb4 11879 WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1}"
55e80573
VZ
11880 fi
11881
dd4f7467 11882 if test "$GCC" = "yes"; then
55e80573 11883 PIC_FLAG="-fPIC"
dd4f7467 11884 fi
55e80573
VZ
11885
11886 SHARED_LD="${CXX} -shared -o"
698dcdb6 11887
10f2d63a
VZ
11888 case "${host}" in
11889 *-hp-hpux* )
55e80573 11890 if test "$GCC" != "yes"; then
3d63bc3a 11891 LDFLAGS="$LDFLAGS -L/usr/lib"
f6bcfd97 11892
10f2d63a
VZ
11893 SHARED_LD="${CXX} -b -o"
11894 PIC_FLAG="+Z"
11895 fi
55e80573 11896
7b7a7637
RL
11897 if test "$wxUSE_OPENGL" = "yes"; then
11898 WX_ALL_INSTALLED="preinstall_gl"
11899 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}"
11900 else
11901 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}"
11902 fi
10f2d63a 11903 ;;
b12915c1 11904
55e80573
VZ
11905 *-*-linux* )
11906 if test "$GCC" != "yes"; then
11907 echo $ac_n "checking for Intel compiler""... $ac_c" 1>&6
69d27ff7 11908echo "configure:11909: checking for Intel compiler" >&5
55e80573
VZ
11909if eval "test \"`echo '$''{'wx_cv_prog_icc'+set}'`\" = set"; then
11910 echo $ac_n "(cached) $ac_c" 1>&6
11911else
11912
11913 cat > conftest.$ac_ext <<EOF
69d27ff7 11914#line 11915 "configure"
55e80573
VZ
11915#include "confdefs.h"
11916
11917int main() {
11918
11919 #ifndef __INTEL_COMPILER
dd4f7467 11920 #error Not icc
55e80573
VZ
11921 #endif
11922
11923; return 0; }
11924EOF
69d27ff7 11925if { (eval echo configure:11926: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
55e80573
VZ
11926 rm -rf conftest*
11927 wx_cv_prog_icc=yes
11928else
11929 echo "configure: failed program was:" >&5
11930 cat conftest.$ac_ext >&5
11931 rm -rf conftest*
11932 wx_cv_prog_icc=no
11933
11934fi
11935rm -f conftest*
11936
11937fi
11938
11939echo "$ac_t""$wx_cv_prog_icc" 1>&6
55e80573
VZ
11940 if test "$wx_cv_prog_icc" = "yes"; then
11941 PIC_FLAG="-KPIC"
11942 fi
11943 fi
11944
3a922bb4
RL
11945 if test "$wxUSE_SONAME" = "yes" ; then
11946 SONAME_FLAGS="-Wl,-soname,${WX_LIBRARY_LINK1}"
11947 SONAME_FLAGS_GL="-Wl,-soname,${WX_LIBRARY_LINK1_GL}"
f6bcfd97 11948 WX_TARGET_LIBRARY_SONAME="-Wl,-soname,\$(TARGETLIB_LINK1)"
00cf1208 11949 fi
10f2d63a 11950 ;;
55e80573 11951
10f2d63a
VZ
11952 *-*-solaris2* )
11953 if test "$GCC" = yes ; then
f6bcfd97 11954 CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
10f2d63a
VZ
11955 else
11956 SHARED_LD="${CXX} -G -o"
11957 PIC_FLAG="-KPIC"
7b7a7637
RL
11958 SONAME_FLAGS="-h ${WX_LIBRARY_NAME_SHARED}"
11959 SONAME_FLAGS_GL="-h ${WX_LIBRARY_NAME_SHARED}"
10f2d63a 11960 fi
10f2d63a 11961 ;;
55e80573 11962
b4085ce6 11963 *-*-darwin* )
156b2523
GD
11964 CFLAGS="$CFLAGS -fno-common -DDYLIB_INIT"
11965 CXXFLAGS="$CXXFLAGS -fno-common -DDYLIB_INIT"
11966 SHARED_LD="$CXX -dynamiclib -init _wxWindowsDylibInit -o"
ea5999b9 11967 PIC_FLAG="-dynamic -fPIC"
10f2d63a 11968 ;;
55e80573 11969
10f2d63a
VZ
11970 *-*-aix* )
11971 SHARED_LD="/usr/lpp/xlC/bin/makeC++SharedLib -p 0 -o"
10f2d63a 11972 ;;
55e80573 11973
7b7a7637 11974 *-*-cygwin* | *-*-mingw32* )
77e13408 11975
2da4f892 11976 WX_LIBRARY_IMPORTLIB="${WX_LIBRARY_NAME_SHARED}.a"
77e13408 11977
77e13408 11978 SHARED_LD="${CXX} -shared -Wl,--out-implib,lib/${WX_LIBRARY_IMPORTLIB} -o"
00c81359 11979 TOOLCHAIN_DLL_DEFS="${TOOLCHAIN_DLL_DEFS} -DWXUSINGDLL=1"
25d0687a
RL
11980
11981 PIC_FLAG="-UWXUSINGDLL -DWXMAKINGDLL=1 -D_DLL=1 -D_WINDLL=1"
7b7a7637
RL
11982
11983 if test "$wxUSE_OPENGL" = "yes"; then
f6bcfd97 11984 WX_ALL_INSTALLED="preinstall_gl"
978f1259 11985 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}"
f6bcfd97 11986 else
978f1259 11987 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}"
f6bcfd97 11988 fi
10f2d63a 11989 ;;
55e80573 11990
6fa882bd 11991 *-pc-os2_emx | *-pc-os2-emx )
7b7a7637 11992 wxUSE_SHARED=no
10f2d63a 11993 ;;
55e80573 11994
b12915c1 11995 *-*-beos* )
e2b8b066 11996 SHARED_LD="${LD} -shared -o"
b12915c1 11997 ;;
55e80573
VZ
11998
11999 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
12000 *-*-sunos4* | \
12001 *-*-irix5* | *-*-irix6* | \
12002 *-*-osf* | \
12003 *-*-dgux5* | \
12004 *-*-sysv5* )
12005 ;;
12006
10f2d63a 12007 *)
7b7a7637 12008 { echo "configure: error: unknown system type $host." 1>&2; exit 1; }
10f2d63a
VZ
12009 esac
12010
12011 if test "x$WX_TARGET_LIBRARY" = "x"; then
12012 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
bdad4e7e 12013 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}"
10f2d63a 12014 fi
55e80573 12015
3711412e 12016 WX_TARGET_LIBRARY_TYPE="so"
885d4bf5 12017 INSTALL_LIBRARY='$(INSTALL_PROGRAM)'
3a922bb4 12018fi
f6bcfd97 12019
3a922bb4 12020if test "$wxUSE_SHARED" = "no"; then
f6bcfd97 12021
3a922bb4 12022 if test "$wxUSE_GUI" = "no" -o "$USE_WIN32" = 1 ; then
f6bcfd97
BP
12023 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
12024 fi
12025
6fa882bd
RR
12026 if test "$wxUSE_MAC" = 1; then
12027 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
12028 fi
12029
3a922bb4
RL
12030 if test "$wxUSE_OPENGL" = "yes"; then
12031 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_gl"
12032 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC} \$(build_libdir)/${WX_LIBRARY_NAME_STATIC_GL}"
12033 else
12034 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC}"
12035 fi
698dcdb6 12036
3a922bb4
RL
12037 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
12038 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
12039
12040 WX_TARGET_LIBRARY_TYPE="a"
885d4bf5 12041 INSTALL_LIBRARY='$(INSTALL_DATA)'
10f2d63a 12042fi
10f2d63a 12043
d08b457b
GD
12044if test "$wxUSE_MAC" = 1; then
12045 WX_ALL="${WX_ALL} \$(build_libdir)/lib${WX_LIBRARY}.r"
e23081de 12046 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_res"
d08b457b
GD
12047 # Extract the first word of "Rez", so it can be a program name with args.
12048set dummy Rez; ac_word=$2
12049echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
69d27ff7 12050echo "configure:12051: checking for $ac_word" >&5
d08b457b
GD
12051if eval "test \"`echo '$''{'ac_cv_prog_RESCOMP'+set}'`\" = set"; then
12052 echo $ac_n "(cached) $ac_c" 1>&6
12053else
12054 if test -n "$RESCOMP"; then
12055 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
12056else
12057 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
12058 ac_dummy="$PATH"
12059 for ac_dir in $ac_dummy; do
12060 test -z "$ac_dir" && ac_dir=.
12061 if test -f $ac_dir/$ac_word; then
12062 ac_cv_prog_RESCOMP="Rez"
12063 break
12064 fi
12065 done
12066 IFS="$ac_save_ifs"
12067 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
12068fi
12069fi
12070RESCOMP="$ac_cv_prog_RESCOMP"
12071if test -n "$RESCOMP"; then
12072 echo "$ac_t""$RESCOMP" 1>&6
12073else
12074 echo "$ac_t""no" 1>&6
12075fi
12076
9f8148b1
GD
12077 # Extract the first word of "DeRez", so it can be a program name with args.
12078set dummy DeRez; ac_word=$2
d08b457b 12079echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
69d27ff7 12080echo "configure:12081: checking for $ac_word" >&5
d08b457b
GD
12081if eval "test \"`echo '$''{'ac_cv_prog_DEREZ'+set}'`\" = set"; then
12082 echo $ac_n "(cached) $ac_c" 1>&6
12083else
12084 if test -n "$DEREZ"; then
12085 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
12086else
12087 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
12088 ac_dummy="$PATH"
12089 for ac_dir in $ac_dummy; do
12090 test -z "$ac_dir" && ac_dir=.
12091 if test -f $ac_dir/$ac_word; then
9f8148b1 12092 ac_cv_prog_DEREZ="DeRez"
d08b457b
GD
12093 break
12094 fi
12095 done
12096 IFS="$ac_save_ifs"
9f8148b1 12097 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
d08b457b
GD
12098fi
12099fi
12100DEREZ="$ac_cv_prog_DEREZ"
12101if test -n "$DEREZ"; then
12102 echo "$ac_t""$DEREZ" 1>&6
12103else
12104 echo "$ac_t""no" 1>&6
12105fi
12106
12107 LIBWXMACRES="\$(top_builddir)/lib/lib${WX_LIBRARY}.r"
12108 LIBWXMACRESCOMP="\$(RESCOMP) Carbon.r -t APPL ${LIBWXMACRES} -o \$(BIN_PROGRAM)"
e23081de 12109 LIBWXMACRESWXCONFIG="${RESCOMP} Carbon.r -t APPL \${prefix}/lib/${WX_RESOURCES_MACOSX_COMPILED} -o"
d08b457b
GD
12110fi
12111
3a922bb4 12112
13c0541d
GD
12113if test "$wxUSE_MAC" != 1; then
12114 for ac_hdr in strings.h
9cfadba2 12115do
698dcdb6
VZ
12116ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12117echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
69d27ff7 12118echo "configure:12119: checking for $ac_hdr" >&5
698dcdb6
VZ
12119if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12120 echo $ac_n "(cached) $ac_c" 1>&6
12121else
12122 cat > conftest.$ac_ext <<EOF
69d27ff7 12123#line 12124 "configure"
9cfadba2 12124#include "confdefs.h"
698dcdb6
VZ
12125#include <$ac_hdr>
12126EOF
12127ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
69d27ff7 12128{ (eval echo configure:12129: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
12129ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12130if test -z "$ac_err"; then
12131 rm -rf conftest*
12132 eval "ac_cv_header_$ac_safe=yes"
6232543b 12133else
698dcdb6
VZ
12134 echo "$ac_err" >&5
12135 echo "configure: failed program was:" >&5
9cfadba2 12136 cat conftest.$ac_ext >&5
698dcdb6
VZ
12137 rm -rf conftest*
12138 eval "ac_cv_header_$ac_safe=no"
9cfadba2 12139fi
698dcdb6 12140rm -f conftest*
9cfadba2 12141fi
698dcdb6
VZ
12142if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12143 echo "$ac_t""yes" 1>&6
12144 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12145 cat >> confdefs.h <<EOF
12146#define $ac_tr_hdr 1
9cfadba2 12147EOF
698dcdb6
VZ
12148
12149else
12150 echo "$ac_t""no" 1>&6
9cfadba2
VZ
12151fi
12152done
10f2d63a 12153
13c0541d
GD
12154fi
12155
3a922bb4 12156for ac_hdr in stdlib.h
10f2d63a 12157do
698dcdb6
VZ
12158ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12159echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
69d27ff7 12160echo "configure:12161: checking for $ac_hdr" >&5
698dcdb6
VZ
12161if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12162 echo $ac_n "(cached) $ac_c" 1>&6
12163else
12164 cat > conftest.$ac_ext <<EOF
69d27ff7 12165#line 12166 "configure"
10f2d63a 12166#include "confdefs.h"
698dcdb6
VZ
12167#include <$ac_hdr>
12168EOF
12169ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
69d27ff7 12170{ (eval echo configure:12171: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
12171ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12172if test -z "$ac_err"; then
12173 rm -rf conftest*
12174 eval "ac_cv_header_$ac_safe=yes"
6232543b 12175else
698dcdb6
VZ
12176 echo "$ac_err" >&5
12177 echo "configure: failed program was:" >&5
10f2d63a 12178 cat conftest.$ac_ext >&5
698dcdb6
VZ
12179 rm -rf conftest*
12180 eval "ac_cv_header_$ac_safe=no"
10f2d63a 12181fi
698dcdb6 12182rm -f conftest*
10f2d63a 12183fi
698dcdb6
VZ
12184if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12185 echo "$ac_t""yes" 1>&6
12186 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12187 cat >> confdefs.h <<EOF
12188#define $ac_tr_hdr 1
10f2d63a 12189EOF
698dcdb6
VZ
12190
12191else
12192 echo "$ac_t""no" 1>&6
10f2d63a
VZ
12193fi
12194done
12195
9f8148b1 12196for ac_hdr in malloc.h
10f2d63a 12197do
698dcdb6
VZ
12198ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12199echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
69d27ff7 12200echo "configure:12201: checking for $ac_hdr" >&5
698dcdb6
VZ
12201if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12202 echo $ac_n "(cached) $ac_c" 1>&6
12203else
12204 cat > conftest.$ac_ext <<EOF
69d27ff7 12205#line 12206 "configure"
10f2d63a 12206#include "confdefs.h"
698dcdb6
VZ
12207#include <$ac_hdr>
12208EOF
12209ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
69d27ff7 12210{ (eval echo configure:12211: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
12211ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12212if test -z "$ac_err"; then
12213 rm -rf conftest*
12214 eval "ac_cv_header_$ac_safe=yes"
6f72b082 12215else
698dcdb6
VZ
12216 echo "$ac_err" >&5
12217 echo "configure: failed program was:" >&5
6f72b082 12218 cat conftest.$ac_ext >&5
698dcdb6
VZ
12219 rm -rf conftest*
12220 eval "ac_cv_header_$ac_safe=no"
6f72b082 12221fi
698dcdb6 12222rm -f conftest*
6f72b082 12223fi
698dcdb6
VZ
12224if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12225 echo "$ac_t""yes" 1>&6
12226 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12227 cat >> confdefs.h <<EOF
12228#define $ac_tr_hdr 1
6f72b082 12229EOF
698dcdb6
VZ
12230
12231else
12232 echo "$ac_t""no" 1>&6
6f72b082
OK
12233fi
12234done
12235
9f8148b1 12236for ac_hdr in unistd.h
6f72b082 12237do
698dcdb6
VZ
12238ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12239echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
69d27ff7 12240echo "configure:12241: checking for $ac_hdr" >&5
698dcdb6
VZ
12241if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12242 echo $ac_n "(cached) $ac_c" 1>&6
12243else
12244 cat > conftest.$ac_ext <<EOF
69d27ff7 12245#line 12246 "configure"
6f72b082 12246#include "confdefs.h"
698dcdb6
VZ
12247#include <$ac_hdr>
12248EOF
12249ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
69d27ff7 12250{ (eval echo configure:12251: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
12251ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12252if test -z "$ac_err"; then
12253 rm -rf conftest*
12254 eval "ac_cv_header_$ac_safe=yes"
6f72b082 12255else
698dcdb6
VZ
12256 echo "$ac_err" >&5
12257 echo "configure: failed program was:" >&5
6f72b082 12258 cat conftest.$ac_ext >&5
698dcdb6
VZ
12259 rm -rf conftest*
12260 eval "ac_cv_header_$ac_safe=no"
6f72b082 12261fi
698dcdb6 12262rm -f conftest*
6f72b082 12263fi
698dcdb6
VZ
12264if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12265 echo "$ac_t""yes" 1>&6
12266 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12267 cat >> confdefs.h <<EOF
12268#define $ac_tr_hdr 1
6f72b082 12269EOF
698dcdb6
VZ
12270
12271else
12272 echo "$ac_t""no" 1>&6
6f72b082
OK
12273fi
12274done
12275
9f8148b1 12276for ac_hdr in wchar.h
6f72b082 12277do
698dcdb6
VZ
12278ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12279echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
69d27ff7 12280echo "configure:12281: checking for $ac_hdr" >&5
698dcdb6
VZ
12281if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12282 echo $ac_n "(cached) $ac_c" 1>&6
12283else
12284 cat > conftest.$ac_ext <<EOF
69d27ff7 12285#line 12286 "configure"
6f72b082 12286#include "confdefs.h"
698dcdb6
VZ
12287#include <$ac_hdr>
12288EOF
12289ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
69d27ff7 12290{ (eval echo configure:12291: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
12291ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12292if test -z "$ac_err"; then
12293 rm -rf conftest*
12294 eval "ac_cv_header_$ac_safe=yes"
10f2d63a 12295else
698dcdb6
VZ
12296 echo "$ac_err" >&5
12297 echo "configure: failed program was:" >&5
10f2d63a 12298 cat conftest.$ac_ext >&5
698dcdb6
VZ
12299 rm -rf conftest*
12300 eval "ac_cv_header_$ac_safe=no"
10f2d63a 12301fi
698dcdb6 12302rm -f conftest*
10f2d63a 12303fi
698dcdb6
VZ
12304if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12305 echo "$ac_t""yes" 1>&6
12306 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12307 cat >> confdefs.h <<EOF
12308#define $ac_tr_hdr 1
10f2d63a 12309EOF
698dcdb6
VZ
12310
12311else
12312 echo "$ac_t""no" 1>&6
10f2d63a
VZ
12313fi
12314done
12315
9f8148b1 12316for ac_hdr in wcstr.h
0fb0dd83 12317do
698dcdb6
VZ
12318ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12319echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
69d27ff7 12320echo "configure:12321: checking for $ac_hdr" >&5
698dcdb6
VZ
12321if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12322 echo $ac_n "(cached) $ac_c" 1>&6
12323else
12324 cat > conftest.$ac_ext <<EOF
69d27ff7 12325#line 12326 "configure"
0fb0dd83 12326#include "confdefs.h"
698dcdb6
VZ
12327#include <$ac_hdr>
12328EOF
12329ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
69d27ff7 12330{ (eval echo configure:12331: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
12331ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12332if test -z "$ac_err"; then
12333 rm -rf conftest*
12334 eval "ac_cv_header_$ac_safe=yes"
0fb0dd83 12335else
698dcdb6
VZ
12336 echo "$ac_err" >&5
12337 echo "configure: failed program was:" >&5
0fb0dd83 12338 cat conftest.$ac_ext >&5
698dcdb6
VZ
12339 rm -rf conftest*
12340 eval "ac_cv_header_$ac_safe=no"
0fb0dd83 12341fi
698dcdb6 12342rm -f conftest*
0fb0dd83 12343fi
698dcdb6
VZ
12344if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12345 echo "$ac_t""yes" 1>&6
12346 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12347 cat >> confdefs.h <<EOF
12348#define $ac_tr_hdr 1
0fb0dd83 12349EOF
698dcdb6
VZ
12350
12351else
12352 echo "$ac_t""no" 1>&6
0fb0dd83
RR
12353fi
12354done
12355
9f8148b1 12356for ac_hdr in wctype.h
1f8ae82f 12357do
698dcdb6
VZ
12358ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12359echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
69d27ff7 12360echo "configure:12361: checking for $ac_hdr" >&5
698dcdb6
VZ
12361if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12362 echo $ac_n "(cached) $ac_c" 1>&6
12363else
12364 cat > conftest.$ac_ext <<EOF
69d27ff7 12365#line 12366 "configure"
1f8ae82f 12366#include "confdefs.h"
698dcdb6
VZ
12367#include <$ac_hdr>
12368EOF
12369ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
69d27ff7 12370{ (eval echo configure:12371: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
12371ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12372if test -z "$ac_err"; then
12373 rm -rf conftest*
12374 eval "ac_cv_header_$ac_safe=yes"
1f8ae82f 12375else
698dcdb6
VZ
12376 echo "$ac_err" >&5
12377 echo "configure: failed program was:" >&5
1f8ae82f 12378 cat conftest.$ac_ext >&5
698dcdb6
VZ
12379 rm -rf conftest*
12380 eval "ac_cv_header_$ac_safe=no"
1f8ae82f 12381fi
698dcdb6 12382rm -f conftest*
1f8ae82f 12383fi
698dcdb6
VZ
12384if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12385 echo "$ac_t""yes" 1>&6
12386 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12387 cat >> confdefs.h <<EOF
12388#define $ac_tr_hdr 1
1f8ae82f 12389EOF
698dcdb6
VZ
12390
12391else
12392 echo "$ac_t""no" 1>&6
1f8ae82f
GD
12393fi
12394done
12395
9f8148b1 12396for ac_hdr in fnmatch.h
10f2d63a 12397do
698dcdb6
VZ
12398ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12399echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
69d27ff7 12400echo "configure:12401: checking for $ac_hdr" >&5
698dcdb6
VZ
12401if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12402 echo $ac_n "(cached) $ac_c" 1>&6
12403else
12404 cat > conftest.$ac_ext <<EOF
69d27ff7 12405#line 12406 "configure"
10f2d63a 12406#include "confdefs.h"
698dcdb6
VZ
12407#include <$ac_hdr>
12408EOF
12409ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
69d27ff7 12410{ (eval echo configure:12411: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
12411ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12412if test -z "$ac_err"; then
12413 rm -rf conftest*
12414 eval "ac_cv_header_$ac_safe=yes"
10f2d63a 12415else
698dcdb6
VZ
12416 echo "$ac_err" >&5
12417 echo "configure: failed program was:" >&5
10f2d63a 12418 cat conftest.$ac_ext >&5
698dcdb6
VZ
12419 rm -rf conftest*
12420 eval "ac_cv_header_$ac_safe=no"
10f2d63a 12421fi
698dcdb6 12422rm -f conftest*
10f2d63a 12423fi
698dcdb6
VZ
12424if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12425 echo "$ac_t""yes" 1>&6
12426 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12427 cat >> confdefs.h <<EOF
12428#define $ac_tr_hdr 1
10f2d63a 12429EOF
698dcdb6
VZ
12430
12431else
12432 echo "$ac_t""no" 1>&6
10f2d63a
VZ
12433fi
12434done
12435
9f8148b1 12436for ac_hdr in iconv.h
0fbb762e
MB
12437do
12438ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12439echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
69d27ff7 12440echo "configure:12441: checking for $ac_hdr" >&5
0fbb762e
MB
12441if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12442 echo $ac_n "(cached) $ac_c" 1>&6
12443else
12444 cat > conftest.$ac_ext <<EOF
69d27ff7 12445#line 12446 "configure"
0fbb762e
MB
12446#include "confdefs.h"
12447#include <$ac_hdr>
12448EOF
12449ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
69d27ff7 12450{ (eval echo configure:12451: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
0fbb762e
MB
12451ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12452if test -z "$ac_err"; then
12453 rm -rf conftest*
12454 eval "ac_cv_header_$ac_safe=yes"
12455else
12456 echo "$ac_err" >&5
12457 echo "configure: failed program was:" >&5
12458 cat conftest.$ac_ext >&5
12459 rm -rf conftest*
12460 eval "ac_cv_header_$ac_safe=no"
12461fi
12462rm -f conftest*
12463fi
12464if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12465 echo "$ac_t""yes" 1>&6
12466 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12467 cat >> confdefs.h <<EOF
12468#define $ac_tr_hdr 1
12469EOF
12470
12471else
12472 echo "$ac_t""no" 1>&6
12473fi
12474done
12475
9f8148b1
GD
12476for ac_hdr in langinfo.h
12477do
12478ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12479echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12480echo "configure:12481: checking for $ac_hdr" >&5
12481if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12482 echo $ac_n "(cached) $ac_c" 1>&6
12483else
12484 cat > conftest.$ac_ext <<EOF
12485#line 12486 "configure"
12486#include "confdefs.h"
12487#include <$ac_hdr>
12488EOF
12489ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12490{ (eval echo configure:12491: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12491ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12492if test -z "$ac_err"; then
12493 rm -rf conftest*
12494 eval "ac_cv_header_$ac_safe=yes"
12495else
12496 echo "$ac_err" >&5
12497 echo "configure: failed program was:" >&5
12498 cat conftest.$ac_ext >&5
12499 rm -rf conftest*
12500 eval "ac_cv_header_$ac_safe=no"
12501fi
12502rm -f conftest*
12503fi
12504if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12505 echo "$ac_t""yes" 1>&6
12506 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12507 cat >> confdefs.h <<EOF
12508#define $ac_tr_hdr 1
12509EOF
12510
12511else
12512 echo "$ac_t""no" 1>&6
12513fi
12514done
12515
10f2d63a 12516
3a922bb4
RL
12517if test "$wxUSE_GUI" = "yes"; then
12518 if test "$wxUSE_UNIX" = "yes"; then
12519 for ac_hdr in X11/XKBlib.h
29fd3c0c
VS
12520do
12521ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12522echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9f8148b1 12523echo "configure:12524: checking for $ac_hdr" >&5
29fd3c0c
VS
12524if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12525 echo $ac_n "(cached) $ac_c" 1>&6
12526else
12527 cat > conftest.$ac_ext <<EOF
9f8148b1 12528#line 12529 "configure"
29fd3c0c
VS
12529#include "confdefs.h"
12530#include <$ac_hdr>
12531EOF
12532ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9f8148b1 12533{ (eval echo configure:12534: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
29fd3c0c
VS
12534ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12535if test -z "$ac_err"; then
12536 rm -rf conftest*
12537 eval "ac_cv_header_$ac_safe=yes"
12538else
12539 echo "$ac_err" >&5
12540 echo "configure: failed program was:" >&5
12541 cat conftest.$ac_ext >&5
12542 rm -rf conftest*
12543 eval "ac_cv_header_$ac_safe=no"
12544fi
12545rm -f conftest*
12546fi
12547if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12548 echo "$ac_t""yes" 1>&6
12549 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12550 cat >> confdefs.h <<EOF
12551#define $ac_tr_hdr 1
12552EOF
12553
12554else
12555 echo "$ac_t""no" 1>&6
12556fi
12557done
12558
3a922bb4 12559 fi
29fd3c0c
VS
12560fi
12561
698dcdb6
VZ
12562
12563echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
9f8148b1 12564echo "configure:12565: checking for ANSI C header files" >&5
698dcdb6
VZ
12565if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
12566 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 12567else
698dcdb6 12568 cat > conftest.$ac_ext <<EOF
9f8148b1 12569#line 12570 "configure"
10f2d63a
VZ
12570#include "confdefs.h"
12571#include <stdlib.h>
12572#include <stdarg.h>
12573#include <string.h>
12574#include <float.h>
698dcdb6
VZ
12575EOF
12576ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9f8148b1 12577{ (eval echo configure:12578: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
12578ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12579if test -z "$ac_err"; then
12580 rm -rf conftest*
10f2d63a
VZ
12581 ac_cv_header_stdc=yes
12582else
698dcdb6
VZ
12583 echo "$ac_err" >&5
12584 echo "configure: failed program was:" >&5
10f2d63a 12585 cat conftest.$ac_ext >&5
698dcdb6 12586 rm -rf conftest*
10f2d63a
VZ
12587 ac_cv_header_stdc=no
12588fi
698dcdb6 12589rm -f conftest*
10f2d63a
VZ
12590
12591if test $ac_cv_header_stdc = yes; then
12592 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
698dcdb6 12593cat > conftest.$ac_ext <<EOF
9f8148b1 12594#line 12595 "configure"
10f2d63a
VZ
12595#include "confdefs.h"
12596#include <string.h>
698dcdb6 12597EOF
10f2d63a
VZ
12598if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12599 egrep "memchr" >/dev/null 2>&1; then
12600 :
12601else
698dcdb6 12602 rm -rf conftest*
10f2d63a
VZ
12603 ac_cv_header_stdc=no
12604fi
12605rm -f conftest*
12606
12607fi
12608
12609if test $ac_cv_header_stdc = yes; then
12610 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
698dcdb6 12611cat > conftest.$ac_ext <<EOF
9f8148b1 12612#line 12613 "configure"
10f2d63a
VZ
12613#include "confdefs.h"
12614#include <stdlib.h>
698dcdb6 12615EOF
10f2d63a
VZ
12616if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12617 egrep "free" >/dev/null 2>&1; then
12618 :
12619else
698dcdb6 12620 rm -rf conftest*
10f2d63a
VZ
12621 ac_cv_header_stdc=no
12622fi
12623rm -f conftest*
12624
12625fi
12626
12627if test $ac_cv_header_stdc = yes; then
12628 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
698dcdb6 12629if test "$cross_compiling" = yes; then
10f2d63a
VZ
12630 :
12631else
698dcdb6 12632 cat > conftest.$ac_ext <<EOF
9f8148b1 12633#line 12634 "configure"
10f2d63a
VZ
12634#include "confdefs.h"
12635#include <ctype.h>
698dcdb6
VZ
12636#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12637#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1e487827 12638#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
698dcdb6
VZ
12639int main () { int i; for (i = 0; i < 256; i++)
12640if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
12641exit (0); }
12642
12643EOF
9f8148b1 12644if { (eval echo configure:12645: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6 12645then
10f2d63a
VZ
12646 :
12647else
698dcdb6
VZ
12648 echo "configure: failed program was:" >&5
12649 cat conftest.$ac_ext >&5
12650 rm -fr conftest*
12651 ac_cv_header_stdc=no
10f2d63a 12652fi
698dcdb6 12653rm -fr conftest*
10f2d63a 12654fi
698dcdb6 12655
10f2d63a
VZ
12656fi
12657fi
1e487827 12658
698dcdb6
VZ
12659echo "$ac_t""$ac_cv_header_stdc" 1>&6
12660if test $ac_cv_header_stdc = yes; then
12661 cat >> confdefs.h <<\EOF
10f2d63a
VZ
12662#define STDC_HEADERS 1
12663EOF
12664
12665fi
12666
698dcdb6 12667echo $ac_n "checking for mode_t""... $ac_c" 1>&6
9f8148b1 12668echo "configure:12669: checking for mode_t" >&5
698dcdb6
VZ
12669if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
12670 echo $ac_n "(cached) $ac_c" 1>&6
1e487827 12671else
698dcdb6 12672 cat > conftest.$ac_ext <<EOF
9f8148b1 12673#line 12674 "configure"
1e487827 12674#include "confdefs.h"
698dcdb6
VZ
12675#include <sys/types.h>
12676#if STDC_HEADERS
12677#include <stdlib.h>
12678#include <stddef.h>
12679#endif
12680EOF
12681if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12682 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
12683 rm -rf conftest*
10f2d63a
VZ
12684 ac_cv_type_mode_t=yes
12685else
698dcdb6
VZ
12686 rm -rf conftest*
12687 ac_cv_type_mode_t=no
703e0a69 12688fi
698dcdb6 12689rm -f conftest*
1e487827 12690
698dcdb6
VZ
12691fi
12692echo "$ac_t""$ac_cv_type_mode_t" 1>&6
12693if test $ac_cv_type_mode_t = no; then
12694 cat >> confdefs.h <<\EOF
10f2d63a
VZ
12695#define mode_t int
12696EOF
12697
12698fi
12699
698dcdb6 12700echo $ac_n "checking for off_t""... $ac_c" 1>&6
9f8148b1 12701echo "configure:12702: checking for off_t" >&5
698dcdb6
VZ
12702if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
12703 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 12704else
698dcdb6 12705 cat > conftest.$ac_ext <<EOF
9f8148b1 12706#line 12707 "configure"
10f2d63a 12707#include "confdefs.h"
698dcdb6
VZ
12708#include <sys/types.h>
12709#if STDC_HEADERS
12710#include <stdlib.h>
12711#include <stddef.h>
12712#endif
12713EOF
12714if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12715 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
12716 rm -rf conftest*
10f2d63a
VZ
12717 ac_cv_type_off_t=yes
12718else
698dcdb6
VZ
12719 rm -rf conftest*
12720 ac_cv_type_off_t=no
703e0a69 12721fi
698dcdb6 12722rm -f conftest*
1e487827 12723
698dcdb6
VZ
12724fi
12725echo "$ac_t""$ac_cv_type_off_t" 1>&6
12726if test $ac_cv_type_off_t = no; then
12727 cat >> confdefs.h <<\EOF
10f2d63a
VZ
12728#define off_t long
12729EOF
12730
12731fi
12732
698dcdb6 12733echo $ac_n "checking for pid_t""... $ac_c" 1>&6
9f8148b1 12734echo "configure:12735: checking for pid_t" >&5
698dcdb6
VZ
12735if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
12736 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 12737else
698dcdb6 12738 cat > conftest.$ac_ext <<EOF
9f8148b1 12739#line 12740 "configure"
10f2d63a 12740#include "confdefs.h"
698dcdb6
VZ
12741#include <sys/types.h>
12742#if STDC_HEADERS
12743#include <stdlib.h>
12744#include <stddef.h>
12745#endif
12746EOF
12747if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12748 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
12749 rm -rf conftest*
10f2d63a
VZ
12750 ac_cv_type_pid_t=yes
12751else
698dcdb6
VZ
12752 rm -rf conftest*
12753 ac_cv_type_pid_t=no
703e0a69 12754fi
698dcdb6 12755rm -f conftest*
1e487827 12756
698dcdb6
VZ
12757fi
12758echo "$ac_t""$ac_cv_type_pid_t" 1>&6
12759if test $ac_cv_type_pid_t = no; then
12760 cat >> confdefs.h <<\EOF
10f2d63a
VZ
12761#define pid_t int
12762EOF
12763
12764fi
12765
698dcdb6 12766echo $ac_n "checking for size_t""... $ac_c" 1>&6
9f8148b1 12767echo "configure:12768: checking for size_t" >&5
698dcdb6
VZ
12768if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
12769 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 12770else
698dcdb6 12771 cat > conftest.$ac_ext <<EOF
9f8148b1 12772#line 12773 "configure"
10f2d63a 12773#include "confdefs.h"
698dcdb6
VZ
12774#include <sys/types.h>
12775#if STDC_HEADERS
12776#include <stdlib.h>
12777#include <stddef.h>
12778#endif
12779EOF
12780if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12781 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
12782 rm -rf conftest*
10f2d63a
VZ
12783 ac_cv_type_size_t=yes
12784else
698dcdb6
VZ
12785 rm -rf conftest*
12786 ac_cv_type_size_t=no
703e0a69 12787fi
698dcdb6 12788rm -f conftest*
1e487827 12789
698dcdb6
VZ
12790fi
12791echo "$ac_t""$ac_cv_type_size_t" 1>&6
12792if test $ac_cv_type_size_t = no; then
12793 cat >> confdefs.h <<\EOF
10f2d63a
VZ
12794#define size_t unsigned
12795EOF
12796
12797fi
12798
698dcdb6 12799echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
9f8148b1 12800echo "configure:12801: checking for uid_t in sys/types.h" >&5
698dcdb6
VZ
12801if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
12802 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 12803else
698dcdb6 12804 cat > conftest.$ac_ext <<EOF
9f8148b1 12805#line 12806 "configure"
10f2d63a
VZ
12806#include "confdefs.h"
12807#include <sys/types.h>
698dcdb6 12808EOF
10f2d63a
VZ
12809if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12810 egrep "uid_t" >/dev/null 2>&1; then
698dcdb6 12811 rm -rf conftest*
10f2d63a
VZ
12812 ac_cv_type_uid_t=yes
12813else
698dcdb6 12814 rm -rf conftest*
10f2d63a
VZ
12815 ac_cv_type_uid_t=no
12816fi
12817rm -f conftest*
12818
12819fi
1e487827 12820
698dcdb6
VZ
12821echo "$ac_t""$ac_cv_type_uid_t" 1>&6
12822if test $ac_cv_type_uid_t = no; then
12823 cat >> confdefs.h <<\EOF
10f2d63a
VZ
12824#define uid_t int
12825EOF
12826
698dcdb6 12827 cat >> confdefs.h <<\EOF
10f2d63a
VZ
12828#define gid_t int
12829EOF
12830
12831fi
12832
1e487827 12833
698dcdb6 12834echo $ac_n "checking for wchar_t""... $ac_c" 1>&6
9f8148b1 12835echo "configure:12836: checking for wchar_t" >&5
698dcdb6
VZ
12836if eval "test \"`echo '$''{'wx_cv_type_wchar_t'+set}'`\" = set"; then
12837 echo $ac_n "(cached) $ac_c" 1>&6
12838else
12839
12840 cat > conftest.$ac_ext <<EOF
9f8148b1 12841#line 12842 "configure"
0046ff7c 12842#include "confdefs.h"
4b42290e
GD
12843
12844 #ifdef HAVE_WCHAR_H
0fbb762e
MB
12845 # ifdef __CYGWIN__
12846 # include <stddef.h>
12847 # endif
4b42290e
GD
12848 # include <wchar.h>
12849 #endif
12850 #ifdef HAVE_STDLIB_H
12851 # include <stdlib.h>
12852 #endif
12853
698dcdb6 12854int main() {
0046ff7c 12855
d836ee96
VZ
12856 wchar_t wc, *ws;
12857 wc = L'a';
12858 ws = L"Hello, world!";
698dcdb6
VZ
12859
12860; return 0; }
12861EOF
9f8148b1 12862if { (eval echo configure:12863: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 12863 rm -rf conftest*
1f8ae82f 12864 wx_cv_type_wchar_t=yes
0046ff7c 12865else
698dcdb6
VZ
12866 echo "configure: failed program was:" >&5
12867 cat conftest.$ac_ext >&5
12868 rm -rf conftest*
12869 wx_cv_type_wchar_t=no
d836ee96 12870
6232543b 12871fi
698dcdb6 12872rm -f conftest*
703e0a69 12873
1e487827 12874fi
698dcdb6
VZ
12875
12876echo "$ac_t""$wx_cv_type_wchar_t" 1>&6
d836ee96
VZ
12877
12878if test "$wx_cv_type_wchar_t" = "yes"; then
698dcdb6 12879 cat >> confdefs.h <<\EOF
0046ff7c
VS
12880#define wxUSE_WCHAR_T 1
12881EOF
12882
12883fi
12884
19af3b06
VZ
12885
12886ac_ext=C
12887# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12888ac_cpp='$CXXCPP $CPPFLAGS'
12889ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12890ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12891cross_compiling=$ac_cv_prog_cxx_cross
12892
d836ee96 12893echo $ac_n "checking if size_t is unsigned int""... $ac_c" 1>&6
9f8148b1 12894echo "configure:12895: checking if size_t is unsigned int" >&5
d836ee96
VZ
12895if eval "test \"`echo '$''{'wx_cv_size_t_is_uint'+set}'`\" = set"; then
12896 echo $ac_n "(cached) $ac_c" 1>&6
12897else
dd2c8b7c 12898 cat > conftest.$ac_ext <<EOF
9f8148b1 12899#line 12900 "configure"
d836ee96
VZ
12900#include "confdefs.h"
12901#include <stddef.h>
12902int main() {
12903
dd2c8b7c
VZ
12904 return 0; }
12905
d836ee96 12906 struct Foo { void foo(size_t); void foo(unsigned int); };
dd2c8b7c
VZ
12907
12908 int bar() {
d836ee96
VZ
12909
12910; return 0; }
12911EOF
9f8148b1 12912if { (eval echo configure:12913: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d836ee96
VZ
12913 rm -rf conftest*
12914 wx_cv_size_t_is_uint=no
12915else
12916 echo "configure: failed program was:" >&5
12917 cat conftest.$ac_ext >&5
12918 rm -rf conftest*
12919 wx_cv_size_t_is_uint=yes
12920
12921fi
12922rm -f conftest*
12923
12924fi
12925
12926echo "$ac_t""$wx_cv_size_t_is_uint" 1>&6
12927
12928if test "$wx_cv_size_t_is_uint" = "yes"; then
12929 cat >> confdefs.h <<\EOF
12930#define wxSIZE_T_IS_UINT 1
12931EOF
12932
12933else
12934 echo $ac_n "checking if size_t is unsigned long""... $ac_c" 1>&6
9f8148b1 12935echo "configure:12936: checking if size_t is unsigned long" >&5
d836ee96
VZ
12936if eval "test \"`echo '$''{'wx_cv_size_t_is_ulong'+set}'`\" = set"; then
12937 echo $ac_n "(cached) $ac_c" 1>&6
12938else
12939 cat > conftest.$ac_ext <<EOF
9f8148b1 12940#line 12941 "configure"
d836ee96
VZ
12941#include "confdefs.h"
12942#include <stddef.h>
12943int main() {
12944
dd2c8b7c
VZ
12945 return 0; }
12946
d836ee96 12947 struct Foo { void foo(size_t); void foo(unsigned long); };
dd2c8b7c
VZ
12948
12949 int bar() {
d836ee96
VZ
12950
12951; return 0; }
12952EOF
9f8148b1 12953if { (eval echo configure:12954: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d836ee96
VZ
12954 rm -rf conftest*
12955 wx_cv_size_t_is_ulong=no
12956else
12957 echo "configure: failed program was:" >&5
12958 cat conftest.$ac_ext >&5
12959 rm -rf conftest*
12960 wx_cv_size_t_is_ulong=yes
12961
12962fi
12963rm -f conftest*
12964
12965fi
12966
12967echo "$ac_t""$wx_cv_size_t_is_ulong" 1>&6
12968
12969 if test "$wx_cv_size_t_is_ulong" = "yes"; then
12970 cat >> confdefs.h <<\EOF
12971#define wxSIZE_T_IS_ULONG 1
12972EOF
12973
12974 fi
12975fi
12976
19af3b06
VZ
12977ac_ext=c
12978# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12979ac_cpp='$CPP $CPPFLAGS'
12980ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12981ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12982cross_compiling=$ac_cv_prog_cc_cross
12983
12984
1e487827 12985
698dcdb6 12986echo $ac_n "checking for pw_gecos in struct passwd""... $ac_c" 1>&6
9f8148b1 12987echo "configure:12988: checking for pw_gecos in struct passwd" >&5
698dcdb6
VZ
12988if eval "test \"`echo '$''{'wx_cv_struct_pw_gecos'+set}'`\" = set"; then
12989 echo $ac_n "(cached) $ac_c" 1>&6
12990else
12991
12992 cat > conftest.$ac_ext <<EOF
9f8148b1 12993#line 12994 "configure"
b12915c1
VZ
12994#include "confdefs.h"
12995#include <pwd.h>
698dcdb6 12996int main() {
b12915c1
VZ
12997
12998 char *p;
12999 struct passwd *pw;
13000 p = pw->pw_gecos;
698dcdb6
VZ
13001
13002; return 0; }
13003EOF
9f8148b1 13004if { (eval echo configure:13005: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
13005 rm -rf conftest*
13006
b12915c1 13007 wx_cv_struct_pw_gecos=yes
698dcdb6 13008
b12915c1 13009else
698dcdb6
VZ
13010 echo "configure: failed program was:" >&5
13011 cat conftest.$ac_ext >&5
13012 rm -rf conftest*
13013
b12915c1 13014 wx_cv_struct_pw_gecos=no
698dcdb6
VZ
13015
13016
6232543b 13017fi
698dcdb6
VZ
13018rm -f conftest*
13019
703e0a69 13020
1e487827 13021fi
698dcdb6
VZ
13022
13023echo "$ac_t""$wx_cv_struct_pw_gecos" 1>&6
b12915c1 13024
bd3277fe 13025if test "$wx_cv_struct_pw_gecos" = "yes"; then
698dcdb6 13026 cat >> confdefs.h <<\EOF
bd3277fe
VZ
13027#define HAVE_PW_GECOS 1
13028EOF
13029
13030fi
13031
698dcdb6
VZ
13032
13033echo $ac_n "checking for working const""... $ac_c" 1>&6
9f8148b1 13034echo "configure:13035: checking for working const" >&5
698dcdb6
VZ
13035if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
13036 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 13037else
698dcdb6 13038 cat > conftest.$ac_ext <<EOF
9f8148b1 13039#line 13040 "configure"
10f2d63a 13040#include "confdefs.h"
698dcdb6
VZ
13041
13042int main() {
13043
13044/* Ultrix mips cc rejects this. */
9f8148b1 13045typedef int charset[2]; const charset x;
698dcdb6
VZ
13046/* SunOS 4.1.1 cc rejects this. */
13047char const *const *ccp;
13048char **p;
13049/* NEC SVR4.0.2 mips cc rejects this. */
13050struct point {int x, y;};
13051static struct point const zero = {0,0};
13052/* AIX XL C 1.02.0.0 rejects this.
13053 It does not let you subtract one const X* pointer from another in an arm
13054 of an if-expression whose if-part is not a constant expression */
13055const char *g = "string";
13056ccp = &g + (g ? g-g : 0);
13057/* HPUX 7.0 cc rejects these. */
13058++ccp;
13059p = (char**) ccp;
13060ccp = (char const *const *) p;
13061{ /* SCO 3.2v4 cc rejects this. */
13062 char *t;
13063 char const *s = 0 ? (char *) 0 : (char const *) 0;
13064
13065 *t++ = 0;
10f2d63a 13066}
698dcdb6
VZ
13067{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
13068 int x[] = {25, 17};
13069 const int *foo = &x[0];
13070 ++foo;
703e0a69 13071}
698dcdb6
VZ
13072{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13073 typedef const int *iptr;
13074 iptr p = 0;
13075 ++p;
6232543b 13076}
698dcdb6
VZ
13077{ /* AIX XL C 1.02.0.0 rejects this saying
13078 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13079 struct s { int j; const int *ap[3]; };
13080 struct s *b; b->j = 5;
1e487827 13081}
698dcdb6
VZ
13082{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13083 const int foo = 10;
13084}
4f14bcd8
GD
13085
13086; return 0; }
698dcdb6 13087EOF
9f8148b1 13088if { (eval echo configure:13089: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4f14bcd8
GD
13089 rm -rf conftest*
13090 ac_cv_c_const=yes
698dcdb6
VZ
13091else
13092 echo "configure: failed program was:" >&5
13093 cat conftest.$ac_ext >&5
4f14bcd8
GD
13094 rm -rf conftest*
13095 ac_cv_c_const=no
703e0a69 13096fi
4f14bcd8 13097rm -f conftest*
698dcdb6
VZ
13098fi
13099
4f14bcd8
GD
13100echo "$ac_t""$ac_cv_c_const" 1>&6
13101if test $ac_cv_c_const = no; then
13102 cat >> confdefs.h <<\EOF
13103#define const
698dcdb6
VZ
13104EOF
13105
4f14bcd8 13106fi
698dcdb6 13107
4f14bcd8 13108echo $ac_n "checking for inline""... $ac_c" 1>&6
9f8148b1 13109echo "configure:13110: checking for inline" >&5
4f14bcd8 13110if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
698dcdb6 13111 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 13112else
4f14bcd8
GD
13113 ac_cv_c_inline=no
13114for ac_kw in inline __inline__ __inline; do
698dcdb6 13115 cat > conftest.$ac_ext <<EOF
9f8148b1 13116#line 13117 "configure"
10f2d63a 13117#include "confdefs.h"
4f14bcd8
GD
13118
13119int main() {
9f8148b1 13120} $ac_kw foo() {
4f14bcd8 13121; return 0; }
698dcdb6 13122EOF
9f8148b1 13123if { (eval echo configure:13124: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4f14bcd8
GD
13124 rm -rf conftest*
13125 ac_cv_c_inline=$ac_kw; break
10f2d63a 13126else
698dcdb6
VZ
13127 echo "configure: failed program was:" >&5
13128 cat conftest.$ac_ext >&5
10f2d63a 13129fi
4f14bcd8
GD
13130rm -f conftest*
13131done
698dcdb6 13132
10f2d63a 13133fi
4f14bcd8
GD
13134
13135echo "$ac_t""$ac_cv_c_inline" 1>&6
13136case "$ac_cv_c_inline" in
13137 inline | yes) ;;
13138 no) cat >> confdefs.h <<\EOF
13139#define inline
13140EOF
13141 ;;
13142 *) cat >> confdefs.h <<EOF
13143#define inline $ac_cv_c_inline
698dcdb6 13144EOF
4f14bcd8
GD
13145 ;;
13146esac
698dcdb6
VZ
13147
13148
4f14bcd8 13149echo $ac_n "checking size of char""... $ac_c" 1>&6
9f8148b1 13150echo "configure:13151: checking size of char" >&5
4f14bcd8 13151if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
698dcdb6
VZ
13152 echo $ac_n "(cached) $ac_c" 1>&6
13153else
13154 if test "$cross_compiling" = yes; then
4f14bcd8 13155 ac_cv_sizeof_char=1
698dcdb6
VZ
13156else
13157 cat > conftest.$ac_ext <<EOF
9f8148b1 13158#line 13159 "configure"
698dcdb6
VZ
13159#include "confdefs.h"
13160#include <stdio.h>
13161main()
13162{
13163 FILE *f=fopen("conftestval", "w");
13164 if (!f) exit(1);
4f14bcd8 13165 fprintf(f, "%d\n", sizeof(char));
698dcdb6
VZ
13166 exit(0);
13167}
13168EOF
9f8148b1 13169if { (eval echo configure:13170: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6 13170then
4f14bcd8 13171 ac_cv_sizeof_char=`cat conftestval`
6232543b 13172else
698dcdb6
VZ
13173 echo "configure: failed program was:" >&5
13174 cat conftest.$ac_ext >&5
13175 rm -fr conftest*
4f14bcd8 13176 ac_cv_sizeof_char=0
6232543b 13177fi
698dcdb6
VZ
13178rm -fr conftest*
13179fi
13180
703e0a69 13181fi
4f14bcd8 13182echo "$ac_t""$ac_cv_sizeof_char" 1>&6
698dcdb6 13183cat >> confdefs.h <<EOF
4f14bcd8 13184#define SIZEOF_CHAR $ac_cv_sizeof_char
10f2d63a
VZ
13185EOF
13186
1e487827 13187
4f14bcd8 13188echo $ac_n "checking size of short""... $ac_c" 1>&6
9f8148b1 13189echo "configure:13190: checking size of short" >&5
4f14bcd8 13190if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
698dcdb6
VZ
13191 echo $ac_n "(cached) $ac_c" 1>&6
13192else
4f14bcd8
GD
13193 if test "$cross_compiling" = yes; then
13194 ac_cv_sizeof_short=2
b93d0d08 13195else
698dcdb6 13196 cat > conftest.$ac_ext <<EOF
9f8148b1 13197#line 13198 "configure"
b93d0d08 13198#include "confdefs.h"
4f14bcd8
GD
13199#include <stdio.h>
13200main()
13201{
13202 FILE *f=fopen("conftestval", "w");
13203 if (!f) exit(1);
13204 fprintf(f, "%d\n", sizeof(short));
13205 exit(0);
13206}
698dcdb6 13207EOF
9f8148b1 13208if { (eval echo configure:13209: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6 13209then
4f14bcd8 13210 ac_cv_sizeof_short=`cat conftestval`
b93d0d08 13211else
698dcdb6
VZ
13212 echo "configure: failed program was:" >&5
13213 cat conftest.$ac_ext >&5
13214 rm -fr conftest*
4f14bcd8 13215 ac_cv_sizeof_short=0
b93d0d08 13216fi
698dcdb6 13217rm -fr conftest*
b93d0d08
VS
13218fi
13219
b93d0d08 13220fi
4f14bcd8 13221echo "$ac_t""$ac_cv_sizeof_short" 1>&6
698dcdb6 13222cat >> confdefs.h <<EOF
4f14bcd8 13223#define SIZEOF_SHORT $ac_cv_sizeof_short
b93d0d08
VS
13224EOF
13225
698dcdb6 13226
4f14bcd8 13227echo $ac_n "checking size of int *""... $ac_c" 1>&6
9f8148b1 13228echo "configure:13229: checking size of int *" >&5
4f14bcd8 13229if eval "test \"`echo '$''{'ac_cv_sizeof_int_p'+set}'`\" = set"; then
698dcdb6 13230 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 13231else
4f14bcd8
GD
13232 if test "$cross_compiling" = yes; then
13233 ac_cv_sizeof_int_p=4
3a922bb4 13234else
3a922bb4 13235 cat > conftest.$ac_ext <<EOF
9f8148b1 13236#line 13237 "configure"
3a922bb4 13237#include "confdefs.h"
4f14bcd8
GD
13238#include <stdio.h>
13239main()
13240{
13241 FILE *f=fopen("conftestval", "w");
13242 if (!f) exit(1);
13243 fprintf(f, "%d\n", sizeof(int *));
13244 exit(0);
13245}
13246EOF
9f8148b1 13247if { (eval echo configure:13248: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4f14bcd8
GD
13248then
13249 ac_cv_sizeof_int_p=`cat conftestval`
13250else
13251 echo "configure: failed program was:" >&5
13252 cat conftest.$ac_ext >&5
13253 rm -fr conftest*
13254 ac_cv_sizeof_int_p=0
3a922bb4 13255fi
4f14bcd8 13256rm -fr conftest*
3a922bb4 13257fi
698dcdb6 13258
4f14bcd8
GD
13259fi
13260echo "$ac_t""$ac_cv_sizeof_int_p" 1>&6
13261cat >> confdefs.h <<EOF
13262#define SIZEOF_INT_P $ac_cv_sizeof_int_p
10f2d63a
VZ
13263EOF
13264
703e0a69 13265
4f14bcd8 13266echo $ac_n "checking size of int""... $ac_c" 1>&6
9f8148b1 13267echo "configure:13268: checking size of int" >&5
4f14bcd8 13268if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
698dcdb6 13269 echo $ac_n "(cached) $ac_c" 1>&6
4f14bcd8
GD
13270else
13271 if test "$cross_compiling" = yes; then
13272 ac_cv_sizeof_int=4
698dcdb6
VZ
13273else
13274 cat > conftest.$ac_ext <<EOF
9f8148b1 13275#line 13276 "configure"
10f2d63a 13276#include "confdefs.h"
4f14bcd8
GD
13277#include <stdio.h>
13278main()
13279{
13280 FILE *f=fopen("conftestval", "w");
13281 if (!f) exit(1);
13282 fprintf(f, "%d\n", sizeof(int));
13283 exit(0);
13284}
698dcdb6 13285EOF
9f8148b1 13286if { (eval echo configure:13287: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4f14bcd8
GD
13287then
13288 ac_cv_sizeof_int=`cat conftestval`
10f2d63a 13289else
698dcdb6 13290 echo "configure: failed program was:" >&5
10f2d63a 13291 cat conftest.$ac_ext >&5
4f14bcd8
GD
13292 rm -fr conftest*
13293 ac_cv_sizeof_int=0
10f2d63a 13294fi
4f14bcd8 13295rm -fr conftest*
10f2d63a 13296fi
10f2d63a 13297
4f14bcd8
GD
13298fi
13299echo "$ac_t""$ac_cv_sizeof_int" 1>&6
13300cat >> confdefs.h <<EOF
13301#define SIZEOF_INT $ac_cv_sizeof_int
10f2d63a
VZ
13302EOF
13303
698dcdb6 13304
4f14bcd8 13305echo $ac_n "checking size of long""... $ac_c" 1>&6
9f8148b1 13306echo "configure:13307: checking size of long" >&5
4f14bcd8 13307if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
698dcdb6
VZ
13308 echo $ac_n "(cached) $ac_c" 1>&6
13309else
4f14bcd8
GD
13310 if test "$cross_compiling" = yes; then
13311 ac_cv_sizeof_long=4
13312else
13313 cat > conftest.$ac_ext <<EOF
9f8148b1 13314#line 13315 "configure"
10f2d63a 13315#include "confdefs.h"
4f14bcd8
GD
13316#include <stdio.h>
13317main()
13318{
13319 FILE *f=fopen("conftestval", "w");
13320 if (!f) exit(1);
13321 fprintf(f, "%d\n", sizeof(long));
13322 exit(0);
13323}
698dcdb6 13324EOF
9f8148b1 13325if { (eval echo configure:13326: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4f14bcd8
GD
13326then
13327 ac_cv_sizeof_long=`cat conftestval`
10f2d63a 13328else
698dcdb6
VZ
13329 echo "configure: failed program was:" >&5
13330 cat conftest.$ac_ext >&5
4f14bcd8
GD
13331 rm -fr conftest*
13332 ac_cv_sizeof_long=0
10f2d63a 13333fi
4f14bcd8 13334rm -fr conftest*
10f2d63a 13335fi
698dcdb6 13336
4f14bcd8
GD
13337fi
13338echo "$ac_t""$ac_cv_sizeof_long" 1>&6
13339cat >> confdefs.h <<EOF
13340#define SIZEOF_LONG $ac_cv_sizeof_long
10f2d63a
VZ
13341EOF
13342
698dcdb6 13343
4f14bcd8 13344echo $ac_n "checking size of long long""... $ac_c" 1>&6
9f8148b1 13345echo "configure:13346: checking size of long long" >&5
4f14bcd8 13346if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
698dcdb6 13347 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 13348else
4f14bcd8
GD
13349 if test "$cross_compiling" = yes; then
13350 ac_cv_sizeof_long_long=0
13351else
13352 cat > conftest.$ac_ext <<EOF
9f8148b1 13353#line 13354 "configure"
10f2d63a 13354#include "confdefs.h"
4f14bcd8
GD
13355#include <stdio.h>
13356main()
13357{
13358 FILE *f=fopen("conftestval", "w");
13359 if (!f) exit(1);
13360 fprintf(f, "%d\n", sizeof(long long));
13361 exit(0);
13362}
698dcdb6 13363EOF
9f8148b1 13364if { (eval echo configure:13365: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4f14bcd8
GD
13365then
13366 ac_cv_sizeof_long_long=`cat conftestval`
698dcdb6
VZ
13367else
13368 echo "configure: failed program was:" >&5
13369 cat conftest.$ac_ext >&5
4f14bcd8
GD
13370 rm -fr conftest*
13371 ac_cv_sizeof_long_long=0
13372fi
13373rm -fr conftest*
698dcdb6 13374fi
698dcdb6
VZ
13375
13376fi
4f14bcd8
GD
13377echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
13378cat >> confdefs.h <<EOF
13379#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10f2d63a
VZ
13380EOF
13381
10f2d63a 13382
4f14bcd8
GD
13383
13384echo $ac_n "checking size of wchar_t""... $ac_c" 1>&6
9f8148b1 13385echo "configure:13386: checking size of wchar_t" >&5
4f14bcd8 13386if eval "test \"`echo '$''{'wx_cv_sizeof_wchar_t'+set}'`\" = set"; then
698dcdb6 13387 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 13388else
4f14bcd8
GD
13389
13390 if test "$cross_compiling" = yes; then
13391 wx_cv_sizeof_wchar_t=4
13392
13393else
13394 cat > conftest.$ac_ext <<EOF
9f8148b1 13395#line 13396 "configure"
10f2d63a 13396#include "confdefs.h"
698dcdb6 13397
4f14bcd8 13398 #ifdef HAVE_WCHAR_H
0fbb762e
MB
13399 # ifdef __CYGWIN__
13400 # include <stddef.h>
13401 # endif
4f14bcd8
GD
13402 # include <wchar.h>
13403 #endif
13404 #ifdef HAVE_STDLIB_H
13405 # include <stdlib.h>
13406 #endif
13407 #include <stdio.h>
13408 int main()
13409 {
13410 FILE *f=fopen("conftestval", "w");
13411 if (!f) exit(1);
13412 fprintf(f, "%i", sizeof(wchar_t));
13413 exit(0);
13414 }
13415
698dcdb6 13416EOF
9f8148b1 13417if { (eval echo configure:13418: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4f14bcd8
GD
13418then
13419 wx_cv_sizeof_wchar_t=`cat conftestval`
698dcdb6
VZ
13420else
13421 echo "configure: failed program was:" >&5
13422 cat conftest.$ac_ext >&5
4f14bcd8
GD
13423 rm -fr conftest*
13424 wx_cv_sizeof_wchar_t=0
698dcdb6 13425fi
4f14bcd8
GD
13426rm -fr conftest*
13427fi
13428
698dcdb6
VZ
13429
13430fi
4f14bcd8
GD
13431
13432echo "$ac_t""$wx_cv_sizeof_wchar_t" 1>&6
13433
13434cat >> confdefs.h <<EOF
13435#define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t
10f2d63a
VZ
13436EOF
13437
18dbb1f6 13438
4f14bcd8 13439echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
9f8148b1 13440echo "configure:13441: checking whether byte ordering is bigendian" >&5
4f14bcd8 13441if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
18dbb1f6
VZ
13442 echo $ac_n "(cached) $ac_c" 1>&6
13443else
4f14bcd8
GD
13444 ac_cv_c_bigendian=unknown
13445# See if sys/param.h defines the BYTE_ORDER macro.
18dbb1f6 13446cat > conftest.$ac_ext <<EOF
9f8148b1 13447#line 13448 "configure"
18dbb1f6 13448#include "confdefs.h"
4f14bcd8
GD
13449#include <sys/types.h>
13450#include <sys/param.h>
13451int main() {
18dbb1f6 13452
4f14bcd8
GD
13453#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
13454 bogus endian macros
13455#endif
13456; return 0; }
13457EOF
9f8148b1 13458if { (eval echo configure:13459: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4f14bcd8
GD
13459 rm -rf conftest*
13460 # It does; now see whether it defined to BIG_ENDIAN or not.
13461cat > conftest.$ac_ext <<EOF
9f8148b1 13462#line 13463 "configure"
4f14bcd8
GD
13463#include "confdefs.h"
13464#include <sys/types.h>
13465#include <sys/param.h>
18dbb1f6 13466int main() {
4f14bcd8
GD
13467
13468#if BYTE_ORDER != BIG_ENDIAN
13469 not big endian
13470#endif
18dbb1f6
VZ
13471; return 0; }
13472EOF
9f8148b1 13473if { (eval echo configure:13474: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18dbb1f6 13474 rm -rf conftest*
4f14bcd8 13475 ac_cv_c_bigendian=yes
18dbb1f6
VZ
13476else
13477 echo "configure: failed program was:" >&5
13478 cat conftest.$ac_ext >&5
13479 rm -rf conftest*
4f14bcd8 13480 ac_cv_c_bigendian=no
18dbb1f6
VZ
13481fi
13482rm -f conftest*
698dcdb6 13483else
4f14bcd8
GD
13484 echo "configure: failed program was:" >&5
13485 cat conftest.$ac_ext >&5
1e487827 13486fi
4f14bcd8
GD
13487rm -f conftest*
13488if test $ac_cv_c_bigendian = unknown; then
13489if test "$cross_compiling" = yes; then
13490 ac_cv_c_bigendian=unknown
b3e8d00a
VZ
13491else
13492 cat > conftest.$ac_ext <<EOF
9f8148b1 13493#line 13494 "configure"
b3e8d00a 13494#include "confdefs.h"
4f14bcd8
GD
13495main () {
13496 /* Are we little or big endian? From Harbison&Steele. */
13497 union
13498 {
13499 long l;
13500 char c[sizeof (long)];
13501 } u;
13502 u.l = 1;
13503 exit (u.c[sizeof (long) - 1] == 1);
13504}
b3e8d00a 13505EOF
9f8148b1 13506if { (eval echo configure:13507: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4f14bcd8
GD
13507then
13508 ac_cv_c_bigendian=no
b3e8d00a
VZ
13509else
13510 echo "configure: failed program was:" >&5
13511 cat conftest.$ac_ext >&5
4f14bcd8
GD
13512 rm -fr conftest*
13513 ac_cv_c_bigendian=yes
b3e8d00a 13514fi
4f14bcd8 13515rm -fr conftest*
b3e8d00a
VZ
13516fi
13517
4f14bcd8
GD
13518fi
13519fi
13520
13521echo "$ac_t""$ac_cv_c_bigendian" 1>&6
13522if test $ac_cv_c_bigendian = unknown; then
13523 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
13524fi
13525if test $ac_cv_c_bigendian = yes; then
13526 cat >> confdefs.h <<\EOF
13527#define WORDS_BIGENDIAN 1
b3e8d00a 13528EOF
4f14bcd8 13529
b3e8d00a 13530fi
b3e8d00a
VZ
13531
13532
4f14bcd8 13533echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
9f8148b1 13534echo "configure:13535: checking how to run the C++ preprocessor" >&5
4f14bcd8
GD
13535if test -z "$CXXCPP"; then
13536if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
698dcdb6
VZ
13537 echo $ac_n "(cached) $ac_c" 1>&6
13538else
4f14bcd8
GD
13539 ac_ext=C
13540# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13541ac_cpp='$CXXCPP $CPPFLAGS'
13542ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13543ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13544cross_compiling=$ac_cv_prog_cxx_cross
13545 CXXCPP="${CXX-g++} -E"
698dcdb6 13546 cat > conftest.$ac_ext <<EOF
9f8148b1 13547#line 13548 "configure"
10f2d63a 13548#include "confdefs.h"
4f14bcd8 13549#include <stdlib.h>
698dcdb6 13550EOF
4f14bcd8 13551ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9f8148b1 13552{ (eval echo configure:13553: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4f14bcd8
GD
13553ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13554if test -z "$ac_err"; then
13555 :
698dcdb6 13556else
4f14bcd8 13557 echo "$ac_err" >&5
698dcdb6
VZ
13558 echo "configure: failed program was:" >&5
13559 cat conftest.$ac_ext >&5
13560 rm -rf conftest*
4f14bcd8 13561 CXXCPP=/lib/cpp
698dcdb6
VZ
13562fi
13563rm -f conftest*
4f14bcd8
GD
13564 ac_cv_prog_CXXCPP="$CXXCPP"
13565ac_ext=C
13566# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13567ac_cpp='$CXXCPP $CPPFLAGS'
13568ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13569ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13570cross_compiling=$ac_cv_prog_cxx_cross
13571fi
698dcdb6 13572fi
4f14bcd8
GD
13573CXXCPP="$ac_cv_prog_CXXCPP"
13574echo "$ac_t""$CXXCPP" 1>&6
698dcdb6 13575
4f14bcd8
GD
13576
13577 if test "$cross_compiling" = "yes"; then
13578 cat >> confdefs.h <<\EOF
13579#define wxUSE_IOSTREAMH 1
698dcdb6
VZ
13580EOF
13581
4f14bcd8
GD
13582 else
13583
13584 ac_ext=C
13585# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13586ac_cpp='$CXXCPP $CPPFLAGS'
13587ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13588ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13589cross_compiling=$ac_cv_prog_cxx_cross
698dcdb6 13590
4f14bcd8
GD
13591
13592 for ac_hdr in iostream
13593do
13594ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13595echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9f8148b1 13596echo "configure:13597: checking for $ac_hdr" >&5
4f14bcd8 13597if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
698dcdb6
VZ
13598 echo $ac_n "(cached) $ac_c" 1>&6
13599else
13600 cat > conftest.$ac_ext <<EOF
9f8148b1 13601#line 13602 "configure"
10f2d63a 13602#include "confdefs.h"
4f14bcd8 13603#include <$ac_hdr>
698dcdb6 13604EOF
4f14bcd8 13605ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9f8148b1 13606{ (eval echo configure:13607: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4f14bcd8
GD
13607ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13608if test -z "$ac_err"; then
698dcdb6 13609 rm -rf conftest*
4f14bcd8 13610 eval "ac_cv_header_$ac_safe=yes"
698dcdb6 13611else
4f14bcd8 13612 echo "$ac_err" >&5
698dcdb6
VZ
13613 echo "configure: failed program was:" >&5
13614 cat conftest.$ac_ext >&5
13615 rm -rf conftest*
4f14bcd8 13616 eval "ac_cv_header_$ac_safe=no"
698dcdb6
VZ
13617fi
13618rm -f conftest*
13619fi
4f14bcd8 13620if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
698dcdb6 13621 echo "$ac_t""yes" 1>&6
4f14bcd8
GD
13622 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13623 cat >> confdefs.h <<EOF
13624#define $ac_tr_hdr 1
10f2d63a 13625EOF
4f14bcd8 13626
698dcdb6
VZ
13627else
13628 echo "$ac_t""no" 1>&6
10f2d63a 13629fi
4f14bcd8 13630done
10f2d63a 13631
10f2d63a 13632
4f14bcd8
GD
13633 if test "$ac_cv_header_iostream" = "yes" ; then
13634 :
13635 else
13636 cat >> confdefs.h <<\EOF
13637#define wxUSE_IOSTREAMH 1
13638EOF
13639
13640 fi
1e487827 13641
4f14bcd8
GD
13642 ac_ext=c
13643# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13644ac_cpp='$CPP $CPPFLAGS'
13645ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13646ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13647cross_compiling=$ac_cv_prog_cc_cross
698dcdb6 13648
4f14bcd8 13649 fi
698dcdb6
VZ
13650
13651
13652
4f14bcd8 13653 echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6
9f8148b1 13654echo "configure:13655: checking if C++ compiler supports bool" >&5
4f14bcd8 13655if eval "test \"`echo '$''{'wx_cv_cpp_bool'+set}'`\" = set"; then
698dcdb6
VZ
13656 echo $ac_n "(cached) $ac_c" 1>&6
13657else
13658
4f14bcd8
GD
13659
13660 ac_ext=C
13661# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13662ac_cpp='$CXXCPP $CPPFLAGS'
13663ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13664ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13665cross_compiling=$ac_cv_prog_cxx_cross
f6bcfd97 13666
10f2d63a 13667
4f14bcd8 13668 cat > conftest.$ac_ext <<EOF
9f8148b1 13669#line 13670 "configure"
4f14bcd8 13670#include "confdefs.h"
10f2d63a 13671
4f14bcd8
GD
13672
13673int main() {
f6bcfd97 13674
4f14bcd8 13675 bool b = true;
f6bcfd97 13676
4f14bcd8
GD
13677 return 0;
13678
698dcdb6
VZ
13679; return 0; }
13680EOF
9f8148b1 13681if { (eval echo configure:13682: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
13682 rm -rf conftest*
13683
4f14bcd8
GD
13684 wx_cv_cpp_bool=yes
13685
10f2d63a 13686else
698dcdb6
VZ
13687 echo "configure: failed program was:" >&5
13688 cat conftest.$ac_ext >&5
13689 rm -rf conftest*
13690
4f14bcd8
GD
13691 wx_cv_cpp_bool=no
13692
13693
13694fi
13695rm -f conftest*
c521c494 13696
4f14bcd8
GD
13697 ac_ext=c
13698# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13699ac_cpp='$CPP $CPPFLAGS'
13700ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13701ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13702cross_compiling=$ac_cv_prog_cc_cross
c521c494 13703
4f14bcd8
GD
13704
13705fi
c521c494 13706
4f14bcd8 13707echo "$ac_t""$wx_cv_cpp_bool" 1>&6
c521c494 13708
4f14bcd8
GD
13709 if test "$wx_cv_cpp_bool" = "yes"; then
13710 cat >> confdefs.h <<\EOF
13711#define HAVE_BOOL 1
13712EOF
c521c494 13713
4f14bcd8
GD
13714 fi
13715
13716
13717
13718echo $ac_n "checking for wcslen in -lc""... $ac_c" 1>&6
9f8148b1 13719echo "configure:13720: checking for wcslen in -lc" >&5
4f14bcd8
GD
13720ac_lib_var=`echo c'_'wcslen | sed 'y%./+-%__p_%'`
13721if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13722 echo $ac_n "(cached) $ac_c" 1>&6
13723else
13724 ac_save_LIBS="$LIBS"
13725LIBS="-lc $LIBS"
13726cat > conftest.$ac_ext <<EOF
9f8148b1 13727#line 13728 "configure"
4f14bcd8
GD
13728#include "confdefs.h"
13729/* Override any gcc2 internal prototype to avoid an error. */
13730/* We use char because int might match the return type of a gcc2
13731 builtin and then its argument prototype would still apply. */
13732char wcslen();
13733
13734int main() {
13735wcslen()
698dcdb6
VZ
13736; return 0; }
13737EOF
9f8148b1 13738if { (eval echo configure:13739: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 13739 rm -rf conftest*
4f14bcd8 13740 eval "ac_cv_lib_$ac_lib_var=yes"
c521c494 13741else
698dcdb6
VZ
13742 echo "configure: failed program was:" >&5
13743 cat conftest.$ac_ext >&5
13744 rm -rf conftest*
4f14bcd8 13745 eval "ac_cv_lib_$ac_lib_var=no"
6232543b 13746fi
698dcdb6 13747rm -f conftest*
4f14bcd8 13748LIBS="$ac_save_LIBS"
703e0a69 13749
1e487827 13750fi
4f14bcd8
GD
13751if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13752 echo "$ac_t""yes" 1>&6
13753
13754 cat >> confdefs.h <<\EOF
13755#define HAVE_WCSLEN 1
9d8deca0
VZ
13756EOF
13757
3d63bc3a 13758 WCHAR_LINK=
4f14bcd8 13759
9d8deca0 13760else
4f14bcd8 13761 echo "$ac_t""no" 1>&6
9d8deca0 13762
4f14bcd8 13763 echo $ac_n "checking for wcslen in -lw""... $ac_c" 1>&6
9f8148b1 13764echo "configure:13765: checking for wcslen in -lw" >&5
4f14bcd8
GD
13765ac_lib_var=`echo w'_'wcslen | sed 'y%./+-%__p_%'`
13766if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
698dcdb6 13767 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 13768else
4f14bcd8
GD
13769 ac_save_LIBS="$LIBS"
13770LIBS="-lw $LIBS"
13771cat > conftest.$ac_ext <<EOF
9f8148b1 13772#line 13773 "configure"
10f2d63a 13773#include "confdefs.h"
4f14bcd8
GD
13774/* Override any gcc2 internal prototype to avoid an error. */
13775/* We use char because int might match the return type of a gcc2
13776 builtin and then its argument prototype would still apply. */
13777char wcslen();
10f2d63a 13778
698dcdb6 13779int main() {
4f14bcd8 13780wcslen()
698dcdb6
VZ
13781; return 0; }
13782EOF
9f8148b1 13783if { (eval echo configure:13784: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 13784 rm -rf conftest*
4f14bcd8 13785 eval "ac_cv_lib_$ac_lib_var=yes"
10f2d63a 13786else
698dcdb6
VZ
13787 echo "configure: failed program was:" >&5
13788 cat conftest.$ac_ext >&5
13789 rm -rf conftest*
4f14bcd8 13790 eval "ac_cv_lib_$ac_lib_var=no"
6232543b 13791fi
698dcdb6 13792rm -f conftest*
4f14bcd8 13793LIBS="$ac_save_LIBS"
703e0a69 13794
1e487827 13795fi
4f14bcd8
GD
13796if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13797 echo "$ac_t""yes" 1>&6
13798
13799 cat >> confdefs.h <<\EOF
13800#define HAVE_WCSLEN 1
9d8deca0
VZ
13801EOF
13802
3d63bc3a 13803 WCHAR_LINK=" -lw"
4f14bcd8
GD
13804
13805else
13806 echo "$ac_t""no" 1>&6
698dcdb6 13807
4f14bcd8 13808 echo $ac_n "checking for wcslen in -lmsvcrt""... $ac_c" 1>&6
9f8148b1 13809echo "configure:13810: checking for wcslen in -lmsvcrt" >&5
4f14bcd8
GD
13810ac_lib_var=`echo msvcrt'_'wcslen | sed 'y%./+-%__p_%'`
13811if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
698dcdb6
VZ
13812 echo $ac_n "(cached) $ac_c" 1>&6
13813else
4f14bcd8
GD
13814 ac_save_LIBS="$LIBS"
13815LIBS="-lmsvcrt $LIBS"
13816cat > conftest.$ac_ext <<EOF
9f8148b1 13817#line 13818 "configure"
95c8801c 13818#include "confdefs.h"
4f14bcd8
GD
13819/* Override any gcc2 internal prototype to avoid an error. */
13820/* We use char because int might match the return type of a gcc2
13821 builtin and then its argument prototype would still apply. */
13822char wcslen();
95c8801c 13823
4f14bcd8
GD
13824int main() {
13825wcslen()
698dcdb6
VZ
13826; return 0; }
13827EOF
9f8148b1 13828if { (eval echo configure:13829: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 13829 rm -rf conftest*
4f14bcd8 13830 eval "ac_cv_lib_$ac_lib_var=yes"
95c8801c 13831else
698dcdb6
VZ
13832 echo "configure: failed program was:" >&5
13833 cat conftest.$ac_ext >&5
13834 rm -rf conftest*
4f14bcd8 13835 eval "ac_cv_lib_$ac_lib_var=no"
95c8801c 13836fi
698dcdb6 13837rm -f conftest*
4f14bcd8 13838LIBS="$ac_save_LIBS"
95c8801c
VS
13839
13840fi
4f14bcd8
GD
13841if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13842 echo "$ac_t""yes" 1>&6
13843
13844 cat >> confdefs.h <<\EOF
13845#define HAVE_WCSLEN 1
13846EOF
698dcdb6 13847
3d63bc3a 13848 WCHAR_LINK=
4f14bcd8
GD
13849
13850else
13851 echo "$ac_t""no" 1>&6
13852fi
10f2d63a 13853
4f14bcd8
GD
13854
13855fi
95c8801c 13856
4f14bcd8 13857
95c8801c 13858fi
10f2d63a 13859
1e487827 13860
4f14bcd8 13861for ac_func in wcsrtombs
eb4efbdc 13862do
698dcdb6 13863echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9f8148b1 13864echo "configure:13865: checking for $ac_func" >&5
698dcdb6
VZ
13865if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13866 echo $ac_n "(cached) $ac_c" 1>&6
13867else
13868 cat > conftest.$ac_ext <<EOF
9f8148b1 13869#line 13870 "configure"
eb4efbdc
VZ
13870#include "confdefs.h"
13871/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 13872 which can conflict with char $ac_func(); below. */
eb4efbdc
VZ
13873#include <assert.h>
13874/* Override any gcc2 internal prototype to avoid an error. */
13875/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
13876 builtin and then its argument prototype would still apply. */
13877char $ac_func();
13878
13879int main() {
eb4efbdc
VZ
13880
13881/* The GNU C library defines this for functions which it implements
13882 to always fail with ENOSYS. Some functions are actually named
13883 something starting with __ and the normal name is an alias. */
13884#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13885choke me
13886#else
698dcdb6 13887$ac_func();
eb4efbdc
VZ
13888#endif
13889
698dcdb6 13890; return 0; }
eb4efbdc 13891EOF
9f8148b1 13892if { (eval echo configure:13893: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
13893 rm -rf conftest*
13894 eval "ac_cv_func_$ac_func=yes"
13895else
13896 echo "configure: failed program was:" >&5
13897 cat conftest.$ac_ext >&5
13898 rm -rf conftest*
13899 eval "ac_cv_func_$ac_func=no"
13900fi
13901rm -f conftest*
13902fi
eb4efbdc 13903
698dcdb6
VZ
13904if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13905 echo "$ac_t""yes" 1>&6
13906 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13907 cat >> confdefs.h <<EOF
13908#define $ac_tr_func 1
13909EOF
13910
13911else
13912 echo "$ac_t""no" 1>&6
eb4efbdc
VZ
13913fi
13914done
13915
698dcdb6 13916
4f14bcd8 13917echo $ac_n "checking for vprintf""... $ac_c" 1>&6
9f8148b1 13918echo "configure:13919: checking for vprintf" >&5
4f14bcd8 13919if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
698dcdb6
VZ
13920 echo $ac_n "(cached) $ac_c" 1>&6
13921else
4f14bcd8 13922 cat > conftest.$ac_ext <<EOF
9f8148b1 13923#line 13924 "configure"
f6bcfd97 13924#include "confdefs.h"
4f14bcd8
GD
13925/* System header to define __stub macros and hopefully few prototypes,
13926 which can conflict with char vprintf(); below. */
13927#include <assert.h>
13928/* Override any gcc2 internal prototype to avoid an error. */
13929/* We use char because int might match the return type of a gcc2
13930 builtin and then its argument prototype would still apply. */
13931char vprintf();
13932
698dcdb6 13933int main() {
f6bcfd97 13934
4f14bcd8
GD
13935/* The GNU C library defines this for functions which it implements
13936 to always fail with ENOSYS. Some functions are actually named
13937 something starting with __ and the normal name is an alias. */
13938#if defined (__stub_vprintf) || defined (__stub___vprintf)
13939choke me
13940#else
13941vprintf();
13942#endif
f6bcfd97 13943
698dcdb6
VZ
13944; return 0; }
13945EOF
9f8148b1 13946if { (eval echo configure:13947: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 13947 rm -rf conftest*
4f14bcd8 13948 eval "ac_cv_func_vprintf=yes"
f6bcfd97 13949else
698dcdb6
VZ
13950 echo "configure: failed program was:" >&5
13951 cat conftest.$ac_ext >&5
13952 rm -rf conftest*
4f14bcd8 13953 eval "ac_cv_func_vprintf=no"
6232543b 13954fi
698dcdb6 13955rm -f conftest*
1e487827 13956fi
698dcdb6 13957
4f14bcd8
GD
13958if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
13959 echo "$ac_t""yes" 1>&6
13960 cat >> confdefs.h <<\EOF
13961#define HAVE_VPRINTF 1
f6bcfd97
BP
13962EOF
13963
4f14bcd8
GD
13964else
13965 echo "$ac_t""no" 1>&6
eb4efbdc
VZ
13966fi
13967
4f14bcd8
GD
13968if test "$ac_cv_func_vprintf" != yes; then
13969echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
9f8148b1 13970echo "configure:13971: checking for _doprnt" >&5
4f14bcd8 13971if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
698dcdb6
VZ
13972 echo $ac_n "(cached) $ac_c" 1>&6
13973else
13974 cat > conftest.$ac_ext <<EOF
9f8148b1 13975#line 13976 "configure"
10f2d63a
VZ
13976#include "confdefs.h"
13977/* System header to define __stub macros and hopefully few prototypes,
4f14bcd8 13978 which can conflict with char _doprnt(); below. */
10f2d63a
VZ
13979#include <assert.h>
13980/* Override any gcc2 internal prototype to avoid an error. */
13981/* We use char because int might match the return type of a gcc2
698dcdb6 13982 builtin and then its argument prototype would still apply. */
4f14bcd8 13983char _doprnt();
698dcdb6
VZ
13984
13985int main() {
10f2d63a
VZ
13986
13987/* The GNU C library defines this for functions which it implements
13988 to always fail with ENOSYS. Some functions are actually named
13989 something starting with __ and the normal name is an alias. */
4f14bcd8 13990#if defined (__stub__doprnt) || defined (__stub____doprnt)
10f2d63a
VZ
13991choke me
13992#else
4f14bcd8 13993_doprnt();
10f2d63a
VZ
13994#endif
13995
698dcdb6 13996; return 0; }
10f2d63a 13997EOF
9f8148b1 13998if { (eval echo configure:13999: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 13999 rm -rf conftest*
4f14bcd8 14000 eval "ac_cv_func__doprnt=yes"
698dcdb6
VZ
14001else
14002 echo "configure: failed program was:" >&5
14003 cat conftest.$ac_ext >&5
14004 rm -rf conftest*
4f14bcd8 14005 eval "ac_cv_func__doprnt=no"
698dcdb6
VZ
14006fi
14007rm -f conftest*
14008fi
270a909e 14009
4f14bcd8 14010if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
698dcdb6 14011 echo "$ac_t""yes" 1>&6
4f14bcd8
GD
14012 cat >> confdefs.h <<\EOF
14013#define HAVE_DOPRNT 1
698dcdb6 14014EOF
4f14bcd8 14015
698dcdb6
VZ
14016else
14017 echo "$ac_t""no" 1>&6
270a909e 14018fi
270a909e 14019
4f14bcd8 14020fi
1e487827 14021
52e8b690 14022
52e8b690 14023
52e8b690 14024
52e8b690 14025
52e8b690 14026
4f14bcd8 14027echo $ac_n "checking for vsnprintf""... $ac_c" 1>&6
9f8148b1 14028echo "configure:14029: checking for vsnprintf" >&5
4f14bcd8 14029if eval "test \"`echo '$''{'wx_cv_func_vsnprintf'+set}'`\" = set"; then
698dcdb6 14030 echo $ac_n "(cached) $ac_c" 1>&6
c63c7106 14031else
4f14bcd8 14032
af15babd 14033 cat > conftest.$ac_ext <<EOF
9f8148b1 14034#line 14035 "configure"
c63c7106 14035#include "confdefs.h"
698dcdb6 14036
4f14bcd8
GD
14037 #include <stdio.h>
14038 #include <stdarg.h>
14039
af15babd
VZ
14040int main() {
14041
4f14bcd8
GD
14042 int wx_test_vsnprintf(const char *, ...);
14043
14044 wx_test_vsnprintf("%s");
14045 return 0;
14046 }
14047
14048 int wx_test_vsnprintf(const char *fmt, ...)
14049 {
14050 char *s;
14051
14052 va_list argp;
14053 va_start(argp, fmt);
14054 vsnprintf(s, 42, fmt, argp);
14055 va_end(argp);
14056
af15babd
VZ
14057; return 0; }
14058EOF
9f8148b1 14059if { (eval echo configure:14060: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
af15babd
VZ
14060 rm -rf conftest*
14061
4f14bcd8
GD
14062 wx_cv_func_vsnprintf=yes
14063
af15babd
VZ
14064else
14065 echo "configure: failed program was:" >&5
14066 cat conftest.$ac_ext >&5
14067 rm -rf conftest*
14068
4f14bcd8 14069 cat > conftest.$ac_ext <<EOF
9f8148b1 14070#line 14071 "configure"
af15babd 14071#include "confdefs.h"
af15babd 14072
4f14bcd8
GD
14073 #include <stdio.h>
14074 #include <stdarg.h>
14075
af15babd
VZ
14076int main() {
14077
4f14bcd8
GD
14078 int wx_test_vsnprintf(const char *, ...);
14079
14080 wx_test_vsnprintf("%s");
14081 return 0;
14082 }
14083
14084 int wx_test_vsnprintf(const char *fmt, ...)
14085 {
14086 char *s;
af15babd 14087
4f14bcd8
GD
14088 va_list argp;
14089 va_start(argp, fmt);
14090 _vsnprintf(s, 42, fmt, argp);
14091 va_end(argp);
14092
af15babd
VZ
14093; return 0; }
14094EOF
9f8148b1 14095if { (eval echo configure:14096: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
af15babd 14096 rm -rf conftest*
4f14bcd8
GD
14097
14098 wx_cv_func_vsnprintf=yes
14099
af15babd
VZ
14100else
14101 echo "configure: failed program was:" >&5
14102 cat conftest.$ac_ext >&5
14103 rm -rf conftest*
4f14bcd8
GD
14104
14105 wx_cv_func_vsnprintf=no
14106
af15babd
VZ
14107fi
14108rm -f conftest*
4f14bcd8 14109
af15babd 14110fi
4f14bcd8 14111rm -f conftest*
af15babd 14112
af15babd 14113fi
af15babd 14114
4f14bcd8 14115echo "$ac_t""$wx_cv_func_vsnprintf" 1>&6
af15babd 14116
4f14bcd8
GD
14117if test "$wx_cv_func_vsnprintf" = yes; then
14118 cat >> confdefs.h <<\EOF
14119#define HAVE_VSNPRINTF 1
14120EOF
14121
14122else
14123 echo "configure: warning: unsafe function sprintf will be used instead of snprintf" 1>&2
af15babd
VZ
14124fi
14125
4f14bcd8 14126echo $ac_n "checking for vsscanf""... $ac_c" 1>&6
9f8148b1 14127echo "configure:14128: checking for vsscanf" >&5
4f14bcd8 14128if eval "test \"`echo '$''{'wx_cv_func_vsscanf'+set}'`\" = set"; then
af15babd
VZ
14129 echo $ac_n "(cached) $ac_c" 1>&6
14130else
4f14bcd8 14131
af15babd 14132 cat > conftest.$ac_ext <<EOF
9f8148b1 14133#line 14134 "configure"
af15babd 14134#include "confdefs.h"
af15babd 14135
4f14bcd8
GD
14136 #include <stdio.h>
14137 #include <stdarg.h>
14138
af15babd
VZ
14139int main() {
14140
4f14bcd8
GD
14141 int wx_test_vsscanf(const char *, ...);
14142
14143 wx_test_vsscanf("%d");
14144 return 0;
14145 }
af15babd 14146
4f14bcd8
GD
14147 int wx_test_vsscanf(const char *fmt, ...)
14148 {
14149 va_list argp;
14150 va_start(argp, fmt);
14151 vsscanf("42", fmt, argp);
14152 va_end(argp);
14153
af15babd
VZ
14154; return 0; }
14155EOF
9f8148b1 14156if { (eval echo configure:14157: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
af15babd 14157 rm -rf conftest*
4f14bcd8
GD
14158
14159 wx_cv_func_vsscanf=yes
14160
af15babd
VZ
14161else
14162 echo "configure: failed program was:" >&5
14163 cat conftest.$ac_ext >&5
14164 rm -rf conftest*
4f14bcd8
GD
14165
14166 wx_cv_func_vsscanf=no
14167
af15babd
VZ
14168fi
14169rm -f conftest*
4f14bcd8 14170
af15babd
VZ
14171fi
14172
4f14bcd8
GD
14173echo "$ac_t""$wx_cv_func_vsscanf" 1>&6
14174
14175if test "$wx_cv_func_vsscanf" = yes; then
14176 cat >> confdefs.h <<\EOF
14177#define HAVE_VSSCANF 1
af15babd 14178EOF
4f14bcd8 14179
af15babd 14180fi
af15babd 14181
4f14bcd8 14182if test "$TOOLKIT" != "MSW"; then
af15babd 14183
4f14bcd8
GD
14184
14185
14186ac_ext=C
14187# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14188ac_cpp='$CXXCPP $CPPFLAGS'
14189ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14190ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14191cross_compiling=$ac_cv_prog_cxx_cross
14192
14193echo $ac_n "checking if iconv() takes char**""... $ac_c" 1>&6
9f8148b1 14194echo "configure:14195: checking if iconv() takes char**" >&5
4f14bcd8 14195if eval "test \"`echo '$''{'wx_cv_iconv_takes_char'+set}'`\" = set"; then
af15babd
VZ
14196 echo $ac_n "(cached) $ac_c" 1>&6
14197else
4f14bcd8
GD
14198
14199 cat > conftest.$ac_ext <<EOF
9f8148b1 14200#line 14201 "configure"
af15babd 14201#include "confdefs.h"
4f14bcd8 14202#include <iconv.h>
af15babd
VZ
14203int main() {
14204
4f14bcd8
GD
14205 char **inbuf, **outbuf;
14206 iconv_t cd;
14207 size_t insz, outsz;
14208 iconv(cd, inbuf, &insz, outbuf, &outsz);
14209
af15babd
VZ
14210; return 0; }
14211EOF
9f8148b1 14212if { (eval echo configure:14213: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
af15babd 14213 rm -rf conftest*
4f14bcd8 14214 wx_cv_iconv_takes_char=yes
af15babd
VZ
14215else
14216 echo "configure: failed program was:" >&5
14217 cat conftest.$ac_ext >&5
14218 rm -rf conftest*
4f14bcd8 14219 wx_cv_iconv_takes_char=no
af15babd
VZ
14220fi
14221rm -f conftest*
af15babd 14222
af15babd 14223fi
af15babd 14224
4f14bcd8
GD
14225echo "$ac_t""$wx_cv_iconv_takes_char" 1>&6
14226ac_ext=c
14227# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14228ac_cpp='$CPP $CPPFLAGS'
14229ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14230ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14231cross_compiling=$ac_cv_prog_cc_cross
af15babd 14232
4f14bcd8
GD
14233if test "$wx_cv_iconv_takes_char" = yes ; then
14234 cat >> confdefs.h <<\EOF
14235#define WX_ICONV_TAKES_CHAR 1
af15babd
VZ
14236EOF
14237
af15babd
VZ
14238fi
14239
af15babd 14240
4f14bcd8
GD
14241if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
14242 for ac_func in sigaction
af15babd
VZ
14243do
14244echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9f8148b1 14245echo "configure:14246: checking for $ac_func" >&5
af15babd
VZ
14246if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14247 echo $ac_n "(cached) $ac_c" 1>&6
14248else
14249 cat > conftest.$ac_ext <<EOF
9f8148b1 14250#line 14251 "configure"
af15babd
VZ
14251#include "confdefs.h"
14252/* System header to define __stub macros and hopefully few prototypes,
14253 which can conflict with char $ac_func(); below. */
14254#include <assert.h>
14255/* Override any gcc2 internal prototype to avoid an error. */
14256/* We use char because int might match the return type of a gcc2
14257 builtin and then its argument prototype would still apply. */
14258char $ac_func();
14259
14260int main() {
14261
14262/* The GNU C library defines this for functions which it implements
14263 to always fail with ENOSYS. Some functions are actually named
14264 something starting with __ and the normal name is an alias. */
14265#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14266choke me
14267#else
14268$ac_func();
14269#endif
14270
14271; return 0; }
14272EOF
9f8148b1 14273if { (eval echo configure:14274: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
af15babd
VZ
14274 rm -rf conftest*
14275 eval "ac_cv_func_$ac_func=yes"
14276else
14277 echo "configure: failed program was:" >&5
14278 cat conftest.$ac_ext >&5
14279 rm -rf conftest*
14280 eval "ac_cv_func_$ac_func=no"
14281fi
14282rm -f conftest*
14283fi
14284
14285if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14286 echo "$ac_t""yes" 1>&6
14287 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14288 cat >> confdefs.h <<EOF
14289#define $ac_tr_func 1
14290EOF
4f14bcd8 14291
af15babd
VZ
14292else
14293 echo "$ac_t""no" 1>&6
4f14bcd8
GD
14294fi
14295done
14296
14297
14298 if test "$ac_cv_func_sigaction" = "no"; then
14299 echo "configure: warning: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" 1>&2
14300 wxUSE_ON_FATAL_EXCEPTION=no
14301 fi
14302
14303 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
14304
14305 ac_ext=C
14306# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14307ac_cpp='$CXXCPP $CPPFLAGS'
14308ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14309ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14310cross_compiling=$ac_cv_prog_cxx_cross
14311
14312
14313 echo $ac_n "checking for sa_handler type""... $ac_c" 1>&6
9f8148b1 14314echo "configure:14315: checking for sa_handler type" >&5
4f14bcd8 14315if eval "test \"`echo '$''{'wx_cv_type_sa_handler'+set}'`\" = set"; then
af15babd
VZ
14316 echo $ac_n "(cached) $ac_c" 1>&6
14317else
4f14bcd8
GD
14318
14319 cat > conftest.$ac_ext <<EOF
9f8148b1 14320#line 14321 "configure"
af15babd 14321#include "confdefs.h"
4f14bcd8 14322#include <signal.h>
af15babd 14323int main() {
4f14bcd8
GD
14324
14325 extern void testSigHandler(int);
14326
14327 struct sigaction sa;
14328 sa.sa_handler = testSigHandler;
14329
af15babd
VZ
14330; return 0; }
14331EOF
9f8148b1 14332if { (eval echo configure:14333: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
af15babd 14333 rm -rf conftest*
4f14bcd8
GD
14334
14335 wx_cv_type_sa_handler=int
14336
af15babd
VZ
14337else
14338 echo "configure: failed program was:" >&5
14339 cat conftest.$ac_ext >&5
14340 rm -rf conftest*
4f14bcd8
GD
14341
14342 wx_cv_type_sa_handler=void
14343
af15babd
VZ
14344fi
14345rm -f conftest*
4f14bcd8
GD
14346
14347fi
14348
14349echo "$ac_t""$wx_cv_type_sa_handler" 1>&6
14350
14351 ac_ext=c
14352# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14353ac_cpp='$CPP $CPPFLAGS'
14354ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14355ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14356cross_compiling=$ac_cv_prog_cc_cross
af15babd 14357
4f14bcd8
GD
14358
14359 cat >> confdefs.h <<EOF
14360#define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
af15babd
VZ
14361EOF
14362
4f14bcd8
GD
14363 fi
14364fi
af15babd 14365
4f14bcd8 14366for ac_func in vfork
af15babd
VZ
14367do
14368echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9f8148b1 14369echo "configure:14370: checking for $ac_func" >&5
af15babd
VZ
14370if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14371 echo $ac_n "(cached) $ac_c" 1>&6
14372else
14373 cat > conftest.$ac_ext <<EOF
9f8148b1 14374#line 14375 "configure"
af15babd
VZ
14375#include "confdefs.h"
14376/* System header to define __stub macros and hopefully few prototypes,
14377 which can conflict with char $ac_func(); below. */
14378#include <assert.h>
14379/* Override any gcc2 internal prototype to avoid an error. */
14380/* We use char because int might match the return type of a gcc2
14381 builtin and then its argument prototype would still apply. */
14382char $ac_func();
14383
14384int main() {
14385
14386/* The GNU C library defines this for functions which it implements
14387 to always fail with ENOSYS. Some functions are actually named
14388 something starting with __ and the normal name is an alias. */
14389#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14390choke me
14391#else
14392$ac_func();
14393#endif
14394
14395; return 0; }
14396EOF
9f8148b1 14397if { (eval echo configure:14398: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
af15babd
VZ
14398 rm -rf conftest*
14399 eval "ac_cv_func_$ac_func=yes"
14400else
14401 echo "configure: failed program was:" >&5
14402 cat conftest.$ac_ext >&5
14403 rm -rf conftest*
14404 eval "ac_cv_func_$ac_func=no"
14405fi
14406rm -f conftest*
14407fi
14408
14409if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14410 echo "$ac_t""yes" 1>&6
14411 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14412 cat >> confdefs.h <<EOF
14413#define $ac_tr_func 1
14414EOF
4f14bcd8 14415
af15babd
VZ
14416else
14417 echo "$ac_t""no" 1>&6
af15babd
VZ
14418fi
14419done
14420
af15babd 14421
4f14bcd8 14422echo $ac_n "checking for statfs""... $ac_c" 1>&6
9f8148b1 14423echo "configure:14424: checking for statfs" >&5
4f14bcd8
GD
14424if eval "test \"`echo '$''{'wx_cv_func_statfs'+set}'`\" = set"; then
14425 echo $ac_n "(cached) $ac_c" 1>&6
14426else
14427 cat > conftest.$ac_ext <<EOF
9f8148b1 14428#line 14429 "configure"
4f14bcd8
GD
14429#include "confdefs.h"
14430
14431 #if defined(__BSD__)
14432 #include <sys/param.h>
14433 #include <sys/mount.h>
14434 #else
14435 #include <sys/vfs.h>
14436 #endif
14437
14438int main() {
14439
14440 long l;
14441 struct statfs fs;
14442 statfs("/", &fs);
14443 l = fs.f_bsize;
14444 l += fs.f_blocks;
14445 l += fs.f_bavail;
14446
14447; return 0; }
14448EOF
9f8148b1 14449if { (eval echo configure:14450: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4f14bcd8
GD
14450 rm -rf conftest*
14451
14452 wx_cv_func_statfs=yes
14453
14454else
14455 echo "configure: failed program was:" >&5
14456 cat conftest.$ac_ext >&5
14457 rm -rf conftest*
14458
14459 wx_cv_func_statfs=no
af15babd
VZ
14460
14461
14462fi
4f14bcd8 14463rm -f conftest*
af15babd
VZ
14464
14465fi
14466
4f14bcd8
GD
14467echo "$ac_t""$wx_cv_func_statfs" 1>&6
14468
14469if test "$wx_cv_func_statfs" = "yes"; then
14470 cat >> confdefs.h <<\EOF
14471#define HAVE_STATFS 1
14472EOF
14473
14474else
14475 echo $ac_n "checking for statvfs""... $ac_c" 1>&6
9f8148b1 14476echo "configure:14477: checking for statvfs" >&5
4f14bcd8 14477if eval "test \"`echo '$''{'wx_cv_func_statvfs'+set}'`\" = set"; then
af15babd
VZ
14478 echo $ac_n "(cached) $ac_c" 1>&6
14479else
14480 cat > conftest.$ac_ext <<EOF
9f8148b1 14481#line 14482 "configure"
af15babd 14482#include "confdefs.h"
af15babd 14483
4f14bcd8
GD
14484 #include <sys/statvfs.h>
14485
af15babd
VZ
14486int main() {
14487
4f14bcd8
GD
14488 long l;
14489 struct statvfs fs;
14490 statvfs("/", &fs);
14491 l = fs.f_bsize;
14492 l += fs.f_blocks;
14493 l += fs.f_bavail;
14494
af15babd
VZ
14495; return 0; }
14496EOF
9f8148b1 14497if { (eval echo configure:14498: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
af15babd 14498 rm -rf conftest*
4f14bcd8
GD
14499
14500 wx_cv_func_statvfs=yes
14501
af15babd
VZ
14502else
14503 echo "configure: failed program was:" >&5
14504 cat conftest.$ac_ext >&5
14505 rm -rf conftest*
4f14bcd8
GD
14506
14507 wx_cv_func_statvfs=no
14508
14509
af15babd
VZ
14510fi
14511rm -f conftest*
4f14bcd8 14512
af15babd
VZ
14513fi
14514
4f14bcd8 14515echo "$ac_t""$wx_cv_func_statvfs" 1>&6
af15babd 14516
4f14bcd8
GD
14517 if test "$wx_cv_func_statvfs" = "yes"; then
14518 cat >> confdefs.h <<\EOF
14519#define HAVE_STATVFS 1
14520EOF
af15babd 14521
4f14bcd8
GD
14522 else
14523 echo "configure: warning: wxGetDiskSpace() function won't work without statfs()" 1>&2
14524 fi
14525fi
af15babd 14526
4f14bcd8
GD
14527if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
14528 for ac_func in fcntl flock
af15babd
VZ
14529do
14530echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9f8148b1 14531echo "configure:14532: checking for $ac_func" >&5
af15babd
VZ
14532if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14533 echo $ac_n "(cached) $ac_c" 1>&6
14534else
14535 cat > conftest.$ac_ext <<EOF
9f8148b1 14536#line 14537 "configure"
af15babd
VZ
14537#include "confdefs.h"
14538/* System header to define __stub macros and hopefully few prototypes,
14539 which can conflict with char $ac_func(); below. */
14540#include <assert.h>
14541/* Override any gcc2 internal prototype to avoid an error. */
af15babd
VZ
14542/* We use char because int might match the return type of a gcc2
14543 builtin and then its argument prototype would still apply. */
14544char $ac_func();
14545
14546int main() {
14547
14548/* The GNU C library defines this for functions which it implements
14549 to always fail with ENOSYS. Some functions are actually named
14550 something starting with __ and the normal name is an alias. */
14551#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14552choke me
14553#else
14554$ac_func();
14555#endif
14556
14557; return 0; }
14558EOF
9f8148b1 14559if { (eval echo configure:14560: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
af15babd
VZ
14560 rm -rf conftest*
14561 eval "ac_cv_func_$ac_func=yes"
14562else
14563 echo "configure: failed program was:" >&5
14564 cat conftest.$ac_ext >&5
14565 rm -rf conftest*
14566 eval "ac_cv_func_$ac_func=no"
14567fi
14568rm -f conftest*
14569fi
14570
14571if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14572 echo "$ac_t""yes" 1>&6
14573 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14574 cat >> confdefs.h <<EOF
14575#define $ac_tr_func 1
14576EOF
4f14bcd8 14577 break
af15babd
VZ
14578else
14579 echo "$ac_t""no" 1>&6
14580fi
14581done
14582
14583
4f14bcd8
GD
14584 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
14585 echo "configure: warning: wxSingleInstanceChecker not available" 1>&2
14586 wxUSE_SNGLINST_CHECKER=no
14587 fi
14588fi
af15babd 14589
4f14bcd8 14590for ac_func in timegm
af15babd
VZ
14591do
14592echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9f8148b1 14593echo "configure:14594: checking for $ac_func" >&5
af15babd
VZ
14594if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14595 echo $ac_n "(cached) $ac_c" 1>&6
14596else
14597 cat > conftest.$ac_ext <<EOF
9f8148b1 14598#line 14599 "configure"
af15babd
VZ
14599#include "confdefs.h"
14600/* System header to define __stub macros and hopefully few prototypes,
14601 which can conflict with char $ac_func(); below. */
14602#include <assert.h>
14603/* Override any gcc2 internal prototype to avoid an error. */
14604/* We use char because int might match the return type of a gcc2
14605 builtin and then its argument prototype would still apply. */
14606char $ac_func();
14607
698dcdb6 14608int main() {
698dcdb6 14609
af15babd
VZ
14610/* The GNU C library defines this for functions which it implements
14611 to always fail with ENOSYS. Some functions are actually named
14612 something starting with __ and the normal name is an alias. */
14613#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14614choke me
14615#else
14616$ac_func();
14617#endif
14618
698dcdb6
VZ
14619; return 0; }
14620EOF
9f8148b1 14621if { (eval echo configure:14622: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 14622 rm -rf conftest*
af15babd 14623 eval "ac_cv_func_$ac_func=yes"
698dcdb6
VZ
14624else
14625 echo "configure: failed program was:" >&5
14626 cat conftest.$ac_ext >&5
14627 rm -rf conftest*
af15babd 14628 eval "ac_cv_func_$ac_func=no"
1e487827 14629fi
9952adac 14630rm -f conftest*
af15babd 14631fi
703e0a69 14632
af15babd
VZ
14633if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14634 echo "$ac_t""yes" 1>&6
14635 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4f14bcd8
GD
14636 cat >> confdefs.h <<EOF
14637#define $ac_tr_func 1
14638EOF
14639
14640else
14641 echo "$ac_t""no" 1>&6
af15babd
VZ
14642fi
14643done
14644
14645
4f14bcd8 14646for ac_func in putenv setenv
10f2d63a 14647do
698dcdb6 14648echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9f8148b1 14649echo "configure:14650: checking for $ac_func" >&5
698dcdb6
VZ
14650if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14651 echo $ac_n "(cached) $ac_c" 1>&6
14652else
14653 cat > conftest.$ac_ext <<EOF
9f8148b1 14654#line 14655 "configure"
af15babd
VZ
14655#include "confdefs.h"
14656/* System header to define __stub macros and hopefully few prototypes,
14657 which can conflict with char $ac_func(); below. */
14658#include <assert.h>
14659/* Override any gcc2 internal prototype to avoid an error. */
14660/* We use char because int might match the return type of a gcc2
14661 builtin and then its argument prototype would still apply. */
14662char $ac_func();
14663
14664int main() {
14665
14666/* The GNU C library defines this for functions which it implements
14667 to always fail with ENOSYS. Some functions are actually named
14668 something starting with __ and the normal name is an alias. */
14669#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14670choke me
14671#else
14672$ac_func();
14673#endif
14674
14675; return 0; }
14676EOF
9f8148b1 14677if { (eval echo configure:14678: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
af15babd
VZ
14678 rm -rf conftest*
14679 eval "ac_cv_func_$ac_func=yes"
14680else
14681 echo "configure: failed program was:" >&5
14682 cat conftest.$ac_ext >&5
14683 rm -rf conftest*
14684 eval "ac_cv_func_$ac_func=no"
14685fi
14686rm -f conftest*
14687fi
14688
14689if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14690 echo "$ac_t""yes" 1>&6
14691 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14692 cat >> confdefs.h <<EOF
14693#define $ac_tr_func 1
14694EOF
4f14bcd8 14695 break
af15babd
VZ
14696else
14697 echo "$ac_t""no" 1>&6
14698fi
af15babd
VZ
14699done
14700
14701
4f14bcd8
GD
14702HAVE_SOME_SLEEP_FUNC=0
14703if test "$USE_BEOS" = 1; then
14704 cat >> confdefs.h <<\EOF
14705#define HAVE_SLEEP 1
af15babd
VZ
14706EOF
14707
4f14bcd8 14708 HAVE_SOME_SLEEP_FUNC=1
10f2d63a
VZ
14709fi
14710
4f14bcd8
GD
14711if test "$USE_DARWIN" = 1; then
14712 cat >> confdefs.h <<\EOF
14713#define HAVE_USLEEP 1
af15babd 14714EOF
10f2d63a 14715
4f14bcd8 14716 HAVE_SOME_SLEEP_FUNC=1
10f2d63a
VZ
14717fi
14718
4f14bcd8
GD
14719if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
14720 POSIX4_LINK=
14721 for ac_func in nanosleep
14722do
14723echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9f8148b1 14724echo "configure:14725: checking for $ac_func" >&5
4f14bcd8 14725if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
698dcdb6 14726 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 14727else
4f14bcd8 14728 cat > conftest.$ac_ext <<EOF
9f8148b1 14729#line 14730 "configure"
10f2d63a 14730#include "confdefs.h"
4f14bcd8
GD
14731/* System header to define __stub macros and hopefully few prototypes,
14732 which can conflict with char $ac_func(); below. */
14733#include <assert.h>
10f2d63a
VZ
14734/* Override any gcc2 internal prototype to avoid an error. */
14735/* We use char because int might match the return type of a gcc2
698dcdb6 14736 builtin and then its argument prototype would still apply. */
4f14bcd8 14737char $ac_func();
698dcdb6
VZ
14738
14739int main() {
4f14bcd8
GD
14740
14741/* The GNU C library defines this for functions which it implements
14742 to always fail with ENOSYS. Some functions are actually named
14743 something starting with __ and the normal name is an alias. */
14744#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14745choke me
14746#else
14747$ac_func();
14748#endif
14749
698dcdb6
VZ
14750; return 0; }
14751EOF
9f8148b1 14752if { (eval echo configure:14753: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 14753 rm -rf conftest*
4f14bcd8 14754 eval "ac_cv_func_$ac_func=yes"
698dcdb6
VZ
14755else
14756 echo "configure: failed program was:" >&5
14757 cat conftest.$ac_ext >&5
14758 rm -rf conftest*
4f14bcd8 14759 eval "ac_cv_func_$ac_func=no"
698dcdb6
VZ
14760fi
14761rm -f conftest*
698dcdb6 14762fi
4f14bcd8
GD
14763
14764if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
698dcdb6 14765 echo "$ac_t""yes" 1>&6
4f14bcd8
GD
14766 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14767 cat >> confdefs.h <<EOF
14768#define $ac_tr_func 1
14769EOF
14770 cat >> confdefs.h <<\EOF
14771#define HAVE_NANOSLEEP 1
14772EOF
14773
10f2d63a 14774else
698dcdb6 14775 echo "$ac_t""no" 1>&6
4f14bcd8 14776echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
9f8148b1 14777echo "configure:14778: checking for nanosleep in -lposix4" >&5
4f14bcd8 14778ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
698dcdb6
VZ
14779if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14780 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 14781else
698dcdb6 14782 ac_save_LIBS="$LIBS"
4f14bcd8 14783LIBS="-lposix4 $LIBS"
698dcdb6 14784cat > conftest.$ac_ext <<EOF
9f8148b1 14785#line 14786 "configure"
10f2d63a
VZ
14786#include "confdefs.h"
14787/* Override any gcc2 internal prototype to avoid an error. */
14788/* We use char because int might match the return type of a gcc2
698dcdb6 14789 builtin and then its argument prototype would still apply. */
4f14bcd8 14790char nanosleep();
698dcdb6
VZ
14791
14792int main() {
4f14bcd8 14793nanosleep()
698dcdb6
VZ
14794; return 0; }
14795EOF
9f8148b1 14796if { (eval echo configure:14797: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
14797 rm -rf conftest*
14798 eval "ac_cv_lib_$ac_lib_var=yes"
14799else
14800 echo "configure: failed program was:" >&5
14801 cat conftest.$ac_ext >&5
14802 rm -rf conftest*
14803 eval "ac_cv_lib_$ac_lib_var=no"
14804fi
14805rm -f conftest*
14806LIBS="$ac_save_LIBS"
10f2d63a 14807
698dcdb6
VZ
14808fi
14809if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14810 echo "$ac_t""yes" 1>&6
14811
4f14bcd8
GD
14812 cat >> confdefs.h <<\EOF
14813#define HAVE_NANOSLEEP 1
14814EOF
14815
3d63bc3a 14816 POSIX4_LINK=" -lposix4"
4f14bcd8 14817
10f2d63a 14818else
698dcdb6 14819 echo "$ac_t""no" 1>&6
10f2d63a 14820
4f14bcd8
GD
14821 for ac_func in usleep
14822do
14823echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9f8148b1 14824echo "configure:14825: checking for $ac_func" >&5
4f14bcd8 14825if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
698dcdb6 14826 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 14827else
698dcdb6 14828 cat > conftest.$ac_ext <<EOF
9f8148b1 14829#line 14830 "configure"
10f2d63a 14830#include "confdefs.h"
4f14bcd8
GD
14831/* System header to define __stub macros and hopefully few prototypes,
14832 which can conflict with char $ac_func(); below. */
14833#include <assert.h>
14834/* Override any gcc2 internal prototype to avoid an error. */
14835/* We use char because int might match the return type of a gcc2
14836 builtin and then its argument prototype would still apply. */
14837char $ac_func();
14838
14839int main() {
14840
14841/* The GNU C library defines this for functions which it implements
14842 to always fail with ENOSYS. Some functions are actually named
14843 something starting with __ and the normal name is an alias. */
14844#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14845choke me
14846#else
14847$ac_func();
14848#endif
14849
14850; return 0; }
698dcdb6 14851EOF
9f8148b1 14852if { (eval echo configure:14853: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 14853 rm -rf conftest*
4f14bcd8 14854 eval "ac_cv_func_$ac_func=yes"
1e487827 14855else
698dcdb6 14856 echo "configure: failed program was:" >&5
10f2d63a 14857 cat conftest.$ac_ext >&5
698dcdb6 14858 rm -rf conftest*
4f14bcd8 14859 eval "ac_cv_func_$ac_func=no"
10f2d63a 14860fi
698dcdb6 14861rm -f conftest*
10f2d63a 14862fi
4f14bcd8
GD
14863
14864if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
698dcdb6 14865 echo "$ac_t""yes" 1>&6
4f14bcd8
GD
14866 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14867 cat >> confdefs.h <<EOF
14868#define $ac_tr_func 1
14869EOF
14870 cat >> confdefs.h <<\EOF
14871#define HAVE_USLEEP 1
14872EOF
14873
698dcdb6
VZ
14874else
14875 echo "$ac_t""no" 1>&6
4f14bcd8
GD
14876echo "configure: warning: wxSleep() function will not work" 1>&2
14877
10f2d63a 14878fi
4f14bcd8 14879done
10f2d63a 14880
4f14bcd8 14881
698dcdb6 14882
6232543b 14883fi
10f2d63a 14884
698dcdb6 14885
4f14bcd8 14886
1e487827 14887fi
4f14bcd8 14888done
703e0a69 14889
10f2d63a
VZ
14890fi
14891
4f14bcd8 14892for ac_func in uname gethostname
70846f0a 14893do
698dcdb6 14894echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9f8148b1 14895echo "configure:14896: checking for $ac_func" >&5
698dcdb6
VZ
14896if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14897 echo $ac_n "(cached) $ac_c" 1>&6
14898else
14899 cat > conftest.$ac_ext <<EOF
9f8148b1 14900#line 14901 "configure"
70846f0a
VZ
14901#include "confdefs.h"
14902/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 14903 which can conflict with char $ac_func(); below. */
70846f0a
VZ
14904#include <assert.h>
14905/* Override any gcc2 internal prototype to avoid an error. */
14906/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
14907 builtin and then its argument prototype would still apply. */
14908char $ac_func();
14909
14910int main() {
70846f0a
VZ
14911
14912/* The GNU C library defines this for functions which it implements
14913 to always fail with ENOSYS. Some functions are actually named
14914 something starting with __ and the normal name is an alias. */
14915#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14916choke me
14917#else
698dcdb6 14918$ac_func();
70846f0a
VZ
14919#endif
14920
698dcdb6 14921; return 0; }
70846f0a 14922EOF
9f8148b1 14923if { (eval echo configure:14924: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
14924 rm -rf conftest*
14925 eval "ac_cv_func_$ac_func=yes"
14926else
14927 echo "configure: failed program was:" >&5
14928 cat conftest.$ac_ext >&5
14929 rm -rf conftest*
14930 eval "ac_cv_func_$ac_func=no"
14931fi
14932rm -f conftest*
14933fi
70846f0a 14934
698dcdb6
VZ
14935if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14936 echo "$ac_t""yes" 1>&6
14937 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14938 cat >> confdefs.h <<EOF
14939#define $ac_tr_func 1
14940EOF
4f14bcd8 14941 break
698dcdb6
VZ
14942else
14943 echo "$ac_t""no" 1>&6
70846f0a
VZ
14944fi
14945done
14946
698dcdb6 14947
4f14bcd8
GD
14948
14949ac_ext=C
14950# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14951ac_cpp='$CXXCPP $CPPFLAGS'
14952ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14953ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14954cross_compiling=$ac_cv_prog_cxx_cross
14955
14956
14957for ac_func in strtok_r
10f2d63a 14958do
4f14bcd8 14959echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9f8148b1 14960echo "configure:14961: checking for $ac_func" >&5
4f14bcd8 14961if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
698dcdb6
VZ
14962 echo $ac_n "(cached) $ac_c" 1>&6
14963else
14964 cat > conftest.$ac_ext <<EOF
9f8148b1 14965#line 14966 "configure"
10f2d63a 14966#include "confdefs.h"
4f14bcd8
GD
14967/* System header to define __stub macros and hopefully few prototypes,
14968 which can conflict with char $ac_func(); below. */
14969#include <assert.h>
14970/* Override any gcc2 internal prototype to avoid an error. */
14971#ifdef __cplusplus
14972extern "C"
14973#endif
14974/* We use char because int might match the return type of a gcc2
14975 builtin and then its argument prototype would still apply. */
14976char $ac_func();
14977
14978int main() {
14979
14980/* The GNU C library defines this for functions which it implements
14981 to always fail with ENOSYS. Some functions are actually named
14982 something starting with __ and the normal name is an alias. */
14983#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14984choke me
14985#else
14986$ac_func();
14987#endif
14988
14989; return 0; }
698dcdb6 14990EOF
9f8148b1 14991if { (eval echo configure:14992: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 14992 rm -rf conftest*
4f14bcd8 14993 eval "ac_cv_func_$ac_func=yes"
1e487827 14994else
698dcdb6 14995 echo "configure: failed program was:" >&5
10f2d63a 14996 cat conftest.$ac_ext >&5
698dcdb6 14997 rm -rf conftest*
4f14bcd8 14998 eval "ac_cv_func_$ac_func=no"
10f2d63a 14999fi
698dcdb6 15000rm -f conftest*
10f2d63a 15001fi
4f14bcd8
GD
15002
15003if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
698dcdb6 15004 echo "$ac_t""yes" 1>&6
4f14bcd8 15005 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
698dcdb6 15006 cat >> confdefs.h <<EOF
4f14bcd8 15007#define $ac_tr_func 1
10f2d63a 15008EOF
698dcdb6
VZ
15009
15010else
15011 echo "$ac_t""no" 1>&6
10f2d63a
VZ
15012fi
15013done
15014
698dcdb6 15015
4f14bcd8
GD
15016ac_ext=c
15017# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15018ac_cpp='$CPP $CPPFLAGS'
15019ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15020ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15021cross_compiling=$ac_cv_prog_cc_cross
15022
15023
15024INET_LINK=
15025for ac_func in inet_addr
15026do
15027echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9f8148b1 15028echo "configure:15029: checking for $ac_func" >&5
4f14bcd8 15029if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
698dcdb6 15030 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 15031else
4f14bcd8 15032 cat > conftest.$ac_ext <<EOF
9f8148b1 15033#line 15034 "configure"
10f2d63a 15034#include "confdefs.h"
4f14bcd8
GD
15035/* System header to define __stub macros and hopefully few prototypes,
15036 which can conflict with char $ac_func(); below. */
15037#include <assert.h>
10f2d63a
VZ
15038/* Override any gcc2 internal prototype to avoid an error. */
15039/* We use char because int might match the return type of a gcc2
698dcdb6 15040 builtin and then its argument prototype would still apply. */
4f14bcd8 15041char $ac_func();
698dcdb6
VZ
15042
15043int main() {
4f14bcd8
GD
15044
15045/* The GNU C library defines this for functions which it implements
15046 to always fail with ENOSYS. Some functions are actually named
15047 something starting with __ and the normal name is an alias. */
15048#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15049choke me
15050#else
15051$ac_func();
15052#endif
15053
698dcdb6
VZ
15054; return 0; }
15055EOF
9f8148b1 15056if { (eval echo configure:15057: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 15057 rm -rf conftest*
4f14bcd8 15058 eval "ac_cv_func_$ac_func=yes"
698dcdb6
VZ
15059else
15060 echo "configure: failed program was:" >&5
15061 cat conftest.$ac_ext >&5
15062 rm -rf conftest*
4f14bcd8 15063 eval "ac_cv_func_$ac_func=no"
698dcdb6
VZ
15064fi
15065rm -f conftest*
698dcdb6 15066fi
4f14bcd8
GD
15067
15068if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
698dcdb6 15069 echo "$ac_t""yes" 1>&6
4f14bcd8
GD
15070 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15071 cat >> confdefs.h <<EOF
15072#define $ac_tr_func 1
15073EOF
15074 cat >> confdefs.h <<\EOF
15075#define HAVE_INET_ADDR 1
10f2d63a
VZ
15076EOF
15077
15078else
698dcdb6 15079 echo "$ac_t""no" 1>&6
4f14bcd8 15080echo $ac_n "checking for inet_addr in -lnsl""... $ac_c" 1>&6
9f8148b1 15081echo "configure:15082: checking for inet_addr in -lnsl" >&5
4f14bcd8 15082ac_lib_var=`echo nsl'_'inet_addr | sed 'y%./+-%__p_%'`
698dcdb6
VZ
15083if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15084 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 15085else
698dcdb6 15086 ac_save_LIBS="$LIBS"
4f14bcd8 15087LIBS="-lnsl $LIBS"
698dcdb6 15088cat > conftest.$ac_ext <<EOF
9f8148b1 15089#line 15090 "configure"
10f2d63a
VZ
15090#include "confdefs.h"
15091/* Override any gcc2 internal prototype to avoid an error. */
15092/* We use char because int might match the return type of a gcc2
698dcdb6 15093 builtin and then its argument prototype would still apply. */
4f14bcd8 15094char inet_addr();
698dcdb6
VZ
15095
15096int main() {
4f14bcd8 15097inet_addr()
698dcdb6
VZ
15098; return 0; }
15099EOF
9f8148b1 15100if { (eval echo configure:15101: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
15101 rm -rf conftest*
15102 eval "ac_cv_lib_$ac_lib_var=yes"
15103else
15104 echo "configure: failed program was:" >&5
15105 cat conftest.$ac_ext >&5
15106 rm -rf conftest*
15107 eval "ac_cv_lib_$ac_lib_var=no"
15108fi
15109rm -f conftest*
15110LIBS="$ac_save_LIBS"
15111
15112fi
15113if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15114 echo "$ac_t""yes" 1>&6
4f14bcd8 15115 INET_LINK="nsl"
10f2d63a 15116else
698dcdb6 15117 echo "$ac_t""no" 1>&6
4f14bcd8 15118echo $ac_n "checking for inet_addr in -lresolv""... $ac_c" 1>&6
9f8148b1 15119echo "configure:15120: checking for inet_addr in -lresolv" >&5
4f14bcd8 15120ac_lib_var=`echo resolv'_'inet_addr | sed 'y%./+-%__p_%'`
698dcdb6
VZ
15121if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15122 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 15123else
698dcdb6 15124 ac_save_LIBS="$LIBS"
4f14bcd8 15125LIBS="-lresolv $LIBS"
698dcdb6 15126cat > conftest.$ac_ext <<EOF
9f8148b1 15127#line 15128 "configure"
10f2d63a
VZ
15128#include "confdefs.h"
15129/* Override any gcc2 internal prototype to avoid an error. */
15130/* We use char because int might match the return type of a gcc2
698dcdb6 15131 builtin and then its argument prototype would still apply. */
4f14bcd8 15132char inet_addr();
698dcdb6
VZ
15133
15134int main() {
4f14bcd8 15135inet_addr()
698dcdb6
VZ
15136; return 0; }
15137EOF
9f8148b1 15138if { (eval echo configure:15139: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
15139 rm -rf conftest*
15140 eval "ac_cv_lib_$ac_lib_var=yes"
15141else
15142 echo "configure: failed program was:" >&5
15143 cat conftest.$ac_ext >&5
15144 rm -rf conftest*
15145 eval "ac_cv_lib_$ac_lib_var=no"
15146fi
15147rm -f conftest*
15148LIBS="$ac_save_LIBS"
15149
15150fi
15151if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15152 echo "$ac_t""yes" 1>&6
4f14bcd8
GD
15153 INET_LINK="resolv"
15154
698dcdb6 15155else
4f14bcd8
GD
15156 echo "$ac_t""no" 1>&6
15157fi
698dcdb6 15158
4f14bcd8 15159
698dcdb6 15160fi
4f14bcd8
GD
15161
15162
698dcdb6
VZ
15163
15164fi
4f14bcd8
GD
15165done
15166
15167
15168for ac_func in inet_aton
15169do
15170echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9f8148b1 15171echo "configure:15172: checking for $ac_func" >&5
4f14bcd8 15172if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
698dcdb6
VZ
15173 echo $ac_n "(cached) $ac_c" 1>&6
15174else
4f14bcd8 15175 cat > conftest.$ac_ext <<EOF
9f8148b1 15176#line 15177 "configure"
f6bcfd97 15177#include "confdefs.h"
4f14bcd8
GD
15178/* System header to define __stub macros and hopefully few prototypes,
15179 which can conflict with char $ac_func(); below. */
15180#include <assert.h>
f6bcfd97
BP
15181/* Override any gcc2 internal prototype to avoid an error. */
15182/* We use char because int might match the return type of a gcc2
698dcdb6 15183 builtin and then its argument prototype would still apply. */
4f14bcd8 15184char $ac_func();
698dcdb6
VZ
15185
15186int main() {
4f14bcd8
GD
15187
15188/* The GNU C library defines this for functions which it implements
15189 to always fail with ENOSYS. Some functions are actually named
15190 something starting with __ and the normal name is an alias. */
15191#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15192choke me
15193#else
15194$ac_func();
15195#endif
15196
698dcdb6
VZ
15197; return 0; }
15198EOF
9f8148b1 15199if { (eval echo configure:15200: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 15200 rm -rf conftest*
4f14bcd8 15201 eval "ac_cv_func_$ac_func=yes"
698dcdb6
VZ
15202else
15203 echo "configure: failed program was:" >&5
15204 cat conftest.$ac_ext >&5
15205 rm -rf conftest*
4f14bcd8 15206 eval "ac_cv_func_$ac_func=no"
698dcdb6
VZ
15207fi
15208rm -f conftest*
698dcdb6 15209fi
4f14bcd8
GD
15210
15211if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
698dcdb6 15212 echo "$ac_t""yes" 1>&6
4f14bcd8
GD
15213 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15214 cat >> confdefs.h <<EOF
15215#define $ac_tr_func 1
15216EOF
15217 cat >> confdefs.h <<\EOF
15218#define HAVE_INET_ATON 1
15219EOF
15220
10f2d63a 15221else
698dcdb6 15222 echo "$ac_t""no" 1>&6
4f14bcd8 15223 echo $ac_n "checking for inet_aton in -l$INET_LINK""... $ac_c" 1>&6
9f8148b1 15224echo "configure:15225: checking for inet_aton in -l$INET_LINK" >&5
4f14bcd8 15225ac_lib_var=`echo $INET_LINK'_'inet_aton | sed 'y%./+-%__p_%'`
698dcdb6
VZ
15226if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15227 echo $ac_n "(cached) $ac_c" 1>&6
1e487827 15228else
698dcdb6 15229 ac_save_LIBS="$LIBS"
4f14bcd8 15230LIBS="-l$INET_LINK $LIBS"
698dcdb6 15231cat > conftest.$ac_ext <<EOF
9f8148b1 15232#line 15233 "configure"
10f2d63a 15233#include "confdefs.h"
6232543b 15234/* Override any gcc2 internal prototype to avoid an error. */
6232543b 15235/* We use char because int might match the return type of a gcc2
698dcdb6 15236 builtin and then its argument prototype would still apply. */
4f14bcd8 15237char inet_aton();
698dcdb6
VZ
15238
15239int main() {
4f14bcd8 15240inet_aton()
698dcdb6
VZ
15241; return 0; }
15242EOF
9f8148b1 15243if { (eval echo configure:15244: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
15244 rm -rf conftest*
15245 eval "ac_cv_lib_$ac_lib_var=yes"
15246else
15247 echo "configure: failed program was:" >&5
15248 cat conftest.$ac_ext >&5
15249 rm -rf conftest*
15250 eval "ac_cv_lib_$ac_lib_var=no"
15251fi
15252rm -f conftest*
15253LIBS="$ac_save_LIBS"
10f2d63a 15254
698dcdb6
VZ
15255fi
15256if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15257 echo "$ac_t""yes" 1>&6
4f14bcd8
GD
15258 cat >> confdefs.h <<\EOF
15259#define HAVE_INET_ATON 1
15260EOF
15261
698dcdb6
VZ
15262else
15263 echo "$ac_t""no" 1>&6
10f2d63a
VZ
15264fi
15265
4f14bcd8 15266
10f2d63a 15267fi
4f14bcd8 15268done
10f2d63a 15269
4f14bcd8
GD
15270
15271if test "x$INET_LINK" != "x"; then
15272 cat >> confdefs.h <<\EOF
15273#define HAVE_INET_ADDR 1
15274EOF
15275
3d63bc3a 15276 INET_LINK=" -l$INET_LINK"
6232543b 15277fi
10f2d63a 15278
1e487827 15279fi
703e0a69 15280
698dcdb6 15281
4f14bcd8
GD
15282cat > confcache <<\EOF
15283# This file is a shell script that caches the results of configure
15284# tests run on this system so they can be shared between configure
15285# scripts and configure runs. It is not useful on other systems.
15286# If it contains results you don't want to keep, you may remove or edit it.
15287#
15288# By default, configure uses ./config.cache as the cache file,
15289# creating it if it does not exist already. You can give configure
15290# the --cache-file=FILE option to use a different cache file; that is
15291# what configure does when it calls configure scripts in
15292# subdirectories, so they share the cache.
15293# Giving --cache-file=/dev/null disables caching, for debugging configure.
15294# config.status only pays attention to the cache file if you give it the
15295# --recheck option to rerun configure.
15296#
f6bcfd97 15297EOF
4f14bcd8
GD
15298# The following way of writing the cache mishandles newlines in values,
15299# but we know of no workaround that is simple, portable, and efficient.
15300# So, don't put newlines in cache variables' values.
15301# Ultrix sh set writes to stderr and can't be redirected directly,
15302# and sets the high bit in the cache file unless we assign to the vars.
15303(set) 2>&1 |
15304 case `(ac_space=' '; set | grep ac_space) 2>&1` in
15305 *ac_space=\ *)
15306 # `set' does not quote correctly, so add quotes (double-quote substitution
15307 # turns \\\\ into \\, and sed turns \\ into \).
15308 sed -n \
15309 -e "s/'/'\\\\''/g" \
15310 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
15311 ;;
15312 *)
15313 # `set' quotes correctly as required by POSIX, so do not add quotes.
15314 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
15315 ;;
15316 esac >> confcache
15317if cmp -s $cache_file confcache; then
15318 :
15319else
15320 if test -w $cache_file; then
15321 echo "updating cache $cache_file"
15322 cat confcache > $cache_file
f6bcfd97 15323 else
4f14bcd8 15324 echo "not updating unwritable cache $cache_file"
f6bcfd97 15325 fi
4f14bcd8
GD
15326fi
15327rm -f confcache
f6bcfd97 15328
4f14bcd8
GD
15329
15330
15331if test "$TOOLKIT" != "MSW"; then
15332
7274f1c7
RL
15333
15334 THREADS_LINK=
15335 THREADS_OBJ=
15336 CODE_GEN_FLAGS=
15337 CODE_GEN_FLAGS_CXX=
15338
15339 if test "$wxUSE_THREADS" = "yes" ; then
15340 if test "$wxUSE_WINE" = 1 ; then
156b2523 15341 echo "configure: warning: Threads are not supported under WINE... disabled" 1>&2
7274f1c7
RL
15342 wxUSE_THREADS="no"
15343 elif test "$USE_BEOS" = 1; then
156b2523 15344 echo "configure: warning: BeOS threads are not yet supported... disabled" 1>&2
7274f1c7
RL
15345 wxUSE_THREADS="no"
15346 fi
4f14bcd8 15347 fi
4f14bcd8 15348
7274f1c7
RL
15349 if test "$wxUSE_THREADS" = "yes" ; then
15350
15351 if test "$USE_AIX" = 1; then
15352 THREADS_LIB=pthreads
15353 else
15354 THREADS_LIB=pthread
15355 fi
4f14bcd8 15356
7274f1c7 15357 echo $ac_n "checking for pthread_create in -l$THREADS_LIB""... $ac_c" 1>&6
9f8148b1 15358echo "configure:15359: checking for pthread_create in -l$THREADS_LIB" >&5
4f14bcd8 15359ac_lib_var=`echo $THREADS_LIB'_'pthread_create | sed 'y%./+-%__p_%'`
698dcdb6
VZ
15360if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15361 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 15362else
698dcdb6 15363 ac_save_LIBS="$LIBS"
4f14bcd8 15364LIBS="-l$THREADS_LIB $LIBS"
698dcdb6 15365cat > conftest.$ac_ext <<EOF
9f8148b1 15366#line 15367 "configure"
10f2d63a
VZ
15367#include "confdefs.h"
15368/* Override any gcc2 internal prototype to avoid an error. */
15369/* We use char because int might match the return type of a gcc2
698dcdb6 15370 builtin and then its argument prototype would still apply. */
4f14bcd8 15371char pthread_create();
698dcdb6
VZ
15372
15373int main() {
4f14bcd8 15374pthread_create()
698dcdb6
VZ
15375; return 0; }
15376EOF
9f8148b1 15377if { (eval echo configure:15378: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
15378 rm -rf conftest*
15379 eval "ac_cv_lib_$ac_lib_var=yes"
15380else
15381 echo "configure: failed program was:" >&5
15382 cat conftest.$ac_ext >&5
15383 rm -rf conftest*
15384 eval "ac_cv_lib_$ac_lib_var=no"
15385fi
15386rm -f conftest*
15387LIBS="$ac_save_LIBS"
15388
15389fi
15390if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15391 echo "$ac_t""yes" 1>&6
4f14bcd8 15392
7274f1c7
RL
15393 THREADS_OBJ="threadpsx.lo"
15394 THREADS_LINK=$THREADS_LIB
15395
10f2d63a 15396else
698dcdb6 15397 echo "$ac_t""no" 1>&6
10f2d63a 15398
7274f1c7 15399 echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6
9f8148b1 15400echo "configure:15401: checking for pthread_create in -lc_r" >&5
4f14bcd8
GD
15401ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'`
15402if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
698dcdb6
VZ
15403 echo $ac_n "(cached) $ac_c" 1>&6
15404else
4f14bcd8
GD
15405 ac_save_LIBS="$LIBS"
15406LIBS="-lc_r $LIBS"
15407cat > conftest.$ac_ext <<EOF
9f8148b1 15408#line 15409 "configure"
10f2d63a 15409#include "confdefs.h"
4f14bcd8
GD
15410/* Override any gcc2 internal prototype to avoid an error. */
15411/* We use char because int might match the return type of a gcc2
15412 builtin and then its argument prototype would still apply. */
15413char pthread_create();
10f2d63a 15414
4f14bcd8
GD
15415int main() {
15416pthread_create()
698dcdb6
VZ
15417; return 0; }
15418EOF
9f8148b1 15419if { (eval echo configure:15420: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 15420 rm -rf conftest*
4f14bcd8 15421 eval "ac_cv_lib_$ac_lib_var=yes"
10f2d63a 15422else
698dcdb6
VZ
15423 echo "configure: failed program was:" >&5
15424 cat conftest.$ac_ext >&5
15425 rm -rf conftest*
4f14bcd8 15426 eval "ac_cv_lib_$ac_lib_var=no"
6232543b 15427fi
698dcdb6 15428rm -f conftest*
4f14bcd8 15429LIBS="$ac_save_LIBS"
d9b9876f 15430
4f14bcd8
GD
15431fi
15432if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15433 echo "$ac_t""yes" 1>&6
15434
7274f1c7
RL
15435 THREADS_OBJ="threadpsx.lo"
15436 THREADS_LINK="c_r"
15437
4f14bcd8
GD
15438else
15439 echo "$ac_t""no" 1>&6
ab252f7b 15440
7274f1c7 15441 ac_safe=`echo "sys/prctl.h" | sed 'y%./+-%__p_%'`
4f14bcd8 15442echo $ac_n "checking for sys/prctl.h""... $ac_c" 1>&6
9f8148b1 15443echo "configure:15444: checking for sys/prctl.h" >&5
4f14bcd8 15444if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
698dcdb6 15445 echo $ac_n "(cached) $ac_c" 1>&6
d9b9876f 15446else
4f14bcd8 15447 cat > conftest.$ac_ext <<EOF
9f8148b1 15448#line 15449 "configure"
d9b9876f 15449#include "confdefs.h"
4f14bcd8 15450#include <sys/prctl.h>
698dcdb6 15451EOF
4f14bcd8 15452ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9f8148b1 15453{ (eval echo configure:15454: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4f14bcd8
GD
15454ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15455if test -z "$ac_err"; then
698dcdb6 15456 rm -rf conftest*
4f14bcd8 15457 eval "ac_cv_header_$ac_safe=yes"
d9b9876f 15458else
4f14bcd8 15459 echo "$ac_err" >&5
698dcdb6
VZ
15460 echo "configure: failed program was:" >&5
15461 cat conftest.$ac_ext >&5
15462 rm -rf conftest*
4f14bcd8 15463 eval "ac_cv_header_$ac_safe=no"
6232543b 15464fi
698dcdb6 15465rm -f conftest*
4f14bcd8
GD
15466fi
15467if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15468 echo "$ac_t""yes" 1>&6
698dcdb6 15469
7274f1c7
RL
15470 THREADS_OBJ="threadsgi.lo"
15471
4f14bcd8
GD
15472else
15473 echo "$ac_t""no" 1>&6
1e487827 15474fi
698dcdb6 15475
7274f1c7 15476
4f14bcd8 15477fi
d9b9876f 15478
7274f1c7 15479
4f14bcd8 15480fi
d9b9876f 15481
4f14bcd8 15482
7274f1c7
RL
15483 if test -z "$THREADS_OBJ" ; then
15484 wxUSE_THREADS=no
156b2523 15485 echo "configure: warning: No thread support on this system... disabled" 1>&2
7274f1c7 15486 fi
4f14bcd8 15487 fi
4f14bcd8 15488
7274f1c7
RL
15489 if test "$wxUSE_THREADS" = "yes" ; then
15490 for ac_func in thr_setconcurrency
4f14bcd8
GD
15491do
15492echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9f8148b1 15493echo "configure:15494: checking for $ac_func" >&5
4f14bcd8 15494if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
698dcdb6
VZ
15495 echo $ac_n "(cached) $ac_c" 1>&6
15496else
4f14bcd8 15497 cat > conftest.$ac_ext <<EOF
9f8148b1 15498#line 15499 "configure"
d9b9876f 15499#include "confdefs.h"
4f14bcd8
GD
15500/* System header to define __stub macros and hopefully few prototypes,
15501 which can conflict with char $ac_func(); below. */
15502#include <assert.h>
15503/* Override any gcc2 internal prototype to avoid an error. */
15504/* We use char because int might match the return type of a gcc2
15505 builtin and then its argument prototype would still apply. */
15506char $ac_func();
15507
698dcdb6 15508int main() {
d9b9876f 15509
4f14bcd8
GD
15510/* The GNU C library defines this for functions which it implements
15511 to always fail with ENOSYS. Some functions are actually named
15512 something starting with __ and the normal name is an alias. */
15513#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15514choke me
15515#else
15516$ac_func();
15517#endif
15518
698dcdb6
VZ
15519; return 0; }
15520EOF
9f8148b1 15521if { (eval echo configure:15522: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 15522 rm -rf conftest*
4f14bcd8 15523 eval "ac_cv_func_$ac_func=yes"
d9b9876f 15524else
698dcdb6
VZ
15525 echo "configure: failed program was:" >&5
15526 cat conftest.$ac_ext >&5
15527 rm -rf conftest*
4f14bcd8 15528 eval "ac_cv_func_$ac_func=no"
6232543b 15529fi
698dcdb6 15530rm -f conftest*
1e487827 15531fi
698dcdb6 15532
4f14bcd8
GD
15533if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15534 echo "$ac_t""yes" 1>&6
15535 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15536 cat >> confdefs.h <<EOF
15537#define $ac_tr_func 1
d9b9876f 15538EOF
4f14bcd8
GD
15539
15540else
15541 echo "$ac_t""no" 1>&6
10f2d63a 15542fi
4f14bcd8 15543done
10f2d63a 15544
10f2d63a 15545
7274f1c7
RL
15546
15547 for ac_hdr in sched.h
4f14bcd8
GD
15548do
15549ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15550echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9f8148b1 15551echo "configure:15552: checking for $ac_hdr" >&5
4f14bcd8
GD
15552if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15553 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 15554else
4f14bcd8 15555 cat > conftest.$ac_ext <<EOF
9f8148b1 15556#line 15557 "configure"
4f14bcd8
GD
15557#include "confdefs.h"
15558#include <$ac_hdr>
13111b2a 15559EOF
4f14bcd8 15560ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9f8148b1 15561{ (eval echo configure:15562: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4f14bcd8
GD
15562ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15563if test -z "$ac_err"; then
15564 rm -rf conftest*
15565 eval "ac_cv_header_$ac_safe=yes"
15566else
15567 echo "$ac_err" >&5
15568 echo "configure: failed program was:" >&5
15569 cat conftest.$ac_ext >&5
15570 rm -rf conftest*
15571 eval "ac_cv_header_$ac_safe=no"
13111b2a 15572fi
4f14bcd8 15573rm -f conftest*
10f2d63a 15574fi
4f14bcd8
GD
15575if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15576 echo "$ac_t""yes" 1>&6
15577 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
698dcdb6 15578 cat >> confdefs.h <<EOF
4f14bcd8 15579#define $ac_tr_hdr 1
f6bcfd97 15580EOF
4f14bcd8
GD
15581
15582else
15583 echo "$ac_t""no" 1>&6
f6bcfd97 15584fi
4f14bcd8 15585done
f6bcfd97 15586
10f2d63a 15587
7274f1c7 15588 echo $ac_n "checking for sched_yield in -l$THREADS_LINK""... $ac_c" 1>&6
9f8148b1 15589echo "configure:15590: checking for sched_yield in -l$THREADS_LINK" >&5
4f14bcd8
GD
15590ac_lib_var=`echo $THREADS_LINK'_'sched_yield | sed 'y%./+-%__p_%'`
15591if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15592 echo $ac_n "(cached) $ac_c" 1>&6
15593else
15594 ac_save_LIBS="$LIBS"
15595LIBS="-l$THREADS_LINK $LIBS"
15596cat > conftest.$ac_ext <<EOF
9f8148b1 15597#line 15598 "configure"
4f14bcd8
GD
15598#include "confdefs.h"
15599/* Override any gcc2 internal prototype to avoid an error. */
15600/* We use char because int might match the return type of a gcc2
15601 builtin and then its argument prototype would still apply. */
15602char sched_yield();
10f2d63a 15603
4f14bcd8
GD
15604int main() {
15605sched_yield()
15606; return 0; }
10f2d63a 15607EOF
9f8148b1 15608if { (eval echo configure:15609: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4f14bcd8
GD
15609 rm -rf conftest*
15610 eval "ac_cv_lib_$ac_lib_var=yes"
10f2d63a 15611else
4f14bcd8
GD
15612 echo "configure: failed program was:" >&5
15613 cat conftest.$ac_ext >&5
15614 rm -rf conftest*
15615 eval "ac_cv_lib_$ac_lib_var=no"
10f2d63a 15616fi
4f14bcd8
GD
15617rm -f conftest*
15618LIBS="$ac_save_LIBS"
10f2d63a 15619
4f14bcd8
GD
15620fi
15621if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15622 echo "$ac_t""yes" 1>&6
15623 cat >> confdefs.h <<\EOF
15624#define HAVE_SCHED_YIELD 1
10f2d63a
VZ
15625EOF
15626
4f14bcd8
GD
15627else
15628 echo "$ac_t""no" 1>&6
15629echo $ac_n "checking for sched_yield in -lposix4""... $ac_c" 1>&6
9f8148b1 15630echo "configure:15631: checking for sched_yield in -lposix4" >&5
4f14bcd8
GD
15631ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'`
15632if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15633 echo $ac_n "(cached) $ac_c" 1>&6
15634else
15635 ac_save_LIBS="$LIBS"
15636LIBS="-lposix4 $LIBS"
15637cat > conftest.$ac_ext <<EOF
9f8148b1 15638#line 15639 "configure"
4f14bcd8
GD
15639#include "confdefs.h"
15640/* Override any gcc2 internal prototype to avoid an error. */
15641/* We use char because int might match the return type of a gcc2
15642 builtin and then its argument prototype would still apply. */
15643char sched_yield();
47c13eb7 15644
4f14bcd8
GD
15645int main() {
15646sched_yield()
15647; return 0; }
10f2d63a 15648EOF
9f8148b1 15649if { (eval echo configure:15650: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4f14bcd8
GD
15650 rm -rf conftest*
15651 eval "ac_cv_lib_$ac_lib_var=yes"
10f2d63a 15652else
4f14bcd8
GD
15653 echo "configure: failed program was:" >&5
15654 cat conftest.$ac_ext >&5
15655 rm -rf conftest*
15656 eval "ac_cv_lib_$ac_lib_var=no"
10f2d63a 15657fi
4f14bcd8
GD
15658rm -f conftest*
15659LIBS="$ac_save_LIBS"
10f2d63a 15660
54276ccf 15661fi
4f14bcd8
GD
15662if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15663 echo "$ac_t""yes" 1>&6
15664 cat >> confdefs.h <<\EOF
15665#define HAVE_SCHED_YIELD 1
54276ccf 15666EOF
3d63bc3a 15667 POSIX4_LINK=" -lposix4"
4f14bcd8
GD
15668else
15669 echo "$ac_t""no" 1>&6
15670echo "configure: warning: wxThread::Yield will not work properly" 1>&2
7274f1c7 15671
54276ccf
VZ
15672fi
15673
7274f1c7 15674
4f14bcd8 15675fi
698dcdb6 15676
10f2d63a 15677
7274f1c7
RL
15678 HAVE_PRIOR_FUNCS=0
15679 echo $ac_n "checking for pthread_attr_getschedpolicy in -l$THREADS_LINK""... $ac_c" 1>&6
9f8148b1 15680echo "configure:15681: checking for pthread_attr_getschedpolicy in -l$THREADS_LINK" >&5
4f14bcd8
GD
15681ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_getschedpolicy | sed 'y%./+-%__p_%'`
15682if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
698dcdb6
VZ
15683 echo $ac_n "(cached) $ac_c" 1>&6
15684else
4f14bcd8
GD
15685 ac_save_LIBS="$LIBS"
15686LIBS="-l$THREADS_LINK $LIBS"
15687cat > conftest.$ac_ext <<EOF
9f8148b1 15688#line 15689 "configure"
422107f9 15689#include "confdefs.h"
4f14bcd8
GD
15690/* Override any gcc2 internal prototype to avoid an error. */
15691/* We use char because int might match the return type of a gcc2
15692 builtin and then its argument prototype would still apply. */
15693char pthread_attr_getschedpolicy();
15694
15695int main() {
15696pthread_attr_getschedpolicy()
15697; return 0; }
698dcdb6 15698EOF
9f8148b1 15699if { (eval echo configure:15700: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 15700 rm -rf conftest*
4f14bcd8 15701 eval "ac_cv_lib_$ac_lib_var=yes"
422107f9 15702else
698dcdb6 15703 echo "configure: failed program was:" >&5
422107f9 15704 cat conftest.$ac_ext >&5
698dcdb6 15705 rm -rf conftest*
4f14bcd8 15706 eval "ac_cv_lib_$ac_lib_var=no"
422107f9 15707fi
698dcdb6 15708rm -f conftest*
4f14bcd8
GD
15709LIBS="$ac_save_LIBS"
15710
422107f9 15711fi
4f14bcd8 15712if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
698dcdb6 15713 echo "$ac_t""yes" 1>&6
4f14bcd8 15714 echo $ac_n "checking for pthread_attr_setschedparam in -l$THREADS_LINK""... $ac_c" 1>&6
9f8148b1 15715echo "configure:15716: checking for pthread_attr_setschedparam in -l$THREADS_LINK" >&5
4f14bcd8 15716ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_setschedparam | 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
422107f9 15719else
698dcdb6 15720 ac_save_LIBS="$LIBS"
4f14bcd8 15721LIBS="-l$THREADS_LINK $LIBS"
698dcdb6 15722cat > conftest.$ac_ext <<EOF
9f8148b1 15723#line 15724 "configure"
422107f9
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. */
4f14bcd8 15728char pthread_attr_setschedparam();
698dcdb6
VZ
15729
15730int main() {
4f14bcd8 15731pthread_attr_setschedparam()
698dcdb6
VZ
15732; return 0; }
15733EOF
9f8148b1 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"
15745
15746fi
15747if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15748 echo "$ac_t""yes" 1>&6
4f14bcd8 15749 echo $ac_n "checking for sched_get_priority_max in -l$THREADS_LINK""... $ac_c" 1>&6
9f8148b1 15750echo "configure:15751: checking for sched_get_priority_max in -l$THREADS_LINK" >&5
4f14bcd8
GD
15751ac_lib_var=`echo $THREADS_LINK'_'sched_get_priority_max | sed 'y%./+-%__p_%'`
15752if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
698dcdb6
VZ
15753 echo $ac_n "(cached) $ac_c" 1>&6
15754else
4f14bcd8
GD
15755 ac_save_LIBS="$LIBS"
15756LIBS="-l$THREADS_LINK $LIBS"
15757cat > conftest.$ac_ext <<EOF
9f8148b1 15758#line 15759 "configure"
422107f9 15759#include "confdefs.h"
4f14bcd8
GD
15760/* Override any gcc2 internal prototype to avoid an error. */
15761/* We use char because int might match the return type of a gcc2
15762 builtin and then its argument prototype would still apply. */
15763char sched_get_priority_max();
15764
15765int main() {
15766sched_get_priority_max()
15767; return 0; }
698dcdb6 15768EOF
9f8148b1 15769if { (eval echo configure:15770: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 15770 rm -rf conftest*
4f14bcd8 15771 eval "ac_cv_lib_$ac_lib_var=yes"
422107f9 15772else
698dcdb6 15773 echo "configure: failed program was:" >&5
422107f9 15774 cat conftest.$ac_ext >&5
698dcdb6 15775 rm -rf conftest*
4f14bcd8 15776 eval "ac_cv_lib_$ac_lib_var=no"
422107f9 15777fi
698dcdb6 15778rm -f conftest*
4f14bcd8
GD
15779LIBS="$ac_save_LIBS"
15780
422107f9 15781fi
4f14bcd8 15782if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
698dcdb6 15783 echo "$ac_t""yes" 1>&6
4f14bcd8
GD
15784 HAVE_PRIOR_FUNCS=1
15785else
15786 echo "$ac_t""no" 1>&6
15787echo $ac_n "checking for sched_get_priority_max in -lposix4""... $ac_c" 1>&6
9f8148b1 15788echo "configure:15789: checking for sched_get_priority_max in -lposix4" >&5
4f14bcd8 15789ac_lib_var=`echo posix4'_'sched_get_priority_max | sed 'y%./+-%__p_%'`
698dcdb6
VZ
15790if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15791 echo $ac_n "(cached) $ac_c" 1>&6
422107f9 15792else
698dcdb6 15793 ac_save_LIBS="$LIBS"
4f14bcd8 15794LIBS="-lposix4 $LIBS"
698dcdb6 15795cat > conftest.$ac_ext <<EOF
9f8148b1 15796#line 15797 "configure"
422107f9
VZ
15797#include "confdefs.h"
15798/* Override any gcc2 internal prototype to avoid an error. */
15799/* We use char because int might match the return type of a gcc2
698dcdb6 15800 builtin and then its argument prototype would still apply. */
4f14bcd8 15801char sched_get_priority_max();
698dcdb6
VZ
15802
15803int main() {
4f14bcd8 15804sched_get_priority_max()
698dcdb6
VZ
15805; return 0; }
15806EOF
9f8148b1 15807if { (eval echo configure:15808: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
15808 rm -rf conftest*
15809 eval "ac_cv_lib_$ac_lib_var=yes"
15810else
15811 echo "configure: failed program was:" >&5
15812 cat conftest.$ac_ext >&5
15813 rm -rf conftest*
15814 eval "ac_cv_lib_$ac_lib_var=no"
15815fi
15816rm -f conftest*
15817LIBS="$ac_save_LIBS"
15818
15819fi
15820if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15821 echo "$ac_t""yes" 1>&6
4f14bcd8 15822
7274f1c7
RL
15823 HAVE_PRIOR_FUNCS=1
15824 POSIX4_LINK=" -lposix4"
15825
698dcdb6
VZ
15826else
15827 echo "$ac_t""no" 1>&6
422107f9
VZ
15828fi
15829
7274f1c7 15830
422107f9
VZ
15831fi
15832
7274f1c7 15833
4f14bcd8
GD
15834else
15835 echo "$ac_t""no" 1>&6
10f2d63a
VZ
15836fi
15837
7274f1c7 15838
698dcdb6 15839else
4f14bcd8
GD
15840 echo "$ac_t""no" 1>&6
15841fi
463abc64 15842
463abc64 15843
7274f1c7
RL
15844 if test "$HAVE_PRIOR_FUNCS" = 1; then
15845 cat >> confdefs.h <<\EOF
4f14bcd8 15846#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
698dcdb6 15847EOF
463abc64 15848
7274f1c7
RL
15849 else
15850 echo "configure: warning: Setting thread priority will not work" 1>&2
15851 fi
463abc64 15852
7274f1c7 15853 echo $ac_n "checking for pthread_cancel in -l$THREADS_LINK""... $ac_c" 1>&6
9f8148b1 15854echo "configure:15855: checking for pthread_cancel in -l$THREADS_LINK" >&5
4f14bcd8 15855ac_lib_var=`echo $THREADS_LINK'_'pthread_cancel | sed 'y%./+-%__p_%'`
698dcdb6
VZ
15856if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15857 echo $ac_n "(cached) $ac_c" 1>&6
422107f9 15858else
698dcdb6 15859 ac_save_LIBS="$LIBS"
4f14bcd8 15860LIBS="-l$THREADS_LINK $LIBS"
698dcdb6 15861cat > conftest.$ac_ext <<EOF
9f8148b1 15862#line 15863 "configure"
422107f9
VZ
15863#include "confdefs.h"
15864/* Override any gcc2 internal prototype to avoid an error. */
15865/* We use char because int might match the return type of a gcc2
698dcdb6 15866 builtin and then its argument prototype would still apply. */
4f14bcd8 15867char pthread_cancel();
698dcdb6
VZ
15868
15869int main() {
4f14bcd8 15870pthread_cancel()
698dcdb6
VZ
15871; return 0; }
15872EOF
9f8148b1 15873if { (eval echo configure:15874: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
15874 rm -rf conftest*
15875 eval "ac_cv_lib_$ac_lib_var=yes"
15876else
15877 echo "configure: failed program was:" >&5
15878 cat conftest.$ac_ext >&5
15879 rm -rf conftest*
15880 eval "ac_cv_lib_$ac_lib_var=no"
15881fi
15882rm -f conftest*
15883LIBS="$ac_save_LIBS"
15884
15885fi
15886if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15887 echo "$ac_t""yes" 1>&6
4f14bcd8
GD
15888 cat >> confdefs.h <<\EOF
15889#define HAVE_PTHREAD_CANCEL 1
15890EOF
15891
698dcdb6
VZ
15892else
15893 echo "$ac_t""no" 1>&6
4f14bcd8 15894echo "configure: warning: wxThread::Kill() will not work properly" 1>&2
422107f9
VZ
15895fi
15896
422107f9 15897
7274f1c7 15898 echo $ac_n "checking for pthread_cleanup_push/pop""... $ac_c" 1>&6
9f8148b1 15899echo "configure:15900: checking for pthread_cleanup_push/pop" >&5
4f14bcd8
GD
15900if eval "test \"`echo '$''{'wx_cv_func_pthread_cleanup_push'+set}'`\" = set"; then
15901 echo $ac_n "(cached) $ac_c" 1>&6
15902else
15903
7274f1c7 15904 cat > conftest.$ac_ext <<EOF
9f8148b1 15905#line 15906 "configure"
4f14bcd8
GD
15906#include "confdefs.h"
15907#include <pthread.h>
15908int main() {
15909
7274f1c7
RL
15910 pthread_cleanup_push(NULL, NULL);
15911 pthread_cleanup_pop(0);
15912
4f14bcd8
GD
15913; return 0; }
15914EOF
9f8148b1 15915if { (eval echo configure:15916: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4f14bcd8
GD
15916 rm -rf conftest*
15917
7274f1c7
RL
15918 wx_cv_func_pthread_cleanup_push=yes
15919
4f14bcd8
GD
15920else
15921 echo "configure: failed program was:" >&5
15922 cat conftest.$ac_ext >&5
15923 rm -rf conftest*
15924
7274f1c7
RL
15925 wx_cv_func_pthread_cleanup_push=no
15926
4f14bcd8
GD
15927fi
15928rm -f conftest*
7274f1c7 15929
10f2d63a
VZ
15930fi
15931
4f14bcd8
GD
15932echo "$ac_t""$wx_cv_func_pthread_cleanup_push" 1>&6
15933
7274f1c7
RL
15934 if test "$wx_cv_func_pthread_cleanup_push" = "yes"; then
15935 cat >> confdefs.h <<\EOF
4f14bcd8 15936#define HAVE_THREAD_CLEANUP_FUNCTIONS 1
c7a2bf27
RR
15937EOF
15938
7274f1c7 15939 fi
4f14bcd8 15940
7274f1c7
RL
15941
15942 if test "x$wx_lib_glibc21" = "xyes"; then
15943 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
15944 fi
4f14bcd8 15945
7274f1c7 15946 echo $ac_n "checking for pthread_mutexattr_t""... $ac_c" 1>&6
9f8148b1 15947echo "configure:15948: checking for pthread_mutexattr_t" >&5
4f14bcd8 15948if eval "test \"`echo '$''{'wx_cv_type_pthread_mutexattr_t'+set}'`\" = set"; then
698dcdb6
VZ
15949 echo $ac_n "(cached) $ac_c" 1>&6
15950else
4f14bcd8 15951
7274f1c7 15952 cat > conftest.$ac_ext <<EOF
9f8148b1 15953#line 15954 "configure"
0dcf9893 15954#include "confdefs.h"
4f14bcd8
GD
15955#include <pthread.h>
15956int main() {
15957
7274f1c7
RL
15958 pthread_mutexattr_t attr;
15959 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
15960
4f14bcd8 15961; return 0; }
698dcdb6 15962EOF
9f8148b1 15963if { (eval echo configure:15964: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 15964 rm -rf conftest*
4f14bcd8 15965
7274f1c7
RL
15966 wx_cv_type_pthread_mutexattr_t=yes
15967
3fed1840 15968else
698dcdb6 15969 echo "configure: failed program was:" >&5
3fed1840 15970 cat conftest.$ac_ext >&5
698dcdb6 15971 rm -rf conftest*
4f14bcd8 15972
7274f1c7
RL
15973 wx_cv_type_pthread_mutexattr_t=no
15974
4f14bcd8 15975
3fed1840 15976fi
698dcdb6 15977rm -f conftest*
7274f1c7 15978
3fed1840 15979fi
4f14bcd8
GD
15980
15981echo "$ac_t""$wx_cv_type_pthread_mutexattr_t" 1>&6
15982
7274f1c7
RL
15983 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
15984 cat >> confdefs.h <<\EOF
4f14bcd8
GD
15985#define HAVE_PTHREAD_MUTEXATTR_T 1
15986EOF
15987
7274f1c7
RL
15988 else
15989 echo $ac_n "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER""... $ac_c" 1>&6
9f8148b1 15990echo "configure:15991: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
4f14bcd8 15991if eval "test \"`echo '$''{'wx_cv_type_pthread_rec_mutex_init'+set}'`\" = set"; then
698dcdb6 15992 echo $ac_n "(cached) $ac_c" 1>&6
3fed1840 15993else
4f14bcd8 15994
7274f1c7 15995 cat > conftest.$ac_ext <<EOF
9f8148b1 15996#line 15997 "configure"
3fed1840 15997#include "confdefs.h"
4f14bcd8 15998#include <pthread.h>
698dcdb6 15999int main() {
4f14bcd8 16000
7274f1c7
RL
16001 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
16002
698dcdb6
VZ
16003; return 0; }
16004EOF
9f8148b1 16005if { (eval echo configure:16006: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 16006 rm -rf conftest*
4f14bcd8 16007
7274f1c7
RL
16008 wx_cv_type_pthread_rec_mutex_init=yes
16009
698dcdb6
VZ
16010else
16011 echo "configure: failed program was:" >&5
16012 cat conftest.$ac_ext >&5
16013 rm -rf conftest*
4f14bcd8 16014
7274f1c7
RL
16015 wx_cv_type_pthread_rec_mutex_init=no
16016
4f14bcd8 16017
698dcdb6
VZ
16018fi
16019rm -f conftest*
7274f1c7 16020
3fed1840
RR
16021fi
16022
4f14bcd8 16023echo "$ac_t""$wx_cv_type_pthread_rec_mutex_init" 1>&6
7274f1c7
RL
16024 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
16025 cat >> confdefs.h <<\EOF
4f14bcd8
GD
16026#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
16027EOF
3fed1840 16028
7274f1c7
RL
16029 else
16030 echo "configure: warning: wxMutex won't be recursive on this platform" 1>&2
16031 fi
16032 fi
4f14bcd8 16033
7274f1c7 16034 THREADS_LINK=" -l$THREADS_LINK"
4f14bcd8 16035
7274f1c7
RL
16036 if test "$USE_SOLARIS" = "yes" -a "$GCC" != "yes"; then
16037 CPPFLAGS="$CFLAGS -mt"
16038 CXXFLAGS="$CXXFLAGS -mt"
16039 LDFLAGS="$LDFLAGS -mt"
16040 fi
16041 fi
3fed1840 16042
4f14bcd8
GD
16043fi
16044
16045if test "$wxUSE_THREADS" = "yes"; then
3a922bb4 16046 cat >> confdefs.h <<\EOF
4f14bcd8 16047#define wxUSE_THREADS 1
7b6058cd
GD
16048EOF
16049
4f14bcd8
GD
16050
16051 if test "$USE_DARWIN" != 1; then
3d63bc3a 16052 TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -D_REENTRANT"
4f14bcd8
GD
16053 fi
16054
16055 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
698dcdb6 16056else
4f14bcd8
GD
16057 if test "$ac_cv_func_strtok_r" = "yes"; then
16058 echo $ac_n "checking if -D_REENTRANT is needed""... $ac_c" 1>&6
9f8148b1 16059echo "configure:16060: checking if -D_REENTRANT is needed" >&5
4f14bcd8
GD
16060 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
16061 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT"
16062 echo "$ac_t""yes" 1>&6
16063 else
16064 echo "$ac_t""no" 1>&6
16065 fi
16066 fi
16067fi
16068
16069if test "$WXGTK20" = 1 ; then
16070 cat >> confdefs.h <<EOF
16071#define __WXGTK20__ $WXGTK20
698dcdb6 16072EOF
4f14bcd8
GD
16073
16074 WXGTK12=1
10f2d63a 16075fi
4f14bcd8
GD
16076
16077if test "$WXGTK12" = 1 ; then
16078 cat >> confdefs.h <<EOF
16079#define __WXGTK12__ $WXGTK12
16080EOF
16081
10f2d63a 16082fi
698dcdb6 16083
4f14bcd8
GD
16084if test "$WXGTK127" = 1 ; then
16085 cat >> confdefs.h <<EOF
16086#define __WXGTK127__ $WXGTK127
698dcdb6 16087EOF
4f14bcd8 16088
698dcdb6 16089fi
10f2d63a 16090
4f14bcd8
GD
16091WXDEBUG=
16092
16093if test "$wxUSE_DEBUG_INFO" = "yes" ; then
16094 WXDEBUG="-g"
16095 wxUSE_OPTIMISE=no
698dcdb6 16096fi
4f14bcd8
GD
16097
16098if test "$wxUSE_DEBUG_GDB" = "yes" ; then
16099 wxUSE_DEBUG_INFO=yes
16100 WXDEBUG="-ggdb"
10f2d63a
VZ
16101fi
16102
4f14bcd8
GD
16103if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
16104 cat >> confdefs.h <<\EOF
16105#define WXDEBUG 1
16106EOF
16107
16108 WXDEBUG_DEFINE="-D__WXDEBUG__"
10f2d63a 16109else
4f14bcd8
GD
16110 if test "$wxUSE_GTK" = 1 ; then
16111 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
16112 fi
16113fi
16114
16115if test "$wxUSE_MEM_TRACING" = "yes" ; then
16116 cat >> confdefs.h <<\EOF
16117#define wxUSE_MEMORY_TRACING 1
16118EOF
16119
16120 cat >> confdefs.h <<\EOF
16121#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
16122EOF
16123
16124 cat >> confdefs.h <<\EOF
16125#define wxUSE_DEBUG_NEW_ALWAYS 1
16126EOF
16127
16128 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
16129fi
16130
16131if test "$wxUSE_DMALLOC" = "yes" ; then
3d63bc3a 16132 DMALLOC_LIBS="-ldmalloc"
4f14bcd8
GD
16133fi
16134
16135PROFILE=
16136if test "$wxUSE_PROFILE" = "yes" ; then
3d63bc3a 16137 PROFILE=" -pg"
10f2d63a
VZ
16138fi
16139
88e30f2b 16140if test "$GCC" = "yes" ; then
4f14bcd8
GD
16141 if test "$wxUSE_NO_RTTI" = "yes" ; then
16142 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti"
3a922bb4 16143 fi
4f14bcd8
GD
16144 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
16145 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions"
16146 fi
16147 if test "$wxUSE_PERMISSIVE" = "yes" ; then
16148 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
16149 fi
4f14bcd8
GD
16150 if test "$USE_WIN32" = 1 ; then
16151 # I'm not even really sure what this was ever added to solve,
16152 # but someone added it for mingw native builds, so I guess
16153 # they had a reason, right??
16154 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fno-pcc-struct-return"
16155 fi
16156fi
16157
16158
16159CXXFLAGS=`echo "${CXXFLAGS}" | sed "s/\-O.//g" `
16160CFLAGS=`echo "${CFLAGS}" | sed "s/\-O.//g" `
16161if test "$wxUSE_OPTIMISE" = "no" ; then
16162 OPTIMISE=
16163else
16164 if test "$GCC" = yes ; then
16165 OPTIMISE="-O2"
16166 case "${host}" in
16167 i586-*-*|i686-*-* )
16168 OPTIMISE="${OPTIMISE} "
16169 ;;
16170 esac
16171 else
16172 OPTIMISE="-O"
16173 fi
16174fi
16175
16176if test "$WXWIN_COMPATIBILITY_2" = "yes"; then
16177 cat >> confdefs.h <<\EOF
16178#define WXWIN_COMPATIBILITY_2 1
16179EOF
16180
16181
16182 WXWIN_COMPATIBILITY_2_2="yes"
16183fi
16184
16185if test "$WXWIN_COMPATIBILITY_2_2" = "yes"; then
16186 cat >> confdefs.h <<\EOF
16187#define WXWIN_COMPATIBILITY_2_2 1
16188EOF
16189
10f2d63a
VZ
16190fi
16191
698dcdb6 16192
10f2d63a 16193if test "$wxUSE_GUI" = "yes"; then
698dcdb6 16194 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16195#define wxUSE_GUI 1
16196EOF
16197
698dcdb6 16198
10f2d63a 16199 else
698dcdb6 16200 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16201#define wxUSE_NOGUI 1
16202EOF
16203
16204fi
16205
698dcdb6 16206
10f2d63a 16207if test "$wxUSE_UNIX" = "yes"; then
698dcdb6 16208 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16209#define wxUSE_UNIX 1
16210EOF
16211
16212fi
16213
698dcdb6 16214
10f2d63a 16215if test "$wxUSE_APPLE_IEEE" = "yes"; then
698dcdb6 16216 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16217#define wxUSE_APPLE_IEEE 1
16218EOF
16219
16220fi
16221
1e6feb95
VZ
16222if test "$wxUSE_TIMER" = "yes"; then
16223 cat >> confdefs.h <<\EOF
16224#define wxUSE_TIMER 1
16225EOF
16226
16227fi
16228
10f2d63a 16229if test "$wxUSE_WAVE" = "yes"; then
698dcdb6 16230 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16231#define wxUSE_WAVE 1
16232EOF
16233
16234fi
16235
1e6feb95
VZ
16236if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
16237 cat >> confdefs.h <<\EOF
16238#define wxUSE_CMDLINE_PARSER 1
16239EOF
16240
16241fi
16242
16243if test "$wxUSE_STOPWATCH" = "yes"; then
16244 cat >> confdefs.h <<\EOF
16245#define wxUSE_STOPWATCH 1
16246EOF
16247
16248fi
16249
16250if test "$wxUSE_DATETIME" = "yes"; then
16251 cat >> confdefs.h <<\EOF
16252#define wxUSE_DATETIME 1
16253EOF
16254
16255fi
16256
16257if test "$wxUSE_TIMEDATE" = "yes"; then
16258 cat >> confdefs.h <<\EOF
16259#define wxUSE_TIMEDATE 1
16260EOF
16261
16262fi
16263
10f2d63a 16264if test "$wxUSE_FILE" = "yes"; then
698dcdb6 16265 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16266#define wxUSE_FILE 1
16267EOF
16268
16269fi
16270
1e6feb95
VZ
16271if test "$wxUSE_FFILE" = "yes"; then
16272 cat >> confdefs.h <<\EOF
16273#define wxUSE_FFILE 1
16274EOF
16275
16276fi
16277
24528b0c 16278if test "$wxUSE_FILESYSTEM" = "yes"; then
698dcdb6 16279 cat >> confdefs.h <<\EOF
24528b0c
VS
16280#define wxUSE_FILESYSTEM 1
16281EOF
16282
16283fi
16284
10f2d63a 16285if test "$wxUSE_FS_INET" = "yes"; then
698dcdb6 16286 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16287#define wxUSE_FS_INET 1
16288EOF
16289
16290fi
16291
16292if test "$wxUSE_FS_ZIP" = "yes"; then
698dcdb6 16293 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16294#define wxUSE_FS_ZIP 1
16295EOF
16296
16297fi
16298
16299if test "$wxUSE_ZIPSTREAM" = "yes"; then
698dcdb6 16300 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16301#define wxUSE_ZIPSTREAM 1
16302EOF
16303
16304fi
16305
eb4efbdc 16306if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
698dcdb6 16307 cat >> confdefs.h <<\EOF
eb4efbdc
VZ
16308#define wxUSE_ON_FATAL_EXCEPTION 1
16309EOF
16310
16311fi
16312
4f3c5f06 16313if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
698dcdb6 16314 cat >> confdefs.h <<\EOF
4f3c5f06
VZ
16315#define wxUSE_SNGLINST_CHECKER 1
16316EOF
16317
16318fi
16319
10f2d63a 16320if test "$wxUSE_BUSYINFO" = "yes"; then
698dcdb6 16321 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16322#define wxUSE_BUSYINFO 1
16323EOF
16324
16325fi
16326
16327if test "$wxUSE_STD_IOSTREAM" = "yes"; then
698dcdb6 16328 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16329#define wxUSE_STD_IOSTREAM 1
16330EOF
16331
16332fi
16333
a3a584a7
VZ
16334if test "$wxUSE_TEXTBUFFER" = "yes"; then
16335 cat >> confdefs.h <<\EOF
16336#define wxUSE_TEXTBUFFER 1
16337EOF
16338
16339fi
16340
10f2d63a 16341if test "$wxUSE_TEXTFILE" = "yes"; then
a3a584a7 16342 if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
156b2523 16343 echo "configure: warning: wxTextFile requires wxFile and wxTextBuffer... disabled" 1>&2
10f2d63a 16344 else
698dcdb6 16345 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16346#define wxUSE_TEXTFILE 1
16347EOF
16348
16349 fi
16350fi
16351
16352if test "$wxUSE_CONFIG" = "yes" ; then
16353 if test "$wxUSE_TEXTFILE" != "yes"; then
156b2523 16354 echo "configure: warning: wxConfig requires wxTextFile... disabled" 1>&2
10f2d63a 16355 else
698dcdb6 16356 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16357#define wxUSE_CONFIG 1
16358EOF
16359
16360 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
16361 fi
16362fi
16363
16364if test "$wxUSE_INTL" = "yes" ; then
16365 if test "$wxUSE_FILE" != "yes"; then
156b2523 16366 echo "configure: warning: I18n code requires wxFile... disabled" 1>&2
10f2d63a 16367 else
698dcdb6 16368 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16369#define wxUSE_INTL 1
16370EOF
16371
16372 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
f6bcfd97 16373 GUIDIST="$GUIDIST INTL_DIST"
10f2d63a
VZ
16374 fi
16375fi
16376
16377if test "$wxUSE_LOG" = "yes"; then
698dcdb6 16378 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16379#define wxUSE_LOG 1
16380EOF
16381
d73be714
VZ
16382
16383 if test "$wxUSE_LOGGUI" = "yes"; then
16384 cat >> confdefs.h <<\EOF
16385#define wxUSE_LOGGUI 1
16386EOF
16387
16388 fi
16389
16390 if test "$wxUSE_LOGWINDOW" = "yes"; then
16391 cat >> confdefs.h <<\EOF
16392#define wxUSE_LOGWINDOW 1
69d27ff7
MB
16393EOF
16394
16395 fi
16396
16397 if test "$wxUSE_LOGDIALOG" = "yes"; then
16398 cat >> confdefs.h <<\EOF
16399#define wxUSE_LOG_DIALOG 1
d73be714
VZ
16400EOF
16401
16402 fi
10f2d63a
VZ
16403fi
16404
16405if test "$wxUSE_LONGLONG" = "yes"; then
698dcdb6 16406 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16407#define wxUSE_LONGLONG 1
16408EOF
16409
16410fi
16411
e8f65ba6 16412if test "$wxUSE_GEOMETRY" = "yes"; then
698dcdb6 16413 cat >> confdefs.h <<\EOF
e8f65ba6
RR
16414#define wxUSE_GEOMETRY 1
16415EOF
16416
16417fi
16418
10f2d63a 16419if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
698dcdb6 16420 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16421#define wxUSE_DIALUP_MANAGER 1
16422EOF
16423
70f7a477 16424 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
10f2d63a
VZ
16425fi
16426
16427if test "$wxUSE_STREAMS" = "yes" ; then
698dcdb6 16428 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16429#define wxUSE_STREAMS 1
16430EOF
16431
16432fi
16433
1e487827 16434
1e6feb95 16435if test "$wxUSE_DATETIME" = "yes"; then
698dcdb6 16436 for ac_func in strptime
83307f33 16437do
698dcdb6 16438echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9f8148b1 16439echo "configure:16440: checking for $ac_func" >&5
698dcdb6
VZ
16440if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16441 echo $ac_n "(cached) $ac_c" 1>&6
16442else
16443 cat > conftest.$ac_ext <<EOF
9f8148b1 16444#line 16445 "configure"
83307f33
VZ
16445#include "confdefs.h"
16446/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 16447 which can conflict with char $ac_func(); below. */
83307f33
VZ
16448#include <assert.h>
16449/* Override any gcc2 internal prototype to avoid an error. */
16450/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
16451 builtin and then its argument prototype would still apply. */
16452char $ac_func();
16453
16454int main() {
83307f33
VZ
16455
16456/* The GNU C library defines this for functions which it implements
16457 to always fail with ENOSYS. Some functions are actually named
16458 something starting with __ and the normal name is an alias. */
16459#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16460choke me
16461#else
698dcdb6 16462$ac_func();
83307f33
VZ
16463#endif
16464
698dcdb6 16465; return 0; }
83307f33 16466EOF
9f8148b1 16467if { (eval echo configure:16468: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
16468 rm -rf conftest*
16469 eval "ac_cv_func_$ac_func=yes"
16470else
16471 echo "configure: failed program was:" >&5
16472 cat conftest.$ac_ext >&5
16473 rm -rf conftest*
16474 eval "ac_cv_func_$ac_func=no"
16475fi
16476rm -f conftest*
16477fi
83307f33 16478
698dcdb6
VZ
16479if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16480 echo "$ac_t""yes" 1>&6
16481 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16482 cat >> confdefs.h <<EOF
16483#define $ac_tr_func 1
16484EOF
16485
16486else
16487 echo "$ac_t""no" 1>&6
83307f33
VZ
16488fi
16489done
16490
1e487827 16491
698dcdb6 16492 echo $ac_n "checking for timezone variable in <time.h>""... $ac_c" 1>&6
9f8148b1 16493echo "configure:16494: checking for timezone variable in <time.h>" >&5
698dcdb6
VZ
16494if eval "test \"`echo '$''{'wx_cv_var_timezone'+set}'`\" = set"; then
16495 echo $ac_n "(cached) $ac_c" 1>&6
16496else
16497
16498 cat > conftest.$ac_ext <<EOF
9f8148b1 16499#line 16500 "configure"
360d6699
VZ
16500#include "confdefs.h"
16501
b4085ce6 16502 #include <time.h>
698dcdb6
VZ
16503
16504int main() {
360d6699
VZ
16505
16506 int tz;
4f11a343 16507 tz = timezone;
698dcdb6
VZ
16508
16509; return 0; }
16510EOF
9f8148b1 16511if { (eval echo configure:16512: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
16512 rm -rf conftest*
16513
4f11a343 16514 wx_cv_var_timezone=timezone
698dcdb6 16515
360d6699 16516else
698dcdb6
VZ
16517 echo "configure: failed program was:" >&5
16518 cat conftest.$ac_ext >&5
16519 rm -rf conftest*
16520
16521 cat > conftest.$ac_ext <<EOF
9f8148b1 16522#line 16523 "configure"
360d6699
VZ
16523#include "confdefs.h"
16524
b4085ce6 16525 #include <time.h>
698dcdb6
VZ
16526
16527int main() {
360d6699
VZ
16528
16529 int tz;
16530 tz = _timezone;
698dcdb6
VZ
16531
16532; return 0; }
16533EOF
9f8148b1 16534if { (eval echo configure:16535: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
16535 rm -rf conftest*
16536
360d6699 16537 wx_cv_var_timezone=_timezone
698dcdb6 16538
5357c8e8 16539else
698dcdb6
VZ
16540 echo "configure: failed program was:" >&5
16541 cat conftest.$ac_ext >&5
16542 rm -rf conftest*
16543
16544 cat > conftest.$ac_ext <<EOF
9f8148b1 16545#line 16546 "configure"
5357c8e8
VZ
16546#include "confdefs.h"
16547
b4085ce6 16548 #include <time.h>
698dcdb6
VZ
16549
16550int main() {
5357c8e8
VZ
16551
16552 int tz;
4f11a343 16553 tz = __timezone;
698dcdb6
VZ
16554
16555; return 0; }
16556EOF
9f8148b1 16557if { (eval echo configure:16558: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
16558 rm -rf conftest*
16559
4f11a343 16560 wx_cv_var_timezone=__timezone
698dcdb6 16561
360d6699 16562else
698dcdb6
VZ
16563 echo "configure: failed program was:" >&5
16564 cat conftest.$ac_ext >&5
16565 rm -rf conftest*
16566 { echo "configure: error: no timezone variable" 1>&2; exit 1; }
16567
360d6699 16568fi
698dcdb6
VZ
16569rm -f conftest*
16570
16571
360d6699 16572fi
698dcdb6
VZ
16573rm -f conftest*
16574
16575
6232543b 16576fi
698dcdb6
VZ
16577rm -f conftest*
16578
16579
1e487827 16580fi
703e0a69 16581
698dcdb6
VZ
16582echo "$ac_t""$wx_cv_var_timezone" 1>&6
16583
16584 cat >> confdefs.h <<EOF
360d6699
VZ
16585#define WX_TIMEZONE $wx_cv_var_timezone
16586EOF
16587
698dcdb6
VZ
16588
16589 for ac_func in localtime
afc31813 16590do
698dcdb6 16591echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9f8148b1 16592echo "configure:16593: checking for $ac_func" >&5
698dcdb6
VZ
16593if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16594 echo $ac_n "(cached) $ac_c" 1>&6
16595else
16596 cat > conftest.$ac_ext <<EOF
9f8148b1 16597#line 16598 "configure"
10f2d63a 16598#include "confdefs.h"
afc31813 16599/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 16600 which can conflict with char $ac_func(); below. */
afc31813
VZ
16601#include <assert.h>
16602/* Override any gcc2 internal prototype to avoid an error. */
16603/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
16604 builtin and then its argument prototype would still apply. */
16605char $ac_func();
16606
16607int main() {
afc31813
VZ
16608
16609/* The GNU C library defines this for functions which it implements
16610 to always fail with ENOSYS. Some functions are actually named
16611 something starting with __ and the normal name is an alias. */
16612#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16613choke me
16614#else
698dcdb6 16615$ac_func();
afc31813
VZ
16616#endif
16617
698dcdb6 16618; return 0; }
10f2d63a 16619EOF
9f8148b1 16620if { (eval echo configure:16621: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
16621 rm -rf conftest*
16622 eval "ac_cv_func_$ac_func=yes"
16623else
16624 echo "configure: failed program was:" >&5
16625 cat conftest.$ac_ext >&5
16626 rm -rf conftest*
16627 eval "ac_cv_func_$ac_func=no"
16628fi
16629rm -f conftest*
16630fi
afc31813 16631
698dcdb6
VZ
16632if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16633 echo "$ac_t""yes" 1>&6
16634 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16635 cat >> confdefs.h <<EOF
16636#define $ac_tr_func 1
16637EOF
16638
16639else
16640 echo "$ac_t""no" 1>&6
afc31813
VZ
16641fi
16642done
16643
1e487827 16644
698dcdb6
VZ
16645 if test "$ac_cv_func_localtime" = "yes"; then
16646 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
9f8148b1 16647echo "configure:16648: checking for tm_gmtoff in struct tm" >&5
698dcdb6
VZ
16648if eval "test \"`echo '$''{'wx_cv_struct_tm_has_gmtoff'+set}'`\" = set"; then
16649 echo $ac_n "(cached) $ac_c" 1>&6
16650else
16651
16652 cat > conftest.$ac_ext <<EOF
9f8148b1 16653#line 16654 "configure"
0470b1e6
VZ
16654#include "confdefs.h"
16655
b4085ce6 16656 #include <time.h>
698dcdb6
VZ
16657
16658int main() {
0470b1e6
VZ
16659
16660 struct tm tm;
16661 tm.tm_gmtoff++;
698dcdb6
VZ
16662
16663; return 0; }
16664EOF
9f8148b1 16665if { (eval echo configure:16666: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
16666 rm -rf conftest*
16667
f03a98d8 16668 wx_cv_struct_tm_has_gmtoff=yes
698dcdb6 16669
0470b1e6 16670else
698dcdb6
VZ
16671 echo "configure: failed program was:" >&5
16672 cat conftest.$ac_ext >&5
16673 rm -rf conftest*
16674 wx_cv_struct_tm_has_gmtoff=no
16675
0470b1e6 16676fi
698dcdb6
VZ
16677rm -f conftest*
16678
1e487827 16679fi
698dcdb6
VZ
16680
16681echo "$ac_t""$wx_cv_struct_tm_has_gmtoff" 1>&6
6232543b
VS
16682 fi
16683
16684 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
698dcdb6 16685 cat >> confdefs.h <<\EOF
6232543b
VS
16686#define WX_GMTOFF_IN_TM 1
16687EOF
0470b1e6 16688
3fcdd07b
VZ
16689 fi
16690
698dcdb6 16691 for ac_func in gettimeofday ftime
3fcdd07b 16692do
698dcdb6 16693echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9f8148b1 16694echo "configure:16695: checking for $ac_func" >&5
698dcdb6
VZ
16695if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16696 echo $ac_n "(cached) $ac_c" 1>&6
16697else
16698 cat > conftest.$ac_ext <<EOF
9f8148b1 16699#line 16700 "configure"
3fcdd07b
VZ
16700#include "confdefs.h"
16701/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 16702 which can conflict with char $ac_func(); below. */
3fcdd07b
VZ
16703#include <assert.h>
16704/* Override any gcc2 internal prototype to avoid an error. */
16705/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
16706 builtin and then its argument prototype would still apply. */
16707char $ac_func();
16708
16709int main() {
3fcdd07b
VZ
16710
16711/* The GNU C library defines this for functions which it implements
16712 to always fail with ENOSYS. Some functions are actually named
16713 something starting with __ and the normal name is an alias. */
16714#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16715choke me
16716#else
698dcdb6 16717$ac_func();
3fcdd07b
VZ
16718#endif
16719
698dcdb6
VZ
16720; return 0; }
16721EOF
9f8148b1 16722if { (eval echo configure:16723: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
16723 rm -rf conftest*
16724 eval "ac_cv_func_$ac_func=yes"
16725else
16726 echo "configure: failed program was:" >&5
16727 cat conftest.$ac_ext >&5
16728 rm -rf conftest*
16729 eval "ac_cv_func_$ac_func=no"
16730fi
16731rm -f conftest*
16732fi
16733
16734if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16735 echo "$ac_t""yes" 1>&6
16736 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16737 cat >> confdefs.h <<EOF
16738#define $ac_tr_func 1
3fcdd07b
VZ
16739EOF
16740 break
698dcdb6
VZ
16741else
16742 echo "$ac_t""no" 1>&6
3fcdd07b
VZ
16743fi
16744done
16745
afc31813 16746
698dcdb6
VZ
16747 if test "$ac_cv_func_gettimeofday" = "yes"; then
16748 echo $ac_n "checking whether gettimeofday takes two arguments""... $ac_c" 1>&6
9f8148b1 16749echo "configure:16750: checking whether gettimeofday takes two arguments" >&5
698dcdb6
VZ
16750if eval "test \"`echo '$''{'wx_cv_func_gettimeofday_has_2_args'+set}'`\" = set"; then
16751 echo $ac_n "(cached) $ac_c" 1>&6
16752else
16753
16754
16755 ac_ext=C
16756# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1e487827 16757ac_cpp='$CXXCPP $CPPFLAGS'
698dcdb6
VZ
16758ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16759ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16760cross_compiling=$ac_cv_prog_cxx_cross
703e0a69 16761
698dcdb6
VZ
16762
16763 cat > conftest.$ac_ext <<EOF
9f8148b1 16764#line 16765 "configure"
10f2d63a 16765#include "confdefs.h"
afc31813
VZ
16766
16767 #include <sys/time.h>
16768 #include <unistd.h>
698dcdb6
VZ
16769
16770int main() {
afc31813
VZ
16771
16772 struct timeval tv;
776862b4 16773 gettimeofday(&tv, NULL);
698dcdb6
VZ
16774
16775; return 0; }
16776EOF
9f8148b1 16777if { (eval echo configure:16778: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 16778 rm -rf conftest*
afc31813 16779 wx_cv_func_gettimeofday_has_2_args=yes
10f2d63a 16780else
698dcdb6
VZ
16781 echo "configure: failed program was:" >&5
16782 cat conftest.$ac_ext >&5
16783 rm -rf conftest*
16784 cat > conftest.$ac_ext <<EOF
9f8148b1 16785#line 16786 "configure"
10f2d63a 16786#include "confdefs.h"
afc31813
VZ
16787
16788 #include <sys/time.h>
16789 #include <unistd.h>
698dcdb6
VZ
16790
16791int main() {
afc31813
VZ
16792
16793 struct timeval tv;
16794 gettimeofday(&tv);
698dcdb6
VZ
16795
16796; return 0; }
16797EOF
9f8148b1 16798if { (eval echo configure:16799: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 16799 rm -rf conftest*
afc31813 16800 wx_cv_func_gettimeofday_has_2_args=no
10f2d63a 16801else
698dcdb6
VZ
16802 echo "configure: failed program was:" >&5
16803 cat conftest.$ac_ext >&5
16804 rm -rf conftest*
776862b4
VZ
16805
16806 echo "configure: warning: failed to determine number of gettimeofday() arguments" 1>&2
16807 wx_cv_func_gettimeofday_has_2_args=unknown
16808
698dcdb6 16809
10f2d63a 16810fi
698dcdb6
VZ
16811rm -f conftest*
16812
10f2d63a 16813fi
698dcdb6 16814rm -f conftest*
afc31813 16815 ac_ext=c
698dcdb6 16816# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10f2d63a 16817ac_cpp='$CPP $CPPFLAGS'
698dcdb6
VZ
16818ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16819ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16820cross_compiling=$ac_cv_prog_cc_cross
10f2d63a 16821
698dcdb6 16822
afc31813 16823fi
698dcdb6
VZ
16824
16825echo "$ac_t""$wx_cv_func_gettimeofday_has_2_args" 1>&6
c63c7106 16826
afc31813 16827 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
698dcdb6 16828 cat >> confdefs.h <<\EOF
afc31813
VZ
16829#define WX_GETTIMEOFDAY_NO_TZ 1
16830EOF
16831
16832 fi
16833 fi
16834
698dcdb6 16835 cat >> confdefs.h <<\EOF
afc31813
VZ
16836#define wxUSE_TIMEDATE 1
16837EOF
16838
16839 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
16840fi
16841
698dcdb6 16842
b089607b
VZ
16843if test "$TOOLKIT" != "MSW"; then
16844
3a922bb4
RL
16845 if test "$wxUSE_SOCKETS" = "yes"; then
16846 echo $ac_n "checking for socket""... $ac_c" 1>&6
9f8148b1 16847echo "configure:16848: checking for socket" >&5
698dcdb6
VZ
16848if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
16849 echo $ac_n "(cached) $ac_c" 1>&6
c63c7106 16850else
698dcdb6 16851 cat > conftest.$ac_ext <<EOF
9f8148b1 16852#line 16853 "configure"
c63c7106
VZ
16853#include "confdefs.h"
16854/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 16855 which can conflict with char socket(); below. */
c63c7106
VZ
16856#include <assert.h>
16857/* Override any gcc2 internal prototype to avoid an error. */
16858/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
16859 builtin and then its argument prototype would still apply. */
16860char socket();
16861
16862int main() {
c63c7106
VZ
16863
16864/* The GNU C library defines this for functions which it implements
16865 to always fail with ENOSYS. Some functions are actually named
16866 something starting with __ and the normal name is an alias. */
16867#if defined (__stub_socket) || defined (__stub___socket)
16868choke me
16869#else
698dcdb6 16870socket();
c63c7106
VZ
16871#endif
16872
698dcdb6
VZ
16873; return 0; }
16874EOF
9f8148b1 16875if { (eval echo configure:16876: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
16876 rm -rf conftest*
16877 eval "ac_cv_func_socket=yes"
16878else
16879 echo "configure: failed program was:" >&5
16880 cat conftest.$ac_ext >&5
16881 rm -rf conftest*
16882 eval "ac_cv_func_socket=no"
16883fi
16884rm -f conftest*
16885fi
16886
16887if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
16888 echo "$ac_t""yes" 1>&6
c63c7106
VZ
16889 :
16890else
698dcdb6
VZ
16891 echo "$ac_t""no" 1>&6
16892echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
9f8148b1 16893echo "configure:16894: checking for socket in -lsocket" >&5
698dcdb6
VZ
16894ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
16895if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16896 echo $ac_n "(cached) $ac_c" 1>&6
c63c7106 16897else
698dcdb6 16898 ac_save_LIBS="$LIBS"
c63c7106 16899LIBS="-lsocket $LIBS"
698dcdb6 16900cat > conftest.$ac_ext <<EOF
9f8148b1 16901#line 16902 "configure"
c63c7106
VZ
16902#include "confdefs.h"
16903/* Override any gcc2 internal prototype to avoid an error. */
16904/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
16905 builtin and then its argument prototype would still apply. */
16906char socket();
16907
16908int main() {
16909socket()
16910; return 0; }
16911EOF
9f8148b1 16912if { (eval echo configure:16913: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
16913 rm -rf conftest*
16914 eval "ac_cv_lib_$ac_lib_var=yes"
16915else
16916 echo "configure: failed program was:" >&5
16917 cat conftest.$ac_ext >&5
16918 rm -rf conftest*
16919 eval "ac_cv_lib_$ac_lib_var=no"
16920fi
16921rm -f conftest*
16922LIBS="$ac_save_LIBS"
16923
16924fi
16925if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16926 echo "$ac_t""yes" 1>&6
c63c7106 16927 INET_LINK="$INET_LINK -lsocket"
c63c7106 16928else
698dcdb6 16929 echo "$ac_t""no" 1>&6
afc31813 16930
3a922bb4
RL
16931 echo "configure: warning: socket library not found - sockets will be disabled" 1>&2
16932 wxUSE_SOCKETS=no
16933
698dcdb6 16934
6232543b 16935fi
b089607b 16936
3a922bb4 16937
1e487827 16938fi
afc31813 16939
3a922bb4 16940 fi
51a9faba 16941
3a922bb4
RL
16942
16943 if test "$wxUSE_SOCKETS" = "yes" ; then
16944 echo $ac_n "checking what is the type of the third argument of getsockname""... $ac_c" 1>&6
9f8148b1 16945echo "configure:16946: checking what is the type of the third argument of getsockname" >&5
698dcdb6
VZ
16946if eval "test \"`echo '$''{'wx_cv_type_getsockname3'+set}'`\" = set"; then
16947 echo $ac_n "(cached) $ac_c" 1>&6
16948else
16949
3a922bb4
RL
16950
16951 ac_ext=C
698dcdb6 16952# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1e487827 16953ac_cpp='$CXXCPP $CPPFLAGS'
698dcdb6
VZ
16954ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16955ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16956cross_compiling=$ac_cv_prog_cxx_cross
703e0a69 16957
698dcdb6 16958
3a922bb4 16959 cat > conftest.$ac_ext <<EOF
9f8148b1 16960#line 16961 "configure"
afc31813 16961#include "confdefs.h"
51a9faba 16962
3a922bb4
RL
16963 #include <sys/types.h>
16964 #include <sys/socket.h>
16965
698dcdb6 16966int main() {
51a9faba 16967
3a922bb4
RL
16968 socklen_t len;
16969 getsockname(0, 0, &len);
16970
698dcdb6
VZ
16971; return 0; }
16972EOF
9f8148b1 16973if { (eval echo configure:16974: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 16974 rm -rf conftest*
51a9faba 16975 wx_cv_type_getsockname3=socklen_t
afc31813 16976else
698dcdb6
VZ
16977 echo "configure: failed program was:" >&5
16978 cat conftest.$ac_ext >&5
16979 rm -rf conftest*
16980 cat > conftest.$ac_ext <<EOF
9f8148b1 16981#line 16982 "configure"
afc31813 16982#include "confdefs.h"
51a9faba 16983
3a922bb4
RL
16984 #include <sys/types.h>
16985 #include <sys/socket.h>
16986
698dcdb6 16987int main() {
51a9faba 16988
3a922bb4
RL
16989 size_t len;
16990 getsockname(0, 0, &len);
16991
698dcdb6
VZ
16992; return 0; }
16993EOF
9f8148b1 16994if { (eval echo configure:16995: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 16995 rm -rf conftest*
51a9faba 16996 wx_cv_type_getsockname3=size_t
afc31813 16997else
698dcdb6
VZ
16998 echo "configure: failed program was:" >&5
16999 cat conftest.$ac_ext >&5
17000 rm -rf conftest*
17001 cat > conftest.$ac_ext <<EOF
9f8148b1 17002#line 17003 "configure"
afc31813 17003#include "confdefs.h"
51a9faba 17004
3a922bb4
RL
17005 #include <sys/types.h>
17006 #include <sys/socket.h>
17007
698dcdb6 17008int main() {
51a9faba 17009
3a922bb4
RL
17010 int len;
17011 getsockname(0, 0, &len);
17012
698dcdb6
VZ
17013; return 0; }
17014EOF
9f8148b1 17015if { (eval echo configure:17016: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 17016 rm -rf conftest*
51a9faba 17017 wx_cv_type_getsockname3=int
afc31813 17018else
698dcdb6
VZ
17019 echo "configure: failed program was:" >&5
17020 cat conftest.$ac_ext >&5
17021 rm -rf conftest*
17022 wx_cv_type_getsockname3=unknown
3a922bb4 17023
afc31813 17024fi
698dcdb6 17025rm -f conftest*
3a922bb4 17026
afc31813 17027fi
698dcdb6 17028rm -f conftest*
3a922bb4 17029
afc31813 17030fi
698dcdb6 17031rm -f conftest*
51a9faba 17032
3a922bb4 17033 ac_ext=c
698dcdb6 17034# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
afc31813 17035ac_cpp='$CPP $CPPFLAGS'
698dcdb6
VZ
17036ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17037ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17038cross_compiling=$ac_cv_prog_cc_cross
afc31813 17039
3a922bb4 17040
51a9faba 17041fi
698dcdb6
VZ
17042
17043echo "$ac_t""$wx_cv_type_getsockname3" 1>&6
51a9faba 17044
3a922bb4
RL
17045 if test "$wx_cv_type_getsockname3" = "unknown"; then
17046 wxUSE_SOCKETS=no
17047 echo "configure: warning: Couldn't find socklen_t synonym for this system" 1>&2
17048 else
17049 cat >> confdefs.h <<EOF
51a9faba
VZ
17050#define SOCKLEN_T $wx_cv_type_getsockname3
17051EOF
17052
3a922bb4 17053 fi
51a9faba
VZ
17054 fi
17055fi
afc31813 17056
51a9faba 17057if test "$wxUSE_SOCKETS" = "yes" ; then
698dcdb6 17058 cat >> confdefs.h <<\EOF
afc31813
VZ
17059#define wxUSE_SOCKETS 1
17060EOF
17061
70f7a477 17062 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
afc31813
VZ
17063fi
17064
698dcdb6 17065
dc3d889d
VZ
17066if test "$wxUSE_GUI" = "yes"; then
17067
156b2523
GD
17068 if test "$TOOLKIT" = "MAC"; then
17069 echo "configure: warning: Joystick not yet supported under Mac OS X... disabled" 1>&2
17070 wxUSE_JOYSTICK=no
17071 fi
17072 if test "$TOOLKIT" = "MOTIF"; then
17073 echo "configure: warning: Joystick not yet supported under Motif... disabled" 1>&2
17074 wxUSE_JOYSTICK=no
17075 fi
17076
3a922bb4
RL
17077 if test "$TOOLKIT" != "MSW"; then
17078 if test "$wxUSE_JOYSTICK" = "yes"; then
17079 for ac_hdr in linux/joystick.h
10f2d63a 17080do
698dcdb6
VZ
17081ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
17082echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
156b2523 17083echo "configure:17084: checking for $ac_hdr" >&5
698dcdb6
VZ
17084if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
17085 echo $ac_n "(cached) $ac_c" 1>&6
17086else
17087 cat > conftest.$ac_ext <<EOF
156b2523 17088#line 17089 "configure"
10f2d63a 17089#include "confdefs.h"
698dcdb6
VZ
17090#include <$ac_hdr>
17091EOF
17092ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
156b2523 17093{ (eval echo configure:17094: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
17094ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
17095if test -z "$ac_err"; then
17096 rm -rf conftest*
17097 eval "ac_cv_header_$ac_safe=yes"
10f2d63a 17098else
698dcdb6
VZ
17099 echo "$ac_err" >&5
17100 echo "configure: failed program was:" >&5
10f2d63a 17101 cat conftest.$ac_ext >&5
698dcdb6
VZ
17102 rm -rf conftest*
17103 eval "ac_cv_header_$ac_safe=no"
10f2d63a 17104fi
698dcdb6 17105rm -f conftest*
10f2d63a 17106fi
698dcdb6
VZ
17107if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
17108 echo "$ac_t""yes" 1>&6
17109 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
17110 cat >> confdefs.h <<EOF
17111#define $ac_tr_hdr 1
10f2d63a 17112EOF
698dcdb6
VZ
17113
17114else
17115 echo "$ac_t""no" 1>&6
10f2d63a
VZ
17116fi
17117done
17118
3a922bb4
RL
17119 if test "$ac_cv_header_linux_joystick_h" != "yes"; then
17120 wxUSE_JOYSTICK=no
156b2523 17121 echo "configure: warning: Joystick not supported by this system... disabled" 1>&2
3a922bb4
RL
17122 fi
17123 fi
17124 fi
b089607b 17125
3a922bb4
RL
17126 if test "$wxUSE_JOYSTICK" = "yes"; then
17127 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17128#define wxUSE_JOYSTICK 1
17129EOF
17130
3a922bb4
RL
17131 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
17132 fi
dc3d889d
VZ
17133fi
17134
698dcdb6 17135
b089607b
VZ
17136if test "$TOOLKIT" != "MSW"; then
17137
3a922bb4
RL
17138 HAVE_DL_FUNCS=0
17139 HAVE_SHL_FUNCS=0
17140 if test "$wxUSE_DYNLIB_CLASS" = "yes"; then
17141 if test "$USE_DARWIN" = 1; then
17142 HAVE_DL_FUNCS=1
17143 else
17144 for ac_func in dlopen
10f2d63a 17145do
698dcdb6 17146echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
156b2523 17147echo "configure:17148: checking for $ac_func" >&5
698dcdb6
VZ
17148if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17149 echo $ac_n "(cached) $ac_c" 1>&6
17150else
17151 cat > conftest.$ac_ext <<EOF
156b2523 17152#line 17153 "configure"
10f2d63a
VZ
17153#include "confdefs.h"
17154/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 17155 which can conflict with char $ac_func(); below. */
10f2d63a
VZ
17156#include <assert.h>
17157/* Override any gcc2 internal prototype to avoid an error. */
17158/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
17159 builtin and then its argument prototype would still apply. */
17160char $ac_func();
17161
17162int main() {
10f2d63a
VZ
17163
17164/* The GNU C library defines this for functions which it implements
17165 to always fail with ENOSYS. Some functions are actually named
17166 something starting with __ and the normal name is an alias. */
17167#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17168choke me
17169#else
698dcdb6 17170$ac_func();
10f2d63a
VZ
17171#endif
17172
698dcdb6
VZ
17173; return 0; }
17174EOF
156b2523 17175if { (eval echo configure:17176: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
17176 rm -rf conftest*
17177 eval "ac_cv_func_$ac_func=yes"
17178else
17179 echo "configure: failed program was:" >&5
17180 cat conftest.$ac_ext >&5
17181 rm -rf conftest*
17182 eval "ac_cv_func_$ac_func=no"
17183fi
17184rm -f conftest*
17185fi
17186
17187if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17188 echo "$ac_t""yes" 1>&6
17189 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17190 cat >> confdefs.h <<EOF
17191#define $ac_tr_func 1
17192EOF
17193
3a922bb4 17194 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17195#define HAVE_DLOPEN 1
17196EOF
17197
3a922bb4
RL
17198 HAVE_DL_FUNCS=1
17199
10f2d63a 17200else
698dcdb6
VZ
17201 echo "$ac_t""no" 1>&6
17202echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
156b2523 17203echo "configure:17204: checking for dlopen in -ldl" >&5
698dcdb6
VZ
17204ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
17205if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17206 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 17207else
698dcdb6 17208 ac_save_LIBS="$LIBS"
10f2d63a 17209LIBS="-ldl $LIBS"
698dcdb6 17210cat > conftest.$ac_ext <<EOF
156b2523 17211#line 17212 "configure"
10f2d63a
VZ
17212#include "confdefs.h"
17213/* Override any gcc2 internal prototype to avoid an error. */
17214/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
17215 builtin and then its argument prototype would still apply. */
17216char dlopen();
17217
17218int main() {
17219dlopen()
17220; return 0; }
17221EOF
156b2523 17222if { (eval echo configure:17223: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
17223 rm -rf conftest*
17224 eval "ac_cv_lib_$ac_lib_var=yes"
17225else
17226 echo "configure: failed program was:" >&5
17227 cat conftest.$ac_ext >&5
17228 rm -rf conftest*
17229 eval "ac_cv_lib_$ac_lib_var=no"
17230fi
17231rm -f conftest*
17232LIBS="$ac_save_LIBS"
17233
17234fi
17235if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17236 echo "$ac_t""yes" 1>&6
17237
3a922bb4 17238 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17239#define HAVE_DLOPEN 1
17240EOF
17241
3a922bb4 17242 HAVE_DL_FUNCS=1
3d63bc3a 17243 DL_LINK=" -ldl$DL_LINK"
3a922bb4 17244
10f2d63a 17245else
698dcdb6 17246 echo "$ac_t""no" 1>&6
10f2d63a 17247
3a922bb4 17248 for ac_func in shl_load
10f2d63a 17249do
698dcdb6 17250echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
156b2523 17251echo "configure:17252: checking for $ac_func" >&5
698dcdb6
VZ
17252if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17253 echo $ac_n "(cached) $ac_c" 1>&6
17254else
17255 cat > conftest.$ac_ext <<EOF
156b2523 17256#line 17257 "configure"
10f2d63a
VZ
17257#include "confdefs.h"
17258/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 17259 which can conflict with char $ac_func(); below. */
10f2d63a
VZ
17260#include <assert.h>
17261/* Override any gcc2 internal prototype to avoid an error. */
17262/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
17263 builtin and then its argument prototype would still apply. */
17264char $ac_func();
17265
17266int main() {
10f2d63a
VZ
17267
17268/* The GNU C library defines this for functions which it implements
17269 to always fail with ENOSYS. Some functions are actually named
17270 something starting with __ and the normal name is an alias. */
17271#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17272choke me
17273#else
698dcdb6 17274$ac_func();
10f2d63a
VZ
17275#endif
17276
698dcdb6
VZ
17277; return 0; }
17278EOF
156b2523 17279if { (eval echo configure:17280: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
17280 rm -rf conftest*
17281 eval "ac_cv_func_$ac_func=yes"
17282else
17283 echo "configure: failed program was:" >&5
17284 cat conftest.$ac_ext >&5
17285 rm -rf conftest*
17286 eval "ac_cv_func_$ac_func=no"
17287fi
17288rm -f conftest*
17289fi
17290
17291if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17292 echo "$ac_t""yes" 1>&6
17293 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17294 cat >> confdefs.h <<EOF
17295#define $ac_tr_func 1
17296EOF
17297
3a922bb4 17298 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17299#define HAVE_SHL_LOAD 1
17300EOF
17301
3a922bb4
RL
17302 HAVE_SHL_FUNCS=1
17303
10f2d63a 17304else
698dcdb6
VZ
17305 echo "$ac_t""no" 1>&6
17306echo $ac_n "checking for dld in -lshl_load""... $ac_c" 1>&6
156b2523 17307echo "configure:17308: checking for dld in -lshl_load" >&5
698dcdb6
VZ
17308ac_lib_var=`echo shl_load'_'dld | sed 'y%./+-%__p_%'`
17309if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17310 echo $ac_n "(cached) $ac_c" 1>&6
f6bcfd97 17311else
698dcdb6 17312 ac_save_LIBS="$LIBS"
f6bcfd97 17313LIBS="-lshl_load $LIBS"
698dcdb6 17314cat > conftest.$ac_ext <<EOF
156b2523 17315#line 17316 "configure"
f6bcfd97
BP
17316#include "confdefs.h"
17317/* Override any gcc2 internal prototype to avoid an error. */
17318/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
17319 builtin and then its argument prototype would still apply. */
17320char dld();
17321
17322int main() {
17323dld()
17324; return 0; }
17325EOF
156b2523 17326if { (eval echo configure:17327: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
17327 rm -rf conftest*
17328 eval "ac_cv_lib_$ac_lib_var=yes"
17329else
17330 echo "configure: failed program was:" >&5
17331 cat conftest.$ac_ext >&5
17332 rm -rf conftest*
17333 eval "ac_cv_lib_$ac_lib_var=no"
17334fi
17335rm -f conftest*
17336LIBS="$ac_save_LIBS"
f6bcfd97 17337
698dcdb6
VZ
17338fi
17339if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17340 echo "$ac_t""yes" 1>&6
17341
3a922bb4 17342 HAVE_SHL_FUNCS=1
3d63bc3a 17343 DL_LINK=" -ldld$DL_LINK"
3a922bb4 17344
698dcdb6
VZ
17345else
17346 echo "$ac_t""no" 1>&6
f6bcfd97
BP
17347fi
17348
3a922bb4 17349
10f2d63a
VZ
17350fi
17351done
17352
3a922bb4 17353
10f2d63a
VZ
17354fi
17355
3a922bb4 17356
10f2d63a
VZ
17357fi
17358done
17359
1e487827 17360
3a922bb4
RL
17361 if test "$HAVE_DL_FUNCS" = 1; then
17362 for ac_func in dlerror
f6bcfd97 17363do
698dcdb6 17364echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
156b2523 17365echo "configure:17366: checking for $ac_func" >&5
698dcdb6
VZ
17366if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17367 echo $ac_n "(cached) $ac_c" 1>&6
17368else
17369 cat > conftest.$ac_ext <<EOF
156b2523 17370#line 17371 "configure"
f6bcfd97
BP
17371#include "confdefs.h"
17372/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 17373 which can conflict with char $ac_func(); below. */
f6bcfd97
BP
17374#include <assert.h>
17375/* Override any gcc2 internal prototype to avoid an error. */
17376/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
17377 builtin and then its argument prototype would still apply. */
17378char $ac_func();
17379
17380int main() {
f6bcfd97
BP
17381
17382/* The GNU C library defines this for functions which it implements
17383 to always fail with ENOSYS. Some functions are actually named
17384 something starting with __ and the normal name is an alias. */
17385#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17386choke me
17387#else
698dcdb6 17388$ac_func();
f6bcfd97
BP
17389#endif
17390
698dcdb6
VZ
17391; return 0; }
17392EOF
156b2523 17393if { (eval echo configure:17394: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
17394 rm -rf conftest*
17395 eval "ac_cv_func_$ac_func=yes"
17396else
17397 echo "configure: failed program was:" >&5
17398 cat conftest.$ac_ext >&5
17399 rm -rf conftest*
17400 eval "ac_cv_func_$ac_func=no"
17401fi
17402rm -f conftest*
17403fi
17404
17405if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17406 echo "$ac_t""yes" 1>&6
17407 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17408 cat >> confdefs.h <<EOF
17409#define $ac_tr_func 1
17410EOF
17411 cat >> confdefs.h <<\EOF
f6bcfd97
BP
17412#define HAVE_DLERROR 1
17413EOF
17414
17415else
698dcdb6
VZ
17416 echo "$ac_t""no" 1>&6
17417echo $ac_n "checking for dlerror in -ldl""... $ac_c" 1>&6
156b2523 17418echo "configure:17419: checking for dlerror in -ldl" >&5
698dcdb6
VZ
17419ac_lib_var=`echo dl'_'dlerror | sed 'y%./+-%__p_%'`
17420if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17421 echo $ac_n "(cached) $ac_c" 1>&6
f6bcfd97 17422else
698dcdb6 17423 ac_save_LIBS="$LIBS"
f6bcfd97 17424LIBS="-ldl $LIBS"
698dcdb6 17425cat > conftest.$ac_ext <<EOF
156b2523 17426#line 17427 "configure"
f6bcfd97
BP
17427#include "confdefs.h"
17428/* Override any gcc2 internal prototype to avoid an error. */
17429/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
17430 builtin and then its argument prototype would still apply. */
17431char dlerror();
17432
17433int main() {
17434dlerror()
17435; return 0; }
17436EOF
156b2523 17437if { (eval echo configure:17438: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
17438 rm -rf conftest*
17439 eval "ac_cv_lib_$ac_lib_var=yes"
17440else
17441 echo "configure: failed program was:" >&5
17442 cat conftest.$ac_ext >&5
17443 rm -rf conftest*
17444 eval "ac_cv_lib_$ac_lib_var=no"
17445fi
17446rm -f conftest*
17447LIBS="$ac_save_LIBS"
17448
17449fi
17450if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17451 echo "$ac_t""yes" 1>&6
17452 cat >> confdefs.h <<\EOF
f6bcfd97
BP
17453#define HAVE_DLERROR 1
17454EOF
17455
698dcdb6
VZ
17456else
17457 echo "$ac_t""no" 1>&6
f6bcfd97
BP
17458fi
17459
17460fi
17461done
17462
3a922bb4
RL
17463 fi
17464 fi
f6bcfd97 17465
3a922bb4
RL
17466 if test "$HAVE_DL_FUNCS" = 0; then
17467 if test "$HAVE_SHL_FUNCS" = 0; then
17468 if test "$USE_UNIX" = 1; then
17469 echo "configure: warning: Missing dynamic loading support, several features will be disabled" 1>&2
17470 wxUSE_DYNLIB_CLASS=no
17471 else
17472 echo "configure: warning: Assuming wxLibrary class works on this platform" 1>&2
17473 fi
17474 fi
10f2d63a
VZ
17475 fi
17476 fi
17477fi
17478
17479if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
698dcdb6 17480 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17481#define wxUSE_DYNLIB_CLASS 1
17482EOF
17483
b12915c1
VZ
17484else
17485 wxUSE_ODBC=no
17486 wxUSE_SERIAL=no
10f2d63a
VZ
17487fi
17488
698dcdb6 17489
1e6feb95
VZ
17490if test "$wxUSE_FONTMAP" = "yes" ; then
17491 cat >> confdefs.h <<\EOF
17492#define wxUSE_FONTMAP 1
17493EOF
17494
17495fi
17496
10f2d63a 17497if test "$wxUSE_UNICODE" = "yes" ; then
698dcdb6 17498 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17499#define wxUSE_UNICODE 1
17500EOF
17501
17502fi
17503
10f2d63a 17504if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
698dcdb6 17505 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17506#define wxUSE_EXPERIMENTAL_PRINTF 1
17507EOF
17508
17509fi
17510
698dcdb6 17511
b12915c1 17512if test "$wxUSE_SERIAL" = "yes" ; then
698dcdb6 17513 cat >> confdefs.h <<\EOF
b12915c1
VZ
17514#define wxUSE_SERIAL 1
17515EOF
17516
17517fi
17518
698dcdb6 17519
10f2d63a
VZ
17520IODBC_C_SRC=""
17521if test "$wxUSE_ODBC" = "yes" ; then
698dcdb6 17522 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17523#define wxUSE_ODBC 1
17524EOF
17525
17526 WXODBCFLAG="-D_IODBC_"
17527 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
10f2d63a
VZ
17528fi
17529
698dcdb6 17530
10f2d63a 17531if test "$wxUSE_POSTSCRIPT" = "yes" ; then
698dcdb6 17532 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17533#define wxUSE_POSTSCRIPT 1
17534EOF
17535
17536fi
17537
698dcdb6 17538cat >> confdefs.h <<\EOF
10f2d63a
VZ
17539#define wxUSE_AFM_FOR_POSTSCRIPT 1
17540EOF
17541
698dcdb6
VZ
17542
17543cat >> confdefs.h <<\EOF
10f2d63a
VZ
17544#define wxUSE_NORMALIZED_PS_FONTS 1
17545EOF
17546
698dcdb6
VZ
17547
17548
10f2d63a 17549if test "$wxUSE_CONSTRAINTS" = "yes"; then
698dcdb6 17550 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17551#define wxUSE_CONSTRAINTS 1
17552EOF
17553
17554 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
17555fi
17556
17557if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
fc26f4ab 17558 if test "$wxUSE_UNIVERSAL" = "yes"; then
156b2523 17559 echo "configure: warning: MDI not yet supported for wxUNIVERSAL... disabled" 1>&2
fc26f4ab
RL
17560 wxUSE_MDI_ARCHITECTURE=no
17561 fi
17562
17563 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
17564 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17565#define wxUSE_MDI_ARCHITECTURE 1
17566EOF
17567
fc26f4ab
RL
17568 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
17569 fi
10f2d63a
VZ
17570fi
17571
17572if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
698dcdb6 17573 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17574#define wxUSE_DOC_VIEW_ARCHITECTURE 1
17575EOF
17576
17577 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
17578 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
17579 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
17580 fi
17581fi
17582
17583if test "$wxUSE_HELP" = "yes"; then
698dcdb6 17584 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17585#define wxUSE_HELP 1
17586EOF
17587
17588 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
3379ed37 17589
77e13408 17590 if test "$wxUSE_MSW" = 1; then
031d8228 17591 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
29fd3c0c
VS
17592 ac_safe=`echo "htmlhelp.h" | sed 'y%./+-%__p_%'`
17593echo $ac_n "checking for htmlhelp.h""... $ac_c" 1>&6
156b2523 17594echo "configure:17595: checking for htmlhelp.h" >&5
29fd3c0c
VS
17595if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
17596 echo $ac_n "(cached) $ac_c" 1>&6
17597else
17598 cat > conftest.$ac_ext <<EOF
156b2523 17599#line 17600 "configure"
29fd3c0c
VS
17600#include "confdefs.h"
17601#include <htmlhelp.h>
17602EOF
17603ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
156b2523 17604{ (eval echo configure:17605: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
29fd3c0c
VS
17605ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
17606if test -z "$ac_err"; then
17607 rm -rf conftest*
17608 eval "ac_cv_header_$ac_safe=yes"
17609else
17610 echo "$ac_err" >&5
17611 echo "configure: failed program was:" >&5
17612 cat conftest.$ac_ext >&5
17613 rm -rf conftest*
17614 eval "ac_cv_header_$ac_safe=no"
17615fi
17616rm -f conftest*
17617fi
17618if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
17619 echo "$ac_t""yes" 1>&6
17620
17621 cat >> confdefs.h <<\EOF
17622#define wxUSE_MS_HTML_HELP 1
17623EOF
17624
17625
17626else
17627 echo "$ac_t""no" 1>&6
17628
fc26f4ab 17629 echo "configure: warning: MS HTML Help cannot be used without htmlhelp.h... disabled" 1>&2
29fd3c0c
VS
17630 wxUSE_MS_HTML_HELP=no
17631
17632fi
17633
3e44f09d 17634 fi
3379ed37 17635 fi
031d8228
VS
17636
17637 if test "$wxUSE_WXHTML_HELP" = "yes"; then
17638 if test "$wxUSE_HTML" = "yes"; then
17639 cat >> confdefs.h <<\EOF
17640#define wxUSE_WXHTML_HELP 1
17641EOF
17642
17643 else
17644 echo "configure: warning: Cannot use wxHTML-based help without wxHTML so it won't be compiled" 1>&2
17645 wxUSE_WXHTML_HELP=no
17646 fi
17647 fi
10f2d63a
VZ
17648fi
17649
17650if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
17651 if test "$wxUSE_CONSTRAINTS" != "yes"; then
698dcdb6 17652 echo "configure: warning: Printing support cannot be used without constraints so it won't be compiled without it" 1>&2
10f2d63a 17653 else
698dcdb6 17654 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17655#define wxUSE_PRINTING_ARCHITECTURE 1
17656EOF
17657
17658 fi
17659 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
17660fi
17661
17662if test "$wxUSE_PROLOGIO" = "yes" ; then
698dcdb6 17663 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17664#define wxUSE_PROLOGIO 1
17665EOF
17666
17667fi
17668
17669if test "$wxUSE_RESOURCES" = "yes" ; then
3379ed37 17670 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17671#define wxUSE_RESOURCES 1
17672EOF
17673
3379ed37 17674 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS resource"
10f2d63a
VZ
17675fi
17676
17677if test "$wxUSE_X_RESOURCES" = "yes"; then
698dcdb6 17678 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17679#define wxUSE_X_RESOURCES 1
17680EOF
17681
17682fi
17683
698dcdb6 17684
77e13408
RL
17685if test "$wxUSE_MSW" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
17686 -o "$wxUSE_CLIPBOARD" = "yes" \
17687 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
2b9bdf71 17688 for ac_hdr in ole2.h
10f2d63a 17689do
698dcdb6
VZ
17690ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
17691echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
156b2523 17692echo "configure:17693: checking for $ac_hdr" >&5
698dcdb6
VZ
17693if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
17694 echo $ac_n "(cached) $ac_c" 1>&6
17695else
17696 cat > conftest.$ac_ext <<EOF
156b2523 17697#line 17698 "configure"
10f2d63a 17698#include "confdefs.h"
698dcdb6
VZ
17699#include <$ac_hdr>
17700EOF
17701ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
156b2523 17702{ (eval echo configure:17703: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
17703ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
17704if test -z "$ac_err"; then
17705 rm -rf conftest*
17706 eval "ac_cv_header_$ac_safe=yes"
1e487827 17707else
698dcdb6
VZ
17708 echo "$ac_err" >&5
17709 echo "configure: failed program was:" >&5
10f2d63a 17710 cat conftest.$ac_ext >&5
698dcdb6
VZ
17711 rm -rf conftest*
17712 eval "ac_cv_header_$ac_safe=no"
10f2d63a 17713fi
698dcdb6 17714rm -f conftest*
10f2d63a 17715fi
698dcdb6
VZ
17716if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
17717 echo "$ac_t""yes" 1>&6
17718 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
17719 cat >> confdefs.h <<EOF
17720#define $ac_tr_hdr 1
10f2d63a 17721EOF
698dcdb6
VZ
17722
17723else
17724 echo "$ac_t""no" 1>&6
10f2d63a
VZ
17725fi
17726done
17727
698dcdb6 17728
2b9bdf71
VZ
17729 if test "$ac_cv_header_ole2_h" = "yes" ; then
17730 if test "$GCC" = yes ; then
17731 ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)"
2b9bdf71 17732 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
3d63bc3a 17733 LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
2b9bdf71 17734 cat >> confdefs.h <<\EOF
4f11a343
VS
17735#define wxUSE_OLE 1
17736EOF
17737
b64f0a5f 17738
2b9bdf71
VZ
17739 fi
17740
17741 cat >> confdefs.h <<\EOF
17742#define wxUSE_DATAOBJ 1
17743EOF
17744
17745 else
17746 echo "configure: warning: Some features disabled because OLE headers not found" 1>&2
17747
17748 wxUSE_CLIPBOARD=no
17749 wxUSE_DRAG_AND_DROP=no
17750 wxUSE_DATAOBJ=no
17751 fi
17752
77e13408 17753 if test "$wxUSE_METAFILE" = "yes"; then
2b9bdf71 17754 cat >> confdefs.h <<\EOF
b64f0a5f
RL
17755#define wxUSE_METAFILE 1
17756EOF
17757
2b9bdf71
VZ
17758
17759 cat >> confdefs.h <<\EOF
b64f0a5f
RL
17760#define wxUSE_ENH_METAFILE 1
17761EOF
17762
2b9bdf71
VZ
17763 fi
17764fi
17765
17766if test "$wxUSE_IPC" = "yes"; then
17767 if test "$wxUSE_SOCKETS" != "yes"; then
156b2523 17768 echo "configure: warning: wxWindows IPC classes require sockets... disabled" 1>&2
2b9bdf71
VZ
17769 fi
17770
17771 cat >> confdefs.h <<\EOF
17772#define wxUSE_IPC 1
17773EOF
17774
17775fi
17776
17777if test "$wxUSE_CLIPBOARD" = "yes"; then
17778 cat >> confdefs.h <<\EOF
17779#define wxUSE_CLIPBOARD 1
17780EOF
17781
673f4220 17782
e33ef661 17783 cat >> confdefs.h <<\EOF
673f4220
VZ
17784#define wxUSE_DATAOBJ 1
17785EOF
17786
2b9bdf71
VZ
17787fi
17788
17789if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
17790 if test "$wxUSE_GTK" = 1; then
17791 if test "$WXGTK12" != 1; then
156b2523 17792 echo "configure: warning: Drag and drop is only supported under GTK+ 1.2... disabled" 1>&2
10f2d63a
VZ
17793 wxUSE_DRAG_AND_DROP=no
17794 fi
17795 fi
17796
2b9bdf71 17797 if test "$wxUSE_MOTIF" = 1; then
156b2523 17798 echo "configure: warning: Drag and drop not yet supported under Motif... disabled" 1>&2
2b9bdf71
VZ
17799 wxUSE_DRAG_AND_DROP=no
17800 fi
17801
17802 if test "$wxUSE_MAC" = 1; then
156b2523 17803 echo "configure: warning: Drag and drop not yet supported under Mac OS X... disabled" 1>&2
2b9bdf71
VZ
17804 wxUSE_DRAG_AND_DROP=no
17805 fi
17806
10f2d63a 17807 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
698dcdb6 17808 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17809#define wxUSE_DRAG_AND_DROP 1
17810EOF
17811
17812 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
17813 fi
17814
17815fi
17816
17817if test "$wxUSE_SPLINES" = "yes" ; then
698dcdb6 17818 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17819#define wxUSE_SPLINES 1
17820EOF
17821
17822fi
17823
698dcdb6 17824
1e6feb95
VZ
17825USES_CONTROLS=0
17826if test "$wxUSE_CONTROLS" = "yes"; then
17827 USES_CONTROLS=1
17828fi
17829
10f2d63a 17830if test "$wxUSE_ACCEL" = "yes"; then
698dcdb6 17831 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17832#define wxUSE_ACCEL 1
17833EOF
17834
1e6feb95
VZ
17835 USES_CONTROLS=1
17836fi
17837
17838if test "$wxUSE_BUTTON" = "yes"; then
17839 cat >> confdefs.h <<\EOF
17840#define wxUSE_BUTTON 1
17841EOF
17842
17843 USES_CONTROLS=1
17844fi
17845
17846if test "$wxUSE_BMPBUTTON" = "yes"; then
17847 cat >> confdefs.h <<\EOF
17848#define wxUSE_BMPBUTTON 1
17849EOF
17850
17851 USES_CONTROLS=1
17852fi
17853
17854if test "$wxUSE_CALCTRL" = "yes"; then
17855 cat >> confdefs.h <<\EOF
17856#define wxUSE_CALENDARCTRL 1
17857EOF
17858
17859 USES_CONTROLS=1
17860 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
10f2d63a
VZ
17861fi
17862
17863if test "$wxUSE_CARET" = "yes"; then
698dcdb6 17864 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17865#define wxUSE_CARET 1
17866EOF
17867
1e6feb95 17868 USES_CONTROLS=1
10f2d63a
VZ
17869 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
17870fi
17871
17872if test "$wxUSE_COMBOBOX" = "yes"; then
698dcdb6 17873 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17874#define wxUSE_COMBOBOX 1
17875EOF
17876
1e6feb95 17877 USES_CONTROLS=1
10f2d63a
VZ
17878fi
17879
17880if test "$wxUSE_CHOICE" = "yes"; then
698dcdb6 17881 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17882#define wxUSE_CHOICE 1
17883EOF
17884
1e6feb95 17885 USES_CONTROLS=1
10f2d63a
VZ
17886fi
17887
17888if test "$wxUSE_CHECKBOX" = "yes"; then
698dcdb6 17889 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17890#define wxUSE_CHECKBOX 1
17891EOF
17892
1e6feb95 17893 USES_CONTROLS=1
10f2d63a
VZ
17894fi
17895
17896if test "$wxUSE_CHECKLST" = "yes"; then
698dcdb6 17897 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17898#define wxUSE_CHECKLISTBOX 1
17899EOF
17900
1e6feb95 17901 USES_CONTROLS=1
10f2d63a
VZ
17902 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
17903fi
17904
17905if test "$wxUSE_GAUGE" = "yes"; then
698dcdb6 17906 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17907#define wxUSE_GAUGE 1
17908EOF
17909
1e6feb95 17910 USES_CONTROLS=1
10f2d63a
VZ
17911fi
17912
d6a55c4b
VZ
17913if test "$wxUSE_NEW_GRID" = "yes"; then
17914 wxUSE_GRID="yes"
698dcdb6 17915 cat >> confdefs.h <<\EOF
d6a55c4b 17916#define wxUSE_NEW_GRID 1
10f2d63a
VZ
17917EOF
17918
1e6feb95 17919 USES_CONTROLS=1
d6a55c4b 17920 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS newgrid"
10f2d63a
VZ
17921fi
17922
d6a55c4b 17923if test "$wxUSE_GRID" = "yes"; then
698dcdb6 17924 cat >> confdefs.h <<\EOF
d6a55c4b 17925#define wxUSE_GRID 1
10f2d63a
VZ
17926EOF
17927
1e6feb95 17928 USES_CONTROLS=1
d6a55c4b 17929 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
10f2d63a
VZ
17930fi
17931
17932if test "$wxUSE_IMAGLIST" = "yes"; then
698dcdb6 17933 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17934#define wxUSE_IMAGLIST 1
17935EOF
17936
17937fi
17938
17939if test "$wxUSE_LISTBOX" = "yes"; then
698dcdb6 17940 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17941#define wxUSE_LISTBOX 1
17942EOF
17943
1e6feb95 17944 USES_CONTROLS=1
10f2d63a
VZ
17945fi
17946
17947if test "$wxUSE_LISTCTRL" = "yes"; then
17948 if test "$wxUSE_IMAGLIST" = "yes"; then
698dcdb6 17949 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17950#define wxUSE_LISTCTRL 1
17951EOF
17952
1e6feb95 17953 USES_CONTROLS=1
10f2d63a
VZ
17954 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
17955 else
698dcdb6 17956 echo "configure: warning: wxListCtrl requires wxImageList and won't be compiled without it" 1>&2
10f2d63a
VZ
17957 fi
17958fi
17959
17960if test "$wxUSE_NOTEBOOK" = "yes"; then
698dcdb6 17961 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17962#define wxUSE_NOTEBOOK 1
17963EOF
17964
1e6feb95 17965 USES_CONTROLS=1
10f2d63a
VZ
17966 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
17967fi
17968
24176f2c
GD
17969if test "$wxUSE_PROPSHEET" = "yes"; then
17970 cat >> confdefs.h <<\EOF
17971#define wxUSE_PROPSHEET 1
17972EOF
17973
17974 USES_CONTROLS=1
17975 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS proplist"
17976fi
17977
10f2d63a 17978if test "$wxUSE_RADIOBOX" = "yes"; then
698dcdb6 17979 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17980#define wxUSE_RADIOBOX 1
17981EOF
17982
1e6feb95 17983 USES_CONTROLS=1
10f2d63a
VZ
17984fi
17985
17986if test "$wxUSE_RADIOBTN" = "yes"; then
698dcdb6 17987 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17988#define wxUSE_RADIOBTN 1
17989EOF
17990
1e6feb95 17991 USES_CONTROLS=1
10f2d63a
VZ
17992fi
17993
17994if test "$wxUSE_SASH" = "yes"; then
698dcdb6 17995 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17996#define wxUSE_SASH 1
17997EOF
17998
17999 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
18000fi
18001
18002if test "$wxUSE_SCROLLBAR" = "yes"; then
698dcdb6 18003 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18004#define wxUSE_SCROLLBAR 1
18005EOF
18006
1e6feb95 18007 USES_CONTROLS=1
741a9306 18008 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
10f2d63a
VZ
18009fi
18010
18011if test "$wxUSE_SLIDER" = "yes"; then
698dcdb6 18012 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18013#define wxUSE_SLIDER 1
18014EOF
18015
1e6feb95 18016 USES_CONTROLS=1
10f2d63a
VZ
18017fi
18018
18019if test "$wxUSE_SPINBTN" = "yes"; then
698dcdb6 18020 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18021#define wxUSE_SPINBTN 1
18022EOF
18023
1e6feb95 18024 USES_CONTROLS=1
10f2d63a
VZ
18025fi
18026
56cfaa52 18027if test "$wxUSE_SPINCTRL" = "yes"; then
698dcdb6 18028 cat >> confdefs.h <<\EOF
56cfaa52
RR
18029#define wxUSE_SPINCTRL 1
18030EOF
18031
1e6feb95 18032 USES_CONTROLS=1
56cfaa52
RR
18033fi
18034
10f2d63a 18035if test "$wxUSE_SPLITTER" = "yes"; then
698dcdb6 18036 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18037#define wxUSE_SPLITTER 1
18038EOF
18039
18040 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
18041fi
18042
18043if test "$wxUSE_STATBMP" = "yes"; then
698dcdb6 18044 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18045#define wxUSE_STATBMP 1
18046EOF
18047
1e6feb95 18048 USES_CONTROLS=1
10f2d63a
VZ
18049fi
18050
18051if test "$wxUSE_STATBOX" = "yes"; then
698dcdb6 18052 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18053#define wxUSE_STATBOX 1
18054EOF
18055
1e6feb95
VZ
18056 USES_CONTROLS=1
18057fi
18058
18059if test "$wxUSE_STATTEXT" = "yes"; then
18060 cat >> confdefs.h <<\EOF
18061#define wxUSE_STATTEXT 1
18062EOF
18063
18064 USES_CONTROLS=1
10f2d63a
VZ
18065fi
18066
18067if test "$wxUSE_STATLINE" = "yes"; then
18068 if test "$wxUSE_WINE" = 1 ; then
698dcdb6 18069 echo "configure: warning: wxStaticLine is not supported under WINE" 1>&2
10f2d63a 18070 else
698dcdb6 18071 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18072#define wxUSE_STATLINE 1
18073EOF
18074
1e6feb95 18075 USES_CONTROLS=1
10f2d63a
VZ
18076 fi
18077fi
18078
18079if test "$wxUSE_STATUSBAR" = "yes"; then
698dcdb6 18080 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18081#define wxUSE_STATUSBAR 1
18082EOF
18083
1e6feb95 18084 USES_CONTROLS=1
698dcdb6 18085
2286341c 18086 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
10f2d63a
VZ
18087fi
18088
18089if test "$wxUSE_TABDIALOG" = "yes"; then
698dcdb6 18090 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18091#define wxUSE_TAB_DIALOG 1
18092EOF
18093
18094 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
18095fi
18096
1e6feb95
VZ
18097if test "$wxUSE_TEXTCTRL" = "yes"; then
18098 cat >> confdefs.h <<\EOF
18099#define wxUSE_TEXTCTRL 1
18100EOF
18101
18102 USES_CONTROLS=1
18103 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
18104fi
18105
1db8dc4a 18106if test "$wxUSE_TOGGLEBTN" = "yes"; then
156b2523
GD
18107 if test "$wxUSE_MAC" = 1; then
18108 echo "configure: warning: Toggle button not yet supported under Mac OS X... disabled" 1>&2
18109 wxUSE_TOGGLEBTN=no
18110 fi
18111 if test "$wxUSE_UNIVERSAL" = "yes"; then
18112 echo "configure: warning: Toggle button not yet supported under wxUNIVERSAL... disabled" 1>&2
a45d7ab7
GD
18113 wxUSE_TOGGLEBTN=no
18114 fi
18115
18116 if test "$wxUSE_TOGGLEBTN" = "yes"; then
18117 cat >> confdefs.h <<\EOF
1db8dc4a
VZ
18118#define wxUSE_TOGGLEBTN 1
18119EOF
18120
1e6feb95 18121 USES_CONTROLS=1
a45d7ab7 18122 fi
1db8dc4a
VZ
18123fi
18124
360d6699 18125if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
698dcdb6 18126 cat >> confdefs.h <<\EOF
360d6699
VZ
18127#define wxUSE_TOOLBAR_SIMPLE 1
18128EOF
18129
18130 wxUSE_TOOLBAR="yes"
1e6feb95 18131 USES_CONTROLS=1
360d6699
VZ
18132fi
18133
10f2d63a 18134if test "$wxUSE_TOOLBAR" = "yes"; then
698dcdb6 18135 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18136#define wxUSE_TOOLBAR 1
18137EOF
18138
1e6feb95 18139 USES_CONTROLS=1
698dcdb6 18140
360d6699
VZ
18141 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
18142 wxUSE_TOOLBAR_NATIVE="yes"
18143 fi
18144
1e6feb95
VZ
18145 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
18146 cat >> confdefs.h <<\EOF
360d6699
VZ
18147#define wxUSE_TOOLBAR_NATIVE 1
18148EOF
18149
1e6feb95
VZ
18150 USES_CONTROLS=1
18151 fi
18152
18153 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
360d6699
VZ
18154fi
18155
10f2d63a
VZ
18156if test "$wxUSE_TOOLTIPS" = "yes"; then
18157 if test "$wxUSE_MOTIF" = 1; then
156b2523 18158 echo "configure: warning: wxTooltip not supported yet under Motif... disabled" 1>&2
10f2d63a
VZ
18159 else
18160 if test "$wxUSE_WINE" = 1; then
156b2523 18161 echo "configure: warning: wxTooltip not supported under WINE... disabled" 1>&2
10f2d63a 18162 else
69d27ff7 18163 if test "$wxUSE_UNIVERSAL" = "yes"; then
156b2523 18164 echo "configure: warning: wxTooltip not supported yet in wxUNIVERSAL... disabled" 1>&2
69d27ff7
MB
18165 else
18166 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18167#define wxUSE_TOOLTIPS 1
18168EOF
18169
69d27ff7 18170 fi
10f2d63a
VZ
18171 fi
18172 fi
18173fi
18174
18175if test "$wxUSE_TREECTRL" = "yes"; then
18176 if test "$wxUSE_IMAGLIST" = "yes"; then
698dcdb6 18177 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18178#define wxUSE_TREECTRL 1
18179EOF
18180
1e6feb95 18181 USES_CONTROLS=1
10f2d63a
VZ
18182 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
18183 else
698dcdb6 18184 echo "configure: warning: wxTreeCtrl requires wxImageList and won't be compiled without it" 1>&2
10f2d63a
VZ
18185 fi
18186fi
18187
9f41d601 18188if test "$wxUSE_POPUPWIN" = "yes"; then
6abe4b65 18189 if test "$wxUSE_MAC" = 1; then
156b2523 18190 echo "configure: warning: Popup window not yet supported under Mac OS X... disabled" 1>&2
6abe4b65
GD
18191 else
18192 cat >> confdefs.h <<\EOF
9f41d601
RR
18193#define wxUSE_POPUPWIN 1
18194EOF
18195
6abe4b65
GD
18196 USES_CONTROLS=1
18197 fi
9f41d601
RR
18198fi
18199
1e6feb95
VZ
18200if test "$USES_CONTROLS" = 1; then
18201 cat >> confdefs.h <<\EOF
18202#define wxUSE_CONTROLS 1
10f2d63a
VZ
18203EOF
18204
10f2d63a
VZ
18205fi
18206
1e6feb95 18207
24176f2c
GD
18208if test "$wxUSE_TREELAYOUT" = "yes"; then
18209 cat >> confdefs.h <<\EOF
18210#define wxUSE_TREELAYOUT 1
18211EOF
18212
18213 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treelay"
18214fi
1e6feb95 18215
24fd6d87
VZ
18216if test "$wxUSE_DRAGIMAGE" = "yes"; then
18217 cat >> confdefs.h <<\EOF
18218#define wxUSE_DRAGIMAGE 1
18219EOF
18220
18221 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
18222fi
18223
1e6feb95 18224if test "$wxUSE_MENUS" = "yes"; then
698dcdb6 18225 cat >> confdefs.h <<\EOF
1e6feb95 18226#define wxUSE_MENUS 1
10f2d63a
VZ
18227EOF
18228
1e6feb95 18229 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
10f2d63a
VZ
18230fi
18231
1e6feb95
VZ
18232if test "$wxUSE_METAFILE" = "yes"; then
18233 cat >> confdefs.h <<\EOF
18234#define wxUSE_METAFILE 1
10f2d63a
VZ
18235EOF
18236
10f2d63a
VZ
18237fi
18238
1e6feb95
VZ
18239if test "$wxUSE_MIMETYPE" = "yes"; then
18240 cat >> confdefs.h <<\EOF
18241#define wxUSE_MIMETYPE 1
10f2d63a
VZ
18242EOF
18243
10f2d63a
VZ
18244fi
18245
3e44f09d
VZ
18246if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
18247 cat >> confdefs.h <<\EOF
18248#define wxUSE_SYSTEM_OPTIONS 1
18249EOF
18250
18251fi
18252
10f2d63a 18253if test "$wxUSE_MINIFRAME" = "yes"; then
698dcdb6 18254 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18255#define wxUSE_MINIFRAME 1
18256EOF
18257
18258 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
18259fi
18260
18261if test "$wxUSE_HTML" = "yes"; then
698dcdb6 18262 cat >> confdefs.h <<\EOF
10f2d63a
VZ
18263#define wxUSE_HTML 1
18264EOF
18265
18266 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html"
10f2d63a
VZ
18267fi
18268
18269if test "$wxUSE_VALIDATORS" = "yes"; then
698dcdb6 18270 cat >> confdefs.h <<\EOF
1e487827
VS
18271#define wxUSE_VALIDATORS 1
18272EOF
703e0a69 18273
698dcdb6
VZ
18274 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
18275fi
18276
edae8572
VZ
18277if test "$wxUSE_PALETTE" = "yes" ; then
18278 cat >> confdefs.h <<\EOF
18279#define wxUSE_PALETTE 1
18280EOF
18281
18282fi
18283
698dcdb6
VZ
18284if test "$wxUSE_IMAGE" = "yes" ; then
18285 cat >> confdefs.h <<\EOF
18286#define wxUSE_IMAGE 1
18287EOF
18288
18289fi
18290
18291if test "$wxUSE_GIF" = "yes" ; then
18292 cat >> confdefs.h <<\EOF
18293#define wxUSE_GIF 1
18294EOF
18295
18296fi
18297
18298if test "$wxUSE_PCX" = "yes" ; then
18299 cat >> confdefs.h <<\EOF
18300#define wxUSE_PCX 1
18301EOF
18302
18303fi
18304
18305if test "$wxUSE_PNM" = "yes" ; then
18306 cat >> confdefs.h <<\EOF
18307#define wxUSE_PNM 1
18308EOF
18309
18310fi
18311
18312if test "$wxUSE_XPM" = "yes" ; then
18313 cat >> confdefs.h <<\EOF
18314#define wxUSE_XPM 1
18315EOF
18316
18317fi
18318
18319
1e6feb95
VZ
18320if test "$wxUSE_CHOICEDLG" = "yes"; then
18321 cat >> confdefs.h <<\EOF
18322#define wxUSE_CHOICEDLG 1
18323EOF
18324
18325fi
18326
18327if test "$wxUSE_COLOURDLG" = "yes"; then
18328 cat >> confdefs.h <<\EOF
18329#define wxUSE_COLOURDLG 1
18330EOF
18331
18332fi
18333
18334if test "$wxUSE_FILEDLG" = "yes"; then
18335 cat >> confdefs.h <<\EOF
18336#define wxUSE_FILEDLG 1
18337EOF
18338
18339fi
18340
8db37e06
VZ
18341if test "$wxUSE_FINDREPLDLG" = "yes"; then
18342 cat >> confdefs.h <<\EOF
18343#define wxUSE_FINDREPLDLG 1
18344EOF
18345
18346fi
18347
1e6feb95
VZ
18348if test "$wxUSE_FONTDLG" = "yes"; then
18349 cat >> confdefs.h <<\EOF
18350#define wxUSE_FONTDLG 1
18351EOF
18352
18353fi
18354
18355if test "$wxUSE_DIRDLG" = "yes"; then
18356 if test "$wxUSE_CONSTRAINTS" != "yes"; then
18357 echo "configure: warning: wxDirDialog requires constraints so it won't be compiled without them" 1>&2
18358 else
18359 if test "$wxUSE_TREECTRL" != "yes"; then
18360 echo "configure: warning: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" 1>&2
18361 else
18362 cat >> confdefs.h <<\EOF
18363#define wxUSE_DIRDLG 1
18364EOF
18365
18366 fi
18367 fi
18368fi
18369
18370if test "$wxUSE_MSGDLG" = "yes"; then
18371 cat >> confdefs.h <<\EOF
18372#define wxUSE_MSGDLG 1
18373EOF
18374
18375fi
18376
18377if test "$wxUSE_NUMBERDLG" = "yes"; then
18378 cat >> confdefs.h <<\EOF
18379#define wxUSE_NUMBERDLG 1
18380EOF
18381
18382fi
18383
18384if test "$wxUSE_PROGRESSDLG" = "yes"; then
18385 if test "$wxUSE_CONSTRAINTS" != "yes"; then
18386 echo "configure: warning: wxProgressDialog requires constraints so it won't be compiled without them" 1>&2
18387 else
18388 cat >> confdefs.h <<\EOF
18389#define wxUSE_PROGRESSDLG 1
18390EOF
18391
18392 fi
18393fi
18394
cbca9943
VZ
18395if test "$wxUSE_SPLASH" = "yes"; then
18396 cat >> confdefs.h <<\EOF
18397#define wxUSE_SPLASH 1
18398EOF
18399
18400fi
18401
1e6feb95
VZ
18402if test "$wxUSE_STARTUP_TIPS" = "yes"; then
18403 if test "$wxUSE_CONSTRAINTS" != "yes"; then
18404 echo "configure: warning: Startup tips requires constraints and won't be compiled without them" 1>&2
18405 else
18406 cat >> confdefs.h <<\EOF
18407#define wxUSE_STARTUP_TIPS 1
18408EOF
18409
18410 fi
18411fi
18412
18413if test "$wxUSE_TEXTDLG" = "yes"; then
18414 cat >> confdefs.h <<\EOF
18415#define wxUSE_TEXTDLG 1
18416EOF
18417
18418fi
18419
b1f5d087
VZ
18420if test "$wxUSE_WIZARDDLG" = "yes"; then
18421 cat >> confdefs.h <<\EOF
18422#define wxUSE_WIZARDDLG 1
18423EOF
18424
18425 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
18426fi
18427
1e6feb95 18428
698dcdb6
VZ
18429if test "$cross_compiling" = "yes"; then
18430 OSINFO="\"$host\""
18431else
18432 OSINFO=`uname -s -r -m`
18433 OSINFO="\"$OSINFO\""
18434fi
18435
18436cat >> confdefs.h <<EOF
18437#define WXWIN_OS_DESCRIPTION $OSINFO
18438EOF
18439
18440
18441
06dda230
VZ
18442if test "x$prefix" != "xNONE"; then
18443 wxPREFIX=$prefix
18444else
18445 wxPREFIX=$ac_default_prefix
18446fi
18447
7e67ed0d 18448cat >> confdefs.h <<EOF
06dda230 18449#define wxINSTALL_PREFIX "$wxPREFIX"
7e67ed0d
VZ
18450EOF
18451
18452
18453
698dcdb6 18454
3a922bb4 18455
f11bdd03 18456if test "$wxUSE_MAC" = 1 ; then
3d63bc3a 18457 LDFLAGS="$LDFLAGS -framework Carbon -framework System"
698dcdb6 18458fi
3a922bb4 18459
3d63bc3a
RL
18460
18461LIBS="$ZLIB_LINK$POSIX4_LINK$INET_LINK$WCHAR_LINK$THREADS_LINK$DL_LINK -lm$LIBS"
18462
698dcdb6 18463if test "$wxUSE_GUI" = "yes"; then
3d63bc3a
RL
18464
18465 LIBS=" $GUI_TK_LIBRARY$PNG_LINK$JPEG_LINK$TIFF_LINK$FREETYPE_LINK$LIBS"
3a922bb4
RL
18466
18467
18468 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS controls dialogs \
18469 drawing dynamic erase event exec font image \
18470 minimal richedit rotate widgets"
18471
3a922bb4
RL
18472 CPPFLAGS="$CPPFLAGS \$(EXTRADEFS) \$(APPEXTRADEFS)"
18473else
18474 SAMPLES_SUBDIRS="console"
698dcdb6
VZ
18475fi
18476
698dcdb6 18477
d714471b 18478INCLUDES="-I\${top_builddir}/lib/wx/include/${TOOLCHAIN_NAME} -I\${top_srcdir}/include \
3e44f09d
VZ
18479$REGEX_INCLUDE $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE \
18480$FREETYPE_INCLUDE $TOOLKIT_INCLUDE"
698dcdb6 18481
63e7762e 18482if test "$wxUSE_GTK" = 1; then
3d63bc3a 18483 WXCONFIG_INCLUDE=
698dcdb6
VZ
18484else
18485 WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
18486fi
18487
18488if test "$GXX" = yes ; then
18489 CXXWARNINGS="-Wall"
88e30f2b
RL
18490
18491 if test "$wxUSE_NO_DEPS" = "no" ; then
18492 CFLAGS="-MMD $CFLAGS"
18493 CXXFLAGS="-MMD $CXXFLAGS"
18494 fi
18495fi
18496
3d63bc3a 18497EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG$PROFILE $OPTIMISE $INCLUDES"
698dcdb6
VZ
18498
18499CFLAGS=`echo $CFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'`
18500CXXFLAGS=`echo $CXXFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \+/ /g'`
18501
3d63bc3a 18502LDFLAGS="$LDFLAGS$PROFILE"
698dcdb6 18503
698dcdb6
VZ
18504SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
18505
18506
18507
18508
18509
18510
18511
18512
18513
18514
18515
18516
18517
18518
18519
18520
18521
18522
18523
18524
18525
18526
18527
18528
18529
18530
18531
18532
18533
18534
18535
18536
18537
18538
18539
18540
18541
18542
18543
18544
18545
18546
18547
18548
18549
18550
18551
18552
18553
18554
18555
18556
18557
18558
18559
18560
18561
18562
18563
18564
18565
18566
18567
18568
18569
18570
18571
32832908 18572
2f51a9ec
GD
18573
18574
18575
18576
f6bcfd97 18577
dad6c0ea 18578
caa2c79b 18579
3711412e 18580
1e6feb95
VZ
18581
18582
885d4bf5
VS
18583
18584
18585
18586
62d0491b 18587
10f2d63a
VZ
18588
18589
698dcdb6 18590echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
156b2523 18591echo "configure:18592: checking whether ${MAKE-make} sets \${MAKE}" >&5
698dcdb6
VZ
18592set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
18593if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
18594 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 18595else
698dcdb6 18596 cat > conftestmake <<\EOF
10f2d63a
VZ
18597all:
18598 @echo 'ac_maketemp="${MAKE}"'
18599EOF
18600# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
698dcdb6 18601eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
10f2d63a
VZ
18602if test -n "$ac_maketemp"; then
18603 eval ac_cv_prog_make_${ac_make}_set=yes
18604else
18605 eval ac_cv_prog_make_${ac_make}_set=no
18606fi
698dcdb6 18607rm -f conftestmake
10f2d63a
VZ
18608fi
18609if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
698dcdb6 18610 echo "$ac_t""yes" 1>&6
10f2d63a
VZ
18611 SET_MAKE=
18612else
698dcdb6 18613 echo "$ac_t""no" 1>&6
10f2d63a
VZ
18614 SET_MAKE="MAKE=${MAKE-make}"
18615fi
18616
698dcdb6 18617
3a922bb4
RL
18618if test -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h; then
18619 mv -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h setup.h
00cf1208 18620fi
665bbe97 18621
698dcdb6 18622
10f2d63a 18623
2224580a 18624if test "$wxUSE_GUI" = "yes"; then
ec90f5e5 18625 wx_cv_path_samplesubdirs=$SAMPLES_SUBDIRS
e8482f24
GL
18626 wx_cv_path_ifs=$PATH_IFS
18627 wx_cv_program_ext=$PROGRAM_EXT
18628 wx_cv_target_library=$WX_TARGET_LIBRARY
7b6058cd 18629 wx_cv_target_library_gl=$WX_TARGET_LIBRARY_GL
3711412e 18630 wx_cv_target_libtype=$WX_TARGET_LIBRARY_TYPE
93a20a27 18631 export wx_cv_path_samplesubdirs wx_cv_path_ifs wx_cv_program_ext \
7b6058cd 18632 wx_cv_target_library wx_cv_target_library_gl wx_cv_target_libtype
698dcdb6 18633 subdirs="demos samples utils contrib"
2224580a
VZ
18634
18635fi
10f2d63a 18636
698dcdb6
VZ
18637trap '' 1 2 15
18638cat > confcache <<\EOF
10f2d63a
VZ
18639# This file is a shell script that caches the results of configure
18640# tests run on this system so they can be shared between configure
698dcdb6
VZ
18641# scripts and configure runs. It is not useful on other systems.
18642# If it contains results you don't want to keep, you may remove or edit it.
10f2d63a 18643#
698dcdb6
VZ
18644# By default, configure uses ./config.cache as the cache file,
18645# creating it if it does not exist already. You can give configure
18646# the --cache-file=FILE option to use a different cache file; that is
18647# what configure does when it calls configure scripts in
18648# subdirectories, so they share the cache.
18649# Giving --cache-file=/dev/null disables caching, for debugging configure.
18650# config.status only pays attention to the cache file if you give it the
18651# --recheck option to rerun configure.
10f2d63a 18652#
698dcdb6 18653EOF
10f2d63a
VZ
18654# The following way of writing the cache mishandles newlines in values,
18655# but we know of no workaround that is simple, portable, and efficient.
18656# So, don't put newlines in cache variables' values.
18657# Ultrix sh set writes to stderr and can't be redirected directly,
18658# and sets the high bit in the cache file unless we assign to the vars.
698dcdb6
VZ
18659(set) 2>&1 |
18660 case `(ac_space=' '; set | grep ac_space) 2>&1` in
18661 *ac_space=\ *)
18662 # `set' does not quote correctly, so add quotes (double-quote substitution
18663 # turns \\\\ into \\, and sed turns \\ into \).
18664 sed -n \
18665 -e "s/'/'\\\\''/g" \
18666 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
18667 ;;
18668 *)
18669 # `set' quotes correctly as required by POSIX, so do not add quotes.
18670 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
18671 ;;
18672 esac >> confcache
18673if cmp -s $cache_file confcache; then
18674 :
18675else
10f2d63a 18676 if test -w $cache_file; then
698dcdb6
VZ
18677 echo "updating cache $cache_file"
18678 cat confcache > $cache_file
10f2d63a
VZ
18679 else
18680 echo "not updating unwritable cache $cache_file"
18681 fi
18682fi
18683rm -f confcache
18684
698dcdb6
VZ
18685trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
18686
10f2d63a
VZ
18687test "x$prefix" = xNONE && prefix=$ac_default_prefix
18688# Let make expand exec_prefix.
18689test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18690
698dcdb6
VZ
18691# Any assignment to VPATH causes Sun make to only execute
18692# the first set of double-colon rules, so remove it if not needed.
18693# If there is a colon in the path, we need to keep it.
10f2d63a 18694if test "x$srcdir" = x.; then
698dcdb6 18695 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
10f2d63a
VZ
18696fi
18697
698dcdb6
VZ
18698trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
18699
10f2d63a
VZ
18700DEFS=-DHAVE_CONFIG_H
18701
698dcdb6 18702# Without the "./", some shells look in PATH for config.status.
10f2d63a 18703: ${CONFIG_STATUS=./config.status}
698dcdb6
VZ
18704
18705echo creating $CONFIG_STATUS
18706rm -f $CONFIG_STATUS
18707cat > $CONFIG_STATUS <<EOF
18708#! /bin/sh
10f2d63a
VZ
18709# Generated automatically by configure.
18710# Run this file to recreate the current configuration.
698dcdb6
VZ
18711# This directory was configured as follows,
18712# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18713#
18714# $0 $ac_configure_args
18715#
10f2d63a 18716# Compiler output produced by configure, useful for debugging
698dcdb6 18717# configure, is in ./config.log if it exists.
1e487827 18718
698dcdb6
VZ
18719ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
18720for ac_option
10f2d63a 18721do
698dcdb6 18722 case "\$ac_option" in
10f2d63a 18723 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
698dcdb6
VZ
18724 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
18725 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
18726 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
18727 echo "$CONFIG_STATUS generated by autoconf version 2.13"
18728 exit 0 ;;
18729 -help | --help | --hel | --he | --h)
18730 echo "\$ac_cs_usage"; exit 0 ;;
18731 *) echo "\$ac_cs_usage"; exit 1 ;;
10f2d63a
VZ
18732 esac
18733done
18734
698dcdb6
VZ
18735ac_given_srcdir=$srcdir
18736ac_given_INSTALL="$INSTALL"
703e0a69 18737
698dcdb6
VZ
18738trap 'rm -fr `echo "
18739 wx-config
18740 src/make.env
18741 src/makeprog.env
18742 src/makelib.env
18743 Makefile
18744 setup.h:setup.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1e487827 18745EOF
698dcdb6 18746cat >> $CONFIG_STATUS <<EOF
1e487827 18747
698dcdb6
VZ
18748# Protect against being on the right side of a sed subst in config.status.
18749sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
18750 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
18751$ac_vpsub
18752$extrasub
18753s%@SHELL@%$SHELL%g
18754s%@CFLAGS@%$CFLAGS%g
18755s%@CPPFLAGS@%$CPPFLAGS%g
18756s%@CXXFLAGS@%$CXXFLAGS%g
18757s%@FFLAGS@%$FFLAGS%g
18758s%@DEFS@%$DEFS%g
18759s%@LDFLAGS@%$LDFLAGS%g
18760s%@LIBS@%$LIBS%g
18761s%@exec_prefix@%$exec_prefix%g
18762s%@prefix@%$prefix%g
18763s%@program_transform_name@%$program_transform_name%g
18764s%@bindir@%$bindir%g
18765s%@sbindir@%$sbindir%g
18766s%@libexecdir@%$libexecdir%g
18767s%@datadir@%$datadir%g
18768s%@sysconfdir@%$sysconfdir%g
18769s%@sharedstatedir@%$sharedstatedir%g
18770s%@localstatedir@%$localstatedir%g
18771s%@libdir@%$libdir%g
18772s%@includedir@%$includedir%g
18773s%@oldincludedir@%$oldincludedir%g
18774s%@infodir@%$infodir%g
18775s%@mandir@%$mandir%g
18776s%@host@%$host%g
18777s%@host_alias@%$host_alias%g
18778s%@host_cpu@%$host_cpu%g
18779s%@host_vendor@%$host_vendor%g
18780s%@host_os@%$host_os%g
18781s%@target@%$target%g
18782s%@target_alias@%$target_alias%g
18783s%@target_cpu@%$target_cpu%g
18784s%@target_vendor@%$target_vendor%g
18785s%@target_os@%$target_os%g
18786s%@build@%$build%g
18787s%@build_alias@%$build_alias%g
18788s%@build_cpu@%$build_cpu%g
18789s%@build_vendor@%$build_vendor%g
18790s%@build_os@%$build_os%g
18791s%@CC@%$CC%g
18792s%@CPP@%$CPP%g
18793s%@CXX@%$CXX%g
698dcdb6
VZ
18794s%@RANLIB@%$RANLIB%g
18795s%@AR@%$AR%g
18796s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
d6853540 18797s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
6054113a 18798s%@INSTALL_DATA@%$INSTALL_DATA%g
698dcdb6
VZ
18799s%@STRIP@%$STRIP%g
18800s%@YACC@%$YACC%g
18801s%@LEX@%$LEX%g
18802s%@LEXLIB@%$LEXLIB%g
18803s%@LN_S@%$LN_S%g
18804s%@GTK_CONFIG_2_0@%$GTK_CONFIG_2_0%g
698dcdb6
VZ
18805s%@GTK_CFLAGS@%$GTK_CFLAGS%g
18806s%@GTK_LIBS@%$GTK_LIBS%g
8168de4c 18807s%@GTK_CONFIG@%$GTK_CONFIG%g
698dcdb6
VZ
18808s%@X_CFLAGS@%$X_CFLAGS%g
18809s%@X_PRE_LIBS@%$X_PRE_LIBS%g
18810s%@X_LIBS@%$X_LIBS%g
18811s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
3a922bb4 18812s%@RESCOMP@%$RESCOMP%g
698dcdb6 18813s%@DEREZ@%$DEREZ%g
3a922bb4 18814s%@CXXCPP@%$CXXCPP%g
698dcdb6
VZ
18815s%@LEX_STEM@%$LEX_STEM%g
18816s%@PATH_IFS@%$PATH_IFS%g
18817s%@WX_MAJOR_VERSION_NUMBER@%$WX_MAJOR_VERSION_NUMBER%g
18818s%@WX_MINOR_VERSION_NUMBER@%$WX_MINOR_VERSION_NUMBER%g
18819s%@WX_RELEASE_NUMBER@%$WX_RELEASE_NUMBER%g
698dcdb6
VZ
18820s%@WX_LIBRARY_NAME_STATIC@%$WX_LIBRARY_NAME_STATIC%g
18821s%@WX_LIBRARY_NAME_SHARED@%$WX_LIBRARY_NAME_SHARED%g
77e13408 18822s%@WX_LIBRARY_IMPORTLIB@%$WX_LIBRARY_IMPORTLIB%g
698dcdb6
VZ
18823s%@WX_TARGET_LIBRARY@%$WX_TARGET_LIBRARY%g
18824s%@WX_LIBRARY_LINK1@%$WX_LIBRARY_LINK1%g
18825s%@WX_LIBRARY_LINK2@%$WX_LIBRARY_LINK2%g
698dcdb6 18826s%@PROGRAM_EXT@%$PROGRAM_EXT%g
698dcdb6
VZ
18827s%@WX_LIBRARY_NAME_STATIC_GL@%$WX_LIBRARY_NAME_STATIC_GL%g
18828s%@WX_LIBRARY_NAME_SHARED_GL@%$WX_LIBRARY_NAME_SHARED_GL%g
698dcdb6
VZ
18829s%@WX_TARGET_LIBRARY_GL@%$WX_TARGET_LIBRARY_GL%g
18830s%@WX_LIBRARY_LINK1_GL@%$WX_LIBRARY_LINK1_GL%g
18831s%@WX_LIBRARY_LINK2_GL@%$WX_LIBRARY_LINK2_GL%g
698dcdb6
VZ
18832s%@WX_ALL@%$WX_ALL%g
18833s%@WX_ALL_INSTALLED@%$WX_ALL_INSTALLED%g
18834s%@SHARED_LD@%$SHARED_LD%g
18835s%@PIC_FLAG@%$PIC_FLAG%g
698dcdb6
VZ
18836s%@CODE_GEN_FLAGS@%$CODE_GEN_FLAGS%g
18837s%@CODE_GEN_FLAGS_CXX@%$CODE_GEN_FLAGS_CXX%g
3a922bb4
RL
18838s%@SONAME_FLAGS@%$SONAME_FLAGS%g
18839s%@SONAME_FLAGS_GL@%$SONAME_FLAGS_GL%g
698dcdb6
VZ
18840s%@WX_TARGET_LIBRARY_SONAME@%$WX_TARGET_LIBRARY_SONAME%g
18841s%@WX_TARGET_LIBRARY_TYPE@%$WX_TARGET_LIBRARY_TYPE%g
18842s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g
18843s%@USE_GUI@%$USE_GUI%g
18844s%@AFMINSTALL@%$AFMINSTALL%g
18845s%@TOOLKIT@%$TOOLKIT%g
698dcdb6 18846s%@TOOLKIT_DIR@%$TOOLKIT_DIR%g
1e6feb95 18847s%@TOOLKIT_VPATH@%$TOOLKIT_VPATH%g
3a922bb4
RL
18848s%@TOOLCHAIN_NAME@%$TOOLCHAIN_NAME%g
18849s%@TOOLCHAIN_DEFS@%$TOOLCHAIN_DEFS%g
00c81359 18850s%@TOOLCHAIN_DLL_DEFS@%$TOOLCHAIN_DLL_DEFS%g
3a922bb4
RL
18851s%@cross_compiling@%$cross_compiling%g
18852s%@WXCONFIG_LIBS@%$WXCONFIG_LIBS%g
18853s%@WXCONFIG_LIBS_GL@%$WXCONFIG_LIBS_GL%g
885d4bf5
VS
18854s%@WXCONFIG_LIBS_STATIC@%$WXCONFIG_LIBS_STATIC%g
18855s%@WXCONFIG_LIBS_STATIC_GL@%$WXCONFIG_LIBS_STATIC_GL%g
698dcdb6
VZ
18856s%@WXCONFIG_INCLUDE@%$WXCONFIG_INCLUDE%g
18857s%@ALL_OBJECTS@%$ALL_OBJECTS%g
698dcdb6
VZ
18858s%@GUIDIST@%$GUIDIST%g
18859s%@PORT_FILES@%$PORT_FILES%g
18860s%@DISTDIR@%$DISTDIR%g
698dcdb6 18861s%@SAMPLES_SUBDIRS@%$SAMPLES_SUBDIRS%g
62d0491b 18862s%@LDFLAGS_GL@%$LDFLAGS_GL%g
698dcdb6 18863s%@OPENGL_LIBS@%$OPENGL_LIBS%g
3d63bc3a 18864s%@DMALLOC_LIBS@%$DMALLOC_LIBS%g
698dcdb6 18865s%@EXTRADEFS@%$EXTRADEFS%g
698dcdb6 18866s%@RESFLAGS@%$RESFLAGS%g
3a922bb4 18867s%@RESPROGRAMOBJ@%$RESPROGRAMOBJ%g
d08b457b 18868s%@WX_RESOURCES_MACOSX@%$WX_RESOURCES_MACOSX%g
e23081de 18869s%@WX_RESOURCES_MACOSX_COMPILED@%$WX_RESOURCES_MACOSX_COMPILED%g
698dcdb6
VZ
18870s%@LIBWXMACRES@%$LIBWXMACRES%g
18871s%@LIBWXMACRESCOMP@%$LIBWXMACRESCOMP%g
2baaf735 18872s%@LIBWXMACRESWXCONFIG@%$LIBWXMACRESWXCONFIG%g
698dcdb6
VZ
18873s%@DLLTOOL@%$DLLTOOL%g
18874s%@AS@%$AS%g
18875s%@NM@%$NM%g
18876s%@LD@%$LD%g
18877s%@MAKEINFO@%$MAKEINFO%g
885d4bf5 18878s%@INSTALL_LIBRARY@%$INSTALL_LIBRARY%g
698dcdb6
VZ
18879s%@SET_MAKE@%$SET_MAKE%g
18880s%@subdirs@%$subdirs%g
1e487827 18881
1e487827 18882CEOF
1e487827
VS
18883EOF
18884
698dcdb6
VZ
18885cat >> $CONFIG_STATUS <<\EOF
18886
18887# Split the substitutions into bite-sized pieces for seds with
18888# small command number limits, like on Digital OSF/1 and HP-UX.
18889ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
18890ac_file=1 # Number of current file.
18891ac_beg=1 # First line for current file.
18892ac_end=$ac_max_sed_cmds # Line after last line for current file.
18893ac_more_lines=:
18894ac_sed_cmds=""
18895while $ac_more_lines; do
18896 if test $ac_beg -gt 1; then
18897 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
18898 else
18899 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
18900 fi
18901 if test ! -s conftest.s$ac_file; then
18902 ac_more_lines=false
18903 rm -f conftest.s$ac_file
18904 else
18905 if test -z "$ac_sed_cmds"; then
18906 ac_sed_cmds="sed -f conftest.s$ac_file"
10f2d63a 18907 else
698dcdb6 18908 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
10f2d63a 18909 fi
698dcdb6
VZ
18910 ac_file=`expr $ac_file + 1`
18911 ac_beg=$ac_end
18912 ac_end=`expr $ac_end + $ac_max_sed_cmds`
10f2d63a 18913 fi
698dcdb6
VZ
18914done
18915if test -z "$ac_sed_cmds"; then
18916 ac_sed_cmds=cat
18917fi
18918EOF
10f2d63a 18919
698dcdb6
VZ
18920cat >> $CONFIG_STATUS <<EOF
18921
18922CONFIG_FILES=\${CONFIG_FILES-"wx-config
18923 src/make.env
18924 src/makeprog.env
18925 src/makelib.env
18926 Makefile
18927 "}
10f2d63a 18928EOF
698dcdb6
VZ
18929cat >> $CONFIG_STATUS <<\EOF
18930for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
10f2d63a 18931 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
698dcdb6
VZ
18932 case "$ac_file" in
18933 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
18934 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
18935 *) ac_file_in="${ac_file}.in" ;;
10f2d63a
VZ
18936 esac
18937
698dcdb6 18938 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
1e487827 18939
698dcdb6
VZ
18940 # Remove last slash and all that follows it. Not all systems have dirname.
18941 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
18942 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
18943 # The file is in a subdirectory.
18944 test ! -d "$ac_dir" && mkdir "$ac_dir"
18945 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
10f2d63a 18946 # A "../" for each directory in $ac_dir_suffix.
698dcdb6 18947 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
10f2d63a
VZ
18948 else
18949 ac_dir_suffix= ac_dots=
18950 fi
18951
698dcdb6
VZ
18952 case "$ac_given_srcdir" in
18953 .) srcdir=.
18954 if test -z "$ac_dots"; then top_srcdir=.
18955 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
18956 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
10f2d63a 18957 *) # Relative path.
698dcdb6
VZ
18958 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
18959 top_srcdir="$ac_dots$ac_given_srcdir" ;;
10f2d63a
VZ
18960 esac
18961
698dcdb6
VZ
18962 case "$ac_given_INSTALL" in
18963 [/$]*) INSTALL="$ac_given_INSTALL" ;;
18964 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
10f2d63a
VZ
18965 esac
18966
698dcdb6
VZ
18967 echo creating "$ac_file"
18968 rm -f "$ac_file"
18969 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
18970 case "$ac_file" in
18971 *Makefile*) ac_comsub="1i\\
18972# $configure_input" ;;
18973 *) ac_comsub= ;;
18974 esac
10f2d63a 18975
698dcdb6
VZ
18976 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
18977 sed -e "$ac_comsub
18978s%@configure_input@%$configure_input%g
18979s%@srcdir@%$srcdir%g
18980s%@top_srcdir@%$top_srcdir%g
18981s%@INSTALL@%$INSTALL%g
18982" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
18983fi; done
18984rm -f conftest.s*
10f2d63a
VZ
18985
18986# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
18987# NAME is the cpp macro being defined and VALUE is the value it is being given.
18988#
18989# ac_d sets the value in "#define NAME VALUE" lines.
698dcdb6
VZ
18990ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
18991ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
18992ac_dC='\3'
18993ac_dD='%g'
18994# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
18995ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
18996ac_uB='\([ ]\)%\1#\2define\3'
10f2d63a 18997ac_uC=' '
698dcdb6
VZ
18998ac_uD='\4%g'
18999# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
19000ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
19001ac_eB='$%\1#\2define\3'
19002ac_eC=' '
19003ac_eD='%g'
10f2d63a 19004
698dcdb6
VZ
19005if test "${CONFIG_HEADERS+set}" != set; then
19006EOF
19007cat >> $CONFIG_STATUS <<EOF
19008 CONFIG_HEADERS="setup.h:setup.h.in"
19009EOF
19010cat >> $CONFIG_STATUS <<\EOF
19011fi
19012for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
10f2d63a 19013 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
698dcdb6
VZ
19014 case "$ac_file" in
19015 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
19016 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
19017 *) ac_file_in="${ac_file}.in" ;;
10f2d63a
VZ
19018 esac
19019
698dcdb6
VZ
19020 echo creating $ac_file
19021
19022 rm -f conftest.frag conftest.in conftest.out
19023 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
19024 cat $ac_file_inputs > conftest.in
19025
19026EOF
19027
19028# Transform confdefs.h into a sed script conftest.vals that substitutes
19029# the proper values into config.h.in to produce config.h. And first:
19030# Protect against being on the right side of a sed subst in config.status.
19031# Protect against being in an unquoted here document in config.status.
19032rm -f conftest.vals
19033cat > conftest.hdr <<\EOF
19034s/[\\&%]/\\&/g
19035s%[\\$`]%\\&%g
19036s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
19037s%ac_d%ac_u%gp
19038s%ac_u%ac_e%gp
19039EOF
19040sed -n -f conftest.hdr confdefs.h > conftest.vals
19041rm -f conftest.hdr
10f2d63a
VZ
19042
19043# This sed command replaces #undef with comments. This is necessary, for
19044# example, in the case of _POSIX_SOURCE, which is predefined and required
19045# on some systems where configure will not decide to define it.
698dcdb6
VZ
19046cat >> conftest.vals <<\EOF
19047s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
10f2d63a
VZ
19048EOF
19049
698dcdb6
VZ
19050# Break up conftest.vals because some shells have a limit on
19051# the size of here documents, and old seds have small limits too.
10f2d63a
VZ
19052
19053rm -f conftest.tail
698dcdb6 19054while :
10f2d63a 19055do
698dcdb6
VZ
19056 ac_lines=`grep -c . conftest.vals`
19057 # grep -c gives empty output for an empty file on some AIX systems.
19058 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
19059 # Write a limited-size here document to conftest.frag.
19060 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
19061 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
10f2d63a 19062 echo 'CEOF
698dcdb6
VZ
19063 sed -f conftest.frag conftest.in > conftest.out
19064 rm -f conftest.in
19065 mv conftest.out conftest.in
19066' >> $CONFIG_STATUS
19067 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
19068 rm -f conftest.vals
19069 mv conftest.tail conftest.vals
10f2d63a 19070done
698dcdb6
VZ
19071rm -f conftest.vals
19072
19073cat >> $CONFIG_STATUS <<\EOF
19074 rm -f conftest.frag conftest.h
19075 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
19076 cat conftest.in >> conftest.h
19077 rm -f conftest.in
19078 if cmp -s $ac_file conftest.h 2>/dev/null; then
19079 echo "$ac_file is unchanged"
19080 rm -f conftest.h
10f2d63a 19081 else
698dcdb6
VZ
19082 # Remove last slash and all that follows it. Not all systems have dirname.
19083 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
10f2d63a 19084 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
698dcdb6
VZ
19085 # The file is in a subdirectory.
19086 test ! -d "$ac_dir" && mkdir "$ac_dir"
10f2d63a 19087 fi
698dcdb6
VZ
19088 rm -f $ac_file
19089 mv conftest.h $ac_file
10f2d63a 19090 fi
698dcdb6
VZ
19091fi; done
19092
10f2d63a 19093EOF
698dcdb6 19094cat >> $CONFIG_STATUS <<EOF
10f2d63a 19095
3a922bb4 19096 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}"
698dcdb6
VZ
19097 LN_S="${LN_S}"
19098
19099
19100EOF
19101cat >> $CONFIG_STATUS <<\EOF
10f2d63a 19102
652d930d 19103 if test ! -h wx-config; then
991a5759 19104 chmod +x wx-config
3a922bb4
RL
19105 mv wx-config wx${TOOLCHAIN_NAME}-config
19106 ${LN_S} wx${TOOLCHAIN_NAME}-config wx-config
991a5759 19107 fi
665bbe97 19108
00cf1208
RR
19109 if test ! -d lib; then
19110 mkdir lib
19111 fi
19112 if test ! -d lib/wx; then
19113 mkdir lib/wx
19114 fi
19115 if test ! -d lib/wx/include; then
19116 mkdir lib/wx/include
19117 fi
3a922bb4
RL
19118 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}; then
19119 mkdir lib/wx/include/${TOOLCHAIN_NAME}
00cf1208 19120 fi
3a922bb4
RL
19121 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}/wx; then
19122 mkdir lib/wx/include/${TOOLCHAIN_NAME}/wx
00cf1208
RR
19123 fi
19124 if test -f setup.h; then
3a922bb4 19125 mv -f setup.h lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h
00cf1208 19126 fi
698dcdb6
VZ
19127
19128exit 0
10f2d63a
VZ
19129EOF
19130chmod +x $CONFIG_STATUS
698dcdb6
VZ
19131rm -fr confdefs* $ac_clean_files
19132test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
10f2d63a 19133
2224580a
VZ
19134if test "$no_recursion" != yes; then
19135
19136 # Remove --cache-file and --srcdir arguments so they do not pile up.
19137 ac_sub_configure_args=
19138 ac_prev=
19139 for ac_arg in $ac_configure_args; do
19140 if test -n "$ac_prev"; then
19141 ac_prev=
19142 continue
19143 fi
698dcdb6 19144 case "$ac_arg" in
2224580a
VZ
19145 -cache-file | --cache-file | --cache-fil | --cache-fi \
19146 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
19147 ac_prev=cache_file ;;
19148 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
698dcdb6 19149 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
2224580a
VZ
19150 ;;
19151 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
19152 ac_prev=srcdir ;;
19153 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
19154 ;;
19155 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
19156 esac
19157 done
19158
698dcdb6 19159 for ac_config_dir in demos samples utils contrib; do
2224580a
VZ
19160
19161 # Do not complain, so a configure script can configure whichever
19162 # parts of a large source tree are present.
698dcdb6
VZ
19163 if test ! -d $srcdir/$ac_config_dir; then
19164 continue
19165 fi
19166
19167 echo configuring in $ac_config_dir
2224580a 19168
698dcdb6 19169 case "$srcdir" in
2224580a
VZ
19170 .) ;;
19171 *)
698dcdb6
VZ
19172 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
19173 else
19174 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
19175 fi
19176 ;;
2224580a
VZ
19177 esac
19178
19179 ac_popdir=`pwd`
698dcdb6 19180 cd $ac_config_dir
2224580a 19181
698dcdb6
VZ
19182 # A "../" for each directory in /$ac_config_dir.
19183 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
2224580a 19184
698dcdb6 19185 case "$srcdir" in
2224580a
VZ
19186 .) # No --srcdir option. We are building in place.
19187 ac_sub_srcdir=$srcdir ;;
698dcdb6
VZ
19188 /*) # Absolute path.
19189 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
2224580a 19190 *) # Relative path.
698dcdb6 19191 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
2224580a
VZ
19192 esac
19193
19194 # Check for guested configure; otherwise get Cygnus style configure.
698dcdb6
VZ
19195 if test -f $ac_sub_srcdir/configure; then
19196 ac_sub_configure=$ac_sub_srcdir/configure
2224580a
VZ
19197 elif test -f $ac_sub_srcdir/configure.in; then
19198 ac_sub_configure=$ac_configure
19199 else
698dcdb6 19200 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
2224580a
VZ
19201 ac_sub_configure=
19202 fi
19203
19204 # The recursion is here.
19205 if test -n "$ac_sub_configure"; then
698dcdb6 19206
2224580a 19207 # Make the cache file name correct relative to the subdirectory.
698dcdb6
VZ
19208 case "$cache_file" in
19209 /*) ac_sub_cache_file=$cache_file ;;
2224580a 19210 *) # Relative path.
698dcdb6 19211 ac_sub_cache_file="$ac_dots$cache_file" ;;
2224580a 19212 esac
698dcdb6
VZ
19213 case "$ac_given_INSTALL" in
19214 [/$]*) INSTALL="$ac_given_INSTALL" ;;
19215 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
19216 esac
2224580a 19217
698dcdb6 19218 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
2224580a 19219 # The eval makes quoting arguments work.
698dcdb6
VZ
19220 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
19221 then :
19222 else
19223 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
19224 fi
2224580a
VZ
19225 fi
19226
19227 cd $ac_popdir
19228 done
19229fi
19230
698dcdb6 19231