]> git.saurik.com Git - wxWidgets.git/blame - configure
fixed menu navigation with mouse
[wxWidgets.git] / configure
CommitLineData
10f2d63a
VZ
1#! /bin/sh
2
698dcdb6 3# From configure.in Id: configure.in
703e0a69
VZ
4
5
6
7
8
703e0a69
VZ
9
10
1e487827 11
1e487827 12
698dcdb6
VZ
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
8168de4c
VZ
38
39# Configure paths for GTK+
40# Owen Taylor 97-11-3
698dcdb6
VZ
41
42
43
44
698dcdb6
VZ
45
46
47# Guess values for system-dependent variables and create Makefiles.
48# Generated automatically using autoconf version 2.13
49# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
50#
51# This configure script is free software; the Free Software Foundation
52# gives unlimited permission to copy, distribute and modify it.
53
54# Defaults:
55ac_help=
56ac_default_prefix=/usr/local
57# Any additions from configure.in:
58ac_help="$ac_help
8168de4c 59 --enable-gui use GUI classes"
1e6feb95 60ac_help="$ac_help
8168de4c 61 --enable-universal use wxWindows GUI controls instead of native ones"
698dcdb6
VZ
62ac_help="$ac_help
63 --with-gtk use GTK+"
64ac_help="$ac_help
65 --with-motif use Motif/Lesstif"
66ac_help="$ac_help
67 --with-mac use Mac OS X"
68ac_help="$ac_help
69 --with-wine use WINE"
70ac_help="$ac_help
71 --with-cygwin use Cygwin for MS-Windows"
72ac_help="$ac_help
73 --with-mingw use GCC Minimal MS-Windows"
74ac_help="$ac_help
75 --with-pm use OS/2 Presentation Manager"
1e6feb95 76ac_help="$ac_help
b3e8d00a 77 --with-mgl use SciTech MGL"
698dcdb6 78ac_help="$ac_help
8168de4c 79 --enable-gtk2 use GTK+ 2.0 if available (EXPERIMENTAL)"
698dcdb6 80ac_help="$ac_help
8168de4c 81 --with-libpng use libpng (PNG image format)"
698dcdb6 82ac_help="$ac_help
8168de4c 83 --with-libjpeg use libjpeg (JPEG file format)"
698dcdb6 84ac_help="$ac_help
8168de4c 85 --with-libtiff use libtiff (TIFF file format)"
698dcdb6 86ac_help="$ac_help
8168de4c 87 --with-freetype use freetype (font rasterizer)"
698dcdb6 88ac_help="$ac_help
8168de4c 89 --with-opengl use OpenGL (or Mesa)"
698dcdb6 90ac_help="$ac_help
8168de4c 91 --with-dmalloc use dmalloc library (www.letters.com/dmalloc)"
3e44f09d
VZ
92ac_help="$ac_help
93 --with-regex enable support for wxRegEx class"
698dcdb6 94ac_help="$ac_help
8168de4c 95 --with-zlib use zlib for LZW compression"
698dcdb6 96ac_help="$ac_help
8168de4c 97 --with-odbc use the IODBC and wxODBC classes"
698dcdb6 98ac_help="$ac_help
8168de4c 99 --enable-shared create shared library code"
698dcdb6 100ac_help="$ac_help
3a922bb4 101 --enable-soname set the DT_SONAME field in ELF shared libraries"
698dcdb6 102ac_help="$ac_help
8168de4c 103 --enable-optimise create optimised code"
698dcdb6 104ac_help="$ac_help
8168de4c 105 --enable-debug same as debug_flag and debug_info"
683dccda
GD
106ac_help="$ac_help
107 --enable-precomp enable use of precompiled headers (Mac OS X)"
698dcdb6 108ac_help="$ac_help
8168de4c 109 --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)"
698dcdb6 110ac_help="$ac_help
8168de4c 111 --enable-debug_info create code with debugging information"
698dcdb6 112ac_help="$ac_help
8168de4c 113 --enable-debug_gdb create code with extra GDB debugging information"
698dcdb6 114ac_help="$ac_help
8168de4c 115 --enable-debug_cntxt use wxDebugContext"
698dcdb6 116ac_help="$ac_help
8168de4c 117 --enable-mem_tracing create code with memory tracing"
698dcdb6 118ac_help="$ac_help
8168de4c 119 --enable-profile create code with profiling information"
698dcdb6 120ac_help="$ac_help
8168de4c 121 --enable-no_rtti create code without RTTI information"
698dcdb6 122ac_help="$ac_help
b3e8d00a 123 --enable-no_exceptions create code without C++ exceptions handling"
698dcdb6 124ac_help="$ac_help
8168de4c 125 --enable-permissive compile code disregarding strict ANSI"
698dcdb6 126ac_help="$ac_help
8168de4c 127 --enable-no_deps create code without dependency information"
54276ccf 128ac_help="$ac_help
b3e8d00a 129 --enable-compat20 enable wxWindows 2.0 compatibility"
54276ccf 130ac_help="$ac_help
b3e8d00a 131 --enable-compat22 enable wxWindows 2.2 compatibility"
698dcdb6 132ac_help="$ac_help
8168de4c 133 --enable-intl use internationalization system"
698dcdb6 134ac_help="$ac_help
8168de4c 135 --enable-config use wxConfig (and derived) classes"
698dcdb6 136ac_help="$ac_help
8168de4c 137 --enable-sockets use socket/network classes"
698dcdb6 138ac_help="$ac_help
8168de4c 139 --enable-ipc use interprocess communication (wxSocket etc.)"
698dcdb6 140ac_help="$ac_help
8168de4c 141 --enable-cmdline use wxCmdLineParser class"
1e6feb95 142ac_help="$ac_help
8168de4c 143 --enable-datetime use wxDateTime class"
1e6feb95 144ac_help="$ac_help
8168de4c 145 --enable-timedate use obsolete wxDate/wxTime classes"
1e6feb95 146ac_help="$ac_help
8168de4c 147 --enable-stopwatch use wxStopWatch class"
1e6feb95 148ac_help="$ac_help
8168de4c 149 --enable-dialupman use dialup network classes"
698dcdb6 150ac_help="$ac_help
8168de4c 151 --enable-apple_ieee use the Apple IEEE codec"
698dcdb6 152ac_help="$ac_help
8168de4c 153 --enable-timer use wxTimer class"
698dcdb6 154ac_help="$ac_help
8168de4c 155 --enable-wave use wxWave class"
698dcdb6 156ac_help="$ac_help
8168de4c 157 --enable-fraction use wxFraction class"
698dcdb6 158ac_help="$ac_help
8168de4c 159 --enable-dynlib use wxLibrary class for DLL loading"
698dcdb6 160ac_help="$ac_help
8168de4c 161 --enable-longlong use wxLongLong class"
698dcdb6 162ac_help="$ac_help
8168de4c 163 --enable-geometry use geometry class"
698dcdb6 164ac_help="$ac_help
8168de4c 165 --enable-log use logging system"
698dcdb6 166ac_help="$ac_help
8168de4c 167 --enable-streams use wxStream etc classes"
698dcdb6 168ac_help="$ac_help
8168de4c 169 --enable-file use wxFile classes"
698dcdb6 170ac_help="$ac_help
8168de4c 171 --enable-ffile use wxFFile classes"
1e6feb95 172ac_help="$ac_help
8168de4c 173 --enable-textfile use wxTextFile classes"
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
8168de4c 195 --enable-mimetypes 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"
1e6feb95 222ac_help="$ac_help
8168de4c 223 --enable-postscript use wxPostscriptDC device context (default for gtk+)"
698dcdb6 224ac_help="$ac_help
8168de4c 225 --enable-prologio use Prolog IO library"
698dcdb6 226ac_help="$ac_help
8168de4c 227 --enable-resources use wxWindows resources"
698dcdb6 228ac_help="$ac_help
8168de4c 229 --enable-xresources use X resources for save (default for gtk+)"
698dcdb6 230ac_help="$ac_help
8168de4c 231 --enable-clipboard use wxClipboard classes"
698dcdb6 232ac_help="$ac_help
8168de4c 233 --enable-dnd use Drag'n'Drop classes"
698dcdb6 234ac_help="$ac_help
8168de4c 235 --enable-metafile use win32 metafiles"
698dcdb6 236ac_help="$ac_help
24176f2c 237 --enable-treelayout use wxTreeLayout classes"
698dcdb6 238ac_help="$ac_help
8168de4c 239 --enable-controls use all usual controls"
698dcdb6 240ac_help="$ac_help
8168de4c 241 --enable-accel use accelerators"
698dcdb6 242ac_help="$ac_help
8168de4c 243 --enable-button use wxButton class"
698dcdb6 244ac_help="$ac_help
8168de4c 245 --enable-bmpbutton use wxBitmapButton class"
698dcdb6 246ac_help="$ac_help
8168de4c 247 --enable-calendar use wxCalendarCtrl class"
1e6feb95 248ac_help="$ac_help
8168de4c 249 --enable-caret use wxCaret class"
1e6feb95 250ac_help="$ac_help
8168de4c 251 --enable-checkbox use wxCheckBox class"
698dcdb6 252ac_help="$ac_help
8168de4c 253 --enable-checklst use wxCheckListBox (listbox with checkboxes) class"
698dcdb6 254ac_help="$ac_help
8168de4c 255 --enable-choice use wxChoice class"
698dcdb6 256ac_help="$ac_help
8168de4c 257 --enable-combobox use wxComboBox classes"
698dcdb6 258ac_help="$ac_help
8168de4c 259 --enable-gauge use wxGauge class"
698dcdb6 260ac_help="$ac_help
8168de4c 261 --enable-grid use wxGrid class"
698dcdb6 262ac_help="$ac_help
8168de4c 263 --enable-newgrid use new wxGrid class"
698dcdb6 264ac_help="$ac_help
8168de4c 265 --enable-imaglist use wxImageList class"
698dcdb6 266ac_help="$ac_help
8168de4c 267 --enable-listbox use wxListBox class"
698dcdb6 268ac_help="$ac_help
8168de4c 269 --enable-listctrl use wxListCtrl class"
698dcdb6 270ac_help="$ac_help
8168de4c 271 --enable-notebook use wxNotebook class"
24176f2c
GD
272ac_help="$ac_help
273 --enable-propsheet use wxPropertySheet class"
698dcdb6 274ac_help="$ac_help
8168de4c 275 --enable-radiobox use wxRadioBox class"
698dcdb6 276ac_help="$ac_help
8168de4c 277 --enable-radiobtn use wxRadioButton class"
698dcdb6 278ac_help="$ac_help
8168de4c 279 --enable-sash use wxSashWindow class"
698dcdb6 280ac_help="$ac_help
8168de4c 281 --enable-scrollbar use wxScrollBar class and scrollable windows"
698dcdb6 282ac_help="$ac_help
8168de4c 283 --enable-slider use wxSlider class"
698dcdb6 284ac_help="$ac_help
8168de4c 285 --enable-spinbtn use wxSpinButton class"
698dcdb6 286ac_help="$ac_help
8168de4c 287 --enable-spinctrl use wxSpinCtrl class"
698dcdb6 288ac_help="$ac_help
8168de4c 289 --enable-splitter use wxSplitterWindow class"
698dcdb6 290ac_help="$ac_help
8168de4c 291 --enable-statbmp use wxStaticBitmap class"
698dcdb6 292ac_help="$ac_help
8168de4c 293 --enable-statbox use wxStaticBox class"
698dcdb6 294ac_help="$ac_help
8168de4c 295 --enable-statline use wxStaticLine class"
698dcdb6 296ac_help="$ac_help
8168de4c 297 --enable-stattext use wxStaticText class"
1e6feb95 298ac_help="$ac_help
8168de4c 299 --enable-statusbar use wxStatusBar class"
698dcdb6 300ac_help="$ac_help
8168de4c 301 --enable-tabdialog use wxTabControl class"
698dcdb6 302ac_help="$ac_help
8168de4c 303 --enable-textctrl use wxTextCtrl class"
1e6feb95 304ac_help="$ac_help
8168de4c 305 --enable-togglebtn use wxToggleButton class"
698dcdb6 306ac_help="$ac_help
8168de4c 307 --enable-toolbar use wxToolBar class"
698dcdb6 308ac_help="$ac_help
8168de4c 309 --enable-tbarnative use native wxToolBar class"
698dcdb6 310ac_help="$ac_help
8168de4c 311 --enable-tbarsmpl use wxToolBarSimple class"
698dcdb6 312ac_help="$ac_help
8168de4c 313 --enable-treectrl use wxTreeCtrl class"
9f41d601
RR
314ac_help="$ac_help
315 --enable-popupwin use wxPopUpWindow class"
698dcdb6 316ac_help="$ac_help
b3e8d00a 317 --enable-commondlg use all common dialogs"
698dcdb6 318ac_help="$ac_help
8168de4c 319 --enable-choicedlg use wxChoiceDialog"
1e6feb95 320ac_help="$ac_help
8168de4c 321 --enable-coldlg use wxColourDialog"
1e6feb95 322ac_help="$ac_help
8168de4c 323 --enable-filedlg use wxFileDialog"
8db37e06
VZ
324ac_help="$ac_help
325 --enable-finddlg use wxFindReplaceDialog"
1e6feb95 326ac_help="$ac_help
8168de4c 327 --enable-fontdlg use wxFontDialog"
1e6feb95 328ac_help="$ac_help
8168de4c 329 --enable-dirdlg use wxDirDialog"
698dcdb6 330ac_help="$ac_help
8168de4c 331 --enable-msgdlg use wxMessageDialog"
1e6feb95 332ac_help="$ac_help
8168de4c 333 --enable-numberdlg use wxNumberEntryDialog"
cbca9943
VZ
334ac_help="$ac_help
335 --enable-splash use wxSplashScreen"
1e6feb95 336ac_help="$ac_help
8168de4c 337 --enable-textdlg use wxTextDialog"
698dcdb6 338ac_help="$ac_help
8168de4c 339 --enable-tipdlg use startup tips"
698dcdb6 340ac_help="$ac_help
8168de4c 341 --enable-progressdlg use wxProgressDialog"
b1f5d087
VZ
342ac_help="$ac_help
343 --enable-wizarddlg use wxWizard"
698dcdb6 344ac_help="$ac_help
8168de4c 345 --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes"
1e6feb95 346ac_help="$ac_help
8168de4c 347 --enable-miniframe use wxMiniFrame class"
698dcdb6 348ac_help="$ac_help
8168de4c 349 --enable-tooltips use wxToolTip class"
698dcdb6 350ac_help="$ac_help
8168de4c 351 --enable-splines use spline drawing code"
698dcdb6 352ac_help="$ac_help
8168de4c 353 --enable-validators use wxValidator and derived classes"
698dcdb6 354ac_help="$ac_help
8168de4c 355 --enable-busyinfo use wxBusyInfo"
698dcdb6 356ac_help="$ac_help
b3e8d00a 357 --enable-joystick use wxJoystick (Linux only)"
698dcdb6 358ac_help="$ac_help
8168de4c 359 --enable-metafiles use wxMetaFile (Windows only)"
24fd6d87
VZ
360ac_help="$ac_help
361 --enable-dragimage use wxDragImage"
edae8572
VZ
362ac_help="$ac_help
363 --enable-palette use wxPalette class"
1e6feb95 364ac_help="$ac_help
8168de4c 365 --enable-image use wxImage class"
698dcdb6 366ac_help="$ac_help
8168de4c 367 --enable-gif use gif images (GIF file format)"
698dcdb6 368ac_help="$ac_help
8168de4c 369 --enable-pcx use pcx images (PCX file format)"
698dcdb6 370ac_help="$ac_help
8168de4c 371 --enable-pnm use pnm images (PNM file format)"
698dcdb6 372ac_help="$ac_help
8168de4c 373 --enable-xpm use xpm images (XPM file format)"
698dcdb6
VZ
374ac_help="$ac_help
375 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)"
376ac_help="$ac_help
377 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)"
378ac_help="$ac_help
379 --disable-gtktest Do not try to compile and run a test GTK program"
380ac_help="$ac_help
381 --with-x use the X Window System"
10f2d63a
VZ
382
383# Initialize some variables set by options.
384# The variables have the same names as the options, with
385# dashes changed to underlines.
698dcdb6
VZ
386build=NONE
387cache_file=./config.cache
10f2d63a 388exec_prefix=NONE
698dcdb6 389host=NONE
10f2d63a 390no_create=
698dcdb6 391nonopt=NONE
10f2d63a
VZ
392no_recursion=
393prefix=NONE
394program_prefix=NONE
395program_suffix=NONE
396program_transform_name=s,x,x,
397silent=
398site=
399srcdir=
698dcdb6 400target=NONE
10f2d63a
VZ
401verbose=
402x_includes=NONE
403x_libraries=NONE
404bindir='${exec_prefix}/bin'
405sbindir='${exec_prefix}/sbin'
406libexecdir='${exec_prefix}/libexec'
407datadir='${prefix}/share'
408sysconfdir='${prefix}/etc'
409sharedstatedir='${prefix}/com'
410localstatedir='${prefix}/var'
411libdir='${exec_prefix}/lib'
412includedir='${prefix}/include'
413oldincludedir='/usr/include'
414infodir='${prefix}/info'
415mandir='${prefix}/man'
416
698dcdb6
VZ
417# Initialize some other variables.
418subdirs=
419MFLAGS= MAKEFLAGS=
420SHELL=${CONFIG_SHELL-/bin/sh}
421# Maximum number of lines to put in a shell here document.
422ac_max_here_lines=12
10f2d63a
VZ
423
424ac_prev=
425for ac_option
426do
698dcdb6 427
10f2d63a
VZ
428 # If the previous option needs an argument, assign it.
429 if test -n "$ac_prev"; then
430 eval "$ac_prev=\$ac_option"
431 ac_prev=
432 continue
433 fi
434
698dcdb6
VZ
435 case "$ac_option" in
436 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
437 *) ac_optarg= ;;
438 esac
10f2d63a
VZ
439
440 # Accept the important Cygnus configure options, so we can diagnose typos.
441
698dcdb6 442 case "$ac_option" in
10f2d63a
VZ
443
444 -bindir | --bindir | --bindi | --bind | --bin | --bi)
445 ac_prev=bindir ;;
446 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
698dcdb6 447 bindir="$ac_optarg" ;;
10f2d63a
VZ
448
449 -build | --build | --buil | --bui | --bu)
698dcdb6 450 ac_prev=build ;;
10f2d63a 451 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
698dcdb6 452 build="$ac_optarg" ;;
10f2d63a
VZ
453
454 -cache-file | --cache-file | --cache-fil | --cache-fi \
455 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
456 ac_prev=cache_file ;;
457 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
458 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
698dcdb6 459 cache_file="$ac_optarg" ;;
10f2d63a
VZ
460
461 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
462 ac_prev=datadir ;;
463 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
464 | --da=*)
698dcdb6 465 datadir="$ac_optarg" ;;
10f2d63a
VZ
466
467 -disable-* | --disable-*)
698dcdb6 468 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
10f2d63a 469 # Reject names that are not valid shell variable names.
698dcdb6
VZ
470 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
471 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
472 fi
473 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
474 eval "enable_${ac_feature}=no" ;;
10f2d63a
VZ
475
476 -enable-* | --enable-*)
698dcdb6 477 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
10f2d63a 478 # Reject names that are not valid shell variable names.
698dcdb6
VZ
479 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
480 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
481 fi
482 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
483 case "$ac_option" in
484 *=*) ;;
10f2d63a
VZ
485 *) ac_optarg=yes ;;
486 esac
698dcdb6 487 eval "enable_${ac_feature}='$ac_optarg'" ;;
10f2d63a
VZ
488
489 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
490 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
491 | --exec | --exe | --ex)
492 ac_prev=exec_prefix ;;
493 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
494 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
495 | --exec=* | --exe=* | --ex=*)
698dcdb6 496 exec_prefix="$ac_optarg" ;;
10f2d63a
VZ
497
498 -gas | --gas | --ga | --g)
499 # Obsolete; use --with-gas.
500 with_gas=yes ;;
501
698dcdb6
VZ
502 -help | --help | --hel | --he)
503 # Omit some internal or obsolete options to make the list less imposing.
504 # This message is too long to be a string in the A/UX 3.1 sh.
505 cat << EOF
506Usage: configure [options] [host]
507Options: [defaults in brackets after descriptions]
508Configuration:
509 --cache-file=FILE cache test results in FILE
510 --help print this message
511 --no-create do not create output files
512 --quiet, --silent do not print \`checking...' messages
513 --version print the version of autoconf that created configure
514Directory and file names:
515 --prefix=PREFIX install architecture-independent files in PREFIX
516 [$ac_default_prefix]
517 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
518 [same as prefix]
519 --bindir=DIR user executables in DIR [EPREFIX/bin]
520 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
521 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
522 --datadir=DIR read-only architecture-independent data in DIR
523 [PREFIX/share]
524 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
525 --sharedstatedir=DIR modifiable architecture-independent data in DIR
526 [PREFIX/com]
527 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
528 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
529 --includedir=DIR C header files in DIR [PREFIX/include]
530 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
531 --infodir=DIR info documentation in DIR [PREFIX/info]
532 --mandir=DIR man documentation in DIR [PREFIX/man]
533 --srcdir=DIR find the sources in DIR [configure dir or ..]
534 --program-prefix=PREFIX prepend PREFIX to installed program names
535 --program-suffix=SUFFIX append SUFFIX to installed program names
536 --program-transform-name=PROGRAM
537 run sed PROGRAM on installed program names
538EOF
539 cat << EOF
540Host type:
541 --build=BUILD configure for building on BUILD [BUILD=HOST]
542 --host=HOST configure for HOST [guessed]
543 --target=TARGET configure for TARGET [TARGET=HOST]
544Features and packages:
545 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
546 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
547 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
548 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
549 --x-includes=DIR X include files are in DIR
550 --x-libraries=DIR X library files are in DIR
551EOF
552 if test -n "$ac_help"; then
553 echo "--enable and --with options recognized:$ac_help"
554 fi
555 exit 0 ;;
10f2d63a
VZ
556
557 -host | --host | --hos | --ho)
698dcdb6 558 ac_prev=host ;;
10f2d63a 559 -host=* | --host=* | --hos=* | --ho=*)
698dcdb6 560 host="$ac_optarg" ;;
10f2d63a
VZ
561
562 -includedir | --includedir | --includedi | --included | --include \
563 | --includ | --inclu | --incl | --inc)
564 ac_prev=includedir ;;
565 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
566 | --includ=* | --inclu=* | --incl=* | --inc=*)
698dcdb6 567 includedir="$ac_optarg" ;;
10f2d63a
VZ
568
569 -infodir | --infodir | --infodi | --infod | --info | --inf)
570 ac_prev=infodir ;;
571 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
698dcdb6 572 infodir="$ac_optarg" ;;
10f2d63a
VZ
573
574 -libdir | --libdir | --libdi | --libd)
575 ac_prev=libdir ;;
576 -libdir=* | --libdir=* | --libdi=* | --libd=*)
698dcdb6 577 libdir="$ac_optarg" ;;
10f2d63a
VZ
578
579 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
580 | --libexe | --libex | --libe)
581 ac_prev=libexecdir ;;
582 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
583 | --libexe=* | --libex=* | --libe=*)
698dcdb6 584 libexecdir="$ac_optarg" ;;
10f2d63a
VZ
585
586 -localstatedir | --localstatedir | --localstatedi | --localstated \
587 | --localstate | --localstat | --localsta | --localst \
588 | --locals | --local | --loca | --loc | --lo)
589 ac_prev=localstatedir ;;
590 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
591 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
592 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
698dcdb6 593 localstatedir="$ac_optarg" ;;
10f2d63a
VZ
594
595 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
596 ac_prev=mandir ;;
597 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
698dcdb6 598 mandir="$ac_optarg" ;;
10f2d63a
VZ
599
600 -nfp | --nfp | --nf)
601 # Obsolete; use --without-fp.
602 with_fp=no ;;
603
604 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
605 | --no-cr | --no-c)
606 no_create=yes ;;
607
608 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
609 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
610 no_recursion=yes ;;
611
612 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
613 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
614 | --oldin | --oldi | --old | --ol | --o)
615 ac_prev=oldincludedir ;;
616 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
617 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
618 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
698dcdb6 619 oldincludedir="$ac_optarg" ;;
10f2d63a
VZ
620
621 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
622 ac_prev=prefix ;;
623 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
698dcdb6 624 prefix="$ac_optarg" ;;
10f2d63a
VZ
625
626 -program-prefix | --program-prefix | --program-prefi | --program-pref \
627 | --program-pre | --program-pr | --program-p)
628 ac_prev=program_prefix ;;
629 -program-prefix=* | --program-prefix=* | --program-prefi=* \
630 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
698dcdb6 631 program_prefix="$ac_optarg" ;;
10f2d63a
VZ
632
633 -program-suffix | --program-suffix | --program-suffi | --program-suff \
634 | --program-suf | --program-su | --program-s)
635 ac_prev=program_suffix ;;
636 -program-suffix=* | --program-suffix=* | --program-suffi=* \
637 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
698dcdb6 638 program_suffix="$ac_optarg" ;;
10f2d63a
VZ
639
640 -program-transform-name | --program-transform-name \
641 | --program-transform-nam | --program-transform-na \
642 | --program-transform-n | --program-transform- \
643 | --program-transform | --program-transfor \
644 | --program-transfo | --program-transf \
645 | --program-trans | --program-tran \
646 | --progr-tra | --program-tr | --program-t)
647 ac_prev=program_transform_name ;;
648 -program-transform-name=* | --program-transform-name=* \
649 | --program-transform-nam=* | --program-transform-na=* \
650 | --program-transform-n=* | --program-transform-=* \
651 | --program-transform=* | --program-transfor=* \
652 | --program-transfo=* | --program-transf=* \
653 | --program-trans=* | --program-tran=* \
654 | --progr-tra=* | --program-tr=* | --program-t=*)
698dcdb6 655 program_transform_name="$ac_optarg" ;;
10f2d63a
VZ
656
657 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
658 | -silent | --silent | --silen | --sile | --sil)
659 silent=yes ;;
660
661 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
662 ac_prev=sbindir ;;
663 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
664 | --sbi=* | --sb=*)
698dcdb6 665 sbindir="$ac_optarg" ;;
10f2d63a
VZ
666
667 -sharedstatedir | --sharedstatedir | --sharedstatedi \
668 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
669 | --sharedst | --shareds | --shared | --share | --shar \
670 | --sha | --sh)
671 ac_prev=sharedstatedir ;;
672 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
673 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
674 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
675 | --sha=* | --sh=*)
698dcdb6 676 sharedstatedir="$ac_optarg" ;;
10f2d63a
VZ
677
678 -site | --site | --sit)
679 ac_prev=site ;;
680 -site=* | --site=* | --sit=*)
698dcdb6 681 site="$ac_optarg" ;;
10f2d63a
VZ
682
683 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
684 ac_prev=srcdir ;;
685 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
698dcdb6 686 srcdir="$ac_optarg" ;;
10f2d63a
VZ
687
688 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
689 | --syscon | --sysco | --sysc | --sys | --sy)
690 ac_prev=sysconfdir ;;
691 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
692 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
698dcdb6 693 sysconfdir="$ac_optarg" ;;
10f2d63a
VZ
694
695 -target | --target | --targe | --targ | --tar | --ta | --t)
698dcdb6 696 ac_prev=target ;;
10f2d63a 697 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
698dcdb6 698 target="$ac_optarg" ;;
10f2d63a
VZ
699
700 -v | -verbose | --verbose | --verbos | --verbo | --verb)
701 verbose=yes ;;
702
698dcdb6
VZ
703 -version | --version | --versio | --versi | --vers)
704 echo "configure generated by autoconf version 2.13"
705 exit 0 ;;
10f2d63a
VZ
706
707 -with-* | --with-*)
698dcdb6 708 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
10f2d63a 709 # Reject names that are not valid shell variable names.
698dcdb6
VZ
710 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
711 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
712 fi
10f2d63a 713 ac_package=`echo $ac_package| sed 's/-/_/g'`
698dcdb6
VZ
714 case "$ac_option" in
715 *=*) ;;
10f2d63a
VZ
716 *) ac_optarg=yes ;;
717 esac
698dcdb6 718 eval "with_${ac_package}='$ac_optarg'" ;;
10f2d63a
VZ
719
720 -without-* | --without-*)
698dcdb6 721 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
10f2d63a 722 # Reject names that are not valid shell variable names.
698dcdb6
VZ
723 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
724 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
725 fi
726 ac_package=`echo $ac_package| sed 's/-/_/g'`
727 eval "with_${ac_package}=no" ;;
10f2d63a
VZ
728
729 --x)
730 # Obsolete; use --with-x.
731 with_x=yes ;;
732
733 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
734 | --x-incl | --x-inc | --x-in | --x-i)
735 ac_prev=x_includes ;;
736 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
737 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
698dcdb6 738 x_includes="$ac_optarg" ;;
10f2d63a
VZ
739
740 -x-libraries | --x-libraries | --x-librarie | --x-librari \
741 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
742 ac_prev=x_libraries ;;
743 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
744 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
698dcdb6 745 x_libraries="$ac_optarg" ;;
10f2d63a 746
698dcdb6 747 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
10f2d63a
VZ
748 ;;
749
750 *)
698dcdb6
VZ
751 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
752 echo "configure: warning: $ac_option: invalid host type" 1>&2
753 fi
754 if test "x$nonopt" != xNONE; then
755 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
756 fi
757 nonopt="$ac_option"
10f2d63a
VZ
758 ;;
759
760 esac
761done
762
763if test -n "$ac_prev"; then
698dcdb6
VZ
764 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
765fi
766
767trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
768
769# File descriptor usage:
770# 0 standard input
771# 1 file creation
772# 2 errors and warnings
773# 3 some systems may open it to /dev/tty
774# 4 used on the Kubota Titan
775# 6 checking for... messages and results
776# 5 compiler messages saved in config.log
777if test "$silent" = yes; then
778 exec 6>/dev/null
779else
780 exec 6>&1
10f2d63a 781fi
698dcdb6
VZ
782exec 5>./config.log
783
784echo "\
785This file contains any messages produced by compilers while
786running configure, to aid debugging if configure makes a mistake.
787" 1>&5
10f2d63a 788
698dcdb6
VZ
789# Strip out --no-create and --no-recursion so they do not pile up.
790# Also quote any args containing shell metacharacters.
791ac_configure_args=
792for ac_arg
10f2d63a 793do
698dcdb6
VZ
794 case "$ac_arg" in
795 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
796 | --no-cr | --no-c) ;;
797 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
798 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
799 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
800 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
801 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
10f2d63a
VZ
802 esac
803done
804
698dcdb6
VZ
805# NLS nuisances.
806# Only set these to C if already set. These must not be set unconditionally
807# because not all systems understand e.g. LANG=C (notably SCO).
808# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
809# Non-C LC_CTYPE values break the ctype check.
810if test "${LANG+set}" = set; then LANG=C; export LANG; fi
811if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
812if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
813if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
10f2d63a 814
698dcdb6
VZ
815# confdefs.h avoids OS command line length limits that DEFS can exceed.
816rm -rf conftest* confdefs.h
817# AIX cpp loses on an empty file, so make sure it contains at least a newline.
818echo > confdefs.h
10f2d63a 819
698dcdb6
VZ
820# A filename unique to this package, relative to the directory that
821# configure is in, which we can look for to find out if srcdir is correct.
822ac_unique_file=wx-config.in
10f2d63a
VZ
823
824# Find the source files, if location was not specified.
825if test -z "$srcdir"; then
826 ac_srcdir_defaulted=yes
827 # Try the directory containing this script, then its parent.
828 ac_prog=$0
698dcdb6 829 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
10f2d63a
VZ
830 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
831 srcdir=$ac_confdir
832 if test ! -r $srcdir/$ac_unique_file; then
833 srcdir=..
834 fi
835else
836 ac_srcdir_defaulted=no
837fi
838if test ! -r $srcdir/$ac_unique_file; then
839 if test "$ac_srcdir_defaulted" = yes; then
698dcdb6 840 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
10f2d63a 841 else
698dcdb6 842 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
10f2d63a
VZ
843 fi
844fi
698dcdb6 845srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
10f2d63a
VZ
846
847# Prefer explicitly selected file to automatically selected ones.
848if test -z "$CONFIG_SITE"; then
849 if test "x$prefix" != xNONE; then
850 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
851 else
852 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
853 fi
854fi
855for ac_site_file in $CONFIG_SITE; do
856 if test -r "$ac_site_file"; then
698dcdb6 857 echo "loading site script $ac_site_file"
10f2d63a
VZ
858 . "$ac_site_file"
859 fi
860done
861
862if test -r "$cache_file"; then
698dcdb6
VZ
863 echo "loading cache $cache_file"
864 . $cache_file
10f2d63a 865else
698dcdb6
VZ
866 echo "creating cache $cache_file"
867 > $cache_file
10f2d63a
VZ
868fi
869
870ac_ext=c
698dcdb6 871# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10f2d63a 872ac_cpp='$CPP $CPPFLAGS'
698dcdb6
VZ
873ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
874ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
875cross_compiling=$ac_cv_prog_cc_cross
876
877ac_exeext=
878ac_objext=o
879if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
880 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
881 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
882 ac_n= ac_c='
883' ac_t=' '
884 else
885 ac_n=-n ac_c= ac_t=
886 fi
10f2d63a 887else
698dcdb6 888 ac_n= ac_c='\c' ac_t=
10f2d63a 889fi
698dcdb6
VZ
890
891
10f2d63a 892
7c66a493
VZ
893ac_aux_dir=
894for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
895 if test -f $ac_dir/install-sh; then
896 ac_aux_dir=$ac_dir
897 ac_install_sh="$ac_aux_dir/install-sh -c"
898 break
899 elif test -f $ac_dir/install.sh; then
900 ac_aux_dir=$ac_dir
901 ac_install_sh="$ac_aux_dir/install.sh -c"
902 break
903 fi
904done
905if test -z "$ac_aux_dir"; then
698dcdb6 906 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
7c66a493 907fi
698dcdb6
VZ
908ac_config_guess=$ac_aux_dir/config.guess
909ac_config_sub=$ac_aux_dir/config.sub
910ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
703e0a69 911
698dcdb6
VZ
912
913# Do some error checking and defaulting for the host and target type.
914# The inputs are:
915# configure --host=HOST --target=TARGET --build=BUILD NONOPT
916#
917# The rules are:
918# 1. You are not allowed to specify --host, --target, and nonopt at the
919# same time.
920# 2. Host defaults to nonopt.
921# 3. If nonopt is not specified, then host defaults to the current host,
922# as determined by config.guess.
923# 4. Target and build default to nonopt.
924# 5. If nonopt is not specified, then target and build default to host.
7c66a493
VZ
925
926# The aliases save the names the user supplied, while $host etc.
927# will get canonicalized.
698dcdb6
VZ
928case $host---$target---$nonopt in
929NONE---*---* | *---NONE---* | *---*---NONE) ;;
930*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
931esac
932
933
934# Make sure we can run config.sub.
935if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
936else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
937fi
938
939echo $ac_n "checking host system type""... $ac_c" 1>&6
683dccda 940echo "configure:941: checking host system type" >&5
698dcdb6
VZ
941
942host_alias=$host
943case "$host_alias" in
944NONE)
945 case $nonopt in
946 NONE)
947 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
948 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
949 fi ;;
950 *) host_alias=$nonopt ;;
951 esac ;;
952esac
953
954host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
955host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
956host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
957host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
958echo "$ac_t""$host" 1>&6
959
960echo $ac_n "checking target system type""... $ac_c" 1>&6
683dccda 961echo "configure:962: checking target system type" >&5
698dcdb6
VZ
962
963target_alias=$target
964case "$target_alias" in
965NONE)
966 case $nonopt in
967 NONE) target_alias=$host_alias ;;
968 *) target_alias=$nonopt ;;
969 esac ;;
970esac
971
972target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
973target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
974target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
975target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
976echo "$ac_t""$target" 1>&6
977
978echo $ac_n "checking build system type""... $ac_c" 1>&6
683dccda 979echo "configure:980: checking build system type" >&5
698dcdb6
VZ
980
981build_alias=$build
982case "$build_alias" in
983NONE)
984 case $nonopt in
985 NONE) build_alias=$host_alias ;;
986 *) build_alias=$nonopt ;;
987 esac ;;
988esac
989
990build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
991build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
992build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
993build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
994echo "$ac_t""$build" 1>&6
995
996test "$host_alias" != "$target_alias" &&
7c66a493
VZ
997 test "$program_prefix$program_suffix$program_transform_name" = \
998 NONENONEs,x,x, &&
999 program_prefix=${target_alias}-
1000
698dcdb6
VZ
1001
1002
10f2d63a 1003WX_MAJOR_VERSION_NUMBER=2
37d403aa 1004WX_MINOR_VERSION_NUMBER=3
6c01ec02 1005WX_RELEASE_NUMBER=2
10f2d63a 1006
10f2d63a 1007WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER
10f2d63a 1008WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER
6426998c 1009
6c01ec02 1010WX_CURRENT=1
6426998c
RL
1011WX_REVISION=0
1012WX_AGE=0
1013
698dcdb6
VZ
1014
1015
10f2d63a
VZ
1016USE_UNIX=1
1017USE_WIN32=0
b12915c1 1018USE_BEOS=0
1216f52d 1019USE_MAC=0
b12915c1 1020
10f2d63a
VZ
1021USE_LINUX=
1022USE_SGI=
1023USE_HPUX=
1024USE_SYSV=
1025USE_SVR4=
1026USE_AIX=
1027USE_SUN=
1028USE_SOLARIS=
1029USE_SUNOS=
1030USE_ALPHA=
1031USE_OSF=
1032USE_BSD=
f11bdd03 1033USE_DARWIN=
10f2d63a 1034USE_FREEBSD=
95c8801c 1035USE_OPENBSD=
f6bcfd97 1036USE_NETBSD=
10f2d63a
VZ
1037USE_VMS=
1038USE_ULTRIX=
1039USE_CYGWIN=
1040USE_MINGW=
1041USE_DATA_GENERAL=
1042
ab9b9eab
VZ
1043NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1044
1e6feb95 1045ALL_TOOLKITS="CYGWIN GTK MAC MGL MINGW MOTIF PM WINE"
10f2d63a
VZ
1046
1047DEFAULT_wxUSE_GTK=0
1e6feb95
VZ
1048DEFAULT_wxUSE_MAC=0
1049DEFAULT_wxUSE_MGL=0
10f2d63a
VZ
1050DEFAULT_wxUSE_MOTIF=0
1051DEFAULT_wxUSE_MSW=0
e07802fc 1052DEFAULT_wxUSE_PM=0
1e6feb95 1053DEFAULT_wxUSE_WINE=0
10f2d63a
VZ
1054
1055DEFAULT_DEFAULT_wxUSE_GTK=0
1e6feb95
VZ
1056DEFAULT_DEFAULT_wxUSE_MAC=0
1057DEFAULT_DEFAULT_wxUSE_MGL=0
10f2d63a
VZ
1058DEFAULT_DEFAULT_wxUSE_MOTIF=0
1059DEFAULT_DEFAULT_wxUSE_MSW=0
e07802fc 1060DEFAULT_DEFAULT_wxUSE_PM=0
1e6feb95 1061DEFAULT_DEFAULT_wxUSE_WINE=0
10f2d63a 1062
d6a55c4b 1063PROGRAM_EXT=
3a922bb4 1064SO_SUFFIX=so
d6a55c4b 1065
10f2d63a
VZ
1066case "${host}" in
1067 *-hp-hpux* )
1068 USE_HPUX=1
1069 DEFAULT_DEFAULT_wxUSE_MOTIF=1
ab9b9eab 1070 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
3a922bb4 1071 SO_SUFFIX=sl
698dcdb6 1072 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1073#define __HPUX__ 1
1074EOF
1075
1076 ;;
1077 *-*-linux* )
1078 USE_LINUX=1
698dcdb6 1079 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1080#define __LINUX__ 1
1081EOF
1082
1083 TMP=`uname -m`
1084 if test "x$TMP" = "xalpha"; then
1085 USE_ALPHA=1
698dcdb6 1086 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1087#define __ALPHA__ 1
1088EOF
1089
1090 fi
1091 DEFAULT_DEFAULT_wxUSE_GTK=1
1092 ;;
1093 *-*-irix5* | *-*-irix6* )
1094 USE_SGI=1
1095 USE_SVR4=1
698dcdb6 1096 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1097#define __SGI__ 1
1098EOF
1099
698dcdb6 1100 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1101#define __SVR4__ 1
1102EOF
1103
1104 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1105 ;;
1106 *-*-solaris2* )
1107 USE_SUN=1
1108 USE_SOLARIS=1
1109 USE_SVR4=1
698dcdb6 1110 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1111#define __SUN__ 1
1112EOF
1113
698dcdb6 1114 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1115#define __SOLARIS__ 1
1116EOF
1117
698dcdb6 1118 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1119#define __SVR4__ 1
1120EOF
1121
1122 DEFAULT_DEFAULT_wxUSE_MOTIF=1
ab9b9eab 1123 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
10f2d63a
VZ
1124 ;;
1125 *-*-sunos4* )
1126 USE_SUN=1
1127 USE_SUNOS=1
1128 USE_BSD=1
698dcdb6 1129 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1130#define __SUN__ 1
1131EOF
1132
698dcdb6 1133 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1134#define __SUNOS__ 1
1135EOF
1136
698dcdb6 1137 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1138#define __BSD__ 1
1139EOF
1140
1141 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1142 ;;
f6bcfd97 1143 *-*-freebsd*)
10f2d63a
VZ
1144 USE_BSD=1
1145 USE_FREEBSD=1
698dcdb6 1146 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1147#define __FREEBSD__ 1
1148EOF
1149
698dcdb6 1150 cat >> confdefs.h <<\EOF
10f2d63a 1151#define __BSD__ 1
95c8801c
VS
1152EOF
1153
1154 DEFAULT_DEFAULT_wxUSE_GTK=1
1155 ;;
1156 *-*-openbsd*)
1157 USE_BSD=1
1158 USE_OPENBSD=1
698dcdb6 1159 cat >> confdefs.h <<\EOF
95c8801c
VS
1160#define __FREEBSD__ 1
1161EOF
1162
698dcdb6 1163 cat >> confdefs.h <<\EOF
95c8801c 1164#define __OPENBSD__ 1
f6bcfd97
BP
1165EOF
1166
1167 DEFAULT_DEFAULT_wxUSE_GTK=1
1168 ;;
1169 *-*-netbsd*)
1170 USE_BSD=1
1171 USE_NETBSD=1
698dcdb6 1172 cat >> confdefs.h <<\EOF
f6bcfd97
BP
1173#define __FREEBSD__ 1
1174EOF
1175
698dcdb6 1176 cat >> confdefs.h <<\EOF
f6bcfd97 1177#define __NETBSD__ 1
10f2d63a
VZ
1178EOF
1179
1180 DEFAULT_DEFAULT_wxUSE_GTK=1
1181 ;;
1182 *-*-osf* )
1183 USE_ALPHA=1
1184 USE_OSF=1
698dcdb6 1185 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1186#define __ALPHA__ 1
1187EOF
1188
698dcdb6 1189 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1190#define __OSF__ 1
1191EOF
1192
1193 DEFAULT_DEFAULT_wxUSE_MOTIF=1
f6bcfd97 1194 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
10f2d63a
VZ
1195 ;;
1196 *-*-dgux5* )
1197 USE_ALPHA=1
1198 USE_SVR4=1
698dcdb6 1199 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1200#define __ALPHA__ 1
1201EOF
1202
698dcdb6 1203 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1204#define __SVR4__ 1
1205EOF
1206
1207 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1208 ;;
1209 *-*-sysv5* )
1210 USE_SYSV=1
1211 USE_SVR4=1
698dcdb6 1212 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1213#define __SYSV__ 1
1214EOF
1215
698dcdb6 1216 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1217#define __SVR4__ 1
1218EOF
1219
1220 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1221 ;;
1222 *-*-aix* )
1223 USE_AIX=1
1224 USE_SYSV=1
1225 USE_SVR4=1
698dcdb6 1226 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1227#define __AIX__ 1
1228EOF
1229
698dcdb6 1230 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1231#define __SYSV__ 1
1232EOF
1233
698dcdb6 1234 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1235#define __SVR4__ 1
1236EOF
1237
1238 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1239 ;;
1240
1c8183e2 1241 *-*-cygwin* | *-*-mingw32* )
10f2d63a
VZ
1242 USE_UNIX=0
1243 USE_WIN32=1
3a922bb4 1244 SO_SUFFIX=dll
698dcdb6 1245 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1246#define __WIN32__ 1
1247EOF
1248
698dcdb6 1249 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1250#define __WIN95__ 1
1251EOF
1252
698dcdb6 1253 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1254#define __WINDOWS__ 1
1255EOF
1256
698dcdb6 1257 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1258#define __GNUWIN32__ 1
1259EOF
1260
698dcdb6 1261 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1262#define STRICT 1
1263EOF
1264
698dcdb6 1265 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1266#define WINVER 0x0400
1267EOF
1268
cf27ef00 1269 PROGRAM_EXT=".exe"
7b7a7637 1270 RESCOMP=windres
10f2d63a
VZ
1271 DEFAULT_DEFAULT_wxUSE_MSW=1
1272 ;;
1273
1274 *-pc-os2_emx )
698dcdb6 1275 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1276#define __EMX__ 1
1277EOF
1278
cf27ef00 1279 PROGRAM_EXT=".exe"
e07802fc 1280 DEFAULT_DEFAULT_wxUSE_PM=1
10f2d63a
VZ
1281 ;;
1282
d08b457b
GD
1283 powerpc-*-darwin* )
1284 USE_BSD=1
f11bdd03 1285 USE_DARWIN=1
3a922bb4 1286 SO_SUFFIX=dylib
698dcdb6 1287 cat >> confdefs.h <<\EOF
f11bdd03 1288#define __BSD__ 1
b4085ce6
GD
1289EOF
1290
698dcdb6 1291 cat >> confdefs.h <<\EOF
f11bdd03 1292#define __DARWIN__ 1
d08b457b
GD
1293EOF
1294
1295 cat >> confdefs.h <<\EOF
1296#define __POWERPC__ 1
b4085ce6
GD
1297EOF
1298
1299 DEFAULT_DEFAULT_wxUSE_MAC=1
1300 ;;
1301
b12915c1
VZ
1302 *-*-beos* )
1303 USE_BEOS=1
698dcdb6 1304 cat >> confdefs.h <<\EOF
b12915c1
VZ
1305#define __BEOS__ 1
1306EOF
1307
1308 ;;
1309
10f2d63a 1310 *)
698dcdb6 1311 { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; }
10f2d63a
VZ
1312esac
1313
1314if test "$USE_UNIX" = 1 ; then
b12915c1 1315 wxUSE_UNIX=yes
698dcdb6 1316 cat >> confdefs.h <<\EOF
10f2d63a
VZ
1317#define __UNIX__ 1
1318EOF
1319
10f2d63a
VZ
1320fi
1321
2389f33b
VZ
1322if test "$USE_LINUX" = 1; then
1323 echo $ac_n "checking for glibc 2.1 or later""... $ac_c" 1>&6
683dccda 1324echo "configure:1325: checking for glibc 2.1 or later" >&5
2389f33b
VZ
1325if eval "test \"`echo '$''{'wx_lib_glibc21'+set}'`\" = set"; then
1326 echo $ac_n "(cached) $ac_c" 1>&6
1327else
1328 cat > conftest.$ac_ext <<EOF
683dccda 1329#line 1330 "configure"
2389f33b
VZ
1330#include "confdefs.h"
1331#include <features.h>
1332int main() {
1333
1334 #if !__GLIBC_PREREQ(2, 1)
1335 #error not glibc2.1
1336 #endif
1337
1338; return 0; }
1339EOF
683dccda 1340if { (eval echo configure:1341: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2389f33b
VZ
1341 rm -rf conftest*
1342
1343 wx_lib_glibc21=yes
1344
1345else
1346 echo "configure: failed program was:" >&5
1347 cat conftest.$ac_ext >&5
1348 rm -rf conftest*
1349
1350 wx_lib_glibc21=no
1351
1352
1353fi
1354rm -f conftest*
1355
1356fi
1357
1358echo "$ac_t""$wx_lib_glibc21" 1>&6
2389f33b
VZ
1359 if test "$wx_lib_glibc21" = "yes"; then
1360 cat >> confdefs.h <<\EOF
1361#define wxHAVE_GLIBC2 1
1362EOF
1363
1364 fi
1365fi
10f2d63a 1366
1e487827 1367
1e487827 1368
6232543b 1369
10f2d63a
VZ
1370 wx_arg_cache_file="configarg.cache"
1371 echo "loading argument cache $wx_arg_cache_file"
1372 rm -f ${wx_arg_cache_file}.tmp
1373 touch ${wx_arg_cache_file}.tmp
1374 touch ${wx_arg_cache_file}
698dcdb6 1375
10f2d63a
VZ
1376
1377DEBUG_CONFIGURE=0
1378if test $DEBUG_CONFIGURE = 1; then
1e6feb95
VZ
1379 DEFAULT_wxUSE_UNIVERSAL=no
1380
10f2d63a
VZ
1381 DEFAULT_wxUSE_THREADS=yes
1382
1383 DEFAULT_wxUSE_SHARED=yes
3a922bb4 1384 DEFAULT_wxUSE_SONAME=no
1e6feb95 1385 DEFAULT_wxUSE_OPTIMISE=no
10f2d63a
VZ
1386 DEFAULT_wxUSE_PROFILE=no
1387 DEFAULT_wxUSE_NO_DEPS=no
1388 DEFAULT_wxUSE_NO_RTTI=no
1389 DEFAULT_wxUSE_NO_EXCEPTIONS=no
1390 DEFAULT_wxUSE_PERMISSIVE=no
1391 DEFAULT_wxUSE_DEBUG_FLAG=yes
1392 DEFAULT_wxUSE_DEBUG_INFO=yes
1393 DEFAULT_wxUSE_DEBUG_GDB=yes
1394 DEFAULT_wxUSE_MEM_TRACING=no
1395 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1396 DEFAULT_wxUSE_DMALLOC=no
683dccda 1397 DEFAULT_wxUSE_PRECOMP=yes
10f2d63a
VZ
1398 DEFAULT_wxUSE_APPLE_IEEE=no
1399
1400 DEFAULT_wxUSE_LOG=yes
1e6feb95
VZ
1401 DEFAULT_wxUSE_LOGWINDOW=no
1402 DEFAULT_wxUSE_LOGGUI=no
10f2d63a
VZ
1403
1404 DEFAULT_wxUSE_GUI=yes
1e6feb95 1405 DEFAULT_wxUSE_CONTROLS=no
10f2d63a 1406
3e44f09d 1407 DEFAULT_wxUSE_REGEX=no
10f2d63a
VZ
1408 DEFAULT_wxUSE_ZLIB=no
1409 DEFAULT_wxUSE_LIBPNG=no
1410 DEFAULT_wxUSE_LIBJPEG=no
c7a2bf27 1411 DEFAULT_wxUSE_LIBTIFF=no
10f2d63a 1412 DEFAULT_wxUSE_ODBC=no
3fed1840 1413 DEFAULT_wxUSE_FREETYPE=no
bdad4e7e 1414 DEFAULT_wxUSE_OPENGL=no
10f2d63a 1415
eb4efbdc 1416 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
4f3c5f06 1417 DEFAULT_wxUSE_SNGLINST_CHECKER=no
10f2d63a 1418 DEFAULT_wxUSE_STD_IOSTREAM=no
1e6feb95
VZ
1419 DEFAULT_wxUSE_CMDLINE_PARSER=no
1420 DEFAULT_wxUSE_DATETIME=no
1421 DEFAULT_wxUSE_TIMEDATE=no
1422 DEFAULT_wxUSE_TIMER=no
1423 DEFAULT_wxUSE_STOPWATCH=no
10f2d63a 1424 DEFAULT_wxUSE_FILE=no
1e6feb95 1425 DEFAULT_wxUSE_FFILE=no
10f2d63a 1426 DEFAULT_wxUSE_TEXTFILE=no
10f2d63a
VZ
1427 DEFAULT_wxUSE_WAVE=no
1428 DEFAULT_wxUSE_INTL=no
1429 DEFAULT_wxUSE_CONFIG=no
1e6feb95 1430 DEFAULT_wxUSE_FONTMAP=no
10f2d63a
VZ
1431 DEFAULT_wxUSE_STREAMS=no
1432 DEFAULT_wxUSE_SOCKETS=no
1433 DEFAULT_wxUSE_DIALUP_MANAGER=no
1434 DEFAULT_wxUSE_SERIAL=no
1435 DEFAULT_wxUSE_JOYSTICK=no
1436 DEFAULT_wxUSE_DYNLIB_CLASS=no
1437 DEFAULT_wxUSE_LONGLONG=no
e8f65ba6 1438 DEFAULT_wxUSE_GEOMETRY=no
10f2d63a
VZ
1439
1440 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
1441 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
1442 DEFAULT_wxUSE_POSTSCRIPT=no
1443
1444 DEFAULT_wxUSE_X_RESOURCES=no
1445 DEFAULT_wxUSE_CLIPBOARD=no
1446 DEFAULT_wxUSE_TOOLTIPS=no
1447 DEFAULT_wxUSE_DRAG_AND_DROP=no
24fd6d87 1448 DEFAULT_wxUSE_DRAGIMAGE=no
10f2d63a
VZ
1449 DEFAULT_wxUSE_SPLINES=no
1450
1451 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
1452 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
1453 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
1454
1455 DEFAULT_wxUSE_PROLOGIO=no
1456 DEFAULT_wxUSE_RESOURCES=no
1457 DEFAULT_wxUSE_CONSTRAINTS=no
1458 DEFAULT_wxUSE_IPC=no
1459 DEFAULT_wxUSE_HELP=no
29fd3c0c 1460 DEFAULT_wxUSE_MS_HTML_HELP=no
3379ed37 1461 DEFAULT_wxUSE_WXHTML_HELP=no
24176f2c 1462 DEFAULT_wxUSE_TREELAYOUT=no
10f2d63a 1463 DEFAULT_wxUSE_METAFILE=no
1e6feb95 1464 DEFAULT_wxUSE_MIMETYPE=no
3e44f09d 1465 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
10f2d63a
VZ
1466
1467 DEFAULT_wxUSE_COMMONDLGS=no
1e6feb95
VZ
1468 DEFAULT_wxUSE_CHOICEDLG=no
1469 DEFAULT_wxUSE_COLOURDLG=no
10f2d63a 1470 DEFAULT_wxUSE_DIRDLG=no
1e6feb95 1471 DEFAULT_wxUSE_FILEDLG=no
8db37e06 1472 DEFAULT_wxUSE_FINDREPLDLG=no
1e6feb95
VZ
1473 DEFAULT_wxUSE_FONTDLG=no
1474 DEFAULT_wxUSE_MSGDLG=no
1475 DEFAULT_wxUSE_NUMBERDLG=no
10f2d63a 1476 DEFAULT_wxUSE_TEXTDLG=no
cbca9943 1477 DEFAULT_wxUSE_SPLASH=no
10f2d63a
VZ
1478 DEFAULT_wxUSE_STARTUP_TIPS=no
1479 DEFAULT_wxUSE_PROGRESSDLG=no
b1f5d087
VZ
1480 DEFAULT_wxUSE_WIZARDDLG=no
1481
1e6feb95 1482 DEFAULT_wxUSE_MENUS=no
10f2d63a
VZ
1483 DEFAULT_wxUSE_MINIFRAME=no
1484 DEFAULT_wxUSE_HTML=no
24528b0c 1485 DEFAULT_wxUSE_FILESYSTEM=no
10f2d63a
VZ
1486 DEFAULT_wxUSE_FS_INET=no
1487 DEFAULT_wxUSE_FS_ZIP=no
1488 DEFAULT_wxUSE_BUSYINFO=no
1489 DEFAULT_wxUSE_ZIPSTREAM=no
1e6feb95 1490 DEFAULT_wxUSE_VALIDATORS=no
10f2d63a
VZ
1491
1492 DEFAULT_wxUSE_ACCEL=no
1e6feb95 1493 DEFAULT_wxUSE_BUTTON=no
10f2d63a 1494 DEFAULT_wxUSE_BMPBUTTON=no
1e6feb95
VZ
1495 DEFAULT_wxUSE_CALCTRL=no
1496 DEFAULT_wxUSE_CARET=no
10f2d63a
VZ
1497 DEFAULT_wxUSE_CHECKBOX=no
1498 DEFAULT_wxUSE_CHECKLST=no
1e6feb95 1499 DEFAULT_wxUSE_CHOICE=no
10f2d63a
VZ
1500 DEFAULT_wxUSE_COMBOBOX=no
1501 DEFAULT_wxUSE_GAUGE=no
1502 DEFAULT_wxUSE_GRID=no
1503 DEFAULT_wxUSE_NEW_GRID=no
1504 DEFAULT_wxUSE_IMAGLIST=no
1505 DEFAULT_wxUSE_LISTBOX=no
1506 DEFAULT_wxUSE_LISTCTRL=no
1507 DEFAULT_wxUSE_NOTEBOOK=no
24176f2c 1508 DEFAULT_wxUSE_PROPSHEET=no
10f2d63a
VZ
1509 DEFAULT_wxUSE_RADIOBOX=no
1510 DEFAULT_wxUSE_RADIOBTN=no
1511 DEFAULT_wxUSE_SASH=no
1512 DEFAULT_wxUSE_SCROLLBAR=no
1513 DEFAULT_wxUSE_SLIDER=no
1514 DEFAULT_wxUSE_SPINBTN=no
56cfaa52 1515 DEFAULT_wxUSE_SPINCTRL=no
10f2d63a
VZ
1516 DEFAULT_wxUSE_SPLITTER=no
1517 DEFAULT_wxUSE_STATBMP=no
1518 DEFAULT_wxUSE_STATBOX=no
1519 DEFAULT_wxUSE_STATLINE=no
1e6feb95 1520 DEFAULT_wxUSE_STATTEXT=no
10f2d63a
VZ
1521 DEFAULT_wxUSE_STATUSBAR=yes
1522 DEFAULT_wxUSE_TABDIALOG=no
1e6feb95 1523 DEFAULT_wxUSE_TEXTCTRL=no
1db8dc4a 1524 DEFAULT_wxUSE_TOGGLEBTN=no
10f2d63a 1525 DEFAULT_wxUSE_TOOLBAR=no
360d6699
VZ
1526 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
1527 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
10f2d63a 1528 DEFAULT_wxUSE_TREECTRL=no
9f41d601 1529 DEFAULT_wxUSE_POPUPWIN=no
10f2d63a
VZ
1530
1531 DEFAULT_wxUSE_UNICODE=no
1532 DEFAULT_wxUSE_WCSRTOMBS=no
1533
edae8572 1534 DEFAULT_wxUSE_PALETTE=no
0046ff7c 1535 DEFAULT_wxUSE_IMAGE=no
10f2d63a
VZ
1536 DEFAULT_wxUSE_GIF=no
1537 DEFAULT_wxUSE_PCX=no
1538 DEFAULT_wxUSE_PNM=no
0046ff7c 1539 DEFAULT_wxUSE_XPM=no
10f2d63a 1540else
1e6feb95
VZ
1541 DEFAULT_wxUSE_UNIVERSAL=no
1542
10f2d63a
VZ
1543 DEFAULT_wxUSE_THREADS=yes
1544
1545 DEFAULT_wxUSE_SHARED=yes
3a922bb4 1546 DEFAULT_wxUSE_SONAME=no
10f2d63a
VZ
1547 DEFAULT_wxUSE_OPTIMISE=yes
1548 DEFAULT_wxUSE_PROFILE=no
1549 DEFAULT_wxUSE_NO_DEPS=no
1550 DEFAULT_wxUSE_NO_RTTI=no
1551 DEFAULT_wxUSE_NO_EXCEPTIONS=no
1552 DEFAULT_wxUSE_PERMISSIVE=no
1553 DEFAULT_wxUSE_DEBUG_FLAG=no
1554 DEFAULT_wxUSE_DEBUG_INFO=no
1555 DEFAULT_wxUSE_DEBUG_GDB=no
1556 DEFAULT_wxUSE_MEM_TRACING=no
1557 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1558 DEFAULT_wxUSE_DMALLOC=no
683dccda 1559 DEFAULT_wxUSE_PRECOMP=yes
10f2d63a
VZ
1560 DEFAULT_wxUSE_APPLE_IEEE=yes
1561
1562 DEFAULT_wxUSE_LOG=yes
d73be714
VZ
1563 DEFAULT_wxUSE_LOGWINDOW=yes
1564 DEFAULT_wxUSE_LOGGUI=yes
10f2d63a
VZ
1565
1566 DEFAULT_wxUSE_GUI=yes
1567
831b3152 1568 DEFAULT_wxUSE_REGEX=yes
10f2d63a
VZ
1569 DEFAULT_wxUSE_ZLIB=yes
1570 DEFAULT_wxUSE_LIBPNG=yes
1571 DEFAULT_wxUSE_LIBJPEG=yes
b47c832e 1572 DEFAULT_wxUSE_LIBTIFF=yes
16b52fa1 1573 DEFAULT_wxUSE_ODBC=no
3fed1840 1574 DEFAULT_wxUSE_FREETYPE=no
bdad4e7e 1575 DEFAULT_wxUSE_OPENGL=no
10f2d63a 1576
eb4efbdc 1577 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
4f3c5f06 1578 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
10f2d63a 1579 DEFAULT_wxUSE_STD_IOSTREAM=no
1e6feb95
VZ
1580 DEFAULT_wxUSE_CMDLINE_PARSER=yes
1581 DEFAULT_wxUSE_DATETIME=yes
1582 DEFAULT_wxUSE_TIMEDATE=no
1583 DEFAULT_wxUSE_TIMER=yes
1584 DEFAULT_wxUSE_STOPWATCH=yes
10f2d63a 1585 DEFAULT_wxUSE_FILE=yes
1e6feb95 1586 DEFAULT_wxUSE_FFILE=yes
10f2d63a 1587 DEFAULT_wxUSE_TEXTFILE=yes
10f2d63a
VZ
1588 DEFAULT_wxUSE_WAVE=no
1589 DEFAULT_wxUSE_INTL=yes
1590 DEFAULT_wxUSE_CONFIG=yes
1e6feb95 1591 DEFAULT_wxUSE_FONTMAP=yes
10f2d63a
VZ
1592 DEFAULT_wxUSE_STREAMS=yes
1593 DEFAULT_wxUSE_SOCKETS=yes
1594 DEFAULT_wxUSE_DIALUP_MANAGER=yes
1595 DEFAULT_wxUSE_SERIAL=yes
1596 DEFAULT_wxUSE_JOYSTICK=yes
1597 DEFAULT_wxUSE_DYNLIB_CLASS=yes
b685cd9b 1598 DEFAULT_wxUSE_LONGLONG=yes
e8f65ba6 1599 DEFAULT_wxUSE_GEOMETRY=yes
10f2d63a
VZ
1600
1601 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
1602 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
1603 DEFAULT_wxUSE_POSTSCRIPT=yes
1604
1605 DEFAULT_wxUSE_X_RESOURCES=no
1606 DEFAULT_wxUSE_CLIPBOARD=yes
1607 DEFAULT_wxUSE_TOOLTIPS=yes
1608 DEFAULT_wxUSE_DRAG_AND_DROP=yes
24fd6d87 1609 DEFAULT_wxUSE_DRAGIMAGE=yes
10f2d63a
VZ
1610 DEFAULT_wxUSE_SPLINES=yes
1611
1612 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
1613 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
1614 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
1615
1616 DEFAULT_wxUSE_PROLOGIO=yes
1617 DEFAULT_wxUSE_RESOURCES=yes
1618 DEFAULT_wxUSE_CONSTRAINTS=yes
1619 DEFAULT_wxUSE_IPC=yes
1620 DEFAULT_wxUSE_HELP=yes
29fd3c0c 1621 DEFAULT_wxUSE_MS_HTML_HELP=yes
3379ed37 1622 DEFAULT_wxUSE_WXHTML_HELP=yes
24176f2c 1623 DEFAULT_wxUSE_TREELAYOUT=yes
10f2d63a 1624 DEFAULT_wxUSE_METAFILE=yes
1e6feb95 1625 DEFAULT_wxUSE_MIMETYPE=yes
3e44f09d 1626 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
10f2d63a
VZ
1627
1628 DEFAULT_wxUSE_COMMONDLGS=yes
1e6feb95
VZ
1629 DEFAULT_wxUSE_CHOICEDLG=yes
1630 DEFAULT_wxUSE_COLOURDLG=yes
10f2d63a 1631 DEFAULT_wxUSE_DIRDLG=yes
1e6feb95 1632 DEFAULT_wxUSE_FILEDLG=yes
8db37e06 1633 DEFAULT_wxUSE_FINDREPLDLG=yes
1e6feb95
VZ
1634 DEFAULT_wxUSE_FONTDLG=yes
1635 DEFAULT_wxUSE_MSGDLG=yes
1636 DEFAULT_wxUSE_NUMBERDLG=yes
10f2d63a 1637 DEFAULT_wxUSE_TEXTDLG=yes
cbca9943 1638 DEFAULT_wxUSE_SPLASH=yes
10f2d63a
VZ
1639 DEFAULT_wxUSE_STARTUP_TIPS=yes
1640 DEFAULT_wxUSE_PROGRESSDLG=yes
f33f19dd
VZ
1641 DEFAULT_wxUSE_WIZARDDLG=yes
1642
1e6feb95 1643 DEFAULT_wxUSE_MENUS=yes
10f2d63a
VZ
1644 DEFAULT_wxUSE_MINIFRAME=yes
1645 DEFAULT_wxUSE_HTML=yes
24528b0c 1646 DEFAULT_wxUSE_FILESYSTEM=yes
10f2d63a
VZ
1647 DEFAULT_wxUSE_FS_INET=yes
1648 DEFAULT_wxUSE_FS_ZIP=yes
1649 DEFAULT_wxUSE_BUSYINFO=yes
1650 DEFAULT_wxUSE_ZIPSTREAM=yes
1651 DEFAULT_wxUSE_VALIDATORS=yes
1652
1653 DEFAULT_wxUSE_ACCEL=yes
1e6feb95 1654 DEFAULT_wxUSE_BUTTON=yes
10f2d63a 1655 DEFAULT_wxUSE_BMPBUTTON=yes
1e6feb95
VZ
1656 DEFAULT_wxUSE_CALCTRL=yes
1657 DEFAULT_wxUSE_CARET=yes
10f2d63a
VZ
1658 DEFAULT_wxUSE_CHECKBOX=yes
1659 DEFAULT_wxUSE_CHECKLST=yes
1660 DEFAULT_wxUSE_CHOICE=yes
1661 DEFAULT_wxUSE_COMBOBOX=yes
1662 DEFAULT_wxUSE_GAUGE=yes
1663 DEFAULT_wxUSE_GRID=yes
cc977e5f 1664 DEFAULT_wxUSE_NEW_GRID=yes
10f2d63a
VZ
1665 DEFAULT_wxUSE_IMAGLIST=yes
1666 DEFAULT_wxUSE_LISTBOX=yes
1667 DEFAULT_wxUSE_LISTCTRL=yes
1668 DEFAULT_wxUSE_NOTEBOOK=yes
24176f2c 1669 DEFAULT_wxUSE_PROPSHEET=yes
10f2d63a
VZ
1670 DEFAULT_wxUSE_RADIOBOX=yes
1671 DEFAULT_wxUSE_RADIOBTN=yes
1672 DEFAULT_wxUSE_SASH=yes
1673 DEFAULT_wxUSE_SCROLLBAR=yes
1674 DEFAULT_wxUSE_SLIDER=yes
1675 DEFAULT_wxUSE_SPINBTN=yes
56cfaa52 1676 DEFAULT_wxUSE_SPINCTRL=yes
10f2d63a
VZ
1677 DEFAULT_wxUSE_SPLITTER=yes
1678 DEFAULT_wxUSE_STATBMP=yes
1679 DEFAULT_wxUSE_STATBOX=yes
1680 DEFAULT_wxUSE_STATLINE=yes
1e6feb95 1681 DEFAULT_wxUSE_STATTEXT=yes
10f2d63a
VZ
1682 DEFAULT_wxUSE_STATUSBAR=yes
1683 DEFAULT_wxUSE_TABDIALOG=no
1e6feb95 1684 DEFAULT_wxUSE_TEXTCTRL=yes
1db8dc4a 1685 DEFAULT_wxUSE_TOGGLEBTN=yes
10f2d63a 1686 DEFAULT_wxUSE_TOOLBAR=yes
360d6699
VZ
1687 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
1688 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
10f2d63a 1689 DEFAULT_wxUSE_TREECTRL=yes
9f41d601 1690 DEFAULT_wxUSE_POPUPWIN=yes
10f2d63a
VZ
1691
1692 DEFAULT_wxUSE_UNICODE=no
1693 DEFAULT_wxUSE_WCSRTOMBS=no
1694
edae8572 1695 DEFAULT_wxUSE_PALETTE=yes
0046ff7c 1696 DEFAULT_wxUSE_IMAGE=yes
10f2d63a
VZ
1697 DEFAULT_wxUSE_GIF=yes
1698 DEFAULT_wxUSE_PCX=yes
1699 DEFAULT_wxUSE_PNM=yes
0046ff7c 1700 DEFAULT_wxUSE_XPM=yes
10f2d63a
VZ
1701fi
1702
698dcdb6
VZ
1703
1704
10f2d63a
VZ
1705for toolkit in `echo $ALL_TOOLKITS`; do
1706 LINE=`grep "wxUSE_$toolkit" ${wx_arg_cache_file}`
1707 if test "x$LINE" != x ; then
1708 has_toolkit_in_cache=1
1709 eval "DEFAULT_$LINE"
1710 eval "CACHE_$toolkit=1"
1711 fi
1712done
1713
698dcdb6
VZ
1714
1715
1716 echo $ac_n "checking for --enable-gui""... $ac_c" 1>&6
683dccda 1717echo "configure:1718: checking for --enable-gui" >&5
10f2d63a
VZ
1718 no_cache=0
1719 # Check whether --enable-gui or --disable-gui was given.
1720if test "${enable_gui+set}" = set; then
1721 enableval="$enable_gui"
698dcdb6 1722
10f2d63a
VZ
1723 if test "$enableval" = yes; then
1724 ac_cv_use_gui='wxUSE_GUI=yes'
1725 else
1726 ac_cv_use_gui='wxUSE_GUI=no'
1727 fi
698dcdb6 1728
10f2d63a 1729else
698dcdb6 1730
10f2d63a
VZ
1731 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
1732 if test "x$LINE" != x ; then
1733 eval "DEFAULT_$LINE"
1734 else
1735 no_cache=1
1736 fi
1737
1738 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
698dcdb6
VZ
1739
1740fi
10f2d63a
VZ
1741
1742
1743 eval "$ac_cv_use_gui"
1744 if test "$no_cache" != 1; then
1745 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
1746 fi
1747
1748 if test "$wxUSE_GUI" = yes; then
698dcdb6 1749 echo "$ac_t""yes" 1>&6
10f2d63a 1750 else
698dcdb6 1751 echo "$ac_t""no" 1>&6
10f2d63a 1752 fi
698dcdb6 1753
10f2d63a 1754
b12915c1 1755if test "$wxUSE_GUI" = "yes"; then
10f2d63a 1756
1e6feb95
VZ
1757
1758 echo $ac_n "checking for --enable-universal""... $ac_c" 1>&6
683dccda 1759echo "configure:1760: checking for --enable-universal" >&5
1e6feb95
VZ
1760 no_cache=0
1761 # Check whether --enable-universal or --disable-universal was given.
1762if test "${enable_universal+set}" = set; then
1763 enableval="$enable_universal"
1764
1765 if test "$enableval" = yes; then
1766 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
1767 else
1768 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
1769 fi
1770
1771else
1772
1773 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
1774 if test "x$LINE" != x ; then
1775 eval "DEFAULT_$LINE"
1776 else
1777 no_cache=1
1778 fi
1779
1780 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
1781
1782fi
1783
1784
1785 eval "$ac_cv_use_universal"
1786 if test "$no_cache" != 1; then
1787 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
1788 fi
1789
1790 if test "$wxUSE_UNIVERSAL" = yes; then
1791 echo "$ac_t""yes" 1>&6
1792 else
1793 echo "$ac_t""no" 1>&6
1794 fi
1795
10f2d63a
VZ
1796# Check whether --with-gtk or --without-gtk was given.
1797if test "${with_gtk+set}" = set; then
1798 withval="$with_gtk"
1799 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
698dcdb6 1800fi
10f2d63a
VZ
1801
1802# Check whether --with-motif or --without-motif was given.
1803if test "${with_motif+set}" = set; then
1804 withval="$with_motif"
1805 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
698dcdb6 1806fi
10f2d63a 1807
b4085ce6
GD
1808# Check whether --with-mac or --without-mac was given.
1809if test "${with_mac+set}" = set; then
1810 withval="$with_mac"
1811 wxUSE_MAC="$withval" TOOLKIT_GIVEN=1
698dcdb6 1812fi
b4085ce6 1813
10f2d63a
VZ
1814# Check whether --with-wine or --without-wine was given.
1815if test "${with_wine+set}" = set; then
1816 withval="$with_wine"
1817 wxUSE_WINE="$withval" CACHE_WINE=1 TOOLKIT_GIVEN=1
698dcdb6 1818fi
10f2d63a
VZ
1819
1820# Check whether --with-cygwin or --without-cygwin was given.
1821if test "${with_cygwin+set}" = set; then
1822 withval="$with_cygwin"
1823 wxUSE_CYGWIN="$withval" CACHE_CYGWIN=1 TOOLKIT_GIVEN=1
698dcdb6 1824fi
10f2d63a
VZ
1825
1826# Check whether --with-mingw or --without-mingw was given.
1827if test "${with_mingw+set}" = set; then
1828 withval="$with_mingw"
1829 wxUSE_MINGW="$withval" CACHE_MINGW=1 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
683dccda 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'
1868 else
698dcdb6 1869 { echo "configure: error: Invalid value for --with-libpng: should be yes, no or sys" 1>&2; exit 1; }
10f2d63a 1870 fi
698dcdb6 1871
10f2d63a 1872else
698dcdb6 1873
b12915c1 1874 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
10f2d63a
VZ
1875 if test "x$LINE" != x ; then
1876 eval "DEFAULT_$LINE"
1877 else
1878 no_cache=1
1879 fi
1880
b12915c1 1881 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
698dcdb6
VZ
1882
1883fi
10f2d63a
VZ
1884
1885
b12915c1 1886 eval "$ac_cv_use_libpng"
10f2d63a 1887 if test "$no_cache" != 1; then
b12915c1 1888 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
1889 fi
1890
b12915c1 1891 if test "$wxUSE_LIBPNG" = yes; then
698dcdb6 1892 echo "$ac_t""yes" 1>&6
422107f9 1893 elif test "$wxUSE_LIBPNG" = no; then
698dcdb6 1894 echo "$ac_t""no" 1>&6
422107f9 1895 elif test "$wxUSE_LIBPNG" = sys; then
698dcdb6 1896 echo "$ac_t""system version" 1>&6
422107f9 1897 else
698dcdb6 1898 { echo "configure: error: Invalid value for --with-libpng: should be yes, no or sys" 1>&2; exit 1; }
10f2d63a 1899 fi
698dcdb6 1900
10f2d63a 1901
698dcdb6 1902 echo $ac_n "checking for --with-libjpeg""... $ac_c" 1>&6
683dccda 1903echo "configure:1904: checking for --with-libjpeg" >&5
10f2d63a 1904 no_cache=0
698dcdb6 1905 # Check whether --with-libjpeg or --without-libjpeg was given.
b12915c1
VZ
1906if test "${with_libjpeg+set}" = set; then
1907 withval="$with_libjpeg"
698dcdb6 1908
10f2d63a 1909 if test "$withval" = yes; then
b12915c1 1910 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
422107f9 1911 elif test "$withval" = no; then
b12915c1 1912 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
422107f9
VZ
1913 elif test "$withval" = sys; then
1914 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
1915 else
698dcdb6 1916 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no or sys" 1>&2; exit 1; }
10f2d63a 1917 fi
698dcdb6 1918
10f2d63a 1919else
698dcdb6 1920
b12915c1 1921 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
10f2d63a
VZ
1922 if test "x$LINE" != x ; then
1923 eval "DEFAULT_$LINE"
1924 else
1925 no_cache=1
1926 fi
1927
b12915c1 1928 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
698dcdb6
VZ
1929
1930fi
10f2d63a
VZ
1931
1932
b12915c1 1933 eval "$ac_cv_use_libjpeg"
10f2d63a 1934 if test "$no_cache" != 1; then
b12915c1 1935 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
1936 fi
1937
b12915c1 1938 if test "$wxUSE_LIBJPEG" = yes; then
698dcdb6 1939 echo "$ac_t""yes" 1>&6
422107f9 1940 elif test "$wxUSE_LIBJPEG" = no; then
698dcdb6 1941 echo "$ac_t""no" 1>&6
422107f9 1942 elif test "$wxUSE_LIBJPEG" = sys; then
698dcdb6 1943 echo "$ac_t""system version" 1>&6
422107f9 1944 else
698dcdb6 1945 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no or sys" 1>&2; exit 1; }
10f2d63a 1946 fi
698dcdb6 1947
10f2d63a 1948
698dcdb6 1949 echo $ac_n "checking for --with-libtiff""... $ac_c" 1>&6
683dccda 1950echo "configure:1951: checking for --with-libtiff" >&5
10f2d63a 1951 no_cache=0
698dcdb6 1952 # Check whether --with-libtiff or --without-libtiff was given.
b12915c1
VZ
1953if test "${with_libtiff+set}" = set; then
1954 withval="$with_libtiff"
698dcdb6 1955
10f2d63a 1956 if test "$withval" = yes; then
b12915c1 1957 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
0dcf9893 1958 elif test "$withval" = no; then
b12915c1 1959 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
0dcf9893
VZ
1960 elif test "$withval" = sys; then
1961 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
1962 else
698dcdb6 1963 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no or sys" 1>&2; exit 1; }
10f2d63a 1964 fi
698dcdb6 1965
10f2d63a 1966else
698dcdb6 1967
b12915c1 1968 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
10f2d63a
VZ
1969 if test "x$LINE" != x ; then
1970 eval "DEFAULT_$LINE"
1971 else
1972 no_cache=1
1973 fi
1974
b12915c1 1975 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
698dcdb6
VZ
1976
1977fi
10f2d63a
VZ
1978
1979
b12915c1 1980 eval "$ac_cv_use_libtiff"
10f2d63a 1981 if test "$no_cache" != 1; then
b12915c1 1982 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
1983 fi
1984
b12915c1 1985 if test "$wxUSE_LIBTIFF" = yes; then
698dcdb6 1986 echo "$ac_t""yes" 1>&6
0dcf9893 1987 elif test "$wxUSE_LIBTIFF" = no; then
698dcdb6 1988 echo "$ac_t""no" 1>&6
0dcf9893 1989 elif test "$wxUSE_LIBTIFF" = sys; then
698dcdb6 1990 echo "$ac_t""system version" 1>&6
0dcf9893 1991 else
698dcdb6 1992 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no or sys" 1>&2; exit 1; }
10f2d63a 1993 fi
698dcdb6 1994
10f2d63a 1995
698dcdb6 1996 echo $ac_n "checking for --with-freetype""... $ac_c" 1>&6
683dccda 1997echo "configure:1998: checking for --with-freetype" >&5
3fed1840 1998 no_cache=0
698dcdb6 1999 # Check whether --with-freetype or --without-freetype was given.
3fed1840
RR
2000if test "${with_freetype+set}" = set; then
2001 withval="$with_freetype"
698dcdb6 2002
3fed1840
RR
2003 if test "$withval" = yes; then
2004 ac_cv_use_freetype='wxUSE_FREETYPE=yes'
2005 elif test "$withval" = no; then
2006 ac_cv_use_freetype='wxUSE_FREETYPE=no'
2007 elif test "$withval" = sys; then
2008 ac_cv_use_freetype='wxUSE_FREETYPE=sys'
2009 else
698dcdb6 2010 { echo "configure: error: Invalid value for --with-freetype: should be yes, no or sys" 1>&2; exit 1; }
3fed1840 2011 fi
698dcdb6 2012
3fed1840 2013else
698dcdb6 2014
3fed1840
RR
2015 LINE=`grep "wxUSE_FREETYPE" ${wx_arg_cache_file}`
2016 if test "x$LINE" != x ; then
2017 eval "DEFAULT_$LINE"
2018 else
2019 no_cache=1
2020 fi
2021
2022 ac_cv_use_freetype='wxUSE_FREETYPE='$DEFAULT_wxUSE_FREETYPE
698dcdb6
VZ
2023
2024fi
3fed1840
RR
2025
2026
2027 eval "$ac_cv_use_freetype"
2028 if test "$no_cache" != 1; then
2029 echo $ac_cv_use_freetype >> ${wx_arg_cache_file}.tmp
2030 fi
2031
2032 if test "$wxUSE_FREETYPE" = yes; then
698dcdb6 2033 echo "$ac_t""yes" 1>&6
3fed1840 2034 elif test "$wxUSE_FREETYPE" = no; then
698dcdb6 2035 echo "$ac_t""no" 1>&6
3fed1840 2036 elif test "$wxUSE_FREETYPE" = sys; then
698dcdb6 2037 echo "$ac_t""system version" 1>&6
3fed1840 2038 else
698dcdb6 2039 { echo "configure: error: Invalid value for --with-freetype: should be yes, no or sys" 1>&2; exit 1; }
3fed1840 2040 fi
698dcdb6 2041
3fed1840 2042
698dcdb6 2043 echo $ac_n "checking for --with-opengl""... $ac_c" 1>&6
683dccda 2044echo "configure:2045: checking for --with-opengl" >&5
10f2d63a 2045 no_cache=0
698dcdb6 2046 # Check whether --with-opengl or --without-opengl was given.
b12915c1
VZ
2047if test "${with_opengl+set}" = set; then
2048 withval="$with_opengl"
698dcdb6 2049
10f2d63a 2050 if test "$withval" = yes; then
b12915c1 2051 ac_cv_use_opengl='wxUSE_OPENGL=yes'
10f2d63a 2052 else
b12915c1 2053 ac_cv_use_opengl='wxUSE_OPENGL=no'
10f2d63a 2054 fi
698dcdb6 2055
10f2d63a 2056else
698dcdb6 2057
b12915c1 2058 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
10f2d63a
VZ
2059 if test "x$LINE" != x ; then
2060 eval "DEFAULT_$LINE"
2061 else
2062 no_cache=1
2063 fi
2064
b12915c1 2065 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
698dcdb6
VZ
2066
2067fi
10f2d63a
VZ
2068
2069
b12915c1 2070 eval "$ac_cv_use_opengl"
10f2d63a 2071 if test "$no_cache" != 1; then
b12915c1 2072 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2073 fi
2074
b12915c1 2075 if test "$wxUSE_OPENGL" = yes; then
698dcdb6 2076 echo "$ac_t""yes" 1>&6
10f2d63a 2077 else
698dcdb6 2078 echo "$ac_t""no" 1>&6
10f2d63a 2079 fi
698dcdb6 2080
10f2d63a 2081
b12915c1
VZ
2082fi
2083
1e487827 2084
698dcdb6 2085 echo $ac_n "checking for --with-dmalloc""... $ac_c" 1>&6
683dccda 2086echo "configure:2087: checking for --with-dmalloc" >&5
698dcdb6
VZ
2087 no_cache=0
2088 # Check whether --with-dmalloc or --without-dmalloc was given.
b12915c1
VZ
2089if test "${with_dmalloc+set}" = set; then
2090 withval="$with_dmalloc"
698dcdb6 2091
c7a2bf27 2092 if test "$withval" = yes; then
b12915c1 2093 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
c7a2bf27 2094 else
b12915c1 2095 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
c7a2bf27 2096 fi
698dcdb6 2097
c7a2bf27 2098else
698dcdb6 2099
b12915c1 2100 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
c7a2bf27
RR
2101 if test "x$LINE" != x ; then
2102 eval "DEFAULT_$LINE"
2103 else
2104 no_cache=1
2105 fi
2106
b12915c1 2107 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
698dcdb6
VZ
2108
2109fi
c7a2bf27
RR
2110
2111
b12915c1 2112 eval "$ac_cv_use_dmalloc"
c7a2bf27 2113 if test "$no_cache" != 1; then
b12915c1 2114 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
c7a2bf27
RR
2115 fi
2116
b12915c1 2117 if test "$wxUSE_DMALLOC" = yes; then
698dcdb6 2118 echo "$ac_t""yes" 1>&6
c7a2bf27 2119 else
698dcdb6 2120 echo "$ac_t""no" 1>&6
c7a2bf27 2121 fi
698dcdb6 2122
c7a2bf27 2123
3e44f09d 2124 echo $ac_n "checking for --with-regex""... $ac_c" 1>&6
683dccda 2125echo "configure:2126: checking for --with-regex" >&5
3e44f09d
VZ
2126 no_cache=0
2127 # Check whether --with-regex or --without-regex was given.
2128if test "${with_regex+set}" = set; then
2129 withval="$with_regex"
2130
2131 if test "$withval" = yes; then
2132 ac_cv_use_regex='wxUSE_REGEX=yes'
2133 elif test "$withval" = no; then
2134 ac_cv_use_regex='wxUSE_REGEX=no'
2135 elif test "$withval" = sys; then
2136 ac_cv_use_regex='wxUSE_REGEX=sys'
2137 else
2138 { echo "configure: error: Invalid value for --with-regex: should be yes, no or sys" 1>&2; exit 1; }
2139 fi
2140
2141else
2142
2143 LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
2144 if test "x$LINE" != x ; then
2145 eval "DEFAULT_$LINE"
2146 else
2147 no_cache=1
2148 fi
2149
2150 ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
2151
2152fi
2153
2154
2155 eval "$ac_cv_use_regex"
2156 if test "$no_cache" != 1; then
2157 echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
2158 fi
2159
2160 if test "$wxUSE_REGEX" = yes; then
2161 echo "$ac_t""yes" 1>&6
2162 elif test "$wxUSE_REGEX" = no; then
2163 echo "$ac_t""no" 1>&6
2164 elif test "$wxUSE_REGEX" = sys; then
2165 echo "$ac_t""system version" 1>&6
2166 else
2167 { echo "configure: error: Invalid value for --with-regex: should be yes, no or sys" 1>&2; exit 1; }
2168 fi
2169
2170
698dcdb6 2171 echo $ac_n "checking for --with-zlib""... $ac_c" 1>&6
683dccda 2172echo "configure:2173: checking for --with-zlib" >&5
10f2d63a 2173 no_cache=0
698dcdb6 2174 # Check whether --with-zlib or --without-zlib was given.
b12915c1
VZ
2175if test "${with_zlib+set}" = set; then
2176 withval="$with_zlib"
698dcdb6 2177
10f2d63a 2178 if test "$withval" = yes; then
b12915c1 2179 ac_cv_use_zlib='wxUSE_ZLIB=yes'
422107f9 2180 elif test "$withval" = no; then
b12915c1 2181 ac_cv_use_zlib='wxUSE_ZLIB=no'
422107f9
VZ
2182 elif test "$withval" = sys; then
2183 ac_cv_use_zlib='wxUSE_ZLIB=sys'
2184 else
698dcdb6 2185 { echo "configure: error: Invalid value for --with-zlib: should be yes, no or sys" 1>&2; exit 1; }
10f2d63a 2186 fi
698dcdb6 2187
10f2d63a 2188else
698dcdb6 2189
b12915c1 2190 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
10f2d63a
VZ
2191 if test "x$LINE" != x ; then
2192 eval "DEFAULT_$LINE"
2193 else
2194 no_cache=1
2195 fi
2196
b12915c1 2197 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
698dcdb6
VZ
2198
2199fi
10f2d63a
VZ
2200
2201
b12915c1 2202 eval "$ac_cv_use_zlib"
10f2d63a 2203 if test "$no_cache" != 1; then
b12915c1 2204 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2205 fi
2206
b12915c1 2207 if test "$wxUSE_ZLIB" = yes; then
698dcdb6 2208 echo "$ac_t""yes" 1>&6
422107f9 2209 elif test "$wxUSE_ZLIB" = no; then
698dcdb6 2210 echo "$ac_t""no" 1>&6
422107f9 2211 elif test "$wxUSE_ZLIB" = sys; then
698dcdb6 2212 echo "$ac_t""system version" 1>&6
422107f9 2213 else
698dcdb6 2214 { echo "configure: error: Invalid value for --with-zlib: should be yes, no or sys" 1>&2; exit 1; }
10f2d63a 2215 fi
698dcdb6 2216
10f2d63a 2217
698dcdb6 2218 echo $ac_n "checking for --with-odbc""... $ac_c" 1>&6
683dccda 2219echo "configure:2220: checking for --with-odbc" >&5
10f2d63a 2220 no_cache=0
698dcdb6 2221 # Check whether --with-odbc or --without-odbc was given.
10f2d63a
VZ
2222if test "${with_odbc+set}" = set; then
2223 withval="$with_odbc"
698dcdb6 2224
10f2d63a
VZ
2225 if test "$withval" = yes; then
2226 ac_cv_use_odbc='wxUSE_ODBC=yes'
2227 else
2228 ac_cv_use_odbc='wxUSE_ODBC=no'
2229 fi
698dcdb6 2230
10f2d63a 2231else
698dcdb6 2232
10f2d63a
VZ
2233 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
2234 if test "x$LINE" != x ; then
2235 eval "DEFAULT_$LINE"
2236 else
2237 no_cache=1
2238 fi
2239
2240 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
698dcdb6
VZ
2241
2242fi
10f2d63a
VZ
2243
2244
2245 eval "$ac_cv_use_odbc"
2246 if test "$no_cache" != 1; then
2247 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
2248 fi
2249
2250 if test "$wxUSE_ODBC" = yes; then
698dcdb6 2251 echo "$ac_t""yes" 1>&6
10f2d63a 2252 else
698dcdb6 2253 echo "$ac_t""no" 1>&6
10f2d63a 2254 fi
698dcdb6
VZ
2255
2256
10f2d63a 2257
698dcdb6 2258
698dcdb6 2259 echo $ac_n "checking for --enable-shared""... $ac_c" 1>&6
683dccda 2260echo "configure:2261: checking for --enable-shared" >&5
10f2d63a
VZ
2261 no_cache=0
2262 # Check whether --enable-shared or --disable-shared was given.
2263if test "${enable_shared+set}" = set; then
2264 enableval="$enable_shared"
698dcdb6 2265
10f2d63a
VZ
2266 if test "$enableval" = yes; then
2267 ac_cv_use_shared='wxUSE_SHARED=yes'
2268 else
2269 ac_cv_use_shared='wxUSE_SHARED=no'
2270 fi
698dcdb6 2271
10f2d63a 2272else
698dcdb6 2273
10f2d63a
VZ
2274 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
2275 if test "x$LINE" != x ; then
2276 eval "DEFAULT_$LINE"
2277 else
2278 no_cache=1
2279 fi
2280
2281 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
698dcdb6
VZ
2282
2283fi
10f2d63a
VZ
2284
2285
2286 eval "$ac_cv_use_shared"
2287 if test "$no_cache" != 1; then
2288 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
2289 fi
2290
2291 if test "$wxUSE_SHARED" = yes; then
698dcdb6 2292 echo "$ac_t""yes" 1>&6
10f2d63a 2293 else
698dcdb6 2294 echo "$ac_t""no" 1>&6
10f2d63a 2295 fi
698dcdb6 2296
10f2d63a 2297
3a922bb4 2298 echo $ac_n "checking for --enable-soname""... $ac_c" 1>&6
683dccda 2299echo "configure:2300: checking for --enable-soname" >&5
00cf1208 2300 no_cache=0
3a922bb4
RL
2301 # Check whether --enable-soname or --disable-soname was given.
2302if test "${enable_soname+set}" = set; then
2303 enableval="$enable_soname"
698dcdb6 2304
00cf1208 2305 if test "$enableval" = yes; then
3a922bb4 2306 ac_cv_use_soname='wxUSE_SONAME=yes'
00cf1208 2307 else
3a922bb4 2308 ac_cv_use_soname='wxUSE_SONAME=no'
00cf1208 2309 fi
698dcdb6 2310
00cf1208 2311else
698dcdb6 2312
3a922bb4 2313 LINE=`grep "wxUSE_SONAME" ${wx_arg_cache_file}`
00cf1208
RR
2314 if test "x$LINE" != x ; then
2315 eval "DEFAULT_$LINE"
2316 else
2317 no_cache=1
2318 fi
2319
3a922bb4 2320 ac_cv_use_soname='wxUSE_SONAME='$DEFAULT_wxUSE_SONAME
698dcdb6
VZ
2321
2322fi
00cf1208
RR
2323
2324
3a922bb4 2325 eval "$ac_cv_use_soname"
00cf1208 2326 if test "$no_cache" != 1; then
3a922bb4 2327 echo $ac_cv_use_soname >> ${wx_arg_cache_file}.tmp
00cf1208
RR
2328 fi
2329
3a922bb4 2330 if test "$wxUSE_SONAME" = yes; then
698dcdb6 2331 echo "$ac_t""yes" 1>&6
00cf1208 2332 else
698dcdb6 2333 echo "$ac_t""no" 1>&6
00cf1208 2334 fi
698dcdb6 2335
00cf1208 2336
698dcdb6 2337 echo $ac_n "checking for --enable-optimise""... $ac_c" 1>&6
683dccda 2338echo "configure:2339: checking for --enable-optimise" >&5
10f2d63a
VZ
2339 no_cache=0
2340 # Check whether --enable-optimise or --disable-optimise was given.
2341if test "${enable_optimise+set}" = set; then
2342 enableval="$enable_optimise"
698dcdb6 2343
10f2d63a
VZ
2344 if test "$enableval" = yes; then
2345 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
2346 else
2347 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
2348 fi
698dcdb6 2349
10f2d63a 2350else
698dcdb6 2351
10f2d63a
VZ
2352 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
2353 if test "x$LINE" != x ; then
2354 eval "DEFAULT_$LINE"
2355 else
2356 no_cache=1
2357 fi
2358
2359 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
698dcdb6
VZ
2360
2361fi
10f2d63a
VZ
2362
2363
2364 eval "$ac_cv_use_optimise"
2365 if test "$no_cache" != 1; then
2366 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
2367 fi
2368
2369 if test "$wxUSE_OPTIMISE" = yes; then
698dcdb6 2370 echo "$ac_t""yes" 1>&6
10f2d63a 2371 else
698dcdb6 2372 echo "$ac_t""no" 1>&6
10f2d63a 2373 fi
698dcdb6 2374
10f2d63a 2375
698dcdb6 2376 echo $ac_n "checking for --enable-debug""... $ac_c" 1>&6
683dccda 2377echo "configure:2378: checking for --enable-debug" >&5
10f2d63a
VZ
2378 no_cache=0
2379 # Check whether --enable-debug or --disable-debug was given.
2380if test "${enable_debug+set}" = set; then
2381 enableval="$enable_debug"
698dcdb6 2382
10f2d63a
VZ
2383 if test "$enableval" = yes; then
2384 ac_cv_use_debug='wxUSE_DEBUG=yes'
2385 else
2386 ac_cv_use_debug='wxUSE_DEBUG=no'
2387 fi
698dcdb6 2388
10f2d63a 2389else
698dcdb6 2390
10f2d63a
VZ
2391 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
2392 if test "x$LINE" != x ; then
2393 eval "DEFAULT_$LINE"
2394 else
2395 no_cache=1
2396 fi
2397
2398 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
698dcdb6
VZ
2399
2400fi
10f2d63a
VZ
2401
2402
2403 eval "$ac_cv_use_debug"
2404 if test "$no_cache" != 1; then
2405 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
2406 fi
2407
2408 if test "$wxUSE_DEBUG" = yes; then
698dcdb6 2409 echo "$ac_t""yes" 1>&6
10f2d63a 2410 else
698dcdb6 2411 echo "$ac_t""no" 1>&6
10f2d63a 2412 fi
698dcdb6 2413
10f2d63a 2414
683dccda
GD
2415
2416 echo $ac_n "checking for --enable-precomp""... $ac_c" 1>&6
2417echo "configure:2418: checking for --enable-precomp" >&5
2418 no_cache=0
2419 # Check whether --enable-precomp or --disable-precomp was given.
2420if test "${enable_precomp+set}" = set; then
2421 enableval="$enable_precomp"
2422
2423 if test "$enableval" = yes; then
2424 ac_cv_use_precomp='wxUSE_PRECOMP=yes'
2425 else
2426 ac_cv_use_precomp='wxUSE_PRECOMP=no'
2427 fi
2428
2429else
2430
2431 LINE=`grep "wxUSE_PRECOMP" ${wx_arg_cache_file}`
2432 if test "x$LINE" != x ; then
2433 eval "DEFAULT_$LINE"
2434 else
2435 no_cache=1
2436 fi
2437
2438 ac_cv_use_precomp='wxUSE_PRECOMP='$DEFAULT_wxUSE_PRECOMP
2439
2440fi
2441
2442
2443 eval "$ac_cv_use_precomp"
2444 if test "$no_cache" != 1; then
2445 echo $ac_cv_use_precomp >> ${wx_arg_cache_file}.tmp
2446 fi
2447
2448 if test "$wxUSE_PRECOMP" = yes; then
2449 echo "$ac_t""yes" 1>&6
2450 else
2451 echo "$ac_t""no" 1>&6
2452 fi
2453
2454
10f2d63a
VZ
2455if test "$wxUSE_DEBUG" = "yes"; then
2456 DEFAULT_wxUSE_DEBUG_FLAG=yes
2457 DEFAULT_wxUSE_DEBUG_INFO=yes
2458elif test "$wxUSE_DEBUG" = "no"; then
2459 DEFAULT_wxUSE_DEBUG_FLAG=no
2460 DEFAULT_wxUSE_DEBUG_INFO=no
2461fi
2462
698dcdb6
VZ
2463
2464 echo $ac_n "checking for --enable-debug_flag""... $ac_c" 1>&6
683dccda 2465echo "configure:2466: checking for --enable-debug_flag" >&5
10f2d63a
VZ
2466 no_cache=0
2467 # Check whether --enable-debug_flag or --disable-debug_flag was given.
2468if test "${enable_debug_flag+set}" = set; then
2469 enableval="$enable_debug_flag"
698dcdb6 2470
10f2d63a
VZ
2471 if test "$enableval" = yes; then
2472 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
2473 else
2474 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
2475 fi
698dcdb6 2476
10f2d63a 2477else
698dcdb6 2478
10f2d63a
VZ
2479 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
2480 if test "x$LINE" != x ; then
2481 eval "DEFAULT_$LINE"
2482 else
2483 no_cache=1
2484 fi
2485
2486 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
698dcdb6
VZ
2487
2488fi
10f2d63a
VZ
2489
2490
2491 eval "$ac_cv_use_debug_flag"
2492 if test "$no_cache" != 1; then
2493 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
2494 fi
2495
2496 if test "$wxUSE_DEBUG_FLAG" = yes; then
698dcdb6 2497 echo "$ac_t""yes" 1>&6
10f2d63a 2498 else
698dcdb6 2499 echo "$ac_t""no" 1>&6
10f2d63a 2500 fi
698dcdb6 2501
10f2d63a 2502
698dcdb6 2503 echo $ac_n "checking for --enable-debug_info""... $ac_c" 1>&6
683dccda 2504echo "configure:2505: checking for --enable-debug_info" >&5
10f2d63a
VZ
2505 no_cache=0
2506 # Check whether --enable-debug_info or --disable-debug_info was given.
2507if test "${enable_debug_info+set}" = set; then
2508 enableval="$enable_debug_info"
698dcdb6 2509
10f2d63a
VZ
2510 if test "$enableval" = yes; then
2511 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
2512 else
2513 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
2514 fi
698dcdb6 2515
10f2d63a 2516else
698dcdb6 2517
10f2d63a
VZ
2518 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
2519 if test "x$LINE" != x ; then
2520 eval "DEFAULT_$LINE"
2521 else
2522 no_cache=1
2523 fi
2524
2525 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
698dcdb6
VZ
2526
2527fi
10f2d63a
VZ
2528
2529
2530 eval "$ac_cv_use_debug_info"
2531 if test "$no_cache" != 1; then
2532 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
2533 fi
2534
2535 if test "$wxUSE_DEBUG_INFO" = yes; then
698dcdb6 2536 echo "$ac_t""yes" 1>&6
10f2d63a 2537 else
698dcdb6 2538 echo "$ac_t""no" 1>&6
10f2d63a 2539 fi
698dcdb6 2540
10f2d63a 2541
698dcdb6 2542 echo $ac_n "checking for --enable-debug_gdb""... $ac_c" 1>&6
683dccda 2543echo "configure:2544: checking for --enable-debug_gdb" >&5
10f2d63a
VZ
2544 no_cache=0
2545 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
2546if test "${enable_debug_gdb+set}" = set; then
2547 enableval="$enable_debug_gdb"
698dcdb6 2548
10f2d63a
VZ
2549 if test "$enableval" = yes; then
2550 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
2551 else
2552 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
2553 fi
698dcdb6 2554
10f2d63a 2555else
698dcdb6 2556
10f2d63a
VZ
2557 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
2558 if test "x$LINE" != x ; then
2559 eval "DEFAULT_$LINE"
2560 else
2561 no_cache=1
2562 fi
2563
2564 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
698dcdb6
VZ
2565
2566fi
10f2d63a
VZ
2567
2568
2569 eval "$ac_cv_use_debug_gdb"
2570 if test "$no_cache" != 1; then
2571 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
2572 fi
2573
2574 if test "$wxUSE_DEBUG_GDB" = yes; then
698dcdb6 2575 echo "$ac_t""yes" 1>&6
10f2d63a 2576 else
698dcdb6 2577 echo "$ac_t""no" 1>&6
10f2d63a 2578 fi
698dcdb6 2579
10f2d63a 2580
698dcdb6 2581 echo $ac_n "checking for --enable-debug_cntxt""... $ac_c" 1>&6
683dccda 2582echo "configure:2583: checking for --enable-debug_cntxt" >&5
10f2d63a
VZ
2583 no_cache=0
2584 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
2585if test "${enable_debug_cntxt+set}" = set; then
2586 enableval="$enable_debug_cntxt"
698dcdb6 2587
10f2d63a
VZ
2588 if test "$enableval" = yes; then
2589 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
2590 else
2591 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
2592 fi
698dcdb6 2593
10f2d63a 2594else
698dcdb6 2595
10f2d63a
VZ
2596 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
2597 if test "x$LINE" != x ; then
2598 eval "DEFAULT_$LINE"
2599 else
2600 no_cache=1
2601 fi
2602
2603 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
698dcdb6
VZ
2604
2605fi
10f2d63a
VZ
2606
2607
2608 eval "$ac_cv_use_debug_cntxt"
2609 if test "$no_cache" != 1; then
2610 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
2611 fi
2612
2613 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
698dcdb6 2614 echo "$ac_t""yes" 1>&6
10f2d63a 2615 else
698dcdb6 2616 echo "$ac_t""no" 1>&6
10f2d63a 2617 fi
698dcdb6 2618
10f2d63a 2619
698dcdb6 2620 echo $ac_n "checking for --enable-mem_tracing""... $ac_c" 1>&6
683dccda 2621echo "configure:2622: checking for --enable-mem_tracing" >&5
10f2d63a
VZ
2622 no_cache=0
2623 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
2624if test "${enable_mem_tracing+set}" = set; then
2625 enableval="$enable_mem_tracing"
698dcdb6 2626
10f2d63a
VZ
2627 if test "$enableval" = yes; then
2628 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
2629 else
2630 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
2631 fi
698dcdb6 2632
10f2d63a 2633else
698dcdb6 2634
10f2d63a
VZ
2635 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
2636 if test "x$LINE" != x ; then
2637 eval "DEFAULT_$LINE"
2638 else
2639 no_cache=1
2640 fi
2641
2642 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
698dcdb6
VZ
2643
2644fi
10f2d63a
VZ
2645
2646
2647 eval "$ac_cv_use_mem_tracing"
2648 if test "$no_cache" != 1; then
2649 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
2650 fi
2651
2652 if test "$wxUSE_MEM_TRACING" = yes; then
698dcdb6 2653 echo "$ac_t""yes" 1>&6
10f2d63a 2654 else
698dcdb6 2655 echo "$ac_t""no" 1>&6
10f2d63a 2656 fi
698dcdb6 2657
10f2d63a 2658
698dcdb6 2659 echo $ac_n "checking for --enable-profile""... $ac_c" 1>&6
683dccda 2660echo "configure:2661: checking for --enable-profile" >&5
10f2d63a
VZ
2661 no_cache=0
2662 # Check whether --enable-profile or --disable-profile was given.
2663if test "${enable_profile+set}" = set; then
2664 enableval="$enable_profile"
698dcdb6 2665
10f2d63a
VZ
2666 if test "$enableval" = yes; then
2667 ac_cv_use_profile='wxUSE_PROFILE=yes'
2668 else
2669 ac_cv_use_profile='wxUSE_PROFILE=no'
2670 fi
698dcdb6 2671
10f2d63a 2672else
698dcdb6 2673
10f2d63a
VZ
2674 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
2675 if test "x$LINE" != x ; then
2676 eval "DEFAULT_$LINE"
2677 else
2678 no_cache=1
2679 fi
2680
2681 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
698dcdb6
VZ
2682
2683fi
10f2d63a
VZ
2684
2685
2686 eval "$ac_cv_use_profile"
2687 if test "$no_cache" != 1; then
2688 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
2689 fi
2690
2691 if test "$wxUSE_PROFILE" = yes; then
698dcdb6 2692 echo "$ac_t""yes" 1>&6
10f2d63a 2693 else
698dcdb6 2694 echo "$ac_t""no" 1>&6
10f2d63a 2695 fi
698dcdb6 2696
10f2d63a 2697
698dcdb6 2698 echo $ac_n "checking for --enable-no_rtti""... $ac_c" 1>&6
683dccda 2699echo "configure:2700: checking for --enable-no_rtti" >&5
10f2d63a
VZ
2700 no_cache=0
2701 # Check whether --enable-no_rtti or --disable-no_rtti was given.
2702if test "${enable_no_rtti+set}" = set; then
2703 enableval="$enable_no_rtti"
698dcdb6 2704
10f2d63a
VZ
2705 if test "$enableval" = yes; then
2706 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
2707 else
2708 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
2709 fi
698dcdb6 2710
10f2d63a 2711else
698dcdb6 2712
10f2d63a
VZ
2713 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
2714 if test "x$LINE" != x ; then
2715 eval "DEFAULT_$LINE"
2716 else
2717 no_cache=1
2718 fi
2719
2720 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
698dcdb6
VZ
2721
2722fi
10f2d63a
VZ
2723
2724
2725 eval "$ac_cv_use_no_rtti"
2726 if test "$no_cache" != 1; then
2727 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
2728 fi
2729
2730 if test "$wxUSE_NO_RTTI" = yes; then
698dcdb6 2731 echo "$ac_t""yes" 1>&6
10f2d63a 2732 else
698dcdb6 2733 echo "$ac_t""no" 1>&6
10f2d63a 2734 fi
698dcdb6 2735
10f2d63a 2736
698dcdb6 2737 echo $ac_n "checking for --enable-no_exceptions""... $ac_c" 1>&6
683dccda 2738echo "configure:2739: checking for --enable-no_exceptions" >&5
10f2d63a
VZ
2739 no_cache=0
2740 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
2741if test "${enable_no_exceptions+set}" = set; then
2742 enableval="$enable_no_exceptions"
698dcdb6 2743
10f2d63a
VZ
2744 if test "$enableval" = yes; then
2745 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
2746 else
2747 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
2748 fi
698dcdb6 2749
10f2d63a 2750else
698dcdb6 2751
10f2d63a
VZ
2752 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
2753 if test "x$LINE" != x ; then
2754 eval "DEFAULT_$LINE"
2755 else
2756 no_cache=1
2757 fi
2758
2759 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
698dcdb6
VZ
2760
2761fi
10f2d63a
VZ
2762
2763
2764 eval "$ac_cv_use_no_exceptions"
2765 if test "$no_cache" != 1; then
2766 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
2767 fi
2768
2769 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
698dcdb6 2770 echo "$ac_t""yes" 1>&6
10f2d63a 2771 else
698dcdb6 2772 echo "$ac_t""no" 1>&6
10f2d63a 2773 fi
698dcdb6 2774
10f2d63a 2775
698dcdb6 2776 echo $ac_n "checking for --enable-permissive""... $ac_c" 1>&6
683dccda 2777echo "configure:2778: checking for --enable-permissive" >&5
10f2d63a
VZ
2778 no_cache=0
2779 # Check whether --enable-permissive or --disable-permissive was given.
2780if test "${enable_permissive+set}" = set; then
2781 enableval="$enable_permissive"
698dcdb6 2782
10f2d63a
VZ
2783 if test "$enableval" = yes; then
2784 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
2785 else
2786 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
2787 fi
698dcdb6 2788
10f2d63a 2789else
698dcdb6 2790
10f2d63a
VZ
2791 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
2792 if test "x$LINE" != x ; then
2793 eval "DEFAULT_$LINE"
2794 else
2795 no_cache=1
2796 fi
2797
2798 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
698dcdb6
VZ
2799
2800fi
10f2d63a
VZ
2801
2802
2803 eval "$ac_cv_use_permissive"
2804 if test "$no_cache" != 1; then
2805 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
2806 fi
2807
2808 if test "$wxUSE_PERMISSIVE" = yes; then
698dcdb6 2809 echo "$ac_t""yes" 1>&6
10f2d63a 2810 else
698dcdb6 2811 echo "$ac_t""no" 1>&6
10f2d63a 2812 fi
698dcdb6 2813
10f2d63a 2814
698dcdb6 2815 echo $ac_n "checking for --enable-no_deps""... $ac_c" 1>&6
683dccda 2816echo "configure:2817: checking for --enable-no_deps" >&5
10f2d63a
VZ
2817 no_cache=0
2818 # Check whether --enable-no_deps or --disable-no_deps was given.
2819if test "${enable_no_deps+set}" = set; then
2820 enableval="$enable_no_deps"
698dcdb6 2821
10f2d63a
VZ
2822 if test "$enableval" = yes; then
2823 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
2824 else
2825 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
2826 fi
698dcdb6 2827
10f2d63a 2828else
698dcdb6 2829
10f2d63a
VZ
2830 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
2831 if test "x$LINE" != x ; then
2832 eval "DEFAULT_$LINE"
2833 else
2834 no_cache=1
2835 fi
2836
2837 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
698dcdb6
VZ
2838
2839fi
10f2d63a
VZ
2840
2841
2842 eval "$ac_cv_use_no_deps"
2843 if test "$no_cache" != 1; then
2844 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
2845 fi
2846
2847 if test "$wxUSE_NO_DEPS" = yes; then
698dcdb6 2848 echo "$ac_t""yes" 1>&6
10f2d63a 2849 else
698dcdb6 2850 echo "$ac_t""no" 1>&6
10f2d63a 2851 fi
698dcdb6
VZ
2852
2853
10f2d63a 2854
54276ccf 2855 echo $ac_n "checking for --enable-compat20""... $ac_c" 1>&6
683dccda 2856echo "configure:2857: checking for --enable-compat20" >&5
54276ccf
VZ
2857 no_cache=0
2858 # Check whether --enable-compat20 or --disable-compat20 was given.
2859if test "${enable_compat20+set}" = set; then
2860 enableval="$enable_compat20"
2861
2862 if test "$enableval" = yes; then
2863 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=yes'
2864 else
2865 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=no'
2866 fi
2867
2868else
2869
2870 LINE=`grep "WXWIN_COMPATIBILITY_2" ${wx_arg_cache_file}`
2871 if test "x$LINE" != x ; then
2872 eval "DEFAULT_$LINE"
2873 else
2874 no_cache=1
2875 fi
2876
2877 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2='$DEFAULT_WXWIN_COMPATIBILITY_2
2878
2879fi
2880
2881
2882 eval "$ac_cv_use_compat20"
2883 if test "$no_cache" != 1; then
2884 echo $ac_cv_use_compat20 >> ${wx_arg_cache_file}.tmp
2885 fi
2886
2887 if test "$WXWIN_COMPATIBILITY_2" = yes; then
2888 echo "$ac_t""yes" 1>&6
2889 else
2890 echo "$ac_t""no" 1>&6
2891 fi
2892
2893
2894 echo $ac_n "checking for --enable-compat22""... $ac_c" 1>&6
683dccda 2895echo "configure:2896: checking for --enable-compat22" >&5
54276ccf
VZ
2896 no_cache=0
2897 # Check whether --enable-compat22 or --disable-compat22 was given.
2898if test "${enable_compat22+set}" = set; then
2899 enableval="$enable_compat22"
2900
2901 if test "$enableval" = yes; then
2902 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes'
2903 else
2904 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no'
2905 fi
2906
2907else
2908
2909 LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}`
2910 if test "x$LINE" != x ; then
2911 eval "DEFAULT_$LINE"
2912 else
2913 no_cache=1
2914 fi
2915
2916 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2
2917
2918fi
2919
2920
2921 eval "$ac_cv_use_compat22"
2922 if test "$no_cache" != 1; then
2923 echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp
2924 fi
2925
2926 if test "$WXWIN_COMPATIBILITY_2_2" = yes; then
2927 echo "$ac_t""yes" 1>&6
2928 else
2929 echo "$ac_t""no" 1>&6
2930 fi
2931
2932
2933
698dcdb6
VZ
2934
2935 echo $ac_n "checking for --enable-intl""... $ac_c" 1>&6
683dccda 2936echo "configure:2937: checking for --enable-intl" >&5
10f2d63a
VZ
2937 no_cache=0
2938 # Check whether --enable-intl or --disable-intl was given.
2939if test "${enable_intl+set}" = set; then
2940 enableval="$enable_intl"
698dcdb6 2941
10f2d63a
VZ
2942 if test "$enableval" = yes; then
2943 ac_cv_use_intl='wxUSE_INTL=yes'
2944 else
2945 ac_cv_use_intl='wxUSE_INTL=no'
2946 fi
698dcdb6 2947
10f2d63a 2948else
698dcdb6 2949
10f2d63a
VZ
2950 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
2951 if test "x$LINE" != x ; then
2952 eval "DEFAULT_$LINE"
2953 else
2954 no_cache=1
2955 fi
2956
2957 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
698dcdb6
VZ
2958
2959fi
10f2d63a
VZ
2960
2961
2962 eval "$ac_cv_use_intl"
2963 if test "$no_cache" != 1; then
2964 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
2965 fi
2966
2967 if test "$wxUSE_INTL" = yes; then
698dcdb6 2968 echo "$ac_t""yes" 1>&6
10f2d63a 2969 else
698dcdb6 2970 echo "$ac_t""no" 1>&6
10f2d63a 2971 fi
698dcdb6 2972
10f2d63a 2973
698dcdb6 2974 echo $ac_n "checking for --enable-config""... $ac_c" 1>&6
683dccda 2975echo "configure:2976: checking for --enable-config" >&5
10f2d63a
VZ
2976 no_cache=0
2977 # Check whether --enable-config or --disable-config was given.
2978if test "${enable_config+set}" = set; then
2979 enableval="$enable_config"
698dcdb6 2980
10f2d63a
VZ
2981 if test "$enableval" = yes; then
2982 ac_cv_use_config='wxUSE_CONFIG=yes'
2983 else
2984 ac_cv_use_config='wxUSE_CONFIG=no'
2985 fi
698dcdb6 2986
10f2d63a 2987else
698dcdb6 2988
10f2d63a
VZ
2989 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
2990 if test "x$LINE" != x ; then
2991 eval "DEFAULT_$LINE"
2992 else
2993 no_cache=1
2994 fi
2995
2996 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
698dcdb6
VZ
2997
2998fi
10f2d63a
VZ
2999
3000
3001 eval "$ac_cv_use_config"
3002 if test "$no_cache" != 1; then
3003 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
3004 fi
3005
3006 if test "$wxUSE_CONFIG" = yes; then
698dcdb6 3007 echo "$ac_t""yes" 1>&6
10f2d63a 3008 else
698dcdb6 3009 echo "$ac_t""no" 1>&6
10f2d63a 3010 fi
698dcdb6
VZ
3011
3012
b12915c1 3013
698dcdb6 3014 echo $ac_n "checking for --enable-sockets""... $ac_c" 1>&6
683dccda 3015echo "configure:3016: checking for --enable-sockets" >&5
10f2d63a
VZ
3016 no_cache=0
3017 # Check whether --enable-sockets or --disable-sockets was given.
3018if test "${enable_sockets+set}" = set; then
3019 enableval="$enable_sockets"
698dcdb6 3020
10f2d63a
VZ
3021 if test "$enableval" = yes; then
3022 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
3023 else
3024 ac_cv_use_sockets='wxUSE_SOCKETS=no'
3025 fi
698dcdb6 3026
10f2d63a 3027else
698dcdb6 3028
10f2d63a
VZ
3029 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
3030 if test "x$LINE" != x ; then
3031 eval "DEFAULT_$LINE"
3032 else
3033 no_cache=1
3034 fi
3035
3036 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
698dcdb6
VZ
3037
3038fi
10f2d63a
VZ
3039
3040
3041 eval "$ac_cv_use_sockets"
3042 if test "$no_cache" != 1; then
3043 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
3044 fi
3045
3046 if test "$wxUSE_SOCKETS" = yes; then
698dcdb6 3047 echo "$ac_t""yes" 1>&6
10f2d63a 3048 else
698dcdb6 3049 echo "$ac_t""no" 1>&6
10f2d63a 3050 fi
698dcdb6 3051
b12915c1 3052
698dcdb6
VZ
3053
3054 echo $ac_n "checking for --enable-ipc""... $ac_c" 1>&6
683dccda 3055echo "configure:3056: checking for --enable-ipc" >&5
10f2d63a 3056 no_cache=0
eb4efbdc
VZ
3057 # Check whether --enable-ipc or --disable-ipc was given.
3058if test "${enable_ipc+set}" = set; then
3059 enableval="$enable_ipc"
698dcdb6 3060
10f2d63a 3061 if test "$enableval" = yes; then
eb4efbdc 3062 ac_cv_use_ipc='wxUSE_IPC=yes'
10f2d63a 3063 else
eb4efbdc 3064 ac_cv_use_ipc='wxUSE_IPC=no'
10f2d63a 3065 fi
698dcdb6 3066
10f2d63a 3067else
698dcdb6 3068
eb4efbdc 3069 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
10f2d63a
VZ
3070 if test "x$LINE" != x ; then
3071 eval "DEFAULT_$LINE"
3072 else
3073 no_cache=1
3074 fi
3075
eb4efbdc 3076 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
698dcdb6
VZ
3077
3078fi
10f2d63a
VZ
3079
3080
eb4efbdc 3081 eval "$ac_cv_use_ipc"
10f2d63a 3082 if test "$no_cache" != 1; then
eb4efbdc 3083 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
3084 fi
3085
eb4efbdc 3086 if test "$wxUSE_IPC" = yes; then
698dcdb6 3087 echo "$ac_t""yes" 1>&6
10f2d63a 3088 else
698dcdb6 3089 echo "$ac_t""no" 1>&6
10f2d63a 3090 fi
698dcdb6
VZ
3091
3092
eb4efbdc 3093
1e6feb95 3094 echo $ac_n "checking for --enable-cmdline""... $ac_c" 1>&6
683dccda 3095echo "configure:3096: checking for --enable-cmdline" >&5
1e6feb95
VZ
3096 no_cache=0
3097 # Check whether --enable-cmdline or --disable-cmdline was given.
3098if test "${enable_cmdline+set}" = set; then
3099 enableval="$enable_cmdline"
3100
3101 if test "$enableval" = yes; then
3102 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
3103 else
3104 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
3105 fi
3106
3107else
3108
3109 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
3110 if test "x$LINE" != x ; then
3111 eval "DEFAULT_$LINE"
3112 else
3113 no_cache=1
3114 fi
3115
3116 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
3117
3118fi
3119
3120
3121 eval "$ac_cv_use_cmdline"
3122 if test "$no_cache" != 1; then
3123 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
3124 fi
3125
3126 if test "$wxUSE_CMDLINE_PARSER" = yes; then
3127 echo "$ac_t""yes" 1>&6
3128 else
3129 echo "$ac_t""no" 1>&6
3130 fi
3131
3132
3133 echo $ac_n "checking for --enable-datetime""... $ac_c" 1>&6
683dccda 3134echo "configure:3135: checking for --enable-datetime" >&5
1e6feb95
VZ
3135 no_cache=0
3136 # Check whether --enable-datetime or --disable-datetime was given.
3137if test "${enable_datetime+set}" = set; then
3138 enableval="$enable_datetime"
3139
3140 if test "$enableval" = yes; then
3141 ac_cv_use_datetime='wxUSE_DATETIME=yes'
3142 else
3143 ac_cv_use_datetime='wxUSE_DATETIME=no'
3144 fi
3145
3146else
3147
3148 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
3149 if test "x$LINE" != x ; then
3150 eval "DEFAULT_$LINE"
3151 else
3152 no_cache=1
3153 fi
3154
3155 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
3156
3157fi
3158
3159
3160 eval "$ac_cv_use_datetime"
3161 if test "$no_cache" != 1; then
3162 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
3163 fi
3164
3165 if test "$wxUSE_DATETIME" = yes; then
3166 echo "$ac_t""yes" 1>&6
3167 else
3168 echo "$ac_t""no" 1>&6
3169 fi
3170
3171
3172 echo $ac_n "checking for --enable-timedate""... $ac_c" 1>&6
683dccda 3173echo "configure:3174: checking for --enable-timedate" >&5
1e6feb95
VZ
3174 no_cache=0
3175 # Check whether --enable-timedate or --disable-timedate was given.
3176if test "${enable_timedate+set}" = set; then
3177 enableval="$enable_timedate"
3178
3179 if test "$enableval" = yes; then
3180 ac_cv_use_timedate='wxUSE_TIMEDATE=yes'
3181 else
3182 ac_cv_use_timedate='wxUSE_TIMEDATE=no'
3183 fi
3184
3185else
3186
3187 LINE=`grep "wxUSE_TIMEDATE" ${wx_arg_cache_file}`
3188 if test "x$LINE" != x ; then
3189 eval "DEFAULT_$LINE"
3190 else
3191 no_cache=1
3192 fi
3193
3194 ac_cv_use_timedate='wxUSE_TIMEDATE='$DEFAULT_wxUSE_TIMEDATE
3195
3196fi
3197
3198
3199 eval "$ac_cv_use_timedate"
3200 if test "$no_cache" != 1; then
3201 echo $ac_cv_use_timedate >> ${wx_arg_cache_file}.tmp
3202 fi
3203
3204 if test "$wxUSE_TIMEDATE" = yes; then
3205 echo "$ac_t""yes" 1>&6
3206 else
3207 echo "$ac_t""no" 1>&6
3208 fi
3209
3210
3211 echo $ac_n "checking for --enable-stopwatch""... $ac_c" 1>&6
683dccda 3212echo "configure:3213: checking for --enable-stopwatch" >&5
1e6feb95
VZ
3213 no_cache=0
3214 # Check whether --enable-stopwatch or --disable-stopwatch was given.
3215if test "${enable_stopwatch+set}" = set; then
3216 enableval="$enable_stopwatch"
3217
3218 if test "$enableval" = yes; then
3219 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
3220 else
3221 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
3222 fi
3223
3224else
3225
3226 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
3227 if test "x$LINE" != x ; then
3228 eval "DEFAULT_$LINE"
3229 else
3230 no_cache=1
3231 fi
3232
3233 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
3234
3235fi
3236
3237
3238 eval "$ac_cv_use_stopwatch"
3239 if test "$no_cache" != 1; then
3240 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
3241 fi
3242
3243 if test "$wxUSE_STOPWATCH" = yes; then
3244 echo "$ac_t""yes" 1>&6
3245 else
3246 echo "$ac_t""no" 1>&6
3247 fi
3248
3249
698dcdb6 3250 echo $ac_n "checking for --enable-dialupman""... $ac_c" 1>&6
683dccda 3251echo "configure:3252: checking for --enable-dialupman" >&5
10f2d63a 3252 no_cache=0
eb4efbdc
VZ
3253 # Check whether --enable-dialupman or --disable-dialupman was given.
3254if test "${enable_dialupman+set}" = set; then
3255 enableval="$enable_dialupman"
698dcdb6 3256
10f2d63a 3257 if test "$enableval" = yes; then
eb4efbdc 3258 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
10f2d63a 3259 else
eb4efbdc 3260 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
10f2d63a 3261 fi
698dcdb6 3262
10f2d63a 3263else
698dcdb6 3264
eb4efbdc 3265 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
10f2d63a
VZ
3266 if test "x$LINE" != x ; then
3267 eval "DEFAULT_$LINE"
3268 else
3269 no_cache=1
3270 fi
3271
eb4efbdc 3272 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
698dcdb6
VZ
3273
3274fi
10f2d63a
VZ
3275
3276
eb4efbdc 3277 eval "$ac_cv_use_dialupman"
10f2d63a 3278 if test "$no_cache" != 1; then
eb4efbdc 3279 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
3280 fi
3281
eb4efbdc 3282 if test "$wxUSE_DIALUP_MANAGER" = yes; then
698dcdb6 3283 echo "$ac_t""yes" 1>&6
10f2d63a 3284 else
698dcdb6 3285 echo "$ac_t""no" 1>&6
10f2d63a 3286 fi
698dcdb6 3287
10f2d63a 3288
698dcdb6 3289 echo $ac_n "checking for --enable-apple_ieee""... $ac_c" 1>&6
683dccda 3290echo "configure:3291: checking for --enable-apple_ieee" >&5
10f2d63a
VZ
3291 no_cache=0
3292 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
3293if test "${enable_apple_ieee+set}" = set; then
3294 enableval="$enable_apple_ieee"
698dcdb6 3295
10f2d63a
VZ
3296 if test "$enableval" = yes; then
3297 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
3298 else
3299 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
3300 fi
698dcdb6 3301
10f2d63a 3302else
698dcdb6 3303
10f2d63a
VZ
3304 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
3305 if test "x$LINE" != x ; then
3306 eval "DEFAULT_$LINE"
3307 else
3308 no_cache=1
3309 fi
3310
3311 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
698dcdb6
VZ
3312
3313fi
10f2d63a
VZ
3314
3315
3316 eval "$ac_cv_use_apple_ieee"
3317 if test "$no_cache" != 1; then
3318 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
3319 fi
3320
3321 if test "$wxUSE_APPLE_IEEE" = yes; then
698dcdb6 3322 echo "$ac_t""yes" 1>&6
10f2d63a 3323 else
698dcdb6 3324 echo "$ac_t""no" 1>&6
10f2d63a 3325 fi
698dcdb6 3326
10f2d63a 3327
1e6feb95 3328 echo $ac_n "checking for --enable-timer""... $ac_c" 1>&6
683dccda 3329echo "configure:3330: checking for --enable-timer" >&5
10f2d63a 3330 no_cache=0
1e6feb95
VZ
3331 # Check whether --enable-timer or --disable-timer was given.
3332if test "${enable_timer+set}" = set; then
3333 enableval="$enable_timer"
698dcdb6 3334
10f2d63a 3335 if test "$enableval" = yes; then
1e6feb95 3336 ac_cv_use_timer='wxUSE_TIMER=yes'
10f2d63a 3337 else
1e6feb95 3338 ac_cv_use_timer='wxUSE_TIMER=no'
10f2d63a 3339 fi
698dcdb6 3340
10f2d63a 3341else
698dcdb6 3342
1e6feb95 3343 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
10f2d63a
VZ
3344 if test "x$LINE" != x ; then
3345 eval "DEFAULT_$LINE"
3346 else
3347 no_cache=1
3348 fi
3349
1e6feb95 3350 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
698dcdb6
VZ
3351
3352fi
10f2d63a
VZ
3353
3354
1e6feb95 3355 eval "$ac_cv_use_timer"
10f2d63a 3356 if test "$no_cache" != 1; then
1e6feb95 3357 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
3358 fi
3359
1e6feb95 3360 if test "$wxUSE_TIMER" = yes; then
698dcdb6 3361 echo "$ac_t""yes" 1>&6
10f2d63a 3362 else
698dcdb6 3363 echo "$ac_t""no" 1>&6
10f2d63a 3364 fi
698dcdb6 3365
10f2d63a 3366
698dcdb6 3367 echo $ac_n "checking for --enable-wave""... $ac_c" 1>&6
683dccda 3368echo "configure:3369: checking for --enable-wave" >&5
10f2d63a
VZ
3369 no_cache=0
3370 # Check whether --enable-wave or --disable-wave was given.
3371if test "${enable_wave+set}" = set; then
3372 enableval="$enable_wave"
698dcdb6 3373
10f2d63a
VZ
3374 if test "$enableval" = yes; then
3375 ac_cv_use_wave='wxUSE_WAVE=yes'
3376 else
3377 ac_cv_use_wave='wxUSE_WAVE=no'
3378 fi
698dcdb6 3379
10f2d63a 3380else
698dcdb6 3381
10f2d63a
VZ
3382 LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}`
3383 if test "x$LINE" != x ; then
3384 eval "DEFAULT_$LINE"
3385 else
3386 no_cache=1
3387 fi
3388
3389 ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE
698dcdb6
VZ
3390
3391fi
10f2d63a
VZ
3392
3393
3394 eval "$ac_cv_use_wave"
3395 if test "$no_cache" != 1; then
3396 echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp
3397 fi
3398
3399 if test "$wxUSE_WAVE" = yes; then
698dcdb6 3400 echo "$ac_t""yes" 1>&6
10f2d63a 3401 else
698dcdb6 3402 echo "$ac_t""no" 1>&6
10f2d63a 3403 fi
698dcdb6 3404
10f2d63a 3405
698dcdb6 3406 echo $ac_n "checking for --enable-fraction""... $ac_c" 1>&6
683dccda 3407echo "configure:3408: checking for --enable-fraction" >&5
10f2d63a
VZ
3408 no_cache=0
3409 # Check whether --enable-fraction or --disable-fraction was given.
3410if test "${enable_fraction+set}" = set; then
3411 enableval="$enable_fraction"
698dcdb6 3412
10f2d63a
VZ
3413 if test "$enableval" = yes; then
3414 ac_cv_use_fraction='wxUSE_FRACTION=yes'
3415 else
3416 ac_cv_use_fraction='wxUSE_FRACTION=no'
3417 fi
698dcdb6 3418
10f2d63a 3419else
698dcdb6 3420
10f2d63a
VZ
3421 LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}`
3422 if test "x$LINE" != x ; then
3423 eval "DEFAULT_$LINE"
3424 else
3425 no_cache=1
3426 fi
3427
3428 ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION
698dcdb6
VZ
3429
3430fi
10f2d63a
VZ
3431
3432
3433 eval "$ac_cv_use_fraction"
3434 if test "$no_cache" != 1; then
3435 echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp
3436 fi
3437
3438 if test "$wxUSE_FRACTION" = yes; then
698dcdb6 3439 echo "$ac_t""yes" 1>&6
10f2d63a 3440 else
698dcdb6 3441 echo "$ac_t""no" 1>&6
10f2d63a 3442 fi
698dcdb6 3443
10f2d63a 3444
698dcdb6 3445 echo $ac_n "checking for --enable-dynlib""... $ac_c" 1>&6
683dccda 3446echo "configure:3447: checking for --enable-dynlib" >&5
10f2d63a
VZ
3447 no_cache=0
3448 # Check whether --enable-dynlib or --disable-dynlib was given.
3449if test "${enable_dynlib+set}" = set; then
3450 enableval="$enable_dynlib"
698dcdb6 3451
10f2d63a
VZ
3452 if test "$enableval" = yes; then
3453 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
3454 else
3455 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
3456 fi
698dcdb6 3457
10f2d63a 3458else
698dcdb6 3459
10f2d63a
VZ
3460 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
3461 if test "x$LINE" != x ; then
3462 eval "DEFAULT_$LINE"
3463 else
3464 no_cache=1
3465 fi
3466
3467 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
698dcdb6
VZ
3468
3469fi
10f2d63a
VZ
3470
3471
3472 eval "$ac_cv_use_dynlib"
3473 if test "$no_cache" != 1; then
3474 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
3475 fi
3476
3477 if test "$wxUSE_DYNLIB_CLASS" = yes; then
698dcdb6 3478 echo "$ac_t""yes" 1>&6
10f2d63a 3479 else
698dcdb6 3480 echo "$ac_t""no" 1>&6
10f2d63a 3481 fi
698dcdb6 3482
10f2d63a 3483
698dcdb6 3484 echo $ac_n "checking for --enable-longlong""... $ac_c" 1>&6
683dccda 3485echo "configure:3486: checking for --enable-longlong" >&5
10f2d63a
VZ
3486 no_cache=0
3487 # Check whether --enable-longlong or --disable-longlong was given.
3488if test "${enable_longlong+set}" = set; then
3489 enableval="$enable_longlong"
698dcdb6 3490
10f2d63a
VZ
3491 if test "$enableval" = yes; then
3492 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
3493 else
3494 ac_cv_use_longlong='wxUSE_LONGLONG=no'
3495 fi
698dcdb6 3496
10f2d63a 3497else
698dcdb6 3498
10f2d63a
VZ
3499 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
3500 if test "x$LINE" != x ; then
3501 eval "DEFAULT_$LINE"
3502 else
3503 no_cache=1
3504 fi
3505
3506 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
698dcdb6
VZ
3507
3508fi
10f2d63a
VZ
3509
3510
3511 eval "$ac_cv_use_longlong"
3512 if test "$no_cache" != 1; then
3513 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
3514 fi
3515
3516 if test "$wxUSE_LONGLONG" = yes; then
698dcdb6 3517 echo "$ac_t""yes" 1>&6
10f2d63a 3518 else
698dcdb6 3519 echo "$ac_t""no" 1>&6
10f2d63a 3520 fi
698dcdb6 3521
10f2d63a 3522
698dcdb6 3523 echo $ac_n "checking for --enable-geometry""... $ac_c" 1>&6
683dccda 3524echo "configure:3525: checking for --enable-geometry" >&5
e8f65ba6
RR
3525 no_cache=0
3526 # Check whether --enable-geometry or --disable-geometry was given.
3527if test "${enable_geometry+set}" = set; then
3528 enableval="$enable_geometry"
698dcdb6 3529
e8f65ba6
RR
3530 if test "$enableval" = yes; then
3531 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
3532 else
3533 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
3534 fi
698dcdb6 3535
e8f65ba6 3536else
698dcdb6 3537
e8f65ba6
RR
3538 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
3539 if test "x$LINE" != x ; then
3540 eval "DEFAULT_$LINE"
3541 else
3542 no_cache=1
3543 fi
3544
3545 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
698dcdb6
VZ
3546
3547fi
e8f65ba6
RR
3548
3549
3550 eval "$ac_cv_use_geometry"
3551 if test "$no_cache" != 1; then
3552 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
3553 fi
3554
3555 if test "$wxUSE_GEOMETRY" = yes; then
698dcdb6 3556 echo "$ac_t""yes" 1>&6
e8f65ba6 3557 else
698dcdb6 3558 echo "$ac_t""no" 1>&6
e8f65ba6 3559 fi
698dcdb6 3560
e8f65ba6 3561
698dcdb6 3562 echo $ac_n "checking for --enable-log""... $ac_c" 1>&6
683dccda 3563echo "configure:3564: checking for --enable-log" >&5
10f2d63a
VZ
3564 no_cache=0
3565 # Check whether --enable-log or --disable-log was given.
3566if test "${enable_log+set}" = set; then
3567 enableval="$enable_log"
698dcdb6 3568
10f2d63a
VZ
3569 if test "$enableval" = yes; then
3570 ac_cv_use_log='wxUSE_LOG=yes'
3571 else
3572 ac_cv_use_log='wxUSE_LOG=no'
3573 fi
698dcdb6 3574
10f2d63a 3575else
698dcdb6 3576
10f2d63a
VZ
3577 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
3578 if test "x$LINE" != x ; then
3579 eval "DEFAULT_$LINE"
3580 else
3581 no_cache=1
3582 fi
3583
3584 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
698dcdb6
VZ
3585
3586fi
10f2d63a
VZ
3587
3588
3589 eval "$ac_cv_use_log"
3590 if test "$no_cache" != 1; then
3591 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
3592 fi
3593
3594 if test "$wxUSE_LOG" = yes; then
698dcdb6 3595 echo "$ac_t""yes" 1>&6
10f2d63a 3596 else
698dcdb6 3597 echo "$ac_t""no" 1>&6
10f2d63a 3598 fi
698dcdb6 3599
10f2d63a 3600
698dcdb6 3601 echo $ac_n "checking for --enable-streams""... $ac_c" 1>&6
683dccda 3602echo "configure:3603: checking for --enable-streams" >&5
10f2d63a
VZ
3603 no_cache=0
3604 # Check whether --enable-streams or --disable-streams was given.
3605if test "${enable_streams+set}" = set; then
3606 enableval="$enable_streams"
698dcdb6 3607
10f2d63a
VZ
3608 if test "$enableval" = yes; then
3609 ac_cv_use_streams='wxUSE_STREAMS=yes'
3610 else
3611 ac_cv_use_streams='wxUSE_STREAMS=no'
3612 fi
698dcdb6 3613
10f2d63a 3614else
698dcdb6 3615
10f2d63a
VZ
3616 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
3617 if test "x$LINE" != x ; then
3618 eval "DEFAULT_$LINE"
3619 else
3620 no_cache=1
3621 fi
3622
3623 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
698dcdb6
VZ
3624
3625fi
10f2d63a
VZ
3626
3627
3628 eval "$ac_cv_use_streams"
3629 if test "$no_cache" != 1; then
3630 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
3631 fi
3632
3633 if test "$wxUSE_STREAMS" = yes; then
698dcdb6 3634 echo "$ac_t""yes" 1>&6
10f2d63a 3635 else
698dcdb6 3636 echo "$ac_t""no" 1>&6
10f2d63a 3637 fi
698dcdb6 3638
10f2d63a 3639
698dcdb6 3640 echo $ac_n "checking for --enable-file""... $ac_c" 1>&6
683dccda 3641echo "configure:3642: checking for --enable-file" >&5
10f2d63a
VZ
3642 no_cache=0
3643 # Check whether --enable-file or --disable-file was given.
3644if test "${enable_file+set}" = set; then
3645 enableval="$enable_file"
698dcdb6 3646
10f2d63a
VZ
3647 if test "$enableval" = yes; then
3648 ac_cv_use_file='wxUSE_FILE=yes'
3649 else
3650 ac_cv_use_file='wxUSE_FILE=no'
3651 fi
698dcdb6 3652
10f2d63a 3653else
698dcdb6 3654
10f2d63a
VZ
3655 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
3656 if test "x$LINE" != x ; then
3657 eval "DEFAULT_$LINE"
3658 else
3659 no_cache=1
3660 fi
3661
3662 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
698dcdb6
VZ
3663
3664fi
10f2d63a
VZ
3665
3666
3667 eval "$ac_cv_use_file"
3668 if test "$no_cache" != 1; then
3669 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
3670 fi
3671
3672 if test "$wxUSE_FILE" = yes; then
698dcdb6 3673 echo "$ac_t""yes" 1>&6
10f2d63a 3674 else
698dcdb6 3675 echo "$ac_t""no" 1>&6
10f2d63a 3676 fi
698dcdb6 3677
10f2d63a 3678
1e6feb95 3679 echo $ac_n "checking for --enable-ffile""... $ac_c" 1>&6
683dccda 3680echo "configure:3681: checking for --enable-ffile" >&5
10f2d63a 3681 no_cache=0
1e6feb95
VZ
3682 # Check whether --enable-ffile or --disable-ffile was given.
3683if test "${enable_ffile+set}" = set; then
3684 enableval="$enable_ffile"
698dcdb6 3685
10f2d63a 3686 if test "$enableval" = yes; then
1e6feb95 3687 ac_cv_use_ffile='wxUSE_FFILE=yes'
10f2d63a 3688 else
1e6feb95 3689 ac_cv_use_ffile='wxUSE_FFILE=no'
10f2d63a 3690 fi
698dcdb6 3691
10f2d63a 3692else
698dcdb6 3693
1e6feb95 3694 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
10f2d63a
VZ
3695 if test "x$LINE" != x ; then
3696 eval "DEFAULT_$LINE"
3697 else
3698 no_cache=1
3699 fi
3700
1e6feb95 3701 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
698dcdb6
VZ
3702
3703fi
10f2d63a
VZ
3704
3705
1e6feb95 3706 eval "$ac_cv_use_ffile"
10f2d63a 3707 if test "$no_cache" != 1; then
1e6feb95 3708 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
3709 fi
3710
1e6feb95 3711 if test "$wxUSE_FFILE" = yes; then
698dcdb6 3712 echo "$ac_t""yes" 1>&6
10f2d63a 3713 else
698dcdb6 3714 echo "$ac_t""no" 1>&6
10f2d63a 3715 fi
698dcdb6 3716
10f2d63a 3717
1e6feb95 3718 echo $ac_n "checking for --enable-textfile""... $ac_c" 1>&6
683dccda 3719echo "configure:3720: checking for --enable-textfile" >&5
10f2d63a 3720 no_cache=0
1e6feb95
VZ
3721 # Check whether --enable-textfile or --disable-textfile was given.
3722if test "${enable_textfile+set}" = set; then
3723 enableval="$enable_textfile"
698dcdb6 3724
10f2d63a 3725 if test "$enableval" = yes; then
1e6feb95 3726 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
10f2d63a 3727 else
1e6feb95 3728 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
10f2d63a 3729 fi
698dcdb6 3730
10f2d63a 3731else
698dcdb6 3732
1e6feb95 3733 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
10f2d63a
VZ
3734 if test "x$LINE" != x ; then
3735 eval "DEFAULT_$LINE"
3736 else
3737 no_cache=1
3738 fi
3739
1e6feb95 3740 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
698dcdb6
VZ
3741
3742fi
10f2d63a
VZ
3743
3744
1e6feb95 3745 eval "$ac_cv_use_textfile"
10f2d63a 3746 if test "$no_cache" != 1; then
1e6feb95 3747 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
3748 fi
3749
1e6feb95 3750 if test "$wxUSE_TEXTFILE" = yes; then
698dcdb6 3751 echo "$ac_t""yes" 1>&6
10f2d63a 3752 else
698dcdb6 3753 echo "$ac_t""no" 1>&6
10f2d63a 3754 fi
698dcdb6 3755
10f2d63a 3756
1e6feb95 3757 echo $ac_n "checking for --enable-fontmap""... $ac_c" 1>&6
683dccda 3758echo "configure:3759: checking for --enable-fontmap" >&5
10f2d63a 3759 no_cache=0
1e6feb95
VZ
3760 # Check whether --enable-fontmap or --disable-fontmap was given.
3761if test "${enable_fontmap+set}" = set; then
3762 enableval="$enable_fontmap"
698dcdb6 3763
10f2d63a 3764 if test "$enableval" = yes; then
1e6feb95 3765 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
10f2d63a 3766 else
1e6feb95 3767 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
10f2d63a 3768 fi
698dcdb6 3769
10f2d63a 3770else
698dcdb6 3771
1e6feb95 3772 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
10f2d63a
VZ
3773 if test "x$LINE" != x ; then
3774 eval "DEFAULT_$LINE"
3775 else
3776 no_cache=1
3777 fi
3778
1e6feb95 3779 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
698dcdb6
VZ
3780
3781fi
10f2d63a
VZ
3782
3783
1e6feb95 3784 eval "$ac_cv_use_fontmap"
10f2d63a 3785 if test "$no_cache" != 1; then
1e6feb95 3786 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
3787 fi
3788
1e6feb95 3789 if test "$wxUSE_FONTMAP" = yes; then
698dcdb6 3790 echo "$ac_t""yes" 1>&6
10f2d63a 3791 else
698dcdb6 3792 echo "$ac_t""no" 1>&6
10f2d63a 3793 fi
698dcdb6 3794
10f2d63a 3795
1e6feb95 3796 echo $ac_n "checking for --enable-unicode""... $ac_c" 1>&6
683dccda 3797echo "configure:3798: checking for --enable-unicode" >&5
10f2d63a 3798 no_cache=0
1e6feb95
VZ
3799 # Check whether --enable-unicode or --disable-unicode was given.
3800if test "${enable_unicode+set}" = set; then
3801 enableval="$enable_unicode"
3802
3803 if test "$enableval" = yes; then
3804 ac_cv_use_unicode='wxUSE_UNICODE=yes'
3805 else
3806 ac_cv_use_unicode='wxUSE_UNICODE=no'
3807 fi
3808
3809else
3810
3811 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
3812 if test "x$LINE" != x ; then
3813 eval "DEFAULT_$LINE"
3814 else
3815 no_cache=1
3816 fi
3817
3818 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
3819
3820fi
3821
3822
3823 eval "$ac_cv_use_unicode"
3824 if test "$no_cache" != 1; then
3825 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
3826 fi
3827
3828 if test "$wxUSE_UNICODE" = yes; then
3829 echo "$ac_t""yes" 1>&6
3830 else
3831 echo "$ac_t""no" 1>&6
3832 fi
3833
3834
1e6feb95 3835 echo $ac_n "checking for --enable-wxprintfv""... $ac_c" 1>&6
683dccda 3836echo "configure:3837: checking for --enable-wxprintfv" >&5
1e6feb95
VZ
3837 no_cache=0
3838 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
3839if test "${enable_wxprintfv+set}" = set; then
3840 enableval="$enable_wxprintfv"
3841
3842 if test "$enableval" = yes; then
10f2d63a
VZ
3843 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
3844 else
3845 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
3846 fi
698dcdb6 3847
10f2d63a 3848else
698dcdb6 3849
10f2d63a
VZ
3850 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
3851 if test "x$LINE" != x ; then
3852 eval "DEFAULT_$LINE"
3853 else
3854 no_cache=1
3855 fi
3856
3857 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
698dcdb6
VZ
3858
3859fi
10f2d63a
VZ
3860
3861
3862 eval "$ac_cv_use_wxprintfv"
3863 if test "$no_cache" != 1; then
3864 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
3865 fi
3866
3867 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
698dcdb6 3868 echo "$ac_t""yes" 1>&6
10f2d63a 3869 else
698dcdb6 3870 echo "$ac_t""no" 1>&6
10f2d63a 3871 fi
698dcdb6 3872
10f2d63a 3873
698dcdb6 3874 echo $ac_n "checking for --enable-std_iostreams""... $ac_c" 1>&6
683dccda 3875echo "configure:3876: checking for --enable-std_iostreams" >&5
10f2d63a
VZ
3876 no_cache=0
3877 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
3878if test "${enable_std_iostreams+set}" = set; then
3879 enableval="$enable_std_iostreams"
698dcdb6 3880
10f2d63a
VZ
3881 if test "$enableval" = yes; then
3882 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
3883 else
3884 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
3885 fi
698dcdb6 3886
10f2d63a 3887else
698dcdb6 3888
10f2d63a
VZ
3889 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
3890 if test "x$LINE" != x ; then
3891 eval "DEFAULT_$LINE"
3892 else
3893 no_cache=1
3894 fi
3895
3896 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
698dcdb6
VZ
3897
3898fi
10f2d63a
VZ
3899
3900
3901 eval "$ac_cv_use_std_iostreams"
3902 if test "$no_cache" != 1; then
3903 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
3904 fi
3905
3906 if test "$wxUSE_STD_IOSTREAM" = yes; then
698dcdb6 3907 echo "$ac_t""yes" 1>&6
10f2d63a 3908 else
698dcdb6 3909 echo "$ac_t""no" 1>&6
10f2d63a 3910 fi
698dcdb6 3911
10f2d63a 3912
698dcdb6 3913 echo $ac_n "checking for --enable-filesystem""... $ac_c" 1>&6
683dccda 3914echo "configure:3915: checking for --enable-filesystem" >&5
24528b0c
VS
3915 no_cache=0
3916 # Check whether --enable-filesystem or --disable-filesystem was given.
3917if test "${enable_filesystem+set}" = set; then
3918 enableval="$enable_filesystem"
698dcdb6 3919
24528b0c
VS
3920 if test "$enableval" = yes; then
3921 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
3922 else
3923 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
3924 fi
698dcdb6 3925
24528b0c 3926else
698dcdb6 3927
24528b0c
VS
3928 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
3929 if test "x$LINE" != x ; then
3930 eval "DEFAULT_$LINE"
3931 else
3932 no_cache=1
3933 fi
3934
3935 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
698dcdb6
VZ
3936
3937fi
24528b0c
VS
3938
3939
3940 eval "$ac_cv_use_filesystem"
3941 if test "$no_cache" != 1; then
3942 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
3943 fi
3944
3945 if test "$wxUSE_FILESYSTEM" = yes; then
698dcdb6 3946 echo "$ac_t""yes" 1>&6
24528b0c 3947 else
698dcdb6 3948 echo "$ac_t""no" 1>&6
24528b0c 3949 fi
698dcdb6 3950
24528b0c 3951
698dcdb6 3952 echo $ac_n "checking for --enable-fs_inet""... $ac_c" 1>&6
683dccda 3953echo "configure:3954: checking for --enable-fs_inet" >&5
10f2d63a
VZ
3954 no_cache=0
3955 # Check whether --enable-fs_inet or --disable-fs_inet was given.
3956if test "${enable_fs_inet+set}" = set; then
3957 enableval="$enable_fs_inet"
698dcdb6 3958
10f2d63a
VZ
3959 if test "$enableval" = yes; then
3960 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
3961 else
3962 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
3963 fi
698dcdb6 3964
10f2d63a 3965else
698dcdb6 3966
10f2d63a
VZ
3967 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
3968 if test "x$LINE" != x ; then
3969 eval "DEFAULT_$LINE"
3970 else
3971 no_cache=1
3972 fi
3973
3974 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
698dcdb6
VZ
3975
3976fi
10f2d63a
VZ
3977
3978
3979 eval "$ac_cv_use_fs_inet"
3980 if test "$no_cache" != 1; then
3981 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
3982 fi
3983
3984 if test "$wxUSE_FS_INET" = yes; then
698dcdb6 3985 echo "$ac_t""yes" 1>&6
10f2d63a 3986 else
698dcdb6 3987 echo "$ac_t""no" 1>&6
10f2d63a 3988 fi
698dcdb6 3989
10f2d63a 3990
698dcdb6 3991 echo $ac_n "checking for --enable-fs_zip""... $ac_c" 1>&6
683dccda 3992echo "configure:3993: checking for --enable-fs_zip" >&5
10f2d63a
VZ
3993 no_cache=0
3994 # Check whether --enable-fs_zip or --disable-fs_zip was given.
3995if test "${enable_fs_zip+set}" = set; then
3996 enableval="$enable_fs_zip"
698dcdb6 3997
10f2d63a
VZ
3998 if test "$enableval" = yes; then
3999 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
4000 else
4001 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
4002 fi
698dcdb6 4003
10f2d63a 4004else
698dcdb6 4005
10f2d63a
VZ
4006 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
4007 if test "x$LINE" != x ; then
4008 eval "DEFAULT_$LINE"
4009 else
4010 no_cache=1
4011 fi
4012
4013 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
698dcdb6
VZ
4014
4015fi
10f2d63a
VZ
4016
4017
4018 eval "$ac_cv_use_fs_zip"
4019 if test "$no_cache" != 1; then
4020 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
4021 fi
4022
4023 if test "$wxUSE_FS_ZIP" = yes; then
698dcdb6 4024 echo "$ac_t""yes" 1>&6
10f2d63a 4025 else
698dcdb6 4026 echo "$ac_t""no" 1>&6
10f2d63a 4027 fi
698dcdb6 4028
10f2d63a 4029
698dcdb6 4030 echo $ac_n "checking for --enable-zipstream""... $ac_c" 1>&6
683dccda 4031echo "configure:4032: checking for --enable-zipstream" >&5
10f2d63a
VZ
4032 no_cache=0
4033 # Check whether --enable-zipstream or --disable-zipstream was given.
4034if test "${enable_zipstream+set}" = set; then
4035 enableval="$enable_zipstream"
698dcdb6 4036
10f2d63a
VZ
4037 if test "$enableval" = yes; then
4038 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
4039 else
4040 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
4041 fi
698dcdb6 4042
10f2d63a 4043else
698dcdb6 4044
10f2d63a
VZ
4045 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
4046 if test "x$LINE" != x ; then
4047 eval "DEFAULT_$LINE"
4048 else
4049 no_cache=1
4050 fi
4051
4052 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
698dcdb6
VZ
4053
4054fi
10f2d63a
VZ
4055
4056
4057 eval "$ac_cv_use_zipstream"
4058 if test "$no_cache" != 1; then
4059 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
4060 fi
4061
4062 if test "$wxUSE_ZIPSTREAM" = yes; then
698dcdb6 4063 echo "$ac_t""yes" 1>&6
10f2d63a 4064 else
698dcdb6 4065 echo "$ac_t""no" 1>&6
10f2d63a 4066 fi
698dcdb6 4067
10f2d63a 4068
698dcdb6
VZ
4069
4070 echo $ac_n "checking for --enable-catch_segvs""... $ac_c" 1>&6
683dccda 4071echo "configure:4072: checking for --enable-catch_segvs" >&5
eb4efbdc
VZ
4072 no_cache=0
4073 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
4074if test "${enable_catch_segvs+set}" = set; then
4075 enableval="$enable_catch_segvs"
698dcdb6 4076
eb4efbdc
VZ
4077 if test "$enableval" = yes; then
4078 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
4079 else
4080 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
4081 fi
698dcdb6 4082
eb4efbdc 4083else
698dcdb6 4084
eb4efbdc
VZ
4085 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
4086 if test "x$LINE" != x ; then
4087 eval "DEFAULT_$LINE"
4088 else
4089 no_cache=1
4090 fi
4091
4092 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
698dcdb6
VZ
4093
4094fi
eb4efbdc
VZ
4095
4096
4097 eval "$ac_cv_use_catch_segvs"
4098 if test "$no_cache" != 1; then
4099 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
4100 fi
4101
4102 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
698dcdb6 4103 echo "$ac_t""yes" 1>&6
eb4efbdc 4104 else
698dcdb6 4105 echo "$ac_t""no" 1>&6
eb4efbdc 4106 fi
698dcdb6 4107
eb4efbdc 4108
698dcdb6 4109 echo $ac_n "checking for --enable-snglinst""... $ac_c" 1>&6
683dccda 4110echo "configure:4111: checking for --enable-snglinst" >&5
4f3c5f06
VZ
4111 no_cache=0
4112 # Check whether --enable-snglinst or --disable-snglinst was given.
4113if test "${enable_snglinst+set}" = set; then
4114 enableval="$enable_snglinst"
698dcdb6 4115
4f3c5f06
VZ
4116 if test "$enableval" = yes; then
4117 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
4118 else
4119 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
4120 fi
698dcdb6 4121
4f3c5f06 4122else
698dcdb6 4123
4f3c5f06
VZ
4124 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
4125 if test "x$LINE" != x ; then
4126 eval "DEFAULT_$LINE"
4127 else
4128 no_cache=1
4129 fi
4130
4131 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
698dcdb6
VZ
4132
4133fi
4f3c5f06
VZ
4134
4135
4136 eval "$ac_cv_use_snglinst"
4137 if test "$no_cache" != 1; then
4138 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
4139 fi
4140
4141 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
698dcdb6 4142 echo "$ac_t""yes" 1>&6
4f3c5f06 4143 else
698dcdb6 4144 echo "$ac_t""no" 1>&6
4f3c5f06 4145 fi
698dcdb6
VZ
4146
4147
eb4efbdc 4148
1e6feb95 4149 echo $ac_n "checking for --enable-mimetype""... $ac_c" 1>&6
683dccda 4150echo "configure:4151: checking for --enable-mimetype" >&5
1e6feb95
VZ
4151 no_cache=0
4152 # Check whether --enable-mimetype or --disable-mimetype was given.
4153if test "${enable_mimetype+set}" = set; then
4154 enableval="$enable_mimetype"
4155
4156 if test "$enableval" = yes; then
4157 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
4158 else
4159 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
4160 fi
4161
4162else
4163
4164 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
4165 if test "x$LINE" != x ; then
4166 eval "DEFAULT_$LINE"
4167 else
4168 no_cache=1
4169 fi
4170
4171 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
4172
4173fi
4174
4175
4176 eval "$ac_cv_use_mimetype"
4177 if test "$no_cache" != 1; then
4178 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
4179 fi
4180
4181 if test "$wxUSE_MIMETYPE" = yes; then
4182 echo "$ac_t""yes" 1>&6
4183 else
4184 echo "$ac_t""no" 1>&6
4185 fi
4186
4187
3e44f09d 4188 echo $ac_n "checking for --enable-system_options""... $ac_c" 1>&6
683dccda 4189echo "configure:4190: checking for --enable-system_options" >&5
3e44f09d
VZ
4190 no_cache=0
4191 # Check whether --enable-system_options or --disable-system_options was given.
4192if test "${enable_system_options+set}" = set; then
4193 enableval="$enable_system_options"
4194
4195 if test "$enableval" = yes; then
4196 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
4197 else
4198 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
4199 fi
4200
4201else
4202
4203 LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
4204 if test "x$LINE" != x ; then
4205 eval "DEFAULT_$LINE"
4206 else
4207 no_cache=1
4208 fi
4209
4210 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
4211
4212fi
4213
4214
4215 eval "$ac_cv_use_system_options"
4216 if test "$no_cache" != 1; then
4217 echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
4218 fi
4219
4220 if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
4221 echo "$ac_t""yes" 1>&6
4222 else
4223 echo "$ac_t""no" 1>&6
4224 fi
4225
4226
1e6feb95 4227
698dcdb6
VZ
4228
4229 echo $ac_n "checking for --enable-threads""... $ac_c" 1>&6
683dccda 4230echo "configure:4231: checking for --enable-threads" >&5
10f2d63a
VZ
4231 no_cache=0
4232 # Check whether --enable-threads or --disable-threads was given.
4233if test "${enable_threads+set}" = set; then
4234 enableval="$enable_threads"
698dcdb6 4235
10f2d63a
VZ
4236 if test "$enableval" = yes; then
4237 ac_cv_use_threads='wxUSE_THREADS=yes'
4238 else
4239 ac_cv_use_threads='wxUSE_THREADS=no'
4240 fi
698dcdb6 4241
10f2d63a 4242else
698dcdb6 4243
10f2d63a
VZ
4244 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
4245 if test "x$LINE" != x ; then
4246 eval "DEFAULT_$LINE"
4247 else
4248 no_cache=1
4249 fi
4250
4251 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
698dcdb6
VZ
4252
4253fi
10f2d63a
VZ
4254
4255
4256 eval "$ac_cv_use_threads"
4257 if test "$no_cache" != 1; then
4258 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
4259 fi
4260
4261 if test "$wxUSE_THREADS" = yes; then
698dcdb6 4262 echo "$ac_t""yes" 1>&6
10f2d63a 4263 else
698dcdb6 4264 echo "$ac_t""no" 1>&6
10f2d63a 4265 fi
698dcdb6 4266
10f2d63a 4267
698dcdb6 4268 echo $ac_n "checking for --enable-serial""... $ac_c" 1>&6
683dccda 4269echo "configure:4270: checking for --enable-serial" >&5
10f2d63a
VZ
4270 no_cache=0
4271 # Check whether --enable-serial or --disable-serial was given.
4272if test "${enable_serial+set}" = set; then
4273 enableval="$enable_serial"
698dcdb6 4274
10f2d63a
VZ
4275 if test "$enableval" = yes; then
4276 ac_cv_use_serial='wxUSE_SERIAL=yes'
4277 else
4278 ac_cv_use_serial='wxUSE_SERIAL=no'
4279 fi
698dcdb6 4280
10f2d63a 4281else
698dcdb6 4282
10f2d63a
VZ
4283 LINE=`grep "wxUSE_SERIAL" ${wx_arg_cache_file}`
4284 if test "x$LINE" != x ; then
4285 eval "DEFAULT_$LINE"
4286 else
4287 no_cache=1
4288 fi
4289
4290 ac_cv_use_serial='wxUSE_SERIAL='$DEFAULT_wxUSE_SERIAL
698dcdb6
VZ
4291
4292fi
10f2d63a
VZ
4293
4294
4295 eval "$ac_cv_use_serial"
4296 if test "$no_cache" != 1; then
4297 echo $ac_cv_use_serial >> ${wx_arg_cache_file}.tmp
4298 fi
4299
4300 if test "$wxUSE_SERIAL" = yes; then
698dcdb6 4301 echo "$ac_t""yes" 1>&6
10f2d63a 4302 else
698dcdb6 4303 echo "$ac_t""no" 1>&6
10f2d63a 4304 fi
698dcdb6 4305
10f2d63a 4306
b12915c1
VZ
4307if test "$wxUSE_GUI" = "yes"; then
4308
698dcdb6
VZ
4309
4310
4311 echo $ac_n "checking for --enable-docview""... $ac_c" 1>&6
683dccda 4312echo "configure:4313: checking for --enable-docview" >&5
10f2d63a
VZ
4313 no_cache=0
4314 # Check whether --enable-docview or --disable-docview was given.
4315if test "${enable_docview+set}" = set; then
4316 enableval="$enable_docview"
698dcdb6 4317
10f2d63a
VZ
4318 if test "$enableval" = yes; then
4319 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
4320 else
4321 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
4322 fi
698dcdb6 4323
10f2d63a 4324else
698dcdb6 4325
10f2d63a
VZ
4326 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
4327 if test "x$LINE" != x ; then
4328 eval "DEFAULT_$LINE"
4329 else
4330 no_cache=1
4331 fi
4332
4333 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
698dcdb6
VZ
4334
4335fi
10f2d63a
VZ
4336
4337
4338 eval "$ac_cv_use_docview"
4339 if test "$no_cache" != 1; then
4340 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
4341 fi
4342
4343 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
698dcdb6 4344 echo "$ac_t""yes" 1>&6
10f2d63a 4345 else
698dcdb6 4346 echo "$ac_t""no" 1>&6
10f2d63a 4347 fi
698dcdb6 4348
10f2d63a 4349
698dcdb6 4350 echo $ac_n "checking for --enable-help""... $ac_c" 1>&6
683dccda 4351echo "configure:4352: checking for --enable-help" >&5
10f2d63a
VZ
4352 no_cache=0
4353 # Check whether --enable-help or --disable-help was given.
4354if test "${enable_help+set}" = set; then
4355 enableval="$enable_help"
698dcdb6 4356
10f2d63a
VZ
4357 if test "$enableval" = yes; then
4358 ac_cv_use_help='wxUSE_HELP=yes'
4359 else
4360 ac_cv_use_help='wxUSE_HELP=no'
4361 fi
698dcdb6 4362
10f2d63a 4363else
698dcdb6 4364
10f2d63a
VZ
4365 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
4366 if test "x$LINE" != x ; then
4367 eval "DEFAULT_$LINE"
4368 else
4369 no_cache=1
4370 fi
4371
4372 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
698dcdb6
VZ
4373
4374fi
10f2d63a
VZ
4375
4376
4377 eval "$ac_cv_use_help"
4378 if test "$no_cache" != 1; then
4379 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
4380 fi
4381
4382 if test "$wxUSE_HELP" = yes; then
698dcdb6 4383 echo "$ac_t""yes" 1>&6
10f2d63a 4384 else
698dcdb6 4385 echo "$ac_t""no" 1>&6
10f2d63a 4386 fi
698dcdb6 4387
10f2d63a 4388
29fd3c0c 4389 echo $ac_n "checking for --enable-mshtmlhelp""... $ac_c" 1>&6
683dccda 4390echo "configure:4391: checking for --enable-mshtmlhelp" >&5
29fd3c0c
VS
4391 no_cache=0
4392 # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
4393if test "${enable_mshtmlhelp+set}" = set; then
4394 enableval="$enable_mshtmlhelp"
4395
4396 if test "$enableval" = yes; then
4397 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
4398 else
4399 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
4400 fi
4401
4402else
4403
4404 LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
4405 if test "x$LINE" != x ; then
4406 eval "DEFAULT_$LINE"
4407 else
4408 no_cache=1
4409 fi
4410
4411 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
4412
4413fi
4414
4415
4416 eval "$ac_cv_use_mshtmlhelp"
4417 if test "$no_cache" != 1; then
4418 echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
4419 fi
4420
4421 if test "$wxUSE_MS_HTML_HELP" = yes; then
4422 echo "$ac_t""yes" 1>&6
4423 else
4424 echo "$ac_t""no" 1>&6
4425 fi
4426
4427
3379ed37 4428 echo $ac_n "checking for --enable-html""... $ac_c" 1>&6
683dccda 4429echo "configure:4430: checking for --enable-html" >&5
3379ed37
VZ
4430 no_cache=0
4431 # Check whether --enable-html or --disable-html was given.
4432if test "${enable_html+set}" = set; then
4433 enableval="$enable_html"
4434
4435 if test "$enableval" = yes; then
4436 ac_cv_use_html='wxUSE_HTML=yes'
4437 else
4438 ac_cv_use_html='wxUSE_HTML=no'
4439 fi
4440
4441else
4442
4443 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
4444 if test "x$LINE" != x ; then
4445 eval "DEFAULT_$LINE"
4446 else
4447 no_cache=1
4448 fi
4449
4450 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
4451
4452fi
4453
4454
4455 eval "$ac_cv_use_html"
4456 if test "$no_cache" != 1; then
4457 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
4458 fi
4459
4460 if test "$wxUSE_HTML" = yes; then
4461 echo "$ac_t""yes" 1>&6
4462 else
4463 echo "$ac_t""no" 1>&6
4464 fi
4465
4466
4467 echo $ac_n "checking for --enable-htmlhelp""... $ac_c" 1>&6
683dccda 4468echo "configure:4469: checking for --enable-htmlhelp" >&5
3379ed37
VZ
4469 no_cache=0
4470 # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
4471if test "${enable_htmlhelp+set}" = set; then
4472 enableval="$enable_htmlhelp"
4473
4474 if test "$enableval" = yes; then
4475 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
4476 else
4477 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
4478 fi
4479
4480else
4481
4482 LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
4483 if test "x$LINE" != x ; then
4484 eval "DEFAULT_$LINE"
4485 else
4486 no_cache=1
4487 fi
4488
4489 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
4490
4491fi
4492
4493
4494 eval "$ac_cv_use_htmlhelp"
4495 if test "$no_cache" != 1; then
4496 echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
4497 fi
4498
4499 if test "$wxUSE_WXHTML_HELP" = yes; then
4500 echo "$ac_t""yes" 1>&6
4501 else
4502 echo "$ac_t""no" 1>&6
4503 fi
4504
4505
698dcdb6 4506 echo $ac_n "checking for --enable-constraints""... $ac_c" 1>&6
683dccda 4507echo "configure:4508: checking for --enable-constraints" >&5
10f2d63a
VZ
4508 no_cache=0
4509 # Check whether --enable-constraints or --disable-constraints was given.
4510if test "${enable_constraints+set}" = set; then
4511 enableval="$enable_constraints"
698dcdb6 4512
10f2d63a
VZ
4513 if test "$enableval" = yes; then
4514 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
4515 else
4516 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
4517 fi
698dcdb6 4518
10f2d63a 4519else
698dcdb6 4520
10f2d63a
VZ
4521 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
4522 if test "x$LINE" != x ; then
4523 eval "DEFAULT_$LINE"
4524 else
4525 no_cache=1
4526 fi
4527
4528 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
698dcdb6
VZ
4529
4530fi
10f2d63a
VZ
4531
4532
4533 eval "$ac_cv_use_constraints"
4534 if test "$no_cache" != 1; then
4535 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
4536 fi
4537
4538 if test "$wxUSE_CONSTRAINTS" = yes; then
698dcdb6 4539 echo "$ac_t""yes" 1>&6
10f2d63a 4540 else
698dcdb6 4541 echo "$ac_t""no" 1>&6
10f2d63a 4542 fi
698dcdb6 4543
10f2d63a 4544
698dcdb6 4545 echo $ac_n "checking for --enable-printarch""... $ac_c" 1>&6
683dccda 4546echo "configure:4547: checking for --enable-printarch" >&5
10f2d63a
VZ
4547 no_cache=0
4548 # Check whether --enable-printarch or --disable-printarch was given.
4549if test "${enable_printarch+set}" = set; then
4550 enableval="$enable_printarch"
698dcdb6 4551
10f2d63a
VZ
4552 if test "$enableval" = yes; then
4553 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
4554 else
4555 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
4556 fi
698dcdb6 4557
10f2d63a 4558else
698dcdb6 4559
10f2d63a
VZ
4560 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
4561 if test "x$LINE" != x ; then
4562 eval "DEFAULT_$LINE"
4563 else
4564 no_cache=1
4565 fi
4566
4567 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
698dcdb6
VZ
4568
4569fi
10f2d63a
VZ
4570
4571
4572 eval "$ac_cv_use_printarch"
4573 if test "$no_cache" != 1; then
4574 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
4575 fi
4576
4577 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
698dcdb6 4578 echo "$ac_t""yes" 1>&6
10f2d63a 4579 else
698dcdb6 4580 echo "$ac_t""no" 1>&6
10f2d63a 4581 fi
698dcdb6 4582
10f2d63a 4583
698dcdb6 4584 echo $ac_n "checking for --enable-mdi""... $ac_c" 1>&6
683dccda 4585echo "configure:4586: checking for --enable-mdi" >&5
10f2d63a
VZ
4586 no_cache=0
4587 # Check whether --enable-mdi or --disable-mdi was given.
4588if test "${enable_mdi+set}" = set; then
4589 enableval="$enable_mdi"
698dcdb6 4590
10f2d63a
VZ
4591 if test "$enableval" = yes; then
4592 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes'
4593 else
4594 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no'
4595 fi
698dcdb6 4596
10f2d63a 4597else
698dcdb6 4598
10f2d63a
VZ
4599 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
4600 if test "x$LINE" != x ; then
4601 eval "DEFAULT_$LINE"
4602 else
4603 no_cache=1
4604 fi
4605
4606 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
698dcdb6
VZ
4607
4608fi
10f2d63a
VZ
4609
4610
4611 eval "$ac_cv_use_mdi"
4612 if test "$no_cache" != 1; then
4613 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
4614 fi
4615
4616 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
698dcdb6 4617 echo "$ac_t""yes" 1>&6
10f2d63a 4618 else
698dcdb6 4619 echo "$ac_t""no" 1>&6
10f2d63a 4620 fi
698dcdb6
VZ
4621
4622
1e6feb95 4623 echo $ac_n "checking for --enable-loggui""... $ac_c" 1>&6
683dccda 4624echo "configure:4625: checking for --enable-loggui" >&5
1e6feb95
VZ
4625 no_cache=0
4626 # Check whether --enable-loggui or --disable-loggui was given.
4627if test "${enable_loggui+set}" = set; then
4628 enableval="$enable_loggui"
4629
4630 if test "$enableval" = yes; then
4631 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
4632 else
4633 ac_cv_use_loggui='wxUSE_LOGGUI=no'
4634 fi
4635
4636else
4637
4638 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
4639 if test "x$LINE" != x ; then
4640 eval "DEFAULT_$LINE"
4641 else
4642 no_cache=1
4643 fi
4644
4645 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
4646
4647fi
4648
4649
4650 eval "$ac_cv_use_loggui"
4651 if test "$no_cache" != 1; then
4652 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
4653 fi
4654
4655 if test "$wxUSE_LOGGUI" = yes; then
4656 echo "$ac_t""yes" 1>&6
4657 else
4658 echo "$ac_t""no" 1>&6
4659 fi
4660
4661
4662 echo $ac_n "checking for --enable-logwin""... $ac_c" 1>&6
683dccda 4663echo "configure:4664: checking for --enable-logwin" >&5
1e6feb95
VZ
4664 no_cache=0
4665 # Check whether --enable-logwin or --disable-logwin was given.
4666if test "${enable_logwin+set}" = set; then
4667 enableval="$enable_logwin"
4668
4669 if test "$enableval" = yes; then
4670 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
4671 else
4672 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
4673 fi
4674
4675else
4676
4677 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
4678 if test "x$LINE" != x ; then
4679 eval "DEFAULT_$LINE"
4680 else
4681 no_cache=1
4682 fi
4683
4684 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
4685
4686fi
4687
4688
4689 eval "$ac_cv_use_logwin"
4690 if test "$no_cache" != 1; then
4691 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
4692 fi
4693
4694 if test "$wxUSE_LOGWINDOW" = yes; then
4695 echo "$ac_t""yes" 1>&6
4696 else
4697 echo "$ac_t""no" 1>&6
4698 fi
4699
4700
10f2d63a 4701
698dcdb6 4702 echo $ac_n "checking for --enable-postscript""... $ac_c" 1>&6
683dccda 4703echo "configure:4704: checking for --enable-postscript" >&5
10f2d63a
VZ
4704 no_cache=0
4705 # Check whether --enable-postscript or --disable-postscript was given.
4706if test "${enable_postscript+set}" = set; then
4707 enableval="$enable_postscript"
698dcdb6 4708
10f2d63a
VZ
4709 if test "$enableval" = yes; then
4710 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
4711 else
4712 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
4713 fi
698dcdb6 4714
10f2d63a 4715else
698dcdb6 4716
10f2d63a
VZ
4717 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
4718 if test "x$LINE" != x ; then
4719 eval "DEFAULT_$LINE"
4720 else
4721 no_cache=1
4722 fi
4723
4724 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
698dcdb6
VZ
4725
4726fi
10f2d63a
VZ
4727
4728
4729 eval "$ac_cv_use_postscript"
4730 if test "$no_cache" != 1; then
4731 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
4732 fi
4733
4734 if test "$wxUSE_POSTSCRIPT" = yes; then
698dcdb6 4735 echo "$ac_t""yes" 1>&6
10f2d63a 4736 else
698dcdb6 4737 echo "$ac_t""no" 1>&6
10f2d63a 4738 fi
698dcdb6
VZ
4739
4740
4741
10f2d63a 4742
1e6feb95 4743
698dcdb6 4744 echo $ac_n "checking for --enable-prologio""... $ac_c" 1>&6
683dccda 4745echo "configure:4746: checking for --enable-prologio" >&5
10f2d63a
VZ
4746 no_cache=0
4747 # Check whether --enable-prologio or --disable-prologio was given.
4748if test "${enable_prologio+set}" = set; then
4749 enableval="$enable_prologio"
698dcdb6 4750
10f2d63a
VZ
4751 if test "$enableval" = yes; then
4752 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
4753 else
4754 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
4755 fi
698dcdb6 4756
10f2d63a 4757else
698dcdb6 4758
10f2d63a
VZ
4759 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
4760 if test "x$LINE" != x ; then
4761 eval "DEFAULT_$LINE"
4762 else
4763 no_cache=1
4764 fi
4765
4766 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
698dcdb6
VZ
4767
4768fi
10f2d63a
VZ
4769
4770
4771 eval "$ac_cv_use_prologio"
4772 if test "$no_cache" != 1; then
4773 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
4774 fi
4775
4776 if test "$wxUSE_PROLOGIO" = yes; then
698dcdb6 4777 echo "$ac_t""yes" 1>&6
10f2d63a 4778 else
698dcdb6 4779 echo "$ac_t""no" 1>&6
10f2d63a 4780 fi
698dcdb6 4781
10f2d63a 4782
698dcdb6 4783 echo $ac_n "checking for --enable-resources""... $ac_c" 1>&6
683dccda 4784echo "configure:4785: checking for --enable-resources" >&5
10f2d63a
VZ
4785 no_cache=0
4786 # Check whether --enable-resources or --disable-resources was given.
4787if test "${enable_resources+set}" = set; then
4788 enableval="$enable_resources"
698dcdb6 4789
10f2d63a
VZ
4790 if test "$enableval" = yes; then
4791 ac_cv_use_resources='wxUSE_RESOURCES=yes'
4792 else
4793 ac_cv_use_resources='wxUSE_RESOURCES=no'
4794 fi
698dcdb6 4795
10f2d63a 4796else
698dcdb6 4797
10f2d63a
VZ
4798 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
4799 if test "x$LINE" != x ; then
4800 eval "DEFAULT_$LINE"
4801 else
4802 no_cache=1
4803 fi
4804
4805 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
698dcdb6
VZ
4806
4807fi
10f2d63a
VZ
4808
4809
4810 eval "$ac_cv_use_resources"
4811 if test "$no_cache" != 1; then
4812 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
4813 fi
4814
4815 if test "$wxUSE_RESOURCES" = yes; then
698dcdb6 4816 echo "$ac_t""yes" 1>&6
10f2d63a 4817 else
698dcdb6 4818 echo "$ac_t""no" 1>&6
10f2d63a 4819 fi
698dcdb6 4820
10f2d63a 4821
698dcdb6
VZ
4822
4823 echo $ac_n "checking for --enable-xresources""... $ac_c" 1>&6
683dccda 4824echo "configure:4825: checking for --enable-xresources" >&5
10f2d63a
VZ
4825 no_cache=0
4826 # Check whether --enable-xresources or --disable-xresources was given.
4827if test "${enable_xresources+set}" = set; then
4828 enableval="$enable_xresources"
698dcdb6 4829
10f2d63a
VZ
4830 if test "$enableval" = yes; then
4831 ac_cv_use_xresources='wxUSE_X_RESOURCES=yes'
4832 else
4833 ac_cv_use_xresources='wxUSE_X_RESOURCES=no'
4834 fi
698dcdb6 4835
10f2d63a 4836else
698dcdb6 4837
10f2d63a
VZ
4838 LINE=`grep "wxUSE_X_RESOURCES" ${wx_arg_cache_file}`
4839 if test "x$LINE" != x ; then
4840 eval "DEFAULT_$LINE"
4841 else
4842 no_cache=1
4843 fi
4844
4845 ac_cv_use_xresources='wxUSE_X_RESOURCES='$DEFAULT_wxUSE_X_RESOURCES
698dcdb6
VZ
4846
4847fi
10f2d63a
VZ
4848
4849
4850 eval "$ac_cv_use_xresources"
4851 if test "$no_cache" != 1; then
4852 echo $ac_cv_use_xresources >> ${wx_arg_cache_file}.tmp
4853 fi
4854
4855 if test "$wxUSE_X_RESOURCES" = yes; then
698dcdb6 4856 echo "$ac_t""yes" 1>&6
10f2d63a 4857 else
698dcdb6 4858 echo "$ac_t""no" 1>&6
10f2d63a 4859 fi
698dcdb6
VZ
4860
4861
10f2d63a 4862
698dcdb6
VZ
4863
4864 echo $ac_n "checking for --enable-clipboard""... $ac_c" 1>&6
683dccda 4865echo "configure:4866: checking for --enable-clipboard" >&5
10f2d63a
VZ
4866 no_cache=0
4867 # Check whether --enable-clipboard or --disable-clipboard was given.
4868if test "${enable_clipboard+set}" = set; then
4869 enableval="$enable_clipboard"
698dcdb6 4870
10f2d63a
VZ
4871 if test "$enableval" = yes; then
4872 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
4873 else
4874 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
4875 fi
698dcdb6 4876
10f2d63a 4877else
698dcdb6 4878
10f2d63a
VZ
4879 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
4880 if test "x$LINE" != x ; then
4881 eval "DEFAULT_$LINE"
4882 else
4883 no_cache=1
4884 fi
4885
4886 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
698dcdb6
VZ
4887
4888fi
10f2d63a
VZ
4889
4890
4891 eval "$ac_cv_use_clipboard"
4892 if test "$no_cache" != 1; then
4893 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
4894 fi
4895
4896 if test "$wxUSE_CLIPBOARD" = yes; then
698dcdb6 4897 echo "$ac_t""yes" 1>&6
10f2d63a 4898 else
698dcdb6 4899 echo "$ac_t""no" 1>&6
10f2d63a 4900 fi
698dcdb6 4901
10f2d63a 4902
698dcdb6 4903 echo $ac_n "checking for --enable-dnd""... $ac_c" 1>&6
683dccda 4904echo "configure:4905: checking for --enable-dnd" >&5
10f2d63a
VZ
4905 no_cache=0
4906 # Check whether --enable-dnd or --disable-dnd was given.
4907if test "${enable_dnd+set}" = set; then
4908 enableval="$enable_dnd"
698dcdb6 4909
10f2d63a
VZ
4910 if test "$enableval" = yes; then
4911 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
4912 else
4913 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
4914 fi
698dcdb6 4915
10f2d63a 4916else
698dcdb6 4917
10f2d63a
VZ
4918 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
4919 if test "x$LINE" != x ; then
4920 eval "DEFAULT_$LINE"
4921 else
4922 no_cache=1
4923 fi
4924
4925 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
698dcdb6
VZ
4926
4927fi
10f2d63a
VZ
4928
4929
4930 eval "$ac_cv_use_dnd"
4931 if test "$no_cache" != 1; then
4932 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
4933 fi
4934
4935 if test "$wxUSE_DRAG_AND_DROP" = yes; then
698dcdb6 4936 echo "$ac_t""yes" 1>&6
10f2d63a 4937 else
698dcdb6 4938 echo "$ac_t""no" 1>&6
10f2d63a 4939 fi
698dcdb6 4940
10f2d63a 4941
698dcdb6 4942 echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6
683dccda 4943echo "configure:4944: checking for --enable-metafile" >&5
b64f0a5f
RL
4944 no_cache=0
4945 # Check whether --enable-metafile or --disable-metafile was given.
4946if test "${enable_metafile+set}" = set; then
4947 enableval="$enable_metafile"
698dcdb6 4948
b64f0a5f
RL
4949 if test "$enableval" = yes; then
4950 ac_cv_use_metafile='wxUSE_METAFILE=yes'
4951 else
4952 ac_cv_use_metafile='wxUSE_METAFILE=no'
4953 fi
698dcdb6 4954
b64f0a5f 4955else
698dcdb6 4956
b64f0a5f
RL
4957 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
4958 if test "x$LINE" != x ; then
4959 eval "DEFAULT_$LINE"
4960 else
4961 no_cache=1
4962 fi
4963
4964 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
698dcdb6
VZ
4965
4966fi
b64f0a5f
RL
4967
4968
4969 eval "$ac_cv_use_metafile"
4970 if test "$no_cache" != 1; then
4971 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
4972 fi
4973
4974 if test "$wxUSE_METAFILE" = yes; then
698dcdb6 4975 echo "$ac_t""yes" 1>&6
b64f0a5f 4976 else
698dcdb6 4977 echo "$ac_t""no" 1>&6
b64f0a5f 4978 fi
698dcdb6
VZ
4979
4980
10f2d63a 4981
24176f2c 4982 echo $ac_n "checking for --enable-treelayout""... $ac_c" 1>&6
683dccda 4983echo "configure:4984: checking for --enable-treelayout" >&5
10f2d63a 4984 no_cache=0
24176f2c
GD
4985 # Check whether --enable-treelayout or --disable-treelayout was given.
4986if test "${enable_treelayout+set}" = set; then
4987 enableval="$enable_treelayout"
698dcdb6 4988
10f2d63a 4989 if test "$enableval" = yes; then
24176f2c 4990 ac_cv_use_treelayout='wxUSE_TREELAYOUT=yes'
10f2d63a 4991 else
24176f2c 4992 ac_cv_use_treelayout='wxUSE_TREELAYOUT=no'
10f2d63a 4993 fi
698dcdb6 4994
10f2d63a 4995else
698dcdb6 4996
24176f2c 4997 LINE=`grep "wxUSE_TREELAYOUT" ${wx_arg_cache_file}`
10f2d63a
VZ
4998 if test "x$LINE" != x ; then
4999 eval "DEFAULT_$LINE"
5000 else
5001 no_cache=1
5002 fi
5003
24176f2c 5004 ac_cv_use_treelayout='wxUSE_TREELAYOUT='$DEFAULT_wxUSE_TREELAYOUT
698dcdb6
VZ
5005
5006fi
10f2d63a
VZ
5007
5008
24176f2c 5009 eval "$ac_cv_use_treelayout"
10f2d63a 5010 if test "$no_cache" != 1; then
24176f2c 5011 echo $ac_cv_use_treelayout >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
5012 fi
5013
24176f2c 5014 if test "$wxUSE_TREELAYOUT" = yes; then
698dcdb6 5015 echo "$ac_t""yes" 1>&6
10f2d63a 5016 else
698dcdb6 5017 echo "$ac_t""no" 1>&6
10f2d63a 5018 fi
698dcdb6 5019
10f2d63a 5020
698dcdb6
VZ
5021
5022
5023 echo $ac_n "checking for --enable-controls""... $ac_c" 1>&6
683dccda 5024echo "configure:5025: checking for --enable-controls" >&5
10f2d63a
VZ
5025 no_cache=0
5026 # Check whether --enable-controls or --disable-controls was given.
5027if test "${enable_controls+set}" = set; then
5028 enableval="$enable_controls"
698dcdb6 5029
10f2d63a
VZ
5030 if test "$enableval" = yes; then
5031 ac_cv_use_controls='wxUSE_CONTROLS=yes'
5032 else
5033 ac_cv_use_controls='wxUSE_CONTROLS=no'
5034 fi
698dcdb6 5035
10f2d63a 5036else
698dcdb6 5037
10f2d63a
VZ
5038 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
5039 if test "x$LINE" != x ; then
5040 eval "DEFAULT_$LINE"
5041 else
5042 no_cache=1
5043 fi
5044
5045 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
698dcdb6
VZ
5046
5047fi
10f2d63a
VZ
5048
5049
5050 eval "$ac_cv_use_controls"
5051 if test "$no_cache" != 1; then
5052 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
5053 fi
5054
5055 if test "$wxUSE_CONTROLS" = yes; then
698dcdb6 5056 echo "$ac_t""yes" 1>&6
10f2d63a 5057 else
698dcdb6 5058 echo "$ac_t""no" 1>&6
10f2d63a 5059 fi
698dcdb6 5060
10f2d63a
VZ
5061
5062if test "$wxUSE_CONTROLS" = "yes"; then
5063 DEFAULT_wxUSE_ACCEL=yes
1e6feb95
VZ
5064 DEFAULT_wxUSE_BMPBUTTON=yes
5065 DEFAULT_wxUSE_BUTTON=yes
5066 DEFAULT_wxUSE_CALCTRL=no
10f2d63a
VZ
5067 DEFAULT_wxUSE_CARET=yes
5068 DEFAULT_wxUSE_COMBOBOX=yes
10f2d63a
VZ
5069 DEFAULT_wxUSE_CHECKBOX=yes
5070 DEFAULT_wxUSE_CHECKLISTBOX=yes
5071 DEFAULT_wxUSE_CHOICE=yes
5072 DEFAULT_wxUSE_GAUGE=yes
5073 DEFAULT_wxUSE_GRID=yes
cc977e5f 5074 DEFAULT_wxUSE_NEW_GRID=yes
10f2d63a
VZ
5075 DEFAULT_wxUSE_IMAGLIST=yes
5076 DEFAULT_wxUSE_LISTBOX=yes
5077 DEFAULT_wxUSE_LISTCTRL=yes
5078 DEFAULT_wxUSE_NOTEBOOK=yes
24176f2c 5079 DEFAULT_wxUSE_PROPSHEET=yes
10f2d63a
VZ
5080 DEFAULT_wxUSE_RADIOBOX=yes
5081 DEFAULT_wxUSE_RADIOBTN=yes
5082 DEFAULT_wxUSE_SASH=yes
5083 DEFAULT_wxUSE_SCROLLBAR=yes
5084 DEFAULT_wxUSE_SLIDER=yes
5085 DEFAULT_wxUSE_SPINBTN=yes
56cfaa52 5086 DEFAULT_wxUSE_SPINCTRL=yes
10f2d63a
VZ
5087 DEFAULT_wxUSE_SPLITTER=yes
5088 DEFAULT_wxUSE_STATBMP=yes
5089 DEFAULT_wxUSE_STATBOX=yes
5090 DEFAULT_wxUSE_STATLINE=yes
5091 DEFAULT_wxUSE_STATUSBAR=yes
5092 DEFAULT_wxUSE_TAB_DIALOG=yes
1db8dc4a 5093 DEFAULT_wxUSE_TOGGLEBTN=yes
10f2d63a 5094 DEFAULT_wxUSE_TOOLBAR=yes
360d6699
VZ
5095 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
5096 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
10f2d63a
VZ
5097 DEFAULT_wxUSE_TOOLTIPS=yes
5098 DEFAULT_wxUSE_TREECTRL=yes
9f41d601 5099 DEFAULT_wxUSE_POPUPWIN=yes
10f2d63a
VZ
5100elif test "$wxUSE_CONTROLS" = "no"; then
5101 DEFAULT_wxUSE_ACCEL=no
1e6feb95
VZ
5102 DEFAULT_wxUSE_BMPBUTTON=no
5103 DEFAULT_wxUSE_BUTTON=no
5104 DEFAULT_wxUSE_CALCTRL=no
10f2d63a
VZ
5105 DEFAULT_wxUSE_CARET=no
5106 DEFAULT_wxUSE_COMBOBOX=no
10f2d63a
VZ
5107 DEFAULT_wxUSE_CHECKBOX=no
5108 DEFAULT_wxUSE_CHECKLISTBOX=no
5109 DEFAULT_wxUSE_CHOICE=no
5110 DEFAULT_wxUSE_GAUGE=no
5111 DEFAULT_wxUSE_GRID=no
5112 DEFAULT_wxUSE_NEW_GRID=no
5113 DEFAULT_wxUSE_IMAGLIST=no
5114 DEFAULT_wxUSE_LISTBOX=no
5115 DEFAULT_wxUSE_LISTCTRL=no
5116 DEFAULT_wxUSE_NOTEBOOK=no
24176f2c 5117 DEFAULT_wxUSE_PROPSHEET=no
10f2d63a
VZ
5118 DEFAULT_wxUSE_RADIOBOX=no
5119 DEFAULT_wxUSE_RADIOBTN=no
5120 DEFAULT_wxUSE_SASH=no
5121 DEFAULT_wxUSE_SCROLLBAR=no
5122 DEFAULT_wxUSE_SLIDER=no
5123 DEFAULT_wxUSE_SPINBTN=no
56cfaa52 5124 DEFAULT_wxUSE_SPINCTRL=no
10f2d63a
VZ
5125 DEFAULT_wxUSE_SPLITTER=no
5126 DEFAULT_wxUSE_STATBMP=no
5127 DEFAULT_wxUSE_STATBOX=no
5128 DEFAULT_wxUSE_STATLINE=no
5129 DEFAULT_wxUSE_STATUSBAR=no
5130 DEFAULT_wxUSE_TAB_DIALOG=no
1db8dc4a 5131 DEFAULT_wxUSE_TOGGLEBTN=no
10f2d63a 5132 DEFAULT_wxUSE_TOOLBAR=no
360d6699
VZ
5133 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
5134 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
10f2d63a
VZ
5135 DEFAULT_wxUSE_TOOLTIPS=no
5136 DEFAULT_wxUSE_TREECTRL=no
9f41d601 5137 DEFAULT_wxUSE_POPUPWIN=no
10f2d63a
VZ
5138fi
5139
698dcdb6
VZ
5140
5141 echo $ac_n "checking for --enable-accel""... $ac_c" 1>&6
683dccda 5142echo "configure:5143: checking for --enable-accel" >&5
10f2d63a
VZ
5143 no_cache=0
5144 # Check whether --enable-accel or --disable-accel was given.
5145if test "${enable_accel+set}" = set; then
5146 enableval="$enable_accel"
698dcdb6 5147
10f2d63a
VZ
5148 if test "$enableval" = yes; then
5149 ac_cv_use_accel='wxUSE_ACCEL=yes'
5150 else
5151 ac_cv_use_accel='wxUSE_ACCEL=no'
5152 fi
698dcdb6 5153
10f2d63a 5154else
698dcdb6 5155
10f2d63a
VZ
5156 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
5157 if test "x$LINE" != x ; then
5158 eval "DEFAULT_$LINE"
5159 else
5160 no_cache=1
5161 fi
5162
5163 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
698dcdb6
VZ
5164
5165fi
10f2d63a
VZ
5166
5167
5168 eval "$ac_cv_use_accel"
5169 if test "$no_cache" != 1; then
5170 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
5171 fi
5172
5173 if test "$wxUSE_ACCEL" = yes; then
698dcdb6 5174 echo "$ac_t""yes" 1>&6
10f2d63a 5175 else
698dcdb6 5176 echo "$ac_t""no" 1>&6
10f2d63a 5177 fi
698dcdb6 5178
10f2d63a 5179
1e6feb95 5180 echo $ac_n "checking for --enable-button""... $ac_c" 1>&6
683dccda 5181echo "configure:5182: checking for --enable-button" >&5
10f2d63a 5182 no_cache=0
1e6feb95
VZ
5183 # Check whether --enable-button or --disable-button was given.
5184if test "${enable_button+set}" = set; then
5185 enableval="$enable_button"
698dcdb6 5186
10f2d63a 5187 if test "$enableval" = yes; then
1e6feb95 5188 ac_cv_use_button='wxUSE_BUTTON=yes'
10f2d63a 5189 else
1e6feb95 5190 ac_cv_use_button='wxUSE_BUTTON=no'
10f2d63a 5191 fi
698dcdb6 5192
10f2d63a 5193else
698dcdb6 5194
1e6feb95 5195 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
10f2d63a
VZ
5196 if test "x$LINE" != x ; then
5197 eval "DEFAULT_$LINE"
5198 else
5199 no_cache=1
5200 fi
5201
1e6feb95 5202 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
698dcdb6
VZ
5203
5204fi
10f2d63a
VZ
5205
5206
1e6feb95 5207 eval "$ac_cv_use_button"
10f2d63a 5208 if test "$no_cache" != 1; then
1e6feb95 5209 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
5210 fi
5211
1e6feb95 5212 if test "$wxUSE_BUTTON" = yes; then
698dcdb6 5213 echo "$ac_t""yes" 1>&6
10f2d63a 5214 else
698dcdb6 5215 echo "$ac_t""no" 1>&6
10f2d63a 5216 fi
698dcdb6 5217
10f2d63a 5218
698dcdb6 5219 echo $ac_n "checking for --enable-bmpbutton""... $ac_c" 1>&6
683dccda 5220echo "configure:5221: checking for --enable-bmpbutton" >&5
10f2d63a
VZ
5221 no_cache=0
5222 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
5223if test "${enable_bmpbutton+set}" = set; then
5224 enableval="$enable_bmpbutton"
698dcdb6 5225
10f2d63a
VZ
5226 if test "$enableval" = yes; then
5227 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
5228 else
5229 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
5230 fi
698dcdb6 5231
10f2d63a 5232else
698dcdb6 5233
10f2d63a
VZ
5234 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
5235 if test "x$LINE" != x ; then
5236 eval "DEFAULT_$LINE"
5237 else
5238 no_cache=1
5239 fi
5240
5241 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
698dcdb6
VZ
5242
5243fi
10f2d63a
VZ
5244
5245
5246 eval "$ac_cv_use_bmpbutton"
5247 if test "$no_cache" != 1; then
5248 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
5249 fi
5250
5251 if test "$wxUSE_BMPBUTTON" = yes; then
698dcdb6 5252 echo "$ac_t""yes" 1>&6
10f2d63a 5253 else
698dcdb6 5254 echo "$ac_t""no" 1>&6
10f2d63a 5255 fi
698dcdb6 5256
10f2d63a 5257
1e6feb95 5258 echo $ac_n "checking for --enable-calendar""... $ac_c" 1>&6
683dccda 5259echo "configure:5260: checking for --enable-calendar" >&5
1e6feb95
VZ
5260 no_cache=0
5261 # Check whether --enable-calendar or --disable-calendar was given.
5262if test "${enable_calendar+set}" = set; then
5263 enableval="$enable_calendar"
5264
5265 if test "$enableval" = yes; then
5266 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
5267 else
5268 ac_cv_use_calendar='wxUSE_CALCTRL=no'
5269 fi
5270
5271else
5272
5273 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
5274 if test "x$LINE" != x ; then
5275 eval "DEFAULT_$LINE"
5276 else
5277 no_cache=1
5278 fi
5279
5280 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
5281
5282fi
5283
5284
5285 eval "$ac_cv_use_calendar"
5286 if test "$no_cache" != 1; then
5287 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
5288 fi
5289
5290 if test "$wxUSE_CALCTRL" = yes; then
5291 echo "$ac_t""yes" 1>&6
5292 else
5293 echo "$ac_t""no" 1>&6
5294 fi
5295
5296
5297 echo $ac_n "checking for --enable-caret""... $ac_c" 1>&6
683dccda 5298echo "configure:5299: checking for --enable-caret" >&5
1e6feb95
VZ
5299 no_cache=0
5300 # Check whether --enable-caret or --disable-caret was given.
5301if test "${enable_caret+set}" = set; then
5302 enableval="$enable_caret"
5303
5304 if test "$enableval" = yes; then
5305 ac_cv_use_caret='wxUSE_CARET=yes'
5306 else
5307 ac_cv_use_caret='wxUSE_CARET=no'
5308 fi
5309
5310else
5311
5312 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
5313 if test "x$LINE" != x ; then
5314 eval "DEFAULT_$LINE"
5315 else
5316 no_cache=1
5317 fi
5318
5319 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
5320
5321fi
5322
5323
5324 eval "$ac_cv_use_caret"
5325 if test "$no_cache" != 1; then
5326 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
5327 fi
5328
5329 if test "$wxUSE_CARET" = yes; then
5330 echo "$ac_t""yes" 1>&6
5331 else
5332 echo "$ac_t""no" 1>&6
5333 fi
5334
5335
698dcdb6 5336 echo $ac_n "checking for --enable-checkbox""... $ac_c" 1>&6
683dccda 5337echo "configure:5338: checking for --enable-checkbox" >&5
10f2d63a
VZ
5338 no_cache=0
5339 # Check whether --enable-checkbox or --disable-checkbox was given.
5340if test "${enable_checkbox+set}" = set; then
5341 enableval="$enable_checkbox"
698dcdb6 5342
10f2d63a
VZ
5343 if test "$enableval" = yes; then
5344 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
5345 else
5346 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
5347 fi
698dcdb6 5348
10f2d63a 5349else
698dcdb6 5350
10f2d63a
VZ
5351 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
5352 if test "x$LINE" != x ; then
5353 eval "DEFAULT_$LINE"
5354 else
5355 no_cache=1
5356 fi
5357
5358 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
698dcdb6
VZ
5359
5360fi
10f2d63a
VZ
5361
5362
5363 eval "$ac_cv_use_checkbox"
5364 if test "$no_cache" != 1; then
5365 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
5366 fi
5367
5368 if test "$wxUSE_CHECKBOX" = yes; then
698dcdb6 5369 echo "$ac_t""yes" 1>&6
10f2d63a 5370 else
698dcdb6 5371 echo "$ac_t""no" 1>&6
10f2d63a 5372 fi
698dcdb6 5373
10f2d63a 5374
698dcdb6 5375 echo $ac_n "checking for --enable-checklst""... $ac_c" 1>&6
683dccda 5376echo "configure:5377: checking for --enable-checklst" >&5
10f2d63a
VZ
5377 no_cache=0
5378 # Check whether --enable-checklst or --disable-checklst was given.
5379if test "${enable_checklst+set}" = set; then
5380 enableval="$enable_checklst"
698dcdb6 5381
10f2d63a
VZ
5382 if test "$enableval" = yes; then
5383 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
5384 else
5385 ac_cv_use_checklst='wxUSE_CHECKLST=no'
5386 fi
698dcdb6 5387
10f2d63a 5388else
698dcdb6 5389
10f2d63a
VZ
5390 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
5391 if test "x$LINE" != x ; then
5392 eval "DEFAULT_$LINE"
5393 else
5394 no_cache=1
5395 fi
5396
5397 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
698dcdb6
VZ
5398
5399fi
10f2d63a
VZ
5400
5401
5402 eval "$ac_cv_use_checklst"
5403 if test "$no_cache" != 1; then
5404 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
5405 fi
5406
5407 if test "$wxUSE_CHECKLST" = yes; then
698dcdb6 5408 echo "$ac_t""yes" 1>&6
10f2d63a 5409 else
698dcdb6 5410 echo "$ac_t""no" 1>&6
10f2d63a 5411 fi
698dcdb6 5412
10f2d63a 5413
698dcdb6 5414 echo $ac_n "checking for --enable-choice""... $ac_c" 1>&6
683dccda 5415echo "configure:5416: checking for --enable-choice" >&5
10f2d63a
VZ
5416 no_cache=0
5417 # Check whether --enable-choice or --disable-choice was given.
5418if test "${enable_choice+set}" = set; then
5419 enableval="$enable_choice"
698dcdb6 5420
10f2d63a
VZ
5421 if test "$enableval" = yes; then
5422 ac_cv_use_choice='wxUSE_CHOICE=yes'
5423 else
5424 ac_cv_use_choice='wxUSE_CHOICE=no'
5425 fi
698dcdb6 5426
10f2d63a 5427else
698dcdb6 5428
10f2d63a
VZ
5429 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
5430 if test "x$LINE" != x ; then
5431 eval "DEFAULT_$LINE"
5432 else
5433 no_cache=1
5434 fi
5435
5436 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
698dcdb6
VZ
5437
5438fi
10f2d63a
VZ
5439
5440
5441 eval "$ac_cv_use_choice"
5442 if test "$no_cache" != 1; then
5443 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
5444 fi
5445
5446 if test "$wxUSE_CHOICE" = yes; then
698dcdb6 5447 echo "$ac_t""yes" 1>&6
10f2d63a 5448 else
698dcdb6 5449 echo "$ac_t""no" 1>&6
10f2d63a 5450 fi
698dcdb6 5451
10f2d63a 5452
698dcdb6 5453 echo $ac_n "checking for --enable-combobox""... $ac_c" 1>&6
683dccda 5454echo "configure:5455: checking for --enable-combobox" >&5
10f2d63a
VZ
5455 no_cache=0
5456 # Check whether --enable-combobox or --disable-combobox was given.
5457if test "${enable_combobox+set}" = set; then
5458 enableval="$enable_combobox"
698dcdb6 5459
10f2d63a
VZ
5460 if test "$enableval" = yes; then
5461 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
5462 else
5463 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
5464 fi
698dcdb6 5465
10f2d63a 5466else
698dcdb6 5467
10f2d63a
VZ
5468 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
5469 if test "x$LINE" != x ; then
5470 eval "DEFAULT_$LINE"
5471 else
5472 no_cache=1
5473 fi
5474
5475 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
698dcdb6
VZ
5476
5477fi
10f2d63a
VZ
5478
5479
5480 eval "$ac_cv_use_combobox"
5481 if test "$no_cache" != 1; then
5482 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
5483 fi
5484
5485 if test "$wxUSE_COMBOBOX" = yes; then
698dcdb6 5486 echo "$ac_t""yes" 1>&6
10f2d63a 5487 else
698dcdb6 5488 echo "$ac_t""no" 1>&6
10f2d63a 5489 fi
698dcdb6 5490
10f2d63a 5491
698dcdb6 5492 echo $ac_n "checking for --enable-gauge""... $ac_c" 1>&6
683dccda 5493echo "configure:5494: checking for --enable-gauge" >&5
10f2d63a
VZ
5494 no_cache=0
5495 # Check whether --enable-gauge or --disable-gauge was given.
5496if test "${enable_gauge+set}" = set; then
5497 enableval="$enable_gauge"
698dcdb6 5498
10f2d63a
VZ
5499 if test "$enableval" = yes; then
5500 ac_cv_use_gauge='wxUSE_GAUGE=yes'
5501 else
5502 ac_cv_use_gauge='wxUSE_GAUGE=no'
5503 fi
698dcdb6 5504
10f2d63a 5505else
698dcdb6 5506
10f2d63a
VZ
5507 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
5508 if test "x$LINE" != x ; then
5509 eval "DEFAULT_$LINE"
5510 else
5511 no_cache=1
5512 fi
5513
5514 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
698dcdb6
VZ
5515
5516fi
10f2d63a
VZ
5517
5518
5519 eval "$ac_cv_use_gauge"
5520 if test "$no_cache" != 1; then
5521 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
5522 fi
5523
5524 if test "$wxUSE_GAUGE" = yes; then
698dcdb6 5525 echo "$ac_t""yes" 1>&6
10f2d63a 5526 else
698dcdb6 5527 echo "$ac_t""no" 1>&6
10f2d63a 5528 fi
698dcdb6 5529
10f2d63a 5530
698dcdb6 5531 echo $ac_n "checking for --enable-grid""... $ac_c" 1>&6
683dccda 5532echo "configure:5533: checking for --enable-grid" >&5
10f2d63a
VZ
5533 no_cache=0
5534 # Check whether --enable-grid or --disable-grid was given.
5535if test "${enable_grid+set}" = set; then
5536 enableval="$enable_grid"
698dcdb6 5537
10f2d63a
VZ
5538 if test "$enableval" = yes; then
5539 ac_cv_use_grid='wxUSE_GRID=yes'
5540 else
5541 ac_cv_use_grid='wxUSE_GRID=no'
5542 fi
698dcdb6 5543
10f2d63a 5544else
698dcdb6 5545
10f2d63a
VZ
5546 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
5547 if test "x$LINE" != x ; then
5548 eval "DEFAULT_$LINE"
5549 else
5550 no_cache=1
5551 fi
5552
5553 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
698dcdb6
VZ
5554
5555fi
10f2d63a
VZ
5556
5557
5558 eval "$ac_cv_use_grid"
5559 if test "$no_cache" != 1; then
5560 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
5561 fi
5562
5563 if test "$wxUSE_GRID" = yes; then
698dcdb6 5564 echo "$ac_t""yes" 1>&6
10f2d63a 5565 else
698dcdb6 5566 echo "$ac_t""no" 1>&6
10f2d63a 5567 fi
698dcdb6 5568
10f2d63a 5569
698dcdb6 5570 echo $ac_n "checking for --enable-newgrid""... $ac_c" 1>&6
683dccda 5571echo "configure:5572: checking for --enable-newgrid" >&5
10f2d63a
VZ
5572 no_cache=0
5573 # Check whether --enable-newgrid or --disable-newgrid was given.
5574if test "${enable_newgrid+set}" = set; then
5575 enableval="$enable_newgrid"
698dcdb6 5576
10f2d63a
VZ
5577 if test "$enableval" = yes; then
5578 ac_cv_use_newgrid='wxUSE_NEW_GRID=yes'
5579 else
5580 ac_cv_use_newgrid='wxUSE_NEW_GRID=no'
5581 fi
698dcdb6 5582
10f2d63a 5583else
698dcdb6 5584
10f2d63a
VZ
5585 LINE=`grep "wxUSE_NEW_GRID" ${wx_arg_cache_file}`
5586 if test "x$LINE" != x ; then
5587 eval "DEFAULT_$LINE"
5588 else
5589 no_cache=1
5590 fi
5591
5592 ac_cv_use_newgrid='wxUSE_NEW_GRID='$DEFAULT_wxUSE_NEW_GRID
698dcdb6
VZ
5593
5594fi
10f2d63a
VZ
5595
5596
5597 eval "$ac_cv_use_newgrid"
5598 if test "$no_cache" != 1; then
5599 echo $ac_cv_use_newgrid >> ${wx_arg_cache_file}.tmp
5600 fi
5601
5602 if test "$wxUSE_NEW_GRID" = yes; then
698dcdb6 5603 echo "$ac_t""yes" 1>&6
10f2d63a 5604 else
698dcdb6 5605 echo "$ac_t""no" 1>&6
10f2d63a 5606 fi
698dcdb6 5607
10f2d63a 5608
698dcdb6 5609 echo $ac_n "checking for --enable-imaglist""... $ac_c" 1>&6
683dccda 5610echo "configure:5611: checking for --enable-imaglist" >&5
10f2d63a
VZ
5611 no_cache=0
5612 # Check whether --enable-imaglist or --disable-imaglist was given.
5613if test "${enable_imaglist+set}" = set; then
5614 enableval="$enable_imaglist"
698dcdb6 5615
10f2d63a
VZ
5616 if test "$enableval" = yes; then
5617 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
5618 else
5619 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
5620 fi
698dcdb6 5621
10f2d63a 5622else
698dcdb6 5623
10f2d63a
VZ
5624 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
5625 if test "x$LINE" != x ; then
5626 eval "DEFAULT_$LINE"
5627 else
5628 no_cache=1
5629 fi
5630
5631 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
698dcdb6
VZ
5632
5633fi
10f2d63a
VZ
5634
5635
5636 eval "$ac_cv_use_imaglist"
5637 if test "$no_cache" != 1; then
5638 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
5639 fi
5640
5641 if test "$wxUSE_IMAGLIST" = yes; then
698dcdb6 5642 echo "$ac_t""yes" 1>&6
10f2d63a 5643 else
698dcdb6 5644 echo "$ac_t""no" 1>&6
10f2d63a 5645 fi
698dcdb6 5646
10f2d63a 5647
698dcdb6 5648 echo $ac_n "checking for --enable-listbox""... $ac_c" 1>&6
683dccda 5649echo "configure:5650: checking for --enable-listbox" >&5
10f2d63a
VZ
5650 no_cache=0
5651 # Check whether --enable-listbox or --disable-listbox was given.
5652if test "${enable_listbox+set}" = set; then
5653 enableval="$enable_listbox"
698dcdb6 5654
10f2d63a
VZ
5655 if test "$enableval" = yes; then
5656 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
5657 else
5658 ac_cv_use_listbox='wxUSE_LISTBOX=no'
5659 fi
698dcdb6 5660
10f2d63a 5661else
698dcdb6 5662
10f2d63a
VZ
5663 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
5664 if test "x$LINE" != x ; then
5665 eval "DEFAULT_$LINE"
5666 else
5667 no_cache=1
5668 fi
5669
5670 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
698dcdb6
VZ
5671
5672fi
10f2d63a
VZ
5673
5674
5675 eval "$ac_cv_use_listbox"
5676 if test "$no_cache" != 1; then
5677 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
5678 fi
5679
5680 if test "$wxUSE_LISTBOX" = yes; then
698dcdb6 5681 echo "$ac_t""yes" 1>&6
10f2d63a 5682 else
698dcdb6 5683 echo "$ac_t""no" 1>&6
10f2d63a 5684 fi
698dcdb6 5685
10f2d63a 5686
698dcdb6 5687 echo $ac_n "checking for --enable-listctrl""... $ac_c" 1>&6
683dccda 5688echo "configure:5689: checking for --enable-listctrl" >&5
10f2d63a
VZ
5689 no_cache=0
5690 # Check whether --enable-listctrl or --disable-listctrl was given.
5691if test "${enable_listctrl+set}" = set; then
5692 enableval="$enable_listctrl"
698dcdb6 5693
10f2d63a
VZ
5694 if test "$enableval" = yes; then
5695 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
5696 else
5697 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
5698 fi
698dcdb6 5699
10f2d63a 5700else
698dcdb6 5701
10f2d63a
VZ
5702 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
5703 if test "x$LINE" != x ; then
5704 eval "DEFAULT_$LINE"
5705 else
5706 no_cache=1
5707 fi
5708
5709 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
698dcdb6
VZ
5710
5711fi
10f2d63a
VZ
5712
5713
5714 eval "$ac_cv_use_listctrl"
5715 if test "$no_cache" != 1; then
5716 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
5717 fi
5718
5719 if test "$wxUSE_LISTCTRL" = yes; then
698dcdb6 5720 echo "$ac_t""yes" 1>&6
10f2d63a 5721 else
698dcdb6 5722 echo "$ac_t""no" 1>&6
10f2d63a 5723 fi
698dcdb6 5724
10f2d63a 5725
698dcdb6 5726 echo $ac_n "checking for --enable-notebook""... $ac_c" 1>&6
683dccda 5727echo "configure:5728: checking for --enable-notebook" >&5
10f2d63a
VZ
5728 no_cache=0
5729 # Check whether --enable-notebook or --disable-notebook was given.
5730if test "${enable_notebook+set}" = set; then
5731 enableval="$enable_notebook"
698dcdb6 5732
10f2d63a
VZ
5733 if test "$enableval" = yes; then
5734 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
5735 else
5736 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
5737 fi
698dcdb6 5738
10f2d63a 5739else
698dcdb6 5740
10f2d63a
VZ
5741 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
5742 if test "x$LINE" != x ; then
5743 eval "DEFAULT_$LINE"
5744 else
5745 no_cache=1
5746 fi
5747
5748 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
698dcdb6
VZ
5749
5750fi
10f2d63a
VZ
5751
5752
5753 eval "$ac_cv_use_notebook"
5754 if test "$no_cache" != 1; then
5755 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
5756 fi
5757
5758 if test "$wxUSE_NOTEBOOK" = yes; then
698dcdb6 5759 echo "$ac_t""yes" 1>&6
10f2d63a 5760 else
698dcdb6 5761 echo "$ac_t""no" 1>&6
10f2d63a 5762 fi
698dcdb6 5763
10f2d63a 5764
24176f2c 5765 echo $ac_n "checking for --enable-propsheet""... $ac_c" 1>&6
683dccda 5766echo "configure:5767: checking for --enable-propsheet" >&5
24176f2c
GD
5767 no_cache=0
5768 # Check whether --enable-propsheet or --disable-propsheet was given.
5769if test "${enable_propsheet+set}" = set; then
5770 enableval="$enable_propsheet"
5771
5772 if test "$enableval" = yes; then
5773 ac_cv_use_propsheet='wxUSE_PROPSHEET=yes'
5774 else
5775 ac_cv_use_propsheet='wxUSE_PROPSHEET=no'
5776 fi
5777
5778else
5779
5780 LINE=`grep "wxUSE_PROPSHEET" ${wx_arg_cache_file}`
5781 if test "x$LINE" != x ; then
5782 eval "DEFAULT_$LINE"
5783 else
5784 no_cache=1
5785 fi
5786
5787 ac_cv_use_propsheet='wxUSE_PROPSHEET='$DEFAULT_wxUSE_PROPSHEET
5788
5789fi
5790
5791
5792 eval "$ac_cv_use_propsheet"
5793 if test "$no_cache" != 1; then
5794 echo $ac_cv_use_propsheet >> ${wx_arg_cache_file}.tmp
5795 fi
5796
5797 if test "$wxUSE_PROPSHEET" = yes; then
5798 echo "$ac_t""yes" 1>&6
5799 else
5800 echo "$ac_t""no" 1>&6
5801 fi
5802
5803
698dcdb6 5804 echo $ac_n "checking for --enable-radiobox""... $ac_c" 1>&6
683dccda 5805echo "configure:5806: checking for --enable-radiobox" >&5
10f2d63a
VZ
5806 no_cache=0
5807 # Check whether --enable-radiobox or --disable-radiobox was given.
5808if test "${enable_radiobox+set}" = set; then
5809 enableval="$enable_radiobox"
698dcdb6 5810
10f2d63a
VZ
5811 if test "$enableval" = yes; then
5812 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
5813 else
5814 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
5815 fi
698dcdb6 5816
10f2d63a 5817else
698dcdb6 5818
10f2d63a
VZ
5819 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
5820 if test "x$LINE" != x ; then
5821 eval "DEFAULT_$LINE"
5822 else
5823 no_cache=1
5824 fi
5825
5826 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
698dcdb6
VZ
5827
5828fi
10f2d63a
VZ
5829
5830
5831 eval "$ac_cv_use_radiobox"
5832 if test "$no_cache" != 1; then
5833 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
5834 fi
5835
5836 if test "$wxUSE_RADIOBOX" = yes; then
698dcdb6 5837 echo "$ac_t""yes" 1>&6
10f2d63a 5838 else
698dcdb6 5839 echo "$ac_t""no" 1>&6
10f2d63a 5840 fi
698dcdb6 5841
10f2d63a 5842
698dcdb6 5843 echo $ac_n "checking for --enable-radiobtn""... $ac_c" 1>&6
683dccda 5844echo "configure:5845: checking for --enable-radiobtn" >&5
10f2d63a
VZ
5845 no_cache=0
5846 # Check whether --enable-radiobtn or --disable-radiobtn was given.
5847if test "${enable_radiobtn+set}" = set; then
5848 enableval="$enable_radiobtn"
698dcdb6 5849
10f2d63a
VZ
5850 if test "$enableval" = yes; then
5851 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
5852 else
5853 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
5854 fi
698dcdb6 5855
10f2d63a 5856else
698dcdb6 5857
10f2d63a
VZ
5858 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
5859 if test "x$LINE" != x ; then
5860 eval "DEFAULT_$LINE"
5861 else
5862 no_cache=1
5863 fi
5864
5865 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
698dcdb6
VZ
5866
5867fi
10f2d63a
VZ
5868
5869
5870 eval "$ac_cv_use_radiobtn"
5871 if test "$no_cache" != 1; then
5872 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
5873 fi
5874
5875 if test "$wxUSE_RADIOBTN" = yes; then
698dcdb6 5876 echo "$ac_t""yes" 1>&6
10f2d63a 5877 else
698dcdb6 5878 echo "$ac_t""no" 1>&6
10f2d63a 5879 fi
698dcdb6 5880
10f2d63a 5881
698dcdb6 5882 echo $ac_n "checking for --enable-sash""... $ac_c" 1>&6
683dccda 5883echo "configure:5884: checking for --enable-sash" >&5
10f2d63a
VZ
5884 no_cache=0
5885 # Check whether --enable-sash or --disable-sash was given.
5886if test "${enable_sash+set}" = set; then
5887 enableval="$enable_sash"
698dcdb6 5888
10f2d63a
VZ
5889 if test "$enableval" = yes; then
5890 ac_cv_use_sash='wxUSE_SASH=yes'
5891 else
5892 ac_cv_use_sash='wxUSE_SASH=no'
5893 fi
698dcdb6 5894
10f2d63a 5895else
698dcdb6 5896
10f2d63a
VZ
5897 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
5898 if test "x$LINE" != x ; then
5899 eval "DEFAULT_$LINE"
5900 else
5901 no_cache=1
5902 fi
5903
5904 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
698dcdb6
VZ
5905
5906fi
10f2d63a
VZ
5907
5908
5909 eval "$ac_cv_use_sash"
5910 if test "$no_cache" != 1; then
5911 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
5912 fi
5913
5914 if test "$wxUSE_SASH" = yes; then
698dcdb6 5915 echo "$ac_t""yes" 1>&6
10f2d63a 5916 else
698dcdb6 5917 echo "$ac_t""no" 1>&6
10f2d63a 5918 fi
698dcdb6 5919
10f2d63a 5920
698dcdb6 5921 echo $ac_n "checking for --enable-scrollbar""... $ac_c" 1>&6
683dccda 5922echo "configure:5923: checking for --enable-scrollbar" >&5
10f2d63a
VZ
5923 no_cache=0
5924 # Check whether --enable-scrollbar or --disable-scrollbar was given.
5925if test "${enable_scrollbar+set}" = set; then
5926 enableval="$enable_scrollbar"
698dcdb6 5927
10f2d63a
VZ
5928 if test "$enableval" = yes; then
5929 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
5930 else
5931 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
5932 fi
698dcdb6 5933
10f2d63a 5934else
698dcdb6 5935
10f2d63a
VZ
5936 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
5937 if test "x$LINE" != x ; then
5938 eval "DEFAULT_$LINE"
5939 else
5940 no_cache=1
5941 fi
5942
5943 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
698dcdb6
VZ
5944
5945fi
10f2d63a
VZ
5946
5947
5948 eval "$ac_cv_use_scrollbar"
5949 if test "$no_cache" != 1; then
5950 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
5951 fi
5952
5953 if test "$wxUSE_SCROLLBAR" = yes; then
698dcdb6 5954 echo "$ac_t""yes" 1>&6
10f2d63a 5955 else
698dcdb6 5956 echo "$ac_t""no" 1>&6
10f2d63a 5957 fi
698dcdb6 5958
10f2d63a 5959
698dcdb6 5960 echo $ac_n "checking for --enable-slider""... $ac_c" 1>&6
683dccda 5961echo "configure:5962: checking for --enable-slider" >&5
10f2d63a
VZ
5962 no_cache=0
5963 # Check whether --enable-slider or --disable-slider was given.
5964if test "${enable_slider+set}" = set; then
5965 enableval="$enable_slider"
698dcdb6 5966
10f2d63a
VZ
5967 if test "$enableval" = yes; then
5968 ac_cv_use_slider='wxUSE_SLIDER=yes'
5969 else
5970 ac_cv_use_slider='wxUSE_SLIDER=no'
5971 fi
698dcdb6 5972
10f2d63a 5973else
698dcdb6 5974
10f2d63a
VZ
5975 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
5976 if test "x$LINE" != x ; then
5977 eval "DEFAULT_$LINE"
5978 else
5979 no_cache=1
5980 fi
5981
5982 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
698dcdb6
VZ
5983
5984fi
10f2d63a
VZ
5985
5986
5987 eval "$ac_cv_use_slider"
5988 if test "$no_cache" != 1; then
5989 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
5990 fi
5991
5992 if test "$wxUSE_SLIDER" = yes; then
698dcdb6 5993 echo "$ac_t""yes" 1>&6
10f2d63a 5994 else
698dcdb6 5995 echo "$ac_t""no" 1>&6
10f2d63a 5996 fi
698dcdb6 5997
10f2d63a 5998
698dcdb6 5999 echo $ac_n "checking for --enable-spinbtn""... $ac_c" 1>&6
683dccda 6000echo "configure:6001: checking for --enable-spinbtn" >&5
10f2d63a
VZ
6001 no_cache=0
6002 # Check whether --enable-spinbtn or --disable-spinbtn was given.
6003if test "${enable_spinbtn+set}" = set; then
6004 enableval="$enable_spinbtn"
698dcdb6 6005
10f2d63a
VZ
6006 if test "$enableval" = yes; then
6007 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
6008 else
6009 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
6010 fi
698dcdb6 6011
10f2d63a 6012else
698dcdb6 6013
10f2d63a
VZ
6014 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
6015 if test "x$LINE" != x ; then
6016 eval "DEFAULT_$LINE"
6017 else
6018 no_cache=1
6019 fi
6020
6021 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
698dcdb6
VZ
6022
6023fi
10f2d63a
VZ
6024
6025
6026 eval "$ac_cv_use_spinbtn"
6027 if test "$no_cache" != 1; then
6028 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
6029 fi
6030
6031 if test "$wxUSE_SPINBTN" = yes; then
698dcdb6 6032 echo "$ac_t""yes" 1>&6
10f2d63a 6033 else
698dcdb6 6034 echo "$ac_t""no" 1>&6
10f2d63a 6035 fi
698dcdb6 6036
10f2d63a 6037
698dcdb6 6038 echo $ac_n "checking for --enable-spinctrl""... $ac_c" 1>&6
683dccda 6039echo "configure:6040: checking for --enable-spinctrl" >&5
56cfaa52
RR
6040 no_cache=0
6041 # Check whether --enable-spinctrl or --disable-spinctrl was given.
6042if test "${enable_spinctrl+set}" = set; then
6043 enableval="$enable_spinctrl"
698dcdb6 6044
56cfaa52
RR
6045 if test "$enableval" = yes; then
6046 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
6047 else
6048 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
6049 fi
698dcdb6 6050
56cfaa52 6051else
698dcdb6 6052
56cfaa52
RR
6053 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
6054 if test "x$LINE" != x ; then
6055 eval "DEFAULT_$LINE"
6056 else
6057 no_cache=1
6058 fi
6059
6060 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
698dcdb6
VZ
6061
6062fi
56cfaa52
RR
6063
6064
6065 eval "$ac_cv_use_spinctrl"
6066 if test "$no_cache" != 1; then
6067 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
6068 fi
6069
6070 if test "$wxUSE_SPINCTRL" = yes; then
698dcdb6 6071 echo "$ac_t""yes" 1>&6
56cfaa52 6072 else
698dcdb6 6073 echo "$ac_t""no" 1>&6
56cfaa52 6074 fi
698dcdb6 6075
56cfaa52 6076
698dcdb6 6077 echo $ac_n "checking for --enable-splitter""... $ac_c" 1>&6
683dccda 6078echo "configure:6079: checking for --enable-splitter" >&5
10f2d63a
VZ
6079 no_cache=0
6080 # Check whether --enable-splitter or --disable-splitter was given.
6081if test "${enable_splitter+set}" = set; then
6082 enableval="$enable_splitter"
698dcdb6 6083
10f2d63a
VZ
6084 if test "$enableval" = yes; then
6085 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
6086 else
6087 ac_cv_use_splitter='wxUSE_SPLITTER=no'
6088 fi
698dcdb6 6089
10f2d63a 6090else
698dcdb6 6091
10f2d63a
VZ
6092 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
6093 if test "x$LINE" != x ; then
6094 eval "DEFAULT_$LINE"
6095 else
6096 no_cache=1
6097 fi
6098
6099 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
698dcdb6
VZ
6100
6101fi
10f2d63a
VZ
6102
6103
6104 eval "$ac_cv_use_splitter"
6105 if test "$no_cache" != 1; then
6106 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
6107 fi
6108
6109 if test "$wxUSE_SPLITTER" = yes; then
698dcdb6 6110 echo "$ac_t""yes" 1>&6
10f2d63a 6111 else
698dcdb6 6112 echo "$ac_t""no" 1>&6
10f2d63a 6113 fi
698dcdb6 6114
10f2d63a 6115
698dcdb6 6116 echo $ac_n "checking for --enable-statbmp""... $ac_c" 1>&6
683dccda 6117echo "configure:6118: checking for --enable-statbmp" >&5
10f2d63a
VZ
6118 no_cache=0
6119 # Check whether --enable-statbmp or --disable-statbmp was given.
6120if test "${enable_statbmp+set}" = set; then
6121 enableval="$enable_statbmp"
698dcdb6 6122
10f2d63a
VZ
6123 if test "$enableval" = yes; then
6124 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
6125 else
6126 ac_cv_use_statbmp='wxUSE_STATBMP=no'
6127 fi
698dcdb6 6128
10f2d63a 6129else
698dcdb6 6130
10f2d63a
VZ
6131 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
6132 if test "x$LINE" != x ; then
6133 eval "DEFAULT_$LINE"
6134 else
6135 no_cache=1
6136 fi
6137
6138 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
698dcdb6
VZ
6139
6140fi
10f2d63a
VZ
6141
6142
6143 eval "$ac_cv_use_statbmp"
6144 if test "$no_cache" != 1; then
6145 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
6146 fi
6147
6148 if test "$wxUSE_STATBMP" = yes; then
698dcdb6 6149 echo "$ac_t""yes" 1>&6
10f2d63a 6150 else
698dcdb6 6151 echo "$ac_t""no" 1>&6
10f2d63a 6152 fi
698dcdb6 6153
10f2d63a 6154
698dcdb6 6155 echo $ac_n "checking for --enable-statbox""... $ac_c" 1>&6
683dccda 6156echo "configure:6157: checking for --enable-statbox" >&5
10f2d63a
VZ
6157 no_cache=0
6158 # Check whether --enable-statbox or --disable-statbox was given.
6159if test "${enable_statbox+set}" = set; then
6160 enableval="$enable_statbox"
698dcdb6 6161
10f2d63a
VZ
6162 if test "$enableval" = yes; then
6163 ac_cv_use_statbox='wxUSE_STATBOX=yes'
6164 else
6165 ac_cv_use_statbox='wxUSE_STATBOX=no'
6166 fi
698dcdb6 6167
10f2d63a 6168else
698dcdb6 6169
10f2d63a
VZ
6170 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
6171 if test "x$LINE" != x ; then
6172 eval "DEFAULT_$LINE"
6173 else
6174 no_cache=1
6175 fi
6176
6177 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
698dcdb6
VZ
6178
6179fi
10f2d63a
VZ
6180
6181
6182 eval "$ac_cv_use_statbox"
6183 if test "$no_cache" != 1; then
6184 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
6185 fi
6186
6187 if test "$wxUSE_STATBOX" = yes; then
698dcdb6 6188 echo "$ac_t""yes" 1>&6
10f2d63a 6189 else
698dcdb6 6190 echo "$ac_t""no" 1>&6
10f2d63a 6191 fi
698dcdb6 6192
10f2d63a 6193
698dcdb6 6194 echo $ac_n "checking for --enable-statline""... $ac_c" 1>&6
683dccda 6195echo "configure:6196: checking for --enable-statline" >&5
10f2d63a
VZ
6196 no_cache=0
6197 # Check whether --enable-statline or --disable-statline was given.
6198if test "${enable_statline+set}" = set; then
6199 enableval="$enable_statline"
698dcdb6 6200
10f2d63a
VZ
6201 if test "$enableval" = yes; then
6202 ac_cv_use_statline='wxUSE_STATLINE=yes'
6203 else
6204 ac_cv_use_statline='wxUSE_STATLINE=no'
6205 fi
698dcdb6 6206
10f2d63a 6207else
698dcdb6 6208
10f2d63a
VZ
6209 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
6210 if test "x$LINE" != x ; then
6211 eval "DEFAULT_$LINE"
6212 else
6213 no_cache=1
6214 fi
6215
6216 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
698dcdb6
VZ
6217
6218fi
10f2d63a
VZ
6219
6220
6221 eval "$ac_cv_use_statline"
6222 if test "$no_cache" != 1; then
6223 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
6224 fi
6225
6226 if test "$wxUSE_STATLINE" = yes; then
698dcdb6 6227 echo "$ac_t""yes" 1>&6
10f2d63a 6228 else
698dcdb6 6229 echo "$ac_t""no" 1>&6
10f2d63a 6230 fi
698dcdb6 6231
10f2d63a 6232
1e6feb95 6233 echo $ac_n "checking for --enable-stattext""... $ac_c" 1>&6
683dccda 6234echo "configure:6235: checking for --enable-stattext" >&5
1e6feb95
VZ
6235 no_cache=0
6236 # Check whether --enable-stattext or --disable-stattext was given.
6237if test "${enable_stattext+set}" = set; then
6238 enableval="$enable_stattext"
6239
6240 if test "$enableval" = yes; then
6241 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
6242 else
6243 ac_cv_use_stattext='wxUSE_STATTEXT=no'
6244 fi
6245
6246else
6247
6248 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
6249 if test "x$LINE" != x ; then
6250 eval "DEFAULT_$LINE"
6251 else
6252 no_cache=1
6253 fi
6254
6255 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
6256
6257fi
6258
6259
6260 eval "$ac_cv_use_stattext"
6261 if test "$no_cache" != 1; then
6262 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
6263 fi
6264
6265 if test "$wxUSE_STATTEXT" = yes; then
6266 echo "$ac_t""yes" 1>&6
6267 else
6268 echo "$ac_t""no" 1>&6
6269 fi
6270
6271
698dcdb6 6272 echo $ac_n "checking for --enable-statusbar""... $ac_c" 1>&6
683dccda 6273echo "configure:6274: checking for --enable-statusbar" >&5
10f2d63a
VZ
6274 no_cache=0
6275 # Check whether --enable-statusbar or --disable-statusbar was given.
6276if test "${enable_statusbar+set}" = set; then
6277 enableval="$enable_statusbar"
698dcdb6 6278
10f2d63a
VZ
6279 if test "$enableval" = yes; then
6280 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
6281 else
6282 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
6283 fi
698dcdb6 6284
10f2d63a 6285else
698dcdb6 6286
10f2d63a
VZ
6287 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
6288 if test "x$LINE" != x ; then
6289 eval "DEFAULT_$LINE"
6290 else
6291 no_cache=1
6292 fi
6293
6294 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
698dcdb6
VZ
6295
6296fi
10f2d63a
VZ
6297
6298
6299 eval "$ac_cv_use_statusbar"
6300 if test "$no_cache" != 1; then
6301 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
6302 fi
6303
6304 if test "$wxUSE_STATUSBAR" = yes; then
698dcdb6 6305 echo "$ac_t""yes" 1>&6
10f2d63a 6306 else
698dcdb6 6307 echo "$ac_t""no" 1>&6
10f2d63a 6308 fi
698dcdb6 6309
10f2d63a 6310
698dcdb6 6311 echo $ac_n "checking for --enable-tabdialog""... $ac_c" 1>&6
683dccda 6312echo "configure:6313: checking for --enable-tabdialog" >&5
10f2d63a
VZ
6313 no_cache=0
6314 # Check whether --enable-tabdialog or --disable-tabdialog was given.
6315if test "${enable_tabdialog+set}" = set; then
6316 enableval="$enable_tabdialog"
698dcdb6 6317
10f2d63a
VZ
6318 if test "$enableval" = yes; then
6319 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
6320 else
6321 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
6322 fi
698dcdb6 6323
10f2d63a 6324else
698dcdb6 6325
10f2d63a
VZ
6326 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
6327 if test "x$LINE" != x ; then
6328 eval "DEFAULT_$LINE"
6329 else
6330 no_cache=1
6331 fi
6332
6333 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
698dcdb6
VZ
6334
6335fi
10f2d63a
VZ
6336
6337
6338 eval "$ac_cv_use_tabdialog"
6339 if test "$no_cache" != 1; then
6340 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
6341 fi
6342
6343 if test "$wxUSE_TABDIALOG" = yes; then
698dcdb6 6344 echo "$ac_t""yes" 1>&6
10f2d63a 6345 else
698dcdb6 6346 echo "$ac_t""no" 1>&6
10f2d63a 6347 fi
698dcdb6 6348
10f2d63a 6349
1e6feb95 6350 echo $ac_n "checking for --enable-textctrl""... $ac_c" 1>&6
683dccda 6351echo "configure:6352: checking for --enable-textctrl" >&5
1e6feb95
VZ
6352 no_cache=0
6353 # Check whether --enable-textctrl or --disable-textctrl was given.
6354if test "${enable_textctrl+set}" = set; then
6355 enableval="$enable_textctrl"
6356
6357 if test "$enableval" = yes; then
6358 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
6359 else
6360 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
6361 fi
6362
6363else
6364
6365 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
6366 if test "x$LINE" != x ; then
6367 eval "DEFAULT_$LINE"
6368 else
6369 no_cache=1
6370 fi
6371
6372 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
6373
6374fi
6375
6376
6377 eval "$ac_cv_use_textctrl"
6378 if test "$no_cache" != 1; then
6379 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
6380 fi
6381
6382 if test "$wxUSE_TEXTCTRL" = yes; then
6383 echo "$ac_t""yes" 1>&6
6384 else
6385 echo "$ac_t""no" 1>&6
6386 fi
6387
6388
698dcdb6 6389 echo $ac_n "checking for --enable-togglebtn""... $ac_c" 1>&6
683dccda 6390echo "configure:6391: checking for --enable-togglebtn" >&5
1db8dc4a
VZ
6391 no_cache=0
6392 # Check whether --enable-togglebtn or --disable-togglebtn was given.
6393if test "${enable_togglebtn+set}" = set; then
6394 enableval="$enable_togglebtn"
698dcdb6 6395
1db8dc4a
VZ
6396 if test "$enableval" = yes; then
6397 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
6398 else
6399 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
6400 fi
698dcdb6 6401
1db8dc4a 6402else
698dcdb6 6403
1db8dc4a
VZ
6404 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
6405 if test "x$LINE" != x ; then
6406 eval "DEFAULT_$LINE"
6407 else
6408 no_cache=1
6409 fi
6410
6411 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
698dcdb6
VZ
6412
6413fi
1db8dc4a
VZ
6414
6415
6416 eval "$ac_cv_use_togglebtn"
6417 if test "$no_cache" != 1; then
6418 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
6419 fi
6420
6421 if test "$wxUSE_TOGGLEBTN" = yes; then
698dcdb6 6422 echo "$ac_t""yes" 1>&6
1db8dc4a 6423 else
698dcdb6 6424 echo "$ac_t""no" 1>&6
1db8dc4a 6425 fi
698dcdb6 6426
1db8dc4a 6427
698dcdb6 6428 echo $ac_n "checking for --enable-toolbar""... $ac_c" 1>&6
683dccda 6429echo "configure:6430: checking for --enable-toolbar" >&5
10f2d63a
VZ
6430 no_cache=0
6431 # Check whether --enable-toolbar or --disable-toolbar was given.
6432if test "${enable_toolbar+set}" = set; then
6433 enableval="$enable_toolbar"
698dcdb6 6434
10f2d63a
VZ
6435 if test "$enableval" = yes; then
6436 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
6437 else
6438 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
6439 fi
698dcdb6 6440
10f2d63a 6441else
698dcdb6 6442
10f2d63a
VZ
6443 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
6444 if test "x$LINE" != x ; then
6445 eval "DEFAULT_$LINE"
6446 else
6447 no_cache=1
6448 fi
6449
6450 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
698dcdb6
VZ
6451
6452fi
10f2d63a
VZ
6453
6454
6455 eval "$ac_cv_use_toolbar"
6456 if test "$no_cache" != 1; then
6457 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
6458 fi
6459
6460 if test "$wxUSE_TOOLBAR" = yes; then
698dcdb6 6461 echo "$ac_t""yes" 1>&6
10f2d63a 6462 else
698dcdb6 6463 echo "$ac_t""no" 1>&6
10f2d63a 6464 fi
698dcdb6 6465
10f2d63a 6466
698dcdb6 6467 echo $ac_n "checking for --enable-tbarnative""... $ac_c" 1>&6
683dccda 6468echo "configure:6469: checking for --enable-tbarnative" >&5
360d6699
VZ
6469 no_cache=0
6470 # Check whether --enable-tbarnative or --disable-tbarnative was given.
6471if test "${enable_tbarnative+set}" = set; then
6472 enableval="$enable_tbarnative"
698dcdb6 6473
360d6699
VZ
6474 if test "$enableval" = yes; then
6475 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
6476 else
6477 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
6478 fi
698dcdb6 6479
360d6699 6480else
698dcdb6 6481
360d6699
VZ
6482 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
6483 if test "x$LINE" != x ; then
6484 eval "DEFAULT_$LINE"
6485 else
6486 no_cache=1
6487 fi
6488
6489 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
698dcdb6
VZ
6490
6491fi
360d6699
VZ
6492
6493
6494 eval "$ac_cv_use_tbarnative"
6495 if test "$no_cache" != 1; then
6496 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
6497 fi
6498
6499 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
698dcdb6 6500 echo "$ac_t""yes" 1>&6
360d6699 6501 else
698dcdb6 6502 echo "$ac_t""no" 1>&6
360d6699 6503 fi
698dcdb6 6504
360d6699 6505
698dcdb6 6506 echo $ac_n "checking for --enable-tbarsmpl""... $ac_c" 1>&6
683dccda 6507echo "configure:6508: checking for --enable-tbarsmpl" >&5
360d6699
VZ
6508 no_cache=0
6509 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
6510if test "${enable_tbarsmpl+set}" = set; then
6511 enableval="$enable_tbarsmpl"
698dcdb6 6512
360d6699
VZ
6513 if test "$enableval" = yes; then
6514 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
6515 else
6516 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
6517 fi
698dcdb6 6518
360d6699 6519else
698dcdb6 6520
360d6699
VZ
6521 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
6522 if test "x$LINE" != x ; then
6523 eval "DEFAULT_$LINE"
6524 else
6525 no_cache=1
6526 fi
6527
6528 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
698dcdb6
VZ
6529
6530fi
360d6699
VZ
6531
6532
6533 eval "$ac_cv_use_tbarsmpl"
6534 if test "$no_cache" != 1; then
6535 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
6536 fi
6537
6538 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
698dcdb6 6539 echo "$ac_t""yes" 1>&6
360d6699 6540 else
698dcdb6 6541 echo "$ac_t""no" 1>&6
360d6699 6542 fi
698dcdb6 6543
360d6699 6544
698dcdb6 6545 echo $ac_n "checking for --enable-treectrl""... $ac_c" 1>&6
683dccda 6546echo "configure:6547: checking for --enable-treectrl" >&5
10f2d63a
VZ
6547 no_cache=0
6548 # Check whether --enable-treectrl or --disable-treectrl was given.
6549if test "${enable_treectrl+set}" = set; then
6550 enableval="$enable_treectrl"
698dcdb6 6551
10f2d63a
VZ
6552 if test "$enableval" = yes; then
6553 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
6554 else
6555 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
6556 fi
698dcdb6 6557
10f2d63a 6558else
698dcdb6 6559
10f2d63a
VZ
6560 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
6561 if test "x$LINE" != x ; then
6562 eval "DEFAULT_$LINE"
6563 else
6564 no_cache=1
6565 fi
6566
6567 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
698dcdb6
VZ
6568
6569fi
10f2d63a
VZ
6570
6571
1e6feb95
VZ
6572 eval "$ac_cv_use_treectrl"
6573 if test "$no_cache" != 1; then
6574 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
6575 fi
6576
6577 if test "$wxUSE_TREECTRL" = yes; then
6578 echo "$ac_t""yes" 1>&6
6579 else
6580 echo "$ac_t""no" 1>&6
6581 fi
6582
6583
9f41d601 6584 echo $ac_n "checking for --enable-popupwin""... $ac_c" 1>&6
683dccda 6585echo "configure:6586: checking for --enable-popupwin" >&5
9f41d601
RR
6586 no_cache=0
6587 # Check whether --enable-popupwin or --disable-popupwin was given.
6588if test "${enable_popupwin+set}" = set; then
6589 enableval="$enable_popupwin"
6590
6591 if test "$enableval" = yes; then
6592 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
6593 else
6594 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
6595 fi
6596
6597else
6598
6599 LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
6600 if test "x$LINE" != x ; then
6601 eval "DEFAULT_$LINE"
6602 else
6603 no_cache=1
6604 fi
6605
6606 ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
6607
6608fi
6609
6610
6611 eval "$ac_cv_use_popupwin"
6612 if test "$no_cache" != 1; then
6613 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
6614 fi
6615
6616 if test "$wxUSE_POPUPWIN" = yes; then
6617 echo "$ac_t""yes" 1>&6
6618 else
6619 echo "$ac_t""no" 1>&6
6620 fi
6621
6622
1e6feb95
VZ
6623
6624
6625 echo $ac_n "checking for --enable-commondlg""... $ac_c" 1>&6
683dccda 6626echo "configure:6627: checking for --enable-commondlg" >&5
1e6feb95
VZ
6627 no_cache=0
6628 # Check whether --enable-commondlg or --disable-commondlg was given.
6629if test "${enable_commondlg+set}" = set; then
6630 enableval="$enable_commondlg"
6631
6632 if test "$enableval" = yes; then
6633 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
6634 else
6635 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
6636 fi
6637
6638else
6639
6640 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
6641 if test "x$LINE" != x ; then
6642 eval "DEFAULT_$LINE"
6643 else
6644 no_cache=1
6645 fi
6646
6647 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
6648
6649fi
6650
6651
6652 eval "$ac_cv_use_commondlg"
6653 if test "$no_cache" != 1; then
6654 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
6655 fi
6656
6657 if test "$wxUSE_COMMONDLGS" = yes; then
6658 echo "$ac_t""yes" 1>&6
6659 else
6660 echo "$ac_t""no" 1>&6
6661 fi
6662
6663
6664 echo $ac_n "checking for --enable-choicedlg""... $ac_c" 1>&6
683dccda 6665echo "configure:6666: checking for --enable-choicedlg" >&5
1e6feb95
VZ
6666 no_cache=0
6667 # Check whether --enable-choicedlg or --disable-choicedlg was given.
6668if test "${enable_choicedlg+set}" = set; then
6669 enableval="$enable_choicedlg"
6670
6671 if test "$enableval" = yes; then
6672 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
6673 else
6674 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
6675 fi
6676
6677else
6678
6679 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
6680 if test "x$LINE" != x ; then
6681 eval "DEFAULT_$LINE"
6682 else
6683 no_cache=1
6684 fi
6685
6686 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
6687
6688fi
6689
6690
6691 eval "$ac_cv_use_choicedlg"
6692 if test "$no_cache" != 1; then
6693 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
6694 fi
6695
6696 if test "$wxUSE_CHOICEDLG" = yes; then
6697 echo "$ac_t""yes" 1>&6
6698 else
6699 echo "$ac_t""no" 1>&6
6700 fi
6701
6702
6703 echo $ac_n "checking for --enable-coldlg""... $ac_c" 1>&6
683dccda 6704echo "configure:6705: checking for --enable-coldlg" >&5
1e6feb95
VZ
6705 no_cache=0
6706 # Check whether --enable-coldlg or --disable-coldlg was given.
6707if test "${enable_coldlg+set}" = set; then
6708 enableval="$enable_coldlg"
6709
6710 if test "$enableval" = yes; then
6711 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
6712 else
6713 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
6714 fi
6715
6716else
6717
6718 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
6719 if test "x$LINE" != x ; then
6720 eval "DEFAULT_$LINE"
6721 else
6722 no_cache=1
6723 fi
6724
6725 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
6726
6727fi
6728
6729
6730 eval "$ac_cv_use_coldlg"
6731 if test "$no_cache" != 1; then
6732 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
6733 fi
6734
6735 if test "$wxUSE_COLOURDLG" = yes; then
6736 echo "$ac_t""yes" 1>&6
6737 else
6738 echo "$ac_t""no" 1>&6
6739 fi
6740
6741
6742 echo $ac_n "checking for --enable-filedlg""... $ac_c" 1>&6
683dccda 6743echo "configure:6744: checking for --enable-filedlg" >&5
1e6feb95
VZ
6744 no_cache=0
6745 # Check whether --enable-filedlg or --disable-filedlg was given.
6746if test "${enable_filedlg+set}" = set; then
6747 enableval="$enable_filedlg"
6748
6749 if test "$enableval" = yes; then
6750 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
6751 else
6752 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
6753 fi
6754
6755else
6756
6757 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
6758 if test "x$LINE" != x ; then
6759 eval "DEFAULT_$LINE"
6760 else
6761 no_cache=1
6762 fi
6763
6764 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
6765
6766fi
6767
6768
6769 eval "$ac_cv_use_filedlg"
6770 if test "$no_cache" != 1; then
6771 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
6772 fi
6773
6774 if test "$wxUSE_FILEDLG" = yes; then
6775 echo "$ac_t""yes" 1>&6
6776 else
6777 echo "$ac_t""no" 1>&6
6778 fi
6779
6780
8db37e06 6781 echo $ac_n "checking for --enable-filedlg""... $ac_c" 1>&6
683dccda 6782echo "configure:6783: checking for --enable-filedlg" >&5
8db37e06
VZ
6783 no_cache=0
6784 # Check whether --enable-filedlg or --disable-filedlg was given.
6785if test "${enable_filedlg+set}" = set; then
6786 enableval="$enable_filedlg"
6787
6788 if test "$enableval" = yes; then
6789 ac_cv_use_filedlg='wxUSE_FINDREPLDLG=yes'
6790 else
6791 ac_cv_use_filedlg='wxUSE_FINDREPLDLG=no'
6792 fi
6793
6794else
6795
6796 LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
6797 if test "x$LINE" != x ; then
6798 eval "DEFAULT_$LINE"
6799 else
6800 no_cache=1
6801 fi
6802
6803 ac_cv_use_filedlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
6804
6805fi
6806
6807
6808 eval "$ac_cv_use_filedlg"
6809 if test "$no_cache" != 1; then
6810 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
6811 fi
6812
6813 if test "$wxUSE_FINDREPLDLG" = yes; then
6814 echo "$ac_t""yes" 1>&6
6815 else
6816 echo "$ac_t""no" 1>&6
6817 fi
6818
6819
1e6feb95 6820 echo $ac_n "checking for --enable-fontdlg""... $ac_c" 1>&6
683dccda 6821echo "configure:6822: checking for --enable-fontdlg" >&5
1e6feb95
VZ
6822 no_cache=0
6823 # Check whether --enable-fontdlg or --disable-fontdlg was given.
6824if test "${enable_fontdlg+set}" = set; then
6825 enableval="$enable_fontdlg"
6826
6827 if test "$enableval" = yes; then
6828 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
6829 else
6830 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
6831 fi
6832
6833else
6834
6835 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
6836 if test "x$LINE" != x ; then
6837 eval "DEFAULT_$LINE"
6838 else
6839 no_cache=1
6840 fi
6841
6842 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
6843
6844fi
6845
6846
6847 eval "$ac_cv_use_fontdlg"
6848 if test "$no_cache" != 1; then
6849 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
6850 fi
6851
6852 if test "$wxUSE_FONTDLG" = yes; then
6853 echo "$ac_t""yes" 1>&6
6854 else
6855 echo "$ac_t""no" 1>&6
6856 fi
6857
6858
6859 echo $ac_n "checking for --enable-dirdlg""... $ac_c" 1>&6
683dccda 6860echo "configure:6861: checking for --enable-dirdlg" >&5
1e6feb95
VZ
6861 no_cache=0
6862 # Check whether --enable-dirdlg or --disable-dirdlg was given.
6863if test "${enable_dirdlg+set}" = set; then
6864 enableval="$enable_dirdlg"
6865
6866 if test "$enableval" = yes; then
6867 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
6868 else
6869 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
6870 fi
6871
6872else
6873
6874 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
6875 if test "x$LINE" != x ; then
6876 eval "DEFAULT_$LINE"
6877 else
6878 no_cache=1
6879 fi
6880
6881 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
6882
6883fi
6884
6885
6886 eval "$ac_cv_use_dirdlg"
10f2d63a 6887 if test "$no_cache" != 1; then
1e6feb95 6888 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
6889 fi
6890
1e6feb95 6891 if test "$wxUSE_DIRDLG" = yes; then
698dcdb6 6892 echo "$ac_t""yes" 1>&6
10f2d63a 6893 else
698dcdb6 6894 echo "$ac_t""no" 1>&6
10f2d63a 6895 fi
698dcdb6
VZ
6896
6897
1e6feb95 6898 echo $ac_n "checking for --enable-msgdlg""... $ac_c" 1>&6
683dccda 6899echo "configure:6900: checking for --enable-msgdlg" >&5
10f2d63a 6900 no_cache=0
1e6feb95
VZ
6901 # Check whether --enable-msgdlg or --disable-msgdlg was given.
6902if test "${enable_msgdlg+set}" = set; then
6903 enableval="$enable_msgdlg"
698dcdb6 6904
10f2d63a 6905 if test "$enableval" = yes; then
1e6feb95 6906 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
10f2d63a 6907 else
1e6feb95 6908 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
10f2d63a 6909 fi
698dcdb6 6910
10f2d63a 6911else
698dcdb6 6912
1e6feb95 6913 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
10f2d63a
VZ
6914 if test "x$LINE" != x ; then
6915 eval "DEFAULT_$LINE"
6916 else
6917 no_cache=1
6918 fi
6919
1e6feb95 6920 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
698dcdb6
VZ
6921
6922fi
10f2d63a
VZ
6923
6924
1e6feb95 6925 eval "$ac_cv_use_msgdlg"
10f2d63a 6926 if test "$no_cache" != 1; then
1e6feb95 6927 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
6928 fi
6929
1e6feb95 6930 if test "$wxUSE_MSGDLG" = yes; then
698dcdb6 6931 echo "$ac_t""yes" 1>&6
10f2d63a 6932 else
698dcdb6 6933 echo "$ac_t""no" 1>&6
10f2d63a 6934 fi
698dcdb6 6935
10f2d63a 6936
1e6feb95 6937 echo $ac_n "checking for --enable-numberdlg""... $ac_c" 1>&6
683dccda 6938echo "configure:6939: checking for --enable-numberdlg" >&5
10f2d63a 6939 no_cache=0
1e6feb95
VZ
6940 # Check whether --enable-numberdlg or --disable-numberdlg was given.
6941if test "${enable_numberdlg+set}" = set; then
6942 enableval="$enable_numberdlg"
698dcdb6 6943
10f2d63a 6944 if test "$enableval" = yes; then
1e6feb95 6945 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
10f2d63a 6946 else
1e6feb95 6947 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
10f2d63a 6948 fi
698dcdb6 6949
10f2d63a 6950else
698dcdb6 6951
1e6feb95 6952 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
10f2d63a
VZ
6953 if test "x$LINE" != x ; then
6954 eval "DEFAULT_$LINE"
6955 else
6956 no_cache=1
6957 fi
6958
1e6feb95 6959 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
698dcdb6
VZ
6960
6961fi
10f2d63a
VZ
6962
6963
1e6feb95 6964 eval "$ac_cv_use_numberdlg"
10f2d63a 6965 if test "$no_cache" != 1; then
1e6feb95 6966 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
6967 fi
6968
1e6feb95 6969 if test "$wxUSE_NUMBERDLG" = yes; then
698dcdb6 6970 echo "$ac_t""yes" 1>&6
10f2d63a 6971 else
698dcdb6 6972 echo "$ac_t""no" 1>&6
10f2d63a 6973 fi
698dcdb6 6974
10f2d63a 6975
cbca9943 6976 echo $ac_n "checking for --enable-splash""... $ac_c" 1>&6
683dccda 6977echo "configure:6978: checking for --enable-splash" >&5
cbca9943
VZ
6978 no_cache=0
6979 # Check whether --enable-splash or --disable-splash was given.
6980if test "${enable_splash+set}" = set; then
6981 enableval="$enable_splash"
6982
6983 if test "$enableval" = yes; then
6984 ac_cv_use_splash='wxUSE_SPLASH=yes'
6985 else
6986 ac_cv_use_splash='wxUSE_SPLASH=no'
6987 fi
6988
6989else
6990
6991 LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
6992 if test "x$LINE" != x ; then
6993 eval "DEFAULT_$LINE"
6994 else
6995 no_cache=1
6996 fi
6997
6998 ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
6999
7000fi
7001
7002
7003 eval "$ac_cv_use_splash"
7004 if test "$no_cache" != 1; then
7005 echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
7006 fi
7007
7008 if test "$wxUSE_SPLASH" = yes; then
7009 echo "$ac_t""yes" 1>&6
7010 else
7011 echo "$ac_t""no" 1>&6
7012 fi
7013
7014
698dcdb6 7015 echo $ac_n "checking for --enable-textdlg""... $ac_c" 1>&6
683dccda 7016echo "configure:7017: checking for --enable-textdlg" >&5
10f2d63a
VZ
7017 no_cache=0
7018 # Check whether --enable-textdlg or --disable-textdlg was given.
7019if test "${enable_textdlg+set}" = set; then
7020 enableval="$enable_textdlg"
698dcdb6 7021
10f2d63a
VZ
7022 if test "$enableval" = yes; then
7023 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
7024 else
7025 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
7026 fi
698dcdb6 7027
10f2d63a 7028else
698dcdb6 7029
10f2d63a
VZ
7030 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
7031 if test "x$LINE" != x ; then
7032 eval "DEFAULT_$LINE"
7033 else
7034 no_cache=1
7035 fi
7036
7037 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
698dcdb6
VZ
7038
7039fi
10f2d63a
VZ
7040
7041
7042 eval "$ac_cv_use_textdlg"
7043 if test "$no_cache" != 1; then
7044 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
7045 fi
7046
7047 if test "$wxUSE_TEXTDLG" = yes; then
698dcdb6 7048 echo "$ac_t""yes" 1>&6
10f2d63a 7049 else
698dcdb6 7050 echo "$ac_t""no" 1>&6
10f2d63a 7051 fi
698dcdb6 7052
10f2d63a 7053
698dcdb6 7054 echo $ac_n "checking for --enable-tipdlg""... $ac_c" 1>&6
683dccda 7055echo "configure:7056: checking for --enable-tipdlg" >&5
10f2d63a
VZ
7056 no_cache=0
7057 # Check whether --enable-tipdlg or --disable-tipdlg was given.
7058if test "${enable_tipdlg+set}" = set; then
7059 enableval="$enable_tipdlg"
698dcdb6 7060
10f2d63a
VZ
7061 if test "$enableval" = yes; then
7062 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
7063 else
7064 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
7065 fi
698dcdb6 7066
10f2d63a 7067else
698dcdb6 7068
10f2d63a
VZ
7069 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
7070 if test "x$LINE" != x ; then
7071 eval "DEFAULT_$LINE"
7072 else
7073 no_cache=1
7074 fi
7075
7076 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
698dcdb6
VZ
7077
7078fi
10f2d63a
VZ
7079
7080
7081 eval "$ac_cv_use_tipdlg"
7082 if test "$no_cache" != 1; then
7083 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
7084 fi
7085
7086 if test "$wxUSE_STARTUP_TIPS" = yes; then
698dcdb6 7087 echo "$ac_t""yes" 1>&6
10f2d63a 7088 else
698dcdb6 7089 echo "$ac_t""no" 1>&6
10f2d63a 7090 fi
698dcdb6 7091
10f2d63a 7092
698dcdb6 7093 echo $ac_n "checking for --enable-progressdlg""... $ac_c" 1>&6
683dccda 7094echo "configure:7095: checking for --enable-progressdlg" >&5
10f2d63a
VZ
7095 no_cache=0
7096 # Check whether --enable-progressdlg or --disable-progressdlg was given.
7097if test "${enable_progressdlg+set}" = set; then
7098 enableval="$enable_progressdlg"
698dcdb6 7099
10f2d63a
VZ
7100 if test "$enableval" = yes; then
7101 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
7102 else
7103 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
7104 fi
698dcdb6 7105
10f2d63a 7106else
698dcdb6 7107
10f2d63a
VZ
7108 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
7109 if test "x$LINE" != x ; then
7110 eval "DEFAULT_$LINE"
7111 else
7112 no_cache=1
7113 fi
7114
7115 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
698dcdb6
VZ
7116
7117fi
10f2d63a
VZ
7118
7119
7120 eval "$ac_cv_use_progressdlg"
7121 if test "$no_cache" != 1; then
7122 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
7123 fi
7124
7125 if test "$wxUSE_PROGRESSDLG" = yes; then
698dcdb6 7126 echo "$ac_t""yes" 1>&6
10f2d63a 7127 else
698dcdb6 7128 echo "$ac_t""no" 1>&6
10f2d63a 7129 fi
698dcdb6 7130
10f2d63a 7131
b1f5d087 7132 echo $ac_n "checking for --enable-wizarddlg""... $ac_c" 1>&6
683dccda 7133echo "configure:7134: checking for --enable-wizarddlg" >&5
b1f5d087
VZ
7134 no_cache=0
7135 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
7136if test "${enable_wizarddlg+set}" = set; then
7137 enableval="$enable_wizarddlg"
7138
7139 if test "$enableval" = yes; then
7140 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
7141 else
7142 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
7143 fi
7144
7145else
7146
7147 LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
7148 if test "x$LINE" != x ; then
7149 eval "DEFAULT_$LINE"
7150 else
7151 no_cache=1
7152 fi
7153
7154 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
7155
7156fi
7157
7158
7159 eval "$ac_cv_use_wizarddlg"
7160 if test "$no_cache" != 1; then
7161 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
7162 fi
7163
7164 if test "$wxUSE_WIZARDDLG" = yes; then
7165 echo "$ac_t""yes" 1>&6
7166 else
7167 echo "$ac_t""no" 1>&6
7168 fi
7169
7170
7171
7172
1e6feb95 7173 echo $ac_n "checking for --enable-menus""... $ac_c" 1>&6
683dccda 7174echo "configure:7175: checking for --enable-menus" >&5
1e6feb95
VZ
7175 no_cache=0
7176 # Check whether --enable-menus or --disable-menus was given.
7177if test "${enable_menus+set}" = set; then
7178 enableval="$enable_menus"
7179
7180 if test "$enableval" = yes; then
7181 ac_cv_use_menus='wxUSE_MENUS=yes'
7182 else
7183 ac_cv_use_menus='wxUSE_MENUS=no'
7184 fi
7185
7186else
7187
7188 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
7189 if test "x$LINE" != x ; then
7190 eval "DEFAULT_$LINE"
7191 else
7192 no_cache=1
7193 fi
7194
7195 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
7196
7197fi
7198
7199
7200 eval "$ac_cv_use_menus"
7201 if test "$no_cache" != 1; then
7202 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
7203 fi
7204
7205 if test "$wxUSE_MENUS" = yes; then
7206 echo "$ac_t""yes" 1>&6
7207 else
7208 echo "$ac_t""no" 1>&6
7209 fi
7210
7211
698dcdb6 7212 echo $ac_n "checking for --enable-miniframe""... $ac_c" 1>&6
683dccda 7213echo "configure:7214: checking for --enable-miniframe" >&5
10f2d63a
VZ
7214 no_cache=0
7215 # Check whether --enable-miniframe or --disable-miniframe was given.
7216if test "${enable_miniframe+set}" = set; then
7217 enableval="$enable_miniframe"
698dcdb6 7218
10f2d63a
VZ
7219 if test "$enableval" = yes; then
7220 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
7221 else
7222 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
7223 fi
698dcdb6 7224
10f2d63a 7225else
698dcdb6 7226
10f2d63a
VZ
7227 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
7228 if test "x$LINE" != x ; then
7229 eval "DEFAULT_$LINE"
7230 else
7231 no_cache=1
7232 fi
7233
7234 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
698dcdb6
VZ
7235
7236fi
10f2d63a
VZ
7237
7238
7239 eval "$ac_cv_use_miniframe"
7240 if test "$no_cache" != 1; then
7241 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
7242 fi
7243
7244 if test "$wxUSE_MINIFRAME" = yes; then
698dcdb6 7245 echo "$ac_t""yes" 1>&6
10f2d63a 7246 else
698dcdb6 7247 echo "$ac_t""no" 1>&6
10f2d63a 7248 fi
698dcdb6 7249
10f2d63a 7250
698dcdb6 7251 echo $ac_n "checking for --enable-tooltips""... $ac_c" 1>&6
683dccda 7252echo "configure:7253: checking for --enable-tooltips" >&5
10f2d63a
VZ
7253 no_cache=0
7254 # Check whether --enable-tooltips or --disable-tooltips was given.
7255if test "${enable_tooltips+set}" = set; then
7256 enableval="$enable_tooltips"
698dcdb6 7257
10f2d63a
VZ
7258 if test "$enableval" = yes; then
7259 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
7260 else
7261 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
7262 fi
698dcdb6 7263
10f2d63a 7264else
698dcdb6 7265
10f2d63a
VZ
7266 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
7267 if test "x$LINE" != x ; then
7268 eval "DEFAULT_$LINE"
7269 else
7270 no_cache=1
7271 fi
7272
7273 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
698dcdb6
VZ
7274
7275fi
10f2d63a
VZ
7276
7277
7278 eval "$ac_cv_use_tooltips"
7279 if test "$no_cache" != 1; then
7280 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
7281 fi
7282
7283 if test "$wxUSE_TOOLTIPS" = yes; then
698dcdb6 7284 echo "$ac_t""yes" 1>&6
10f2d63a 7285 else
698dcdb6 7286 echo "$ac_t""no" 1>&6
10f2d63a 7287 fi
698dcdb6 7288
10f2d63a 7289
698dcdb6 7290 echo $ac_n "checking for --enable-splines""... $ac_c" 1>&6
683dccda 7291echo "configure:7292: checking for --enable-splines" >&5
10f2d63a
VZ
7292 no_cache=0
7293 # Check whether --enable-splines or --disable-splines was given.
7294if test "${enable_splines+set}" = set; then
7295 enableval="$enable_splines"
698dcdb6 7296
10f2d63a
VZ
7297 if test "$enableval" = yes; then
7298 ac_cv_use_splines='wxUSE_SPLINES=yes'
7299 else
7300 ac_cv_use_splines='wxUSE_SPLINES=no'
7301 fi
698dcdb6 7302
10f2d63a 7303else
698dcdb6 7304
10f2d63a
VZ
7305 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
7306 if test "x$LINE" != x ; then
7307 eval "DEFAULT_$LINE"
7308 else
7309 no_cache=1
7310 fi
7311
7312 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
698dcdb6
VZ
7313
7314fi
10f2d63a
VZ
7315
7316
7317 eval "$ac_cv_use_splines"
7318 if test "$no_cache" != 1; then
7319 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
7320 fi
7321
7322 if test "$wxUSE_SPLINES" = yes; then
698dcdb6 7323 echo "$ac_t""yes" 1>&6
10f2d63a 7324 else
698dcdb6 7325 echo "$ac_t""no" 1>&6
10f2d63a 7326 fi
698dcdb6 7327
10f2d63a 7328
698dcdb6 7329 echo $ac_n "checking for --enable-validators""... $ac_c" 1>&6
683dccda 7330echo "configure:7331: checking for --enable-validators" >&5
10f2d63a
VZ
7331 no_cache=0
7332 # Check whether --enable-validators or --disable-validators was given.
7333if test "${enable_validators+set}" = set; then
7334 enableval="$enable_validators"
698dcdb6 7335
10f2d63a
VZ
7336 if test "$enableval" = yes; then
7337 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
7338 else
7339 ac_cv_use_validators='wxUSE_VALIDATORS=no'
7340 fi
698dcdb6 7341
10f2d63a 7342else
698dcdb6 7343
10f2d63a
VZ
7344 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
7345 if test "x$LINE" != x ; then
7346 eval "DEFAULT_$LINE"
7347 else
7348 no_cache=1
7349 fi
7350
7351 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
698dcdb6
VZ
7352
7353fi
10f2d63a
VZ
7354
7355
7356 eval "$ac_cv_use_validators"
7357 if test "$no_cache" != 1; then
7358 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
7359 fi
7360
7361 if test "$wxUSE_VALIDATORS" = yes; then
698dcdb6 7362 echo "$ac_t""yes" 1>&6
10f2d63a 7363 else
698dcdb6 7364 echo "$ac_t""no" 1>&6
10f2d63a 7365 fi
698dcdb6 7366
10f2d63a 7367
698dcdb6 7368 echo $ac_n "checking for --enable-busyinfo""... $ac_c" 1>&6
683dccda 7369echo "configure:7370: checking for --enable-busyinfo" >&5
10f2d63a
VZ
7370 no_cache=0
7371 # Check whether --enable-busyinfo or --disable-busyinfo was given.
7372if test "${enable_busyinfo+set}" = set; then
7373 enableval="$enable_busyinfo"
698dcdb6 7374
10f2d63a
VZ
7375 if test "$enableval" = yes; then
7376 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
7377 else
7378 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
7379 fi
698dcdb6 7380
10f2d63a 7381else
698dcdb6 7382
10f2d63a
VZ
7383 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
7384 if test "x$LINE" != x ; then
7385 eval "DEFAULT_$LINE"
7386 else
7387 no_cache=1
7388 fi
7389
7390 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
698dcdb6
VZ
7391
7392fi
10f2d63a
VZ
7393
7394
7395 eval "$ac_cv_use_busyinfo"
7396 if test "$no_cache" != 1; then
7397 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
7398 fi
7399
7400 if test "$wxUSE_BUSYINFO" = yes; then
698dcdb6 7401 echo "$ac_t""yes" 1>&6
10f2d63a 7402 else
698dcdb6 7403 echo "$ac_t""no" 1>&6
10f2d63a 7404 fi
698dcdb6 7405
10f2d63a 7406
698dcdb6 7407 echo $ac_n "checking for --enable-joystick""... $ac_c" 1>&6
683dccda 7408echo "configure:7409: checking for --enable-joystick" >&5
f6bcfd97
BP
7409 no_cache=0
7410 # Check whether --enable-joystick or --disable-joystick was given.
7411if test "${enable_joystick+set}" = set; then
7412 enableval="$enable_joystick"
698dcdb6 7413
f6bcfd97
BP
7414 if test "$enableval" = yes; then
7415 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
7416 else
7417 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
7418 fi
698dcdb6 7419
f6bcfd97 7420else
698dcdb6 7421
f6bcfd97
BP
7422 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
7423 if test "x$LINE" != x ; then
7424 eval "DEFAULT_$LINE"
7425 else
7426 no_cache=1
7427 fi
7428
7429 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
698dcdb6
VZ
7430
7431fi
f6bcfd97
BP
7432
7433
7434 eval "$ac_cv_use_joystick"
7435 if test "$no_cache" != 1; then
7436 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
7437 fi
7438
7439 if test "$wxUSE_JOYSTICK" = yes; then
698dcdb6 7440 echo "$ac_t""yes" 1>&6
f6bcfd97 7441 else
698dcdb6 7442 echo "$ac_t""no" 1>&6
f6bcfd97 7443 fi
698dcdb6
VZ
7444
7445
1e6feb95 7446 echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6
683dccda 7447echo "configure:7448: checking for --enable-metafile" >&5
1e6feb95
VZ
7448 no_cache=0
7449 # Check whether --enable-metafile or --disable-metafile was given.
7450if test "${enable_metafile+set}" = set; then
7451 enableval="$enable_metafile"
7452
7453 if test "$enableval" = yes; then
7454 ac_cv_use_metafile='wxUSE_METAFILE=yes'
7455 else
7456 ac_cv_use_metafile='wxUSE_METAFILE=no'
7457 fi
7458
7459else
7460
7461 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
7462 if test "x$LINE" != x ; then
7463 eval "DEFAULT_$LINE"
7464 else
7465 no_cache=1
7466 fi
7467
7468 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
7469
7470fi
7471
7472
7473 eval "$ac_cv_use_metafile"
7474 if test "$no_cache" != 1; then
7475 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
7476 fi
7477
7478 if test "$wxUSE_METAFILE" = yes; then
7479 echo "$ac_t""yes" 1>&6
7480 else
7481 echo "$ac_t""no" 1>&6
7482 fi
7483
7484
24fd6d87 7485 echo $ac_n "checking for --enable-dragimage""... $ac_c" 1>&6
683dccda 7486echo "configure:7487: checking for --enable-dragimage" >&5
24fd6d87
VZ
7487 no_cache=0
7488 # Check whether --enable-dragimage or --disable-dragimage was given.
7489if test "${enable_dragimage+set}" = set; then
7490 enableval="$enable_dragimage"
7491
7492 if test "$enableval" = yes; then
7493 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
7494 else
7495 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
7496 fi
7497
7498else
7499
7500 LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
7501 if test "x$LINE" != x ; then
7502 eval "DEFAULT_$LINE"
7503 else
7504 no_cache=1
7505 fi
7506
7507 ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
7508
7509fi
7510
7511
7512 eval "$ac_cv_use_dragimage"
7513 if test "$no_cache" != 1; then
7514 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
7515 fi
7516
7517 if test "$wxUSE_DRAGIMAGE" = yes; then
7518 echo "$ac_t""yes" 1>&6
7519 else
7520 echo "$ac_t""no" 1>&6
7521 fi
7522
7523
10f2d63a 7524
698dcdb6 7525
edae8572 7526 echo $ac_n "checking for --enable-palette""... $ac_c" 1>&6
683dccda 7527echo "configure:7528: checking for --enable-palette" >&5
edae8572
VZ
7528 no_cache=0
7529 # Check whether --enable-palette or --disable-palette was given.
7530if test "${enable_palette+set}" = set; then
7531 enableval="$enable_palette"
7532
7533 if test "$enableval" = yes; then
7534 ac_cv_use_palette='wxUSE_PALETTE=yes'
7535 else
7536 ac_cv_use_palette='wxUSE_PALETTE=no'
7537 fi
7538
7539else
7540
7541 LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
7542 if test "x$LINE" != x ; then
7543 eval "DEFAULT_$LINE"
7544 else
7545 no_cache=1
7546 fi
7547
7548 ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
7549
7550fi
7551
7552
7553 eval "$ac_cv_use_palette"
7554 if test "$no_cache" != 1; then
7555 echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
7556 fi
7557
7558 if test "$wxUSE_PALETTE" = yes; then
7559 echo "$ac_t""yes" 1>&6
7560 else
7561 echo "$ac_t""no" 1>&6
7562 fi
7563
7564
698dcdb6 7565 echo $ac_n "checking for --enable-image""... $ac_c" 1>&6
683dccda 7566echo "configure:7567: checking for --enable-image" >&5
0046ff7c
VS
7567 no_cache=0
7568 # Check whether --enable-image or --disable-image was given.
7569if test "${enable_image+set}" = set; then
7570 enableval="$enable_image"
698dcdb6 7571
0046ff7c
VS
7572 if test "$enableval" = yes; then
7573 ac_cv_use_image='wxUSE_IMAGE=yes'
7574 else
7575 ac_cv_use_image='wxUSE_IMAGE=no'
7576 fi
698dcdb6 7577
0046ff7c 7578else
698dcdb6 7579
0046ff7c
VS
7580 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
7581 if test "x$LINE" != x ; then
7582 eval "DEFAULT_$LINE"
7583 else
7584 no_cache=1
7585 fi
7586
7587 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
698dcdb6
VZ
7588
7589fi
0046ff7c
VS
7590
7591
7592 eval "$ac_cv_use_image"
7593 if test "$no_cache" != 1; then
7594 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
7595 fi
7596
7597 if test "$wxUSE_IMAGE" = yes; then
698dcdb6 7598 echo "$ac_t""yes" 1>&6
0046ff7c 7599 else
698dcdb6 7600 echo "$ac_t""no" 1>&6
0046ff7c 7601 fi
698dcdb6 7602
0046ff7c 7603
698dcdb6 7604 echo $ac_n "checking for --enable-gif""... $ac_c" 1>&6
683dccda 7605echo "configure:7606: checking for --enable-gif" >&5
10f2d63a
VZ
7606 no_cache=0
7607 # Check whether --enable-gif or --disable-gif was given.
7608if test "${enable_gif+set}" = set; then
7609 enableval="$enable_gif"
698dcdb6 7610
10f2d63a
VZ
7611 if test "$enableval" = yes; then
7612 ac_cv_use_gif='wxUSE_GIF=yes'
7613 else
7614 ac_cv_use_gif='wxUSE_GIF=no'
7615 fi
698dcdb6 7616
10f2d63a 7617else
698dcdb6 7618
10f2d63a
VZ
7619 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
7620 if test "x$LINE" != x ; then
7621 eval "DEFAULT_$LINE"
7622 else
7623 no_cache=1
7624 fi
7625
7626 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
698dcdb6
VZ
7627
7628fi
10f2d63a
VZ
7629
7630
7631 eval "$ac_cv_use_gif"
7632 if test "$no_cache" != 1; then
7633 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
7634 fi
7635
7636 if test "$wxUSE_GIF" = yes; then
698dcdb6 7637 echo "$ac_t""yes" 1>&6
10f2d63a 7638 else
698dcdb6 7639 echo "$ac_t""no" 1>&6
10f2d63a 7640 fi
698dcdb6 7641
10f2d63a 7642
698dcdb6 7643 echo $ac_n "checking for --enable-pcx""... $ac_c" 1>&6
683dccda 7644echo "configure:7645: checking for --enable-pcx" >&5
10f2d63a
VZ
7645 no_cache=0
7646 # Check whether --enable-pcx or --disable-pcx was given.
7647if test "${enable_pcx+set}" = set; then
7648 enableval="$enable_pcx"
698dcdb6 7649
10f2d63a
VZ
7650 if test "$enableval" = yes; then
7651 ac_cv_use_pcx='wxUSE_PCX=yes'
7652 else
7653 ac_cv_use_pcx='wxUSE_PCX=no'
7654 fi
698dcdb6 7655
10f2d63a 7656else
698dcdb6 7657
10f2d63a
VZ
7658 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
7659 if test "x$LINE" != x ; then
7660 eval "DEFAULT_$LINE"
7661 else
7662 no_cache=1
7663 fi
7664
7665 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
698dcdb6
VZ
7666
7667fi
10f2d63a
VZ
7668
7669
7670 eval "$ac_cv_use_pcx"
7671 if test "$no_cache" != 1; then
7672 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
7673 fi
7674
7675 if test "$wxUSE_PCX" = yes; then
698dcdb6 7676 echo "$ac_t""yes" 1>&6
10f2d63a 7677 else
698dcdb6 7678 echo "$ac_t""no" 1>&6
10f2d63a 7679 fi
698dcdb6 7680
10f2d63a 7681
698dcdb6 7682 echo $ac_n "checking for --enable-pnm""... $ac_c" 1>&6
683dccda 7683echo "configure:7684: checking for --enable-pnm" >&5
10f2d63a
VZ
7684 no_cache=0
7685 # Check whether --enable-pnm or --disable-pnm was given.
7686if test "${enable_pnm+set}" = set; then
7687 enableval="$enable_pnm"
698dcdb6 7688
10f2d63a
VZ
7689 if test "$enableval" = yes; then
7690 ac_cv_use_pnm='wxUSE_PNM=yes'
7691 else
7692 ac_cv_use_pnm='wxUSE_PNM=no'
7693 fi
698dcdb6 7694
10f2d63a 7695else
698dcdb6 7696
10f2d63a
VZ
7697 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
7698 if test "x$LINE" != x ; then
7699 eval "DEFAULT_$LINE"
7700 else
7701 no_cache=1
7702 fi
7703
7704 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
698dcdb6
VZ
7705
7706fi
10f2d63a
VZ
7707
7708
7709 eval "$ac_cv_use_pnm"
7710 if test "$no_cache" != 1; then
7711 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
7712 fi
7713
7714 if test "$wxUSE_PNM" = yes; then
698dcdb6 7715 echo "$ac_t""yes" 1>&6
10f2d63a 7716 else
698dcdb6 7717 echo "$ac_t""no" 1>&6
10f2d63a 7718 fi
698dcdb6 7719
10f2d63a 7720
698dcdb6 7721 echo $ac_n "checking for --enable-pnm""... $ac_c" 1>&6
683dccda 7722echo "configure:7723: checking for --enable-pnm" >&5
0046ff7c
VS
7723 no_cache=0
7724 # Check whether --enable-pnm or --disable-pnm was given.
7725if test "${enable_pnm+set}" = set; then
7726 enableval="$enable_pnm"
698dcdb6 7727
0046ff7c
VS
7728 if test "$enableval" = yes; then
7729 ac_cv_use_pnm='wxUSE_XPM=yes'
7730 else
7731 ac_cv_use_pnm='wxUSE_XPM=no'
7732 fi
698dcdb6 7733
0046ff7c 7734else
698dcdb6 7735
0046ff7c
VS
7736 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
7737 if test "x$LINE" != x ; then
7738 eval "DEFAULT_$LINE"
7739 else
7740 no_cache=1
7741 fi
7742
7743 ac_cv_use_pnm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
698dcdb6
VZ
7744
7745fi
0046ff7c
VS
7746
7747
7748 eval "$ac_cv_use_pnm"
7749 if test "$no_cache" != 1; then
7750 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
7751 fi
7752
7753 if test "$wxUSE_XPM" = yes; then
698dcdb6 7754 echo "$ac_t""yes" 1>&6
0046ff7c 7755 else
698dcdb6 7756 echo "$ac_t""no" 1>&6
0046ff7c 7757 fi
698dcdb6 7758
0046ff7c 7759
b12915c1
VZ
7760fi
7761
698dcdb6 7762
10f2d63a
VZ
7763 echo "saving argument cache $wx_arg_cache_file"
7764 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
698dcdb6 7765
10f2d63a 7766
698dcdb6
VZ
7767
7768echo $ac_n "checking for toolkit""... $ac_c" 1>&6
683dccda 7769echo "configure:7770: checking for toolkit" >&5
10f2d63a
VZ
7770
7771if test "$wxUSE_GUI" = "yes"; then
7772
3a922bb4
RL
7773 if test "$USE_BEOS" = 1; then
7774 { echo "configure: error: BeOS GUI is not supported yet, use --disable-gui" 1>&2; exit 1; }
7775 fi
b12915c1 7776
3a922bb4
RL
7777 if test "$TOOLKIT_GIVEN" = 1; then
7778 for toolkit in `echo $ALL_TOOLKITS`; do
7779 var=wxUSE_$toolkit
7780 eval "value=\$${var}"
7781 eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
7782 done
10f2d63a 7783 else
3a922bb4
RL
7784 for toolkit in `echo $ALL_TOOLKITS`; do
7785 if test "$has_toolkit_in_cache" != 1; then
7786 var=DEFAULT_DEFAULT_wxUSE_$toolkit
7787 else
7788 var=DEFAULT_wxUSE_$toolkit
7789 fi
7790 eval "wxUSE_$toolkit=\$${var}"
7791 done
10f2d63a 7792 fi
10f2d63a 7793
3a922bb4
RL
7794 NUM_TOOLKITS=`expr ${wxUSE_GTK:-0} + ${wxUSE_MOTIF:-0} + ${wxUSE_MAC:-0} \
7795 + ${wxUSE_WINE:-0} + ${wxUSE_MINGW:-0} + ${wxUSE_CYGWIN:-0} \
7796 + ${wxUSE_MGL:-0}`
10f2d63a 7797
3a922bb4
RL
7798 case "${host}" in
7799 *-pc-os2_emx )
7800 # PATH_IFS is autodetected by OS/2's configure (usually ';')
7801 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
7802 LEX_STEM="lexyy"
7803 ;;
7804 *)
7805 PATH_IFS=':'
7806 LEX_STEM="lex.yy"
7807 ;;
7808 esac
10f2d63a 7809
3a922bb4
RL
7810 case "$NUM_TOOLKITS" in
7811 1)
7812 ;;
7813 0)
7814 { echo "configure: error: Please specify a toolkit - cannot determine the default for ${host}" 1>&2; exit 1; }
7815 ;;
7816 *)
7817 { echo "configure: error: Please specify at most one toolkit (may be some are cached?)" 1>&2; exit 1; }
7818 esac
10f2d63a 7819
3a922bb4
RL
7820 for toolkit in `echo $ALL_TOOLKITS`; do
7821 var=wxUSE_$toolkit
7822 eval "value=\$${var}"
7823 if test "x$value" != x; then
7824 cache_var=CACHE_$toolkit
7825 eval "cache=\$${cache_var}"
7826 if test "$cache" = 1; then
7827 echo "$var=$value" >> ${wx_arg_cache_file}
7828 fi
7829 if test "$value" = 1; then
7830 toolkit_echo=`echo $toolkit | tr [A-Z] [a-z]`
7831 echo "$ac_t""$toolkit_echo" 1>&6
7832 fi
7833 fi
7834 done
10f2d63a 7835else
cf27ef00 7836 PATH_IFS=':'
3a922bb4 7837 echo "$ac_t""base ($host_alias hosted) only" 1>&6
10f2d63a
VZ
7838fi
7839
698dcdb6
VZ
7840
7841cat > confcache <<\EOF
10f2d63a
VZ
7842# This file is a shell script that caches the results of configure
7843# tests run on this system so they can be shared between configure
698dcdb6
VZ
7844# scripts and configure runs. It is not useful on other systems.
7845# If it contains results you don't want to keep, you may remove or edit it.
10f2d63a 7846#
698dcdb6
VZ
7847# By default, configure uses ./config.cache as the cache file,
7848# creating it if it does not exist already. You can give configure
7849# the --cache-file=FILE option to use a different cache file; that is
7850# what configure does when it calls configure scripts in
7851# subdirectories, so they share the cache.
7852# Giving --cache-file=/dev/null disables caching, for debugging configure.
7853# config.status only pays attention to the cache file if you give it the
7854# --recheck option to rerun configure.
10f2d63a 7855#
698dcdb6 7856EOF
10f2d63a
VZ
7857# The following way of writing the cache mishandles newlines in values,
7858# but we know of no workaround that is simple, portable, and efficient.
7859# So, don't put newlines in cache variables' values.
7860# Ultrix sh set writes to stderr and can't be redirected directly,
7861# and sets the high bit in the cache file unless we assign to the vars.
698dcdb6
VZ
7862(set) 2>&1 |
7863 case `(ac_space=' '; set | grep ac_space) 2>&1` in
7864 *ac_space=\ *)
7865 # `set' does not quote correctly, so add quotes (double-quote substitution
7866 # turns \\\\ into \\, and sed turns \\ into \).
7867 sed -n \
7868 -e "s/'/'\\\\''/g" \
7869 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
7870 ;;
7871 *)
7872 # `set' quotes correctly as required by POSIX, so do not add quotes.
7873 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
7874 ;;
7875 esac >> confcache
7876if cmp -s $cache_file confcache; then
7877 :
7878else
10f2d63a 7879 if test -w $cache_file; then
698dcdb6
VZ
7880 echo "updating cache $cache_file"
7881 cat confcache > $cache_file
10f2d63a
VZ
7882 else
7883 echo "not updating unwritable cache $cache_file"
7884 fi
7885fi
7886rm -f confcache
7887
698dcdb6 7888
e59890c3 7889if test "$build" != "$host" ; then
3a922bb4
RL
7890 if test "$USE_WIN32" = 1 ; then
7891 CC=$host_alias-gcc
7892 CXX=$host_alias-c++
7893 AR=$host_alias-ar
7894 RANLIB=$host_alias-ranlib
7895 DLLTOOL=$host_alias-dlltool
7896 RESCOMP=$host_alias-windres
7897 LD=$host_alias-ld
7898 NM=$host_alias-nm
7899 STRIP=$host_alias-strip
7900 else
7901 { echo "configure: error: $build_alias -> $host_alias cross compilation not supported yet." 1>&2; exit 1; }
7902 fi
10f2d63a
VZ
7903fi
7904
698dcdb6 7905# Extract the first word of "gcc", so it can be a program name with args.
1e487827 7906set dummy gcc; ac_word=$2
698dcdb6 7907echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
683dccda 7908echo "configure:7909: checking for $ac_word" >&5
698dcdb6
VZ
7909if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
7910 echo $ac_n "(cached) $ac_c" 1>&6
6232543b
VS
7911else
7912 if test -n "$CC"; then
7913 ac_cv_prog_CC="$CC" # Let the user override the test.
10f2d63a 7914else
698dcdb6
VZ
7915 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7916 ac_dummy="$PATH"
7917 for ac_dir in $ac_dummy; do
7918 test -z "$ac_dir" && ac_dir=.
7919 if test -f $ac_dir/$ac_word; then
7920 ac_cv_prog_CC="gcc"
7921 break
7922 fi
7923 done
7924 IFS="$ac_save_ifs"
10f2d63a 7925fi
6232543b 7926fi
698dcdb6 7927CC="$ac_cv_prog_CC"
6232543b 7928if test -n "$CC"; then
698dcdb6 7929 echo "$ac_t""$CC" 1>&6
1e487827 7930else
698dcdb6 7931 echo "$ac_t""no" 1>&6
1e487827 7932fi
6232543b 7933
1e487827
VS
7934if test -z "$CC"; then
7935 # Extract the first word of "cc", so it can be a program name with args.
7936set dummy cc; ac_word=$2
698dcdb6 7937echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
683dccda 7938echo "configure:7939: checking for $ac_word" >&5
698dcdb6
VZ
7939if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
7940 echo $ac_n "(cached) $ac_c" 1>&6
1e487827
VS
7941else
7942 if test -n "$CC"; then
7943 ac_cv_prog_CC="$CC" # Let the user override the test.
7944else
698dcdb6 7945 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1e487827 7946 ac_prog_rejected=no
698dcdb6
VZ
7947 ac_dummy="$PATH"
7948 for ac_dir in $ac_dummy; do
7949 test -z "$ac_dir" && ac_dir=.
7950 if test -f $ac_dir/$ac_word; then
7951 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
7952 ac_prog_rejected=yes
7953 continue
7954 fi
7955 ac_cv_prog_CC="cc"
7956 break
7957 fi
7958 done
7959 IFS="$ac_save_ifs"
1e487827
VS
7960if test $ac_prog_rejected = yes; then
7961 # We found a bogon in the path, so make sure we never use it.
7962 set dummy $ac_cv_prog_CC
7963 shift
698dcdb6 7964 if test $# -gt 0; then
1e487827
VS
7965 # We chose a different compiler from the bogus one.
7966 # However, it has the same basename, so the bogon will be chosen
7967 # first if we set CC to just the basename; use the full file name.
7968 shift
698dcdb6 7969 set dummy "$ac_dir/$ac_word" "$@"
1e487827
VS
7970 shift
7971 ac_cv_prog_CC="$@"
703e0a69 7972 fi
1e487827
VS
7973fi
7974fi
7975fi
698dcdb6 7976CC="$ac_cv_prog_CC"
1e487827 7977if test -n "$CC"; then
698dcdb6 7978 echo "$ac_t""$CC" 1>&6
703e0a69 7979else
698dcdb6 7980 echo "$ac_t""no" 1>&6
703e0a69 7981fi
1e487827 7982
698dcdb6
VZ
7983 if test -z "$CC"; then
7984 case "`uname -s`" in
7985 *win32* | *WIN32*)
7986 # Extract the first word of "cl", so it can be a program name with args.
7987set dummy cl; ac_word=$2
7988echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
683dccda 7989echo "configure:7990: checking for $ac_word" >&5
698dcdb6
VZ
7990if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
7991 echo $ac_n "(cached) $ac_c" 1>&6
1e487827
VS
7992else
7993 if test -n "$CC"; then
7994 ac_cv_prog_CC="$CC" # Let the user override the test.
703e0a69 7995else
698dcdb6
VZ
7996 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7997 ac_dummy="$PATH"
7998 for ac_dir in $ac_dummy; do
7999 test -z "$ac_dir" && ac_dir=.
8000 if test -f $ac_dir/$ac_word; then
8001 ac_cv_prog_CC="cl"
8002 break
8003 fi
8004 done
8005 IFS="$ac_save_ifs"
703e0a69 8006fi
1e487827 8007fi
698dcdb6 8008CC="$ac_cv_prog_CC"
1e487827 8009if test -n "$CC"; then
698dcdb6 8010 echo "$ac_t""$CC" 1>&6
1e487827 8011else
698dcdb6 8012 echo "$ac_t""no" 1>&6
1e487827 8013fi
698dcdb6
VZ
8014 ;;
8015 esac
8016 fi
8017 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1e487827
VS
8018fi
8019
698dcdb6 8020echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
683dccda 8021echo "configure:8022: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1e487827 8022
698dcdb6
VZ
8023ac_ext=c
8024# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8025ac_cpp='$CPP $CPPFLAGS'
8026ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8027ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8028cross_compiling=$ac_cv_prog_cc_cross
6232543b 8029
698dcdb6 8030cat > conftest.$ac_ext << EOF
1e487827 8031
683dccda 8032#line 8033 "configure"
1e487827
VS
8033#include "confdefs.h"
8034
698dcdb6
VZ
8035main(){return(0);}
8036EOF
683dccda 8037if { (eval echo configure:8038: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
8038 ac_cv_prog_cc_works=yes
8039 # If we can't run a trivial program, we are probably using a cross compiler.
8040 if (./conftest; exit) 2>/dev/null; then
8041 ac_cv_prog_cc_cross=no
8042 else
8043 ac_cv_prog_cc_cross=yes
8044 fi
8045else
8046 echo "configure: failed program was:" >&5
8047 cat conftest.$ac_ext >&5
8048 ac_cv_prog_cc_works=no
8049fi
8050rm -fr conftest*
8051ac_ext=c
8052# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8053ac_cpp='$CPP $CPPFLAGS'
8054ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8055ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8056cross_compiling=$ac_cv_prog_cc_cross
8057
8058echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
8059if test $ac_cv_prog_cc_works = no; then
8060 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
8061fi
8062echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
683dccda 8063echo "configure:8064: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
698dcdb6
VZ
8064echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
8065cross_compiling=$ac_cv_prog_cc_cross
8066
8067echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
683dccda 8068echo "configure:8069: checking whether we are using GNU C" >&5
698dcdb6
VZ
8069if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
8070 echo $ac_n "(cached) $ac_c" 1>&6
8071else
8072 cat > conftest.c <<EOF
8073#ifdef __GNUC__
8074 yes;
1e487827 8075#endif
698dcdb6 8076EOF
683dccda 8077if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:8078: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
698dcdb6
VZ
8078 ac_cv_prog_gcc=yes
8079else
8080 ac_cv_prog_gcc=no
8081fi
8082fi
1e487827 8083
698dcdb6 8084echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1e487827 8085
698dcdb6
VZ
8086if test $ac_cv_prog_gcc = yes; then
8087 GCC=yes
8088else
8089 GCC=
8090fi
1e487827 8091
698dcdb6
VZ
8092ac_test_CFLAGS="${CFLAGS+set}"
8093ac_save_CFLAGS="$CFLAGS"
8094CFLAGS=
8095echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
683dccda 8096echo "configure:8097: checking whether ${CC-cc} accepts -g" >&5
698dcdb6
VZ
8097if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
8098 echo $ac_n "(cached) $ac_c" 1>&6
8099else
8100 echo 'void f(){}' > conftest.c
8101if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
10f2d63a
VZ
8102 ac_cv_prog_cc_g=yes
8103else
698dcdb6 8104 ac_cv_prog_cc_g=no
10f2d63a 8105fi
698dcdb6
VZ
8106rm -f conftest*
8107
10f2d63a 8108fi
698dcdb6
VZ
8109
8110echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
10f2d63a 8111if test "$ac_test_CFLAGS" = set; then
698dcdb6 8112 CFLAGS="$ac_save_CFLAGS"
10f2d63a
VZ
8113elif test $ac_cv_prog_cc_g = yes; then
8114 if test "$GCC" = yes; then
8115 CFLAGS="-g -O2"
8116 else
8117 CFLAGS="-g"
8118 fi
8119else
8120 if test "$GCC" = yes; then
8121 CFLAGS="-O2"
8122 else
8123 CFLAGS=
8124 fi
8125fi
8126
8127
8128CFLAGS=`echo "$CFLAGS" | sed 's/-g//g'`
8129
698dcdb6 8130echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
683dccda 8131echo "configure:8132: checking how to run the C preprocessor" >&5
10f2d63a
VZ
8132# On Suns, sometimes $CPP names a directory.
8133if test -n "$CPP" && test -d "$CPP"; then
8134 CPP=
8135fi
8136if test -z "$CPP"; then
698dcdb6
VZ
8137if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
8138 echo $ac_n "(cached) $ac_c" 1>&6
8139else
8140 # This must be in double quotes, not single quotes, because CPP may get
8141 # substituted into the Makefile and "${CC-cc}" will confuse make.
8142 CPP="${CC-cc} -E"
10f2d63a 8143 # On the NeXT, cc -E runs the code through the compiler's parser,
698dcdb6
VZ
8144 # not just through cpp.
8145 cat > conftest.$ac_ext <<EOF
683dccda 8146#line 8147 "configure"
10f2d63a
VZ
8147#include "confdefs.h"
8148#include <assert.h>
698dcdb6
VZ
8149Syntax Error
8150EOF
8151ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
683dccda 8152{ (eval echo configure:8153: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
8153ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8154if test -z "$ac_err"; then
10f2d63a
VZ
8155 :
8156else
698dcdb6
VZ
8157 echo "$ac_err" >&5
8158 echo "configure: failed program was:" >&5
10f2d63a 8159 cat conftest.$ac_ext >&5
698dcdb6
VZ
8160 rm -rf conftest*
8161 CPP="${CC-cc} -E -traditional-cpp"
8162 cat > conftest.$ac_ext <<EOF
683dccda 8163#line 8164 "configure"
10f2d63a 8164#include "confdefs.h"
698dcdb6
VZ
8165#include <assert.h>
8166Syntax Error
8167EOF
8168ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
683dccda 8169{ (eval echo configure:8170: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
8170ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8171if test -z "$ac_err"; then
8172 :
10f2d63a 8173else
698dcdb6
VZ
8174 echo "$ac_err" >&5
8175 echo "configure: failed program was:" >&5
10f2d63a 8176 cat conftest.$ac_ext >&5
698dcdb6
VZ
8177 rm -rf conftest*
8178 CPP="${CC-cc} -nologo -E"
8179 cat > conftest.$ac_ext <<EOF
683dccda 8180#line 8181 "configure"
10f2d63a
VZ
8181#include "confdefs.h"
8182#include <assert.h>
698dcdb6
VZ
8183Syntax Error
8184EOF
8185ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
683dccda 8186{ (eval echo configure:8187: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
8187ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8188if test -z "$ac_err"; then
10f2d63a
VZ
8189 :
8190else
698dcdb6
VZ
8191 echo "$ac_err" >&5
8192 echo "configure: failed program was:" >&5
10f2d63a 8193 cat conftest.$ac_ext >&5
698dcdb6
VZ
8194 rm -rf conftest*
8195 CPP=/lib/cpp
10f2d63a 8196fi
698dcdb6 8197rm -f conftest*
10f2d63a 8198fi
698dcdb6 8199rm -f conftest*
703e0a69 8200fi
698dcdb6
VZ
8201rm -f conftest*
8202 ac_cv_prog_CPP="$CPP"
8203fi
8204 CPP="$ac_cv_prog_CPP"
10f2d63a 8205else
698dcdb6 8206 ac_cv_prog_CPP="$CPP"
10f2d63a 8207fi
698dcdb6 8208echo "$ac_t""$CPP" 1>&6
10f2d63a 8209
698dcdb6
VZ
8210if test $ac_cv_prog_gcc = yes; then
8211 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
683dccda 8212echo "configure:8213: checking whether ${CC-cc} needs -traditional" >&5
698dcdb6
VZ
8213if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
8214 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
8215else
8216 ac_pattern="Autoconf.*'x'"
698dcdb6 8217 cat > conftest.$ac_ext <<EOF
683dccda 8218#line 8219 "configure"
10f2d63a
VZ
8219#include "confdefs.h"
8220#include <sgtty.h>
8221Autoconf TIOCGETP
698dcdb6 8222EOF
10f2d63a
VZ
8223if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8224 egrep "$ac_pattern" >/dev/null 2>&1; then
698dcdb6 8225 rm -rf conftest*
10f2d63a
VZ
8226 ac_cv_prog_gcc_traditional=yes
8227else
698dcdb6 8228 rm -rf conftest*
10f2d63a
VZ
8229 ac_cv_prog_gcc_traditional=no
8230fi
8231rm -f conftest*
8232
698dcdb6 8233
10f2d63a 8234 if test $ac_cv_prog_gcc_traditional = no; then
698dcdb6 8235 cat > conftest.$ac_ext <<EOF
683dccda 8236#line 8237 "configure"
10f2d63a
VZ
8237#include "confdefs.h"
8238#include <termio.h>
8239Autoconf TCGETA
698dcdb6 8240EOF
10f2d63a
VZ
8241if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8242 egrep "$ac_pattern" >/dev/null 2>&1; then
698dcdb6 8243 rm -rf conftest*
10f2d63a
VZ
8244 ac_cv_prog_gcc_traditional=yes
8245fi
8246rm -f conftest*
8247
8248 fi
8249fi
698dcdb6
VZ
8250
8251echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
10f2d63a
VZ
8252 if test $ac_cv_prog_gcc_traditional = yes; then
8253 CC="$CC -traditional"
8254 fi
8255fi
8256
703e0a69 8257
698dcdb6
VZ
8258
8259ac_ext=C
8260# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1e487827 8261ac_cpp='$CXXCPP $CPPFLAGS'
698dcdb6
VZ
8262ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8263ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8264cross_compiling=$ac_cv_prog_cxx_cross
8265
8266
8267for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
8268do
8269# Extract the first word of "$ac_prog", so it can be a program name with args.
8270set dummy $ac_prog; ac_word=$2
8271echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
683dccda 8272echo "configure:8273: checking for $ac_word" >&5
698dcdb6
VZ
8273if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
8274 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
8275else
8276 if test -n "$CXX"; then
8277 ac_cv_prog_CXX="$CXX" # Let the user override the test.
8278else
698dcdb6
VZ
8279 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8280 ac_dummy="$PATH"
8281 for ac_dir in $ac_dummy; do
8282 test -z "$ac_dir" && ac_dir=.
8283 if test -f $ac_dir/$ac_word; then
8284 ac_cv_prog_CXX="$ac_prog"
8285 break
8286 fi
8287 done
8288 IFS="$ac_save_ifs"
10f2d63a
VZ
8289fi
8290fi
698dcdb6 8291CXX="$ac_cv_prog_CXX"
10f2d63a 8292if test -n "$CXX"; then
698dcdb6 8293 echo "$ac_t""$CXX" 1>&6
10f2d63a 8294else
698dcdb6 8295 echo "$ac_t""no" 1>&6
10f2d63a
VZ
8296fi
8297
698dcdb6 8298test -n "$CXX" && break
10f2d63a 8299done
698dcdb6 8300test -n "$CXX" || CXX="gcc"
10f2d63a
VZ
8301
8302
698dcdb6 8303echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
683dccda 8304echo "configure:8305: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
10f2d63a 8305
698dcdb6
VZ
8306ac_ext=C
8307# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8308ac_cpp='$CXXCPP $CPPFLAGS'
8309ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8310ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8311cross_compiling=$ac_cv_prog_cxx_cross
703e0a69 8312
698dcdb6
VZ
8313cat > conftest.$ac_ext << EOF
8314
683dccda 8315#line 8316 "configure"
10f2d63a
VZ
8316#include "confdefs.h"
8317
698dcdb6
VZ
8318int main(){return(0);}
8319EOF
683dccda 8320if { (eval echo configure:8321: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
8321 ac_cv_prog_cxx_works=yes
8322 # If we can't run a trivial program, we are probably using a cross compiler.
8323 if (./conftest; exit) 2>/dev/null; then
8324 ac_cv_prog_cxx_cross=no
8325 else
8326 ac_cv_prog_cxx_cross=yes
8327 fi
8328else
8329 echo "configure: failed program was:" >&5
8330 cat conftest.$ac_ext >&5
8331 ac_cv_prog_cxx_works=no
8332fi
8333rm -fr conftest*
8334ac_ext=C
8335# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8336ac_cpp='$CXXCPP $CPPFLAGS'
8337ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8338ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8339cross_compiling=$ac_cv_prog_cxx_cross
8340
8341echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
8342if test $ac_cv_prog_cxx_works = no; then
8343 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
8344fi
8345echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
683dccda 8346echo "configure:8347: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
698dcdb6
VZ
8347echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
8348cross_compiling=$ac_cv_prog_cxx_cross
8349
8350echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
683dccda 8351echo "configure:8352: checking whether we are using GNU C++" >&5
698dcdb6
VZ
8352if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
8353 echo $ac_n "(cached) $ac_c" 1>&6
8354else
8355 cat > conftest.C <<EOF
8356#ifdef __GNUC__
8357 yes;
10f2d63a 8358#endif
698dcdb6 8359EOF
683dccda 8360if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:8361: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
698dcdb6
VZ
8361 ac_cv_prog_gxx=yes
8362else
8363 ac_cv_prog_gxx=no
8364fi
8365fi
10f2d63a 8366
698dcdb6 8367echo "$ac_t""$ac_cv_prog_gxx" 1>&6
10f2d63a 8368
698dcdb6
VZ
8369if test $ac_cv_prog_gxx = yes; then
8370 GXX=yes
8371else
8372 GXX=
8373fi
10f2d63a 8374
698dcdb6
VZ
8375ac_test_CXXFLAGS="${CXXFLAGS+set}"
8376ac_save_CXXFLAGS="$CXXFLAGS"
8377CXXFLAGS=
8378echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
683dccda 8379echo "configure:8380: checking whether ${CXX-g++} accepts -g" >&5
698dcdb6
VZ
8380if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
8381 echo $ac_n "(cached) $ac_c" 1>&6
8382else
8383 echo 'void f(){}' > conftest.cc
8384if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
10f2d63a
VZ
8385 ac_cv_prog_cxx_g=yes
8386else
698dcdb6 8387 ac_cv_prog_cxx_g=no
10f2d63a 8388fi
698dcdb6
VZ
8389rm -f conftest*
8390
10f2d63a 8391fi
698dcdb6
VZ
8392
8393echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
10f2d63a 8394if test "$ac_test_CXXFLAGS" = set; then
698dcdb6 8395 CXXFLAGS="$ac_save_CXXFLAGS"
10f2d63a
VZ
8396elif test $ac_cv_prog_cxx_g = yes; then
8397 if test "$GXX" = yes; then
8398 CXXFLAGS="-g -O2"
8399 else
8400 CXXFLAGS="-g"
8401 fi
8402else
8403 if test "$GXX" = yes; then
8404 CXXFLAGS="-O2"
8405 else
8406 CXXFLAGS=
8407 fi
8408fi
8409
8410
10f2d63a
VZ
8411CXXFLAGS=`echo "$CXXFLAGS" | sed 's/-g//g'`
8412
8413ac_ext=c
698dcdb6 8414# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10f2d63a 8415ac_cpp='$CPP $CPPFLAGS'
698dcdb6
VZ
8416ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8417ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8418cross_compiling=$ac_cv_prog_cc_cross
8419
8420
8421# Extract the first word of "ranlib", so it can be a program name with args.
8422set dummy ranlib; ac_word=$2
8423echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
683dccda 8424echo "configure:8425: checking for $ac_word" >&5
698dcdb6
VZ
8425if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
8426 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
8427else
8428 if test -n "$RANLIB"; then
8429 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8430else
698dcdb6
VZ
8431 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8432 ac_dummy="$PATH"
8433 for ac_dir in $ac_dummy; do
8434 test -z "$ac_dir" && ac_dir=.
8435 if test -f $ac_dir/$ac_word; then
8436 ac_cv_prog_RANLIB="ranlib"
8437 break
8438 fi
8439 done
8440 IFS="$ac_save_ifs"
8441 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
10f2d63a
VZ
8442fi
8443fi
698dcdb6 8444RANLIB="$ac_cv_prog_RANLIB"
10f2d63a 8445if test -n "$RANLIB"; then
698dcdb6 8446 echo "$ac_t""$RANLIB" 1>&6
10f2d63a 8447else
698dcdb6 8448 echo "$ac_t""no" 1>&6
10f2d63a
VZ
8449fi
8450
8451
8452# Extract the first word of "ar", so it can be a program name with args.
8453set dummy ar; ac_word=$2
698dcdb6 8454echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
683dccda 8455echo "configure:8456: checking for $ac_word" >&5
698dcdb6
VZ
8456if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
8457 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
8458else
8459 if test -n "$AR"; then
8460 ac_cv_prog_AR="$AR" # Let the user override the test.
8461else
698dcdb6
VZ
8462 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8463 ac_dummy="$PATH"
8464 for ac_dir in $ac_dummy; do
8465 test -z "$ac_dir" && ac_dir=.
8466 if test -f $ac_dir/$ac_word; then
8467 ac_cv_prog_AR="ar"
8468 break
8469 fi
8470 done
8471 IFS="$ac_save_ifs"
10f2d63a
VZ
8472 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
8473fi
8474fi
698dcdb6 8475AR="$ac_cv_prog_AR"
10f2d63a 8476if test -n "$AR"; then
698dcdb6 8477 echo "$ac_t""$AR" 1>&6
10f2d63a 8478else
698dcdb6 8479 echo "$ac_t""no" 1>&6
10f2d63a
VZ
8480fi
8481
698dcdb6 8482
10f2d63a
VZ
8483# Find a good install program. We prefer a C program (faster),
8484# so one script is as good as another. But avoid the broken or
8485# incompatible versions:
8486# SysV /etc/install, /usr/sbin/install
8487# SunOS /usr/etc/install
8488# IRIX /sbin/install
8489# AIX /bin/install
8490# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
8491# AFS /usr/afsws/bin/install, which mishandles nonexistent args
8492# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8493# ./install, which can be erroneously created by make from ./install.sh.
698dcdb6 8494echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
683dccda 8495echo "configure:8496: checking for a BSD compatible install" >&5
10f2d63a 8496if test -z "$INSTALL"; then
698dcdb6
VZ
8497if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
8498 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 8499else
698dcdb6 8500 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
10f2d63a
VZ
8501 for ac_dir in $PATH; do
8502 # Account for people who put trailing slashes in PATH elements.
698dcdb6
VZ
8503 case "$ac_dir/" in
8504 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
10f2d63a
VZ
8505 *)
8506 # OSF1 and SCO ODT 3.0 have their own names for install.
8507 # Don't use installbsd from OSF since it installs stuff as root
8508 # by default.
8509 for ac_prog in ginstall scoinst install; do
698dcdb6 8510 if test -f $ac_dir/$ac_prog; then
10f2d63a 8511 if test $ac_prog = install &&
698dcdb6 8512 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
10f2d63a
VZ
8513 # AIX install. It has an incompatible calling convention.
8514 :
8515 else
8516 ac_cv_path_install="$ac_dir/$ac_prog -c"
8517 break 2
8518 fi
8519 fi
8520 done
8521 ;;
8522 esac
8523 done
698dcdb6 8524 IFS="$ac_save_IFS"
10f2d63a
VZ
8525
8526fi
8527 if test "${ac_cv_path_install+set}" = set; then
698dcdb6 8528 INSTALL="$ac_cv_path_install"
10f2d63a
VZ
8529 else
8530 # As a last resort, use the slow shell script. We don't cache a
8531 # path for INSTALL within a source directory, because that will
8532 # break other packages using the cache if that directory is
8533 # removed, or if the path is relative.
698dcdb6 8534 INSTALL="$ac_install_sh"
10f2d63a
VZ
8535 fi
8536fi
698dcdb6 8537echo "$ac_t""$INSTALL" 1>&6
10f2d63a
VZ
8538
8539# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8540# It thinks the first close brace ends the variable substitution.
8541test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8542
698dcdb6 8543test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
10f2d63a
VZ
8544
8545test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8546
698dcdb6 8547
10f2d63a
VZ
8548# Extract the first word of "strip", so it can be a program name with args.
8549set dummy strip; ac_word=$2
698dcdb6 8550echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
683dccda 8551echo "configure:8552: checking for $ac_word" >&5
698dcdb6
VZ
8552if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
8553 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
8554else
8555 if test -n "$STRIP"; then
8556 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8557else
698dcdb6
VZ
8558 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8559 ac_dummy="$PATH"
8560 for ac_dir in $ac_dummy; do
8561 test -z "$ac_dir" && ac_dir=.
8562 if test -f $ac_dir/$ac_word; then
8563 ac_cv_prog_STRIP="strip"
8564 break
8565 fi
8566 done
8567 IFS="$ac_save_ifs"
10f2d63a
VZ
8568 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
8569fi
8570fi
698dcdb6 8571STRIP="$ac_cv_prog_STRIP"
10f2d63a 8572if test -n "$STRIP"; then
698dcdb6 8573 echo "$ac_t""$STRIP" 1>&6
10f2d63a 8574else
698dcdb6 8575 echo "$ac_t""no" 1>&6
10f2d63a
VZ
8576fi
8577
698dcdb6
VZ
8578
8579echo $ac_n "checking make for VPATH support""... $ac_c" 1>&6
683dccda 8580echo "configure:8581: checking make for VPATH support" >&5
10f2d63a
VZ
8581cat - << EOF > confMake
8582check : file
8583 cp \$? \$@
8584 cp \$? final_file
8585EOF
8586
8587if test ! -d sub ; then
8588 mkdir sub
8589fi
8590echo dummy > sub/file
f6bcfd97 8591${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
10f2d63a
VZ
8592RESULT=$?
8593rm -f sub/file check final_file confMake
8594rmdir sub
8595if test "$RESULT" = 0; then
698dcdb6 8596 echo "$ac_t""yes" 1>&6
10f2d63a 8597else
698dcdb6
VZ
8598 echo "$ac_t""no" 1>&6
8599 { echo "configure: error:
1e487827
VS
8600You need a make-utility that is able to use the variable
8601VPATH correctly.
8602If your version of make does not support VPATH correctly,
8603please install GNU-make (possibly as gmake), and start
8604configure with the following command:
8605export MAKE=gmake; ./configure for sh-type shells
8606setenv MAKE gmake; ./configure for csh-type shells
8607Also please do remember to use gmake in this case every time
8608you are trying to compile.
698dcdb6 8609" 1>&2; exit 1; }
10f2d63a
VZ
8610fi
8611
8612for ac_prog in 'bison -y' byacc
8613do
698dcdb6 8614# Extract the first word of "$ac_prog", so it can be a program name with args.
10f2d63a 8615set dummy $ac_prog; ac_word=$2
698dcdb6 8616echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
683dccda 8617echo "configure:8618: checking for $ac_word" >&5
698dcdb6
VZ
8618if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
8619 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
8620else
8621 if test -n "$YACC"; then
8622 ac_cv_prog_YACC="$YACC" # Let the user override the test.
8623else
698dcdb6
VZ
8624 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8625 ac_dummy="$PATH"
8626 for ac_dir in $ac_dummy; do
8627 test -z "$ac_dir" && ac_dir=.
8628 if test -f $ac_dir/$ac_word; then
8629 ac_cv_prog_YACC="$ac_prog"
8630 break
8631 fi
8632 done
8633 IFS="$ac_save_ifs"
10f2d63a
VZ
8634fi
8635fi
698dcdb6 8636YACC="$ac_cv_prog_YACC"
10f2d63a 8637if test -n "$YACC"; then
698dcdb6 8638 echo "$ac_t""$YACC" 1>&6
10f2d63a 8639else
698dcdb6 8640 echo "$ac_t""no" 1>&6
10f2d63a
VZ
8641fi
8642
698dcdb6 8643test -n "$YACC" && break
10f2d63a
VZ
8644done
8645test -n "$YACC" || YACC="yacc"
8646
698dcdb6
VZ
8647
8648# Extract the first word of "flex", so it can be a program name with args.
8649set dummy flex; ac_word=$2
8650echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
683dccda 8651echo "configure:8652: checking for $ac_word" >&5
698dcdb6
VZ
8652if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
8653 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
8654else
8655 if test -n "$LEX"; then
8656 ac_cv_prog_LEX="$LEX" # Let the user override the test.
8657else
698dcdb6
VZ
8658 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8659 ac_dummy="$PATH"
8660 for ac_dir in $ac_dummy; do
8661 test -z "$ac_dir" && ac_dir=.
8662 if test -f $ac_dir/$ac_word; then
8663 ac_cv_prog_LEX="flex"
8664 break
8665 fi
8666 done
8667 IFS="$ac_save_ifs"
8668 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
10f2d63a
VZ
8669fi
8670fi
698dcdb6 8671LEX="$ac_cv_prog_LEX"
10f2d63a 8672if test -n "$LEX"; then
698dcdb6 8673 echo "$ac_t""$LEX" 1>&6
10f2d63a 8674else
698dcdb6 8675 echo "$ac_t""no" 1>&6
10f2d63a
VZ
8676fi
8677
8678if test -z "$LEXLIB"
8679then
698dcdb6
VZ
8680 case "$LEX" in
8681 flex*) ac_lib=fl ;;
8682 *) ac_lib=l ;;
8683 esac
8684 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
683dccda 8685echo "configure:8686: checking for yywrap in -l$ac_lib" >&5
698dcdb6
VZ
8686ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
8687if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8688 echo $ac_n "(cached) $ac_c" 1>&6
8689else
8690 ac_save_LIBS="$LIBS"
8691LIBS="-l$ac_lib $LIBS"
8692cat > conftest.$ac_ext <<EOF
683dccda 8693#line 8694 "configure"
10f2d63a
VZ
8694#include "confdefs.h"
8695/* Override any gcc2 internal prototype to avoid an error. */
8696/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
8697 builtin and then its argument prototype would still apply. */
8698char yywrap();
10f2d63a 8699
698dcdb6
VZ
8700int main() {
8701yywrap()
8702; return 0; }
8703EOF
683dccda 8704if { (eval echo configure:8705: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
8705 rm -rf conftest*
8706 eval "ac_cv_lib_$ac_lib_var=yes"
10f2d63a 8707else
698dcdb6
VZ
8708 echo "configure: failed program was:" >&5
8709 cat conftest.$ac_ext >&5
8710 rm -rf conftest*
8711 eval "ac_cv_lib_$ac_lib_var=no"
10f2d63a 8712fi
698dcdb6
VZ
8713rm -f conftest*
8714LIBS="$ac_save_LIBS"
8715
10f2d63a 8716fi
698dcdb6
VZ
8717if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8718 echo "$ac_t""yes" 1>&6
8719 LEXLIB="-l$ac_lib"
8720else
8721 echo "$ac_t""no" 1>&6
10f2d63a
VZ
8722fi
8723
8724fi
8725
8726
698dcdb6 8727echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
683dccda 8728echo "configure:8729: checking whether ln -s works" >&5
698dcdb6
VZ
8729if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
8730 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 8731else
698dcdb6
VZ
8732 rm -f conftestdata
8733if ln -s X conftestdata 2>/dev/null
8734then
8735 rm -f conftestdata
8736 ac_cv_prog_LN_S="ln -s"
10f2d63a 8737else
698dcdb6 8738 ac_cv_prog_LN_S=ln
10f2d63a
VZ
8739fi
8740fi
698dcdb6
VZ
8741LN_S="$ac_cv_prog_LN_S"
8742if test "$ac_cv_prog_LN_S" = "ln -s"; then
8743 echo "$ac_t""yes" 1>&6
10f2d63a 8744else
698dcdb6 8745 echo "$ac_t""no" 1>&6
10f2d63a
VZ
8746fi
8747
8748
8749
8750SEARCH_INCLUDE="\
8751 /usr/local/include \
8752 \
8753 /usr/Motif-1.2/include \
8754 /usr/Motif-2.1/include \
8755 \
8756 /usr/include/Motif1.2 \
8757 /opt/xpm/include/X11 \
8758 /opt/GBxpm/include/ \
8759 /opt/GBxpm/X11/include/ \
8760 \
8761 /usr/Motif1.2/include \
8762 /usr/dt/include \
afc31813
VZ
8763 /usr/openwin/include \
8764 \
10f2d63a
VZ
8765 /usr/include/Xm \
8766 \
8767 /usr/X11R6/include \
afc31813 8768 /usr/X11R6.4/include \
10f2d63a
VZ
8769 /usr/X11R5/include \
8770 /usr/X11R4/include \
8771 \
10f2d63a
VZ
8772 /usr/include/X11R6 \
8773 /usr/include/X11R5 \
8774 /usr/include/X11R4 \
8775 \
8776 /usr/local/X11R6/include \
8777 /usr/local/X11R5/include \
8778 /usr/local/X11R4/include \
8779 \
8780 /usr/local/include/X11R6 \
8781 /usr/local/include/X11R5 \
8782 /usr/local/include/X11R4 \
8783 \
8784 /usr/X11/include \
8785 /usr/include/X11 \
8786 /usr/local/X11/include \
8787 /usr/local/include/X11 \
8788 \
8789 /usr/X386/include \
8790 /usr/x386/include \
8791 /usr/XFree86/include/X11 \
8792 \
cf27ef00 8793 X:/XFree86/include \
ec14dd32
VZ
8794 X:/XFree86/include/X11 \
8795 \
10f2d63a
VZ
8796 /usr/include/gtk \
8797 /usr/local/include/gtk \
8798 /usr/include/glib \
8799 /usr/local/include/glib \
8800 \
8801 /usr/include/qt \
8802 /usr/local/include/qt \
8803 \
8804 /usr/include/windows \
8805 /usr/include/wine \
8806 /usr/local/include/wine \
8807 \
8808 /usr/unsupported/include \
8809 /usr/athena/include \
8810 /usr/local/x11r5/include \
8811 /usr/lpp/Xamples/include \
8812 \
10f2d63a 8813 /usr/openwin/share/include \
928b5c08
VZ
8814 \
8815 /usr/include"
10f2d63a
VZ
8816
8817SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` "
8818
698dcdb6
VZ
8819
8820cat > confcache <<\EOF
10f2d63a
VZ
8821# This file is a shell script that caches the results of configure
8822# tests run on this system so they can be shared between configure
698dcdb6
VZ
8823# scripts and configure runs. It is not useful on other systems.
8824# If it contains results you don't want to keep, you may remove or edit it.
10f2d63a 8825#
698dcdb6
VZ
8826# By default, configure uses ./config.cache as the cache file,
8827# creating it if it does not exist already. You can give configure
8828# the --cache-file=FILE option to use a different cache file; that is
8829# what configure does when it calls configure scripts in
8830# subdirectories, so they share the cache.
8831# Giving --cache-file=/dev/null disables caching, for debugging configure.
8832# config.status only pays attention to the cache file if you give it the
8833# --recheck option to rerun configure.
10f2d63a 8834#
698dcdb6 8835EOF
10f2d63a
VZ
8836# The following way of writing the cache mishandles newlines in values,
8837# but we know of no workaround that is simple, portable, and efficient.
8838# So, don't put newlines in cache variables' values.
8839# Ultrix sh set writes to stderr and can't be redirected directly,
8840# and sets the high bit in the cache file unless we assign to the vars.
698dcdb6
VZ
8841(set) 2>&1 |
8842 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8843 *ac_space=\ *)
8844 # `set' does not quote correctly, so add quotes (double-quote substitution
8845 # turns \\\\ into \\, and sed turns \\ into \).
8846 sed -n \
8847 -e "s/'/'\\\\''/g" \
8848 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
8849 ;;
8850 *)
8851 # `set' quotes correctly as required by POSIX, so do not add quotes.
8852 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8853 ;;
8854 esac >> confcache
8855if cmp -s $cache_file confcache; then
8856 :
8857else
10f2d63a 8858 if test -w $cache_file; then
698dcdb6
VZ
8859 echo "updating cache $cache_file"
8860 cat confcache > $cache_file
10f2d63a
VZ
8861 else
8862 echo "not updating unwritable cache $cache_file"
8863 fi
8864fi
8865rm -f confcache
8866
698dcdb6
VZ
8867
8868
18dbb1f6
VZ
8869REGEX_INCLUDE=
8870if test "$wxUSE_REGEX" != "no"; then
8871 ac_safe=`echo "regex.h" | sed 'y%./+-%__p_%'`
8872echo $ac_n "checking for regex.h""... $ac_c" 1>&6
683dccda 8873echo "configure:8874: checking for regex.h" >&5
18dbb1f6
VZ
8874if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8875 echo $ac_n "(cached) $ac_c" 1>&6
8876else
8877 cat > conftest.$ac_ext <<EOF
683dccda 8878#line 8879 "configure"
18dbb1f6
VZ
8879#include "confdefs.h"
8880#include <regex.h>
8881EOF
8882ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
683dccda 8883{ (eval echo configure:8884: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
18dbb1f6
VZ
8884ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8885if test -z "$ac_err"; then
8886 rm -rf conftest*
8887 eval "ac_cv_header_$ac_safe=yes"
8888else
8889 echo "$ac_err" >&5
8890 echo "configure: failed program was:" >&5
8891 cat conftest.$ac_ext >&5
8892 rm -rf conftest*
8893 eval "ac_cv_header_$ac_safe=no"
8894fi
8895rm -f conftest*
8896fi
8897if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8898 echo "$ac_t""yes" 1>&6
8899 for ac_func in regcomp
8900do
8901echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
683dccda 8902echo "configure:8903: checking for $ac_func" >&5
18dbb1f6
VZ
8903if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8904 echo $ac_n "(cached) $ac_c" 1>&6
8905else
8906 cat > conftest.$ac_ext <<EOF
683dccda 8907#line 8908 "configure"
18dbb1f6
VZ
8908#include "confdefs.h"
8909/* System header to define __stub macros and hopefully few prototypes,
8910 which can conflict with char $ac_func(); below. */
8911#include <assert.h>
8912/* Override any gcc2 internal prototype to avoid an error. */
8913/* We use char because int might match the return type of a gcc2
8914 builtin and then its argument prototype would still apply. */
8915char $ac_func();
8916
8917int main() {
8918
8919/* The GNU C library defines this for functions which it implements
8920 to always fail with ENOSYS. Some functions are actually named
8921 something starting with __ and the normal name is an alias. */
8922#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8923choke me
8924#else
8925$ac_func();
8926#endif
8927
8928; return 0; }
8929EOF
683dccda 8930if { (eval echo configure:8931: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18dbb1f6
VZ
8931 rm -rf conftest*
8932 eval "ac_cv_func_$ac_func=yes"
8933else
8934 echo "configure: failed program was:" >&5
8935 cat conftest.$ac_ext >&5
8936 rm -rf conftest*
8937 eval "ac_cv_func_$ac_func=no"
8938fi
8939rm -f conftest*
8940fi
8941
8942if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8943 echo "$ac_t""yes" 1>&6
8944 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8945 cat >> confdefs.h <<EOF
8946#define $ac_tr_func 1
8947EOF
8948
8949else
8950 echo "$ac_t""no" 1>&6
8951fi
8952done
8953
8954else
8955 echo "$ac_t""no" 1>&6
8956fi
8957
8958
8959 if test "x$ac_cv_func_regcomp" != "xyes"; then
8960 if test "$wxUSE_REGEX" = "sys"; then
8961 { echo "configure: error: system regex library not found! Use --with-regex to use the built-in regex library." 1>&2; exit 1; }
8962 fi
8963
8964 REGEX_INCLUDE="-I\${top_srcdir}/src/regex"
8965 fi
8966
8967 cat >> confdefs.h <<\EOF
8968#define wxUSE_REGEX 1
8969EOF
8970
8971fi
8972
8973
dad6c0ea
VZ
8974AFMINSTALL=
8975
3a922bb4
RL
8976TOOLKIT=
8977TOOLKIT_INCLUDE=
8978WIDGET_SET=
10f2d63a 8979
3a922bb4
RL
8980if test "$USE_WIN32" = 1 ; then
8981 for ac_hdr in w32api.h
8982do
8983ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8984echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
683dccda 8985echo "configure:8986: checking for $ac_hdr" >&5
3a922bb4
RL
8986if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8987 echo $ac_n "(cached) $ac_c" 1>&6
8988else
8989 cat > conftest.$ac_ext <<EOF
683dccda 8990#line 8991 "configure"
3a922bb4
RL
8991#include "confdefs.h"
8992#include <$ac_hdr>
8993EOF
8994ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
683dccda 8995{ (eval echo configure:8996: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3a922bb4
RL
8996ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8997if test -z "$ac_err"; then
8998 rm -rf conftest*
8999 eval "ac_cv_header_$ac_safe=yes"
9000else
9001 echo "$ac_err" >&5
9002 echo "configure: failed program was:" >&5
9003 cat conftest.$ac_ext >&5
9004 rm -rf conftest*
9005 eval "ac_cv_header_$ac_safe=no"
9006fi
9007rm -f conftest*
9008fi
9009if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9010 echo "$ac_t""yes" 1>&6
9011 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9012 cat >> confdefs.h <<EOF
9013#define $ac_tr_hdr 1
9014EOF
9015
9016else
9017 echo "$ac_t""no" 1>&6
9018fi
9019done
10f2d63a 9020
3a922bb4 9021 ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'`
29fd3c0c 9022echo $ac_n "checking for windows.h""... $ac_c" 1>&6
683dccda 9023echo "configure:9024: checking for windows.h" >&5
d4158b5d
VS
9024if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9025 echo $ac_n "(cached) $ac_c" 1>&6
9026else
9027 cat > conftest.$ac_ext <<EOF
683dccda 9028#line 9029 "configure"
d4158b5d 9029#include "confdefs.h"
29fd3c0c 9030#include <windows.h>
d4158b5d
VS
9031EOF
9032ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
683dccda 9033{ (eval echo configure:9034: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d4158b5d
VS
9034ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9035if test -z "$ac_err"; then
9036 rm -rf conftest*
9037 eval "ac_cv_header_$ac_safe=yes"
9038else
9039 echo "$ac_err" >&5
9040 echo "configure: failed program was:" >&5
9041 cat conftest.$ac_ext >&5
9042 rm -rf conftest*
9043 eval "ac_cv_header_$ac_safe=no"
9044fi
9045rm -f conftest*
9046fi
9047if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9048 echo "$ac_t""yes" 1>&6
29fd3c0c 9049 :
d4158b5d
VS
9050else
9051 echo "$ac_t""no" 1>&6
d4158b5d 9052
3a922bb4
RL
9053 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
9054
29fd3c0c 9055fi
10f2d63a 9056
3f0f0161 9057
3a922bb4 9058 echo $ac_n "checking if w32api has good enough MSIE support""... $ac_c" 1>&6
683dccda 9059echo "configure:9060: checking if w32api has good enough MSIE support" >&5
3a922bb4
RL
9060if eval "test \"`echo '$''{'wx_cv_w32api_win_ie'+set}'`\" = set"; then
9061 echo $ac_n "(cached) $ac_c" 1>&6
9062else
9063
9064 cat > conftest.$ac_ext <<EOF
683dccda 9065#line 9066 "configure"
3a922bb4
RL
9066#include "confdefs.h"
9067#include <w32api.h>
9068int main() {
3f0f0161 9069
3a922bb4
RL
9070 #define wxCHECK_W32API_VERSION( major, minor ) \
9071 ( defined( __W32API_MAJOR_VERSION ) && defined( __W32API_MINOR_VERSION ) \
9072 && ( ( __W32API_MAJOR_VERSION > (major) ) \
9073 || ( __W32API_MAJOR_VERSION == (major) && __W32API_MINOR_VERSION >= (minor))))
f6bcfd97 9074
3a922bb4
RL
9075 #if !wxCHECK_W32API_VERSION(1,1)
9076 #error You need w32api 1.1 or newer
9077 #endif
9078
9079; return 0; }
9080EOF
683dccda 9081if { (eval echo configure:9082: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3a922bb4
RL
9082 rm -rf conftest*
9083
9084 wx_cv_w32api_win_ie=yes
9085 CPPFLAGS="$CPPFLAGS -D_WIN_IE=0x400"
9086
9087else
9088 echo "configure: failed program was:" >&5
9089 cat conftest.$ac_ext >&5
9090 rm -rf conftest*
9091
9092 wx_cv_w32api_win_ie=no
9093
9094fi
9095rm -f conftest*
9096
9097fi
10f2d63a 9098
3a922bb4 9099echo "$ac_t""$wx_cv_w32api_win_ie" 1>&6
32832908 9100
3a922bb4
RL
9101 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -ladvapi32 -lwsock32"
9102
7b7a7637
RL
9103 if test "$wxUSE_CYGWIN" = 1; then
9104 LIBS="$LIBS -lkernel32 -luser32 -lgdi32 -lcomdlg32"
9105 fi
9106
3a922bb4
RL
9107 if test "$wxUSE_ODBC" = "yes" ; then
9108 LIBS="$LIBS -lodbc32 -lole32 -loleaut32"
9109 fi
9110
9111 if test "$wxUSE_MINGW" = 1; then
9112 LDFLAGS="$LDFLAGS -mwindows"
9113 fi
9114
9115 RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
9116 RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
9117fi
9118
9119if test "$wxUSE_GUI" = "yes"; then
9120 USE_GUI=1
32832908 9121
3a922bb4
RL
9122 GUI_TK_LIBRARY=
9123
9124 WXGTK12=
9125 WXGTK127=
9126 WXGTK20=
32832908 9127
3a922bb4
RL
9128 if test "$wxUSE_CYGWIN" = 1 || test "$wxUSE_MINGW" = 1 ; then
9129 TOOLKIT=MSW
9130 GUIDIST=MSW_DIST
1e6feb95 9131 fi
10f2d63a 9132
1e6feb95 9133 if test "$wxUSE_GTK" = 1; then
8168de4c 9134 echo $ac_n "checking for GTK+ version""... $ac_c" 1>&6
683dccda 9135echo "configure:9136: checking for GTK+ version" >&5
8168de4c
VZ
9136
9137 gtk_version_cached=1
9138 if eval "test \"`echo '$''{'wx_cv_lib_gtk'+set}'`\" = set"; then
9139 echo $ac_n "(cached) $ac_c" 1>&6
9140else
9141
9142 gtk_version_cached=0
9143 echo "$ac_t""""" 1>&6
9144
9145 wx_cv_lib_gtk=
9146 if test "x$wxUSE_GTK2" = "xyes"; then
9147 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
6f72b082
OK
9148if test "${with_gtk_prefix+set}" = set; then
9149 withval="$with_gtk_prefix"
9150 gtk_config_prefix="$withval"
9151else
9152 gtk_config_prefix=""
698dcdb6 9153fi
6f72b082
OK
9154
9155# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
9156if test "${with_gtk_exec_prefix+set}" = set; then
9157 withval="$with_gtk_exec_prefix"
9158 gtk_config_exec_prefix="$withval"
9159else
9160 gtk_config_exec_prefix=""
698dcdb6
VZ
9161fi
9162
6f72b082
OK
9163# Check whether --enable-gtktest or --disable-gtktest was given.
9164if test "${enable_gtktest+set}" = set; then
9165 enableval="$enable_gtktest"
698dcdb6 9166 :
6f72b082
OK
9167else
9168 enable_gtktest=yes
698dcdb6
VZ
9169fi
9170
6f72b082 9171
8168de4c 9172 for module in .
6f72b082
OK
9173 do
9174 case "$module" in
8168de4c 9175 gthread)
6f72b082
OK
9176 gtk_config_args="$gtk_config_args gthread"
9177 ;;
9178 esac
9179 done
9180
9181 if test x$gtk_config_exec_prefix != x ; then
9182 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
9183 if test x${GTK_CONFIG_2_0+set} != xset ; then
9184 GTK_CONFIG_2_0=$gtk_config_exec_prefix/bin/gtk-config-2.0
9185 fi
9186 fi
9187 if test x$gtk_config_prefix != x ; then
9188 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
9189 if test x${GTK_CONFIG_2_0+set} != xset ; then
9190 GTK_CONFIG_2_0=$gtk_config_prefix/bin/gtk-config-2.0
9191 fi
9192 fi
9193
9194 # Extract the first word of "gtk-config-2.0", so it can be a program name with args.
9195set dummy gtk-config-2.0; ac_word=$2
698dcdb6 9196echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
683dccda 9197echo "configure:9198: checking for $ac_word" >&5
698dcdb6
VZ
9198if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG_2_0'+set}'`\" = set"; then
9199 echo $ac_n "(cached) $ac_c" 1>&6
6f72b082 9200else
698dcdb6
VZ
9201 case "$GTK_CONFIG_2_0" in
9202 /*)
6f72b082
OK
9203 ac_cv_path_GTK_CONFIG_2_0="$GTK_CONFIG_2_0" # Let the user override the test with a path.
9204 ;;
698dcdb6
VZ
9205 ?:/*)
9206 ac_cv_path_GTK_CONFIG_2_0="$GTK_CONFIG_2_0" # Let the user override the test with a dos path.
9207 ;;
6f72b082 9208 *)
698dcdb6
VZ
9209 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9210 ac_dummy="$PATH"
9211 for ac_dir in $ac_dummy; do
9212 test -z "$ac_dir" && ac_dir=.
9213 if test -f $ac_dir/$ac_word; then
9214 ac_cv_path_GTK_CONFIG_2_0="$ac_dir/$ac_word"
9215 break
9216 fi
9217 done
9218 IFS="$ac_save_ifs"
6f72b082
OK
9219 test -z "$ac_cv_path_GTK_CONFIG_2_0" && ac_cv_path_GTK_CONFIG_2_0="no"
9220 ;;
9221esac
9222fi
698dcdb6 9223GTK_CONFIG_2_0="$ac_cv_path_GTK_CONFIG_2_0"
6f72b082 9224if test -n "$GTK_CONFIG_2_0"; then
698dcdb6 9225 echo "$ac_t""$GTK_CONFIG_2_0" 1>&6
6f72b082 9226else
698dcdb6 9227 echo "$ac_t""no" 1>&6
6f72b082
OK
9228fi
9229
9230 min_gtk_version=1.3.1
698dcdb6 9231 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
683dccda 9232echo "configure:9233: checking for GTK - version >= $min_gtk_version" >&5
6f72b082
OK
9233 no_gtk=""
9234 if test "$GTK_CONFIG_2_0" = "no" ; then
9235 no_gtk=yes
9236 else
9237 GTK_CFLAGS=`$GTK_CONFIG_2_0 $gtk_config_args --cflags`
9238 GTK_LIBS=`$GTK_CONFIG_2_0 $gtk_config_args --libs`
9239 gtk_config_major_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \
9240 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
9241 gtk_config_minor_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \
9242 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
9243 gtk_config_micro_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \
9244 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
9245 if test "x$enable_gtktest" = "xyes" ; then
9246 ac_save_CFLAGS="$CFLAGS"
9247 ac_save_LIBS="$LIBS"
9248 CFLAGS="$CFLAGS $GTK_CFLAGS"
9249 LIBS="$GTK_LIBS $LIBS"
9250 rm -f conf.gtktest
9251 if test "$cross_compiling" = yes; then
9252 echo $ac_n "cross compiling; assumed OK... $ac_c"
9253else
698dcdb6 9254 cat > conftest.$ac_ext <<EOF
683dccda 9255#line 9256 "configure"
6f72b082
OK
9256#include "confdefs.h"
9257
9258#include <gtk/gtk.h>
9259#include <stdio.h>
9260#include <stdlib.h>
9261
8168de4c 9262int
6f72b082
OK
9263main ()
9264{
9265 int major, minor, micro;
9266 char *tmp_version;
9267
9268 system ("touch conf.gtktest");
9269
9270 /* HP/UX 9 (%@#!) writes to sscanf strings */
9271 tmp_version = g_strdup("$min_gtk_version");
9272 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
9273 printf("%s, bad version string\n", "$min_gtk_version");
9274 exit(1);
9275 }
9276
9277 if ((gtk_major_version != $gtk_config_major_version) ||
9278 (gtk_minor_version != $gtk_config_minor_version) ||
9279 (gtk_micro_version != $gtk_config_micro_version))
9280 {
8168de4c 9281 printf("\n*** 'gtk-config-2.0 --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
6f72b082
OK
9282 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
9283 gtk_major_version, gtk_minor_version, gtk_micro_version);
9284 printf ("*** was found! If gtk-config-2.0 was correct, then it is best\n");
9285 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
9286 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
9287 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
9288 printf("*** required on your system.\n");
9289 printf("*** If gtk-config-2.0 was wrong, set the environment variable GTK_CONFIG_2_0\n");
9290 printf("*** to point to the correct copy of gtk-config-2.0, and remove the file config.cache\n");
9291 printf("*** before re-running configure\n");
8168de4c 9292 }
6f72b082
OK
9293#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
9294 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
8168de4c 9295 (gtk_minor_version != GTK_MINOR_VERSION) ||
6f72b082
OK
9296 (gtk_micro_version != GTK_MICRO_VERSION))
9297 {
9298 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
8168de4c 9299 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
6f72b082 9300 printf("*** library (version %d.%d.%d)\n",
8168de4c 9301 gtk_major_version, gtk_minor_version, gtk_micro_version);
6f72b082
OK
9302 }
9303#endif /* defined (GTK_MAJOR_VERSION) ... */
9304 else
9305 {
9306 if ((gtk_major_version > major) ||
9307 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
9308 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
9309 {
9310 return 0;
9311 }
9312 else
9313 {
9314 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
9315 gtk_major_version, gtk_minor_version, gtk_micro_version);
9316 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
8168de4c 9317 major, minor, micro);
6f72b082
OK
9318 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
9319 printf("***\n");
9320 printf("*** If you have already installed a sufficiently new version, this error\n");
9321 printf("*** probably means that the wrong copy of the gtk-config-2.0 shell script is\n");
9322 printf("*** being found. The easiest way to fix this is to remove the old version\n");
9323 printf("*** of GTK+, but you can also set the GTK_CONFIG_2_0 environment to point to the\n");
9324 printf("*** correct copy of gtk-config-2.0. (In this case, you will have to\n");
9325 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
9326 printf("*** so that the correct libraries are found at run-time))\n");
9327 }
9328 }
9329 return 1;
9330}
9331
698dcdb6 9332EOF
683dccda 9333if { (eval echo configure:9334: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6 9334then
6f72b082
OK
9335 :
9336else
698dcdb6
VZ
9337 echo "configure: failed program was:" >&5
9338 cat conftest.$ac_ext >&5
9339 rm -fr conftest*
9340 no_gtk=yes
6f72b082 9341fi
698dcdb6 9342rm -fr conftest*
6f72b082 9343fi
698dcdb6 9344
6f72b082
OK
9345 CFLAGS="$ac_save_CFLAGS"
9346 LIBS="$ac_save_LIBS"
9347 fi
9348 fi
9349 if test "x$no_gtk" = x ; then
698dcdb6 9350 echo "$ac_t""yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" 1>&6
8168de4c 9351 wx_cv_lib_gtk=2.0
6f72b082 9352 else
698dcdb6 9353 echo "$ac_t""no" 1>&6
6f72b082
OK
9354 if test "$GTK_CONFIG_2_0" = "no" ; then
9355 echo "*** The gtk-config-2.0 script installed by GTK could not be found"
9356 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
9357 echo "*** your path, or set the GTK_CONFIG_2_0 environment variable to the"
9358 echo "*** full path to gtk-config-2.0."
9359 else
9360 if test -f conf.gtktest ; then
9361 :
9362 else
9363 echo "*** Could not run GTK test program, checking why..."
9364 CFLAGS="$CFLAGS $GTK_CFLAGS"
9365 LIBS="$LIBS $GTK_LIBS"
698dcdb6 9366 cat > conftest.$ac_ext <<EOF
683dccda 9367#line 9368 "configure"
6f72b082
OK
9368#include "confdefs.h"
9369
9370#include <gtk/gtk.h>
9371#include <stdio.h>
9372
698dcdb6
VZ
9373int main() {
9374 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
9375; return 0; }
9376EOF
683dccda 9377if { (eval echo configure:9378: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 9378 rm -rf conftest*
6f72b082
OK
9379 echo "*** The test program compiled, but did not run. This usually means"
9380 echo "*** that the run-time linker is not finding GTK or finding the wrong"
9381 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
9382 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
9383 echo "*** to the installed location Also, make sure you have run ldconfig if that"
9384 echo "*** is required on your system"
8168de4c 9385 echo "***"
6f72b082
OK
9386 echo "*** If you have an old version installed, it is best to remove it, although"
9387 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
9388 echo "***"
9389 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
9390 echo "*** came with the system with the command"
9391 echo "***"
698dcdb6 9392 echo "*** rpm --erase --nodeps gtk gtk-devel"
6f72b082 9393else
698dcdb6
VZ
9394 echo "configure: failed program was:" >&5
9395 cat conftest.$ac_ext >&5
9396 rm -rf conftest*
9397 echo "*** The test program failed to compile or link. See the file config.log for the"
6f72b082
OK
9398 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
9399 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
698dcdb6 9400 echo "*** may want to edit the gtk-config-2.0 script: $GTK_CONFIG_2_0"
6f72b082 9401fi
698dcdb6 9402rm -f conftest*
6f72b082
OK
9403 CFLAGS="$ac_save_CFLAGS"
9404 LIBS="$ac_save_LIBS"
9405 fi
9406 fi
9407 GTK_CFLAGS=""
9408 GTK_LIBS=""
8168de4c
VZ
9409 gthread
9410 fi
9411
9412
9413 rm -f conf.gtktest
9414
9415 fi
9416
9417 if test -z "$wx_cv_lib_gtk"; then
9418
10f2d63a
VZ
9419 if test x$gtk_config_exec_prefix != x ; then
9420 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
9421 if test x${GTK_CONFIG+set} != xset ; then
9422 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
9423 fi
9424 fi
9425 if test x$gtk_config_prefix != x ; then
9426 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
9427 if test x${GTK_CONFIG+set} != xset ; then
9428 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
9429 fi
9430 fi
9431
9432 # Extract the first word of "gtk-config", so it can be a program name with args.
9433set dummy gtk-config; ac_word=$2
698dcdb6 9434echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
683dccda 9435echo "configure:9436: checking for $ac_word" >&5
698dcdb6
VZ
9436if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
9437 echo $ac_n "(cached) $ac_c" 1>&6
f6bcfd97 9438else
698dcdb6
VZ
9439 case "$GTK_CONFIG" in
9440 /*)
f6bcfd97
BP
9441 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
9442 ;;
698dcdb6
VZ
9443 ?:/*)
9444 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
9445 ;;
f6bcfd97 9446 *)
698dcdb6
VZ
9447 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9448 ac_dummy="$PATH"
9449 for ac_dir in $ac_dummy; do
9450 test -z "$ac_dir" && ac_dir=.
9451 if test -f $ac_dir/$ac_word; then
9452 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
9453 break
9454 fi
9455 done
9456 IFS="$ac_save_ifs"
f6bcfd97
BP
9457 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
9458 ;;
9459esac
9460fi
698dcdb6 9461GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
f6bcfd97 9462if test -n "$GTK_CONFIG"; then
698dcdb6 9463 echo "$ac_t""$GTK_CONFIG" 1>&6
f6bcfd97 9464else
698dcdb6 9465 echo "$ac_t""no" 1>&6
f6bcfd97
BP
9466fi
9467
9468 min_gtk_version=1.2.7
698dcdb6 9469 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
683dccda 9470echo "configure:9471: checking for GTK - version >= $min_gtk_version" >&5
f6bcfd97
BP
9471 no_gtk=""
9472 if test "$GTK_CONFIG" != "no" ; then
9473 GTK_CFLAGS=`$GTK_CONFIG --cflags`
9474 GTK_LIBS=`$GTK_CONFIG --libs gthread`
9475 ac_save_CFLAGS="$CFLAGS"
9476 ac_save_LIBS="$LIBS"
9477 CFLAGS="$CFLAGS $GTK_CFLAGS"
9478 LIBS="$LIBS $GTK_LIBS"
9479 if test "$cross_compiling" = yes; then
9480 echo $ac_n "cross compiling; assumed OK... $ac_c"
9481else
698dcdb6 9482 cat > conftest.$ac_ext <<EOF
683dccda 9483#line 9484 "configure"
f6bcfd97
BP
9484#include "confdefs.h"
9485
9486#include <gtk/gtk.h>
9487#include <gtk/gtkfeatures.h>
9488#include <stdio.h>
9489#include <stdlib.h>
9490
9491int
9492main ()
9493{
9494 int major, minor, micro;
9495
9496 if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, &micro) != 3) {
9497 printf("%s, bad version string\n", "$min_gtk_version");
9498 exit(1);
9499 }
9500
9501 if ((GTK_MAJOR_VERSION != gtk_major_version) ||
9502 (GTK_MINOR_VERSION != gtk_minor_version) ||
9503 (GTK_MICRO_VERSION != gtk_micro_version)) {
9504 printf("Headers vs. library version mismatch!\n");
9505 exit(1);
9506 }
9507
9508 if (gtk_minor_version == 1) return FALSE;
9509
9510 return !((gtk_major_version > major) ||
9511 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
9512 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)));
9513}
9514
698dcdb6 9515EOF
683dccda 9516if { (eval echo configure:9517: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6 9517then
f6bcfd97
BP
9518 :
9519else
698dcdb6
VZ
9520 echo "configure: failed program was:" >&5
9521 cat conftest.$ac_ext >&5
9522 rm -fr conftest*
9523 no_gtk=yes
f6bcfd97 9524fi
698dcdb6 9525rm -fr conftest*
f6bcfd97 9526fi
698dcdb6 9527
f6bcfd97
BP
9528 CFLAGS="$ac_save_CFLAGS"
9529 LIBS="$ac_save_LIBS"
9530 else
9531 no_gtk=yes
9532 fi
9533 if test "x$no_gtk" = x ; then
698dcdb6 9534 echo "$ac_t""yes" 1>&6
8168de4c 9535 wx_cv_lib_gtk=1.2.7
f6bcfd97 9536 else
698dcdb6 9537 echo "$ac_t""no" 1>&6
f6bcfd97
BP
9538 GTK_CFLAGS=""
9539 GTK_LIBS=""
9540 :
9541 fi
698dcdb6
VZ
9542
9543
f6bcfd97 9544
8168de4c
VZ
9545 fi
9546
9547 if test -z "$wx_cv_lib_gtk"; then
9548
f6bcfd97
BP
9549 if test x$gtk_config_exec_prefix != x ; then
9550 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
9551 if test x${GTK_CONFIG+set} != xset ; then
9552 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
9553 fi
9554 fi
9555 if test x$gtk_config_prefix != x ; then
9556 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
9557 if test x${GTK_CONFIG+set} != xset ; then
9558 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
9559 fi
9560 fi
9561
9562 # Extract the first word of "gtk-config", so it can be a program name with args.
9563set dummy gtk-config; ac_word=$2
698dcdb6 9564echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
683dccda 9565echo "configure:9566: checking for $ac_word" >&5
698dcdb6
VZ
9566if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
9567 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 9568else
698dcdb6
VZ
9569 case "$GTK_CONFIG" in
9570 /*)
10f2d63a
VZ
9571 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
9572 ;;
698dcdb6
VZ
9573 ?:/*)
9574 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
9575 ;;
10f2d63a 9576 *)
698dcdb6
VZ
9577 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9578 ac_dummy="$PATH"
9579 for ac_dir in $ac_dummy; do
9580 test -z "$ac_dir" && ac_dir=.
9581 if test -f $ac_dir/$ac_word; then
9582 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
9583 break
9584 fi
9585 done
9586 IFS="$ac_save_ifs"
10f2d63a
VZ
9587 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
9588 ;;
9589esac
9590fi
698dcdb6 9591GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
10f2d63a 9592if test -n "$GTK_CONFIG"; then
698dcdb6 9593 echo "$ac_t""$GTK_CONFIG" 1>&6
10f2d63a 9594else
698dcdb6 9595 echo "$ac_t""no" 1>&6
10f2d63a
VZ
9596fi
9597
04165bec 9598 min_gtk_version=1.2.3
698dcdb6 9599 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
683dccda 9600echo "configure:9601: checking for GTK - version >= $min_gtk_version" >&5
10f2d63a
VZ
9601 no_gtk=""
9602 if test "$GTK_CONFIG" != "no" ; then
9603 GTK_CFLAGS=`$GTK_CONFIG --cflags`
2224580a 9604 GTK_LIBS=`$GTK_CONFIG --libs gthread`
10f2d63a
VZ
9605 ac_save_CFLAGS="$CFLAGS"
9606 ac_save_LIBS="$LIBS"
9607 CFLAGS="$CFLAGS $GTK_CFLAGS"
9608 LIBS="$LIBS $GTK_LIBS"
9609 if test "$cross_compiling" = yes; then
9610 echo $ac_n "cross compiling; assumed OK... $ac_c"
9611else
698dcdb6 9612 cat > conftest.$ac_ext <<EOF
683dccda 9613#line 9614 "configure"
10f2d63a
VZ
9614#include "confdefs.h"
9615
9616#include <gtk/gtk.h>
f49f2b0c 9617#include <gtk/gtkfeatures.h>
10f2d63a 9618#include <stdio.h>
32832908 9619#include <stdlib.h>
10f2d63a
VZ
9620
9621int
9622main ()
9623{
9624 int major, minor, micro;
9625
9626 if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, &micro) != 3) {
9627 printf("%s, bad version string\n", "$min_gtk_version");
9628 exit(1);
9629 }
9630
f49f2b0c
RR
9631 if ((GTK_MAJOR_VERSION != gtk_major_version) ||
9632 (GTK_MINOR_VERSION != gtk_minor_version) ||
9633 (GTK_MICRO_VERSION != gtk_micro_version)) {
9634 printf("Headers vs. library version mismatch!\n");
9635 exit(1);
9636 }
9637
10f2d63a
VZ
9638 if (gtk_minor_version == 1) return FALSE;
9639
9640 return !((gtk_major_version > major) ||
9641 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
9642 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)));
9643}
9644
698dcdb6 9645EOF
683dccda 9646if { (eval echo configure:9647: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6 9647then
10f2d63a
VZ
9648 :
9649else
698dcdb6
VZ
9650 echo "configure: failed program was:" >&5
9651 cat conftest.$ac_ext >&5
9652 rm -fr conftest*
9653 no_gtk=yes
10f2d63a 9654fi
698dcdb6 9655rm -fr conftest*
10f2d63a 9656fi
698dcdb6 9657
10f2d63a
VZ
9658 CFLAGS="$ac_save_CFLAGS"
9659 LIBS="$ac_save_LIBS"
9660 else
9661 no_gtk=yes
9662 fi
9663 if test "x$no_gtk" = x ; then
698dcdb6 9664 echo "$ac_t""yes" 1>&6
8168de4c 9665 wx_cv_lib_gtk=1.2.3
10f2d63a 9666 else
698dcdb6 9667 echo "$ac_t""no" 1>&6
10f2d63a
VZ
9668 GTK_CFLAGS=""
9669 GTK_LIBS=""
7e99ad86 9670 :
10f2d63a 9671 fi
698dcdb6
VZ
9672
9673
10f2d63a 9674
8168de4c
VZ
9675 fi
9676
9677 if test -z "$wx_cv_lib_gtk"; then
9678 wx_cv_lib_gtk=none
138be253
VZ
9679 else
9680 wx_cv_cflags_gtk=$GTK_CFLAGS
9681 wx_cv_libs_gtk=$GTK_LIBS
8168de4c
VZ
9682 fi
9683
1e6feb95 9684
8168de4c 9685fi
703e0a69 9686
698dcdb6 9687
8168de4c
VZ
9688 if test "$gtk_version_cached" = 1; then
9689 echo "$ac_t""$wx_cv_lib_gtk" 1>&6
1e6feb95 9690 fi
698dcdb6 9691
8168de4c
VZ
9692 case "$wx_cv_lib_gtk" in
9693 2.0) WXGTK20=1
9694 ;;
9695 1.2.7) WXGTK127=1
d1a8d972 9696 WXGTK12=1
8168de4c
VZ
9697 ;;
9698 1.2.3) WXGTK12=1
9699 ;;
9700 *) { echo "configure: error:
9701Please check that gtk-config is in path, the directory
9702where GTK+ libraries are installed (returned by
9703'gtk-config --libs' command) is in LD_LIBRARY_PATH or
9704equivalent variable and GTK+ is version 1.2.3 or above.
9705 " 1>&2; exit 1; }
9706 ;;
9707 esac
2224580a 9708
138be253 9709 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
11dfaa5f 9710 GUI_TK_LIBRARY="$wx_cv_libs_gtk"
698dcdb6 9711
1e6feb95
VZ
9712 AFMINSTALL=afminstall
9713 TOOLKIT=GTK
9714 GUIDIST=GTK_DIST
7ec2881a 9715
1e6feb95 9716 echo $ac_n "checking for gdk_im_open in -lgdk""... $ac_c" 1>&6
683dccda 9717echo "configure:9718: checking for gdk_im_open in -lgdk" >&5
698dcdb6
VZ
9718ac_lib_var=`echo gdk'_'gdk_im_open | sed 'y%./+-%__p_%'`
9719if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9720 echo $ac_n "(cached) $ac_c" 1>&6
7ec2881a 9721else
698dcdb6 9722 ac_save_LIBS="$LIBS"
7ec2881a 9723LIBS="-lgdk $LIBS"
698dcdb6 9724cat > conftest.$ac_ext <<EOF
683dccda 9725#line 9726 "configure"
7ec2881a
RR
9726#include "confdefs.h"
9727/* Override any gcc2 internal prototype to avoid an error. */
9728/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
9729 builtin and then its argument prototype would still apply. */
9730char gdk_im_open();
9731
9732int main() {
9733gdk_im_open()
9734; return 0; }
9735EOF
683dccda 9736if { (eval echo configure:9737: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
9737 rm -rf conftest*
9738 eval "ac_cv_lib_$ac_lib_var=yes"
9739else
9740 echo "configure: failed program was:" >&5
9741 cat conftest.$ac_ext >&5
9742 rm -rf conftest*
9743 eval "ac_cv_lib_$ac_lib_var=no"
9744fi
9745rm -f conftest*
9746LIBS="$ac_save_LIBS"
9747
9748fi
9749if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9750 echo "$ac_t""yes" 1>&6
9751 cat >> confdefs.h <<\EOF
7ec2881a
RR
9752#define HAVE_XIM 1
9753EOF
9754
698dcdb6
VZ
9755else
9756 echo "$ac_t""no" 1>&6
7ec2881a
RR
9757fi
9758
1e6feb95 9759 fi
10f2d63a 9760
1e6feb95
VZ
9761 if test "$wxUSE_MGL" = 1; then
9762
9763 echo $ac_n "checking for SciTech MGL library""... $ac_c" 1>&6
683dccda 9764echo "configure:9765: checking for SciTech MGL library" >&5
1e6feb95
VZ
9765 if test "x$MGL_ROOT" = x ; then
9766 echo "$ac_t""not found" 1>&6
9767 { echo "configure: error: Cannot find MGL library. Make sure MGL_ROOT is set." 1>&2; exit 1; }
9768 else
9769 echo "$ac_t""$MGL_ROOT" 1>&6
9770 fi
9771
3a922bb4
RL
9772 mgl_os=linux/gcc/glibc
9773 mgl_lib_type=""
1e6feb95
VZ
9774
9775 if test "$wxUSE_DEBUG_FLAG" = yes ; then
3a922bb4
RL
9776 if test -f $MGL_ROOT/lib/debug/$mgl_os/libmgl.a ; then
9777 mgl_lib_type=debug
1e6feb95
VZ
9778 fi
9779 fi
3a922bb4
RL
9780 if test "x$mgl_lib_type" = x ; then
9781 if test -f $MGL_ROOT/lib/release/$mgl_os/libmgl.a ; then
9782 mgl_lib_type=release
1e6feb95
VZ
9783 else
9784 { echo "configure: error: Cannot find MGL libraries, make sure they are compiled." 1>&2; exit 1; }
9785 fi
9786 fi
9787
9788 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
3a922bb4 9789 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
1e6feb95
VZ
9790
9791 AFMINSTALL=afminstall
9792 TOOLKIT=MGL
9793 GUIDIST=MGL_DIST
9794 fi
9795
9796 if test "$wxUSE_WINE" = 1; then
3a922bb4
RL
9797 ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'`
9798echo $ac_n "checking for windows.h""... $ac_c" 1>&6
683dccda 9799echo "configure:9800: checking for windows.h" >&5
3a922bb4
RL
9800if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9801 echo $ac_n "(cached) $ac_c" 1>&6
9802else
9803 cat > conftest.$ac_ext <<EOF
683dccda 9804#line 9805 "configure"
3a922bb4
RL
9805#include "confdefs.h"
9806#include <windows.h>
9807EOF
9808ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
683dccda 9809{ (eval echo configure:9810: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3a922bb4
RL
9810ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9811if test -z "$ac_err"; then
9812 rm -rf conftest*
9813 eval "ac_cv_header_$ac_safe=yes"
9814else
9815 echo "$ac_err" >&5
9816 echo "configure: failed program was:" >&5
9817 cat conftest.$ac_ext >&5
9818 rm -rf conftest*
9819 eval "ac_cv_header_$ac_safe=no"
9820fi
9821rm -f conftest*
9822fi
9823if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9824 echo "$ac_t""yes" 1>&6
9825 :
9826else
9827 echo "$ac_t""no" 1>&6
10f2d63a 9828
1e6feb95 9829 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
3a922bb4
RL
9830
9831fi
9832
10f2d63a 9833
3a922bb4 9834 xpm_link=""
1e6feb95 9835 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
683dccda 9836echo "configure:9837: checking for Xpm library" >&5
1e6feb95 9837
10f2d63a
VZ
9838ac_find_libraries=
9839for ac_dir in $SEARCH_LIB;
9840 do
f11bdd03 9841 for ac_extension in a so sl dylib; do
10f2d63a
VZ
9842 if test -f "$ac_dir/libXpm.$ac_extension"; then
9843 ac_find_libraries=$ac_dir
9844 break 2
9845 fi
9846 done
9847 done
9848
1e6feb95
VZ
9849 if test "$ac_find_libraries" != "" ; then
9850 GUI_TK_LIBRARY="-L$ac_find_libraries"
3a922bb4 9851 xpm_link="-lXpm"
1e6feb95 9852 cat >> confdefs.h <<\EOF
10f2d63a
VZ
9853#define wxHAVE_LIB_XPM 1
9854EOF
9855
1e6feb95
VZ
9856 echo "$ac_t""found at $ac_find_libraries" 1>&6
9857 else
9858 echo "$ac_t""no" 1>&6
9859 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
9860 fi
10f2d63a 9861
3a922bb4 9862 mesa_link=""
1e6feb95 9863 echo $ac_n "checking for Mesa library""... $ac_c" 1>&6
683dccda 9864echo "configure:9865: checking for Mesa library" >&5
1e6feb95 9865
10f2d63a
VZ
9866ac_find_libraries=
9867for ac_dir in $SEARCH_LIB;
9868 do
f11bdd03 9869 for ac_extension in a so sl dylib; do
10f2d63a
VZ
9870 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
9871 ac_find_libraries=$ac_dir
9872 break 2
9873 fi
9874 done
9875 done
9876
1e6feb95
VZ
9877 if test "$ac_find_libraries" != "" ; then
9878 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -L$ac_find_libraries"
3a922bb4 9879 mesa_link="-lMesaGL"
1e6feb95
VZ
9880 echo "$ac_t""found at $ac_find_libraries" 1>&6
9881 else
9882 { echo "configure: error: no" 1>&2; exit 1; }
9883 fi
10f2d63a 9884
3a922bb4 9885 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lwine $mesa_link $xpm_link -lXxf86dga -lXxf86vm -lSM -lICE -lXext -lXmu -lX11 -lncurses"
1e6feb95
VZ
9886 TOOLKIT=MSW
9887 GUIDIST=MSW_DIST
3a922bb4 9888 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXWINE__"
1e6feb95 9889 fi
698dcdb6 9890
1e6feb95
VZ
9891
9892 # If we find X, set shell vars x_includes and x_libraries to the
698dcdb6
VZ
9893# paths, otherwise set no_x=yes.
9894# Uses ac_ vars as temps to allow command line to override cache and checks.
9895# --without-x overrides everything else, but does not touch the cache.
9896echo $ac_n "checking for X""... $ac_c" 1>&6
683dccda 9897echo "configure:9898: checking for X" >&5
ab9b9eab
VZ
9898
9899# Check whether --with-x or --without-x was given.
9900if test "${with_x+set}" = set; then
9901 withval="$with_x"
698dcdb6
VZ
9902 :
9903fi
ba337fe7 9904
ab9b9eab
VZ
9905# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9906if test "x$with_x" = xno; then
9907 # The user explicitly disabled X.
9908 have_x=disabled
9909else
9910 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
9911 # Both variables are already set.
9912 have_x=yes
9913 else
698dcdb6
VZ
9914if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
9915 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab
VZ
9916else
9917 # One or both of the vars are not set, and there is no cached value.
698dcdb6
VZ
9918ac_x_includes=NO ac_x_libraries=NO
9919rm -fr conftestdir
9920if mkdir conftestdir; then
9921 cd conftestdir
ab9b9eab 9922 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
698dcdb6 9923 cat > Imakefile <<'EOF'
ab9b9eab
VZ
9924acfindx:
9925 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
9926EOF
9927 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
9928 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9929 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
9930 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
10f2d63a 9931 for ac_extension in a so sl; do
ab9b9eab 9932 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
698dcdb6 9933 test -f $ac_im_libdir/libX11.$ac_extension; then
ab9b9eab 9934 ac_im_usrlibdir=$ac_im_libdir; break
10f2d63a
VZ
9935 fi
9936 done
ab9b9eab
VZ
9937 # Screen out bogus values from the imake configuration. They are
9938 # bogus both because they are the default anyway, and because
9939 # using them would break gcc on systems where it needs fixed includes.
698dcdb6 9940 case "$ac_im_incroot" in
ab9b9eab 9941 /usr/include) ;;
698dcdb6 9942 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
ab9b9eab 9943 esac
698dcdb6 9944 case "$ac_im_usrlibdir" in
ab9b9eab 9945 /usr/lib | /lib) ;;
698dcdb6 9946 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
ab9b9eab 9947 esac
ba337fe7 9948 fi
ab9b9eab 9949 cd ..
698dcdb6 9950 rm -fr conftestdir
ab9b9eab 9951fi
10f2d63a 9952
698dcdb6
VZ
9953if test "$ac_x_includes" = NO; then
9954 # Guess where to find include files, by looking for this one X11 .h file.
9955 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
9956
ab9b9eab 9957 # First, try using that file with no special directory specified.
698dcdb6 9958cat > conftest.$ac_ext <<EOF
683dccda 9959#line 9960 "configure"
ab9b9eab 9960#include "confdefs.h"
698dcdb6
VZ
9961#include <$x_direct_test_include>
9962EOF
9963ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
683dccda 9964{ (eval echo configure:9965: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
9965ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9966if test -z "$ac_err"; then
9967 rm -rf conftest*
ab9b9eab
VZ
9968 # We can compile using X headers with no special include directory.
9969ac_x_includes=
9970else
698dcdb6
VZ
9971 echo "$ac_err" >&5
9972 echo "configure: failed program was:" >&5
ab9b9eab 9973 cat conftest.$ac_ext >&5
698dcdb6
VZ
9974 rm -rf conftest*
9975 # Look for the header file in a standard set of common directories.
9976# Check X11 before X11Rn because it is often a symlink to the current release.
9977 for ac_dir in \
9978 /usr/X11/include \
9979 /usr/X11R6/include \
9980 /usr/X11R5/include \
9981 /usr/X11R4/include \
9982 \
9983 /usr/include/X11 \
9984 /usr/include/X11R6 \
9985 /usr/include/X11R5 \
9986 /usr/include/X11R4 \
9987 \
9988 /usr/local/X11/include \
9989 /usr/local/X11R6/include \
9990 /usr/local/X11R5/include \
9991 /usr/local/X11R4/include \
9992 \
9993 /usr/local/include/X11 \
9994 /usr/local/include/X11R6 \
9995 /usr/local/include/X11R5 \
9996 /usr/local/include/X11R4 \
9997 \
9998 /usr/X386/include \
9999 /usr/x386/include \
10000 /usr/XFree86/include/X11 \
10001 \
10002 /usr/include \
10003 /usr/local/include \
10004 /usr/unsupported/include \
10005 /usr/athena/include \
10006 /usr/local/x11r5/include \
10007 /usr/lpp/Xamples/include \
10008 \
10009 /usr/openwin/include \
10010 /usr/openwin/share/include \
10011 ; \
10012 do
10013 if test -r "$ac_dir/$x_direct_test_include"; then
10014 ac_x_includes=$ac_dir
10015 break
10016 fi
10017 done
ab9b9eab 10018fi
698dcdb6
VZ
10019rm -f conftest*
10020fi # $ac_x_includes = NO
10f2d63a 10021
698dcdb6 10022if test "$ac_x_libraries" = NO; then
ab9b9eab 10023 # Check for the libraries.
698dcdb6
VZ
10024
10025 test -z "$x_direct_test_library" && x_direct_test_library=Xt
10026 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
10027
ab9b9eab
VZ
10028 # See if we find them without any special options.
10029 # Don't add to $LIBS permanently.
698dcdb6
VZ
10030 ac_save_LIBS="$LIBS"
10031 LIBS="-l$x_direct_test_library $LIBS"
10032cat > conftest.$ac_ext <<EOF
683dccda 10033#line 10034 "configure"
ab9b9eab 10034#include "confdefs.h"
698dcdb6
VZ
10035
10036int main() {
10037${x_direct_test_function}()
10038; return 0; }
10039EOF
683dccda 10040if { (eval echo configure:10041: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
10041 rm -rf conftest*
10042 LIBS="$ac_save_LIBS"
ab9b9eab
VZ
10043# We can link X programs with no special library path.
10044ac_x_libraries=
10045else
698dcdb6
VZ
10046 echo "configure: failed program was:" >&5
10047 cat conftest.$ac_ext >&5
10048 rm -rf conftest*
10049 LIBS="$ac_save_LIBS"
10050# First see if replacing the include by lib works.
10051# Check X11 before X11Rn because it is often a symlink to the current release.
10052for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
10053 /usr/X11/lib \
10054 /usr/X11R6/lib \
10055 /usr/X11R5/lib \
10056 /usr/X11R4/lib \
10057 \
10058 /usr/lib/X11 \
10059 /usr/lib/X11R6 \
10060 /usr/lib/X11R5 \
10061 /usr/lib/X11R4 \
10062 \
10063 /usr/local/X11/lib \
10064 /usr/local/X11R6/lib \
10065 /usr/local/X11R5/lib \
10066 /usr/local/X11R4/lib \
10067 \
10068 /usr/local/lib/X11 \
10069 /usr/local/lib/X11R6 \
10070 /usr/local/lib/X11R5 \
10071 /usr/local/lib/X11R4 \
10072 \
10073 /usr/X386/lib \
10074 /usr/x386/lib \
10075 /usr/XFree86/lib/X11 \
10076 \
10077 /usr/lib \
10078 /usr/local/lib \
10079 /usr/unsupported/lib \
10080 /usr/athena/lib \
10081 /usr/local/x11r5/lib \
10082 /usr/lpp/Xamples/lib \
10083 /lib/usr/lib/X11 \
10084 \
10085 /usr/openwin/lib \
10086 /usr/openwin/share/lib \
10087 ; \
ab9b9eab
VZ
10088do
10089 for ac_extension in a so sl; do
698dcdb6 10090 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
ab9b9eab
VZ
10091 ac_x_libraries=$ac_dir
10092 break 2
10f2d63a 10093 fi
10f2d63a 10094 done
ab9b9eab
VZ
10095done
10096fi
698dcdb6
VZ
10097rm -f conftest*
10098fi # $ac_x_libraries = NO
10f2d63a 10099
698dcdb6 10100if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
ab9b9eab
VZ
10101 # Didn't find X anywhere. Cache the known absence of X.
10102 ac_cv_have_x="have_x=no"
10103else
10104 # Record where we found X for the cache.
10105 ac_cv_have_x="have_x=yes \
10106 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
10107fi
10108fi
10f2d63a 10109 fi
ab9b9eab
VZ
10110 eval "$ac_cv_have_x"
10111fi # $with_x != no
10f2d63a 10112
ab9b9eab 10113if test "$have_x" != yes; then
698dcdb6 10114 echo "$ac_t""$have_x" 1>&6
ab9b9eab
VZ
10115 no_x=yes
10116else
10117 # If each of the values was on the command line, it overrides each guess.
10118 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
10119 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
10120 # Update the cache value to reflect the command line values.
10121 ac_cv_have_x="have_x=yes \
10122 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
698dcdb6 10123 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
ab9b9eab 10124fi
10f2d63a 10125
ab9b9eab
VZ
10126if test "$no_x" = yes; then
10127 # Not all programs may use this symbol, but it does not hurt to define it.
698dcdb6 10128 cat >> confdefs.h <<\EOF
ab9b9eab
VZ
10129#define X_DISPLAY_MISSING 1
10130EOF
10f2d63a 10131
ab9b9eab
VZ
10132 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
10133else
10134 if test -n "$x_includes"; then
10135 X_CFLAGS="$X_CFLAGS -I$x_includes"
10f2d63a
VZ
10136 fi
10137
ab9b9eab
VZ
10138 # It would also be nice to do this for all -L options, not just this one.
10139 if test -n "$x_libraries"; then
10140 X_LIBS="$X_LIBS -L$x_libraries"
10141 # For Solaris; some versions of Sun CC require a space after -R and
10142 # others require no space. Words are not sufficient . . . .
698dcdb6 10143 case "`(uname -sr) 2>/dev/null`" in
ab9b9eab 10144 "SunOS 5"*)
698dcdb6 10145 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
683dccda 10146echo "configure:10147: checking whether -R must be followed by a space" >&5
698dcdb6
VZ
10147 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
10148 cat > conftest.$ac_ext <<EOF
683dccda 10149#line 10150 "configure"
ab9b9eab 10150#include "confdefs.h"
10f2d63a 10151
698dcdb6 10152int main() {
788deba1 10153
698dcdb6
VZ
10154; return 0; }
10155EOF
683dccda 10156if { (eval echo configure:10157: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 10157 rm -rf conftest*
ab9b9eab
VZ
10158 ac_R_nospace=yes
10159else
698dcdb6
VZ
10160 echo "configure: failed program was:" >&5
10161 cat conftest.$ac_ext >&5
10162 rm -rf conftest*
10163 ac_R_nospace=no
ab9b9eab 10164fi
698dcdb6 10165rm -f conftest*
ab9b9eab 10166 if test $ac_R_nospace = yes; then
698dcdb6 10167 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
10168 X_LIBS="$X_LIBS -R$x_libraries"
10169 else
10170 LIBS="$ac_xsave_LIBS -R $x_libraries"
698dcdb6 10171 cat > conftest.$ac_ext <<EOF
683dccda 10172#line 10173 "configure"
ab9b9eab 10173#include "confdefs.h"
788deba1 10174
698dcdb6 10175int main() {
ab9b9eab 10176
698dcdb6
VZ
10177; return 0; }
10178EOF
683dccda 10179if { (eval echo configure:10180: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6 10180 rm -rf conftest*
ab9b9eab
VZ
10181 ac_R_space=yes
10182else
698dcdb6
VZ
10183 echo "configure: failed program was:" >&5
10184 cat conftest.$ac_ext >&5
10185 rm -rf conftest*
10186 ac_R_space=no
ab9b9eab 10187fi
698dcdb6 10188rm -f conftest*
ab9b9eab 10189 if test $ac_R_space = yes; then
698dcdb6 10190 echo "$ac_t""yes" 1>&6
ab9b9eab
VZ
10191 X_LIBS="$X_LIBS -R $x_libraries"
10192 else
698dcdb6 10193 echo "$ac_t""neither works" 1>&6
ab9b9eab
VZ
10194 fi
10195 fi
698dcdb6 10196 LIBS="$ac_xsave_LIBS"
ab9b9eab
VZ
10197 esac
10198 fi
10199
10200 # Check for system-dependent libraries X programs must link with.
10201 # Do this before checking for the system-independent R6 libraries
10202 # (-lICE), since we may need -lsocket or whatever for X linking.
10203
10204 if test "$ISC" = yes; then
10205 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
10206 else
698dcdb6
VZ
10207 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
10208 # libraries were built with DECnet support. And karl@cs.umb.edu says
ab9b9eab 10209 # the Alpha needs dnet_stub (dnet does not exist).
698dcdb6 10210 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
683dccda 10211echo "configure:10212: checking for dnet_ntoa in -ldnet" >&5
698dcdb6
VZ
10212ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
10213if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10214 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 10215else
698dcdb6 10216 ac_save_LIBS="$LIBS"
ab9b9eab 10217LIBS="-ldnet $LIBS"
698dcdb6 10218cat > conftest.$ac_ext <<EOF
683dccda 10219#line 10220 "configure"
ab9b9eab
VZ
10220#include "confdefs.h"
10221/* Override any gcc2 internal prototype to avoid an error. */
10222/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
10223 builtin and then its argument prototype would still apply. */
10224char dnet_ntoa();
10225
10226int main() {
10227dnet_ntoa()
10228; return 0; }
10229EOF
683dccda 10230if { (eval echo configure:10231: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
10231 rm -rf conftest*
10232 eval "ac_cv_lib_$ac_lib_var=yes"
10233else
10234 echo "configure: failed program was:" >&5
10235 cat conftest.$ac_ext >&5
10236 rm -rf conftest*
10237 eval "ac_cv_lib_$ac_lib_var=no"
10238fi
10239rm -f conftest*
10240LIBS="$ac_save_LIBS"
10241
10242fi
10243if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10244 echo "$ac_t""yes" 1>&6
ab9b9eab 10245 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
698dcdb6
VZ
10246else
10247 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
10248fi
10249
10250 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
698dcdb6 10251 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
683dccda 10252echo "configure:10253: checking for dnet_ntoa in -ldnet_stub" >&5
698dcdb6
VZ
10253ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
10254if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10255 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 10256else
698dcdb6 10257 ac_save_LIBS="$LIBS"
ab9b9eab 10258LIBS="-ldnet_stub $LIBS"
698dcdb6 10259cat > conftest.$ac_ext <<EOF
683dccda 10260#line 10261 "configure"
ab9b9eab
VZ
10261#include "confdefs.h"
10262/* Override any gcc2 internal prototype to avoid an error. */
10263/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
10264 builtin and then its argument prototype would still apply. */
10265char dnet_ntoa();
10266
10267int main() {
10268dnet_ntoa()
10269; return 0; }
10270EOF
683dccda 10271if { (eval echo configure:10272: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
10272 rm -rf conftest*
10273 eval "ac_cv_lib_$ac_lib_var=yes"
10274else
10275 echo "configure: failed program was:" >&5
10276 cat conftest.$ac_ext >&5
10277 rm -rf conftest*
10278 eval "ac_cv_lib_$ac_lib_var=no"
10279fi
10280rm -f conftest*
10281LIBS="$ac_save_LIBS"
10282
10283fi
10284if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10285 echo "$ac_t""yes" 1>&6
ab9b9eab 10286 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
698dcdb6
VZ
10287else
10288 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
10289fi
10290
10291 fi
10292
10293 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
10294 # to get the SysV transport functions.
698dcdb6 10295 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
ab9b9eab
VZ
10296 # needs -lnsl.
10297 # The nsl library prevents programs from opening the X display
698dcdb6
VZ
10298 # on Irix 5.2, according to dickey@clark.net.
10299 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
683dccda 10300echo "configure:10301: checking for gethostbyname" >&5
698dcdb6
VZ
10301if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
10302 echo $ac_n "(cached) $ac_c" 1>&6
10303else
10304 cat > conftest.$ac_ext <<EOF
683dccda 10305#line 10306 "configure"
ab9b9eab
VZ
10306#include "confdefs.h"
10307/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 10308 which can conflict with char gethostbyname(); below. */
ab9b9eab
VZ
10309#include <assert.h>
10310/* Override any gcc2 internal prototype to avoid an error. */
10311/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
10312 builtin and then its argument prototype would still apply. */
10313char gethostbyname();
10314
10315int main() {
ab9b9eab
VZ
10316
10317/* The GNU C library defines this for functions which it implements
10318 to always fail with ENOSYS. Some functions are actually named
10319 something starting with __ and the normal name is an alias. */
10320#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
10321choke me
10322#else
698dcdb6 10323gethostbyname();
ab9b9eab
VZ
10324#endif
10325
698dcdb6
VZ
10326; return 0; }
10327EOF
683dccda 10328if { (eval echo configure:10329: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
10329 rm -rf conftest*
10330 eval "ac_cv_func_gethostbyname=yes"
10331else
10332 echo "configure: failed program was:" >&5
10333 cat conftest.$ac_ext >&5
10334 rm -rf conftest*
10335 eval "ac_cv_func_gethostbyname=no"
10336fi
10337rm -f conftest*
10338fi
10339
10340if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
10341 echo "$ac_t""yes" 1>&6
10342 :
10343else
10344 echo "$ac_t""no" 1>&6
10345fi
ab9b9eab
VZ
10346
10347 if test $ac_cv_func_gethostbyname = no; then
698dcdb6 10348 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
683dccda 10349echo "configure:10350: checking for gethostbyname in -lnsl" >&5
698dcdb6
VZ
10350ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
10351if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10352 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 10353else
698dcdb6 10354 ac_save_LIBS="$LIBS"
ab9b9eab 10355LIBS="-lnsl $LIBS"
698dcdb6 10356cat > conftest.$ac_ext <<EOF
683dccda 10357#line 10358 "configure"
ab9b9eab
VZ
10358#include "confdefs.h"
10359/* Override any gcc2 internal prototype to avoid an error. */
10360/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
10361 builtin and then its argument prototype would still apply. */
10362char gethostbyname();
6232543b 10363
698dcdb6
VZ
10364int main() {
10365gethostbyname()
10366; return 0; }
10367EOF
683dccda 10368if { (eval echo configure:10369: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
10369 rm -rf conftest*
10370 eval "ac_cv_lib_$ac_lib_var=yes"
703e0a69 10371else
698dcdb6
VZ
10372 echo "configure: failed program was:" >&5
10373 cat conftest.$ac_ext >&5
10374 rm -rf conftest*
10375 eval "ac_cv_lib_$ac_lib_var=no"
10376fi
10377rm -f conftest*
10378LIBS="$ac_save_LIBS"
1e487827 10379
698dcdb6
VZ
10380fi
10381if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10382 echo "$ac_t""yes" 1>&6
10383 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
10384else
10385 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
10386fi
10387
10388 fi
10389
10390 # lieder@skyler.mavd.honeywell.com says without -lsocket,
10391 # socket/setsockopt and other routines are undefined under SCO ODT
10392 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
698dcdb6
VZ
10393 # on later versions), says simon@lia.di.epfl.ch: it contains
10394 # gethostby* variants that don't use the nameserver (or something).
10395 # -lsocket must be given before -lnsl if both are needed.
10396 # We assume that if connect needs -lnsl, so does gethostbyname.
10397 echo $ac_n "checking for connect""... $ac_c" 1>&6
683dccda 10398echo "configure:10399: checking for connect" >&5
698dcdb6
VZ
10399if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
10400 echo $ac_n "(cached) $ac_c" 1>&6
10401else
10402 cat > conftest.$ac_ext <<EOF
683dccda 10403#line 10404 "configure"
ab9b9eab
VZ
10404#include "confdefs.h"
10405/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 10406 which can conflict with char connect(); below. */
ab9b9eab
VZ
10407#include <assert.h>
10408/* Override any gcc2 internal prototype to avoid an error. */
10409/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
10410 builtin and then its argument prototype would still apply. */
10411char connect();
10412
10413int main() {
ab9b9eab
VZ
10414
10415/* The GNU C library defines this for functions which it implements
10416 to always fail with ENOSYS. Some functions are actually named
10417 something starting with __ and the normal name is an alias. */
10418#if defined (__stub_connect) || defined (__stub___connect)
10419choke me
10420#else
698dcdb6 10421connect();
ab9b9eab
VZ
10422#endif
10423
698dcdb6
VZ
10424; return 0; }
10425EOF
683dccda 10426if { (eval echo configure:10427: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
10427 rm -rf conftest*
10428 eval "ac_cv_func_connect=yes"
10429else
10430 echo "configure: failed program was:" >&5
10431 cat conftest.$ac_ext >&5
10432 rm -rf conftest*
10433 eval "ac_cv_func_connect=no"
10434fi
10435rm -f conftest*
10436fi
10437
10438if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
10439 echo "$ac_t""yes" 1>&6
10440 :
10441else
10442 echo "$ac_t""no" 1>&6
10443fi
ab9b9eab
VZ
10444
10445 if test $ac_cv_func_connect = no; then
698dcdb6 10446 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
683dccda 10447echo "configure:10448: checking for connect in -lsocket" >&5
698dcdb6
VZ
10448ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
10449if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10450 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 10451else
698dcdb6 10452 ac_save_LIBS="$LIBS"
ab9b9eab 10453LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
698dcdb6 10454cat > conftest.$ac_ext <<EOF
683dccda 10455#line 10456 "configure"
ab9b9eab
VZ
10456#include "confdefs.h"
10457/* Override any gcc2 internal prototype to avoid an error. */
10458/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
10459 builtin and then its argument prototype would still apply. */
10460char connect();
10461
10462int main() {
10463connect()
10464; return 0; }
10465EOF
683dccda 10466if { (eval echo configure:10467: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
10467 rm -rf conftest*
10468 eval "ac_cv_lib_$ac_lib_var=yes"
10469else
10470 echo "configure: failed program was:" >&5
10471 cat conftest.$ac_ext >&5
10472 rm -rf conftest*
10473 eval "ac_cv_lib_$ac_lib_var=no"
10474fi
10475rm -f conftest*
10476LIBS="$ac_save_LIBS"
10477
10478fi
10479if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10480 echo "$ac_t""yes" 1>&6
ab9b9eab 10481 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
698dcdb6
VZ
10482else
10483 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
10484fi
10485
10486 fi
10487
698dcdb6
VZ
10488 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
10489 echo $ac_n "checking for remove""... $ac_c" 1>&6
683dccda 10490echo "configure:10491: checking for remove" >&5
698dcdb6
VZ
10491if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
10492 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 10493else
698dcdb6 10494 cat > conftest.$ac_ext <<EOF
683dccda 10495#line 10496 "configure"
ab9b9eab
VZ
10496#include "confdefs.h"
10497/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 10498 which can conflict with char remove(); below. */
ab9b9eab
VZ
10499#include <assert.h>
10500/* Override any gcc2 internal prototype to avoid an error. */
10501/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
10502 builtin and then its argument prototype would still apply. */
10503char remove();
10504
10505int main() {
ab9b9eab
VZ
10506
10507/* The GNU C library defines this for functions which it implements
10508 to always fail with ENOSYS. Some functions are actually named
10509 something starting with __ and the normal name is an alias. */
10510#if defined (__stub_remove) || defined (__stub___remove)
10511choke me
10512#else
698dcdb6 10513remove();
ab9b9eab
VZ
10514#endif
10515
698dcdb6
VZ
10516; return 0; }
10517EOF
683dccda 10518if { (eval echo configure:10519: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
10519 rm -rf conftest*
10520 eval "ac_cv_func_remove=yes"
10521else
10522 echo "configure: failed program was:" >&5
10523 cat conftest.$ac_ext >&5
10524 rm -rf conftest*
10525 eval "ac_cv_func_remove=no"
10526fi
10527rm -f conftest*
10528fi
10529
10530if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
10531 echo "$ac_t""yes" 1>&6
10532 :
10533else
10534 echo "$ac_t""no" 1>&6
10535fi
ab9b9eab
VZ
10536
10537 if test $ac_cv_func_remove = no; then
698dcdb6 10538 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
683dccda 10539echo "configure:10540: checking for remove in -lposix" >&5
698dcdb6
VZ
10540ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
10541if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10542 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 10543else
698dcdb6 10544 ac_save_LIBS="$LIBS"
ab9b9eab 10545LIBS="-lposix $LIBS"
698dcdb6 10546cat > conftest.$ac_ext <<EOF
683dccda 10547#line 10548 "configure"
ab9b9eab
VZ
10548#include "confdefs.h"
10549/* Override any gcc2 internal prototype to avoid an error. */
10550/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
10551 builtin and then its argument prototype would still apply. */
10552char remove();
10553
10554int main() {
10555remove()
10556; return 0; }
10557EOF
683dccda 10558if { (eval echo configure:10559: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
10559 rm -rf conftest*
10560 eval "ac_cv_lib_$ac_lib_var=yes"
10561else
10562 echo "configure: failed program was:" >&5
10563 cat conftest.$ac_ext >&5
10564 rm -rf conftest*
10565 eval "ac_cv_lib_$ac_lib_var=no"
10566fi
10567rm -f conftest*
10568LIBS="$ac_save_LIBS"
10569
10570fi
10571if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10572 echo "$ac_t""yes" 1>&6
ab9b9eab 10573 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
698dcdb6
VZ
10574else
10575 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
10576fi
10577
10578 fi
10579
10580 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
698dcdb6 10581 echo $ac_n "checking for shmat""... $ac_c" 1>&6
683dccda 10582echo "configure:10583: checking for shmat" >&5
698dcdb6
VZ
10583if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
10584 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 10585else
698dcdb6 10586 cat > conftest.$ac_ext <<EOF
683dccda 10587#line 10588 "configure"
ab9b9eab
VZ
10588#include "confdefs.h"
10589/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 10590 which can conflict with char shmat(); below. */
ab9b9eab
VZ
10591#include <assert.h>
10592/* Override any gcc2 internal prototype to avoid an error. */
10593/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
10594 builtin and then its argument prototype would still apply. */
10595char shmat();
10596
10597int main() {
ab9b9eab
VZ
10598
10599/* The GNU C library defines this for functions which it implements
10600 to always fail with ENOSYS. Some functions are actually named
10601 something starting with __ and the normal name is an alias. */
10602#if defined (__stub_shmat) || defined (__stub___shmat)
10603choke me
10604#else
698dcdb6 10605shmat();
ab9b9eab
VZ
10606#endif
10607
698dcdb6
VZ
10608; return 0; }
10609EOF
683dccda 10610if { (eval echo configure:10611: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
10611 rm -rf conftest*
10612 eval "ac_cv_func_shmat=yes"
10613else
10614 echo "configure: failed program was:" >&5
10615 cat conftest.$ac_ext >&5
10616 rm -rf conftest*
10617 eval "ac_cv_func_shmat=no"
10618fi
10619rm -f conftest*
10620fi
10621
10622if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
10623 echo "$ac_t""yes" 1>&6
10624 :
10625else
10626 echo "$ac_t""no" 1>&6
10627fi
ab9b9eab
VZ
10628
10629 if test $ac_cv_func_shmat = no; then
698dcdb6 10630 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
683dccda 10631echo "configure:10632: checking for shmat in -lipc" >&5
698dcdb6
VZ
10632ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
10633if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10634 echo $ac_n "(cached) $ac_c" 1>&6
ab9b9eab 10635else
698dcdb6 10636 ac_save_LIBS="$LIBS"
ab9b9eab 10637LIBS="-lipc $LIBS"
698dcdb6 10638cat > conftest.$ac_ext <<EOF
683dccda 10639#line 10640 "configure"
ab9b9eab
VZ
10640#include "confdefs.h"
10641/* Override any gcc2 internal prototype to avoid an error. */
10642/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
10643 builtin and then its argument prototype would still apply. */
10644char shmat();
10645
10646int main() {
10647shmat()
10648; return 0; }
10649EOF
683dccda 10650if { (eval echo configure:10651: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
10651 rm -rf conftest*
10652 eval "ac_cv_lib_$ac_lib_var=yes"
10653else
10654 echo "configure: failed program was:" >&5
10655 cat conftest.$ac_ext >&5
10656 rm -rf conftest*
10657 eval "ac_cv_lib_$ac_lib_var=no"
10658fi
10659rm -f conftest*
10660LIBS="$ac_save_LIBS"
10661
10662fi
10663if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10664 echo "$ac_t""yes" 1>&6
ab9b9eab 10665 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
698dcdb6
VZ
10666else
10667 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
10668fi
10669
10670 fi
10671 fi
10672
10673 # Check for libraries that X11R6 Xt/Xaw programs need.
698dcdb6 10674 ac_save_LDFLAGS="$LDFLAGS"
ab9b9eab
VZ
10675 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
10676 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
10677 # check for ICE first), but we must link in the order -lSM -lICE or
10678 # we get undefined symbols. So assume we have SM if we have ICE.
10679 # These have to be linked with before -lX11, unlike the other
10680 # libraries we check for below, so use a different variable.
698dcdb6
VZ
10681 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
10682 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
683dccda 10683echo "configure:10684: checking for IceConnectionNumber in -lICE" >&5
698dcdb6
VZ
10684ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
10685if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10686 echo $ac_n "(cached) $ac_c" 1>&6
10687else
10688 ac_save_LIBS="$LIBS"
ab9b9eab 10689LIBS="-lICE $X_EXTRA_LIBS $LIBS"
698dcdb6 10690cat > conftest.$ac_ext <<EOF
683dccda 10691#line 10692 "configure"
ab9b9eab
VZ
10692#include "confdefs.h"
10693/* Override any gcc2 internal prototype to avoid an error. */
10694/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
10695 builtin and then its argument prototype would still apply. */
10696char IceConnectionNumber();
10697
10698int main() {
10699IceConnectionNumber()
10700; return 0; }
10701EOF
683dccda 10702if { (eval echo configure:10703: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
10703 rm -rf conftest*
10704 eval "ac_cv_lib_$ac_lib_var=yes"
10705else
10706 echo "configure: failed program was:" >&5
10707 cat conftest.$ac_ext >&5
10708 rm -rf conftest*
10709 eval "ac_cv_lib_$ac_lib_var=no"
10710fi
10711rm -f conftest*
10712LIBS="$ac_save_LIBS"
10713
10714fi
10715if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10716 echo "$ac_t""yes" 1>&6
ab9b9eab 10717 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
698dcdb6
VZ
10718else
10719 echo "$ac_t""no" 1>&6
ab9b9eab
VZ
10720fi
10721
698dcdb6 10722 LDFLAGS="$ac_save_LDFLAGS"
ab9b9eab
VZ
10723
10724fi
10725
1e6feb95
VZ
10726 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10727 LDFLAGS="$LDFLAGS $X_LIBS"
ab9b9eab 10728
1e6feb95
VZ
10729 if test "$wxUSE_MOTIF" = 1; then
10730 if test "$no_x" = "yes"; then
10731 { echo "configure: error: X11 not found" 1>&2; exit 1; }
10732 fi
ab9b9eab 10733
1e6feb95
VZ
10734 GUI_TK_LIBRARY="$X_LIBS"
10735 TOOLKIT_INCLUDE="$X_CFLAGS"
1e6feb95 10736 AFMINSTALL=afminstall
1e6feb95 10737 COMPILED_X_PROGRAM=0
cd6d6d5b 10738
1e6feb95 10739 echo $ac_n "checking for Motif/Lesstif headers""... $ac_c" 1>&6
683dccda 10740echo "configure:10741: checking for Motif/Lesstif headers" >&5
1e6feb95 10741
ab9b9eab
VZ
10742ac_find_includes=
10743for ac_dir in $SEARCH_INCLUDE;
10744 do
10745 if test -f "$ac_dir/Xm/Xm.h"; then
10746 ac_find_includes=$ac_dir
10747 break
10748 fi
10749 done
10750
1e6feb95
VZ
10751 if test "$ac_find_includes" != "" ; then
10752 echo "$ac_t""found $ac_find_includes" 1>&6
10753 else
10754 cat > conftest.$ac_ext <<EOF
683dccda 10755#line 10756 "configure"
cd6d6d5b
VZ
10756#include "confdefs.h"
10757
1e6feb95
VZ
10758 #include <Xm/Xm.h>
10759
698dcdb6 10760int main() {
cd6d6d5b 10761
1e6feb95 10762 int version;
1e6feb95
VZ
10763 version = xmUseVersion;
10764
698dcdb6
VZ
10765; return 0; }
10766EOF
683dccda 10767if { (eval echo configure:10768: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
10768 rm -rf conftest*
10769
1e6feb95
VZ
10770 echo "$ac_t""found in default search path" 1>&6
10771 COMPILED_X_PROGRAM=1
10772
cd6d6d5b 10773else
698dcdb6
VZ
10774 echo "configure: failed program was:" >&5
10775 cat conftest.$ac_ext >&5
10776 rm -rf conftest*
10777
1e6feb95
VZ
10778 echo "$ac_t""no" 1>&6
10779 { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; }
10780
698dcdb6 10781
cd6d6d5b 10782fi
698dcdb6 10783rm -f conftest*
1e6feb95 10784 fi
ab9b9eab 10785
1e6feb95
VZ
10786 if test "$COMPILED_X_PROGRAM" = 0; then
10787 echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6
683dccda 10788echo "configure:10789: checking for Motif/Lesstif library" >&5
1e6feb95 10789
ab9b9eab
VZ
10790ac_find_libraries=
10791for ac_dir in $SEARCH_LIB;
10792 do
f11bdd03 10793 for ac_extension in a so sl dylib; do
ab9b9eab
VZ
10794 if test -f "$ac_dir/libXm.$ac_extension"; then
10795 ac_find_libraries=$ac_dir
10796 break 2
10797 fi
10798 done
10799 done
10800
1e6feb95
VZ
10801 if test "$ac_find_libraries" != "" ; then
10802
ab9b9eab
VZ
10803 ac_path_to_include=$ac_find_includes
10804 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
10805 result=$?
10806 if test $result = 0; then
10807 ac_path_to_include=""
10808 else
10809 ac_path_to_include="-I$ac_find_includes"
10810 fi
10811
1e6feb95 10812
ab9b9eab
VZ
10813 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
10814 result=$?
10815 if test $result = 0; then
10816 ac_path_to_link=""
10817 else
10818 ac_path_to_link="-L$ac_find_libraries"
10819 fi
10820
698dcdb6 10821
1e6feb95
VZ
10822 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link"
10823 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE $ac_path_to_include"
10824 echo "$ac_t""found at $ac_find_libraries" 1>&6
10825 else
10826 cat > conftest.$ac_ext <<EOF
683dccda 10827#line 10828 "configure"
cd6d6d5b 10828#include "confdefs.h"
ab9b9eab 10829
1e6feb95
VZ
10830 #include <Xm/Xm.h>
10831
698dcdb6 10832int main() {
ab9b9eab 10833
1e6feb95 10834 int version;
1e6feb95
VZ
10835 version = xmUseVersion;
10836
698dcdb6
VZ
10837; return 0; }
10838EOF
683dccda 10839if { (eval echo configure:10840: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
10840 rm -rf conftest*
10841
1e6feb95
VZ
10842 echo "$ac_t""found in default search path" 1>&6
10843 COMPILED_X_PROGRAM=1
10844
cd6d6d5b 10845else
698dcdb6
VZ
10846 echo "configure: failed program was:" >&5
10847 cat conftest.$ac_ext >&5
10848 rm -rf conftest*
10849
1e6feb95
VZ
10850 echo "$ac_t""no" 1>&6
10851 { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; }
10852
698dcdb6 10853
cd6d6d5b 10854fi
698dcdb6 10855rm -f conftest*
1e6feb95 10856 fi
cd6d6d5b 10857 fi
ab9b9eab 10858
3a922bb4 10859 xpm_link=""
1e6feb95 10860 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
683dccda 10861echo "configure:10862: checking for Xpm library" >&5
1e6feb95 10862
ab9b9eab
VZ
10863ac_find_libraries=
10864for ac_dir in $SEARCH_LIB;
10865 do
f11bdd03 10866 for ac_extension in a so sl dylib; do
ab9b9eab
VZ
10867 if test -f "$ac_dir/libXpm.$ac_extension"; then
10868 ac_find_libraries=$ac_dir
10869 break 2
10870 fi
10871 done
10872 done
10873
1e6feb95
VZ
10874 if test "$ac_find_libraries" != "" ; then
10875
ab9b9eab
VZ
10876 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
10877 result=$?
10878 if test $result = 0; then
10879 ac_path_to_link=""
10880 else
10881 ac_path_to_link="-L$ac_find_libraries"
10882 fi
10883
1e6feb95 10884 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link"
3a922bb4 10885 xpm_link="-lXpm "
1e6feb95 10886 cat >> confdefs.h <<\EOF
ab9b9eab
VZ
10887#define wxHAVE_LIB_XPM 1
10888EOF
10889
1e6feb95
VZ
10890 echo "$ac_t""found at $ac_find_libraries" 1>&6
10891 else
10892 cat > conftest.$ac_ext <<EOF
683dccda 10893#line 10894 "configure"
cd6d6d5b
VZ
10894#include "confdefs.h"
10895
1e6feb95
VZ
10896 #include <X11/xpm.h>
10897
698dcdb6 10898int main() {
cd6d6d5b 10899
1e6feb95 10900 int version;
1e6feb95
VZ
10901 version = XpmLibraryVersion();
10902
698dcdb6
VZ
10903; return 0; }
10904EOF
683dccda 10905if { (eval echo configure:10906: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
10906 rm -rf conftest*
10907
3a922bb4
RL
10908 xpm_link="-lXpm "
10909 cat >> confdefs.h <<\EOF
3ace2e6d
SN
10910#define wxHAVE_LIB_XPM 1
10911EOF
10912
1e6feb95
VZ
10913 echo "$ac_t""found in default search path" 1>&6
10914 COMPILED_X_PROGRAM=0
10915
cd6d6d5b 10916else
698dcdb6
VZ
10917 echo "configure: failed program was:" >&5
10918 cat conftest.$ac_ext >&5
10919 rm -rf conftest*
10920
1e6feb95
VZ
10921 echo "$ac_t""no" 1>&6
10922 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
10923
698dcdb6 10924
cd6d6d5b 10925fi
698dcdb6 10926rm -f conftest*
1e6feb95
VZ
10927 fi
10928
3a922bb4 10929 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm $xpm_link -lXmu -lXext -lXt -lX11"
334f0d2c 10930 TOOLKIT_VPATH="\${top_srcdir}/src/motif${PATH_IFS}\${top_srcdir}/src/motif/xmcombo"
1e6feb95
VZ
10931 TOOLKIT=MOTIF
10932 GUIDIST=MOTIF_DIST
ab9b9eab
VZ
10933 fi
10934
683dccda
GD
10935 if test "$wxUSE_MAC" = 1; then
10936 if test "$wxUSE_PRECOMP" = "yes"; then
10937 CPPFLAGS="${CPPFLAGS} -cpp-precomp"
10938 fi
d08b457b
GD
10939 CFLAGS="${CFLAGS} -fpascal-strings"
10940 CXXFLAGS="${CXXFLAGS} -fpascal-strings"
10941 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -DTARGET_CARBON"
10942
1e6feb95 10943 TOOLKIT=MAC
683dccda 10944 GUIDIST=MACX_DIST
1e6feb95 10945 fi
10f2d63a 10946
1e6feb95
VZ
10947 if test "$wxUSE_PM" = 1; then
10948 TOOLKIT=PM
10949 GUIDIST=GTK_DIST
10950 fi
b4085ce6 10951
3a922bb4 10952 if test "$TOOLKIT" = "PM" ; then
1e6feb95 10953 TOOLKIT_DIR="os2"
3a922bb4
RL
10954 else
10955 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
1e6feb95 10956 fi
e07802fc 10957
3a922bb4 10958 PORT_FILES="\${top_srcdir}/src/\$(TOOLKITDIR)/files.lst"
1e6feb95 10959
3a922bb4
RL
10960 if test "$wxUSE_UNIVERSAL" = "yes"; then
10961 ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}"
10962 PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst"
10963 TOOLKIT_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes${PATH_IFS}\${top_srcdir}/src/${TOOLKIT_DIR}"
10964 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
10965 WIDGET_SET=univ
f6bcfd97 10966 else
3a922bb4 10967 ALL_OBJECTS="\$(GUIOBJS)"
1e6feb95
VZ
10968 fi
10969
10970 ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)"
10971
10972 if test "$TOOLKIT" != "MSW"; then
10973 ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)"
10974 fi
10975
10976 if test "$wxUSE_HTML" = "yes"; then
10977 ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)"
10978 fi
3fcdd07b 10979
3a922bb4
RL
10980 if test "$TOOLKIT" != "MSW" -a "$wxUSE_ODBC" = "yes" ; then
10981 ALL_OBJECTS="${ALL_OBJECTS} \$(IODBCOBJS)"
831b3152 10982 fi
d9d8273d 10983 if test "$wxUSE_LIBJPEG" = "yes" ; then
2224580a 10984 ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)"
d9d8273d
RR
10985 fi
10986 if test "$wxUSE_LIBTIFF" = "yes" ; then
10987 ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)"
10988 fi
10989 if test "$wxUSE_LIBPNG" = "yes" ; then
10990 ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)"
10991 fi
3fed1840
RR
10992 if test "$wxUSE_FREETYPE" = "yes" ; then
10993 ALL_OBJECTS="${ALL_OBJECTS} \$(FREETYPEOBJS)"
10994 fi
2224580a 10995
2224580a
VZ
10996 RPM_FILES="src/\$(TOOLKITDIR)/rpmfiles.lst"
10997 RPM_SPEC="wx\$(TOOLKIT).spec"
10998
10999 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
11000 DISTDIR="wx\$(TOOLKIT)"
10f2d63a 11001else
dad6c0ea
VZ
11002 USE_GUI=0
11003
3a922bb4 11004 TOOLKIT_DIR="base"
f6bcfd97 11005
3a922bb4
RL
11006 if test "$USE_WIN32" = 1 ; then
11007 ALL_OBJECTS="\${BASE_OBJS} \${BASE_MSW_OBJS}"
11008 TOOLKIT_VPATH="\${top_srcdir}/src/msw"
0b2effe9 11009
3a922bb4 11010 TOOLKIT="MSW"
f6bcfd97 11011 else
3a922bb4
RL
11012 ALL_OBJECTS="\${BASE_OBJS} \${BASE_UNIX_OBJS}"
11013 TOOLKIT_VPATH="\${top_srcdir}/src/unix"
f6bcfd97
BP
11014 fi
11015
831b3152 11016 PORT_FILES="\${top_srcdir}/src/files.lst"
2224580a
VZ
11017 RPM_FILES="src/rpmfiles.lst"
11018 RPM_SPEC="wxBase.spec"
11019
11020 GUIDIST="BASE_DIST"
11021 DISTDIR="wxBase"
10f2d63a
VZ
11022fi
11023
3a922bb4
RL
11024if test "x$REGEX_INCLUDE" != "x" ; then
11025 ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)"
11026fi
11027if test "$wxUSE_ZLIB" = "yes" ; then
11028 ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
11029fi
10f2d63a 11030
3a922bb4
RL
11031if test "$wxUSE_OPENGL" = "yes"; then
11032 if test "$wxUSE_MAC" = 1; then
11033 cat >> confdefs.h <<\EOF
11034#define wxUSE_OPENGL 1
11035EOF
10f2d63a 11036
3a922bb4
RL
11037 cat >> confdefs.h <<\EOF
11038#define wxUSE_GLCANVAS 1
11039EOF
10f2d63a 11040
3a922bb4
RL
11041 OPENGL_LIBS="-framework OpenGL -framework AGL"
11042 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl"
11043 else
11044 ac_safe=`echo "GL/gl.h" | sed 'y%./+-%__p_%'`
11045echo $ac_n "checking for GL/gl.h""... $ac_c" 1>&6
683dccda 11046echo "configure:11047: checking for GL/gl.h" >&5
3a922bb4
RL
11047if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11048 echo $ac_n "(cached) $ac_c" 1>&6
11049else
11050 cat > conftest.$ac_ext <<EOF
683dccda 11051#line 11052 "configure"
3a922bb4
RL
11052#include "confdefs.h"
11053#include <GL/gl.h>
11054EOF
11055ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
683dccda 11056{ (eval echo configure:11057: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3a922bb4
RL
11057ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11058if test -z "$ac_err"; then
11059 rm -rf conftest*
11060 eval "ac_cv_header_$ac_safe=yes"
11061else
11062 echo "$ac_err" >&5
11063 echo "configure: failed program was:" >&5
11064 cat conftest.$ac_ext >&5
11065 rm -rf conftest*
11066 eval "ac_cv_header_$ac_safe=no"
11067fi
11068rm -f conftest*
11069fi
11070if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11071 echo "$ac_t""yes" 1>&6
11072
11073 cat >> confdefs.h <<\EOF
11074#define wxUSE_OPENGL 1
11075EOF
10f2d63a 11076
3a922bb4
RL
11077 cat >> confdefs.h <<\EOF
11078#define wxUSE_GLCANVAS 1
11079EOF
10f2d63a 11080
3a922bb4
RL
11081 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl"
11082 echo $ac_n "checking for glFlush in -lGL""... $ac_c" 1>&6
683dccda 11083echo "configure:11084: checking for glFlush in -lGL" >&5
3a922bb4
RL
11084ac_lib_var=`echo GL'_'glFlush | sed 'y%./+-%__p_%'`
11085if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11086 echo $ac_n "(cached) $ac_c" 1>&6
11087else
11088 ac_save_LIBS="$LIBS"
11089LIBS="-lGL $LIBS"
11090cat > conftest.$ac_ext <<EOF
683dccda 11091#line 11092 "configure"
3a922bb4
RL
11092#include "confdefs.h"
11093/* Override any gcc2 internal prototype to avoid an error. */
11094/* We use char because int might match the return type of a gcc2
11095 builtin and then its argument prototype would still apply. */
11096char glFlush();
55e80573 11097
3a922bb4
RL
11098int main() {
11099glFlush()
11100; return 0; }
11101EOF
683dccda 11102if { (eval echo configure:11103: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3a922bb4
RL
11103 rm -rf conftest*
11104 eval "ac_cv_lib_$ac_lib_var=yes"
11105else
11106 echo "configure: failed program was:" >&5
11107 cat conftest.$ac_ext >&5
11108 rm -rf conftest*
11109 eval "ac_cv_lib_$ac_lib_var=no"
11110fi
11111rm -f conftest*
11112LIBS="$ac_save_LIBS"
55e80573 11113
3a922bb4
RL
11114fi
11115if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11116 echo "$ac_t""yes" 1>&6
11117
11118 OPENGL_LIBS="-lGL -lGLU"
11119
11120else
11121 echo "$ac_t""no" 1>&6
11122
11123 echo $ac_n "checking for glFlush in -lMesaGL""... $ac_c" 1>&6
683dccda 11124echo "configure:11125: checking for glFlush in -lMesaGL" >&5
3a922bb4
RL
11125ac_lib_var=`echo MesaGL'_'glFlush | sed 'y%./+-%__p_%'`
11126if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11127 echo $ac_n "(cached) $ac_c" 1>&6
11128else
11129 ac_save_LIBS="$LIBS"
11130LIBS="-lMesaGL $LIBS"
11131cat > conftest.$ac_ext <<EOF
683dccda 11132#line 11133 "configure"
3a922bb4
RL
11133#include "confdefs.h"
11134/* Override any gcc2 internal prototype to avoid an error. */
11135/* We use char because int might match the return type of a gcc2
11136 builtin and then its argument prototype would still apply. */
11137char glFlush();
11138
11139int main() {
11140glFlush()
11141; return 0; }
11142EOF
683dccda 11143if { (eval echo configure:11144: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3a922bb4
RL
11144 rm -rf conftest*
11145 eval "ac_cv_lib_$ac_lib_var=yes"
11146else
11147 echo "configure: failed program was:" >&5
11148 cat conftest.$ac_ext >&5
11149 rm -rf conftest*
11150 eval "ac_cv_lib_$ac_lib_var=no"
11151fi
11152rm -f conftest*
11153LIBS="$ac_save_LIBS"
11154
11155fi
11156if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11157 echo "$ac_t""yes" 1>&6
11158
11159 OPENGL_LIBS="-lMesaGL -lMesaGLU"
11160
11161else
11162 echo "$ac_t""no" 1>&6
11163fi
55e80573 11164
3a922bb4
RL
11165
11166fi
11167
11168
11169else
11170 echo "$ac_t""no" 1>&6
11171wxUSE_OPENGL=0
11172fi
11173
11174 fi
11175fi
11176
11177if test -z "$TOOLKIT_VPATH" ; then
11178 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}"
11179fi
11180
11181if test -n "$TOOLKIT" ; then
11182 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
11183fi
11184
11185if test "$wxUSE_CYGWIN" = 1 ; then
11186 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__"
11187fi
11188
11189lib_debug_suffix=
11190if test "$wxUSE_DEBUG_FLAG" = "yes"; then
11191 lib_debug_suffix=d
11192 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}d"
11193fi
11194
11195TOOLCHAIN_NAME="${TOOLKIT_DIR}${WIDGET_SET}${lib_debug_suffix}-${WX_RELEASE}"
11196TOOLCHAIN_NAME_GL="${TOOLKIT_DIR}${WIDGET_SET}${lib_debug_suffix}_gl-${WX_RELEASE}"
11197
11198if test "$cross_compiling" = "yes"; then
11199 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}-${host_alias}"
11200 TOOLCHAIN_NAME_GL="${TOOLCHAIN_NAME_GL}-${host_alias}"
11201fi
11202
11203WX_LIBRARY="wx_${TOOLCHAIN_NAME}"
11204WX_LIBRARY_GL="wx_${TOOLCHAIN_NAME_GL}"
11205
11206WXCONFIG_LIBS="-l${WX_LIBRARY}"
11207
11208if test "$wxUSE_OPENGL" = "yes"; then
11209 WXCONFIG_LIBS_GL="-l${WX_LIBRARY_GL} $OPENGL_LIBS"
11210fi
11211
11212WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a"
11213WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY_GL}.a"
11214
11215WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
11216WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
11217
11218WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}"
11219WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
11220WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}"
11221WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
11222
d08b457b 11223WX_RESOURCES_MACOSX="lib${WX_LIBRARY}.rsrc"
3a922bb4
RL
11224
11225
11226
11227if test "$wxUSE_SHARED" = "yes"; then
55e80573
VZ
11228
11229 if test "$wxUSE_OPENGL" = "yes"; then
11230 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
3a922bb4 11231 WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1} \$(build_libdir)/${WX_LIBRARY_LINK1_GL}"
55e80573
VZ
11232 else
11233 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
3a922bb4 11234 WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1}"
55e80573
VZ
11235 fi
11236
dd4f7467 11237 if test "$GCC" = "yes"; then
55e80573 11238 PIC_FLAG="-fPIC"
dd4f7467 11239 fi
55e80573
VZ
11240
11241 SHARED_LD="${CXX} -shared -o"
698dcdb6 11242
10f2d63a
VZ
11243 case "${host}" in
11244 *-hp-hpux* )
55e80573 11245 if test "$GCC" != "yes"; then
f6bcfd97
BP
11246 LDFLAGS="-L/usr/lib"
11247
10f2d63a
VZ
11248 SHARED_LD="${CXX} -b -o"
11249 PIC_FLAG="+Z"
11250 fi
55e80573 11251
7b7a7637
RL
11252 if test "$wxUSE_OPENGL" = "yes"; then
11253 WX_ALL_INSTALLED="preinstall_gl"
11254 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}"
11255 else
11256 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}"
11257 fi
10f2d63a 11258 ;;
b12915c1 11259
55e80573
VZ
11260 *-*-linux* )
11261 if test "$GCC" != "yes"; then
11262 echo $ac_n "checking for Intel compiler""... $ac_c" 1>&6
683dccda 11263echo "configure:11264: checking for Intel compiler" >&5
55e80573
VZ
11264if eval "test \"`echo '$''{'wx_cv_prog_icc'+set}'`\" = set"; then
11265 echo $ac_n "(cached) $ac_c" 1>&6
11266else
11267
11268 cat > conftest.$ac_ext <<EOF
683dccda 11269#line 11270 "configure"
55e80573
VZ
11270#include "confdefs.h"
11271
11272int main() {
11273
11274 #ifndef __INTEL_COMPILER
dd4f7467 11275 #error Not icc
55e80573
VZ
11276 #endif
11277
11278; return 0; }
11279EOF
683dccda 11280if { (eval echo configure:11281: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
55e80573
VZ
11281 rm -rf conftest*
11282 wx_cv_prog_icc=yes
11283else
11284 echo "configure: failed program was:" >&5
11285 cat conftest.$ac_ext >&5
11286 rm -rf conftest*
11287 wx_cv_prog_icc=no
11288
11289fi
11290rm -f conftest*
11291
11292fi
11293
11294echo "$ac_t""$wx_cv_prog_icc" 1>&6
55e80573
VZ
11295 if test "$wx_cv_prog_icc" = "yes"; then
11296 PIC_FLAG="-KPIC"
11297 fi
11298 fi
11299
3a922bb4
RL
11300 if test "$wxUSE_SONAME" = "yes" ; then
11301 SONAME_FLAGS="-Wl,-soname,${WX_LIBRARY_LINK1}"
11302 SONAME_FLAGS_GL="-Wl,-soname,${WX_LIBRARY_LINK1_GL}"
f6bcfd97 11303 WX_TARGET_LIBRARY_SONAME="-Wl,-soname,\$(TARGETLIB_LINK1)"
00cf1208 11304 fi
10f2d63a 11305 ;;
55e80573 11306
10f2d63a
VZ
11307 *-*-solaris2* )
11308 if test "$GCC" = yes ; then
f6bcfd97 11309 CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
10f2d63a
VZ
11310 else
11311 SHARED_LD="${CXX} -G -o"
11312 PIC_FLAG="-KPIC"
7b7a7637
RL
11313 SONAME_FLAGS="-h ${WX_LIBRARY_NAME_SHARED}"
11314 SONAME_FLAGS_GL="-h ${WX_LIBRARY_NAME_SHARED}"
10f2d63a 11315 fi
10f2d63a 11316 ;;
55e80573 11317
b4085ce6 11318 *-*-darwin* )
d08b457b
GD
11319 CFLAGS="${CFLAGS} -fno-common"
11320 CXXFLAGS="${CXXFLAGS} -fno-common"
ea5999b9
GD
11321 SHARED_LD="${CXX} -dynamiclib -o"
11322 PIC_FLAG="-dynamic -fPIC"
10f2d63a 11323 ;;
55e80573 11324
10f2d63a
VZ
11325 *-*-aix* )
11326 SHARED_LD="/usr/lpp/xlC/bin/makeC++SharedLib -p 0 -o"
10f2d63a 11327 ;;
55e80573 11328
7b7a7637 11329 *-*-cygwin* | *-*-mingw32* )
3a922bb4
RL
11330 SHARED_LD="${CXX} -shared -Wl,--out-implib,lib/${WX_LIBRARY_NAME_STATIC} -o"
11331 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -DWXUSINGDLL=1"
18dbb1f6 11332 WXMSW_DLL_DEFINES="-UWXUSINGDLL -DWXMAKINGDLL=1 -D_DLL=1 -D_WINDLL=1"
7b7a7637
RL
11333
11334 if test "$wxUSE_OPENGL" = "yes"; then
f6bcfd97 11335 WX_ALL_INSTALLED="preinstall_gl"
3a922bb4 11336 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}"
f6bcfd97 11337 else
3a922bb4 11338 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}"
f6bcfd97 11339 fi
7b7a7637 11340 PIC_FLAG=
10f2d63a 11341 ;;
55e80573 11342
10f2d63a 11343 *-pc-os2_emx )
7b7a7637 11344 wxUSE_SHARED=no
10f2d63a 11345 ;;
55e80573 11346
b12915c1 11347 *-*-beos* )
e2b8b066 11348 SHARED_LD="${LD} -shared -o"
b12915c1 11349 ;;
55e80573
VZ
11350
11351 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
11352 *-*-sunos4* | \
11353 *-*-irix5* | *-*-irix6* | \
11354 *-*-osf* | \
11355 *-*-dgux5* | \
11356 *-*-sysv5* )
11357 ;;
11358
10f2d63a 11359 *)
7b7a7637 11360 { echo "configure: error: unknown system type $host." 1>&2; exit 1; }
10f2d63a
VZ
11361 esac
11362
11363 if test "x$WX_TARGET_LIBRARY" = "x"; then
11364 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
bdad4e7e 11365 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}"
10f2d63a 11366 fi
55e80573 11367
3711412e 11368 WX_TARGET_LIBRARY_TYPE="so"
3a922bb4 11369fi
f6bcfd97 11370
3a922bb4 11371if test "$wxUSE_SHARED" = "no"; then
f6bcfd97 11372
3a922bb4 11373 if test "$wxUSE_GUI" = "no" -o "$USE_WIN32" = 1 ; then
f6bcfd97
BP
11374 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
11375 fi
11376
3a922bb4
RL
11377 if test "$wxUSE_OPENGL" = "yes"; then
11378 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_gl"
11379 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC} \$(build_libdir)/${WX_LIBRARY_NAME_STATIC_GL}"
11380 else
11381 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC}"
11382 fi
698dcdb6 11383
3a922bb4
RL
11384 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
11385 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
11386
11387 WX_TARGET_LIBRARY_TYPE="a"
10f2d63a 11388fi
10f2d63a 11389
d08b457b
GD
11390if test "$wxUSE_MAC" = 1; then
11391 WX_ALL="${WX_ALL} \$(build_libdir)/lib${WX_LIBRARY}.r"
11392 # Extract the first word of "Rez", so it can be a program name with args.
11393set dummy Rez; ac_word=$2
11394echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
683dccda 11395echo "configure:11396: checking for $ac_word" >&5
d08b457b
GD
11396if eval "test \"`echo '$''{'ac_cv_prog_RESCOMP'+set}'`\" = set"; then
11397 echo $ac_n "(cached) $ac_c" 1>&6
11398else
11399 if test -n "$RESCOMP"; then
11400 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
11401else
11402 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
11403 ac_dummy="$PATH"
11404 for ac_dir in $ac_dummy; do
11405 test -z "$ac_dir" && ac_dir=.
11406 if test -f $ac_dir/$ac_word; then
11407 ac_cv_prog_RESCOMP="Rez"
11408 break
11409 fi
11410 done
11411 IFS="$ac_save_ifs"
11412 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
11413fi
11414fi
11415RESCOMP="$ac_cv_prog_RESCOMP"
11416if test -n "$RESCOMP"; then
11417 echo "$ac_t""$RESCOMP" 1>&6
11418else
11419 echo "$ac_t""no" 1>&6
11420fi
11421
11422 # Extract the first word of "Derez", so it can be a program name with args.
11423set dummy Derez; ac_word=$2
11424echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
683dccda 11425echo "configure:11426: checking for $ac_word" >&5
d08b457b
GD
11426if eval "test \"`echo '$''{'ac_cv_prog_DEREZ'+set}'`\" = set"; then
11427 echo $ac_n "(cached) $ac_c" 1>&6
11428else
11429 if test -n "$DEREZ"; then
11430 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
11431else
11432 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
11433 ac_dummy="$PATH"
11434 for ac_dir in $ac_dummy; do
11435 test -z "$ac_dir" && ac_dir=.
11436 if test -f $ac_dir/$ac_word; then
11437 ac_cv_prog_DEREZ="Derez"
11438 break
11439 fi
11440 done
11441 IFS="$ac_save_ifs"
11442 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/Derez"
11443fi
11444fi
11445DEREZ="$ac_cv_prog_DEREZ"
11446if test -n "$DEREZ"; then
11447 echo "$ac_t""$DEREZ" 1>&6
11448else
11449 echo "$ac_t""no" 1>&6
11450fi
11451
11452 LIBWXMACRES="\$(top_builddir)/lib/lib${WX_LIBRARY}.r"
11453 LIBWXMACRESCOMP="\$(RESCOMP) Carbon.r -t APPL ${LIBWXMACRES} -o \$(BIN_PROGRAM)"
11454fi
11455
3a922bb4
RL
11456
11457for ac_hdr in strings.h
9cfadba2 11458do
698dcdb6
VZ
11459ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11460echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
683dccda 11461echo "configure:11462: checking for $ac_hdr" >&5
698dcdb6
VZ
11462if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11463 echo $ac_n "(cached) $ac_c" 1>&6
11464else
11465 cat > conftest.$ac_ext <<EOF
683dccda 11466#line 11467 "configure"
9cfadba2 11467#include "confdefs.h"
698dcdb6
VZ
11468#include <$ac_hdr>
11469EOF
11470ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
683dccda 11471{ (eval echo configure:11472: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
11472ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11473if test -z "$ac_err"; then
11474 rm -rf conftest*
11475 eval "ac_cv_header_$ac_safe=yes"
6232543b 11476else
698dcdb6
VZ
11477 echo "$ac_err" >&5
11478 echo "configure: failed program was:" >&5
9cfadba2 11479 cat conftest.$ac_ext >&5
698dcdb6
VZ
11480 rm -rf conftest*
11481 eval "ac_cv_header_$ac_safe=no"
9cfadba2 11482fi
698dcdb6 11483rm -f conftest*
9cfadba2 11484fi
698dcdb6
VZ
11485if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11486 echo "$ac_t""yes" 1>&6
11487 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11488 cat >> confdefs.h <<EOF
11489#define $ac_tr_hdr 1
9cfadba2 11490EOF
698dcdb6
VZ
11491
11492else
11493 echo "$ac_t""no" 1>&6
9cfadba2
VZ
11494fi
11495done
10f2d63a 11496
3a922bb4 11497for ac_hdr in stdlib.h
10f2d63a 11498do
698dcdb6
VZ
11499ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11500echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
683dccda 11501echo "configure:11502: checking for $ac_hdr" >&5
698dcdb6
VZ
11502if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11503 echo $ac_n "(cached) $ac_c" 1>&6
11504else
11505 cat > conftest.$ac_ext <<EOF
683dccda 11506#line 11507 "configure"
10f2d63a 11507#include "confdefs.h"
698dcdb6
VZ
11508#include <$ac_hdr>
11509EOF
11510ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
683dccda 11511{ (eval echo configure:11512: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
11512ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11513if test -z "$ac_err"; then
11514 rm -rf conftest*
11515 eval "ac_cv_header_$ac_safe=yes"
6232543b 11516else
698dcdb6
VZ
11517 echo "$ac_err" >&5
11518 echo "configure: failed program was:" >&5
10f2d63a 11519 cat conftest.$ac_ext >&5
698dcdb6
VZ
11520 rm -rf conftest*
11521 eval "ac_cv_header_$ac_safe=no"
10f2d63a 11522fi
698dcdb6 11523rm -f conftest*
10f2d63a 11524fi
698dcdb6
VZ
11525if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11526 echo "$ac_t""yes" 1>&6
11527 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11528 cat >> confdefs.h <<EOF
11529#define $ac_tr_hdr 1
10f2d63a 11530EOF
698dcdb6
VZ
11531
11532else
11533 echo "$ac_t""no" 1>&6
10f2d63a
VZ
11534fi
11535done
11536
3a922bb4 11537for ac_hdr in unistd.h
10f2d63a 11538do
698dcdb6
VZ
11539ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11540echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
683dccda 11541echo "configure:11542: checking for $ac_hdr" >&5
698dcdb6
VZ
11542if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11543 echo $ac_n "(cached) $ac_c" 1>&6
11544else
11545 cat > conftest.$ac_ext <<EOF
683dccda 11546#line 11547 "configure"
10f2d63a 11547#include "confdefs.h"
698dcdb6
VZ
11548#include <$ac_hdr>
11549EOF
11550ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
683dccda 11551{ (eval echo configure:11552: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
11552ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11553if test -z "$ac_err"; then
11554 rm -rf conftest*
11555 eval "ac_cv_header_$ac_safe=yes"
6f72b082 11556else
698dcdb6
VZ
11557 echo "$ac_err" >&5
11558 echo "configure: failed program was:" >&5
6f72b082 11559 cat conftest.$ac_ext >&5
698dcdb6
VZ
11560 rm -rf conftest*
11561 eval "ac_cv_header_$ac_safe=no"
6f72b082 11562fi
698dcdb6 11563rm -f conftest*
6f72b082 11564fi
698dcdb6
VZ
11565if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11566 echo "$ac_t""yes" 1>&6
11567 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11568 cat >> confdefs.h <<EOF
11569#define $ac_tr_hdr 1
6f72b082 11570EOF
698dcdb6
VZ
11571
11572else
11573 echo "$ac_t""no" 1>&6
6f72b082
OK
11574fi
11575done
11576
3a922bb4 11577for ac_hdr in wchar.h
6f72b082 11578do
698dcdb6
VZ
11579ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11580echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
683dccda 11581echo "configure:11582: checking for $ac_hdr" >&5
698dcdb6
VZ
11582if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11583 echo $ac_n "(cached) $ac_c" 1>&6
11584else
11585 cat > conftest.$ac_ext <<EOF
683dccda 11586#line 11587 "configure"
6f72b082 11587#include "confdefs.h"
698dcdb6
VZ
11588#include <$ac_hdr>
11589EOF
11590ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
683dccda 11591{ (eval echo configure:11592: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
11592ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11593if test -z "$ac_err"; then
11594 rm -rf conftest*
11595 eval "ac_cv_header_$ac_safe=yes"
6f72b082 11596else
698dcdb6
VZ
11597 echo "$ac_err" >&5
11598 echo "configure: failed program was:" >&5
6f72b082 11599 cat conftest.$ac_ext >&5
698dcdb6
VZ
11600 rm -rf conftest*
11601 eval "ac_cv_header_$ac_safe=no"
6f72b082 11602fi
698dcdb6 11603rm -f conftest*
6f72b082 11604fi
698dcdb6
VZ
11605if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11606 echo "$ac_t""yes" 1>&6
11607 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11608 cat >> confdefs.h <<EOF
11609#define $ac_tr_hdr 1
6f72b082 11610EOF
698dcdb6
VZ
11611
11612else
11613 echo "$ac_t""no" 1>&6
6f72b082
OK
11614fi
11615done
11616
3a922bb4 11617for ac_hdr in wcstr.h
6f72b082 11618do
698dcdb6
VZ
11619ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11620echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
683dccda 11621echo "configure:11622: checking for $ac_hdr" >&5
698dcdb6
VZ
11622if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11623 echo $ac_n "(cached) $ac_c" 1>&6
11624else
11625 cat > conftest.$ac_ext <<EOF
683dccda 11626#line 11627 "configure"
6f72b082 11627#include "confdefs.h"
698dcdb6
VZ
11628#include <$ac_hdr>
11629EOF
11630ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
683dccda 11631{ (eval echo configure:11632: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
11632ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11633if test -z "$ac_err"; then
11634 rm -rf conftest*
11635 eval "ac_cv_header_$ac_safe=yes"
10f2d63a 11636else
698dcdb6
VZ
11637 echo "$ac_err" >&5
11638 echo "configure: failed program was:" >&5
10f2d63a 11639 cat conftest.$ac_ext >&5
698dcdb6
VZ
11640 rm -rf conftest*
11641 eval "ac_cv_header_$ac_safe=no"
10f2d63a 11642fi
698dcdb6 11643rm -f conftest*
10f2d63a 11644fi
698dcdb6
VZ
11645if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11646 echo "$ac_t""yes" 1>&6
11647 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11648 cat >> confdefs.h <<EOF
11649#define $ac_tr_hdr 1
10f2d63a 11650EOF
698dcdb6
VZ
11651
11652else
11653 echo "$ac_t""no" 1>&6
10f2d63a
VZ
11654fi
11655done
11656
3a922bb4 11657for ac_hdr in fnmatch.h
0fb0dd83 11658do
698dcdb6
VZ
11659ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11660echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
683dccda 11661echo "configure:11662: checking for $ac_hdr" >&5
698dcdb6
VZ
11662if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11663 echo $ac_n "(cached) $ac_c" 1>&6
11664else
11665 cat > conftest.$ac_ext <<EOF
683dccda 11666#line 11667 "configure"
0fb0dd83 11667#include "confdefs.h"
698dcdb6
VZ
11668#include <$ac_hdr>
11669EOF
11670ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
683dccda 11671{ (eval echo configure:11672: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
11672ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11673if test -z "$ac_err"; then
11674 rm -rf conftest*
11675 eval "ac_cv_header_$ac_safe=yes"
0fb0dd83 11676else
698dcdb6
VZ
11677 echo "$ac_err" >&5
11678 echo "configure: failed program was:" >&5
0fb0dd83 11679 cat conftest.$ac_ext >&5
698dcdb6
VZ
11680 rm -rf conftest*
11681 eval "ac_cv_header_$ac_safe=no"
0fb0dd83 11682fi
698dcdb6 11683rm -f conftest*
0fb0dd83 11684fi
698dcdb6
VZ
11685if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11686 echo "$ac_t""yes" 1>&6
11687 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11688 cat >> confdefs.h <<EOF
11689#define $ac_tr_hdr 1
0fb0dd83 11690EOF
698dcdb6
VZ
11691
11692else
11693 echo "$ac_t""no" 1>&6
0fb0dd83
RR
11694fi
11695done
11696
3a922bb4 11697for ac_hdr in iconv.h
1f8ae82f 11698do
698dcdb6
VZ
11699ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11700echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
683dccda 11701echo "configure:11702: checking for $ac_hdr" >&5
698dcdb6
VZ
11702if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11703 echo $ac_n "(cached) $ac_c" 1>&6
11704else
11705 cat > conftest.$ac_ext <<EOF
683dccda 11706#line 11707 "configure"
1f8ae82f 11707#include "confdefs.h"
698dcdb6
VZ
11708#include <$ac_hdr>
11709EOF
11710ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
683dccda 11711{ (eval echo configure:11712: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
11712ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11713if test -z "$ac_err"; then
11714 rm -rf conftest*
11715 eval "ac_cv_header_$ac_safe=yes"
1f8ae82f 11716else
698dcdb6
VZ
11717 echo "$ac_err" >&5
11718 echo "configure: failed program was:" >&5
1f8ae82f 11719 cat conftest.$ac_ext >&5
698dcdb6
VZ
11720 rm -rf conftest*
11721 eval "ac_cv_header_$ac_safe=no"
1f8ae82f 11722fi
698dcdb6 11723rm -f conftest*
1f8ae82f 11724fi
698dcdb6
VZ
11725if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11726 echo "$ac_t""yes" 1>&6
11727 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11728 cat >> confdefs.h <<EOF
11729#define $ac_tr_hdr 1
1f8ae82f 11730EOF
698dcdb6
VZ
11731
11732else
11733 echo "$ac_t""no" 1>&6
1f8ae82f
GD
11734fi
11735done
11736
3a922bb4 11737for ac_hdr in langinfo.h
10f2d63a 11738do
698dcdb6
VZ
11739ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11740echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
683dccda 11741echo "configure:11742: checking for $ac_hdr" >&5
698dcdb6
VZ
11742if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11743 echo $ac_n "(cached) $ac_c" 1>&6
11744else
11745 cat > conftest.$ac_ext <<EOF
683dccda 11746#line 11747 "configure"
10f2d63a 11747#include "confdefs.h"
698dcdb6
VZ
11748#include <$ac_hdr>
11749EOF
11750ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
683dccda 11751{ (eval echo configure:11752: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
11752ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11753if test -z "$ac_err"; then
11754 rm -rf conftest*
11755 eval "ac_cv_header_$ac_safe=yes"
10f2d63a 11756else
698dcdb6
VZ
11757 echo "$ac_err" >&5
11758 echo "configure: failed program was:" >&5
10f2d63a 11759 cat conftest.$ac_ext >&5
698dcdb6
VZ
11760 rm -rf conftest*
11761 eval "ac_cv_header_$ac_safe=no"
10f2d63a 11762fi
698dcdb6 11763rm -f conftest*
10f2d63a 11764fi
698dcdb6
VZ
11765if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11766 echo "$ac_t""yes" 1>&6
11767 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11768 cat >> confdefs.h <<EOF
11769#define $ac_tr_hdr 1
10f2d63a 11770EOF
698dcdb6
VZ
11771
11772else
11773 echo "$ac_t""no" 1>&6
10f2d63a
VZ
11774fi
11775done
11776
10f2d63a 11777
3a922bb4
RL
11778if test "$wxUSE_GUI" = "yes"; then
11779 if test "$wxUSE_UNIX" = "yes"; then
11780 for ac_hdr in X11/XKBlib.h
29fd3c0c
VS
11781do
11782ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11783echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
683dccda 11784echo "configure:11785: checking for $ac_hdr" >&5
29fd3c0c
VS
11785if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11786 echo $ac_n "(cached) $ac_c" 1>&6
11787else
11788 cat > conftest.$ac_ext <<EOF
683dccda 11789#line 11790 "configure"
29fd3c0c
VS
11790#include "confdefs.h"
11791#include <$ac_hdr>
11792EOF
11793ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
683dccda 11794{ (eval echo configure:11795: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
29fd3c0c
VS
11795ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11796if test -z "$ac_err"; then
11797 rm -rf conftest*
11798 eval "ac_cv_header_$ac_safe=yes"
11799else
11800 echo "$ac_err" >&5
11801 echo "configure: failed program was:" >&5
11802 cat conftest.$ac_ext >&5
11803 rm -rf conftest*
11804 eval "ac_cv_header_$ac_safe=no"
11805fi
11806rm -f conftest*
11807fi
11808if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11809 echo "$ac_t""yes" 1>&6
11810 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11811 cat >> confdefs.h <<EOF
11812#define $ac_tr_hdr 1
11813EOF
11814
11815else
11816 echo "$ac_t""no" 1>&6
11817fi
11818done
11819
3a922bb4 11820 fi
29fd3c0c
VS
11821fi
11822
698dcdb6
VZ
11823
11824echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
683dccda 11825echo "configure:11826: checking for ANSI C header files" >&5
698dcdb6
VZ
11826if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
11827 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 11828else
698dcdb6 11829 cat > conftest.$ac_ext <<EOF
683dccda 11830#line 11831 "configure"
10f2d63a
VZ
11831#include "confdefs.h"
11832#include <stdlib.h>
11833#include <stdarg.h>
11834#include <string.h>
11835#include <float.h>
698dcdb6
VZ
11836EOF
11837ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
683dccda 11838{ (eval echo configure:11839: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
11839ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11840if test -z "$ac_err"; then
11841 rm -rf conftest*
10f2d63a
VZ
11842 ac_cv_header_stdc=yes
11843else
698dcdb6
VZ
11844 echo "$ac_err" >&5
11845 echo "configure: failed program was:" >&5
10f2d63a 11846 cat conftest.$ac_ext >&5
698dcdb6 11847 rm -rf conftest*
10f2d63a
VZ
11848 ac_cv_header_stdc=no
11849fi
698dcdb6 11850rm -f conftest*
10f2d63a
VZ
11851
11852if test $ac_cv_header_stdc = yes; then
11853 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
698dcdb6 11854cat > conftest.$ac_ext <<EOF
683dccda 11855#line 11856 "configure"
10f2d63a
VZ
11856#include "confdefs.h"
11857#include <string.h>
698dcdb6 11858EOF
10f2d63a
VZ
11859if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11860 egrep "memchr" >/dev/null 2>&1; then
11861 :
11862else
698dcdb6 11863 rm -rf conftest*
10f2d63a
VZ
11864 ac_cv_header_stdc=no
11865fi
11866rm -f conftest*
11867
11868fi
11869
11870if test $ac_cv_header_stdc = yes; then
11871 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
698dcdb6 11872cat > conftest.$ac_ext <<EOF
683dccda 11873#line 11874 "configure"
10f2d63a
VZ
11874#include "confdefs.h"
11875#include <stdlib.h>
698dcdb6 11876EOF
10f2d63a
VZ
11877if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11878 egrep "free" >/dev/null 2>&1; then
11879 :
11880else
698dcdb6 11881 rm -rf conftest*
10f2d63a
VZ
11882 ac_cv_header_stdc=no
11883fi
11884rm -f conftest*
11885
11886fi
11887
11888if test $ac_cv_header_stdc = yes; then
11889 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
698dcdb6 11890if test "$cross_compiling" = yes; then
10f2d63a
VZ
11891 :
11892else
698dcdb6 11893 cat > conftest.$ac_ext <<EOF
683dccda 11894#line 11895 "configure"
10f2d63a
VZ
11895#include "confdefs.h"
11896#include <ctype.h>
698dcdb6
VZ
11897#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11898#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1e487827 11899#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
698dcdb6
VZ
11900int main () { int i; for (i = 0; i < 256; i++)
11901if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
11902exit (0); }
11903
11904EOF
683dccda 11905if { (eval echo configure:11906: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6 11906then
10f2d63a
VZ
11907 :
11908else
698dcdb6
VZ
11909 echo "configure: failed program was:" >&5
11910 cat conftest.$ac_ext >&5
11911 rm -fr conftest*
11912 ac_cv_header_stdc=no
10f2d63a 11913fi
698dcdb6 11914rm -fr conftest*
10f2d63a 11915fi
698dcdb6 11916
10f2d63a
VZ
11917fi
11918fi
1e487827 11919
698dcdb6
VZ
11920echo "$ac_t""$ac_cv_header_stdc" 1>&6
11921if test $ac_cv_header_stdc = yes; then
11922 cat >> confdefs.h <<\EOF
10f2d63a
VZ
11923#define STDC_HEADERS 1
11924EOF
11925
11926fi
11927
698dcdb6 11928echo $ac_n "checking for mode_t""... $ac_c" 1>&6
683dccda 11929echo "configure:11930: checking for mode_t" >&5
698dcdb6
VZ
11930if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
11931 echo $ac_n "(cached) $ac_c" 1>&6
1e487827 11932else
698dcdb6 11933 cat > conftest.$ac_ext <<EOF
683dccda 11934#line 11935 "configure"
1e487827 11935#include "confdefs.h"
698dcdb6
VZ
11936#include <sys/types.h>
11937#if STDC_HEADERS
11938#include <stdlib.h>
11939#include <stddef.h>
11940#endif
11941EOF
11942if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11943 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
11944 rm -rf conftest*
10f2d63a
VZ
11945 ac_cv_type_mode_t=yes
11946else
698dcdb6
VZ
11947 rm -rf conftest*
11948 ac_cv_type_mode_t=no
703e0a69 11949fi
698dcdb6 11950rm -f conftest*
1e487827 11951
698dcdb6
VZ
11952fi
11953echo "$ac_t""$ac_cv_type_mode_t" 1>&6
11954if test $ac_cv_type_mode_t = no; then
11955 cat >> confdefs.h <<\EOF
10f2d63a
VZ
11956#define mode_t int
11957EOF
11958
11959fi
11960
698dcdb6 11961echo $ac_n "checking for off_t""... $ac_c" 1>&6
683dccda 11962echo "configure:11963: checking for off_t" >&5
698dcdb6
VZ
11963if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
11964 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 11965else
698dcdb6 11966 cat > conftest.$ac_ext <<EOF
683dccda 11967#line 11968 "configure"
10f2d63a 11968#include "confdefs.h"
698dcdb6
VZ
11969#include <sys/types.h>
11970#if STDC_HEADERS
11971#include <stdlib.h>
11972#include <stddef.h>
11973#endif
11974EOF
11975if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11976 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
11977 rm -rf conftest*
10f2d63a
VZ
11978 ac_cv_type_off_t=yes
11979else
698dcdb6
VZ
11980 rm -rf conftest*
11981 ac_cv_type_off_t=no
703e0a69 11982fi
698dcdb6 11983rm -f conftest*
1e487827 11984
698dcdb6
VZ
11985fi
11986echo "$ac_t""$ac_cv_type_off_t" 1>&6
11987if test $ac_cv_type_off_t = no; then
11988 cat >> confdefs.h <<\EOF
10f2d63a
VZ
11989#define off_t long
11990EOF
11991
11992fi
11993
698dcdb6 11994echo $ac_n "checking for pid_t""... $ac_c" 1>&6
683dccda 11995echo "configure:11996: checking for pid_t" >&5
698dcdb6
VZ
11996if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
11997 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 11998else
698dcdb6 11999 cat > conftest.$ac_ext <<EOF
683dccda 12000#line 12001 "configure"
10f2d63a 12001#include "confdefs.h"
698dcdb6
VZ
12002#include <sys/types.h>
12003#if STDC_HEADERS
12004#include <stdlib.h>
12005#include <stddef.h>
12006#endif
12007EOF
12008if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12009 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
12010 rm -rf conftest*
10f2d63a
VZ
12011 ac_cv_type_pid_t=yes
12012else
698dcdb6
VZ
12013 rm -rf conftest*
12014 ac_cv_type_pid_t=no
703e0a69 12015fi
698dcdb6 12016rm -f conftest*
1e487827 12017
698dcdb6
VZ
12018fi
12019echo "$ac_t""$ac_cv_type_pid_t" 1>&6
12020if test $ac_cv_type_pid_t = no; then
12021 cat >> confdefs.h <<\EOF
10f2d63a
VZ
12022#define pid_t int
12023EOF
12024
12025fi
12026
698dcdb6 12027echo $ac_n "checking for size_t""... $ac_c" 1>&6
683dccda 12028echo "configure:12029: checking for size_t" >&5
698dcdb6
VZ
12029if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
12030 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 12031else
698dcdb6 12032 cat > conftest.$ac_ext <<EOF
683dccda 12033#line 12034 "configure"
10f2d63a 12034#include "confdefs.h"
698dcdb6
VZ
12035#include <sys/types.h>
12036#if STDC_HEADERS
12037#include <stdlib.h>
12038#include <stddef.h>
12039#endif
12040EOF
12041if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12042 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
12043 rm -rf conftest*
10f2d63a
VZ
12044 ac_cv_type_size_t=yes
12045else
698dcdb6
VZ
12046 rm -rf conftest*
12047 ac_cv_type_size_t=no
703e0a69 12048fi
698dcdb6 12049rm -f conftest*
1e487827 12050
698dcdb6
VZ
12051fi
12052echo "$ac_t""$ac_cv_type_size_t" 1>&6
12053if test $ac_cv_type_size_t = no; then
12054 cat >> confdefs.h <<\EOF
10f2d63a
VZ
12055#define size_t unsigned
12056EOF
12057
12058fi
12059
698dcdb6 12060echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
683dccda 12061echo "configure:12062: checking for uid_t in sys/types.h" >&5
698dcdb6
VZ
12062if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
12063 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 12064else
698dcdb6 12065 cat > conftest.$ac_ext <<EOF
683dccda 12066#line 12067 "configure"
10f2d63a
VZ
12067#include "confdefs.h"
12068#include <sys/types.h>
698dcdb6 12069EOF
10f2d63a
VZ
12070if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12071 egrep "uid_t" >/dev/null 2>&1; then
698dcdb6 12072 rm -rf conftest*
10f2d63a
VZ
12073 ac_cv_type_uid_t=yes
12074else
698dcdb6 12075 rm -rf conftest*
10f2d63a
VZ
12076 ac_cv_type_uid_t=no
12077fi
12078rm -f conftest*
12079
12080fi
1e487827 12081
698dcdb6
VZ
12082echo "$ac_t""$ac_cv_type_uid_t" 1>&6
12083if test $ac_cv_type_uid_t = no; then
12084 cat >> confdefs.h <<\EOF
10f2d63a
VZ
12085#define uid_t int
12086EOF
12087
698dcdb6 12088 cat >> confdefs.h <<\EOF
10f2d63a
VZ
12089#define gid_t int
12090EOF
12091
12092fi
12093
1e487827 12094
698dcdb6 12095echo $ac_n "checking for wchar_t""... $ac_c" 1>&6
683dccda 12096echo "configure:12097: checking for wchar_t" >&5
698dcdb6
VZ
12097if eval "test \"`echo '$''{'wx_cv_type_wchar_t'+set}'`\" = set"; then
12098 echo $ac_n "(cached) $ac_c" 1>&6
12099else
12100
12101 cat > conftest.$ac_ext <<EOF
683dccda 12102#line 12103 "configure"
0046ff7c
VS
12103#include "confdefs.h"
12104#include <wchar.h>
698dcdb6 12105int main() {
0046ff7c 12106
d836ee96
VZ
12107 wchar_t wc, *ws;
12108 wc = L'a';
12109 ws = L"Hello, world!";
698dcdb6
VZ
12110
12111; return 0; }
12112EOF
683dccda 12113if { (eval echo configure:12114: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 12114 rm -rf conftest*
1f8ae82f
GD
12115 wx_cv_type_wchar_t=yes
12116else
698dcdb6
VZ
12117 echo "configure: failed program was:" >&5
12118 cat conftest.$ac_ext >&5
12119 rm -rf conftest*
12120 cat > conftest.$ac_ext <<EOF
683dccda 12121#line 12122 "configure"
1f8ae82f
GD
12122#include "confdefs.h"
12123#include <stdlib.h>
698dcdb6 12124int main() {
1f8ae82f 12125
d836ee96
VZ
12126 wchar_t wc, *ws;
12127 wc = L'a';
12128 ws = L"Hello, world!";
698dcdb6
VZ
12129
12130; return 0; }
12131EOF
683dccda 12132if { (eval echo configure:12133: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 12133 rm -rf conftest*
0046ff7c
VS
12134 wx_cv_type_wchar_t=yes
12135else
698dcdb6
VZ
12136 echo "configure: failed program was:" >&5
12137 cat conftest.$ac_ext >&5
12138 rm -rf conftest*
12139 wx_cv_type_wchar_t=no
0046ff7c 12140fi
698dcdb6 12141rm -f conftest*
d836ee96 12142
6232543b 12143fi
698dcdb6 12144rm -f conftest*
703e0a69 12145
1e487827 12146fi
698dcdb6
VZ
12147
12148echo "$ac_t""$wx_cv_type_wchar_t" 1>&6
d836ee96
VZ
12149
12150if test "$wx_cv_type_wchar_t" = "yes"; then
698dcdb6 12151 cat >> confdefs.h <<\EOF
0046ff7c
VS
12152#define wxUSE_WCHAR_T 1
12153EOF
12154
12155fi
12156
19af3b06
VZ
12157
12158ac_ext=C
12159# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12160ac_cpp='$CXXCPP $CPPFLAGS'
12161ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12162ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12163cross_compiling=$ac_cv_prog_cxx_cross
12164
d836ee96 12165echo $ac_n "checking if size_t is unsigned int""... $ac_c" 1>&6
683dccda 12166echo "configure:12167: checking if size_t is unsigned int" >&5
d836ee96
VZ
12167if eval "test \"`echo '$''{'wx_cv_size_t_is_uint'+set}'`\" = set"; then
12168 echo $ac_n "(cached) $ac_c" 1>&6
12169else
dd2c8b7c 12170 cat > conftest.$ac_ext <<EOF
683dccda 12171#line 12172 "configure"
d836ee96
VZ
12172#include "confdefs.h"
12173#include <stddef.h>
12174int main() {
12175
dd2c8b7c
VZ
12176 return 0; }
12177
d836ee96 12178 struct Foo { void foo(size_t); void foo(unsigned int); };
dd2c8b7c
VZ
12179
12180 int bar() {
d836ee96
VZ
12181
12182; return 0; }
12183EOF
683dccda 12184if { (eval echo configure:12185: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d836ee96
VZ
12185 rm -rf conftest*
12186 wx_cv_size_t_is_uint=no
12187else
12188 echo "configure: failed program was:" >&5
12189 cat conftest.$ac_ext >&5
12190 rm -rf conftest*
12191 wx_cv_size_t_is_uint=yes
12192
12193fi
12194rm -f conftest*
12195
12196fi
12197
12198echo "$ac_t""$wx_cv_size_t_is_uint" 1>&6
12199
12200if test "$wx_cv_size_t_is_uint" = "yes"; then
12201 cat >> confdefs.h <<\EOF
12202#define wxSIZE_T_IS_UINT 1
12203EOF
12204
12205else
12206 echo $ac_n "checking if size_t is unsigned long""... $ac_c" 1>&6
683dccda 12207echo "configure:12208: checking if size_t is unsigned long" >&5
d836ee96
VZ
12208if eval "test \"`echo '$''{'wx_cv_size_t_is_ulong'+set}'`\" = set"; then
12209 echo $ac_n "(cached) $ac_c" 1>&6
12210else
12211 cat > conftest.$ac_ext <<EOF
683dccda 12212#line 12213 "configure"
d836ee96
VZ
12213#include "confdefs.h"
12214#include <stddef.h>
12215int main() {
12216
dd2c8b7c
VZ
12217 return 0; }
12218
d836ee96 12219 struct Foo { void foo(size_t); void foo(unsigned long); };
dd2c8b7c
VZ
12220
12221 int bar() {
d836ee96
VZ
12222
12223; return 0; }
12224EOF
683dccda 12225if { (eval echo configure:12226: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d836ee96
VZ
12226 rm -rf conftest*
12227 wx_cv_size_t_is_ulong=no
12228else
12229 echo "configure: failed program was:" >&5
12230 cat conftest.$ac_ext >&5
12231 rm -rf conftest*
12232 wx_cv_size_t_is_ulong=yes
12233
12234fi
12235rm -f conftest*
12236
12237fi
12238
12239echo "$ac_t""$wx_cv_size_t_is_ulong" 1>&6
12240
12241 if test "$wx_cv_size_t_is_ulong" = "yes"; then
12242 cat >> confdefs.h <<\EOF
12243#define wxSIZE_T_IS_ULONG 1
12244EOF
12245
12246 fi
12247fi
12248
19af3b06
VZ
12249ac_ext=c
12250# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12251ac_cpp='$CPP $CPPFLAGS'
12252ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12253ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12254cross_compiling=$ac_cv_prog_cc_cross
12255
12256
1e487827 12257
698dcdb6 12258echo $ac_n "checking for pw_gecos in struct passwd""... $ac_c" 1>&6
683dccda 12259echo "configure:12260: checking for pw_gecos in struct passwd" >&5
698dcdb6
VZ
12260if eval "test \"`echo '$''{'wx_cv_struct_pw_gecos'+set}'`\" = set"; then
12261 echo $ac_n "(cached) $ac_c" 1>&6
12262else
12263
12264 cat > conftest.$ac_ext <<EOF
683dccda 12265#line 12266 "configure"
b12915c1
VZ
12266#include "confdefs.h"
12267#include <pwd.h>
698dcdb6 12268int main() {
b12915c1
VZ
12269
12270 char *p;
12271 struct passwd *pw;
12272 p = pw->pw_gecos;
698dcdb6
VZ
12273
12274; return 0; }
12275EOF
683dccda 12276if { (eval echo configure:12277: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
12277 rm -rf conftest*
12278
b12915c1 12279 wx_cv_struct_pw_gecos=yes
698dcdb6 12280
b12915c1 12281else
698dcdb6
VZ
12282 echo "configure: failed program was:" >&5
12283 cat conftest.$ac_ext >&5
12284 rm -rf conftest*
12285
b12915c1 12286 wx_cv_struct_pw_gecos=no
698dcdb6
VZ
12287
12288
6232543b 12289fi
698dcdb6
VZ
12290rm -f conftest*
12291
703e0a69 12292
1e487827 12293fi
698dcdb6
VZ
12294
12295echo "$ac_t""$wx_cv_struct_pw_gecos" 1>&6
b12915c1 12296
bd3277fe 12297if test "$wx_cv_struct_pw_gecos" = "yes"; then
698dcdb6 12298 cat >> confdefs.h <<\EOF
bd3277fe
VZ
12299#define HAVE_PW_GECOS 1
12300EOF
12301
12302fi
12303
698dcdb6
VZ
12304
12305echo $ac_n "checking for working const""... $ac_c" 1>&6
683dccda 12306echo "configure:12307: checking for working const" >&5
698dcdb6
VZ
12307if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
12308 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 12309else
698dcdb6 12310 cat > conftest.$ac_ext <<EOF
683dccda 12311#line 12312 "configure"
10f2d63a 12312#include "confdefs.h"
698dcdb6
VZ
12313
12314int main() {
12315
12316/* Ultrix mips cc rejects this. */
12317typedef int charset[2]; const charset x;
12318/* SunOS 4.1.1 cc rejects this. */
12319char const *const *ccp;
12320char **p;
12321/* NEC SVR4.0.2 mips cc rejects this. */
12322struct point {int x, y;};
12323static struct point const zero = {0,0};
12324/* AIX XL C 1.02.0.0 rejects this.
12325 It does not let you subtract one const X* pointer from another in an arm
12326 of an if-expression whose if-part is not a constant expression */
12327const char *g = "string";
12328ccp = &g + (g ? g-g : 0);
12329/* HPUX 7.0 cc rejects these. */
12330++ccp;
12331p = (char**) ccp;
12332ccp = (char const *const *) p;
12333{ /* SCO 3.2v4 cc rejects this. */
12334 char *t;
12335 char const *s = 0 ? (char *) 0 : (char const *) 0;
12336
12337 *t++ = 0;
10f2d63a 12338}
698dcdb6
VZ
12339{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
12340 int x[] = {25, 17};
12341 const int *foo = &x[0];
12342 ++foo;
703e0a69 12343}
698dcdb6
VZ
12344{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12345 typedef const int *iptr;
12346 iptr p = 0;
12347 ++p;
6232543b 12348}
698dcdb6
VZ
12349{ /* AIX XL C 1.02.0.0 rejects this saying
12350 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12351 struct s { int j; const int *ap[3]; };
12352 struct s *b; b->j = 5;
1e487827 12353}
698dcdb6
VZ
12354{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12355 const int foo = 10;
12356}
12357
12358; return 0; }
12359EOF
683dccda 12360if { (eval echo configure:12361: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 12361 rm -rf conftest*
10f2d63a
VZ
12362 ac_cv_c_const=yes
12363else
698dcdb6
VZ
12364 echo "configure: failed program was:" >&5
12365 cat conftest.$ac_ext >&5
12366 rm -rf conftest*
12367 ac_cv_c_const=no
10f2d63a 12368fi
698dcdb6 12369rm -f conftest*
10f2d63a 12370fi
1e487827 12371
698dcdb6
VZ
12372echo "$ac_t""$ac_cv_c_const" 1>&6
12373if test $ac_cv_c_const = no; then
12374 cat >> confdefs.h <<\EOF
12375#define const
10f2d63a
VZ
12376EOF
12377
12378fi
12379
698dcdb6 12380echo $ac_n "checking for inline""... $ac_c" 1>&6
683dccda 12381echo "configure:12382: checking for inline" >&5
698dcdb6
VZ
12382if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
12383 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
12384else
12385 ac_cv_c_inline=no
12386for ac_kw in inline __inline__ __inline; do
698dcdb6 12387 cat > conftest.$ac_ext <<EOF
683dccda 12388#line 12389 "configure"
10f2d63a
VZ
12389#include "confdefs.h"
12390
698dcdb6
VZ
12391int main() {
12392} $ac_kw foo() {
12393; return 0; }
12394EOF
683dccda 12395if { (eval echo configure:12396: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 12396 rm -rf conftest*
10f2d63a
VZ
12397 ac_cv_c_inline=$ac_kw; break
12398else
698dcdb6
VZ
12399 echo "configure: failed program was:" >&5
12400 cat conftest.$ac_ext >&5
10f2d63a 12401fi
698dcdb6 12402rm -f conftest*
10f2d63a
VZ
12403done
12404
12405fi
698dcdb6
VZ
12406
12407echo "$ac_t""$ac_cv_c_inline" 1>&6
12408case "$ac_cv_c_inline" in
10f2d63a 12409 inline | yes) ;;
698dcdb6
VZ
12410 no) cat >> confdefs.h <<\EOF
12411#define inline
10f2d63a
VZ
12412EOF
12413 ;;
698dcdb6 12414 *) cat >> confdefs.h <<EOF
10f2d63a
VZ
12415#define inline $ac_cv_c_inline
12416EOF
12417 ;;
12418esac
12419
698dcdb6
VZ
12420
12421echo $ac_n "checking size of char""... $ac_c" 1>&6
683dccda 12422echo "configure:12423: checking size of char" >&5
698dcdb6
VZ
12423if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
12424 echo $ac_n "(cached) $ac_c" 1>&6
6232543b 12425else
1e487827 12426 if test "$cross_compiling" = yes; then
698dcdb6 12427 ac_cv_sizeof_char=1
1e487827 12428else
698dcdb6 12429 cat > conftest.$ac_ext <<EOF
683dccda 12430#line 12431 "configure"
1e487827 12431#include "confdefs.h"
698dcdb6
VZ
12432#include <stdio.h>
12433main()
1e487827 12434{
698dcdb6
VZ
12435 FILE *f=fopen("conftestval", "w");
12436 if (!f) exit(1);
12437 fprintf(f, "%d\n", sizeof(char));
12438 exit(0);
1e487827 12439}
698dcdb6 12440EOF
683dccda 12441if { (eval echo configure:12442: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6
VZ
12442then
12443 ac_cv_sizeof_char=`cat conftestval`
1e487827 12444else
698dcdb6
VZ
12445 echo "configure: failed program was:" >&5
12446 cat conftest.$ac_ext >&5
12447 rm -fr conftest*
1e487827
VS
12448 ac_cv_sizeof_char=0
12449fi
698dcdb6 12450rm -fr conftest*
1e487827 12451fi
10f2d63a 12452
1e487827 12453fi
698dcdb6
VZ
12454echo "$ac_t""$ac_cv_sizeof_char" 1>&6
12455cat >> confdefs.h <<EOF
12456#define SIZEOF_CHAR $ac_cv_sizeof_char
1e487827 12457EOF
6232543b 12458
703e0a69 12459
698dcdb6 12460echo $ac_n "checking size of short""... $ac_c" 1>&6
683dccda 12461echo "configure:12462: checking size of short" >&5
698dcdb6
VZ
12462if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
12463 echo $ac_n "(cached) $ac_c" 1>&6
1e487827 12464else
1e487827 12465 if test "$cross_compiling" = yes; then
698dcdb6 12466 ac_cv_sizeof_short=2
1e487827 12467else
698dcdb6 12468 cat > conftest.$ac_ext <<EOF
683dccda 12469#line 12470 "configure"
1e487827 12470#include "confdefs.h"
698dcdb6
VZ
12471#include <stdio.h>
12472main()
1e487827 12473{
698dcdb6
VZ
12474 FILE *f=fopen("conftestval", "w");
12475 if (!f) exit(1);
12476 fprintf(f, "%d\n", sizeof(short));
12477 exit(0);
1e487827 12478}
698dcdb6 12479EOF
683dccda 12480if { (eval echo configure:12481: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6
VZ
12481then
12482 ac_cv_sizeof_short=`cat conftestval`
1e487827 12483else
698dcdb6
VZ
12484 echo "configure: failed program was:" >&5
12485 cat conftest.$ac_ext >&5
12486 rm -fr conftest*
12487 ac_cv_sizeof_short=0
1e487827 12488fi
698dcdb6 12489rm -fr conftest*
1e487827 12490fi
698dcdb6 12491
1e487827 12492fi
698dcdb6
VZ
12493echo "$ac_t""$ac_cv_sizeof_short" 1>&6
12494cat >> confdefs.h <<EOF
12495#define SIZEOF_SHORT $ac_cv_sizeof_short
12496EOF
12497
12498
12499echo $ac_n "checking size of int *""... $ac_c" 1>&6
683dccda 12500echo "configure:12501: checking size of int *" >&5
698dcdb6
VZ
12501if eval "test \"`echo '$''{'ac_cv_sizeof_int_p'+set}'`\" = set"; then
12502 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
12503else
12504 if test "$cross_compiling" = yes; then
698dcdb6 12505 ac_cv_sizeof_int_p=4
10f2d63a 12506else
698dcdb6 12507 cat > conftest.$ac_ext <<EOF
683dccda 12508#line 12509 "configure"
10f2d63a 12509#include "confdefs.h"
698dcdb6
VZ
12510#include <stdio.h>
12511main()
10f2d63a 12512{
698dcdb6
VZ
12513 FILE *f=fopen("conftestval", "w");
12514 if (!f) exit(1);
12515 fprintf(f, "%d\n", sizeof(int *));
12516 exit(0);
10f2d63a 12517}
698dcdb6 12518EOF
683dccda 12519if { (eval echo configure:12520: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6
VZ
12520then
12521 ac_cv_sizeof_int_p=`cat conftestval`
10f2d63a 12522else
698dcdb6
VZ
12523 echo "configure: failed program was:" >&5
12524 cat conftest.$ac_ext >&5
12525 rm -fr conftest*
12526 ac_cv_sizeof_int_p=0
6232543b 12527fi
698dcdb6 12528rm -fr conftest*
1e487827 12529fi
698dcdb6 12530
1e487827 12531fi
698dcdb6
VZ
12532echo "$ac_t""$ac_cv_sizeof_int_p" 1>&6
12533cat >> confdefs.h <<EOF
12534#define SIZEOF_INT_P $ac_cv_sizeof_int_p
10f2d63a
VZ
12535EOF
12536
698dcdb6
VZ
12537
12538echo $ac_n "checking size of int""... $ac_c" 1>&6
683dccda 12539echo "configure:12540: checking size of int" >&5
698dcdb6
VZ
12540if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
12541 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
12542else
12543 if test "$cross_compiling" = yes; then
698dcdb6 12544 ac_cv_sizeof_int=4
703e0a69 12545else
698dcdb6 12546 cat > conftest.$ac_ext <<EOF
683dccda 12547#line 12548 "configure"
1e487827 12548#include "confdefs.h"
698dcdb6
VZ
12549#include <stdio.h>
12550main()
1e487827 12551{
698dcdb6
VZ
12552 FILE *f=fopen("conftestval", "w");
12553 if (!f) exit(1);
12554 fprintf(f, "%d\n", sizeof(int));
12555 exit(0);
1e487827 12556}
698dcdb6 12557EOF
683dccda 12558if { (eval echo configure:12559: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6
VZ
12559then
12560 ac_cv_sizeof_int=`cat conftestval`
12561else
12562 echo "configure: failed program was:" >&5
12563 cat conftest.$ac_ext >&5
12564 rm -fr conftest*
12565 ac_cv_sizeof_int=0
703e0a69 12566fi
698dcdb6
VZ
12567rm -fr conftest*
12568fi
12569
12570fi
12571echo "$ac_t""$ac_cv_sizeof_int" 1>&6
12572cat >> confdefs.h <<EOF
12573#define SIZEOF_INT $ac_cv_sizeof_int
12574EOF
12575
12576
12577echo $ac_n "checking size of long""... $ac_c" 1>&6
683dccda 12578echo "configure:12579: checking size of long" >&5
698dcdb6
VZ
12579if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
12580 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
12581else
12582 if test "$cross_compiling" = yes; then
698dcdb6 12583 ac_cv_sizeof_long=4
10f2d63a 12584else
698dcdb6 12585 cat > conftest.$ac_ext <<EOF
683dccda 12586#line 12587 "configure"
10f2d63a 12587#include "confdefs.h"
698dcdb6
VZ
12588#include <stdio.h>
12589main()
10f2d63a 12590{
698dcdb6
VZ
12591 FILE *f=fopen("conftestval", "w");
12592 if (!f) exit(1);
12593 fprintf(f, "%d\n", sizeof(long));
12594 exit(0);
10f2d63a 12595}
698dcdb6 12596EOF
683dccda 12597if { (eval echo configure:12598: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6
VZ
12598then
12599 ac_cv_sizeof_long=`cat conftestval`
10f2d63a 12600else
698dcdb6
VZ
12601 echo "configure: failed program was:" >&5
12602 cat conftest.$ac_ext >&5
12603 rm -fr conftest*
12604 ac_cv_sizeof_long=0
10f2d63a 12605fi
698dcdb6 12606rm -fr conftest*
10f2d63a 12607fi
698dcdb6 12608
10f2d63a 12609fi
698dcdb6
VZ
12610echo "$ac_t""$ac_cv_sizeof_long" 1>&6
12611cat >> confdefs.h <<EOF
12612#define SIZEOF_LONG $ac_cv_sizeof_long
12613EOF
12614
12615
12616echo $ac_n "checking size of long long""... $ac_c" 1>&6
683dccda 12617echo "configure:12618: checking size of long long" >&5
698dcdb6
VZ
12618if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
12619 echo $ac_n "(cached) $ac_c" 1>&6
12620else
12621 if test "$cross_compiling" = yes; then
12622 ac_cv_sizeof_long_long=0
12623else
12624 cat > conftest.$ac_ext <<EOF
683dccda 12625#line 12626 "configure"
698dcdb6
VZ
12626#include "confdefs.h"
12627#include <stdio.h>
12628main()
12629{
12630 FILE *f=fopen("conftestval", "w");
12631 if (!f) exit(1);
12632 fprintf(f, "%d\n", sizeof(long long));
12633 exit(0);
12634}
12635EOF
683dccda 12636if { (eval echo configure:12637: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6
VZ
12637then
12638 ac_cv_sizeof_long_long=`cat conftestval`
6232543b 12639else
698dcdb6
VZ
12640 echo "configure: failed program was:" >&5
12641 cat conftest.$ac_ext >&5
12642 rm -fr conftest*
6232543b
VS
12643 ac_cv_sizeof_long_long=0
12644fi
698dcdb6
VZ
12645rm -fr conftest*
12646fi
12647
703e0a69 12648fi
698dcdb6
VZ
12649echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
12650cat >> confdefs.h <<EOF
10f2d63a
VZ
12651#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
12652EOF
12653
1e487827 12654
698dcdb6
VZ
12655
12656echo $ac_n "checking size of wchar_t""... $ac_c" 1>&6
683dccda 12657echo "configure:12658: checking size of wchar_t" >&5
698dcdb6
VZ
12658if eval "test \"`echo '$''{'wx_cv_sizeof_wchar_t'+set}'`\" = set"; then
12659 echo $ac_n "(cached) $ac_c" 1>&6
12660else
12661
b93d0d08
VS
12662 if test "$cross_compiling" = yes; then
12663 wx_cv_sizeof_wchar_t=4
1e6feb95 12664
b93d0d08 12665else
698dcdb6 12666 cat > conftest.$ac_ext <<EOF
683dccda 12667#line 12668 "configure"
b93d0d08
VS
12668#include "confdefs.h"
12669
1e6feb95
VZ
12670 #ifdef HAVE_WCHAR_H
12671 # include <wchar.h>
12672 #endif
12673 #ifdef HAVE_STDLIB_H
12674 # include <stdlib.h>
12675 #endif
12676 #include <stdio.h>
12677 int main()
12678 {
12679 FILE *f=fopen("conftestval", "w");
12680 if (!f) exit(1);
12681 fprintf(f, "%i", sizeof(wchar_t));
12682 exit(0);
12683 }
698dcdb6
VZ
12684
12685EOF
683dccda 12686if { (eval echo configure:12687: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6 12687then
b93d0d08
VS
12688 wx_cv_sizeof_wchar_t=`cat conftestval`
12689else
698dcdb6
VZ
12690 echo "configure: failed program was:" >&5
12691 cat conftest.$ac_ext >&5
12692 rm -fr conftest*
12693 wx_cv_sizeof_wchar_t=0
b93d0d08 12694fi
698dcdb6 12695rm -fr conftest*
b93d0d08
VS
12696fi
12697
698dcdb6 12698
b93d0d08
VS
12699fi
12700
698dcdb6
VZ
12701echo "$ac_t""$wx_cv_sizeof_wchar_t" 1>&6
12702
12703cat >> confdefs.h <<EOF
28c6addc 12704#define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t
b93d0d08
VS
12705EOF
12706
698dcdb6 12707
698dcdb6 12708echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
683dccda 12709echo "configure:12710: checking whether byte ordering is bigendian" >&5
698dcdb6
VZ
12710if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
12711 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a
VZ
12712else
12713 ac_cv_c_bigendian=unknown
12714# See if sys/param.h defines the BYTE_ORDER macro.
698dcdb6 12715cat > conftest.$ac_ext <<EOF
683dccda 12716#line 12717 "configure"
10f2d63a
VZ
12717#include "confdefs.h"
12718#include <sys/types.h>
12719#include <sys/param.h>
698dcdb6 12720int main() {
10f2d63a
VZ
12721
12722#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
12723 bogus endian macros
12724#endif
698dcdb6
VZ
12725; return 0; }
12726EOF
683dccda 12727if { (eval echo configure:12728: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 12728 rm -rf conftest*
10f2d63a 12729 # It does; now see whether it defined to BIG_ENDIAN or not.
698dcdb6 12730cat > conftest.$ac_ext <<EOF
683dccda 12731#line 12732 "configure"
10f2d63a
VZ
12732#include "confdefs.h"
12733#include <sys/types.h>
12734#include <sys/param.h>
698dcdb6 12735int main() {
10f2d63a
VZ
12736
12737#if BYTE_ORDER != BIG_ENDIAN
12738 not big endian
12739#endif
698dcdb6
VZ
12740; return 0; }
12741EOF
683dccda 12742if { (eval echo configure:12743: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 12743 rm -rf conftest*
10f2d63a
VZ
12744 ac_cv_c_bigendian=yes
12745else
698dcdb6
VZ
12746 echo "configure: failed program was:" >&5
12747 cat conftest.$ac_ext >&5
12748 rm -rf conftest*
12749 ac_cv_c_bigendian=no
10f2d63a 12750fi
698dcdb6 12751rm -f conftest*
10f2d63a 12752else
698dcdb6
VZ
12753 echo "configure: failed program was:" >&5
12754 cat conftest.$ac_ext >&5
10f2d63a 12755fi
698dcdb6 12756rm -f conftest*
10f2d63a
VZ
12757if test $ac_cv_c_bigendian = unknown; then
12758if test "$cross_compiling" = yes; then
12759 ac_cv_c_bigendian=unknown
12760else
698dcdb6 12761 cat > conftest.$ac_ext <<EOF
683dccda 12762#line 12763 "configure"
10f2d63a
VZ
12763#include "confdefs.h"
12764main () {
12765 /* Are we little or big endian? From Harbison&Steele. */
12766 union
12767 {
12768 long l;
12769 char c[sizeof (long)];
12770 } u;
12771 u.l = 1;
12772 exit (u.c[sizeof (long) - 1] == 1);
12773}
698dcdb6 12774EOF
683dccda 12775if { (eval echo configure:12776: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
698dcdb6 12776then
10f2d63a
VZ
12777 ac_cv_c_bigendian=no
12778else
698dcdb6
VZ
12779 echo "configure: failed program was:" >&5
12780 cat conftest.$ac_ext >&5
12781 rm -fr conftest*
12782 ac_cv_c_bigendian=yes
10f2d63a 12783fi
698dcdb6 12784rm -fr conftest*
10f2d63a 12785fi
698dcdb6 12786
10f2d63a
VZ
12787fi
12788fi
698dcdb6
VZ
12789
12790echo "$ac_t""$ac_cv_c_bigendian" 1>&6
10f2d63a 12791if test $ac_cv_c_bigendian = unknown; then
698dcdb6 12792 echo "configure: warning: Assuming little-endian target machine - this may be overriden by adding the line "ac_cv_c_bigendian=${ac_cv_c_bigendian='yes'}" to config.cache file" 1>&2
10f2d63a
VZ
12793fi
12794if test $ac_cv_c_bigendian = yes; then
698dcdb6 12795 cat >> confdefs.h <<\EOF
10f2d63a
VZ
12796#define WORDS_BIGENDIAN 1
12797EOF
12798
12799fi
12800
698dcdb6 12801
3a922bb4 12802echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
683dccda 12803echo "configure:12804: checking how to run the C++ preprocessor" >&5
3a922bb4
RL
12804if test -z "$CXXCPP"; then
12805if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
12806 echo $ac_n "(cached) $ac_c" 1>&6
12807else
12808 ac_ext=C
12809# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12810ac_cpp='$CXXCPP $CPPFLAGS'
12811ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12812ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12813cross_compiling=$ac_cv_prog_cxx_cross
12814 CXXCPP="${CXX-g++} -E"
12815 cat > conftest.$ac_ext <<EOF
683dccda 12816#line 12817 "configure"
3a922bb4
RL
12817#include "confdefs.h"
12818#include <stdlib.h>
12819EOF
12820ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
683dccda 12821{ (eval echo configure:12822: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3a922bb4
RL
12822ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12823if test -z "$ac_err"; then
12824 :
12825else
12826 echo "$ac_err" >&5
12827 echo "configure: failed program was:" >&5
12828 cat conftest.$ac_ext >&5
12829 rm -rf conftest*
12830 CXXCPP=/lib/cpp
12831fi
12832rm -f conftest*
12833 ac_cv_prog_CXXCPP="$CXXCPP"
12834ac_ext=C
12835# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12836ac_cpp='$CXXCPP $CPPFLAGS'
12837ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12838ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12839cross_compiling=$ac_cv_prog_cxx_cross
12840fi
12841fi
12842CXXCPP="$ac_cv_prog_CXXCPP"
12843echo "$ac_t""$CXXCPP" 1>&6
12844
698dcdb6 12845
10f2d63a 12846 if test "$cross_compiling" = "yes"; then
698dcdb6 12847 cat >> confdefs.h <<\EOF
10f2d63a
VZ
12848#define wxUSE_IOSTREAMH 1
12849EOF
12850
12851 else
698dcdb6
VZ
12852
12853 ac_ext=C
12854# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1e487827 12855ac_cpp='$CXXCPP $CPPFLAGS'
698dcdb6
VZ
12856ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12857ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12858cross_compiling=$ac_cv_prog_cxx_cross
12859
703e0a69 12860
698dcdb6 12861 for ac_hdr in iostream
10f2d63a 12862do
698dcdb6
VZ
12863ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12864echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
683dccda 12865echo "configure:12866: checking for $ac_hdr" >&5
698dcdb6
VZ
12866if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12867 echo $ac_n "(cached) $ac_c" 1>&6
12868else
12869 cat > conftest.$ac_ext <<EOF
683dccda 12870#line 12871 "configure"
10f2d63a 12871#include "confdefs.h"
698dcdb6
VZ
12872#include <$ac_hdr>
12873EOF
12874ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
683dccda 12875{ (eval echo configure:12876: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
12876ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12877if test -z "$ac_err"; then
12878 rm -rf conftest*
12879 eval "ac_cv_header_$ac_safe=yes"
10f2d63a 12880else
698dcdb6
VZ
12881 echo "$ac_err" >&5
12882 echo "configure: failed program was:" >&5
10f2d63a 12883 cat conftest.$ac_ext >&5
698dcdb6
VZ
12884 rm -rf conftest*
12885 eval "ac_cv_header_$ac_safe=no"
10f2d63a 12886fi
698dcdb6 12887rm -f conftest*
10f2d63a 12888fi
698dcdb6
VZ
12889if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12890 echo "$ac_t""yes" 1>&6
12891 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12892 cat >> confdefs.h <<EOF
12893#define $ac_tr_hdr 1
10f2d63a 12894EOF
698dcdb6
VZ
12895
12896else
12897 echo "$ac_t""no" 1>&6
10f2d63a
VZ
12898fi
12899done
12900
698dcdb6 12901
57fe5ed0
VZ
12902 if test "$ac_cv_header_iostream" = "yes" ; then
12903 :
12904 else
698dcdb6 12905 cat >> confdefs.h <<\EOF
10f2d63a
VZ
12906#define wxUSE_IOSTREAMH 1
12907EOF
12908
10f2d63a
VZ
12909 fi
12910
12911 ac_ext=c
698dcdb6 12912# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10f2d63a 12913ac_cpp='$CPP $CPPFLAGS'
698dcdb6
VZ
12914ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12915ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12916cross_compiling=$ac_cv_prog_cc_cross
10f2d63a
VZ
12917
12918 fi
12919
703e0a69 12920
698dcdb6
VZ
12921
12922 echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6
683dccda 12923echo "configure:12924: checking if C++ compiler supports bool" >&5
698dcdb6
VZ
12924if eval "test \"`echo '$''{'wx_cv_cpp_bool'+set}'`\" = set"; then
12925 echo $ac_n "(cached) $ac_c" 1>&6
12926else
12927
12928
12929 ac_ext=C
12930# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1e487827 12931ac_cpp='$CXXCPP $CPPFLAGS'
698dcdb6
VZ
12932ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12933ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12934cross_compiling=$ac_cv_prog_cxx_cross
10f2d63a 12935
698dcdb6
VZ
12936
12937 cat > conftest.$ac_ext <<EOF
683dccda 12938#line 12939 "configure"
10f2d63a
VZ
12939#include "confdefs.h"
12940
698dcdb6
VZ
12941
12942int main() {
10f2d63a
VZ
12943
12944 bool b = true;
12945
12946 return 0;
698dcdb6
VZ
12947
12948; return 0; }
12949EOF
683dccda 12950if { (eval echo configure:12951: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
12951 rm -rf conftest*
12952
10f2d63a 12953 wx_cv_cpp_bool=yes
698dcdb6 12954
10f2d63a 12955else
698dcdb6
VZ
12956 echo "configure: failed program was:" >&5
12957 cat conftest.$ac_ext >&5
12958 rm -rf conftest*
12959
10f2d63a 12960 wx_cv_cpp_bool=no
698dcdb6
VZ
12961
12962
10f2d63a 12963fi
698dcdb6 12964rm -f conftest*
10f2d63a
VZ
12965
12966 ac_ext=c
698dcdb6 12967# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10f2d63a 12968ac_cpp='$CPP $CPPFLAGS'
698dcdb6
VZ
12969ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12970ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12971cross_compiling=$ac_cv_prog_cc_cross
10f2d63a 12972
698dcdb6 12973
10f2d63a 12974fi
698dcdb6
VZ
12975
12976echo "$ac_t""$wx_cv_cpp_bool" 1>&6
10f2d63a
VZ
12977
12978 if test "$wx_cv_cpp_bool" = "yes"; then
698dcdb6 12979 cat >> confdefs.h <<\EOF
10f2d63a
VZ
12980#define HAVE_BOOL 1
12981EOF
12982
12983 fi
12984
1e487827 12985
698dcdb6 12986
698dcdb6 12987echo $ac_n "checking for wcslen in -lc""... $ac_c" 1>&6
683dccda 12988echo "configure:12989: checking for wcslen in -lc" >&5
698dcdb6
VZ
12989ac_lib_var=`echo c'_'wcslen | sed 'y%./+-%__p_%'`
12990if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12991 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 12992else
698dcdb6 12993 ac_save_LIBS="$LIBS"
10f2d63a 12994LIBS="-lc $LIBS"
698dcdb6 12995cat > conftest.$ac_ext <<EOF
683dccda 12996#line 12997 "configure"
10f2d63a
VZ
12997#include "confdefs.h"
12998/* Override any gcc2 internal prototype to avoid an error. */
12999/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
13000 builtin and then its argument prototype would still apply. */
13001char wcslen();
13002
13003int main() {
13004wcslen()
13005; return 0; }
13006EOF
683dccda 13007if { (eval echo configure:13008: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
13008 rm -rf conftest*
13009 eval "ac_cv_lib_$ac_lib_var=yes"
13010else
13011 echo "configure: failed program was:" >&5
13012 cat conftest.$ac_ext >&5
13013 rm -rf conftest*
13014 eval "ac_cv_lib_$ac_lib_var=no"
13015fi
13016rm -f conftest*
13017LIBS="$ac_save_LIBS"
13018
13019fi
13020if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13021 echo "$ac_t""yes" 1>&6
13022
13023 cat >> confdefs.h <<\EOF
10f2d63a
VZ
13024#define HAVE_WCSLEN 1
13025EOF
13026
13027 WCHAR_LINK=""
698dcdb6 13028
10f2d63a 13029else
698dcdb6 13030 echo "$ac_t""no" 1>&6
10f2d63a 13031
698dcdb6 13032 echo $ac_n "checking for wcslen in -lw""... $ac_c" 1>&6
683dccda 13033echo "configure:13034: checking for wcslen in -lw" >&5
698dcdb6
VZ
13034ac_lib_var=`echo w'_'wcslen | sed 'y%./+-%__p_%'`
13035if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13036 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 13037else
698dcdb6 13038 ac_save_LIBS="$LIBS"
10f2d63a 13039LIBS="-lw $LIBS"
698dcdb6 13040cat > conftest.$ac_ext <<EOF
683dccda 13041#line 13042 "configure"
10f2d63a
VZ
13042#include "confdefs.h"
13043/* Override any gcc2 internal prototype to avoid an error. */
13044/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
13045 builtin and then its argument prototype would still apply. */
13046char wcslen();
13047
13048int main() {
13049wcslen()
13050; return 0; }
13051EOF
683dccda 13052if { (eval echo configure:13053: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
13053 rm -rf conftest*
13054 eval "ac_cv_lib_$ac_lib_var=yes"
13055else
13056 echo "configure: failed program was:" >&5
13057 cat conftest.$ac_ext >&5
13058 rm -rf conftest*
13059 eval "ac_cv_lib_$ac_lib_var=no"
13060fi
13061rm -f conftest*
13062LIBS="$ac_save_LIBS"
13063
13064fi
13065if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13066 echo "$ac_t""yes" 1>&6
13067
13068 cat >> confdefs.h <<\EOF
10f2d63a
VZ
13069#define HAVE_WCSLEN 1
13070EOF
13071
13072 WCHAR_LINK="-lw"
698dcdb6 13073
18dbb1f6
VZ
13074else
13075 echo "$ac_t""no" 1>&6
13076
13077 echo $ac_n "checking for wcslen in -lmsvcrt""... $ac_c" 1>&6
683dccda 13078echo "configure:13079: checking for wcslen in -lmsvcrt" >&5
18dbb1f6
VZ
13079ac_lib_var=`echo msvcrt'_'wcslen | sed 'y%./+-%__p_%'`
13080if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13081 echo $ac_n "(cached) $ac_c" 1>&6
13082else
13083 ac_save_LIBS="$LIBS"
13084LIBS="-lmsvcrt $LIBS"
13085cat > conftest.$ac_ext <<EOF
683dccda 13086#line 13087 "configure"
18dbb1f6
VZ
13087#include "confdefs.h"
13088/* Override any gcc2 internal prototype to avoid an error. */
13089/* We use char because int might match the return type of a gcc2
13090 builtin and then its argument prototype would still apply. */
13091char wcslen();
13092
13093int main() {
13094wcslen()
13095; return 0; }
13096EOF
683dccda 13097if { (eval echo configure:13098: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18dbb1f6
VZ
13098 rm -rf conftest*
13099 eval "ac_cv_lib_$ac_lib_var=yes"
13100else
13101 echo "configure: failed program was:" >&5
13102 cat conftest.$ac_ext >&5
13103 rm -rf conftest*
13104 eval "ac_cv_lib_$ac_lib_var=no"
13105fi
13106rm -f conftest*
13107LIBS="$ac_save_LIBS"
13108
13109fi
13110if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13111 echo "$ac_t""yes" 1>&6
13112
13113 cat >> confdefs.h <<\EOF
13114#define HAVE_WCSLEN 1
13115EOF
13116
13117 WCHAR_LINK=""
13118
698dcdb6
VZ
13119else
13120 echo "$ac_t""no" 1>&6
6232543b 13121fi
10f2d63a 13122
18dbb1f6
VZ
13123
13124fi
13125
698dcdb6 13126
1e487827 13127fi
703e0a69 13128
698dcdb6 13129
b3e8d00a
VZ
13130for ac_func in wcsrtombs
13131do
13132echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
683dccda 13133echo "configure:13134: checking for $ac_func" >&5
b3e8d00a
VZ
13134if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13135 echo $ac_n "(cached) $ac_c" 1>&6
13136else
13137 cat > conftest.$ac_ext <<EOF
683dccda 13138#line 13139 "configure"
b3e8d00a
VZ
13139#include "confdefs.h"
13140/* System header to define __stub macros and hopefully few prototypes,
13141 which can conflict with char $ac_func(); below. */
13142#include <assert.h>
13143/* Override any gcc2 internal prototype to avoid an error. */
13144/* We use char because int might match the return type of a gcc2
13145 builtin and then its argument prototype would still apply. */
13146char $ac_func();
13147
13148int main() {
13149
13150/* The GNU C library defines this for functions which it implements
13151 to always fail with ENOSYS. Some functions are actually named
13152 something starting with __ and the normal name is an alias. */
13153#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13154choke me
13155#else
13156$ac_func();
13157#endif
13158
13159; return 0; }
13160EOF
683dccda 13161if { (eval echo configure:13162: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
b3e8d00a
VZ
13162 rm -rf conftest*
13163 eval "ac_cv_func_$ac_func=yes"
13164else
13165 echo "configure: failed program was:" >&5
13166 cat conftest.$ac_ext >&5
13167 rm -rf conftest*
13168 eval "ac_cv_func_$ac_func=no"
13169fi
13170rm -f conftest*
13171fi
13172
13173if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13174 echo "$ac_t""yes" 1>&6
13175 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13176 cat >> confdefs.h <<EOF
13177#define $ac_tr_func 1
13178EOF
13179
13180else
13181 echo "$ac_t""no" 1>&6
13182fi
13183done
13184
13185
698dcdb6 13186echo $ac_n "checking for vprintf""... $ac_c" 1>&6
683dccda 13187echo "configure:13188: checking for vprintf" >&5
698dcdb6
VZ
13188if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
13189 echo $ac_n "(cached) $ac_c" 1>&6
13190else
13191 cat > conftest.$ac_ext <<EOF
683dccda 13192#line 13193 "configure"
10f2d63a
VZ
13193#include "confdefs.h"
13194/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 13195 which can conflict with char vprintf(); below. */
10f2d63a
VZ
13196#include <assert.h>
13197/* Override any gcc2 internal prototype to avoid an error. */
13198/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
13199 builtin and then its argument prototype would still apply. */
13200char vprintf();
13201
13202int main() {
10f2d63a
VZ
13203
13204/* The GNU C library defines this for functions which it implements
13205 to always fail with ENOSYS. Some functions are actually named
13206 something starting with __ and the normal name is an alias. */
698dcdb6 13207#if defined (__stub_vprintf) || defined (__stub___vprintf)
10f2d63a
VZ
13208choke me
13209#else
698dcdb6 13210vprintf();
10f2d63a
VZ
13211#endif
13212
698dcdb6
VZ
13213; return 0; }
13214EOF
683dccda 13215if { (eval echo configure:13216: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
13216 rm -rf conftest*
13217 eval "ac_cv_func_vprintf=yes"
13218else
13219 echo "configure: failed program was:" >&5
13220 cat conftest.$ac_ext >&5
13221 rm -rf conftest*
13222 eval "ac_cv_func_vprintf=no"
13223fi
13224rm -f conftest*
13225fi
13226
13227if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
13228 echo "$ac_t""yes" 1>&6
13229 cat >> confdefs.h <<\EOF
13230#define HAVE_VPRINTF 1
13231EOF
13232
13233else
13234 echo "$ac_t""no" 1>&6
13235fi
13236
13237if test "$ac_cv_func_vprintf" != yes; then
13238echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
683dccda 13239echo "configure:13240: checking for _doprnt" >&5
698dcdb6
VZ
13240if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
13241 echo $ac_n "(cached) $ac_c" 1>&6
13242else
13243 cat > conftest.$ac_ext <<EOF
683dccda 13244#line 13245 "configure"
10f2d63a
VZ
13245#include "confdefs.h"
13246/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 13247 which can conflict with char _doprnt(); below. */
10f2d63a
VZ
13248#include <assert.h>
13249/* Override any gcc2 internal prototype to avoid an error. */
13250/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
13251 builtin and then its argument prototype would still apply. */
13252char _doprnt();
13253
13254int main() {
10f2d63a
VZ
13255
13256/* The GNU C library defines this for functions which it implements
13257 to always fail with ENOSYS. Some functions are actually named
13258 something starting with __ and the normal name is an alias. */
13259#if defined (__stub__doprnt) || defined (__stub____doprnt)
13260choke me
13261#else
698dcdb6 13262_doprnt();
10f2d63a
VZ
13263#endif
13264
698dcdb6
VZ
13265; return 0; }
13266EOF
683dccda 13267if { (eval echo configure:13268: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
13268 rm -rf conftest*
13269 eval "ac_cv_func__doprnt=yes"
13270else
13271 echo "configure: failed program was:" >&5
13272 cat conftest.$ac_ext >&5
13273 rm -rf conftest*
13274 eval "ac_cv_func__doprnt=no"
13275fi
13276rm -f conftest*
13277fi
13278
13279if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
13280 echo "$ac_t""yes" 1>&6
13281 cat >> confdefs.h <<\EOF
10f2d63a
VZ
13282#define HAVE_DOPRNT 1
13283EOF
13284
698dcdb6
VZ
13285else
13286 echo "$ac_t""no" 1>&6
10f2d63a
VZ
13287fi
13288
13289fi
13290
1e487827 13291
698dcdb6
VZ
13292
13293
13294
13295
698dcdb6 13296echo $ac_n "checking for vsnprintf""... $ac_c" 1>&6
683dccda 13297echo "configure:13298: checking for vsnprintf" >&5
698dcdb6
VZ
13298if eval "test \"`echo '$''{'wx_cv_func_vsnprintf'+set}'`\" = set"; then
13299 echo $ac_n "(cached) $ac_c" 1>&6
13300else
13301
13302 cat > conftest.$ac_ext <<EOF
683dccda 13303#line 13304 "configure"
f6bcfd97
BP
13304#include "confdefs.h"
13305
13306 #include <stdio.h>
698dcdb6
VZ
13307 #include <stdarg.h>
13308
13309int main() {
10f2d63a 13310
f6bcfd97 13311 int wx_test_vsnprintf(const char *, ...);
10f2d63a 13312
f6bcfd97
BP
13313 wx_test_vsnprintf("%s");
13314 return 0;
13315 }
13316
13317 int wx_test_vsnprintf(const char *fmt, ...)
13318 {
13319 char *s;
13320
13321 va_list argp;
13322 va_start(argp, fmt);
13323 vsnprintf(s, 42, fmt, argp);
13324 va_end(argp);
698dcdb6
VZ
13325
13326; return 0; }
13327EOF
683dccda 13328if { (eval echo configure:13329: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
13329 rm -rf conftest*
13330
f6bcfd97 13331 wx_cv_func_vsnprintf=yes
698dcdb6 13332
10f2d63a 13333else
698dcdb6
VZ
13334 echo "configure: failed program was:" >&5
13335 cat conftest.$ac_ext >&5
13336 rm -rf conftest*
13337
13338 cat > conftest.$ac_ext <<EOF
683dccda 13339#line 13340 "configure"
c521c494
RL
13340#include "confdefs.h"
13341
13342 #include <stdio.h>
13343 #include <stdarg.h>
698dcdb6
VZ
13344
13345int main() {
c521c494
RL
13346
13347 int wx_test_vsnprintf(const char *, ...);
13348
13349 wx_test_vsnprintf("%s");
13350 return 0;
13351 }
13352
13353 int wx_test_vsnprintf(const char *fmt, ...)
13354 {
13355 char *s;
13356
13357 va_list argp;
13358 va_start(argp, fmt);
13359 _vsnprintf(s, 42, fmt, argp);
13360 va_end(argp);
698dcdb6
VZ
13361
13362; return 0; }
13363EOF
683dccda 13364if { (eval echo configure:13365: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
13365 rm -rf conftest*
13366
c521c494 13367 wx_cv_func_vsnprintf=yes
698dcdb6 13368
c521c494 13369else
698dcdb6
VZ
13370 echo "configure: failed program was:" >&5
13371 cat conftest.$ac_ext >&5
13372 rm -rf conftest*
13373
c521c494 13374 wx_cv_func_vsnprintf=no
698dcdb6 13375
10f2d63a 13376fi
698dcdb6
VZ
13377rm -f conftest*
13378
6232543b 13379fi
698dcdb6 13380rm -f conftest*
703e0a69 13381
1e487827 13382fi
698dcdb6
VZ
13383
13384echo "$ac_t""$wx_cv_func_vsnprintf" 1>&6
10f2d63a 13385
9d8deca0 13386if test "$wx_cv_func_vsnprintf" = yes; then
698dcdb6 13387 cat >> confdefs.h <<\EOF
9d8deca0
VZ
13388#define HAVE_VSNPRINTF 1
13389EOF
13390
13391else
698dcdb6 13392 echo "configure: warning: unsafe function sprintf will be used instead of snprintf" 1>&2
9d8deca0
VZ
13393fi
13394
698dcdb6 13395echo $ac_n "checking for vsscanf""... $ac_c" 1>&6
683dccda 13396echo "configure:13397: checking for vsscanf" >&5
698dcdb6
VZ
13397if eval "test \"`echo '$''{'wx_cv_func_vsscanf'+set}'`\" = set"; then
13398 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 13399else
698dcdb6
VZ
13400
13401 cat > conftest.$ac_ext <<EOF
683dccda 13402#line 13403 "configure"
10f2d63a 13403#include "confdefs.h"
10f2d63a 13404
f6bcfd97
BP
13405 #include <stdio.h>
13406 #include <stdarg.h>
698dcdb6
VZ
13407
13408int main() {
10f2d63a 13409
f6bcfd97 13410 int wx_test_vsscanf(const char *, ...);
10f2d63a 13411
f6bcfd97
BP
13412 wx_test_vsscanf("%d");
13413 return 0;
10f2d63a
VZ
13414 }
13415
f6bcfd97 13416 int wx_test_vsscanf(const char *fmt, ...)
10f2d63a 13417 {
f6bcfd97
BP
13418 va_list argp;
13419 va_start(argp, fmt);
13420 vsscanf("42", fmt, argp);
13421 va_end(argp);
698dcdb6
VZ
13422
13423; return 0; }
13424EOF
683dccda 13425if { (eval echo configure:13426: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
13426 rm -rf conftest*
13427
f6bcfd97 13428 wx_cv_func_vsscanf=yes
698dcdb6 13429
10f2d63a 13430else
698dcdb6
VZ
13431 echo "configure: failed program was:" >&5
13432 cat conftest.$ac_ext >&5
13433 rm -rf conftest*
13434
f6bcfd97 13435 wx_cv_func_vsscanf=no
698dcdb6 13436
6232543b 13437fi
698dcdb6 13438rm -f conftest*
703e0a69 13439
1e487827 13440fi
698dcdb6
VZ
13441
13442echo "$ac_t""$wx_cv_func_vsscanf" 1>&6
10f2d63a 13443
9d8deca0 13444if test "$wx_cv_func_vsscanf" = yes; then
698dcdb6 13445 cat >> confdefs.h <<\EOF
9d8deca0
VZ
13446#define HAVE_VSSCANF 1
13447EOF
13448
13449fi
13450
95c8801c
VS
13451if test "$TOOLKIT" != "MSW"; then
13452
13453
13454
698dcdb6
VZ
13455ac_ext=C
13456# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13457ac_cpp='$CXXCPP $CPPFLAGS'
13458ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13459ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13460cross_compiling=$ac_cv_prog_cxx_cross
13461
13462echo $ac_n "checking if iconv() takes char**""... $ac_c" 1>&6
683dccda 13463echo "configure:13464: checking if iconv() takes char**" >&5
698dcdb6
VZ
13464if eval "test \"`echo '$''{'wx_cv_iconv_takes_char'+set}'`\" = set"; then
13465 echo $ac_n "(cached) $ac_c" 1>&6
13466else
13467
13468 cat > conftest.$ac_ext <<EOF
683dccda 13469#line 13470 "configure"
95c8801c
VS
13470#include "confdefs.h"
13471#include <iconv.h>
698dcdb6 13472int main() {
95c8801c
VS
13473
13474 char **inbuf, **outbuf;
19af3b06
VZ
13475 iconv_t cd;
13476 size_t insz, outsz;
13477 iconv(cd, inbuf, &insz, outbuf, &outsz);
698dcdb6
VZ
13478
13479; return 0; }
13480EOF
683dccda 13481if { (eval echo configure:13482: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 13482 rm -rf conftest*
95c8801c
VS
13483 wx_cv_iconv_takes_char=yes
13484else
698dcdb6
VZ
13485 echo "configure: failed program was:" >&5
13486 cat conftest.$ac_ext >&5
13487 rm -rf conftest*
13488 wx_cv_iconv_takes_char=no
95c8801c 13489fi
698dcdb6 13490rm -f conftest*
95c8801c
VS
13491
13492fi
698dcdb6
VZ
13493
13494echo "$ac_t""$wx_cv_iconv_takes_char" 1>&6
10f2d63a 13495ac_ext=c
698dcdb6 13496# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10f2d63a 13497ac_cpp='$CPP $CPPFLAGS'
698dcdb6
VZ
13498ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13499ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13500cross_compiling=$ac_cv_prog_cc_cross
10f2d63a 13501
95c8801c 13502if test "$wx_cv_iconv_takes_char" = yes ; then
698dcdb6 13503 cat >> confdefs.h <<\EOF
95c8801c
VS
13504#define WX_ICONV_TAKES_CHAR 1
13505EOF
13506
13507fi
10f2d63a 13508
1e487827 13509
698dcdb6
VZ
13510if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
13511 for ac_func in sigaction
eb4efbdc 13512do
698dcdb6 13513echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
683dccda 13514echo "configure:13515: checking for $ac_func" >&5
698dcdb6
VZ
13515if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13516 echo $ac_n "(cached) $ac_c" 1>&6
13517else
13518 cat > conftest.$ac_ext <<EOF
683dccda 13519#line 13520 "configure"
eb4efbdc
VZ
13520#include "confdefs.h"
13521/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 13522 which can conflict with char $ac_func(); below. */
eb4efbdc
VZ
13523#include <assert.h>
13524/* Override any gcc2 internal prototype to avoid an error. */
13525/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
13526 builtin and then its argument prototype would still apply. */
13527char $ac_func();
13528
13529int main() {
eb4efbdc
VZ
13530
13531/* The GNU C library defines this for functions which it implements
13532 to always fail with ENOSYS. Some functions are actually named
13533 something starting with __ and the normal name is an alias. */
13534#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13535choke me
13536#else
698dcdb6 13537$ac_func();
eb4efbdc
VZ
13538#endif
13539
698dcdb6 13540; return 0; }
eb4efbdc 13541EOF
683dccda 13542if { (eval echo configure:13543: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
13543 rm -rf conftest*
13544 eval "ac_cv_func_$ac_func=yes"
13545else
13546 echo "configure: failed program was:" >&5
13547 cat conftest.$ac_ext >&5
13548 rm -rf conftest*
13549 eval "ac_cv_func_$ac_func=no"
13550fi
13551rm -f conftest*
13552fi
eb4efbdc 13553
698dcdb6
VZ
13554if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13555 echo "$ac_t""yes" 1>&6
13556 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13557 cat >> confdefs.h <<EOF
13558#define $ac_tr_func 1
13559EOF
13560
13561else
13562 echo "$ac_t""no" 1>&6
eb4efbdc
VZ
13563fi
13564done
13565
698dcdb6 13566
eb4efbdc 13567 if test "$ac_cv_func_sigaction" = "no"; then
698dcdb6 13568 echo "configure: warning: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" 1>&2
eb4efbdc
VZ
13569 wxUSE_ON_FATAL_EXCEPTION=no
13570 fi
f6bcfd97
BP
13571
13572 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
698dcdb6
VZ
13573
13574 ac_ext=C
13575# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1e487827 13576ac_cpp='$CXXCPP $CPPFLAGS'
698dcdb6
VZ
13577ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13578ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13579cross_compiling=$ac_cv_prog_cxx_cross
6232543b 13580
1e487827 13581
698dcdb6 13582 echo $ac_n "checking for sa_handler type""... $ac_c" 1>&6
683dccda 13583echo "configure:13584: checking for sa_handler type" >&5
698dcdb6
VZ
13584if eval "test \"`echo '$''{'wx_cv_type_sa_handler'+set}'`\" = set"; then
13585 echo $ac_n "(cached) $ac_c" 1>&6
13586else
13587
13588 cat > conftest.$ac_ext <<EOF
683dccda 13589#line 13590 "configure"
f6bcfd97
BP
13590#include "confdefs.h"
13591#include <signal.h>
698dcdb6 13592int main() {
f6bcfd97
BP
13593
13594 extern void testSigHandler(int);
13595
13596 struct sigaction sa;
13597 sa.sa_handler = testSigHandler;
698dcdb6
VZ
13598
13599; return 0; }
13600EOF
683dccda 13601if { (eval echo configure:13602: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
13602 rm -rf conftest*
13603
f6bcfd97 13604 wx_cv_type_sa_handler=int
698dcdb6 13605
f6bcfd97 13606else
698dcdb6
VZ
13607 echo "configure: failed program was:" >&5
13608 cat conftest.$ac_ext >&5
13609 rm -rf conftest*
13610
f6bcfd97 13611 wx_cv_type_sa_handler=void
698dcdb6 13612
6232543b 13613fi
698dcdb6
VZ
13614rm -f conftest*
13615
1e487827 13616fi
698dcdb6
VZ
13617
13618echo "$ac_t""$wx_cv_type_sa_handler" 1>&6
f6bcfd97
BP
13619
13620 ac_ext=c
698dcdb6 13621# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
f6bcfd97 13622ac_cpp='$CPP $CPPFLAGS'
698dcdb6
VZ
13623ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13624ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13625cross_compiling=$ac_cv_prog_cc_cross
13626
703e0a69 13627
698dcdb6 13628 cat >> confdefs.h <<EOF
f6bcfd97
BP
13629#define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
13630EOF
13631
13632 fi
eb4efbdc
VZ
13633fi
13634
10f2d63a
VZ
13635for ac_func in vfork
13636do
698dcdb6 13637echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
683dccda 13638echo "configure:13639: checking for $ac_func" >&5
698dcdb6
VZ
13639if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13640 echo $ac_n "(cached) $ac_c" 1>&6
13641else
13642 cat > conftest.$ac_ext <<EOF
683dccda 13643#line 13644 "configure"
10f2d63a
VZ
13644#include "confdefs.h"
13645/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 13646 which can conflict with char $ac_func(); below. */
10f2d63a
VZ
13647#include <assert.h>
13648/* Override any gcc2 internal prototype to avoid an error. */
13649/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
13650 builtin and then its argument prototype would still apply. */
13651char $ac_func();
13652
13653int main() {
10f2d63a
VZ
13654
13655/* The GNU C library defines this for functions which it implements
13656 to always fail with ENOSYS. Some functions are actually named
13657 something starting with __ and the normal name is an alias. */
13658#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13659choke me
13660#else
698dcdb6 13661$ac_func();
10f2d63a
VZ
13662#endif
13663
698dcdb6 13664; return 0; }
10f2d63a 13665EOF
683dccda 13666if { (eval echo configure:13667: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
13667 rm -rf conftest*
13668 eval "ac_cv_func_$ac_func=yes"
13669else
13670 echo "configure: failed program was:" >&5
13671 cat conftest.$ac_ext >&5
13672 rm -rf conftest*
13673 eval "ac_cv_func_$ac_func=no"
13674fi
13675rm -f conftest*
13676fi
270a909e 13677
698dcdb6
VZ
13678if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13679 echo "$ac_t""yes" 1>&6
13680 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13681 cat >> confdefs.h <<EOF
13682#define $ac_tr_func 1
13683EOF
13684
13685else
13686 echo "$ac_t""no" 1>&6
270a909e
VZ
13687fi
13688done
13689
1e487827 13690
52e8b690 13691echo $ac_n "checking for statfs""... $ac_c" 1>&6
683dccda 13692echo "configure:13693: checking for statfs" >&5
52e8b690
VZ
13693if eval "test \"`echo '$''{'wx_cv_func_statfs'+set}'`\" = set"; then
13694 echo $ac_n "(cached) $ac_c" 1>&6
13695else
13696 cat > conftest.$ac_ext <<EOF
683dccda 13697#line 13698 "configure"
52e8b690
VZ
13698#include "confdefs.h"
13699
d08b457b
GD
13700 #ifdef __DARWIN__
13701 #include <sys/param.h>
13702 #include <sys/mount.h>
13703 #else
13704 #include <sys/vfs.h>
13705 #endif
52e8b690
VZ
13706
13707int main() {
13708
13709 long l;
13710 struct statfs fs;
13711 statfs("/", &fs);
13712 l = fs.f_bsize;
13713 l += fs.f_blocks;
13714 l += fs.f_bavail;
13715
13716; return 0; }
13717EOF
683dccda 13718if { (eval echo configure:13719: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
52e8b690
VZ
13719 rm -rf conftest*
13720
13721 wx_cv_func_statfs=yes
13722
13723else
13724 echo "configure: failed program was:" >&5
13725 cat conftest.$ac_ext >&5
13726 rm -rf conftest*
13727
13728 wx_cv_func_statfs=no
13729
13730
13731fi
13732rm -f conftest*
13733
13734fi
13735
13736echo "$ac_t""$wx_cv_func_statfs" 1>&6
13737
13738if test "$wx_cv_func_statfs" = "yes"; then
13739 cat >> confdefs.h <<\EOF
13740#define HAVE_STATFS 1
13741EOF
13742
13743else
13744 echo "configure: warning: wxGetDiskSpace() function won't work without statfs()" 1>&2
13745fi
13746
698dcdb6
VZ
13747if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
13748 for ac_func in fcntl flock
4f3c5f06 13749do
698dcdb6 13750echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
683dccda 13751echo "configure:13752: checking for $ac_func" >&5
698dcdb6
VZ
13752if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13753 echo $ac_n "(cached) $ac_c" 1>&6
13754else
13755 cat > conftest.$ac_ext <<EOF
683dccda 13756#line 13757 "configure"
4f3c5f06
VZ
13757#include "confdefs.h"
13758/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 13759 which can conflict with char $ac_func(); below. */
4f3c5f06
VZ
13760#include <assert.h>
13761/* Override any gcc2 internal prototype to avoid an error. */
13762/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
13763 builtin and then its argument prototype would still apply. */
13764char $ac_func();
13765
13766int main() {
4f3c5f06
VZ
13767
13768/* The GNU C library defines this for functions which it implements
13769 to always fail with ENOSYS. Some functions are actually named
13770 something starting with __ and the normal name is an alias. */
13771#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13772choke me
13773#else
698dcdb6 13774$ac_func();
4f3c5f06
VZ
13775#endif
13776
698dcdb6
VZ
13777; return 0; }
13778EOF
683dccda 13779if { (eval echo configure:13780: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
13780 rm -rf conftest*
13781 eval "ac_cv_func_$ac_func=yes"
13782else
13783 echo "configure: failed program was:" >&5
13784 cat conftest.$ac_ext >&5
13785 rm -rf conftest*
13786 eval "ac_cv_func_$ac_func=no"
13787fi
13788rm -f conftest*
13789fi
13790
13791if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13792 echo "$ac_t""yes" 1>&6
13793 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13794 cat >> confdefs.h <<EOF
13795#define $ac_tr_func 1
4f3c5f06
VZ
13796EOF
13797 break
698dcdb6
VZ
13798else
13799 echo "$ac_t""no" 1>&6
4f3c5f06
VZ
13800fi
13801done
13802
698dcdb6 13803
4f3c5f06 13804 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
698dcdb6 13805 echo "configure: warning: wxSingleInstanceChecker not available" 1>&2
4f3c5f06
VZ
13806 wxUSE_SNGLINST_CHECKER=no
13807 fi
13808fi
13809
270a909e
VZ
13810for ac_func in timegm
13811do
698dcdb6 13812echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
683dccda 13813echo "configure:13814: checking for $ac_func" >&5
698dcdb6
VZ
13814if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13815 echo $ac_n "(cached) $ac_c" 1>&6
13816else
13817 cat > conftest.$ac_ext <<EOF
683dccda 13818#line 13819 "configure"
270a909e
VZ
13819#include "confdefs.h"
13820/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 13821 which can conflict with char $ac_func(); below. */
270a909e
VZ
13822#include <assert.h>
13823/* Override any gcc2 internal prototype to avoid an error. */
13824/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
13825 builtin and then its argument prototype would still apply. */
13826char $ac_func();
13827
13828int main() {
270a909e
VZ
13829
13830/* The GNU C library defines this for functions which it implements
13831 to always fail with ENOSYS. Some functions are actually named
13832 something starting with __ and the normal name is an alias. */
13833#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13834choke me
13835#else
698dcdb6 13836$ac_func();
270a909e
VZ
13837#endif
13838
698dcdb6 13839; return 0; }
270a909e 13840EOF
683dccda 13841if { (eval echo configure:13842: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
13842 rm -rf conftest*
13843 eval "ac_cv_func_$ac_func=yes"
13844else
13845 echo "configure: failed program was:" >&5
13846 cat conftest.$ac_ext >&5
13847 rm -rf conftest*
13848 eval "ac_cv_func_$ac_func=no"
13849fi
13850rm -f conftest*
13851fi
10f2d63a 13852
698dcdb6
VZ
13853if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13854 echo "$ac_t""yes" 1>&6
13855 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13856 cat >> confdefs.h <<EOF
13857#define $ac_tr_func 1
13858EOF
13859
13860else
13861 echo "$ac_t""no" 1>&6
10f2d63a
VZ
13862fi
13863done
13864
698dcdb6 13865
8fd0d89b
VZ
13866for ac_func in putenv setenv
13867do
698dcdb6 13868echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
683dccda 13869echo "configure:13870: checking for $ac_func" >&5
698dcdb6
VZ
13870if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13871 echo $ac_n "(cached) $ac_c" 1>&6
13872else
13873 cat > conftest.$ac_ext <<EOF
683dccda 13874#line 13875 "configure"
8fd0d89b
VZ
13875#include "confdefs.h"
13876/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 13877 which can conflict with char $ac_func(); below. */
8fd0d89b
VZ
13878#include <assert.h>
13879/* Override any gcc2 internal prototype to avoid an error. */
13880/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
13881 builtin and then its argument prototype would still apply. */
13882char $ac_func();
13883
13884int main() {
8fd0d89b
VZ
13885
13886/* The GNU C library defines this for functions which it implements
13887 to always fail with ENOSYS. Some functions are actually named
13888 something starting with __ and the normal name is an alias. */
13889#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13890choke me
13891#else
698dcdb6 13892$ac_func();
8fd0d89b
VZ
13893#endif
13894
698dcdb6
VZ
13895; return 0; }
13896EOF
683dccda 13897if { (eval echo configure:13898: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
13898 rm -rf conftest*
13899 eval "ac_cv_func_$ac_func=yes"
13900else
13901 echo "configure: failed program was:" >&5
13902 cat conftest.$ac_ext >&5
13903 rm -rf conftest*
13904 eval "ac_cv_func_$ac_func=no"
13905fi
13906rm -f conftest*
13907fi
13908
13909if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13910 echo "$ac_t""yes" 1>&6
13911 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13912 cat >> confdefs.h <<EOF
13913#define $ac_tr_func 1
8fd0d89b
VZ
13914EOF
13915 break
698dcdb6
VZ
13916else
13917 echo "$ac_t""no" 1>&6
8fd0d89b
VZ
13918fi
13919done
13920
698dcdb6 13921
b12915c1
VZ
13922HAVE_SOME_SLEEP_FUNC=0
13923if test "$USE_BEOS" = 1; then
698dcdb6 13924 cat >> confdefs.h <<\EOF
b12915c1
VZ
13925#define HAVE_SLEEP 1
13926EOF
13927
13928 HAVE_SOME_SLEEP_FUNC=1
13929fi
13930
f11bdd03 13931if test "$USE_DARWIN" = 1; then
698dcdb6 13932 cat >> confdefs.h <<\EOF
b4085ce6
GD
13933#define HAVE_USLEEP 1
13934EOF
13935
13936 HAVE_SOME_SLEEP_FUNC=1
13937fi
13938
b12915c1
VZ
13939if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
13940 POSIX4_LINK=
698dcdb6 13941 for ac_func in nanosleep
10f2d63a 13942do
698dcdb6 13943echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
683dccda 13944echo "configure:13945: checking for $ac_func" >&5
698dcdb6
VZ
13945if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13946 echo $ac_n "(cached) $ac_c" 1>&6
13947else
13948 cat > conftest.$ac_ext <<EOF
683dccda 13949#line 13950 "configure"
10f2d63a
VZ
13950#include "confdefs.h"
13951/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 13952 which can conflict with char $ac_func(); below. */
10f2d63a
VZ
13953#include <assert.h>
13954/* Override any gcc2 internal prototype to avoid an error. */
13955/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
13956 builtin and then its argument prototype would still apply. */
13957char $ac_func();
13958
13959int main() {
10f2d63a
VZ
13960
13961/* The GNU C library defines this for functions which it implements
13962 to always fail with ENOSYS. Some functions are actually named
13963 something starting with __ and the normal name is an alias. */
13964#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13965choke me
13966#else
698dcdb6 13967$ac_func();
10f2d63a
VZ
13968#endif
13969
698dcdb6
VZ
13970; return 0; }
13971EOF
683dccda 13972if { (eval echo configure:13973: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
13973 rm -rf conftest*
13974 eval "ac_cv_func_$ac_func=yes"
13975else
13976 echo "configure: failed program was:" >&5
13977 cat conftest.$ac_ext >&5
13978 rm -rf conftest*
13979 eval "ac_cv_func_$ac_func=no"
13980fi
13981rm -f conftest*
13982fi
13983
13984if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13985 echo "$ac_t""yes" 1>&6
13986 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13987 cat >> confdefs.h <<EOF
13988#define $ac_tr_func 1
13989EOF
13990 cat >> confdefs.h <<\EOF
10f2d63a
VZ
13991#define HAVE_NANOSLEEP 1
13992EOF
13993
13994else
698dcdb6
VZ
13995 echo "$ac_t""no" 1>&6
13996echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
683dccda 13997echo "configure:13998: checking for nanosleep in -lposix4" >&5
698dcdb6
VZ
13998ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
13999if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14000 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 14001else
698dcdb6 14002 ac_save_LIBS="$LIBS"
10f2d63a 14003LIBS="-lposix4 $LIBS"
698dcdb6 14004cat > conftest.$ac_ext <<EOF
683dccda 14005#line 14006 "configure"
10f2d63a
VZ
14006#include "confdefs.h"
14007/* Override any gcc2 internal prototype to avoid an error. */
14008/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
14009 builtin and then its argument prototype would still apply. */
14010char nanosleep();
14011
14012int main() {
14013nanosleep()
14014; return 0; }
14015EOF
683dccda 14016if { (eval echo configure:14017: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
14017 rm -rf conftest*
14018 eval "ac_cv_lib_$ac_lib_var=yes"
14019else
14020 echo "configure: failed program was:" >&5
14021 cat conftest.$ac_ext >&5
14022 rm -rf conftest*
14023 eval "ac_cv_lib_$ac_lib_var=no"
14024fi
14025rm -f conftest*
14026LIBS="$ac_save_LIBS"
14027
14028fi
14029if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14030 echo "$ac_t""yes" 1>&6
14031
14032 cat >> confdefs.h <<\EOF
10f2d63a
VZ
14033#define HAVE_NANOSLEEP 1
14034EOF
14035
b12915c1 14036 POSIX4_LINK="-lposix4"
698dcdb6 14037
10f2d63a 14038else
698dcdb6 14039 echo "$ac_t""no" 1>&6
10f2d63a 14040
698dcdb6 14041 for ac_func in usleep
10f2d63a 14042do
698dcdb6 14043echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
683dccda 14044echo "configure:14045: checking for $ac_func" >&5
698dcdb6
VZ
14045if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14046 echo $ac_n "(cached) $ac_c" 1>&6
14047else
14048 cat > conftest.$ac_ext <<EOF
683dccda 14049#line 14050 "configure"
10f2d63a
VZ
14050#include "confdefs.h"
14051/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 14052 which can conflict with char $ac_func(); below. */
10f2d63a
VZ
14053#include <assert.h>
14054/* Override any gcc2 internal prototype to avoid an error. */
14055/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
14056 builtin and then its argument prototype would still apply. */
14057char $ac_func();
14058
14059int main() {
10f2d63a
VZ
14060
14061/* The GNU C library defines this for functions which it implements
14062 to always fail with ENOSYS. Some functions are actually named
14063 something starting with __ and the normal name is an alias. */
14064#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14065choke me
14066#else
698dcdb6 14067$ac_func();
10f2d63a
VZ
14068#endif
14069
698dcdb6
VZ
14070; return 0; }
14071EOF
683dccda 14072if { (eval echo configure:14073: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
14073 rm -rf conftest*
14074 eval "ac_cv_func_$ac_func=yes"
14075else
14076 echo "configure: failed program was:" >&5
14077 cat conftest.$ac_ext >&5
14078 rm -rf conftest*
14079 eval "ac_cv_func_$ac_func=no"
14080fi
14081rm -f conftest*
14082fi
14083
14084if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14085 echo "$ac_t""yes" 1>&6
14086 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14087 cat >> confdefs.h <<EOF
14088#define $ac_tr_func 1
14089EOF
14090 cat >> confdefs.h <<\EOF
b4085ce6
GD
14091#define HAVE_USLEEP 1
14092EOF
14093
10f2d63a 14094else
698dcdb6
VZ
14095 echo "$ac_t""no" 1>&6
14096echo "configure: warning: wxSleep() function will not work" 1>&2
14097
10f2d63a
VZ
14098fi
14099done
14100
698dcdb6
VZ
14101
14102
10f2d63a
VZ
14103fi
14104
698dcdb6
VZ
14105
14106
10f2d63a
VZ
14107fi
14108done
14109
b12915c1 14110fi
10f2d63a
VZ
14111
14112for ac_func in uname gethostname
14113do
698dcdb6 14114echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
683dccda 14115echo "configure:14116: checking for $ac_func" >&5
698dcdb6
VZ
14116if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14117 echo $ac_n "(cached) $ac_c" 1>&6
14118else
14119 cat > conftest.$ac_ext <<EOF
683dccda 14120#line 14121 "configure"
10f2d63a
VZ
14121#include "confdefs.h"
14122/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 14123 which can conflict with char $ac_func(); below. */
10f2d63a
VZ
14124#include <assert.h>
14125/* Override any gcc2 internal prototype to avoid an error. */
14126/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
14127 builtin and then its argument prototype would still apply. */
14128char $ac_func();
14129
14130int main() {
10f2d63a
VZ
14131
14132/* The GNU C library defines this for functions which it implements
14133 to always fail with ENOSYS. Some functions are actually named
14134 something starting with __ and the normal name is an alias. */
14135#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14136choke me
14137#else
698dcdb6 14138$ac_func();
10f2d63a
VZ
14139#endif
14140
698dcdb6
VZ
14141; return 0; }
14142EOF
683dccda 14143if { (eval echo configure:14144: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
14144 rm -rf conftest*
14145 eval "ac_cv_func_$ac_func=yes"
14146else
14147 echo "configure: failed program was:" >&5
14148 cat conftest.$ac_ext >&5
14149 rm -rf conftest*
14150 eval "ac_cv_func_$ac_func=no"
14151fi
14152rm -f conftest*
14153fi
14154
14155if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14156 echo "$ac_t""yes" 1>&6
14157 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14158 cat >> confdefs.h <<EOF
14159#define $ac_tr_func 1
10f2d63a
VZ
14160EOF
14161 break
698dcdb6
VZ
14162else
14163 echo "$ac_t""no" 1>&6
10f2d63a
VZ
14164fi
14165done
14166
698dcdb6
VZ
14167
14168
14169ac_ext=C
14170# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6098c7f9 14171ac_cpp='$CXXCPP $CPPFLAGS'
698dcdb6
VZ
14172ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14173ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14174cross_compiling=$ac_cv_prog_cxx_cross
14175
6098c7f9 14176
10f2d63a
VZ
14177for ac_func in strtok_r
14178do
698dcdb6 14179echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
683dccda 14180echo "configure:14181: checking for $ac_func" >&5
698dcdb6
VZ
14181if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14182 echo $ac_n "(cached) $ac_c" 1>&6
14183else
14184 cat > conftest.$ac_ext <<EOF
683dccda 14185#line 14186 "configure"
10f2d63a
VZ
14186#include "confdefs.h"
14187/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 14188 which can conflict with char $ac_func(); below. */
10f2d63a
VZ
14189#include <assert.h>
14190/* Override any gcc2 internal prototype to avoid an error. */
6098c7f9
VZ
14191#ifdef __cplusplus
14192extern "C"
14193#endif
10f2d63a 14194/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
14195 builtin and then its argument prototype would still apply. */
14196char $ac_func();
14197
14198int main() {
10f2d63a
VZ
14199
14200/* The GNU C library defines this for functions which it implements
14201 to always fail with ENOSYS. Some functions are actually named
14202 something starting with __ and the normal name is an alias. */
14203#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14204choke me
14205#else
698dcdb6 14206$ac_func();
10f2d63a
VZ
14207#endif
14208
698dcdb6 14209; return 0; }
10f2d63a 14210EOF
683dccda 14211if { (eval echo configure:14212: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
14212 rm -rf conftest*
14213 eval "ac_cv_func_$ac_func=yes"
14214else
14215 echo "configure: failed program was:" >&5
14216 cat conftest.$ac_ext >&5
14217 rm -rf conftest*
14218 eval "ac_cv_func_$ac_func=no"
14219fi
14220rm -f conftest*
14221fi
10f2d63a 14222
698dcdb6
VZ
14223if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14224 echo "$ac_t""yes" 1>&6
14225 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14226 cat >> confdefs.h <<EOF
14227#define $ac_tr_func 1
14228EOF
14229
14230else
14231 echo "$ac_t""no" 1>&6
10f2d63a
VZ
14232fi
14233done
14234
698dcdb6 14235
6098c7f9 14236ac_ext=c
698dcdb6 14237# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
6098c7f9 14238ac_cpp='$CPP $CPPFLAGS'
698dcdb6
VZ
14239ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14240ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14241cross_compiling=$ac_cv_prog_cc_cross
6232543b 14242
1e487827 14243
698dcdb6 14244INET_LINK=
10f2d63a
VZ
14245for ac_func in inet_addr
14246do
698dcdb6 14247echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
683dccda 14248echo "configure:14249: checking for $ac_func" >&5
698dcdb6
VZ
14249if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14250 echo $ac_n "(cached) $ac_c" 1>&6
14251else
14252 cat > conftest.$ac_ext <<EOF
683dccda 14253#line 14254 "configure"
10f2d63a
VZ
14254#include "confdefs.h"
14255/* System header to define __stub macros and hopefully few prototypes,
698dcdb6
VZ
14256 which can conflict with char $ac_func(); below. */
14257#include <assert.h>
14258/* Override any gcc2 internal prototype to avoid an error. */
10f2d63a 14259/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
14260 builtin and then its argument prototype would still apply. */
14261char $ac_func();
14262
14263int main() {
10f2d63a
VZ
14264
14265/* The GNU C library defines this for functions which it implements
14266 to always fail with ENOSYS. Some functions are actually named
1e487827
VS
14267 something starting with __ and the normal name is an alias. */
14268#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14269choke me
14270#else
698dcdb6 14271$ac_func();
1e487827 14272#endif
703e0a69 14273
698dcdb6
VZ
14274; return 0; }
14275EOF
683dccda 14276if { (eval echo configure:14277: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
14277 rm -rf conftest*
14278 eval "ac_cv_func_$ac_func=yes"
14279else
14280 echo "configure: failed program was:" >&5
14281 cat conftest.$ac_ext >&5
14282 rm -rf conftest*
14283 eval "ac_cv_func_$ac_func=no"
14284fi
14285rm -f conftest*
14286fi
14287
14288if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14289 echo "$ac_t""yes" 1>&6
14290 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14291 cat >> confdefs.h <<EOF
14292#define $ac_tr_func 1
14293EOF
14294 cat >> confdefs.h <<\EOF
c63c7106
VZ
14295#define HAVE_INET_ADDR 1
14296EOF
14297
10f2d63a 14298else
698dcdb6
VZ
14299 echo "$ac_t""no" 1>&6
14300echo $ac_n "checking for inet_addr in -lnsl""... $ac_c" 1>&6
683dccda 14301echo "configure:14302: checking for inet_addr in -lnsl" >&5
698dcdb6
VZ
14302ac_lib_var=`echo nsl'_'inet_addr | sed 'y%./+-%__p_%'`
14303if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14304 echo $ac_n "(cached) $ac_c" 1>&6
c63c7106 14305else
698dcdb6 14306 ac_save_LIBS="$LIBS"
c63c7106 14307LIBS="-lnsl $LIBS"
698dcdb6 14308cat > conftest.$ac_ext <<EOF
683dccda 14309#line 14310 "configure"
c63c7106
VZ
14310#include "confdefs.h"
14311/* Override any gcc2 internal prototype to avoid an error. */
14312/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
14313 builtin and then its argument prototype would still apply. */
14314char inet_addr();
14315
14316int main() {
14317inet_addr()
14318; return 0; }
14319EOF
683dccda 14320if { (eval echo configure:14321: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
14321 rm -rf conftest*
14322 eval "ac_cv_lib_$ac_lib_var=yes"
14323else
14324 echo "configure: failed program was:" >&5
14325 cat conftest.$ac_ext >&5
14326 rm -rf conftest*
14327 eval "ac_cv_lib_$ac_lib_var=no"
14328fi
14329rm -f conftest*
14330LIBS="$ac_save_LIBS"
14331
14332fi
14333if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14334 echo "$ac_t""yes" 1>&6
c63c7106
VZ
14335 INET_LINK="nsl"
14336else
698dcdb6
VZ
14337 echo "$ac_t""no" 1>&6
14338echo $ac_n "checking for inet_addr in -lresolv""... $ac_c" 1>&6
683dccda 14339echo "configure:14340: checking for inet_addr in -lresolv" >&5
698dcdb6
VZ
14340ac_lib_var=`echo resolv'_'inet_addr | sed 'y%./+-%__p_%'`
14341if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14342 echo $ac_n "(cached) $ac_c" 1>&6
c63c7106 14343else
698dcdb6 14344 ac_save_LIBS="$LIBS"
c63c7106 14345LIBS="-lresolv $LIBS"
698dcdb6 14346cat > conftest.$ac_ext <<EOF
683dccda 14347#line 14348 "configure"
c63c7106
VZ
14348#include "confdefs.h"
14349/* Override any gcc2 internal prototype to avoid an error. */
14350/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
14351 builtin and then its argument prototype would still apply. */
14352char inet_addr();
14353
14354int main() {
14355inet_addr()
14356; return 0; }
14357EOF
683dccda 14358if { (eval echo configure:14359: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
14359 rm -rf conftest*
14360 eval "ac_cv_lib_$ac_lib_var=yes"
14361else
14362 echo "configure: failed program was:" >&5
14363 cat conftest.$ac_ext >&5
14364 rm -rf conftest*
14365 eval "ac_cv_lib_$ac_lib_var=no"
14366fi
14367rm -f conftest*
14368LIBS="$ac_save_LIBS"
c63c7106 14369
6232543b 14370fi
698dcdb6
VZ
14371if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14372 echo "$ac_t""yes" 1>&6
14373 INET_LINK="resolv"
14374
14375else
14376 echo "$ac_t""no" 1>&6
14377fi
c63c7106 14378
698dcdb6 14379
1e487827 14380fi
703e0a69 14381
698dcdb6
VZ
14382
14383
10f2d63a
VZ
14384fi
14385done
14386
698dcdb6 14387
10f2d63a
VZ
14388for ac_func in inet_aton
14389do
698dcdb6 14390echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
683dccda 14391echo "configure:14392: checking for $ac_func" >&5
698dcdb6
VZ
14392if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14393 echo $ac_n "(cached) $ac_c" 1>&6
14394else
14395 cat > conftest.$ac_ext <<EOF
683dccda 14396#line 14397 "configure"
10f2d63a
VZ
14397#include "confdefs.h"
14398/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 14399 which can conflict with char $ac_func(); below. */
10f2d63a
VZ
14400#include <assert.h>
14401/* Override any gcc2 internal prototype to avoid an error. */
14402/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
14403 builtin and then its argument prototype would still apply. */
14404char $ac_func();
14405
14406int main() {
10f2d63a
VZ
14407
14408/* The GNU C library defines this for functions which it implements
14409 to always fail with ENOSYS. Some functions are actually named
14410 something starting with __ and the normal name is an alias. */
14411#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14412choke me
14413#else
698dcdb6 14414$ac_func();
10f2d63a
VZ
14415#endif
14416
698dcdb6
VZ
14417; return 0; }
14418EOF
683dccda 14419if { (eval echo configure:14420: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
14420 rm -rf conftest*
14421 eval "ac_cv_func_$ac_func=yes"
14422else
14423 echo "configure: failed program was:" >&5
14424 cat conftest.$ac_ext >&5
14425 rm -rf conftest*
14426 eval "ac_cv_func_$ac_func=no"
14427fi
14428rm -f conftest*
14429fi
14430
14431if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14432 echo "$ac_t""yes" 1>&6
14433 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14434 cat >> confdefs.h <<EOF
14435#define $ac_tr_func 1
14436EOF
14437 cat >> confdefs.h <<\EOF
c63c7106
VZ
14438#define HAVE_INET_ATON 1
14439EOF
14440
10f2d63a 14441else
698dcdb6
VZ
14442 echo "$ac_t""no" 1>&6
14443 echo $ac_n "checking for inet_aton in -l$INET_LINK""... $ac_c" 1>&6
683dccda 14444echo "configure:14445: checking for inet_aton in -l$INET_LINK" >&5
698dcdb6
VZ
14445ac_lib_var=`echo $INET_LINK'_'inet_aton | sed 'y%./+-%__p_%'`
14446if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14447 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 14448else
698dcdb6 14449 ac_save_LIBS="$LIBS"
c63c7106 14450LIBS="-l$INET_LINK $LIBS"
698dcdb6 14451cat > conftest.$ac_ext <<EOF
683dccda 14452#line 14453 "configure"
10f2d63a
VZ
14453#include "confdefs.h"
14454/* Override any gcc2 internal prototype to avoid an error. */
14455/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
14456 builtin and then its argument prototype would still apply. */
14457char inet_aton();
14458
14459int main() {
14460inet_aton()
14461; return 0; }
14462EOF
683dccda 14463if { (eval echo configure:14464: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
14464 rm -rf conftest*
14465 eval "ac_cv_lib_$ac_lib_var=yes"
14466else
14467 echo "configure: failed program was:" >&5
14468 cat conftest.$ac_ext >&5
14469 rm -rf conftest*
14470 eval "ac_cv_lib_$ac_lib_var=no"
14471fi
14472rm -f conftest*
14473LIBS="$ac_save_LIBS"
14474
14475fi
14476if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14477 echo "$ac_t""yes" 1>&6
14478 cat >> confdefs.h <<\EOF
c63c7106 14479#define HAVE_INET_ATON 1
10f2d63a
VZ
14480EOF
14481
698dcdb6
VZ
14482else
14483 echo "$ac_t""no" 1>&6
10f2d63a
VZ
14484fi
14485
698dcdb6 14486
c63c7106
VZ
14487fi
14488done
14489
698dcdb6 14490
c63c7106 14491if test "x$INET_LINK" != "x"; then
698dcdb6 14492 cat >> confdefs.h <<\EOF
c63c7106
VZ
14493#define HAVE_INET_ADDR 1
14494EOF
14495
14496 INET_LINK="-l$INET_LINK"
14497fi
10f2d63a
VZ
14498
14499fi
14500
698dcdb6
VZ
14501
14502cat > confcache <<\EOF
10f2d63a
VZ
14503# This file is a shell script that caches the results of configure
14504# tests run on this system so they can be shared between configure
698dcdb6
VZ
14505# scripts and configure runs. It is not useful on other systems.
14506# If it contains results you don't want to keep, you may remove or edit it.
10f2d63a 14507#
698dcdb6
VZ
14508# By default, configure uses ./config.cache as the cache file,
14509# creating it if it does not exist already. You can give configure
14510# the --cache-file=FILE option to use a different cache file; that is
14511# what configure does when it calls configure scripts in
14512# subdirectories, so they share the cache.
14513# Giving --cache-file=/dev/null disables caching, for debugging configure.
14514# config.status only pays attention to the cache file if you give it the
14515# --recheck option to rerun configure.
10f2d63a 14516#
698dcdb6 14517EOF
10f2d63a
VZ
14518# The following way of writing the cache mishandles newlines in values,
14519# but we know of no workaround that is simple, portable, and efficient.
14520# So, don't put newlines in cache variables' values.
14521# Ultrix sh set writes to stderr and can't be redirected directly,
14522# and sets the high bit in the cache file unless we assign to the vars.
698dcdb6
VZ
14523(set) 2>&1 |
14524 case `(ac_space=' '; set | grep ac_space) 2>&1` in
14525 *ac_space=\ *)
14526 # `set' does not quote correctly, so add quotes (double-quote substitution
14527 # turns \\\\ into \\, and sed turns \\ into \).
14528 sed -n \
14529 -e "s/'/'\\\\''/g" \
14530 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
14531 ;;
14532 *)
14533 # `set' quotes correctly as required by POSIX, so do not add quotes.
14534 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
14535 ;;
14536 esac >> confcache
14537if cmp -s $cache_file confcache; then
14538 :
14539else
10f2d63a 14540 if test -w $cache_file; then
698dcdb6
VZ
14541 echo "updating cache $cache_file"
14542 cat confcache > $cache_file
10f2d63a
VZ
14543 else
14544 echo "not updating unwritable cache $cache_file"
14545 fi
14546fi
14547rm -f confcache
14548
698dcdb6
VZ
14549
14550
b089607b 14551if test "$TOOLKIT" != "MSW"; then
10f2d63a 14552
698dcdb6 14553
3a922bb4
RL
14554THREADS_LINK=
14555THREADS_OBJ=
14556CODE_GEN_FLAGS=
14557CODE_GEN_FLAGS_CXX=
10f2d63a
VZ
14558
14559if test "$wxUSE_THREADS" = "yes" ; then
14560 if test "$wxUSE_WINE" = 1 ; then
698dcdb6 14561 echo "configure: warning: Threads are not supported under WINE" 1>&2
10f2d63a 14562 wxUSE_THREADS="no"
b12915c1 14563 elif test "$USE_BEOS" = 1; then
698dcdb6 14564 echo "configure: warning: BeOS threads are not yet supported" 1>&2
b12915c1 14565 wxUSE_THREADS="no"
10f2d63a
VZ
14566 fi
14567fi
14568
14569if test "$wxUSE_THREADS" = "yes" ; then
698dcdb6 14570
186837b0 14571 if test "$USE_AIX" = 1; then
f6bcfd97
BP
14572 THREADS_LIB=pthreads
14573 else
14574 THREADS_LIB=pthread
14575 fi
14576
698dcdb6 14577 echo $ac_n "checking for pthread_create in -l$THREADS_LIB""... $ac_c" 1>&6
683dccda 14578echo "configure:14579: checking for pthread_create in -l$THREADS_LIB" >&5
698dcdb6
VZ
14579ac_lib_var=`echo $THREADS_LIB'_'pthread_create | sed 'y%./+-%__p_%'`
14580if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14581 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 14582else
698dcdb6 14583 ac_save_LIBS="$LIBS"
f6bcfd97 14584LIBS="-l$THREADS_LIB $LIBS"
698dcdb6 14585cat > conftest.$ac_ext <<EOF
683dccda 14586#line 14587 "configure"
10f2d63a
VZ
14587#include "confdefs.h"
14588/* Override any gcc2 internal prototype to avoid an error. */
14589/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
14590 builtin and then its argument prototype would still apply. */
14591char pthread_create();
14592
14593int main() {
14594pthread_create()
14595; return 0; }
14596EOF
683dccda 14597if { (eval echo configure:14598: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
14598 rm -rf conftest*
14599 eval "ac_cv_lib_$ac_lib_var=yes"
14600else
14601 echo "configure: failed program was:" >&5
14602 cat conftest.$ac_ext >&5
14603 rm -rf conftest*
14604 eval "ac_cv_lib_$ac_lib_var=no"
14605fi
14606rm -f conftest*
14607LIBS="$ac_save_LIBS"
10f2d63a 14608
698dcdb6
VZ
14609fi
14610if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14611 echo "$ac_t""yes" 1>&6
14612
10f2d63a 14613 THREADS_OBJ="threadpsx.lo"
f6bcfd97 14614 THREADS_LINK=$THREADS_LIB
698dcdb6 14615
10f2d63a 14616else
698dcdb6 14617 echo "$ac_t""no" 1>&6
10f2d63a 14618
698dcdb6 14619 echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6
683dccda 14620echo "configure:14621: checking for pthread_create in -lc_r" >&5
698dcdb6
VZ
14621ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'`
14622if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14623 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 14624else
698dcdb6 14625 ac_save_LIBS="$LIBS"
10f2d63a 14626LIBS="-lc_r $LIBS"
698dcdb6 14627cat > conftest.$ac_ext <<EOF
683dccda 14628#line 14629 "configure"
10f2d63a
VZ
14629#include "confdefs.h"
14630/* Override any gcc2 internal prototype to avoid an error. */
14631/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
14632 builtin and then its argument prototype would still apply. */
14633char pthread_create();
14634
14635int main() {
14636pthread_create()
14637; return 0; }
14638EOF
683dccda 14639if { (eval echo configure:14640: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
14640 rm -rf conftest*
14641 eval "ac_cv_lib_$ac_lib_var=yes"
14642else
14643 echo "configure: failed program was:" >&5
14644 cat conftest.$ac_ext >&5
14645 rm -rf conftest*
14646 eval "ac_cv_lib_$ac_lib_var=no"
14647fi
14648rm -f conftest*
14649LIBS="$ac_save_LIBS"
10f2d63a 14650
698dcdb6
VZ
14651fi
14652if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14653 echo "$ac_t""yes" 1>&6
14654
10f2d63a
VZ
14655 THREADS_OBJ="threadpsx.lo"
14656 THREADS_LINK="c_r"
698dcdb6 14657
10f2d63a 14658else
698dcdb6 14659 echo "$ac_t""no" 1>&6
10f2d63a 14660
698dcdb6
VZ
14661 ac_safe=`echo "sys/prctl.h" | sed 'y%./+-%__p_%'`
14662echo $ac_n "checking for sys/prctl.h""... $ac_c" 1>&6
683dccda 14663echo "configure:14664: checking for sys/prctl.h" >&5
698dcdb6
VZ
14664if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
14665 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 14666else
698dcdb6 14667 cat > conftest.$ac_ext <<EOF
683dccda 14668#line 14669 "configure"
10f2d63a
VZ
14669#include "confdefs.h"
14670#include <sys/prctl.h>
698dcdb6
VZ
14671EOF
14672ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
683dccda 14673{ (eval echo configure:14674: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
14674ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14675if test -z "$ac_err"; then
14676 rm -rf conftest*
14677 eval "ac_cv_header_$ac_safe=yes"
1e487827 14678else
698dcdb6
VZ
14679 echo "$ac_err" >&5
14680 echo "configure: failed program was:" >&5
10f2d63a 14681 cat conftest.$ac_ext >&5
698dcdb6
VZ
14682 rm -rf conftest*
14683 eval "ac_cv_header_$ac_safe=no"
10f2d63a 14684fi
698dcdb6 14685rm -f conftest*
10f2d63a 14686fi
698dcdb6
VZ
14687if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14688 echo "$ac_t""yes" 1>&6
14689
1f8ae82f 14690 THREADS_OBJ="threadsgi.lo"
698dcdb6
VZ
14691
14692else
14693 echo "$ac_t""no" 1>&6
10f2d63a
VZ
14694fi
14695
698dcdb6 14696
6232543b 14697fi
10f2d63a 14698
698dcdb6 14699
1e487827 14700fi
703e0a69 14701
698dcdb6 14702
10f2d63a
VZ
14703 if test -z "$THREADS_OBJ" ; then
14704 wxUSE_THREADS=no
698dcdb6 14705 echo "configure: warning: No thread support on this system" 1>&2
10f2d63a
VZ
14706 fi
14707fi
14708
14709if test "$wxUSE_THREADS" = "yes" ; then
698dcdb6 14710 for ac_func in thr_setconcurrency
70846f0a 14711do
698dcdb6 14712echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
683dccda 14713echo "configure:14714: checking for $ac_func" >&5
698dcdb6
VZ
14714if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14715 echo $ac_n "(cached) $ac_c" 1>&6
14716else
14717 cat > conftest.$ac_ext <<EOF
683dccda 14718#line 14719 "configure"
70846f0a
VZ
14719#include "confdefs.h"
14720/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 14721 which can conflict with char $ac_func(); below. */
70846f0a
VZ
14722#include <assert.h>
14723/* Override any gcc2 internal prototype to avoid an error. */
14724/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
14725 builtin and then its argument prototype would still apply. */
14726char $ac_func();
14727
14728int main() {
70846f0a
VZ
14729
14730/* The GNU C library defines this for functions which it implements
14731 to always fail with ENOSYS. Some functions are actually named
14732 something starting with __ and the normal name is an alias. */
14733#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14734choke me
14735#else
698dcdb6 14736$ac_func();
70846f0a
VZ
14737#endif
14738
698dcdb6 14739; return 0; }
70846f0a 14740EOF
683dccda 14741if { (eval echo configure:14742: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
14742 rm -rf conftest*
14743 eval "ac_cv_func_$ac_func=yes"
14744else
14745 echo "configure: failed program was:" >&5
14746 cat conftest.$ac_ext >&5
14747 rm -rf conftest*
14748 eval "ac_cv_func_$ac_func=no"
14749fi
14750rm -f conftest*
14751fi
70846f0a 14752
698dcdb6
VZ
14753if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14754 echo "$ac_t""yes" 1>&6
14755 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14756 cat >> confdefs.h <<EOF
14757#define $ac_tr_func 1
14758EOF
14759
14760else
14761 echo "$ac_t""no" 1>&6
70846f0a
VZ
14762fi
14763done
14764
698dcdb6
VZ
14765
14766
14767 for ac_hdr in sched.h
10f2d63a 14768do
698dcdb6
VZ
14769ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
14770echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
683dccda 14771echo "configure:14772: checking for $ac_hdr" >&5
698dcdb6
VZ
14772if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
14773 echo $ac_n "(cached) $ac_c" 1>&6
14774else
14775 cat > conftest.$ac_ext <<EOF
683dccda 14776#line 14777 "configure"
10f2d63a 14777#include "confdefs.h"
698dcdb6
VZ
14778#include <$ac_hdr>
14779EOF
14780ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
683dccda 14781{ (eval echo configure:14782: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
14782ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14783if test -z "$ac_err"; then
14784 rm -rf conftest*
14785 eval "ac_cv_header_$ac_safe=yes"
1e487827 14786else
698dcdb6
VZ
14787 echo "$ac_err" >&5
14788 echo "configure: failed program was:" >&5
10f2d63a 14789 cat conftest.$ac_ext >&5
698dcdb6
VZ
14790 rm -rf conftest*
14791 eval "ac_cv_header_$ac_safe=no"
10f2d63a 14792fi
698dcdb6 14793rm -f conftest*
10f2d63a 14794fi
698dcdb6
VZ
14795if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14796 echo "$ac_t""yes" 1>&6
14797 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
14798 cat >> confdefs.h <<EOF
14799#define $ac_tr_hdr 1
10f2d63a 14800EOF
698dcdb6
VZ
14801
14802else
14803 echo "$ac_t""no" 1>&6
10f2d63a
VZ
14804fi
14805done
14806
698dcdb6
VZ
14807
14808 echo $ac_n "checking for sched_yield in -l$THREADS_LINK""... $ac_c" 1>&6
683dccda 14809echo "configure:14810: checking for sched_yield in -l$THREADS_LINK" >&5
698dcdb6
VZ
14810ac_lib_var=`echo $THREADS_LINK'_'sched_yield | sed 'y%./+-%__p_%'`
14811if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14812 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 14813else
698dcdb6 14814 ac_save_LIBS="$LIBS"
10f2d63a 14815LIBS="-l$THREADS_LINK $LIBS"
698dcdb6 14816cat > conftest.$ac_ext <<EOF
683dccda 14817#line 14818 "configure"
10f2d63a
VZ
14818#include "confdefs.h"
14819/* Override any gcc2 internal prototype to avoid an error. */
14820/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
14821 builtin and then its argument prototype would still apply. */
14822char sched_yield();
14823
14824int main() {
14825sched_yield()
14826; return 0; }
14827EOF
683dccda 14828if { (eval echo configure:14829: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
14829 rm -rf conftest*
14830 eval "ac_cv_lib_$ac_lib_var=yes"
14831else
14832 echo "configure: failed program was:" >&5
14833 cat conftest.$ac_ext >&5
14834 rm -rf conftest*
14835 eval "ac_cv_lib_$ac_lib_var=no"
14836fi
14837rm -f conftest*
14838LIBS="$ac_save_LIBS"
14839
14840fi
14841if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14842 echo "$ac_t""yes" 1>&6
14843 cat >> confdefs.h <<\EOF
10f2d63a
VZ
14844#define HAVE_SCHED_YIELD 1
14845EOF
14846
14847else
698dcdb6
VZ
14848 echo "$ac_t""no" 1>&6
14849echo $ac_n "checking for sched_yield in -lposix4""... $ac_c" 1>&6
683dccda 14850echo "configure:14851: checking for sched_yield in -lposix4" >&5
698dcdb6
VZ
14851ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'`
14852if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14853 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 14854else
698dcdb6 14855 ac_save_LIBS="$LIBS"
1e487827 14856LIBS="-lposix4 $LIBS"
698dcdb6 14857cat > conftest.$ac_ext <<EOF
683dccda 14858#line 14859 "configure"
10f2d63a
VZ
14859#include "confdefs.h"
14860/* Override any gcc2 internal prototype to avoid an error. */
14861/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
14862 builtin and then its argument prototype would still apply. */
14863char sched_yield();
14864
14865int main() {
14866sched_yield()
14867; return 0; }
14868EOF
683dccda 14869if { (eval echo configure:14870: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
14870 rm -rf conftest*
14871 eval "ac_cv_lib_$ac_lib_var=yes"
14872else
14873 echo "configure: failed program was:" >&5
14874 cat conftest.$ac_ext >&5
14875 rm -rf conftest*
14876 eval "ac_cv_lib_$ac_lib_var=no"
14877fi
14878rm -f conftest*
14879LIBS="$ac_save_LIBS"
14880
14881fi
14882if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14883 echo "$ac_t""yes" 1>&6
14884 cat >> confdefs.h <<\EOF
10f2d63a
VZ
14885#define HAVE_SCHED_YIELD 1
14886EOF
14887 POSIX4_LINK="-lposix4"
14888else
698dcdb6
VZ
14889 echo "$ac_t""no" 1>&6
14890echo "configure: warning: wxThread::Yield will not work properly" 1>&2
14891
6232543b 14892fi
10f2d63a 14893
698dcdb6 14894
1e487827 14895fi
703e0a69 14896
698dcdb6 14897
f6bcfd97 14898 HAVE_PRIOR_FUNCS=0
698dcdb6 14899 echo $ac_n "checking for pthread_attr_getschedpolicy in -l$THREADS_LINK""... $ac_c" 1>&6
683dccda 14900echo "configure:14901: checking for pthread_attr_getschedpolicy in -l$THREADS_LINK" >&5
698dcdb6
VZ
14901ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_getschedpolicy | sed 'y%./+-%__p_%'`
14902if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14903 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 14904else
698dcdb6 14905 ac_save_LIBS="$LIBS"
10f2d63a 14906LIBS="-l$THREADS_LINK $LIBS"
698dcdb6 14907cat > conftest.$ac_ext <<EOF
683dccda 14908#line 14909 "configure"
10f2d63a
VZ
14909#include "confdefs.h"
14910/* Override any gcc2 internal prototype to avoid an error. */
14911/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
14912 builtin and then its argument prototype would still apply. */
14913char pthread_attr_getschedpolicy();
14914
14915int main() {
14916pthread_attr_getschedpolicy()
14917; return 0; }
14918EOF
683dccda 14919if { (eval echo configure:14920: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
14920 rm -rf conftest*
14921 eval "ac_cv_lib_$ac_lib_var=yes"
14922else
14923 echo "configure: failed program was:" >&5
14924 cat conftest.$ac_ext >&5
14925 rm -rf conftest*
14926 eval "ac_cv_lib_$ac_lib_var=no"
14927fi
14928rm -f conftest*
14929LIBS="$ac_save_LIBS"
14930
14931fi
14932if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14933 echo "$ac_t""yes" 1>&6
14934 echo $ac_n "checking for pthread_attr_setschedparam in -l$THREADS_LINK""... $ac_c" 1>&6
683dccda 14935echo "configure:14936: checking for pthread_attr_setschedparam in -l$THREADS_LINK" >&5
698dcdb6
VZ
14936ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_setschedparam | sed 'y%./+-%__p_%'`
14937if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14938 echo $ac_n "(cached) $ac_c" 1>&6
14939else
14940 ac_save_LIBS="$LIBS"
f6bcfd97 14941LIBS="-l$THREADS_LINK $LIBS"
698dcdb6 14942cat > conftest.$ac_ext <<EOF
683dccda 14943#line 14944 "configure"
f6bcfd97
BP
14944#include "confdefs.h"
14945/* Override any gcc2 internal prototype to avoid an error. */
14946/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
14947 builtin and then its argument prototype would still apply. */
14948char pthread_attr_setschedparam();
14949
14950int main() {
14951pthread_attr_setschedparam()
14952; return 0; }
14953EOF
683dccda 14954if { (eval echo configure:14955: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
14955 rm -rf conftest*
14956 eval "ac_cv_lib_$ac_lib_var=yes"
14957else
14958 echo "configure: failed program was:" >&5
14959 cat conftest.$ac_ext >&5
14960 rm -rf conftest*
14961 eval "ac_cv_lib_$ac_lib_var=no"
14962fi
14963rm -f conftest*
14964LIBS="$ac_save_LIBS"
14965
14966fi
14967if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14968 echo "$ac_t""yes" 1>&6
14969 echo $ac_n "checking for sched_get_priority_max in -l$THREADS_LINK""... $ac_c" 1>&6
683dccda 14970echo "configure:14971: checking for sched_get_priority_max in -l$THREADS_LINK" >&5
698dcdb6
VZ
14971ac_lib_var=`echo $THREADS_LINK'_'sched_get_priority_max | sed 'y%./+-%__p_%'`
14972if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14973 echo $ac_n "(cached) $ac_c" 1>&6
14974else
14975 ac_save_LIBS="$LIBS"
f6bcfd97 14976LIBS="-l$THREADS_LINK $LIBS"
698dcdb6 14977cat > conftest.$ac_ext <<EOF
683dccda 14978#line 14979 "configure"
f6bcfd97
BP
14979#include "confdefs.h"
14980/* Override any gcc2 internal prototype to avoid an error. */
14981/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
14982 builtin and then its argument prototype would still apply. */
14983char sched_get_priority_max();
14984
14985int main() {
14986sched_get_priority_max()
14987; return 0; }
14988EOF
683dccda 14989if { (eval echo configure:14990: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
14990 rm -rf conftest*
14991 eval "ac_cv_lib_$ac_lib_var=yes"
14992else
14993 echo "configure: failed program was:" >&5
14994 cat conftest.$ac_ext >&5
14995 rm -rf conftest*
14996 eval "ac_cv_lib_$ac_lib_var=no"
14997fi
14998rm -f conftest*
14999LIBS="$ac_save_LIBS"
15000
15001fi
15002if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15003 echo "$ac_t""yes" 1>&6
f6bcfd97 15004 HAVE_PRIOR_FUNCS=1
10f2d63a 15005else
698dcdb6
VZ
15006 echo "$ac_t""no" 1>&6
15007echo $ac_n "checking for sched_get_priority_max in -lposix4""... $ac_c" 1>&6
683dccda 15008echo "configure:15009: checking for sched_get_priority_max in -lposix4" >&5
698dcdb6
VZ
15009ac_lib_var=`echo posix4'_'sched_get_priority_max | sed 'y%./+-%__p_%'`
15010if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15011 echo $ac_n "(cached) $ac_c" 1>&6
1e487827 15012else
698dcdb6 15013 ac_save_LIBS="$LIBS"
1e487827 15014LIBS="-lposix4 $LIBS"
698dcdb6 15015cat > conftest.$ac_ext <<EOF
683dccda 15016#line 15017 "configure"
10f2d63a 15017#include "confdefs.h"
6232543b 15018/* Override any gcc2 internal prototype to avoid an error. */
6232543b 15019/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
15020 builtin and then its argument prototype would still apply. */
15021char sched_get_priority_max();
15022
15023int main() {
15024sched_get_priority_max()
15025; return 0; }
15026EOF
683dccda 15027if { (eval echo configure:15028: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
15028 rm -rf conftest*
15029 eval "ac_cv_lib_$ac_lib_var=yes"
15030else
15031 echo "configure: failed program was:" >&5
15032 cat conftest.$ac_ext >&5
15033 rm -rf conftest*
15034 eval "ac_cv_lib_$ac_lib_var=no"
15035fi
15036rm -f conftest*
15037LIBS="$ac_save_LIBS"
10f2d63a 15038
698dcdb6
VZ
15039fi
15040if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15041 echo "$ac_t""yes" 1>&6
15042
f6bcfd97
BP
15043 HAVE_PRIOR_FUNCS=1
15044 POSIX4_LINK="-lposix4"
698dcdb6
VZ
15045
15046else
15047 echo "$ac_t""no" 1>&6
10f2d63a
VZ
15048fi
15049
698dcdb6 15050
10f2d63a
VZ
15051fi
15052
698dcdb6
VZ
15053
15054else
15055 echo "$ac_t""no" 1>&6
6232543b 15056fi
10f2d63a 15057
698dcdb6
VZ
15058
15059else
15060 echo "$ac_t""no" 1>&6
1e487827 15061fi
703e0a69 15062
698dcdb6 15063
f6bcfd97 15064 if test "$HAVE_PRIOR_FUNCS" = 1; then
698dcdb6 15065 cat >> confdefs.h <<\EOF
f6bcfd97
BP
15066#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
15067EOF
15068
15069 else
698dcdb6 15070 echo "configure: warning: Setting thread priority will not work" 1>&2
f6bcfd97
BP
15071 fi
15072
698dcdb6 15073 echo $ac_n "checking for pthread_cancel in -l$THREADS_LINK""... $ac_c" 1>&6
683dccda 15074echo "configure:15075: checking for pthread_cancel in -l$THREADS_LINK" >&5
698dcdb6
VZ
15075ac_lib_var=`echo $THREADS_LINK'_'pthread_cancel | sed 'y%./+-%__p_%'`
15076if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15077 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 15078else
698dcdb6 15079 ac_save_LIBS="$LIBS"
10f2d63a 15080LIBS="-l$THREADS_LINK $LIBS"
698dcdb6 15081cat > conftest.$ac_ext <<EOF
683dccda 15082#line 15083 "configure"
10f2d63a
VZ
15083#include "confdefs.h"
15084/* Override any gcc2 internal prototype to avoid an error. */
15085/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
15086 builtin and then its argument prototype would still apply. */
15087char pthread_cancel();
15088
15089int main() {
15090pthread_cancel()
15091; return 0; }
15092EOF
683dccda 15093if { (eval echo configure:15094: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
15094 rm -rf conftest*
15095 eval "ac_cv_lib_$ac_lib_var=yes"
15096else
15097 echo "configure: failed program was:" >&5
15098 cat conftest.$ac_ext >&5
15099 rm -rf conftest*
15100 eval "ac_cv_lib_$ac_lib_var=no"
15101fi
15102rm -f conftest*
15103LIBS="$ac_save_LIBS"
15104
15105fi
15106if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15107 echo "$ac_t""yes" 1>&6
15108 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15109#define HAVE_PTHREAD_CANCEL 1
15110EOF
15111
15112else
698dcdb6
VZ
15113 echo "$ac_t""no" 1>&6
15114echo "configure: warning: wxThread::Kill() will not work properly" 1>&2
10f2d63a
VZ
15115fi
15116
1e487827 15117
698dcdb6 15118 echo $ac_n "checking for pthread_cleanup_push/pop""... $ac_c" 1>&6
683dccda 15119echo "configure:15120: checking for pthread_cleanup_push/pop" >&5
698dcdb6
VZ
15120if eval "test \"`echo '$''{'wx_cv_func_pthread_cleanup_push'+set}'`\" = set"; then
15121 echo $ac_n "(cached) $ac_c" 1>&6
15122else
15123
15124 cat > conftest.$ac_ext <<EOF
683dccda 15125#line 15126 "configure"
10f2d63a
VZ
15126#include "confdefs.h"
15127#include <pthread.h>
698dcdb6 15128int main() {
10f2d63a
VZ
15129
15130 pthread_cleanup_push(NULL, NULL);
15131 pthread_cleanup_pop(0);
698dcdb6
VZ
15132
15133; return 0; }
15134EOF
683dccda 15135if { (eval echo configure:15136: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
15136 rm -rf conftest*
15137
10f2d63a 15138 wx_cv_func_pthread_cleanup_push=yes
698dcdb6 15139
10f2d63a 15140else
698dcdb6
VZ
15141 echo "configure: failed program was:" >&5
15142 cat conftest.$ac_ext >&5
15143 rm -rf conftest*
15144
10f2d63a 15145 wx_cv_func_pthread_cleanup_push=no
698dcdb6 15146
6232543b 15147fi
698dcdb6
VZ
15148rm -f conftest*
15149
1e487827 15150fi
698dcdb6
VZ
15151
15152echo "$ac_t""$wx_cv_func_pthread_cleanup_push" 1>&6
10f2d63a 15153
d9b9876f 15154 if test "$wx_cv_func_pthread_cleanup_push" = "yes"; then
698dcdb6 15155 cat >> confdefs.h <<\EOF
d9b9876f
VZ
15156#define HAVE_THREAD_CLEANUP_FUNCTIONS 1
15157EOF
15158
15159 fi
15160
698dcdb6 15161
b48da802
VZ
15162 if test "x$wx_lib_glibc21" = "xyes"; then
15163 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
ab252f7b
VZ
15164 fi
15165
698dcdb6 15166 echo $ac_n "checking for pthread_mutexattr_t""... $ac_c" 1>&6
683dccda 15167echo "configure:15168: checking for pthread_mutexattr_t" >&5
698dcdb6
VZ
15168if eval "test \"`echo '$''{'wx_cv_type_pthread_mutexattr_t'+set}'`\" = set"; then
15169 echo $ac_n "(cached) $ac_c" 1>&6
d9b9876f 15170else
698dcdb6
VZ
15171
15172 cat > conftest.$ac_ext <<EOF
683dccda 15173#line 15174 "configure"
d9b9876f
VZ
15174#include "confdefs.h"
15175#include <pthread.h>
698dcdb6 15176int main() {
d9b9876f
VZ
15177
15178 pthread_mutexattr_t attr;
15179 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
698dcdb6
VZ
15180
15181; return 0; }
15182EOF
683dccda 15183if { (eval echo configure:15184: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
15184 rm -rf conftest*
15185
d9b9876f 15186 wx_cv_type_pthread_mutexattr_t=yes
698dcdb6 15187
d9b9876f 15188else
698dcdb6
VZ
15189 echo "configure: failed program was:" >&5
15190 cat conftest.$ac_ext >&5
15191 rm -rf conftest*
15192
d9b9876f 15193 wx_cv_type_pthread_mutexattr_t=no
698dcdb6
VZ
15194
15195
6232543b 15196fi
698dcdb6
VZ
15197rm -f conftest*
15198
1e487827 15199fi
698dcdb6
VZ
15200
15201echo "$ac_t""$wx_cv_type_pthread_mutexattr_t" 1>&6
d9b9876f
VZ
15202
15203 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
698dcdb6 15204 cat >> confdefs.h <<\EOF
d9b9876f
VZ
15205#define HAVE_PTHREAD_MUTEXATTR_T 1
15206EOF
15207
15208 else
698dcdb6 15209 echo $ac_n "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER""... $ac_c" 1>&6
683dccda 15210echo "configure:15211: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
698dcdb6
VZ
15211if eval "test \"`echo '$''{'wx_cv_type_pthread_rec_mutex_init'+set}'`\" = set"; then
15212 echo $ac_n "(cached) $ac_c" 1>&6
15213else
15214
15215 cat > conftest.$ac_ext <<EOF
683dccda 15216#line 15217 "configure"
d9b9876f
VZ
15217#include "confdefs.h"
15218#include <pthread.h>
698dcdb6 15219int main() {
d9b9876f
VZ
15220
15221 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
698dcdb6
VZ
15222
15223; return 0; }
15224EOF
683dccda 15225if { (eval echo configure:15226: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
15226 rm -rf conftest*
15227
d9b9876f 15228 wx_cv_type_pthread_rec_mutex_init=yes
698dcdb6 15229
d9b9876f 15230else
698dcdb6
VZ
15231 echo "configure: failed program was:" >&5
15232 cat conftest.$ac_ext >&5
15233 rm -rf conftest*
15234
d9b9876f 15235 wx_cv_type_pthread_rec_mutex_init=no
698dcdb6
VZ
15236
15237
6232543b 15238fi
698dcdb6
VZ
15239rm -f conftest*
15240
1e487827 15241fi
698dcdb6
VZ
15242
15243echo "$ac_t""$wx_cv_type_pthread_rec_mutex_init" 1>&6
3765e936 15244 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
698dcdb6 15245 cat >> confdefs.h <<\EOF
d9b9876f
VZ
15246#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
15247EOF
15248
15249 else
698dcdb6 15250 echo "configure: warning: wxMutex won't be recursive on this platform" 1>&2
d9b9876f
VZ
15251 fi
15252 fi
15253
10f2d63a 15254 THREADS_LINK="-l$THREADS_LINK"
186837b0
VZ
15255
15256 if test "$USE_SOLARIS" = "yes" -a "$GCC" != "yes"; then
a3cb1afc 15257 CPPFLAGS="${CFLAGS} -mt"
186837b0
VZ
15258 CXXFLAGS="${CXXFLAGS} -mt"
15259 LDFLAGS="${LDFLAGS} -mt"
15260 fi
10f2d63a
VZ
15261fi
15262
15263fi
15264
15265if test "$wxUSE_THREADS" = "yes"; then
698dcdb6 15266 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15267#define wxUSE_THREADS 1
15268EOF
15269
698dcdb6 15270
7b6058cd 15271 if test "$USE_DARWIN" != 1; then
3a922bb4 15272 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT"
2c6025bc 15273 fi
10f2d63a
VZ
15274
15275 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
15276else
15277 if test "$ac_cv_func_strtok_r" = "yes"; then
698dcdb6 15278 echo $ac_n "checking if -D_REENTRANT is needed""... $ac_c" 1>&6
683dccda 15279echo "configure:15280: checking if -D_REENTRANT is needed" >&5
ab9b9eab 15280 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
3a922bb4 15281 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT"
698dcdb6 15282 echo "$ac_t""yes" 1>&6
ab9b9eab 15283 else
698dcdb6 15284 echo "$ac_t""no" 1>&6
10f2d63a
VZ
15285 fi
15286 fi
15287fi
15288
6f72b082 15289if test "$WXGTK20" = 1 ; then
698dcdb6 15290 cat >> confdefs.h <<EOF
6f72b082 15291#define __WXGTK20__ $WXGTK20
13111b2a
VZ
15292EOF
15293
15294 WXGTK12=1
15295fi
15296
10f2d63a 15297if test "$WXGTK12" = 1 ; then
698dcdb6 15298 cat >> confdefs.h <<EOF
10f2d63a
VZ
15299#define __WXGTK12__ $WXGTK12
15300EOF
15301
15302fi
15303
f6bcfd97 15304if test "$WXGTK127" = 1 ; then
698dcdb6 15305 cat >> confdefs.h <<EOF
f6bcfd97
BP
15306#define __WXGTK127__ $WXGTK127
15307EOF
15308
15309fi
15310
10f2d63a
VZ
15311WXDEBUG=
15312
15313if test "$wxUSE_DEBUG_INFO" = "yes" ; then
15314 WXDEBUG="-g"
15315 wxUSE_OPTIMISE=no
15316fi
15317
15318if test "$wxUSE_DEBUG_GDB" = "yes" ; then
15319 wxUSE_DEBUG_INFO=yes
15320 WXDEBUG="-ggdb"
15321fi
15322
15323if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
698dcdb6 15324 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15325#define WXDEBUG 1
15326EOF
15327
15328 WXDEBUG_DEFINE="-D__WXDEBUG__"
15329else
15330 if test "$wxUSE_GTK" = 1 ; then
15331 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
15332 fi
15333fi
15334
15335if test "$wxUSE_MEM_TRACING" = "yes" ; then
698dcdb6 15336 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15337#define wxUSE_MEMORY_TRACING 1
15338EOF
15339
698dcdb6 15340 cat >> confdefs.h <<\EOF
10f2d63a 15341#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
47c13eb7
VS
15342EOF
15343
698dcdb6 15344 cat >> confdefs.h <<\EOF
47c13eb7 15345#define wxUSE_DEBUG_NEW_ALWAYS 1
10f2d63a
VZ
15346EOF
15347
15348 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
15349fi
15350
15351if test "$wxUSE_DMALLOC" = "yes" ; then
15352 DMALLOC_LINK="-ldmalloc"
15353fi
15354
15355PROFILE=
15356if test "$wxUSE_PROFILE" = "yes" ; then
15357 PROFILE="-pg"
15358fi
15359
10f2d63a
VZ
15360if test "$GCC" = yes ; then
15361 if test "$wxUSE_NO_RTTI" = "yes" ; then
3a922bb4 15362 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti"
10f2d63a
VZ
15363 fi
15364 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
3a922bb4 15365 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions"
10f2d63a
VZ
15366 fi
15367 if test "$wxUSE_PERMISSIVE" = "yes" ; then
d08b457b 15368 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
10f2d63a
VZ
15369 fi
15370 if test "$wxUSE_NO_DEPS" = "no" ; then
077c5642
GD
15371 CFLAGS="-MMD ${CFLAGS}"
15372 CXXFLAGS="-MMD ${CXXFLAGS}"
3a922bb4
RL
15373 fi
15374 if test "$USE_WIN32" = 1 ; then
15375 # I'm not even really sure what this was ever added to solve,
15376 # but someone added it for mingw native builds, so I guess
15377 # they had a reason, right??
15378 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fno-pcc-struct-return"
10f2d63a
VZ
15379 fi
15380fi
15381
698dcdb6 15382
10f2d63a
VZ
15383CXXFLAGS=`echo "${CXXFLAGS}" | sed "s/\-O.//g" `
15384CFLAGS=`echo "${CFLAGS}" | sed "s/\-O.//g" `
15385if test "$wxUSE_OPTIMISE" = "no" ; then
15386 OPTIMISE=
15387else
15388 if test "$GCC" = yes ; then
15389 OPTIMISE="-O2"
15390 case "${host}" in
15391 i586-*-*|i686-*-* )
15392 OPTIMISE="${OPTIMISE} "
15393 ;;
15394 esac
15395 else
15396 OPTIMISE="-O"
15397 fi
15398fi
15399
54276ccf
VZ
15400if test "$WXWIN_COMPATIBILITY_2" = "yes"; then
15401 cat >> confdefs.h <<\EOF
15402#define WXWIN_COMPATIBILITY_2 1
15403EOF
15404
15405
15406 WXWIN_COMPATIBILITY_2_2="yes"
15407fi
15408
15409if test "$WXWIN_COMPATIBILITY_2_2" = "yes"; then
15410 cat >> confdefs.h <<\EOF
15411#define WXWIN_COMPATIBILITY_2_2 1
15412EOF
15413
15414fi
15415
698dcdb6 15416
10f2d63a 15417ZLIB_INCLUDE=
422107f9 15418if test "$wxUSE_ZLIB" = "yes" -o "$wxUSE_ZLIB" = "sys" ; then
698dcdb6 15419 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15420#define wxUSE_ZLIB 1
15421EOF
15422
422107f9
VZ
15423 if test "$wxUSE_ZLIB" = "yes" ; then
15424 ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib"
15425 else
15426 ZLIB_LINK=
698dcdb6
VZ
15427 ac_safe=`echo "zlib.h" | sed 'y%./+-%__p_%'`
15428echo $ac_n "checking for zlib.h""... $ac_c" 1>&6
683dccda 15429echo "configure:15430: checking for zlib.h" >&5
698dcdb6
VZ
15430if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15431 echo $ac_n "(cached) $ac_c" 1>&6
15432else
15433 cat > conftest.$ac_ext <<EOF
683dccda 15434#line 15435 "configure"
422107f9
VZ
15435#include "confdefs.h"
15436#include <zlib.h>
698dcdb6
VZ
15437EOF
15438ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
683dccda 15439{ (eval echo configure:15440: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
15440ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15441if test -z "$ac_err"; then
15442 rm -rf conftest*
15443 eval "ac_cv_header_$ac_safe=yes"
422107f9 15444else
698dcdb6
VZ
15445 echo "$ac_err" >&5
15446 echo "configure: failed program was:" >&5
422107f9 15447 cat conftest.$ac_ext >&5
698dcdb6
VZ
15448 rm -rf conftest*
15449 eval "ac_cv_header_$ac_safe=no"
422107f9 15450fi
698dcdb6 15451rm -f conftest*
422107f9 15452fi
698dcdb6
VZ
15453if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15454 echo "$ac_t""yes" 1>&6
15455 echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
683dccda 15456echo "configure:15457: checking for deflate in -lz" >&5
698dcdb6
VZ
15457ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
15458if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15459 echo $ac_n "(cached) $ac_c" 1>&6
422107f9 15460else
698dcdb6 15461 ac_save_LIBS="$LIBS"
422107f9 15462LIBS="-lz $LIBS"
698dcdb6 15463cat > conftest.$ac_ext <<EOF
683dccda 15464#line 15465 "configure"
422107f9
VZ
15465#include "confdefs.h"
15466/* Override any gcc2 internal prototype to avoid an error. */
15467/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
15468 builtin and then its argument prototype would still apply. */
15469char deflate();
15470
15471int main() {
15472deflate()
15473; return 0; }
15474EOF
683dccda 15475if { (eval echo configure:15476: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
15476 rm -rf conftest*
15477 eval "ac_cv_lib_$ac_lib_var=yes"
15478else
15479 echo "configure: failed program was:" >&5
15480 cat conftest.$ac_ext >&5
15481 rm -rf conftest*
15482 eval "ac_cv_lib_$ac_lib_var=no"
15483fi
15484rm -f conftest*
15485LIBS="$ac_save_LIBS"
15486
15487fi
15488if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15489 echo "$ac_t""yes" 1>&6
422107f9 15490 ZLIB_LINK="-lz"
698dcdb6
VZ
15491else
15492 echo "$ac_t""no" 1>&6
422107f9
VZ
15493fi
15494
698dcdb6
VZ
15495else
15496 echo "$ac_t""no" 1>&6
422107f9
VZ
15497fi
15498
15499 if test "x$ZLIB_LINK" = "x" ; then
698dcdb6 15500 { echo "configure: error: system zlib compression library not found! Use --with-zlib=yes to use built-in zlib" 1>&2; exit 1; }
422107f9
VZ
15501 fi
15502 fi
10f2d63a
VZ
15503fi
15504
15505PNG_INCLUDE=
422107f9 15506if test "$wxUSE_LIBPNG" = "yes" -o "$wxUSE_LIBPNG" = "sys" ; then
698dcdb6 15507 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15508#define wxUSE_LIBPNG 1
15509EOF
15510
41fd4136 15511 if test "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
698dcdb6 15512 echo "configure: warning: --with-libpng=sys doesn't work without --with-zlib=sys, will compile the built-in libpng instead" 1>&2
422107f9
VZ
15513 wxUSE_LIBPNG=yes
15514 fi
15515
15516 if test "$wxUSE_LIBPNG" = "yes" ; then
15517 PNG_INCLUDE="-I\${top_srcdir}/src/png"
15518 else
15519 PNG_LINK=
698dcdb6
VZ
15520 ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
15521echo $ac_n "checking for png.h""... $ac_c" 1>&6
683dccda 15522echo "configure:15523: checking for png.h" >&5
698dcdb6
VZ
15523if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15524 echo $ac_n "(cached) $ac_c" 1>&6
15525else
15526 cat > conftest.$ac_ext <<EOF
683dccda 15527#line 15528 "configure"
422107f9
VZ
15528#include "confdefs.h"
15529#include <png.h>
698dcdb6
VZ
15530EOF
15531ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
683dccda 15532{ (eval echo configure:15533: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
15533ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15534if test -z "$ac_err"; then
15535 rm -rf conftest*
15536 eval "ac_cv_header_$ac_safe=yes"
422107f9 15537else
698dcdb6
VZ
15538 echo "$ac_err" >&5
15539 echo "configure: failed program was:" >&5
422107f9 15540 cat conftest.$ac_ext >&5
698dcdb6
VZ
15541 rm -rf conftest*
15542 eval "ac_cv_header_$ac_safe=no"
422107f9 15543fi
698dcdb6 15544rm -f conftest*
422107f9 15545fi
698dcdb6
VZ
15546if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15547 echo "$ac_t""yes" 1>&6
15548 echo $ac_n "checking for png_check_sig in -lpng""... $ac_c" 1>&6
683dccda 15549echo "configure:15550: checking for png_check_sig in -lpng" >&5
698dcdb6
VZ
15550ac_lib_var=`echo png'_'png_check_sig | sed 'y%./+-%__p_%'`
15551if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15552 echo $ac_n "(cached) $ac_c" 1>&6
422107f9 15553else
698dcdb6 15554 ac_save_LIBS="$LIBS"
422107f9 15555LIBS="-lpng -lz -lm $LIBS"
698dcdb6 15556cat > conftest.$ac_ext <<EOF
683dccda 15557#line 15558 "configure"
422107f9
VZ
15558#include "confdefs.h"
15559/* Override any gcc2 internal prototype to avoid an error. */
15560/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
15561 builtin and then its argument prototype would still apply. */
15562char png_check_sig();
15563
15564int main() {
15565png_check_sig()
15566; return 0; }
15567EOF
683dccda 15568if { (eval echo configure:15569: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
15569 rm -rf conftest*
15570 eval "ac_cv_lib_$ac_lib_var=yes"
15571else
15572 echo "configure: failed program was:" >&5
15573 cat conftest.$ac_ext >&5
15574 rm -rf conftest*
15575 eval "ac_cv_lib_$ac_lib_var=no"
15576fi
15577rm -f conftest*
15578LIBS="$ac_save_LIBS"
15579
15580fi
15581if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15582 echo "$ac_t""yes" 1>&6
422107f9 15583 PNG_LINK="-lpng"
698dcdb6
VZ
15584else
15585 echo "$ac_t""no" 1>&6
422107f9
VZ
15586fi
15587
698dcdb6
VZ
15588
15589else
15590 echo "$ac_t""no" 1>&6
422107f9
VZ
15591fi
15592
15593 if test "x$PNG_LINK" = "x" ; then
698dcdb6 15594 { echo "configure: error: system png library not found! Use --with-libpng=yes to use the built-in libpng" 1>&2; exit 1; }
422107f9
VZ
15595 fi
15596 fi
15597
10f2d63a
VZ
15598 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
15599fi
15600
15601JPEG_INCLUDE=
422107f9 15602if test "$wxUSE_LIBJPEG" = "yes" -o "$wxUSE_LIBJPEG" = "sys" ; then
698dcdb6 15603 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15604#define wxUSE_LIBJPEG 1
15605EOF
15606
422107f9
VZ
15607 if test "$wxUSE_LIBJPEG" = "yes" ; then
15608 JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg"
15609 else
15610 JPEG_LINK=
463abc64 15611 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
683dccda 15612echo "configure:15613: checking for jpeglib.h" >&5
463abc64 15613 if eval "test \"`echo '$''{'ac_cv_header_jpeglib_h'+set}'`\" = set"; then
698dcdb6
VZ
15614 echo $ac_n "(cached) $ac_c" 1>&6
15615else
15616 cat > conftest.$ac_ext <<EOF
683dccda 15617#line 15618 "configure"
422107f9 15618#include "confdefs.h"
463abc64
VZ
15619
15620 #undef HAVE_STDLIB_H
15621 #include <stdio.h>
15622 #include <jpeglib.h>
15623
15624int main() {
15625
15626
15627; return 0; }
698dcdb6 15628EOF
683dccda 15629if { (eval echo configure:15630: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 15630 rm -rf conftest*
463abc64 15631 ac_cv_header_jpeglib_h=yes
6232543b 15632else
698dcdb6 15633 echo "configure: failed program was:" >&5
422107f9 15634 cat conftest.$ac_ext >&5
698dcdb6 15635 rm -rf conftest*
463abc64
VZ
15636 ac_cv_header_jpeglib_h=no
15637
422107f9 15638fi
698dcdb6 15639rm -f conftest*
463abc64 15640
422107f9 15641fi
463abc64
VZ
15642
15643 echo "$ac_t""$ac_cv_header_jpeglib_h" 1>&6
15644
15645 if test "$ac_cv_header_jpeglib_h" = "yes"; then
15646 echo $ac_n "checking for jpeg_read_header in -ljpeg""... $ac_c" 1>&6
683dccda 15647echo "configure:15648: checking for jpeg_read_header in -ljpeg" >&5
698dcdb6
VZ
15648ac_lib_var=`echo jpeg'_'jpeg_read_header | sed 'y%./+-%__p_%'`
15649if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15650 echo $ac_n "(cached) $ac_c" 1>&6
422107f9 15651else
698dcdb6 15652 ac_save_LIBS="$LIBS"
422107f9 15653LIBS="-ljpeg $LIBS"
698dcdb6 15654cat > conftest.$ac_ext <<EOF
683dccda 15655#line 15656 "configure"
422107f9
VZ
15656#include "confdefs.h"
15657/* Override any gcc2 internal prototype to avoid an error. */
15658/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
15659 builtin and then its argument prototype would still apply. */
15660char jpeg_read_header();
15661
15662int main() {
15663jpeg_read_header()
15664; return 0; }
15665EOF
683dccda 15666if { (eval echo configure:15667: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
15667 rm -rf conftest*
15668 eval "ac_cv_lib_$ac_lib_var=yes"
15669else
15670 echo "configure: failed program was:" >&5
15671 cat conftest.$ac_ext >&5
15672 rm -rf conftest*
15673 eval "ac_cv_lib_$ac_lib_var=no"
15674fi
15675rm -f conftest*
15676LIBS="$ac_save_LIBS"
15677
15678fi
15679if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15680 echo "$ac_t""yes" 1>&6
422107f9 15681 JPEG_LINK="-ljpeg"
698dcdb6
VZ
15682else
15683 echo "$ac_t""no" 1>&6
422107f9
VZ
15684fi
15685
463abc64 15686 fi
422107f9
VZ
15687
15688 if test "x$JPEG_LINK" = "x" ; then
698dcdb6 15689 { echo "configure: error: system jpeg library not found! Use --with-libjpeg=yes to use the built-in one" 1>&2; exit 1; }
422107f9
VZ
15690 fi
15691 fi
10f2d63a
VZ
15692fi
15693
c7a2bf27 15694TIFF_INCLUDE=
0dcf9893 15695if test "$wxUSE_LIBTIFF" = "yes" -o "$wxUSE_LIBTIFF" = "sys" ; then
698dcdb6 15696 cat >> confdefs.h <<\EOF
c7a2bf27
RR
15697#define wxUSE_LIBTIFF 1
15698EOF
15699
665bbe97 15700 if test "$wxUSE_LIBTIFF" = "yes" ; then
0dcf9893
VZ
15701 TIFF_INCLUDE="-I\${top_srcdir}/src/tiff"
15702 else
15703 TIFF_LINK=
698dcdb6
VZ
15704 ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
15705echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
683dccda 15706echo "configure:15707: checking for tiffio.h" >&5
698dcdb6
VZ
15707if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15708 echo $ac_n "(cached) $ac_c" 1>&6
15709else
15710 cat > conftest.$ac_ext <<EOF
683dccda 15711#line 15712 "configure"
0dcf9893
VZ
15712#include "confdefs.h"
15713#include <tiffio.h>
698dcdb6
VZ
15714EOF
15715ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
683dccda 15716{ (eval echo configure:15717: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
15717ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15718if test -z "$ac_err"; then
15719 rm -rf conftest*
15720 eval "ac_cv_header_$ac_safe=yes"
3fed1840 15721else
698dcdb6
VZ
15722 echo "$ac_err" >&5
15723 echo "configure: failed program was:" >&5
3fed1840 15724 cat conftest.$ac_ext >&5
698dcdb6
VZ
15725 rm -rf conftest*
15726 eval "ac_cv_header_$ac_safe=no"
3fed1840 15727fi
698dcdb6 15728rm -f conftest*
3fed1840 15729fi
698dcdb6
VZ
15730if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15731 echo "$ac_t""yes" 1>&6
3a922bb4 15732 echo $ac_n "checking for TIFFError in -ltiff""... $ac_c" 1>&6
683dccda 15733echo "configure:15734: checking for TIFFError in -ltiff" >&5
3a922bb4 15734ac_lib_var=`echo tiff'_'TIFFError | sed 'y%./+-%__p_%'`
698dcdb6
VZ
15735if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15736 echo $ac_n "(cached) $ac_c" 1>&6
3fed1840 15737else
698dcdb6 15738 ac_save_LIBS="$LIBS"
3a922bb4 15739LIBS="-ltiff -lm $LIBS"
698dcdb6 15740cat > conftest.$ac_ext <<EOF
683dccda 15741#line 15742 "configure"
3fed1840
RR
15742#include "confdefs.h"
15743/* Override any gcc2 internal prototype to avoid an error. */
15744/* We use char because int might match the return type of a gcc2
698dcdb6 15745 builtin and then its argument prototype would still apply. */
3a922bb4 15746char TIFFError();
698dcdb6
VZ
15747
15748int main() {
3a922bb4 15749TIFFError()
698dcdb6
VZ
15750; return 0; }
15751EOF
683dccda 15752if { (eval echo configure:15753: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
15753 rm -rf conftest*
15754 eval "ac_cv_lib_$ac_lib_var=yes"
15755else
15756 echo "configure: failed program was:" >&5
15757 cat conftest.$ac_ext >&5
15758 rm -rf conftest*
15759 eval "ac_cv_lib_$ac_lib_var=no"
15760fi
15761rm -f conftest*
15762LIBS="$ac_save_LIBS"
15763
15764fi
15765if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15766 echo "$ac_t""yes" 1>&6
3a922bb4 15767 TIFF_LINK="-ltiff"
698dcdb6
VZ
15768else
15769 echo "$ac_t""no" 1>&6
3fed1840
RR
15770fi
15771
698dcdb6
VZ
15772else
15773 echo "$ac_t""no" 1>&6
3fed1840
RR
15774fi
15775
3a922bb4
RL
15776 if test "x$TIFF_LINK" = "x" ; then
15777 { echo "configure: error: system tiff library not found! Use --with-libtiff=yes to use the built-in one" 1>&2; exit 1; }
3fed1840
RR
15778 fi
15779 fi
15780fi
15781
3a922bb4
RL
15782FREETYPE_INCLUDE=
15783if test "$wxUSE_FREETYPE" = "yes" -o "$wxUSE_FREETYPE" = "sys" ; then
15784 cat >> confdefs.h <<\EOF
15785#define wxUSE_FREETYPE 1
7b6058cd
GD
15786EOF
15787
3a922bb4
RL
15788 if test "$wxUSE_FREETYPE" = "yes" ; then
15789 FREETYPE_INCLUDE="-I\${top_srcdir}/src/freetype"
7b6058cd 15790 else
3a922bb4
RL
15791 FREETYPE_LINK=
15792 ac_safe=`echo "freetype.h" | sed 'y%./+-%__p_%'`
15793echo $ac_n "checking for freetype.h""... $ac_c" 1>&6
683dccda 15794echo "configure:15795: checking for freetype.h" >&5
698dcdb6
VZ
15795if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15796 echo $ac_n "(cached) $ac_c" 1>&6
15797else
15798 cat > conftest.$ac_ext <<EOF
683dccda 15799#line 15800 "configure"
10f2d63a 15800#include "confdefs.h"
3a922bb4 15801#include <freetype.h>
698dcdb6
VZ
15802EOF
15803ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
683dccda 15804{ (eval echo configure:15805: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
15805ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15806if test -z "$ac_err"; then
15807 rm -rf conftest*
15808 eval "ac_cv_header_$ac_safe=yes"
10f2d63a 15809else
698dcdb6
VZ
15810 echo "$ac_err" >&5
15811 echo "configure: failed program was:" >&5
10f2d63a 15812 cat conftest.$ac_ext >&5
698dcdb6
VZ
15813 rm -rf conftest*
15814 eval "ac_cv_header_$ac_safe=no"
10f2d63a 15815fi
698dcdb6 15816rm -f conftest*
10f2d63a 15817fi
698dcdb6
VZ
15818if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15819 echo "$ac_t""yes" 1>&6
3a922bb4 15820 echo $ac_n "checking for FT_Render_Glyph in -lfreetype""... $ac_c" 1>&6
683dccda 15821echo "configure:15822: checking for FT_Render_Glyph in -lfreetype" >&5
3a922bb4 15822ac_lib_var=`echo freetype'_'FT_Render_Glyph | sed 'y%./+-%__p_%'`
698dcdb6
VZ
15823if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15824 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 15825else
698dcdb6 15826 ac_save_LIBS="$LIBS"
3a922bb4 15827LIBS="-lfreetype -lm $LIBS"
698dcdb6 15828cat > conftest.$ac_ext <<EOF
683dccda 15829#line 15830 "configure"
10f2d63a
VZ
15830#include "confdefs.h"
15831/* Override any gcc2 internal prototype to avoid an error. */
15832/* We use char because int might match the return type of a gcc2
698dcdb6 15833 builtin and then its argument prototype would still apply. */
3a922bb4 15834char FT_Render_Glyph();
698dcdb6
VZ
15835
15836int main() {
3a922bb4 15837FT_Render_Glyph()
698dcdb6
VZ
15838; return 0; }
15839EOF
683dccda 15840if { (eval echo configure:15841: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
15841 rm -rf conftest*
15842 eval "ac_cv_lib_$ac_lib_var=yes"
15843else
15844 echo "configure: failed program was:" >&5
15845 cat conftest.$ac_ext >&5
15846 rm -rf conftest*
15847 eval "ac_cv_lib_$ac_lib_var=no"
15848fi
15849rm -f conftest*
15850LIBS="$ac_save_LIBS"
10f2d63a 15851
698dcdb6
VZ
15852fi
15853if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15854 echo "$ac_t""yes" 1>&6
3a922bb4 15855 FREETYPE_LINK="-lfreetype"
698dcdb6
VZ
15856else
15857 echo "$ac_t""no" 1>&6
10f2d63a
VZ
15858fi
15859
3a922bb4 15860
10f2d63a 15861else
698dcdb6 15862 echo "$ac_t""no" 1>&6
10f2d63a
VZ
15863fi
15864
3a922bb4
RL
15865 if test "x$FREETYPE_LINK" = "x" ; then
15866 { echo "configure: error: system freetype library not found! Use --with-freetype=yes to use the built-in freetype" 1>&2; exit 1; }
15867 fi
7b6058cd 15868 fi
10f2d63a
VZ
15869fi
15870
698dcdb6 15871
10f2d63a 15872if test "$wxUSE_GUI" = "yes"; then
698dcdb6 15873 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15874#define wxUSE_GUI 1
15875EOF
15876
698dcdb6 15877
10f2d63a 15878 else
698dcdb6 15879 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15880#define wxUSE_NOGUI 1
15881EOF
15882
15883fi
15884
698dcdb6 15885
10f2d63a 15886if test "$wxUSE_UNIX" = "yes"; then
698dcdb6 15887 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15888#define wxUSE_UNIX 1
15889EOF
15890
15891fi
15892
698dcdb6 15893
10f2d63a 15894if test "$wxUSE_APPLE_IEEE" = "yes"; then
698dcdb6 15895 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15896#define wxUSE_APPLE_IEEE 1
15897EOF
15898
15899fi
15900
1e6feb95
VZ
15901if test "$wxUSE_TIMER" = "yes"; then
15902 cat >> confdefs.h <<\EOF
15903#define wxUSE_TIMER 1
15904EOF
15905
15906fi
15907
10f2d63a 15908if test "$wxUSE_WAVE" = "yes"; then
698dcdb6 15909 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15910#define wxUSE_WAVE 1
15911EOF
15912
15913fi
15914
1e6feb95
VZ
15915if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
15916 cat >> confdefs.h <<\EOF
15917#define wxUSE_CMDLINE_PARSER 1
15918EOF
15919
15920fi
15921
15922if test "$wxUSE_STOPWATCH" = "yes"; then
15923 cat >> confdefs.h <<\EOF
15924#define wxUSE_STOPWATCH 1
15925EOF
15926
15927fi
15928
15929if test "$wxUSE_DATETIME" = "yes"; then
15930 cat >> confdefs.h <<\EOF
15931#define wxUSE_DATETIME 1
15932EOF
15933
15934fi
15935
15936if test "$wxUSE_TIMEDATE" = "yes"; then
15937 cat >> confdefs.h <<\EOF
15938#define wxUSE_TIMEDATE 1
15939EOF
15940
15941fi
15942
10f2d63a 15943if test "$wxUSE_FILE" = "yes"; then
698dcdb6 15944 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15945#define wxUSE_FILE 1
15946EOF
15947
15948fi
15949
1e6feb95
VZ
15950if test "$wxUSE_FFILE" = "yes"; then
15951 cat >> confdefs.h <<\EOF
15952#define wxUSE_FFILE 1
15953EOF
15954
15955fi
15956
24528b0c 15957if test "$wxUSE_FILESYSTEM" = "yes"; then
698dcdb6 15958 cat >> confdefs.h <<\EOF
24528b0c
VS
15959#define wxUSE_FILESYSTEM 1
15960EOF
15961
15962fi
15963
10f2d63a 15964if test "$wxUSE_FS_INET" = "yes"; then
698dcdb6 15965 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15966#define wxUSE_FS_INET 1
15967EOF
15968
15969fi
15970
15971if test "$wxUSE_FS_ZIP" = "yes"; then
698dcdb6 15972 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15973#define wxUSE_FS_ZIP 1
15974EOF
15975
15976fi
15977
15978if test "$wxUSE_ZIPSTREAM" = "yes"; then
698dcdb6 15979 cat >> confdefs.h <<\EOF
10f2d63a
VZ
15980#define wxUSE_ZIPSTREAM 1
15981EOF
15982
15983fi
15984
eb4efbdc 15985if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
698dcdb6 15986 cat >> confdefs.h <<\EOF
eb4efbdc
VZ
15987#define wxUSE_ON_FATAL_EXCEPTION 1
15988EOF
15989
15990fi
15991
4f3c5f06 15992if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
698dcdb6 15993 cat >> confdefs.h <<\EOF
4f3c5f06
VZ
15994#define wxUSE_SNGLINST_CHECKER 1
15995EOF
15996
15997fi
15998
10f2d63a 15999if test "$wxUSE_BUSYINFO" = "yes"; then
698dcdb6 16000 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16001#define wxUSE_BUSYINFO 1
16002EOF
16003
16004fi
16005
16006if test "$wxUSE_STD_IOSTREAM" = "yes"; then
698dcdb6 16007 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16008#define wxUSE_STD_IOSTREAM 1
16009EOF
16010
16011fi
16012
16013if test "$wxUSE_TEXTFILE" = "yes"; then
16014 if test "$wxUSE_FILE" != "yes"; then
698dcdb6 16015 echo "configure: warning: wxTextFile requires wxFile and it won't be compiled without it" 1>&2
10f2d63a 16016 else
698dcdb6 16017 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16018#define wxUSE_TEXTFILE 1
16019EOF
16020
16021 fi
16022fi
16023
16024if test "$wxUSE_CONFIG" = "yes" ; then
16025 if test "$wxUSE_TEXTFILE" != "yes"; then
698dcdb6 16026 echo "configure: warning: wxConfig requires wxTextFile and it won't be compiled without it" 1>&2
10f2d63a 16027 else
698dcdb6 16028 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16029#define wxUSE_CONFIG 1
16030EOF
16031
16032 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
16033 fi
16034fi
16035
16036if test "$wxUSE_INTL" = "yes" ; then
16037 if test "$wxUSE_FILE" != "yes"; then
698dcdb6 16038 echo "configure: warning: I18n code requires wxFile and it won't be compiled without it" 1>&2
10f2d63a 16039 else
698dcdb6 16040 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16041#define wxUSE_INTL 1
16042EOF
16043
16044 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
f6bcfd97 16045 GUIDIST="$GUIDIST INTL_DIST"
10f2d63a
VZ
16046 fi
16047fi
16048
16049if test "$wxUSE_LOG" = "yes"; then
698dcdb6 16050 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16051#define wxUSE_LOG 1
16052EOF
16053
d73be714
VZ
16054
16055 if test "$wxUSE_LOGGUI" = "yes"; then
16056 cat >> confdefs.h <<\EOF
16057#define wxUSE_LOGGUI 1
16058EOF
16059
16060 fi
16061
16062 if test "$wxUSE_LOGWINDOW" = "yes"; then
16063 cat >> confdefs.h <<\EOF
16064#define wxUSE_LOGWINDOW 1
16065EOF
16066
16067 fi
10f2d63a
VZ
16068fi
16069
16070if test "$wxUSE_LONGLONG" = "yes"; then
698dcdb6 16071 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16072#define wxUSE_LONGLONG 1
16073EOF
16074
16075fi
16076
e8f65ba6 16077if test "$wxUSE_GEOMETRY" = "yes"; then
698dcdb6 16078 cat >> confdefs.h <<\EOF
e8f65ba6
RR
16079#define wxUSE_GEOMETRY 1
16080EOF
16081
16082fi
16083
10f2d63a 16084if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
698dcdb6 16085 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16086#define wxUSE_DIALUP_MANAGER 1
16087EOF
16088
70f7a477 16089 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
10f2d63a
VZ
16090fi
16091
16092if test "$wxUSE_STREAMS" = "yes" ; then
698dcdb6 16093 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16094#define wxUSE_STREAMS 1
16095EOF
16096
16097fi
16098
1e487827 16099
1e6feb95 16100if test "$wxUSE_DATETIME" = "yes"; then
698dcdb6 16101 for ac_func in strptime
83307f33 16102do
698dcdb6 16103echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
683dccda 16104echo "configure:16105: checking for $ac_func" >&5
698dcdb6
VZ
16105if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16106 echo $ac_n "(cached) $ac_c" 1>&6
16107else
16108 cat > conftest.$ac_ext <<EOF
683dccda 16109#line 16110 "configure"
83307f33
VZ
16110#include "confdefs.h"
16111/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 16112 which can conflict with char $ac_func(); below. */
83307f33
VZ
16113#include <assert.h>
16114/* Override any gcc2 internal prototype to avoid an error. */
16115/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
16116 builtin and then its argument prototype would still apply. */
16117char $ac_func();
16118
16119int main() {
83307f33
VZ
16120
16121/* The GNU C library defines this for functions which it implements
16122 to always fail with ENOSYS. Some functions are actually named
16123 something starting with __ and the normal name is an alias. */
16124#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16125choke me
16126#else
698dcdb6 16127$ac_func();
83307f33
VZ
16128#endif
16129
698dcdb6 16130; return 0; }
83307f33 16131EOF
683dccda 16132if { (eval echo configure:16133: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
16133 rm -rf conftest*
16134 eval "ac_cv_func_$ac_func=yes"
16135else
16136 echo "configure: failed program was:" >&5
16137 cat conftest.$ac_ext >&5
16138 rm -rf conftest*
16139 eval "ac_cv_func_$ac_func=no"
16140fi
16141rm -f conftest*
16142fi
83307f33 16143
698dcdb6
VZ
16144if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16145 echo "$ac_t""yes" 1>&6
16146 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16147 cat >> confdefs.h <<EOF
16148#define $ac_tr_func 1
16149EOF
16150
16151else
16152 echo "$ac_t""no" 1>&6
83307f33
VZ
16153fi
16154done
16155
1e487827 16156
698dcdb6 16157 echo $ac_n "checking for timezone variable in <time.h>""... $ac_c" 1>&6
683dccda 16158echo "configure:16159: checking for timezone variable in <time.h>" >&5
698dcdb6
VZ
16159if eval "test \"`echo '$''{'wx_cv_var_timezone'+set}'`\" = set"; then
16160 echo $ac_n "(cached) $ac_c" 1>&6
16161else
16162
16163 cat > conftest.$ac_ext <<EOF
683dccda 16164#line 16165 "configure"
360d6699
VZ
16165#include "confdefs.h"
16166
b4085ce6 16167 #include <time.h>
698dcdb6
VZ
16168
16169int main() {
360d6699
VZ
16170
16171 int tz;
4f11a343 16172 tz = timezone;
698dcdb6
VZ
16173
16174; return 0; }
16175EOF
683dccda 16176if { (eval echo configure:16177: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
16177 rm -rf conftest*
16178
4f11a343 16179 wx_cv_var_timezone=timezone
698dcdb6 16180
360d6699 16181else
698dcdb6
VZ
16182 echo "configure: failed program was:" >&5
16183 cat conftest.$ac_ext >&5
16184 rm -rf conftest*
16185
16186 cat > conftest.$ac_ext <<EOF
683dccda 16187#line 16188 "configure"
360d6699
VZ
16188#include "confdefs.h"
16189
b4085ce6 16190 #include <time.h>
698dcdb6
VZ
16191
16192int main() {
360d6699
VZ
16193
16194 int tz;
16195 tz = _timezone;
698dcdb6
VZ
16196
16197; return 0; }
16198EOF
683dccda 16199if { (eval echo configure:16200: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
16200 rm -rf conftest*
16201
360d6699 16202 wx_cv_var_timezone=_timezone
698dcdb6 16203
5357c8e8 16204else
698dcdb6
VZ
16205 echo "configure: failed program was:" >&5
16206 cat conftest.$ac_ext >&5
16207 rm -rf conftest*
16208
16209 cat > conftest.$ac_ext <<EOF
683dccda 16210#line 16211 "configure"
5357c8e8
VZ
16211#include "confdefs.h"
16212
b4085ce6 16213 #include <time.h>
698dcdb6
VZ
16214
16215int main() {
5357c8e8
VZ
16216
16217 int tz;
4f11a343 16218 tz = __timezone;
698dcdb6
VZ
16219
16220; return 0; }
16221EOF
683dccda 16222if { (eval echo configure:16223: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
16223 rm -rf conftest*
16224
4f11a343 16225 wx_cv_var_timezone=__timezone
698dcdb6 16226
360d6699 16227else
698dcdb6
VZ
16228 echo "configure: failed program was:" >&5
16229 cat conftest.$ac_ext >&5
16230 rm -rf conftest*
16231 { echo "configure: error: no timezone variable" 1>&2; exit 1; }
16232
360d6699 16233fi
698dcdb6
VZ
16234rm -f conftest*
16235
16236
360d6699 16237fi
698dcdb6
VZ
16238rm -f conftest*
16239
16240
6232543b 16241fi
698dcdb6
VZ
16242rm -f conftest*
16243
16244
1e487827 16245fi
703e0a69 16246
698dcdb6
VZ
16247echo "$ac_t""$wx_cv_var_timezone" 1>&6
16248
16249 cat >> confdefs.h <<EOF
360d6699
VZ
16250#define WX_TIMEZONE $wx_cv_var_timezone
16251EOF
16252
698dcdb6
VZ
16253
16254 for ac_func in localtime
afc31813 16255do
698dcdb6 16256echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
683dccda 16257echo "configure:16258: checking for $ac_func" >&5
698dcdb6
VZ
16258if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16259 echo $ac_n "(cached) $ac_c" 1>&6
16260else
16261 cat > conftest.$ac_ext <<EOF
683dccda 16262#line 16263 "configure"
10f2d63a 16263#include "confdefs.h"
afc31813 16264/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 16265 which can conflict with char $ac_func(); below. */
afc31813
VZ
16266#include <assert.h>
16267/* Override any gcc2 internal prototype to avoid an error. */
16268/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
16269 builtin and then its argument prototype would still apply. */
16270char $ac_func();
16271
16272int main() {
afc31813
VZ
16273
16274/* The GNU C library defines this for functions which it implements
16275 to always fail with ENOSYS. Some functions are actually named
16276 something starting with __ and the normal name is an alias. */
16277#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16278choke me
16279#else
698dcdb6 16280$ac_func();
afc31813
VZ
16281#endif
16282
698dcdb6 16283; return 0; }
10f2d63a 16284EOF
683dccda 16285if { (eval echo configure:16286: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
16286 rm -rf conftest*
16287 eval "ac_cv_func_$ac_func=yes"
16288else
16289 echo "configure: failed program was:" >&5
16290 cat conftest.$ac_ext >&5
16291 rm -rf conftest*
16292 eval "ac_cv_func_$ac_func=no"
16293fi
16294rm -f conftest*
16295fi
afc31813 16296
698dcdb6
VZ
16297if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16298 echo "$ac_t""yes" 1>&6
16299 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16300 cat >> confdefs.h <<EOF
16301#define $ac_tr_func 1
16302EOF
16303
16304else
16305 echo "$ac_t""no" 1>&6
afc31813
VZ
16306fi
16307done
16308
1e487827 16309
698dcdb6
VZ
16310 if test "$ac_cv_func_localtime" = "yes"; then
16311 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
683dccda 16312echo "configure:16313: checking for tm_gmtoff in struct tm" >&5
698dcdb6
VZ
16313if eval "test \"`echo '$''{'wx_cv_struct_tm_has_gmtoff'+set}'`\" = set"; then
16314 echo $ac_n "(cached) $ac_c" 1>&6
16315else
16316
16317 cat > conftest.$ac_ext <<EOF
683dccda 16318#line 16319 "configure"
0470b1e6
VZ
16319#include "confdefs.h"
16320
b4085ce6 16321 #include <time.h>
698dcdb6
VZ
16322
16323int main() {
0470b1e6
VZ
16324
16325 struct tm tm;
16326 tm.tm_gmtoff++;
698dcdb6
VZ
16327
16328; return 0; }
16329EOF
683dccda 16330if { (eval echo configure:16331: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6
VZ
16331 rm -rf conftest*
16332
f03a98d8 16333 wx_cv_struct_tm_has_gmtoff=yes
698dcdb6 16334
0470b1e6 16335else
698dcdb6
VZ
16336 echo "configure: failed program was:" >&5
16337 cat conftest.$ac_ext >&5
16338 rm -rf conftest*
16339 wx_cv_struct_tm_has_gmtoff=no
16340
0470b1e6 16341fi
698dcdb6
VZ
16342rm -f conftest*
16343
1e487827 16344fi
698dcdb6
VZ
16345
16346echo "$ac_t""$wx_cv_struct_tm_has_gmtoff" 1>&6
6232543b
VS
16347 fi
16348
16349 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
698dcdb6 16350 cat >> confdefs.h <<\EOF
6232543b
VS
16351#define WX_GMTOFF_IN_TM 1
16352EOF
0470b1e6 16353
3fcdd07b
VZ
16354 fi
16355
698dcdb6 16356 for ac_func in gettimeofday ftime
3fcdd07b 16357do
698dcdb6 16358echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
683dccda 16359echo "configure:16360: checking for $ac_func" >&5
698dcdb6
VZ
16360if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16361 echo $ac_n "(cached) $ac_c" 1>&6
16362else
16363 cat > conftest.$ac_ext <<EOF
683dccda 16364#line 16365 "configure"
3fcdd07b
VZ
16365#include "confdefs.h"
16366/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 16367 which can conflict with char $ac_func(); below. */
3fcdd07b
VZ
16368#include <assert.h>
16369/* Override any gcc2 internal prototype to avoid an error. */
16370/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
16371 builtin and then its argument prototype would still apply. */
16372char $ac_func();
16373
16374int main() {
3fcdd07b
VZ
16375
16376/* The GNU C library defines this for functions which it implements
16377 to always fail with ENOSYS. Some functions are actually named
16378 something starting with __ and the normal name is an alias. */
16379#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16380choke me
16381#else
698dcdb6 16382$ac_func();
3fcdd07b
VZ
16383#endif
16384
698dcdb6
VZ
16385; return 0; }
16386EOF
683dccda 16387if { (eval echo configure:16388: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
16388 rm -rf conftest*
16389 eval "ac_cv_func_$ac_func=yes"
16390else
16391 echo "configure: failed program was:" >&5
16392 cat conftest.$ac_ext >&5
16393 rm -rf conftest*
16394 eval "ac_cv_func_$ac_func=no"
16395fi
16396rm -f conftest*
16397fi
16398
16399if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16400 echo "$ac_t""yes" 1>&6
16401 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16402 cat >> confdefs.h <<EOF
16403#define $ac_tr_func 1
3fcdd07b
VZ
16404EOF
16405 break
698dcdb6
VZ
16406else
16407 echo "$ac_t""no" 1>&6
3fcdd07b
VZ
16408fi
16409done
16410
afc31813 16411
698dcdb6
VZ
16412 if test "$ac_cv_func_gettimeofday" = "yes"; then
16413 echo $ac_n "checking whether gettimeofday takes two arguments""... $ac_c" 1>&6
683dccda 16414echo "configure:16415: checking whether gettimeofday takes two arguments" >&5
698dcdb6
VZ
16415if eval "test \"`echo '$''{'wx_cv_func_gettimeofday_has_2_args'+set}'`\" = set"; then
16416 echo $ac_n "(cached) $ac_c" 1>&6
16417else
16418
16419
16420 ac_ext=C
16421# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1e487827 16422ac_cpp='$CXXCPP $CPPFLAGS'
698dcdb6
VZ
16423ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16424ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16425cross_compiling=$ac_cv_prog_cxx_cross
703e0a69 16426
698dcdb6
VZ
16427
16428 cat > conftest.$ac_ext <<EOF
683dccda 16429#line 16430 "configure"
10f2d63a 16430#include "confdefs.h"
afc31813
VZ
16431
16432 #include <sys/time.h>
16433 #include <unistd.h>
698dcdb6
VZ
16434
16435int main() {
afc31813
VZ
16436
16437 struct timeval tv;
776862b4 16438 gettimeofday(&tv, NULL);
698dcdb6
VZ
16439
16440; return 0; }
16441EOF
683dccda 16442if { (eval echo configure:16443: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 16443 rm -rf conftest*
afc31813 16444 wx_cv_func_gettimeofday_has_2_args=yes
10f2d63a 16445else
698dcdb6
VZ
16446 echo "configure: failed program was:" >&5
16447 cat conftest.$ac_ext >&5
16448 rm -rf conftest*
16449 cat > conftest.$ac_ext <<EOF
683dccda 16450#line 16451 "configure"
10f2d63a 16451#include "confdefs.h"
afc31813
VZ
16452
16453 #include <sys/time.h>
16454 #include <unistd.h>
698dcdb6
VZ
16455
16456int main() {
afc31813
VZ
16457
16458 struct timeval tv;
16459 gettimeofday(&tv);
698dcdb6
VZ
16460
16461; return 0; }
16462EOF
683dccda 16463if { (eval echo configure:16464: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 16464 rm -rf conftest*
afc31813 16465 wx_cv_func_gettimeofday_has_2_args=no
10f2d63a 16466else
698dcdb6
VZ
16467 echo "configure: failed program was:" >&5
16468 cat conftest.$ac_ext >&5
16469 rm -rf conftest*
776862b4
VZ
16470
16471 echo "configure: warning: failed to determine number of gettimeofday() arguments" 1>&2
16472 wx_cv_func_gettimeofday_has_2_args=unknown
16473
698dcdb6 16474
10f2d63a 16475fi
698dcdb6
VZ
16476rm -f conftest*
16477
10f2d63a 16478fi
698dcdb6 16479rm -f conftest*
afc31813 16480 ac_ext=c
698dcdb6 16481# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10f2d63a 16482ac_cpp='$CPP $CPPFLAGS'
698dcdb6
VZ
16483ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16484ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16485cross_compiling=$ac_cv_prog_cc_cross
10f2d63a 16486
698dcdb6 16487
afc31813 16488fi
698dcdb6
VZ
16489
16490echo "$ac_t""$wx_cv_func_gettimeofday_has_2_args" 1>&6
c63c7106 16491
afc31813 16492 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
698dcdb6 16493 cat >> confdefs.h <<\EOF
afc31813
VZ
16494#define WX_GETTIMEOFDAY_NO_TZ 1
16495EOF
16496
16497 fi
16498 fi
16499
698dcdb6 16500 cat >> confdefs.h <<\EOF
afc31813
VZ
16501#define wxUSE_TIMEDATE 1
16502EOF
16503
16504 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
16505fi
16506
698dcdb6 16507
b089607b
VZ
16508if test "$TOOLKIT" != "MSW"; then
16509
3a922bb4
RL
16510 if test "$wxUSE_SOCKETS" = "yes"; then
16511 echo $ac_n "checking for socket""... $ac_c" 1>&6
683dccda 16512echo "configure:16513: checking for socket" >&5
698dcdb6
VZ
16513if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
16514 echo $ac_n "(cached) $ac_c" 1>&6
c63c7106 16515else
698dcdb6 16516 cat > conftest.$ac_ext <<EOF
683dccda 16517#line 16518 "configure"
c63c7106
VZ
16518#include "confdefs.h"
16519/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 16520 which can conflict with char socket(); below. */
c63c7106
VZ
16521#include <assert.h>
16522/* Override any gcc2 internal prototype to avoid an error. */
16523/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
16524 builtin and then its argument prototype would still apply. */
16525char socket();
16526
16527int main() {
c63c7106
VZ
16528
16529/* The GNU C library defines this for functions which it implements
16530 to always fail with ENOSYS. Some functions are actually named
16531 something starting with __ and the normal name is an alias. */
16532#if defined (__stub_socket) || defined (__stub___socket)
16533choke me
16534#else
698dcdb6 16535socket();
c63c7106
VZ
16536#endif
16537
698dcdb6
VZ
16538; return 0; }
16539EOF
683dccda 16540if { (eval echo configure:16541: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
16541 rm -rf conftest*
16542 eval "ac_cv_func_socket=yes"
16543else
16544 echo "configure: failed program was:" >&5
16545 cat conftest.$ac_ext >&5
16546 rm -rf conftest*
16547 eval "ac_cv_func_socket=no"
16548fi
16549rm -f conftest*
16550fi
16551
16552if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
16553 echo "$ac_t""yes" 1>&6
c63c7106
VZ
16554 :
16555else
698dcdb6
VZ
16556 echo "$ac_t""no" 1>&6
16557echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
683dccda 16558echo "configure:16559: checking for socket in -lsocket" >&5
698dcdb6
VZ
16559ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
16560if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16561 echo $ac_n "(cached) $ac_c" 1>&6
c63c7106 16562else
698dcdb6 16563 ac_save_LIBS="$LIBS"
c63c7106 16564LIBS="-lsocket $LIBS"
698dcdb6 16565cat > conftest.$ac_ext <<EOF
683dccda 16566#line 16567 "configure"
c63c7106
VZ
16567#include "confdefs.h"
16568/* Override any gcc2 internal prototype to avoid an error. */
16569/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
16570 builtin and then its argument prototype would still apply. */
16571char socket();
16572
16573int main() {
16574socket()
16575; return 0; }
16576EOF
683dccda 16577if { (eval echo configure:16578: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
16578 rm -rf conftest*
16579 eval "ac_cv_lib_$ac_lib_var=yes"
16580else
16581 echo "configure: failed program was:" >&5
16582 cat conftest.$ac_ext >&5
16583 rm -rf conftest*
16584 eval "ac_cv_lib_$ac_lib_var=no"
16585fi
16586rm -f conftest*
16587LIBS="$ac_save_LIBS"
16588
16589fi
16590if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16591 echo "$ac_t""yes" 1>&6
c63c7106 16592 INET_LINK="$INET_LINK -lsocket"
c63c7106 16593else
698dcdb6 16594 echo "$ac_t""no" 1>&6
afc31813 16595
3a922bb4
RL
16596 echo "configure: warning: socket library not found - sockets will be disabled" 1>&2
16597 wxUSE_SOCKETS=no
16598
698dcdb6 16599
6232543b 16600fi
b089607b 16601
3a922bb4 16602
1e487827 16603fi
afc31813 16604
3a922bb4 16605 fi
51a9faba 16606
3a922bb4
RL
16607
16608 if test "$wxUSE_SOCKETS" = "yes" ; then
16609 echo $ac_n "checking what is the type of the third argument of getsockname""... $ac_c" 1>&6
683dccda 16610echo "configure:16611: checking what is the type of the third argument of getsockname" >&5
698dcdb6
VZ
16611if eval "test \"`echo '$''{'wx_cv_type_getsockname3'+set}'`\" = set"; then
16612 echo $ac_n "(cached) $ac_c" 1>&6
16613else
16614
3a922bb4
RL
16615
16616 ac_ext=C
698dcdb6 16617# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1e487827 16618ac_cpp='$CXXCPP $CPPFLAGS'
698dcdb6
VZ
16619ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16620ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16621cross_compiling=$ac_cv_prog_cxx_cross
703e0a69 16622
698dcdb6 16623
3a922bb4 16624 cat > conftest.$ac_ext <<EOF
683dccda 16625#line 16626 "configure"
afc31813 16626#include "confdefs.h"
51a9faba 16627
3a922bb4
RL
16628 #include <sys/types.h>
16629 #include <sys/socket.h>
16630
698dcdb6 16631int main() {
51a9faba 16632
3a922bb4
RL
16633 socklen_t len;
16634 getsockname(0, 0, &len);
16635
698dcdb6
VZ
16636; return 0; }
16637EOF
683dccda 16638if { (eval echo configure:16639: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 16639 rm -rf conftest*
51a9faba 16640 wx_cv_type_getsockname3=socklen_t
afc31813 16641else
698dcdb6
VZ
16642 echo "configure: failed program was:" >&5
16643 cat conftest.$ac_ext >&5
16644 rm -rf conftest*
16645 cat > conftest.$ac_ext <<EOF
683dccda 16646#line 16647 "configure"
afc31813 16647#include "confdefs.h"
51a9faba 16648
3a922bb4
RL
16649 #include <sys/types.h>
16650 #include <sys/socket.h>
16651
698dcdb6 16652int main() {
51a9faba 16653
3a922bb4
RL
16654 size_t len;
16655 getsockname(0, 0, &len);
16656
698dcdb6
VZ
16657; return 0; }
16658EOF
683dccda 16659if { (eval echo configure:16660: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 16660 rm -rf conftest*
51a9faba 16661 wx_cv_type_getsockname3=size_t
afc31813 16662else
698dcdb6
VZ
16663 echo "configure: failed program was:" >&5
16664 cat conftest.$ac_ext >&5
16665 rm -rf conftest*
16666 cat > conftest.$ac_ext <<EOF
683dccda 16667#line 16668 "configure"
afc31813 16668#include "confdefs.h"
51a9faba 16669
3a922bb4
RL
16670 #include <sys/types.h>
16671 #include <sys/socket.h>
16672
698dcdb6 16673int main() {
51a9faba 16674
3a922bb4
RL
16675 int len;
16676 getsockname(0, 0, &len);
16677
698dcdb6
VZ
16678; return 0; }
16679EOF
683dccda 16680if { (eval echo configure:16681: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
698dcdb6 16681 rm -rf conftest*
51a9faba 16682 wx_cv_type_getsockname3=int
afc31813 16683else
698dcdb6
VZ
16684 echo "configure: failed program was:" >&5
16685 cat conftest.$ac_ext >&5
16686 rm -rf conftest*
16687 wx_cv_type_getsockname3=unknown
3a922bb4 16688
afc31813 16689fi
698dcdb6 16690rm -f conftest*
3a922bb4 16691
afc31813 16692fi
698dcdb6 16693rm -f conftest*
3a922bb4 16694
afc31813 16695fi
698dcdb6 16696rm -f conftest*
51a9faba 16697
3a922bb4 16698 ac_ext=c
698dcdb6 16699# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
afc31813 16700ac_cpp='$CPP $CPPFLAGS'
698dcdb6
VZ
16701ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16702ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16703cross_compiling=$ac_cv_prog_cc_cross
afc31813 16704
3a922bb4 16705
51a9faba 16706fi
698dcdb6
VZ
16707
16708echo "$ac_t""$wx_cv_type_getsockname3" 1>&6
51a9faba 16709
3a922bb4
RL
16710 if test "$wx_cv_type_getsockname3" = "unknown"; then
16711 wxUSE_SOCKETS=no
16712 echo "configure: warning: Couldn't find socklen_t synonym for this system" 1>&2
16713 else
16714 cat >> confdefs.h <<EOF
51a9faba
VZ
16715#define SOCKLEN_T $wx_cv_type_getsockname3
16716EOF
16717
3a922bb4 16718 fi
51a9faba
VZ
16719 fi
16720fi
afc31813 16721
51a9faba 16722if test "$wxUSE_SOCKETS" = "yes" ; then
698dcdb6 16723 cat >> confdefs.h <<\EOF
afc31813
VZ
16724#define wxUSE_SOCKETS 1
16725EOF
16726
70f7a477 16727 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
afc31813
VZ
16728fi
16729
698dcdb6 16730
dc3d889d
VZ
16731if test "$wxUSE_GUI" = "yes"; then
16732
3a922bb4
RL
16733 if test "$TOOLKIT" != "MSW"; then
16734 if test "$wxUSE_JOYSTICK" = "yes"; then
16735 for ac_hdr in linux/joystick.h
10f2d63a 16736do
698dcdb6
VZ
16737ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16738echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
683dccda 16739echo "configure:16740: checking for $ac_hdr" >&5
698dcdb6
VZ
16740if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
16741 echo $ac_n "(cached) $ac_c" 1>&6
16742else
16743 cat > conftest.$ac_ext <<EOF
683dccda 16744#line 16745 "configure"
10f2d63a 16745#include "confdefs.h"
698dcdb6
VZ
16746#include <$ac_hdr>
16747EOF
16748ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
683dccda 16749{ (eval echo configure:16750: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
16750ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16751if test -z "$ac_err"; then
16752 rm -rf conftest*
16753 eval "ac_cv_header_$ac_safe=yes"
10f2d63a 16754else
698dcdb6
VZ
16755 echo "$ac_err" >&5
16756 echo "configure: failed program was:" >&5
10f2d63a 16757 cat conftest.$ac_ext >&5
698dcdb6
VZ
16758 rm -rf conftest*
16759 eval "ac_cv_header_$ac_safe=no"
10f2d63a 16760fi
698dcdb6 16761rm -f conftest*
10f2d63a 16762fi
698dcdb6
VZ
16763if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16764 echo "$ac_t""yes" 1>&6
16765 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16766 cat >> confdefs.h <<EOF
16767#define $ac_tr_hdr 1
10f2d63a 16768EOF
698dcdb6
VZ
16769
16770else
16771 echo "$ac_t""no" 1>&6
10f2d63a
VZ
16772fi
16773done
16774
3a922bb4
RL
16775 if test "$ac_cv_header_linux_joystick_h" != "yes"; then
16776 wxUSE_JOYSTICK=no
16777 echo "configure: warning: Joystick not supported by this system" 1>&2
16778 fi
16779 fi
16780 fi
b089607b 16781
3a922bb4
RL
16782 if test "$wxUSE_JOYSTICK" = "yes"; then
16783 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16784#define wxUSE_JOYSTICK 1
16785EOF
16786
3a922bb4
RL
16787 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
16788 fi
dc3d889d
VZ
16789fi
16790
698dcdb6 16791
b089607b
VZ
16792if test "$TOOLKIT" != "MSW"; then
16793
3a922bb4
RL
16794 HAVE_DL_FUNCS=0
16795 HAVE_SHL_FUNCS=0
16796 if test "$wxUSE_DYNLIB_CLASS" = "yes"; then
16797 if test "$USE_DARWIN" = 1; then
16798 HAVE_DL_FUNCS=1
16799 else
16800 for ac_func in dlopen
10f2d63a 16801do
698dcdb6 16802echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
683dccda 16803echo "configure:16804: checking for $ac_func" >&5
698dcdb6
VZ
16804if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16805 echo $ac_n "(cached) $ac_c" 1>&6
16806else
16807 cat > conftest.$ac_ext <<EOF
683dccda 16808#line 16809 "configure"
10f2d63a
VZ
16809#include "confdefs.h"
16810/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 16811 which can conflict with char $ac_func(); below. */
10f2d63a
VZ
16812#include <assert.h>
16813/* Override any gcc2 internal prototype to avoid an error. */
16814/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
16815 builtin and then its argument prototype would still apply. */
16816char $ac_func();
16817
16818int main() {
10f2d63a
VZ
16819
16820/* The GNU C library defines this for functions which it implements
16821 to always fail with ENOSYS. Some functions are actually named
16822 something starting with __ and the normal name is an alias. */
16823#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16824choke me
16825#else
698dcdb6 16826$ac_func();
10f2d63a
VZ
16827#endif
16828
698dcdb6
VZ
16829; return 0; }
16830EOF
683dccda 16831if { (eval echo configure:16832: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
16832 rm -rf conftest*
16833 eval "ac_cv_func_$ac_func=yes"
16834else
16835 echo "configure: failed program was:" >&5
16836 cat conftest.$ac_ext >&5
16837 rm -rf conftest*
16838 eval "ac_cv_func_$ac_func=no"
16839fi
16840rm -f conftest*
16841fi
16842
16843if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16844 echo "$ac_t""yes" 1>&6
16845 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16846 cat >> confdefs.h <<EOF
16847#define $ac_tr_func 1
16848EOF
16849
3a922bb4 16850 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16851#define HAVE_DLOPEN 1
16852EOF
16853
3a922bb4
RL
16854 HAVE_DL_FUNCS=1
16855
10f2d63a 16856else
698dcdb6
VZ
16857 echo "$ac_t""no" 1>&6
16858echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
683dccda 16859echo "configure:16860: checking for dlopen in -ldl" >&5
698dcdb6
VZ
16860ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
16861if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16862 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 16863else
698dcdb6 16864 ac_save_LIBS="$LIBS"
10f2d63a 16865LIBS="-ldl $LIBS"
698dcdb6 16866cat > conftest.$ac_ext <<EOF
683dccda 16867#line 16868 "configure"
10f2d63a
VZ
16868#include "confdefs.h"
16869/* Override any gcc2 internal prototype to avoid an error. */
16870/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
16871 builtin and then its argument prototype would still apply. */
16872char dlopen();
16873
16874int main() {
16875dlopen()
16876; return 0; }
16877EOF
683dccda 16878if { (eval echo configure:16879: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
16879 rm -rf conftest*
16880 eval "ac_cv_lib_$ac_lib_var=yes"
16881else
16882 echo "configure: failed program was:" >&5
16883 cat conftest.$ac_ext >&5
16884 rm -rf conftest*
16885 eval "ac_cv_lib_$ac_lib_var=no"
16886fi
16887rm -f conftest*
16888LIBS="$ac_save_LIBS"
16889
16890fi
16891if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16892 echo "$ac_t""yes" 1>&6
16893
3a922bb4 16894 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16895#define HAVE_DLOPEN 1
16896EOF
16897
3a922bb4
RL
16898 HAVE_DL_FUNCS=1
16899 LIBS="$LIBS -ldl"
16900
10f2d63a 16901else
698dcdb6 16902 echo "$ac_t""no" 1>&6
10f2d63a 16903
3a922bb4 16904 for ac_func in shl_load
10f2d63a 16905do
698dcdb6 16906echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
683dccda 16907echo "configure:16908: checking for $ac_func" >&5
698dcdb6
VZ
16908if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16909 echo $ac_n "(cached) $ac_c" 1>&6
16910else
16911 cat > conftest.$ac_ext <<EOF
683dccda 16912#line 16913 "configure"
10f2d63a
VZ
16913#include "confdefs.h"
16914/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 16915 which can conflict with char $ac_func(); below. */
10f2d63a
VZ
16916#include <assert.h>
16917/* Override any gcc2 internal prototype to avoid an error. */
16918/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
16919 builtin and then its argument prototype would still apply. */
16920char $ac_func();
16921
16922int main() {
10f2d63a
VZ
16923
16924/* The GNU C library defines this for functions which it implements
16925 to always fail with ENOSYS. Some functions are actually named
16926 something starting with __ and the normal name is an alias. */
16927#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16928choke me
16929#else
698dcdb6 16930$ac_func();
10f2d63a
VZ
16931#endif
16932
698dcdb6
VZ
16933; return 0; }
16934EOF
683dccda 16935if { (eval echo configure:16936: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
16936 rm -rf conftest*
16937 eval "ac_cv_func_$ac_func=yes"
16938else
16939 echo "configure: failed program was:" >&5
16940 cat conftest.$ac_ext >&5
16941 rm -rf conftest*
16942 eval "ac_cv_func_$ac_func=no"
16943fi
16944rm -f conftest*
16945fi
16946
16947if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16948 echo "$ac_t""yes" 1>&6
16949 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16950 cat >> confdefs.h <<EOF
16951#define $ac_tr_func 1
16952EOF
16953
3a922bb4 16954 cat >> confdefs.h <<\EOF
10f2d63a
VZ
16955#define HAVE_SHL_LOAD 1
16956EOF
16957
3a922bb4
RL
16958 HAVE_SHL_FUNCS=1
16959
10f2d63a 16960else
698dcdb6
VZ
16961 echo "$ac_t""no" 1>&6
16962echo $ac_n "checking for dld in -lshl_load""... $ac_c" 1>&6
683dccda 16963echo "configure:16964: checking for dld in -lshl_load" >&5
698dcdb6
VZ
16964ac_lib_var=`echo shl_load'_'dld | sed 'y%./+-%__p_%'`
16965if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16966 echo $ac_n "(cached) $ac_c" 1>&6
f6bcfd97 16967else
698dcdb6 16968 ac_save_LIBS="$LIBS"
f6bcfd97 16969LIBS="-lshl_load $LIBS"
698dcdb6 16970cat > conftest.$ac_ext <<EOF
683dccda 16971#line 16972 "configure"
f6bcfd97
BP
16972#include "confdefs.h"
16973/* Override any gcc2 internal prototype to avoid an error. */
16974/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
16975 builtin and then its argument prototype would still apply. */
16976char dld();
16977
16978int main() {
16979dld()
16980; return 0; }
16981EOF
683dccda 16982if { (eval echo configure:16983: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
16983 rm -rf conftest*
16984 eval "ac_cv_lib_$ac_lib_var=yes"
16985else
16986 echo "configure: failed program was:" >&5
16987 cat conftest.$ac_ext >&5
16988 rm -rf conftest*
16989 eval "ac_cv_lib_$ac_lib_var=no"
16990fi
16991rm -f conftest*
16992LIBS="$ac_save_LIBS"
f6bcfd97 16993
698dcdb6
VZ
16994fi
16995if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16996 echo "$ac_t""yes" 1>&6
16997
3a922bb4
RL
16998 HAVE_SHL_FUNCS=1
16999 LIBS="$LIBS -ldld"
17000
698dcdb6
VZ
17001else
17002 echo "$ac_t""no" 1>&6
f6bcfd97
BP
17003fi
17004
3a922bb4 17005
10f2d63a
VZ
17006fi
17007done
17008
3a922bb4 17009
10f2d63a
VZ
17010fi
17011
3a922bb4 17012
10f2d63a
VZ
17013fi
17014done
17015
1e487827 17016
3a922bb4
RL
17017 if test "$HAVE_DL_FUNCS" = 1; then
17018 for ac_func in dlerror
f6bcfd97 17019do
698dcdb6 17020echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
683dccda 17021echo "configure:17022: checking for $ac_func" >&5
698dcdb6
VZ
17022if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17023 echo $ac_n "(cached) $ac_c" 1>&6
17024else
17025 cat > conftest.$ac_ext <<EOF
683dccda 17026#line 17027 "configure"
f6bcfd97
BP
17027#include "confdefs.h"
17028/* System header to define __stub macros and hopefully few prototypes,
698dcdb6 17029 which can conflict with char $ac_func(); below. */
f6bcfd97
BP
17030#include <assert.h>
17031/* Override any gcc2 internal prototype to avoid an error. */
17032/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
17033 builtin and then its argument prototype would still apply. */
17034char $ac_func();
17035
17036int main() {
f6bcfd97
BP
17037
17038/* The GNU C library defines this for functions which it implements
17039 to always fail with ENOSYS. Some functions are actually named
17040 something starting with __ and the normal name is an alias. */
17041#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17042choke me
17043#else
698dcdb6 17044$ac_func();
f6bcfd97
BP
17045#endif
17046
698dcdb6
VZ
17047; return 0; }
17048EOF
683dccda 17049if { (eval echo configure:17050: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
17050 rm -rf conftest*
17051 eval "ac_cv_func_$ac_func=yes"
17052else
17053 echo "configure: failed program was:" >&5
17054 cat conftest.$ac_ext >&5
17055 rm -rf conftest*
17056 eval "ac_cv_func_$ac_func=no"
17057fi
17058rm -f conftest*
17059fi
17060
17061if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17062 echo "$ac_t""yes" 1>&6
17063 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17064 cat >> confdefs.h <<EOF
17065#define $ac_tr_func 1
17066EOF
17067 cat >> confdefs.h <<\EOF
f6bcfd97
BP
17068#define HAVE_DLERROR 1
17069EOF
17070
17071else
698dcdb6
VZ
17072 echo "$ac_t""no" 1>&6
17073echo $ac_n "checking for dlerror in -ldl""... $ac_c" 1>&6
683dccda 17074echo "configure:17075: checking for dlerror in -ldl" >&5
698dcdb6
VZ
17075ac_lib_var=`echo dl'_'dlerror | sed 'y%./+-%__p_%'`
17076if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17077 echo $ac_n "(cached) $ac_c" 1>&6
f6bcfd97 17078else
698dcdb6 17079 ac_save_LIBS="$LIBS"
f6bcfd97 17080LIBS="-ldl $LIBS"
698dcdb6 17081cat > conftest.$ac_ext <<EOF
683dccda 17082#line 17083 "configure"
f6bcfd97
BP
17083#include "confdefs.h"
17084/* Override any gcc2 internal prototype to avoid an error. */
17085/* We use char because int might match the return type of a gcc2
698dcdb6
VZ
17086 builtin and then its argument prototype would still apply. */
17087char dlerror();
17088
17089int main() {
17090dlerror()
17091; return 0; }
17092EOF
683dccda 17093if { (eval echo configure:17094: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698dcdb6
VZ
17094 rm -rf conftest*
17095 eval "ac_cv_lib_$ac_lib_var=yes"
17096else
17097 echo "configure: failed program was:" >&5
17098 cat conftest.$ac_ext >&5
17099 rm -rf conftest*
17100 eval "ac_cv_lib_$ac_lib_var=no"
17101fi
17102rm -f conftest*
17103LIBS="$ac_save_LIBS"
17104
17105fi
17106if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17107 echo "$ac_t""yes" 1>&6
17108 cat >> confdefs.h <<\EOF
f6bcfd97
BP
17109#define HAVE_DLERROR 1
17110EOF
17111
698dcdb6
VZ
17112else
17113 echo "$ac_t""no" 1>&6
f6bcfd97
BP
17114fi
17115
17116fi
17117done
17118
3a922bb4
RL
17119 fi
17120 fi
f6bcfd97 17121
3a922bb4
RL
17122 if test "$HAVE_DL_FUNCS" = 0; then
17123 if test "$HAVE_SHL_FUNCS" = 0; then
17124 if test "$USE_UNIX" = 1; then
17125 echo "configure: warning: Missing dynamic loading support, several features will be disabled" 1>&2
17126 wxUSE_DYNLIB_CLASS=no
17127 else
17128 echo "configure: warning: Assuming wxLibrary class works on this platform" 1>&2
17129 fi
17130 fi
10f2d63a
VZ
17131 fi
17132 fi
17133fi
17134
17135if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
698dcdb6 17136 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17137#define wxUSE_DYNLIB_CLASS 1
17138EOF
17139
b12915c1
VZ
17140else
17141 wxUSE_ODBC=no
17142 wxUSE_SERIAL=no
10f2d63a
VZ
17143fi
17144
698dcdb6 17145
1e6feb95
VZ
17146if test "$wxUSE_FONTMAP" = "yes" ; then
17147 cat >> confdefs.h <<\EOF
17148#define wxUSE_FONTMAP 1
17149EOF
17150
17151fi
17152
10f2d63a 17153if test "$wxUSE_UNICODE" = "yes" ; then
698dcdb6 17154 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17155#define wxUSE_UNICODE 1
17156EOF
17157
17158fi
17159
10f2d63a 17160if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
698dcdb6 17161 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17162#define wxUSE_EXPERIMENTAL_PRINTF 1
17163EOF
17164
17165fi
17166
698dcdb6 17167
b12915c1 17168if test "$wxUSE_SERIAL" = "yes" ; then
698dcdb6 17169 cat >> confdefs.h <<\EOF
b12915c1
VZ
17170#define wxUSE_SERIAL 1
17171EOF
17172
17173fi
17174
698dcdb6 17175
10f2d63a
VZ
17176IODBC_C_SRC=""
17177if test "$wxUSE_ODBC" = "yes" ; then
698dcdb6 17178 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17179#define wxUSE_ODBC 1
17180EOF
17181
17182 WXODBCFLAG="-D_IODBC_"
17183 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
10f2d63a
VZ
17184fi
17185
698dcdb6 17186
10f2d63a 17187if test "$wxUSE_POSTSCRIPT" = "yes" ; then
698dcdb6 17188 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17189#define wxUSE_POSTSCRIPT 1
17190EOF
17191
17192fi
17193
698dcdb6 17194cat >> confdefs.h <<\EOF
10f2d63a
VZ
17195#define wxUSE_AFM_FOR_POSTSCRIPT 1
17196EOF
17197
698dcdb6
VZ
17198
17199cat >> confdefs.h <<\EOF
10f2d63a
VZ
17200#define wxUSE_NORMALIZED_PS_FONTS 1
17201EOF
17202
698dcdb6
VZ
17203
17204
10f2d63a 17205if test "$wxUSE_CONSTRAINTS" = "yes"; then
698dcdb6 17206 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17207#define wxUSE_CONSTRAINTS 1
17208EOF
17209
17210 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
17211fi
17212
17213if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
fc26f4ab
RL
17214 if test "$wxUSE_UNIVERSAL" = "yes"; then
17215 echo "configure: warning: MDI is not supported for wxUNIVERSAL yet... disabled" 1>&2
17216 wxUSE_MDI_ARCHITECTURE=no
17217 fi
17218
17219 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
17220 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17221#define wxUSE_MDI_ARCHITECTURE 1
17222EOF
17223
fc26f4ab
RL
17224 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
17225 fi
10f2d63a
VZ
17226fi
17227
17228if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
698dcdb6 17229 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17230#define wxUSE_DOC_VIEW_ARCHITECTURE 1
17231EOF
17232
17233 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
17234 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
17235 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
17236 fi
17237fi
17238
17239if test "$wxUSE_HELP" = "yes"; then
698dcdb6 17240 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17241#define wxUSE_HELP 1
17242EOF
17243
17244 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
3379ed37 17245
3e44f09d 17246 if test "$USE_WIN32" = 1; then
031d8228 17247 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
29fd3c0c
VS
17248 ac_safe=`echo "htmlhelp.h" | sed 'y%./+-%__p_%'`
17249echo $ac_n "checking for htmlhelp.h""... $ac_c" 1>&6
683dccda 17250echo "configure:17251: checking for htmlhelp.h" >&5
29fd3c0c
VS
17251if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
17252 echo $ac_n "(cached) $ac_c" 1>&6
17253else
17254 cat > conftest.$ac_ext <<EOF
683dccda 17255#line 17256 "configure"
29fd3c0c
VS
17256#include "confdefs.h"
17257#include <htmlhelp.h>
17258EOF
17259ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
683dccda 17260{ (eval echo configure:17261: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
29fd3c0c
VS
17261ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
17262if test -z "$ac_err"; then
17263 rm -rf conftest*
17264 eval "ac_cv_header_$ac_safe=yes"
17265else
17266 echo "$ac_err" >&5
17267 echo "configure: failed program was:" >&5
17268 cat conftest.$ac_ext >&5
17269 rm -rf conftest*
17270 eval "ac_cv_header_$ac_safe=no"
17271fi
17272rm -f conftest*
17273fi
17274if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
17275 echo "$ac_t""yes" 1>&6
17276
17277 cat >> confdefs.h <<\EOF
17278#define wxUSE_MS_HTML_HELP 1
17279EOF
17280
17281
17282else
17283 echo "$ac_t""no" 1>&6
17284
fc26f4ab 17285 echo "configure: warning: MS HTML Help cannot be used without htmlhelp.h... disabled" 1>&2
29fd3c0c
VS
17286 wxUSE_MS_HTML_HELP=no
17287
17288fi
17289
3e44f09d 17290 fi
3379ed37 17291 fi
031d8228
VS
17292
17293 if test "$wxUSE_WXHTML_HELP" = "yes"; then
17294 if test "$wxUSE_HTML" = "yes"; then
17295 cat >> confdefs.h <<\EOF
17296#define wxUSE_WXHTML_HELP 1
17297EOF
17298
17299 else
17300 echo "configure: warning: Cannot use wxHTML-based help without wxHTML so it won't be compiled" 1>&2
17301 wxUSE_WXHTML_HELP=no
17302 fi
17303 fi
10f2d63a
VZ
17304fi
17305
17306if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
17307 if test "$wxUSE_CONSTRAINTS" != "yes"; then
698dcdb6 17308 echo "configure: warning: Printing support cannot be used without constraints so it won't be compiled without it" 1>&2
10f2d63a 17309 else
698dcdb6 17310 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17311#define wxUSE_PRINTING_ARCHITECTURE 1
17312EOF
17313
17314 fi
17315 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
17316fi
17317
17318if test "$wxUSE_PROLOGIO" = "yes" ; then
698dcdb6 17319 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17320#define wxUSE_PROLOGIO 1
17321EOF
17322
17323fi
17324
17325if test "$wxUSE_RESOURCES" = "yes" ; then
3379ed37 17326 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17327#define wxUSE_RESOURCES 1
17328EOF
17329
3379ed37 17330 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS resource"
10f2d63a
VZ
17331fi
17332
17333if test "$wxUSE_X_RESOURCES" = "yes"; then
698dcdb6 17334 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17335#define wxUSE_X_RESOURCES 1
17336EOF
17337
17338fi
17339
698dcdb6 17340
3a922bb4
RL
17341if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
17342 -o "$wxUSE_CLIPBOARD" = "yes" \
17343 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
2b9bdf71 17344 for ac_hdr in ole2.h
10f2d63a 17345do
698dcdb6
VZ
17346ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
17347echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
683dccda 17348echo "configure:17349: checking for $ac_hdr" >&5
698dcdb6
VZ
17349if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
17350 echo $ac_n "(cached) $ac_c" 1>&6
17351else
17352 cat > conftest.$ac_ext <<EOF
683dccda 17353#line 17354 "configure"
10f2d63a 17354#include "confdefs.h"
698dcdb6
VZ
17355#include <$ac_hdr>
17356EOF
17357ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
683dccda 17358{ (eval echo configure:17359: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
698dcdb6
VZ
17359ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
17360if test -z "$ac_err"; then
17361 rm -rf conftest*
17362 eval "ac_cv_header_$ac_safe=yes"
1e487827 17363else
698dcdb6
VZ
17364 echo "$ac_err" >&5
17365 echo "configure: failed program was:" >&5
10f2d63a 17366 cat conftest.$ac_ext >&5
698dcdb6
VZ
17367 rm -rf conftest*
17368 eval "ac_cv_header_$ac_safe=no"
10f2d63a 17369fi
698dcdb6 17370rm -f conftest*
10f2d63a 17371fi
698dcdb6
VZ
17372if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
17373 echo "$ac_t""yes" 1>&6
17374 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
17375 cat >> confdefs.h <<EOF
17376#define $ac_tr_hdr 1
10f2d63a 17377EOF
698dcdb6
VZ
17378
17379else
17380 echo "$ac_t""no" 1>&6
10f2d63a
VZ
17381fi
17382done
17383
698dcdb6 17384
2b9bdf71
VZ
17385 if test "$ac_cv_header_ole2_h" = "yes" ; then
17386 if test "$GCC" = yes ; then
17387 ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)"
2b9bdf71
VZ
17388 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
17389 LIBS="$LIBS -lrpcrt4 -loleaut32 -lole32 -luuid"
17390 cat >> confdefs.h <<\EOF
4f11a343
VS
17391#define wxUSE_OLE 1
17392EOF
17393
b64f0a5f 17394
2b9bdf71
VZ
17395 fi
17396
17397 cat >> confdefs.h <<\EOF
17398#define wxUSE_DATAOBJ 1
17399EOF
17400
17401 else
17402 echo "configure: warning: Some features disabled because OLE headers not found" 1>&2
17403
17404 wxUSE_CLIPBOARD=no
17405 wxUSE_DRAG_AND_DROP=no
17406 wxUSE_DATAOBJ=no
17407 fi
17408
17409 if test "$wxUSE_METAFILE" = "yes"; then
17410 cat >> confdefs.h <<\EOF
b64f0a5f
RL
17411#define wxUSE_METAFILE 1
17412EOF
17413
2b9bdf71
VZ
17414
17415 cat >> confdefs.h <<\EOF
b64f0a5f
RL
17416#define wxUSE_ENH_METAFILE 1
17417EOF
17418
2b9bdf71
VZ
17419 fi
17420fi
17421
17422if test "$wxUSE_IPC" = "yes"; then
17423 if test "$wxUSE_SOCKETS" != "yes"; then
17424 echo "configure: warning: wxWindows IPC classes require sockets" 1>&2
17425 fi
17426
17427 cat >> confdefs.h <<\EOF
17428#define wxUSE_IPC 1
17429EOF
17430
17431fi
17432
17433if test "$wxUSE_CLIPBOARD" = "yes"; then
17434 cat >> confdefs.h <<\EOF
17435#define wxUSE_CLIPBOARD 1
17436EOF
17437
673f4220 17438
e33ef661 17439 cat >> confdefs.h <<\EOF
673f4220
VZ
17440#define wxUSE_DATAOBJ 1
17441EOF
17442
2b9bdf71
VZ
17443fi
17444
17445if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
17446 if test "$wxUSE_GTK" = 1; then
17447 if test "$WXGTK12" != 1; then
17448 echo "configure: warning: Drag and drop is only supported under GTK+ 1.2" 1>&2
10f2d63a
VZ
17449 wxUSE_DRAG_AND_DROP=no
17450 fi
17451 fi
17452
2b9bdf71
VZ
17453 if test "$wxUSE_MOTIF" = 1; then
17454 echo "configure: warning: Drag and drop is not yet supported under Motif" 1>&2
17455 wxUSE_DRAG_AND_DROP=no
17456 fi
17457
17458 if test "$wxUSE_MAC" = 1; then
17459 echo "configure: warning: Drag and drop is not yet supported under Mac OS X" 1>&2
17460 wxUSE_DRAG_AND_DROP=no
17461 fi
17462
10f2d63a 17463 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
698dcdb6 17464 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17465#define wxUSE_DRAG_AND_DROP 1
17466EOF
17467
17468 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
17469 fi
17470
17471fi
17472
17473if test "$wxUSE_SPLINES" = "yes" ; then
698dcdb6 17474 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17475#define wxUSE_SPLINES 1
17476EOF
17477
17478fi
17479
698dcdb6 17480
1e6feb95
VZ
17481USES_CONTROLS=0
17482if test "$wxUSE_CONTROLS" = "yes"; then
17483 USES_CONTROLS=1
17484fi
17485
10f2d63a 17486if test "$wxUSE_ACCEL" = "yes"; then
698dcdb6 17487 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17488#define wxUSE_ACCEL 1
17489EOF
17490
1e6feb95
VZ
17491 USES_CONTROLS=1
17492fi
17493
17494if test "$wxUSE_BUTTON" = "yes"; then
17495 cat >> confdefs.h <<\EOF
17496#define wxUSE_BUTTON 1
17497EOF
17498
17499 USES_CONTROLS=1
17500fi
17501
17502if test "$wxUSE_BMPBUTTON" = "yes"; then
17503 cat >> confdefs.h <<\EOF
17504#define wxUSE_BMPBUTTON 1
17505EOF
17506
17507 USES_CONTROLS=1
17508fi
17509
17510if test "$wxUSE_CALCTRL" = "yes"; then
17511 cat >> confdefs.h <<\EOF
17512#define wxUSE_CALENDARCTRL 1
17513EOF
17514
17515 USES_CONTROLS=1
17516 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
10f2d63a
VZ
17517fi
17518
17519if test "$wxUSE_CARET" = "yes"; then
698dcdb6 17520 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17521#define wxUSE_CARET 1
17522EOF
17523
1e6feb95 17524 USES_CONTROLS=1
10f2d63a
VZ
17525 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
17526fi
17527
17528if test "$wxUSE_COMBOBOX" = "yes"; then
698dcdb6 17529 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17530#define wxUSE_COMBOBOX 1
17531EOF
17532
1e6feb95 17533 USES_CONTROLS=1
10f2d63a
VZ
17534fi
17535
17536if test "$wxUSE_CHOICE" = "yes"; then
698dcdb6 17537 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17538#define wxUSE_CHOICE 1
17539EOF
17540
1e6feb95 17541 USES_CONTROLS=1
10f2d63a
VZ
17542fi
17543
17544if test "$wxUSE_CHECKBOX" = "yes"; then
698dcdb6 17545 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17546#define wxUSE_CHECKBOX 1
17547EOF
17548
1e6feb95 17549 USES_CONTROLS=1
10f2d63a
VZ
17550fi
17551
17552if test "$wxUSE_CHECKLST" = "yes"; then
698dcdb6 17553 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17554#define wxUSE_CHECKLISTBOX 1
17555EOF
17556
1e6feb95 17557 USES_CONTROLS=1
10f2d63a
VZ
17558 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
17559fi
17560
17561if test "$wxUSE_GAUGE" = "yes"; then
698dcdb6 17562 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17563#define wxUSE_GAUGE 1
17564EOF
17565
1e6feb95 17566 USES_CONTROLS=1
10f2d63a
VZ
17567fi
17568
d6a55c4b
VZ
17569if test "$wxUSE_NEW_GRID" = "yes"; then
17570 wxUSE_GRID="yes"
698dcdb6 17571 cat >> confdefs.h <<\EOF
d6a55c4b 17572#define wxUSE_NEW_GRID 1
10f2d63a
VZ
17573EOF
17574
1e6feb95 17575 USES_CONTROLS=1
d6a55c4b 17576 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS newgrid"
10f2d63a
VZ
17577fi
17578
d6a55c4b 17579if test "$wxUSE_GRID" = "yes"; then
698dcdb6 17580 cat >> confdefs.h <<\EOF
d6a55c4b 17581#define wxUSE_GRID 1
10f2d63a
VZ
17582EOF
17583
1e6feb95 17584 USES_CONTROLS=1
d6a55c4b 17585 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
10f2d63a
VZ
17586fi
17587
17588if test "$wxUSE_IMAGLIST" = "yes"; then
698dcdb6 17589 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17590#define wxUSE_IMAGLIST 1
17591EOF
17592
17593fi
17594
17595if test "$wxUSE_LISTBOX" = "yes"; then
698dcdb6 17596 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17597#define wxUSE_LISTBOX 1
17598EOF
17599
1e6feb95 17600 USES_CONTROLS=1
10f2d63a
VZ
17601fi
17602
17603if test "$wxUSE_LISTCTRL" = "yes"; then
17604 if test "$wxUSE_IMAGLIST" = "yes"; then
698dcdb6 17605 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17606#define wxUSE_LISTCTRL 1
17607EOF
17608
1e6feb95 17609 USES_CONTROLS=1
10f2d63a
VZ
17610 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
17611 else
698dcdb6 17612 echo "configure: warning: wxListCtrl requires wxImageList and won't be compiled without it" 1>&2
10f2d63a
VZ
17613 fi
17614fi
17615
17616if test "$wxUSE_NOTEBOOK" = "yes"; then
698dcdb6 17617 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17618#define wxUSE_NOTEBOOK 1
17619EOF
17620
1e6feb95 17621 USES_CONTROLS=1
10f2d63a
VZ
17622 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
17623fi
17624
24176f2c
GD
17625if test "$wxUSE_PROPSHEET" = "yes"; then
17626 cat >> confdefs.h <<\EOF
17627#define wxUSE_PROPSHEET 1
17628EOF
17629
17630 USES_CONTROLS=1
17631 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS proplist"
17632fi
17633
10f2d63a 17634if test "$wxUSE_RADIOBOX" = "yes"; then
698dcdb6 17635 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17636#define wxUSE_RADIOBOX 1
17637EOF
17638
1e6feb95 17639 USES_CONTROLS=1
10f2d63a
VZ
17640fi
17641
17642if test "$wxUSE_RADIOBTN" = "yes"; then
698dcdb6 17643 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17644#define wxUSE_RADIOBTN 1
17645EOF
17646
1e6feb95 17647 USES_CONTROLS=1
10f2d63a
VZ
17648fi
17649
17650if test "$wxUSE_SASH" = "yes"; then
698dcdb6 17651 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17652#define wxUSE_SASH 1
17653EOF
17654
17655 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
17656fi
17657
17658if test "$wxUSE_SCROLLBAR" = "yes"; then
698dcdb6 17659 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17660#define wxUSE_SCROLLBAR 1
17661EOF
17662
1e6feb95 17663 USES_CONTROLS=1
741a9306 17664 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
10f2d63a
VZ
17665fi
17666
17667if test "$wxUSE_SLIDER" = "yes"; then
698dcdb6 17668 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17669#define wxUSE_SLIDER 1
17670EOF
17671
1e6feb95 17672 USES_CONTROLS=1
10f2d63a
VZ
17673fi
17674
17675if test "$wxUSE_SPINBTN" = "yes"; then
698dcdb6 17676 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17677#define wxUSE_SPINBTN 1
17678EOF
17679
1e6feb95 17680 USES_CONTROLS=1
10f2d63a
VZ
17681fi
17682
56cfaa52 17683if test "$wxUSE_SPINCTRL" = "yes"; then
698dcdb6 17684 cat >> confdefs.h <<\EOF
56cfaa52
RR
17685#define wxUSE_SPINCTRL 1
17686EOF
17687
1e6feb95 17688 USES_CONTROLS=1
56cfaa52
RR
17689fi
17690
10f2d63a 17691if test "$wxUSE_SPLITTER" = "yes"; then
698dcdb6 17692 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17693#define wxUSE_SPLITTER 1
17694EOF
17695
17696 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
17697fi
17698
17699if test "$wxUSE_STATBMP" = "yes"; then
698dcdb6 17700 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17701#define wxUSE_STATBMP 1
17702EOF
17703
1e6feb95 17704 USES_CONTROLS=1
10f2d63a
VZ
17705fi
17706
17707if test "$wxUSE_STATBOX" = "yes"; then
698dcdb6 17708 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17709#define wxUSE_STATBOX 1
17710EOF
17711
1e6feb95
VZ
17712 USES_CONTROLS=1
17713fi
17714
17715if test "$wxUSE_STATTEXT" = "yes"; then
17716 cat >> confdefs.h <<\EOF
17717#define wxUSE_STATTEXT 1
17718EOF
17719
17720 USES_CONTROLS=1
10f2d63a
VZ
17721fi
17722
17723if test "$wxUSE_STATLINE" = "yes"; then
17724 if test "$wxUSE_WINE" = 1 ; then
698dcdb6 17725 echo "configure: warning: wxStaticLine is not supported under WINE" 1>&2
10f2d63a 17726 else
698dcdb6 17727 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17728#define wxUSE_STATLINE 1
17729EOF
17730
1e6feb95 17731 USES_CONTROLS=1
10f2d63a
VZ
17732 fi
17733fi
17734
17735if test "$wxUSE_STATUSBAR" = "yes"; then
698dcdb6 17736 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17737#define wxUSE_STATUSBAR 1
17738EOF
17739
1e6feb95 17740 USES_CONTROLS=1
698dcdb6 17741
2286341c 17742 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
10f2d63a
VZ
17743fi
17744
17745if test "$wxUSE_TABDIALOG" = "yes"; then
698dcdb6 17746 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17747#define wxUSE_TAB_DIALOG 1
17748EOF
17749
17750 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
17751fi
17752
1e6feb95
VZ
17753if test "$wxUSE_TEXTCTRL" = "yes"; then
17754 cat >> confdefs.h <<\EOF
17755#define wxUSE_TEXTCTRL 1
17756EOF
17757
17758 USES_CONTROLS=1
17759 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
17760fi
17761
1db8dc4a 17762if test "$wxUSE_TOGGLEBTN" = "yes"; then
fc26f4ab
RL
17763 if test "$wxUSE_MAC" = 1 -o "$wxUSE_UNIVERSAL" = "yes"; then
17764 echo "configure: warning: Toggle button not yet supported under Mac OS X or wxUNIVERSAL... disabled" 1>&2
a45d7ab7
GD
17765 wxUSE_TOGGLEBTN=no
17766 fi
17767
17768 if test "$wxUSE_TOGGLEBTN" = "yes"; then
17769 cat >> confdefs.h <<\EOF
1db8dc4a
VZ
17770#define wxUSE_TOGGLEBTN 1
17771EOF
17772
1e6feb95 17773 USES_CONTROLS=1
a45d7ab7 17774 fi
1db8dc4a
VZ
17775fi
17776
360d6699 17777if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
698dcdb6 17778 cat >> confdefs.h <<\EOF
360d6699
VZ
17779#define wxUSE_TOOLBAR_SIMPLE 1
17780EOF
17781
17782 wxUSE_TOOLBAR="yes"
1e6feb95 17783 USES_CONTROLS=1
360d6699
VZ
17784fi
17785
10f2d63a 17786if test "$wxUSE_TOOLBAR" = "yes"; then
698dcdb6 17787 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17788#define wxUSE_TOOLBAR 1
17789EOF
17790
1e6feb95 17791 USES_CONTROLS=1
698dcdb6 17792
360d6699
VZ
17793 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
17794 wxUSE_TOOLBAR_NATIVE="yes"
17795 fi
17796
1e6feb95
VZ
17797 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
17798 cat >> confdefs.h <<\EOF
360d6699
VZ
17799#define wxUSE_TOOLBAR_NATIVE 1
17800EOF
17801
1e6feb95
VZ
17802 USES_CONTROLS=1
17803 fi
17804
17805 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
360d6699
VZ
17806fi
17807
10f2d63a
VZ
17808if test "$wxUSE_TOOLTIPS" = "yes"; then
17809 if test "$wxUSE_MOTIF" = 1; then
698dcdb6 17810 echo "configure: warning: wxTooltip not supported yet under Motif" 1>&2
10f2d63a
VZ
17811 else
17812 if test "$wxUSE_WINE" = 1; then
698dcdb6 17813 echo "configure: warning: wxTooltip not supported under WINE" 1>&2
10f2d63a 17814 else
698dcdb6 17815 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17816#define wxUSE_TOOLTIPS 1
17817EOF
17818
17819 fi
17820 fi
17821fi
17822
17823if test "$wxUSE_TREECTRL" = "yes"; then
17824 if test "$wxUSE_IMAGLIST" = "yes"; then
698dcdb6 17825 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17826#define wxUSE_TREECTRL 1
17827EOF
17828
1e6feb95 17829 USES_CONTROLS=1
10f2d63a
VZ
17830 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
17831 else
698dcdb6 17832 echo "configure: warning: wxTreeCtrl requires wxImageList and won't be compiled without it" 1>&2
10f2d63a
VZ
17833 fi
17834fi
17835
9f41d601 17836if test "$wxUSE_POPUPWIN" = "yes"; then
6abe4b65
GD
17837 if test "$wxUSE_MAC" = 1; then
17838 echo "configure: warning: Popup window is not yet supported under Mac OS" 1>&2
17839 else
17840 cat >> confdefs.h <<\EOF
9f41d601
RR
17841#define wxUSE_POPUPWIN 1
17842EOF
17843
6abe4b65
GD
17844 USES_CONTROLS=1
17845 fi
9f41d601
RR
17846fi
17847
1e6feb95
VZ
17848if test "$USES_CONTROLS" = 1; then
17849 cat >> confdefs.h <<\EOF
17850#define wxUSE_CONTROLS 1
10f2d63a
VZ
17851EOF
17852
10f2d63a
VZ
17853fi
17854
1e6feb95 17855
24176f2c
GD
17856if test "$wxUSE_TREELAYOUT" = "yes"; then
17857 cat >> confdefs.h <<\EOF
17858#define wxUSE_TREELAYOUT 1
17859EOF
17860
17861 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treelay"
17862fi
1e6feb95 17863
24fd6d87
VZ
17864if test "$wxUSE_DRAGIMAGE" = "yes"; then
17865 cat >> confdefs.h <<\EOF
17866#define wxUSE_DRAGIMAGE 1
17867EOF
17868
17869 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
17870fi
17871
1e6feb95 17872if test "$wxUSE_MENUS" = "yes"; then
698dcdb6 17873 cat >> confdefs.h <<\EOF
1e6feb95 17874#define wxUSE_MENUS 1
10f2d63a
VZ
17875EOF
17876
1e6feb95 17877 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
10f2d63a
VZ
17878fi
17879
1e6feb95
VZ
17880if test "$wxUSE_METAFILE" = "yes"; then
17881 cat >> confdefs.h <<\EOF
17882#define wxUSE_METAFILE 1
10f2d63a
VZ
17883EOF
17884
10f2d63a
VZ
17885fi
17886
1e6feb95
VZ
17887if test "$wxUSE_MIMETYPE" = "yes"; then
17888 cat >> confdefs.h <<\EOF
17889#define wxUSE_MIMETYPE 1
10f2d63a
VZ
17890EOF
17891
10f2d63a
VZ
17892fi
17893
3e44f09d
VZ
17894if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
17895 cat >> confdefs.h <<\EOF
17896#define wxUSE_SYSTEM_OPTIONS 1
17897EOF
17898
17899fi
17900
10f2d63a 17901if test "$wxUSE_MINIFRAME" = "yes"; then
698dcdb6 17902 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17903#define wxUSE_MINIFRAME 1
17904EOF
17905
17906 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
17907fi
17908
17909if test "$wxUSE_HTML" = "yes"; then
698dcdb6 17910 cat >> confdefs.h <<\EOF
10f2d63a
VZ
17911#define wxUSE_HTML 1
17912EOF
17913
17914 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html"
10f2d63a
VZ
17915fi
17916
17917if test "$wxUSE_VALIDATORS" = "yes"; then
698dcdb6 17918 cat >> confdefs.h <<\EOF
1e487827
VS
17919#define wxUSE_VALIDATORS 1
17920EOF
703e0a69 17921
698dcdb6
VZ
17922 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
17923fi
17924
edae8572
VZ
17925if test "$wxUSE_PALETTE" = "yes" ; then
17926 cat >> confdefs.h <<\EOF
17927#define wxUSE_PALETTE 1
17928EOF
17929
17930fi
17931
698dcdb6
VZ
17932if test "$wxUSE_IMAGE" = "yes" ; then
17933 cat >> confdefs.h <<\EOF
17934#define wxUSE_IMAGE 1
17935EOF
17936
17937fi
17938
17939if test "$wxUSE_GIF" = "yes" ; then
17940 cat >> confdefs.h <<\EOF
17941#define wxUSE_GIF 1
17942EOF
17943
17944fi
17945
17946if test "$wxUSE_PCX" = "yes" ; then
17947 cat >> confdefs.h <<\EOF
17948#define wxUSE_PCX 1
17949EOF
17950
17951fi
17952
17953if test "$wxUSE_PNM" = "yes" ; then
17954 cat >> confdefs.h <<\EOF
17955#define wxUSE_PNM 1
17956EOF
17957
17958fi
17959
17960if test "$wxUSE_XPM" = "yes" ; then
17961 cat >> confdefs.h <<\EOF
17962#define wxUSE_XPM 1
17963EOF
17964
17965fi
17966
17967
1e6feb95
VZ
17968if test "$wxUSE_CHOICEDLG" = "yes"; then
17969 cat >> confdefs.h <<\EOF
17970#define wxUSE_CHOICEDLG 1
17971EOF
17972
17973fi
17974
17975if test "$wxUSE_COLOURDLG" = "yes"; then
17976 cat >> confdefs.h <<\EOF
17977#define wxUSE_COLOURDLG 1
17978EOF
17979
17980fi
17981
17982if test "$wxUSE_FILEDLG" = "yes"; then
17983 cat >> confdefs.h <<\EOF
17984#define wxUSE_FILEDLG 1
17985EOF
17986
17987fi
17988
8db37e06
VZ
17989if test "$wxUSE_FINDREPLDLG" = "yes"; then
17990 cat >> confdefs.h <<\EOF
17991#define wxUSE_FINDREPLDLG 1
17992EOF
17993
17994fi
17995
1e6feb95
VZ
17996if test "$wxUSE_FONTDLG" = "yes"; then
17997 cat >> confdefs.h <<\EOF
17998#define wxUSE_FONTDLG 1
17999EOF
18000
18001fi
18002
18003if test "$wxUSE_DIRDLG" = "yes"; then
18004 if test "$wxUSE_CONSTRAINTS" != "yes"; then
18005 echo "configure: warning: wxDirDialog requires constraints so it won't be compiled without them" 1>&2
18006 else
18007 if test "$wxUSE_TREECTRL" != "yes"; then
18008 echo "configure: warning: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" 1>&2
18009 else
18010 cat >> confdefs.h <<\EOF
18011#define wxUSE_DIRDLG 1
18012EOF
18013
18014 fi
18015 fi
18016fi
18017
18018if test "$wxUSE_MSGDLG" = "yes"; then
18019 cat >> confdefs.h <<\EOF
18020#define wxUSE_MSGDLG 1
18021EOF
18022
18023fi
18024
18025if test "$wxUSE_NUMBERDLG" = "yes"; then
18026 cat >> confdefs.h <<\EOF
18027#define wxUSE_NUMBERDLG 1
18028EOF
18029
18030fi
18031
18032if test "$wxUSE_PROGRESSDLG" = "yes"; then
18033 if test "$wxUSE_CONSTRAINTS" != "yes"; then
18034 echo "configure: warning: wxProgressDialog requires constraints so it won't be compiled without them" 1>&2
18035 else
18036 cat >> confdefs.h <<\EOF
18037#define wxUSE_PROGRESSDLG 1
18038EOF
18039
18040 fi
18041fi
18042
cbca9943
VZ
18043if test "$wxUSE_SPLASH" = "yes"; then
18044 cat >> confdefs.h <<\EOF
18045#define wxUSE_SPLASH 1
18046EOF
18047
18048fi
18049
1e6feb95
VZ
18050if test "$wxUSE_STARTUP_TIPS" = "yes"; then
18051 if test "$wxUSE_CONSTRAINTS" != "yes"; then
18052 echo "configure: warning: Startup tips requires constraints and won't be compiled without them" 1>&2
18053 else
18054 cat >> confdefs.h <<\EOF
18055#define wxUSE_STARTUP_TIPS 1
18056EOF
18057
18058 fi
18059fi
18060
18061if test "$wxUSE_TEXTDLG" = "yes"; then
18062 cat >> confdefs.h <<\EOF
18063#define wxUSE_TEXTDLG 1
18064EOF
18065
18066fi
18067
b1f5d087
VZ
18068if test "$wxUSE_WIZARDDLG" = "yes"; then
18069 cat >> confdefs.h <<\EOF
18070#define wxUSE_WIZARDDLG 1
18071EOF
18072
18073 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
18074fi
18075
1e6feb95 18076
698dcdb6
VZ
18077if test "$cross_compiling" = "yes"; then
18078 OSINFO="\"$host\""
18079else
18080 OSINFO=`uname -s -r -m`
18081 OSINFO="\"$OSINFO\""
18082fi
18083
18084cat >> confdefs.h <<EOF
18085#define WXWIN_OS_DESCRIPTION $OSINFO
18086EOF
18087
18088
18089
06dda230
VZ
18090if test "x$prefix" != "xNONE"; then
18091 wxPREFIX=$prefix
18092else
18093 wxPREFIX=$ac_default_prefix
18094fi
18095
7e67ed0d 18096cat >> confdefs.h <<EOF
06dda230 18097#define wxINSTALL_PREFIX "$wxPREFIX"
7e67ed0d
VZ
18098EOF
18099
18100
18101
698dcdb6 18102GUILIBS="$GUI_TK_LIBRARY $TOOLKIT_LINK"
698dcdb6
VZ
18103
18104EXTRA_LIBS="$LIBS $POSIX4_LINK $INET_LINK $WCHAR_LINK $THREADS_LINK $DMALLOC_LINK $DL_LINK $ZLIB_LINK -lm"
3a922bb4 18105
f11bdd03 18106if test "$wxUSE_MAC" = 1 ; then
698dcdb6
VZ
18107 EXTRA_LIBS="$EXTRA_LIBS -framework Carbon -framework System"
18108fi
3a922bb4 18109
698dcdb6
VZ
18110if test "$wxUSE_GUI" = "yes"; then
18111 EXTRA_LIBS="$GUILIBS $PNG_LINK $JPEG_LINK $TIFF_LINK $FREETYPE_LINK $EXTRA_LIBS"
3a922bb4
RL
18112
18113
18114 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS controls dialogs \
18115 drawing dynamic erase event exec font image \
18116 minimal richedit rotate widgets"
18117
3a922bb4
RL
18118 CPPFLAGS="$CPPFLAGS \$(EXTRADEFS) \$(APPEXTRADEFS)"
18119else
18120 SAMPLES_SUBDIRS="console"
698dcdb6
VZ
18121fi
18122
18123LD_LIBS="\${top_builddir}/lib/${WX_LIBRARY_NAME_STATIC} $EXTRA_LIBS"
18124
3a922bb4 18125INCLUDES="-I. -I\${top_builddir}/lib/wx/include/${TOOLCHAIN_NAME} -I\${top_srcdir}/include \
3e44f09d
VZ
18126$REGEX_INCLUDE $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE \
18127$FREETYPE_INCLUDE $TOOLKIT_INCLUDE"
698dcdb6
VZ
18128
18129if test "$wxUSE_GTK" = 1; then
18130 WXCONFIG_INCLUDE=""
18131else
18132 WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
18133fi
18134
18135if test "$GXX" = yes ; then
18136 CXXWARNINGS="-Wall"
18137 fi
18138EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE $INCLUDES"
18139
18140CFLAGS=`echo $CFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'`
18141CXXFLAGS=`echo $CXXFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \+/ /g'`
18142
18143LDFLAGS="$LDFLAGS $PROFILE"
18144
698dcdb6
VZ
18145SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
18146
18147
18148
18149
18150
18151
18152
18153
18154
18155
18156
18157
18158
18159
18160
18161
18162
18163
18164
18165
18166
18167
18168
18169
18170
18171
18172
18173
18174
18175
18176
18177
18178
18179
18180
18181
18182
18183
18184
18185
18186
18187
18188
18189
18190
18191
18192
18193
18194
18195
18196
18197
18198
18199
18200
18201
18202
18203
18204
18205
18206
18207
18208
18209
18210
18211
18212
32832908 18213
2f51a9ec
GD
18214
18215
18216
18217
f6bcfd97 18218
dad6c0ea 18219
caa2c79b 18220
3711412e 18221
1e6feb95
VZ
18222
18223
0f3f1cbc 18224
18dbb1f6 18225
10f2d63a
VZ
18226
18227
698dcdb6 18228echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
683dccda 18229echo "configure:18230: checking whether ${MAKE-make} sets \${MAKE}" >&5
698dcdb6
VZ
18230set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
18231if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
18232 echo $ac_n "(cached) $ac_c" 1>&6
10f2d63a 18233else
698dcdb6 18234 cat > conftestmake <<\EOF
10f2d63a
VZ
18235all:
18236 @echo 'ac_maketemp="${MAKE}"'
18237EOF
18238# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
698dcdb6 18239eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
10f2d63a
VZ
18240if test -n "$ac_maketemp"; then
18241 eval ac_cv_prog_make_${ac_make}_set=yes
18242else
18243 eval ac_cv_prog_make_${ac_make}_set=no
18244fi
698dcdb6 18245rm -f conftestmake
10f2d63a
VZ
18246fi
18247if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
698dcdb6 18248 echo "$ac_t""yes" 1>&6
10f2d63a
VZ
18249 SET_MAKE=
18250else
698dcdb6 18251 echo "$ac_t""no" 1>&6
10f2d63a
VZ
18252 SET_MAKE="MAKE=${MAKE-make}"
18253fi
18254
698dcdb6 18255
3a922bb4
RL
18256if test -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h; then
18257 mv -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h setup.h
00cf1208 18258fi
665bbe97 18259
698dcdb6 18260
10f2d63a 18261
2224580a 18262if test "$wxUSE_GUI" = "yes"; then
ec90f5e5 18263 wx_cv_path_samplesubdirs=$SAMPLES_SUBDIRS
e8482f24
GL
18264 wx_cv_path_ifs=$PATH_IFS
18265 wx_cv_program_ext=$PROGRAM_EXT
18266 wx_cv_target_library=$WX_TARGET_LIBRARY
7b6058cd 18267 wx_cv_target_library_gl=$WX_TARGET_LIBRARY_GL
3711412e 18268 wx_cv_target_libtype=$WX_TARGET_LIBRARY_TYPE
93a20a27 18269 export wx_cv_path_samplesubdirs wx_cv_path_ifs wx_cv_program_ext \
7b6058cd 18270 wx_cv_target_library wx_cv_target_library_gl wx_cv_target_libtype
698dcdb6 18271 subdirs="demos samples utils contrib"
2224580a
VZ
18272
18273fi
10f2d63a 18274
698dcdb6
VZ
18275trap '' 1 2 15
18276cat > confcache <<\EOF
10f2d63a
VZ
18277# This file is a shell script that caches the results of configure
18278# tests run on this system so they can be shared between configure
698dcdb6
VZ
18279# scripts and configure runs. It is not useful on other systems.
18280# If it contains results you don't want to keep, you may remove or edit it.
10f2d63a 18281#
698dcdb6
VZ
18282# By default, configure uses ./config.cache as the cache file,
18283# creating it if it does not exist already. You can give configure
18284# the --cache-file=FILE option to use a different cache file; that is
18285# what configure does when it calls configure scripts in
18286# subdirectories, so they share the cache.
18287# Giving --cache-file=/dev/null disables caching, for debugging configure.
18288# config.status only pays attention to the cache file if you give it the
18289# --recheck option to rerun configure.
10f2d63a 18290#
698dcdb6 18291EOF
10f2d63a
VZ
18292# The following way of writing the cache mishandles newlines in values,
18293# but we know of no workaround that is simple, portable, and efficient.
18294# So, don't put newlines in cache variables' values.
18295# Ultrix sh set writes to stderr and can't be redirected directly,
18296# and sets the high bit in the cache file unless we assign to the vars.
698dcdb6
VZ
18297(set) 2>&1 |
18298 case `(ac_space=' '; set | grep ac_space) 2>&1` in
18299 *ac_space=\ *)
18300 # `set' does not quote correctly, so add quotes (double-quote substitution
18301 # turns \\\\ into \\, and sed turns \\ into \).
18302 sed -n \
18303 -e "s/'/'\\\\''/g" \
18304 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
18305 ;;
18306 *)
18307 # `set' quotes correctly as required by POSIX, so do not add quotes.
18308 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
18309 ;;
18310 esac >> confcache
18311if cmp -s $cache_file confcache; then
18312 :
18313else
10f2d63a 18314 if test -w $cache_file; then
698dcdb6
VZ
18315 echo "updating cache $cache_file"
18316 cat confcache > $cache_file
10f2d63a
VZ
18317 else
18318 echo "not updating unwritable cache $cache_file"
18319 fi
18320fi
18321rm -f confcache
18322
698dcdb6
VZ
18323trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
18324
10f2d63a
VZ
18325test "x$prefix" = xNONE && prefix=$ac_default_prefix
18326# Let make expand exec_prefix.
18327test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18328
698dcdb6
VZ
18329# Any assignment to VPATH causes Sun make to only execute
18330# the first set of double-colon rules, so remove it if not needed.
18331# If there is a colon in the path, we need to keep it.
10f2d63a 18332if test "x$srcdir" = x.; then
698dcdb6 18333 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
10f2d63a
VZ
18334fi
18335
698dcdb6
VZ
18336trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
18337
10f2d63a
VZ
18338DEFS=-DHAVE_CONFIG_H
18339
698dcdb6 18340# Without the "./", some shells look in PATH for config.status.
10f2d63a 18341: ${CONFIG_STATUS=./config.status}
698dcdb6
VZ
18342
18343echo creating $CONFIG_STATUS
18344rm -f $CONFIG_STATUS
18345cat > $CONFIG_STATUS <<EOF
18346#! /bin/sh
10f2d63a
VZ
18347# Generated automatically by configure.
18348# Run this file to recreate the current configuration.
698dcdb6
VZ
18349# This directory was configured as follows,
18350# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18351#
18352# $0 $ac_configure_args
18353#
10f2d63a 18354# Compiler output produced by configure, useful for debugging
698dcdb6 18355# configure, is in ./config.log if it exists.
1e487827 18356
698dcdb6
VZ
18357ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
18358for ac_option
10f2d63a 18359do
698dcdb6 18360 case "\$ac_option" in
10f2d63a 18361 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
698dcdb6
VZ
18362 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
18363 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
18364 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
18365 echo "$CONFIG_STATUS generated by autoconf version 2.13"
18366 exit 0 ;;
18367 -help | --help | --hel | --he | --h)
18368 echo "\$ac_cs_usage"; exit 0 ;;
18369 *) echo "\$ac_cs_usage"; exit 1 ;;
10f2d63a
VZ
18370 esac
18371done
18372
698dcdb6
VZ
18373ac_given_srcdir=$srcdir
18374ac_given_INSTALL="$INSTALL"
703e0a69 18375
698dcdb6
VZ
18376trap 'rm -fr `echo "
18377 wx-config
18378 src/make.env
18379 src/makeprog.env
18380 src/makelib.env
18381 Makefile
18382 setup.h:setup.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1e487827 18383EOF
698dcdb6 18384cat >> $CONFIG_STATUS <<EOF
1e487827 18385
698dcdb6
VZ
18386# Protect against being on the right side of a sed subst in config.status.
18387sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
18388 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
18389$ac_vpsub
18390$extrasub
18391s%@SHELL@%$SHELL%g
18392s%@CFLAGS@%$CFLAGS%g
18393s%@CPPFLAGS@%$CPPFLAGS%g
18394s%@CXXFLAGS@%$CXXFLAGS%g
18395s%@FFLAGS@%$FFLAGS%g
18396s%@DEFS@%$DEFS%g
18397s%@LDFLAGS@%$LDFLAGS%g
18398s%@LIBS@%$LIBS%g
18399s%@exec_prefix@%$exec_prefix%g
18400s%@prefix@%$prefix%g
18401s%@program_transform_name@%$program_transform_name%g
18402s%@bindir@%$bindir%g
18403s%@sbindir@%$sbindir%g
18404s%@libexecdir@%$libexecdir%g
18405s%@datadir@%$datadir%g
18406s%@sysconfdir@%$sysconfdir%g
18407s%@sharedstatedir@%$sharedstatedir%g
18408s%@localstatedir@%$localstatedir%g
18409s%@libdir@%$libdir%g
18410s%@includedir@%$includedir%g
18411s%@oldincludedir@%$oldincludedir%g
18412s%@infodir@%$infodir%g
18413s%@mandir@%$mandir%g
18414s%@host@%$host%g
18415s%@host_alias@%$host_alias%g
18416s%@host_cpu@%$host_cpu%g
18417s%@host_vendor@%$host_vendor%g
18418s%@host_os@%$host_os%g
18419s%@target@%$target%g
18420s%@target_alias@%$target_alias%g
18421s%@target_cpu@%$target_cpu%g
18422s%@target_vendor@%$target_vendor%g
18423s%@target_os@%$target_os%g
18424s%@build@%$build%g
18425s%@build_alias@%$build_alias%g
18426s%@build_cpu@%$build_cpu%g
18427s%@build_vendor@%$build_vendor%g
18428s%@build_os@%$build_os%g
18429s%@CC@%$CC%g
18430s%@CPP@%$CPP%g
18431s%@CXX@%$CXX%g
698dcdb6
VZ
18432s%@RANLIB@%$RANLIB%g
18433s%@AR@%$AR%g
18434s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
18435s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
18436s%@INSTALL_DATA@%$INSTALL_DATA%g
18437s%@STRIP@%$STRIP%g
18438s%@YACC@%$YACC%g
18439s%@LEX@%$LEX%g
18440s%@LEXLIB@%$LEXLIB%g
18441s%@LN_S@%$LN_S%g
18442s%@GTK_CONFIG_2_0@%$GTK_CONFIG_2_0%g
698dcdb6
VZ
18443s%@GTK_CFLAGS@%$GTK_CFLAGS%g
18444s%@GTK_LIBS@%$GTK_LIBS%g
8168de4c 18445s%@GTK_CONFIG@%$GTK_CONFIG%g
698dcdb6
VZ
18446s%@X_CFLAGS@%$X_CFLAGS%g
18447s%@X_PRE_LIBS@%$X_PRE_LIBS%g
18448s%@X_LIBS@%$X_LIBS%g
18449s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
3a922bb4 18450s%@RESCOMP@%$RESCOMP%g
698dcdb6 18451s%@DEREZ@%$DEREZ%g
3a922bb4 18452s%@CXXCPP@%$CXXCPP%g
698dcdb6
VZ
18453s%@LEX_STEM@%$LEX_STEM%g
18454s%@PATH_IFS@%$PATH_IFS%g
18455s%@WX_MAJOR_VERSION_NUMBER@%$WX_MAJOR_VERSION_NUMBER%g
18456s%@WX_MINOR_VERSION_NUMBER@%$WX_MINOR_VERSION_NUMBER%g
18457s%@WX_RELEASE_NUMBER@%$WX_RELEASE_NUMBER%g
698dcdb6
VZ
18458s%@WX_LIBRARY_NAME_STATIC@%$WX_LIBRARY_NAME_STATIC%g
18459s%@WX_LIBRARY_NAME_SHARED@%$WX_LIBRARY_NAME_SHARED%g
698dcdb6
VZ
18460s%@WX_TARGET_LIBRARY@%$WX_TARGET_LIBRARY%g
18461s%@WX_LIBRARY_LINK1@%$WX_LIBRARY_LINK1%g
18462s%@WX_LIBRARY_LINK2@%$WX_LIBRARY_LINK2%g
698dcdb6 18463s%@PROGRAM_EXT@%$PROGRAM_EXT%g
698dcdb6
VZ
18464s%@WX_LIBRARY_NAME_STATIC_GL@%$WX_LIBRARY_NAME_STATIC_GL%g
18465s%@WX_LIBRARY_NAME_SHARED_GL@%$WX_LIBRARY_NAME_SHARED_GL%g
698dcdb6
VZ
18466s%@WX_TARGET_LIBRARY_GL@%$WX_TARGET_LIBRARY_GL%g
18467s%@WX_LIBRARY_LINK1_GL@%$WX_LIBRARY_LINK1_GL%g
18468s%@WX_LIBRARY_LINK2_GL@%$WX_LIBRARY_LINK2_GL%g
698dcdb6
VZ
18469s%@WX_ALL@%$WX_ALL%g
18470s%@WX_ALL_INSTALLED@%$WX_ALL_INSTALLED%g
18471s%@SHARED_LD@%$SHARED_LD%g
18472s%@PIC_FLAG@%$PIC_FLAG%g
698dcdb6
VZ
18473s%@CODE_GEN_FLAGS@%$CODE_GEN_FLAGS%g
18474s%@CODE_GEN_FLAGS_CXX@%$CODE_GEN_FLAGS_CXX%g
3a922bb4
RL
18475s%@SONAME_FLAGS@%$SONAME_FLAGS%g
18476s%@SONAME_FLAGS_GL@%$SONAME_FLAGS_GL%g
698dcdb6
VZ
18477s%@WX_TARGET_LIBRARY_SONAME@%$WX_TARGET_LIBRARY_SONAME%g
18478s%@WX_TARGET_LIBRARY_TYPE@%$WX_TARGET_LIBRARY_TYPE%g
18479s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g
18480s%@USE_GUI@%$USE_GUI%g
18481s%@AFMINSTALL@%$AFMINSTALL%g
18482s%@TOOLKIT@%$TOOLKIT%g
698dcdb6 18483s%@TOOLKIT_DIR@%$TOOLKIT_DIR%g
1e6feb95 18484s%@TOOLKIT_VPATH@%$TOOLKIT_VPATH%g
3a922bb4
RL
18485s%@TOOLCHAIN_NAME@%$TOOLCHAIN_NAME%g
18486s%@TOOLCHAIN_DEFS@%$TOOLCHAIN_DEFS%g
18487s%@cross_compiling@%$cross_compiling%g
18488s%@WXCONFIG_LIBS@%$WXCONFIG_LIBS%g
18489s%@WXCONFIG_LIBS_GL@%$WXCONFIG_LIBS_GL%g
698dcdb6
VZ
18490s%@WXCONFIG_INCLUDE@%$WXCONFIG_INCLUDE%g
18491s%@ALL_OBJECTS@%$ALL_OBJECTS%g
698dcdb6
VZ
18492s%@GUIDIST@%$GUIDIST%g
18493s%@PORT_FILES@%$PORT_FILES%g
18494s%@DISTDIR@%$DISTDIR%g
18495s%@RPM_SPEC@%$RPM_SPEC%g
18496s%@RPM_FILES@%$RPM_FILES%g
698dcdb6 18497s%@SAMPLES_SUBDIRS@%$SAMPLES_SUBDIRS%g
698dcdb6
VZ
18498s%@EXTRA_LIBS@%$EXTRA_LIBS%g
18499s%@OPENGL_LIBS@%$OPENGL_LIBS%g
18500s%@EXTRADEFS@%$EXTRADEFS%g
18501s%@LD_LIBS@%$LD_LIBS%g
18dbb1f6 18502s%@WXMSW_DLL_DEFINES@%$WXMSW_DLL_DEFINES%g
698dcdb6 18503s%@RESFLAGS@%$RESFLAGS%g
3a922bb4 18504s%@RESPROGRAMOBJ@%$RESPROGRAMOBJ%g
d08b457b 18505s%@WX_RESOURCES_MACOSX@%$WX_RESOURCES_MACOSX%g
698dcdb6
VZ
18506s%@LIBWXMACRES@%$LIBWXMACRES%g
18507s%@LIBWXMACRESCOMP@%$LIBWXMACRESCOMP%g
18508s%@DLLTOOL@%$DLLTOOL%g
18509s%@AS@%$AS%g
18510s%@NM@%$NM%g
18511s%@LD@%$LD%g
18512s%@MAKEINFO@%$MAKEINFO%g
18513s%@SET_MAKE@%$SET_MAKE%g
18514s%@subdirs@%$subdirs%g
1e487827 18515
1e487827 18516CEOF
1e487827
VS
18517EOF
18518
698dcdb6
VZ
18519cat >> $CONFIG_STATUS <<\EOF
18520
18521# Split the substitutions into bite-sized pieces for seds with
18522# small command number limits, like on Digital OSF/1 and HP-UX.
18523ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
18524ac_file=1 # Number of current file.
18525ac_beg=1 # First line for current file.
18526ac_end=$ac_max_sed_cmds # Line after last line for current file.
18527ac_more_lines=:
18528ac_sed_cmds=""
18529while $ac_more_lines; do
18530 if test $ac_beg -gt 1; then
18531 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
18532 else
18533 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
18534 fi
18535 if test ! -s conftest.s$ac_file; then
18536 ac_more_lines=false
18537 rm -f conftest.s$ac_file
18538 else
18539 if test -z "$ac_sed_cmds"; then
18540 ac_sed_cmds="sed -f conftest.s$ac_file"
10f2d63a 18541 else
698dcdb6 18542 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
10f2d63a 18543 fi
698dcdb6
VZ
18544 ac_file=`expr $ac_file + 1`
18545 ac_beg=$ac_end
18546 ac_end=`expr $ac_end + $ac_max_sed_cmds`
10f2d63a 18547 fi
698dcdb6
VZ
18548done
18549if test -z "$ac_sed_cmds"; then
18550 ac_sed_cmds=cat
18551fi
18552EOF
10f2d63a 18553
698dcdb6
VZ
18554cat >> $CONFIG_STATUS <<EOF
18555
18556CONFIG_FILES=\${CONFIG_FILES-"wx-config
18557 src/make.env
18558 src/makeprog.env
18559 src/makelib.env
18560 Makefile
18561 "}
10f2d63a 18562EOF
698dcdb6
VZ
18563cat >> $CONFIG_STATUS <<\EOF
18564for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
10f2d63a 18565 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
698dcdb6
VZ
18566 case "$ac_file" in
18567 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
18568 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
18569 *) ac_file_in="${ac_file}.in" ;;
10f2d63a
VZ
18570 esac
18571
698dcdb6 18572 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
1e487827 18573
698dcdb6
VZ
18574 # Remove last slash and all that follows it. Not all systems have dirname.
18575 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
18576 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
18577 # The file is in a subdirectory.
18578 test ! -d "$ac_dir" && mkdir "$ac_dir"
18579 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
10f2d63a 18580 # A "../" for each directory in $ac_dir_suffix.
698dcdb6 18581 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
10f2d63a
VZ
18582 else
18583 ac_dir_suffix= ac_dots=
18584 fi
18585
698dcdb6
VZ
18586 case "$ac_given_srcdir" in
18587 .) srcdir=.
18588 if test -z "$ac_dots"; then top_srcdir=.
18589 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
18590 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
10f2d63a 18591 *) # Relative path.
698dcdb6
VZ
18592 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
18593 top_srcdir="$ac_dots$ac_given_srcdir" ;;
10f2d63a
VZ
18594 esac
18595
698dcdb6
VZ
18596 case "$ac_given_INSTALL" in
18597 [/$]*) INSTALL="$ac_given_INSTALL" ;;
18598 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
10f2d63a
VZ
18599 esac
18600
698dcdb6
VZ
18601 echo creating "$ac_file"
18602 rm -f "$ac_file"
18603 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
18604 case "$ac_file" in
18605 *Makefile*) ac_comsub="1i\\
18606# $configure_input" ;;
18607 *) ac_comsub= ;;
18608 esac
10f2d63a 18609
698dcdb6
VZ
18610 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
18611 sed -e "$ac_comsub
18612s%@configure_input@%$configure_input%g
18613s%@srcdir@%$srcdir%g
18614s%@top_srcdir@%$top_srcdir%g
18615s%@INSTALL@%$INSTALL%g
18616" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
18617fi; done
18618rm -f conftest.s*
10f2d63a
VZ
18619
18620# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
18621# NAME is the cpp macro being defined and VALUE is the value it is being given.
18622#
18623# ac_d sets the value in "#define NAME VALUE" lines.
698dcdb6
VZ
18624ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
18625ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
18626ac_dC='\3'
18627ac_dD='%g'
18628# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
18629ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
18630ac_uB='\([ ]\)%\1#\2define\3'
10f2d63a 18631ac_uC=' '
698dcdb6
VZ
18632ac_uD='\4%g'
18633# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
18634ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
18635ac_eB='$%\1#\2define\3'
18636ac_eC=' '
18637ac_eD='%g'
10f2d63a 18638
698dcdb6
VZ
18639if test "${CONFIG_HEADERS+set}" != set; then
18640EOF
18641cat >> $CONFIG_STATUS <<EOF
18642 CONFIG_HEADERS="setup.h:setup.h.in"
18643EOF
18644cat >> $CONFIG_STATUS <<\EOF
18645fi
18646for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
10f2d63a 18647 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
698dcdb6
VZ
18648 case "$ac_file" in
18649 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
18650 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
18651 *) ac_file_in="${ac_file}.in" ;;
10f2d63a
VZ
18652 esac
18653
698dcdb6
VZ
18654 echo creating $ac_file
18655
18656 rm -f conftest.frag conftest.in conftest.out
18657 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
18658 cat $ac_file_inputs > conftest.in
18659
18660EOF
18661
18662# Transform confdefs.h into a sed script conftest.vals that substitutes
18663# the proper values into config.h.in to produce config.h. And first:
18664# Protect against being on the right side of a sed subst in config.status.
18665# Protect against being in an unquoted here document in config.status.
18666rm -f conftest.vals
18667cat > conftest.hdr <<\EOF
18668s/[\\&%]/\\&/g
18669s%[\\$`]%\\&%g
18670s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
18671s%ac_d%ac_u%gp
18672s%ac_u%ac_e%gp
18673EOF
18674sed -n -f conftest.hdr confdefs.h > conftest.vals
18675rm -f conftest.hdr
10f2d63a
VZ
18676
18677# This sed command replaces #undef with comments. This is necessary, for
18678# example, in the case of _POSIX_SOURCE, which is predefined and required
18679# on some systems where configure will not decide to define it.
698dcdb6
VZ
18680cat >> conftest.vals <<\EOF
18681s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
10f2d63a
VZ
18682EOF
18683
698dcdb6
VZ
18684# Break up conftest.vals because some shells have a limit on
18685# the size of here documents, and old seds have small limits too.
10f2d63a
VZ
18686
18687rm -f conftest.tail
698dcdb6 18688while :
10f2d63a 18689do
698dcdb6
VZ
18690 ac_lines=`grep -c . conftest.vals`
18691 # grep -c gives empty output for an empty file on some AIX systems.
18692 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
18693 # Write a limited-size here document to conftest.frag.
18694 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
18695 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
10f2d63a 18696 echo 'CEOF
698dcdb6
VZ
18697 sed -f conftest.frag conftest.in > conftest.out
18698 rm -f conftest.in
18699 mv conftest.out conftest.in
18700' >> $CONFIG_STATUS
18701 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
18702 rm -f conftest.vals
18703 mv conftest.tail conftest.vals
10f2d63a 18704done
698dcdb6
VZ
18705rm -f conftest.vals
18706
18707cat >> $CONFIG_STATUS <<\EOF
18708 rm -f conftest.frag conftest.h
18709 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
18710 cat conftest.in >> conftest.h
18711 rm -f conftest.in
18712 if cmp -s $ac_file conftest.h 2>/dev/null; then
18713 echo "$ac_file is unchanged"
18714 rm -f conftest.h
10f2d63a 18715 else
698dcdb6
VZ
18716 # Remove last slash and all that follows it. Not all systems have dirname.
18717 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
10f2d63a 18718 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
698dcdb6
VZ
18719 # The file is in a subdirectory.
18720 test ! -d "$ac_dir" && mkdir "$ac_dir"
10f2d63a 18721 fi
698dcdb6
VZ
18722 rm -f $ac_file
18723 mv conftest.h $ac_file
10f2d63a 18724 fi
698dcdb6
VZ
18725fi; done
18726
10f2d63a 18727EOF
698dcdb6 18728cat >> $CONFIG_STATUS <<EOF
10f2d63a 18729
3a922bb4 18730 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}"
698dcdb6
VZ
18731 LN_S="${LN_S}"
18732
18733
18734EOF
18735cat >> $CONFIG_STATUS <<\EOF
10f2d63a 18736
3a922bb4 18737 if test ! -L wx-config; then
991a5759 18738 chmod +x wx-config
3a922bb4
RL
18739 mv wx-config wx${TOOLCHAIN_NAME}-config
18740 ${LN_S} wx${TOOLCHAIN_NAME}-config wx-config
991a5759 18741 fi
665bbe97 18742
00cf1208
RR
18743 if test ! -d lib; then
18744 mkdir lib
18745 fi
18746 if test ! -d lib/wx; then
18747 mkdir lib/wx
18748 fi
18749 if test ! -d lib/wx/include; then
18750 mkdir lib/wx/include
18751 fi
3a922bb4
RL
18752 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}; then
18753 mkdir lib/wx/include/${TOOLCHAIN_NAME}
00cf1208 18754 fi
3a922bb4
RL
18755 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}/wx; then
18756 mkdir lib/wx/include/${TOOLCHAIN_NAME}/wx
00cf1208
RR
18757 fi
18758 if test -f setup.h; then
3a922bb4 18759 mv -f setup.h lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h
00cf1208 18760 fi
698dcdb6
VZ
18761
18762exit 0
10f2d63a
VZ
18763EOF
18764chmod +x $CONFIG_STATUS
698dcdb6
VZ
18765rm -fr confdefs* $ac_clean_files
18766test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
10f2d63a 18767
2224580a
VZ
18768if test "$no_recursion" != yes; then
18769
18770 # Remove --cache-file and --srcdir arguments so they do not pile up.
18771 ac_sub_configure_args=
18772 ac_prev=
18773 for ac_arg in $ac_configure_args; do
18774 if test -n "$ac_prev"; then
18775 ac_prev=
18776 continue
18777 fi
698dcdb6 18778 case "$ac_arg" in
2224580a
VZ
18779 -cache-file | --cache-file | --cache-fil | --cache-fi \
18780 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
18781 ac_prev=cache_file ;;
18782 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
698dcdb6 18783 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
2224580a
VZ
18784 ;;
18785 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
18786 ac_prev=srcdir ;;
18787 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
18788 ;;
18789 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
18790 esac
18791 done
18792
698dcdb6 18793 for ac_config_dir in demos samples utils contrib; do
2224580a
VZ
18794
18795 # Do not complain, so a configure script can configure whichever
18796 # parts of a large source tree are present.
698dcdb6
VZ
18797 if test ! -d $srcdir/$ac_config_dir; then
18798 continue
18799 fi
18800
18801 echo configuring in $ac_config_dir
2224580a 18802
698dcdb6 18803 case "$srcdir" in
2224580a
VZ
18804 .) ;;
18805 *)
698dcdb6
VZ
18806 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
18807 else
18808 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
18809 fi
18810 ;;
2224580a
VZ
18811 esac
18812
18813 ac_popdir=`pwd`
698dcdb6 18814 cd $ac_config_dir
2224580a 18815
698dcdb6
VZ
18816 # A "../" for each directory in /$ac_config_dir.
18817 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
2224580a 18818
698dcdb6 18819 case "$srcdir" in
2224580a
VZ
18820 .) # No --srcdir option. We are building in place.
18821 ac_sub_srcdir=$srcdir ;;
698dcdb6
VZ
18822 /*) # Absolute path.
18823 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
2224580a 18824 *) # Relative path.
698dcdb6 18825 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
2224580a
VZ
18826 esac
18827
18828 # Check for guested configure; otherwise get Cygnus style configure.
698dcdb6
VZ
18829 if test -f $ac_sub_srcdir/configure; then
18830 ac_sub_configure=$ac_sub_srcdir/configure
2224580a
VZ
18831 elif test -f $ac_sub_srcdir/configure.in; then
18832 ac_sub_configure=$ac_configure
18833 else
698dcdb6 18834 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
2224580a
VZ
18835 ac_sub_configure=
18836 fi
18837
18838 # The recursion is here.
18839 if test -n "$ac_sub_configure"; then
698dcdb6 18840
2224580a 18841 # Make the cache file name correct relative to the subdirectory.
698dcdb6
VZ
18842 case "$cache_file" in
18843 /*) ac_sub_cache_file=$cache_file ;;
2224580a 18844 *) # Relative path.
698dcdb6 18845 ac_sub_cache_file="$ac_dots$cache_file" ;;
2224580a 18846 esac
698dcdb6
VZ
18847 case "$ac_given_INSTALL" in
18848 [/$]*) INSTALL="$ac_given_INSTALL" ;;
18849 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
18850 esac
2224580a 18851
698dcdb6 18852 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
2224580a 18853 # The eval makes quoting arguments work.
698dcdb6
VZ
18854 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
18855 then :
18856 else
18857 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
18858 fi
2224580a
VZ
18859 fi
18860
18861 cd $ac_popdir
18862 done
18863fi
18864
698dcdb6 18865